/* ===== NeuralGraph — design tokens ===== */
:root {
  /* Default theme: dark */
  --bg: #0a0a0b;
  --bg-elev: #111114;
  --bg-elev-2: #16161a;
  --line: #232328;
  --line-strong: #2e2e35;
  --ink: #f5f5f0;
  --ink-2: #c9c9c2;
  --ink-3: #8a8a82;
  --ink-4: #5a5a55;
  --accent: oklch(0.6 0.2 320);            /* magenta/violet — option 4 from picker */
  --accent-soft: oklch(0.6 0.2 320 / 0.18);
  --accent-ink: #0a0a0b;
  --good: oklch(0.78 0.16 145);
  --warn: oklch(0.78 0.16 75);
  --danger: oklch(0.7 0.2 25);

  --font-serif: 'Times New Roman', Times, serif;
  --font-sans: 'Times New Roman', Times, serif;
  --font-mono: 'Times New Roman', Times, serif;

  --pad-section: 72px;
  --pad-x: clamp(20px, 4vw, 64px);
  --container: min(1680px, 96vw);

  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
}

/* light mode override */
html[data-theme="light"] {
  --bg: #f6f5f0;
  --bg-elev: #ffffff;
  --bg-elev-2: #f0eee7;
  --line: #e2dfd5;
  --line-strong: #cdc9bd;
  --ink: #131313;
  --ink-2: #2e2e2c;
  --ink-3: #6a6a64;
  --ink-4: #9d9d95;
  --accent-ink: #ffffff;
}

/* density */
html[data-density="compact"] { --pad-section: 52px; }
html[data-density="airy"]    { --pad-section: 104px; }

/* font swap (all Times New Roman now) */
html[data-fonts="mono"]     { --font-serif: 'Times New Roman', Times, serif; }
html[data-fonts="serif"]    { /* default */ }
html[data-fonts="sans"]     { --font-serif: 'Times New Roman', Times, serif; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
}
::selection { background: var(--accent); color: var(--accent-ink); }

/* Global starfield — one fixed periwinkle starfield behind the whole
   page; all page content sits above it in .page-shell. */
.global-starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.global-starfield canvas { display: block; width: 100%; height: 100%; }
.page-shell { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

/* ---------- type system ---------- */
.display {
  font-family: var(--font-serif);
  font-weight: 380;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  letter-spacing: -0.03em;
  line-height: 0.96;
  font-size: clamp(56px, 8vw, 128px);
}
.display em { font-style: italic; color: var(--ink-2); font-weight: 300; }
.h1 { font-family: var(--font-serif); font-weight: 380; font-variation-settings: 'opsz' 96, 'SOFT' 30; font-size: clamp(40px, 5vw, 72px); line-height: 1.0; letter-spacing: -0.025em; margin: 0; }
.h1 em { font-style: italic; color: var(--ink-2); font-weight: 300; }
.h2 { font-family: var(--font-serif); font-weight: 400; font-variation-settings: 'opsz' 48; font-size: clamp(28px, 3vw, 40px); line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
.h3 { font-family: var(--font-sans); font-weight: 500; font-size: 20px; letter-spacing: -0.005em; margin: 0; }
.body-lg { font-family: var(--font-sans); font-size: 19px; line-height: 1.55; color: var(--ink-2); font-weight: 400; }
.body { font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.caption { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 24px; height: 1px; background: var(--accent);
}
.mono { font-family: var(--font-mono); }

/* ---------- layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
section { padding: var(--pad-section) 0; position: relative; }
.section-divider { border-top: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.1); }
.btn-secondary { border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { background: var(--bg-elev); border-color: var(--ink-3); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 16px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 19px; letter-spacing: -0.01em; }
.brand-mark { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--ink-2); transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ---------- hero ---------- */
.hero { padding-top: 56px; padding-bottom: 80px; position: relative; overflow: hidden; }

/* fullbleed hero */
.hero-fullbleed {
  min-height: 760px;
  padding-top: 24px; padding-bottom: 96px;
  display: flex; align-items: flex-start;
}
.hero-fullbleed-viz {
  position: absolute; top: 0; bottom: 0; left: 0; right: 0;
  width: 100%;
  z-index: 0;
  pointer-events: auto;
}
.hero-fullbleed-viz > svg { width: 100%; height: 100%; display: block; }
.hero-fullbleed-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to right,
      color-mix(in oklab, var(--bg) 70%, transparent) 0%,
      color-mix(in oklab, var(--bg) 35%, transparent) 18%,
      transparent 32%),
    linear-gradient(180deg, color-mix(in oklab, var(--bg) 30%, transparent) 0%, transparent 12%, transparent 86%, color-mix(in oklab, var(--bg) 70%, transparent) 100%);
}
.hero-content-wrap {
  position: relative; z-index: 2;
  width: 100%;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 32px;
  padding-top: 12px;
  pointer-events: none;
}
.hero-content-wrap > * { pointer-events: auto; }
.hero-fullbleed .hero-content-wrap {
  max-width: none;
  padding-left: clamp(24px, 4vw, 72px);
  padding-right: clamp(24px, 4vw, 72px);
}
.hero-content { max-width: 560px; }
.hero-corner-info {
  display: flex; flex-direction: column; gap: 6px;
  text-align: right;
  padding-top: 4px;
}
.hero-fullbleed .hero-display {
  font-size: clamp(54px, 6.8vw, 96px);
  max-width: 11ch;
}
.hero-fullbleed .hero-sub { max-width: 480px; }
@media (max-width: 900px) {
  .hero-fullbleed { min-height: 680px; }
  .hero-fullbleed-overlay {
    background:
      linear-gradient(180deg, color-mix(in oklab, var(--bg) 60%, transparent) 0%, color-mix(in oklab, var(--bg) 30%, transparent) 35%, transparent 70%, color-mix(in oklab, var(--bg) 70%, transparent) 100%);
  }
  .hero-corner-info { display: none; }
}
.hero-grid {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center;
}
.hero-meta {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
  padding-bottom: 0; border-bottom: 0;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  white-space: nowrap;
}
.hero-meta .caption { white-space: nowrap; }
.hero-meta .dot { display: none; }
.hero-meta-rule {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.hero-display { margin: 0; font-size: clamp(56px, 7.6vw, 116px); line-height: 0.98; letter-spacing: -0.025em; }
.hero-sub {
  margin-top: 24px; max-width: 520px;
  font-size: 18px; color: var(--ink-2); line-height: 1.55;
}
.hero-cta { margin-top: 28px; display: flex; gap: 12px; align-items: center; }
.hero-foot {
  margin-top: 40px;
  display: flex; align-items: center; gap: 28px; color: var(--ink-3);
  font-family: var(--font-mono); font-size: 12px;
}
.hero-foot strong { color: var(--ink); font-weight: 500; }

/* graph visualization area */
.hero-viz {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--accent) 8%, transparent), transparent 65%),
    var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-viz::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 75%);
}

.hero-viz-corner {
  position: absolute;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  color: var(--ink-3); padding: 12px 14px; z-index: 5;
}
.hero-viz-corner.tl { top: 0; left: 0; }
.hero-viz-corner.tr { top: 0; right: 0; text-align: right; }
.hero-viz-corner.bl { bottom: 0; left: 0; }
.hero-viz-corner.br { bottom: 0; right: 0; text-align: right; }

/* ---------- generic section header ---------- */
.section-head {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  margin-bottom: 40px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.section-head-meta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.14em; text-transform: uppercase;
}
.section-head-meta .num { display: block; margin: 0; color: var(--accent); }
.section-head-meta .caption { display: block; padding: 0; color: var(--ink-3); }
.section-head-meta::before, .section-head-meta::after { display: none; }
.section-head .h1 { max-width: 22ch; margin: 0; }
.section-head-meta { color: var(--ink-3); }
.section-head-meta .num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--ink-3);
  display: block; margin-bottom: 10px;
}
.section-head .h1 { max-width: 14ch; }

/* ---------- problem grid ---------- */
.problem-section { --section-hue: 18; }
.problem-section .vatlas-cosmo { opacity: 0.7; }
.problem-leak {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin: -8px 0 22px;
  padding: 12px 18px;
  border: 1px solid color-mix(in oklab, oklch(0.72 0.16 var(--section-hue)) 25%, var(--line));
  border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  overflow: hidden;
}
.problem-leak-label { color: oklch(0.78 0.14 var(--section-hue)); }
.problem-leak-stream {
  position: relative; height: 18px; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.problem-leak-frag {
  position: absolute; top: 50%;
  width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, oklch(0.82 0.16 var(--section-hue)), transparent);
  animation: problemLeakFrag 5.4s linear infinite;
  left: 0;
  transform: translateY(-50%);
}
@keyframes problemLeakFrag {
  0%   { transform: translate(0, -50%); opacity: 0; }
  10%  { opacity: 0.9; }
  60%  { opacity: 0.9; }
  100% { transform: translate(640px, calc(-50% + 6px)); opacity: 0; }
}
.problem-leak-meta { color: var(--ink-3); }

.problem-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: color-mix(in oklab, var(--line) 70%, transparent);
  border: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(2px);
}
.problem-card {
  position: relative;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  padding: 22px 28px 36px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 260px;
  overflow: hidden;
}
.problem-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg,
    oklch(0.72 0.16 var(--section-hue) / 0.85),
    oklch(0.72 0.16 var(--section-hue) / 0));
}
.problem-card::after {
  content: none;
}
.problem-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px dashed color-mix(in oklab, var(--line) 80%, transparent);
}
.problem-card-mode {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: oklch(0.78 0.14 var(--section-hue));
}
.problem-card-tag {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.problem-card .h3 em { color: var(--ink-3); font-style: italic; font-weight: 300; }
.problem-card-foot {
  margin-top: auto;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.problem-card-foot-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: oklch(0.65 0.22 var(--section-hue));
  box-shadow: 0 0 10px oklch(0.65 0.22 var(--section-hue) / 0.8);
}
.problem-card-corner {
  position: absolute; top: 12px; right: 12px;
  display: flex; gap: 2px;
}
.problem-card-corner span {
  display: block; width: 4px; height: 4px;
  background: oklch(0.65 0.22 var(--section-hue));
  opacity: 0.4;
  animation: problemCornerBlink 2.2s ease-in-out infinite;
}
.problem-card-corner span:nth-child(2) { animation-delay: 0.7s; }
.problem-card-corner span:nth-child(3) { animation-delay: 1.4s; }
@keyframes problemCornerBlink {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.85; }
}
.problem-card .h3 em { color: var(--ink-3); font-style: italic; font-weight: 300; }
.problem-card-foot {
  margin-top: auto;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ---------- differentiators ---------- */
.diff-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.diff-row {
  display: grid; grid-template-columns: 80px 1fr 1.5fr 280px;
  gap: 32px; align-items: start;
  padding: 32px 0; border-bottom: 1px solid var(--line);
}
.diff-num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); padding-top: 6px; }
.diff-row .h3 { font-size: 22px; }
.diff-body { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.diff-stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.diff-stat .v { font-family: var(--font-serif); font-size: 28px; line-height: 1; color: var(--ink); }
.diff-stat .l { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- layers section (interactive memory layers) ---------- */
.layers-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.layers-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); }
.layer-item {
  background: var(--bg);
  padding: 18px 20px;
  display: grid; grid-template-columns: 32px 1fr auto;
  gap: 14px; align-items: center;
  cursor: pointer; transition: background 0.15s;
}
.layer-item:hover { background: var(--bg-elev); }
.layer-item.active { background: var(--bg-elev-2); }
.layer-item.active .layer-num { color: var(--accent); }
.layer-num { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.layer-title { font-family: var(--font-serif); font-size: 18px; }
.layer-meta { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; }

.layer-detail {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px;
  min-height: 460px;
  position: relative;
}
.layer-detail-tag { display: inline-flex; padding: 4px 10px; background: var(--accent-soft); color: var(--accent); border-radius: 99px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.layer-detail h3 { font-family: var(--font-serif); font-size: 32px; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 14px; font-weight: 400; }
.layer-detail h3 em { color: var(--ink-3); font-style: italic; }
.layer-detail .body { font-size: 16px; }
.layer-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px;
}
.kv {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
}
.kv .l { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.kv .v { font-family: var(--font-serif); font-size: 18px; color: var(--ink); }

.vatlas-section { position: relative; overflow: clip; }
.vatlas-section .container { position: relative; z-index: 1; }
.vatlas-cosmo {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.vatlas-cosmo canvas { display: block; width: 100%; height: 100%; }
.vatlas-feature {
  position: relative;
}
.vatlas-feat-inner { position: relative; z-index: 1; }
.vatlas-glyph { display: none; }

/* ---------- 002 differentiators (redesign) ---------- */
.diff2-list {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: flex; flex-direction: column;
}
.diff2-row {
  --cat-hue: 200;
  display: grid;
  grid-template-columns: 64px 1fr 200px;
  gap: 28px;
  align-items: baseline;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.diff2-row:last-child { border-bottom: 1px solid var(--line); }
.diff2-num {
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.18em; color: oklch(0.85 0.12 var(--cat-hue));
  padding-top: 6px;
}
.diff2-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.18; letter-spacing: -0.012em;
  margin: 0 0 14px; color: var(--ink);
  text-wrap: pretty;
}
.diff2-copy {
  font-family: var(--font-serif); font-weight: 350;
  font-size: 17px; line-height: 1.55;
  color: var(--ink-2); margin: 0;
  letter-spacing: -0.003em; max-width: 60ch;
  text-wrap: pretty;
}
.diff2-aside {
  text-align: right; padding-top: 6px;
  border-left: 1px dashed color-mix(in oklab, var(--line-strong) 50%, transparent);
  padding-left: 22px;
}
.diff2-stat-v {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 38px; line-height: 1;
  color: oklch(0.92 0.10 var(--cat-hue));
  letter-spacing: -0.02em;
}
.diff2-stat-l {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 8px;
}
@media (max-width: 860px) {
  .diff2-row { grid-template-columns: 48px 1fr; }
  .diff2-aside { grid-column: 1 / -1; text-align: left;
    border-left: none; border-top: 1px dashed color-mix(in oklab, var(--line-strong) 50%, transparent);
    padding-left: 0; padding-top: 16px; }
}

/* ---------- 003 layers (redesign) ---------- */
.layers2-wrap {
  display: grid; grid-template-columns: 280px 1fr; gap: 48px;
  margin-top: 36px; align-items: start;
}
.layers2-list {
  display: flex; flex-direction: column; gap: 2px;
}
.layers2-item {
  --cat-hue: 200;
  display: grid; grid-template-columns: 32px 1fr auto; gap: 12px;
  align-items: baseline;
  padding: 14px 16px; cursor: pointer;
  background: transparent; border: none; text-align: left;
  border-left: 2px solid transparent;
  transition: background 0.18s, border-color 0.18s;
}
.layers2-item:hover { background: color-mix(in oklab, var(--bg-elev) 50%, transparent); }
.layers2-item.is-active {
  background: color-mix(in oklab, oklch(0.70 0.10 var(--cat-hue)) 8%, transparent);
  border-left-color: oklch(0.85 0.12 var(--cat-hue));
}
.layers2-item-n {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.14em;
}
.layers2-item.is-active .layers2-item-n { color: oklch(0.88 0.12 var(--cat-hue)); }
.layers2-item-name {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 18px; color: var(--ink);
  letter-spacing: -0.005em;
}
.layers2-item-tag {
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-3);
}

.layers2-detail {
  --cat-hue: 200;
  padding: 32px 36px;
  background: color-mix(in oklab, var(--bg) 35%, transparent);
  border: 1px solid color-mix(in oklab, oklch(0.78 0.10 var(--cat-hue)) 30%, var(--line));
  border-radius: 18px;
  box-shadow: 0 20px 60px -20px oklch(0.70 0.10 var(--cat-hue) / 0.25);
  isolation: isolate;
  animation: vatlasIn 0.32s ease-out;
}
.layers2-detail-head {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 14px;
}
.layers2-detail-n { color: oklch(0.85 0.12 var(--cat-hue)); }
.layers2-detail-name { color: var(--ink-3); }
.layers2-detail-dot {
  width: 4px; height: 4px; border-radius: 99px;
  background: color-mix(in oklab, var(--ink-3) 60%, transparent);
}
.layers2-detail-tagline {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.18; letter-spacing: -0.012em;
  margin: 0 0 14px; color: var(--ink);
  text-wrap: pretty;
}
.layers2-detail-copy {
  font-family: var(--font-serif); font-weight: 350;
  font-size: 16px; line-height: 1.55;
  color: var(--ink-2); margin: 0 0 22px;
  letter-spacing: -0.003em; max-width: 60ch;
  text-wrap: pretty;
}
.layers2-detail-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  padding-top: 18px;
  border-top: 1px dashed color-mix(in oklab, var(--line-strong) 50%, transparent);
}
.layers2-spec + .layers2-spec {
  border-left: 1px dashed color-mix(in oklab, var(--line-strong) 50%, transparent);
  padding-left: 18px;
}
.layers2-spec-k {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 8px;
}
.layers2-spec-v {
  font-family: var(--font-serif); font-size: 18px;
  color: var(--ink); letter-spacing: -0.005em;
}
@media (max-width: 860px) {
  .layers2-wrap { grid-template-columns: 1fr; gap: 24px; }
}

.section-lede {
  font-family: var(--font-serif);
  font-size: 18px; font-weight: 350;
  line-height: 1.5; color: var(--ink-2);
  max-width: 62ch; margin: 18px 0 0;
  letter-spacing: -0.005em;
}
.vatlas-cats {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 36px 0 28px;
}
.vatlas-cat {
  --cat-hue: 0;
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.vatlas-cat:hover { color: var(--ink); border-color: var(--line-strong); }
.vatlas-cat.is-active {
  color: var(--ink);
  border-color: color-mix(in oklab, oklch(0.85 0.12 var(--cat-hue)) 60%, var(--line));
  background: color-mix(in oklab, oklch(0.70 0.10 var(--cat-hue)) 8%, transparent);
}
.vatlas-cat-label { color: inherit; font-weight: 500; }
.vatlas-cat-sub {
  font-family: var(--font-serif); font-style: italic; font-weight: 350;
  text-transform: none; letter-spacing: 0;
  font-size: 12px; color: var(--ink-3);
}
.vatlas-cat.is-active .vatlas-cat-sub { color: var(--ink-2); }
.vatlas-cat-count {
  font-size: 10px; color: var(--ink-3);
  padding: 2px 6px; border-radius: 99px;
  background: color-mix(in oklab, var(--ink-3) 12%, transparent);
}
.vatlas-cat.is-active .vatlas-cat-count {
  color: oklch(0.88 0.10 var(--cat-hue));
  background: color-mix(in oklab, oklch(0.85 0.10 var(--cat-hue)) 18%, transparent);
}

.vatlas-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px;
}

.vatlas-feature {
  --cat-hue: 0;
  /* The card itself stretches to fill the full row (matching the verb wall's
     height) so its border + cosmograph background span the entire scroll.
     The inner content (.vatlas-feat-inner) carries `position: sticky` so the
     text + cosmo stay aligned to the viewport as the user scrolls past
     each verb group on the right. */
  align-self: stretch;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  isolation: isolate;
}
.vatlas-feat-inner {
  position: sticky; top: 96px;
  padding: 44px 40px 44px;
  background: color-mix(in oklab, var(--bg) 35%, transparent);
  border: 1px solid color-mix(in oklab, oklch(0.78 0.10 var(--cat-hue)) 30%, var(--line));
  border-radius: 18px;
  box-shadow: 0 20px 60px -20px oklch(0.70 0.10 var(--cat-hue) / 0.25);
  overflow: hidden;
}
@keyframes vatlasIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.vatlas-feat-head {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 14px;
}
.vatlas-feat-cat { color: oklch(0.85 0.12 var(--cat-hue)); }
.vatlas-feat-tone { color: var(--ink-3); }
.vatlas-feat-dot {
  width: 4px; height: 4px; border-radius: 99px;
  background: color-mix(in oklab, var(--ink-3) 60%, transparent);
}
.vatlas-feat-name {
  font-family: var(--font-serif); font-size: 30px;
  font-weight: 400; color: var(--ink);
  margin: 0 0 16px; letter-spacing: -0.018em;
}
.vatlas-feat-purpose {
  font-family: var(--font-serif); font-weight: 350;
  font-size: 19px; line-height: 1.5;
  color: var(--ink-2); letter-spacing: -0.005em;
  margin: 0 0 30px;
  text-wrap: pretty;
}
.vatlas-feat-grid {
  display: grid; grid-template-columns: 1fr; gap: 22px;
  padding-top: 22px; margin-bottom: 22px;
  border-top: 1px dashed color-mix(in oklab, var(--line-strong) 55%, transparent);
}
.vatlas-feat-block {}
.vatlas-feat-k {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 8px;
}
.vatlas-feat-v {
  font-family: var(--font-serif); font-weight: 350;
  font-size: 16px; line-height: 1.55;
  color: var(--ink-2); margin: 0;
  letter-spacing: -0.003em;
  text-wrap: pretty;
}
.vatlas-feat-analog {
  padding-top: 18px;
  border-top: 1px dashed color-mix(in oklab, var(--line-strong) 55%, transparent);
}
.vatlas-feat-analog-k {
  display: block;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: oklch(0.85 0.12 var(--cat-hue));
  margin-bottom: 8px;
}
.vatlas-feat-analog-v {
  font-family: var(--font-serif); font-style: italic;
  font-weight: 350; font-size: 15px; line-height: 1.5;
  color: var(--ink-2); margin: 0;
  letter-spacing: -0.003em;
}

.vatlas-wall {
  display: flex; flex-direction: column; gap: 24px;
}
.vatlas-wall-group { --cat-hue: 0; }
.vatlas-wall-group-head {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.vatlas-wall-group-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: oklch(0.85 0.10 var(--cat-hue));
}
.vatlas-wall-group-sub {
  font-family: var(--font-serif); font-style: italic;
  font-weight: 350; font-size: 13px;
  color: var(--ink-3);
}
.vatlas-wall-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.vatlas-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 11px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left; cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.vatlas-chip:hover {
  border-color: var(--line-strong);
  background: color-mix(in oklab, var(--bg-elev) 50%, transparent);
  transform: translateY(-1px);
}
.vatlas-chip.is-active {
  border-color: color-mix(in oklab, oklch(0.85 0.12 var(--cat-hue)) 70%, var(--line));
  background: color-mix(in oklab, oklch(0.70 0.10 var(--cat-hue)) 10%, transparent);
}
.vatlas-chip-name {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink); letter-spacing: -0.005em;
}
.vatlas-chip.is-active .vatlas-chip-name { color: oklch(0.92 0.10 var(--cat-hue)); }
.vatlas-chip-tone {
  font-family: var(--font-serif); font-style: italic;
  font-weight: 350; font-size: 11px;
  color: var(--ink-3); letter-spacing: 0;
}

