/* ─────────────────────────────────────────────────────────
 * EcoVent Africa · VPAY Genesis · Site stylesheet
 * Brookfield register · navy + gold · hairlines, not glows
 * Last touched: 2026-05-07 (Option C IA rebuild)
 * ──────────────────────────────────────────────────────── */

:root {
  --bg-deep:    #050B14;
  --bg-base:    #0A1626;
  --bg-1:       #0F1E33;
  --bg-2:       #142840;
  --bg-card:    #0D1827;

  --line:       rgba(244,196,48,0.10);
  --line-strong:rgba(244,196,48,0.28);
  --line-mute:  rgba(148,163,184,0.10);
  --rule:       rgba(255,255,255,0.06);

  --gold:       #F4C430;
  --gold-soft:  #F5D547;
  --gold-deep:  #B8902C;
  --gold-glow:  rgba(244,196,48,0.20);

  --green:      #1FE07F;
  --green-soft: #4DECAA;
  --crimson:    #EF4444;
  --amber:      #F59E0B;

  --text:       #F1F5F9;
  --text-soft:  #CBD5E1;
  --text-mute:  #94A3B8;
  --text-dim:   #64748B;
  --text-faint: #475569;

  --stool-gold:    #F4C84A;
  --kente-teal:    #0D9488;

  /* ─── AAA+ ceremonial layer (additive) ─────────────────────
   * The Brookfield base above stays untouched — institutional gold,
   * cool palette, hairlines. These tokens activate ONLY on hero
   * medallions, the SOV node, the Sika Dwa Kofi throne, and any
   * surface explicitly marked ceremonial. Do not use for body
   * accents or rules; that's what --gold above is for.
   * Source-of-truth · whatsapp-hero.svg
   * ──────────────────────────────────────────────────────── */

  /* Royal struck-bronze gold (5-stop chromatic stack) */
  --gold-bright:    #FFEFA8;   /* highlight crescent, sliver edges */
  --gold-royal:     #F4DD8D;   /* hero italic typography, top face */
  --gold-mid:       #D6B355;   /* aperture rings, ceremonial filaments */
  --gold-rich:      #9C7A2E;   /* mid-shadow on struck metal */
  --gold-shadow:    #3F2E10;   /* deep-bronze edges, engraving recess */

  /* Atmospheric void (deeper top, blacker bottom for cinematic depth) */
  --void-top:       #162640;   /* top atmosphere */
  --void-mid:       #0B1422;   /* page mid */
  --void-deep:      #03070D;   /* deep bottom + corners */

  /* Centre-glow & vignette atmospherics */
  --centre-glow:    rgba(200, 168, 78, 0.10);   /* faint gold halo behind heroes */
  --centre-glow-2:  rgba(200, 168, 78, 0.02);
  --vignette:       rgba(0, 0, 0, 0.65);

  /* Ceremonial typography */
  --ff-ceremonial: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --tracking-royal: 8px;        /* letter-spacing for ceremonial wordmarks */
  --tracking-eyebrow: 4px;
  --tracking-prose: 0.5px;

  /* Ceremonial gradients (referenceable in inline SVG via var()) */
  --grad-gold-face:    radial-gradient(circle at 32% 28%,
                          #FFEFA8 0%, #F4DD8D 18%, #D6B355 42%, #9C7A2E 72%, #3F2E10 100%);
  --grad-gold-bar:     linear-gradient(180deg,
                          #FFEFA8 0%, #F4DD8D 14%, #D6B355 42%, #8C6E2C 78%, #3F2E10 100%);
  --grad-void:         radial-gradient(circle at 50% 48%,
                          var(--void-top) 0%, var(--void-mid) 50%, var(--void-deep) 100%);

  --ff-serif:    'Source Serif Pro', 'Source Serif 4', Georgia, 'Iowan Old Style', serif;
  --ff-sans:     'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ff-mono:     'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap-max:    1240px;
  --wrap-pad:    32px;
  --section-y:   120px;
  --section-y-sm:64px;

  --radius:      4px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* ─── Horizontal-lock additions rolled back 2026-05-23 ───
   The previous additions (max-width: 100vw, position: relative,
   touch-action: pan-y, overscroll-behavior-y: contain) were causing
   desktop scroll-block on trackpad/touchscreen-equipped devices.
   The Denmark drawer-as-flow-content issue is now handled by the
   inline failsafe <style> block on each page (drawer is fixed +
   transform off-screen + visibility:hidden by default), which
   prevents the failure mode without touching body scroll behavior. */
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img, svg { max-width: 100%; display: block; }
::selection { background: var(--gold); color: var(--bg-deep); }

/* ─── Layout primitives ─── */
.wrap { max-width: var(--wrap-max); margin: 0 auto; padding: 0 var(--wrap-pad); }
.section { padding: var(--section-y) 0; position: relative; }
.section-sm { padding: var(--section-y-sm) 0; }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ─── Typography scale ─── */
h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0;
  color: var(--text);
}
h1 { font-size: clamp(48px, 6vw, 84px); font-weight: 700; }
h2 { font-size: clamp(32px, 3.6vw, 48px); }
h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }
p  { margin: 0 0 16px; color: var(--text-soft); font-size: 17px; line-height: 1.65; }
p.lede { font-size: 21px; line-height: 1.5; color: var(--text-soft); max-width: 720px; }
strong, b { color: var(--text); font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 7px 14px;
  background: rgba(244,196,48,0.06);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(31,224,127,0.15);
}
.section-eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 20px;
}
.section-head { margin-bottom: 56px; max-width: 820px; }
.section-head h2 { margin-bottom: 18px; }
.section-head p  { color: var(--text-mute); font-size: 18px; max-width: 680px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--ff-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-soft); text-decoration: none; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(244,196,48,0.06); border-color: var(--gold); color: var(--gold); text-decoration: none; }
.btn-sm { padding: 10px 16px; font-size: 12px; }

