/* ════════ Tokens (from mockup-desk) ════════ */
:root {
  --ink: #0a0d14;
  --panel: #101522;
  --panel-2: #0d1220;
  --line: #1e2740;
  --text: #c7d0e4;
  --muted: #8792aa;
  --phosphor: #ffb454;
  --phosphor-dim: #8a6430;
  --long: #46c28a;
  --short: #e0565e;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
a { color: var(--phosphor); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--phosphor); outline-offset: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.hide-sm { display: inline-flex; }
@media (max-width: 720px) { .statusbar .status-item.hide-sm { display: none; } }

/* ════════ Status bar ════════ */
.statusbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
}
.statusbar .wrap { display: flex; align-items: center; gap: 24px; height: 44px; }
.brand { color: var(--phosphor); font-weight: 700; }
.status-item { color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.status-item b { color: var(--text); font-weight: 600; }
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--long);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: .35; } }
.spacer { flex: 1; }

.bar-contact { color: var(--text); font-weight: 600; margin-right: 4px; }
.bar-contact:hover { color: var(--phosphor); text-decoration: none; }

.mode-switch { display: inline-flex; align-items: center; gap: 6px; }
.mode-label { color: var(--muted); margin-right: 2px; }
.mode-btn {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 4px 10px; cursor: pointer; transition: .15s;
}
.mode-btn:hover { color: var(--text); border-color: var(--phosphor-dim); }
.mode-btn.active { color: var(--ink); background: var(--phosphor); border-color: var(--phosphor); font-weight: 700; }
.mode-btn[hidden] { display: none; }
.mode-btn .soon {
  font-style: normal; font-size: 8px; letter-spacing: .05em;
  vertical-align: super; color: var(--phosphor); margin-left: 2px;
}
.mode-btn.active .soon { color: var(--ink); }
.inline-mode {
  font-family: var(--mono); font-size: inherit;
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--phosphor); text-decoration: underline;
}

/* ════════ Hero ════════ */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  padding-top: 80px; padding-bottom: 64px;
}
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; padding-top: 48px; } }

