/* ============================================================
   JAMES COOK MEDIA — "THE THROUGH-LINE" DESIGN SYSTEM
   One shared stylesheet, served static by the Cloudflare worker.
   Editorial · cinematic · literary · kinetic.
   ============================================================ */

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  /* core brand */
  --ink:        #0D0D0D;
  --ink-2:      #131210;   /* raised dark surface */
  --ink-3:      #1A1815;   /* card hover */
  --paper:      #F7F4EE;
  --paper-2:    #EFEAE0;   /* paper card / inset */
  --paper-3:    #E5DECE;   /* paper rule / deep inset */
  --gold:       #C9A84C;
  --gold-2:     #E4C97A;   /* bright gold highlight */
  --gold-dim:   #8A6B2A;
  --ember:      #C94C2A;
  --ember-2:    #E07060;
  --ash:        #3A3530;
  --ash-2:      #2A2622;
  --mid:        #7A746C;
  --mid-2:      #9A938A;

  /* lines */
  --rule:       rgba(201,168,76,0.25);
  --rule-soft:  rgba(201,168,76,0.12);
  --rule-dark:  rgba(58,53,48,0.14);

  /* type */
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Inter', system-ui, sans-serif;
  --ff-mono:    'DM Mono', 'SFMono-Regular', monospace;

  /* motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:    cubic-bezier(0.65, 0, 0.35, 1);

  /* layout */
  --rail:       1320px;     /* max content rail */
  --gutter:     clamp(1.4rem, 5vw, 5.5rem);
  --spine-x:    clamp(1.4rem, 5vw, 5.5rem); /* x position of the through-line */
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--ff-body);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }

/* ─── GLOBAL FILM-GRAIN OVERLAY ──────────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ============================================================
   THE SPINE  —  the signature through-line
   A fixed vertical gold thread on the left, with a scroll
   progress fill. Sits in the left gutter on desktop.
   ============================================================ */
.spine {
  position: fixed;
  top: 0; bottom: 0;
  left: var(--spine-x);
  width: 1px;
  z-index: 40;
  pointer-events: none;
  background: var(--rule-soft);
}
.spine::before { /* the filled progress portion */
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: var(--spine-progress, 0%);
  background: linear-gradient(to bottom, var(--gold-2), var(--gold));
  box-shadow: 0 0 12px rgba(201,168,76,0.5);
  transition: height 0.1s linear;
}
.spine-node { /* the moving read-head dot */
  position: fixed;
  left: var(--spine-x);
  top: var(--spine-node-y, 0px);
  width: 9px; height: 9px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.18), 0 0 14px rgba(228,201,122,0.7);
  z-index: 41;
  pointer-events: none;
}
@media (max-width: 900px) { .spine, .spine-node { display: none; } }

/* ─── LAYOUT PRIMITIVES ──────────────────────────────────── */
.rail { max-width: var(--rail); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: clamp(5rem, 9vh, 9rem); padding-bottom: clamp(5rem, 9vh, 9rem); position: relative; overflow-x: clip; }
.section--tight { padding-top: clamp(3.5rem,6vh,6rem); padding-bottom: clamp(3.5rem,6vh,6rem); }
.bg-ink   { background: var(--ink);   color: var(--paper); }
.bg-ink2  { background: var(--ink-2); color: var(--paper); }
.bg-ash   { background: var(--ash);   color: var(--paper); }
.bg-paper { background: var(--paper);  color: var(--ink); }
.bg-paper2{ background: var(--paper-2);color: var(--ink); }

/* gold grid texture for dark sections */
.tex-grid { position: relative; }
.tex-grid::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse at 60% 0%, #000 0%, transparent 75%);
}
/* radial warmth */
.glow { position: relative; }
.glow::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 12% 30%, rgba(201,168,76,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 88% 70%, rgba(201,76,42,0.06) 0%, transparent 52%);
}
.section > .rail, .section > * { position: relative; z-index: 1; }