/* ─── Nav-header CTA pill · compact gold button ─── */
.sn-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg-deep);
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.12s;
  white-space: nowrap;
}
.sn-nav-cta:hover {
  background: var(--gold-soft);
  box-shadow: 0 0 14px rgba(244,196,48,0.35);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--bg-deep);
}
@media (max-width: 640px) { .sn-nav-cta { display: none; } }

/* ─── Mid-page CTA band ─── */
.mid-cta-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 64px 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(244,196,48,0.04) 50%, transparent 100%);
  border-top: 1px solid rgba(244,196,48,0.12);
  border-bottom: 1px solid rgba(244,196,48,0.12);
  text-align: center;
}
.mid-cta-band .mid-cta-eyebrow {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
}
.mid-cta-band h3 {
  font-family: var(--ff-serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.25;
}
.mid-cta-band .mid-cta-sub {
  font-size: 15px;
  color: var(--text-soft);
  max-width: 460px;
  line-height: 1.6;
}
.mid-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ─── FAQ accordion ─── */
.faq-list { display: flex; flex-direction: column; gap: 0; }

.faq-item {
  border-bottom: 1px solid var(--bl-rule, rgba(200,168,78,0.15));
}
.faq-item:first-child { border-top: 1px solid var(--bl-rule, rgba(200,168,78,0.15)); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
  font-family: var(--ff-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--bl-ink, #0F1B2D);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { display: none; }
summary.faq-q { list-style: none; }
.faq-q::after {
  content: '+';
  font-family: var(--ff-mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--bl-gold, #A07820);
  flex-shrink: 0;
  transition: transform 0.22s;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-item[open] .faq-q { color: var(--bl-gold, #A07820); }

.faq-a {
  padding: 0 0 20px;
}
.faq-a p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--bl-ink-soft, #1F2A3F);
  margin: 0;
}
.faq-a a { color: var(--bl-gold, #A07820); }
.faq-q:focus-visible {
  outline: 2px solid var(--bl-gold, #A07820);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── Top tape (very thin, factual) ─── */
.tape {
  background: var(--bg-base);
  border-bottom: 1px solid var(--line);
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  overflow: hidden;
}
.tape-row {
  display: flex;
  gap: 32px;
  padding: 9px var(--wrap-pad);
  white-space: nowrap;
  max-width: var(--wrap-max);
  margin: 0 auto;
}
.tape-row .item .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 8px;
  vertical-align: middle;
}

/* ─── Navigation ─── */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(5,11,20,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 var(--wrap-pad);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 36px; height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(244,196,48,0.4), rgba(244,196,48,0) 65%), rgba(244,196,48,0.06);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-mark::after {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}
.brand-text { line-height: 1.1; }
.brand-text .b1 { font-family: var(--ff-serif); font-size: 16px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.brand-text .b1 .gold { color: var(--gold); }
.brand-text .b1 .div { color: var(--text-faint); margin: 0 6px; }
.brand-text .b2 { font-family: var(--ff-mono); font-size: 9.5px; color: var(--text-mute); letter-spacing: 0.18em; text-transform: uppercase; margin-top: 2px; }
.nav-mid {
  display: flex; gap: 4px;
}
.nav-mid a {
  padding: 8px 14px;
  font-size: 13px; font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  transition: color 0.12s, background 0.12s;
}
.nav-mid a:hover { color: var(--gold); background: rgba(244,196,48,0.06); text-decoration: none; }
.nav-mid a.active { color: var(--gold); }

/* ─── Intent-based dropdown groups (desktop) ─── */
.nav-group { position: relative; }

.nav-group-label {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px;
  font-size: 13px; font-weight: 500;
  font-family: inherit;
  color: var(--text-soft);
  background: none; border: none; cursor: pointer;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  transition: color 0.12s, background 0.12s;
  white-space: nowrap;
}
.nav-group:hover .nav-group-label,
.nav-group:focus-within .nav-group-label,
.nav-group--open .nav-group-label {
  color: var(--gold); background: rgba(244,196,48,0.06);
}
.nav-group-label:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius);
}
.nav-group-label.active { color: var(--gold); }

.nav-chevron {
  font-size: 9px; line-height: 1; opacity: 0.55;
  transition: transform 0.18s;
  display: inline-block;
}
.nav-group:hover .nav-chevron,
.nav-group:focus-within .nav-chevron { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 168px;
  background: #0c1624;
  border: 1px solid rgba(200,168,78,0.22);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(200,168,78,0.06);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 300;
}
.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown,
.nav-group--open .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 8px 13px;
  font-size: 13px; font-weight: 500;
  color: rgba(245,240,232,0.65);
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition: color 0.12s, background 0.12s;
  text-decoration: none;
}
.nav-dropdown a:hover { color: var(--gold); background: rgba(244,196,48,0.08); }
.nav-dropdown a.active { color: var(--gold); }

/* Separator line inside dropdown */
.nav-dropdown-sep {
  height: 1px; background: rgba(200,168,78,0.12);
  margin: 4px 6px;
}

/* ─── Mobile hamburger button (hidden on desktop) ─── */
.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(244,196,48,0.28);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 90;
  transition: border-color 0.18s, background 0.18s;
}
.nav-burger:hover { border-color: rgba(244,196,48,0.55); background: rgba(244,196,48,0.06); }
.nav-burger:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav-burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  position: absolute;
  left: 13px;
  transition: transform 0.28s cubic-bezier(.22,1,.36,1), opacity 0.18s;
}
.nav-burger span:nth-child(1) { top: 14px; }
.nav-burger span:nth-child(2) { top: 21px; }
.nav-burger span:nth-child(3) { top: 28px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile slide-in drawer · Sovereign-coin-energy redesign ───
   Hardened 2026-05-10 against horizontal-overflow bug where flex children
   without min-width:0 caused content to bleed left of the drawer's left
   edge, making labels appear clipped. Also hardened against scroll-jump
   on iOS Safari when body overflow toggles. */
.nav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  left: auto;
  width: min(88vw, 380px);
  max-width: 100vw;            /* never exceed viewport */
  box-sizing: border-box;       /* padding lives INSIDE width */
  background:
    radial-gradient(ellipse 480px 380px at 30% 12%, rgba(244,196,48,0.10), transparent 65%),
    linear-gradient(180deg, #0A1422 0%, #060D18 100%);
  border-left: 1px solid rgba(244,196,48,0.32);
  box-shadow: -24px 0 64px rgba(0,0,0,0.70), inset 0 0 80px rgba(244,196,48,0.03);
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(.22,1,.36,1);
  z-index: 80;
  display: flex;
  flex-direction: column;
  padding: 96px 24px 28px;
  overflow-x: hidden;          /* defensively clip any inner overflow */
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  contain: layout style;        /* isolate layout from outer page */
}
/* CRITICAL: every flex child of the drawer must allow shrinking, otherwise
   long labels (e.g. "Matter · The Physics Gate · IP #1") force the row
   wider than the drawer and overflow leftward — clipping the start of words. */
.nav-drawer > *,
.nav-drawer a,
.nav-drawer .nav-drawer-toc {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.nav-drawer a {
  word-break: break-word;       /* let long labels wrap rather than overflow */
  overflow-wrap: anywhere;
}
/* Faint Adinkrahene watermark in the drawer background · institutional touch */
.nav-drawer::before {
  content: '';
  position: absolute;
  top: 110px; right: -100px;
  width: 360px; height: 360px;
  background:
    radial-gradient(circle, rgba(244,196,64,0.06) 0 1px, transparent 1px 28px),
    radial-gradient(circle at 50% 50%, rgba(244,196,64,0.04) 0 1px, transparent 1px 56px);
  pointer-events: none;
  opacity: 0.55;
}
.nav-drawer[data-open="true"] {
  transform: translateX(0);
  visibility: visible;
}

/* Brand strip at the top of the drawer · echo of the SOV mark */
.nav-drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 18px;
  margin: -76px 0 14px;
  position: relative;
  z-index: 1;
}
.nav-drawer-brand-mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(244,196,48,0.55), rgba(244,196,48,0) 70%),
    rgba(244,196,48,0.10);
  display: grid; place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(244,196,48,0.40);
}
.nav-drawer-brand-mark::after {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(244,196,48,0.7);
}
.nav-drawer-brand-text {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.20em;
  color: rgba(232,224,204,0.65);
  text-transform: uppercase;
  line-height: 1.3;
}
.nav-drawer-brand-text b { color: var(--gold); font-weight: 600; letter-spacing: 0.18em; }

/* Live status pill, prominent at top */
.nav-drawer-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(31,224,127,0.06);
  border: 1px solid rgba(31,224,127,0.30);
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: rgba(31,224,127,0.95);
  text-transform: uppercase;
  margin: 0 0 22px;
  align-self: flex-start;
  position: relative;
  z-index: 1;
}
.nav-drawer-live .pulse {
  width: 7px; height: 7px;
  background: #1FE07F;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(31,224,127,0.8);
  animation: drawerPulse 1.6s ease-in-out infinite;
}
@keyframes drawerPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.5; }
}

/* Section labels · gold caps, gold underline */
.nav-drawer-section {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244,196,48,0.65);
  margin: 22px 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(244,196,48,0.18);
  position: relative;
  z-index: 1;
}
.nav-drawer-section:first-of-type { margin-top: 0; }