.term-eyebrow { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.term-eyebrow::before { content: "$ "; color: var(--phosphor); }
.hero-name {
  font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 700;
  color: #e8edf8; letter-spacing: -.01em; margin: 0 0 2px;
}
.hero-title { font-family: var(--mono); font-size: 13px; color: var(--phosphor); margin: 0 0 22px; }
.hero-roles { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0 0 26px; letter-spacing: .02em; }
.hero-roles b { color: var(--long); font-weight: 700; letter-spacing: .08em; margin-right: 8px; }
h1 {
  font-family: var(--mono);
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: #e8edf8;
}
h1 .accent { color: var(--phosphor); }
h1 .accent-brain { color: var(--long); }
.cursor {
  display: inline-block; width: .55em; height: 1em;
  background: var(--phosphor); vertical-align: text-bottom; margin-left: 4px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-lead { color: var(--muted); font-size: 1.05rem; max-width: 36em; margin: 0 0 28px; }
.hero-lead strong { color: var(--text); }
.hero-statement { display: block; margin-top: 0.55em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  padding: 12px 20px; border-radius: 4px; border: 1px solid transparent;
  cursor: pointer; transition: .15s;
}
.btn-primary { background: var(--phosphor); color: var(--ink); }
.btn-primary:hover { filter: brightness(1.1); text-decoration: none; }
.btn-ghost { border-color: var(--phosphor-dim); color: var(--phosphor); }
.btn-ghost:hover { border-color: var(--phosphor); text-decoration: none; }
.hero-hint { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0; }
.hero-hint kbd {
  border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px;
  font-family: var(--mono); font-size: 11px; color: var(--text); background: var(--panel);
}

/* Terminal side card */
.term-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 180, 84, .05), 0 24px 60px rgba(0, 0, 0, .5);
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.term-title { margin-left: 6px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.term-body { padding: 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.8; }
.tl .cmd { color: #e8edf8; }
.tl .ok { color: var(--long); } .tl .warn { color: var(--phosphor); }
.tl .key { color: var(--muted); } .tl .val { color: var(--long); }
.tl.mt { margin-top: 10px; }
.term-metrics {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: 16px;
}
.metric {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; display: flex; flex-direction: column;
}
.metric .label { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.metric .value { font-size: 18px; font-weight: 700; color: var(--phosphor); }

/* ════════ Stat band ════════ */
.statband { background: var(--panel-2); border-block: 1px solid var(--line); }
.statband-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
@media (max-width: 880px) { .statband-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 22px 20px;
  border-right: 1px solid var(--line);
  font-family: var(--mono);
}
.stat:last-child { border-right: none; }
.stat b { display: block; font-size: 26px; color: #e8edf8; }
.stat b i { color: var(--long); font-style: normal; }
.stat span { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* Claude Code usage proof */
.usage-section { padding-top: 48px; }
.usage-heading { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 24px; }
.usage-heading h2 { margin-bottom: 0; }
.usage-heading > p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; max-width: 390px; text-align: right; }
.usage-toolchain { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 14px; padding: 20px 22px; }
.usage-toolchain > div:first-child { align-items: start; display: grid; gap: 24px; grid-template-columns: max-content 1fr; }
.usage-toolchain > div > span, .usage-cadence > span { color: var(--phosphor); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.usage-toolchain p { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
.usage-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
.usage-tools span { border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-family: var(--mono); font-size: 10px; padding: 5px 8px; }
.usage-tools b { color: var(--long); }
.usage-proof { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) 250px; margin-inline: auto; max-width: 900px; }
.usage-capture, .usage-cadence { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; margin: 0; overflow: hidden; }
.usage-capture a { display: block; }
.usage-capture a:focus-visible { outline: 2px solid var(--phosphor); outline-offset: -3px; }
.usage-capture img { display: block; height: auto; transition: opacity .16s ease; width: 100%; }
.usage-capture a:hover img { opacity: .86; }
.usage-capture figcaption { border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 10px; padding: 9px 12px; }
.usage-cadence { display: flex; flex-direction: column; justify-content: center; padding: 26px; }
.usage-cadence-stat { border-bottom: 1px solid var(--line); padding: 20px 0; }
.usage-cadence-stat b { color: var(--text); display: block; font-family: var(--mono); font-size: clamp(36px, 4vw, 58px); line-height: 1; }
.usage-cadence-stat b em { color: var(--muted); font-size: .35em; font-style: normal; font-weight: 500; }
.usage-cadence-stat small { color: var(--muted); display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; margin-top: 7px; text-transform: uppercase; }
.usage-cadence p { color: var(--muted); font-family: var(--mono); font-size: 10px; line-height: 1.55; margin: 18px 0 0; }

/* AI journey */
.ai-journey-section { padding-top: 104px; }
.journey-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 24px; }
.journey-heading h2 { margin: 0; }
.journey-heading > p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; max-width: 470px; text-align: right; }
.journey-console { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.journey-console-bar { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--panel); color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.journey-console-bar > span:nth-of-type(4) { margin-left: 6px; }
.journey-console-bar b { color: var(--long); font-weight: 500; margin-left: auto; }
.journey-map {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 130px 112px; list-style: none; margin: 0; padding: 90px 52px 126px;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--line) 60%, transparent) 1px, transparent 1px);
  background-size: 24px 24px;
}
.journey-map::after { content: "N ↑"; position: absolute; top: 26px; right: 28px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .14em; }
.journey-route { position: absolute; z-index: 0; inset: 22px 26px 28px; width: calc(100% - 52px); height: calc(100% - 50px); overflow: visible; color: var(--phosphor); pointer-events: none; }
.journey-route-shadow, .journey-route-line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.journey-route-shadow { stroke: color-mix(in srgb, var(--phosphor) 14%, transparent); stroke-width: 13px; }
.journey-route-line { stroke: var(--phosphor); stroke-width: 2.5px; stroke-dasharray: 10 10; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--phosphor) 50%, transparent)); animation: journey-route-march 8s linear infinite; }
@keyframes journey-route-march { to { stroke-dashoffset: -80; } }
.journey-route marker path { fill: var(--phosphor); }
.journey-territory { position: absolute; z-index: 0; color: color-mix(in srgb, var(--muted) 45%, transparent); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; writing-mode: vertical-rl; }
.territory-one { top: 15%; left: 49%; }
.territory-two { top: 47%; left: 49%; }
.territory-three { top: 78%; left: 49%; }
.journey-row {
  position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0;
  overflow: visible; background: color-mix(in srgb, var(--panel-2) 94%, transparent);
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 22px 50px color-mix(in srgb, var(--ink) 76%, transparent);
  transform: rotate(-.45deg); transition: border-color .18s ease, transform .18s ease;
}
.journey-row::after { content: attr(data-year); position: absolute; z-index: 0; right: 12px; bottom: 2px; color: var(--text); font-family: var(--mono); font-size: clamp(48px, 6vw, 76px); font-weight: 700; line-height: 1; letter-spacing: -.08em; opacity: .035; pointer-events: none; }
.journey-row:nth-of-type(even) { transform: translateY(72px) rotate(.45deg); }
.journey-row:hover { z-index: 3; border-color: var(--phosphor-dim); transform: translateY(-4px) rotate(0); }
.journey-row:nth-of-type(even):hover { transform: translateY(68px) rotate(0); }
.journey-node {
  position: absolute; z-index: 4; top: -17px; left: 25px; display: grid; place-items: center;
  min-width: 72px; height: 36px; padding: 0 10px; color: var(--ink); background: var(--phosphor);
  border: 5px solid var(--panel-2); border-radius: 6px; font-family: var(--mono);
  font-size: 12px; font-weight: 800; letter-spacing: .08em; box-shadow: 0 0 0 1px var(--phosphor-dim), 0 0 22px color-mix(in srgb, var(--phosphor) 38%, transparent);
}
.journey-row:nth-of-type(even) .journey-node { left: auto; right: 25px; }
.journey-row:nth-of-type(3) .journey-node, .journey-row:nth-of-type(4) .journey-node { background: color-mix(in srgb, var(--phosphor) 62%, var(--long)); }
.journey-row:nth-of-type(5) .journey-node, .journey-row:nth-of-type(6) .journey-node { background: var(--long); box-shadow: 0 0 0 1px var(--long), 0 0 22px color-mix(in srgb, var(--long) 38%, transparent); }
.journey-copy { order: 2; position: relative; z-index: 1; padding: 24px 20px 26px; text-align: left; }
.journey-meta { display: flex; justify-content: flex-start; align-items: center; gap: 9px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; margin: 0 0 11px; }
.journey-meta span { border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px; }
.journey-copy h3 { font-size: clamp(16px, 2vw, 22px); letter-spacing: -.01em; line-height: 1.2; margin: 0 0 10px; }
.journey-copy > p:not(.journey-meta) { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0; }
.journey-proof { display: inline-block; margin-top: 13px; padding: 4px 8px; color: var(--long); border: 1px solid color-mix(in srgb, var(--long) 45%, var(--line)); border-radius: 4px; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.journey-evidence { order: 1; position: relative; margin: 0; overflow: hidden; min-height: 210px; background: var(--ink); border-radius: 9px 9px 0 0; }
.journey-evidence img { display: block; width: 100%; height: 210px; object-fit: cover; filter: saturate(.72) contrast(1.05); }
.class-evidence .evidence-image-stage { position: relative; display: grid; place-items: center; height: 260px; overflow: hidden; background: var(--ink); }
.class-evidence .evidence-image-stage img { display: block; }
.class-evidence .evidence-backdrop { position: absolute; inset: -18px; width: calc(100% + 36px); height: calc(100% + 36px); object-fit: cover; opacity: .42; filter: blur(16px) saturate(.65) brightness(.48); transform: scale(1.08); }
.class-evidence .evidence-focus { position: relative; z-index: 1; width: min(70%, 250px); height: auto; aspect-ratio: 512 / 510; object-fit: cover; border: 1px solid var(--line); border-radius: 7px; filter: none; box-shadow: 0 14px 36px color-mix(in srgb, var(--ink) 78%, transparent); }
.dl-eeg-evidence > img { height: auto; aspect-ratio: 1400 / 745; object-fit: contain; filter: none; }
.moabb-evidence img { height: auto; aspect-ratio: 1094 / 872; object-fit: contain; filter: none; }
.strategy-team-evidence img { height: auto; aspect-ratio: 739 / 724; object-fit: contain; filter: none; }
.trust-model-evidence img { height: auto; aspect-ratio: 3127 / 3168; object-fit: contain; filter: none; }
.journey-evidence figcaption { display: flex; justify-content: space-between; gap: 12px; min-height: 39px; padding: 11px 12px; border-top: 1px solid var(--line); color: var(--muted); background: var(--panel); font-family: var(--mono); font-size: 9px; line-height: 1.5; }
.journey-evidence figcaption span { color: var(--phosphor); white-space: nowrap; }
.journey-placeholder { display: grid; grid-template-rows: 1fr auto; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; }
.journey-placeholder::after { content: "ASSET SLOT"; position: absolute; top: 10px; right: 10px; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; }
.placeholder-network { align-self: center; justify-self: center; position: relative; display: grid; grid-template-columns: repeat(3, 20px); grid-template-rows: repeat(2, 20px); gap: 25px 42px; }
.placeholder-network::before, .placeholder-network::after { content: ""; position: absolute; inset: 10px -22px; opacity: .55; background: repeating-linear-gradient(25deg, transparent 0 10px, var(--phosphor-dim) 11px 12px, transparent 13px 20px); }
.placeholder-network::after { transform: scaleY(-1); }
.placeholder-network i { z-index: 1; width: 18px; height: 18px; border: 1px solid var(--phosphor); border-radius: 50%; background: var(--panel-2); box-shadow: 0 0 10px color-mix(in srgb, var(--phosphor) 18%, transparent); }
.placeholder-command { align-self: center; justify-self: center; display: grid; gap: 12px; width: calc(100% - 48px); padding: 20px; background: color-mix(in srgb, var(--panel-2) 90%, transparent); border: 1px solid var(--line); border-radius: 7px; font-family: var(--mono); font-size: 10px; }
.placeholder-command span { color: var(--phosphor); }
.placeholder-command b { color: var(--text); font-size: 11px; }
.placeholder-command em { color: var(--long); font-style: normal; }
.placeholder-agents { align-self: center; justify-self: center; position: relative; display: grid; grid-template-columns: repeat(3, 42px); gap: 18px; }
.placeholder-agents i, .placeholder-agents b { display: grid; place-items: center; height: 42px; color: var(--phosphor); background: var(--panel-2); border: 1px solid var(--phosphor-dim); border-radius: 50%; font-family: var(--mono); font-size: 9px; font-style: normal; }
.placeholder-agents b { color: var(--long); border-color: var(--long); border-radius: 6px; }
.journey-shipping-proof { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 18px; align-items: center; margin: 0 18px 18px; padding: 22px 26px; background: linear-gradient(110deg, color-mix(in srgb, var(--long) 9%, var(--panel-2)), var(--panel-2) 58%); border: 1px solid color-mix(in srgb, var(--long) 58%, var(--line)); border-left: 4px solid var(--long); border-radius: 10px; box-shadow: 0 14px 38px color-mix(in srgb, var(--ink) 54%, transparent); }
.shipping-proof-mark { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); background: var(--long); border-radius: 50%; font-family: var(--mono); font-size: 22px; font-weight: 900; box-shadow: 0 0 22px color-mix(in srgb, var(--long) 28%, transparent); }
.journey-shipping-proof .kicker { color: var(--long); margin-bottom: 7px; }
.journey-shipping-proof div > p:last-child { color: var(--text); font-size: clamp(17px, 2vw, 23px); line-height: 1.38; letter-spacing: -.015em; margin: 0; }
.journey-shipping-proof div > p:last-child > span { display: block; }
.journey-shipping-proof strong { color: var(--long); font-weight: 750; }
.shipping-proof-status { padding: 6px 9px; color: var(--long); border: 1px solid color-mix(in srgb, var(--long) 52%, var(--line)); border-radius: 4px; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; white-space: nowrap; }
.ahead-readout { margin-top: 18px; padding: 30px; background: var(--panel-2); border: 1px solid var(--phosphor-dim); border-radius: 12px; }
.ahead-copy { display: grid; grid-template-columns: .55fr 1fr 1.4fr; gap: 22px; align-items: start; }
.ahead-copy .kicker { margin: 5px 0 0; }
.ahead-copy h3 { font-size: clamp(22px, 3vw, 34px); letter-spacing: -.03em; line-height: 1.1; margin: 0; }
.ahead-copy > p:last-child { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 3px 0 0; }
.ahead-waves { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 32px; }
.ahead-wave { --wave-accent: var(--phosphor); position: relative; overflow: hidden; min-height: 215px; padding: 18px 16px 12px; background: var(--ink); border: 1px solid var(--line); border-radius: 8px; }
.ahead-wave:nth-child(2) { --wave-accent: color-mix(in srgb, var(--phosphor) 72%, var(--long)); }
.ahead-wave:nth-child(3) { --wave-accent: color-mix(in srgb, var(--phosphor) 40%, var(--long)); }
.ahead-wave:nth-child(4) { --wave-accent: var(--long); }
.ahead-wave::after { content: attr(data-order); position: absolute; top: 10px; right: 12px; color: color-mix(in srgb, var(--muted) 24%, transparent); font-family: var(--mono); font-size: 32px; font-weight: 800; line-height: 1; }
.ahead-wave svg { display: block; width: calc(100% + 8px); height: auto; margin: 15px -4px -2px; }
.ahead-wave .ahead-wave-line, .ahead-wave .ahead-wave-shadow { fill: none; stroke: var(--wave-accent); stroke-width: 3; }
.ahead-wave .ahead-wave-shadow { stroke-width: 12; opacity: .12; }
.ahead-wave .ahead-consensus { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.ahead-wave circle { fill: var(--wave-accent); filter: drop-shadow(0 0 6px var(--wave-accent)); }
.ahead-wave > span { color: var(--wave-accent); font-family: var(--mono); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.ahead-wave h4 { color: var(--text); font-family: var(--mono); font-size: 15px; line-height: 1.2; letter-spacing: .03em; margin: 10px 0 0; }
.ahead-wave p { color: var(--muted); font-family: var(--mono); font-size: 10px; line-height: 1.4; letter-spacing: .06em; margin: 4px 0 0; }
.ahead-verdict { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text); font-family: var(--mono); font-size: 12px; letter-spacing: .07em; }
.ahead-verdict span { color: var(--ink); background: var(--long); border-radius: 3px; padding: 3px 6px; font-size: 9px; font-weight: 700; }

@media (max-width: 880px) and (min-width: 721px) {
  .ahead-waves { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .ai-journey-section { padding-top: 80px; }
  .journey-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .journey-heading > p { text-align: left; }
  .journey-console-bar b { display: none; }
  .journey-map { grid-template-columns: 1fr; gap: 76px; padding: 66px 18px 82px 54px; background-size: 20px 20px; }
  .journey-map::after { top: 18px; right: 16px; }
  .journey-route { inset: 16px auto 24px 8px; width: 46px; height: calc(100% - 40px); }
  .journey-route-shadow { stroke-width: 20px; }
  .journey-route-line { stroke-width: 5px; stroke-dasharray: 20 20; }
  .journey-territory { display: none; }
  .journey-row, .journey-row:nth-of-type(even) { transform: rotate(-.35deg); }
  .journey-row:nth-of-type(even) { transform: rotate(.35deg); }
  .journey-row:hover, .journey-row:nth-of-type(even):hover { transform: translateY(-3px) rotate(0); }
  .journey-node, .journey-row:nth-of-type(even) .journey-node { left: -54px; right: auto; top: 22px; min-width: 64px; height: 32px; padding: 0 7px; border-width: 4px; font-size: 10px; }
  .journey-copy { padding: 18px; }
  .journey-evidence { width: 100%; min-height: 200px; }
  .journey-evidence img { height: 200px; }
  .class-evidence .evidence-image-stage { height: 230px; }
  .class-evidence .evidence-focus { width: min(84%, 220px); height: auto; }
  .journey-shipping-proof { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 20px 18px; }
  .shipping-proof-mark { width: 40px; height: 40px; }
  .shipping-proof-status { grid-column: 2; justify-self: start; }
  .ahead-readout { padding: 22px 18px; }
  .ahead-copy { grid-template-columns: 1fr; gap: 8px; }
  .ahead-waves { grid-template-columns: 1fr; }
  .ahead-wave { min-height: 0; display: grid; grid-template-columns: 72px 1fr; column-gap: 14px; padding: 16px; }
  .ahead-wave::after { display: none; }
  .ahead-wave > span { grid-row: 1 / span 2; align-self: center; font-size: 14px; }
  .ahead-wave h4 { margin-top: 0; }
  .ahead-wave p { grid-column: 2; }
  .ahead-wave svg { grid-column: 1 / -1; height: 72px; margin-top: 10px; }
  .ahead-verdict { align-items: flex-start; line-height: 1.5; }
}

/* ════════ Sections ════════ */
.section { padding: 72px 24px 8px; }
.kicker { font-family: var(--mono); font-size: 12px; color: var(--phosphor); letter-spacing: .08em; margin: 0 0 8px; }
h2 { font-family: var(--mono); font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: #e8edf8; letter-spacing: -.01em; margin: 0 0 28px; }
h3 { font-family: var(--mono); font-size: 14px; letter-spacing: .04em; color: #e8edf8; margin: 0 0 10px; }

/* Capability cards */
.cards-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .cards-2col { grid-template-columns: 1fr; } }
.card {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 24px;
}
.card p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 4px; padding: 4px 8px;
}

/* Timeline */
.timeline { border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); overflow: hidden; }
.trow {
  display: grid; grid-template-columns: 150px 1fr; gap: 24px;
  padding: 22px 24px; border-bottom: 1px solid var(--line);
}
.trow:last-child { border-bottom: none; }
@media (max-width: 720px) { .trow { grid-template-columns: 1fr; gap: 6px; } }
.tdate { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 3px; }
.tbody-cell h3 .at { color: var(--phosphor); font-weight: 400; }
.tbody-cell p { color: var(--muted); font-size: 14px; margin: 0; }

/* Field notes */
.field-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: center; }
@media (max-width: 720px) { .field-grid { grid-template-columns: 1fr; } }
.field-photo { margin: 0; }
.field-photo-link { border-radius: 12px; display: block; }
.field-photo-link:focus-visible { outline: 2px solid var(--phosphor); outline-offset: 3px; }
.field-photo img {
  width: 100%; height: auto; display: block; border-radius: 12px;
  border: 1px solid var(--line);
  aspect-ratio: 1080 / 1236; object-fit: cover; transition: border-color .16s ease, transform .16s ease; /* reserve space pre-load: no layout shift */
}
.field-photo-link:hover img { border-color: var(--phosphor); transform: translateY(-2px); }
.field-photo figcaption { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 10px; }
.field-copy p { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }
.text-link { display: inline-block; font-family: var(--mono); font-size: 13px; margin-top: 18px; }

