/* ============================================================
   ANIMA ADVENTURES — DESIGN SYSTEM
   ------------------------------------------------------------
   Structure replaces decoration. Typography carries hierarchy.
   Deliberate emptiness gives the reader room.

   RULES FOR ANY FUTURE EDIT
   1. No component rule may contain a hex or rgba() value.
      If you are typing a colour outside the token blocks,
      a token is missing. Add it there instead.
   2. Content starts at column 1 or column 7. Nowhere else.
      Position is declared once, on the section, via data-col.
   3. Separation is a 1px hairline. Never a box, card, shadow,
      radius or gradient.
   4. Accent colours appear only as a 2px keyline marking a
      journey type. Never a background, block or button.
   5. The page background crossfade is the only scroll effect.
      Sections themselves never animate.
   6. Nothing below 12px.

   CANONICAL NAV BLOCK — keep byte-identical across all pages
   so one find/replace maintains it. Subpages use ../ prefixes.
   ============================================================ */


/* ── 1. TOKENS ─────────────────────────────────────────────── */

:root {
  /* raw palette — never referenced by component rules */
  --paper:          #F8F6F1;
  --charcoal:       #1D1D1B;
  --grey-soft:      #63635F;
  --grey-faint:     #8A8A85;
  --hairline-paper: #DEDBD2;
  --olive:          #AEAE36;
  --gold:           #F1AC23;
  --blue:           #4481D1;

  /* semantic — light is the default */
  --fg:           var(--charcoal);
  --fg-secondary: var(--grey-soft);
  --fg-muted:     var(--grey-faint);
  --hairline:     var(--hairline-paper);
  --field-line:   var(--hairline-paper);
  --focus:        var(--charcoal);

  /* layout */
  --maxw: 1440px;
  --pad:  48px;
  --gap:  24px;
  --nav-h: 88px;
  --space-section: clamp(120px, 14vh, 200px);
  --space-block:   clamp(40px, 5vh, 72px);

  /* type */
  --display: 'Cormorant Garamond', Georgia, serif;
  --sans:    'Jost', system-ui, -apple-system, sans-serif;
  --type-page-title: clamp(56px, 8.6vw, 132px);
  --type-section:    clamp(34px, 4.4vw, 62px);
  --type-lede:  19px;
  --type-body:  17px;
  --type-small: 12px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* dark band — one rule themes an entire subtree, because
   custom properties inherit */
[data-tone="dark"] {
  --fg:           var(--paper);
  --fg-secondary: rgba(248, 246, 241, 0.62);
  --fg-muted:     rgba(248, 246, 241, 0.42);
  --hairline:     rgba(248, 246, 241, 0.16);
  --field-line:   rgba(248, 246, 241, 0.16);
  --focus:        var(--paper);
}

/* journey accents — the only place accent colour is allowed */
[data-journey="wilderness"] { --keyline: var(--olive); }
[data-journey="cities"]     { --keyline: var(--gold); }
[data-journey="islands"]    { --keyline: var(--blue); }


/* ── 2. RESET + BASE ───────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background-color: var(--paper);
  transition: background-color 700ms ease;
}
/* the fixed layer does not cover the iOS/macOS rubber-band gutter */
html[data-page-tone="dark"] { background-color: var(--charcoal); }

/* clip, not hidden — overflow-x:hidden on the root makes html a
   scroll container and silently breaks sticky and smooth scroll */
html, body { overflow-x: clip; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--type-body);
  line-height: 1.7;
  color: var(--fg);
  background: transparent;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 1px solid var(--focus); outline-offset: 3px; }

/* suppress the first tone transition on load / restored scroll */
html.no-fade, html.no-fade .page-bg::after { transition: none !important; }


/* ── 3. PAGE BACKGROUND LAYER ──────────────────────────────── */

.page-bg {
  position: fixed; inset: 0; z-index: 0;
  background: var(--paper);
  pointer-events: none;
}
.page-bg::after {
  content: ''; position: absolute; inset: 0;
  background: var(--charcoal);
  opacity: 0;
  transition: opacity 700ms ease;
}
html[data-page-tone="dark"] .page-bg::after { opacity: 1; }