/* asymmetric editorial grid */
.grid { display: grid; gap: clamp(2rem, 4vw, 4.5rem); }
.g-2  { grid-template-columns: 1fr 1fr; }
.g-2a { grid-template-columns: 1.15fr 0.85fr; }
.g-2b { grid-template-columns: 0.8fr 1.2fr; }
.g-3  { grid-template-columns: repeat(3, 1fr); }
.g-4  { grid-template-columns: repeat(4, 1fr); }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }

/* ─── CHAPTER HEADER  (the numbered story device) ────────── */
.chapter { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem,3vw,2.4rem); align-items: start; }
.chapter-mark {
  display: inline-flex; align-items: flex-start; gap: 0.9rem;
  font-family: var(--ff-display);
  font-weight: 900; font-style: italic;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  line-height: 0.82;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-dim);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.bg-ink .chapter-mark, .bg-ash .chapter-mark, .bg-ink2 .chapter-mark { -webkit-text-stroke-color: rgba(201,168,76,0.4); }
.chapter-coord {
  align-self: stretch;
  font-family: var(--ff-mono); font-size: 0.58rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-dim);
  -webkit-text-stroke: 0;
  writing-mode: vertical-rl; transform: rotate(180deg);
  padding-top: 0.2rem;
}
.bg-ink .chapter-coord, .bg-ash .chapter-coord, .bg-ink2 .chapter-coord { color: var(--mid); }

/* ─── EYEBROW ────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--ff-mono); font-size: 0.68rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 0.8rem; margin-bottom: 1.4rem;
}
.eyebrow::before { content: ''; width: 2.2rem; height: 1px; background: currentColor; flex-shrink: 0; }
:is(.bg-paper,.bg-paper2) .eyebrow, .bg-paper2 .eyebrow { color: var(--gold-dim); }

/* ─── HEADLINES + MASK REVEAL ────────────────────────────── */
.h-display {
  font-family: var(--ff-display); font-weight: 900;
  font-size: clamp(2.8rem, 6.4vw, 6.6rem);
  line-height: 0.96; letter-spacing: -0.025em;
}
.h-section {
  font-family: var(--ff-display); font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.9rem);
  line-height: 1.04; letter-spacing: -0.02em;
}
.h-display em, .h-section em, .em-gold { font-style: italic; color: var(--gold); }
:is(.bg-paper,.bg-paper2) .h-display em, :is(.bg-paper,.bg-paper2) .h-section em, :is(.bg-paper,.bg-paper2) .em-gold,
.bg-paper2 .h-display em, .bg-paper2 .h-section em, .bg-paper2 .em-gold { color: var(--gold-dim); }
.lead {
  font-family: var(--ff-body); font-style: normal; font-weight: 300;
  font-size: clamp(1.12rem, 1.6vw, 1.45rem); line-height: 1.62; color: var(--mid-2); letter-spacing: -0.005em;
}
:is(.bg-paper,.bg-paper2) .lead, .bg-paper2 .lead { color: var(--ash); }
.body-copy { font-size: 1.02rem; line-height: 1.82; color: rgba(247,244,238,0.7); }
:is(.bg-paper,.bg-paper2) .body-copy, .bg-paper2 .body-copy { color: var(--ash); }
.body-copy p + p { margin-top: 1.2rem; }
.body-copy strong { color: var(--paper); font-weight: 600; }
:is(.bg-paper,.bg-paper2) .body-copy strong, .bg-paper2 .body-copy strong { color: var(--ink); }

/* line-by-line mask reveal: wrap each line in <span class="reveal-line"><i>text</i></span> */
.reveal-line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.reveal-line > i {
  display: block; font-style: inherit;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease-out);
}
.is-revealed .reveal-line > i { transform: translateY(0); }
.is-revealed .reveal-line:nth-child(2) > i { transition-delay: 0.08s; }
.is-revealed .reveal-line:nth-child(3) > i { transition-delay: 0.16s; }
.is-revealed .reveal-line:nth-child(4) > i { transition-delay: 0.24s; }