/* Projects */
.proj-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-btn {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 6px 12px; cursor: pointer; transition: .15s;
}
.filter-btn:hover { color: var(--text); border-color: var(--phosphor-dim); }
.filter-btn.active { color: var(--ink); background: var(--phosphor); border-color: var(--phosphor); font-weight: 700; }

.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .proj-grid { grid-template-columns: 1fr; } }
.proj-card {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: border-color .16s ease, transform .16s ease;
}
.proj-card:hover { border-color: var(--phosphor); transform: translateY(-2px); }
.proj-card img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.proj-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.proj-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.proj-body h3 { margin: 0; font-size: 13px; }
.proj-year {
  font-family: var(--mono); font-size: 11.5px; color: var(--phosphor);
  white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: .04em;
}
.proj-card-link { color: inherit; text-decoration: none; }
.proj-card-link::after { content: ''; inset: 0; position: absolute; }
.proj-card-link:focus-visible { outline: none; }
.proj-card-link:focus-visible::after { border: 2px solid var(--phosphor); border-radius: 12px; outline: 2px solid var(--phosphor); outline-offset: 3px; }
.proj-body p { color: var(--muted); font-size: 13px; margin: 0; flex: 1; }
.proj-links { display: flex; gap: 14px; font-family: var(--mono); font-size: 12px; position: relative; z-index: 1; }