/* Top-level nav links · serif, big tap targets, glowing active dot */
.nav-drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 4px;
  font-family: var(--ff-serif);
  font-size: 17px;
  font-weight: 500;
  color: rgba(232,224,204,0.94);
  letter-spacing: -0.005em;
  border-bottom: 1px solid rgba(244,196,48,0.08);
  transition: color 0.22s, padding 0.22s, background 0.22s;
  position: relative;
  z-index: 1;
}
.nav-drawer a:hover,
.nav-drawer a:focus-visible {
  color: var(--gold);
  text-decoration: none;
  padding-left: 14px;
  background: linear-gradient(90deg, rgba(244,196,48,0.06), transparent);
}
.nav-drawer a:focus-visible {
  outline: 1px solid rgba(244,196,48,0.55);
  outline-offset: -1px;
  border-radius: 4px;
}
.nav-drawer a.active {
  color: var(--gold);
  padding-left: 14px;
}
.nav-drawer a.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(244,196,48,0.85);
}
.nav-drawer a .arrow {
  font-family: var(--ff-mono);
  font-size: 14px;
  color: rgba(244,196,48,0.4);
  transition: transform 0.22s, color 0.22s;
  flex-shrink: 0;
}
.nav-drawer a:hover .arrow { color: var(--gold); transform: translateX(4px); }

