/* ============================================================
   Heron — "forensic naturalism" (brand.md)
   Deep water canvas · Heron Ivory editorial serif · Reed Gold
   accent · mist/waterline motifs · evidence-pack modules.
   Zero dependencies. Self-hosted variable fonts.
   ============================================================ */

/* ---------- fonts ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  font-style: italic;
}
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
  font-style: normal;
}

/* ---------- metric-compatible fallback faces (CLS reduction) ----------
   Never fetched — src:local() only. They scale the system fallback so
   advance-widths match the web font before the woff2 arrives,
   eliminating re-wrap on swap.
----------------------------------------------------------------------- */
@font-face {
  font-family: "Cormorant Garamond Fallback";
  src: local("Georgia"), local("Georgia Regular");
  size-adjust: 88.5%;
  ascent-override: 104.4%;
  descent-override: 32.4%;
  line-gap-override: 0%;
  font-weight: 300 700;
  font-style: normal;
}
@font-face {
  font-family: "Cormorant Garamond Fallback";
  src: local("Georgia Italic"), local("Georgia");
  size-adjust: 89%;
  ascent-override: 104.4%;
  descent-override: 32.4%;
  line-gap-override: 0%;
  font-weight: 300 700;
  font-style: italic;
}
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 104.4%;
  ascent-override: 96.3%;
  descent-override: 28.3%;
  line-gap-override: 0%;
  font-weight: 100 900;
  font-style: normal;
}
@font-face {
  font-family: "JetBrains Mono Fallback";
  src: local("Menlo"), local("Menlo Regular"), local("Courier New"), local("CourierNewPSMT");
  size-adjust: 99.99%;
  ascent-override: 102.01%;
  descent-override: 30.00%;
  line-gap-override: 0%;
  font-weight: 100 800;
  font-style: normal;
}

/* ---------- tokens ---------- */
:root {
  --bg:        #070D16;
  --bg-2:      #0D1726;
  --bg-3:      #111D2E;
  --ink:       #F3F0E8;
  --ink-2:     #9AA8BA;
  --ink-3:     #7E8DA2;
  --line:      #223047;
  --line-2:    #2C3D58;
  --amber:     #D89A22;   /* Reed Gold */
  --amber-2:   #E8B75A;   /* Soft Gold (hover) */
  --amber-dim: #A87618;
  --amber-glow: rgba(216, 154, 34, 0.13);
  --marsh:      #667A66;  /* quiet pass/clean states */
  --marsh-text: #93A893;
  /* Clay Red — discrepancies only, used sparingly (lighter tints for small text) */
  --caution:      #A44A42;
  --caution-text: #D9A39B;
  --caution-tag:  #C98077;
  --caution-tint: rgba(164, 74, 66, 0.10);
  --caution-line: rgba(164, 74, 66, 0.38);

  --font-sans: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Cormorant Garamond", "Cormorant Garamond Fallback", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 48px);
  --radius: 6px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { background: var(--bg); }
body {
  /* transparent so the fixed .atmos (z-index:-1) shows through — an opaque
     body background paints OVER negative-z descendants when html has its own */
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3 { font-weight: 560; letter-spacing: -0.02em; line-height: 1.05; }

.mono { font-family: var(--font-mono); font-feature-settings: "zero"; }
.accent { color: var(--amber); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.skip-link {
  position: fixed; top: -100px; left: 12px; z-index: 1000;
  background: var(--amber); color: #1a0f00; padding: 10px 16px; border-radius: var(--radius);
  font: 600 14px/1 var(--font-sans); transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ============================================================
   ATMOSPHERE
   ============================================================ */
.atmos { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.atmos-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, rgba(243,240,232,0.034) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(243,240,232,0.034) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 35%, transparent 78%);
}
.atmos-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(58% 70% at 78% -12%, var(--amber-glow), transparent 70%),
    radial-gradient(42% 34% at 10% 102%, rgba(216, 154, 34, 0.05), transparent 72%),
    linear-gradient(180deg, transparent 78%, rgba(154, 168, 186, 0.04) 100%);
}
/* drifting mist — two large soft layers, transform-only (compositor-cheap) */
.atmos-mist { position: absolute; inset: -20%; }
.atmos-mist::before, .atmos-mist::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(42% 30% at 30% 38%, rgba(154, 168, 186, 0.075), transparent 70%);
  animation: mistDriftA 90s ease-in-out infinite alternate;
}
.atmos-mist::after {
  background: radial-gradient(38% 26% at 72% 62%, rgba(216, 154, 34, 0.05), transparent 70%);
  animation: mistDriftB 120s ease-in-out infinite alternate;
}
@keyframes mistDriftA {
  from { transform: translate3d(-4%, -2%, 0) scale(1); }
  to   { transform: translate3d(5%, 3%, 0) scale(1.12); }
}
@keyframes mistDriftB {
  from { transform: translate3d(4%, 2%, 0) scale(1.08); }
  to   { transform: translate3d(-5%, -3%, 0) scale(1); }
}

/* water-surface ripples (canvas, driven by main.js; empty without JS) */
.atmos-water { position: absolute; inset: 0; width: 100%; height: 100%; }

/* the observer's gaze — a soft light that follows the pointer (JS sets transform) */
.atmos-spot {
  position: absolute; top: 0; left: 0; width: 620px; height: 620px;
  margin: -310px 0 0 -310px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(216, 154, 34, 0.075), rgba(154, 168, 186, 0.05) 42%, transparent 70%);
  opacity: 0; transition: opacity 1.2s var(--ease);
  will-change: transform;
}
.atmos-spot.on { opacity: 1; }