/* Publications */
.pubs { display: flex; flex-direction: column; gap: 12px; }
.pub {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  color: inherit; padding: 18px 22px; text-decoration: none;
  display: flex; align-items: center; gap: 18px;
  transition: border-color .16s ease, transform .16s ease;
}
.pub-thumb {
  width: 56px; height: 56px; flex-shrink: 0; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line); background: var(--panel);
}
.pub-body { flex: 1; min-width: 0; }
.pub.featured { border-color: var(--phosphor-dim); }
.pub.phd {
  background: var(--panel); border-color: var(--phosphor-dim);
  border-left: 3px solid var(--phosphor);
}
.pub.phd .pub-thumb { width: 72px; height: 72px; }
.pub.phd h3 { font-size: 16px; }
.pub-kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  color: var(--phosphor); margin: 0 0 6px;
}
@media (max-width: 480px) { .pub-thumb { display: none; } }
.pub:hover { border-color: var(--phosphor); color: inherit; transform: translateY(-2px); }
.pub:focus-visible { border-color: var(--phosphor); outline: 2px solid var(--phosphor); outline-offset: 3px; }
.pub h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0; margin-bottom: 6px; }
.pub-meta { font-size: 13px; color: var(--muted); margin: 0; }
.pub-meta i { color: var(--text); }
.pub-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--phosphor); margin: 8px 0 0; }
.pubs-more { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 18px; }

/* Contact */
.contact-band {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: var(--panel-2);
  padding: 64px 0 40px;
}
.contact-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.contact-links { display: flex; flex-wrap: wrap; gap: 22px; font-family: var(--mono); font-size: 14px; margin-bottom: 34px; }
.signature { height: 44px; width: auto; opacity: .8; filter: invert(.85); margin-bottom: 22px; }
.footer-line { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); margin: 0; }

