/* ============================================================================
   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 + persona scenes (motion kept from references, recolored)
   Coordinates scale via container-query units so the whole scene scales as one
   unit and SVG link layers (viewBox 0 0 600 440) stay registered to the cards.
   ========================================================================== */
.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 .cap {
  position: absolute; bottom: 6cqh; left: 0; right: 0; z-index: 6; 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); /* matches the 300ms text-swap in hero.js so the line no longer pops mid-fade */
}
.stage .scn {
  position: absolute; top: 11.4cqh; left: 25%; z-index: 6;
  width: 2px; height: calc(32 * var(--uh)); background: var(--accent); opacity: 0.45; border-radius: 2px;
  animation: scn 2s ease-in-out infinite alternate;
  transition: opacity 0.5s var(--ease-editorial); /* fade out at surface→depth instead of snapping */
}
@keyframes scn { from { transform: translateX(0); } to { transform: translateX(50cqw); } }
.stage:not([data-s="surface"]) .scn { opacity: 0; }

.stage .surf {
  position: absolute; top: 13.2cqh; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5cqw; padding: 0 6.6cqw;
  transition: opacity 0.6s, transform 0.8s;
}
.stage .stag {
  padding: calc(5 * var(--uh)) calc(11 * var(--uw));
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px;
  font-family: var(--font-sans); font-size: calc(11.5 * var(--uw)); color: var(--ink-faint); white-space: nowrap;
}
.stage:not([data-s="surface"]) .surf { opacity: 0.3; transform: translateY(-8px); }

/* compact line-height — card text must not inherit the body's 1.7 (that bloated
   cards past their row pitch and overlapped the parent/trade scenes) */
.stage .dt { font-family: var(--font-sans); color: var(--ink); font-weight: 500; line-height: 1.2; }
.stage .dd { font-family: var(--font-sans); color: var(--ink-soft); line-height: 1.2; }
.stage .ds { font-family: var(--font-sans); color: var(--accent); line-height: 1.2; }
.stage .stag, .scene .nm, .scene .meta, .scene .last, .scene .chip, .scene .row { line-height: 1.2; }

.stage .deliver {
  position: absolute; z-index: 5; background: var(--accent); color: var(--accent-ink); white-space: nowrap;
  border-radius: var(--radius-sm); opacity: 0; box-shadow: 0 3px 12px rgba(123, 45, 38, 0.22);
  transition: opacity 0.55s, transform 0.55s; font-family: var(--font-sans);
}

/* ---------- SCENE: everyone (catch-all) ----------------------------------- */
.scene[data-scene="everyone"] .lk { position: absolute; inset: 0; z-index: 1; pointer-events: none; width: 100%; height: 100%; }
.scene[data-scene="everyone"] .lk line { stroke: var(--accent); stroke-width: 1.5; fill: none; stroke-dasharray: 188; stroke-dashoffset: 188; transition: stroke-dashoffset 0.8s ease; }
.stage[data-s="connect"] .scene[data-scene="everyone"] .lk line,
.stage[data-s="deliver"] .scene[data-scene="everyone"] .lk line { stroke-dashoffset: 0; }
.scene[data-scene="everyone"] .dcard {
  position: absolute; top: 50%; left: 50%; z-index: 2; width: calc(182 * var(--uw));
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: calc(9 * var(--uh)) calc(12 * var(--uw)); opacity: 0;
  transform: translate(-50%, -50%) translate(calc(var(--stx) * var(--uw)), calc(var(--sty) * var(--uh)));
  transition: transform 0.9s cubic-bezier(0.45, 0.05, 0.2, 1), opacity 0.55s ease, border-color 0.5s;
}
.scene[data-scene="everyone"] .dt { font-size: calc(12 * var(--uw)); }
.scene[data-scene="everyone"] .dd { font-size: calc(11 * var(--uw)); margin-top: calc(3 * var(--uh)); }
.scene[data-scene="everyone"] .ds { font-size: calc(11 * var(--uw)); margin-top: calc(4 * var(--uh)); }
.stage[data-s="depth"] .scene[data-scene="everyone"] .dcard { opacity: 1; }
.stage[data-s="connect"] .scene[data-scene="everyone"] .dcard { opacity: 1; transform: translate(-50%, -50%) translate(calc(var(--fx) * var(--uw)), calc(var(--fy) * var(--uh))); }
.stage[data-s="deliver"] .scene[data-scene="everyone"] .dcard { opacity: 0.5; transform: translate(-50%, -50%) translate(calc(var(--fx) * var(--uw)), calc(var(--fy) * var(--uh))); }
.stage[data-s="connect"] .scene[data-scene="everyone"] .breadth,
.stage[data-s="deliver"] .scene[data-scene="everyone"] .breadth { opacity: 0; }
.stage[data-s="connect"] .scene[data-scene="everyone"] .a,
.stage[data-s="connect"] .scene[data-scene="everyone"] .b,
.stage[data-s="deliver"] .scene[data-scene="everyone"] .a,
.stage[data-s="deliver"] .scene[data-scene="everyone"] .b { border-color: var(--accent); }
.scene[data-scene="everyone"] .deliver {
  top: 50%; left: 50%; z-index: 4; font-size: max(11px, calc(12.5 * var(--uw))); padding: calc(9 * var(--uh)) calc(16 * var(--uw));
  transform: translate(-50%, -50%) translate(0, calc(62 * var(--uh)));
}
.stage[data-s="deliver"] .scene[data-scene="everyone"] .deliver { opacity: 1; transform: translate(-50%, -50%) translate(0, calc(52 * var(--uh))); }

