/* ============================================================================
   Virgil landing — styles
   Editorial paper-and-ink design system, matched to the canonical Virgil site
   (the Next.js build at :3000). Single source of truth for tokens is :root.
   The hero motion (persona storyboards from landing/reference/) is kept and
   recolored onto this palette. The page is centered single-column; the demo
   sits BELOW the hero copy, full width, so the choreography stays legible.
   ========================================================================== */

/* ---- self-hosted fonts (latin subsets) ----------------------------------- */
@font-face {
  font-family: "Playfair Display"; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url("fonts/playfair-latin-var.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;
}
@font-face {
  font-family: "Playfair Display"; font-style: italic; font-weight: 500 700;
  font-display: swap; src: url("fonts/playfair-latin-italic.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;
}
@font-face {
  font-family: "Newsreader"; font-style: normal; font-weight: 300 600;
  font-display: swap; src: url("fonts/newsreader-latin-var.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;
}
@font-face {
  font-family: "Newsreader"; font-style: italic; font-weight: 300 600;
  font-display: swap; src: url("fonts/newsreader-latin-italic-var.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;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 600;
  font-display: swap; src: url("fonts/inter-latin-var.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;
}

/* ---- tokens (mirrors the 3000 site's globals.css) ------------------------ */
:root {
  --paper: #f7f5f0;
  --paper-2: #f1eee6;
  --panel: #fbfaf6;
  --ink: #1a1b1d;
  --ink-soft: #4a4b4e;
  --ink-faint: #6b6b67;
  --line: rgba(26, 27, 29, 0.12);
  --line-strong: rgba(26, 27, 29, 0.2);
  --accent: #7b2d26;
  --accent-soft: rgba(123, 45, 38, 0.1);
  --accent-ink: #f7f5f0;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-frame: 0 1px 2px rgba(26, 27, 29, 0.04), 0 24px 60px -32px rgba(26, 27, 29, 0.22);

  --maxw-container: 70rem;
  --maxw-measure: 38rem;
  --maxw-measure-wide: 46rem;
  --space-section: clamp(4.5rem, 11vh, 8rem);
  --space-section-sm: clamp(3rem, 7vh, 5rem);
  --pad-x: clamp(1.25rem, 5vw, 2.5rem);
}

/* ---- reset / base -------------------------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; color: var(--ink); margin: 0; line-height: 1.1; }
p { margin: 0; }
em { font-style: italic; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---- utilities ----------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: var(--maxw-container); margin-inline: auto; padding-inline: var(--pad-x); }
.eyebrow {
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint);
}
.rule-accent { display: block; width: 2.5rem; height: 2px; background: var(--accent); border: 0; flex: none; }
.eyebrow-row { display: inline-flex; align-items: center; gap: 0.75rem; }

/* ---- type scale ---------------------------------------------------------- */
.t-display-xl { font-size: clamp(2.5rem, 7.2vw, 6rem); line-height: 1.02; letter-spacing: -0.022em; }
.t-display-l { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.06; letter-spacing: -0.02em; }
.t-display-m { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.12; letter-spacing: -0.015em; }
.t-lead { font-size: clamp(1.18rem, 1.7vw, 1.5rem); line-height: 1.5; letter-spacing: -0.005em; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* ============================================================================
   NAV — fixed, transparent over the hero; paper wash + hairline on scroll
   ========================================================================== */
.site-nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  border-bottom: 1px solid transparent; background: transparent;
  transition: background-color 0.5s var(--ease-editorial), border-color 0.5s var(--ease-editorial), backdrop-filter 0.5s var(--ease-editorial);
}
.site-nav.scrolled { border-bottom-color: var(--line); background: rgba(247, 245, 240, 0.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* nav CTA promotes to a filled ink pill once scrolled — persistent, subordinate to the email field */
.site-nav.scrolled .site-nav__access { background: var(--ink); color: var(--paper); padding: 0.42rem 0.95rem; border-radius: 999px; text-decoration: none; }
.site-nav.scrolled .site-nav__access:hover { opacity: 0.9; }
.site-nav__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; color: var(--ink); }
.brand .v-mark { height: 2rem; width: auto; color: var(--ink); }
.brand__lockup { display: inline-flex; flex-direction: column; line-height: 1; }
.brand .wordmark { font-family: var(--font-display); font-weight: 500; font-size: 1.55rem; line-height: 1; letter-spacing: -0.02em; }
/* the brand slogan — quiet tagline under the wordmark, never a second headline */
.brand__tagline { font-family: var(--font-display); font-weight: 400; font-size: 0.8rem; line-height: 1; letter-spacing: 0.005em; color: var(--ink-faint); margin-top: 0.28rem; }
.site-nav__links { display: flex; align-items: center; gap: 1.75rem; }
.site-nav__links ul { display: none; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-nav__links a.navlink { font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.01em; color: var(--ink-soft); transition: color 0.3s var(--ease-editorial); }
.site-nav__links a.navlink:hover { color: var(--ink); }
.site-nav__access {
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--accent-soft);
  text-decoration-thickness: 1px; text-underline-offset: 5px;
  transition: text-decoration-color 0.3s var(--ease-editorial);
}
.site-nav__access:hover { text-decoration-color: var(--accent); }
@media (min-width: 640px) { .site-nav__links ul { display: flex; } }

/* ============================================================================
   HERO — centered; demo BELOW the copy, full width
   ========================================================================== */
.hero { padding-top: clamp(7rem, 12vh, 9rem); padding-bottom: var(--space-section-sm); }
.hero__copy { max-width: var(--maxw-measure-wide); margin-inline: auto; text-align: center; }
.hero h1 { color: var(--ink); }
.hero__subhead { margin-top: 1.5rem; margin-inline: auto; max-width: var(--maxw-measure); color: var(--ink-soft); }
.hero__body { margin-top: 1.25rem; margin-inline: auto; max-width: var(--maxw-measure); font-size: 1.0625rem; color: var(--ink-soft); }

.hero__demo { margin-top: clamp(2.5rem, 5vw, 3.5rem); margin-inline: auto; max-width: 46rem; }
.hero__cta { margin-top: clamp(2rem, 4vw, 3rem); margin-inline: auto; max-width: 30rem; text-align: center; }
.hero__microcopy { margin-top: 1rem; font-family: var(--font-sans); font-size: 0.8125rem; letter-spacing: 0.02em; color: var(--ink-faint); }

/* ---- the demo frame (matches DemoSlot) ----------------------------------- */
.demo-frame {
  position: relative; overflow: hidden; border: 1px solid var(--line);
  border-radius: var(--radius-md); background: var(--panel); box-shadow: var(--shadow-frame);
}
.demo-frame__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: 0.65rem clamp(1rem, 3vw, 1.25rem); }
.demo-frame__label { font-family: var(--font-sans); font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-faint); }
.demo-frame__status { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-sans); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); }
.demo-frame__status .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }

/* ============================================================================
   THE STAGE - cross-model continuity infographic
   ========================================================================== */
.stage {
  position: relative; width: 100%; aspect-ratio: 600 / 440;
  background: transparent; overflow: hidden;
  container-type: size; container-name: stage;
  --uw: calc(100cqw / 600);
  --uh: calc(100cqh / 440);
}

.stage .scene { position: absolute; inset: 0; }
.stage .cap {
  position: absolute; bottom: 6cqh; left: 0; right: 0; z-index: 8; margin: 0;
  text-align: center; padding: 0 5cqw;
  font-family: var(--font-serif); font-style: italic; color: var(--ink);
  font-size: clamp(13px, calc(16.5 * var(--uw)), 18px);
  line-height: 1.3; transition: opacity 0.3s var(--ease-editorial);
}

.model-row {
  position: absolute; top: 8.5cqh; left: 8cqw; right: 8cqw; z-index: 5;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4cqw;
}
.model-chip {
  display: flex; align-items: center; justify-content: center; height: calc(34 * var(--uh));
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
  font-family: var(--font-sans); font-size: max(10px, calc(11.5 * var(--uw))); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft);
  transition: border-color 0.55s var(--ease-editorial), color 0.55s var(--ease-editorial), background 0.55s var(--ease-editorial);
}
.stage[data-s="continuity"] .model-chatgpt,
.stage[data-s="accumulation"] .model-chip,
.stage[data-s="insight"] .model-chip {
  border-color: var(--accent); color: var(--ink); background: var(--accent-soft);
}

