/* ============================================================
   Yapp — "coming soon" page.

   Tokens are copied from design/tokens.css (the design source of truth) — same names, same
   values — so this page re-themes with the rest of the brand. It is a standalone static site
   and deliberately does not import @yapp/ui: no bundler, no framework, nothing to build.
   Components below use ONLY the semantic tier, as DESIGN.md §10 requires.
   ============================================================ */

@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-stretch: 100%;
  font-display: swap; src: url("/fonts/bricolage-grotesque-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url("/fonts/inter-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url("/fonts/jetbrains-mono-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ── Tier 1 — primitives ── */
  --coral-100:#FFE0D7; --coral-400:#FF8463; --coral-500:#FF5630; --coral-600:#E03E1C; --coral-700:#B83E23; --coral-950:#3A1A12;
  --azure-100:#D6E9FF; --azure-400:#4DA2FF; --azure-500:#0A84FF; --azure-700:#0866C4; --azure-950:#0C2540;
  --cream-0:#FFFFFF; --cream-50:#FBF8F0; --cream-100:#F2ECDF; --cream-200:#E9E1D0; --cream-300:#DAD1BF;
  --ink-900:#16140F; --ink-600:#5C564A; --line-warm:#25211A; --shadow-warm:#2A251C;
  --warmblack-900:#131210; --warmblack-800:#1D1B15; --warmblack-700:#272318; --warmblack-650:#2E2A1F;
  --warmblack-line:#4E4734; --warmblack-line-soft:#332E22; --paper-100:#F4EFE3; --paper-400:#A9A18E;
  --green-600:#11784F; --green-400:#34B57E; --green-100:#D7EEE2; --green-950:#0E2A1E;

  /* ── Tier 2 — semantic (light) ── */
  --text-default: var(--ink-900);
  --text-muted:   var(--ink-600);
  --text-brand:   var(--coral-700);
  --text-link:    var(--azure-700);
  --bg-page:      var(--cream-100);
  --bg-surface:   var(--cream-50);
  --bg-elevated:  var(--cream-0);
  --bg-inset:     var(--cream-200);
  --border-default: var(--line-warm);
  --border-subtle:  var(--cream-300);
  --border-focus:   var(--azure-500);
  --action:       var(--coral-500);
  --action-tint:  var(--coral-100);
  --on-action:    #FFFFFF;
  --highlight:    var(--azure-500);
  --highlight-tint: var(--azure-100);
  --success:      var(--green-600); --success-bg: var(--green-100);
  --state-recording: var(--coral-500); --state-recording-bg: var(--coral-100); --state-recording-fg: var(--coral-700);
  --state-processing: var(--azure-500); --state-processing-bg: var(--azure-100); --state-processing-fg: var(--azure-700);
  --state-ready: var(--green-400); --state-ready-bg: var(--green-100); --state-ready-fg: var(--green-600);
  --focus-ring:   var(--border-focus);
  --shadow-color: var(--shadow-warm);
  /* The ink that sits ON coral (band, closing section). Mode-independent: coral never remaps. */
  --on-coral-ink: var(--ink-900);

  --speaker-1:#0A84FF; --speaker-2:#9670F0; --speaker-3:#0E9F6E;
  --speaker-4:#C9740A; --speaker-5:#E25A48; --speaker-6:#7E84DD;
  --on-speaker:#16140F;

  --font-display: "Bricolage Grotesque", "Clash Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, "Cascadia Code", monospace;
  --text-xs:0.75rem; --text-sm:0.875rem; --text-base:1rem; --text-lg:1.1875rem;
  --tracking-display:-0.03em; --tracking-label:0.1em; --leading-body:1.55;

  --radius-sm:9px; --radius:13px; --radius-lg:16px; --radius-pill:999px;
  --border-width:1.5px;
  --border:      var(--border-width) solid var(--border-default);
  --border-hair: 1.5px solid var(--border-subtle);
  --shadow-sm:2px 2px 0 var(--shadow-color);
  --shadow:3px 3px 0 var(--shadow-color);
  --shadow-lg:5px 5px 0 var(--shadow-color);
  --shadow-pop:7px 7px 0 var(--shadow-color);
  --press: transform .08s ease, box-shadow .08s ease;
  --ease:  cubic-bezier(.2,.8,.2,1);

  /* Page-local layout: how far the recap card rides up over the waveform band. */
  --overlap: clamp(72px, 11vw, 150px);
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-default: var(--paper-100); --text-muted: var(--paper-400);
    --text-brand: var(--coral-400); --text-link: var(--azure-400);
    --bg-page: var(--warmblack-900); --bg-surface: var(--warmblack-800);
    --bg-elevated: var(--warmblack-650); --bg-inset: var(--warmblack-700);
    --border-default: var(--warmblack-line); --border-subtle: var(--warmblack-line-soft);
    --border-focus: var(--azure-400);
    --action-tint: var(--coral-950); --highlight-tint: var(--azure-950);
    --success: var(--green-400); --success-bg: var(--green-950);
    --state-recording-bg: var(--coral-950); --state-recording-fg: var(--coral-400);
    --state-processing-bg: var(--azure-950); --state-processing-fg: var(--azure-400);
    --state-ready-bg: var(--green-950); --state-ready-fg: var(--green-400);
    --shadow-color: #000000;
    --speaker-1:#5AA9FF; --speaker-2:#A98BFF; --speaker-3:#34C58D; --speaker-4:#E8A33D; --speaker-5:#FF7A5C; --speaker-6:#8A90E6;
  }
}

/* ── Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg-page); color: var(--text-default);
  font-family: var(--font-body); font-size: var(--text-base); line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: var(--tracking-display);
  line-height: 0.98; margin: 0; text-wrap: balance;
}
p, ul, ol, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--action); color: var(--on-action); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--bg-elevated); color: var(--text-default); font-weight: 700;
  border: var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 10px 14px;
}
.skip:focus { top: 12px; }

.label {
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-brand);
}
.ts { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }

.chip {
  display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600;
  padding: 4px 10px; border-radius: var(--radius-pill); white-space: nowrap;
  border: 1.5px solid var(--border-default); background: var(--bg-inset); color: var(--text-default);
}
.chip--highlight { background: var(--highlight-tint); color: var(--text-link); border-color: var(--highlight); }

.pill {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600;
  padding: 4px 11px 4px 9px; border-radius: var(--radius-pill); border: 1.5px solid currentColor;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.pill--live, .pill--recording { color: var(--state-recording-fg); background: var(--state-recording-bg); }
.pill--live::before, .pill--recording::before { background: var(--state-recording); animation: pulse 1.4s ease-in-out infinite; }
.pill--processing { color: var(--state-processing-fg); background: var(--state-processing-bg); }
.pill--ready { color: var(--state-ready-fg); background: var(--state-ready-bg); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.btn {
  font-family: var(--font-body); font-weight: 700; font-size: var(--text-sm); line-height: 1;
  border: var(--border); border-radius: var(--radius-sm); padding: 11px 18px;
  background: var(--bg-surface); color: var(--text-default); box-shadow: var(--shadow-sm);
  cursor: pointer; transition: var(--press); white-space: nowrap;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow-color); }
.btn--sm { font-size: var(--text-xs); padding: 8px 12px; }
.btn--ink {
  font-size: var(--text-base); padding: 15px 26px; border-radius: var(--radius);
  background: var(--on-coral-ink); color: var(--cream-100); border-color: var(--on-coral-ink);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .35);
}
.btn--ink:hover { box-shadow: 4px 4px 0 rgba(0, 0, 0, .35); }
.btn--ink:active { box-shadow: 1px 1px 0 rgba(0, 0, 0, .35); }
.btn--ink:focus-visible { outline-color: var(--on-coral-ink); }
[hidden] { display: none !important; }

/* ── Top bar ────────────────────────────────────────────── */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: inline-flex; }
.top-side { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; cursor: pointer;
  color: var(--text-default); background: var(--bg-surface); border: var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); transition: var(--press);
}
.icon-btn:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow); }
.icon-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow-color); }
/* Pause glyph (two bars); becomes a play triangle once motion is off. */
.pp { width: 10px; height: 12px; border-inline: 3.5px solid currentColor; }
.still .pp { width: 11px; height: 13px; border: 0; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); margin-left: 2px; }
.lockup { display: block; height: 38px; width: auto; overflow: visible; }
.lk-word {
  font-family: var(--font-display); font-weight: 800; font-size: 58px; letter-spacing: -2.6px;
  fill: var(--text-default);
}
.lk-shadow { fill: var(--shadow-color); }
.lk-pulse { transform-box: fill-box; transform-origin: center; animation: dot-pulse 1.8s ease-out infinite; }
@keyframes dot-pulse { 0% { transform: scale(1); opacity: 0; } 18% { opacity: .5; } 100% { transform: scale(2.7); opacity: 0; } }

