/* ==========================================================================
   Dominion AI — ai.dominionequity.com
   Design system: "The Quiet Ledger" (see /DESIGN.md — canonical)
   Paper and ink dominate. Purple = Dominion speaking. Dark teal = money.
   Bright teal = a highlighter, nothing more. No gradients anywhere, ever.
   ========================================================================== */

:root {
  --bg:            #FAFBFC;
  --surface:       #ECF2F5;
  --surface-card:  #FFFFFF;
  --ink:           #170D33;
  --ink-muted:     #544C6B;
  --brand:         #42296B;
  --brand-hover:   #352155;
  --money:         #004A59;
  --highlight:     rgba(117, 201, 204, .22);
  --highlight-strong: rgba(117, 201, 204, .55);
  --guarantee-bg:  #E7F2F3;
  --border:        #DCE5EA;
  --border-strong: #C7BDDA;
  --paper-on-dark: #FAFBFC;
  --desk:          #D5DEE4;  /* wide-screen "desk" behind the centered page; darker than paper AND --surface sections so the whole page reads as one card */

  --font-display: "Newsreader", Georgia, serif;
  --font-body:    "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-numeric: "Spline Sans Mono", "SF Mono", Menlo, monospace;

  --max-content: 1200px;
  --gutter: 48px;

  /* Motion — "the ledger settles" (DESIGN.md Motion v3) */
  --dur-settle: 550ms;   /* entrances */
  --dur-draw:   650ms;   /* hairline rules */
  --dur-diagram: 850ms;  /* SVG stroke draws */
  --dur-ui:     200ms;   /* hovers/focus */
  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);   /* fast start, slow finish, no overshoot */
  --ease-draw:   cubic-bezier(0.65, 0, 0.35, 1);  /* symmetric, pen-like */
  --stagger: 80ms;
  --settle-distance: 14px;
}

/* ---------- Reset (minimal) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, blockquote, figure { margin: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

html { scroll-behavior: smooth; }
/* Wide-screen frame: the page is a centered "document" capped at its native
   width; the area beside it is the quiet --surface "desk" (no border, tonal
   only). Below 1440px this is inert — body fills the viewport and the desk
   never shows. */
html { background: var(--desk); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: -0.008em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--highlight-strong); color: var(--ink); }