@media (max-width: 760px) {
  .vatlas-wrap { grid-template-columns: 1fr; }
  .vatlas-feature { position: static; }
  .vatlas-wall-list { grid-template-columns: 1fr; }
}

.verb-section { position: relative; overflow: clip; }
.verb-section .vatlas-cosmo { opacity: 0.5; }
.verb-section-head {
  position: relative;
}
.verb-traffic {
  position: absolute;
  top: 0; right: 0;
  width: 360px;
  border: 1px solid color-mix(in oklab, var(--line) 80%, transparent);
  border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(4px);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  overflow: hidden;
  z-index: 3;
}
.verb-traffic-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid color-mix(in oklab, var(--line) 80%, transparent);
  background: color-mix(in oklab, var(--bg-elev) 60%, transparent);
}
.verb-traffic-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: oklch(0.72 0.16 200);
  box-shadow: 0 0 8px oklch(0.72 0.16 200 / 0.9);
  animation: vtPulse 1.4s ease-in-out infinite;
}
@keyframes vtPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.verb-traffic-title {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.verb-traffic-rate {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.verb-traffic-rate em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  color: var(--ink-3);
  margin-left: 3px;
  letter-spacing: 0.08em;
}
.verb-traffic-body {
  padding: 4px 0;
  max-height: 220px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, var(--bg) 0%, var(--bg) 75%, transparent 100%);
}
.verb-traffic-row {
  display: grid;
  grid-template-columns: 64px 1fr 56px 60px;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-bottom: 1px dashed color-mix(in oklab, var(--line) 50%, transparent);
  opacity: 0.85;
  transition: background 0.6s ease;
}
.verb-traffic-row.is-fresh {
  background: color-mix(in oklab, oklch(0.72 0.16 200) 12%, transparent);
  opacity: 1;
  animation: vtRowIn 0.45s ease-out;
}
@keyframes vtRowIn {
  from { transform: translateY(-6px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.vt-time { color: var(--ink-3); font-size: 10px; }
.vt-verb { color: var(--ink); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-lat  { color: var(--ink-2); font-size: 10px; text-align: right; font-variant-numeric: tabular-nums; }
.vt-lat em { font-style: normal; color: var(--ink-3); margin-left: 1px; }
.vt-status {
  font-size: 9px;
  letter-spacing: 0.10em;
  text-align: right;
  color: oklch(0.78 0.14 152);
}
.vt-status.vt-warn { color: oklch(0.80 0.16 80); }
.vt-status.vt-err  { color: oklch(0.74 0.18 18); }
.verb-traffic-row.is-err {
  background: color-mix(in oklab, oklch(0.55 0.18 18) 8%, transparent);
}
.verb-traffic-foot {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  border-top: 1px solid color-mix(in oklab, var(--line) 80%, transparent);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  background: color-mix(in oklab, var(--bg-elev) 40%, transparent);
}
.verb-wrap { position: relative; z-index: 1; }
@media (max-width: 1100px) {
  .verb-traffic { position: static; width: 100%; margin-top: 16px; }
}

.verb-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 36px; align-items: start; }
.verb-cats { display: flex; flex-direction: column; gap: 24px; }
.verb-cat-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.verb-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.verb-item {
  background: var(--bg);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px;
  cursor: pointer; transition: background 0.12s;
  text-align: left; width: 100%;
}
.verb-item:hover { background: var(--bg-elev); }
.verb-item.active { background: var(--bg-elev-2); color: var(--ink); }
.verb-item.active .verb-name { color: var(--accent); }
.verb-name { color: var(--ink); }
.verb-desc { color: var(--ink-3); font-size: 11px; }

.verb-detail {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.verb-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.verb-tab {
  padding: 14px 20px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-3);
  border-bottom: 1px solid transparent;
  border-right: 1px solid var(--line);
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: all 0.15s;
}
.verb-tab.active { color: var(--ink); background: var(--bg-elev); border-bottom-color: var(--accent); }
.verb-tab:hover { color: var(--ink); }
.verb-payload {
  padding: 24px 28px;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.7;
  white-space: pre; overflow-x: auto;
  color: var(--ink-2);
  min-height: 360px;
}
.verb-payload .key { color: var(--ink); }
.verb-payload .str { color: var(--accent); }
.verb-payload .num { color: var(--good); }
.verb-payload .com { color: var(--ink-4); font-style: italic; }
.verb-payload .verb { color: oklch(0.78 0.16 75); }

/* ---------- decay / sleep section ---------- */
.decay-wrap {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px;
}
.decay-controls { display: flex; flex-direction: column; gap: 24px; }
.decay-stats { display: flex; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.decay-stat { flex: 1; padding: 14px 16px; background: var(--bg); border-right: 1px solid var(--line); }
.decay-stat:last-child { border-right: 0; }
.decay-stat .l { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase; }
.decay-stat .v { font-family: var(--font-serif); font-size: 24px; color: var(--ink); margin-top: 4px; }
.decay-slider {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 4px; background: var(--line); border-radius: 99px; outline: none;
}
.decay-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; background: var(--accent); border-radius: 99px;
  cursor: pointer; box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 20%, transparent);
}
.decay-slider::-moz-range-thumb {
  width: 18px; height: 18px; background: var(--accent); border-radius: 99px;
  cursor: pointer; border: 0;
}
.decay-graph { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; min-height: 380px; position: relative; }
.decay-graph-field { padding: 0; overflow: hidden; min-height: 540px; }
.decay-field {
  position: relative; width: 100%; height: 100%; min-height: 540px;
  display: grid; grid-template-rows: auto 1fr auto;
}
.decay-field-canvas-wrap { position: relative; }
.decay-field-canvas-wrap > canvas { position: absolute; inset: 0; }

/* readout bar sits ABOVE the chart, not on top of it */
.decay-field-readout {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; padding: 18px 24px 14px;
  border-bottom: 1px solid color-mix(in oklab, var(--line) 60%, transparent);
}
.decay-readout-block { display: flex; flex-direction: column; gap: 4px; }
.decay-readout-block:last-child { align-items: flex-end; }
.decay-readout-l {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--ink-3); text-transform: uppercase;
}
.decay-readout-v {
  font-family: var(--font-serif); font-size: 24px; line-height: 1;
  color: var(--ink); font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.decay-readout-v small {
  font-size: 11px; color: var(--ink-3); margin-left: 3px;
  letter-spacing: 0.02em;
}
.decay-readout-tri small { margin: 0 6px; }

.decay-field-sleep {
  margin: 0 auto 18px; align-self: center;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border: 1px solid color-mix(in oklab, #CCCCFF 50%, var(--line-strong));
  color: #CCCCFF;
  cursor: pointer; backdrop-filter: blur(6px);
  transition: background 0.18s, border-color 0.18s;
}
.decay-field-sleep:hover {
  background: color-mix(in oklab, #CCCCFF 14%, var(--bg));
  border-color: #CCCCFF;
}
.decay-field-sleep-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #CCCCFF;
  box-shadow: 0 0 10px rgb(204 204 255 / 0.8);
  animation: decay-sleep-pulse 2.4s ease-in-out infinite;
}
@keyframes decay-sleep-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* simplified control column */
.decay-control-block + .decay-control-block { margin-top: 28px; }
.decay-control-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.decay-control-l {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--ink-3); text-transform: uppercase;
}
.decay-control-v {
  font-family: var(--font-serif); font-size: 28px; line-height: 1;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.decay-control-v small { font-size: 13px; color: var(--ink-3); margin-left: 2px; }
.decay-control-body em {
  font-style: normal; color: var(--ink); font-weight: 500;
  letter-spacing: 0.02em;
}
.decay-control-body {
  font-family: var(--font-serif); font-size: 15px; line-height: 1.55;
  color: var(--ink-2); margin: 14px 0 0; font-weight: 300;
}
.decay-control-body + .decay-control-body { margin-top: 10px; }

/* ---------- archtecture diagram ---------- */
.arch-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-top: 32px;
}
.arch-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 28px 24px; min-height: 200px; position: relative;
  display: flex; flex-direction: column; gap: 12px;
}
.arch-card .num {
  position: absolute; top: 16px; right: 18px;
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-3);
}
.arch-card .h3 { font-family: var(--font-serif); font-size: 22px; font-weight: 400; }
.arch-card .body { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.arch-card .pill { display: inline-flex; padding: 3px 8px; border: 1px solid var(--line-strong); border-radius: 99px; font-family: var(--font-mono); font-size: 10px; color: var(--ink-2); margin-top: auto; align-self: flex-start; }

/* ---------- use cases ---------- */
.usecase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.usecase {
  background: var(--bg);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 240px;
}
.usecase .who { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase; }
.usecase .h2 { font-size: 26px; }
.usecase .body { color: var(--ink-2); flex: 1; }
.usecase .quote { font-family: var(--font-serif); font-style: italic; color: var(--ink-3); font-size: 14px; padding-left: 14px; border-left: 2px solid var(--line-strong); }

/* ---------- deploy ---------- */
.deploy-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: stretch;
}
.deploy-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 36px; }
.code-block {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 22px; margin-top: 16px;
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-2);
  white-space: pre; overflow-x: auto;
  line-height: 1.7;
}
.code-block .com { color: var(--ink-4); }
.code-block .v { color: var(--accent); }
.code-block .y { color: oklch(0.78 0.16 75); }