/* fade-up (generic) */
.fade-up { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.08s; } .fade-up.d2 { transition-delay: 0.16s; }
.fade-up.d3 { transition-delay: 0.24s; } .fade-up.d4 { transition-delay: 0.32s; }

/* drawing rule */
.draw-rule { height: 1px; background: var(--rule); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-out); }
.draw-rule.visible { transform: scaleX(1); }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--ff-body); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 1rem 2rem; border-radius: 2px; border: 1px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.15s;
  position: relative;
}
.btn .arr { transition: transform 0.25s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn-gold { background: var(--gold); color: var(--ink); font-weight: 700; }
.btn-gold:hover { background: var(--gold-2); transform: translateY(-2px); }
.btn-ghost { color: var(--paper); border-color: rgba(247,244,238,0.22); }
.btn-ghost:hover { border-color: var(--paper); }
.btn-dark { background: var(--ink); color: var(--paper); font-weight: 700; }
.btn-dark:hover { background: var(--ash-2); transform: translateY(-2px); }
.btn-outline-dark { color: var(--ink); border-color: rgba(13,13,13,0.25); }
.btn-outline-dark:hover { border-color: var(--ink); }
.text-link {
  font-family: var(--ff-mono); font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: 0.5rem;
}
:is(.bg-paper,.bg-paper2) .text-link, .bg-paper2 .text-link { color: var(--gold-dim); }
.text-link .arr { transition: transform 0.2s; }
.text-link:hover .arr { transform: translateX(4px); }

/* ─── NAV ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  background: rgba(247,244,238,0.90); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--paper-3);
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--paper-3); background: rgba(247,244,238,0.96); }
.nav-progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: var(--spine-progress, 0%); background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.nav-logo { font-family: var(--ff-display); font-weight: 700; font-size: 1.08rem; letter-spacing: 0.03em; color: var(--ink); }
.nav-logo span { color: var(--gold-dim); }
.nav-links { display: flex; gap: 2.3rem; list-style: none; }
.nav-links a {
  font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash);
  position: relative; padding: 0.2rem 0; transition: color 0.2s;
}
.nav-links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: var(--gold); transition: right 0.3s var(--ease-out); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-cta {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.6rem 1.4rem; border: 1px solid var(--gold); color: var(--gold); border-radius: 2px;
  transition: background 0.25s, color 0.25s;
}
.nav-cta:hover { background: var(--gold); color: var(--ink); }
.nav-cta.filled { background: var(--gold); color: var(--ink); font-weight: 700; animation: pulse-cta 3s ease-in-out infinite; }
.nav-cta.filled:hover { background: var(--gold-2); animation: none; }
@keyframes pulse-cta { 0%,100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); } 50% { box-shadow: 0 0 0 6px rgba(201,168,76,0.16); } }
.nav-burger { display: none; width: 26px; height: 16px; position: relative; }
.nav-burger span { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink); transition: transform 0.3s, opacity 0.2s; }
.nav-burger span:nth-child(1){ top: 0; } .nav-burger span:nth-child(2){ top: 7px; } .nav-burger span:nth-child(3){ top: 14px; }
body.menu-open .nav-burger span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2){ opacity: 0; }
body.menu-open .nav-burger span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* mobile menu sheet */
.nav-sheet {
  position: fixed; inset: 0; z-index: 99; background: rgba(247,244,238,0.98); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: center; gap: 1.6rem; padding: var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity 0.3s; }
body.menu-open .nav-sheet { opacity: 1; visibility: visible; }
.nav-sheet a { font-family: var(--ff-display); font-size: 2rem; font-weight: 700; color: var(--ink); }
.nav-sheet a span { color: var(--gold); font-style: italic; }

/* ─── BADGES ─────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--ff-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.4rem 0.85rem; border: 1px solid var(--rule); border-radius: 2px; color: var(--gold);
}
.badge-live { color: var(--ember-2); border-color: rgba(201,76,42,0.32); }
.dot-live { width: 6px; height: 6px; border-radius: 50%; background: var(--ember-2); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.25} }

/* ─── MARQUEE ────────────────────────────────────────────── */
.marquee { overflow: hidden; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--ink-2); padding: 1rem 0; }
.marquee-track { display: flex; white-space: nowrap; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item { display: inline-flex; align-items: center; gap: 1.5rem; padding: 0 2.4rem;
  font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mid); }