/* positive z-index on content, never negative on the background */
nav, main, footer { position: relative; z-index: 1; }


/* ── 4. TYPE ───────────────────────────────────────────────── */

.page-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: var(--type-page-title);
  line-height: 0.96;
  letter-spacing: -0.015em;
  color: var(--fg);
  overflow-wrap: break-word;
}
.page-title em { font-style: italic; }

.section-heading {
  font-family: var(--display);
  font-weight: 300;
  font-size: var(--type-section);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.section-heading em { font-style: italic; }

.lede {
  font-size: var(--type-lede);
  line-height: 1.75;
  color: var(--fg-secondary);
}

.body { font-size: var(--type-body); line-height: 1.75; color: var(--fg-secondary); }
.body + .body { margin-top: 1.1em; }
.body strong { font-weight: 400; color: var(--fg); }

.pull {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.3;
  color: var(--fg);
}

.numeral,
.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--type-small);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--fg-muted);
}
.eyebrow-strong { color: var(--fg); }


/* ── 5. LAYOUT ─────────────────────────────────────────────── */

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: var(--space-block);
}

/* start position lives on the section, so a block can never be
   authored at column 4 */
[data-col="a"] { --start: 1; --text-start: 2; }
[data-col="b"] { --start: 7; --text-start: 8; }

.block      { grid-column: var(--start) / span var(--span, 5); min-width: 0; }
.block-num  { grid-column: var(--start) / span 1; min-width: 0; }
.block-text { grid-column: var(--text-start) / span var(--span, 4); min-width: 0; }

/* legal spans. max 6 from either start: 1+6=7 stops before
   column 7, 7+6=13 ends at 12. this is what guarantees whole
   empty columns. */
.span-3 { --span: 3; }
.span-4 { --span: 4; }
.span-5 { --span: 5; }
.span-6 { --span: 6; }

/* the two deliberate exceptions, named so they are greppable */
.block-title { grid-column: var(--start) / span 10; min-width: 0; }
.rule {
  grid-column: 1 / -1;
  height: 1px; border: 0;
  background: var(--hairline);
}
.rule-half { grid-column: var(--start) / span 6; height: 1px; border: 0; background: var(--hairline); }

section { padding-block: var(--space-section); }
section[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

/* bands must be tall enough that the viewport midline is always
   inside exactly one of them */
[data-tone] { min-height: 60vh; }


/* ── 6. LINKS + KEYLINE ────────────────────────────────────── */

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--fg-muted);
  transition: text-decoration-color 0.25s ease;
}
a:hover { text-decoration-color: var(--fg); }

/* text link at reading scale — replaces every filled button */
.btn-line {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  color: var(--fg);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: var(--fg-muted);
  transition: text-decoration-color 0.25s ease;
}
.btn-line:hover { text-decoration-color: var(--fg); }
.btn-line-sm { font-size: var(--type-small); letter-spacing: 0.14em; text-transform: uppercase; text-underline-offset: 5px; }

/* the only permitted use of an accent colour */
.keyline {
  display: block;
  width: 34%;
  height: 0;
  border-top: 2px solid var(--keyline, var(--fg));
  margin-bottom: 20px;
  transition: width 0.45s ease;
}
a:hover .keyline,
a:focus-visible .keyline { width: 100%; }


/* ── 7. LISTS ──────────────────────────────────────────────── */

.hair-list { list-style: none; }
.hair-list li {
  padding-block: 18px;
  border-top: 1px solid var(--hairline);
  font-size: var(--type-body);
  line-height: 1.6;
  color: var(--fg-secondary);
}
.hair-list li:last-child { border-bottom: 1px solid var(--hairline); }

/* numbered rows — only where content is genuinely a sequence */
.seq { list-style: none; }
.seq > li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  column-gap: var(--gap);
  padding-block: 24px;
  border-top: 1px solid var(--hairline);
}
.seq > li:last-child { border-bottom: 1px solid var(--hairline); }
.seq .n { font-size: var(--type-small); letter-spacing: 0.14em; color: var(--fg-muted); padding-top: 4px; }
.seq h3 { font-family: var(--display); font-weight: 300; font-size: 26px; line-height: 1.2; color: var(--fg); margin-bottom: 8px; }
.seq p  { font-size: var(--type-body); line-height: 1.7; color: var(--fg-secondary); max-width: 62ch; }