/* ── Hero ───────────────────────────────────────────────── */
.hero { position: relative; padding-top: clamp(24px, 4.4vw, 60px); padding-bottom: clamp(44px, 6vw, 76px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--radius-pill);
  border: var(--border); background: var(--bg-surface); box-shadow: var(--shadow-sm);
}
.spark { width: 8px; height: 8px; background: var(--action); transform: rotate(45deg); flex: none; }
.hero h1 {
  font-size: clamp(3.05rem, 11.2vw, 8.6rem); line-height: 0.9; letter-spacing: -0.045em;
  margin-top: clamp(22px, 3vw, 34px); max-width: 12.5ch;
}
.slab {
  display: inline-block; background: var(--action); color: var(--on-action);
  padding: 0 .13em .07em; margin-inline: -.02em; border-radius: .14em;
  border: max(2px, .028em) solid var(--border-default);
  box-shadow: .05em .05em 0 var(--shadow-color);
  transform: rotate(-2.2deg);
}
.lede {
  font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.45; color: var(--text-muted);
  max-width: 44ch; margin-top: clamp(22px, 3vw, 36px); text-wrap: pretty;
}
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; }
.facts li {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex: none; }

/* The rotating seal. Ink disk + cream ring text in both themes (it reads as a sticker). */
.seal {
  position: absolute; z-index: 3; width: clamp(104px, 17vw, 208px); height: auto;
  right: var(--gutter); top: clamp(4px, 5vw, 70px);
  transform: rotate(8deg); filter: drop-shadow(5px 5px 0 var(--shadow-color));
}
.seal-disk { fill: var(--ink-900); stroke: var(--cream-100); stroke-width: 2; }
.seal-text {
  font-family: var(--font-mono); font-weight: 700; font-size: 15.5px; letter-spacing: 1px; fill: var(--cream-100);
}
.seal-spin { transform-origin: 100px 100px; animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Waveform band — the yapping ────────────────────────── */
.band {
  background: var(--action); border-block: var(--border-width) solid var(--line-warm);
  padding: clamp(22px, 3.4vw, 44px) 0 calc(var(--overlap) + clamp(18px, 3vw, 40px));
  overflow: hidden;
}
.eq { display: flex; justify-content: center; gap: 0.52vw; height: clamp(104px, 17vw, 230px); }
.eq i {
  --lo: 38%; --hi: 14%; --t: 1.25s; --d: 0s;
  flex: none; width: 1.04vw; height: 100%; border-radius: 99px; background: #FFFFFF;
  clip-path: inset(var(--lo) 0 round 99px);
  animation: eq var(--t) ease-in-out var(--d) infinite;
}
/* Two co-prime cycles (5 heights × 7 tempos) so 64 bars never read as a repeating pattern. */
.eq i:nth-child(5n+1) { --lo: 44%; --hi: 27%; }
.eq i:nth-child(5n+2) { --lo: 35%; --hi: 5%; }
.eq i:nth-child(5n+3) { --lo: 41%; --hi: 19%; }
.eq i:nth-child(5n+4) { --lo: 30%; --hi: 0%; }
.eq i:nth-child(5n)   { --lo: 43%; --hi: 12%; }
.eq i:nth-child(7n+1) { --t: 1.5s;  --d: -.35s; }
.eq i:nth-child(7n+2) { --t: 1.05s; --d: -.8s; }
.eq i:nth-child(7n+3) { --t: 1.7s;  --d: -.15s; }
.eq i:nth-child(7n+4) { --t: .95s;  --d: -.55s; }
.eq i:nth-child(7n+5) { --t: 1.35s; --d: -1.1s; }
.eq i:nth-child(7n+6) { --t: 1.15s; --d: -.25s; }
/* The logo's ink peak (DESIGN.md §4: on coral, the peak bar goes ink). */
.eq i:nth-child(9n+4) { background: var(--on-coral-ink); }
@keyframes eq {
  0%, 100% { clip-path: inset(var(--lo) 0 round 99px); }
  50% { clip-path: inset(var(--hi) 0 round 99px); }
}
.band.is-offscreen .eq i { animation-play-state: paused; }

/* ── The recap glimpse — the shipping ───────────────────── */
.glimpse { position: relative; z-index: 2; margin-top: calc(var(--overlap) * -1); }
.recap {
  background: var(--bg-page); border: var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop); padding: clamp(16px, 2.6vw, 30px);
}
.recap-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: clamp(16px, 2.2vw, 24px); }
.recap-title { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 6px 0 12px; }
.recap-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.recap-body { position: relative; }
.recap-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(14px, 2vw, 24px); align-items: start; }
.stack { display: grid; gap: clamp(14px, 2vw, 24px); }
.card {
  background: var(--bg-surface); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(16px, 2vw, 24px);
}
.card--raised { background: var(--bg-elevated); box-shadow: var(--shadow-lg); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.card h4 { font-size: var(--text-lg); line-height: 1.1; }

.turns li { padding: 12px 0; border-bottom: var(--border-hair); }
.turns li:last-child { border-bottom: 0; padding-bottom: 0; }
.turn-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.speaker {
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700; white-space: nowrap;
  color: var(--on-speaker); background: var(--speaker-1); padding: 2px 8px; border-radius: var(--radius-pill);
}
[data-speaker="2"] { --spk: var(--speaker-2); }
[data-speaker="3"] { --spk: var(--speaker-3); }
[data-speaker="4"] { --spk: var(--speaker-4); }
[data-speaker="6"] { --spk: var(--speaker-6); }
.speaker[data-speaker] { background: var(--spk, var(--speaker-1)); }
mark { background: var(--action-tint); color: var(--text-brand); font-weight: 700; padding: 1px 6px; border-radius: 5px; }

.actions { display: grid; gap: 10px; }
.actions li {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px;
  border: var(--border-hair); border-radius: var(--radius-sm); background: var(--bg-inset);
}
.box {
  width: 18px; height: 18px; flex: none; margin-top: 2px; position: relative;
  border: 1.5px solid var(--border-default); border-radius: 5px;
}
.is-done .box { background: var(--success-bg); border-color: var(--success); }
.is-done .box::after {
  content: ""; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 9px;
  border: solid var(--success); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.is-done .a-text { text-decoration: line-through; }
.a-text { display: block; }
.actions .ts { display: block; margin-top: 3px; }

.caption {
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted);
  margin-top: 22px; max-width: 62ch; text-wrap: pretty;
}

/* Recording → processing → ready. Only when JS is running and motion is welcome (html.anim);
   otherwise the stage layer does not exist and the finished recap is simply there. */
.stage { display: none; }
.anim .stage {
  display: grid; place-items: start center; position: absolute; inset: -4px; z-index: 2;
  padding-top: clamp(34px, 7vw, 84px); background: var(--bg-page);
  transition: opacity .4s var(--ease), visibility 0s linear 0s;
}
.anim .recap[data-stage="ready"] .stage { opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s linear .4s; }
.stage-panel { grid-area: 1 / 1; display: grid; justify-items: center; gap: 22px; text-align: center; transition: opacity .35s var(--ease); }
.stage-proc { opacity: 0; }
.recap[data-stage="processing"] .stage-rec { opacity: 0; }
.recap[data-stage="processing"] .stage-proc { opacity: 1; }
.stage-clock {
  display: inline-flex; align-items: center; gap: .32em;
  font-family: var(--font-mono); font-weight: 600; font-size: clamp(2.6rem, 8vw, 5rem); line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -0.04em;
}
.rec-dot { width: .34em; height: .34em; border-radius: 50%; background: var(--state-recording); animation: pulse 1.4s ease-in-out infinite; }
.wave { display: flex; align-items: center; gap: 7px; height: 72px; }
.wave i { width: 9px; height: 18px; border-radius: 5px; background: var(--action); animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .2s; } .wave i:nth-child(3) { animation-delay: .4s; }
.wave i:nth-child(4) { animation-delay: .1s; background: var(--highlight); } .wave i:nth-child(5) { animation-delay: .3s; }
.wave i:nth-child(6) { animation-delay: .5s; } .wave i:nth-child(7) { animation-delay: .15s; }
.wave i:nth-child(8) { animation-delay: .35s; } .wave i:nth-child(9) { animation-delay: .05s; }
@keyframes wave { 0%, 100% { height: 16px; } 50% { height: 68px; } }
.stage-line { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--text-muted); padding-inline: 16px; }
.steps { display: grid; gap: 14px; text-align: left; }
.steps li {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 2.6vw, 1.6rem); letter-spacing: -0.02em;
  color: var(--text-muted); opacity: .45; transition: opacity .25s var(--ease), color .25s var(--ease);
}
.steps li::before {
  content: ""; width: 22px; height: 22px; flex: none; border-radius: 7px;
  border: 1.5px solid var(--border-default); background: var(--bg-surface);
  transition: background .25s var(--ease);
}
.steps li.is-on { color: var(--text-default); opacity: 1; }
.steps li.is-on::before { background: var(--state-processing); }