/* The Two Covenants · IP cards with bold gold borders */
.nav-drawer-toc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.nav-drawer-toc a {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 12px 14px !important;
  color: rgba(244,196,48,0.92) !important;
  border: 1px solid rgba(244,196,48,0.32);
  border-radius: 6px;
  background: rgba(244,196,48,0.04);
  margin: 0 !important;
  transition: background 0.22s, border-color 0.22s, transform 0.22s;
}
.nav-drawer-toc a::before { display: none; } /* no active dot for TOC items */
.nav-drawer-toc a:hover,
.nav-drawer-toc a:focus-visible {
  background: rgba(244,196,48,0.12);
  border-color: rgba(244,196,48,0.65);
  padding-left: 14px !important;
  transform: translateX(2px);
}

/* Foot · live status + signoff */
.nav-drawer .nav-drawer-foot {
  margin-top: auto;
  padding-top: 28px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
  z-index: 1;
}
.nav-drawer .nav-drawer-foot .nav-status {
  align-self: flex-start;
}
.nav-drawer .nav-drawer-foot .nav-foot-line {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(232,224,204,0.55); /* bumped from 0.32 — WCAG AA contrast fix */
  text-transform: uppercase;
  margin-top: 6px;
}

/* Stagger-fade-in for drawer content when it opens */
.nav-drawer[data-open="true"] > * {
  animation: drawerItemIn 0.42s ease-out both;
}
.nav-drawer[data-open="true"] > *:nth-child(1)  { animation-delay: 0.10s; }
.nav-drawer[data-open="true"] > *:nth-child(2)  { animation-delay: 0.14s; }
.nav-drawer[data-open="true"] > *:nth-child(3)  { animation-delay: 0.18s; }
.nav-drawer[data-open="true"] > *:nth-child(4)  { animation-delay: 0.22s; }
.nav-drawer[data-open="true"] > *:nth-child(5)  { animation-delay: 0.26s; }
.nav-drawer[data-open="true"] > *:nth-child(6)  { animation-delay: 0.30s; }
.nav-drawer[data-open="true"] > *:nth-child(7)  { animation-delay: 0.34s; }
.nav-drawer[data-open="true"] > *:nth-child(8)  { animation-delay: 0.38s; }
.nav-drawer[data-open="true"] > *:nth-child(9)  { animation-delay: 0.42s; }
.nav-drawer[data-open="true"] > *:nth-child(10) { animation-delay: 0.46s; }
.nav-drawer[data-open="true"] > *:nth-child(11) { animation-delay: 0.50s; }
.nav-drawer[data-open="true"] > *:nth-child(12) { animation-delay: 0.54s; }
@keyframes drawerItemIn {
  0%   { opacity: 0; transform: translateX(12px); }
  100% { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-drawer[data-open="true"] > * { animation: none !important; }
  .nav-drawer-live .pulse { animation: none !important; }
}

/* ─── Drawer backdrop ─── */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 14, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s, visibility 0.28s;
  z-index: 70;
}
.nav-backdrop[data-open="true"] { opacity: 1; visibility: visible; }