/* ---------- security row (section 009) ---------- */
/* Hue-tinted periwinkle cards matching the rest of the page. */
.sec-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.sec-cell {
  --c-hue: 285;
  position: relative;
  padding: 24px 22px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, oklch(0.78 0.10 var(--c-hue)) 34%, var(--line));
  background: color-mix(in oklab, oklch(0.55 0.10 var(--c-hue)) 5%, color-mix(in oklab, var(--bg) 60%, transparent));
  display: flex; flex-direction: column; gap: 10px;
  min-height: 160px;
  overflow: hidden;
}
/* drifting star nodes behind the card text */
.sec-cell-nebula {
  opacity: 0.55;
}
.sec-cell-num,
.sec-cell .h3,
.sec-cell .body { position: relative; z-index: 1; }
.sec-cell-num {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.20em;
  text-transform: uppercase;
  color: oklch(0.86 0.10 var(--c-hue));
}
.sec-cell .h3 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 21px; line-height: 1.15; letter-spacing: -0.02em;
  color: oklch(0.96 0.07 var(--c-hue));
  margin: 0;
}
.sec-cell .body {
  font-family: var(--font-serif); font-weight: 350;
  font-size: 14px; line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

/* ---------- page end (final CTA + footer share one aura) ---------- */
.page-end {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 38%, color-mix(in oklab, oklch(0.70 0.10 285) 14%, transparent), transparent 70%);
}
/* Star scatter spanning the whole ending — CTA through footer. */
.page-end-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ---------- final CTA ---------- */
.final-cta {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 220px 0 140px;
}
/* Large centered nebula orb — the engine as a parting brand mark. */
.final-cta-orb {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(1320px, 96vw);
  height: min(1320px, 96vw);
  pointer-events: none;
  z-index: 0;
}
.final-cta-nebula {
  /* override .engine-claim-nebula's card-corner positioning */
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0.4;
}
.final-cta-nebula--wide { opacity: 0.5; }
.final-cta .container { position: relative; z-index: 1; }
.final-cta .display { max-width: 18ch; margin: 0 auto; }
.final-cta .body-lg { max-width: 56ch; margin: 28px auto 0; }
.final-cta .cta-row { margin-top: 44px; display: flex; gap: 12px; justify-content: center; }

/* ---------- footer ---------- */
footer { position: relative; z-index: 1; }
.foot {
  padding: 44px 0 56px;
  display: grid; grid-template-columns: 2fr 3fr 1fr; gap: 32px; align-items: end;
  border-top: 1px solid var(--line);
}
.foot-cols { display: flex; gap: 56px; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; font-weight: 500; }
.foot-col a { display: block; color: var(--ink-2); padding: 4px 0; font-size: 14px; }
.foot-col a:hover { color: var(--ink); }
.foot small { color: var(--ink-3); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; }
.foot-ziro {
  display: flex; align-items: center; gap: 10px;
  width: fit-content;
  margin: 6px 0 12px;
  color: var(--ink);
  font-family: var(--font-serif); font-size: 19px; letter-spacing: -0.01em;
  transition: color 0.15s ease;
}
.foot-ziro .ziro-mark { flex: 0 0 auto; }
.foot-ziro-arrow {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--ink-3); margin-left: 2px;
  transition: color 0.15s ease, transform 0.15s ease;
}
.foot-ziro:hover { color: oklch(0.95 0.08 285); }
.foot-ziro:hover .foot-ziro-arrow {
  color: oklch(0.85 0.10 285); transform: translate(2px, -2px);
}

/* ---------- focus ---------- */
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .arch-grid, .sec-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-grid, .layers-wrap, .verb-wrap, .decay-wrap, .deploy-wrap { grid-template-columns: 1fr; gap: 32px; }
  .problem-grid, .usecase-grid { grid-template-columns: 1fr; }
  .arch-grid, .sec-row { grid-template-columns: 1fr 1fr; }
  .diff-row { grid-template-columns: 32px 1fr; gap: 16px; }
  .diff-row .diff-body, .diff-row .diff-stat { grid-column: 2; }
  .section-head { grid-template-columns: 1fr; gap: 12px; padding-top: 0; }
  .section-head .h1 { max-width: none; }
  .nav-links { display: none; }
  .foot { grid-template-columns: 1fr; }
}


/* ---------- atlas viz ---------- */
.atlas-wrap { position: absolute; inset: 0; }
.atlas-svg { width: 100%; height: 100%; display: block; }
.atlas-svg text { user-select: none; }

.atlas-hud {
  position: absolute; right: 32px; bottom: 32px; z-index: 3;
  pointer-events: none;
}
.atlas-hud > * { pointer-events: auto; }
.atlas-hint {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: color-mix(in oklab, var(--bg-elev) 80%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 99px;
  animation: atlasPulse 2.4s ease-in-out infinite;
}
.atlas-hint::before {
  content: ""; width: 6px; height: 6px; border-radius: 99px;
  background: var(--accent); box-shadow: 0 0 10px currentColor;
}
@keyframes atlasPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.atlas-focus-card {
  width: 320px;
  padding: 22px 24px;
  background: color-mix(in oklab, var(--bg-elev) 92%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid color-mix(in oklab, oklch(0.7 0.16 var(--region-hue)) 50%, var(--line));
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px -20px oklch(0.3 0.16 var(--region-hue) / 0.35),
              0 0 0 1px color-mix(in oklab, oklch(0.7 0.16 var(--region-hue)) 30%, transparent) inset;
  animation: atlasCardIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes atlasCardIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.atlas-focus-meta {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px;
}
.atlas-focus-num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  color: oklch(0.85 0.16 var(--region-hue));
}
.atlas-focus-name {
  font-family: var(--font-serif); font-size: 22px; font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.atlas-focus-tagline {
  font-family: var(--font-serif); font-size: 17px; font-style: italic;
  color: var(--ink-2);
  margin: 0 0 16px;
  line-height: 1.4;
}
.atlas-back {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.18s, border-color 0.18s;
}
.atlas-back:hover {
  color: oklch(0.85 0.16 var(--region-hue));
  border-bottom-color: oklch(0.85 0.16 var(--region-hue));
}

@media (max-width: 900px) {
  .atlas-hud { right: 16px; bottom: 16px; }
  .atlas-focus-card { width: min(320px, calc(100vw - 48px)); }
}


/* ---------- cosmograph viz ---------- */
.cosmo-wrap { position: absolute; inset: 0; }
.cosmo-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%;
  display: block; cursor: pointer; transform: translateX(-12px);
  /* Soft-fade the right edge of the cluster cosmos so it dissolves into
     the page instead of hitting a hard rectangular boundary. */
  -webkit-mask-image: linear-gradient(to right, black 0%, black calc(100% - 240px), transparent 100%);
          mask-image: linear-gradient(to right, black 0%, black calc(100% - 240px), transparent 100%);
}
/* WebGL cloud-node overlay. Stacks above .cosmo-canvas with additive
   blending so the combined output matches the original single-canvas
   `lighter` blend. pointer-events:none so clicks pass through to the
   main canvas's click handler. */
.cosmo-clouds-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%;
  display: block; pointer-events: none; transform: translateX(-12px);
  mix-blend-mode: plus-lighter;
  -webkit-mask-image: linear-gradient(to right, black 0%, black calc(100% - 240px), transparent 100%);
          mask-image: linear-gradient(to right, black 0%, black calc(100% - 240px), transparent 100%);
}
.cosmo-labels {
  position: absolute; inset: 0;
  pointer-events: none;
  transform: translateX(-12px);
  /* Promote to its own compositor layer so per-frame transform updates
     on children don't trigger layout/paint of surrounding chrome. */
  contain: layout style;
}
.cosmo-label {
  position: absolute;
  top: 0; left: 0;
  transform: translate3d(-9999px, -9999px, 0) translate(-50%, -50%);
  transition: opacity 0.35s ease, border-color 0.25s, background 0.25s, box-shadow 0.35s;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  pointer-events: auto; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 12px;
  background: color-mix(in oklab, var(--bg-elev) 75%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid color-mix(in oklab, oklch(0.78 0.10 var(--lhue)) 45%, transparent);
  border-radius: 99px;
  white-space: nowrap;
  transition: opacity 0.35s ease, border-color 0.25s, background 0.25s, box-shadow 0.35s;
}
.cosmo-label-num {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em;
  color: oklch(0.88 0.10 var(--lhue));
}
.cosmo-label-name {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-rendering: geometricPrecision;
}
.cosmo-label:hover {
  border-color: oklch(0.88 0.10 var(--lhue));
}
.cosmo-label.is-focus {
  background: color-mix(in oklab, var(--bg-elev) 95%, transparent);
  border-color: oklch(0.88 0.10 var(--lhue));
  box-shadow: 0 0 24px -4px oklch(0.88 0.10 var(--lhue) / 0.55);
}
.cosmo-label.is-dim { opacity: 0.65; }


/* ---------- atlas focus card / hud ---------- */
.atlas-hud {
  position: absolute; left: 0; right: 0; bottom: 32px;
  display: flex; justify-content: center; pointer-events: none; z-index: 4;
}
.atlas-hud > * { pointer-events: auto; }
.atlas-hint {
  padding: 8px 16px;
  background: color-mix(in oklab, var(--bg-elev) 70%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 99px;
}
.atlas-hint .caption { color: var(--ink-3); }
.atlas-focus-card {
  max-width: 480px;
  padding: 22px 26px;
  background: color-mix(in oklab, var(--bg-elev) 85%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid color-mix(in oklab, oklch(0.7 0.16 var(--region-hue)) 40%, transparent);
  border-radius: 14px;
  box-shadow: 0 12px 60px -8px oklch(0.7 0.16 var(--region-hue) / 0.3);
}
.atlas-focus-meta {
  display: flex; gap: 12px; align-items: center; margin-bottom: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
}
.atlas-focus-num { color: oklch(0.85 0.16 var(--region-hue)); }
.atlas-focus-name { color: var(--ink); }
.atlas-focus-tagline {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 26px; line-height: 1.15; letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.atlas-focus-desc { font-size: 14px; color: var(--ink-2); margin: 0 0 14px; line-height: 1.55; }
.atlas-back {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--ink-3); text-transform: uppercase;
  padding: 6px 0; cursor: pointer;
}
.atlas-back:hover { color: var(--ink); }

/* ---------- live readouts ---------- */
.atlas-readouts {
  position: absolute; top: 72px; right: 18px; z-index: 4;
  display: grid; grid-template-columns: auto auto; gap: 3px 14px;
  padding: 8px 14px;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid color-mix(in oklab, var(--line-strong) 50%, transparent);
  border-radius: 8px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  pointer-events: none;
}
.atlas-readouts-key {
  position: absolute; top: 36px; right: 18px; z-index: 4;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
  pointer-events: none;
}
.atlas-readout-row { display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.atlas-readout-key { color: var(--ink-3); }
.atlas-readout-val {
  color: var(--ink); text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* When a pulse is locked open, the zoomed layer needs to read above the
   sticky header AND the hero copy — fade the nav and lift the viz layer. */
/* Header stays fully visible at all times — including while a pulse is
   locked open or a layer is focused. Force solid background so the
   blurred viz behind it can't bleed through the translucent nav. */
body.is-pulse-locked .nav,
body.is-layer-focused .nav {
  background: transparent;
  backdrop-filter: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}
.nav { transition: opacity 0.45s ease, visibility 0s linear 0s; }
body.is-pulse-locked .hero-fullbleed-viz { z-index: 10; }
body.is-pulse-locked .hero-fullbleed-overlay,
body.is-pulse-locked .hero-content-wrap { opacity: 0.18; transition: opacity 0.45s ease; }
body.is-layer-focused .hero-fullbleed-viz { z-index: 10; }
body.is-layer-focused .hero-fullbleed-overlay,
body.is-layer-focused .hero-content-wrap { opacity: 0.18; transition: opacity 0.45s ease; }
.hero-fullbleed-overlay, .hero-content-wrap { transition: opacity 0.45s ease; }

/* ---------- big detail panel (replaces small focus + pulse cards) ---------- */
.atlas-detail-panel {
  position: absolute;
  top: 128px;
  left: clamp(20px, 4vw, 64px);
  z-index: 60;
  width: clamp(380px, 42vw, 540px);
  padding: 10px 36px 30px;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid color-mix(in oklab, oklch(0.78 0.10 var(--lhue)) 40%, var(--line));
  border-radius: 16px;
  box-shadow: 0 24px 80px -16px oklch(0.70 0.10 var(--lhue) / 0.40);
  pointer-events: auto;
  animation: atlasDetailIn 0.35s ease-out;
}
.atlas-detail-meta {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.atlas-detail-num { color: oklch(0.86 0.10 var(--lhue)); }
.atlas-detail-name { color: var(--ink); }
.atlas-detail-divider {
  width: 1px; height: 12px;
  background: color-mix(in oklab, var(--line-strong) 70%, transparent);
}
.atlas-detail-event { color: var(--ink-3); }
.atlas-detail-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.12; letter-spacing: -0.015em;
  margin: 0 0 14px; color: var(--ink);
}
.atlas-detail-desc {
  font-family: var(--font-serif);
  font-size: 17px; line-height: 1.55; color: var(--ink-2);
  font-weight: 350; letter-spacing: -0.005em;
  margin: 0 0 14px;
}
.atlas-detail-desc-2 {
  font-family: var(--font-serif);
  color: var(--ink-3);
  font-style: italic;
  font-weight: 350;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.003em;
  margin-bottom: 22px;
}
.atlas-detail-specs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 16px 0;
  border-top: 1px dashed color-mix(in oklab, var(--line-strong) 60%, transparent);
  border-bottom: 1px dashed color-mix(in oklab, var(--line-strong) 60%, transparent);
  margin-bottom: 18px;
}
.atlas-detail-spec + .atlas-detail-spec {
  border-left: 1px dashed color-mix(in oklab, var(--line-strong) 50%, transparent);
  padding-left: 14px;
}
.atlas-detail-spec-k {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 6px;
}
.atlas-detail-spec-v {
  font-family: var(--font-serif); font-size: 17px;
  color: var(--ink); letter-spacing: -0.01em;
}
.atlas-detail-verbs { margin-bottom: 20px; }
.atlas-detail-verbs-k {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 10px;
}
.atlas-detail-verbs-row { display: flex; flex-wrap: wrap; gap: 6px; }
.atlas-detail-verb {
  font-family: var(--font-mono); font-size: 11px;
  color: oklch(0.86 0.10 var(--lhue));
  padding: 4px 8px;
  background: color-mix(in oklab, oklch(0.70 0.10 var(--lhue)) 12%, transparent);
  border: 1px solid color-mix(in oklab, oklch(0.78 0.10 var(--lhue)) 30%, transparent);
  border-radius: 4px;
}
.atlas-detail-layerline {
  display: flex; gap: 12px; align-items: baseline;
  padding-top: 14px;
  border-top: 1px dashed color-mix(in oklab, var(--line-strong) 60%, transparent);
  font-size: 13px; line-height: 1.4;
  margin: 0 0 18px;
}
.atlas-detail-layerline-key {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
}
.atlas-detail-layerline-val {
  font-family: var(--font-serif); font-style: italic;
  color: var(--ink-2);
}
.atlas-detail-actions {
  display: flex; align-items: center; gap: 16px;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}
.atlas-initiate {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bg);
  background: oklch(0.86 0.10 var(--lhue));
  border: 1px solid oklch(0.86 0.10 var(--lhue));
  padding: 8px 14px;
  border-radius: 99px;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.25s, background 0.18s;
}
.atlas-initiate:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px -6px oklch(0.80 0.10 var(--lhue) / 0.55);
}
.atlas-event-card {
  position: absolute; z-index: 70;
  width: 320px;
  padding: 16px 18px 14px;
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid color-mix(in oklab, oklch(0.78 0.10 var(--lhue)) 50%, var(--line));
  border-radius: 12px;
  box-shadow: 0 20px 60px -16px oklch(0.70 0.10 var(--lhue) / 0.45);
  pointer-events: auto;
  animation: atlasEventCardIn 0.3s ease-out, atlasEventCardPulse 2.6s ease-in-out infinite;
}
.atlas-event-card-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.atlas-event-card-dot {
  width: 7px; height: 7px; border-radius: 99px;
  background: oklch(0.86 0.10 var(--lhue));
  box-shadow: 0 0 10px oklch(0.86 0.10 var(--lhue));
  animation: atlasEventCardDot 1.4s ease-in-out infinite;
}
.atlas-event-card-label { color: oklch(0.86 0.10 var(--lhue)); flex: 1; }
.atlas-event-card-close {
  background: transparent; border: 0; color: var(--ink-3);
  cursor: pointer; font-size: 12px; padding: 0 4px;
}
.atlas-event-card-close:hover { color: var(--ink); }
.atlas-event-card-title {
  margin: 0 0 8px;
  font-family: var(--font-serif); font-weight: 400;
  font-size: 17px; line-height: 1.25; color: var(--ink);
  letter-spacing: -0.01em;
}
.atlas-event-card-desc {
  margin: 0;
  font-size: 13px; line-height: 1.55; color: var(--ink-2);
}
@keyframes atlasEventCardIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes atlasEventCardPulse {
  0%, 100% { box-shadow: 0 20px 60px -16px oklch(0.70 0.10 var(--lhue) / 0.35); }
  50%      { box-shadow: 0 20px 60px -16px oklch(0.70 0.10 var(--lhue) / 0.70); }
}
@keyframes atlasEventCardDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

.atlas-detail-topbar {
  display: flex; align-items: center; justify-content: flex-start;
  margin: 0 0 14px;
  padding: 0;
}
.atlas-back-top {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 0 4px;
  margin: 0;
  color: var(--ink-3); background: none; border: 0; padding: 4px 0;
  cursor: pointer; border-bottom: 1px solid color-mix(in oklab, var(--line-strong) 60%, transparent);
  transition: color 0.18s, border-color 0.18s;
}
.atlas-back-top:hover {
  color: var(--ink);
  border-bottom-color: oklch(0.86 0.10 var(--lhue));
}

.atlas-detail-panel .atlas-back {
  display: inline-block;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); background: transparent; border: 0;
  padding: 4px 0; cursor: pointer;
  border-bottom: 1px solid color-mix(in oklab, var(--line-strong) 60%, transparent);
}
.atlas-detail-panel .atlas-back:hover {
  color: var(--ink);
  border-bottom-color: oklch(0.86 0.10 var(--lhue));
}
@keyframes atlasDetailIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 900px) {
  .atlas-detail-panel {
    top: 140px;
    left: 16px; right: 16px;
    width: auto;
    padding: 22px 24px 20px;
  }
}

/* ---------- pulse event banner ---------- */
.atlas-pulse-wrap {
  position: absolute; top: 64px; left: 50%; transform: translateX(-50%); z-index: 60;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.atlas-pulse-banner {
  pointer-events: auto;
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 16px;
  background: var(--bg);
  border: 1px solid oklch(0.85 0.10 var(--lhue) / 0.45);
  border-radius: 99px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: inherit; cursor: pointer;
  animation: atlasPulseBanner 0.45s ease-out;
  box-shadow: 0 0 28px -6px oklch(0.80 0.10 var(--lhue) / 0.30);
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.atlas-pulse-banner:hover {
  border-color: oklch(0.88 0.10 var(--lhue));
  transform: translateY(-1px);
}
.atlas-pulse-wrap.is-open .atlas-pulse-banner {
  border-color: oklch(0.88 0.10 var(--lhue));
}
.atlas-pulse-progress {
  /* Cover the full border-box (not just the padding-box) so the path's
     coordinate space matches the rect we measured with getBoundingClientRect. */
  position: absolute; inset: -1px;
  overflow: visible; pointer-events: none;
}
.atlas-pulse-progress path {
  fill: none;
  stroke: oklch(0.92 0.14 var(--lhue));
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 4px oklch(0.86 0.12 var(--lhue) / 0.55));
  animation: atlasPulseProgress 10s linear forwards;
}
@keyframes atlasPulseProgress {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}
.atlas-pulse-dot {
  width: 6px; height: 6px; border-radius: 99px;
  background: oklch(0.86 0.12 var(--lhue));
  box-shadow: 0 0 8px oklch(0.86 0.12 var(--lhue) / 0.7);
  animation: atlasPulseDot 1.1s ease-in-out infinite;
}
.atlas-pulse-label { color: var(--ink-3); }
.atlas-pulse-name  { color: oklch(0.88 0.10 var(--lhue)); }
.atlas-pulse-cta {
  margin-left: 6px; padding-left: 10px;
  border-left: 1px solid color-mix(in oklab, var(--line-strong) 50%, transparent);
  color: var(--ink-3);
}

.atlas-pulse-card {
  pointer-events: auto;
  width: min(360px, calc(100vw - 48px));
  padding: 16px 18px 14px;
  background: var(--bg-elev);
  border: 1px solid oklch(0.80 0.10 var(--lhue) / 0.45);
  border-radius: 12px;
  box-shadow: 0 18px 60px -12px oklch(0.70 0.10 var(--lhue) / 0.35);
  animation: atlasPulseCard 0.22s ease-out;
}
.atlas-pulse-card-meta {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: oklch(0.86 0.10 var(--lhue));
  margin-bottom: 10px;
}
.atlas-pulse-card-title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 18px; line-height: 1.2; letter-spacing: -0.01em;
  margin: 0 0 6px; color: var(--ink);
}
.atlas-pulse-card-desc {
  font-size: 13px; line-height: 1.5; color: var(--ink-2); margin: 0 0 12px;
}
.atlas-pulse-card-dismiss {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
  background: transparent; border: 0; padding: 4px 0; cursor: pointer;
  border-bottom: 1px solid color-mix(in oklab, var(--line-strong) 60%, transparent);
}
.atlas-pulse-card-dismiss:hover { color: var(--ink); border-bottom-color: var(--ink); }

@keyframes atlasPulseBanner {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes atlasPulseCard {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes atlasPulseDot {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.25); }
}


/* ───────────── 001 — Forgetting Tape ───────────── */
.forget-section { --section-hue: 18; }
.forget-section .vatlas-cosmo { opacity: 0.35; }

.forget-tape {
  position: relative;
  margin: 56px 0 64px;
  height: 220px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(120% 80% at 20% 50%, oklch(0.20 0.04 18 / 0.18), transparent 70%),
    color-mix(in oklab, var(--bg) 60%, transparent);
  overflow: hidden;
}
.forget-tape canvas { display: block; width: 100%; height: 100%; }

.forget-beats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.forget-beat {
  --cat-hue: 0;
  position: relative;
  padding: 24px 26px 28px;
  border: 1px solid color-mix(in oklab, oklch(0.78 0.10 var(--cat-hue)) 22%, var(--line));
  border-radius: 14px;
  background: color-mix(in oklab, var(--bg) 40%, transparent);
  transition: opacity .25s ease, border-color .25s ease, transform .25s ease;
  cursor: default;
}
.forget-beat.is-focus {
  border-color: color-mix(in oklab, oklch(0.78 0.16 var(--cat-hue)) 55%, var(--line));
  box-shadow: 0 14px 40px -22px oklch(0.70 0.14 var(--cat-hue) / 0.45);
  transform: translateY(-1px);
}
.forget-beat.is-dim { opacity: 0.45; }
.forget-beat-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 14px;
}
.forget-beat-lane { color: oklch(0.85 0.12 var(--cat-hue)); }
.forget-beat-tag { color: var(--ink-3); }
.forget-beat-dot {
  width: 4px; height: 4px; border-radius: 99px;
  background: color-mix(in oklab, var(--ink-3) 60%, transparent);
}
.forget-beat-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 26px; line-height: 1.18;
  color: var(--ink); margin: 0 0 14px;
  letter-spacing: -0.018em;
}
.forget-beat-title em {
  font-style: italic; color: oklch(0.85 0.10 var(--cat-hue));
}
.forget-beat-body {
  font-family: var(--font-serif); font-weight: 350;
  font-size: 16px; line-height: 1.55;
  color: var(--ink-2); margin: 0 0 18px;
  text-wrap: pretty;
}
.forget-beat-foot {
  padding-top: 14px;
  border-top: 1px dashed color-mix(in oklab, var(--line-strong) 55%, transparent);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
}