.anim .recap .rv { opacity: 0; transform: translateY(10px); }
.anim .recap[data-stage="ready"] .rv {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease) calc(var(--i, 0) * 110ms + .2s), transform .5s var(--ease) calc(var(--i, 0) * 110ms + .2s);
}

/* ── Ticker ─────────────────────────────────────────────── */
.ticker {
  display: flex; overflow: hidden; margin-top: clamp(56px, 8vw, 104px);
  border-block: var(--border); background: var(--bg-surface); padding-block: clamp(14px, 1.8vw, 22px);
}
.ticker-track { display: flex; flex: none; animation: tick 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker li {
  display: flex; align-items: center; white-space: nowrap;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.35rem, 3.1vw, 2.3rem);
  letter-spacing: -0.02em; line-height: 1; text-transform: uppercase;
}
.ticker li::after {
  content: ""; width: .36em; height: .36em; margin-inline: .85em; flex: none;
  background: var(--action); border: 1.5px solid var(--border-default); transform: rotate(45deg);
}
@keyframes tick { to { transform: translateX(-100%); } }

/* ── What's coming ──────────────────────────────────────── */
.coming { padding-block: clamp(64px, 9vw, 120px); }
.sec-head { margin-bottom: clamp(30px, 4vw, 52px); }
.sec-head h2 { font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 0.95; margin-top: 14px; letter-spacing: -0.04em; max-width: 15ch; }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 24px); }
.tile {
  grid-column: span 5; display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-surface); border: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.tile--wide { grid-column: span 7; }