.flow-lines {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none;
}
.flow-lines path {
  fill: none; stroke: var(--accent); stroke-width: 1.35; stroke-linecap: round;
  opacity: 0; stroke-dasharray: 180; stroke-dashoffset: 180;
  transition: opacity 0.45s var(--ease-editorial), stroke-dashoffset 0.85s var(--ease-editorial);
}
.stage[data-s="continuity"] .line-save,
.stage[data-s="accumulation"] .line-save,
.stage[data-s="insight"] .line-save,
.stage[data-s="continuity"] .line-echo,
.stage[data-s="accumulation"] .line-echo,
.stage[data-s="insight"] .line-echo {
  opacity: 0.62; stroke-dashoffset: 0;
}
.stage[data-s="insight"] .line-insight {
  opacity: 0.62; stroke-dashoffset: 0;
}
.stage[data-s="insight"] .line-insight-b { transition-delay: 0.08s; }
.stage[data-s="insight"] .line-insight-c { transition-delay: 0.16s; }

.model-fact,
.record-fact,
.virgil-node,
.insight-output {
  font-family: var(--font-sans); line-height: 1.2;
}
.model-fact {
  position: absolute; z-index: 4; width: calc(158 * var(--uw));
  min-height: calc(38 * var(--uh)); display: flex; align-items: center; justify-content: center;
  padding: calc(7 * var(--uh)) calc(10 * var(--uw)); border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--panel); color: var(--ink);
  font-size: max(10px, calc(11.5 * var(--uw))); text-align: center;
  opacity: 0; transform: translateY(calc(8 * var(--uh)));
  transition: opacity 0.55s var(--ease-editorial), transform 0.65s var(--ease-editorial), border-color 0.55s var(--ease-editorial), background 0.55s var(--ease-editorial);
}
.source-fact { left: 9cqw; top: 25cqh; }
.echo-claude { left: 36.75cqw; top: 25cqh; }
.echo-grok { right: 9cqw; top: 25cqh; }
.echo-fact { color: var(--ink-faint); background: var(--paper); }
.stage[data-s="continuity"] .source-fact,
.stage[data-s="accumulation"] .source-fact,
.stage[data-s="insight"] .source-fact {
  opacity: 1; transform: translateY(0); border-color: var(--accent);
}
.stage[data-s="continuity"] .echo-fact,
.stage[data-s="accumulation"] .echo-fact,
.stage[data-s="insight"] .echo-fact {
  opacity: 1; transform: translateY(0); border-color: var(--accent); background: var(--accent-soft); color: var(--ink-soft);
}
.stage[data-s="accumulation"] .model-fact,
.stage[data-s="insight"] .model-fact { opacity: 0.38; }