/* ── 8. NAV ────────────────────────────────────────────────── */

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--pad);
  border-bottom: 1px solid transparent;
  transition: height 0.4s var(--ease), border-color 0.4s ease, background-color 0.4s ease;
}
nav.scrolled { height: 64px; border-bottom-color: var(--hairline); }

/* nav sits over both tones, so it follows the global flag */
nav { --fg: var(--charcoal); --fg-muted: var(--grey-faint); --hairline: var(--hairline-paper); }
html[data-page-tone="dark"] nav { --fg: var(--paper); --fg-muted: rgba(248,246,241,0.42); --hairline: rgba(248,246,241,0.16); }
nav a { color: var(--fg); transition: color 700ms ease, text-decoration-color 0.25s ease; }

.nav-brand { display: block; position: relative; width: 132px; height: 30px; text-decoration: none; transition: height 0.4s var(--ease); }
.nav-brand img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; object-position: left center;
  transition: opacity 700ms ease;
}
.nav-brand .logo-light { opacity: 0; }
html[data-page-tone="dark"] .nav-brand .logo-dark  { opacity: 0; }
html[data-page-tone="dark"] .nav-brand .logo-light { opacity: 1; }
nav.scrolled .nav-brand { height: 22px; }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  font-size: var(--type-small);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color 700ms ease, border-color 0.25s ease;
}
.nav-links a:hover,
.nav-links a.active { border-bottom-color: var(--fg); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px; z-index: 110;
  color: var(--fg);
}
.nav-toggle span { display: block; width: 22px; height: 1px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.3s ease; }
nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* dropdown — behaviour preserved exactly */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 14px); right: 0;
  min-width: 260px;
  padding: 14px 0;
  background: var(--paper);
  border-top: 1px solid var(--hairline-paper);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 300;
}
html[data-page-tone="dark"] .nav-dropdown-menu { background: var(--charcoal); border-top-color: rgba(248,246,241,0.16); }
.nav-dropdown-menu::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
@media (hover: hover) {
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown-menu:hover { opacity: 1; pointer-events: all; }
}
.nav-dropdown-menu.open { opacity: 1; pointer-events: all; }
.nav-dropdown-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  font-size: var(--type-small);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-muted); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease;
}
.nav-dropdown-item:hover { color: var(--fg); }
.nav-dropdown-dot { width: 0; height: 0; border-top: 2px solid currentColor; width: 14px; flex-shrink: 0; }
.nav-dropdown-arrow { display: inline-block; vertical-align: middle; margin-left: 4px; opacity: 0.5; transition: transform 0.2s ease; }
@media (hover: hover) { .nav-dropdown:hover .nav-dropdown-arrow { transform: rotate(180deg); } }


/* ── 9. FOOTER ─────────────────────────────────────────────── */

footer { padding-block: var(--space-section) 64px; }
.footer-main {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 48px; flex-wrap: wrap;
  padding-bottom: 40px;
}
.footer-brand-name { width: 120px; }
.footer-brand-name img { width: 100%; height: auto; }
.footer-tagline { font-size: var(--type-small); letter-spacing: 0.1em; color: var(--fg-muted); margin-top: 10px; }
.footer-links { display: flex; gap: 28px; list-style: none; flex-wrap: wrap; }
.footer-links a {
  font-size: var(--type-small); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-muted); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 3px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.footer-links a:hover { color: var(--fg); border-bottom-color: var(--fg); }
.footer-legal-bar { border-top: 1px solid var(--hairline); padding-top: 24px; }
.footer-legal-text { font-size: var(--type-small); line-height: 1.7; letter-spacing: 0.02em; color: var(--fg-muted); max-width: 720px; text-transform: none; }


/* ── 10. HERO ENTRANCE — one per page, the only load motion ── */

.hero-in { opacity: 0; animation: heroIn 0.9s var(--ease) 0.1s forwards; }
@keyframes heroIn { to { opacity: 1; } }