/* Lock body scroll when drawer open · iOS-safe.
   Plain `overflow: hidden` on body causes a sudden scroll-to-top on iOS
   when the drawer opens, which feels "loose." The JS now uses position:fixed
   + top:-scrollY to freeze the page at its current position. The class still
   exists for the CSS-only fallback when JS is disabled. */
body.nav-drawer-open {
  overflow: hidden;
  /* iOS-only · prevent the drawer's own scroll from bleeding to body */
  -webkit-overflow-scrolling: auto;
  overscroll-behavior: none;
}

.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-status {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--green);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(31,224,127,0.25);
  border-radius: 999px;
}
.nav-status .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 6px; box-shadow: 0 0 0 3px rgba(31,224,127,0.15); }

/* ─── HERO (landing) ─── */
.hero {
  padding: 80px 0 100px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.hero h1 {
  font-size: clamp(54px, 6.4vw, 92px);
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin-bottom: 28px;
}
.hero h1 .em { color: var(--gold); }
.hero p.lede { margin-bottom: 36px; max-width: 560px; }
.hero p.lede strong { color: var(--text); }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0 36px;
  max-width: 540px;
}
.hero-stat .num {
  font-family: var(--ff-serif);
  font-size: 44px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat .lbl {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  color: var(--text-mute);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 10px;
  line-height: 1.4;
}
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── Live attestation feed (terminal) ─── */
.terminal {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--ff-mono);
}
.term-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.term-title { color: var(--text-soft); }
.term-title .ico { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 10px; vertical-align: middle; box-shadow: 0 0 0 4px rgba(31,224,127,0.18); }
.term-meta { display: flex; gap: 14px; color: var(--text-mute); font-size: 10px; }
.term-meta .live { color: var(--green); }
.term-body { padding: 8px 0; max-height: 480px; overflow-y: auto; }
.term-row {
  display: grid;
  grid-template-columns: 84px 1fr 80px;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-mute);
  font-size: 12px;
  align-items: center;
}
.term-row:last-child { border-bottom: 0; }
.term-row .t { color: var(--text-mute); }
.term-row .t .age { display: block; font-size: 10px; color: var(--text-faint); margin-top: 2px; }
.term-row .body { color: var(--text-soft); line-height: 1.5; }
.term-row .body .id { color: var(--gold); }
.term-row .body .meta { color: var(--text-mute); display: block; margin-top: 4px; font-size: 11px; }
.term-row .badge { text-align: right; }
.term-row .badge .b {
  display: inline-block;
  padding: 4px 9px; border-radius: 3px;
  font-size: 10px; letter-spacing: 0.14em;
  background: rgba(31,224,127,0.10);
  color: var(--green);
  border: 1px solid rgba(31,224,127,0.25);
}
.term-row .badge.reject .b {
  background: rgba(245,158,11,0.10);
  color: var(--amber);
  border-color: rgba(245,158,11,0.30);
}
.term-row .badge .gates { display: block; font-size: 10px; color: var(--text-mute); margin-top: 6px; }
.term-foot {
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
}
.term-foot .l { color: var(--green); }