/* ---------- Layout primitives ---------- */
.wrap {
  max-width: calc(var(--max-content) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding: 128px 0; }
.section--tight { padding: 96px 0; }
.section--band { padding: 96px 0; }

.measure { max-width: 62ch; }

.rule { border: 0; border-top: 1px solid var(--border); margin: 0; }
.rule--strong { border-top-color: var(--border-strong); }

/* ---------- Typography ---------- */
h1, .display-hero {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.display-page {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 3.8vw, 2.75rem); /* ~44px desktop */
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
}

.kicker {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.note { font-size: 14px; color: var(--ink-muted); }
.footnote { font-size: 13.5px; color: var(--ink-muted); line-height: 1.55; }

.quiet { color: var(--ink-muted); }

/* Inline money figures: inherit the surrounding face, tinted money-teal.
   Display lockups (price, stat, table nums) still use Spline Sans Mono. */
.fig {
  color: var(--money);
}
.band .fig, .footer-dark .fig { color: inherit; }

/* Mono fact line (hero) & mono labels — sanctioned non-money mono uses */
.factline {
  font-family: var(--font-numeric);
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* A fact line that links out keeps the muted mono register: the global `p a`
   treatment (brand color plus a 2px highlight underline) is sized for Newsreader
   body copy and shouted at 12.5px uppercase mono. Hairline underline, ink on
   hover, no color change. */
.factline a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition:
    color 200ms ease-out,
    text-decoration-color 200ms ease-out;
}
.factline a:hover {
  color: var(--ink);
  text-decoration-color: var(--highlight-strong);
}

/* Proof stats: hairline rule above, big mono value, small caps caption */
.stat { border-top: 1px solid var(--border-strong); padding-top: 16px; }
.stat-value {
  font-family: var(--font-numeric);
  font-weight: 500;
  font-size: 52px;
  line-height: 1.1;
  color: var(--money);
  font-variant-numeric: tabular-nums lining-nums;
}
.stat-caption {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 8px;
}

/* Big price lockup: 42–52px mono, term adjacent and legible */
.price-lockup { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price-lockup .price {
  font-family: var(--font-numeric);
  font-weight: 500;
  font-size: 46px;
  color: var(--money);
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1;
}
.price-lockup .term {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Pull quotes */
.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
  border-left: 2px solid var(--border-strong);
  padding-left: 24px;
  color: var(--ink);
}
.quote .note { font-family: var(--font-body); font-style: normal; }

/* Brand figures (the Leverage Graph et al.) — quiet line-art SVG, never decoration */
.diagram { margin-top: 64px; }
.diagram img, .diagram svg { width: 100%; max-width: 680px; height: auto; }
.diagram figcaption {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  max-width: 680px;
}
.diagram--tight { margin-top: 24px; }
.diagram--tight img, .diagram--tight svg { max-width: 560px; }

/* ---------- Links ---------- */
a { color: var(--brand); }
p a, li a, .footnote a, td a {
  text-decoration: underline;
  text-decoration-color: var(--highlight-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color 200ms ease-out;
}
p a:hover, li a:hover, .footnote a:hover, td a:hover {
  text-decoration-color: rgb(117, 201, 204);
}

.textlink {
  font-weight: 500;
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: var(--highlight-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color 200ms ease-out;
}
.textlink:hover { text-decoration-color: rgb(117, 201, 204); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--highlight-strong);
  border-radius: 2px;
}

.band :focus-visible {
  outline-color: var(--paper-on-dark);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface-card);
  color: var(--brand);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  padding: 14px 28px;
  border-radius: 3px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease-out, color 200ms ease-out, border-color 200ms ease-out;
}
.btn--primary { background: var(--brand); color: var(--paper-on-dark); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--border-strong);
}
.btn--outline:hover { border-color: var(--brand); }
.btn--paper { background: var(--paper-on-dark); color: var(--brand); }
.btn--paper:hover { background: #fff; color: var(--brand-hover); }
.btn--small { padding: 9px 18px; font-size: 14.5px; }

.cta-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* ---------- Masthead ---------- */
.masthead { border-bottom: 1px solid var(--border); background: var(--bg); }
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 72px;
}
.masthead .wordmark { display: inline-flex; align-items: center; flex-shrink: 0; }
.masthead .wordmark img { height: 26px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  transition: color 200ms ease-out;
}
.nav a:hover { color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 8px 12px;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { padding: 112px 0 96px; }
.hero-inner { max-width: 800px; } /* columns 1–8; right third deliberately empty */
.hero .kicker { margin-bottom: 24px; }
.hero h1 { margin-bottom: 28px; }
.hero .subhead { font-size: 18px; line-height: 1.6; max-width: 58ch; margin-bottom: 40px; }
.hero .cta-row { margin-bottom: 56px; }
.hero .factline-rule { border-top: 1px solid var(--border); padding-top: 16px; }

/* ---------- Sections ---------- */
.section-head { margin-bottom: 56px; }
.section-head .kicker { margin-bottom: 16px; }
.section-head h2 { max-width: 30ch; }
.section--surface { background: var(--surface); }

.prose > p { max-width: 62ch; }
.prose > p + p { margin-top: 24px; }
.prose ul { max-width: 62ch; padding-left: 22px; }
.prose li + li { margin-top: 12px; }

/* Three-column feature row */
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.cols-3 h3 { margin-bottom: 14px; }
.cols-3 p { color: var(--ink); }

/* Quote wall */
.quote-wall { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; }

/* ---------- The document table (flagship object) ---------- */
.doc {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 3px;
}
.doc-head { padding: 28px 32px 24px; border-bottom: 1px solid var(--border); }
.doc-title { font-family: var(--font-display); font-weight: 500; font-size: 22px; }
.doc-subline { font-size: 13.5px; color: var(--ink-muted); margin-top: 6px; }

.doc table { width: 100%; border-collapse: collapse; }
.doc thead th {
  background: var(--surface);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: left;
  padding: 14px 32px;
}
.doc tbody td { padding: 22px 32px; border-top: 1px solid var(--border); vertical-align: top; }
.doc tbody tr { transition: background-color 180ms ease-out; }
.doc tbody tr:hover { background: var(--highlight); }
.doc tbody tr td { min-height: 60px; }

.doc .row-name { font-family: var(--font-display); font-weight: 500; font-size: 19px; line-height: 1.3; }
.doc .row-detail { font-size: 14px; color: var(--ink-muted); margin-top: 6px; font-family: var(--font-body); }
.doc .row-index {
  font-family: var(--font-numeric);
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.doc td.num, .doc th.num { text-align: right; }
.doc td.num {
  font-family: var(--font-numeric);
  font-weight: 500;
  font-size: 19px;
  color: var(--money);
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}
.doc td.num .per { font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--ink-muted); }
.doc-footnotes { padding: 20px 32px 24px; border-top: 1px solid var(--border); }
.doc-footnotes p { font-size: 13.5px; color: var(--ink-muted); max-width: none; }
.doc-footnotes p + p { margin-top: 8px; }

/* Footnote markers: small on purpose — oversized markers look funny */
sup.fn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 9px;
  color: var(--brand);
  vertical-align: 0.55em;
  line-height: 0;
}

/* ---------- Step timeline ---------- */
.steps { border-top: 1px solid var(--border); }
.step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.step-index {
  font-family: var(--font-numeric);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  padding-top: 6px;
  white-space: nowrap;
}
.step h3 { margin-bottom: 12px; }
.step p { max-width: 62ch; }
.step p + p { margin-top: 16px; }

/* Timeline variant (/audit): the engagement schedule. Mono time labels
   sit right-aligned against a hairline spine with a tick at each step,
   so the marker column answers "when", not just "which". */
.steps--timeline { border-top: 0; }
.steps--timeline .step {
  grid-template-columns: 148px 1fr;
  gap: 32px;
  padding: 0 0 64px;
  border-bottom: 0;
  position: relative;
}
.steps--timeline .step:last-child { padding-bottom: 0; }
.steps--timeline .step::before { /* spine, continuous through the gap */
  content: "";
  position: absolute;
  left: 164px; /* 16px left of the text column (starts at 180px) */
  top: 6px;
  bottom: -6px;
  width: 1px;
  background: var(--border);
}
.steps--timeline .step:last-child::before { bottom: auto; height: 28px; }
.steps--timeline .step::after { /* tick crossing the spine at each step */
  content: "";
  position: absolute;
  left: 158px; /* 12px tick centered on the spine */
  top: 14px;
  width: 12px;
  height: 1px;
  background: var(--border-strong);
}
.step-when {
  padding-top: 7px;
  text-align: right;
  font-family: var(--font-numeric);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  white-space: nowrap;
}

/* ---------- Guarantee callout (signed provision) ---------- */
.guarantee {
  background: var(--guarantee-bg);
  border-left: 3px solid var(--money);
  border-radius: 3px;
  padding: 28px 32px;
}
.guarantee-label {
  font-family: var(--font-numeric);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--money);
  margin-bottom: 12px;
}
.guarantee-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.45;
}

