/* ============================================================
   ZenithAI v2 — "Sovereign Ledger"
   Monumental dark ground · brass on graphite · ledger structure
   ============================================================ */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Spline Sans Mono';
  src: url('../fonts/spline-mono-var.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ground: #0C1210;
  --ground-2: #101816;
  --ground-3: #15201C;
  --rule: #24322C;
  --rule-strong: #35463F;
  --text: #E8E6DC;
  --text-dim: #9DA69E;
  --text-faint: #7C867E;
  --brass: #C9A961;
  --brass-bright: #E2C87E;
  --brass-dim: #8C7440;
  --emerald: #6FBFA4;
  --emerald-dim: #3E7A66;
  --paper: #EFEAE0;
  --paper-2: #E5DFD1;
  --paper-rule: #C9C2B0;
  --ink: #171D1A;
  --ink-soft: #47504A;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Archivo', 'Segoe UI', sans-serif;
  --font-mono: 'Spline Sans Mono', 'Consolas', monospace;
  --w: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --edge: clamp(24px, 5.5vw, 104px); /* single alignment edge for the whole page */
}

/* light theme */
[data-theme="light"] {
  --ground: #F3EFE5;
  --ground-2: #ECE6D8;
  --ground-3: #E3DCCA;
  --rule: #D8D1BE;
  --rule-strong: #C0B8A0;
  --text: #1D231F;
  --text-dim: #4A524C;
  --text-faint: #6E756D;
  --brass: #8C6F2F;
  --brass-bright: #75591D;
  --brass-dim: #8C6F2F;
  --emerald: #256B55;
  --emerald-dim: #3E7A66;
  --paper: #FBF9F3;
  --paper-2: #F1ECE0;
  --paper-rule: #D8D1BE;
}
[data-theme="light"] ::selection { background: #8C6F2F; color: #FBF9F3; }
[data-theme="light"] .btn-brass { background: #8C6F2F; color: #FBF9F3; }
[data-theme="light"] .btn-brass:hover { background: #75591D; color: #fff; }
[data-theme="light"] .sec-paper { background: var(--paper); }
[data-theme="light"] .tier-genius { background: linear-gradient(160deg, rgba(140,111,47,0.12), transparent 60%); }
[data-theme="light"] .final-cta::before { background: radial-gradient(60% 70% at 50% 110%, rgba(140,111,47,0.14), transparent 70%); }
[data-theme="light"] .brand strong { color: var(--text); }
[data-theme="light"] .tier h3, [data-theme="light"] .reg-row .name { color: var(--text); }
[data-theme="light"] .stat-cell .num { color: #75591D; }
[data-theme="light"] .console { box-shadow: 0 40px 90px -50px rgba(40,35,20,0.45); }
[data-theme="light"] .ghost-num { color: var(--ground-2); -webkit-text-stroke: 1px var(--rule-strong); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--text);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* no band may ever cause sideways scroll */
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--brass-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
::selection { background: var(--brass); color: var(--ground); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--brass); color: var(--ground); padding: 10px 18px; font-weight: 600; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* one alignment system: every band aligns to the same viewport edge */
.wrap { width: 100%; margin: 0; padding-left: var(--edge); padding-right: var(--edge); }

/* ledger page rails — vertical hairlines just outside the content edge */
body::after {
  content: ''; position: fixed; top: 108px; bottom: 0;
  left: calc(var(--edge) - 18px); right: calc(var(--edge) - 18px);
  border-left: 1px solid var(--rule); border-right: 1px solid var(--rule);
  pointer-events: none; z-index: 5; opacity: 0.8;
}
@media (max-width: 1100px) { body::after { display: none; } }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 480; letter-spacing: -0.012em; line-height: 1.04; }
.h-it { font-style: italic; font-weight: 420; color: var(--brass-bright); }
h1 { font-size: clamp(3rem, 8vw, 6.4rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.2; }

.lede { font-size: clamp(1.02rem, 1.5vw, 1.22rem); color: var(--text-dim); max-width: 60ch; }
.small { font-size: 0.84rem; color: var(--text-faint); }
.mono { font-family: var(--font-mono); }

.kicker {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--brass);
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px;
}
.kicker .idx { color: var(--text-faint); }

/* ---------- system strip ---------- */
.sys-strip {
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint);
}
.sys-strip .wrap { display: flex; justify-content: space-between; gap: 18px; padding-top: 9px; padding-bottom: 9px; }
.sys-strip .ok { color: var(--emerald); }
.sys-strip span b { color: var(--text-dim); font-weight: 500; }
@media (max-width: 720px) { .sys-strip .hide-m { display: none; } }

/* ---------- header (transparent over hero, solid on scroll) ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: transparent; border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s; }
.site-header.scrolled { background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(12px); border-bottom-color: var(--rule); }
.nav-bar { display: flex; align-items: center; gap: 28px; height: 72px; min-width: 0; }
/* compress the menu at mid widths so the bar never exceeds the screen */
@media (max-width: 1620px) and (min-width: 861px) {
  .nav-bar { gap: 14px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 8px; font-size: 0.66rem; letter-spacing: 0.08em; }
  .btn.nav-cta { padding: 12px 16px; font-size: 0.68rem; letter-spacing: 0.1em; }
  .brand strong { font-size: 1.18rem; }
}
@media (max-width: 1240px) and (min-width: 861px) {
  .brand .brand-by { display: none; }
  .nav-links a { font-size: 0.62rem; padding: 8px 6px; }
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand strong { font-family: var(--font-display); font-weight: 560; font-size: 1.34rem; letter-spacing: 0; color: #F4F2E9; }
.brand .brand-by { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); display: block; margin-top: -1px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { display: block; padding: 9px 13px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); text-decoration: none; }
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current="page"] { color: var(--brass-bright); }
.nav-toggle { display: none; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--rule-strong); background: transparent;
  color: var(--text-dim); cursor: pointer; border-radius: 2px;
}
.theme-toggle:hover { color: var(--brass-bright); border-color: var(--brass); }
.theme-toggle .ic-sun { display: none; }
[data-theme="light"] .theme-toggle .ic-sun { display: block; }
[data-theme="light"] .theme-toggle .ic-moon { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.76rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 15px 26px; border-radius: 2px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.btn-brass { background: var(--brass); color: var(--ground); }
.btn-brass:hover { background: var(--brass-bright); color: var(--ground); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-bright); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; color: #fff; }
.btn-ghost-ink { background: transparent; color: var(--ink); border-color: var(--paper-rule); }
.btn-ghost-ink:hover { border-color: var(--ink); }
.btn .arrow { transition: transform 0.18s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- sections & rules ---------- */
.sec { padding: clamp(76px, 10vw, 140px) 0; position: relative; }
.sec-tight { padding: clamp(44px, 6vw, 72px) 0; }
.rule-top { border-top: 1px solid var(--rule); }
.rule-double { border-top: 3px double var(--rule-strong); }
.sec-alt { background: var(--ground-2); }

/* ghost chapter numeral */
.ghost-num {
  position: absolute; top: clamp(20px, 4vw, 52px); right: var(--edge);
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: clamp(4.5rem, 11vw, 9.5rem); line-height: 1; color: var(--ground-3);
  -webkit-text-stroke: 1px var(--rule); user-select: none; pointer-events: none;
}
.sec-paper .ghost-num { color: var(--paper-2); -webkit-text-stroke: 1px var(--paper-rule); }

.sec-head { max-width: 820px; margin-bottom: clamp(40px, 6vw, 72px); position: relative; z-index: 1; }
.sec-head h2 { margin-bottom: 20px; }

/* paper interludes */
.sec-paper { background: var(--paper); color: var(--ink); }
.sec-paper h2, .sec-paper h3 { color: var(--ink); }
.sec-paper .lede { color: var(--ink-soft); }
.sec-paper .small { color: #6E746B; }
.sec-paper .kicker { color: var(--brass-dim); }
.sec-paper .kicker .idx { color: #A8A294; }
.sec-paper a { color: #7A6428; }
.sec-paper a:hover { color: var(--ink); }

/* ---------- full-screen hero scene ---------- */
.hero-screen {
  position: relative;
  min-height: calc(100vh - 108px);
  display: flex; flex-direction: column;
  overflow: hidden;
  background: var(--ground);
  z-index: 6; /* sits above the fixed ledger rails so they begin after the hero */
}
#zenith-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(97deg, var(--ground) 18%, transparent 56%),
    linear-gradient(to bottom, color-mix(in srgb, var(--ground) 60%, transparent), transparent 18%),
    linear-gradient(to top, color-mix(in srgb, var(--ground) 70%, transparent), transparent 22%);
}
.hero-main {
  position: relative; z-index: 2; flex: 1;
  display: flex; align-items: center;
  width: 100%;
  padding: 44px var(--edge) 28px;
}
.hero-copy { max-width: 700px; }
.hero-copy h1 { font-size: clamp(2.7rem, 5.4vw, 5rem); margin: 22px 0 24px; }
.hero-copy .sub { font-size: clamp(1.12rem, 2vw, 1.55rem); color: var(--text); font-weight: 340; margin-bottom: 16px; font-family: var(--font-display); font-style: italic; }
.hero-copy .lede { max-width: 54ch; }
.hero-annot {
  position: absolute; right: var(--edge); bottom: 28px; z-index: 2;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-faint); text-align: right; pointer-events: none;
}
.hero-annot .ok { color: var(--emerald); }
.hero-annot b { color: var(--brass); font-weight: 500; }
@media (max-width: 900px) { .hero-annot { display: none; } }

/* full-width data strip pinned to the hero's bottom edge */
.hero-strip {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  background: color-mix(in srgb, var(--ground) 72%, transparent);
  backdrop-filter: blur(6px);
  padding: 0 var(--edge);
}
.hero-strip > div { padding: 18px 26px 18px 0; margin-right: 26px; border-right: 1px solid var(--rule); }
.hero-strip > div:last-child { border-right: 0; margin-right: 0; }
.hero-strip .t { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); display: block; margin-bottom: 5px; }
.hero-strip .v { font-size: 0.88rem; color: var(--text-dim); }
@media (max-width: 980px) {
  .hero-strip { grid-template-columns: 1fr 1fr; }
  .hero-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .hero-strip > div:nth-child(2n) { border-right: 0; margin-right: 0; }
}
@media (max-width: 560px) {
  .hero-strip { grid-template-columns: 1fr; }
  .hero-strip > div { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--rule); }
  .hero-strip > div:last-child { border-bottom: 0; }
}

/* staggered blur fade-up */
@keyframes fadeUpBlur {
  from { opacity: 0; transform: translateY(22px); filter: blur(5px); }
  to { opacity: 1; transform: none; filter: none; }
}
.js .fu { opacity: 0; animation: fadeUpBlur 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* ---------- hero (legacy grid, unused on home) ---------- */
.hero { position: relative; padding: clamp(64px, 9vw, 120px) 0 0; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(var(--rule) 1px, transparent 1px) 0 0 / 100% 120px,
    linear-gradient(90deg, var(--rule) 1px, transparent 1px) 0 0 / 120px 100%;
  opacity: 0.22;
  mask-image: radial-gradient(90% 80% at 50% 0%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(90% 80% at 50% 0%, #000 20%, transparent 100%);
}
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.hero h1 { margin: 26px 0 30px; font-size: clamp(2.9rem, 6.6vw, 5.6rem); }
.hero .lede { max-width: 58ch; font-size: clamp(1.06rem, 1.6vw, 1.26rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin: 40px 0 0; }

/* deployment record panel */
.record { border: 1px solid var(--rule-strong); background: color-mix(in srgb, var(--ground-2) 70%, transparent); }
.record-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 20px; border-bottom: 3px double var(--rule-strong);
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass);
}
.record-head .seal { color: var(--text-faint); font-size: 1rem; letter-spacing: 0; }
.record-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 20px; border-bottom: 1px solid var(--rule); }
.record-row:last-child { border-bottom: 0; }
.record-row .rk { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); padding-top: 3px; flex: none; }
.record-row .rv { font-size: 0.88rem; color: var(--text-dim); text-align: right; }
.record-row .rv.ok { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--emerald); display: inline-flex; align-items: center; gap: 8px; }
.record-row .rv.ok::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } .record { max-width: 560px; } }