.atmos-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(130% 120% at 50% 12%, transparent 55%, rgba(2,4,9,0.7) 100%);
}
.atmos-grain {
  position: absolute; inset: 0; opacity: 0.03;
  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.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.nav.is-stuck {
  background: rgba(7, 13, 22, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }

.wordmark { display: inline-flex; align-items: center; gap: 9px; }
.wordmark-mark { width: 26px; height: 26px; display: block; }
.wordmark-text {
  font-family: var(--font-display); font-weight: 650; font-size: 27px;
  letter-spacing: 0; color: var(--ink);
}

.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav-links > a:not(.btn) {
  font-size: 14.5px; color: var(--ink-2); transition: color 0.2s var(--ease);
  position: relative;
}
.nav-links > a:not(.btn):hover { color: var(--ink); }
.nav-links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--amber); transition: width 0.25s var(--ease);
}
.nav-links > a:not(.btn):hover::after { width: 100%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-size: 15px; font-weight: 530; line-height: 1;
  padding: 13px 20px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), box-shadow 0.25s var(--ease), color 0.2s var(--ease);
}
.btn .arrow { transition: transform 0.22s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--amber); color: var(--bg); font-weight: 650;
  box-shadow: 0 0 0 0 var(--amber-glow);
}
.btn-primary:hover {
  background: var(--amber-2);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(216, 154, 34, 0.45);
}
.btn-ghost {
  border-color: transparent; color: var(--ink-2); background: rgba(243,240,232,0.02);
}
.btn-ghost:hover { color: var(--ink); background: rgba(243,240,232,0.05); transform: translateY(-1px); }
.nav-cta { padding: 9px 16px; font-size: 14px; }
.btn-link { color: var(--ink-2); padding: 13px 6px; }
.btn-link:hover { color: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(32px, 5vh, 64px); padding-bottom: clamp(40px, 7vh, 80px); position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 22px;
  display: inline-flex; align-items: center;
}
.eyebrow::before {
  content: ""; width: 2px; height: 15px; background: var(--amber);
  margin-right: 12px; opacity: 0.75; border-radius: 1px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 560;
  font-size: clamp(60px, 9.4vw, 124px);
  letter-spacing: -0.012em; line-height: 0.92;
}
.hero-title .accent { position: relative; font-style: italic; font-weight: 560; }
.hero-title .accent-dot { color: var(--amber); font-style: normal; }
.hero-sub {
  margin-top: 26px; max-width: 30em; font-size: clamp(16.5px, 2vw, 19px);
  color: var(--ink-2); line-height: 1.62;
}
.hero-cta { margin-top: 34px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font-size: 12.5px; letter-spacing: 0.08em; color: var(--ink-3); text-transform: uppercase;
}
.hero-meta .sep { color: var(--amber-dim); }