/* ---------- Cards (only for genuinely separate choices) ---------- */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card h2, .card h3 { font-size: 22px; }
.card p { flex-grow: 1; }
.card-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-row--2 { grid-template-columns: repeat(2, 1fr); }

.card--placeholder { border-style: dashed; background: transparent; }
.card--placeholder .kicker { color: var(--ink-muted); }

/* ---------- FAQ (hairline rows, no boxes) ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 26px 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.35;
  transition: color 200ms ease-out;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq summary::after {
  content: "+";
  font-family: var(--font-numeric);
  font-size: 18px;
  color: var(--ink-muted);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq .faq-body { padding: 0 0 28px; max-width: 62ch; }
.faq details[open] .faq-body { animation: faq-open 200ms ease-out; }
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- CTA band (the one saturated moment) ---------- */
.band { background: var(--brand); color: var(--paper-on-dark); }
.band h2 { color: var(--paper-on-dark); max-width: 26ch; }
.band p { color: rgba(250, 251, 252, .82); max-width: 58ch; margin-top: 20px; }
.band .cta-row { margin-top: 36px; }
.band a:not(.btn) { color: var(--paper-on-dark); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 64px; }
.footer-inner { display: flex; flex-direction: column; gap: 20px; }
.footer .legal-line { font-size: 14px; color: var(--ink-muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a {
  font-size: 14px;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 200ms ease-out;
}
.footer-nav a:hover { color: var(--brand); }
.footer .wordmark img { height: 22px; width: auto; }

/* ---------- Essay register (/how-i-think): one reading column ---------- */
.exec main { --reading: 780px; }
.exec .reading { max-width: var(--reading); margin: 0 auto; }
.exec .section { padding: 140px 0; }
.exec .prose > p,
.exec .reading p {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.7;
  letter-spacing: 0;
  max-width: none;
}
.exec .reading p + p { margin-top: 28px; }
.exec .reading ul { font-family: var(--font-display); font-size: 19px; line-height: 1.7; padding-left: 24px; }
.exec .reading li + li { margin-top: 20px; }
.exec .hero-inner { max-width: var(--reading); margin: 0 auto; }

/* ---------- Legal (plain text template) ---------- */
.legal main { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }
.legal .section { padding: 80px 0 128px; }
.legal h1 { font-size: clamp(2rem, 3.4vw, 2.5rem); margin-bottom: 8px; }
.legal .updated { font-size: 13.5px; color: var(--ink-muted); margin-bottom: 40px; }
.legal h2 { font-size: 24px; margin: 48px 0 16px; }
.legal p, .legal ul { max-width: none; }
.legal p + p { margin-top: 16px; }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 10px; }
.legal .agreement-version {
  margin-bottom: 24px;
  color: var(--brand);
  font-family: var(--font-numeric);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.legal .agreement-draft-notice {
  margin: 0 0 48px;
  padding: 20px 22px;
  border-left: 3px solid var(--brand);
  background: var(--surface);
}
.legal .agreement-draft-notice p { margin: 0; }
.legal .agreement-draft-notice p + p { margin-top: 8px; }
.legal .agreement-placeholder {
  color: var(--brand);
  font-family: var(--font-numeric);
  font-size: .9em;
}
.legal .agreement-counsel-note {
  color: var(--ink-muted);
  font-size: 14px;
}
.legal .agreement-signatures {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border-strong);
}
.legal .agreement-signatures p + p { margin-top: 24px; }

/* ---------- Utility spacing ---------- */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-56 { margin-bottom: 56px; }

/* ==========================================================================
   Motion — "the ledger settles" (DESIGN.md Motion v3; rig: assets/js/reveal.js)
   Fallback-first (WCAG C39): the static page is the default state. Every
   animated state lives inside the no-preference media query AND under the
   JS-armed .reveal-on class — no-JS, crawlers, and reduced-motion visitors
   see the fully-visible static page. Only opacity, transform, and
   stroke-dashoffset are ever animated.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* The settle: opacity + ≤16px rise, once, staggered via --d (set inline
     by reveal.js). Elements return to their exact static layout box. */
  .reveal-on [data-r] {
    opacity: 0;
    transform: translateY(var(--settle-distance));
    transition: opacity var(--dur-settle) var(--ease-settle) var(--d, 0ms),
                transform var(--dur-settle) var(--ease-settle) var(--d, 0ms);
  }
  .reveal-on [data-scene].is-in [data-r],
  .reveal-on [data-scene].is-in[data-r] { opacity: 1; transform: none; }

  /* The ruled line: hero factline rule draws left→right. The real border
     goes transparent only once armed; a 1px overlay scales in its place. */
  .reveal-on .hero[data-scene] .factline-rule { border-top-color: transparent; position: relative; }
  .reveal-on .hero[data-scene] .factline-rule::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-draw) var(--ease-draw);
  }
  .reveal-on .hero[data-scene].is-in .factline-rule::before { transform: scaleX(1); }

  /* Quote wall: each quote's left bar draws top→bottom as the quote settles. */
  .reveal-on .quote-wall[data-scene] .quote { border-left-color: transparent; position: relative; }
  .reveal-on .quote-wall[data-scene] .quote::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -2px;
    width: 2px;
    background: var(--border-strong);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 400ms var(--ease-draw) var(--d, 0ms);
  }
  .reveal-on .quote-wall[data-scene].is-in .quote::before { transform: scaleY(1); }

  /* The diagram draws: SVG strokes carry pathLength="1" so the dash math is
     identical everywhere; zone groups reuse the standard settle via data-r. */
  .reveal-on .diagram .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .reveal-on [data-scene].is-in .draw {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset var(--dur-diagram) var(--ease-draw);
  }
  .reveal-on .diagram .draw-fill { opacity: 0; }
  .reveal-on [data-scene].is-in .draw-fill {
    opacity: 1;
    transition: opacity 300ms var(--ease-settle) 700ms; /* arrowheads fade as the axes complete */
  }

  /* The document assembles (fee schedule, the home signature): the doc card
     settles; its contents print in place top-to-bottom (opacity only —
     no compound travel, and table rows keep their static geometry). */
  .reveal-on .doc[data-scene] [data-r] { transform: none; }
  .reveal-on .doc[data-scene] .doc-head { border-bottom-color: transparent; position: relative; }
  .reveal-on .doc[data-scene] .doc-head::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background: var(--border);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-draw) var(--ease-draw) var(--d, 0ms);
  }
  .reveal-on .doc[data-scene].is-in .doc-head::after { transform: scaleX(1); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .cols-3 { gap: 36px; }
  .quote-wall { gap: 40px 48px; }
}