.tile > .label { margin: 24px 26px 0; }
.tile h3 { font-size: clamp(1.55rem, 2.7vw, 2.1rem); margin: 10px 26px 0; }
.tile > p:last-child { color: var(--text-muted); margin: 12px 26px 28px; max-width: 58ch; text-wrap: pretty; }
.vg {
  display: grid; place-items: center; height: 250px; padding: 26px;
  background: var(--bg-inset); border-bottom: var(--border);
}

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Vignette · calendar with a record switch per meeting */
.cal { display: grid; gap: 8px; width: min(100%, 470px); }
.cal-row {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px;
  padding: 10px 12px; background: var(--bg-surface); border: var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); font-size: var(--text-sm);
}
.cal-row b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-row .chip { font-size: 0.6875rem; padding: 3px 8px; }
.cal-row--off { box-shadow: none; color: var(--text-muted); }
.cal-row--off .chip { color: var(--text-muted); }
.sw {
  position: relative; width: 38px; height: 22px; border-radius: var(--radius-pill);
  background: var(--bg-inset); border: 1.5px solid var(--border-default);
}
.sw::after {
  content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-elevated); border: 1.5px solid var(--border-default);
}
.sw--on { background: var(--action); }
.sw--on::after { transform: translateX(16px); }

/* Vignette · five people, one bot */
.room { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.seat {
  position: relative; width: 46px; height: 46px; border-radius: 12px; overflow: hidden;
  background: var(--spk, var(--speaker-1)); border: var(--border);
}
.seat::before { content: ""; position: absolute; left: 50%; top: 9px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--on-speaker); opacity: .78; }
.seat::after { content: ""; position: absolute; left: 50%; top: 27px; width: 28px; height: 22px; margin-left: -14px; border-radius: 14px 14px 0 0; background: var(--on-speaker); opacity: .78; }
.seat--bot {
  width: 58px; height: 58px; margin-left: 10px; background: var(--action); border-radius: 15px;
  box-shadow: var(--shadow); overflow: visible;
}
.seat--bot::before, .seat--bot::after { content: none; }
.seat--bot svg { display: block; width: 100%; height: 100%; fill: #FFFFFF; }
.seat--bot .peak { fill: var(--on-coral-ink); }
.room-count {
  display: flex; justify-content: center; gap: 18px; margin-top: 16px;
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted);
}
/* Not --text-brand: coral-as-text is only AA on the surface colours, and this sits on --bg-inset. */
.room-count span:last-child { color: var(--text-default); }