.marquee-item b { color: var(--gold); font-weight: 400; }
.marquee-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

/* ─── DOSSIER CARD GRID (hairline-separated) ─────────────── */
.cardgrid { display: grid; gap: 1px; background: var(--rule); }
.cardgrid.g-3 { grid-template-columns: repeat(3,1fr); }
.cardgrid.g-2 { grid-template-columns: repeat(2,1fr); }
.card { background: var(--ink); padding: clamp(1.8rem, 2.5vw, 2.5rem); position: relative; overflow: hidden; transition: background 0.3s; }
.bg-ash .card { background: var(--ash); }
.card:hover { background: var(--ink-3); }
.bg-ash .card:hover { background: #45403a; }
.card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out); }
.card:hover::after { transform: scaleX(1); }
.card-meta { font-family: var(--ff-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.6rem; display: flex; justify-content: space-between; }
.card-icon { font-size: 1.6rem; margin-bottom: 1rem; display: block; }
.card-title { font-family: var(--ff-display); font-size: 1.35rem; font-weight: 700; line-height: 1.18; margin-bottom: 0.7rem; color: var(--paper); }
.bg-ash .card-title { color: var(--paper); }
.card-desc { font-size: 0.9rem; line-height: 1.7; color: var(--mid-2); margin-bottom: 1.4rem; }

/* paper variant cards */
.cardgrid.on-paper { background: var(--paper-3); }
.cardgrid.on-paper .card { background: var(--paper); }
.cardgrid.on-paper .card:hover { background: var(--paper-2); }
.cardgrid.on-paper .card-title { color: var(--ink); }
.cardgrid.on-paper .card-desc { color: var(--ash); }

/* ─── LIGHT-SECTION COMPONENT VARIANTS ───────────────────── */
/* Any section with .bg-paper / .bg-paper2 gets light-correct components. */
:is(.bg-paper,.bg-paper2) .cardgrid, .bg-paper2 .cardgrid { background: var(--paper-3); }
:is(.bg-paper,.bg-paper2) .card, .bg-paper2 .card { background: var(--paper); }
:is(.bg-paper,.bg-paper2) .card:hover, .bg-paper2 .card:hover { background: var(--paper-2); }
:is(.bg-paper,.bg-paper2) .card-title, .bg-paper2 .card-title { color: var(--ink); }
:is(.bg-paper,.bg-paper2) .card-desc, .bg-paper2 .card-desc { color: var(--ash); }
:is(.bg-paper,.bg-paper2) .card-meta, .bg-paper2 .card-meta { color: var(--gold-dim); }
:is(.bg-paper,.bg-paper2) .quote-card::before, .bg-paper2 .quote-card::before { color: rgba(138,107,42,0.13); }
:is(.bg-paper,.bg-paper2) .quote-text, .bg-paper2 .quote-text { color: var(--ink); }
:is(.bg-paper,.bg-paper2) .quote-name, .bg-paper2 .quote-name { color: var(--ink); }
:is(.bg-paper,.bg-paper2) .quote-co, .bg-paper2 .quote-co { color: var(--gold-dim); }
:is(.bg-paper,.bg-paper2) .stat, .bg-paper2 .stat { border-color: var(--paper-3); }
:is(.bg-paper,.bg-paper2) .contrast, .bg-paper2 .contrast { background: var(--paper-3); }
:is(.bg-paper,.bg-paper2) .contrast-col, .bg-paper2 .contrast-col { background: var(--paper); }
:is(.bg-paper,.bg-paper2) .contrast-col.bad, .bg-paper2 .contrast-col.bad { background: var(--paper-2); }
:is(.bg-paper,.bg-paper2) .contrast-col.good, .bg-paper2 .contrast-col.good { background: rgba(201,168,76,0.10); }
:is(.bg-paper,.bg-paper2) .contrast-head, .bg-paper2 .contrast-head { border-color: var(--paper-3); }
:is(.bg-paper,.bg-paper2) .contrast-col.bad .contrast-head, :is(.bg-paper,.bg-paper2) .contrast-col.bad .ci { color: var(--ash); }
:is(.bg-paper,.bg-paper2) .contrast-col.good .contrast-head, .bg-paper2 .contrast-col.good .contrast-head { color: var(--gold-dim); }
:is(.bg-paper,.bg-paper2) .contrast-col.good .ci, .bg-paper2 .contrast-col.good .ci { color: var(--ink); }
:is(.bg-paper,.bg-paper2) .tier-list li, .bg-paper2 .tier-list li { color: var(--ash); }
:is(.bg-paper,.bg-paper2) .badge:not(.badge-live) { color: var(--gold-dim); border-color: rgba(138,107,42,0.45); }
:is(.bg-paper,.bg-paper2) .badge-live { color: var(--ember); border-color: rgba(201,76,42,0.4); }
:is(.bg-paper,.bg-paper2) .divider, .bg-paper2 .divider { background: var(--paper-3); }
/* gold-grid texture is for dark panels only — neutralize it on light */
.bg-paper.tex-grid::before, .bg-paper2.tex-grid::before { display: none; }

/* ─── STAT / PROOF ───────────────────────────────────────── */
.statbar { display: grid; grid-template-columns: repeat(4,1fr); }
.stat { padding: 1.8rem 1.5rem; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--ff-display); font-weight: 900; font-size: clamp(2.4rem,4vw,3.6rem); line-height: 1; color: var(--paper); }
.stat-num span { color: var(--gold); }
:is(.bg-paper,.bg-paper2) .stat-num { color: var(--ink); }
.stat-label { font-family: var(--ff-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid); margin-top: 0.6rem; line-height: 1.5; }