@media (max-width: 920px) {
  .forget-beats { grid-template-columns: 1fr; gap: 16px; }
  .forget-tape { height: 180px; }
}

/* ───────────── 002 — Brain vs Database ───────────── */
.bvd-section { background: none; }
.bvd-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 56px 0 8px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}
.bvd-rail-col {
  display: flex; flex-direction: column; gap: 4px;
  padding: 0 24px;
}
.bvd-rail-col.bvd-rail-brain { border-left: 1px dashed color-mix(in oklab, var(--line-strong) 60%, transparent); }
.bvd-rail-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.20em; text-transform: uppercase;
}
.bvd-rail-db .bvd-rail-label { color: var(--ink-3); }
.bvd-rail-brain .bvd-rail-label { color: oklch(0.85 0.10 200); }
.bvd-rail-sub {
  font-family: var(--font-serif); font-style: italic;
  font-weight: 350; font-size: 14px; color: var(--ink-3);
}

.bvd-rows {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
}
.bvd-row {
  --cat-hue: 200;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 0;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.bvd-row:last-child { border-bottom: none; }

.bvd-side {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 12px 24px;
}
.bvd-side-cap {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3);
}
.bvd-glyph { width: 100%; max-width: 240px; height: auto; display: block; }
.bvd-glyph-db { opacity: 0.55; filter: saturate(0); }

.bvd-center {
  padding: 0 32px;
  border-left: 1px dashed color-mix(in oklab, var(--line-strong) 55%, transparent);
  border-right: 1px dashed color-mix(in oklab, var(--line-strong) 55%, transparent);
}
.bvd-n {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: oklch(0.85 0.10 var(--cat-hue));
  margin-bottom: 12px;
}
.bvd-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 28px; line-height: 1.18;
  color: var(--ink); margin: 0 0 14px;
  letter-spacing: -0.018em;
  text-wrap: pretty;
}
.bvd-copy {
  font-family: var(--font-serif); font-weight: 350;
  font-size: 16px; line-height: 1.55;
  color: var(--ink-2); margin: 0;
  text-wrap: pretty;
}

@media (max-width: 920px) {
  .bvd-rail { display: none; }
  .bvd-row {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0;
  }
  .bvd-center { border: none; padding: 0; }
  .bvd-side { padding: 0; flex-direction: row; justify-content: flex-start; gap: 20px; }
  .bvd-glyph { max-width: 160px; }
}


/* ───────────── 001 — The Leak ───────────── */
.leak-section { --section-hue: 18; }
.leak-section .vatlas-cosmo { opacity: 0.30; }

.leak-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.leak-stage-DEAD {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.7fr);
  gap: 48px;
  margin-top: 56px;
  align-items: stretch;
}

.leak-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  display: flex; gap: 12px; align-items: baseline;
  color: var(--ink-3);
}
.leak-label-top {
  grid-column: 1 / -1;
  padding-bottom: 12px;
  border-bottom: 1px dashed color-mix(in oklab, var(--line-strong) 60%, transparent);
  margin-bottom: 6px;
}
.leak-label-k { color: oklch(0.82 0.14 50); }
.leak-label-v { color: var(--ink-3); font-family: var(--font-serif); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 14px; }

.leak-canvas-wrap {
  position: relative;
  height: 620px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(to right,
      oklch(0.28 0.06 285 / 0.08) 0%,
      oklch(0.28 0.06 285 / 0.08) 48%,
      transparent 48%,
      transparent 52%,
      oklch(0.28 0.05 18 / 0.08) 52%,
      oklch(0.28 0.05 18 / 0.08) 100%),
    color-mix(in oklab, var(--bg) 50%, transparent);
  overflow: hidden;
}
.leak-canvas-wrap canvas {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
}
.leak-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
  font-family: var(--font-mono);
  letter-spacing: 0.16em; text-transform: uppercase;
}

/* Split-canvas overlay labels (option D layout) */
.leak-col-label {
  position: absolute;
  top: 14px;
  display: flex; flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.20em; text-transform: uppercase;
  max-width: 44%;
}
.leak-col-l { left: 18px; align-items: flex-start; text-align: left; }
.leak-col-r { right: 18px; align-items: flex-end; text-align: right; }
.leak-col-tag { color: var(--ink-3); }
.leak-col-l .leak-col-tag { color: #CCCCFF; }
.leak-col-r .leak-col-tag { color: oklch(0.78 0.10 18); }
.leak-col-name {
  font-family: var(--font-serif); font-style: italic;
  text-transform: none; letter-spacing: -0.01em;
  font-size: 22px; color: var(--ink); font-weight: 350;
}
.leak-band {
  position: absolute; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 0 18px;
  pointer-events: none;
}
.leak-band-l, .leak-band-r {
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.20em; text-transform: uppercase;
  max-width: 44%;
}
.leak-band-l { text-align: left; align-items: flex-start; }
.leak-band-r { text-align: right; align-items: flex-end; }
.leak-band-l .leak-band-k { color: #CCCCFF; }
.leak-band-r .leak-band-k { color: oklch(0.85 0.10 18); }
.leak-band-v {
  font-family: var(--font-serif); font-style: italic;
  text-transform: none; letter-spacing: 0;
  font-size: 12px; color: var(--ink-3);
}
/* Canvas gate Y positions: 0.20, 0.46, 0.74 — labels sit just above each */
.leak-band-write { top: calc(20% - 36px); }
.leak-band-link  { top: calc(46% - 36px); }
.leak-band-fact  { top: calc(74% - 36px); }

/* Old single-funnel overlay (kept for fallback / unused now) */
.leak-mouth-label {
  position: absolute; top: 14%; left: 0; right: 0;
  display: flex; justify-content: center; align-items: center; gap: 10px;
  font-size: 11px; color: oklch(0.85 0.08 50);
  transform: translateY(-100%);
}
.leak-bracket {
  font-family: var(--font-mono); font-size: 16px; color: oklch(0.65 0.04 50 / 0.7);
  transform: translateY(2px);
}
.leak-side-label {
  position: absolute; bottom: 4%;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 10px;
}
.leak-side-l { left: 14px; align-items: flex-start; }
.leak-side-r { right: 14px; align-items: flex-end; }
.leak-side-k { color: oklch(0.78 0.10 18); }
.leak-side-v { color: var(--ink-3); font-family: var(--font-serif); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 12px; }
.leak-bottom-label {
  position: absolute; bottom: 4%; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 10px;
}
.leak-bottom-label .leak-bottom-k { color: oklch(0.85 0.14 158); }
.leak-bottom-label .leak-bottom-v { color: var(--ink-3); font-family: var(--font-serif); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 12px; }

.leak-quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.leak-quote {
  position: relative;
  padding: 8px 0 8px 22px;
  border: 0;
  border-radius: 0;
  background: none;
}
.leak-quote::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 2px;
  background: #CCCCFF;
  opacity: 0.55;
}
/* All three cards share the periwinkle palette; the per-card hue
   variables are kept for any other usage but recolored to match. */
.leak-quote-1,
.leak-quote-2,
.leak-quote-3 { --lq-hue: 268; }
.leak-quote-tag {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 12px;
}
.leak-quote-num {
  color: #CCCCFF;
  font-weight: 500;
}
.leak-quote-1 .leak-quote-num,
.leak-quote-2 .leak-quote-num,
.leak-quote-3 .leak-quote-num { color: #CCCCFF; }
.leak-quote-where { color: var(--ink-3); }
.leak-quote-body {
  font-family: var(--font-serif); font-weight: 350;
  font-size: 17px; line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 16px;
  letter-spacing: -0.003em;
  text-wrap: pretty;
}
.leak-quote-body em { font-style: italic; color: var(--ink); }
.leak-quote-foot {
  padding: 0;
  border: 0;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0.80;
}
.leak-quote-foot em {
  font-style: normal;
  color: #CCCCFF;
}

@media (max-width: 960px) {
  .leak-canvas-wrap { height: 420px; }
  .leak-quotes { grid-template-columns: 1fr; }
  /* Stop the column labels ("memory" / "context window") from colliding
     with the first band labels ("write" / "truncate") at narrow widths. */
  .leak-col-name { font-size: 16px; }
  .leak-col-tag  { display: none; }
}

/* ───────────── 002 — Principle Laws ───────────── */
.laws-section { background: none; }
.laws-list {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: flex; flex-direction: column;
}
.law-row {
  --cat-hue: 200;
  display: grid;
  grid-template-columns: 140px 220px 1fr;
  gap: 48px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.law-row:last-child { border-bottom: none; }
.law-ord {
  font-family: var(--font-serif); font-weight: 350;
  font-size: 96px; line-height: 1;
  color: oklch(0.85 0.10 var(--cat-hue) / 0.85);
  letter-spacing: -0.04em;
  font-feature-settings: "lnum";
}
.law-glyph {
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  border-left: 1px dashed color-mix(in oklab, var(--line-strong) 55%, transparent);
  border-right: 1px dashed color-mix(in oklab, var(--line-strong) 55%, transparent);
}
.law-svg { width: 100%; max-width: 220px; height: auto; display: block; }
.law-body { padding-right: 8px; }
.law-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 28px; line-height: 1.18;
  color: var(--ink); margin: 0 0 12px;
  letter-spacing: -0.018em;
  text-wrap: pretty;
}
.law-copy {
  font-family: var(--font-serif); font-weight: 350;
  font-size: 16px; line-height: 1.55;
  color: var(--ink-2); margin: 0 0 18px;
  text-wrap: pretty;
}
.law-axiom {
  display: flex; align-items: baseline; gap: 14px;
  padding: 10px 14px;
  border-top: 1px dashed color-mix(in oklab, var(--line-strong) 55%, transparent);
  border-bottom: 1px dashed color-mix(in oklab, var(--line-strong) 55%, transparent);
}
.law-axiom-k {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: oklch(0.85 0.10 var(--cat-hue));
  flex-shrink: 0;
}
.law-axiom-v {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--ink-2); letter-spacing: -0.005em;
}
@media (max-width: 920px) {
  .law-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 0;
  }
  .law-ord { font-size: 64px; }
  .law-glyph { border: none; padding: 0; max-width: 200px; }
}