.record-rail {
  position: absolute; left: 10cqw; right: 10cqw; top: 43cqh; z-index: 3;
  min-height: calc(110 * var(--uh)); border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--paper); padding: calc(22 * var(--uh)) calc(16 * var(--uw)) calc(14 * var(--uh));
  opacity: 0; transform: translateY(calc(10 * var(--uh)));
  transition: opacity 0.6s var(--ease-editorial), transform 0.7s var(--ease-editorial), border-color 0.55s var(--ease-editorial);
}
.record-rail::before {
  content: ""; position: absolute; left: calc(16 * var(--uw)); right: calc(16 * var(--uw)); top: calc(13 * var(--uh));
  height: 1px; background: var(--line-strong);
}
.rail-label {
  position: absolute; left: calc(16 * var(--uw)); top: calc(7 * var(--uh));
  padding-right: calc(8 * var(--uw)); background: var(--paper);
  font-family: var(--font-sans); font-size: max(9px, calc(9.5 * var(--uw))); font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-faint);
}
.record-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(10 * var(--uw)); }
.record-fact {
  min-height: calc(60 * var(--uh)); display: flex; flex-direction: column; justify-content: center; gap: calc(5 * var(--uh));
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel);
  padding: calc(9 * var(--uh)) calc(11 * var(--uw)); color: var(--ink);
  font-size: max(10px, calc(11.2 * var(--uw))); opacity: 0; transform: translateY(calc(9 * var(--uh)));
  transition: opacity 0.55s var(--ease-editorial), transform 0.65s var(--ease-editorial), border-color 0.55s var(--ease-editorial), background 0.55s var(--ease-editorial);
}
.fact-source {
  font-size: max(8px, calc(8.6 * var(--uw))); font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
}
.stage[data-s="continuity"] .record-rail,
.stage[data-s="accumulation"] .record-rail,
.stage[data-s="insight"] .record-rail {
  opacity: 1; transform: translateY(0);
}
.stage[data-s="insight"] .record-rail { border-color: var(--accent); }
.stage[data-s="continuity"] .fact-strider,
.stage[data-s="accumulation"] .record-fact,
.stage[data-s="insight"] .record-fact {
  opacity: 1; transform: translateY(0);
}
.stage[data-s="accumulation"] .fact-sarah,
.stage[data-s="insight"] .fact-sarah { transition-delay: 0.08s; }
.stage[data-s="accumulation"] .fact-atlas,
.stage[data-s="insight"] .fact-atlas { transition-delay: 0.16s; }
.stage[data-s="insight"] .record-fact { border-color: var(--accent); background: var(--accent-soft); }