/* ─── 90-second tile row ─── */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.tile {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: border-color 0.18s, transform 0.18s;
}
.tile:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.tile-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  margin-bottom: 22px;
  color: var(--gold);
}
.tile h3 { font-size: 18px; margin-bottom: 10px; }
.tile p { font-size: 14px; color: var(--text-mute); margin-bottom: 18px; line-height: 1.55; }
.tile a {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.tile a:hover { text-decoration: none; }
.tile a::after { content: ' →'; }

/* ─── Flow diagram (landing: How it works) ─── */
.flow-wrap {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 56px 32px;
}
.flow-svg-host { max-width: 1100px; margin: 0 auto; }
.flow-svg-host svg { width: 100%; height: auto; }
.flow-caption {
  text-align: center;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 28px;
}

/* ─── Mobile-stacked flow (≤640px) ─── */
.flow-stack {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: flow;
}
.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(13, 24, 39, 0.55);
  border: 1px solid rgba(244,196,48,0.18);
  border-radius: 10px;
  margin-bottom: 32px;
}
/* Vertical connector arrow between steps */
.flow-step::after {
  content: '';
  position: absolute;
  left: 44px;
  bottom: -28px;
  width: 1px; height: 24px;
  background: linear-gradient(180deg, rgba(244,196,48,0.6), rgba(244,196,48,0));
}
.flow-step:last-child { margin-bottom: 0; }
.flow-step:last-child::after { display: none; }
.flow-step-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: rgba(13, 24, 39, 0.85);
  border: 1px solid rgba(244,196,48,0.32);
  border-radius: 10px;
}
.flow-step-icon svg { width: 40px; height: 40px; display: block; }
.flow-step-stage {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244,196,48,0.72);
  margin-bottom: 4px;
}
.flow-step-title {
  font-family: var(--ff-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.flow-step-sub {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-mute);
  margin-top: 4px;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .flow-wrap { padding: 24px 16px; }
  .flow-svg-host { display: none; }
  .flow-stack { display: block; }
  .flow-caption { display: none; }
}

/* ─── Ledger table ─── */
.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ff-mono);
  font-size: 13px;
}
.ledger-table th, .ledger-table td {
  text-align: left;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-mute);
}
.ledger-table th {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 500;
  background: rgba(0,0,0,0.2);
}
.ledger-table tr:hover td { background: rgba(244,196,48,0.03); }
.ledger-table .name { color: var(--text); font-weight: 500; }
.ledger-table .addr { color: var(--text-soft); }
.ledger-table .addr a { color: var(--gold); }
.ledger-table .verified {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.ledger-table .verified::before { content: '✓'; font-size: 12px; }
.ledger-table-shell {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.ledger-foot {
  padding: 16px 20px;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid var(--line);
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.ledger-foot a { color: var(--gold); }

/* ─── Three-paths (landing audience CTAs) ─── */
.paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.path {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  min-height: 280px;
}
.path .label {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.path h3 { font-size: 22px; margin-bottom: 14px; }
.path p { font-size: 14.5px; color: var(--text-mute); flex: 1; line-height: 1.6; }
.path a.go {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 20px;
}
.path a.go::after { content: ' →'; }

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  background: var(--bg-base);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.footer h4 {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: var(--text-soft); font-size: 14px; }
.footer ul li a:hover { color: var(--gold); text-decoration: none; }
.footer-meta { font-size: 14px; color: var(--text-mute); line-height: 1.65; }
.footer-meta strong { color: var(--text); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  letter-spacing: 0.12em;
}

/* ─── Inner-page header (technical, heritage, compliance) ─── */
.page-header {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--line);
}
.page-header h1 { font-size: clamp(40px, 4.8vw, 64px); margin-bottom: 18px; }
.page-header p.lede { color: var(--text-soft); }
.page-toc {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 32px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.page-toc a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-mute);
  text-transform: uppercase;
}
.page-toc a:hover { color: var(--gold); border-color: var(--gold); text-decoration: none; }

/* ─── God cards (technical) ─── */
.council-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.god-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}
.god-card.anokye { grid-column: span 3; padding: 30px; background: linear-gradient(135deg, rgba(244,196,48,0.05), rgba(13,24,39,0.4)); border-color: var(--line-strong); }
.god-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; gap: 16px; }
.gname .g-name { font-family: var(--ff-serif); font-size: 18px; font-weight: 600; color: var(--text); display: block; }
.gname .g-role { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute); margin-top: 4px; display: block; }
.god-card.anokye .gname .g-name { font-size: 26px; color: var(--gold); }
.god-status { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); white-space: nowrap; padding: 4px 10px; border: 1px solid rgba(31,224,127,0.25); border-radius: 999px; }
.god-status.warn { color: var(--amber); border-color: rgba(245,158,11,0.30); }
.god-status .d { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: middle; }
.god-role { font-size: 13.5px; color: var(--text-mute); line-height: 1.6; }
.god-verdict { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--ff-mono); font-size: 11.5px; color: var(--text-soft); }
.god-verdict .label { color: var(--text-faint); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 6px; }