@media (max-width: 860px) {
  :root { --gutter: 32px; }
  .cols-3 { grid-template-columns: 1fr; gap: 40px; }
  .card-row, .card-row--2 { grid-template-columns: 1fr; }
  .quote-wall { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 96px 0; }
  .exec .section { padding: 104px 0; }
}

/* Progressive nav: shed low-priority links before the bar would wrap, in
   priority order (Executive Partner, then About, then Insights), then
   collapse to the hamburger. Targeted by href so no per-page markup change is
   needed; the dropped links reappear in the hamburger menu below. */
@media (max-width: 1160px) { .nav a[href="/executive/"]   { display: none; } }
@media (max-width: 1040px) { .nav a[href="/about/"]        { display: none; } }
@media (max-width: 940px)  { .nav a[href="/insights/"]     { display: none; } }

@media (max-width: 860px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px var(--gutter) 24px;
    z-index: 50;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; width: 100%; }
  /* bring back the links dropped from the desktop bar so the hamburger is complete */
  .nav a[href="/executive/"], .nav a[href="/about/"], .nav a[href="/insights/"] { display: block; }
  .nav .btn { margin-top: 12px; width: auto; }
  .nav-toggle { display: inline-block; }
  .masthead { position: relative; }
}

@media (max-width: 720px) {
  :root { --gutter: 22px; }
  body { font-size: 16px; }
  h2 { font-size: 27px; }
  h3 { font-size: 21px; }
  .display-page { font-size: 2rem; }
  .hero { padding: 72px 0 72px; }
  .hero .subhead { font-size: 17px; }
  .section { padding: 80px 0; }
  .section--band { padding: 72px 0; }
  .quote { font-size: 19px; padding-left: 18px; }
  .stat-value { font-size: 42px; }
  .price-lockup .price { font-size: 38px; }
  .doc-head, .doc thead th, .doc tbody td, .doc-footnotes { padding-left: 20px; padding-right: 20px; }
  .step { grid-template-columns: 1fr; gap: 10px; padding: 32px 0; }
  .step-index { padding-top: 0; }
  .steps--timeline .step { grid-template-columns: 1fr; gap: 8px; padding: 0 0 48px; }
  .steps--timeline .step:last-child { padding-bottom: 0; }
  .steps--timeline .step::before,
  .steps--timeline .step::after { content: none; }
  .step-when { padding-top: 0; text-align: left; font-size: 12px; }
  .faq summary { font-size: 18px; }
  .guarantee { padding: 24px 20px; }
  .exec .section { padding: 88px 0; }
}

/* Stacking document tables on small screens */
@media (max-width: 600px) {
  .doc table, .doc thead, .doc tbody, .doc tr, .doc td, .doc th { display: block; }
  .doc thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .doc tbody td { border-top: 0; padding-top: 6px; padding-bottom: 6px; }
  .doc tbody tr { border-top: 1px solid var(--border); padding: 18px 0; }
  .doc td.num { text-align: left; padding-bottom: 20px; }
}

@media (max-width: 360px) {
  .agreement-page .masthead-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .agreement-page .masthead .wordmark { align-self: flex-start; }
  .agreement-page .masthead .btn { text-align: center; }
}

/* ---------- Print: it is, after all, a document ---------- */
@media print {
  .masthead, .band, .nav-toggle { display: none; }
  body { background: #fff; }
}