/* ─── TESTIMONIALS ───────────────────────────────────────── */
.quote-card { position: relative; }
.quote-card::before { content: '\201C'; position: absolute; top: -0.4rem; left: 0.6rem; font-family: var(--ff-display); font-style: italic; font-size: 6rem; line-height: 1; color: rgba(201,168,76,0.1); }
.quote-text { font-family: var(--ff-display); font-style: normal; font-size: 1.08rem; line-height: 1.62; color: rgba(247,244,238,0.9); margin-bottom: 1.4rem; position: relative; z-index: 1; }
:is(.bg-paper,.bg-paper2) .quote-text { color: var(--ink); }
.quote-name { font-weight: 600; font-size: 0.86rem; color: var(--paper); }
:is(.bg-paper,.bg-paper2) .quote-name { color: var(--ink); }
.quote-co { font-family: var(--ff-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-top: 0.25rem; }

/* ─── TIMELINE (gold spine, rotating year labels) ────────── */
.timeline { display: grid; grid-template-columns: 84px 1fr; grid-auto-flow: row dense; position: relative; }
/* pin markers to the narrow rail and entries to the wide column, regardless of source order */
.tl-marker { grid-column: 1; }
.tl-entry { grid-column: 2; }
.timeline::before { content: ''; position: absolute; left: 41px; top: 0.4rem; bottom: 0; width: 1px; background: linear-gradient(to bottom, var(--gold), rgba(201,168,76,0.05)); }
.tl-marker { display: flex; flex-direction: column; align-items: center; padding-bottom: 3.5rem; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold-dim); outline: 1px solid var(--gold-dim); outline-offset: 2px; margin-top: 0.3rem; transition: background 0.25s, box-shadow 0.25s; }
.bg-ink .tl-dot, .bg-ash .tl-dot { background: var(--gold); }
.tl-entry:hover ~ .tl-marker .tl-dot { background: var(--gold); }
.tl-year { font-family: var(--ff-mono); font-size: 0.62rem; letter-spacing: 0.12em; color: var(--gold-dim); margin-top: 0.6rem; writing-mode: vertical-rl; transform: rotate(180deg); }
.bg-ink .tl-year, .bg-ash .tl-year { color: var(--gold); }
.tl-entry { padding: 0 0 3.5rem 2.4rem; }
.tl-tag { font-family: var(--ff-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 0.5rem; }
.bg-ink .tl-tag, .bg-ash .tl-tag { color: var(--gold); }
.tl-title { font-family: var(--ff-display); font-size: 1.4rem; font-weight: 700; line-height: 1.2; margin-bottom: 0.7rem; }
.tl-text { font-size: 0.92rem; line-height: 1.75; color: var(--mid-2); }
:is(.bg-paper,.bg-paper2) .tl-text { color: var(--ash); }
.tl-result { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.9rem; background: rgba(201,168,76,0.12); border-left: 2px solid var(--gold); font-family: var(--ff-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dim); }
.bg-ink .tl-result, .bg-ash .tl-result { color: var(--gold-2); }

/* ─── STEPS ──────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--rule-dark); }
.bg-ink .steps, .bg-ash .steps { border-color: var(--rule); }
.step { padding: 2.2rem; border-right: 1px solid var(--rule-dark); position: relative; }
.bg-ink .step, .bg-ash .step { border-right-color: var(--rule); }
.step:last-child { border-right: none; }
.step-num { font-family: var(--ff-display); font-weight: 900; font-size: 3.6rem; line-height: 1; color: rgba(201,168,76,0.16); margin-bottom: 1rem; }
.step-title { font-family: var(--ff-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem; }
.step-desc { font-size: 0.86rem; line-height: 1.7; color: var(--mid-2); }
:is(.bg-paper,.bg-paper2) .step-desc { color: var(--ash); }

/* ─── PRICING TIERS ──────────────────────────────────────── */
.tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--rule); }
.tier { background: var(--ink); padding: 2.4rem; position: relative; transition: background 0.25s; display: flex; flex-direction: column; }
.bg-ash .tier { background: var(--ash); }
:is(.bg-paper,.bg-paper2) .tier { background: var(--paper); }
.tier:hover { background: var(--ink-3); }
.tier.featured { background: rgba(201,168,76,0.06); outline: 1px solid var(--gold); outline-offset: -1px; }
.tier-tag { font-family: var(--ff-mono); font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.9rem; }
.tier-name { font-family: var(--ff-display); font-size: 1.35rem; font-weight: 700; line-height: 1.15; margin-bottom: 0.5rem; }
.tier-price { font-family: var(--ff-display); font-weight: 900; font-size: 2rem; line-height: 1; margin-bottom: 0.3rem; }
.tier-price small { font-size: 0.85rem; font-weight: 400; color: var(--mid); font-family: var(--ff-body); }
.tier-note { font-size: 0.76rem; color: var(--mid); margin-bottom: 1.4rem; }
.tier-rule { height: 1px; background: var(--rule); margin-bottom: 1.4rem; }
.tier-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.8rem; flex: 1; }
.tier-list li { display: flex; gap: 0.6rem; font-size: 0.82rem; line-height: 1.5; color: rgba(247,244,238,0.72); }
:is(.bg-paper,.bg-paper2) .tier-list li { color: var(--ash); }
.tier-list li::before { content: '✓'; color: var(--gold); font-size: 0.75rem; flex-shrink: 0; margin-top: 0.15rem; }
.tier-list li.no { color: var(--mid); } .tier-list li.no::before { content: '—'; color: var(--mid); }