/* ───────────── 005 — Decay "why" preface ───────────── */
.decay-why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0 8px;
}
.decay-why-card {
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in oklab, var(--bg) 50%, transparent);
}
.decay-why-k {
  display: block;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: oklch(0.82 0.12 18);
  margin-bottom: 12px;
}
.decay-why-t {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 22px; line-height: 1.2;
  color: var(--ink); margin: 0 0 12px;
  letter-spacing: -0.018em;
  text-wrap: pretty;
}
.decay-why-t em { font-style: italic; color: oklch(0.85 0.14 18); }
.decay-why-b {
  font-family: var(--font-serif); font-weight: 350;
  font-size: 15px; line-height: 1.55;
  color: var(--ink-2); margin: 0;
  text-wrap: pretty;
}
@media (max-width: 920px) {
  .decay-why { grid-template-columns: 1fr; gap: 14px; }
}


/* ───────────── 002 — Living Manifesto ───────────── */
.laws-section { position: relative; overflow: hidden; }
.laws-section .vatlas-cosmo { opacity: 0.50; }
.laws-section .container { position: relative; z-index: 1; }

.manifesto-list {
  list-style: none; padding: 0;
  margin: 64px 0 0;
  display: flex; flex-direction: column;
  gap: 56px;
}
.manifesto-line {
  --m-hue: 268;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  align-items: baseline;
  position: relative;
}
.manifesto-line::before {
  content: "";
  position: absolute;
  left: 64px; top: 12px; bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg,
    oklch(0.82 0.14 var(--m-hue)) 0%,
    transparent 100%);
  opacity: 0.55;
}
.manifesto-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  color: oklch(0.85 0.14 var(--m-hue));
  padding-top: 14px;
}
.manifesto-text { max-width: 60ch; }
.manifesto-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 12px;
  text-wrap: balance;
}
.manifesto-title em {
  font-style: italic;
  color: oklch(0.88 0.16 var(--m-hue));
}
.manifesto-body {
  font-family: var(--font-serif);
  font-weight: 350;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  letter-spacing: -0.003em;
  text-wrap: pretty;
}
@media (max-width: 720px) {
  .manifesto-list { gap: 40px; margin-top: 40px; }
  .manifesto-line { grid-template-columns: 48px 1fr; gap: 14px; }
  .manifesto-line::before { left: 42px; }
}




/* Per-line cosmograph backdrop inside each manifesto statement */
.manifesto-line { overflow: visible; }
.manifesto-line > .vatlas-cosmo {
  position: absolute;
  inset: -24px -24px -24px -24px;
  width: auto;
  height: auto;
  z-index: 0;
  opacity: 0.85;
  pointer-events: none;
  border-radius: 12px;
  overflow: visible;
}
.manifesto-line > .manifesto-num,
.manifesto-line > .manifesto-text { position: relative; z-index: 1; }


/* ───────────── 006 — Live Pipeline ───────────── */
.arch-section .vatlas-cosmo { opacity: 0.40; }
.arch-pipeline {
  position: relative;
  margin: 56px 0 32px;
  height: 220px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--bg) 50%, transparent);
  overflow: hidden;
}
.arch-pipeline canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.arch-pipeline-hits { position: absolute; inset: 0; pointer-events: none; }
.arch-pipeline-hit {
  position: absolute; top: 50%;
  width: 80px; height: 80px;
  transform: translate(-50%, -50%);
  background: transparent; border: 0; padding: 0;
  cursor: pointer; pointer-events: auto;
  border-radius: 50%;
}
.arch-pipeline-hit:focus-visible {
  outline: 2px solid #CCCCFF; outline-offset: 4px;
}
.arch-panel {
  --p-hue: 200;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 24px 28px;
  border: 1px solid color-mix(in oklab, oklch(0.78 0.14 var(--p-hue)) 38%, var(--line));
  border-radius: 12px;
  background: color-mix(in oklab, oklch(0.55 0.10 var(--p-hue)) 8%, color-mix(in oklab, var(--bg) 60%, transparent));
  box-shadow: 0 14px 60px -22px oklch(0.70 0.16 var(--p-hue) / 0.45);
  animation: archPanelIn 0.32s ease-out;
}
@keyframes archPanelIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.arch-panel-num {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 44px; line-height: 1; letter-spacing: -0.03em;
  color: oklch(0.94 0.10 var(--p-hue));
  align-self: start;
}
.arch-panel-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 26px; line-height: 1.15; letter-spacing: -0.02em;
  color: oklch(0.96 0.10 var(--p-hue)); margin: 0;
}
.arch-panel-title em { font-style: italic; }
.arch-panel-body {
  font-family: var(--font-serif); font-weight: 350;
  font-size: 16px; line-height: 1.55; color: var(--ink-2);
  margin: 6px 0 0; grid-column: 2;
  max-width: 64ch;
}
.arch-panel-pill {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(0.92 0.14 var(--p-hue));
  padding: 4px 10px;
  border: 1px solid color-mix(in oklab, oklch(0.78 0.14 var(--p-hue)) 50%, var(--line));
  border-radius: 99px;
  white-space: nowrap;
  background: color-mix(in oklab, oklch(0.55 0.10 var(--p-hue)) 14%, transparent);
}
@media (max-width: 720px) {
  .arch-pipeline { height: 160px; }
  .arch-panel { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
  .arch-panel-body { grid-column: 1; max-width: none; }
  .arch-panel-pill { justify-self: flex-start; }
}

/* ───────────── 007 — Persona Grid ───────────── */
.persona-section .vatlas-cosmo { opacity: 0.32; }
.persona-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 56px;
}
.persona-card {
  --p-hue: 268;
  position: relative;
  padding: 28px 28px 24px;
  border: 1px solid color-mix(in oklab, oklch(0.78 0.12 var(--p-hue)) 22%, var(--line));
  border-radius: 14px;
  background: color-mix(in oklab, var(--bg) 50%, transparent);
  overflow: hidden;
  min-height: 280px;
}
.persona-cloud {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.7;
}
.persona-cloud canvas { display: block; width: 100%; height: 100%; }
.persona-text { position: relative; z-index: 1; }
.persona-who {
  display: inline-block;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.20em;
  text-transform: uppercase;
  color: oklch(0.85 0.12 var(--p-hue));
  margin-bottom: 12px;
}
.persona-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 22px; line-height: 1.2; letter-spacing: -0.018em;
  color: var(--ink); margin: 0 0 12px;
  text-wrap: balance;
}
.persona-body {
  font-family: var(--font-serif); font-weight: 350;
  font-size: 15px; line-height: 1.55; color: var(--ink-2);
  margin: 0 0 14px;
  text-wrap: pretty;
}
.persona-quote {
  font-family: var(--font-serif); font-style: italic; font-weight: 350;
  font-size: 15px; line-height: 1.4;
  color: oklch(0.92 0.10 var(--p-hue));
  margin: 0; padding-top: 12px;
  border-top: 1px dashed color-mix(in oklab, oklch(0.78 0.12 var(--p-hue)) 30%, var(--line));
}
@media (max-width: 720px) {
  .persona-grid { grid-template-columns: 1fr; }
}


/* ───────────── 008 — NeuroEngine ───────────── */
.engine-section .vatlas-cosmo { opacity: 0.38; }
.security-section .vatlas-cosmo { opacity: 0.38; }
.engine-h3 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.20em;
  text-transform: uppercase; color: var(--ink-3);
  margin: 56px 0 18px;
}
.engine-h3 span { color: oklch(0.55 0.02 250 / 0.65); font-weight: 400; }

.engine-bench-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
.engine-bench {
  position: relative;
  --b-hue: 200;
  padding: 22px 22px 18px;
  border: 1px solid color-mix(in oklab, oklch(0.78 0.14 var(--b-hue)) 36%, var(--line));
  border-radius: 12px;
  background:
    linear-gradient(135deg,
      color-mix(in oklab, oklch(0.65 0.18 var(--b-hue)) 10%, transparent),
      transparent 65%),
    color-mix(in oklab, oklch(0.55 0.10 var(--b-hue)) 5%, color-mix(in oklab, var(--bg) 60%, transparent));
  box-shadow:
    inset 0 1px 0 color-mix(in oklab, oklch(0.85 0.14 var(--b-hue)) 22%, transparent),
    0 6px 28px -16px color-mix(in oklab, oklch(0.55 0.22 var(--b-hue)) 55%, transparent);
  overflow: hidden;
}
.engine-bench-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right,
    oklch(0.85 0.18 var(--b-hue)),
    color-mix(in oklab, oklch(0.85 0.18 var(--b-hue)) 25%, transparent) 80%,
    transparent
  );
  pointer-events: none;
}
.engine-bench-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: oklch(0.85 0.12 var(--b-hue));
  margin-bottom: 8px;
}
.engine-bench-value {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 36px; line-height: 1; letter-spacing: -0.028em;
  color: oklch(0.96 0.10 var(--b-hue));
  margin: 8px 0 0;
}
.engine-bench-value span {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.10em;
  color: var(--ink-3); margin-left: 6px;
}
/* Lede paragraph above the bench grid */
.engine-bench-lede {
  margin: 4px 0 18px;
  font-family: var(--font-serif); font-weight: 350; font-style: italic;
  font-size: 15px; line-height: 1.55;
  color: var(--ink-3);
  max-width: 72ch;
}

/* Public benchmarks — periwinkle-tinted framed box matching the
   cosmic theme. Transparent fill (lets the page nebula bleed through),
   periwinkle border + outer/inner glow, soft radial gradient inside
   for depth. Periwinkle = oklch(0.72 0.10 265) — a soft purplish-blue
   accent that sits between the site's existing hues.

   Custom prop --peri exposes the colour for the inner card hovers
   below so they all glow in unison. */
.engine-bench-frame {
  /* Translucent #CCCCFF wash — softer border + glow, tighter padding
     so the panel reads as a quick reference rather than a heavy panel. */
  --peri: #CCCCFF;
  --peri-bright: #E0E0FF;
  --peri-soft: rgba(204, 204, 255, 0.22);
  --peri-glow: rgba(204, 204, 255, 0.28);
  margin: 4px 0 20px;
  padding: 18px 20px 16px;
  border-radius: 16px;
  border: 1px solid var(--peri-soft);
  background:
    radial-gradient(
      120% 80% at 50% 0%,
      rgba(204, 204, 255, 0.07) 0%,
      transparent 65%),
    transparent;
  box-shadow:
    0 0 36px rgba(204, 204, 255, 0.14),
    inset 0 0 28px rgba(204, 204, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.engine-bench-frame::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--peri-bright) 30%,
    var(--peri-bright) 70%,
    transparent 100%);
  opacity: 0.75;
  filter: blur(0.4px);
  box-shadow: 0 0 14px rgba(224, 224, 255, 0.6);
}
.engine-bench-frame-head {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px dotted color-mix(in oklab, var(--ink-3) 25%, var(--line));
}
.engine-bench-frame-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.engine-bench-frame-lede {
  margin: 0;
  font-family: var(--font-serif); font-weight: 350; font-style: italic;
  font-size: 15px; line-height: 1.55;
  color: var(--ink-2);
  max-width: 78ch;
}
.engine-bench-frame-lede strong {
  font-style: normal; font-weight: 500;
  color: var(--ink);
}

.engine-bench-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 760px) {
  .engine-bench-grid { grid-template-columns: 1fr; gap: 14px; }
  .engine-bench-frame { padding: 22px 20px 20px; }
}
/* ===== Compact 3-row card (revised 2026-05-18) ===== */
.engine-bench-row {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 16px 12px;
  border-radius: 10px;
  border: 1px solid rgba(204, 204, 255, 0.18);
  background: rgba(204, 204, 255, 0.04);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.engine-bench-row:hover {
  border-color: rgba(204, 204, 255, 0.40);
  background: rgba(204, 204, 255, 0.07);
}
.engine-bench-row-head {
  display: flex; flex-direction: column; gap: 4px;
}
.engine-bench-row-head-top {
  display: flex; align-items: baseline; gap: 8px;
  flex-wrap: wrap;
}
.engine-bench-workload {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em;
  color: #E5E5FF;
}
.engine-bench-workload-type {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #CCCCFF;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(204, 204, 255, 0.10);
  border: 1px solid rgba(204, 204, 255, 0.22);
}

/* === Headline number — stack label above, number+unit+detail on baseline === */
.engine-bench-headline-stat {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 0 10px;
  border-top: 1px solid rgba(204, 204, 255, 0.15);
  border-bottom: 1px solid rgba(204, 204, 255, 0.15);
}
.engine-bench-kind {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(204, 204, 255, 0.72);
}
.engine-bench-ours-num {
  display: flex; align-items: baseline; gap: 6px;
  flex-wrap: wrap;
}
.engine-bench-value {
  font-family: var(--font-serif);
  font-size: 36px; font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #F5F5FF;
  text-shadow:
    0 0 14px rgba(204, 204, 255, 0.55),
    0 0 28px rgba(204, 204, 255, 0.25);
}
.engine-bench-unit {
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.03em;
  color: #CCCCFF;
}
.engine-bench-detail {
  font-family: var(--font-mono);
  font-size: 10.5px; line-height: 1.3;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  margin-left: 4px;
}
.engine-bench-detail::before {
  content: '·';
  margin-right: 6px;
  color: rgba(204, 204, 255, 0.4);
}

/* === vs comparator + verdict — single tight row === */
.engine-bench-vs-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}
.engine-bench-vs-side {
  display: flex; align-items: baseline; gap: 6px;
}
.engine-bench-vs-kind {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: none;
  color: var(--ink-3);
}
.engine-bench-vs-value {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  color: var(--ink-2);
}
.engine-bench-vs-value::before {
  content: '·';
  margin: 0 5px 0 1px;
  color: rgba(204, 204, 255, 0.45);
}
.engine-bench-verdict-badge {
  font-family: var(--font-serif); font-style: italic;
  font-size: 12px; line-height: 1.25;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}
.engine-bench-verdict-beats .engine-bench-verdict-badge {
  color: oklch(0.88 0.16 152);
  border-color: oklch(0.78 0.16 152 / 0.35);
  background: oklch(0.78 0.16 152 / 0.07);
}
.engine-bench-verdict-matches .engine-bench-verdict-badge {
  color: #E0E0FF;
  border-color: rgba(204, 204, 255, 0.40);
  background: rgba(204, 204, 255, 0.07);
}
.engine-bench-verdict-unique .engine-bench-verdict-badge {
  color: oklch(0.92 0.13 80);
  border-color: oklch(0.82 0.14 80 / 0.35);
  background: oklch(0.82 0.14 80 / 0.07);
}

@media (max-width: 760px) {
  .engine-bench-value { font-size: 24px; }
  .engine-bench-row { padding: 12px 14px 11px; gap: 8px; }
  .engine-bench-headline-stat { flex-wrap: wrap; }
  .engine-bench-kind { min-width: 0; }
  .engine-bench-vs-row { flex-direction: column; align-items: flex-start; }
}

/* p50 / p95 side-by-side as two equal stats. No nested boxes;
   they breathe directly on the card's hue-tinted background. */
.engine-bench-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 0;
}
.engine-bench-stat {
  display: flex; flex-direction: column; gap: 6px;
}
.engine-bench-stat:nth-child(2) {
  padding-left: 14px;
  border-left: 1px solid color-mix(in oklab, oklch(0.78 0.10 var(--b-hue)) 18%, var(--line));
}
.engine-bench-stat-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-4);
}
.engine-bench-stat-value {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 28px; line-height: 1; letter-spacing: -0.025em;
  color: oklch(0.94 0.10 var(--b-hue));
}