/* Vignette · diarization lanes */
.lanes { position: relative; display: grid; gap: 12px; width: min(100%, 420px); }
.lane { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 12px; }
.lane .speaker { text-align: center; }
.track { position: relative; height: 14px; border-radius: var(--radius-pill); background: var(--bg-surface); border: var(--border-hair); }
.seg { position: absolute; top: -1.5px; bottom: -1.5px; border-radius: var(--radius-pill); border: 1.5px solid var(--border-default); }
.lane:nth-child(1) .seg { background: var(--speaker-1); }
.lane:nth-child(2) .seg { background: var(--speaker-2); }
.lane:nth-child(3) .seg { background: var(--speaker-3); }
.seg-a { left: 0; width: 24%; } .seg-b { left: 58%; width: 14%; }
.seg-c { left: 26%; width: 23%; } .seg-d { left: 74%; width: 17%; }
.seg-e { left: 50%; width: 7%; } .seg-f { left: 92%; width: 8%; }
.playhead { position: absolute; left: 94px; right: 0; top: -8px; bottom: -8px; pointer-events: none; }
.playhead::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px;
  background: var(--text-default); border-radius: 2px; animation: scrub 6s linear infinite;
}
@keyframes scrub { to { left: 100%; } }

/* Vignette · languages */
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 520px; }
.langs li {
  font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 600; padding: 6px 13px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--border-default); background: var(--bg-surface);
  animation: lang 11s linear infinite;
}
.langs li:nth-child(1) { animation-delay: 0s; }   .langs li:nth-child(2) { animation-delay: 1s; }
.langs li:nth-child(3) { animation-delay: 2s; }   .langs li:nth-child(4) { animation-delay: 3s; }
.langs li:nth-child(5) { animation-delay: 4s; }   .langs li:nth-child(6) { animation-delay: 5s; }
.langs li:nth-child(7) { animation-delay: 6s; }   .langs li:nth-child(8) { animation-delay: 7s; }
.langs li:nth-child(9) { animation-delay: 8s; }   .langs li:nth-child(10) { animation-delay: 9s; }
.langs li:nth-child(11) { animation-delay: 10s; }
@keyframes lang {
  0%, 8% { background: var(--highlight-tint); color: var(--text-link); border-color: var(--highlight); box-shadow: var(--shadow-sm); transform: translate(-1px, -1px); }
  9.2%, 100% { background: var(--bg-surface); color: var(--text-default); border-color: var(--border-default); box-shadow: none; transform: none; }
}

/* Vignette · the Markdown export */
.md {
  width: min(100%, 470px); background: var(--bg-elevated); border: var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden;
}
.md-file {
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--text-muted); padding: 8px 14px; background: var(--bg-surface); border-bottom: var(--border-hair);
}
.md pre {
  font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.6; padding: 12px 14px 14px;
  white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-default);
}
.md pre b { color: var(--text-brand); font-weight: 700; }

/* Vignette · visibility + self-service */
.vis { display: grid; gap: 10px; justify-items: start; }
.seg-ctl {
  display: inline-flex; padding: 3px; gap: 3px; background: var(--bg-surface);
  border: var(--border); border-radius: var(--radius-sm);
}
.seg-ctl span { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); padding: 6px 9px; border-radius: 6px; white-space: nowrap; }
.seg-ctl .on { background: var(--bg-elevated); color: var(--text-default); box-shadow: var(--shadow-sm); }
.vis-row { display: flex; align-items: center; gap: 10px; font-size: var(--text-sm); font-weight: 600; padding-left: 4px; }
.go { width: 7px; height: 7px; border: solid var(--text-brand); border-width: 2px 2px 0 0; transform: rotate(45deg); flex: none; }