/* ---------- SCENE: operator (synthesis web) ------------------------------- */
.scene[data-scene="operator"] .web { position: absolute; inset: 0; z-index: 1; pointer-events: none; width: 100%; height: 100%; }
.scene[data-scene="operator"] .web line { stroke: var(--accent); stroke-width: 1.5; fill: none; transition: stroke-dashoffset 0.7s ease; }
.scene[data-scene="operator"] .web .l1 { stroke-dasharray: 300; stroke-dashoffset: 300; }
.scene[data-scene="operator"] .web .l2 { stroke-dasharray: 214; stroke-dashoffset: 214; transition-delay: 0.15s; }
.scene[data-scene="operator"] .web .l3 { stroke-dasharray: 214; stroke-dashoffset: 214; transition-delay: 0.3s; }
.stage[data-s="connect"] .scene[data-scene="operator"] .web line,
.stage[data-s="deliver"] .scene[data-scene="operator"] .web line { stroke-dashoffset: 0; }
.scene[data-scene="operator"] .ocard {
  position: absolute; top: 50%; left: 50%; z-index: 2; width: calc(166 * var(--uw));
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: calc(8 * var(--uh)) calc(12 * var(--uw)); opacity: 0;
  transform: translate(-50%, -50%) translate(calc(var(--sx) * var(--uw)), calc(var(--sy) * var(--uh)));
  transition: opacity 0.55s ease, border-color 0.5s;
}
.scene[data-scene="operator"] .dt { font-size: calc(12 * var(--uw)); }
.scene[data-scene="operator"] .dd { font-size: calc(10.5 * var(--uw)); margin-top: calc(3 * var(--uh)); }
.scene[data-scene="operator"] .ds { font-size: calc(10.5 * var(--uw)); margin-top: calc(4 * var(--uh)); }
.stage[data-s="depth"] .scene[data-scene="operator"] .ocard,
.stage[data-s="connect"] .scene[data-scene="operator"] .ocard,
.stage[data-s="deliver"] .scene[data-scene="operator"] .ocard { opacity: 1; }
.stage[data-s="connect"] .scene[data-scene="operator"] .ocard,
.stage[data-s="deliver"] .scene[data-scene="operator"] .ocard { border-color: var(--accent); }
.stage[data-s="deliver"] .scene[data-scene="operator"] .ocard { opacity: 0.35; }
.scene[data-scene="operator"] .deliver {
  top: 50%; left: 50%; z-index: 4; font-size: max(11px, calc(12 * var(--uw))); padding: calc(10 * var(--uh)) calc(17 * var(--uw));
  transform: translate(-50%, -50%) translate(0, calc(14 * var(--uh))); transition: opacity 0.6s, transform 0.6s;
}
.stage[data-s="deliver"] .scene[data-scene="operator"] .deliver { opacity: 1; transform: translate(-50%, -50%) translate(0, calc(4 * var(--uh))); }