/* Solo value (Verify card — no p95 to pair with) */
.engine-bench-value-solo {
  font-size: 40px;
  margin-top: 14px;
  margin-bottom: 0;
}

/* Vendor comparison — single clean inline row */
.engine-bench-vs {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in oklab, oklch(0.78 0.10 var(--b-hue)) 18%, var(--line));
}
.engine-bench-vs-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-4);
  flex: 1; min-width: 0;
  line-height: 1.35;
}
.engine-bench-vs-value {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 16px; line-height: 1; letter-spacing: -0.015em;
  color: var(--ink-2);
  white-space: nowrap;
}

/* Headline chip at the bottom of each card */
.engine-bench-headline {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in oklab, oklch(0.78 0.10 var(--b-hue)) 18%, var(--line));
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(0.92 0.16 var(--b-hue));
  line-height: 1.45;
}
.engine-bench-speedup {
  margin-top: 14px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.16em;
  color: oklch(0.85 0.14 var(--b-hue));
  text-transform: uppercase;
}

/* Hybrid-cost breakdown panel — sits between the bench grid and the
   substrate atlas. Shows that vendor lab numbers in isolation are fast,
   but chaining Memgraph + Weaviate adds HTTP / cross-ref cost that the
   single-binary engine doesn't pay. */
.engine-hybrid-cost {
  margin: 28px 0 32px;
  padding: 26px 28px 24px;
  border-radius: 12px;
  background:
    linear-gradient(135deg,
      color-mix(in oklab, oklch(0.65 0.16 200) 6%, transparent),
      transparent 70%),
    color-mix(in oklab, var(--bg-elev) 50%, transparent);
  border: 1px solid color-mix(in oklab, oklch(0.78 0.10 200) 22%, var(--line-strong));
}

.engine-hybrid-cost-head {
  margin-bottom: 22px;
  max-width: 70ch;
}
.engine-hybrid-cost-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 22px; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 8px;
}
.engine-hybrid-cost-note {
  font-family: var(--font-serif); font-weight: 350;
  font-size: 14px; line-height: 1.6;
  color: var(--ink-3);
  margin: 0;
}
.engine-hybrid-cost-note em {
  font-style: italic;
  color: var(--ink-2);
}

.engine-hybrid-cost-stacks {
  display: flex; flex-direction: column;
  gap: 18px;
}
.engine-hybrid-cost-stack {
  display: flex; flex-direction: column;
  gap: 8px;
}
.engine-hybrid-cost-stack-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.engine-hybrid-cost-stack-label.is-ng {
  color: oklch(0.90 0.14 200);
}

.engine-hybrid-cost-bar {
  display: flex;
  gap: 2px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
}
.engine-hybrid-cost-seg {
  --seg-hue: 200;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 8px 10px;
  min-width: 0;
  overflow: hidden;
  background: color-mix(in oklab, oklch(0.55 0.16 var(--seg-hue)) 14%, transparent);
  border: 1px solid color-mix(in oklab, oklch(0.78 0.14 var(--seg-hue)) 32%, var(--line));
}
.engine-hybrid-cost-seg.is-hop {
  background: repeating-linear-gradient(45deg,
    color-mix(in oklab, var(--ink-4) 8%, transparent) 0,
    color-mix(in oklab, var(--ink-4) 8%, transparent) 4px,
    color-mix(in oklab, var(--ink-4) 14%, transparent) 4px,
    color-mix(in oklab, var(--ink-4) 14%, transparent) 8px);
  border-color: color-mix(in oklab, var(--ink-4) 28%, var(--line));
}
.engine-hybrid-cost-seg.is-coord {
  /* warm-orange friction tone — uses --seg-hue set inline */
}
.engine-hybrid-cost-seg.is-ng {
  --seg-hue: 200;
  background: color-mix(in oklab, oklch(0.65 0.22 var(--seg-hue)) 22%, transparent);
  border-color: color-mix(in oklab, oklch(0.85 0.18 var(--seg-hue)) 55%, var(--line));
  box-shadow: 0 0 22px -6px color-mix(in oklab, oklch(0.55 0.22 var(--seg-hue)) 55%, transparent);
}
.engine-hybrid-cost-bar-spacer {
  background: repeating-linear-gradient(90deg,
    transparent 0, transparent 5px,
    color-mix(in oklab, var(--line) 60%, transparent) 5px,
    color-mix(in oklab, var(--line) 60%, transparent) 6px);
  opacity: 0.35;
}

.engine-hybrid-cost-seg-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis;
}
.engine-hybrid-cost-seg-value {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 13px; line-height: 1; letter-spacing: -0.015em;
  color: var(--ink-2);
  margin-top: 4px;
  white-space: nowrap;
}
.engine-hybrid-cost-seg.is-ng .engine-hybrid-cost-seg-label { color: oklch(0.90 0.14 200); }
.engine-hybrid-cost-seg.is-ng .engine-hybrid-cost-seg-value { color: oklch(0.96 0.10 200); font-size: 15px; }

.engine-hybrid-cost-total {
  align-self: flex-end;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.engine-hybrid-cost-total strong {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 17px; letter-spacing: -0.015em;
  color: var(--ink-2);
  margin-left: 4px;
}
.engine-hybrid-cost-total.is-ng strong {
  color: oklch(0.96 0.12 200);
}

.engine-hybrid-cost-result {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed color-mix(in oklab, oklch(0.78 0.14 200) 26%, var(--line));
  display: flex; align-items: baseline; gap: 16px;
  flex-wrap: wrap;
}
.engine-hybrid-cost-result-x {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 40px; line-height: 1; letter-spacing: -0.03em;
  color: oklch(0.96 0.16 200);
  flex-shrink: 0;
}
.engine-hybrid-cost-result-text {
  font-family: var(--font-serif); font-weight: 350;
  font-size: 14px; line-height: 1.55;
  color: var(--ink-3);
  flex: 1; min-width: 0;
  max-width: 64ch;
}

@media (max-width: 760px) {
  .engine-hybrid-cost-bar { height: 52px; }
  .engine-hybrid-cost-seg-label { font-size: 8px; letter-spacing: 0.10em; }
  .engine-hybrid-cost-seg-value { font-size: 11px; }
  .engine-hybrid-cost-result-x { font-size: 32px; }
}

/* Engine claims — six dense static text cards, 3×2 grid. Each card
   has a hue-tinted background, mono caps eyebrow, serif title, serif
   body, and a small SVG node-cluster decoration in the top-right
   corner that picks up the card's hue. */
.engine-claims-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 28px;
}
.engine-claim {
  --c-hue: 200;
  position: relative;
  padding: 22px 22px 20px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, oklch(0.78 0.14 var(--c-hue)) 34%, var(--line));
  /* Flat hue tint only — no pulse, no gradient wash. */
  background: color-mix(in oklab, oklch(0.55 0.10 var(--c-hue)) 5%, color-mix(in oklab, var(--bg) 60%, transparent));
  overflow: hidden;
}
/* (top accent stripe removed — clean border all around) */
/* Animated nebula fills the WHOLE card now; nodes have their own home
   positions spread uniformly so motion happens edge-to-edge. */
.engine-claim-nebula {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.88;
}
.engine-claim-nebula canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.engine-claim-eyebrow {
  position: relative; z-index: 1;
  display: block;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(0.86 0.14 var(--c-hue));
  margin-bottom: 14px;
}
.engine-claim-title {
  position: relative; z-index: 1;
  font-family: var(--font-serif); font-weight: 400;
  font-size: 22px; line-height: 1.12; letter-spacing: -0.022em;
  color: oklch(0.96 0.10 var(--c-hue));
  margin: 0 0 10px;
}
.engine-claim-body {
  position: relative; z-index: 1;
  font-family: var(--font-serif); font-weight: 350;
  font-size: 14.5px; line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}
@media (max-width: 960px) {
  .engine-claims-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .engine-claims-grid { grid-template-columns: 1fr; }
}

/* Cutover pipeline — canvas-based, modeled on .arch-pipeline. Seven
   hubs across the canvas with connecting lines + flowing beads. Hit
   buttons sit over each hub centre. */
.cutover-pipeline {
  position: relative;
  width: 100%;
  height: 220px;
  border: 1px solid color-mix(in oklab, var(--line-strong) 70%, transparent);
  border-radius: 12px;
  background:
    radial-gradient(ellipse at center, oklch(0.55 0.10 285 / 0.05), transparent 60%),
    color-mix(in oklab, var(--bg) 70%, transparent);
  overflow: hidden;
}
.cutover-pipeline canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.cutover-pipeline-hits { position: absolute; inset: 0; pointer-events: none; }
.cutover-pipeline-hit {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
}
.cutover-pipeline-hit:focus-visible {
  outline: 1px solid oklch(0.85 0.07 285);
  outline-offset: 2px;
}

/* Cutover timeline — horizontal interactive track. Seven phase nodes
   connected by edges; click any to swap the detail panel below. */
.cutover {
  --ph-hue: 200;
  margin: 8px 0 24px;
  display: flex; flex-direction: column;
  gap: 28px;
}
.cutover-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: start;
  gap: 0;
  position: relative;
}
.cutover-track::before {
  content: '';
  position: absolute;
  top: 36px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0,
    color-mix(in oklab, var(--line-strong) 80%, transparent) 7%,
    color-mix(in oklab, var(--line-strong) 80%, transparent) 93%,
    transparent);
  z-index: 0;
}
.cutover-node {
  --node-hue: 200;
  position: relative;
  z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  padding: 0 6px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: inherit;
}
/* Phase clouds — no container shape, no border, no bg. The puffy
   pulsing nebula IS the marker. Pulsing behaviour is canvas-driven
   via the active prop. */
.phase-cloud {
  position: relative;
  width: 72px; height: 72px;
  pointer-events: none;
  transition: transform 0.25s ease;
}
.phase-cloud canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.cutover-node:hover .phase-cloud {
  transform: scale(1.08);
}
.cutover-node.is-active .phase-cloud {
  transform: scale(1.12);
}
.cutover-node-n {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: 2px;
  transition: color 0.2s;
}
.cutover-node.is-active .cutover-node-n,
.cutover-node:hover .cutover-node-n {
  color: oklch(0.92 0.14 var(--node-hue));
}
.cutover-node-t {
  font-family: var(--font-serif); font-style: italic; font-weight: 350;
  font-size: 12px; line-height: 1.25;
  color: var(--ink-4);
  text-align: center;
  transition: color 0.2s;
}
.cutover-node.is-active .cutover-node-t,
.cutover-node:hover .cutover-node-t {
  color: var(--ink-2);
}

.cutover-detail {
  position: relative;
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 32px;
  padding: 28px 32px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, oklch(0.78 0.10 var(--ph-hue)) 30%, var(--line));
  background:
    linear-gradient(135deg,
      color-mix(in oklab, oklch(0.55 0.16 var(--ph-hue)) 8%, transparent),
      transparent 65%),
    color-mix(in oklab, var(--bg-elev) 45%, transparent);
  box-shadow: 0 8px 30px -18px color-mix(in oklab, oklch(0.55 0.22 var(--ph-hue)) 50%, transparent);
  transition: background 0.4s, border-color 0.4s;
  overflow: hidden;
}
.cutover-detail-n,
.cutover-detail-body { position: relative; z-index: 1; }

.cutover-detail-n {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 64px; line-height: 1; letter-spacing: -0.04em;
  color: oklch(0.96 0.14 var(--ph-hue));
  align-self: start;
  text-shadow: 0 0 20px color-mix(in oklab, oklch(0.55 0.22 var(--ph-hue)) 50%, transparent);
}
.cutover-detail-body { min-width: 0; }
.cutover-detail-t {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 28px; line-height: 1.15; letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 12px;
}
.cutover-detail-d {
  font-family: var(--font-serif); font-weight: 350;
  font-size: 17px; line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  max-width: 60ch;
}
.cutover-detail-gate {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed color-mix(in oklab, oklch(0.78 0.10 var(--ph-hue)) 30%, var(--line));
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.10em;
  color: var(--ink-2);
  display: flex; gap: 12px; align-items: baseline;
}
.cutover-detail-gate-label {
  font-weight: 500; letter-spacing: 0.20em; text-transform: uppercase;
  color: oklch(0.92 0.16 var(--ph-hue));
  font-size: 11px;
}
@media (max-width: 720px) {
  .cutover-track { grid-template-columns: repeat(7, auto); overflow-x: auto; }
  .cutover-node-t { display: none; }
  .cutover-detail { grid-template-columns: 1fr; gap: 12px; }
  .cutover-detail-n { font-size: 40px; }
}

/* Engine demo — "Try the engine" interactive. Two-column layout:
   query prompts on the left, result panel on the right. Each query
   carries its own hue, which tints the active button and the result
   panel for instant visual feedback. */
.engine-demo {
  --demo-hue: 200;
  margin: 8px 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 28px;
  align-items: stretch;
}

/* LEFT — prompt column */
.engine-demo-prompt {
  display: flex; flex-direction: column;
  gap: 14px;
}
.engine-demo-prompt-eyebrow {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.20em;
  text-transform: uppercase; color: var(--ink-4);
}
.engine-demo-prompt-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 8px;
}
.engine-demo-prompt-btn {
  width: 100%; text-align: left;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: color-mix(in oklab, var(--bg-elev) 50%, transparent);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-2);
  font-family: var(--font-serif); font-weight: 400;
  font-size: 16px; line-height: 1.4;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.engine-demo-prompt-btn:hover {
  background: color-mix(in oklab, oklch(0.55 0.16 var(--demo-hue)) 8%, var(--bg-elev));
  border-color: color-mix(in oklab, oklch(0.78 0.12 var(--demo-hue)) 32%, var(--line));
  color: var(--ink);
}
.engine-demo-prompt-btn.is-active {
  background: color-mix(in oklab, oklch(0.55 0.16 var(--demo-hue)) 14%, transparent);
  border-color: color-mix(in oklab, oklch(0.78 0.14 var(--demo-hue)) 55%, var(--line));
  color: oklch(0.96 0.10 var(--demo-hue));
  box-shadow: 0 4px 20px -10px color-mix(in oklab, oklch(0.55 0.20 var(--demo-hue)) 55%, transparent);
}
.engine-demo-prompt-btn .caret {
  color: color-mix(in oklab, oklch(0.85 0.14 var(--demo-hue)) 80%, var(--ink-4));
  font-family: var(--font-mono); font-size: 14px; line-height: 1.4;
  flex-shrink: 0;
  margin-top: 2px;
}
.engine-demo-prompt-foot {
  margin: 8px 0 0;
  font-family: var(--font-serif); font-style: italic; font-weight: 350;
  font-size: 13px; line-height: 1.5;
  color: var(--ink-4);
}

/* RIGHT — result panel */
.engine-demo-result {
  display: flex; flex-direction: column;
  padding: 18px 22px;
  border: 1px solid color-mix(in oklab, oklch(0.78 0.10 var(--demo-hue)) 30%, var(--line));
  border-radius: 12px;
  background:
    linear-gradient(135deg,
      color-mix(in oklab, oklch(0.55 0.16 var(--demo-hue)) 8%, transparent),
      transparent 65%),
    color-mix(in oklab, var(--bg-elev) 45%, transparent);
  box-shadow: 0 8px 30px -18px color-mix(in oklab, oklch(0.55 0.22 var(--demo-hue)) 50%, transparent);
  transition: background 0.4s, border-color 0.4s;
  min-height: 320px;
}

.engine-demo-result-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px dashed color-mix(in oklab, oklch(0.78 0.10 var(--demo-hue)) 28%, var(--line));
}
.engine-demo-result-verb {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(0.92 0.12 var(--demo-hue));
}
.engine-demo-result-layers {
  display: inline-flex; gap: 6px;
}
.engine-demo-result-layer {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  color: oklch(0.85 0.12 var(--demo-hue));
  background: color-mix(in oklab, oklch(0.55 0.16 var(--demo-hue)) 12%, transparent);
  border: 1px solid color-mix(in oklab, oklch(0.78 0.12 var(--demo-hue)) 32%, var(--line));
}
.engine-demo-result-latency {
  margin-left: auto;
  font-family: var(--font-serif); font-weight: 400;
  font-size: 20px; line-height: 1; letter-spacing: -0.02em;
  color: oklch(0.96 0.10 var(--demo-hue));
}