/* ── Closing band ───────────────────────────────────────── */
.close { background: var(--action); color: var(--on-coral-ink); border-block: var(--border-width) solid var(--line-warm); }
.close-inner {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(64px, 10vw, 136px);
}
/* The logo's five live-levels bars, large. Same clip-path trick as the hero strip. */
.close-mark { display: flex; align-items: stretch; gap: clamp(10px, 1.5vw, 20px); height: clamp(170px, 26vw, 330px); }
.close-mark i {
  --lo: 29%; --hi: 16%; flex: none; width: clamp(18px, 3.1vw, 40px); border-radius: 99px; background: #FFFFFF;
  clip-path: inset(var(--lo) 0 round 99px); animation: eq 1.3s ease-in-out infinite;
}
.close-mark i:nth-child(2) { --lo: 9%; --hi: 22%; animation-duration: 1.05s; animation-delay: -.4s; }
.close-mark i:nth-child(3) { --lo: 21%; --hi: 6%; animation-duration: 1.5s; animation-delay: -.9s; }
.close-mark i:nth-child(4) { --lo: 0%; --hi: 17%; animation-duration: 1.2s; animation-delay: -.2s; background: var(--on-coral-ink); }
.close-mark i:nth-child(5) { --lo: 27%; --hi: 12%; animation-duration: .95s; animation-delay: -.6s; }
.close h2 { color: #FFFFFF; font-size: clamp(2.9rem, 11vw, 8.4rem); line-height: 0.9; letter-spacing: -0.045em; }
.close-line { font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.45; font-weight: 500; max-width: 40ch; margin-top: clamp(22px, 3vw, 36px); text-wrap: pretty; }
.close-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 30px; min-height: 52px; }
.close-status { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 600; }
.close ::selection { background: var(--on-coral-ink); color: #FFFFFF; }

/* ── Footer ─────────────────────────────────────────────── */
.foot {
  display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-block: 28px 36px;
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .recap-grid { grid-template-columns: 1fr; }
  .tile, .tile--wide { grid-column: 1 / -1; }
  .close-inner { grid-template-columns: 1fr; }
  .close-mark { order: -1; height: clamp(96px, 22vw, 170px); gap: 9px; }
  .close-mark i { width: clamp(14px, 3.4vw, 26px); }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .lockup { height: 32px; }
  .hero h1 { max-width: none; }
  /* Fewer, chunkier bars on a phone: drop every other one and double the rest. */
  .eq { gap: 1.05vw; }
  .eq i { width: 2.06vw; }
  .eq i:nth-child(even) { display: none; }
  /* The seal leaves the headline alone and straddles the hero/band edge instead. */
  .seal { top: auto; bottom: -44px; right: 14px; }
  .hero { padding-bottom: 64px; }
  .vg { height: auto; min-height: 176px; padding: 20px 16px; }
  .tile > .label { margin: 20px 20px 0; }
  .tile h3 { margin: 10px 20px 0; }
  .tile > p:last-child { margin: 12px 20px 24px; }
  .cal-row { gap: 8px; padding: 9px 10px; }
  .seat { width: 40px; height: 40px; border-radius: 11px; }
  .seat::before { top: 7px; width: 12px; height: 12px; margin-left: -6px; }
  .seat::after { top: 23px; width: 24px; margin-left: -12px; }
  .seat--bot { width: 52px; height: 52px; }
  .recap-head .btn { padding: 7px 10px; }
}

/* ── Motion off: everything holds still, nothing is lost ────
   Two ways in, one result. `html.still` is set by app.js when the OS asks for reduced motion OR
   the visitor presses the pause button in the top bar; the media query repeats the same rules so
   they also hold with JavaScript off. Keep the two blocks identical. */
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }
.still .ticker { padding-inline: var(--gutter); }
.still .ticker-track { flex-wrap: wrap; flex: 1 1 auto; justify-content: center; row-gap: 12px; }
.still .ticker-track[aria-hidden="true"] { display: none; }
.still .ticker li { font-size: clamp(1.05rem, 2.2vw, 1.5rem); }
.still .langs li:nth-child(2) { background: var(--highlight-tint); color: var(--text-link); border-color: var(--highlight); }
.still .playhead::before { left: 42%; }
.still .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker { padding-inline: var(--gutter); }
  .ticker-track { flex-wrap: wrap; flex: 1 1 auto; justify-content: center; row-gap: 12px; }
  .ticker-track[aria-hidden="true"] { display: none; }
  .ticker li { font-size: clamp(1.05rem, 2.2vw, 1.5rem); }
  .langs li:nth-child(2) { background: var(--highlight-tint); color: var(--text-link); border-color: var(--highlight); }
  .playhead::before { left: 42%; }
  .js .reveal { opacity: 1; transform: none; }
}