/* ── 11. OVERLAY SHELL ─────────────────────────────────────────
   Shared by the intake form and the quiz. They are the same kind
   of moment and must look identical. The quiz keeps its original
   ids and classes — only presentation is declared here.
   ------------------------------------------------------------ */

.ov,
.quiz-overlay {
  position: fixed; inset: 0; z-index: 500;
  width: 100vw; height: 100dvh;     /* dvh — mobile Safari's toolbar would cut the submit button */
  background: var(--paper);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: none;
}
.ov.open,
.quiz-overlay.open { display: block; }
html.is-locked { overflow: hidden; }

.ov-inner,
.quiz-modal {
  max-width: 900px;
  margin-inline: auto;
  padding: 0 var(--pad) 96px;
  background: none;
  border: 0;
}

/* top bar: progress + close */
.ov-bar {
  position: sticky; top: 0; z-index: 2;
  background: var(--paper);
  padding-block: 28px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.ov-close,
.quiz-close {
  background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 400;
  font-size: var(--type-small); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-muted);
  text-decoration: underline; text-underline-offset: 5px;
  text-decoration-color: transparent;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}
.ov-close:hover,
.quiz-close:hover { color: var(--fg); text-decoration-color: var(--fg); }
.quiz-close { position: absolute; top: 28px; right: var(--pad); z-index: 3; }

/* progress — a hairline track with a fill the JS sets the width of */
.ov-track,
.quiz-progress-track {
  height: 1px; width: 100%;
  background: var(--hairline);
  margin-top: 14px;
}
.ov-fill,
.quiz-progress-fill {
  display: block; height: 1px; width: 0;
  background: var(--fg);
  transition: none;            /* motion budget is closed — it snaps */
}
.ov-step,
.quiz-step-counter {
  font-family: var(--sans); font-weight: 400;
  font-size: var(--type-small); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-muted);
}

/* question / step heading */
.ov-q,
.quiz-q {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(30px, 4vw, 46px); line-height: 1.12;
  color: var(--fg);
  margin: 56px 0 40px;
  max-width: 20ch;
}
.ov-legend { font-size: var(--type-small); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 10px; }

/* options + chips — identical treatment, no filled backgrounds */
.quiz-options { display: flex; flex-direction: column; }
.quiz-option,
.chip {
  display: block; width: 100%; text-align: left;
  background: none; border: 0;
  border-bottom: 1px solid var(--field-line);
  padding: 20px 0;
  min-height: 44px;
  font-family: var(--sans); font-weight: 300;
  font-size: var(--type-lede); line-height: 1.5;
  color: var(--fg-secondary);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.quiz-option:first-child,
.chip:first-child { border-top: 1px solid var(--field-line); }
.quiz-option:hover,
.chip:hover { color: var(--fg); }
/* selected is marked by the border and nothing else */
.quiz-option.selected,
.chip.selected,
.chip[aria-checked="true"] {
  color: var(--fg);
  border-bottom: 2px solid var(--fg);
}

.chip-group { display: flex; flex-direction: column; }
.chip-group + .ov-field { margin-top: var(--space-block); }

/* fields */
.ov-field { margin-bottom: var(--space-block); }
.ov-label { display: block; font-size: var(--type-small); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 14px; }
.ov-input {
  display: block; width: 100%;
  background: none; border: 0;
  border-bottom: 1px solid var(--field-line);
  padding: 12px 0;
  font-family: var(--sans); font-weight: 300;
  font-size: var(--type-lede); line-height: 1.5;
  color: var(--fg);
  transition: border-color 0.25s ease;
}
.ov-input::placeholder { color: var(--fg-muted); }
.ov-input:focus { outline: none; border-bottom-color: var(--fg); }
textarea.ov-input { resize: vertical; min-height: 96px; }

/* step visibility — specificity (0,2,0) beats (0,1,0), so no !important.
   without the second rule the bare display would defeat the UA
   [hidden] rule and render all three steps at once. */
.ov-stepgroup { display: block; }
.ov-stepgroup[hidden] { display: none; }

/* nav controls */
.ov-nav,
.quiz-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: var(--space-block);
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.quiz-prev-btn, .quiz-next-btn, .quiz-start-btn, .quiz-retake-btn {
  background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 400;
  font-size: var(--type-small); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg);
  text-decoration: underline; text-underline-offset: 5px;
  text-decoration-color: var(--fg-muted);
  transition: text-decoration-color 0.25s ease, opacity 0.25s ease;
}
.quiz-start-btn { font-size: 20px; text-transform: none; letter-spacing: 0; text-underline-offset: 6px; }
.quiz-prev-btn:hover, .quiz-next-btn:hover, .quiz-start-btn:hover, .quiz-retake-btn:hover { text-decoration-color: var(--fg); }
.quiz-next-btn[disabled] { opacity: 0.3; cursor: default; }
.quiz-prev-btn { color: var(--fg-muted); }