.hero-console { margin-top: clamp(52px, 7vw, 84px); position: relative; }
.hero-proofline {
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  margin-top: clamp(56px, 8vw, 88px);
}
.hero-proofline > div {
  flex: 1 1 200px; padding: 18px 22px 18px 0; margin-right: 22px;
  border-right: 1px solid var(--rule);
}
.hero-proofline > div:last-child { border-right: 0; margin-right: 0; }
.hero-proofline .t { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); display: block; margin-bottom: 4px; }
.hero-proofline .v { font-size: 0.92rem; color: var(--text-dim); }

/* headline line reveal — padding prevents descender/italic clipping */
.line-reveal .lr { display: block; }
.js .line-reveal .lr { overflow: hidden; padding: 0 0.18em 0.16em 0.02em; margin: 0 -0.18em -0.16em -0.02em; }
.js .line-reveal .lr > span { display: block; transform: translateY(112%); animation: lrUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.js .line-reveal .lr:nth-child(2) > span { animation-delay: 0.12s; }
.js .line-reveal .lr:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes lrUp { to { transform: translateY(0); } }

/* ---------- console (product frame) ---------- */
.console {
  border: 1px solid var(--rule-strong); background: #0A0F0D;
  box-shadow: 0 40px 90px -50px rgba(0,0,0,0.9);
  font-size: 0.85rem;
}
/* console keeps its own dark palette in both themes — the product frame */
.console-bar {
  display: flex; align-items: center; gap: 16px; padding: 11px 18px;
  border-bottom: 1px solid #24322C;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: #6C766E;
}
.console-bar .live { color: #6FBFA4; display: inline-flex; align-items: center; gap: 7px; }
.console-bar .live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #6FBFA4; box-shadow: 0 0 8px #6FBFA4; }
.console-body { display: grid; grid-template-columns: 220px 1fr; min-height: 360px; }
.console-side { border-right: 1px solid #24322C; padding: 18px 0; }
.console-side .lbl { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: #6C766E; padding: 0 18px; margin-bottom: 10px; }
.console-side .itm { padding: 9px 18px; font-size: 0.82rem; color: #9DA69E; border-left: 2px solid transparent; }
.console-side .itm.on { color: #E2C87E; border-left-color: #C9A961; background: rgba(201,169,97,0.06); }
.console-chat { padding: 26px 30px; display: flex; flex-direction: column; gap: 18px; }
.q { font-family: var(--font-mono); font-size: 0.8rem; color: #E8E6DC; line-height: 1.6; }
.q::before { content: '❯ '; color: #C9A961; }
.a { color: #9DA69E; line-height: 1.7; max-width: 62ch; border-left: 1px solid #35463F; padding-left: 18px; }
.a strong { color: #E8E6DC; font-weight: 600; }
.evidence { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em;
  padding: 5px 11px; border: 1px solid #35463F; color: #6FBFA4;
}
.chip.gold { color: #E2C87E; }
.console-meta { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: #6C766E; margin-top: 4px; }

/* ---------- interior page hero ---------- */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 68px); border-bottom: 1px solid var(--rule); position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(var(--rule) 1px, transparent 1px) 0 0 / 100% 110px,
    linear-gradient(90deg, var(--rule) 1px, transparent 1px) 0 0 / 110px 100%;
  opacity: 0.16;
  mask-image: radial-gradient(75% 90% at 22% 0%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 90% at 22% 0%, #000 20%, transparent 100%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); margin: 18px 0 20px; max-width: 22ch; }
.page-hero .lede { max-width: 68ch; }

/* two-column definition rows for interior pages */
.def-row { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 4vw, 64px); padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--rule); }
.def-row:last-of-type { border-bottom: 1px solid var(--rule); }
.def-row h3 { color: #F4F2E9; }
.sec-paper .def-row h3, [data-theme="light"] .def-row h3 { color: var(--text); }
.def-row .dk { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); display: block; margin-bottom: 10px; }
.def-row p { color: var(--text-dim); font-size: 0.97rem; max-width: 72ch; }
.def-row p + p { margin-top: 10px; }
@media (max-width: 860px) { .def-row { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- workspace demo (tabs + slides) ---------- */
.ws-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule-strong); border-bottom: 0; background: var(--ground-2); }
.ws-tab {
  text-align: left; padding: 18px 22px 16px; background: transparent; border: 0;
  border-right: 1px solid var(--rule); cursor: pointer; font-family: var(--font-body);
}
.ws-tab:last-child { border-right: 0; }
.ws-tab .tn { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); display: block; margin-bottom: 7px; }
.ws-tab .tt { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: var(--text-dim); display: block; }
.ws-tab .td { font-size: 0.78rem; color: var(--text-faint); display: block; margin-top: 4px; }
.ws-tab[aria-pressed="true"] { background: rgba(201,169,97,0.08); box-shadow: inset 0 -2px 0 var(--brass); }
.ws-tab[aria-pressed="true"] .tt { color: var(--brass-bright); }
.ws-tab:hover .tt { color: var(--text); }
.ws-tab[aria-pressed="true"]:hover .tt { color: var(--brass-bright); }

.ws-slide { display: none; }
.ws-slide.on { display: block; animation: wsIn 0.45s ease; }
@keyframes wsIn { from { opacity: 0; } to { opacity: 1; } }

.ws-nav {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  padding: 13px; border-top: 1px solid #24322C; background: #080C0A;
}
.ws-dots { display: flex; gap: 10px; }
.ws-dot { width: 30px; height: 3px; background: #35463F; border: 0; cursor: pointer; padding: 0; }
.ws-dot.on { background: #C9A961; }
.ws-dot:hover { background: #6C766E; }
.ws-arrow {
  background: transparent; border: 1px solid #35463F; color: #9DA69E; cursor: pointer;
  width: 30px; height: 24px; line-height: 1; font-size: 0.8rem;
}
.ws-arrow:hover { color: #E2C87E; border-color: #C9A961; }
@media (max-width: 720px) {
  .ws-tabs { grid-template-columns: 1fr; }
  .ws-tab { border-right: 0; border-bottom: 1px solid var(--rule); }
  .ws-tab:last-child { border-bottom: 0; }
  .ws-tab .td { display: none; }
}

/* ---------- registry (capability ledger) ---------- */
.registry { border-top: 3px double var(--rule-strong); }
.reg-row {
  display: grid; grid-template-columns: 92px 250px 1fr 140px;
  gap: 26px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
}
.reg-row .code { font-family: var(--font-mono); font-size: 0.72rem; color: var(--brass); letter-spacing: 0.1em; }
.reg-row .name { font-family: var(--font-display); font-size: 1.18rem; font-weight: 500; color: #F4F2E9; }
.reg-row .desc { font-size: 0.92rem; color: var(--text-dim); max-width: 66ch; }
.reg-row .status { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--emerald); text-align: right; }
.reg-row .status.note { color: var(--text-faint); }

/* ---------- tiers ---------- */
.tier-band { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule-strong); }
.tier { padding: clamp(24px, 3vw, 40px) clamp(20px, 2.4vw, 34px); border-right: 1px solid var(--rule); position: relative; }
.tier:last-child { border-right: 0; }
.tier .roman { font-family: var(--font-display); font-style: italic; font-weight: 320; font-size: 2.4rem; color: var(--rule-strong); display: block; margin-bottom: 18px; }
.tier h3 { color: #F4F2E9; margin-bottom: 10px; }
.tier p { font-size: 0.88rem; color: var(--text-dim); }
.tier .cls { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); display: block; margin-top: 16px; }
.tier-genius { background: linear-gradient(160deg, rgba(201,169,97,0.10), transparent 60%); }
.tier-genius .roman { color: var(--brass); }

/* ---------- ledger table (light) ---------- */
.ledger { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 0.95rem; }
.ledger th, .ledger td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--paper-rule); vertical-align: top; }
.ledger thead th { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: #8A8474; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.ledger td:first-child { font-weight: 620; white-space: nowrap; color: var(--ink); }
.ledger td { color: var(--ink-soft); }
.ledger .zcol { background: rgba(201,169,97,0.13); border-left: 1px solid var(--paper-rule); border-right: 1px solid var(--paper-rule); }
.ledger tbody tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

/* ---------- stats (annual-report) ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 3px double var(--rule-strong); }
.sec-paper .stat-band { border-top-color: var(--ink); }
.stat-cell { padding: 30px 26px 30px 0; border-bottom: 1px solid var(--rule); }
.sec-paper .stat-cell { border-bottom-color: var(--paper-rule); }
.stat-cell .num { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; color: var(--brass-bright); display: block; }
.sec-paper .stat-cell .num { color: var(--ink); }
.stat-cell .lbl { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); display: block; margin-top: 12px; }
.sec-paper .stat-cell .lbl { color: #8A8474; }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.split-center { align-items: center; }

/* ---------- boundary diagram frame ---------- */
.diagram-shell { border: 1px solid var(--rule-strong); background: var(--ground-2); padding: clamp(20px, 3.4vw, 44px); position: relative; }
.diagram-shell .dg-cap { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); text-align: center; margin-top: 20px; }

/* ---------- manifest list ---------- */
.manifest { list-style: none; border-top: 1px solid var(--rule); }
.manifest li { display: grid; grid-template-columns: 26px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--rule); font-size: 0.95rem; color: var(--text-dim); align-items: baseline; }
.manifest .m { font-family: var(--font-mono); font-size: 0.66rem; color: var(--brass); }
.manifest strong { color: var(--text); font-weight: 600; }
.sec-paper .manifest { border-top-color: var(--paper-rule); }
.sec-paper .manifest li { border-bottom-color: var(--paper-rule); color: var(--ink-soft); }
.sec-paper .manifest strong { color: var(--ink); }
.sec-paper .manifest .m { color: var(--brass-dim); }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 560; font-size: 0.9rem; color: var(--text); }
.field .hint { font-size: 0.76rem; color: var(--text-faint); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.98rem; color: var(--text);
  padding: 13px 15px; border: 1px solid var(--rule-strong); border-radius: 2px;
  background: var(--ground-2);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--brass); }
.field textarea { min-height: 130px; resize: vertical; }
.form-status { border: 1px solid transparent; padding: 14px 16px; font-size: 0.94rem; margin-top: 18px; }
.form-status.ok { border-color: var(--emerald-dim); color: var(--emerald); background: rgba(111,191,164,0.07); }
.form-status.err { border-color: #7A4A3A; color: #D9A18C; background: rgba(217,161,140,0.07); }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 3px double var(--rule-strong); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 24px 4px; }
.faq summary h3 { font-size: 1.15rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--brass); flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq .faq-a { padding: 0 4px 26px; color: var(--text-dim); max-width: 72ch; }

/* ---------- final CTA ---------- */
.final-cta { text-align: center; padding: clamp(90px, 13vw, 180px) 0; position: relative; overflow: hidden; }
.final-cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 110%, rgba(201,169,97,0.13), transparent 70%);
}
.final-cta h2 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); max-width: 16ch; margin: 0 auto 26px; }
.final-cta .lede { margin: 0 auto 44px; }
.final-cta .hero-ctas { justify-content: center; margin: 0; }

/* ---------- footer (fixed dark in both themes) ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: clamp(52px, 7vw, 84px) 0 40px; background: #0A0F0D; color: #6C766E; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid #24322C; }
.site-footer h5 { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: #9DA69E; margin-bottom: 18px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #8B958C; text-decoration: none; font-size: 0.9rem; }
.site-footer a:hover { color: #E2C87E; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: #F4F2E9; display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; max-width: 36ch; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.4s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .line-reveal .lr > span { transform: none; }
  .js .fu { opacity: 1; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1020px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tier-band { grid-template-columns: 1fr 1fr; }
  .tier:nth-child(2) { border-right: 0; }
  .tier:nth-child(1), .tier:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .reg-row { grid-template-columns: 70px 1fr 120px; }
  .reg-row .desc { grid-column: 2 / 4; grid-row: 2; }
  .reg-row .status { text-align: right; }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .console-body { grid-template-columns: 1fr; }
  .console-side { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--rule-strong); background: transparent; cursor: pointer; color: var(--text);
  }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ground); border-bottom: 1px solid var(--rule); padding: 10px var(--gutter) 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--rule); font-size: 0.8rem; }
  .nav-cta { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .tier-band { grid-template-columns: 1fr; }
  .tier { border-right: 0; border-bottom: 1px solid var(--rule); }
  .tier:last-child { border-bottom: 0; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .reg-row { grid-template-columns: 1fr; gap: 8px; }
  .reg-row .desc { grid-column: 1; grid-row: auto; }
  .reg-row .status { text-align: left; }
  .hero-proofline > div { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--rule); margin-right: 0; }
  .hero-proofline > div:last-child { border-bottom: 0; }
  .ghost-num { display: none; }
}