/* ─── Heritage page ─── */
.throne-ribbon {
  background:
    radial-gradient(ellipse at center, rgba(244,200,74,0.10), transparent 55%),
    linear-gradient(180deg, var(--bg-deep), var(--bg-base) 50%, var(--bg-deep));
  border-top: 1px solid rgba(244,200,74,0.18);
  border-bottom: 1px solid rgba(244,200,74,0.18);
  padding: 64px 0;
}
.throne-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 var(--wrap-pad);
}
.throne-side { font-family: var(--ff-mono); font-size: 12px; line-height: 1.7; color: var(--text-mute); letter-spacing: 0.04em; }
.throne-side b { color: var(--gold); display: block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 8px; }
.throne-side.right { text-align: right; }
.throne-stage { width: 260px; height: 184px; display: flex; align-items: center; justify-content: center; position: relative; }
.throne-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.throne-cap {
  text-align: center; margin-top: 28px;
  font-family: var(--ff-serif); font-style: italic;
  font-size: 18px; color: var(--text-soft);
  overflow-wrap: break-word;
  text-wrap: balance;
  padding: 0 16px;
}
.throne-cap b { color: var(--gold); font-style: normal; }
@media (max-width: 640px) {
  .throne-cap { font-size: 15px; line-height: 1.4; }
  .throne-cap b { display: block; margin-bottom: 6px; }
}
.throne-meta {
  text-align: center; margin-top: 14px;
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--text-mute); letter-spacing: 0.14em;
}
.throne-meta span { margin: 0 14px; }
.throne-meta b { color: var(--gold); }

.timeline-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  margin-top: 24px;
}
.timeline-row::before {
  content: ''; position: absolute; top: 26px; left: 8%; right: 8%;
  height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.timeline-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}
.timeline-item.now { border-color: var(--gold); }
.year-mark {
  width: 12px; height: 12px;
  background: var(--bg-deep);
  border: 2px solid var(--gold);
  border-radius: 50%;
  margin-bottom: 12px;
}
.timeline-item.now .year-mark { background: var(--gold); }
.year { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.move-title { font-family: var(--ff-serif); font-size: 18px; color: var(--text); font-weight: 600; margin-bottom: 8px; }
.move-desc { font-size: 13.5px; color: var(--text-mute); line-height: 1.6; }
.move-desc strong { color: var(--text); }

/* ─── Compliance docs ─── */
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: border-color 0.18s;
}
.doc-card:hover { border-color: var(--line-strong); text-decoration: none; }
.doc-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--gold);
  flex-shrink: 0;
}
.doc-body { flex: 1; }
.doc-body h4 { font-size: 16px; color: var(--text); margin-bottom: 6px; }
.doc-body p { font-size: 13.5px; color: var(--text-mute); margin: 0; }
.doc-body .meta { font-family: var(--ff-mono); font-size: 10.5px; color: var(--text-faint); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 8px; }