/* quiz intro + result */
.quiz-modal-title { font-family: var(--display); font-weight: 300; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; color: var(--fg); margin: 72px 0 20px; }
.quiz-modal-sub   { font-size: var(--type-lede); line-height: 1.75; color: var(--fg-secondary); max-width: 52ch; margin-bottom: 44px; }
.quiz-result-label { font-size: var(--type-small); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 18px; }

/* The quiz JS writes the journey accent as an inline colour on the
   result label and CTA. Accents may only ever be a 2px keyline, so
   those inline values are overridden here and the journey is
   expressed as a keyline instead — derived from the CTA's href, so
   the quiz JavaScript stays completely untouched. */
#result-label,
.quiz-result-cta { color: var(--fg) !important; border-color: transparent !important; }
#quiz-result { --keyline: var(--fg); }
#quiz-result:has(#result-cta[href*="wilderness"]) { --keyline: var(--olive); }
#quiz-result:has(#result-cta[href*="cities"])     { --keyline: var(--gold); }
#quiz-result:has(#result-cta[href*="islands"])    { --keyline: var(--blue); }
#quiz-result::before {
  content: ''; display: block; width: 34%;
  border-top: 2px solid var(--keyline);
  margin: 72px 0 26px;
}
.quiz-result-title { font-family: var(--display); font-weight: 300; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; color: var(--fg); margin-bottom: 20px; }
.quiz-result-desc  { font-size: var(--type-lede); line-height: 1.75; color: var(--fg-secondary); max-width: 54ch; margin-bottom: 40px; }
.quiz-result-cta {
  display: inline-block; font-size: 20px; color: var(--fg);
  text-decoration: underline; text-underline-offset: 6px;
  text-decoration-color: var(--fg-muted);
  background: none; border: 0; padding: 0;
  transition: text-decoration-color 0.25s ease;
}
.quiz-result-cta:hover { text-decoration-color: var(--fg); }
.quiz-retake-btn { display: inline-block; margin-top: 36px; }

/* success state */
.ov-success { padding-top: 72px; }
.ov-success::before { content: ''; display: block; width: 34%; border-top: 2px solid var(--olive); margin-bottom: 26px; }
.ov-success h2 { font-family: var(--display); font-weight: 300; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; color: var(--fg); margin-bottom: 20px; }
.ov-success h2 em { font-style: italic; }
.ov-success p { font-size: var(--type-lede); line-height: 1.75; color: var(--fg-secondary); max-width: 46ch; margin-bottom: 18px; }
.ov-success .ov-next { font-size: var(--type-body); color: var(--fg-muted); }


/* ── 12. PAGE-SCOPED ───────────────────────────────────────── */