/* ─── CONTRAST GRID ──────────────────────────────────────── */
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); }
.contrast-col { padding: 2.4rem; background: var(--ink); }
.contrast-col.bad { background: rgba(13,13,13,0.6); }
.contrast-col.good { background: rgba(201,168,76,0.05); }
.contrast-head { font-family: var(--ff-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1.8rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.contrast-col.bad .contrast-head { color: var(--mid); }
.contrast-col.good .contrast-head { color: var(--gold); }
.ci { display: flex; gap: 0.75rem; font-size: 0.88rem; line-height: 1.55; margin-bottom: 1.1rem; }
.contrast-col.bad .ci { color: var(--mid); }
.contrast-col.good .ci { color: rgba(247,244,238,0.82); }

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q { width: 100%; text-align: left; font-family: var(--ff-display); font-size: 1.12rem; font-weight: 700; color: var(--paper); padding: 1.7rem 0; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
:is(.bg-paper,.bg-paper2) .faq-q { color: var(--ink); }
.faq-q::after { content: '+'; color: var(--gold); font-family: var(--ff-mono); font-size: 1.2rem; transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease-out); }
.faq-a > div { padding-bottom: 1.7rem; font-size: 0.94rem; line-height: 1.8; color: var(--mid-2); max-width: 62ch; }
:is(.bg-paper,.bg-paper2) .faq-a > div { color: var(--ash); }
.faq-item.open .faq-a { max-height: 420px; }

/* ─── WATERMARK ──────────────────────────────────────────── */
.watermark { position: absolute; pointer-events: none; user-select: none; font-family: var(--ff-display); font-weight: 900; font-style: italic; line-height: 0.8; color: rgba(201,168,76,0.035); right: -2vw; top: 50%; transform: translateY(-50%); font-size: 26vw; z-index: 0; }

/* ─── WAVEFORM ───────────────────────────────────────────── */
.waveform { display: flex; align-items: flex-end; gap: 3px; height: 100%; opacity: 0.2; pointer-events: none; }
.wave-bar { flex: 1; background: var(--gold); border-radius: 2px 2px 0 0; animation: wavePulse var(--d,1.4s) ease-in-out infinite alternate; animation-delay: var(--delay,0s); }
@keyframes wavePulse { from { height: var(--min,18%); } to { height: var(--max,80%); } }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer { background: #060606; border-top: 1px solid var(--rule); padding: clamp(3rem,6vh,4.5rem) var(--gutter) 2.5rem; }
.footer-inner { max-width: var(--rail); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-brand { font-family: var(--ff-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.8rem; color: var(--paper); }
.footer-brand span { color: var(--gold); }
.footer-tag { font-size: 0.86rem; line-height: 1.7; color: var(--mid-2); max-width: 30ch; }
.footer-col-title { font-family: var(--ff-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.86rem; color: var(--mid-2); transition: color 0.2s; }
.footer-links a:hover { color: var(--paper); }
.footer-bottom { max-width: var(--rail); margin: 0 auto; padding-top: 2rem; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--ff-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid-2); }

/* ─── UTILITIES ──────────────────────────────────────────── */
.mt-1{margin-top:1rem}.mt-2{margin-top:2rem}.mt-3{margin-top:3rem}.mb-1{margin-top:0;margin-bottom:1rem}.mb-2{margin-bottom:2rem}.mb-3{margin-bottom:3rem}
.maxw-sm{max-width:42ch}.maxw-md{max-width:56ch}.maxw-lg{max-width:68ch}
.center{text-align:center}.mx-auto{margin-left:auto;margin-right:auto}
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { font-family: var(--ff-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper); border: 1px solid var(--rule); padding: 0.4rem 0.85rem; border-radius: 2px; }
:is(.bg-paper,.bg-paper2) .chip { color: var(--ink); border-color: var(--paper-3); }
.divider { height: 1px; background: var(--rule); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .g-2, .g-2a, .g-2b, .cardgrid.g-3, .tiers, .contrast { grid-template-columns: 1fr; }
  .cardgrid.g-3, .tiers { gap: 1px; }
  .g-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: block; }
  :root { --spine-x: 0px; }
}
@media (max-width: 640px) {
  .g-3, .g-4, .statbar, .steps { grid-template-columns: 1fr; }
  .statbar .stat { border-right: none; border-bottom: 1px solid var(--rule); }
  .chapter { grid-template-columns: 1fr; }
  .chapter-coord { writing-mode: horizontal-tb; transform: none; margin-top: 0.4rem; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ─── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal-line > i, .fade-up { transform: none !important; opacity: 1 !important; }
  .draw-rule { transform: scaleX(1) !important; }
  body::after { display: none; }
}