/* ─── Standing (founders / leadership) ─── */
.standing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 920px; margin: 0 auto; }
.standing-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.standing-card .role { font-family: var(--ff-mono); font-size: 10.5px; color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 14px; }
.standing-card h3 { font-size: 22px; margin-bottom: 6px; }
.standing-card .credit { font-family: var(--ff-mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.06em; margin-bottom: 16px; }
.standing-card p { font-size: 14.5px; color: var(--text-mute); line-height: 1.65; margin: 0; }

/* ─── Pull box ─── */
.pull {
  background: rgba(244,196,48,0.04);
  border-left: 3px solid var(--gold);
  padding: 26px 32px;
  margin: 32px 0;
  font-family: var(--ff-serif);
  font-size: 19px;
  font-style: italic;
  color: var(--text-soft);
  line-height: 1.55;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pull em { font-style: normal; color: var(--gold); }

/* ─── Hero scroll cue ─── */
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.scroll-cue::after {
  content: '↓';
  display: inline-block;
  animation: scrollNudge 1.8s infinite;
}
@keyframes scrollNudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .paths { grid-template-columns: 1fr; }
  .council-grid { grid-template-columns: repeat(2, 1fr); }
  .god-card.anokye { grid-column: span 2; }
  .timeline-row { grid-template-columns: repeat(2, 1fr); }
  .timeline-row::before { display: none; }
  .doc-grid, .standing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .nav-mid { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-right .nav-status { display: none; } /* moved into drawer foot */
}
@media (max-width: 640px) {
  :root { --section-y: 72px; --wrap-pad: 20px; }
  .hero { padding: 56px 0 72px; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
  .hero-stat .num { font-size: 32px; }
  .tile-grid { grid-template-columns: 1fr; }
  .council-grid, .timeline-row { grid-template-columns: 1fr; }
  .god-card.anokye { grid-column: span 1; }
  .throne-grid { grid-template-columns: 1fr; gap: 28px; }
  .throne-side.right, .throne-side { text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .ledger-table { font-size: 11px; }
  .ledger-table th, .ledger-table td { padding: 12px 14px; }
  .term-row { grid-template-columns: 60px 1fr 60px; gap: 10px; padding: 10px 14px; font-size: 11px; }
  h1 { letter-spacing: -0.02em; }
}

/* ─── Built-on infrastructure-partners strip ─── */
.builton {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  margin-top: 56px;
  background: rgba(0,0,0,0.18);
}
.builton-inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 36px;
  align-items: center;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 var(--wrap-pad);
}
.builton-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  line-height: 1.5;
}
.builton-label b { color: var(--gold); display: block; font-weight: 500; margin-bottom: 4px; }
.builton-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.builton-cell {
  display: flex; flex-direction: column;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  font-family: var(--ff-mono);
  transition: border-color 0.18s, transform 0.18s;
}
.builton-cell:hover { border-color: var(--line-strong); transform: translateY(-1px); text-decoration: none; }
.builton-cell .name {
  font-family: var(--ff-serif);
  font-size: 14.5px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}
.builton-cell .role {
  font-size: 9.5px;
  color: var(--text-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ─── Resources grid ─── */
.resources {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.resource {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s, transform 0.18s;
  align-items: flex-start;
}
.resource:hover { border-color: var(--line-strong); transform: translateY(-2px); text-decoration: none; }
.resource-icon {
  width: 32px; height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  display: grid; place-items: center;
  color: var(--gold);
  flex-shrink: 0;
}
.resource-body { flex: 1; min-width: 0; }
.resource-body .name {
  font-family: var(--ff-serif);
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.25;
}
.resource-body .desc {
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.5;
  margin-bottom: 6px;
}
.resource-body .meta {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  color: var(--text-faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ─── Motion: count-up + fade-in-on-scroll ─── */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
}

/* ─── Responsive overrides for new components ─── */
@media (max-width: 1024px) {
  .builton-inner { grid-template-columns: 1fr; gap: 18px; }
  .builton-row { grid-template-columns: repeat(3, 1fr); }
  .resources { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .builton-row { grid-template-columns: repeat(2, 1fr); }
  .resources { grid-template-columns: 1fr; }
}

/* ─── Print niceties (so the page can serve as a leave-behind PDF if needed) ─── */
@media print {
  body { background: white; color: #111; }
  .nav, .tape, .footer, .scroll-cue { display: none; }
  .terminal, .tile, .path, .god-card, .timeline-item, .doc-card, .standing-card, .ledger-table-shell { background: #f7f4eb; border-color: #C8A84E; color: #111; }
  h1, h2, h3, h4, p { color: #111 !important; }
  .gold, .em, .eyebrow, .nav-status, .tile a, .path a.go { color: #8a6d1c !important; }
}

/* ─── Universal :focus-visible baseline · WCAG 2.1 SC 2.4.7 (2026-05-22 · Z.ai audit Path X item 8)
       Closes the Level A failure where keyboard users couldn't see which element was focused.
       Existing per-component :focus-visible rules (.nav-burger, .nav-drawer a, .nav-drawer-toc a,
       .locator-btn, .builton-tile-link, etc.) override this baseline naturally via specificity.
       Uses gold accent + offset so it's visible on both dark and light surfaces. ─── */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
details:focus-visible,
.tile:focus-visible,
.god-card:focus-visible,
.doc-card:focus-visible,
.path:focus-visible,
.standing-card:focus-visible {
  outline: 2px solid #C8A84E;
  outline-offset: 3px;
  border-radius: 2px;
  /* Subtle glow makes the outline visible even against busy gold/cream backgrounds */
  box-shadow: 0 0 0 4px rgba(200, 168, 78, 0.18);
}

/* On dark backgrounds (hero sections, mission-control panels), bump the glow brightness */
.hero a:focus-visible,
.body-dark a:focus-visible,
.terminal a:focus-visible,
.path a:focus-visible {
  outline-color: #E8D48B;
  box-shadow: 0 0 0 4px rgba(232, 212, 139, 0.28);
}

/* ─── Skip-to-content link · 2026-05-23 (audit #10 closure) ───
   Base state: visually hidden but accessible to keyboard + screen readers.
   On focus, slides into view at the top-left. The :focus-visible rule
   below applies the extra glow when a keyboard user lands on it. ─── */
.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 9999;
  background: #0F1B2D;
  color: #F4D470;
  padding: 10px 18px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid #C8A84E;
  transition: top 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 3px solid #C8A84E;
  outline-offset: 0;
  box-shadow: 0 4px 12px rgba(200, 168, 78, 0.5);
}

/* Respect motion preferences — focus outlines stay even with reduced motion */
@media (prefers-reduced-motion: reduce) {
  a:focus-visible,
  button:focus-visible,
  [role="button"]:focus-visible,
  [tabindex]:focus-visible {
    transition: none;
  }
}
