/* lineupugc.com home, light only. Colours are the app tokens (apps/lineup-mobile/src/ui/theme.ts).
   ink3 #9F9E99 is decoration only and never text.

   Motion (DIT-333, DIT-334):
   - The intro is CSS, so it plays on first paint without waiting for JS. The mark keyframes are the
     brand kit's (DIT-131 lineupMarkMotion.ts): bars rise out of the baseline clip, the dot drops in.
     Then the mark settles into the hero on the app's `hero` spring and the headline resolves.
   - How it works and the leaderboard are pinned scenes, scrubbed by scroll in home.js (Motion);
     the For brands ink grows in with scroll and the close plays once in view (home.js).
   - Cards rise in once with depth, section heads reveal word by word, and each card's snippet
     plays one small motion once (enter.js adds `.is-armed`, `.is-in`, `.is-armed-play`, `.is-played`).
   - Every pre-animation state is behind those JS classes and inside
     `prefers-reduced-motion: no-preference`, so without JS, or with Reduce Motion, every visual
     shows its finished state. Only transform, opacity and filter animate. Nothing loops. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #F7F6F2; /* theme.ts `card` (owner, 2026-10-14) */
  --paper-hi: #FBFAF7;
  --ground: #ECEBE6;
  --ink: #1E1E1C;
  --ink-2: #6B6A66;
  --ink-3: #9F9E99;
  --fill: rgba(120, 116, 104, 0.13);
  --sep: rgba(60, 58, 50, 0.13);
  --green: #1C7C36;
  --green-bg: #E4F3E8;
  --shadow: 0 1px 2px rgba(60, 50, 30, 0.06), 0 12px 32px rgba(60, 50, 30, 0.10);
  --gutter: 16px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, system-ui, sans-serif;
  --gold: #806200;
  --gold-bg: #FBF3D9;
  --blue: #0B63CE;
  /* The For brands band: the same card grammar on ink. */
  --on-ink: #FBFAF7;
  --on-ink-2: rgba(251, 250, 247, 0.68);
  --ink-card: #282725;
  --ink-stage: #33312E;
  --ink-sep: rgba(251, 250, 247, 0.1);
  /* Page sections: side padding grows with the window, never under the safe area. */
  --pad: max(clamp(16px, 5vw, 56px), env(safe-area-inset-left), env(safe-area-inset-right));

  /* motion.ts presets as CSS easings (stiffness (2π/response)², damping 4π·ratio/response, mass 1),
     sampled to linear(); a cubic-bezier stands in where linear() is unsupported. */
  --spring-hero: cubic-bezier(0.25, 1, 0.4, 1); /* hero 0.84 / 0.65 s (softened from 0.5 for the site, DIT-333): settles in 840 ms */
  --spring-settle: cubic-bezier(0.22, 1, 0.36, 1); /* settle 1.0 / 0.8 s (softened from 0.6): 1080 ms; shorter runs reuse the same curve */
  /* Brand-kit curves (docs/brand-kit/motion/lineup-mark-animations.html). */
  --mark-rise: cubic-bezier(0.2, 0.8, 0.2, 1);
  --mark-drop: cubic-bezier(0.34, 1.45, 0.64, 1);
  --mark-sway: cubic-bezier(0.45, 0, 0.55, 1);

  /* Hero geometry: fixed line heights let CSS know where the stack's centre is, so the intro can
     play the mark at the viewport centre and settle it into place with no layout shift. */
  --mark-w: clamp(52px, 4.4vw, 64px);
  --g1: clamp(24px, 2.6vw, 36px);
  --h1: clamp(42px, 12vw, 136px);
  --g2: clamp(20px, 2.4vw, 32px);
  --tag-lh: 26px;
  --intro-dy: calc((var(--g1) + var(--h1) + var(--g2) + 2 * var(--tag-lh)) / 2);
  --intro-scale: 2.4;
  color-scheme: light;
}
@supports (animation-timing-function: linear(0, 1)) {
  :root {
    --spring-hero: linear(0, 0.048, 0.158, 0.294, 0.432, 0.56, 0.67, 0.762, 0.834, 0.889, 0.93, 0.959, 0.979, 0.993, 1.001, 1.005, 1.007, 1.008, 1.007, 1.007, 1.005, 1.004, 1.003, 1.003, 1);
    --spring-settle: linear(0, 0.05, 0.158, 0.286, 0.413, 0.527, 0.626, 0.707, 0.774, 0.826, 0.868, 0.9, 0.925, 0.943, 0.958, 0.969, 0.977, 0.983, 0.987, 0.991, 0.993, 0.995, 0.996, 0.997, 1);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
p, h1, h2 { margin: 0; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Scroll progress: a hairline across the top, scrubbed by home.js. */
.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---- Hero ---------------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  padding: 0 max(var(--gutter), env(safe-area-inset-left)) 0 max(var(--gutter), env(safe-area-inset-right));
  text-align: center;
}
.hero-stack { display: flex; flex-direction: column; align-items: center; }
.mark {
  display: block;
  width: var(--mark-w);
  height: calc(var(--mark-w) * 250 / 252); /* explicit: an auto-height SVG can collapse in grid */
  flex: none;
  fill: var(--ink);
  overflow: visible; /* the clip-path is the only edge: the baseline */
}
.headline {
  margin-top: var(--g1);
  font-size: var(--h1);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.headline .w { display: inline-block; }
.status {
  margin-top: var(--g2);
  font-size: clamp(14px, 4.4vw, 17px); /* the first line fits one line down to 320 px */
  line-height: var(--tag-lh);
  letter-spacing: -0.01em;
  color: var(--ink-2);
}
/* App Store link under the hero line and the closing title: Apple's official badge artwork
   (developer.apple.com, unaltered, black), at least 40 px tall as Apple's guidelines ask. */
.store {
  display: inline-block;
  margin-top: 18px;
  line-height: 0;
  border-radius: 9px;
  transition: transform 160ms ease, opacity 160ms ease;
}
.store img { display: block; height: 48px; width: auto; }
.store:hover { opacity: 0.88; }
.store:active { transform: scale(0.97); }
.store:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .store { transition: none; } }
.cue {
  position: absolute;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
}
.cue-in { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cue span { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.cue i { position: relative; display: block; width: 1px; height: 36px; overflow: hidden; background: var(--sep); }
.cue i::after { content: ""; position: absolute; inset: 0 0 auto; height: 12px; background: var(--ink); }

/* ---- Feature scenes ------------------------------------------------------------------------ */
.scene { position: relative; height: 220vh; height: 220svh; } /* 120svh of scrub per scene: calm, readable motion per pixel */
.pin {
  --vis-h: min(46svh, 420px);
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4svh, 40px);
  padding: 56px max(var(--gutter), env(safe-area-inset-left)) 32px max(var(--gutter), env(safe-area-inset-right));
  overflow: hidden;
  overflow: clip; /* the climbing card and confetti never widen the page */
}
.copy { max-width: 560px; text-align: center; }
.sub { max-width: 40ch; margin-inline: auto; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.copy h2 {
  margin-top: 12px;
  font-size: clamp(30px, 7.6vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.sub { margin-top: 14px; font-size: 16px; line-height: 1.45; color: var(--ink-2); text-wrap: balance; }
.visual { display: grid; place-items: center; width: 100%; height: var(--vis-h); }

@media (min-width: 960px) {
  .pin {
    --vis-h: min(72svh, 720px);
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding-block: 48px;
    gap: clamp(48px, 7vw, 120px);
    padding-inline: clamp(32px, 6vw, 96px);
  }
  .copy { flex: 0 1 440px; text-align: left; }
  .copy .sub { margin-inline: 0; }
  .visual { flex: 0 1 600px; }
  .lb { zoom: 1.25; } /* the board holds the space beside the copy */
  :root { --tag-lh: 28px; }
  .status { font-size: 19px; }
}


/* Leaderboard, in the app's language (features/creator/leaderboard): the event hero, the podium
   2-1-3 on stepped plinths, the next places, and the elevated You card. home.js moves You up the
   list and onto the #3 plinth. Final (no-JS) state: You on the #3 plinth with the medal and prize. */
.lb { --row-h: 40px; --pitch: 44px; display: grid; gap: 12px; width: min(360px, 100%); }
.lb-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 22px;
  background: radial-gradient(120% 150% at 12% 0%, #6E5E48, #2B2824 62%, var(--ink));
  color: var(--paper-hi);
  box-shadow: var(--shadow);
}
.lb-live { font-size: 11px; font-weight: 600; letter-spacing: 0.02em; opacity: 0.72; }
.lb-week { margin-top: 2px; font-size: 21px; font-weight: 700; letter-spacing: -0.03em; }
.lb-hero-chips { display: grid; justify-items: end; gap: 6px; }
.lb-chip { padding: 3px 9px; border-radius: 10px; background: rgba(251, 250, 247, 0.16); font-size: 11px; font-weight: 600; white-space: nowrap; }
.lb-pool { background: #FBF3D9; color: #806200; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 8px; }
.pl {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 10px 6px 12px;
  border-radius: 18px;
  background: var(--paper-hi);
  box-shadow: 0 0 0 1px var(--sep), 0 2px 6px rgba(60, 50, 30, 0.05);
  text-align: center;
}
.pl-1 { padding-top: 26px; } /* the app's PODIUM_STEP: 1st stands tallest, then 2nd, then 3rd */
.pl-2 { padding-top: 16px; }
.pl-who { display: grid; grid-area: 1 / 1; justify-items: center; gap: 2px; min-width: 0; max-width: 100%; }
.pl-them { opacity: 0; } /* the old #3, before You takes the plinth */
.pl-avwrap { position: relative; margin-bottom: 5px; }
.pav { display: block; width: 40px; height: 40px; border-radius: 50%; }
.pl-1 .pav { width: 48px; height: 48px; box-shadow: 0 0 0 2px var(--paper-hi), 0 0 0 4px #C9A23A; }
.pav-you { background: radial-gradient(120% 120% at 30% 25%, #5A4E41, var(--ink)); box-shadow: 0 0 0 2px var(--paper-hi), 0 0 0 4px var(--ink); }
.pmedal {
  position: absolute;
  right: -7px;
  bottom: -5px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 2px solid var(--paper-hi);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
}
.m1 { background: #EBCB72; color: #4F3B00; }
.m2 { background: #D9D8DD; color: #3A3A3F; }
.m3 { background: #E3B48C; color: #5C3414; }
.pname { max-width: 100%; overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.pscore { font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pprize { font-size: 12px; font-weight: 700; color: #806200; font-variant-numeric: tabular-nums; }
.lwin { height: 20px; margin-top: 1px; padding: 0 7px; background: #FBF3D9; color: #806200; font-size: 10px; }
/* The landing on the #3 plinth: a gold halo and a small confetti burst (Halo, Confetti). */
.halo { position: absolute; top: 3px; left: 50%; width: 54px; height: 54px; margin-left: -27px; border: 2px solid #C9A23A; border-radius: 50%; opacity: 0; pointer-events: none; }
.confetti { position: absolute; top: 30px; left: 50%; width: 0; height: 0; pointer-events: none; }
.confetti i { position: absolute; width: 6px; height: 9px; margin: -4.5px 0 0 -3px; border-radius: 2px; background: var(--ink); opacity: 0; }
.confetti i:nth-child(4n + 2) { background: var(--green); }
.confetti i:nth-child(4n + 3) { background: #C9A23A; }
.confetti i:nth-child(4n + 4) { background: #86847E; }
.lb-list { position: relative; height: calc(3 * var(--pitch) - (var(--pitch) - var(--row-h))); margin: 0; padding: 0; list-style: none; }
.lb-row {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--row-h);
  padding: 0 12px;
  border-radius: 13px;
  background: rgba(120, 116, 104, 0.07);
}
.lb-sam { top: 0; }
.lb-noor { top: var(--pitch); }
.lb-leo { top: calc(2 * var(--pitch)); }
.lb-kai { top: calc(3 * var(--pitch)); opacity: 0; } /* pushed off the list as You climbs */
.lb-rank { flex: none; width: 18px; font-size: 13px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.lav { flex: none; width: 26px; height: 26px; border-radius: 50%; }
.mA { background: linear-gradient(150deg, #E2C9A6, #B58C5F); }
.mB { background: linear-gradient(150deg, #C9D6C3, #7D9275); }
.mC { background: linear-gradient(150deg, #D8CFE3, #8F82A6); }
.mD { background: linear-gradient(150deg, #F0D2C4, #C08870); }
.mE { background: linear-gradient(150deg, #CFDCE6, #7F98AB); }
.mF { background: linear-gradient(150deg, #E6E0C8, #A69C70); }
.lname { flex: 1; min-width: 0; overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.lpts { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lb-foot { position: relative; display: grid; place-items: center; height: 62px; }
.themes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.themes span { padding: 4px 9px; border-radius: 10px; background: var(--fill); color: var(--ink-2); font-size: 11px; font-weight: 600; }
.themes .on { background: var(--ink); color: var(--paper-hi); }
/* The You card (YouCard.tsx): rank as a stat, views and the gap to the top 3. Hidden at the end,
   when You has taken the #3 plinth. */
.you-card {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border-radius: 20px;
  background: var(--paper-hi);
  box-shadow: 0 0 0 1px var(--sep), 0 14px 30px rgba(60, 50, 30, 0.16);
  opacity: 0;
}
.you-rank { min-width: 2.6ch; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.you-text { flex: 1; display: grid; min-width: 0; }
.you-title { font-size: 15px; font-weight: 650; }
.you-detail { overflow: hidden; font-size: 12px; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.you-move { font-size: 12px; color: var(--green); }
.s-lead .pin { --vis-h: min(58svh, 480px); }
@media (max-width: 639px) and (max-height: 760px) { .lb { zoom: 0.86; } }
@media (min-width: 960px) { .s-lead .pin { --vis-h: min(72svh, 720px); } }

/* Shared card language (the app's cards: cardHi on card, radius 22, warm shadow). */
.chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  background: var(--fill);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

/* ---- Sections (DIT-334) ------------------------------------------------------------------------
   How it works, For creators, For brands and FAQ share one rhythm: a section head, then content on
   the 4 pt grid. */
[hidden] { display: none !important; }
.band { padding-block: clamp(96px, 12vw, 168px); }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--pad); }
.sec-head { max-width: 780px; margin-bottom: clamp(40px, 5.5vw, 72px); }
.sec-head h2 {
  margin-top: 14px;
  font-size: clamp(34px, 6.2vw, 64px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
.lede { margin-top: 18px; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.45; letter-spacing: -0.01em; color: var(--ink-2); text-wrap: balance; }
h3 { margin: 0; }

/* How it works (DIT-334). The static layout is the default: the head, then three steps, each with a
   phone showing its finished screen (no JS, Reduce Motion). home.js adds `.is-scrub` and moves the
   three `.scr` screens into the one pinned `.dev`, then scrubs the story with scroll: the head hands
   over to the device, the device tilts with progress, its screen pushes from step to step, and the
   copy and the 01/02/03 indicator follow. Everything inside the phones is sized in em on `--u`, so
   the screens scale as one and home.js can move pieces by fixed em offsets without measuring. */
.how { padding-block: clamp(96px, 12vw, 168px) clamp(64px, 8vw, 112px); }
.how-pin { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--pad); }
.how-ind, .how-visual { display: none; }
.how-steps { display: grid; gap: 64px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); } }
.hs { display: grid; align-content: start; justify-items: start; gap: 28px; min-width: 0; }
.hs-n { display: block; font-size: clamp(40px, 4.2vw, 56px); font-weight: 700; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.hs-text h3 { margin-top: 16px; font-size: clamp(21px, 2vw, 26px); font-weight: 700; line-height: 1.2; letter-spacing: -0.028em; }
.hs-text p { max-width: 32ch; margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }

/* The phone: a CSS iPhone. 30 × 62 em with a 0.9 em bezel; the screen is 28.2 × 60.2 em. */
.phone {
  --u: clamp(6px, 1.9vw, 8px);
  position: relative;
  flex: none;
  width: calc(30 * var(--u));
  height: calc(62 * var(--u));
  padding: calc(0.9 * var(--u));
  border-radius: calc(5 * var(--u));
  background: #1E1E1C;
  box-shadow: inset 0 0 0 calc(0.22 * var(--u)) #4A4743, 0 calc(2 * var(--u)) calc(5 * var(--u)) rgba(60, 50, 30, 0.16);
  font-size: var(--u);
}
@media (min-width: 760px) { .phone { --u: clamp(5px, 0.62vw, 8px); } }
.phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: 4.1em; background: var(--paper); isolation: isolate; }
.phone-screen::before { content: ""; position: absolute; top: 1.1em; left: 50%; z-index: 5; width: 8.4em; height: 2.5em; margin-left: -4.2em; border-radius: 1.25em; background: #000; }
.phone-screen::after { content: "9:41"; position: absolute; top: 1.15em; left: 2.3em; z-index: 5; font-size: 1.2em; font-weight: 650; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

.scr { position: absolute; inset: 0; padding: 5em 1.7em 0; background: var(--paper); }
.scr-title { font-size: 2.1em; font-weight: 700; letter-spacing: -0.035em; }
.scr svg { display: block; width: 100%; height: 100%; }

/* 1 · Apply: the profile builds itself and the brand lets you in. */
.scr-apply { display: flex; flex-direction: column; gap: 1.3em; padding-bottom: 2.4em; }
.ap-av { align-self: center; margin-top: 0.4em; }
.ap-av .pav { width: 7.4em; height: 7.4em; box-shadow: 0 0 0 0.3em var(--paper), 0 0 0 0.55em var(--ink); }
.ap-field { display: grid; gap: 0.5em; }
.ap-k { font-size: 1.05em; font-weight: 600; color: var(--ink-2); }
.ap-v { position: relative; display: flex; align-items: center; height: 3.7em; padding-left: 1.1em; border-radius: 1.1em; background: var(--paper-hi); box-shadow: 0 0 0 0.1em var(--sep); }
.ap-ph { position: absolute; inset: 0 auto 0 0; display: flex; align-items: center; padding-left: inherit; font-size: 1.35em; color: var(--ink-3); opacity: 0; }
.ty { font-size: 1.35em; font-weight: 600; letter-spacing: -0.01em; white-space: pre; }
.caret { width: 0.16em; height: 1.8em; margin-left: 0.12em; border-radius: 0.1em; background: var(--blue); opacity: 0; }
.ap-sizes { display: flex; align-items: center; justify-content: space-between; }
.ap-chips { display: flex; gap: 0.6em; }
.ap-chips > span { position: relative; display: grid; place-items: center; width: 3.4em; height: 2.6em; border-radius: 1.6em; background: var(--fill); font-size: 1.2em; font-weight: 650; }
.ap-m b { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; background: var(--ink); color: var(--paper-hi); }
.ap-state { display: grid; margin-top: auto; }
.ap-state > span { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: 0.35em; height: 3.3em; border-radius: 1.65em; font-size: 1.35em; font-weight: 650; }
.ap-btn { background: var(--ink); color: var(--paper-hi); opacity: 0; }
.ap-sent { background: var(--fill); color: var(--ink-2); opacity: 0; }
.ap-in { background: var(--green-bg); color: var(--green); }
.ap-in svg { width: 1.1em; height: 1.1em; }

/* 2 · Post: a camera roll; one video flies into the upload card, the ring fills, In review. */
.rt, .fly { position: absolute; width: 7.8em; height: 10.4em; overflow: hidden; border-radius: 1em; background: #8E7A60; }
.rt-1 { left: 1.7em; top: 9.2em; }
.rt-2, .fly { left: 10.2em; top: 9.2em; }
.rt-3 { left: 18.7em; top: 9.2em; }
.rt-4 { left: 1.7em; top: 20.3em; }
.rt-5 { left: 10.2em; top: 20.3em; }
.rt-6 { left: 18.7em; top: 20.3em; }
.rt:not(.rt-pick) { opacity: 0.5; }
.rt-1 svg, .rt-6 svg { filter: hue-rotate(28deg) brightness(0.95); }
.rt-3 svg, .rt-4 svg { transform: scaleX(-1); filter: hue-rotate(-22deg) saturate(0.85); }
.rt-5 svg { filter: hue-rotate(60deg) brightness(0.9); }
.rt-pick i { position: absolute; top: 0.6em; right: 0.6em; display: grid; place-items: center; width: 2.2em; height: 2.2em; border: 0.2em solid #fff; border-radius: 50%; background: var(--blue); color: #fff; }
.rt-pick i svg { width: 1.2em; height: 1.2em; }
.fly { z-index: 3; transform-origin: 0 0; box-shadow: 0 1.6em 3em rgba(30, 30, 28, 0.35); opacity: 0; }
.up-label { position: absolute; left: 1.7em; top: 32.4em; font-size: 1em; }
.up-label { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.up-card, .pd-card { position: absolute; left: 1.7em; width: 24.8em; height: 8.2em; display: flex; align-items: center; gap: 1.1em; padding: 0 1.2em 0 1em; border-radius: 1.6em; background: var(--paper-hi); box-shadow: 0 0 0 0.1em var(--sep), 0 1em 2.4em rgba(60, 50, 30, 0.12); }
.up-card { top: 35em; }
.up-thumb { flex: none; width: 4.8em; height: 6.4em; overflow: hidden; border-radius: 0.65em; }
.up-txt { display: grid; flex: 1; justify-items: start; gap: 0.5em; min-width: 0; }
.up-txt > b { font-size: 1.45em; font-weight: 650; letter-spacing: -0.015em; }
.up-st, .pd-flip { display: grid; }
.up-st > span, .pd-flip > span { grid-area: 1 / 1; justify-self: start; }
.up-k { font-size: 1.15em; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; opacity: 0; }
.up-pill, .pd-a, .pd-b { display: inline-flex; align-items: center; gap: 0.3em; height: 2.1em; padding: 0 0.85em; border-radius: 1.05em; font-size: 1.1em; font-weight: 650; white-space: nowrap; }
.up-pill, .pd-a { background: var(--gold-bg); color: var(--gold); }
.ring { position: relative; flex: none; width: 3.4em; height: 3.4em; border-radius: 50%; box-shadow: inset 0 0 0 0.36em var(--fill); opacity: 0; }
.ring-h { position: absolute; top: 0; width: 50%; height: 100%; overflow: hidden; }
.ring-r { right: 0; }
.ring-l { left: 0; }
.ring-h i { position: absolute; top: 0; width: 200%; height: 100%; border: 0.36em solid; border-color: var(--ink) var(--ink) transparent transparent; border-radius: 50%; }
.ring-r i { left: -100%; transform: rotate(45deg); }
.ring-l i { left: 0; transform: rotate(225deg); }

/* 3 · Get paid: Approved, +$120, the month rolls from $220 to $340, then the payout line. */
.pd-k { position: absolute; left: 1.7em; top: 9.4em; }
.pd-k { font-size: 1em; font-weight: 600; color: var(--ink-2); }
.pd-amt { position: absolute; left: calc(1.7em / 5.4); top: calc(11.2em / 5.4); display: flex; font-size: 5.4em; font-weight: 700; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; transform-origin: 0 50%; }
.od { display: inline-block; height: 1em; overflow: hidden; }
.od > span { display: flex; flex-direction: column; }
.od b { display: block; height: 1em; font-weight: inherit; }
.od-h > span { transform: translateY(-1em); }
.od-t > span { transform: translateY(-2em); }
.pd-pay { position: absolute; left: 1.7em; top: 18.4em; display: inline-flex; align-items: center; height: 2.4em; padding: 0 0.9em; border-radius: 1.2em; background: var(--fill); font-size: 1em; font-weight: 650; color: var(--ink-2); }
.pd-card { top: 22.6em; }
.pd-flip { perspective: 30em; }
.pd-a, .pd-b { backface-visibility: hidden; }
.pd-a { opacity: 0; }
.pd-b { background: var(--green-bg); color: var(--green); }
.pd-b svg { width: 1em; height: 1em; }
.pd-chip { position: absolute; left: 17.4em; top: 23.4em; z-index: 3; display: grid; place-items: center; height: 3em; padding: 0 1em; border-radius: 1.5em; background: var(--green); color: #fff; box-shadow: 0 0.8em 1.8em rgba(28, 124, 54, 0.35); opacity: 0; }
.pd-chip b { font-size: 1.3em; font-weight: 700; font-variant-numeric: tabular-nums; }
.pd-rows { position: absolute; left: 1.7em; top: 33.4em; width: 24.8em; margin: 0; padding: 0; list-style: none; }
.pd-rows li { display: flex; align-items: center; justify-content: space-between; height: 3.8em; border-top: 0.1em solid var(--sep); }
.pd-rows span, .pd-rows b { font-size: 1.2em; font-weight: 600; }
.pd-rows b { color: var(--green); font-variant-numeric: tabular-nums; }

/* Live: one pinned device, the copy beside it (below it on iPhone). 280svh of scrub. */
.how.is-scrub { height: 380vh; height: 380svh; padding: 0; }
.is-scrub .how-pin {
  position: sticky;
  top: 0;
  max-width: none;
  height: 100vh;
  height: 100svh;
  padding: 0;
  overflow: hidden;
  overflow: clip;
}
.is-scrub .how-head { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; max-width: none; margin: 0; padding: 0 var(--pad); text-align: center; pointer-events: none; }
.is-scrub .how-head-in { max-width: 900px; }
.is-scrub .how-head h2 { font-size: clamp(36px, 8.4vw, 92px); letter-spacing: -0.045em; }
.is-scrub .how-stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(20px, 3.4svh, 36px); padding: 52px var(--pad) 24px; }
.is-scrub .how-visual { position: relative; order: -1; display: grid; place-items: center; }
.is-scrub .how-copy { width: 100%; max-width: 420px; text-align: center; }
.is-scrub .how-ind { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: clamp(14px, 2.4svh, 26px); }
.hi { display: grid; gap: 8px; text-align: left; }
.hi b { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.hi i { display: block; height: 2px; overflow: hidden; border-radius: 1px; background: var(--sep); }
.hi s { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; }
.is-scrub .how-steps { display: grid; grid-template-columns: none; gap: 0; }
.is-scrub .hs { grid-area: 1 / 1; display: block; }
.is-scrub .hs-phone, .is-scrub .hs-n { display: none; }
.is-scrub .hs-text h3 { margin-top: 0; font-size: clamp(24px, 6.4vw, 30px); letter-spacing: -0.03em; }
.is-scrub .hs-text p { max-width: 34ch; margin: 6px auto 0; font-size: clamp(15px, 4vw, 17px); }
.dev { --u: clamp(4.6px, min(0.9vh, 2.1vw), 8.5px); z-index: 1; box-shadow: inset 0 0 0 calc(0.22 * var(--u)) #4A4743, 0 calc(1.4 * var(--u)) calc(3 * var(--u)) rgba(30, 30, 28, 0.18); }
@supports (height: 1svh) { .dev { --u: clamp(4.6px, min(0.9svh, 2.1vw), 8.5px); } }
.dev-screen .scr { box-shadow: -1.2em 0 3em rgba(30, 30, 28, 0.14); }
.dev-shadow { position: absolute; left: 50%; bottom: -3%; width: 120%; height: 12%; margin-left: -60%; border-radius: 50%; background: radial-gradient(closest-side, rgba(60, 50, 30, 0.3), rgba(60, 50, 30, 0)); }
.glow { position: absolute; left: 50%; top: 50%; width: 260%; aspect-ratio: 1; margin: -130% 0 0 -130%; border-radius: 50%; opacity: 0; pointer-events: none; }
.g-1 { background: radial-gradient(closest-side, rgba(226, 201, 166, 0.55), rgba(226, 201, 166, 0)); }
.g-2 { background: radial-gradient(closest-side, rgba(110, 160, 120, 0.32), rgba(110, 160, 120, 0)); }
.g-3 { background: radial-gradient(closest-side, rgba(235, 203, 114, 0.5), rgba(235, 203, 114, 0)); }
@media (min-width: 960px) {
  .is-scrub .how-stage { flex-direction: row; gap: clamp(56px, 8vw, 150px); padding: 48px clamp(32px, 6vw, 96px); }
  .is-scrub .how-visual { order: 0; }
  .is-scrub .how-copy { flex: 0 1 440px; text-align: left; }
  .is-scrub .hs-text h3 { font-size: clamp(36px, 3.6vw, 56px); line-height: 1.05; letter-spacing: -0.04em; }
  .is-scrub .hs-text p { margin: 16px 0 0; font-size: clamp(17px, 1.4vw, 21px); }
  .is-scrub .how-ind { margin-bottom: 36px; }
  .dev { --u: clamp(7px, min(1.2vh, 1.1vw), 11.5px); }
  @supports (height: 1svh) { .dev { --u: clamp(7px, min(1.2svh, 1.1vw), 11.5px); } }
}

/* Feature cards: headline, one line, one UI snippet on a stage. 3×2 from 960 px, 2 columns from
   640 px, and one scroll-snap row you swipe yourself on iPhone (no auto-scroll). */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 8px 8px 26px;
  border-radius: 30px;
  background: var(--paper-hi);
  box-shadow: 0 0 0 1px var(--sep), 0 1px 2px rgba(60, 50, 30, 0.04);
}
.stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 244px;
  overflow: hidden;
  border-radius: 23px;
  background: var(--ground);
}
.card > h3 { margin: 22px 16px 0; font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: -0.026em; }
.card > p { margin: 8px 16px 0; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.rail { border-radius: 30px; }
.rail:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
@media (max-width: 639px) {
  .rail {
    margin-inline: calc(-1 * var(--pad));
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    scrollbar-width: none;
    border-radius: 0;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail:focus-visible { outline-offset: -2px; }
  /* The list carries the side padding, so the last card can snap clear of the edge. */
  .cards { display: flex; gap: 12px; width: max-content; padding: 2px var(--pad) 8px; }
  .card { flex: none; width: min(84vw, 340px); scroll-snap-align: start; }
}
.sheet { border-radius: 18px; background: var(--paper-hi); box-shadow: var(--shadow); }

/* No scripts: three video tiles whose pills flip from In review to Approved. */
.tiles { display: flex; align-items: center; gap: 10px; width: min(258px, 88%); }
.tile { position: relative; flex: 1; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 13px; background: #8E7A60; box-shadow: var(--shadow); }
.tile:nth-child(2) { transform: translateY(-10px); }
.tile-shot { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.tile-b .tile-shot { transform: scaleX(-1); filter: hue-rotate(-20deg) saturate(0.8); }
.tile-c .tile-shot { filter: hue-rotate(24deg) brightness(0.92); }
.flip { position: absolute; left: 6px; right: 6px; bottom: 7px; height: 21px; perspective: 240px; }
.f-a, .f-b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 11px;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
  backface-visibility: hidden;
}
.f-a { background: rgba(23, 22, 21, 0.6); color: #fff; opacity: 0; }
.f-b { background: var(--green-bg); color: var(--green); }
.f-b svg, .pill-ok svg { width: 11px; height: 11px; }
.tile:nth-child(2) { --fd: 380ms; }
.tile:nth-child(3) { --fd: 760ms; }

/* Campaign: optional, picked over "No campaign"; the 2× stamps in and a glint passes once. */
.camp { display: grid; justify-items: center; gap: 12px; width: min(290px, 92%); }
.camp-opt { padding: 7px 14px; border-radius: 16px; background: var(--paper-hi); color: var(--ink-2); font-size: 13px; font-weight: 600; opacity: 0.6; }
.camp-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: 100%;
  padding: 10px 18px 10px 10px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: 0 14px 30px rgba(30, 30, 28, 0.24);
}
.camp-ico { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--gold-bg); }
.camp-ico svg { width: 16px; height: 16px; fill: var(--gold); }
.camp-txt { display: grid; gap: 2px; min-width: 0; }
.camp-txt b { font-size: 15px; font-weight: 650; letter-spacing: -0.015em; }
.camp-meta { font-size: 12.5px; color: var(--on-ink-2); white-space: nowrap; }
.camp-x { display: inline-block; color: #EBCB72; font-weight: 700; }
.camp-glint { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.2) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }

/* Feedback: the decision, three of the five scores and the note. */
.fb { display: grid; gap: 12px; width: min(266px, 88%); padding: 14px; }
.fb-top { display: flex; align-items: center; gap: 12px; }
.fb-thumb { flex: none; width: 40px; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 9px; }
.fb-thumb svg, .rv-card svg { display: block; width: 100%; height: 100%; }
.fb-meta { display: grid; justify-items: start; gap: 6px; }
.fb-title { font-size: 15px; font-weight: 650; letter-spacing: -0.015em; }
.pill-ok { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 12px; background: var(--green-bg); color: var(--green); font-size: 12px; font-weight: 650; }
.scores { display: flex; flex-wrap: wrap; gap: 6px; }
.scores span { padding: 5px 9px; border-radius: 10px; background: var(--fill); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.scores b { display: inline-block; min-width: 1ch; color: var(--ink); font-variant-numeric: tabular-nums; }
.fb-note { padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: var(--ground); font-size: 13px; line-height: 1.35; }

/* Product: the request turns Approved, then the box arrives. */
.pr, .po { display: grid; justify-items: center; gap: 8px; width: min(276px, 90%); }
.pr-card, .po-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; }
.pr-ico { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ground); }
.pr-ico svg { width: 26px; height: 26px; }
.pr-txt { display: grid; flex: 1; gap: 2px; min-width: 0; }
.pr-k { font-size: 11.5px; font-weight: 500; color: var(--ink-2); }
.pr-t { font-size: 14px; font-weight: 650; letter-spacing: -0.01em; }
.swap { display: grid; flex: none; overflow: hidden; border-radius: 12px; }
.s-a, .s-b { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; height: 24px; padding: 0 9px; font-size: 11.5px; font-weight: 650; }
.s-a { background: var(--fill); color: var(--ink-2); opacity: 0; }
.s-b { background: var(--green-bg); color: var(--green); }
.pr-box { display: block; width: 96px; height: auto; }

/* Win the week: the podium rises out of the stage's bottom edge, #1 last. */
.pod { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; align-self: end; gap: 8px; width: min(268px, 90%); padding-top: 16px; overflow: hidden; }
.pod-col { display: grid; justify-items: center; gap: 2px; min-width: 0; text-align: center; }
.pod-col .pav { width: 34px; height: 34px; margin-bottom: 4px; }
.pod-1 .pav { width: 40px; height: 40px; box-shadow: 0 0 0 2px var(--paper-hi), 0 0 0 4px #C9A23A; }
.pod-h { max-width: 100%; overflow: hidden; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.pod-s { font-size: 10.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pod-bar { display: grid; align-content: start; justify-items: center; gap: 2px; width: 100%; margin-top: 6px; padding-top: 8px; border-radius: 13px 13px 0 0; background: var(--paper-hi); box-shadow: 0 0 0 1px var(--sep); }
.pod-1 .pod-bar { height: 92px; }
.pod-2 .pod-bar { height: 72px; }
.pod-3 .pod-bar { height: 58px; }
.pod-bar b { font-size: 18px; font-weight: 700; }
.pod-bar i { font-size: 11px; font-style: normal; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.pod-2 { --pd: 160ms; }
.pod-1 { --pd: 360ms; }

/* Every video, counted: the month's total counts up from $0. */
.earned { width: min(252px, 86%); padding: 16px 16px 8px; text-align: center; }
.e-k { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.e-amt { margin-top: 2px; font-size: 46px; font-weight: 700; line-height: 1.1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.e-rows { margin: 8px 0 0; padding: 0; list-style: none; text-align: left; }
.e-rows li { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--sep); font-size: 12.5px; font-weight: 600; }
.e-rows b { color: var(--green); font-variant-numeric: tabular-nums; }
.e-rows li:nth-child(2) { --rd: 90ms; }
.e-rows li:nth-child(3) { --rd: 180ms; }

/* ---- For brands: the same cards on ink ------------------------------------------------------- */
.brands {
  margin-inline: clamp(0px, 1.6vw, 20px);
  border-radius: clamp(0px, 3.4vw, 44px);
  background: var(--ink);
  color: var(--on-ink);
}
.brands .eyebrow, .brands .card > p { color: var(--on-ink-2); }
.brands .card { background: var(--ink-card); box-shadow: 0 0 0 1px var(--ink-sep); }
.brands .stage { background: var(--ink-stage); }
.brands .sheet { color: var(--ink); } /* light UI sheets on the dark stage keep ink text */
/* With motion, home.js clears the band's own ink and grows this layer out of the light page as the
   band scrolls in (transform and opacity only). Without JS or with Reduce Motion it never shows. */
.brands { position: relative; isolation: isolate; }
.brands-bg { display: none; }
.brands.has-sweep { background: none; }
.brands.has-sweep .brands-bg { position: absolute; inset: 0; z-index: -1; display: block; border-radius: clamp(28px, 3.4vw, 44px); background: var(--ink); transform-origin: 50% 0; }

/* Section heads: enter.js splits the h2 into words so each rises out of its own line mask. */
.wd { display: inline-block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; vertical-align: top; }
.wd > span { display: inline-block; }
.brands .rail:focus-visible { outline-color: var(--on-ink); }
.brands-end { margin-top: clamp(40px, 5vw, 64px); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.45; color: var(--on-ink-2); }
.brands-end p { margin: 0; }
/* The brand onboarding call to action (DIT-580): a light pill on the dark brands band. */
.brand-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 18px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--paper-hi);
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 160ms ease, opacity 160ms ease;
}
.brand-cta:hover { opacity: 0.9; }
.brand-cta:active { transform: scale(0.97); }
.brand-cta:focus-visible { outline: 2px solid var(--paper-hi); outline-offset: 3px; }
.brands-end .brands-mail { margin-top: 12px; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .brand-cta { transition: none; } }
.brands-end .brands-mail a { color: var(--on-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; border-radius: 4px; }

/* Review like you scroll: the top video swipes away approved and the count ticks down. */
.rv { display: grid; justify-items: center; gap: 10px; }
.rv-head { font-size: 13px; font-weight: 600; color: var(--on-ink); }
.rv-n { display: inline-block; min-width: 3ch; text-align: right; font-variant-numeric: tabular-nums; }
.rv-deck { position: relative; width: 86px; aspect-ratio: 9 / 16; }
.rv-card { position: absolute; inset: 0; overflow: hidden; border-radius: 14px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.rv-next svg { filter: hue-rotate(28deg) brightness(0.95); }
.rv-by { position: absolute; left: 7px; bottom: 7px; color: #fff; font-size: 9.5px; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.rv-top { opacity: 0; transform: translateX(150%) rotate(16deg); } /* finished: swiped away */
.rv-btns { display: flex; gap: 6px; }
.rv-btns span { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 15px; background: rgba(251, 250, 247, 0.12); color: var(--on-ink); font-size: 12px; font-weight: 600; }
.rv-btns .rv-ok { background: var(--green); color: #fff; }

/* Feedback in seconds: the five-part scorecard fills. */
.sc { display: grid; gap: 10px; width: min(262px, 88%); padding: 16px; }
.sc-row { display: grid; grid-template-columns: 60px 1fr 12px; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; }
.sc-row span { color: var(--ink-2); }
.sc-row i { display: block; height: 6px; overflow: hidden; border-radius: 3px; background: var(--fill); }
.sc-row b { display: block; height: 100%; border-radius: 3px; background: var(--ink); transform-origin: 0 50%; }
.sc-row .w9 { transform: scaleX(0.9); }
.sc-row .w8 { transform: scaleX(0.8); }
.sc-row .w7 { transform: scaleX(0.7); }
.sc-row em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.sc-row:nth-child(2) { --bd: 80ms; }
.sc-row:nth-child(3) { --bd: 160ms; }
.sc-row:nth-child(4) { --bd: 240ms; }
.sc-row:nth-child(5) { --bd: 320ms; }

/* Product in one tap: Approve, and the draft order is created. */
.po { gap: 14px; }
.po-btn { display: inline-flex; flex: none; align-items: center; height: 30px; padding: 0 13px; border-radius: 15px; background: var(--ink); color: var(--on-ink); font-size: 12.5px; font-weight: 650; }
.po-toast { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 10px; border-radius: 19px; background: var(--paper-hi); font-size: 13px; font-weight: 650; color: var(--ink); box-shadow: var(--shadow); }
.po-toast svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--green); color: #fff; }

/* Pay everyone at once: the button presses and the total gets its check. */
.pay { display: grid; justify-items: center; gap: 2px; width: min(252px, 86%); padding: 16px; text-align: center; }
.pay-k { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.pay-amt { display: flex; align-items: center; gap: 8px; font-size: 38px; font-weight: 700; line-height: 1.2; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.pay-ok { display: block; }
.pay-ok svg { display: block; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--green); color: #fff; }
.pay-btn { display: grid; place-items: center; width: 100%; height: 38px; margin-top: 10px; border-radius: 19px; background: var(--ink); color: var(--on-ink); font-size: 13.5px; font-weight: 650; }

/* Prizes that run themselves: the board's lock clicks shut. */
.lk { display: grid; gap: 10px; width: min(252px, 86%); padding: 14px 16px 6px; }
.lk-chip { display: inline-flex; align-items: center; justify-self: start; gap: 6px; height: 28px; padding: 0 11px 0 9px; border-radius: 14px; background: var(--gold-bg); color: var(--gold); font-size: 12px; font-weight: 650; }
.lk-ico { width: 14px; height: 14px; overflow: visible; }
.lk-shackle { transform-box: fill-box; transform-origin: 50% 100%; }
.lk-rows { margin: 0; padding: 0; list-style: none; }
.lk-rows li { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--sep); font-size: 13px; font-weight: 600; }
.lk-rows span { color: var(--ink-2); }
.lk-rows b { font-variant-numeric: tabular-nums; }
.lk-rows li:nth-child(2) { --rd: 90ms; }
.lk-rows li:nth-child(3) { --rd: 180ms; }

/* One inbox: three threads, unread dots pop in. */
.ib { width: min(276px, 90%); padding: 12px 14px 4px; }
.ib-head { display: flex; align-items: baseline; justify-content: space-between; font-size: 15px; font-weight: 700; letter-spacing: -0.015em; }
.ib-head span { font-size: 11.5px; font-weight: 600; color: var(--blue); letter-spacing: 0; }
.ib-rows { margin: 8px 0 0; padding: 0; list-style: none; }
.ib-rows li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--sep); }
.ib-t { display: grid; flex: 1; min-width: 0; }
.ib-t b { font-size: 12.5px; font-weight: 650; }
.ib-t span { overflow: hidden; font-size: 12px; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }
.ib-rows i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.ib-rows li:nth-child(2) i { --dd: 120ms; }
.ib-rows li:nth-child(3) i { --dd: 240ms; }

/* ---- FAQ ------------------------------------------------------------------------------------- */
.faq-wrap { max-width: 880px; }
.faq .sec-head { margin-bottom: 32px; }
.tabs { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-bottom: 24px; padding: 4px; border-radius: 24px; background: var(--fill); }
.tab {
  position: relative;
  z-index: 1;
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 20px;
  background: none;
  color: var(--ink-2);
  font: 600 15px/1 var(--font);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 210ms ease-out;
}
.tab[aria-selected="true"] { color: var(--ink); }
.tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tab-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 20px; background: var(--paper-hi); box-shadow: 0 1px 3px rgba(60, 50, 30, 0.14); transition: transform 460ms var(--spring-hero); }
.tabs[data-active="1"] .tab-pill { transform: translateX(100%); }
.panel-h { margin: 40px 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.has-tabs .panel-h { display: none; }
.has-tabs .panels { display: grid; }
.has-tabs .panel { grid-area: 1 / 1; min-width: 0; }
.panel.is-leaving { pointer-events: none; }
.faq details { border-top: 1px solid var(--sep); }
.faq details:last-child { border-bottom: 1px solid var(--sep); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 0;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 650;
  letter-spacing: -0.02em;
  list-style: none;
  cursor: pointer;
  border-radius: 8px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform 420ms var(--spring-settle);
}
.faq details[open]:not(.is-closing) summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.ans { max-width: 64ch; padding: 0 32px 24px 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.ans p, .ans ul { margin: 0; }
.ans ul { padding-left: 20px; }
.ans li + li, .ans ul + p { margin-top: 8px; }
.ans b { font-weight: 650; color: var(--ink); }
.ans a { color: var(--ink); text-underline-offset: 3px; border-radius: 4px; }
.ans a:focus-visible, .brands-end a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ---- One screen per section, one grid (DIT-386) ------------------------------------------------
   Layout only: nothing here removes or shortens a scene. The pinned scenes (How it works, the
   leaderboard) keep their scroll length; their sticky stage is one screen. The bands (For creators,
   For brands, FAQ) are at least one screen tall with the same top and bottom space (--sec-pad).
   Every section's copy starts on one left edge (--edge: the --wrap container plus --pad), uses one
   title size (--title), and from 960 px sits in one copy column (--copy-w) with the visual beside it,
   as the pinned scenes already did. Card stages share the rest of the screen and zoom their snippet
   to fit (container queries), so a band never outgrows the screen at 1280 × 800 or 1440 × 900. */
:root {
  --wrap: 1400px;
  --edge: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
  --copy-w: clamp(260px, 23vw, 360px);
  --col-gap: clamp(40px, 4.5vw, 88px);
  --sec-pad: clamp(48px, 8vh, 96px);
  --title: clamp(32px, min(7.6vw, 6.4vh), 60px);
  --brands-m: clamp(0px, 1.6vw, 20px);
  --foot-h: 138px; /* the footer's height on iPhone (two lines of links); 102 px from 640 px */
}
@supports (height: 1svh) {
  :root { --sec-pad: clamp(48px, 8svh, 96px); --title: clamp(32px, min(7.6vw, 6.4svh), 60px); }
}
@media (min-width: 640px) { :root { --foot-h: 102px; } }

.copy h2, .sec-head h2 { margin-top: 14px; font-size: var(--title); line-height: 1.04; letter-spacing: -0.038em; }
.copy .sub { font-size: clamp(16px, 1.5vw, 19px); }

.wrap { max-width: none; padding-inline: var(--edge); }
.brands { margin-inline: var(--brands-m); }
.brands .wrap { padding-inline: calc(var(--edge) - var(--brands-m)); }
.band {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: var(--sec-pad);
}
.sec-head { margin-bottom: clamp(28px, 4.5svh, 56px); }
.faq { justify-content: flex-start; } /* answers open downward; the tabs never move */

.pin { padding: var(--sec-pad) var(--pad) clamp(24px, 4svh, 40px); }
.how { padding-block: var(--sec-pad); }
.how-pin { max-width: none; padding-inline: var(--edge); }
.is-scrub .how-pin { padding: 0; }
.is-scrub .how-stage { padding: var(--sec-pad) var(--pad) clamp(24px, 3svh, 32px); }
.closing { min-height: calc(100vh - var(--foot-h)); min-height: calc(100svh - var(--foot-h)); padding-inline: var(--pad); }

/* A short iPhone (SE, or a toolbar showing): the card stages give up a little height. */
@media (max-width: 639px) and (max-height: 740px) {
  :root { --sec-pad: 40px; }
  .stage { height: 188px; }
  .stage > * { zoom: 0.78; }
  .brands-end { margin-top: 24px; }
}

@media (min-width: 960px) {
  /* The pinned scenes: copy column on the edge, the visual centred in the rest. */
  .pin, .is-scrub .how-stage { justify-content: flex-start; gap: var(--col-gap); padding-inline: var(--edge); }
  .copy, .is-scrub .how-copy { flex: 0 0 var(--copy-w); max-width: var(--copy-w); }
  .visual, .is-scrub .how-visual { flex: 1 1 0; min-width: 0; }
  .is-scrub .hs-text h3 { font-size: var(--title); }

  /* The bands: the same two columns. */
  .band .wrap { display: grid; grid-template-columns: var(--copy-w) minmax(0, 1fr); column-gap: var(--col-gap); align-items: center; }
  .band .sec-head { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  .band .rail { grid-column: 2; grid-row: 1 / span 2; }
  .brands .sec-head { grid-row: 1; align-self: end; }
  .brands-end { grid-column: 1; grid-row: 2; align-self: start; margin-top: 20px; font-size: clamp(16px, 1.3vw, 18px); }
  .faq .wrap { align-items: start; }
  .faq .tabs { grid-column: 2; justify-self: start; }
  .faq .panels { grid-column: 2; max-width: 720px; }
  .faq .panel-h:first-child { margin-top: 0; }

  /* Cards: 3 × 2 in the visual column, as tall as the screen allows; each stage takes what is left
     after its title and line, and its snippet zooms to the stage. */
  .rail { height: calc(100vh - 2 * var(--sec-pad)); height: calc(100svh - 2 * var(--sec-pad)); min-height: 500px; max-height: 760px; }
  .cards { grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; height: 100%; }
  .card { min-height: 0; padding: 6px 6px 18px; border-radius: 26px; }
  .stage { flex: 1 1 0; height: auto; min-height: 0; border-radius: 21px; container: stage / size; }
  .card > h3 { margin: 14px 12px 0; font-size: 19px; }
  .card > p { margin: 5px 12px 0; font-size: 14.5px; line-height: 1.4; }
}
/* Snippets are drawn for a stage about 244 px tall and 330 px wide; the smaller fit wins. */
@container stage (max-height: 236px) or (max-width: 300px) { .stage > * { zoom: 0.9; } }
@container stage (max-height: 212px) or (max-width: 270px) { .stage > * { zoom: 0.8; } }
@container stage (max-height: 188px) or (max-width: 240px) { .stage > * { zoom: 0.72; } }
@container stage (max-height: 164px) or (max-width: 212px) { .stage > * { zoom: 0.62; } }
@container stage (max-height: 140px) { .stage > * { zoom: 0.52; } }

/* ---- Enter motion: played once, only when JS armed it and motion is allowed --------------------
   enter.js adds `.is-armed` (rise) and `.is-armed-play` (snippet) to things still off screen, then
   `.is-in` and `.is-played` as they enter. Pre-states sit on `:not(.is-in)` / `:not(.is-played)`,
   so the played keyframes animate from them back to the finished CSS above. */
@media (prefers-reduced-motion: no-preference) {
  .is-armed:not(.is-in) { opacity: 0; transform: translateY(36px); }
  .is-armed.is-in { transition: opacity 700ms ease-out var(--d, 0ms), transform 1000ms var(--spring-settle) var(--d, 0ms), filter 800ms ease-out var(--d, 0ms); }

  /* Section heads: the block stays put; the eyebrow and lede fade up and the words rise out of
     their masks one after another. */
  .sec-head.is-armed:not(.is-in) { opacity: 1; transform: none; }
  .sec-head.is-armed:not(.is-in) .eyebrow, .sec-head.is-armed:not(.is-in) .lede { opacity: 0; transform: translateY(14px); }
  .sec-head.is-armed.is-in .eyebrow { transition: opacity 600ms ease-out, transform 900ms var(--spring-settle); }
  .sec-head.is-armed.is-in .lede { transition: opacity 700ms ease-out 520ms, transform 1000ms var(--spring-settle) 520ms; }
  .sec-head.is-armed:not(.is-in) .wd > span { transform: translateY(112%) rotate(3deg); }
  .sec-head.is-armed.is-in .wd > span { transition: transform 1100ms var(--spring-settle) calc(100ms + var(--wi, 0) * 70ms); }

  /* Cards come up out of the page with depth: a tilt back, a rise, and a shadow that blooms as
     they land and settles to the resting one. */
  .card { transform-origin: 50% 100%; }
  .card.is-armed:not(.is-in) { transform: perspective(1400px) translateY(72px) rotateX(18deg) scale(0.95); }
  .card.is-armed.is-in { transition: opacity 800ms ease-out var(--d, 0ms), transform 1400ms var(--spring-settle) var(--d, 0ms); }
  .card::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: 0 44px 80px -28px rgba(60, 50, 30, 0.42); opacity: 0; pointer-events: none; }
  .brands .card::after { box-shadow: 0 44px 90px -24px rgba(0, 0, 0, 0.75); }
  .card.is-armed.is-in::after { animation: bloom 1700ms ease-out calc(var(--d, 0ms) + 120ms) both; }
  @media (max-width: 639px) { .card::after { display: none; } } /* the swipe row clips a deep shadow */
  .cards > :nth-child(3n + 2) { --d: 110ms; }
  .cards > :nth-child(3n + 3) { --d: 220ms; }
  @media (min-width: 640px) and (max-width: 959px) {
    .cards > :nth-child(odd) { --d: 0ms; }
    .cards > :nth-child(even) { --d: 110ms; }
  }

  /* No scripts: each pill flips to Approved, one tile after the other. */
  .is-armed-play:not(.is-played) .f-a { opacity: 1; }
  .is-armed-play:not(.is-played) .f-b { opacity: 0; transform: rotateX(-90deg); }
  .is-played .f-a { animation: flip-out 240ms ease-in var(--fd, 0ms) both; }
  .is-played .f-b { animation: flip-in 620ms var(--spring-settle) calc(var(--fd, 0ms) + 200ms) both; }

  /* Campaign: the chip is picked, the 2× stamps, a glint passes. */
  .is-armed-play:not(.is-played) .camp-opt { opacity: 1; }
  .is-armed-play:not(.is-played) .camp-chip { opacity: 0; transform: translateY(18px) scale(0.94); }
  .is-armed-play:not(.is-played) .camp-x { opacity: 0; }
  .is-played .camp-opt { transition: opacity 500ms ease-out 200ms; }
  .is-played .camp-chip { animation: pop-up 900ms var(--spring-settle) 120ms both; }
  .is-played .camp-x { animation: stamp 520ms cubic-bezier(0.34, 1.4, 0.64, 1) 640ms both; }
  .is-played .camp-glint { animation: glint 900ms ease-in-out 900ms both; }

  /* Feedback: Approved pops, the scores count up (enter.js), the note arrives. */
  .is-armed-play:not(.is-played) .pill-ok, .is-armed-play:not(.is-played) .fb-note { opacity: 0; }
  .is-armed-play:not(.is-played) .scores span { opacity: 0; }
  .is-played .pill-ok { animation: pop 560ms cubic-bezier(0.34, 1.5, 0.64, 1) 80ms both; }
  .is-played .scores span { animation: rise-in 560ms var(--spring-settle) both; }
  .is-played .scores span:nth-child(2) { animation-delay: 120ms; }
  .is-played .scores span:nth-child(3) { animation-delay: 240ms; }
  .is-played .fb-note { animation: rise-in 640ms var(--spring-settle) 900ms both; }

  /* Product: Requested rolls to Approved, then the box slides in. */
  .is-armed-play:not(.is-played) .s-a { opacity: 1; }
  .is-armed-play:not(.is-played) .s-b { opacity: 0; transform: translateY(100%); }
  .is-armed-play:not(.is-played) .pr-box { opacity: 0; transform: translateX(90px) rotate(10deg); }
  .is-played .s-a { animation: roll-out 360ms ease-in 300ms both; }
  .is-played .s-b { animation: roll-in 520ms var(--spring-settle) 300ms both; }
  .is-played .pr-box { animation: slide-in 900ms cubic-bezier(0.3, 1.3, 0.5, 1) 760ms both; }

  /* Win the week: the plinths rise from the baseline, #3 and #2 first, #1 lands last. */
  .is-armed-play:not(.is-played) .pod-col { transform: translateY(105%); }
  .is-played .pod-col { animation: rise-base 820ms var(--mark-rise) var(--pd, 0ms) both; }
  .is-played .pod-1 { animation: rise-base 900ms cubic-bezier(0.3, 1.35, 0.55, 1) var(--pd) both; }

  /* Earned: rows land one after another while the total counts up (enter.js). */
  .is-armed-play:not(.is-played) .e-rows li { opacity: 0; }
  .is-played .e-rows li { animation: rise-in 600ms var(--spring-settle) calc(var(--rd, 0ms) + 500ms) both; }

  /* Review: Approve presses, the top video swipes away, the next one settles in. */
  .is-armed-play:not(.is-played) .rv-top { opacity: 1; transform: none; }
  .is-armed-play:not(.is-played) .rv-next { opacity: 0.6; transform: scale(0.9) translateY(8px); }
  .is-played .rv-ok { animation: press 360ms ease-out 160ms both; }
  .is-played .rv-top { animation: swipe-away 620ms cubic-bezier(0.4, 0, 0.7, 0.2) 420ms both; }
  .is-played .rv-next { animation: deck-up 700ms var(--spring-settle) 640ms both; }
  .rv-n.is-ticked { animation: tick 420ms var(--spring-settle) both; }

  /* Scorecard: the bars fill top to bottom. */
  .is-armed-play:not(.is-played) .sc-row b { transform: scaleX(0); }
  .is-played .sc-row b { animation: fill 900ms var(--spring-settle) calc(var(--bd, 0ms) + 120ms) both; }

  /* Product in one tap: Approve presses, the toast rises. */
  .is-armed-play:not(.is-played) .po-toast { opacity: 0; transform: translateY(16px) scale(0.9); }
  .is-played .po-btn { animation: press 360ms ease-out 200ms both; }
  .is-played .po-toast { animation: pop-up 760ms var(--spring-settle) 520ms both; }

  /* Payouts: Approve payouts presses, the total gets its check. */
  .is-armed-play:not(.is-played) .pay-ok { opacity: 0; transform: scale(0.3); }
  .is-played .pay-btn { animation: press 380ms ease-out 1000ms both; }
  .is-played .pay-ok { animation: pop 620ms cubic-bezier(0.34, 1.5, 0.64, 1) 1300ms both; }

  /* Locks: prize rows land, then the lock clicks shut and the chip ticks. */
  .is-armed-play:not(.is-played) .lk-rows li { opacity: 0; }
  .is-armed-play:not(.is-played) .lk-shackle { transform: translateY(-3px); }
  .is-played .lk-rows li { animation: rise-in 560ms var(--spring-settle) calc(var(--rd, 0ms) + 120ms) both; }
  .is-played .lk-shackle { animation: shackle 420ms cubic-bezier(0.5, 0, 0.75, 0) 760ms both; }
  .is-played .lk-chip { animation: tick 460ms var(--spring-settle) 1000ms both; }

  /* Inbox: unread dots pop in. */
  .is-armed-play:not(.is-played) .ib-rows i { transform: scale(0); }
  .is-played .ib-rows i { animation: dot-pop 520ms cubic-bezier(0.34, 1.6, 0.64, 1) calc(var(--dd, 0ms) + 200ms) both; }

  /* FAQ: answers settle in as they open and fade as they close; tabs cross-fade. */
  .faq details[open] .ans { animation: ans-in 420ms var(--spring-settle) both; }
  .faq details.is-closing .ans { animation: ans-out 190ms ease-in both; }
  .panel.is-entering { animation: panel-in 420ms var(--spring-settle) both; }
  .panel.is-leaving { animation: panel-out 180ms ease-in both; }
}
@keyframes bloom { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 0; } }
@keyframes flip-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: rotateX(90deg); } }
@keyframes flip-in { from { opacity: 0; transform: rotateX(-90deg); } }
@keyframes pop-up { from { opacity: 0; transform: translateY(18px) scale(0.94); } }
@keyframes stamp { from { opacity: 0; transform: scale(1.9) rotate(-10deg); } }
@keyframes glint { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes pop { from { opacity: 0; transform: scale(0.5); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes roll-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-100%); } }
@keyframes roll-in { from { opacity: 0; transform: translateY(100%); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(90px) rotate(10deg); } }
@keyframes rise-base { from { transform: translateY(105%); } }
@keyframes press { 0%, 100% { transform: none; } 40% { transform: scale(0.92); } }
@keyframes swipe-away { from { opacity: 1; transform: none; } 60% { opacity: 1; } }
@keyframes deck-up { from { opacity: 0.6; transform: scale(0.9) translateY(8px); } }
@keyframes tick { 0%, 100% { transform: none; } 35% { transform: scale(1.12); } }
@keyframes fill { from { transform: scaleX(0); } }
@keyframes shackle { from { transform: translateY(-3px); } 80% { transform: translateY(0.4px); } }
@keyframes dot-pop { from { transform: scale(0); } }
@keyframes ans-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes ans-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
@keyframes panel-out { to { opacity: 0; filter: blur(4px); } }

/* ---- Close and footer ------------------------------------------------------------------------ */
.closing {
  overflow: hidden;
  overflow: clip; /* the line scales down from wider than a phone */
  display: grid;
  place-items: center;
  min-height: 80vh;
  min-height: 80svh;
  padding: 64px var(--gutter) 32px;
  text-align: center;
}
.closing-in { display: flex; flex-direction: column; align-items: center; }
.close-mark { --mark-w: 84px; }
.close-sub { margin-top: 14px; font-size: clamp(17px, 1.6vw, 21px); letter-spacing: -0.01em; color: var(--ink-2); }
.close-title {
  margin-top: 28px;
  font-size: clamp(36px, 8vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.foot {
  padding: 24px max(var(--gutter), env(safe-area-inset-left)) max(20px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-right));
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-2);
  text-align: center;
}
.links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.links li { display: flex; align-items: center; }
.links li + li::before { content: "\00B7"; content: "\00B7" / ""; padding: 0 8px; color: var(--ink-2); }
.links .break { display: none; }
.links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px; /* above the 24px WCAG 2.2 target */
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 6px;
  transition: color 210ms ease-out;
}
/* The underline grows from the left on hover and focus (transform only). */
.links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 420ms var(--spring-settle);
}
.links a:hover, .links a:focus-visible { color: var(--ink); }
.links a:hover::after, .links a:focus-visible::after { transform: none; }
.links a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.copy-line { margin-top: 4px; }

@media (max-width: 639px) {
  .links .break { display: block; flex-basis: 100%; height: 0; }
  .links .break::before, .links .break + li::before { content: none; }
}

/* ---- Intro (first paint) ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* Brand-kit intro, 100 ms after first paint, played 1.3× slower than the kit (owner, DIT-333):
     outer bars rise (0, 155 ms), then the stem (365 ms), then the dot drops in with its settle
     (935 ms). Units are the mark's 512 grid. The mark has settled in the hero by about 2 s. */
  .hero-mark .bar-l, .hero-mark .bar-r, .hero-mark .stem { animation: mark-rise 800ms var(--mark-rise) both; }
  .hero-mark .bar-l { animation-delay: 100ms; }
  .hero-mark .bar-r { animation-delay: 255ms; }
  .hero-mark .stem { animation-delay: 465ms; }
  .hero-mark .dot { animation: mark-drop 650ms var(--mark-drop) 1035ms both, mark-dot-in 390ms var(--mark-drop) 1035ms both; }
  /* The mark plays large at the viewport centre, then settles into the hero on `hero`. */
  .hero-mark { animation: mark-home 840ms var(--spring-hero) 1150ms both; }
  /* The line resolves word by word (110 ms apart), then the subline settles; all done by ~2.15 s. */
  .headline .w { animation: word-in 800ms var(--spring-settle) both; }
  .headline .w:nth-child(1) { animation-delay: 1150ms; }
  .headline .w:nth-child(2) { animation-delay: 1260ms; }
  .headline .w:nth-child(3) { animation-delay: 1370ms; }
  .status { animation: settle-in 700ms var(--spring-settle) 1450ms both; }
  .cue-in { animation: fade-in 780ms ease-out 2150ms both; }
  .cue i::after { animation: cue-drop 2200ms var(--mark-sway) 2500ms 3 both; }

  /* The scroll cue runs only while the hero is on screen (home.js adds `.is-live`). */
  .hero:not(.is-live) .cue i::after { animation-play-state: paused; }

  /* The close plays once, the first time it comes into view (home.js adds `.is-primed` while it is
     off screen and adds `.is-shown`): the mark's bars rise out of the baseline and the dot drops,
     as in the intro, while "UGC your way." scales down into place out of a blur. */
  .closing.is-primed:not(.is-shown) .close-mark :is(.bar-l, .bar-r, .stem) { transform: translateY(270px); }
  .closing.is-primed:not(.is-shown) .close-mark .dot { opacity: 0; }
  .closing.is-primed:not(.is-shown) .close-title { opacity: 0; transform: scale(1.45); filter: blur(18px); }
  .closing.is-primed:not(.is-shown) .close-sub { opacity: 0; transform: translateY(14px); }
  .closing.is-shown .close-mark :is(.bar-l, .bar-r, .stem) { animation: mark-rise 800ms var(--mark-rise) both; }
  .closing.is-shown .close-mark .bar-r { animation-delay: 155ms; }
  .closing.is-shown .close-mark .stem { animation-delay: 365ms; }
  .closing.is-shown .close-mark .dot { animation: mark-drop 650ms var(--mark-drop) 835ms both, mark-dot-in 390ms var(--mark-drop) 835ms both; }
  .closing.is-shown .close-title { transition: opacity 900ms ease-out 200ms, transform 1400ms var(--spring-hero) 200ms, filter 1000ms ease-out 200ms; }
  .closing.is-shown .close-sub { transition: opacity 700ms ease-out 1000ms, transform 1000ms var(--spring-settle) 1000ms; }
}
@media (prefers-reduced-motion: reduce) {
  /* Gentle: the mark and the line resolve out of a blur in place, then the subline fades in. */
  .hero-mark { animation: blur-in 650ms ease-out 100ms both; }
  .headline { animation: blur-in 900ms ease-out 420ms both; }
  .status { animation: fade-in 650ms ease-out 950ms both; }
  .cue-in { animation: fade-in 650ms ease-out 1300ms both; }
}

@keyframes mark-rise { from { transform: translateY(270px); } to { transform: none; } }
@keyframes mark-drop { from { transform: translateY(-90px); } to { transform: none; } }
@keyframes mark-dot-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes mark-home { from { transform: translateY(var(--intro-dy)) scale(var(--intro-scale)); } to { transform: none; } }
@keyframes word-in { from { opacity: 0; transform: translateY(0.32em); filter: blur(14px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes settle-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes blur-in { from { opacity: 0; filter: blur(12px); } to { opacity: 1; filter: blur(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cue-drop { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(300%); } }