.engine-demo-result-body {
  flex: 1;
  display: flex; flex-direction: column;
  min-height: 220px;
}

/* THINKING state */
.engine-demo-thinking {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 40px 0;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.engine-demo-thinking .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: oklch(0.85 0.16 var(--demo-hue));
  box-shadow: 0 0 10px oklch(0.85 0.16 var(--demo-hue) / 0.6);
  animation: engine-demo-pulse 0.9s ease-in-out infinite;
}
.engine-demo-thinking .dot:nth-child(2) { animation-delay: 0.15s; }
.engine-demo-thinking .dot:nth-child(3) { animation-delay: 0.30s; }
.engine-demo-thinking .text { margin-left: 10px; }
@keyframes engine-demo-pulse {
  0%, 100% { opacity: 0.30; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1.15); }
}

/* RESULT LIST */
.engine-demo-result-list {
  list-style: none; padding: 0; margin: 14px 0 0;
  display: flex; flex-direction: column;
  gap: 0;
}
.engine-demo-result-item {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed color-mix(in oklab, var(--line) 80%, transparent);
  animation: engine-demo-row-in 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}
.engine-demo-result-item:last-child { border-bottom: 0; }
@keyframes engine-demo-row-in {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}
.engine-demo-result-primary {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 14.5px; line-height: 1.4;
  color: var(--ink-2);
  flex: 1; min-width: 0;
}
.engine-demo-result-itemmeta {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(0.85 0.12 var(--demo-hue));
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}

.engine-demo-result-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed color-mix(in oklab, oklch(0.78 0.10 var(--demo-hue)) 28%, var(--line));
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font-serif); font-style: italic; font-weight: 350;
  font-size: 13px; line-height: 1.5;
  color: var(--ink-3);
}
.engine-demo-result-footer .check {
  color: oklch(0.92 0.16 var(--demo-hue));
  font-size: 13px;
  flex-shrink: 0;
}

@media (max-width: 920px) {
  .engine-demo { grid-template-columns: 1fr; gap: 18px; }
  .engine-demo-result { min-height: 280px; }
}

/* Substrate atlas — engine visualisation that owns the section. No
   panel wrapper; the canvas is the centre and the toolbar + claims
   flow with the rest of the section content. */
.substrate-atlas {
  position: relative;
  width: 100%;
  margin: 8px 0 24px;
  display: flex; flex-direction: column;
  gap: 14px;
}

/* Toolbar (no border, no panel — just typography + buttons) */
.substrate-toolbar {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 14px;
  padding: 0;
}
.substrate-toolbar-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-4);
}
.substrate-workloads { display: inline-flex; gap: 6px; }
.substrate-workload-btn {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border: 1px solid var(--line);
  color: var(--ink-3);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.substrate-workload-btn:hover {
  border-color: color-mix(in oklab, oklch(0.78 0.12 200) 50%, var(--line));
  color: var(--ink-2);
}
.substrate-workload-btn.is-active {
  background: color-mix(in oklab, oklch(0.55 0.18 200) 18%, transparent);
  border-color: color-mix(in oklab, oklch(0.78 0.14 200) 60%, var(--line));
  color: oklch(0.94 0.12 200);
}
.substrate-toolbar-note {
  margin-left: auto;
  font-family: var(--font-serif); font-style: italic; font-weight: 350;
  font-size: 13px; color: var(--ink-3);
}

/* Canvas wrapper — the engine lives here, bordered + subtle background
   so it reads as a single bounded visual against the section flow. */
.substrate-canvas-wrap {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--line-strong) 70%, transparent);
  background:
    radial-gradient(ellipse at 75% 50%, oklch(0.55 0.10 200 / 0.05), transparent 60%),
    color-mix(in oklab, var(--bg) 70%, transparent);
}
.substrate-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Three minimal claim lines under the engine — no boxes, no panels */
.substrate-claims {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 24px;
}
.substrate-claims li {
  font-family: var(--font-serif); font-weight: 350;
  font-size: 14px; line-height: 1.5;
  color: var(--ink-3);
  padding-left: 14px;
  border-left: 2px solid color-mix(in oklab, oklch(0.78 0.14 200) 35%, var(--line));
}
.substrate-claims li strong {
  font-family: var(--font-serif); font-weight: 400;
  color: oklch(0.94 0.12 200);
}

/* (Legacy — kept so old class references don't break; unused.) */
.substrate-verbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 18px 22px;
  border-top: 1px dashed color-mix(in oklab, var(--line) 80%, transparent);
}
.substrate-verb {
  --v-hue: 200;
  display: flex; flex-direction: column; gap: 4px;
  padding: 0 16px;
  border-left: 1px solid color-mix(in oklab, oklch(0.78 0.10 var(--v-hue)) 18%, var(--line));
  min-width: 0;
}
.substrate-verb:first-child { border-left: 0; padding-left: 0; }
.substrate-verb-metric {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(0.86 0.12 var(--v-hue));
}
.substrate-verb-primary {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 24px; line-height: 1; letter-spacing: -0.025em;
  color: oklch(0.96 0.10 var(--v-hue));
  margin-top: 2px;
}
.substrate-verb-primary em {
  font-style: normal; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.10em; color: var(--ink-3); margin-left: 4px;
}
.substrate-verb-p95 {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.10em;
  color: var(--ink-3);
}
.substrate-verb-vs {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.10em;
  color: var(--ink-4);
  margin-top: 4px;
  line-height: 1.35;
}

/* Hybrid-query cost comparison — bars inside the panel */
.substrate-hybrid {
  padding: 22px 22px 18px;
  border-top: 1px dashed color-mix(in oklab, var(--line) 80%, transparent);
}
.substrate-hybrid-head {
  margin-bottom: 18px;
  max-width: 70ch;
}
.substrate-hybrid-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 18px; line-height: 1.15; letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 6px;
}
.substrate-hybrid-note {
  font-family: var(--font-serif); font-weight: 350;
  font-size: 13px; line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
}
.substrate-hybrid-note em {
  font-style: italic;
  color: var(--ink-2);
}
.substrate-hybrid-bars {
  display: flex; flex-direction: column;
  gap: 14px;
}
.substrate-hybrid-bar {
  display: flex; flex-direction: column;
  gap: 6px;
}
.substrate-hybrid-bar-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.substrate-hybrid-bar-label.is-ng { color: oklch(0.90 0.14 200); }
.substrate-hybrid-bar-track {
  display: flex;
  gap: 2px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
}
.substrate-hybrid-bar-track .seg {
  --seg-hue: 200;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 6px 8px;
  min-width: 0; overflow: hidden;
  background: color-mix(in oklab, oklch(0.55 0.16 var(--seg-hue)) 14%, transparent);
  border: 1px solid color-mix(in oklab, oklch(0.78 0.14 var(--seg-hue)) 32%, var(--line));
}
.substrate-hybrid-bar-track .seg.is-hop {
  background: repeating-linear-gradient(45deg,
    color-mix(in oklab, var(--ink-4) 8%, transparent) 0,
    color-mix(in oklab, var(--ink-4) 8%, transparent) 4px,
    color-mix(in oklab, var(--ink-4) 14%, transparent) 4px,
    color-mix(in oklab, var(--ink-4) 14%, transparent) 8px);
  border-color: color-mix(in oklab, var(--ink-4) 28%, var(--line));
}
.substrate-hybrid-bar-track .seg.is-ng {
  --seg-hue: 200;
  background: color-mix(in oklab, oklch(0.65 0.22 var(--seg-hue)) 22%, transparent);
  border-color: color-mix(in oklab, oklch(0.85 0.18 var(--seg-hue)) 55%, var(--line));
  box-shadow: 0 0 22px -6px color-mix(in oklab, oklch(0.55 0.22 var(--seg-hue)) 55%, transparent);
}
.substrate-hybrid-bar-track .seg-spacer {
  background: repeating-linear-gradient(90deg,
    transparent 0, transparent 5px,
    color-mix(in oklab, var(--line) 60%, transparent) 5px,
    color-mix(in oklab, var(--line) 60%, transparent) 6px);
  opacity: 0.35;
}
.substrate-hybrid-bar-track .seg-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis;
}
.substrate-hybrid-bar-track .seg-value {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 12px; line-height: 1; letter-spacing: -0.015em;
  color: var(--ink-2);
  margin-top: 3px;
  white-space: nowrap;
}
.substrate-hybrid-bar-track .seg.is-ng .seg-label { color: oklch(0.90 0.14 200); }
.substrate-hybrid-bar-track .seg.is-ng .seg-value { color: oklch(0.96 0.10 200); font-size: 14px; }
.substrate-hybrid-bar-total {
  align-self: flex-end;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-4);
}
.substrate-hybrid-bar-total strong {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 15px; letter-spacing: -0.015em;
  color: var(--ink-2);
  margin-left: 4px;
}
.substrate-hybrid-bar-total.is-ng strong { color: oklch(0.96 0.12 200); }
.substrate-hybrid-result {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed color-mix(in oklab, oklch(0.78 0.14 200) 26%, var(--line));
  display: flex; align-items: baseline; gap: 14px;
  flex-wrap: wrap;
}
.substrate-hybrid-result-x {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 36px; line-height: 1; letter-spacing: -0.03em;
  color: oklch(0.96 0.16 200);
  flex-shrink: 0;
}
.substrate-hybrid-result-text {
  font-family: var(--font-serif); font-weight: 350;
  font-size: 13px; line-height: 1.55;
  color: var(--ink-3);
  flex: 1; min-width: 0;
  max-width: 64ch;
}

@media (max-width: 920px) {
  .substrate-canvas-wrap { height: 380px; }
  .substrate-toolbar-note { display: none; }
  .substrate-verbs { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .substrate-verb { border-left: 0; padding: 0; }
  .substrate-claims { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .substrate-canvas-wrap { height: 320px; }
  .substrate-toolbar { padding: 10px 14px; gap: 10px; }
  .substrate-hybrid-result-x { font-size: 28px; }
}

/* Substrate — 2×2 hue-tinted cards */
.engine-substrate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 6px 0 0;
}
.engine-substrate-card {
  --s-hue: 200;
  padding: 22px 24px;
  border-radius: 10px;
  border: 1px solid color-mix(in oklab, oklch(0.78 0.14 var(--s-hue)) 28%, var(--line));
  background: color-mix(in oklab, oklch(0.55 0.10 var(--s-hue)) 6%, color-mix(in oklab, var(--bg) 60%, transparent));
  display: flex; flex-direction: column; gap: 10px;
}
.engine-substrate-num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(0.85 0.12 var(--s-hue));
}
.engine-substrate-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 26px; line-height: 1.08; letter-spacing: -0.025em;
  color: oklch(0.96 0.08 var(--s-hue));
  margin: 0;
}
.engine-substrate-body {
  font-family: var(--font-serif); font-weight: 350;
  font-size: 15px; line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}

/* 7-phase cutover — vertical timeline with hue-tinted rail + dots */
.engine-phases-timeline {
  list-style: none; padding: 0;
  margin: 6px 0 0;
  display: flex; flex-direction: column;
}
.engine-phase-row {
  --ph-hue: 200;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  padding: 16px 0;
  position: relative;
}
.engine-phase-row:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 18px; top: 36px; bottom: -10px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    color-mix(in oklab, oklch(0.78 0.12 var(--ph-hue)) 35%, transparent),
    color-mix(in oklab, oklch(0.78 0.12 var(--ph-hue)) 15%, transparent)
  );
}
.engine-phase-rail {
  display: flex; align-items: center; gap: 10px;
}
.engine-phase-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: oklch(0.85 0.16 var(--ph-hue));
  box-shadow: 0 0 12px oklch(0.85 0.16 var(--ph-hue) / 0.55),
              0 0 0 3px color-mix(in oklab, oklch(0.55 0.18 var(--ph-hue)) 16%, transparent);
  flex-shrink: 0;
  margin-left: 6px;
}
.engine-phase-n {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(0.86 0.12 var(--ph-hue));
  font-weight: 500;
}
.engine-phase-content {
  padding-top: 2px;
}
.engine-phase-t {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 22px; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 6px;
}
.engine-phase-d {
  font-family: var(--font-serif); font-weight: 350;
  font-size: 15px; line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
  max-width: 64ch;
}
.engine-foot {
  margin: 32px 0 0;
  font-family: var(--font-serif); font-style: italic; font-weight: 350;
  font-size: 15px; color: var(--ink-3);
  text-wrap: pretty; max-width: 64ch;
}
@media (max-width: 920px) {
  .engine-bench-grid { grid-template-columns: 1fr 1fr; }
  .engine-substrate-grid { grid-template-columns: 1fr; }
  .engine-phase-row { grid-template-columns: 88px 1fr; gap: 16px; }
}

/* ---------- route pages (Contact / About) ---------- */
.route-page { position: relative; z-index: 1; }
.route-head { padding: 120px 0 8px; max-width: 640px; }
.route-head .num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-3);
}
.route-head .display { margin: 14px 0 0; }
.route-lede { margin-top: 20px; font-size: 18px; color: var(--ink-2); line-height: 1.6; }

/* hero cosmos backdrop behind the contact heading */
.contact-hero { position: relative; }
.contact-cosmos {
  position: absolute;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  width: min(920px, 92vw);
  height: 520px;
  z-index: 0;
  pointer-events: none;
}
.contact-cosmos-nebula {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0.6;
}
.contact-hero .route-head { position: relative; z-index: 1; }

/* glowing frame around the form + aside, with internal nebula */
.contact-frame {
  position: relative;
  margin: 56px 0 140px;
  padding: 52px 48px;
  border: 1px solid color-mix(in oklab, oklch(0.78 0.12 285) 38%, var(--line));
  border-radius: 22px;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, color-mix(in oklab, oklch(0.70 0.10 285) 8%, transparent), transparent 75%),
    color-mix(in oklab, oklch(0.55 0.10 285) 3%, color-mix(in oklab, var(--bg) 55%, transparent));
  box-shadow:
    0 0 0 1px color-mix(in oklab, oklch(0.78 0.12 285) 12%, transparent),
    0 0 80px color-mix(in oklab, oklch(0.70 0.14 285) 18%, transparent),
    0 20px 60px rgba(0,0,0,0.35);
  overflow: hidden;
}
.contact-frame-stars {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}
.contact-frame-nebula {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0.4;
}
.contact-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-field { display: flex; flex-direction: column; gap: 7px; }
.contact-field span {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}
.contact-field input, .contact-field textarea {
  font: inherit; color: var(--ink); background: color-mix(in oklab, var(--bg) 60%, transparent);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; resize: vertical;
}
.contact-field input:focus, .contact-field textarea:focus {
  outline: none; border-color: oklch(0.78 0.10 285);
}
.contact-form .btn { align-self: flex-start; margin-top: 4px; }
.contact-aside { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.contact-aside-block h3 { margin: 0 0 8px; }
.contact-aside-block a { color: var(--ink-2); border-bottom: 1px solid var(--line-strong); }
.contact-aside-block a:hover { color: var(--ink); }
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- book a demo page ---------- */
.book-form {
  display: flex; flex-direction: column; gap: 18px;
  max-width: 720px;
  margin: 56px 0 140px;
}
.book-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.contact-field em {
  font-style: normal; color: var(--ink-4); text-transform: none; letter-spacing: 0;
}
.contact-field select {
  font: inherit; color: var(--ink);
  background: color-mix(in oklab, var(--bg) 60%, transparent);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 12px 14px;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23c9c9c2' d='M0 0h10L5 6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.contact-field select:focus {
  outline: none; border-color: oklch(0.78 0.10 285);
}
.contact-field input[type="date"] {
  color-scheme: dark;
}
.contact-field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7) sepia(0.3) saturate(2) hue-rotate(220deg);
  cursor: pointer;
}
.book-cta-row {
  display: flex; align-items: center; gap: 18px;
  margin-top: 4px; flex-wrap: wrap;
}
.book-form-note {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-3); max-width: 36ch;
}
@media (max-width: 700px) {
  .book-form-row { grid-template-columns: 1fr; }
}

/* ---------- about page ---------- */
/* hero cosmos backdrop behind the heading */
.about-hero { position: relative; }
.about-cosmos {
  position: absolute;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  width: min(940px, 94vw);
  height: 560px;
  z-index: 0;
  pointer-events: none;
}
.about-cosmos-nebula {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0.62;
}
.about-hero .route-head { position: relative; z-index: 1; }