/* ---------- SCENE: parent (juggle grid) ----------------------------------- */
.scene[data-scene="parent"] .gcard {
  position: absolute; z-index: 3; width: calc(152 * var(--uw));
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: calc(7 * var(--uh)) calc(10 * var(--uw)); opacity: 0; transform: translateY(calc(9 * var(--uh)));
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.5, 0.05, 0.2, 1), border-color 0.45s, background 0.45s;
}
.scene[data-scene="parent"] .dt { font-size: calc(11.5 * var(--uw)); }
.scene[data-scene="parent"] .ds { font-size: calc(10.5 * var(--uw)); margin-top: calc(3 * var(--uh)); }
.stage[data-s="depth"] .scene[data-scene="parent"] .gcard,
.stage[data-s="connect"] .scene[data-scene="parent"] .gcard,
.stage[data-s="deliver"] .scene[data-scene="parent"] .gcard { opacity: 1; transform: translateY(0); }
.stage[data-s="connect"] .scene[data-scene="parent"] .clashcard,
.stage[data-s="deliver"] .scene[data-scene="parent"] .clashcard { border-color: var(--accent); background: var(--accent-soft); }
.stage[data-s="deliver"] .scene[data-scene="parent"] .gcard { opacity: 0.42; }
.stage[data-s="deliver"] .scene[data-scene="parent"] .clashcard { opacity: 0.95; }
.scene[data-scene="parent"] .clash {
  position: absolute; left: 50%; top: 26.8cqh; z-index: 5; white-space: nowrap;
  transform: translateX(-50%) scale(0.85); background: var(--accent); color: var(--accent-ink); letter-spacing: 0.03em;
  font-family: var(--font-sans); font-size: calc(10.5 * var(--uw)); padding: calc(3 * var(--uh)) calc(10 * var(--uw)); border-radius: 20px;
  opacity: 0; box-shadow: 0 2px 8px rgba(123, 45, 38, 0.22); transition: opacity 0.5s 0.3s, transform 0.5s 0.3s;
}
.stage[data-s="connect"] .scene[data-scene="parent"] .clash,
.stage[data-s="deliver"] .scene[data-scene="parent"] .clash { opacity: 1; transform: translateX(-50%) scale(1); }
.scene[data-scene="parent"] .deliver {
  left: 50%; bottom: 16.8cqh; font-size: max(11px, calc(12 * var(--uw))); padding: calc(9 * var(--uh)) calc(16 * var(--uw));
  transform: translateX(-50%) translateY(calc(10 * var(--uh)));
}
.stage[data-s="deliver"] .scene[data-scene="parent"] .deliver { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- SCENE: student (term timeline) -------------------------------- */
.scene[data-scene="student"] .base { position: absolute; inset: 0; z-index: 1; pointer-events: none; width: 100%; height: 100%; }
.scene[data-scene="student"] .base line { stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 460; stroke-dashoffset: 460; transition: stroke-dashoffset 0.9s ease; }
.stage[data-s="depth"] .scene[data-scene="student"] .base line,
.stage[data-s="connect"] .scene[data-scene="student"] .base line,
.stage[data-s="deliver"] .scene[data-scene="student"] .base line { stroke-dashoffset: 0; }
.scene[data-scene="student"] .lk { position: absolute; inset: 0; z-index: 2; pointer-events: none; width: 100%; height: 100%; }
.scene[data-scene="student"] .lk line { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 0.8s ease 0.2s; }
.stage[data-s="connect"] .scene[data-scene="student"] .lk line,
.stage[data-s="deliver"] .scene[data-scene="student"] .lk line { stroke-dashoffset: 0; }
.scene[data-scene="student"] .between { position: absolute; left: 67cqw; top: 55.2cqh; z-index: 2; font-family: var(--font-sans); font-size: calc(13 * var(--uw)); letter-spacing: 0.18em; color: var(--ink-faint); opacity: 0; transition: opacity 0.6s; }
.stage[data-s="depth"] .scene[data-scene="student"] .between,
.stage[data-s="connect"] .scene[data-scene="student"] .between,
.stage[data-s="deliver"] .scene[data-scene="student"] .between { opacity: 1; }
.scene[data-scene="student"] .fin { position: absolute; left: 75.8cqw; top: 59.5cqh; z-index: 4; font-family: var(--font-sans); font-size: calc(10 * var(--uw)); letter-spacing: 0.12em; color: var(--ink-faint); opacity: 0; transition: opacity 0.5s; }
.stage[data-s="connect"] .scene[data-scene="student"] .fin,
.stage[data-s="deliver"] .scene[data-scene="student"] .fin { opacity: 1; }
.scene[data-scene="student"] .chip {
  position: absolute; z-index: 3; white-space: nowrap; background: #fff; border: 1px solid var(--line);
  border-radius: 7px; padding: calc(4 * var(--uh)) calc(9 * var(--uw)); font-family: var(--font-sans);
  font-size: calc(10.5 * var(--uw)); color: var(--ink); opacity: 0;
  transition: opacity 0.55s ease, transform 0.7s cubic-bezier(0.5, 0.05, 0.2, 1);
}
.scene[data-scene="student"] .chip .dot { color: var(--accent); font-size: calc(8 * var(--uw)); margin-right: calc(4 * var(--uw)); }
.scene[data-scene="student"] .chip.flag { border-color: var(--accent); }
.stage[data-s="depth"] .scene[data-scene="student"] .flatchip,
.stage[data-s="connect"] .scene[data-scene="student"] .flatchip,
.stage[data-s="deliver"] .scene[data-scene="student"] .flatchip { opacity: 1; }
.scene[data-scene="student"] .spk { background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent); transform: translateY(calc(14 * var(--uh))); }
.stage[data-s="connect"] .scene[data-scene="student"] .spk,
.stage[data-s="deliver"] .scene[data-scene="student"] .spk { opacity: 1; transform: translateY(0); }
.stage[data-s="deliver"] .scene[data-scene="student"] .chip { opacity: 0.42; }
.scene[data-scene="student"] .deliver {
  top: 50%; left: 50%; z-index: 5; font-size: max(11px, calc(12.5 * var(--uw))); padding: calc(9 * var(--uh)) calc(16 * var(--uw));
  transform: translate(-50%, -50%) translate(0, calc(72 * var(--uh)));
}
.stage[data-s="deliver"] .scene[data-scene="student"] .deliver { opacity: 1; transform: translate(-50%, -50%) translate(0, calc(62 * var(--uh))); }