/* ════════ Navigable content pages ════════ */
.content-shell { width: min(1080px, 100%); margin: 0 auto; padding: 0 24px 72px; }
.content-hero { padding: 72px 0 58px; border-bottom: 1px solid var(--line); }
.content-hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 54px; align-items: center; }
.content-hero h1, .project-hero h1, .content-empty h1 { margin-bottom: 18px; }
.content-lead { color: var(--muted); font-size: 1.08rem; max-width: 42rem; margin: 0; }
.archive-note { color: var(--muted); border-left: 2px solid var(--phosphor-dim); font-family: var(--mono); font-size: 12px; margin: 26px 0 0; padding-left: 14px; }
.content-hero-media, .project-hero-media { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel-2); }
.content-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 25%; display: block; }
.content-hero-media figcaption { color: var(--muted); font-family: var(--mono); font-size: 10px; padding: 9px 12px; }
.content-section { padding-top: 58px; }
.content-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.content-section-heading h2 { margin-bottom: 18px; }
.content-search input {
  width: min(290px, 100%); background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 7px; color: var(--text); font-family: var(--mono); font-size: 12px;
  outline: none; padding: 10px 12px;
}
.content-search input:focus { border-color: var(--phosphor); }
.archive-count { color: var(--muted); font-family: var(--mono); font-size: 11px; margin: -8px 0 18px; }
.speaking-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.speaking-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; min-height: 184px; overflow: hidden; padding: 14px; }
.speaking-card-link { color: inherit; text-decoration: none; transition: border-color .16s ease, transform .16s ease; }
.speaking-card-link:hover { border-color: var(--phosphor); color: inherit; transform: translateY(-2px); }
.speaking-card-link:focus-visible { border-color: var(--phosphor); outline: 2px solid var(--phosphor); outline-offset: 3px; }
.speaking-thumb { align-self: start; aspect-ratio: 3 / 2; border: 1px solid var(--line); border-radius: 7px; display: block; height: auto; object-fit: cover; width: 112px; }
.speaking-card-body { display: flex; flex-direction: column; min-width: 0; }
.speaking-card h3 { font-size: 15px; margin: 13px 0 5px; }
.speaking-card-body > p { color: var(--muted); margin: 0; }
.speaking-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.speaking-meta span, .project-meta span {
  border: 1px solid var(--line); border-radius: 999px; color: var(--long);
  font-family: var(--mono); font-size: 9px; letter-spacing: .08em; padding: 2px 8px; text-transform: uppercase;
}
.speaking-source { border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; margin-top: auto; padding-top: 12px; }
.speaking-source span { color: var(--muted); }
.content-footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; margin-top: 64px; padding-top: 22px; }

.project-detail { padding-top: 34px; }
.content-back { display: inline-block; font-family: var(--mono); font-size: 12px; margin-bottom: 28px; }
.project-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-bottom: 58px; border-bottom: 1px solid var(--line); }
.project-meta { display: flex; gap: 7px; margin: 12px 0 18px; }
.project-actions { display: flex; flex-wrap: wrap; gap: 17px; font-family: var(--mono); font-size: 12px; margin-top: 28px; }
.project-hero-media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.project-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(220px, .55fr); gap: 54px; padding: 58px 0 12px; }
.project-body h2 { margin-bottom: 20px; }
.project-body p:not(.kicker) { color: var(--muted); font-size: 15px; max-width: 48rem; }
.project-stack { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; align-self: start; padding: 20px; }
.project-stack .chips { margin-top: 14px; }
.project-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.project-directory a { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-family: var(--mono); font-size: 11px; padding: 10px 12px; }
.project-directory a:hover, .project-directory a.active { border-color: var(--phosphor-dim); color: var(--phosphor); text-decoration: none; }
.content-empty { min-height: calc(100vh - 44px); display: grid; place-content: center; justify-items: start; }

@media (max-width: 720px) {
  .content-shell { padding-inline: 18px; }
  .content-hero { padding-top: 44px; }
  .content-hero-grid, .project-hero, .project-body { grid-template-columns: 1fr; gap: 28px; }
  .content-hero-media { order: -1; }
  .content-section-heading { align-items: stretch; flex-direction: column; gap: 0; }
  .content-search input { width: 100%; }
  .speaking-grid { grid-template-columns: 1fr; }
  .speaking-card { grid-template-columns: 96px minmax(0, 1fr); gap: 13px; min-height: 168px; padding: 12px; }
  .speaking-thumb { width: 96px; }
  .project-directory { grid-template-columns: 1fr 1fr; }
  .content-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
}

/* ════════ CLI mode ════════ */
#cli-root { position: fixed; inset: 44px 0 0; z-index: 40; background: var(--ink); }
.cli-screen {
  height: 100%; overflow-y: auto;
  padding: 24px clamp(16px, 4vw, 48px) 40px;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.7;
  cursor: text;
}
#cli-scrollback { white-space: pre-wrap; word-break: break-word; }
#cli-scrollback .out-cmd { color: #e8edf8; }
#cli-scrollback .out-dim { color: var(--muted); }
#cli-scrollback .out-accent { color: var(--phosphor); }
#cli-scrollback .out-ok { color: var(--long); }
#cli-scrollback .out-err { color: var(--short); }
#cli-scrollback a { color: var(--phosphor); }
.cli-bio { max-width: 80ch; }
.cli-bio strong { color: var(--text); }
.cli-bio p { margin: 6px 0 16px; }
.cli-facts { border: 1px solid var(--line); border-radius: 8px; max-width: 760px; overflow: hidden; }
.cli-fact-row { display: grid; grid-template-columns: 106px minmax(0, 1fr); }
.cli-fact-row + .cli-fact-row { border-top: 1px solid var(--line); }
.cli-fact-row > span { padding: 7px 12px; }
.cli-fact-key { background: var(--panel-2); border-right: 1px solid var(--line); color: var(--phosphor); font-weight: 700; }

.cli-welcome {
  border: 1px solid var(--phosphor-dim); border-radius: 8px;
  padding: 12px 18px; margin-bottom: 16px;
  color: var(--text); display: inline-block;
}
.cli-welcome .star { color: var(--phosphor); }

.cli-suggest { margin: 0 0 18px; }
.cli-suggest .lbl { color: var(--muted); margin-right: 6px; }
.suggest-btn {
  font-family: var(--mono); font-size: 12px;
  color: var(--phosphor); background: transparent;
  border: 1px solid var(--phosphor-dim); border-radius: 4px;
  padding: 4px 10px; margin: 0 6px 6px 0; cursor: pointer; transition: .15s;
}
.suggest-btn:hover { background: var(--phosphor); color: var(--ink); }

.cli-input-row { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.cli-prompt { color: var(--long); white-space: nowrap; }
#cli-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #e8edf8; font-family: var(--mono); font-size: 13.5px;
  caret-color: var(--phosphor);
}