/* who we are + why we built this — two columns inside a glowing frame */
.about-whowhy {
  position: relative;
  margin: 80px 0 0;
  padding: 60px 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px;
  align-items: start;
  border: 1px solid color-mix(in oklab, oklch(0.78 0.12 285) 38%, var(--line));
  border-radius: 22px;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, color-mix(in oklab, oklch(0.70 0.10 285) 8%, transparent), transparent 75%),
    color-mix(in oklab, oklch(0.55 0.10 285) 3%, color-mix(in oklab, var(--bg) 55%, transparent));
  box-shadow:
    0 0 0 1px color-mix(in oklab, oklch(0.78 0.12 285) 12%, transparent),
    0 0 80px color-mix(in oklab, oklch(0.70 0.14 285) 18%, transparent),
    0 20px 60px rgba(0,0,0,0.35);
  overflow: hidden;
}
.about-whowhy-stars {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}
.about-whowhy-nebula {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0.45;
}
.about-whowhy .about-col { position: relative; z-index: 1; }
.about-col { display: flex; flex-direction: column; gap: 20px; }
.about-col-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(0.90 0.10 285);
  margin-bottom: 4px;
}
.about-col-eyebrow::before {
  content: ''; width: 30px; height: 1px; display: inline-block;
  background: linear-gradient(90deg, transparent, oklch(0.80 0.14 285 / 0.85));
}
.about-col-lead {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 22px; line-height: 1.35; letter-spacing: -0.01em;
  color: oklch(0.96 0.04 285);
  margin: 0;
}
.about-col p {
  font-size: 17px; line-height: 1.7; color: var(--ink-2); margin: 0;
}
.about-sub { display: flex; flex-direction: column; gap: 10px; }
.about-sub-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 13.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: oklch(0.84 0.10 285);
}
.about-sub-label::before {
  content: ''; width: 24px; height: 1px; display: inline-block;
  background: linear-gradient(90deg, transparent, oklch(0.80 0.14 285 / 0.7));
}
.about-creds {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: row; gap: 10px; flex-wrap: wrap;
}
.about-creds li {
  flex: 1 1 0; min-width: 0;
  padding: 16px 18px; text-align: center;
  border: 1px solid color-mix(in oklab, oklch(0.78 0.12 285) 34%, var(--line));
  border-radius: 10px;
  background: color-mix(in oklab, oklch(0.55 0.10 285) 5%, color-mix(in oklab, var(--bg) 60%, transparent));
}
.about-creds-school {
  font-family: var(--font-serif); font-size: 17px; color: oklch(0.97 0.05 285);
}
.about-countries {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.about-countries li {
  padding: 5px 11px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  color: oklch(0.92 0.06 285);
  border: 1px solid color-mix(in oklab, oklch(0.78 0.10 285) 22%, var(--line));
  border-radius: 999px;
  background: color-mix(in oklab, oklch(0.55 0.10 285) 3%, transparent);
  transition: color 0.4s ease, border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}
.about-countries li.is-active {
  color: oklch(0.98 0.10 285);
  border-color: color-mix(in oklab, oklch(0.82 0.18 285) 80%, transparent);
  background: color-mix(in oklab, oklch(0.55 0.16 285) 14%, transparent);
  box-shadow: 0 0 14px oklch(0.78 0.20 285 / 0.35);
}

/* Disciplines: force a 3×2 grid (overrides .about-countries flex-wrap) */
.about-disciplines {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.about-disciplines li {
  text-align: center;
  font-size: 13px;
  padding: 8px 12px;
  letter-spacing: 0.03em;
}

/* Global presence — featured spinning globe with info card */
.about-globe {
  margin: 80px 0 0;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 18px;
}
.about-globe-head { max-width: 760px; }
.about-globe-head .num {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: oklch(0.94 0.12 285);
  margin-bottom: 18px;
}
.about-globe-head .num::before {
  content: ''; width: 30px; height: 1px; display: inline-block;
  background: linear-gradient(90deg, transparent, oklch(0.82 0.18 285 / 0.9));
}
.about-globe-head .display {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: oklch(0.97 0.05 285);
  text-shadow:
    0 0 12px oklch(0.85 0.16 285 / 0.45),
    0 0 32px oklch(0.78 0.20 285 / 0.22);
}
.about-globe-head .display em {
  font-style: italic;
  color: oklch(0.86 0.18 285);
}
.about-globe-head .route-lede {
  margin-top: 14px; font-size: 16px; color: var(--ink-3); line-height: 1.55;
}

.hop-wrap {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  width: 100%; gap: 18px;
  margin-top: 16px;
}
.hop-map {
  width: 100%; max-width: 620px; height: auto;
  display: block;
  filter: drop-shadow(0 0 28px oklch(0.70 0.16 285 / 0.35));
}
.hop-callout {
  animation: hopCalloutIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes hopCalloutIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

.about-col-foot {
  font-family: var(--font-mono) !important; font-size: 11px !important;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-3) !important; margin-top: 8px !important;
}

.about-team { position: relative; margin: -32px 0 0; }
.about-team-stars {
  position: absolute; inset: -24px -20px;
  pointer-events: none; z-index: 0;
}
.about-team-nebula {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  opacity: 0.55;
}
.about-team > h2,
.about-team > .team-grid { position: relative; z-index: 1; }
.about-team-title {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(0.90 0.10 285);
  margin: 0 0 20px;
}
.about-team-title::before {
  content: ''; width: 30px; height: 1px; display: inline-block;
  background: linear-gradient(90deg, transparent, oklch(0.80 0.14 285 / 0.85));
}
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.team-card {
  position: relative; overflow: hidden;
  padding: 32px 26px 28px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  border: 1px solid color-mix(in oklab, oklch(0.78 0.10 285) 30%, var(--line));
  border-radius: 14px;
  background: color-mix(in oklab, oklch(0.55 0.10 285) 5%, color-mix(in oklab, var(--bg) 60%, transparent));
}
.team-card-nodes {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0.55;
  pointer-events: none;
}
.team-card-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 100%;
}
.team-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, oklch(0.55 0.12 285) 22%, color-mix(in oklab, var(--bg) 70%, transparent));
  border: 1px solid color-mix(in oklab, oklch(0.78 0.12 285) 45%, transparent);
  margin-bottom: 14px;
}
.team-avatar-initials {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  color: oklch(0.97 0.05 285);
}
.team-name {
  font-family: var(--font-serif); font-size: 20px; line-height: 1.2;
  color: oklch(0.97 0.05 285);
  text-shadow:
    0 0 8px oklch(0.85 0.16 285 / 0.55),
    0 0 22px oklch(0.78 0.20 285 / 0.35),
    0 0 40px oklch(0.70 0.22 285 / 0.18);
}
.team-role {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: oklch(0.80 0.10 285); margin-top: 5px;
}
.team-bio {
  margin: 14px 0 0; max-width: 28ch;
  font-size: 14px; line-height: 1.6; color: var(--ink-2);
}
.about-cta {
  position: relative;
  margin: 72px 0 100px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.about-cta .display {
  color: oklch(0.97 0.05 285);
  text-shadow:
    0 0 14px oklch(0.85 0.16 285 / 0.55),
    0 0 36px oklch(0.78 0.20 285 / 0.32),
    0 0 72px oklch(0.70 0.22 285 / 0.18);
}
.about-cta-stars {
  position: absolute; inset: -28px -30px;
  pointer-events: none; z-index: 0;
}
.about-cta-nebula {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  opacity: 0.55;
}
.about-cta > h2,
.about-cta > a { position: relative; z-index: 1; }
@media (max-width: 820px) {
  .team-grid { grid-template-columns: 1fr; }
  .about-whowhy { grid-template-columns: 1fr; gap: 44px; }
}

/* ──────────────────────────────────────────────────────────────────────────
   Mobile responsive — overrides for ≤720px (tablet) and ≤480px (phone).
   ────────────────────────────────────────────────────────────────────────── */

/* Universal canvas safety: stop animated canvases from triggering horizontal
   scroll on narrow viewports. The atlas, decay-field, verb-traffic, and any
   other absolutely-positioned canvas inherits this guard. */
canvas { max-width: 100%; }

@media (max-width: 720px) {
  /* Hero scales down: 760px min-height crushes a 6.7" screen, replace with
     viewport-relative + a sane floor. */
  .hero { min-height: clamp(520px, 90vh, 720px); padding-top: 64px; padding-bottom: 48px; }
  .hero-content { max-width: 100%; padding-left: clamp(16px, 4vw, 24px); padding-right: clamp(16px, 4vw, 24px); }
  .hero-fullbleed .hero-sub { max-width: 100%; }
  .hero-viz-corner { position: static; }  /* drop absolute positioning that overlapped content */

  /* Section padding tightens at mobile so content has room to breathe. */
  section { padding-left: clamp(16px, 4vw, 24px); padding-right: clamp(16px, 4vw, 24px); }
  .container { max-width: 100%; padding-left: 0; padding-right: 0; }

  /* Section heads stop forcing 22ch which truncates to ~5 chars at 375px. */
  .section-head .h1 { max-width: 100%; }
  .section-head-meta .caption { font-size: 12px; }

  /* Text & headings: shrink display-class fonts to fit phone widths. */
  .h-display, .heading-display { font-size: clamp(40px, 9vw, 64px); line-height: 1.05; }
  .caption { font-size: 12px; }

  /* Button touch targets ≥ 44×44 per WCAG / iOS HIG. */
  .btn, button.atlas-back, button.atlas-initiate, .engine-demo-prompt-btn {
    padding: 14px 22px; min-height: 44px;
  }

  /* All multi-column grids on the page collapse to single column at mobile.
     Tapping an item in one column on the left would otherwise update content
     in a right column the user can't see, making the interaction feel broken. */
  .leak-canvas-split, .problem-grid, .diff-list,
  .compare-grid, .compare-two-up, .verbs-grid,
  .pages-three-up, .pages-two-up, .integration-grid,
  .layers-wrap, .layers2-wrap, .arch-panel,
  .gloss-grid, .diff2-row, .features-grid {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  /* Diff rows are 4-col on desktop; make them stack with smaller gap. */
  .diff-row { grid-template-columns: 1fr !important; gap: 12px !important; padding: 20px 0 !important; }
  /* Arch-pipeline canvas can shrink height a lot on phone — the hit-points
     still work, but make the wrap shorter so the arch-panel below is closer
     to the trigger (avoids "tapped but nothing visibly changed"). */
  .arch-pipeline { min-height: 200px !important; max-height: 280px !important; }

  /* Decay graph: enforce viewport-relative height. */
  .decay-graph-field { min-height: clamp(280px, 60vh, 540px); }

  /* Hero / cosmograph wrappers stay at position:absolute so their absolutely-
     positioned canvas children have a sized parent. Just clamp width so they
     don't punch out of the viewport. */
  .hero-fullbleed-viz, .cosmo-wrap { max-width: 100vw; overflow: hidden; }
  .verb-traffic { max-width: 100vw; overflow: hidden; }

  /* Hero: the full-bleed cosmograph + decay-field + verb-traffic overlay
     the hero-content text. On mobile both compete for the same ~600px of
     vertical space, making the title illegible. Hide the visualisation
     layer entirely on mobile — the page's purpose is conveyed by the
     headline, and the visualisations re-appear in dedicated sections
     further down for users who scroll. */
  .hero-fullbleed-viz, .hero-fullbleed-overlay,
  .hero-viz-corner, .hero-viz-corner-tr,
  .hero-viz-corner-bl, .hero-viz-corner-br { display: none !important; }
  .hero-fullbleed .hero-content { position: relative; z-index: 2; max-width: 100%; }

  /* 4-col grids: arch hubs, security row, engine benchmarks, substrate
     verbs. Even at 2×2 they overflow phone widths. Collapse to 1-col. */
  .arch-grid, .sec-row, .engine-bench-grid, .substrate-verbs {
    grid-template-columns: 1fr !important; gap: 12px !important;
  }

  /* Verbs section: on desktop the feature card is left, buttons right.
     The mobile single-column collapse left description on top, buttons
     on bottom — meaning a user scrolls down to tap a button and can't
     see the description update above. Flip the visual order so buttons
     come first; the description sits below, in view after a tap. */
  .vatlas-wall { order: -1; }
  .vatlas-feature { order: 0; }
  .vatlas-wrap { display: flex !important; flex-direction: column !important; gap: 20px !important; }

  /* Cosmograph translation hack (translateX(-12px)) creates a 12px horizontal
     scrollbar on mobile — undo it. */
  .cosmo-canvas, .cosmo-clouds-canvas, .cosmo-labels { transform: none; }

  /* Atlas event card: bound to viewport. */
  .atlas-event-card { max-width: calc(100vw - 32px); max-height: calc(100vh - 96px); }

  /* Atlas detail panel: full-width column on phones. */
  .atlas-detail-panel { left: 16px !important; right: 16px !important; width: auto !important; max-width: none !important; }
}

@media (max-width: 480px) {
  /* Phone-specific: even tighter padding + smaller hero. */
  .hero { min-height: clamp(480px, 85vh, 640px); padding-top: 48px; }
  .h-display, .heading-display { font-size: clamp(36px, 10vw, 52px); }
  .caption { font-size: 13px; }  /* WCAG body-text floor */
  .section-head-meta .caption { font-size: 11px; }

  /* Touch targets: stay above 44px floor on the smallest viewports. */
  .btn { padding: 14px 20px; min-height: 48px; }

  /* Atlas event card spans nearly full width on phone. */
  .atlas-event-card { left: 16px !important; right: 16px !important; width: auto !important; }
}

/* ─────────────────────────────────────────────────────────────────
   Legal route pages (Privacy Policy, Terms of Service)
   Mirrors the route-page / route-head pattern used by ContactPage,
   AboutPage, BookPage so legal docs sit at the same visual rhythm.
   ───────────────────────────────────────────────────────────────── */
.legal-page .route-head { max-width: 720px; padding-bottom: 24px; }
.legal-page .legal-meta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-3, var(--ink-2));
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.legal-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0 32px;
  border-bottom: 1px solid color-mix(in oklab, var(--ink-1) 12%, transparent);
  margin-bottom: 32px;
}
.legal-nav a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid color-mix(in oklab, var(--ink-1) 20%, transparent);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.legal-nav a:hover {
  color: var(--ink-1);
  border-color: color-mix(in oklab, var(--accent) 60%, transparent);
}
.legal-nav .legal-nav-active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.legal-prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.35;
  color: var(--ink-2);
  padding-bottom: 96px;
}
.legal-prose p { margin: 0 0 16px; }
.legal-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal-prose a:hover { text-decoration-thickness: 2px; }
.legal-prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 4px;
  background: color-mix(in oklab, var(--ink-1) 8%, transparent);
  color: var(--ink-1);
}
.legal-prose ul {
  margin: 0 0 4px;
  padding-left: 22px;
}
.legal-prose ul li { margin: 0; padding: 0; line-height: 1.3; }
.legal-prose strong { color: var(--ink-1); }

.legal-section {
  margin: 6px 0;
  padding: 0;           /* override the global `section { padding: var(--pad-section) 0 }` rule */
  scroll-margin-top: 24px;
}
.legal-section h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink-1);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.legal-section h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink-1);
  margin: 8px 0 2px;
  letter-spacing: -0.005em;
}
.legal-num {
  display: inline-block;
  margin-right: 10px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 14.5px;
}
.legal-table th,
.legal-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid color-mix(in oklab, var(--ink-1) 10%, transparent);
}
.legal-table th {
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--ink-1);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid color-mix(in oklab, var(--ink-1) 22%, transparent);
}
.legal-table td code { white-space: nowrap; }

.legal-address {
  display: flex;
  flex-direction: column;
  font-style: normal;
  padding: 14px 18px;
  margin: 10px 0 18px;
  border-left: 2px solid var(--accent);
  background: color-mix(in oklab, var(--ink-1) 4%, transparent);
  border-radius: 0 6px 6px 0;
}
.legal-address strong { color: var(--ink-1); margin-bottom: 4px; }
.legal-address span { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

@media (max-width: 720px) {
  .legal-prose { font-size: 15.5px; }
  .legal-section h2 { font-size: 22px; }
  .legal-section h3 { font-size: 17px; }
  .legal-table { font-size: 13.5px; }
  .legal-table th, .legal-table td { padding: 8px 10px; }
}