/* ---------- the instrument ---------- */
.hero-inst { justify-self: stretch; }
.instrument {
  background: linear-gradient(180deg, #0D1726 0%, #09111D 100%);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 0; overflow: hidden; position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(243,240,232,0.03);
}
.instrument::before { /* corner crosshair detail */
  content: "+"; position: absolute; top: 8px; left: 10px;
  color: var(--ink-3); font-family: var(--font-mono); font-size: 12px; opacity: 0.6;
}
.inst-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
.inst-title { color: var(--ink-2); padding-left: 16px; }
.inst-status { color: var(--ink-3); display: inline-flex; align-items: center; gap: 7px; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 0 var(--amber-glow); animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(216,154,34,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(216,154,34,0); }
  100% { box-shadow: 0 0 0 0 rgba(216,154,34,0); }
}
.inst-body { position: relative; padding: 26px 22px 22px; }
.inst-metric {
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 18px;
}
.inst-readout { display: flex; align-items: stretch; gap: 12px; }
.cell {
  flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px;
  background: rgba(255,255,255,0.012); transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.cell-tag {
  display: block; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 8px;
}
.cell-val { font-size: clamp(30px, 5vw, 40px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.cell-val .suf, .cell-val .pre { font-size: 0.5em; color: var(--ink-2); margin-left: 1px; }
.cell-claimed {
  color: var(--ink-2);
  border-color: var(--caution-line);
  background: var(--caution-tint);
  box-shadow: inset 3px 0 0 var(--caution);
}
.cell-claimed .cell-tag { color: var(--caution-tag); }
.cell-claimed .cell-val { color: var(--caution-text); }
.cell-verified { border-color: rgba(216,154,34,0.35); background: rgba(216,154,34,0.05); }
.cell-verified .cell-val { color: var(--amber-2); }
.cell-verified .cell-tag { color: var(--amber); }
.cell-arrow { align-self: center; color: var(--ink-3); font-size: 18px; }

.inst-bars { margin-top: 18px; display: grid; gap: 8px; }
.bar { position: relative; height: 22px; border-radius: 4px; background: rgba(255,255,255,0.03); overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; height: 100%; border-radius: 4px; transition: width 1s var(--ease); }
.bar span { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); z-index: 1; background: rgba(7,13,22,0.92); padding: 2px 7px; border-radius: 3px; }
.bar-claimed i { background: rgba(164, 74, 66, 0.22); border: 1px solid var(--caution-line); }
.bar-verified i { background: linear-gradient(90deg, var(--amber-dim), var(--amber)); }

.inst-flag {
  margin-top: 18px; font-size: 13px; color: var(--caution-tag);
  border: 1px solid var(--caution-line); background: var(--caution-tint);
  border-radius: 6px; padding: 9px 13px; display: inline-flex; align-items: center; gap: 8px;
  opacity: 0.15; transform: translateY(6px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.inst-flag::before { content: "⚠"; }
.inst-flag.show { opacity: 1; transform: none; }

.inst-derive {
  margin-top: 12px; font-size: 10.5px; letter-spacing: 0.1em;
  color: var(--ink-3); opacity: 0; transition: opacity 0.4s var(--ease);
}
.inst-derive.show { opacity: 1; }

.scanline {
  position: absolute; top: 0; bottom: 0; left: 0; width: 2px; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--amber), transparent);
  box-shadow: 0 0 18px 3px var(--amber-glow);
  opacity: 0;
}
.scanline.run { animation: scan 1.15s var(--ease); }
@keyframes scan {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.inst-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px; border-top: 1px solid var(--line);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
.inst-dots { display: inline-flex; gap: 6px; }
.inst-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); opacity: 0.5; transition: all 0.3s var(--ease); }
.inst-dots i.on { background: var(--amber); opacity: 1; }
.inst-note { margin-top: 14px; font-size: 12px; color: var(--ink-3); letter-spacing: 0.02em; text-align: left; max-width: 34em; text-wrap: pretty; }

/* ---------- source chips ---------- */
.sources {
  margin-top: clamp(44px, 7vh, 80px); display: flex; align-items: center; flex-wrap: wrap;
  gap: 14px 22px; padding-top: 26px; border-top: 1px solid var(--line);
}
.sources-label { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.sources-list { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.sources-list li {
  font-size: 13px; color: var(--ink-2); letter-spacing: 0.04em; position: relative; padding-left: 16px;
}
.sources-list li::before { content: "✓"; position: absolute; left: 0; color: var(--amber-dim); font-size: 11px; }

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { padding-block: clamp(64px, 12vh, 132px); position: relative; }
.sec-head { margin-bottom: clamp(36px, 6vh, 60px); max-width: 34em; }
.sec-title {
  font-family: var(--font-display); font-weight: 550;
  font-size: clamp(38px, 5.4vw, 62px); letter-spacing: -0.008em; line-height: 1.02;
  text-wrap: balance;
}
.sec-title .accent { font-style: italic; font-weight: 560; }
.section { position: relative; }
/* waterline divider — a still surface line with a faint reflection beneath */
.section + .section::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 26px;
  background:
    linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent) top / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(154, 168, 186, 0.05), transparent);
  pointer-events: none;
}

/* ---------- problem cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px 30px;
  background: linear-gradient(180deg, #0D1726 0%, #09111D 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  position: relative; overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0 auto auto 0; height: 2px; width: 0;
  background: var(--amber); transition: width 0.4s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card:hover::after { width: 48px; }
.card-idx { font-size: 13px; color: var(--amber-dim); letter-spacing: 0.1em; }
.card-title { font-size: 20px; margin: 16px 0 12px; letter-spacing: -0.02em; }
.card-body { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.card-stat { margin-top: 16px; font-size: 13px; color: var(--ink-3); letter-spacing: 0.04em; }

/* ============================================================
   PIPELINE
   ============================================================ */
.pipeline-wrap { position: relative; }
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.pipeline-track {
  position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: var(--line-2);
}
.pipeline-progress {
  position: absolute; inset: 0 auto 0 0; width: 0; height: 100%;
  background: linear-gradient(90deg, var(--amber-dim), var(--amber));
  box-shadow: 0 0 10px 1px var(--amber-glow);
  transition: width 1.7s var(--ease);
}
.node { position: relative; padding-top: 30px; }
.node-dot {
  position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-2); transform: translateY(-6px);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.pipeline.lit .node-dot { animation: nodeOn 0.45s var(--ease) forwards; animation-delay: calc(var(--i) * 0.3s + 0.15s); }
@keyframes nodeOn {
  to { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 4px rgba(216,154,34,0.16); }
}
.node-idx { font-size: 13px; color: var(--amber-dim); letter-spacing: 0.08em; }
.node-title { font-size: 18px; margin: 10px 0 10px; letter-spacing: -0.02em; }
.node-body { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

/* ============================================================
   REPORT
   ============================================================ */
.report-grid { display: grid; grid-template-columns: 1fr 0.92fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.feature-list { display: grid; gap: 22px; margin-top: 8px; }
.feature { display: flex; gap: 16px; }
.feature-mark { color: var(--amber); font-size: 20px; line-height: 1.3; }
.feature-title { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 6px; }
.feature-body { color: var(--ink-2); font-size: 15px; line-height: 1.58; max-width: 32em; }

.artifact {
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, #0D1726 0%, #09111D 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(243,240,232,0.03);
  margin-top: 10px;
}
.cite-link { color: var(--amber); text-decoration: none; }
.cite-link:hover { text-decoration: underline; }
.art-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2);
}
.art-ver { color: var(--ink-3); }
.art-body { padding: 24px 24px 8px; }
.art-label { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-top: 18px; }
.art-label:first-child { margin-top: 0; }
.art-verdict { font-family: var(--font-display); font-weight: 680; font-size: 27px; letter-spacing: 0; margin-top: 8px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.art-pill {
  font-size: 11px; letter-spacing: 0.12em; padding: 4px 10px; border-radius: 100px;
  color: var(--caution-tag); border: 1px solid var(--caution-line); background: var(--caution-tint);
}
.art-gauge { height: 8px; border-radius: 100px; background: rgba(255,255,255,0.05); overflow: hidden; margin-top: 10px; }
.art-gauge i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amber-dim), var(--amber)); border-radius: 100px; transition: width 1.3s var(--ease); }
.art-score { margin-top: 8px; font-size: 26px; font-weight: 500; }
.art-score-max { color: var(--ink-3); font-size: 15px; }
.art-lines { margin-top: 20px; display: grid; gap: 11px; font-size: 13.5px; }
.art-lines li { display: flex; align-items: baseline; gap: 8px; color: var(--ink-2); }
.dotfill { flex: 1; border-bottom: 1px dotted var(--line-2); transform: translateY(-3px); }
.art-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 20px; border-top: 1px solid var(--line); margin-top: 16px;
  font-size: 11.5px; letter-spacing: 0.06em; color: var(--ink-3);
}
.art-verified { display: inline-flex; align-items: center; gap: 9px; color: var(--amber); }
.seal {
  width: 24px; height: 24px; border: 1px solid var(--amber-dim); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.seal img { width: 13px; height: 13px; display: block; }

/* ============================================================
   WHY INDEPENDENT
   ============================================================ */
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contrast-card { border: 1px solid var(--line); border-radius: 18px; padding: 28px 28px 30px; background: linear-gradient(180deg, #0D1726 0%, #09111D 100%); }
.contrast-tag { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.contrast-body { color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.contrast-ours { border-color: rgba(216,154,34,0.34); background: linear-gradient(180deg, rgba(216,154,34,0.06), transparent); }
.contrast-ours .contrast-tag { color: var(--amber); }
.contrast-ours .contrast-body { color: var(--ink); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  position: relative; padding-block: clamp(72px, 14vh, 150px);
  border-top: 1px solid var(--line); overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 120% at 50% 120%, var(--amber-glow), transparent 70%);
  pointer-events: none;
}
.cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-inner .eyebrow::before { display: none; }
.cta-inner .eyebrow { margin-bottom: 18px; }
.cta-title {
  font-family: var(--font-display); font-weight: 550;
  font-size: clamp(42px, 7vw, 84px); letter-spacing: -0.01em; line-height: 1.0;
}
.cta-title .accent { font-style: italic; font-weight: 560; }
.cta-sub { margin-top: 18px; color: var(--ink-2); font-size: clamp(16px, 2vw, 19px); }
.cta-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-top: clamp(48px, 8vh, 80px); padding-bottom: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; }
.footer-tag { color: var(--ink-2); font-size: 14.5px; max-width: 26em; margin-top: 18px; line-height: 1.55; }
.footer-h { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--ink-2); font-size: 14.5px; width: fit-content; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--amber-2); }
.footer-trust { color: var(--ink-3); font-size: 11.5px; margin-top: 8px; line-height: 1.5; letter-spacing: 0.02em; }
.footer-base {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: clamp(40px, 6vh, 64px); padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.04em;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; }
.hero-copy .reveal:nth-child(1) { transition-delay: 0.02s; }
.hero-copy .reveal:nth-child(2) { transition-delay: 0.08s; }
.hero-copy .reveal:nth-child(3) { transition-delay: 0.16s; }
.hero-copy .reveal:nth-child(4) { transition-delay: 0.24s; }
.hero-copy .reveal:nth-child(5) { transition-delay: 0.32s; }
.hero-inst.reveal { transition-delay: 0.18s; }
.cards-3 .reveal:nth-child(2) { transition-delay: 0.1s; }
.cards-3 .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ============================================================
   PRESENCE & PEOPLE — branching graph panels
   ============================================================ */
.graphs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.graph-panel {
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, #0D1726 0%, #09111D 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(243,240,232,0.03);
}
.graph-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
}
.graph-head .inst-status { color: var(--ink-3); display: inline-flex; align-items: center; gap: 7px; }
.graph-body { padding: 10px 12px 4px; }
.graph { width: 100%; height: auto; display: block; }
.graph-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px; border-top: 1px solid var(--line);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.graph-foot .accent { color: var(--amber); }