/* ---------- SCENE: tradesperson (client book) ----------------------------- */
.scene[data-scene="tradesperson"] .row {
  position: absolute; left: 19.7cqw; width: 60.7cqw; z-index: 3; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: calc(7 * var(--uh)) calc(14 * var(--uw));
  display: flex; justify-content: space-between; align-items: center; opacity: 0; transform: translateX(calc(-12 * var(--uw)));
  transition: opacity 0.5s, transform 0.55s cubic-bezier(0.5, 0.05, 0.2, 1), border-color 0.45s, background 0.45s, box-shadow 0.45s;
}
.scene[data-scene="tradesperson"] .row .nm { font-family: var(--font-sans); font-size: calc(12 * var(--uw)); color: var(--ink); font-weight: 500; }
.scene[data-scene="tradesperson"] .row .meta { font-family: var(--font-sans); font-size: calc(10 * var(--uw)); color: var(--ink-soft); margin-top: calc(2 * var(--uh)); }
.scene[data-scene="tradesperson"] .row .last { font-family: var(--font-sans); font-size: calc(10.5 * var(--uw)); color: var(--accent); white-space: nowrap; margin-left: calc(12 * var(--uw)); }
.stage[data-s="depth"] .scene[data-scene="tradesperson"] .row,
.stage[data-s="connect"] .scene[data-scene="tradesperson"] .row,
.stage[data-s="deliver"] .scene[data-scene="tradesperson"] .row { opacity: 1; transform: translateX(0); }
.stage[data-s="connect"] .scene[data-scene="tradesperson"] .followup,
.stage[data-s="deliver"] .scene[data-scene="tradesperson"] .followup { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 4px 13px rgba(123, 45, 38, 0.15); transform: translateX(0) scale(1.025); z-index: 5; }
.stage[data-s="connect"] .scene[data-scene="tradesperson"] .followup .last,
.stage[data-s="deliver"] .scene[data-scene="tradesperson"] .followup .last { color: var(--accent); font-weight: 600; }
.stage[data-s="deliver"] .scene[data-scene="tradesperson"] .row:not(.followup) { opacity: 0.38; }
.scene[data-scene="tradesperson"] .tag {
  position: absolute; left: 55cqw; top: 23.6cqh; z-index: 6; white-space: nowrap; transform: scale(0.85);
  background: var(--accent); color: var(--accent-ink); letter-spacing: 0.03em; font-family: var(--font-sans);
  font-size: calc(10 * var(--uw)); padding: calc(3 * var(--uh)) calc(9 * var(--uw)); border-radius: 20px;
  opacity: 0; box-shadow: 0 2px 8px rgba(123, 45, 38, 0.22); transition: opacity 0.5s 0.3s, transform 0.5s 0.3s;
}
.stage[data-s="connect"] .scene[data-scene="tradesperson"] .tag,
.stage[data-s="deliver"] .scene[data-scene="tradesperson"] .tag { opacity: 1; transform: scale(1); }
.scene[data-scene="tradesperson"] .book {
  position: absolute; left: 0; right: 0; top: 75cqh; z-index: 4; text-align: center;
  font-family: var(--font-serif); font-style: italic; font-size: calc(12.5 * var(--uw)); color: var(--ink-faint); opacity: 0; transition: opacity 0.6s;
}
.stage[data-s="depth"] .scene[data-scene="tradesperson"] .book,
.stage[data-s="connect"] .scene[data-scene="tradesperson"] .book,
.stage[data-s="deliver"] .scene[data-scene="tradesperson"] .book { opacity: 1; }
.scene[data-scene="tradesperson"] .deliver {
  left: 50%; bottom: 16.8cqh; font-size: max(11px, calc(12 * var(--uw))); padding: calc(9 * var(--uh)) calc(16 * var(--uw));
  transform: translateX(-50%) translateY(calc(10 * var(--uh)));
}
.stage[data-s="deliver"] .scene[data-scene="tradesperson"] .deliver { opacity: 1; transform: translateX(-50%) translateY(0); }

/* narrow stage: payoff pill holds its floor and wraps instead of overflowing */
@container stage (max-width: 460px) {
  .stage .deliver { white-space: normal; max-width: 84cqw; line-height: 1.28; text-align: center; }
}

/* ---- persona switcher ---------------------------------------------------- */
.persona { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; align-items: center; }
.persona__label { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin: 0; }
.persona__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.persona__btn {
  font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 500; cursor: pointer;
  color: var(--ink-soft); background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.46rem 0.95rem; transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.persona__btn:hover { border-color: var(--line-strong); color: var(--ink); }
.persona__btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.no-js .persona { display: none; }

/* ---- 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); }

/* ============================================================================
   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 .scn { display: none; }
  .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__cta-inline { margin-top: 1.4rem; }
.hero__cta-inline a {
  font-family: var(--font-sans); font-size: 0.92rem; font-weight: 600; letter-spacing: 0.01em; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 5px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.hero__cta-inline a:hover { color: var(--accent); }

/* ---- §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 .scn, .stage .surf,
  .stage .scene > *:not(.deliver) { display: none !important; }
  .stage .deliver {
    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; }
}