/* ════════ AGI mode ════════ */
#agi-root { position: fixed; inset: 44px 0 0; z-index: 40; background: var(--ink); overflow-y: auto; }
.agi-screen {
  width: min(1240px, 100%); min-height: 100%; margin: 0 auto;
  padding: 28px 24px 36px; font-family: var(--mono);
}
.agi-heading {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-bottom: 18px;
}
.agi-heading .kicker { margin-bottom: 4px; }
.agi-title { font-size: clamp(1.55rem, 3vw, 2.15rem); color: #e8edf8; margin: 0 0 5px; }
.agi-sub { color: var(--muted); font-family: var(--sans); font-size: 13px; line-height: 1.5; margin: 0; max-width: 650px; }
.agi-beta {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  color: var(--muted); font-size: 10px; letter-spacing: .12em;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px;
}
.agi-beta span { width: 7px; height: 7px; border-radius: 50%; background: var(--long); box-shadow: 0 0 12px var(--long); }
.agi-call {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(330px, .87fr);
  height: clamp(520px, calc(100vh - 165px), 690px);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--panel-2); box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
}
.agi-call.chat-collapsed { grid-template-columns: minmax(0, 1fr) 44px; }
.agi-stage {
  position: relative; min-height: 0; overflow: hidden; isolation: isolate;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--long) 13%, transparent), transparent 36%),
    linear-gradient(155deg, color-mix(in srgb, var(--panel) 88%, var(--long)), var(--ink));
}
.agi-stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .34;
  background-image:
    linear-gradient(color-mix(in srgb, var(--line) 60%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 60%, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, black 28%, black 70%, transparent);
}
.agi-stage.is-avatar-loading::after {
  content: "INITIALIZING LOCAL 3D RIG"; position: absolute; z-index: 2; left: 50%; top: 50%;
  transform: translate(-50%, -50%); color: var(--long); font-family: var(--mono); font-size: 9px;
  letter-spacing: .14em; white-space: nowrap; padding: 8px 11px; border: 1px solid var(--line);
  border-radius: 999px; background: color-mix(in srgb, var(--ink) 78%, transparent);
  animation: pulse 1.25s ease-in-out infinite alternate;
}
#agi-avatar-canvas, #agi-avatar-3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
#agi-avatar-canvas[hidden], #agi-avatar-3d-canvas[hidden] { display: none; }
.agi-stage canvas {
  transition: width .4s ease, height .4s ease, top .4s ease, right .4s ease,
    border-radius .35s ease, box-shadow .35s ease;
}
.agi-stage.is-presenting #agi-avatar-canvas,
.agi-stage.is-presenting #agi-avatar-3d-canvas {
  z-index: 5; inset: 62px 18px auto auto; width: 224px; height: 168px;
  border: 1px solid var(--phosphor-dim); border-radius: 10px;
  background: var(--ink); box-shadow: 0 14px 38px rgba(0, 0, 0, .56);
}
.agi-stage-glow {
  position: absolute; z-index: 0; left: 50%; bottom: 4%; transform: translateX(-50%);
  width: 72%; height: 18%; border-radius: 50%; background: color-mix(in srgb, var(--phosphor) 12%, transparent);
  filter: blur(28px);
}
.agi-evidence {
  position: absolute; z-index: 2; inset: 14px;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden; color: var(--text); background: color-mix(in srgb, var(--panel-2) 94%, transparent);
  border: 1px solid var(--phosphor-dim); border-radius: 11px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .42); backdrop-filter: blur(12px);
  animation: agi-evidence-in .4s ease both;
}
.agi-evidence[hidden] { display: none; }
@keyframes agi-evidence-in { from { opacity: 0; transform: translateX(-16px); } }
.agi-evidence-bar, .agi-evidence-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 11px; background: color-mix(in srgb, var(--ink) 78%, transparent);
}
.agi-evidence-bar { border-bottom: 1px solid var(--line); }
.agi-evidence-bar > span { display: flex; align-items: center; gap: 7px; color: var(--phosphor); font-size: 8px; letter-spacing: .13em; }
.agi-evidence-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--phosphor); box-shadow: 0 0 9px var(--phosphor); }
.agi-evidence-bar button, .agi-evidence-nav button {
  color: var(--muted); background: transparent; border: 0; font-family: var(--mono); cursor: pointer;
}
.agi-evidence-bar button { padding: 0 2px; font-size: 20px; line-height: 1; }
.agi-evidence-bar button:hover, .agi-evidence-nav button:hover { color: var(--text); }
.agi-evidence-media { position: relative; min-height: 0; background: var(--ink); overflow: hidden; }
.agi-evidence-media img, .agi-evidence-media video { width: 100%; height: 100%; display: block; object-fit: contain; }
.agi-evidence-media::after { content: ""; position: absolute; inset: auto 0 0; height: 24%; background: linear-gradient(transparent, color-mix(in srgb, var(--ink) 55%, transparent)); pointer-events: none; }
.agi-evidence-copy { padding: 13px 14px 11px; }
.agi-evidence-copy > p:first-child { color: var(--long); font-size: 8px; letter-spacing: .14em; margin: 0 0 5px; text-transform: uppercase; }
.agi-evidence-copy h3 { color: var(--text); font-size: 15px; line-height: 1.2; margin: 0 0 6px; }
.agi-evidence-copy > p:not(:first-child) { color: var(--muted); font-family: var(--sans); font-size: 11px; line-height: 1.45; margin: 0; }
.agi-evidence-copy a { display: inline-block; color: var(--phosphor); font-size: 9px; margin-top: 8px; text-decoration: none; }
.agi-evidence-copy a:hover { text-decoration: underline; }
.agi-evidence-nav { border-top: 1px solid var(--line); padding-block: 7px; }
.agi-evidence-nav > span { color: var(--muted); font-size: 8px; letter-spacing: .1em; }
.agi-evidence-nav div { display: flex; gap: 6px; }
.agi-evidence-nav button { width: 27px; height: 24px; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; }
.agi-evidence-nav button:disabled { opacity: .3; cursor: default; }
.agi-avatar-label {
  position: absolute; z-index: 3; top: 18px; left: 18px;
  display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px;
  background: color-mix(in srgb, var(--ink) 78%, transparent); backdrop-filter: blur(10px);
}
.agi-stage.is-presenting .agi-avatar-label {
  z-index: 6; inset: 70px 26px auto auto; max-width: 204px;
  padding: 6px 8px; border-color: var(--phosphor-dim);
}
.agi-stage.is-presenting .agi-avatar-label small { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agi-live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--long); box-shadow: 0 0 12px var(--long); }
.agi-avatar-label b { display: block; color: #e8edf8; font-size: 11px; letter-spacing: .1em; }
.agi-avatar-label small { display: block; color: var(--muted); font-size: 10px; margin-top: -2px; }
.agi-thinking {
  position: absolute; z-index: 4; left: 50%; top: 35%; transform: translate(-50%, -50%);
  display: flex; gap: 6px; padding: 10px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 75%, transparent); border: 1px solid var(--line);
}
.agi-stage.is-presenting .agi-thinking { z-index: 7; inset: 128px 86px auto auto; transform: none; }
.agi-thinking[hidden] { display: none; }
.agi-thinking span { width: 6px; height: 6px; border-radius: 50%; background: var(--phosphor); animation: agi-think 1s infinite ease-in-out; }
.agi-thinking span:nth-child(2) { animation-delay: .16s; }
.agi-thinking span:nth-child(3) { animation-delay: .32s; }
@keyframes agi-think { 0%, 70%, 100% { transform: translateY(0); opacity: .4; } 35% { transform: translateY(-5px); opacity: 1; } }
.agi-renderer-badge {
  position: absolute; z-index: 3; right: 18px; top: 18px;
  color: var(--long); font-size: 9px; letter-spacing: .12em;
  padding: 6px 9px; border: 1px solid color-mix(in srgb, var(--long) 45%, transparent);
  border-radius: 999px; background: color-mix(in srgb, var(--ink) 78%, transparent);
  backdrop-filter: blur(10px);
}
.agi-renderer-badge[hidden] { display: none; }
.agi-stage.is-presenting .agi-renderer-badge { display: none; }
.agi-self-video {
  position: absolute; z-index: 4; right: 16px; bottom: 18px;
  width: min(29%, 170px); aspect-ratio: 4 / 3; object-fit: cover; transform: scaleX(-1);
  border: 1px solid var(--phosphor-dim); border-radius: 9px; background: var(--panel);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .4);
}
.agi-stage.is-presenting .agi-self-video { z-index: 6; inset: 242px 18px auto auto; width: 128px; }
.agi-wave {
  position: absolute; z-index: 3; left: 20px; bottom: 23px; height: 28px;
  display: flex; align-items: center; gap: 3px;
}
.agi-stage.is-presenting .agi-wave { z-index: 6; inset: 201px 184px auto auto; }
.agi-wave i { display: block; width: 3px; height: 5px; border-radius: 9px; background: var(--long); transition: height .12s; }
.agi-stage[data-state="listening"] .agi-wave i { animation: agi-wave .72s infinite ease-in-out alternate; }
.agi-stage[data-state="listening"] .agi-wave i:nth-child(2n) { animation-delay: -.25s; }
.agi-stage[data-state="listening"] .agi-wave i:nth-child(3n) { animation-delay: -.48s; }
.agi-stage[data-state="speaking"] .agi-wave i { background: var(--phosphor); animation: agi-wave .42s infinite ease-in-out alternate; }
.agi-stage[data-state="speaking"] .agi-wave i:nth-child(2n) { animation-delay: -.16s; }
@keyframes agi-wave { to { height: 26px; } }