/* svg graph primitives */
.gedge { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.gflow { fill: none; stroke: var(--amber); stroke-width: 1.7; stroke-linecap: round; }
.gnode { fill: var(--bg-3); stroke: var(--line-2); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; }
.gnode-root { fill: rgba(216,154,34,0.16); stroke: var(--amber); }
.gnode.gflag { fill: rgba(164,74,66,0.18); stroke: var(--caution); }
.gnode.gclear { stroke: var(--marsh); }
.glabel { fill: var(--ink-2); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; }
.glabel-root { fill: var(--ink); font-size: 12.5px; }
.glabel-src { fill: var(--ink-3); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.glabel.gflag { fill: var(--caution-tag); }
.glabel.gclear { fill: var(--marsh-text); }

/* hide-then-animate only when JS is present to drive it */
.js .gedge { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .gnode, .js .glabel { opacity: 0; }
.graph.drawn .gedge { animation: gEdgeDraw 0.5s var(--ease) var(--d, 0s) forwards; }
.graph.drawn .gnode { animation: gNodePop 0.42s var(--ease) var(--d, 0s) forwards; }
.graph.drawn .glabel { animation: gFade 0.42s var(--ease) var(--d, 0s) forwards; }
@keyframes gEdgeDraw { to { stroke-dashoffset: 0; } }
@keyframes gNodePop { from { opacity: 0; transform: scale(0.1); } to { opacity: 1; transform: scale(1); } }
@keyframes gFade { to { opacity: 1; } }
/* amber signal travelling root → leaves (flow paths are cloned from edges in JS);
   only runs once the graph has drawn in */
.gflow { stroke-dasharray: 0.1 0.9; stroke-dashoffset: 1; opacity: 0; }
.graph.drawn .gflow { opacity: 1; animation: gFlow 2.4s linear var(--fd, 1.4s) infinite; animation-play-state: paused; }
.graph.drawn.in-view .gflow { animation-play-state: running; } /* pause paint when off-screen */
@keyframes gFlow { to { stroke-dashoffset: 0; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-inst { max-width: 520px; }
  .report-grid { grid-template-columns: 1fr; gap: 44px; }
  .pipeline { grid-template-columns: 1fr 1fr; gap: 14px 24px; }
  .pipeline-track { display: none; }
  .graphs-grid { grid-template-columns: 1fr; gap: 28px; }
  .cards-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav-links > a:not(.btn):not(.nav-cta) { display: none; }
  .hero-cta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-cta .btn-link { padding-left: 0; }
  .contrast { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .inst-readout { flex-direction: column; }
  .cell-arrow { transform: rotate(90deg); align-self: flex-start; margin-left: 8px; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  /* the graph SVG downscales with the viewport; bump label units so rendered
     text stays legible (>=~10px) on phones */
  .glabel { font-size: 14px; }
  .glabel-src { font-size: 12.5px; }
  .glabel-root { font-size: 15px; }
}

/* ============================================================
   REDUCED MOTION — honor the user, show end states
   ============================================================ */
@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 { opacity: 1 !important; transform: none !important; }
  .inst-flag { opacity: 1; transform: none; }
  .inst-derive { opacity: 1; }
  .pipeline-progress { width: 100% !important; }
  .pipeline .node-dot { background: var(--amber); border-color: var(--amber); }
  .gedge { stroke-dashoffset: 0 !important; }
  .gnode, .glabel { opacity: 1 !important; transform: none !important; }
  .gflow { display: none !important; }
}