.virgil-node {
  position: absolute; left: 50%; top: 69cqh; z-index: 5; transform: translate(-50%, calc(8 * var(--uh)));
  display: flex; align-items: center; justify-content: center; width: calc(88 * var(--uw)); height: calc(30 * var(--uh));
  border: 1px solid var(--accent); border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink);
  font-size: max(10px, calc(11 * var(--uw))); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0; transition: opacity 0.55s var(--ease-editorial), transform 0.65s var(--ease-editorial);
}
.insight-output {
  position: absolute; left: 50%; bottom: 11.5cqh; z-index: 6; width: min(78cqw, calc(470 * var(--uw)));
  transform: translateX(-50%) translateY(calc(12 * var(--uh)));
  border: 1px solid var(--accent); border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink);
  padding: calc(10 * var(--uh)) calc(16 * var(--uw)); text-align: center;
  font-size: max(11px, calc(12.8 * var(--uw))); opacity: 0;
  transition: opacity 0.55s var(--ease-editorial), transform 0.65s var(--ease-editorial);
}
.stage[data-s="insight"] .virgil-node,
.stage[data-s="insight"] .insight-output {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.stage[data-s="insight"] .virgil-node { transform: translate(-50%, 0); }

@container stage (max-width: 520px) {
  .model-row { left: 5cqw; right: 5cqw; gap: 2cqw; }
  .model-chip { font-size: max(8px, calc(10 * var(--uw))); }
  .model-fact { width: 29cqw; font-size: max(8px, calc(10 * var(--uw))); padding-inline: calc(7 * var(--uw)); }
  .source-fact { left: 4.5cqw; }
  .echo-claude { left: 35.5cqw; }
  .echo-grok { right: 4.5cqw; }
  .record-rail { left: 5cqw; right: 5cqw; }
  .record-facts { gap: calc(6 * var(--uw)); }
  .record-fact { padding-inline: calc(7 * var(--uw)); font-size: max(8px, calc(9.8 * var(--uw))); }
  .insight-output { width: 88cqw; font-size: max(10px, calc(11.3 * var(--uw))); line-height: 1.25; }
}

/* ---- email capture (matches EmailCapture) -------------------------------- */
.email-capture { width: 100%; }
.email-capture__row { display: flex; flex-direction: column; gap: 0.75rem; width: 100%; }
.email-capture input {
  height: 3rem; flex: 1; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: #fff; padding-inline: 1rem; font-family: var(--font-serif); font-size: 1rem; color: var(--ink);
  outline: none; transition: border-color 0.2s;
}
.email-capture input::placeholder { color: var(--ink-faint); }
.email-capture input:focus { border-color: var(--ink); }
.email-capture button {
  height: 3rem; white-space: nowrap; border: 0; border-radius: var(--radius-sm); background: var(--ink);
  color: var(--paper); padding-inline: 1.5rem; font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer; transition: opacity 0.2s;
}
.email-capture button:hover { opacity: 0.9; }
.email-capture button:disabled { opacity: 0.6; cursor: default; }
.email-capture__msg { margin-top: 0.5rem; min-height: 1.25rem; font-family: var(--font-sans); font-size: 0.8125rem; color: var(--accent); }
.email-capture__success { display: flex; align-items: flex-start; gap: 0.75rem; text-align: left; }
.email-capture__success .dot { margin-top: 0.5rem; height: 0.5rem; width: 0.5rem; flex: none; border-radius: 999px; background: var(--accent); }
.email-capture__success p { font-family: var(--font-serif); font-size: clamp(1.18rem, 1.7vw, 1.4rem); color: var(--ink); }
.email-capture__success em { color: var(--ink-soft); }
@media (min-width: 480px) { .email-capture__row { flex-direction: row; } }

/* ============================================================================
   PULL-QUOTE BAND (Garry Tan — category validation, not a testimonial)
   ========================================================================== */
/* Compact editorial band — present as signal, not a billboard. */
.quoteband { padding-block: clamp(2.5rem, 6vh, 4rem); background: var(--paper-2); }
.quoteband__inner { width: 100%; max-width: 44rem; margin-inline: auto; padding-inline: var(--pad-x); text-align: center; }
.quoteband .rule-accent { margin-inline: auto; margin-bottom: 1.1rem; }
.quoteband blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--ink); font-size: clamp(1.1rem, 0.85rem + 1.15vw, 1.55rem); line-height: 1.34; }
.quoteband blockquote p { margin: 0 0 0.3em; text-wrap: balance; }
.quoteband blockquote p:last-child { margin-bottom: 0; }
.quoteband cite { display: block; margin-top: 1.1rem; font-style: normal; font-family: var(--font-sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.quoteband cite a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s; }
.quoteband cite a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ============================================================================
   SECTIONS §2–§8
   ========================================================================== */
.section { padding-block: var(--space-section); }
.section.band { background: var(--paper-2); }
.section__inner { width: 100%; max-width: 42rem; margin-inline: auto; padding-inline: var(--pad-x); text-align: center; }
.section__head { display: flex; flex-direction: column; align-items: center; }
.section h2 { margin-top: 1.25rem; max-width: 20ch; }
.section__body { margin-top: 1.5rem; margin-inline: auto; max-width: var(--maxw-measure); color: var(--ink-soft); }
.section__body + .section__body { margin-top: 1.1rem; }
.section__body .quote { font-style: italic; color: var(--ink); }
.section--proof .section__inner { max-width: var(--maxw-measure-wide); }
.section--proof .section__body { font-size: 1.125rem; }

/* §8 final */
.section--final .section__inner { max-width: 42rem; }
.section--final .rule-accent { margin-inline: auto; }
/* the guide-motif payoff — a still, literary line over the punchy headline */
.section--final .final__kicker { margin-top: 1.2rem; margin-inline: auto; max-width: 42rem; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.15rem, 1rem + 1.05vw, 1.55rem); line-height: 1.3; color: var(--ink); text-wrap: balance; }
.section--final h2 { margin-top: 0.85rem; margin-inline: auto; }
.section--final .final__sub { margin-top: 1.25rem; margin-inline: auto; max-width: var(--maxw-measure); color: var(--ink-soft); }
.section--final .final__cta { margin-top: 2.25rem; margin-inline: auto; max-width: 30rem; }
.section--final .final__note { margin-top: 1rem; font-family: var(--font-sans); font-size: 0.8125rem; letter-spacing: 0.02em; color: var(--ink-faint); }
/* §8 PRIMARY — subscribe plans (filled ink) */
.section--final .heard { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
.section--final .heard__label { font-family: var(--font-sans); font-size: 0.8125rem; letter-spacing: 0.02em; color: var(--ink-soft); }
.section--final .heard__optional { color: var(--ink-faint); }
.section--final .heard__input {
  height: 3rem; width: min(26rem, 100%); border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: #fff; padding-inline: 1rem; font-family: var(--font-serif); font-size: 1rem; color: var(--ink);
  outline: none; transition: border-color 0.2s;
}
.section--final .heard__input::placeholder { color: var(--ink-faint); }
.section--final .heard__input:focus { border-color: var(--ink); }
.section--final .plans { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.section--final .plan { margin: 0; }
.section--final .plan__btn {
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em; cursor: pointer;
  color: var(--paper); background: var(--ink); border: 1px solid var(--ink); border-radius: var(--radius-sm);
  padding: 0.85rem 1.5rem; transition: opacity 0.2s;
}
.section--final .plan__btn:hover { opacity: 0.9; }
.section--final .plan__per { opacity: 0.66; font-weight: 500; }
.section--final .plan__free { opacity: 0.66; font-weight: 500; }
.section--final .plan__guarantee { margin-top: 1rem; font-family: var(--font-sans); font-size: 0.8125rem; letter-spacing: 0.02em; text-align: center; color: var(--ink-soft); }

/* §8 SECONDARY — the demoted waitlist, now an updates path */
.section--final .final__updates { margin-top: 2.25rem; }
.section--final .final__updates-label { font-family: var(--font-sans); font-size: 0.8125rem; letter-spacing: 0.02em; color: var(--ink-faint); margin: 0 0 0.65rem; }
.section--final .final__updates .email-capture { max-width: 26rem; margin-inline: auto; }
/* ghost submit so the subscribe CTAs stay primary */
.section--final .final__updates .email-capture button { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.section--final .final__updates .email-capture button:hover { opacity: 1; border-color: var(--ink); }

/* ============================================================================
   FOOTER — dark ink band (the back cover)
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--paper); }
.site-footer__inner { width: 100%; max-width: var(--maxw-container); margin-inline: auto; padding: var(--space-section-sm) var(--pad-x); }
.site-footer__top { display: flex; flex-direction: column; gap: 2.5rem; }
.site-footer .foot-brand { display: inline-flex; align-items: center; gap: 0.625rem; }
.site-footer .foot-brand .v-mark { height: 1.75rem; width: auto; color: var(--paper); }
.site-footer .foot-brand .wordmark { font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; line-height: 1; letter-spacing: -0.02em; color: var(--paper); }
.site-footer__tagline { margin-top: 1rem; font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: rgba(247, 245, 240, 0.82); }
.site-footer__tagline-2 { margin-top: 0.3rem; font-family: var(--font-serif); font-style: italic; font-size: 0.95rem; color: rgba(247, 245, 240, 0.56); }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-footer nav a { font-family: var(--font-sans); font-size: 0.8125rem; letter-spacing: 0.02em; color: rgba(247, 245, 240, 0.7); text-decoration: underline; text-decoration-color: rgba(247, 245, 240, 0.2); text-underline-offset: 4px; transition: color 0.3s, text-decoration-color 0.3s; }
.site-footer nav a:hover { color: var(--paper); text-decoration-color: var(--accent); }
.site-footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(247, 245, 240, 0.14); display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer__bottom span { font-family: var(--font-sans); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(247, 245, 240, 0.58); }
@media (min-width: 640px) {
  .site-footer__top { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .site-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ============================================================================
   prefers-reduced-motion — calm static hero
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .stage *, .stage *::before, .stage *::after { transition: none !important; animation: none !important; }
  .site-nav { transition: none !important; }
}

/* ============================================================================
   ELEVATION PASS — scroll-reveal, hero entrance, conversion handle, rhythm
   ========================================================================== */

/* offset all anchor jumps + focus targets for the fixed nav */
html { scroll-padding-top: clamp(5rem, 10vh, 6.5rem); }

/* ---- scroll-reveal: sections + the quote rise in on enter (JS adds .reveal) -- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-editorial), transform 0.7s var(--ease-editorial); will-change: opacity, transform; }
.reveal.is-revealed { opacity: 1; transform: none; will-change: auto; }

/* ---- hero entrance — staggered build-in on load (JS-gated; calm, once) ---- */
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* LCP element (the headline) never fades from opacity:0 — transform-only so it
   paints at full opacity on first frame and doesn't delay Largest Contentful Paint */
@keyframes heroInH1 { from { transform: translateY(12px); } to { transform: none; } }
.js .hero h1 { animation: heroInH1 0.7s var(--ease-editorial) both; }
.js .hero__subhead,
.js .hero__cta-inline,
.js .hero__body,
.js .hero__demo,
.js .hero__cta { animation: heroIn 0.8s var(--ease-editorial) both; }
.js .hero__subhead { animation-delay: 0.08s; }
.js .hero__cta-inline { animation-delay: 0.14s; }
.js .hero__body { animation-delay: 0.2s; }
.js .hero__demo { animation-delay: 0.34s; }
.js .hero__cta { animation-delay: 0.5s; }

/* ---- subordinate conversion handle (email field stays the single primary) -- */
/* hero PRIMARY CTA — filled ink, points down to the plans (screen-1 buy path) */
.hero__cta-inline { margin-top: 1.6rem; }
.hero__cta-inline a {
  display: inline-block; font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--paper); background: var(--ink); border: 1px solid var(--ink); border-radius: var(--radius-sm);
  padding: 0.85rem 1.6rem; text-decoration: none; transition: opacity 0.2s;
}
.hero__cta-inline a:hover { opacity: 0.9; }

/* hero SECONDARY — the demoted updates path (mirrors §8) */
.hero__updates-label { font-family: var(--font-sans); font-size: 0.8125rem; letter-spacing: 0.02em; color: var(--ink-faint); margin: 0 0 0.65rem; }
.hero__cta .email-capture button { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.hero__cta .email-capture button:hover { opacity: 1; border-color: var(--ink); }

/* ---- §4 set-apart pull-quote (breaks the center-stack metronome; no copy change) -- */
.pullquote {
  margin: 1.8rem auto; max-width: 30rem; font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.3rem, 1rem + 1.5vw, 1.95rem); line-height: 1.3; color: var(--ink); text-wrap: balance;
}

/* ---- one left-aligned section as a second rhythm beat ---- */
.section--left .section__inner { max-width: 46rem; text-align: left; }
.section--left .section__head { align-items: flex-start; }
.section--left .section__body { margin-inline: 0; }

/* ---- skip link: visible when focused (its own class, never un-hides sr-only) -- */
#main:focus { outline: none; } /* skip-link target is programmatically focused; no box around all content */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; }
.skip-link:focus {
  left: 0; width: auto; height: auto; margin: 0; padding: 0.6rem 1rem; clip: auto; overflow: visible; white-space: normal;
  background: var(--ink); color: var(--paper); font-family: var(--font-sans); font-size: 0.85rem; border-radius: 0 0 var(--radius-sm) 0;
}

/* ---- print: drop chrome/motion, ink-on-white ---- */
@media print {
  .site-nav, .hero__demo, .persona, .site-nav__access, #heroLive { display: none !important; }
  body { background: #fff; color: #000; }
  .site-footer { background: #fff; color: #000; }
  .section.band, .quoteband { background: #fff; }
  * { box-shadow: none !important; }
}

/* ---- graceful fallback where container-query units are unsupported --------
   (iOS <16, old WebViews, Firefox ESR <110): cqw/cqh resolve to 0 and the
   card geometry collapses. Show the payoff line + caption statically instead
   of a blank framed box. ---------------------------------------------------- */
@supports not (container-type: size) {
  .stage {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem;
    min-height: 300px; padding: 2rem 1.5rem; text-align: center;
  }
  .stage .model-row,
  .stage .scene > *:not(.insight-output) { display: none !important; }
  .stage .scene { position: static !important; }
  .stage .insight-output {
    position: static !important; transform: none !important; opacity: 1 !important;
    font-size: 1rem !important; white-space: normal !important; max-width: 30rem;
  }
  .stage .cap { position: static !important; padding: 0; }
}

/* ---- reduced-motion: force the composed end-state (NEVER leave hidden) ----- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-revealed { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .hero h1, .js .hero__subhead, .js .hero__cta-inline, .js .hero__body, .js .hero__demo, .js .hero__cta { animation: none !important; }
}

/* §3b tuning bullets — model-switcher benefits (added 2026-07-09) */
.tuning-list { margin: 1.6rem auto 0; max-width: var(--maxw-measure); padding: 0; list-style: none; display: grid; gap: 0.85rem; }
.tuning-list li { position: relative; padding-left: 1.4rem; font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.55; color: var(--ink-soft); }
.tuning-list li::before { content: ""; position: absolute; left: 0.15rem; top: 0.62em; width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--accent); }
.tuning-list strong { color: var(--ink); font-weight: 600; }

/* ===== unlocked addendum (folded at gate 2026-07-12) ===== */

  /* hero eyebrow - new element above the H1 */
  .hero__eyebrow { margin-bottom: 1.2rem; }

  /* in-body links (§5 memvelope, §7 figcaption) - the global reset strips underlines */
  .section__body a, .proof-fact__cap a {
    text-decoration: underline; text-decoration-color: var(--line-strong);
    text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s;
  }
  .section__body a:hover, .proof-fact__cap a:hover { color: var(--accent); text-decoration-color: var(--accent); }
  .section__body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82em; background: var(--accent-soft); padding: 0.08em 0.4em; border-radius: 4px;
  }

  /* Tan quote echo - color only, words untouched (emphasis ours) */
  .q-echo { font-style: inherit; font-weight: inherit; color: var(--accent); }

  /* §6b SHOW-IT strip (new 2026-07-11 PM per directive-2 Job 2; patterns from sprint/demo-page's
     demo.html + receipts.html - faithful to the deployed product's output contracts) */
  .showit { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 56rem; margin: 2.25rem auto 0; text-align: left; }
  @media (min-width: 768px) { .showit { grid-template-columns: repeat(3, 1fr); } }
  .showit__tile { display: flex; flex-direction: column; gap: 0.7rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel); padding: 1rem 1rem 1.1rem; }
  .showit__label { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
  .showit__desc { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--ink-soft); }
  .showit .msg { max-width: 100%; border-radius: var(--radius-sm); padding: 0.5rem 0.7rem; font-size: 0.88rem; line-height: 1.5; }
  .showit .msg--user { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 3px; }
  .showit .msg--ai { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 3px; }
  .showit .msg--ai p { margin: 0; }
  .showit__who { font-family: var(--font-sans); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
  .showit .prov-chip { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.45rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.68rem; color: var(--accent); }
  .showit .prov-chip .dot { width: 0.4rem; height: 0.4rem; border-radius: 999px; background: var(--accent); }
  .showit__counters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; }
  .showit__counters .ctr { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.7rem; padding: 0.18rem 0.5rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-faint); background: var(--paper); }
  .showit__counters .ctr--hit { color: var(--accent); border-color: rgba(123, 45, 38, 0.35); }
  .showit__steps { margin: 0; padding-left: 1.1rem; font-size: 0.88rem; line-height: 1.55; color: var(--ink-soft); }
  .showit__steps li { margin: 0.3rem 0; }
  .showit-cap { margin: 1.1rem auto 0; max-width: 40rem; text-align: center; font-style: italic; font-size: 0.9rem; color: var(--ink-faint); }

  /* §7 proof-fact exhibit (style-integrated from proof-components/proof-fact-exhibit.html) */
  .proof-fact { margin: 2.25rem auto 0; max-width: 40rem; text-align: left; }
  .proof-fact__card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel); box-shadow: var(--shadow-frame); }
  .proof-fact__body { padding: clamp(1.4rem, 4vw, 2.25rem); }
  .proof-fact__meta, .proof-fact__history {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
    font-family: var(--font-sans); font-size: 0.78rem; line-height: 1.45; letter-spacing: 0.02em;
  }
  .proof-fact__tag { color: var(--accent); font-weight: 600; }
  .proof-fact__sep { color: var(--ink-faint); }
  .proof-fact__text { margin: 1.1rem 0 1.6rem; font-family: var(--font-serif); font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); }
  .proof-fact__history { padding-top: 1.1rem; border-top: 1px solid var(--line); color: var(--ink-faint); }
  .proof-fact__tag--old { color: var(--ink-faint); font-weight: 600; }
  .proof-fact__old-claim { text-decoration-line: line-through; text-decoration-color: rgba(123, 45, 38, 0.52); text-decoration-thickness: 1px; text-underline-offset: 2px; }
  .proof-fact__cap {
    margin: 0; padding: 1.1rem clamp(1.4rem, 4vw, 2.25rem) 1.25rem; border-top: 1px solid var(--line);
    background: var(--accent-soft); font-family: var(--font-sans); font-size: 0.9rem; line-height: 1.55; color: var(--ink-soft);
  }

/* hero motion frame (gate 2026-07-12) */
.hero-motion{width:100%;max-width:860px;margin:0 auto}
.hero-motion__frame{display:block;width:100%;aspect-ratio:3/2;border:0;border-radius:18px;background:transparent;overflow:hidden}
@media (max-width:480px){.hero-motion__frame{aspect-ratio:4/5;border-radius:12px}}