/* start-here keeps its split: left context charcoal, right paper */
[data-page="start-here"] .split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
[data-page="start-here"] .split-left  { padding: calc(var(--nav-h) + 72px) 56px 72px var(--pad); display: flex; flex-direction: column; gap: 40px; }
[data-page="start-here"] .split-right { padding: calc(var(--nav-h) + 72px) var(--pad) 72px 56px; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--hairline); }
[data-page="start-here"] .fee { padding-block: 28px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
[data-page="start-here"] .fee p { font-size: var(--type-body); line-height: 1.75; color: var(--fg-secondary); font-style: italic; }
[data-page="start-here"] .credential { font-size: var(--type-small); line-height: 1.7; letter-spacing: 0.02em; color: var(--fg-muted); text-transform: none; margin-top: 28px; }

/* notes index rows */
.note-row { display: grid; grid-template-columns: 1fr auto; column-gap: var(--gap); align-items: baseline; padding-block: 34px; border-top: 1px solid var(--hairline); text-decoration: none; }
.note-row:last-of-type { border-bottom: 1px solid var(--hairline); }
.note-row h2 { font-family: var(--display); font-weight: 300; font-size: 36px; line-height: 1.15; color: var(--fg); }
.note-row p  { font-size: var(--type-body); color: var(--fg-secondary); margin-top: 8px; max-width: 60ch; }
.note-row time { font-size: var(--type-small); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); white-space: nowrap; }
.note-row:hover h2 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* article body — measure stays under 70 characters */
.article-body { font-size: 19px; line-height: 1.75; color: var(--fg-secondary); max-width: 68ch; }
.article-body > * + * { margin-top: 1.5em; }
.article-body h2 { font-family: var(--display); font-weight: 300; font-size: 34px; line-height: 1.2; color: var(--fg); margin-top: 2em; padding-top: 1.2em; border-top: 1px solid var(--hairline); }
.article-body strong { font-weight: 400; color: var(--fg); }


/* ── 13. MOBILE — one block collapses everything, because all
   positions resolve through --start ────────────────────────── */

@media (max-width: 819px) {
  :root {
    --pad: 22px;
    --gap: 16px;
    --nav-h: 72px;
    --space-section: clamp(44px, 8vh, 68px);
    --space-block: 26px;
    --type-page-title: clamp(38px, 11vw, 60px);
    --type-section:    clamp(30px, 8vw, 40px);
    --type-lede: 17px;
  }

  .grid { grid-template-columns: 1fr; row-gap: 22px; }
  .block, .block-num, .block-text, .block-title, .rule, .rule-half { grid-column: 1 / -1; }

  /* numerals stack above their text — free, from DOM order */
  .seq > li { grid-template-columns: 1fr; row-gap: 6px; }

  nav { padding-inline: var(--pad); }
  .nav-toggle { display: flex; }
  .nav-brand { width: 108px; height: 24px; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper);
    border-top: 1px solid var(--hairline-paper);
    padding: 8px var(--pad) 24px;
    display: none;
  }
  html[data-page-tone="dark"] .nav-links { background: var(--charcoal); border-top-color: rgba(248,246,241,0.16); }
  nav.nav-open .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 15px 0; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-menu {
    position: static; opacity: 1; pointer-events: none;
    min-width: 0; padding: 0; border: 0; background: none;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
  }
  html[data-page-tone="dark"] .nav-dropdown-menu { background: none; }
  .nav-dropdown-menu.open { max-height: 220px; pointer-events: all; }
  .nav-dropdown-item { padding: 12px 0 12px 18px; }

  .footer-main { flex-direction: column; gap: 28px; }

  [data-page="start-here"] .split { grid-template-columns: 1fr; min-height: 0; }
  [data-page="start-here"] .split-left  { padding: calc(var(--nav-h) + 40px) var(--pad) 44px; gap: 28px; min-height: 0; }
  [data-page="start-here"] .split-right { padding: 44px var(--pad) 56px; border-left: 0; border-top: 1px solid var(--hairline); }

  .ov-inner, .quiz-modal { padding: 0 var(--pad) 72px; }
  .quiz-close { right: var(--pad); top: 24px; }
  .ov-q, .quiz-q { margin: 36px 0 28px; max-width: none; }
  .quiz-modal-title { margin-top: 48px; }
  .ov-input, .quiz-option, .chip { width: 100%; }

  .note-row { grid-template-columns: 1fr; row-gap: 10px; }
  .note-row h2 { font-size: 27px; }
  .article-body { font-size: 17px; }
  .article-body h2 { font-size: 27px; }

  /* bands can be shorter on mobile without breaking the midline rule */
  [data-tone] { min-height: 0; }
}


/* ── 14. REDUCED MOTION ────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  html { scroll-behavior: auto; }
  .hero-in { opacity: 1; animation: none; }
}
