/* ==========================================================================
   yumiwe — V1 brochure stylesheet
   Hand-written. No frameworks, no build step, no external requests.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts (self-hosted)
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("assets/fonts/AtkinsonHyperlegibleNext-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("assets/fonts/AtkinsonHyperlegibleNext-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("assets/fonts/AtkinsonHyperlegibleNext-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Colour — provisional, not final brand palette */
  --bg: #faf9f6;
  --ink: #24232b;
  --muted: #6b6a73;
  --brand: #3b3a6a;
  --rule: #e6e4de;
  --surface: #f3f1ec;

  /* Type */
  --font: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --measure: 34rem;
  --page: 68rem;

  /* Space */
  --pad: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(4.5rem, 11vw, 8.5rem);
  --gap: clamp(1.5rem, 4vw, 3rem);
  --radius: 0.75rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1.0625rem, 0.6vw + 0.95rem, 1.1875rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
}

::selection {
  background: color-mix(in srgb, var(--brand) 22%, transparent);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.wrap {
  width: min(100% - (var(--pad) * 2), var(--page));
  margin-inline: auto;
}

.prose {
  max-width: var(--measure);
}

.skip-link {
  position: absolute;
  left: var(--pad);
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 0.9rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 0.4rem;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
  color: var(--bg);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

.wordmark {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding-block: var(--section);
}

.section--tight {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.eyebrow {
  display: block;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.lede {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}

.body-copy {
  color: var(--muted);
  text-wrap: pretty;
}

.prose + .prose {
  margin-top: 1.5rem;
}

.body-copy strong {
  font-weight: 600;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   The bigger idea — an editorial, typographic section
   -------------------------------------------------------------------------- */

.idea__intro {
  max-width: 48rem;
}

.idea__headline {
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}

.idea__support {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.idea__proposition {
  margin-top: clamp(4.5rem, 10vw, 8rem);
}

.idea__lead {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--muted);
}

.idea__display {
  margin-top: 0.85rem;
  max-width: 40rem;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: pretty;
}

.perspectives {
  display: grid;
  gap: clamp(2.5rem, 6vw, 3.5rem);
  grid-template-columns: 1fr;
  margin-top: clamp(3.5rem, 8vw, 6rem);
}

@media (min-width: 46rem) {
  .perspectives {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
  }
}

.perspectives__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.perspectives__col p {
  margin-top: 1.1rem;
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  line-height: 1.7;
  color: var(--ink);
  text-wrap: pretty;
}

.idea__close {
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.idea__close .idea__support {
  margin-top: 0;
}

.idea__conclusion {
  max-width: 24ch;
  margin-top: 2rem;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

.idea__conclusion-punch {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-block: clamp(3rem, 12vw, 9rem) clamp(4rem, 14vw, 10rem);
}

.hero__banner {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.hero__tagline {
  max-width: 14ch;
  font-size: clamp(2.75rem, 11vw, 8rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

/* --------------------------------------------------------------------------
   What we're building — paired columns
   -------------------------------------------------------------------------- */

.pair {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 46rem) {
  .pair {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
  }
}

.pair__item h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pair__item p {
  margin-top: 0.85rem;
  color: var(--muted);
  text-wrap: pretty;
}

.pair__item .pair__lead {
  margin-top: 0.7rem;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.pair__note {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   Product in action
   -------------------------------------------------------------------------- */

.media {
  margin-top: clamp(2rem, 5vw, 3rem);
}

.media__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.media__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 120% at 50% 0%,
    color-mix(in srgb, var(--brand) 8%, transparent),
    transparent 60%
  );
  pointer-events: none;
}

.media__placeholder {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.media__play {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--bg);
}

.media__play svg {
  width: 1.1rem;
  height: 1.1rem;
  margin-left: 2px;
}

.media__caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */

.team {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  grid-template-columns: 1fr;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 40rem) {
  .team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 44rem;
  }
}

.person__photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  filter: grayscale(0.15);
}

.person__name {
  margin-top: 1.25rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.person__role {
  margin-top: 0.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--brand);
}

.person__bio {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.98rem;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: var(--section);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--rule);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   Privacy page
   -------------------------------------------------------------------------- */

.page {
  padding-block: clamp(3rem, 8vw, 5rem) var(--section);
}

.page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  max-width: 20ch;
}

.page__meta {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.page__body {
  margin-top: clamp(2rem, 5vw, 3rem);
  max-width: var(--measure);
}

.page__body h2 {
  margin-top: 2.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.page__body p,
.page__body ul {
  margin-top: 0.85rem;
  color: var(--muted);
  text-wrap: pretty;
}

.page__body ul {
  padding-left: 1.2rem;
}

.page__body li + li {
  margin-top: 0.4rem;
}

.draft-note {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding: 1rem 1.25rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brand);
  border-radius: 0.4rem;
  background: var(--surface);
  font-size: 0.9rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Scroll reveal (progressive enhancement)
   Only active when JS is present.
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal[data-delay="1"] {
  transition-delay: 0.08s;
}

.js .reveal[data-delay="2"] {
  transition-delay: 0.16s;
}

.js .reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