.agi-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--panel-2); }
.agi-panel-bar {
  min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 12px 8px 18px; border-bottom: 1px solid var(--line); background: var(--ink);
}
.agi-panel-bar > span { color: var(--muted); font-size: 8px; letter-spacing: .13em; }
.agi-panel-bar button {
  display: inline-flex; align-items: center; gap: 7px; color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 8px;
  letter-spacing: .06em; padding: 5px 8px; cursor: pointer;
}
.agi-panel-bar button:hover { color: var(--text); border-color: var(--phosphor-dim); }
.agi-panel-bar button i { color: var(--phosphor); font-style: normal; font-size: 11px; }
.agi-langs { display: inline-flex; gap: 4px; margin-left: auto; }
.agi-langs button[aria-pressed="true"] {
  color: var(--ink); background: var(--phosphor); border-color: var(--phosphor);
}
.agi-call.chat-collapsed .agi-panel-bar {
  flex: 1; min-height: 100%; justify-content: flex-start; padding: 11px 7px; border-bottom: 0;
}
.agi-call.chat-collapsed .agi-panel-bar > span,
.agi-call.chat-collapsed .agi-langs,
.agi-call.chat-collapsed .agi-panel-bar button span { display: none; }
.agi-call.chat-collapsed .agi-panel-bar button { width: 29px; height: 29px; justify-content: center; padding: 0; }
.agi-call.chat-collapsed .agi-transcript,
.agi-call.chat-collapsed .agi-prompts,
.agi-call.chat-collapsed .agi-input-form,
.agi-call.chat-collapsed .agi-controls,
.agi-call.chat-collapsed .agi-privacy { display: none; }
.agi-transcript {
  flex: 1; min-height: 0; overflow-y: auto; padding: 22px;
  scrollbar-color: var(--line) transparent;
}
.agi-message { margin: 0 0 20px; max-width: 92%; text-align: left; }
.agi-message.user { margin-left: auto; }
.agi-message > span { display: block; color: var(--muted); font-size: 9px; letter-spacing: .12em; margin: 0 0 5px 5px; }
.agi-message.user > span { text-align: right; margin-right: 5px; }
.agi-message p {
  display: inline-block; color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.55;
  margin: 0; padding: 10px 13px; border: 1px solid var(--line); border-radius: 4px 12px 12px 12px;
  background: var(--panel);
}
.agi-message.user p { float: right; color: #e8edf8; border-color: var(--phosphor-dim); border-radius: 12px 4px 12px 12px; }
.agi-message.user::after { content: ""; display: block; clear: both; }
.agi-message.error p { color: var(--short); }
.agi-prompts { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 18px 14px; }
.agi-prompts button {
  color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--mono); font-size: 10px; padding: 6px 10px; cursor: pointer;
}
.agi-prompts button:hover { color: var(--phosphor); border-color: var(--phosphor-dim); }
.agi-input-form { display: flex; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }
#agi-input {
  min-width: 0; flex: 1; color: #e8edf8; background: var(--ink); border: 1px solid var(--line); border-radius: 7px;
  font-family: var(--sans); font-size: 14px; padding: 11px 12px; outline: none;
}
#agi-input:focus { border-color: var(--phosphor-dim); box-shadow: 0 0 0 2px color-mix(in srgb, var(--phosphor) 9%, transparent); }
.agi-send {
  flex: 0 0 42px; color: var(--ink); background: var(--phosphor); border: none; border-radius: 7px;
  font-size: 20px; cursor: pointer;
}
.agi-send:disabled { opacity: .45; cursor: wait; }
.agi-controls { display: grid; grid-template-columns: 1.35fr 1fr 1fr .78fr; gap: 7px; padding: 0 18px 12px; }
.agi-control {
  min-width: 0; display: inline-flex; justify-content: center; align-items: center; gap: 7px;
  color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 7px;
  font-family: var(--mono); font-size: 10px; padding: 9px 7px; cursor: pointer;
}
.agi-control:hover:not(:disabled) { color: var(--text); border-color: var(--phosphor-dim); }
.agi-control:disabled { opacity: .42; cursor: not-allowed; }
.agi-control.primary { color: var(--ink); background: var(--long); border-color: var(--long); font-weight: 700; }
.agi-control.danger:not(:disabled) { color: var(--short); }
.agi-control[aria-pressed="true"] { color: var(--long); border-color: var(--long); }
.agi-control .control-icon { font-size: 9px; letter-spacing: .04em; }
.agi-privacy { color: var(--muted); font-family: var(--sans); font-size: 10.5px; line-height: 1.45; margin: 0; padding: 0 18px 14px; }
.agi-privacy code { color: var(--phosphor); font-family: var(--mono); }
.agi-admin-dialog {
  width: min(430px, calc(100% - 32px)); color: var(--text); background: var(--panel-2);
  border: 1px solid var(--phosphor-dim); border-radius: 12px; padding: 0;
  box-shadow: 0 32px 100px rgba(0, 0, 0, .68);
}
.agi-admin-dialog::backdrop { background: rgba(4, 7, 12, .84); backdrop-filter: blur(8px); }
.agi-admin-form { position: relative; display: grid; gap: 13px; padding: 28px; }
.agi-admin-form .kicker { margin: 0; }
.agi-admin-form h2 { color: #e8edf8; font-family: var(--mono); font-size: 1.45rem; margin: 0; }
.agi-admin-form > p:not(.kicker, .agi-admin-status) {
  color: var(--muted); font-family: var(--sans); line-height: 1.55; margin: 0 0 4px;
}
.agi-admin-form label { color: var(--text); font-family: var(--mono); font-size: 11px; }
.agi-admin-form input {
  width: 100%; color: #e8edf8; background: var(--ink); border: 1px solid var(--line);
  border-radius: 7px; font-family: var(--mono); font-size: 14px; padding: 11px 12px; outline: none;
}
.agi-admin-form input:focus { border-color: var(--phosphor-dim); }
.agi-admin-close {
  position: absolute; top: 14px; right: 16px; color: var(--muted); background: transparent;
  border: 0; font-size: 24px; line-height: 1; cursor: pointer;
}
.agi-admin-close:hover { color: var(--text); }
.agi-admin-status { min-height: 1.4em; color: var(--short); font-family: var(--mono); font-size: 11px; margin: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (max-width: 880px) {
  .agi-screen { padding: 22px 16px 28px; }
  .agi-call { grid-template-columns: 1fr; height: auto; min-height: auto; }
  .agi-stage { min-height: min(58vh, 520px); border-right: none; border-bottom: 1px solid var(--line); }
  .agi-panel { overflow: visible; }
  .agi-transcript { min-height: 280px; max-height: 420px; }
  .agi-call.chat-collapsed { grid-template-columns: 1fr; }
  .agi-call.chat-collapsed .agi-panel { min-height: 44px; }
  .agi-call.chat-collapsed .agi-panel-bar { min-height: 44px; flex: none; justify-content: flex-end; padding: 7px 12px; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .agi-heading { align-items: flex-start; }
  .agi-beta { display: none; }
  .agi-stage { min-height: 420px; }
  .agi-transcript { padding: 18px 14px; }
  .agi-prompts { padding-inline: 12px; }
  .agi-input-form { padding-inline: 12px; }
  .agi-controls { grid-template-columns: 1fr 1fr; padding-inline: 12px; }
  .agi-privacy { padding-inline: 12px; }
  .agi-self-video { width: 31%; }
  .agi-evidence { inset: 9px; }
  .agi-stage.is-presenting #agi-avatar-canvas,
  .agi-stage.is-presenting #agi-avatar-3d-canvas { inset: 54px 14px auto auto; width: 126px; height: 95px; }
  .agi-stage.is-presenting .agi-avatar-label { inset: 60px 20px auto auto; max-width: 112px; padding: 5px 6px; }
  .agi-stage.is-presenting .agi-avatar-label .agi-live-dot { width: 6px; height: 6px; }
  .agi-stage.is-presenting .agi-avatar-label b { font-size: 8px; }
  .agi-stage.is-presenting .agi-avatar-label small { display: none; }
  .agi-stage.is-presenting .agi-thinking { inset: 92px 49px auto auto; padding: 7px 9px; }
  .agi-stage.is-presenting .agi-self-video { inset: 158px 14px auto auto; width: 88px; }
  .agi-stage.is-presenting .agi-wave { inset: 124px 103px auto auto; transform: scale(.7); transform-origin: right center; }
}

/* Mode visibility */
body[data-mode="cli"] #gui-root, body[data-mode="agi"] #gui-root { display: none; }
body[data-mode="cli"] { overflow: hidden; }

/* ════════ Mobile readability ════════ */
@media (max-width: 880px) {
  .statband-grid .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .statband-grid .stat:first-child { grid-column: 1 / -1; text-align: center; }
  .statband-grid .stat:nth-last-child(-n+2) { border-bottom: none; }
  .usage-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .usage-heading > p { text-align: left; }
  .usage-toolchain, .usage-proof { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .statusbar .wrap { gap: 12px; padding: 0 14px; }
  .mode-label { display: none; }
  .mode-btn { padding: 4px 8px; }
  .usage-toolchain { padding: 18px; }
  .usage-toolchain > div:first-child { gap: 7px; grid-template-columns: 1fr; }
  .usage-tools { display: grid; grid-template-columns: repeat(2, max-content); }
  .usage-tools span:first-child { grid-column: 1 / -1; }
  .usage-cadence { padding: 22px; }
  .cli-fact-row { grid-template-columns: 90px minmax(0, 1fr); }
  .cli-fact-row > span { padding-inline: 10px; }
  .card p, .tbody-cell p, .field-copy p { font-size: 15px; }
  .pub-meta { font-size: 14px; }
  .contact-links { flex-direction: column; gap: 0; }
  .contact-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .contact-links a:last-child { border-bottom: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor, .pulse, .journey-route-line, .agi-thinking span, .agi-stage .agi-wave i { animation: none; }
  html { scroll-behavior: auto; }
}
.agi-speech-review { padding: 12px 20px; border-top: 1px solid var(--line); color: var(--phosphor); font-size: 13px; }
.agi-speech-review p { margin: 0 0 8px; }
.agi-speech-review button { color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
