/* ============================================================
   THEME TOKENS
   ============================================================ */
:root {
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max-w: 1080px;
  --radius: 14px;
  --motion-fast: 160ms;
  --motion-ui: 240ms;
  --motion-reveal: 520ms;
  --ease-ui: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: var(--motion-ui) var(--ease-ui);
}

html[data-theme="dark"] {
  color-scheme: dark;

  --surface-page: #0b0f17;
  --surface-raised: #131924;
  --surface-subtle: #192231;
  --surface-hover: rgba(45, 212, 191, 0.08);
  --surface-glass: rgba(19, 25, 36, 0.82);
  --surface-glass-strong: rgba(19, 25, 36, 0.94);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-on-accent: #04201e;
  --text-inverse: #0f172a;
  --text-inverse-muted: #475569;

  --accent-text: #2dd4bf;
  --accent-visual: #2dd4bf;
  --accent-fill: rgba(45, 212, 191, 0.12);
  --info-text: #38bdf8;
  --info-visual: #38bdf8;
  --info-fill: rgba(56, 189, 248, 0.12);
  --warning-text: #fbbf24;
  --warning-visual: #fbbf24;
  --warning-fill: rgba(251, 191, 36, 0.12);
  --violet-text: #c084fc;
  --violet-visual: #a78bfa;
  --violet-fill: rgba(167, 139, 250, 0.12);

  --link: var(--accent-text);
  --link-hover: #5eead4;
  --focus-ring: #38bdf8;
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --border-interactive: rgba(45, 212, 191, 0.55);
  --selection-bg: rgba(45, 212, 191, 0.3);
  --selection-text: #f1f5f9;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.52);
  --shadow-hover: 0 14px 36px rgba(45, 212, 191, 0.16);
  --halo-accent: rgba(45, 212, 191, 0.2);
  --halo-info: rgba(56, 189, 248, 0.16);
  --halo-warning: rgba(251, 191, 36, 0.16);

  --grid-dot: rgba(148, 163, 184, 0.08);
  --orb-accent: rgba(45, 212, 191, 0.16);
  --orb-info: rgba(56, 189, 248, 0.12);
  --hero-tint-accent: rgba(45, 212, 191, 0.06);
  --hero-tint-warning: rgba(251, 191, 36, 0.06);
  --hero-grid-line: rgba(148, 163, 184, 0.06);
  --hero-blend-mode: screen;

  --button-primary-start: #14b8a6;
  --button-primary-end: #0ea5e9;
  --button-primary-text: #04201e;

  --canvas-node-accent: #2dd4bf;
  --canvas-node-info: #38bdf8;
  --canvas-node-warning: #fbbf24;
  --canvas-line: #64748b;
  --canvas-halo-core: rgba(241, 245, 249, 0.14);
  --canvas-halo-edge: rgba(45, 212, 191, 0.1);

  --contrib-empty: #192231;
  --contrib-face-front-shade: #070a10;
  --contrib-face-side-shade: #04060a;
  --contrib-selected-stroke: #38bdf8;
  --contrib-selected-mix: #ffffff;

  --viz-bg: #090d14;
  --viz-surface: #111722;
  --viz-surface-raised: #182030;
  --viz-border: #2c384d;
  --viz-text: #f1f5f9;
  --viz-text-muted: #94a3b8;
  --viz-green: #2dd4bf;
  --viz-cyan: #38bdf8;
  --viz-orange: #fbbf24;
  --viz-orange-deep: #b45309;
  --viz-gold: #fde047;
  --viz-lime: #a3e635;
  --viz-red: #f87171;
  --viz-raw: #64748b;
  --viz-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);

  /* Transitional aliases for legacy and illustration selectors. */
  --bg: var(--surface-page);
  --bg-elev: var(--surface-subtle);
  --bg-card: var(--surface-raised);
  --border: var(--border-subtle);
  --border-hover: var(--border-interactive);
  --text: var(--text-primary);
  --text-dim: var(--text-secondary);
  --accent: var(--accent-text);
  --accent-2: var(--info-text);
  --accent-3: var(--warning-text);
  --accent-soft: var(--accent-fill);
  --accent-3-soft: var(--warning-fill);
  --glow: var(--halo-accent);
  --nav-bg: var(--surface-glass);
  --shadow: var(--shadow-md);
  --c3-empty: var(--contrib-empty);
  --bot-body: #1e2838;
  --bot-screen: #0a0e16;
  --mascot-shell: #cbd5e1;
  --mascot-shell-shade: #64748b;
  --mascot-face: #0b0f17;
  --mascot-outline: #06090e;
  --mascot-shadow: rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] {
  color-scheme: light;

  --surface-page: #f8fafc;
  --surface-raised: #ffffff;
  --surface-subtle: #f1f5f9;
  --surface-hover: #f0fdfa;
  --surface-glass: rgba(255, 255, 255, 0.88);
  --surface-glass-strong: rgba(255, 255, 255, 0.96);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-on-accent: #ffffff;
  --text-inverse: #f8fafc;
  --text-inverse-muted: #94a3b8;

  --accent-text: #0f766e;
  --accent-visual: #0d9488;
  --accent-fill: rgba(13, 148, 136, 0.09);
  --info-text: #0369a1;
  --info-visual: #0284c7;
  --info-fill: rgba(2, 132, 199, 0.08);
  --warning-text: #b45309;
  --warning-visual: #d97706;
  --warning-fill: rgba(217, 119, 6, 0.08);
  --violet-text: #6d28d9;
  --violet-visual: #7c3aed;
  --violet-fill: rgba(124, 58, 237, 0.08);

  --link: var(--accent-text);
  --link-hover: #115e59;
  --focus-ring: #0284c7;
  --border-subtle: #e2e8f0;
  --border-strong: #94a3b8;
  --border-interactive: #0d9488;
  --selection-bg: #ccfbf1;
  --selection-text: #134e4a;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.05), 0 2px 4px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.07), 0 4px 8px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 8px 24px rgba(13, 148, 136, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
  --halo-accent: rgba(13, 148, 136, 0.14);
  --halo-info: rgba(2, 132, 199, 0.12);
  --halo-warning: rgba(217, 119, 6, 0.12);

  --grid-dot: rgba(15, 23, 42, 0.06);
  --orb-accent: rgba(13, 148, 136, 0.07);
  --orb-info: rgba(2, 132, 199, 0.06);
  --hero-tint-accent: rgba(13, 148, 136, 0.04);
  --hero-tint-warning: rgba(217, 119, 6, 0.03);
  --hero-grid-line: rgba(15, 23, 42, 0.04);
  --hero-blend-mode: normal;

  --button-primary-start: #0f766e;
  --button-primary-end: #0369a1;
  --button-primary-text: #ffffff;

  --canvas-node-accent: #0f766e;
  --canvas-node-info: #0369a1;
  --canvas-node-warning: #b45309;
  --canvas-line: #94a3b8;
  --canvas-halo-core: rgba(255, 255, 255, 0.6);
  --canvas-halo-edge: rgba(13, 148, 136, 0.08);

  --contrib-empty: #e2e8f0;
  --contrib-face-front-shade: #64748b;
  --contrib-face-side-shade: #475569;
  --contrib-selected-stroke: #0284c7;
  --contrib-selected-mix: #ffffff;

  --viz-bg: #090d14;
  --viz-surface: #111722;
  --viz-surface-raised: #182030;
  --viz-border: #2c384d;
  --viz-text: #f1f5f9;
  --viz-text-muted: #94a3b8;
  --viz-green: #2dd4bf;
  --viz-cyan: #38bdf8;
  --viz-orange: #fbbf24;
  --viz-orange-deep: #b45309;
  --viz-gold: #fde047;
  --viz-lime: #a3e635;
  --viz-red: #f87171;
  --viz-raw: #64748b;
  --viz-shadow: 0 4px 16px rgba(15, 23, 42, 0.08), 0 12px 36px rgba(15, 23, 42, 0.12);

  /* Transitional aliases for legacy and illustration selectors. */
  --bg: var(--surface-page);
  --bg-elev: var(--surface-subtle);
  --bg-card: var(--surface-raised);
  --border: var(--border-subtle);
  --border-hover: var(--border-interactive);
  --text: var(--text-primary);
  --text-dim: var(--text-secondary);
  --accent: var(--accent-text);
  --accent-2: var(--info-text);
  --accent-3: var(--warning-text);
  --accent-soft: var(--accent-fill);
  --accent-3-soft: var(--warning-fill);
  --glow: var(--halo-accent);
  --nav-bg: var(--surface-glass-strong);
  --shadow: var(--shadow-md);
  --c3-empty: var(--contrib-empty);
  --bot-body: #ffffff;
  --bot-screen: #0f172a;
  --mascot-shell: #f1f5f9;
  --mascot-shell-shade: #94a3b8;
  --mascot-face: #0f172a;
  --mascot-outline: #1e293b;
  --mascot-shadow: rgba(15, 23, 42, 0.14);
}

/* ============================================================
   BASE
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); }
.accent { color: var(--accent-text); }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

/* Skip link — visually hidden until keyboard-focused */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 18px;
  background: var(--button-primary-start); color: var(--button-primary-text);
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--border-strong); border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translateY(0);
  text-decoration: none; outline: 3px solid var(--focus-ring); outline-offset: 3px;
}

::selection { background: var(--selection-bg); color: var(--selection-text); }

.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;
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

/* ============================================================
   BACKGROUND DECOR
   ============================================================ */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

.bg-orb {
  position: fixed; z-index: -1; pointer-events: none;
  border-radius: 50%; filter: blur(110px); opacity: 0.55;
}
.bg-orb--1 {
  width: 480px; height: 480px; top: -160px; right: -120px;
  background: radial-gradient(circle, var(--orb-accent), transparent 70%);
}
.bg-orb--2 {
  width: 420px; height: 420px; bottom: -180px; left: -140px;
  background: radial-gradient(circle, var(--orb-info), transparent 70%);
}
html[data-theme="light"] .bg-orb { opacity: 0.38; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav__logo { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.nav__logo:hover { text-decoration: none; }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  color: var(--text-secondary); font-size: 0.92rem; font-weight: 500;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.nav__links a:hover { color: var(--link-hover); text-decoration: none; }

.nav__cta {
  padding: 8px 16px; border: 1px solid var(--border-interactive);
  border-radius: 8px; color: var(--accent-text) !important;
}
.nav__cta:hover { color: var(--link-hover) !important; background: var(--surface-hover); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  display: grid; place-items: center; width: 44px; height: 44px;
  background: var(--surface-subtle); border: 1px solid var(--border-strong);
  border-radius: 10px; color: var(--text-secondary); cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.theme-toggle:hover { color: var(--accent-text); border-color: var(--border-interactive); background: var(--surface-hover); box-shadow: var(--shadow-sm); }
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }

/* ---- EN ⇄ VI language toggle ---- */
.lang-toggle {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px;
  background: var(--surface-subtle); border: 1px solid var(--border-strong);
  border-radius: 10px; color: var(--text-secondary); cursor: pointer;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  transition: color var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.lang-toggle:hover { color: var(--accent-text); border-color: var(--border-interactive); background: var(--surface-hover); box-shadow: var(--shadow-sm); }

.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav__burger span {
  width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 54px; align-items: center;
  padding: 78px 24px 68px;
}

.hero__copy { min-width: 0; }
.hero__stage { min-width: 0; }
.hero__subtitle,
.hero__tagline,
.hero__bio { overflow-wrap: anywhere; }

.hero__kicker { color: var(--accent-text); font-size: 0.95rem; margin-bottom: 18px; }
.prompt { color: var(--text-dim); margin-right: 6px; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.2rem);
  font-weight: 700; line-height: 1.05; letter-spacing: 0;
  background: linear-gradient(120deg, var(--text) 30%, var(--accent) 85%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 600; color: var(--text-dim); margin-top: 6px;
}

.hero__cursor {
  display: inline-block; width: 3px; height: 1em;
  background: var(--accent); margin-left: 6px; vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__tagline { color: var(--accent-text); font-size: 0.95rem; margin-top: 20px; }

.hero__bio {
  max-width: 620px; color: var(--text-dim);
  font-size: 1.08rem; margin-top: 16px;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

.hero__socials { display: flex; gap: 14px; margin-top: 34px; }

.hero__stage {
  --mx: 50%;
  --my: 48%;
  position: relative; min-height: 455px; border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  background:
    linear-gradient(160deg, var(--hero-tint-accent), transparent 38%),
    linear-gradient(25deg, var(--hero-tint-warning), transparent 42%),
    var(--surface-raised);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.hero__stage::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 48%, var(--hero-grid-line) 50%, transparent 52%),
    linear-gradient(0deg, transparent 0 48%, var(--hero-grid-line) 50%, transparent 52%);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 45%, #000 0 45%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0 45%, transparent 78%);
}
.hero__stage::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(circle at var(--mx) var(--my), color-mix(in srgb, var(--accent-visual) 14%, transparent), transparent 22%),
    radial-gradient(circle at calc(100% - var(--mx)) calc(100% - var(--my)), color-mix(in srgb, var(--warning-visual) 9%, transparent), transparent 28%);
  opacity: 0.9;
  mix-blend-mode: var(--hero-blend-mode);
  transition: opacity var(--transition);
}
.ai-canvas {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
}

@keyframes heroRunPulse { 50% { opacity: 0.45; transform: scale(0.78); } }

/* Spatial-intelligence hero: the scan itself carries the story. */
.hero-spatial {
  position: absolute; inset: 16px; z-index: 4;
  display: grid; grid-template-rows: auto 1fr auto; min-height: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--border));
  border-radius: 14px; overflow: hidden;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.hero-spatial__bar,
.hero-spatial__command {
  position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; background: color-mix(in srgb, var(--bg) 88%, transparent);
}
.hero-spatial__bar { border-bottom: 1px solid var(--border); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-spatial__bar > span { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); }
.hero-spatial__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); animation: heroRunPulse 2s ease-in-out infinite; }
.hero-spatial__bar b { color: var(--accent); }
.hero-spatial__scene { position: relative; min-height: 0; overflow: hidden; }
.hero-terrain { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-terrain__floor path { fill: color-mix(in srgb, var(--accent-visual) 3%, transparent); stroke: color-mix(in srgb, var(--info-visual) 12%, transparent); stroke-width: 1; }
.hero-terrain__orbit ellipse { fill: none; stroke: color-mix(in srgb, var(--info-visual) 16%, transparent); stroke-width: 1; stroke-dasharray: 5 8; }
.hero-terrain__raw { fill: var(--viz-raw, #64748b); opacity: 0.35; }
.hero-terrain__classified { opacity: 0.94; }
.hero-terrain__ground { fill: var(--viz-green, var(--accent-visual)); }
.hero-terrain__vegetation { fill: var(--viz-cyan, var(--info-visual)); }
.hero-terrain__building { fill: var(--viz-orange, var(--warning-visual)); }
.hero-terrain__scanner line { stroke: var(--viz-cyan, var(--info-visual)); stroke-width: 1.5; opacity: 0.8; }
.hero-terrain__labels { fill: color-mix(in srgb, var(--text-primary) 42%, transparent); font-size: 9px; letter-spacing: 0.12em; }
.hero-spatial__tag {
  position: absolute; z-index: 3; display: grid; gap: 2px; min-width: 116px;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(9px);
}
.hero-spatial__tag--input { left: 12px; top: 12px; }
.hero-spatial__tag--output { right: 12px; top: 12px; text-align: right; border-color: color-mix(in srgb, var(--accent) 42%, var(--border)); }
.hero-spatial__tag span { color: var(--accent-2); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.1em; }
.hero-spatial__tag strong { color: var(--text); font-size: 0.72rem; }
.hero-spatial__tag small { color: var(--text-dim); font-size: 0.59rem; }
.hero-spatial__legend {
  position: absolute; z-index: 3; left: 50%; bottom: 12px; transform: translateX(-50%);
  display: flex; gap: 12px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 84%, transparent); color: var(--text-dim); font-size: 0.57rem;
}
.hero-spatial__legend span { display: inline-flex; align-items: center; gap: 5px; }
.hero-spatial__legend i { width: 6px; height: 6px; border-radius: 50%; }
.hero-spatial__legend .is-ground { background: var(--accent); }
.hero-spatial__legend .is-vegetation { background: var(--accent-2); }
.hero-spatial__legend .is-building { background: var(--accent-3); }
.hero-spatial__legend b { font-weight: 500; }
.hero-spatial__command { border-top: 1px solid var(--border); font-size: 0.62rem; }
.hero-spatial__command code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-dim); }
.hero-spatial__command code i { color: var(--accent); font-style: normal; }
.hero-spatial__command > span { flex: 0 0 auto; color: var(--accent); }
.hero-spatial__command > span i { font-style: normal; }
.hero-ai__rings {
  position: absolute; inset: 54px; z-index: 3; pointer-events: none;
  display: grid; place-items: center;
}
.hero-ai__rings span {
  position: absolute; width: min(72%, 290px); aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
  border-radius: 50%;
  transform: rotateX(64deg) rotateZ(var(--rz, 0deg));
  animation: aiRing 13s linear infinite;
}
.hero-ai__rings span:nth-child(2) {
  width: min(90%, 360px); --rz: 38deg;
  border-color: color-mix(in srgb, var(--accent-2) 42%, transparent);
  animation-duration: 18s; animation-direction: reverse;
}
.hero-ai__rings span:nth-child(3) {
  width: min(54%, 220px); --rz: -28deg;
  border-color: color-mix(in srgb, var(--accent-3) 46%, transparent);
  animation-duration: 9s;
}
.hero-ai__core {
  position: absolute; left: 50%; top: 48%; z-index: 4;
  width: 142px; height: 142px; transform: translate(-50%, -50%);
  display: grid; place-items: center; align-content: center; gap: 4px;
  color: var(--text); border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 28%),
    linear-gradient(145deg, color-mix(in srgb, var(--bot-screen) 84%, transparent), var(--bot-body));
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 36px var(--glow), inset 0 0 28px rgba(255, 255, 255, 0.04);
  animation: aiCoreFloat 5.8s ease-in-out infinite;
}
.hero-ai__core strong {
  font-family: var(--font-display); font-size: 2.1rem; line-height: 1;
}
.hero-ai__core small {
  color: var(--accent); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.hero-ai__spark {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-3); box-shadow: 0 0 16px var(--accent-3);
  animation: aiSparkOrbit 4s linear infinite;
}
.hero-ai__panel {
  position: absolute; z-index: 5; min-width: 154px;
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
  padding: 9px 12px; border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}
.hero-ai__panel span {
  color: var(--text-dim); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.hero-ai__panel strong {
  color: var(--accent); font-size: 0.72rem; white-space: nowrap;
}
.hero-ai__panel--top { top: 34px; left: 28px; }
.hero-ai__panel--mid { right: 24px; top: calc(50% + 104px); animation: aiPanelDrift 7s ease-in-out infinite reverse; }
.hero-ai__panel--bottom { left: 36px; bottom: 34px; animation: aiPanelDrift 6.5s ease-in-out infinite; }
.hero-ai__scan {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent-2) 32%, transparent), transparent);
  width: 28%; opacity: 0.55; filter: blur(10px);
  animation: aiScan 7s cubic-bezier(0.5, 0, 0.2, 1) infinite;
}
.hero-bots,
.lab-bots {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
}
.mini-bot,
.drone-bot,
.byte-bot {
  position: absolute; color: var(--accent);
}
.mini-bot {
  --bot-scale: 1;
  width: 62px; height: 76px;
  animation: botMascotFloat 4.8s ease-in-out infinite;
}
.mini-bot--captain { left: 54px; top: 52%; }
.mini-bot--lab { --bot-scale: 0.92; left: 32px; bottom: 30px; animation-delay: -1.2s; }
.mini-bot__shadow {
  position: absolute; left: 12px; right: 12px; bottom: 0; height: 6px;
  border-radius: 50%; background: rgba(0, 0, 0, 0.28);
  filter: blur(2px); animation: botMascotShadow 4.8s ease-in-out infinite;
}
.mini-bot__antenna {
  position: absolute; left: 30px; top: 1px; width: 2px; height: 10px;
  background: var(--accent); border-radius: 99px; transform-origin: bottom;
  animation: botMascotAntenna 2.8s ease-in-out infinite;
}
.mini-bot__antenna::after {
  content: ""; position: absolute; left: 50%; top: -6px; width: 8px; height: 8px;
  transform: translateX(-50%); border-radius: 50%;
  background: var(--accent-3); box-shadow: 0 0 14px var(--accent-3);
}
.mini-bot__head {
  position: absolute; left: 9px; top: 13px; width: 44px; height: 30px;
  border-radius: 13px; background: var(--bot-body);
  border: 1px solid color-mix(in srgb, var(--accent) 58%, transparent);
  box-shadow: inset 0 -10px 16px rgba(0, 0, 0, 0.12), 0 0 18px var(--glow);
}
.mini-bot__head::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: 8px; height: 13px;
  border-radius: 8px; background: var(--bot-screen);
}
.mini-bot__head i {
  position: absolute; top: 13px; z-index: 1; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: botMascotBlink 4.2s steps(1) infinite;
}
.mini-bot__head i:first-child { left: 18px; }
.mini-bot__head i:last-child { right: 18px; }
.mini-bot__body {
  position: absolute; left: 14px; top: 45px; width: 34px; height: 22px;
  border-radius: 11px 11px 9px 9px; background: var(--bot-body);
  border: 1px solid color-mix(in srgb, var(--accent-2) 46%, transparent);
}
.mini-bot__body b {
  position: absolute; left: 50%; top: 8px; width: 7px; height: 7px;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px; background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}
.mini-bot__arm {
  position: absolute; top: 48px; width: 6px; height: 18px; border-radius: 99px;
  background: color-mix(in srgb, var(--accent) 72%, var(--bot-body));
  transform-origin: 50% 2px;
}
.mini-bot__arm--l { left: 8px; transform: rotate(18deg); }
.mini-bot__arm--r {
  right: 8px; transform: rotate(-18deg);
  animation: botMascotWave 2.6s ease-in-out infinite;
}
.mini-bot__leg {
  position: absolute; bottom: 6px; width: 8px; height: 9px; border-radius: 4px;
  background: color-mix(in srgb, var(--accent-2) 62%, var(--bot-body));
}
.mini-bot__leg--l { left: 21px; }
.mini-bot__leg--r { right: 21px; }
.mini-bot__bubble {
  position: absolute; left: 42px; top: 3px; padding: 4px 7px;
  border-radius: 999px; background: var(--bot-screen); color: var(--accent-3);
  border: 1px solid color-mix(in srgb, var(--accent-3) 45%, transparent);
  font-size: 0.56rem; line-height: 1; opacity: 0;
  animation: botMascotBubble 5.2s ease-in-out infinite;
}
.drone-bot {
  --drone-scale: 1;
  width: 70px; height: 58px; animation: droneMascotPatrol 7.5s ease-in-out infinite;
}
.drone-bot--hero { right: 42px; top: 90px; }
.drone-bot--lab { right: 48px; top: 44px; animation-delay: -2s; }
.drone-bot__core {
  position: absolute; left: 22px; top: 16px; width: 26px; height: 18px;
  border-radius: 10px; background: var(--bot-body);
  border: 1px solid color-mix(in srgb, var(--accent-2) 62%, transparent);
  box-shadow: 0 0 18px rgba(56, 214, 255, 0.18);
}
.drone-bot__core i {
  position: absolute; top: 7px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 7px var(--accent-2);
}
.drone-bot__core i:first-child { left: 8px; }
.drone-bot__core i:last-child { right: 8px; }
.drone-bot__wing {
  position: absolute; top: 22px; width: 24px; height: 5px; border-radius: 99px;
  background: color-mix(in srgb, var(--accent-2) 62%, transparent);
  transform-origin: center; animation: droneMascotRotor 0.42s linear infinite;
}
.drone-bot__wing--l { left: 0; }
.drone-bot__wing--r { right: 0; }
.drone-bot__beam {
  position: absolute; left: 25px; top: 32px; width: 20px; height: 36px;
  clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--accent-2) 34%, transparent), transparent);
  opacity: 0.45; animation: droneMascotBeam 2.2s ease-in-out infinite;
}
.byte-bot {
  --byte-scale: 1;
  width: 78px; height: 54px; animation: byteMascotNudge 3.6s ease-in-out infinite;
}
.byte-bot--hero { right: 44px; bottom: 34px; }
.byte-bot--lab { right: 34px; bottom: 28px; animation-delay: -1.4s; }
.byte-bot__screen {
  position: absolute; left: 12px; top: 6px; width: 42px; height: 30px;
  border-radius: 10px; background: var(--bot-body);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
}
.byte-bot__screen::before {
  content: ""; position: absolute; left: 7px; right: 7px; top: 8px; height: 12px;
  border-radius: 7px; background: var(--bot-screen);
}
.byte-bot__screen i {
  position: absolute; top: 13px; z-index: 1; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 7px var(--accent);
}
.byte-bot__screen i:first-child { left: 19px; }
.byte-bot__screen i:last-child { right: 19px; }
.byte-bot__block {
  position: absolute; right: 9px; top: 17px; width: 18px; height: 18px;
  border-radius: 5px; background: var(--accent-soft);
  border: 1px solid var(--accent-3);
  animation: byteMascotBlock 1.8s ease-in-out infinite;
}
.byte-bot__wheel {
  position: absolute; bottom: 6px; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--accent-2); background: var(--bot-screen);
  animation: byteMascotWheel 0.8s linear infinite;
}
.byte-bot__wheel::after {
  content: ""; position: absolute; left: 50%; top: -2px; width: 2px; height: 12px;
  background: var(--accent-2); transform: translateX(-50%);
}
.byte-bot__wheel--l { left: 18px; }
.byte-bot__wheel--r { left: 43px; }
@keyframes botMascotFloat {
  0%, 100% { transform: translateY(0) scale(var(--bot-scale)); }
  50% { transform: translateY(-7px) scale(var(--bot-scale)); }
}
@keyframes botMascotShadow {
  0%, 100% { transform: scaleX(1); opacity: 0.28; }
  50% { transform: scaleX(0.78); opacity: 0.16; }
}
@keyframes botMascotAntenna {
  0%, 100% { transform: rotate(0); }
  45% { transform: rotate(9deg); }
  68% { transform: rotate(-6deg); }
}
@keyframes botMascotBlink {
  0%, 88%, 100% { transform: scaleY(1); }
  91%, 94% { transform: scaleY(0.18); }
}
@keyframes botMascotWave {
  0%, 55%, 100% { transform: rotate(-18deg); }
  66% { transform: rotate(-58deg); }
  78% { transform: rotate(-8deg); }
}
@keyframes botMascotBubble {
  0%, 58%, 100% { opacity: 0; transform: translateY(3px) scale(0.92); }
  12%, 42% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes droneMascotPatrol {
  0%, 100% { transform: translate(0, 0) rotate(-3deg) scale(var(--drone-scale)); }
  50% { transform: translate(-16px, 8px) rotate(4deg) scale(var(--drone-scale)); }
}
@keyframes droneMascotRotor {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(0.22); }
}
@keyframes droneMascotBeam {
  0%, 100% { opacity: 0.18; transform: scaleY(0.75); }
  50% { opacity: 0.55; transform: scaleY(1); }
}
@keyframes byteMascotNudge {
  0%, 100% { transform: translateX(0) scale(var(--byte-scale)); }
  46% { transform: translateX(7px) scale(var(--byte-scale)); }
  58% { transform: translateX(3px) scale(var(--byte-scale)); }
}
@keyframes byteMascotBlock {
  0%, 100% { transform: rotate(0); }
  48% { transform: rotate(-7deg) translateX(2px); }
  62% { transform: rotate(4deg); }
}
@keyframes byteMascotWheel {
  to { transform: rotate(360deg); }
}
@keyframes aiRing {
  to { transform: rotateX(64deg) rotateZ(calc(var(--rz, 0deg) + 360deg)); }
}
@keyframes aiCoreFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0) scale(1); }
  48% { transform: translate(-50%, -50%) translateY(-10px) scale(1.025); }
}
@keyframes aiSparkOrbit {
  0% { transform: rotate(0deg) translateX(78px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(78px) rotate(-360deg); }
}
@keyframes aiPanelDrift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes aiScan {
  0% { transform: translateX(-120%); opacity: 0; }
  15%, 78% { opacity: 0.55; }
  100% { transform: translateX(430%); opacity: 0; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; border-radius: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  transition: all var(--transition); cursor: pointer;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: linear-gradient(120deg, var(--button-primary-start), var(--button-primary-end));
  color: var(--button-primary-text);
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { color: var(--button-primary-text); transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.btn--ghost {
  border: 1px solid var(--border-strong); color: var(--text-primary);
  background: var(--surface-subtle);
}
.btn--ghost:hover { border-color: var(--border-interactive); color: var(--accent-text); background: var(--surface-hover); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn--lg { padding: 15px 38px; font-size: 1.05rem; }

/* ============================================================
   SOCIAL ICONS
   ============================================================ */
.social-link {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--border-strong); border-radius: 11px;
  background: var(--surface-subtle); color: var(--text-secondary);
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.social-link:hover {
  color: var(--accent-text); border-color: var(--border-interactive); background: var(--surface-hover);
  transform: translateY(-3px); box-shadow: var(--shadow-sm); text-decoration: none;
}
.social-link svg { width: 19px; height: 19px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 90px 24px; }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 700; margin-bottom: 42px;
  display: flex; align-items: baseline; gap: 12px;
}
.section__title::after {
  content: ""; flex: 1; height: 1px; max-width: 280px;
  background: linear-gradient(90deg, var(--border), transparent);
}
.section__title--center { justify-content: center; }
.section__title--center::after { display: none; }
.section__num { color: var(--accent-text); font-size: 0.75em; font-weight: 600; }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  display: grid; grid-template-columns: 1.7fr 1fr; gap: 56px; align-items: start;
  min-width: 0;
}
.about__text { min-width: 0; }
.about__text p { color: var(--text-dim); margin-bottom: 16px; font-size: 1.02rem; }
.about__text strong { color: var(--text); }

.about__photo { display: flex; justify-content: center; }
.about__photo-frame {
  /* Balanced 4:5 portrait card — clean, minimal */
  position: relative; width: 250px; aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}
.about__photo-frame:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.about__photo-frame img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 22%; /* keep the face in frame */
  border-radius: var(--radius); border: 1px solid var(--border);
  filter: saturate(0.9);
  transition: filter var(--transition);
}
.about__photo-frame:hover img { filter: saturate(1.1); }

/* ============================================================
   SKILLS
   ============================================================ */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.skill-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  transition: all var(--transition);
}
.skill-card:hover {
  border-color: var(--border-hover); transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.skill-card h3 {
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.skill-card h3::before { content: "// "; color: var(--text-dim); }

.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  font-family: var(--font-mono); font-size: 0.8rem;
  padding: 5px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--text);
  border: 1px solid transparent;
  transition: border-color var(--transition);
}
.skill-tag:hover { border-color: var(--border-hover); }

/* ============================================================
   AI OPERATING SYSTEM
   ============================================================ */
.ai-lab {
  display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: 36px; align-items: center; margin-bottom: 24px;
}
.ai-lab__eyebrow {
  color: var(--accent); font-size: 0.82rem; margin-bottom: 12px;
}
.ai-lab__copy h3 {
  font-family: var(--font-display); font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.12; letter-spacing: 0; margin-bottom: 16px;
}
.ai-lab__copy p:not(.ai-lab__eyebrow) {
  color: var(--text-dim); font-size: 1.02rem;
}
.ai-lab__visual {
  position: relative; min-height: 410px; border-radius: 8px;
  border: 1px solid var(--border); overflow: hidden;
  background:
    linear-gradient(145deg, var(--bg-card), transparent),
    radial-gradient(circle at 72% 18%, var(--accent-3-soft), transparent 34%),
    radial-gradient(circle at 22% 80%, rgba(56, 214, 255, 0.12), transparent 32%);
}
.ai-lab__visual::before {
  content: ""; position: absolute; inset: 0; opacity: 0.45;
  background-image:
    linear-gradient(var(--grid-dot) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-dot) 1px, transparent 1px);
  background-size: 28px 28px;
}
.ai-orbit {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.ai-orbit__ring {
  position: absolute; width: 238px; aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--accent) 34%, transparent);
  transform: rotateX(62deg) rotateZ(0deg);
  animation: orbitSpin 21s linear infinite;
}
.ai-orbit__ring:nth-child(2) {
  width: 298px; border-color: color-mix(in srgb, var(--accent-2) 34%, transparent);
  animation-duration: 28s; animation-direction: reverse;
}
.ai-orbit__core {
  position: absolute; width: 116px; height: 116px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; padding: 18px;
  background: linear-gradient(150deg, var(--bot-screen), var(--bot-body));
  border: 1px solid color-mix(in srgb, var(--accent) 58%, transparent);
  box-shadow: 0 0 38px var(--glow);
  animation: aiCoreFloat 6s ease-in-out infinite;
}
.ai-orbit__core strong {
  color: var(--text); font-family: var(--font-display); font-size: 1.1rem; line-height: 1.1;
}
.ai-node {
  position: absolute; left: var(--x); top: var(--y);
  width: 104px; min-height: 74px; padding: 10px;
  border-radius: 8px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  animation: nodeBreathe 4.6s ease-in-out infinite;
  animation-delay: var(--delay);
}
.ai-node--prompt { --x: 50%; --y: 15%; }
.ai-node--plan { --x: 80%; --y: 43%; }
.ai-node--tools { --x: 66%; --y: 78%; }
.ai-node--verify { --x: 34%; --y: 78%; }
.ai-node--memory { --x: 18%; --y: 43%; }
.ai-node::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--node-color, var(--accent)) 42%, transparent);
  opacity: 0; animation: nodePulse 4.6s ease-in-out infinite; animation-delay: var(--delay);
}
.ai-node__icon { display: block; color: var(--node-color, var(--accent)); font-size: 1.05rem; margin-bottom: 4px; }
.ai-node strong {
  display: block; font-family: var(--font-display); font-size: 0.86rem; line-height: 1.1;
}
.ai-node span:not(.ai-node__icon) {
  display: block; margin-top: 4px; color: var(--text-dim);
  font-size: 0.68rem; line-height: 1.3;
}
.ai-pulse {
  position: absolute; left: 50%; top: 50%; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  transform: translate(-50%, -50%);
  animation: pulseTravel 5.2s ease-in-out infinite;
}
.ai-pulse:nth-child(4) {
  background: var(--accent-2); box-shadow: 0 0 14px var(--accent-2);
  animation-delay: 1.6s; animation-duration: 6.4s;
}
.ai-pulse:nth-child(5) {
  background: var(--accent-3); box-shadow: 0 0 14px var(--accent-3);
  animation-delay: 3s; animation-duration: 5.8s;
}
.ai-playground {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 22px; align-items: stretch; margin-top: 34px;
  padding: 18px; border: 1px solid var(--border); border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 38%),
    linear-gradient(25deg, color-mix(in srgb, var(--accent-3) 9%, transparent), transparent 46%),
    var(--bg-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ai-playground::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.34;
  background:
    linear-gradient(90deg, transparent 0 49%, var(--grid-dot) 50%, transparent 51%),
    linear-gradient(0deg, transparent 0 49%, var(--grid-dot) 50%, transparent 51%);
  background-size: 34px 34px;
}
.ai-playground__copy,
.ai-playground__machine {
  position: relative; z-index: 1;
}
.ai-playground__copy {
  padding: 12px 8px 10px 10px;
}
.ai-playground__eyebrow {
  color: var(--accent); font-size: 0.78rem; margin-bottom: 10px;
}
.ai-playground__copy h3 {
  font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.72rem);
  line-height: 1.14; letter-spacing: 0; margin-bottom: 12px;
}
.ai-playground__copy p:not(.ai-playground__eyebrow) {
  color: var(--text-dim); font-size: 0.94rem;
}
.ai-playground__modes {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; margin-top: 22px;
}
.ai-mode {
  min-height: 48px; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  color: var(--text); cursor: pointer; text-align: left;
  font: 600 0.86rem var(--font-body);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.ai-mode:hover,
.ai-mode.is-active {
  border-color: var(--border-hover);
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--bg-card));
  transform: translateY(-2px);
}
.ai-mode__icon {
  display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px;
  border-radius: 7px; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  font-family: var(--font-mono);
}
.ai-playground__machine {
  min-height: 308px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bot-screen) 88%, transparent), transparent),
    color-mix(in srgb, var(--bg) 84%, transparent);
  transition: border-color var(--transition), transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ai-playground__machine--pop {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
}
.ai-playground__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.95;
}
.ai-playground__agent {
  position: absolute; right: 22px; top: 20px; z-index: 2;
  display: grid; justify-items: center; gap: 7px;
  animation: aiPlayAgent 4.8s ease-in-out infinite;
}
.ai-playground__face {
  position: relative; width: 58px; height: 42px; display: block;
  border-radius: 16px; background: var(--bot-body);
  border: 1px solid color-mix(in srgb, var(--accent-2) 54%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent-2) 20%, transparent);
}
.ai-playground__face::before {
  content: ""; position: absolute; left: 9px; right: 9px; top: 11px; height: 18px;
  border-radius: 10px; background: var(--bot-screen);
}
.ai-playground__face::after {
  content: ""; position: absolute; left: 50%; top: -10px; width: 2px; height: 10px;
  transform: translateX(-50%); background: var(--accent-2); border-radius: 99px;
}
.ai-playground__face i {
  position: absolute; z-index: 1; top: 19px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 9px var(--accent);
  animation: aiPlayBlink 4s steps(1) infinite;
}
.ai-playground__face i:first-child { left: 21px; }
.ai-playground__face i:last-child { right: 21px; }
.ai-playground__mood {
  padding: 4px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  border: 1px solid var(--border); color: var(--accent-3);
  font-size: 0.62rem;
}
.ai-console {
  position: absolute; left: 18px; right: 108px; top: 22px; z-index: 2;
  border-radius: 8px; overflow: hidden; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.ai-console__bar {
  height: 34px; display: flex; align-items: center; gap: 7px;
  padding: 0 12px; border-bottom: 1px solid var(--border);
}
.ai-console__bar span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-3);
}
.ai-console__bar span:nth-child(2) { background: var(--accent); }
.ai-console__bar span:nth-child(3) { background: var(--accent-2); }
.ai-console__bar strong {
  margin-left: auto; color: var(--text-dim); font-size: 0.68rem; font-weight: 500;
}
.ai-console__body {
  display: grid; gap: 9px; padding: 14px;
}
.ai-console__body p {
  display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; align-items: start;
  color: var(--text); font-size: 0.78rem; line-height: 1.45;
}
.ai-console__body span {
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.64rem;
}
.ai-console__body strong {
  min-width: 0; color: var(--text); font-weight: 500;
}
.ai-playground__artifact {
  position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2;
  display: grid; gap: 8px; padding: 14px;
  border-radius: 8px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.ai-playground__artifact > span,
.ai-playground__confidence span {
  color: var(--text-dim); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.ai-playground__artifact strong {
  font-family: var(--font-display); font-size: 1.05rem; line-height: 1.15;
}
.ai-playground__confidence {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.ai-playground__confidence b {
  color: var(--accent); font: 700 0.9rem var(--font-mono);
}
.ai-playground__meter {
  height: 6px; border-radius: 999px; background: var(--bg-elev); overflow: hidden;
}
.ai-playground__meter i {
  display: block; height: 100%; width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  transition: width 0.5s ease;
  animation: meterThink 3.1s ease-in-out infinite;
}
@keyframes aiPlayAgent {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-7px) rotate(1deg); }
}
@keyframes aiPlayBlink {
  0%, 90%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(0.16); }
}
.agent-crew {
  position: relative; margin-top: 22px;
}
.agent-crew__intro {
  max-width: 760px; margin: 0 0 18px;
}
.agent-crew__eyebrow {
  color: var(--accent); font-size: 0.78rem; margin-bottom: 8px;
}
.agent-crew__intro h3 {
  font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.12; letter-spacing: 0; margin-bottom: 10px;
}
.agent-crew__intro p:not(.agent-crew__eyebrow) {
  color: var(--text-dim); font-size: 0.96rem;
}
.agent-crew__human {
  margin-top: 12px;
  color: var(--accent-text, var(--accent));
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.agent-crew__sketch-note {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 0.86rem;
  line-height: 1.45;
  max-width: 640px;
}
.agent-crew__board {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: 8px;
  min-height: 408px; padding: 18px;
  background:
    radial-gradient(circle at 50% 16%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 28%),
    radial-gradient(circle at 84% 72%, color-mix(in srgb, var(--accent-3) 10%, transparent), transparent 30%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-card) 92%, transparent), color-mix(in srgb, var(--bot-screen) 58%, transparent));
}
.agent-crew__board::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.42;
  background-image:
    linear-gradient(var(--grid-dot) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-dot) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at 50% 44%, #000 0 52%, transparent 88%);
  -webkit-mask-image: radial-gradient(circle at 50% 44%, #000 0 52%, transparent 88%);
}
.agent-crew__leads {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px; margin-bottom: 16px;
}
.lead-agent {
  position: relative; min-height: 126px; padding: 16px;
  border: 1px solid var(--border); border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.lead-agent__halo {
  position: absolute; right: 14px; top: 14px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  box-shadow: 0 0 22px var(--glow);
  animation: crewHalo 4s ease-in-out infinite;
}
.lead-agent--right .lead-agent__halo {
  border-color: color-mix(in srgb, var(--accent-3) 48%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent-3) 18%, transparent);
  animation-delay: -1.4s;
}
.lead-agent p {
  color: var(--accent); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.lead-agent h4 {
  font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 8px;
}
.lead-agent > span:not(.lead-agent__halo) {
  display: block; color: var(--text-dim); font-size: 0.86rem; line-height: 1.5;
  max-width: 86%;
}
.agent-crew__contract {
  position: relative; z-index: 2; max-width: 620px; margin: 0 auto 16px;
  padding: 16px 18px; text-align: center;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}
.agent-crew__contract span {
  display: block; color: var(--accent); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.agent-crew__contract strong {
  display: block; font-family: var(--font-display); font-size: 1.16rem; line-height: 1.18;
}
.agent-crew__contract p {
  color: var(--text-dim); font-size: 0.88rem; line-height: 1.52; margin-top: 8px;
}
.agent-crew__phases {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px; margin: 0 auto 18px; max-width: 760px;
}
.crew-phase {
  min-height: 44px; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  color: var(--text-dim); cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), color var(--transition), background var(--transition);
}
.crew-phase span {
  font-size: 0.7rem; letter-spacing: 0.06em;
}
.crew-phase:hover,
.crew-phase.is-active {
  color: var(--text); border-color: var(--border-hover);
  background: color-mix(in srgb, var(--accent-soft) 78%, var(--bg-card));
  transform: translateY(-2px);
}
.agent-crew__flow {
  position: absolute; left: 11%; right: 11%; top: 47%; height: 90px; z-index: 1;
  pointer-events: none;
}
.agent-crew__flow::before {
  content: ""; position: absolute; left: 50%; top: -48px; width: 1px; height: 138px;
  background: linear-gradient(var(--accent), transparent);
  opacity: 0.38;
}
.agent-crew__flow span {
  position: absolute; top: 28px; width: 25%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.38;
  animation: crewSignal 2.6s ease-in-out infinite;
}
.agent-crew__flow span:nth-child(1) { left: 0; transform: rotate(16deg); }
.agent-crew__flow span:nth-child(2) { left: 25%; transform: rotate(7deg); animation-delay: 0.28s; }
.agent-crew__flow span:nth-child(3) { left: 50%; transform: rotate(-7deg); animation-delay: 0.56s; }
.agent-crew__flow span:nth-child(4) { left: 75%; transform: rotate(-16deg); animation-delay: 0.84s; }
.agent-crew__reports {
  position: relative; z-index: 2; max-width: 650px; margin: 0 auto;
}
.agent-crew__terminal {
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  background: color-mix(in srgb, var(--bot-screen) 78%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.agent-crew__terminal-bar {
  height: 34px; display: flex; align-items: center; gap: 7px;
  padding: 0 12px; border-bottom: 1px solid var(--border);
}
.agent-crew__terminal-bar i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.agent-crew__terminal-bar i:nth-child(2) { background: var(--accent-2); }
.agent-crew__terminal-bar i:nth-child(3) { background: var(--accent-3); }
.agent-crew__terminal-bar strong {
  margin-left: auto; color: var(--text-dim); font-size: 0.68rem; font-weight: 500;
}
.agent-crew__terminal-body {
  min-height: 98px; display: grid; gap: 7px; padding: 14px;
}
.agent-crew__terminal-body p {
  color: var(--text); font-size: 0.76rem; line-height: 1.45;
  animation: crewLineIn 0.42s ease both;
}
.agent-crew__terminal-body p::before {
  content: ">";
  color: var(--accent); margin-right: 8px;
}
.agent-crew__agents {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 14px;
}
.crew-agent {
  position: relative; overflow: hidden; min-height: 380px;
  padding: 16px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-card);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.crew-agent::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  transform: scaleX(0.2); transform-origin: left;
  opacity: 0.35; transition: transform var(--transition), opacity var(--transition);
}
.crew-agent.is-active {
  transform: translateY(-5px); border-color: var(--border-hover);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 38%, transparent), transparent 36%),
    var(--bg-card);
  box-shadow: var(--shadow);
}
.crew-agent.is-active::before {
  transform: scaleX(1); opacity: 1;
}
.crew-agent__head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.crew-agent__sigil {
  display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px;
  border-radius: 8px; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  background: color-mix(in srgb, var(--accent-soft) 72%, transparent);
  font-size: 0.75rem; font-weight: 800;
}
.crew-agent__head p {
  color: var(--text-dim); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.crew-agent__head h4 {
  font-family: var(--font-display); font-size: 1.02rem; line-height: 1.1;
}
.crew-agent__body {
  display: grid; gap: 13px;
}
.crew-agent__body section > span {
  display: block; color: var(--accent); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.crew-agent__body p,
.crew-agent__body li {
  color: var(--text-dim); font-size: 0.8rem; line-height: 1.48;
}
.crew-agent__body ul {
  display: grid; gap: 4px; padding-left: 16px;
}
.crew-agent__tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.crew-agent__tags span {
  padding: 4px 8px; border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  color: var(--text); font: 500 0.68rem var(--font-mono);
}
.crew-agent__tags--tools span {
  color: var(--accent-2);
}
.crew-agent__gate {
  margin-top: 2px; padding: 10px;
  border-radius: 8px; border: 1px solid color-mix(in srgb, var(--accent-3) 32%, var(--border));
  background: color-mix(in srgb, var(--accent-3-soft) 72%, transparent);
}
@keyframes crewHalo {
  0%, 100% { transform: scale(1); opacity: 0.58; }
  50% { transform: scale(1.12); opacity: 1; }
}
@keyframes crewSignal {
  0%, 100% { opacity: 0.16; filter: saturate(1); }
  50% { opacity: 0.72; filter: saturate(1.4); }
}
@keyframes crewLineIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
.agent-crew__scene {
  --bg: var(--viz-bg);
  --bg-card: var(--viz-surface);
  --bg-elev: var(--viz-surface-raised);
  --border: var(--viz-border);
  --border-hover: var(--viz-green);
  --text: var(--viz-text);
  --text-dim: var(--viz-text-muted);
  --accent: var(--viz-green);
  --accent-2: var(--viz-cyan);
  --accent-3: var(--viz-orange);
  --accent-soft: color-mix(in srgb, var(--viz-green) 12%, transparent);
  --accent-3-soft: color-mix(in srgb, var(--viz-orange) 12%, transparent);
  --bot-body: var(--viz-surface-raised);
  --bot-screen: var(--viz-bg);
  --shadow: var(--viz-shadow);
  --shadow-sm: 0 12px 26px rgba(0, 0, 0, 0.3);
  position: relative; min-height: 650px; overflow: hidden; isolation: isolate;
  margin-top: 20px; border: 1px solid var(--viz-border); border-radius: 10px;
  box-shadow: var(--viz-shadow);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--viz-surface) 82%, transparent), transparent 62%),
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--viz-green) 12%, transparent), transparent 34%),
    radial-gradient(circle at 68% 54%, color-mix(in srgb, var(--viz-cyan) 10%, transparent), transparent 30%),
    var(--viz-bg);
}
.agent-crew__scene::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 12%, transparent), transparent),
    linear-gradient(0deg, transparent 0 48%, color-mix(in srgb, var(--accent-2) 10%, transparent) 50%, transparent 52%);
  opacity: 0.55;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 0 52%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 0 52%, transparent 82%);
}
.agent-crew__canvas {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
}
.agent-crew__iso-wrap {
  position: absolute; inset: 86px 14px 72px; z-index: 1;
  display: grid; place-items: center;
}
/* 3D narrative stage (Three.js) — replaces the iso SVG when WebGL is available */
.agent-crew__stage3d {
  position: absolute; inset: 0; z-index: 1;
  display: none;
  touch-action: pan-y; /* keep page scroll working over the canvas */
}
.agent-crew__scene.is-3d .agent-crew__stage3d { display: block; }
.agent-crew__scene.is-3d .agent-crew__iso-wrap { display: none; }
.agent-crew__scene.is-3d .agent-crew__core-label { display: none; }
.agent-crew__stage3d canvas {
  display: block; width: 100% !important; height: 100% !important;
}
/* 3D mode: keep the overlays compact so they don't cover the stage… */
.agent-crew__scene.is-3d .agent-crew__hud {
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.agent-crew__scene.is-3d .agent-crew__hud--contract { width: min(262px, 28vw); padding: 12px; }
.agent-crew__scene.is-3d .agent-crew__hud--agent { width: min(248px, 26vw); padding: 12px; }
.agent-crew__scene.is-3d .agent-crew__hud--agent p,
.agent-crew__scene.is-3d .agent-crew__hud--contract p { font-size: 0.72rem; }
.agent-crew__scene.is-3d .agent-crew__hud--terminal { width: min(330px, 34vw); }
/* …and melt them away entirely while the pointer explores the scene */
.agent-crew__scene.is-3d.is-immersed .agent-crew__hud {
  opacity: 0; pointer-events: none; transform: translateY(-6px);
}
.agent-crew__scene.is-3d.is-immersed .agent-crew__hud--terminal {
  transform: translateY(6px);
}
.agent-crew__scene.is-3d.is-immersed .agent-crew__controls {
  opacity: 0.18;
}
.agent-crew__iso {
  display: block; width: min(100%, 820px); height: auto; overflow: visible;
}
.crew-iso-floor {
  fill: color-mix(in srgb, var(--bot-screen) 72%, transparent);
  stroke: color-mix(in srgb, var(--accent-2) 16%, transparent);
  stroke-width: 1;
}
.crew-iso-grid {
  stroke: color-mix(in srgb, var(--accent-2) 18%, transparent);
  stroke-width: 0.8;
  stroke-dasharray: 4 7;
}
.crew-iso-link {
  fill: none; stroke: color-mix(in srgb, var(--text-dim) 34%, transparent);
  stroke-width: 1.4; stroke-linecap: round;
  stroke-dasharray: 7 9;
  opacity: 0.38;
}
.crew-iso-link.is-hot {
  stroke: url(#crewIsoHot); stroke-width: 2.2; opacity: 1;
  filter: url(#crewIsoGlow);
  animation: crewIsoPacket 1.25s linear infinite;
}
.crew-iso-packet {
  fill: var(--accent);
  opacity: 0;
  filter: url(#crewIsoGlow);
}
.agent-crew__scene[data-phase="debate"] .crew-iso-packet--debate,
.agent-crew__scene[data-phase="dispatch"] .crew-iso-packet--explorer,
.agent-crew__scene[data-phase="dispatch"] .crew-iso-packet--librarian,
.agent-crew__scene[data-phase="dispatch"] .crew-iso-packet--executor,
.agent-crew__scene[data-phase="synthesize"] .crew-iso-packet--executor,
.agent-crew__scene[data-phase="synthesize"] .crew-iso-packet--reviewer,
.agent-crew__scene[data-phase="synthesize"] .crew-iso-packet--review,
.agent-crew__scene[data-phase="approve"] .crew-iso-packet--reviewer,
.agent-crew__scene[data-phase="approve"] .crew-iso-packet--review {
  opacity: 0.95;
}
.crew-iso-core__top,
.crew-iso-tile__top {
  fill: url(#crewIsoTop);
  stroke: color-mix(in srgb, var(--accent) 52%, transparent);
  stroke-width: 1;
}
.crew-iso-core__front,
.crew-iso-tile__front {
  fill: color-mix(in srgb, var(--accent) 13%, var(--bot-screen));
  stroke: color-mix(in srgb, var(--accent) 28%, transparent);
  stroke-width: 0.8;
}
.crew-iso-core__side,
.crew-iso-tile__side {
  fill: color-mix(in srgb, var(--accent-2) 11%, var(--bot-screen));
  stroke: color-mix(in srgb, var(--accent-2) 24%, transparent);
  stroke-width: 0.8;
}
.crew-iso-core__orb {
  filter: url(#crewIsoGlow);
  animation: crewIsoCoreFloat 4.4s ease-in-out infinite;
}
.crew-iso-core__orb circle {
  fill: color-mix(in srgb, var(--bot-screen) 78%, transparent);
  stroke: var(--accent); stroke-width: 1.6;
}
.crew-iso-core__orb ellipse {
  fill: none; stroke: color-mix(in srgb, var(--accent) 72%, transparent); stroke-width: 1.1;
  transform-box: fill-box; transform-origin: center;
  animation: crewIsoCoreRing 7s linear infinite;
}
.crew-iso-core__orb ellipse:nth-of-type(2) {
  stroke: color-mix(in srgb, var(--accent-2) 62%, transparent);
  animation-duration: 5.5s; animation-direction: reverse;
}
.crew-iso-core__orb text {
  fill: var(--text); font: 800 18px var(--font-display); text-anchor: middle;
}
.crew-iso-node {
  opacity: 0.74;
  transition: opacity var(--transition), filter var(--transition);
}
.crew-iso-node.is-active,
.crew-iso-node.is-focus {
  opacity: 1;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 42%, transparent));
}
.crew-iso-node.is-focus .crew-iso-tile__top {
  fill: color-mix(in srgb, var(--accent) 25%, var(--bot-screen));
}
/* Grid-authored specialist frames replace the shared primitive anatomy. */
.crew-iso-bot { pointer-events:none; }
.crew-iso-sprite {
  overflow:hidden; image-rendering:pixelated; opacity:1;
  transform-box:fill-box; transform-origin:50% 100%;
  animation:crewSpriteIdle 5.6s steps(2,end) infinite;
}
.crew-iso-sprite image { image-rendering:pixelated; }
.crew-iso-sprite--active { opacity:0; }
.crew-iso-node.is-active .crew-iso-sprite--idle,
.crew-iso-node.is-focus .crew-iso-sprite--idle { opacity:0; }
.crew-iso-node.is-active .crew-iso-sprite--active,
.crew-iso-node.is-focus .crew-iso-sprite--active { opacity:1; animation:crewSpriteWork 1.2s steps(2,end) infinite; }
.crew-iso-node.is-focus .crew-iso-sprite--active { filter:drop-shadow(0 0 5px color-mix(in srgb,var(--accent-visual) 48%,transparent)); }
@keyframes crewSpriteIdle { 0%, 88%, 100% { transform:translateY(0); } 90%, 96% { transform:translateY(-1px); } }
@keyframes crewSpriteWork { 0%, 100% { transform:translateY(0); } 50% { transform:translateY(-2px); } }
/* Callout labels */
.crew-iso-callout {
  opacity: 0; transform-box: fill-box; transform-origin: center;
  transition: opacity var(--transition), transform var(--transition);
}
.crew-iso-node.is-active .crew-iso-callout,
.crew-iso-node.is-focus .crew-iso-callout {
  opacity: 1;
  transform: translateY(-4px);
}
.crew-iso-callout rect {
  fill: color-mix(in srgb, var(--bg) 78%, transparent);
  stroke: color-mix(in srgb, var(--accent) 38%, transparent);
  stroke-width: 0.8;
}
.crew-iso-callout__role {
  fill: var(--accent); font: 600 6.5px var(--font-mono); text-anchor: middle;
  text-transform: uppercase;
}
.crew-iso-callout__name {
  fill: var(--text); font: 700 8px var(--font-display); text-anchor: middle;
}
/* Core / ring / packet keyframes */
@keyframes crewIsoPacket {
  to { stroke-dashoffset: -32; }
}
@keyframes crewIsoCoreFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes crewIsoCoreRing {
  to { transform: rotate(360deg); }
}
.agent-crew__core-label {
  position: absolute; left: 50%; top: 44%; z-index: 3;
  transform: translate(-50%, 62px);
  color: var(--accent); font-size: 0.64rem; letter-spacing: 0.18em;
  text-shadow: 0 0 14px var(--glow);
  pointer-events: none;
}
.agent-crew__labels {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
}
.crew-space-label {
  position: absolute; left: var(--x); top: var(--y);
  min-width: 118px; padding: 7px 9px;
  border: 1px solid var(--border); border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform: translate(-50%, calc(-100% - 16px)) scale(var(--s, 1));
  opacity: 0; transition: opacity var(--transition), border-color var(--transition);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}
.crew-space-label.is-visible { opacity: 1; }
.crew-space-label span {
  display: block; color: var(--accent); font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.crew-space-label strong {
  display: block; color: var(--text); font: 700 0.72rem var(--font-display);
  white-space: nowrap;
}
.crew-space-label--agent {
  transform: translate(-50%, 18px) scale(var(--s, 1));
}
.agent-crew__hud {
  position: absolute; z-index: 5;
  border: 1px solid var(--viz-border); border-radius: 8px;
  background: color-mix(in srgb, var(--viz-surface) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}
.agent-crew__hud > span {
  display: block; color: var(--accent); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 7px;
}
.agent-crew__hud strong {
  display: block; color: var(--text); font-family: var(--font-display); line-height: 1.12;
}
.agent-crew__hud p {
  color: var(--text-dim); font-size: 0.78rem; line-height: 1.45;
}
.agent-crew__hud--contract {
  left: 22px; top: 24px; width: min(330px, 34vw); padding: 15px;
}
.agent-crew__hud--contract strong { font-size: 1rem; margin-bottom: 8px; }
.agent-crew__hud--agent {
  right: 22px; top: 24px; width: min(338px, 34vw); padding: 15px;
}
.agent-crew__hud--agent strong { font-size: 1.02rem; margin-bottom: 8px; }
.agent-crew__hud--terminal {
  left: 22px; bottom: 84px; width: min(430px, 42vw); padding: 12px 14px;
}
.agent-crew__controls {
  position: absolute; right: 22px; bottom: 84px; z-index: 6;
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px;
  max-width: min(390px, 42vw);
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.agent-crew__controls span {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 34px; padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--viz-cyan) 30%, var(--viz-border));
  border-radius: 8px;
  color: var(--viz-text-muted);
  background: color-mix(in srgb, var(--viz-surface) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.agent-crew__controls svg {
  width: 16px; height: 16px; color: var(--accent-2); flex: 0 0 auto;
}
.agent-crew__controls b {
  color: var(--text); font: 700 0.64rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em;
}
.agent-crew__scene .agent-crew__terminal-body {
  min-height: 0; padding: 0; gap: 5px;
}
.agent-crew__scene .agent-crew__terminal-body p {
  font-size: 0.72rem;
}
.agent-crew__scene .agent-crew__phases {
  position: absolute; left: 50%; right: auto; bottom: 22px; z-index: 6;
  width: min(760px, calc(100% - 44px));
  transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px; margin: 0; max-width: none;
}
.agent-crew__scene .crew-phase {
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.ai-stack {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px;
}
.ai-stack__card {
  position: relative; overflow: hidden; min-height: 154px;
  padding: 18px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-card);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.ai-stack__card::before {
  content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.ai-stack__card:hover {
  transform: translateY(-4px); border-color: var(--border-hover); box-shadow: var(--shadow);
}
.ai-stack__card:hover::before { transform: scaleX(1); }
.ai-stack__num {
  color: var(--accent); font-size: 0.76rem; letter-spacing: 0.08em;
}
.ai-stack__card h3 {
  font-family: var(--font-display); font-size: 1.02rem; margin: 8px 0;
}
.ai-stack__card p {
  color: var(--text-dim); font-size: 0.86rem; line-height: 1.55;
}
.ai-stack__meter {
  position: absolute; left: 18px; right: 18px; bottom: 16px; height: 4px;
  border-radius: 999px; background: var(--bg-elev); overflow: hidden;
}
.ai-stack__meter span {
  display: block; height: 100%; width: var(--w);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: meterThink 3.5s ease-in-out infinite;
}
@keyframes orbitSpin {
  to { transform: rotateX(62deg) rotateZ(360deg); }
}
@keyframes nodeBreathe {
  0%, 100% { filter: saturate(1); }
  50% { filter: saturate(1.28); }
}
@keyframes nodePulse {
  0%, 72%, 100% { opacity: 0; transform: scale(1); }
  35% { opacity: 1; transform: scale(1.06); }
}
@keyframes pulseTravel {
  0% { transform: translate(-50%, -50%) rotate(0deg) translateX(58px); opacity: 0; }
  18%, 74% { opacity: 1; }
  100% { transform: translate(-50%, -50%) rotate(360deg) translateX(170px); opacity: 0; }
}
@keyframes meterThink {
  0%, 100% { transform: translateX(-12%); }
  50% { transform: translateX(12%); }
}

/* ============================================================
   HERO STATS
   ============================================================ */
.hero__stats {
  display: flex; gap: 40px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero__stat { display: flex; flex-direction: column; }
.hero__stat-value {
  font-size: 1.7rem; font-weight: 700; color: var(--accent);
  line-height: 1.2;
}
.hero__stat-label {
  font-size: 0.82rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.07em;
}

/* ============================================================
   ABOUT HIGHLIGHTS
   ============================================================ */
.about__highlights {
  list-style: none; margin: 6px 0 20px;
  display: grid; gap: 10px;
  min-width: 0; max-width: 100%;
}
.about__highlights li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--bg-elev); border: 1px solid var(--border);
  font-size: 0.93rem; color: var(--text-dim);
  min-width: 0; max-width: 100%;
  transition: border-color var(--transition), transform var(--transition);
}
.about__highlights li:hover { border-color: var(--border-interactive); background: var(--surface-hover); transform: translateX(3px); }
.about__highlights strong { color: var(--text); white-space: nowrap; }
.hl__icon { flex-shrink: 0; }
.hl__detail { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }

/* ============================================================
   SPOTLIGHT (featured projects)
   ============================================================ */
.spotlight { display: grid; gap: 72px; margin-bottom: 0; }

.spotlight__item {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 40px; align-items: center;
}
.spotlight__item--flip .spotlight__media { order: 2; }
.spotlight__item--flip .spotlight__content { order: 1; }

.spotlight__media {
  display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.spotlight__media:hover {
  transform: translateY(-4px); border-color: var(--border-interactive);
  box-shadow: var(--shadow-hover);
}
.spotlight__media img {
  display: block; width: 100%; height: auto;
  filter: saturate(0.95);
  transition: filter var(--transition), transform 0.5s ease;
}
.spotlight__media:hover img { filter: saturate(1.05); transform: scale(1.02); }

.spotlight__meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.spotlight__label {
  color: var(--accent-text); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.12em; margin: 0;
}
.spotlight__context {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-dim); font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: 0.08em;
}
.spotlight__context::before {
  content: ""; width: 3px; height: 3px; border-radius: 50%; background: currentColor;
}
.spotlight__title {
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 700;
}
.spotlight__title a { color: var(--text); }
.spotlight__title a:hover { color: var(--link-hover); text-decoration: none; }

.spotlight__tagline {
  color: var(--text-dim); font-style: italic;
  font-size: 0.98rem; margin: 4px 0 16px;
}

.spotlight__desc {
  background: var(--surface-raised); border: 1px solid var(--border-subtle);
  border-radius: 12px; padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.spotlight__desc p { color: var(--text-dim); font-size: 0.95rem; }
.spotlight__desc p + p { margin-top: 10px; }
.spotlight__desc strong,
.project-card__story strong { color: var(--text); font-family: var(--font-mono); font-size: 0.82em; }

.spotlight__tech { margin-top: 18px; }
.spotlight__links { margin-top: 16px; }
.spotlight__links a svg { width: 20px; height: 20px; }

/* ---- Terminal mockup (for featured projects without a screenshot) ---- */
.spotlight__media--terminal { background: transparent; box-shadow: none; border: none; }
.spotlight__media--terminal:hover { box-shadow: none; }

.terminal {
  --text: var(--viz-text);
  --text-dim: var(--viz-text-muted);
  --accent: var(--viz-green);
  --accent-2: var(--viz-cyan);
  --accent-3: var(--viz-orange);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--viz-border);
  background: var(--viz-bg);
  box-shadow: var(--viz-shadow);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.spotlight__media--terminal:hover .terminal {
  border-color: var(--viz-cyan);
  box-shadow: var(--viz-shadow);
}

.terminal__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; background: var(--viz-surface);
  border-bottom: 1px solid var(--viz-border);
}
.terminal__dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal__dot--r { background: #ff5f57; }
.terminal__dot--y { background: #febc2e; }
.terminal__dot--g { background: #28c840; }
.terminal__title {
  margin-left: 10px; font-size: 0.72rem; color: var(--viz-text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.terminal__body {
  padding: 18px 20px; font-size: 0.78rem; line-height: 1.9;
  color: var(--viz-text-muted); overflow-x: auto;
}
.tl { white-space: pre; }
.tl--cmd { color: var(--viz-text); }
.tl__prompt { color: var(--viz-green); }
.tl--ok { color: var(--viz-green); }

/* Generated DEM → river-network visual for the public Extract River project. */
.river-map {
  --text: var(--viz-text); --text-dim: var(--viz-text-muted);
  --accent: var(--viz-green); --accent-2: var(--viz-cyan); --accent-3: var(--viz-orange);
  position: relative; overflow: hidden; background: var(--viz-bg);
}
.river-map svg { display: block; width: 100%; height: auto; }
.river-map__grid path { fill: none; stroke: color-mix(in srgb, var(--viz-text) 7%, transparent); stroke-width: 1; }
.river-map__contours path { fill: none; stroke: color-mix(in srgb, var(--viz-text-muted) 28%, transparent); stroke-width: 1.2; }
.river-map__network path { fill: none; stroke: var(--viz-cyan); stroke-width: 2.1; stroke-linecap: round; stroke-dasharray: 7 5; animation: riverFlow 7s linear infinite; }
.river-map__network .river-map__main { stroke: var(--viz-green); stroke-width: 3.4; }
.river-map__points circle { fill: var(--viz-orange); stroke: var(--viz-bg); stroke-width: 2; }
.river-map__labels { fill: var(--viz-text-muted); font-size: 10px; letter-spacing: 0.08em; }
.river-map__methods { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 14px 12px; border-top: 1px solid var(--viz-border); color: var(--viz-text-muted); font-size: 0.66rem; }
.river-map__methods span { display: inline-flex; align-items: center; gap: 7px; }
.river-map__methods i { width: 7px; height: 7px; border-radius: 50%; background: var(--viz-green); box-shadow: 0 0 8px color-mix(in srgb, var(--viz-green) 42%, transparent); }
.river-map__methods span:last-child i { background: var(--viz-cyan); box-shadow: 0 0 8px color-mix(in srgb, var(--viz-cyan) 42%, transparent); }
@keyframes riverFlow { to { stroke-dashoffset: -48; } }

/* Sub-heading between spotlight and grid */
.projects__sub {
  font-size: 0.9rem; font-weight: 500; color: var(--text-dim);
  letter-spacing: 0.05em; margin-bottom: 24px;
}

/* ============================================================
   GITHUB CONTRIBUTIONS HEATMAP
   ============================================================ */
.contrib { margin-top: 56px; }
#github-activity .contrib { margin-top: 0; }
.contrib .projects__sub { margin-bottom: 16px; }

.contrib__card {
  background: var(--surface-raised); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contrib__card:hover { border-color: var(--border-interactive); box-shadow: var(--shadow-md); }

.contrib__graph {
  display: flex; gap: 3px; overflow-x: auto;
  min-height: clamp(150px, 28vw, 320px);
  align-items: center; padding-bottom: 6px; scrollbar-width: thin;
}
.contrib__loading { margin: auto; color: var(--text-dim); font-size: 0.76rem; }
.contrib__week { display: flex; flex-direction: column; gap: 3px; flex-shrink: 0; }

.contrib__day {
  display: block; width: 11px; height: 11px; border-radius: 2.5px;
  background: var(--bg-elev);
  outline: 1px solid var(--border); outline-offset: -1px;
  transition: transform var(--transition);
}
.contrib__day:hover { transform: scale(1.35); }
.contrib__day--empty { background: transparent; outline: none; }

.contrib__day.lv1 { background: color-mix(in srgb, var(--accent-visual) 30%, var(--contrib-empty)); outline: none; }
.contrib__day.lv2 { background: color-mix(in srgb, var(--accent-visual) 52%, var(--contrib-empty)); outline: none; }
.contrib__day.lv3 { background: color-mix(in srgb, var(--accent-visual) 76%, var(--contrib-empty)); outline: none; }
.contrib__day.lv4 { background: var(--accent-visual); outline: none; box-shadow: 0 0 6px var(--halo-accent); }

.contrib__foot {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px; margin-top: 14px;
}
.contrib__total { font-size: 0.78rem; color: var(--accent-text); font-weight: 600; }
.contrib__legend {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; color: var(--text-dim);
}
.contrib__legend .contrib__day { width: 10px; height: 10px; }
.contrib__legend .contrib__day:hover { transform: none; }

.contrib__fallback-wrap {
  position: relative; width: 100%; min-height: 220px; display: grid; place-items: center;
  overflow: hidden; border: 1px dashed color-mix(in srgb,var(--border) 82%,transparent); border-radius: 10px;
  background: linear-gradient(180deg,color-mix(in srgb,var(--info-visual) 3%,transparent),transparent 72%);
}
.contrib__fallback-scene { --contrib-bot-scale: 1.08; display:block; width:min(100%,680px); height:auto; overflow:visible; }
.contrib__fallback-scene * { animation: none !important; transition: none !important; }
.contrib__fallback-grid { fill:color-mix(in srgb,var(--contrib-empty) 88%,transparent); stroke:color-mix(in srgb,var(--border) 76%,transparent); stroke-width:.8; }
.contrib__fallback-route { fill:none; stroke:var(--info-visual); stroke-width:1; stroke-dasharray:4 5; opacity:.34; }

/* ---- 3D isometric skyline (one pre-projected SVG — no CSS 3D) ---- */
.contrib__iso {
  /* The flagship Keeper is intentionally readable at actual desktop size. */
  --contrib-bot-scale: 1.42;
  display: block; width: 100%; max-width: 660px; height: auto; margin: 0 auto;
  overflow: visible;
}

.iso { --c: var(--contrib-empty); }
.iso.lv1 { --c: color-mix(in srgb, var(--accent-visual) 34%, var(--contrib-empty)); }
.iso.lv2 { --c: color-mix(in srgb, var(--accent-visual) 56%, var(--contrib-empty)); }
.iso.lv3 { --c: color-mix(in srgb, var(--accent-visual) 78%, var(--contrib-empty)); }
.iso.lv4 { --c: var(--accent-visual); }
.iso__t { fill: var(--c); }
.iso__f { fill: color-mix(in srgb, var(--c) 72%, var(--contrib-face-front-shade)); }
.iso__s { fill: color-mix(in srgb, var(--c) 54%, var(--contrib-face-side-shade)); }
.iso:hover .iso__t { fill: color-mix(in srgb, var(--c) 76%, var(--contrib-selected-mix)); }

/* ---- Staggered "skyline rising" reveal (per-bar delay via --d) ---- */
.contrib__iso .iso,
.contrib__iso .bot-wrap,
.contrib__iso .iso__month { opacity: 0; }

.contrib__iso--live .iso {
  opacity: 1;
  animation: isoRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--d, 0) * 10ms);
}
.contrib__iso--live .bot-wrap { animation: contribFadeIn 0.4s ease 0.72s forwards; }
.contrib__iso--live .iso__month { animation: contribFadeIn 0.6s ease 0.6s forwards; }

@keyframes isoRise { from { opacity: 0; transform: translateY(16px); } }
@keyframes contribFadeIn { to { opacity: 1; } }

/* ---- Month labels along the front-bottom edge ---- */
.iso__month { fill: var(--text-dim); font: 8.5px var(--font-mono); letter-spacing: 0.08em; }

/* ---- The best day stays legible without competing with the surveyor ---- */
.iso--best .iso__t { fill: color-mix(in srgb, var(--warning-visual) 42%, var(--c)); }
.iso--best .iso__f { fill: color-mix(in srgb, var(--warning-visual) 24%, var(--contrib-face-front-shade)); }
.iso--best .iso__s { fill: color-mix(in srgb, var(--warning-visual) 18%, var(--contrib-face-side-shade)); }
.best-marker {
  fill: var(--warning-visual); stroke: var(--surface-page); stroke-width: 1;
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--warning-visual) 46%, transparent));
  pointer-events: none;
}

/* ---- Commit Keeper: compact docked contribution mascot ---- */
.bot-wrap, .bot-survey { pointer-events: none; }
.bot-wrap {
  --bot-gaze-x: 0px;
  --bot-gaze-y: 0px;
  --bot-head-rotation: 0deg;
  --bot-head-tilt: 0deg;
  --bot-torso-lean: 0deg;
  --bot-scanner-rotation: 0deg;
  --bot-confirm-strength: 0;
  --bot-gaze-ms: 90ms;
  --bot-head-ms: 190ms;
  --bot-torso-ms: 240ms;
  --bot-scanner-ms: 210ms;
}
.bot-scale {
  transform: scale(var(--contrib-bot-scale, 1));
  transform-box: view-box; transform-origin: 0 0;
}

/* A single soft shadow grounds the pet without adding another machine layer. */
.bot-dock__shadow { fill: #000; opacity: 0.2; }

.bot {
  transform-box: fill-box; transform-origin: 50% 100%;
}
.contrib__iso--live .bot-wrap { /* fade handled above */ }
.contrib__iso--live .bot { animation: botBoot 0.75s var(--ease-enter) 0.76s both; }

.bot__torso {
  transform: rotate(var(--bot-torso-lean, 0deg));
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform var(--bot-torso-ms, 240ms) cubic-bezier(0.4, 0, 0.2, 1);
}
.bot__head {
  transform: rotate(var(--bot-head-rotation, 0deg)) rotate(var(--bot-head-tilt, 0deg));
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform var(--bot-head-ms, 190ms) cubic-bezier(0.22, 1, 0.36, 1);
}
.bot__antenna {
  transform: rotate(var(--bot-scanner-rotation, 0deg));
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform var(--bot-scanner-ms, 210ms) cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bot__gaze {
  transform: translate(var(--bot-gaze-x, 0px), var(--bot-gaze-y, 0px));
  transition: transform var(--bot-gaze-ms, 90ms) cubic-bezier(0.2, 0.85, 0.2, 1);
}
.bot__eyes {
  transform-box: fill-box;
  transform-origin: center;
}


/* Nested groups keep lift, torso, limbs, and head transforms isolated. */
.bot__actor {
  transform: translateY(var(--bot-body-lift, 0px));
  transition: transform var(--bot-torso-ms, 240ms) cubic-bezier(0.22, 1, 0.36, 1);
}
.bot__feet { transform-box: fill-box; transform-origin: 50% 100%; }
.bot__foot {
  fill: var(--mascot-shell-shade);
  stroke: var(--mascot-outline);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform var(--bot-torso-ms, 240ms) cubic-bezier(0.22, 1, 0.36, 1);
}
.bot__foot--left { transform: translateX(var(--bot-foot-left, 0px)); }
.bot__foot--right { transform: translateX(var(--bot-foot-right, 0px)); }
.bot__arm {
  transform-box: fill-box;
  transform-origin: 50% 10%;
  transition: transform var(--bot-torso-ms, 240ms) cubic-bezier(0.22, 1, 0.36, 1);
}
.bot__arm--left { transform: rotate(var(--bot-arm-left, 0deg)); }
.bot__arm--right { transform: rotate(var(--bot-arm-right, 0deg)); }
.bot-wrap.is-idle-ticking .bot__antenna { animation: keeperAntennaTick 360ms steps(3,end) both; }
.bot-wrap.is-idle-ticking .bot__foot--right { animation: keeperFootTick 360ms steps(3,end) both; }

/* Pixel-art skin: the existing groups remain the articulation rig. */
.bot-dock__front { fill:color-mix(in srgb,var(--surface-page) 82%,#101827); stroke:var(--mascot-outline); stroke-width:1.2; }
.bot-dock__side { fill:color-mix(in srgb,var(--surface-raised) 64%,#26364b); stroke:var(--mascot-outline); stroke-width:1.2; }
.bot-dock__top { fill:color-mix(in srgb,var(--surface-raised) 86%,var(--info-visual)); stroke:var(--mascot-outline); stroke-width:1.2; }
.bot-dock__trim { fill:none; stroke:var(--info-visual); stroke-width:1.15; stroke-linecap:square; opacity:.72; }
.bot-dock__shadow { opacity:.82; }
.bot__part, .bot__eyeset, .bot-dock__shadow { image-rendering:pixelated; }
.bot__antenna { transform-origin:25% 100%; }
.bot__ant { fill:transparent !important; stroke:transparent !important; opacity:0; }
.bot__eyeset { display:none; }
.bot-wrap[data-bot-reaction="quiet"] .bot__eyeset--quiet,
.bot-wrap[data-bot-reaction="active"] .bot__eyeset--active,
.bot-wrap[data-bot-reaction="best"] .bot__eyeset--best { display:block; }
.bot-wrap.is-blinking .bot__eyes { animation:none; }
.bot-wrap.is-blinking .bot__eyeset { display:none; }
.bot-wrap.is-blinking .bot__eyeset--blink { display:block; }
.bot-wrap.is-confirming .bot__head { filter:drop-shadow(0 0 2px color-mix(in srgb,var(--warning-visual) 52%,transparent)); }
.bot-wrap[data-bot-reaction="best"] .bot-dock__trim { stroke:var(--warning-visual); }

.bot-survey__intro,
.bot-survey__line {
  fill: none; stroke: var(--info-visual); stroke-linecap: round; pointer-events: none;
}
.bot-survey__intro { stroke-width: 0.95; stroke-dasharray: 0.035 0.025; opacity: 0; }
.contrib__iso--live .bot-survey__intro { animation: surveySweep 1.15s ease-out 1.55s both; }
.contrib__iso--live .bot-survey__intro.is-cancelled { animation: none; opacity: 0; }
.bot-survey__line {
  stroke-width: 1.05; stroke-dasharray: 4 4; opacity: 0;
  transition: opacity 140ms cubic-bezier(0.4, 0, 0.2, 1);
}
.contrib__iso.has-survey-target .bot-survey__line { opacity: 0.68; }
.bot-survey__ring {
  fill: none; stroke: var(--info-visual); stroke-width: 1.1; opacity: 0; pointer-events: none;
}
.bot-survey__ring.is-best { stroke: var(--warning-visual); }
.bot-survey__ring.is-pinging { animation: surveyPing 0.55s ease-out both; }
.bot-survey__ring.is-best.is-pinging { animation: surveyPingBest 0.58s ease-out both; }

@keyframes botBoot {
  0% { opacity: 0; transform: translateY(5px) scale(0.94, 0.88); }
  60% { opacity: 1; transform: translateY(-1px) scale(1.015, 1.02); }
  100% { opacity: 1; transform: none; }
}
@keyframes keeperAntennaTick {
  0%, 100% { transform: rotate(var(--bot-scanner-rotation, 0deg)); }
  45% { transform: rotate(calc(var(--bot-scanner-rotation, 0deg) + 7deg)); }
}
@keyframes keeperFootTick {
  0%, 100% { transform: translateX(var(--bot-foot-right, 0px)) translateY(0); }
  45% { transform: translateX(var(--bot-foot-right, 0px)) translateY(-1.4px); }
}
@keyframes surveySweep {
  0% { opacity: 0; stroke-dashoffset: -1; }
  18% { opacity: 0.6; }
  78% { opacity: 0.35; }
  100% { opacity: 0; stroke-dashoffset: 0; }
}
@keyframes surveyPing {
  0% { opacity: 0.85; transform: scale(0.4); transform-origin: center; transform-box: fill-box; }
  100% { opacity: 0; transform: scale(1.6); transform-origin: center; transform-box: fill-box; }
}
@keyframes surveyPingBest {
  0% { opacity: 0.95; transform: scale(0.38); transform-origin: center; transform-box: fill-box; stroke-width: 1.35; }
  100% { opacity: 0; transform: scale(1.7); transform-origin: center; transform-box: fill-box; stroke-width: 1.1; }
}

@media (max-width: 640px) {
  .contrib__iso { --contrib-bot-scale: 0.82; }
  .contrib__fallback-wrap { min-height: 170px; }
  .contrib__fallback-scene { --contrib-bot-scale: .82; width: 110%; }
}

/* ---- Generated LiDAR cross-section (Ground Binary Classification) ---- */
.terminal__body--lidar { position: relative; padding: 12px 12px 8px; }
.lidar { display: block; width: 100%; height: auto; }
.lidar__grid { stroke: color-mix(in srgb, var(--viz-text) 9%, transparent); stroke-dasharray: 3 6; }
.lidar__raw { fill: var(--viz-raw); opacity: 0.3; }
.lidar__g { fill: var(--viz-green); opacity: 0.9; }
.lidar__ng { fill: var(--viz-cyan); opacity: 0.7; }
.lidar__key-raw { fill: var(--viz-raw); }
.lidar__key-g { fill: var(--viz-green); }
.lidar__key-ng { fill: var(--viz-cyan); }
.lidar__legend text { fill: var(--viz-text-muted); font: 10px var(--font-mono); }
.lidar__scan { stroke: var(--viz-green); stroke-width: 1.2; opacity: 0.45; }

/* ---- Conceptual 3D LiDAR scan (LiDAR Ground ML) ---- */
.spotlight__media--lidar3d .terminal__bar { align-items: flex-start; }
.spotlight__media--lidar3d .terminal__title {
  white-space: normal; line-height: 1.35; text-overflow: clip;
}
.l3d { max-height: 340px; margin: 0 auto; padding: 34px 0 26px; }
.l3d__raw { fill: var(--viz-raw); opacity: 0.28; }
.l3d__ground-candidate { fill: var(--viz-green); opacity: 0.82; }
.l3d__processed { fill: var(--viz-cyan); opacity: 0.78; }
.l3d__static-frame { display: none; }
.l3d-legend {
  position: absolute; z-index: 2; top: 14px; left: 18px; right: 18px;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 16px;
  color: var(--viz-text-muted); font-size: 0.62rem;
  pointer-events: none;
}
.l3d-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.l3d-legend i { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.l3d-legend__input { background: var(--viz-raw); }
.l3d-legend__candidate { background: var(--viz-green); }
.l3d-legend__processed { background: var(--viz-cyan); }
.l3d-note {
  position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 8px;
  margin: 0; color: color-mix(in srgb, var(--viz-text-muted) 82%, transparent);
  font-size: .54rem; line-height: 1.35; text-align: center; pointer-events: none;
}
.l3d__beam { fill: var(--viz-green); opacity: 0.08; }
.l3d__front { stroke: var(--viz-green); stroke-width: 1; opacity: 0.55; }
.l3d__hull { fill: var(--viz-surface-raised); stroke: var(--viz-green); stroke-width: 0.8; }
.l3d__arm { stroke: var(--viz-green); stroke-width: 0.8; }
.l3d__rotor {
  fill: var(--viz-green); opacity: 0.5;
  transform-box: fill-box; transform-origin: center;
  animation: l3dRotor 0.4s linear infinite;
}
.l3d__blink { fill: var(--viz-red); animation: l3dBlink 1.1s ease-in-out infinite; }
@keyframes l3dRotor {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(0.25); }
}
@keyframes l3dBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }

/* ---- ReproSight evidence → patch → verify demo (ReproSight) ---- */
.terminal__body--rps { position: relative; padding: 10px 10px 0; }
.rps { display: block; width: 100%; height: auto; }
.rps text { font: 9px var(--font-mono); fill: var(--viz-text-muted); }
.rps .rps__tiny { font-size: 7.5px; }
.rps text.rps__url-text { font-size: 7.5px; }
.rps__frame, .rps__panel { fill: var(--viz-surface); stroke: var(--viz-border); stroke-width: 1; }
.rps__chrome { stroke: var(--viz-border); stroke-width: 1; }
.rps__dot { fill: var(--viz-raw); opacity: 0.6; }
.rps__url { fill: var(--viz-surface-raised); }
.rps__guide { stroke: color-mix(in srgb, var(--viz-cyan) 40%, transparent); stroke-width: 1; stroke-dasharray: 4 4; }
.rps__nav, .rps__line { fill: color-mix(in srgb, var(--viz-raw) 38%, transparent); }
.rps__card { fill: var(--viz-surface-raised); stroke: color-mix(in srgb, var(--viz-border) 60%, transparent); }
.rps__hero { fill: color-mix(in srgb, var(--viz-cyan) 16%, var(--viz-surface-raised)); }
.rps__hero-line { fill: color-mix(in srgb, var(--viz-text) 55%, transparent); }
.rps__cta { fill: var(--viz-green); opacity: 0.85; }
.rps__outline-bad { fill: none; stroke: var(--viz-red); stroke-width: 1.4; stroke-dasharray: 5 4; }
.rps__outline-good { fill: none; stroke: var(--viz-green); stroke-width: 1.4; }
.rps .rps__bad { fill: var(--viz-red); }
.rps .rps__good { fill: var(--viz-green); }
.rps .rps__warn { fill: var(--viz-orange); }
.rps .rps__cyan { fill: var(--viz-cyan); }
.rps__sb-track { fill: color-mix(in srgb, var(--viz-raw) 25%, transparent); }
.rps__sb-thumb { fill: var(--viz-red); opacity: 0.8; }
.rps__scan { stroke: var(--viz-green); stroke-width: 1.2; }
.rps text.rps__act-head { font-size: 9.5px; letter-spacing: 0.08em; }
.rps__rank-badge {
  fill: color-mix(in srgb, var(--viz-cyan) 10%, var(--viz-surface-raised));
  stroke: color-mix(in srgb, var(--viz-cyan) 62%, transparent);
  stroke-width: 0.8;
}
.rps__verdict { fill: none; stroke: var(--viz-orange); stroke-width: 1; }
.rps__static { display: none; }
.rps-steps {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px;
  margin-top: 8px; padding: 8px 12px 2px; border-top: 1px solid var(--viz-border);
  color: var(--viz-text-muted); font-size: 0.62rem;
}
.rps-steps span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.rps-steps i {
  width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto;
  background: var(--viz-raw); animation: rpsStep 14s linear infinite;
}
/* Dot glow follows the story: contract/discover up front, run during
   reproduce+localize, workspace during the patch act, verify at the end. */
.rps-steps span:nth-child(1) i { animation-delay: 0s; }
.rps-steps span:nth-child(2) i { animation-delay: 1.2s; }
.rps-steps span:nth-child(3) i { animation-delay: 2.6s; }
.rps-steps span:nth-child(4) i { animation-delay: 6.8s; }
.rps-steps span:nth-child(5) i { animation-delay: 10.3s; }
@keyframes rpsStep {
  0%, 16% { background: var(--viz-green); box-shadow: 0 0 8px color-mix(in srgb, var(--viz-green) 50%, transparent); }
  20%, 100% { background: var(--viz-raw); box-shadow: none; }
}
.rps-note {
  margin: 0; padding: 4px 12px 10px; text-align: center;
  color: color-mix(in srgb, var(--viz-text-muted) 82%, transparent);
  font-size: 0.72rem; line-height: 1.45;
}

/* ============================================================
   INTERACTIVE COCKPITS (SpaceLens & Sisyphus)
   ============================================================ */

.terminal__body--cockpit {
  padding: 12px;
  background: var(--bg-terminal, #0d1117);
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.cockpit-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.cockpit-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  color: var(--text-secondary);
  font: 500 0.68rem var(--font-mono);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cockpit-tab:hover {
  background: color-mix(in srgb, var(--accent) 15%, var(--surface));
  color: var(--text-primary);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

.cockpit-tab.is-active {
  background: color-mix(in srgb, var(--accent) 22%, var(--surface));
  color: var(--accent-text, #38d6ff);
  border-color: var(--accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 30%, transparent);
}

.cockpit-tab__icon { font-size: 0.72rem; }
.cockpit-tab__label { letter-spacing: 0.02em; }

.cockpit-panel {
  display: none;
  animation: cockpitFade 0.25s ease-out;
}

.cockpit-panel.is-active {
  display: block;
  flex: 1;
}

@keyframes cockpitFade {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- SpaceLens Interactive Cockpit ---- */
.sl-cockpit-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.sl-tmap-view {
  position: relative;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--surface) 40%, transparent);
  padding: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sl-tmap-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: var(--text-secondary);
  padding-bottom: 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--border-color) 50%, transparent);
}

.sl-tmap-vol { color: #38d6ff; font-weight: 600; }
.sl-tmap-total { color: #00e696; }

.sl-tmap-blocks {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 70px);
  gap: 6px;
}

.sl-tmap-block {
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.sl-tmap-block:hover,
.sl-tmap-block.is-active {
  transform: scale(1.02);
  z-index: 2;
  box-shadow: 0 0 12px rgba(0,0,0,0.5);
}

.sl-tmap-block--build {
  grid-column: 1 / 4;
  grid-row: 1;
  background: color-mix(in srgb, #38d6ff 18%, var(--surface));
  border-color: color-mix(in srgb, #38d6ff 60%, transparent);
}
.sl-tmap-block--build.is-active {
  border-color: #38d6ff;
  box-shadow: 0 0 12px color-mix(in srgb, #38d6ff 40%, transparent);
}

.sl-tmap-block--cache {
  grid-column: 4 / 7;
  grid-row: 1;
  background: color-mix(in srgb, #00e696 18%, var(--surface));
  border-color: color-mix(in srgb, #00e696 60%, transparent);
}
.sl-tmap-block--cache.is-active {
  border-color: #00e696;
  box-shadow: 0 0 12px color-mix(in srgb, #00e696 40%, transparent);
}

.sl-tmap-block--media {
  grid-column: 1 / 3;
  grid-row: 2;
  background: color-mix(in srgb, #ff9f43 18%, var(--surface));
  border-color: color-mix(in srgb, #ff9f43 60%, transparent);
}
.sl-tmap-block--media.is-active {
  border-color: #ff9f43;
  box-shadow: 0 0 12px color-mix(in srgb, #ff9f43 40%, transparent);
}

.sl-tmap-block--logs {
  grid-column: 3 / 5;
  grid-row: 2;
  background: color-mix(in srgb, #ff5252 18%, var(--surface));
  border-color: color-mix(in srgb, #ff5252 60%, transparent);
}
.sl-tmap-block--logs.is-active {
  border-color: #ff5252;
  box-shadow: 0 0 12px color-mix(in srgb, #ff5252 40%, transparent);
}

.sl-tmap-block--src {
  grid-column: 5 / 7;
  grid-row: 2;
  background: color-mix(in srgb, #8395a7 14%, var(--surface));
  border-color: color-mix(in srgb, #8395a7 45%, transparent);
}
.sl-tmap-block--src.is-active {
  border-color: #8395a7;
  box-shadow: 0 0 12px color-mix(in srgb, #8395a7 30%, transparent);
}

.sl-tmap-block__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.sl-tmap-block__tag { font-size: 0.64rem; font-weight: 700; color: var(--text-primary); }
.sl-tmap-block__size { font-size: 0.72rem; color: #fff; }
.sl-tmap-block__path { font-size: 0.55rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-tmap-block__conf { font-size: 0.53rem; color: #00e696; font-weight: 600; }

.sl-radar-sweep {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00e696, #38d6ff, transparent);
  box-shadow: 0 0 8px #00e696;
  opacity: 0.8;
  animation: radarSweep 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes radarSweep {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 0.8; }
  80% { opacity: 0.8; }
  100% { transform: translateY(180px); opacity: 0; }
}

.sl-inspector {
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, #38d6ff 30%, var(--border-color));
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sl-inspector__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.64rem;
}

.sl-inspector__badge { color: #38d6ff; font-weight: 700; letter-spacing: 0.05em; }
.sl-inspector__rule { color: #00e696; font-size: 0.6rem; }

.sl-inspector__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 0;
  font-size: 0.64rem;
}

.sl-insp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sl-insp-label { color: var(--text-secondary); }
.sl-insp-val { color: var(--text-primary); }

.sl-insp-reclaim-box {
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, #00e696 12%, var(--surface));
  border: 1px solid color-mix(in srgb, #00e696 40%, transparent);
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.sl-reclaim-badge { color: #00e696; font-weight: 700; font-size: 0.68rem; }
.sl-insp-reclaim-box small { color: var(--text-secondary); font-size: 0.54rem; }

/* SpaceLens Terminal Stream & MCP */
.sl-terminal-stream {
  padding: 8px;
  background: #05080c;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 0.66rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.tl { margin-bottom: 3px; }
.tl--cmd { color: #fff; font-weight: 600; }
.tl__prompt { color: #00e696; margin-right: 4px; }
.tl--info { color: #38d6ff; }
.tl--ok { color: #00e696; }

.sl-stream-status {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  gap: 6px;
  color: #00e696;
  font-size: 0.65rem;
}

.sl-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e696;
  box-shadow: 0 0 8px #00e696;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.sl-mcp-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
}

.sl-mcp-box {
  background: #05080c;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  padding: 8px;
}

.sl-mcp-box__title {
  font-size: 0.6rem;
  margin-bottom: 4px;
}

.sl-mcp-code {
  margin: 0;
  font-size: 0.58rem;
  line-height: 1.35;
  color: #b3c0ce;
  overflow-x: auto;
}

.sl-mcp-footer {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sl-badge-pill {
  font-size: 0.58rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.sl-badge-pill.sl-good {
  background: color-mix(in srgb, #00e696 15%, var(--surface));
  border-color: #00e696;
  color: #00e696;
  font-weight: 600;
}

.sl-good { color: #00e696 !important; }
.sl-cyan { color: #38d6ff !important; }
.sl-warn { color: #ff9f43 !important; }

/* ---- Sisyphus Multi-Agent Cockpit ---- */
.ah-fleet-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ah-agent-card {
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--surface) 50%, transparent);
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ah-agent-card:hover,
.ah-agent-card.is-active {
  border-color: #38d6ff;
  box-shadow: 0 0 12px color-mix(in srgb, #38d6ff 30%, transparent);
  transform: translateY(-1px);
}

.ah-agent-card--lead {
  background: color-mix(in srgb, #00e696 12%, var(--surface));
  border-color: color-mix(in srgb, #00e696 50%, transparent);
}

.ah-agent-card--lead.is-active {
  border-color: #00e696;
  box-shadow: 0 0 14px color-mix(in srgb, #00e696 40%, transparent);
}

.ah-agent-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.ah-agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #00e696;
}

.ah-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e696;
  box-shadow: 0 0 6px #00e696;
  animation: pulseDot 1.4s infinite;
}

.ah-agent-model {
  font-size: 0.6rem;
  color: #38d6ff;
}

.ah-agent-mission {
  font-size: 0.64rem;
  line-height: 1.4;
  color: var(--text-primary);
}

.ah-subagents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.ah-agent-card--plan .ah-agent-badge { color: #38d6ff; }
.ah-agent-card--debug .ah-agent-badge { color: #ff9f43; }
.ah-agent-card--build .ah-agent-badge { color: #00e696; }

.ah-agent-role {
  display: block;
  font-size: 0.58rem;
  color: var(--text-secondary);
  margin-bottom: 3px;
}

.ah-agent-desc {
  margin: 0;
  font-size: 0.57rem;
  line-height: 1.35;
  color: var(--text-primary);
}

.ah-fleet-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 4px;
  border-top: 1px solid color-mix(in srgb, var(--border-color) 60%, transparent);
  font-size: 0.6rem;
}

.ah-bus-status { color: #00e696; font-weight: 600; }
.ah-bus-session { color: #38d6ff; }

/* Sisyphus AST Studio */
.ah-ast-editor {
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #05080c;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ah-ast-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.64rem;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-color);
}

.ah-ast-file { color: #fff; font-weight: 600; }
.ah-ast-engine { color: #38d6ff; }

.ah-code-view {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 0.63rem;
  line-height: 1.45;
}

.ah-code-line {
  display: flex;
  align-items: baseline;
  padding: 1px 4px;
  border-radius: 3px;
}

.ah-ln { width: 22px; color: #57606a; flex-shrink: 0; user-select: none; }
.ah-hash { width: 44px; color: #8b949e; font-size: 0.56rem; flex-shrink: 0; }
.ah-code { color: #c9d1d9; }

.ah-code-line--del {
  background: color-mix(in srgb, #ff5252 18%, transparent);
  color: #ff7b72;
}
.ah-code-line--del .ah-code { color: #ff7b72; }

.ah-code-line--add {
  background: color-mix(in srgb, #00e696 18%, transparent);
  color: #7ee787;
  font-weight: 600;
}
.ah-code-line--add .ah-code { color: #7ee787; }

.ah-ast-summary {
  margin-top: 4px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ah-badge-pill {
  font-size: 0.58rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.ah-badge-pill.ah-good {
  background: color-mix(in srgb, #00e696 15%, var(--surface));
  border-color: #00e696;
  color: #00e696;
  font-weight: 600;
}

.ah-good { color: #00e696 !important; }
.ah-cyan { color: #38d6ff !important; }

/* Sisyphus Live Feed & Compaction */
.ah-live-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
}

.ah-compaction-card {
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #05080c;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ah-card-title { font-size: 0.6rem; }

.ah-meter-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ah-meter-bar {
  height: 8px;
  border-radius: 4px;
  background: #21262d;
  overflow: hidden;
}

.ah-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #38d6ff, #00e696);
  border-radius: 4px;
}

.ah-meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.58rem;
}

.ah-compaction-points {
  margin: 0;
  padding-left: 14px;
  font-size: 0.58rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.ah-telegram-card {
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, #229ed9 40%, var(--border-color));
  background: color-mix(in srgb, #229ed9 10%, #05080c);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ah-tg-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid color-mix(in srgb, #229ed9 30%, transparent);
}

.ah-tg-icon { font-size: 0.9rem; }
.ah-tg-meta strong { font-size: 0.64rem; color: #fff; display: block; }
.ah-tg-meta small { font-size: 0.52rem; color: #8b949e; }

.ah-tg-bubble {
  background: #0d1117;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ah-tg-title { font-size: 0.62rem; font-weight: 700; color: #00e696; }
.ah-tg-text { font-size: 0.58rem; line-height: 1.35; color: #c9d1d9; }
.ah-tg-text b { color: #38d6ff; }
.ah-tg-text i { color: #8b949e; font-style: normal; }

.ah-tg-actions {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}

.ah-tg-btn {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.54rem;
  background: #21262d;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.ah-tg-btn--primary {
  background: color-mix(in srgb, #00e696 25%, #21262d);
  border-color: #00e696;
  color: #00e696;
  font-weight: 600;
}

/* ============================================================
   SPACE LENS STORAGE EVIDENCE ATLAS
   ============================================================ */
.spotlight__media--spacelens-atlas,
.spotlight__media--ah-pipeline {
  background: transparent;
  border: 0;
  box-shadow: none;
}
.spotlight__media--spacelens-atlas:hover,
.spotlight__media--ah-pipeline:hover {
  transform: none;
  box-shadow: none;
}

.sl-atlas,
.ah-pipeline {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--viz-border);
  border-radius: var(--radius);
  background: var(--viz-bg);
  color: var(--viz-text);
  box-shadow: var(--viz-shadow);
  font-family: var(--font-mono);
}

.sl-atlas__header,
.ah-pipeline__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--viz-border);
  background: color-mix(in srgb, var(--viz-surface) 92%, transparent);
}
.sl-atlas__identity,
.ah-pipeline__identity {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.sl-atlas__eyebrow,
.ah-pipeline__eyebrow {
  color: var(--viz-green);
  font-size: .54rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.sl-atlas__title,
.ah-pipeline__title {
  color: var(--viz-text);
  font: 600 .9rem/1.15 var(--font-display);
  letter-spacing: .01em;
}
.sl-atlas__snapshot,
.ah-pipeline__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px 12px;
  min-width: 0;
  color: var(--viz-text-muted);
  font-size: .56rem;
  line-height: 1.35;
  text-align: right;
}
.sl-atlas__snapshot span,
.ah-pipeline__meta span {
  white-space: nowrap;
}
.sl-atlas__snapshot b { color: var(--viz-cyan); font-weight: 600; }
.ah-pipeline__status {
  color: var(--viz-green);
  font-weight: 700;
  letter-spacing: .04em;
}

.sl-atlas__body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(145px, .68fr) minmax(185px, .88fr);
  gap: 10px;
  padding: 10px;
}
.sl-atlas__map,
.sl-atlas__rail,
.sl-atlas__ledger {
  min-width: 0;
}
.sl-atlas__map,
.sl-atlas__rail,
.sl-atlas__ledger,
.ah-pipeline__flow,
.ah-pipeline__lane {
  border: 1px solid var(--viz-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--viz-surface) 72%, transparent);
}
.sl-atlas__map { padding: 9px; }
.sl-atlas__rail { padding: 9px 9px 9px 10px; }
.sl-atlas__ledger {
  display: flex;
  flex-direction: column;
  padding: 9px;
}
.sl-atlas__section-head,
.ah-pipeline__section-head,
.ah-pipeline__side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sl-atlas__section-head > div,
.ah-pipeline__section-head > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.sl-atlas__section-head h2,
.ah-pipeline__section-head h2,
.ah-pipeline__side-head h2 {
  margin: 0;
  color: var(--viz-text);
  font: 600 .65rem/1.25 var(--font-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.sl-atlas__section-index,
.ah-pipeline__section-index,
.ah-pipeline__side-index {
  color: var(--viz-green);
  font-size: .55rem;
  font-weight: 700;
}
.sl-atlas__section-meta,
.ah-pipeline__section-meta {
  flex: 0 0 auto;
  color: var(--viz-text-muted);
  font-size: .52rem;
  white-space: nowrap;
}

.sl-atlas__map-plot {
  position: relative;
  min-height: 258px;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--viz-cyan) 32%, var(--viz-border));
  border-radius: 7px;
  background: color-mix(in srgb, var(--viz-bg) 82%, var(--viz-surface));
}
.sl-atlas__map-grid {
  position: absolute;
  inset: 0;
  opacity: .65;
  background-image:
    linear-gradient(color-mix(in srgb, var(--viz-cyan) 12%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--viz-cyan) 12%, transparent) 1px, transparent 1px);
  background-size: 25px 25px;
}
.sl-atlas__zones {
  position: absolute;
  inset: 9px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(10, minmax(0, 1fr));
  gap: 5px;
}
.sl-atlas__zone {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 3px;
  padding: 7px 8px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--sl-zone-color) 62%, var(--viz-border));
  border-radius: 9px 3px 7px 4px;
  color: var(--viz-text);
  background: color-mix(in srgb, var(--sl-zone-color) 18%, var(--viz-surface));
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--motion-fast) var(--ease-ui),
    box-shadow var(--motion-fast) var(--ease-ui),
    transform var(--motion-fast) var(--ease-ui),
    background var(--motion-fast) var(--ease-ui);
}
.sl-atlas__zone::after {
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 58px;
  height: 58px;
  border: 1px solid color-mix(in srgb, var(--sl-zone-color) 45%, transparent);
  border-radius: 50%;
  content: "";
  opacity: .45;
}
.sl-atlas__zone:hover,
.sl-atlas__zone.is-active {
  z-index: 2;
  border-color: var(--sl-zone-color);
  background: color-mix(in srgb, var(--sl-zone-color) 27%, var(--viz-surface));
  box-shadow: 0 0 16px color-mix(in srgb, var(--sl-zone-color) 30%, transparent);
  transform: translateY(-1px);
}
.sl-atlas__zone:focus-visible {
  z-index: 3;
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.sl-atlas__zone--build { --sl-zone-color: var(--viz-cyan); grid-column: 1 / 8; grid-row: 1 / 6; }
.sl-atlas__zone--cache { --sl-zone-color: var(--viz-green); grid-column: 8 / 13; grid-row: 1 / 5; border-radius: 3px 13px 4px 8px; }
.sl-atlas__zone--media { --sl-zone-color: var(--viz-orange); grid-column: 1 / 6; grid-row: 6 / 11; border-radius: 4px 8px 11px 3px; }
.sl-atlas__zone--logs { --sl-zone-color: var(--viz-red); grid-column: 6 / 11; grid-row: 5 / 11; border-radius: 8px 4px 3px 12px; }
.sl-atlas__zone--src { --sl-zone-color: var(--viz-raw); grid-column: 11 / 13; grid-row: 5 / 11; border-radius: 5px 8px 3px 6px; }
.sl-atlas__zone-top {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}
.sl-atlas__zone-index {
  flex: 0 0 auto;
  color: var(--sl-zone-color);
  font-size: .51rem;
  font-weight: 700;
}
.sl-atlas__zone-name {
  min-width: 0;
  overflow: hidden;
  color: var(--viz-text);
  font-size: .62rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sl-atlas__zone-size {
  color: var(--viz-text);
  font-size: .86rem;
  line-height: 1;
}
.sl-atlas__zone-path,
.sl-atlas__zone-status {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--viz-text-muted);
  font-size: .5rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sl-atlas__zone-status { color: var(--sl-zone-color); font-weight: 700; }
.sl-atlas__scan {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--viz-green), var(--viz-cyan), transparent);
  box-shadow: 0 0 9px var(--viz-green);
  animation: slAtlasScan 5s ease-in-out infinite;
}
@keyframes slAtlasScan {
  0%, 10% { opacity: 0; transform: translateY(0); }
  25%, 78% { opacity: .8; }
  100% { opacity: 0; transform: translateY(258px); }
}
.sl-atlas__map-hint {
  margin: 7px 1px 0;
  color: var(--viz-text-muted);
  font-size: .52rem;
  line-height: 1.35;
}

.sl-atlas__evidence-list {
  position: relative;
  display: grid;
  gap: 0;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.sl-atlas__evidence-list::before {
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 12px;
  width: 1px;
  content: "";
  background: color-mix(in srgb, var(--viz-cyan) 46%, var(--viz-border));
}
.sl-atlas__evidence-step {
  position: relative;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 7px;
  min-width: 0;
  padding: 0 0 14px;
}
.sl-atlas__evidence-step:last-child { padding-bottom: 0; }
.sl-atlas__evidence-index {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--viz-cyan);
  border-radius: 50%;
  color: var(--viz-cyan);
  background: var(--viz-surface);
  font-size: .5rem;
  font-weight: 700;
}
.sl-atlas__evidence-step strong,
.sl-atlas__evidence-step small {
  display: block;
  overflow-wrap: anywhere;
}
.sl-atlas__evidence-step strong {
  margin-top: 2px;
  color: var(--viz-text);
  font-size: .58rem;
  line-height: 1.25;
}
.sl-atlas__evidence-step small {
  margin-top: 3px;
  color: var(--viz-text-muted);
  font-size: .5rem;
  line-height: 1.35;
}

.sl-atlas__ledger-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--viz-green);
  box-shadow: 0 0 8px color-mix(in srgb, var(--viz-green) 70%, transparent);
}
.sl-atlas__ledger-rule {
  margin-top: 11px;
  padding: 5px 6px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--viz-green) 48%, var(--viz-border));
  border-radius: 4px;
  color: var(--viz-green);
  font-size: .55rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sl-atlas__ledger-rows {
  display: grid;
  gap: 7px;
  margin: 11px 0 0;
}
.sl-atlas__ledger-rows > div {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: 7px;
  align-items: start;
}
.sl-atlas__ledger-rows dt,
.sl-atlas__ledger-rows dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: .52rem;
  line-height: 1.35;
}
.sl-atlas__ledger-rows dt { color: var(--viz-text-muted); }
.sl-atlas__ledger-rows dd { color: var(--viz-text); text-align: right; }
.sl-atlas__value--safe { color: var(--viz-green) !important; }
.sl-atlas__value--warning { color: var(--viz-orange) !important; }
.sl-atlas__value--protected { color: var(--viz-red) !important; }
.sl-atlas__ledger-total {
  display: grid;
  gap: 3px;
  margin-top: auto;
  padding: 8px 7px 0;
  border-top: 1px dashed var(--viz-border);
}
.sl-atlas__ledger-total strong {
  color: var(--viz-green);
  font-size: .59rem;
  line-height: 1.3;
}
.sl-atlas__ledger-total small {
  color: var(--viz-text-muted);
  font-size: .49rem;
  line-height: 1.3;
}
.sl-atlas__contract {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 15px;
  align-items: center;
  padding: 8px 12px;
  border-top: 1px solid var(--viz-border);
  color: var(--viz-text-muted);
  font-size: .52rem;
  letter-spacing: .04em;
}
.sl-atlas__contract span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.sl-atlas__contract i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--viz-green);
  box-shadow: 0 0 6px color-mix(in srgb, var(--viz-green) 65%, transparent);
}
.sl-atlas__contract span:nth-child(2) i { background: var(--viz-cyan); }
.sl-atlas__contract span:nth-child(3) i { background: var(--viz-orange); }

/* ============================================================
   OPEN CODE BETTER EXECUTION PIPELINE
   ============================================================ */
.ah-pipeline__body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(185px, .72fr);
  gap: 10px;
  padding: 10px;
}
.ah-pipeline__flow { min-width: 0; padding: 9px; }
.ah-pipeline__side {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}
.ah-pipeline__lane { min-width: 0; padding: 9px; }
.ah-pipeline__side-head { justify-content: flex-start; }
.ah-pipeline__side-head h2 { font-size: .61rem; }
.ah-pipeline__lane-note,
.ah-pipeline__telemetry-channel {
  display: block;
  margin-top: 7px;
  color: var(--viz-text-muted);
  font-size: .5rem;
  line-height: 1.35;
}
.ah-pipeline__stage-track,
.ah-pipeline__result-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17px minmax(0, 1fr) 17px minmax(0, 1fr);
  gap: 4px;
  align-items: stretch;
  margin-top: 12px;
}
.ah-pipeline__stage {
  --ah-stage-color: var(--viz-cyan);
  display: grid;
  min-width: 0;
  min-height: 69px;
  align-content: start;
  gap: 3px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--ah-stage-color) 45%, var(--viz-border));
  border-radius: 7px;
  color: var(--viz-text);
  background: color-mix(in srgb, var(--viz-surface) 82%, transparent);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--motion-fast) var(--ease-ui),
    box-shadow var(--motion-fast) var(--ease-ui),
    background var(--motion-fast) var(--ease-ui),
    transform var(--motion-fast) var(--ease-ui);
}
.ah-pipeline__stage--plan { --ah-stage-color: var(--viz-orange); }
.ah-pipeline__stage--execute { --ah-stage-color: var(--viz-green); }
.ah-pipeline__stage--patch { --ah-stage-color: var(--viz-cyan); }
.ah-pipeline__stage--tests { --ah-stage-color: var(--viz-green); }
.ah-pipeline__stage--callback { --ah-stage-color: var(--viz-orange); }
.ah-pipeline__stage:hover,
.ah-pipeline__stage.is-active {
  border-color: var(--ah-stage-color);
  background: color-mix(in srgb, var(--ah-stage-color) 18%, var(--viz-surface));
  box-shadow: 0 0 13px color-mix(in srgb, var(--ah-stage-color) 25%, transparent);
  transform: translateY(-1px);
}
.ah-pipeline__stage:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.ah-pipeline__stage-number {
  color: var(--ah-stage-color);
  font-size: .51rem;
  font-weight: 700;
}
.ah-pipeline__stage strong {
  min-width: 0;
  color: var(--viz-text);
  font: 600 .63rem/1.2 var(--font-mono);
  overflow-wrap: anywhere;
}
.ah-pipeline__stage small {
  color: var(--viz-text-muted);
  font-size: .5rem;
  line-height: 1.3;
}
.ah-pipeline__connector {
  display: grid;
  place-items: center;
  color: var(--viz-cyan);
  font-size: .86rem;
  opacity: .8;
  pointer-events: none;
}
.ah-pipeline__connector::after {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  content: "";
  background: var(--viz-green);
  box-shadow: 0 0 7px color-mix(in srgb, var(--viz-green) 70%, transparent);
  animation: ahPipelinePulse 1.8s ease-in-out infinite;
}
@keyframes ahPipelinePulse {
  0%, 100% { opacity: .25; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.25); }
}

.ah-pipeline__dispatch {
  margin-top: 10px;
  padding: 8px;
  border: 1px dashed color-mix(in srgb, var(--viz-cyan) 58%, var(--viz-border));
  border-radius: 7px;
  background: color-mix(in srgb, var(--viz-cyan) 5%, transparent);
}
.ah-pipeline__dispatch-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}
.ah-pipeline__dispatch-head strong,
.ah-pipeline__dispatch-head span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.ah-pipeline__dispatch-head strong { color: var(--viz-cyan); font-size: .58rem; }
.ah-pipeline__dispatch-head span { color: var(--viz-text-muted); font-size: .48rem; text-align: right; }
.ah-pipeline__agent-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}
.ah-pipeline__agent {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--viz-border) 75%, transparent);
  border-radius: 5px;
  background: color-mix(in srgb, var(--viz-surface) 72%, transparent);
  transition: border-color var(--motion-fast) var(--ease-ui), background var(--motion-fast) var(--ease-ui);
}
.ah-pipeline__agent strong {
  overflow: hidden;
  color: var(--viz-text);
  font-size: .52rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ah-pipeline__agent small {
  color: var(--viz-text-muted);
  font-size: .47rem;
  line-height: 1.25;
}
.ah-pipeline__agent--plan strong { color: var(--viz-cyan); }
.ah-pipeline__agent--explore strong { color: var(--viz-lime); }
.ah-pipeline__agent--oracle strong { color: var(--viz-gold); }
.ah-pipeline__agent--debug strong { color: var(--viz-orange); }
.ah-pipeline__agent--build strong { color: var(--viz-green); }
.ah-pipeline__agent.is-active {
  border-color: var(--viz-green);
  background: color-mix(in srgb, var(--viz-green) 13%, var(--viz-surface));
  box-shadow: 0 0 9px color-mix(in srgb, var(--viz-green) 18%, transparent);
}
.ah-pipeline__converge-label {
  margin: 10px 0 0;
  color: var(--viz-text-muted);
  font-size: .5rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ah-pipeline__result-track { margin-top: 6px; }
.ah-pipeline__stage--result { min-height: 62px; }
.ah-pipeline__detail {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 8px;
  border-left: 2px solid var(--viz-green);
  background: color-mix(in srgb, var(--viz-green) 7%, var(--viz-surface));
}
.ah-pipeline__detail-label {
  color: var(--viz-green);
  font-size: .5rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.ah-pipeline__detail strong { color: var(--viz-text); font-size: .68rem; }
.ah-pipeline__detail p {
  margin: 0;
  color: var(--viz-text-muted);
  font: .55rem/1.4 var(--font-mono);
}
.ah-pipeline__detail-signal {
  color: var(--viz-cyan);
  font-size: .5rem;
}

.ah-pipeline__meter {
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--viz-border);
  border-radius: 4px;
  background: var(--viz-bg);
}
.ah-pipeline__meter span {
  display: block;
  width: 26.7%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--viz-cyan), var(--viz-green));
}
.ah-pipeline__meter-labels {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  margin-top: 5px;
  color: var(--viz-text-muted);
  font-size: .48rem;
}
.ah-pipeline__meter-labels strong { color: var(--viz-green); text-align: right; }
.ah-pipeline__checks {
  display: grid;
  gap: 5px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
  color: var(--viz-text-muted);
  font-size: .5rem;
  line-height: 1.3;
}
.ah-pipeline__checks li::before {
  margin-right: 5px;
  color: var(--viz-green);
  content: "✓";
}
.ah-pipeline__lane--telemetry { background: color-mix(in srgb, var(--viz-cyan) 7%, var(--viz-surface)); }
.ah-pipeline__telemetry-channel { color: var(--viz-cyan); }
.ah-pipeline__telemetry-task {
  display: block;
  margin-top: 10px;
  color: var(--viz-green);
  font-size: .61rem;
  line-height: 1.3;
}
.ah-pipeline__telemetry-detail {
  margin: 7px 0;
  color: var(--viz-text-muted);
  font: .52rem/1.4 var(--font-mono);
}
.ah-pipeline__telemetry-status {
  display: block;
  padding: 5px 6px;
  border: 1px solid color-mix(in srgb, var(--viz-green) 55%, var(--viz-border));
  border-radius: 4px;
  color: var(--viz-green);
  font-size: .5rem;
  font-weight: 700;
}
.ah-pipeline__review-note {
  display: block;
  margin-top: 7px;
  color: var(--viz-text-muted);
  font-size: .48rem;
  line-height: 1.35;
}

@media (max-width: 840px) {
  .sl-atlas__body { grid-template-columns: minmax(0, 1.4fr) minmax(185px, .85fr); }
  .sl-atlas__rail {
    grid-column: 1 / -1;
    border-top: 1px solid var(--viz-border);
    border-left: 0;
    padding: 9px 0 0;
  }
  .sl-atlas__evidence-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .sl-atlas__evidence-list::before { display: none; }
  .sl-atlas__evidence-step { grid-template-columns: 25px minmax(0, 1fr); padding: 0; }
  .ah-pipeline__body { grid-template-columns: 1fr; }
  .ah-pipeline__side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ah-pipeline__agent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .sl-atlas__header,
  .ah-pipeline__header { align-items: flex-start; flex-direction: column; }
  .sl-atlas__snapshot,
  .ah-pipeline__meta { justify-content: flex-start; text-align: left; }
  .sl-atlas__snapshot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .sl-atlas__snapshot span:last-child { grid-column: 1 / -1; }
  .sl-atlas__body,
  .ah-pipeline__body { grid-template-columns: 1fr; padding: 8px; }
  .sl-atlas__map-plot { min-height: 300px; }
  .sl-atlas__zones {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(12, minmax(0, 1fr));
  }
  .sl-atlas__zone--build { grid-column: 1 / 5; grid-row: 1 / 6; }
  .sl-atlas__zone--cache { grid-column: 5 / 7; grid-row: 1 / 5; }
  .sl-atlas__zone--media { grid-column: 1 / 4; grid-row: 6 / 10; }
  .sl-atlas__zone--logs { grid-column: 4 / 7; grid-row: 5 / 10; }
  .sl-atlas__zone--src { grid-column: 1 / 7; grid-row: 10 / 13; }
  .sl-atlas__zone-size { font-size: .74rem; }
  .sl-atlas__zone-path,
  .sl-atlas__zone-status { font-size: .48rem; }
  .sl-atlas__rail { grid-column: auto; border-top: 0; padding: 9px; }
  .sl-atlas__evidence-list { grid-template-columns: 1fr; gap: 0; }
  .sl-atlas__evidence-list::before { display: block; }
  .sl-atlas__evidence-step { padding-bottom: 12px; }
  .sl-atlas__contract { align-items: flex-start; flex-direction: column; gap: 6px; }
  .ah-pipeline__stage-track,
  .ah-pipeline__result-track { grid-template-columns: 1fr; gap: 3px; }
  .ah-pipeline__connector { height: 15px; transform: rotate(90deg); }
  .ah-pipeline__dispatch-head { align-items: flex-start; flex-direction: column; }
  .ah-pipeline__dispatch-head span { text-align: left; }
  .ah-pipeline__agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ah-pipeline__side { grid-template-columns: 1fr; }
  .ah-pipeline__meter-labels { align-items: flex-start; flex-direction: column; }
  .ah-pipeline__meter-labels strong { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .sl-atlas__scan,
  .ah-pipeline__connector::after { animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .bot, .bot-wrap, .bot__actor, .bot__eyes, .bot__antenna, .bot__head, .bot__torso, .bot__gaze,
  .bot__arm, .bot__foot, .bot-survey__intro, .bot-survey__ring,
  .l3d__rotor, .l3d__blink, .river-map__network path,
  .hero-ai__rings span, .hero-ai__core, .hero-ai__spark, .hero-ai__panel, .hero-ai__scan,
  .hero-spatial__bar i, .ai-experiment__autoload i,
  .mini-bot, .mini-bot__shadow, .mini-bot__antenna, .mini-bot__head i, .mini-bot__arm--r, .mini-bot__bubble,
  .drone-bot, .drone-bot__wing, .drone-bot__beam, .byte-bot, .byte-bot__block, .byte-bot__wheel,
  .ai-orbit__ring, .ai-orbit__core, .ai-node, .ai-node::before, .ai-pulse, .ai-stack__meter span,
  .ai-playground__agent, .ai-playground__face i, .ai-playground__meter i,
  .lead-agent__halo, .agent-crew__flow span, .agent-crew__terminal-body p,
  .crew-iso-link, .crew-iso-core__orb, .crew-iso-core__orb ellipse, .crew-iso-sprite,
  .hero-mascot__antenna, .hero-mascot__face--blink, .rps-steps i,
  .sl-steps i, .ah-steps i, .ah__pulse-dot, .ah__packet { animation: none !important; }
  .l3d__animated-state, .l3d__scanner { display: none; }
  .l3d__static-frame { display: inline; }
  .rps__animated, .sl__animated, .ah__animated { display: none; }
  .rps__static { display: inline; }
  .contrib__iso .iso, .contrib__iso .bot-wrap, .contrib__iso .iso__month {
    opacity: 1; animation: none;
  }
  .contrib__iso--live .bot,
  .contrib__iso--live .bot-wrap.is-idle .bot,
  .contrib__iso--live .bot-survey__intro { animation: none; }
  .bot-survey__intro { display: none; }
  .bot__actor, .bot__gaze, .bot__antenna, .bot__head, .bot__torso, .bot__arm, .bot__foot,
  .bot-survey__line {
    transition: none !important;
  }
  .bot-wrap.is-blinking .bot__eyes,
  .bot-survey__ring.is-pinging { animation: none !important; }
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.project-card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.project-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0; transition: opacity var(--transition);
}
.project-card:hover {
  border-color: var(--border-hover); transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.project-card:hover::before { opacity: 1; }

.project-card--featured { grid-column: span 1; }

.project-card__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.project-card__folder { color: var(--accent); }
.project-card__links { display: flex; gap: 12px; align-items: center; }
.project-card__links a {
  color: var(--text-dim); display: grid; place-items: center;
  transition: color var(--transition);
}
.project-card__links a:hover { color: var(--link-hover); }
.project-card__stars {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim);
}
.project-card__stars svg { color: var(--accent); }
.project-card__stars[hidden] { display: none; }

.project-card h3 {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600;
  margin-bottom: 10px;
}
.project-card h3 a { color: var(--text); }
.project-card h3 a:hover { color: var(--link-hover); text-decoration: none; }

.project-card p { color: var(--text-dim); font-size: 0.93rem; flex: 1; }
.project-card__story { color: var(--text-dim); font-size: 0.9rem; flex: 1; }
.project-card__story p + p { margin-top: 10px; }

/* Optional interactive experiment: the heavyweight scene stays out of the
   rendering path until the visitor explicitly asks for it. */
.ai-experiment {
  margin-top: 34px; padding: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.ai-experiment__header {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
}
.ai-experiment__header span { color: var(--info-text); font-size: 0.78rem; font-weight: 600; }
.ai-experiment__header strong { font-family: var(--font-display); }
.ai-experiment > p { max-width: 720px; margin: 14px 0 18px; color: var(--text-dim); }
.ai-experiment .btn[disabled] { cursor: wait; opacity: 0.72; }
.ai-experiment__autoload {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 11px;
  border: 1px solid var(--border); border-radius: 999px; color: var(--text-dim); font-size: 0.68rem;
}
.ai-experiment__autoload i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent-2) 48%, transparent);
  animation: crewAutoLoad 1.3s ease-in-out infinite;
}
.ai-experiment__autoload.is-loading { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 38%, var(--border)); }
.ai-experiment__autoload.is-loading i { background: var(--accent); }
.ai-experiment__autoload.is-error { cursor: pointer; color: var(--accent-3); border-color: color-mix(in srgb, var(--accent-3) 42%, var(--border)); }
.ai-experiment__autoload.is-action {
  cursor: pointer; color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
}
.ai-experiment__autoload.is-action i { background: var(--accent); animation: none; }
.ai-experiment.is-static .agent-crew__scene { min-height: 650px; }
.ai-experiment.is-static .agent-crew__stage3d { display: none !important; }
.ai-experiment.is-static .agent-crew__iso-wrap { display: grid; }
.ai-experiment.is-static .agent-crew__core-label { display: block; }
.ai-experiment.is-static .agent-crew__controls { display: none; }
@keyframes crewAutoLoad { 50% { opacity: 0.35; transform: scale(0.72); } }
.agent-crew__demo { margin-top: 22px; }
.agent-crew__demo[hidden] { display: none; }
.motion-paused,
.motion-paused * { animation-play-state: paused !important; }

.project-card__tech {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px;
}
.project-card__tech span {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-text); font-weight: 500;
}

.projects__more { text-align: center; margin-top: 40px; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; max-width: 720px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(180deg, var(--accent), var(--border));
  border-radius: 2px;
}

.timeline-item { position: relative; padding: 0 0 38px 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface-page); border: 3px solid var(--accent-visual);
  box-shadow: 0 0 8px var(--halo-accent);
}

.timeline-item__period {
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--accent-text); letter-spacing: 0.04em;
}
.timeline-item__title {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  margin: 4px 0 0; color: var(--text); line-height: 1.25;
}
.timeline-item__org {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  color: var(--text-dim); font-size: 0.9rem; margin-top: 6px;
}
.timeline-item__org-name { min-width: 0; }
.timeline-item__kind {
  display: inline-block; padding: 2px 10px;
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.06em; border-radius: 999px;
  background: var(--accent-fill); color: var(--accent-text);
}
.timeline-item__context {
  margin: 8px 0 0;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  line-height: 1.4;
}
.timeline-item__desc { color: var(--text-dim); font-size: 0.93rem; margin-top: 8px; }
.timeline-item__highlights {
  list-style: none; display: grid; gap: 9px;
  margin: 16px 0 0; padding: 0;
  color: var(--text-dim); font-size: 0.86rem; line-height: 1.55;
}
.timeline-item__highlights li { position: relative; padding-left: 17px; }
.timeline-item__highlights li::before {
  content: "↳"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-family: var(--font-mono);
}

/* Section anchors: keep sticky nav from covering the heading on jump links */
#about,
#experience {
  scroll-margin-top: 88px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.section--contact { text-align: center; padding-bottom: 120px; }
.contact__lead { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 32px; }
.contact__socials { display: flex; justify-content: center; gap: 14px; margin-top: 40px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px; text-align: center;
  color: var(--text-dim); font-size: 0.82rem;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ai-experiment__autoload i { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 72px; }
  .hero__stage { min-height: 420px; }
  .skills, .projects, .ai-stack { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about__photo { order: -1; }
  /* Allow highlight titles to wrap on tablet/mobile; nowrap is desktop-only scan aid. */
  .about__highlights strong { white-space: normal; }
  .ai-lab { grid-template-columns: 1fr; }
  .ai-lab__visual { min-height: 380px; }
  .ai-playground { grid-template-columns: 1fr; }
  .ai-playground__machine { min-height: 330px; }
  .agent-crew__scene { min-height: 760px; }
  .agent-crew__hud--contract,
  .agent-crew__hud--agent {
    width: calc(50% - 32px);
  }
  .agent-crew__hud--terminal {
    width: calc(100% - 44px);
  }
  .agent-crew__controls {
    left: 22px; right: 22px; bottom: 216px;
    max-width: none; justify-content: center;
  }
  .agent-crew__agents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crew-agent { min-height: 0; }
  .mini-bot--captain { left: 44px; top: 50%; }
  .byte-bot--hero { right: 32px; bottom: 30px; }
  .drone-bot--hero { right: 42px; top: 74px; }
  .spotlight { gap: 56px; }
  .spotlight__item { grid-template-columns: 1fr; gap: 22px; }
  .spotlight__item--flip .spotlight__media { order: 0; }
  .spotlight__item--flip .spotlight__content { order: 1; }
}

@media (max-width: 640px) {
  .skills, .projects, .ai-stack { grid-template-columns: 1fr; }
  .hero { gap: 30px; padding: 64px 24px 58px; }
  .hero__stage { display: block; min-height: 390px; box-shadow: none; }
  .hero__stage .ai-canvas { display: none; }
  .hero-spatial { inset: 8px; }
  .hero-spatial__bar, .hero-spatial__command { padding: 9px 10px; }
  .hero-spatial__bar { font-size: 0.58rem; }
  .hero-spatial__tag { min-width: 102px; padding: 7px 8px; }
  .hero-spatial__legend { gap: 8px; padding: 5px 7px; }
  .hero-spatial__legend b { display: none; }
  .hero-spatial__command code { max-width: 68%; }
  .hero-ai__rings { inset: 34px; }
  .hero-ai__core { width: 112px; height: 112px; }
  .hero-ai__core strong { font-size: 1.6rem; }
  .hero-ai__panel { min-width: 128px; padding: 8px 10px; }
  .hero-ai__panel--top { top: 18px; left: 16px; }
  .hero-ai__panel--mid { right: 14px; top: calc(50% + 72px); }
  .hero-ai__panel--bottom { left: 16px; bottom: 18px; }
  .hero-ai__panel span { display: none; }
  .mini-bot--captain { --bot-scale: 0.78; left: 12px; top: 51%; }
  .byte-bot--hero { --byte-scale: 0.72; right: 12px; bottom: 18px; }
  .drone-bot--hero { --drone-scale: 0.72; right: 22px; top: 66px; }
  .mini-bot--lab { --bot-scale: 0.78; left: 18px; bottom: 18px; }
  .byte-bot--lab { --byte-scale: 0.75; right: 14px; bottom: 18px; }
  .drone-bot--lab { --drone-scale: 0.72; right: 24px; top: 38px; }
  .section { padding: 64px 24px; }
  .ai-experiment { padding: 16px; }
  .ai-experiment__header { align-items: flex-start; }
  .ai-experiment__header strong { flex: 1 1 210px; }
  .hero__stats { gap: 26px; }
  .hero__stat-value { font-size: 1.4rem; }
  .ai-lab__visual { min-height: 430px; }
  .ai-playground { padding: 14px; }
  .ai-playground__modes { grid-template-columns: 1fr; }
  .ai-playground__machine { min-height: 470px; }
  .ai-playground__agent { right: 16px; top: 16px; transform: scale(0.86); transform-origin: top right; }
  .ai-console { left: 14px; right: 14px; top: 82px; }
  .ai-console__body { gap: 7px; padding: 12px; }
  .ai-console__body p { grid-template-columns: 1fr; gap: 3px; }
  .ai-playground__artifact { left: 14px; right: 14px; bottom: 14px; }
  .agent-crew__scene { min-height: 720px; }
  .ai-experiment.is-static .agent-crew__scene { min-height: 560px; }
  .ai-experiment.is-3d-active .agent-crew__scene { min-height: 720px; }
  .agent-crew__iso-wrap { inset: 120px 8px 96px; }
  .ai-experiment.is-static .agent-crew__iso-wrap { inset: 96px 8px 88px; }
  .agent-crew__iso { width: min(100%, 520px); max-width: none; }
  .agent-crew__hud {
    left: 14px !important; right: 14px !important; width: auto !important;
  }
  .agent-crew__hud--contract { top: 14px; }
  .agent-crew__hud--agent { top: 132px; }
  .agent-crew__hud--terminal { bottom: 86px; }
  .agent-crew__controls {
    top: 248px; bottom: auto;
    gap: 7px;
  }
  .agent-crew__controls span {
    flex: 1 1 calc(33.333% - 7px); justify-content: center;
    min-width: 0; padding: 7px 6px;
  }
  .agent-crew__controls b {
    font-size: 0.58rem;
  }
  .agent-crew__core-label { top: 47%; }
  .crew-space-label { min-width: 96px; padding: 6px 7px; }
  .crew-space-label strong { font-size: 0.64rem; }
  .agent-crew__scene .agent-crew__phases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 28px); bottom: 14px;
  }
  .agent-crew__leads,
  .agent-crew__phases,
  .agent-crew__agents { grid-template-columns: 1fr; }
  .agent-crew__board { min-height: 0; padding: 14px; }
  .lead-agent > span:not(.lead-agent__halo) { max-width: 100%; }
  .agent-crew__flow { display: none; }
  .agent-crew__contract { text-align: left; padding: 14px; }
  .agent-crew__terminal-body { min-height: 0; }
  .crew-agent { min-height: 0; }
  .ai-node {
    width: 96px;
  }
  .ai-node--prompt { --x: 50%; --y: 14%; }
  .ai-node--plan { --x: 80%; --y: 41%; }
  .ai-node--tools { --x: 69%; --y: 73%; }
  .ai-node--verify { --x: 31%; --y: 73%; }
  .ai-node--memory { --x: 20%; --y: 41%; }
  .ai-orbit__ring { width: 206px; }
  .ai-orbit__ring:nth-child(2) { width: 252px; }
  .terminal__body { font-size: 0.68rem; padding: 14px; }

  .nav__burger { display: flex; }
  .nav__links {
    position: fixed; inset: 64px 0 auto 0; z-index: 99;
    flex-direction: column; gap: 4px; padding: 16px 24px 24px;
    background: var(--nav-bg);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%); transition: transform var(--transition);
  }
  .nav__links.open { transform: none; }
  .nav__links a { padding: 12px 0; font-size: 1.05rem; width: 100%; }
  .nav__cta { text-align: center; margin-top: 8px; }
}

/* ============================================================
   2026 EDITORIAL SYSTEM
   One calm visual language: capability portrait, case studies,
   project index, proof, then experiments.
   ============================================================ */
.hero-system {
  position: absolute; inset: 16px; z-index: 4;
  display: grid; grid-template-rows: auto 1fr;
  overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent-visual) 30%, var(--border-subtle));
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-page) 20%, transparent);
  box-shadow: var(--shadow-lg), inset 0 1px color-mix(in srgb, var(--text-primary) 7%, transparent);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.hero-system__top {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 9px 14px;
  background: color-mix(in srgb, var(--surface-glass-strong) 84%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  font-size: .62rem; letter-spacing: .075em; text-transform: uppercase;
}
.hero-system__top > span { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); }
.hero-system__top i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-visual); box-shadow: 0 0 8px var(--halo-accent); animation: heroRunPulse 2.4s ease-in-out infinite; }
.hero-system__top b { color: var(--accent-text); font-weight: 600; }
.hero-system__map { position: relative; min-width: 0; min-height: 0; }
.hero-system__links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hero-system__links path {
  fill: none; stroke: color-mix(in srgb, var(--text-dim) 35%, transparent); stroke-width: 1.2; stroke-dasharray: 4 6;
  animation: systemRoute 20s linear infinite;
  transition: opacity var(--motion-fast) var(--ease-ui), stroke var(--motion-fast) var(--ease-ui), stroke-width var(--motion-fast) var(--ease-ui), filter var(--motion-fast) var(--ease-ui);
}
.hero-radar-orbit { fill: none; stroke-width: 1; transform-origin: 310px 165px; pointer-events: none; }
.hero-radar-orbit--inner { stroke: color-mix(in srgb, var(--accent-visual) 22%, transparent); stroke-dasharray: 3 6; animation: systemOrbit 24s linear infinite; }
.hero-radar-orbit--mid { stroke: color-mix(in srgb, var(--info-visual) 16%, transparent); stroke-dasharray: 4 8; animation: systemOrbit 38s linear infinite reverse; }
.hero-radar-orbit--outer { stroke: color-mix(in srgb, var(--violet-visual) 14%, transparent); stroke-dasharray: 6 10; animation: systemOrbit 50s linear infinite; }
.hero-radar-axis { stroke: color-mix(in srgb, var(--border) 65%, transparent); stroke-width: 0.8; stroke-dasharray: 2 5; opacity: 0.45; }

.hero-packet {
  fill: var(--packet-color, var(--accent-visual)); opacity: 0.85; pointer-events: none;
  filter: drop-shadow(0 0 5px var(--packet-color, var(--accent-visual)));
  transition: filter var(--motion-fast) var(--ease-ui), opacity var(--motion-fast) var(--ease-ui), transform var(--motion-fast) var(--ease-ui);
}
.hero-packet--geo { --packet-color: var(--accent-visual); }
.hero-packet--web { --packet-color: var(--info-visual); }
.hero-packet--tools { --packet-color: var(--warning-visual); }
.hero-packet--ai { --packet-color: var(--violet-visual); }

@keyframes systemRoute { to { stroke-dashoffset: -160; } }
@keyframes systemOrbit { to { transform: rotate(360deg); } }

.hero-system__core {
  --core-light: var(--accent-visual);
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 154px; min-height: 156px; max-height: 166px;
  display: grid; justify-items: center; align-content: center; gap: 2px;
  padding: 8px 10px; text-align: center; overflow: visible;
  border: 1px solid color-mix(in srgb, var(--core-light) 45%, var(--border-subtle));
  border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--core-light) 12%, var(--surface-card)), color-mix(in srgb, var(--surface-card) 90%, transparent));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--surface-page) 65%, transparent),
              0 0 20px color-mix(in srgb, var(--core-light) 14%, transparent),
              inset 0 1px color-mix(in srgb, var(--text-primary) 8%, transparent);
  transition: border-color var(--motion-ui) var(--ease-ui), box-shadow var(--motion-ui) var(--ease-ui);
}
.hero-system__core::before {
  content: ""; position: absolute; z-index: 0; left: 50%; top: 12px; width: 110px; height: 110px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--core-light) 22%, transparent), transparent 70%);
  filter: blur(3px); transition: background var(--transition), transform var(--transition);
  pointer-events: none;
}
.hero-system__core-badge {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 5px;
  color: color-mix(in srgb, var(--core-light) 82%, var(--text-primary));
  font: 600 .52rem var(--font-mono); letter-spacing: .11em; text-transform: uppercase;
}
.core-dot {
  width: 4.5px; height: 4.5px; border-radius: 50%; background: var(--core-light);
  box-shadow: 0 0 6px var(--core-light); animation: heroRunPulse 2s infinite;
}
.hero-system__mascot-stage {
  position: relative; z-index: 1; display: grid; justify-items: center; align-items: center;
  width: 82px; height: 82px; margin: -2px 0 -4px;
}
.hero-mascot__interactive-btn {
  background: none; border: none; padding: 0; margin: 0;
  display: grid; justify-items: center; align-items: center;
  cursor: pointer; outline: none; border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
}
.hero-mascot__interactive-btn:focus-visible {
  outline: 2px solid var(--core-light, #00e696);
  outline-offset: 6px;
}
.hero-mascot__interactive-btn:hover .hero-mascot {
  filter: drop-shadow(0 10px 10px var(--mascot-shadow)) drop-shadow(0 0 14px color-mix(in srgb, var(--core-light, #00e696) 35%, transparent));
}
.hero-mascot {
  position: relative; z-index: 2; display: block; width: 76px; height: 84px;
  overflow: visible; filter: drop-shadow(0 8px 6px var(--mascot-shadow));
  transition: filter 0.3s ease;
}
.hero-mascot__actor {
  animation: heroBotFloat 3.6s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.hero-mascot__holo-pedestal {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 58px; height: 10px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--core-light) 40%, transparent);
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--core-light) 36%, transparent), transparent 70%);
  box-shadow: 0 0 12px color-mix(in srgb, var(--core-light) 25%, transparent);
  animation: heroBotPedestalPulse 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroBotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes heroBotPedestalPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.9; }
  50% { transform: translateX(-50%) scale(0.85); opacity: 0.55; }
}
.hero-system__core strong {
  position: relative; z-index: 2; max-width: 140px; color: var(--text-primary);
  font: 650 .82rem/1.12 var(--font-display);
}
.hero-system__core small {
  position: relative; z-index: 2; max-width: 136px; color: var(--text-secondary);
  font-size: .52rem; line-height: 1.25; letter-spacing: .04em;
}
.hero-mascot__actor, .hero-mascot__torso, .hero-mascot__head, .hero-mascot__head-shell,
.hero-mascot__face, .hero-mascot__antenna, .hero-mascot__arm, .hero-mascot__arm-motion,
.hero-mascot__torso-motion, .hero-mascot__head-motion, .hero-mascot__face-motion, .hero-mascot__antenna-motion,
.hero-mascot__gyro, .hero-mascot__lidar-cone {
  transform-box: fill-box;
}
.hero-mascot__actor, .hero-mascot__torso, .hero-mascot__head, .hero-mascot__head-shell, .hero-mascot__face { transform-origin: 50% 100%; }
.hero-mascot__foot { transform-origin: 50% 85%; }
.hero-mascot__arm--left { transform-origin: 100% 12%; }
.hero-mascot__arm--right { transform-origin: 0 12%; }
.hero-mascot__antenna { transform-origin: 25% 100%; }
.hero-mascot__lidar-cone { transform-origin: 50% 100%; }
.hero-mascot__gyro { transform-origin: 50% 50%; }

/* Gyroscopic Orbit Rings */
.hero-mascot__gyro-ring {
  fill: none;
  stroke: var(--core-light, #00e696);
  pointer-events: none;
}
.hero-mascot__gyro-ring--1 {
  stroke-width: 0.8px;
  stroke-dasharray: 3 3;
  opacity: 0.42;
  animation: gyroOrbitPrecess 9s linear infinite;
}
.hero-mascot__gyro-ring--2 {
  stroke-width: 0.6px;
  opacity: 0.3;
  animation: gyroOrbitTilt 5.5s ease-in-out infinite alternate;
}
@keyframes gyroOrbitPrecess {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes gyroOrbitTilt {
  0% { transform: rotate(-14deg) scaleY(1); }
  100% { transform: rotate(18deg) scaleY(1.15); }
}

/* LiDAR Cone Beam */
.hero-mascot__lidar-cone {
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms cubic-bezier(.22,.8,.3,1);
}

/* Antenna Waves */
.hero-mascot__antenna-signal {
  fill: none;
  stroke: var(--core-light, #00e696);
  opacity: 0;
  pointer-events: none;
}

/* Transitions */
.hero-mascot__actor, .hero-mascot__foot, .hero-mascot__arm, .hero-mascot__torso, .hero-mascot__head,
.hero-mascot__face, .hero-mascot__antenna {
  transition: transform 380ms cubic-bezier(.22,.8,.3,1);
}
.hero-mascot__face { transition-duration: 220ms; }
.hero-mascot__head {
  transform: translate(var(--head-x, 0px), var(--head-y, 0px)) rotate(var(--head-rot, 0deg));
}

/* Dynamic Eye Gaze */
.hero-mascot__gaze-group {
  transform: translate(var(--eye-x, 0px), var(--eye-y, 0px));
  transition: transform 70ms linear;
}

/* Multi-Expression OLED Face States */
.hero-mascot__face-state {
  opacity: 0;
  transition: opacity 160ms ease-out;
  pointer-events: none;
}
.hero-mascot__face--idle {
  opacity: 1;
  animation: heroMascotIdleFace 8.4s steps(1,end) infinite;
}
.hero-mascot__face--blink {
  opacity: 0;
  animation: heroMascotBlink 8.4s steps(1,end) infinite;
}

.hero-mascot__face-motion { animation: heroMascotFaceLead 8.4s cubic-bezier(.45,0,.2,1) infinite; }
.hero-mascot__head-motion { animation: heroMascotHeadLead 8.4s cubic-bezier(.45,0,.2,1) infinite; }
.hero-mascot__torso-motion { animation: heroMascotTorsoShift 8.4s cubic-bezier(.45,0,.2,1) infinite; }
.hero-mascot__arm--right .hero-mascot__arm-motion { animation: heroMascotArmResponse 8.4s cubic-bezier(.45,0,.2,1) infinite; }
.hero-mascot__antenna-motion { animation: heroMascotAntennaFollow 8.4s cubic-bezier(.45,0,.2,1) infinite; }

/* 1. Contextual State: 01 DATA / Geo (LiDAR scanner focus) */
.hero-system[data-keeper-state="geo"] .hero-mascot__actor { transform: translate(-2px, -1px); }
.hero-system[data-keeper-state="geo"] .hero-mascot__head { transform: translate(-3px, -2px) rotate(-6.5deg); }
.hero-system[data-keeper-state="geo"] .hero-mascot__face--idle,
.hero-system[data-keeper-state="geo"] .hero-mascot__face--blink { opacity: 0; animation: none; }
.hero-system[data-keeper-state="geo"] .hero-mascot__face--geo { opacity: 1; }
.hero-system[data-keeper-state="geo"] .hero-mascot__lidar-cone {
  opacity: 0.42;
  animation: lidarConeSweep 1.6s ease-in-out infinite alternate;
}
@keyframes lidarConeSweep {
  0% { transform: rotate(-14deg) scale(0.92); opacity: 0.28; }
  100% { transform: rotate(-32deg) scale(1.12); opacity: 0.58; }
}

/* 2. Contextual State: 02 STORAGE / Web (C++ Turbo Engine) */
.hero-system[data-keeper-state="web"] .hero-mascot__actor { transform: translate(2px, -1px); }
.hero-system[data-keeper-state="web"] .hero-mascot__head { transform: translate(3px, -2px) rotate(6.5deg); }
.hero-system[data-keeper-state="web"] .hero-mascot__face--idle,
.hero-system[data-keeper-state="web"] .hero-mascot__face--blink { opacity: 0; animation: none; }
.hero-system[data-keeper-state="web"] .hero-mascot__face--web { opacity: 1; }
.hero-system[data-keeper-state="web"] .hero-mascot__arm--right { transform: translate(2px, -2px) rotate(-18deg); }
.hero-system[data-keeper-state="web"] .hero-mascot__core-orb {
  animation: coreOrbTurbo 0.55s ease-in-out infinite alternate;
}
@keyframes coreOrbTurbo {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px var(--core-light)); }
  100% { transform: scale(1.6); filter: drop-shadow(0 0 8px #73f5ff); }
}

/* 3. Contextual State: 03 SYSTEMS / Tools (Developer Terminal) */
.hero-system[data-keeper-state="tools"] .hero-mascot__actor { transform: translate(-1.5px, 2px); }
.hero-system[data-keeper-state="tools"] .hero-mascot__head { transform: translate(-2.5px, 2px) rotate(-4.5deg); }
.hero-system[data-keeper-state="tools"] .hero-mascot__face--idle,
.hero-system[data-keeper-state="tools"] .hero-mascot__face--blink { opacity: 0; animation: none; }
.hero-system[data-keeper-state="tools"] .hero-mascot__face--tools { opacity: 1; }
.hero-system[data-keeper-state="tools"] .hero-mascot__arm--left { transform: translate(-1.5px, 1px) rotate(8deg); }

/* 4. Contextual State: 04 HARNESS / AI (Multi-Agent Pulse Stars) */
.hero-system[data-keeper-state="ai"] .hero-mascot__actor { transform: translate(1.5px, 2px); }
.hero-system[data-keeper-state="ai"] .hero-mascot__head { transform: translate(2.5px, 2px) rotate(4.5deg); }
.hero-system[data-keeper-state="ai"] .hero-mascot__face--idle,
.hero-system[data-keeper-state="ai"] .hero-mascot__face--blink { opacity: 0; animation: none; }
.hero-system[data-keeper-state="ai"] .hero-mascot__face--ai { opacity: 1; }
.hero-system[data-keeper-state="ai"] .hero-mascot__antenna { transform: rotate(8deg); }
.hero-system[data-keeper-state="ai"] .hero-mascot__antenna-signal {
  animation: antennaPulse 1.2s ease-out infinite;
}
@keyframes antennaPulse {
  0% { r: 3.5px; opacity: 0.9; stroke-width: 1.4px; }
  100% { r: 18px; opacity: 0; stroke-width: 0.4px; }
}

/* 5. Poke / Click Interaction State */
.hero-system[data-keeper-poke="true"] .hero-mascot__actor {
  animation: heroBotPokeBounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.hero-system[data-keeper-poke="true"] .hero-mascot__face-state {
  opacity: 0 !important;
  animation: none !important;
}
.hero-system[data-keeper-poke="true"] .hero-mascot__face--poke {
  opacity: 1 !important;
}
@keyframes heroBotPokeBounce {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-11px) scale(1.14) rotate(-3.5deg); }
  65% { transform: translateY(-3px) scale(1.04) rotate(2deg); }
  100% { transform: translateY(0) scale(1); }
}

.hero-system[data-active-domain="geo"] .hero-system__core { --core-light: var(--accent-visual); }
.hero-system[data-active-domain="web"] .hero-system__core { --core-light: var(--info-visual); }
.hero-system[data-active-domain="tools"] .hero-system__core { --core-light: var(--warning-visual); }
.hero-system[data-active-domain="ai"] .hero-system__core { --core-light: var(--violet-visual); }
.hero-system[data-active-domain] .hero-system__core::before { transform:translateX(-50%) scale(1.06); }

@keyframes heroMascotFaceLead {
  0%, 51%, 100% { transform: none; }
  55%, 67% { transform: translateY(-.35px) scale(1.01); }
  92% { transform: translateY(-.1px); }
}
@keyframes heroMascotHeadLead {
  0%, 54%, 100% { transform: none; }
  58%, 68% { transform: translate(-.35px, -.7px) rotate(-.6deg); }
  90% { transform: translate(-.1px, -.15px); }
}
@keyframes heroMascotTorsoShift {
  0%, 59%, 100% { transform: none; }
  63%, 77% { transform: translate(-.45px, .65px) rotate(-.55deg); }
  91% { transform: translate(-.1px, .1px); }
}
@keyframes heroMascotArmResponse {
  0%, 65%, 100% { transform: none; }
  69%, 78% { transform: translate(.8px, .45px) rotate(-3deg); }
  91% { transform: translate(.1px, .05px); }
}
@keyframes heroMascotAntennaFollow {
  0%, 74%, 100% { transform: none; }
  78%, 81% { transform: rotate(5deg); }
  85% { transform: rotate(-2.5deg); }
  93% { transform: rotate(.5deg); }
}
@keyframes heroMascotIdleFace { 0%, 85%, 89%, 100% { opacity:1; } 86%, 88% { opacity:0; } }
@keyframes heroMascotBlink { 0%, 85%, 89%, 100% { opacity:0; } 86%, 88% { opacity:1; } }

.hero-domain {
  position: absolute; z-index: 2; display: grid; gap: 3px; width: 146px; padding: 9px 11px;
  border: 1px solid color-mix(in srgb, var(--domain-visual) 32%, var(--border-subtle));
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface-card) 78%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--surface-page) 40%, transparent);
  transition: transform var(--motion-fast) var(--ease-ui), border-color var(--motion-fast) var(--ease-ui), box-shadow var(--motion-fast) var(--ease-ui), background var(--motion-fast) var(--ease-ui);
}
.hero-domain__header {
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
}
.hero-domain span.mono {
  color: var(--domain-text, var(--accent-text)); font-size: .52rem; letter-spacing: .1em; font-weight: 600;
}
.hero-domain__arrow {
  font-size: .68rem; line-height: 1; color: var(--domain-visual); opacity: .55;
  transition: transform var(--motion-fast) var(--ease-ui), opacity var(--motion-fast) var(--ease-ui);
}
.hero-domain strong { color: var(--text-primary); font: 600 .78rem var(--font-display); line-height: 1.2; }
.hero-domain small { color: var(--text-secondary); font-size: .56rem; line-height: 1.25; }

.hero-domain--geo {
  --domain-text: var(--accent-text); --domain-visual: var(--accent-visual);
  left: 14px; top: 12px; border-left: 3px solid var(--domain-visual);
}
.hero-domain--web {
  --domain-text: var(--info-text); --domain-visual: var(--info-visual);
  right: 14px; top: 12px; text-align: right; border-right: 3px solid var(--domain-visual);
}
.hero-domain--web .hero-domain__header { flex-direction: row-reverse; }

.hero-domain--tools {
  --domain-text: var(--warning-text); --domain-visual: var(--warning-visual);
  left: 14px; bottom: 12px; border-left: 3px solid var(--domain-visual);
}
.hero-domain--ai {
  --domain-text: var(--violet-text); --domain-visual: var(--violet-visual);
  right: 14px; bottom: 12px; text-align: right; border-right: 3px solid var(--domain-visual);
}
.hero-domain--ai .hero-domain__header { flex-direction: row-reverse; }

.hero-domain:hover,
.hero-domain:focus-visible,
.hero-domain.is-active {
  transform: translateY(-2px);
  border-color: var(--domain-visual);
  background: color-mix(in srgb, var(--domain-visual) 12%, var(--surface-card));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--domain-visual) 22%, transparent);
}
.hero-domain:hover .hero-domain__arrow,
.hero-domain:focus-visible .hero-domain__arrow,
.hero-domain.is-active .hero-domain__arrow {
  opacity: 1; transform: translate(1px, -1px);
}



.section { padding-top: 104px; padding-bottom: 104px; }
.section__head { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,420px); align-items: end; gap: 34px; margin-bottom: 52px; }
.section__head .section__title { margin-bottom: 0; }
.section__head > p { max-width: 420px; color: var(--text-dim); font-size: .94rem; line-height: 1.55; }
.section__title::after { opacity: .7; }

.spotlight { gap: 96px; }
.spotlight__item { grid-template-columns: minmax(0,1.18fr) minmax(300px,.82fr); gap: 54px; }
.spotlight__label { letter-spacing: .12em; }
.spotlight__title { font-size: clamp(1.75rem,3vw,2.55rem); line-height: 1.08; }
.spotlight__tagline { max-width: 34ch; font-size: 1.05rem; }
.spotlight__media { border-radius: 8px; }

/* Desktop-only About proportions. Must stay scoped so it cannot override the
   max-width: 900px single-column rule above. */
@media (min-width: 901px) {
  .about { grid-template-columns: minmax(0,1.55fr) minmax(250px,.75fr); gap: 80px; }
}
.about__text > p:first-child { color: var(--text); font: 500 clamp(1.25rem,2.25vw,1.7rem)/1.45 var(--font-display); }
.about__photo-frame { width: 100%; max-width: 280px; }
.about__photo-note { display:flex; justify-content:space-between; gap:10px; padding-top:10px; color:var(--text-dim); font-size:.62rem; text-transform:uppercase; letter-spacing:.06em; }
.about__photo-note b { color: var(--accent-text); font-weight:600; }
.about__highlights { margin-top: 28px; border-bottom: 1px solid var(--border-subtle); }
.about__highlights li { background: transparent; border-left: 0; border-right: 0; border-bottom: 0; border-top: 1px solid var(--border-subtle); border-radius: 0; padding: 13px 0; }

.timeline { max-width: none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:20px; }
.timeline::before { display:none; }
.timeline-item { padding: 28px; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--surface-raised); box-shadow: var(--shadow-sm); }
/* Card layout replaces the old vertical spine; keep full padding on every card. */
.timeline-item:last-child { padding-bottom: 28px; }
.timeline-item--work { min-height: 0; }
.timeline-item--education {
  min-height: 0;
  padding: 22px 24px;
  background: var(--surface-page);
  border-color: var(--border);
  box-shadow: none;
}
.timeline-item--education:last-child { padding-bottom: 22px; }
.timeline-item::before { left:auto; right:24px; top:28px; width:8px; height:8px; border-width:0; background:var(--accent-visual); box-shadow:0 0 8px var(--halo-accent); }
.timeline-item--education::before {
  top: 22px;
  right: 20px;
  width: 6px;
  height: 6px;
  box-shadow: none;
  opacity: 0.75;
}
.timeline-item__period { margin-bottom: 10px; }
.timeline-item__title { font-size:1.35rem; }
.timeline-item--education .timeline-item__title { font-size: 1.18rem; }
.timeline-item__desc { max-width:52ch; margin-top:16px; }
.timeline-item--education .timeline-item__desc { margin-top: 12px; max-width: 46ch; }

.projects { display:block; border-top:1px solid var(--border-subtle); }
.project-card { display:grid; grid-template-columns:48px minmax(0,1fr) minmax(220px,.65fr) auto; align-items:center; gap:22px; min-height:112px; padding:22px 8px; border:0; border-bottom:1px solid var(--border-subtle); border-radius:0; background:transparent; box-shadow:none; }
.project-card:hover, .project-card:focus-within { transform:none; box-shadow:none; background:linear-gradient(90deg,var(--surface-hover),transparent 64%); border-color:var(--border-subtle); }
.project-card__index { color:var(--text-dim); font-size:.68rem; }
.project-card__main h3 { font-size:1.08rem; margin:0 0 4px; }
.project-card__main p { color:var(--text-dim); font-size:.84rem; line-height:1.45; }
.project-card__tech { margin:0; display:flex; justify-content:flex-start; flex-wrap:wrap; }
.project-card__links { display:flex; gap:12px; }
.projects__more { margin-top:30px; text-align:left; }

.skills { grid-template-columns:repeat(4,1fr); gap:0; border-top:1px solid var(--border-subtle); border-bottom:1px solid var(--border-subtle); }
.skill-card { position:relative; min-height:250px; padding:30px 28px; border:0; border-right:1px solid var(--border-subtle); border-radius:0; background:transparent; }
.skill-card:last-child { border-right:0; }
.skill-card:hover { transform:none; box-shadow:none; background:linear-gradient(180deg,var(--surface-subtle),transparent 82%); }
.skill-card__num { display:block; margin-bottom:54px; color:var(--text-dim); font-size:.65rem; }
.skill-card h3 { color:var(--text); font-family:var(--font-display); font-size:1.1rem; text-transform:none; letter-spacing:0; }
.skill-card h3::before { display:none; }
.skill-tags { gap:6px 12px; }
.skill-tag { padding:0; border:0; border-radius:0; background:transparent; color:var(--text-dim); }
.skill-tag:not(:last-child)::after { content:" ·"; color:var(--border-strong); }

#github-activity, #ai-lab { position:relative; }
.contrib__card, .ai-lab__visual { border-radius:8px; }
.ai-lab { margin-bottom:42px; padding:38px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.ai-orbit { position:absolute; inset:0; display:block; padding:16px; }
.workflow-board {
  height:100%; display:grid; grid-template-rows:auto 1fr auto; overflow:hidden;
  border:1px solid color-mix(in srgb,var(--accent-visual) 28%,var(--border-subtle)); border-radius:10px;
  background:var(--surface-glass-strong); box-shadow:var(--shadow-sm); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
}
.workflow-board__bar {
  display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 14px;
  border-bottom:1px solid var(--border); color:var(--text-dim); font-size:.62rem; letter-spacing:.07em; text-transform:uppercase;
}
.workflow-board__bar > span { display:flex; align-items:center; gap:8px; }
.workflow-board__bar i { width:6px; height:6px; border-radius:50%; background:var(--accent-visual); box-shadow:0 0 8px var(--halo-accent); animation:workflowSignal 2s ease-in-out infinite; }
.workflow-board__bar b { color:var(--accent-text); font-weight:600; }
.workflow-track { position:relative; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); align-items:center; padding:28px 16px 20px; }
.workflow-track::before { content:""; position:absolute; left:9%; right:9%; top:50%; height:1px; background:var(--border); }
.workflow-track::after {
  content:""; position:absolute; left:9%; top:calc(50% - 1px); width:18%; height:2px;
  background:linear-gradient(90deg,transparent,var(--info-visual),var(--accent-visual),transparent);
  filter:drop-shadow(0 0 5px var(--halo-accent)); animation:workflowTravel 12.5s linear infinite;
}
.workflow-step { position:relative; z-index:2; display:grid; justify-items:center; align-content:center; gap:9px; min-width:0; text-align:center; opacity:.78; animation:workflowStep 12.5s ease-in-out infinite; animation-delay:calc(var(--step) * 2.5s); }
.workflow-step:nth-child(1), .workflow-step:nth-child(4) { --node-visual: var(--accent-visual); }
.workflow-step:nth-child(2), .workflow-step:nth-child(5) { --node-visual: var(--info-visual); }
.workflow-step:nth-child(3) { --node-visual: var(--warning-visual); }
.workflow-step__num {
  display:grid; place-items:center; width:42px; height:42px; border:1px solid color-mix(in srgb,var(--node-visual) 48%,var(--border-subtle));
  border-radius:50%; color:var(--node-color); background:var(--surface-page); font-size:.72rem; box-shadow:0 0 0 7px var(--surface-page);
}
.workflow-step > div { min-width:0; }
.workflow-step strong { display:block; color:var(--text); font:600 .78rem var(--font-display); }
.workflow-step small { display:block; max-width:92px; margin:3px auto 0; color:var(--text-dim); font-size:.58rem; line-height:1.3; }
.workflow-step > i { position:absolute; top:50%; width:54px; height:54px; border:1px solid var(--node-visual); border-radius:50%; opacity:0; animation:workflowPing 12.5s ease-out infinite; animation-delay:calc(var(--step) * 2.5s); }
.workflow-evidence { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 14px; border-top:1px solid var(--border-subtle); background:var(--surface-glass-strong); }
.workflow-evidence > div:first-child { display:grid; }
.workflow-evidence > div:first-child span { color:var(--info-text); font-size:.55rem; text-transform:uppercase; letter-spacing:.08em; font-weight:600; }
.workflow-evidence > div:first-child strong { font:600 .78rem var(--font-display); }
.workflow-evidence__checks { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px 12px; color:var(--text-dim); font-size:.55rem; }
.workflow-evidence__checks span { white-space:nowrap; }
.workflow-evidence__checks span::first-letter { color:var(--accent); }
.workflow-board--fallback {
  position:relative; z-index:1; height:100%; min-height:0;
  display:grid; grid-template-rows:auto 1fr auto auto; gap:0;
}
.workflow-fallback-steps {
  list-style:none; margin:0; padding:16px 14px 12px;
  display:grid; gap:10px; overflow:auto;
}
.workflow-fallback-steps li {
  display:grid; grid-template-columns:auto 1fr; gap:4px 12px; align-items:baseline;
  padding:8px 10px; border:1px solid var(--border-subtle); border-radius:8px;
  background:var(--surface-glass-strong, transparent);
}
.workflow-fallback-steps strong {
  font:600 .78rem var(--font-display); color:var(--text);
}
.workflow-fallback-steps span {
  grid-column:2; color:var(--text-dim); font-size:.68rem; line-height:1.35;
}
.workflow-fallback-note {
  margin:0; padding:10px 14px 4px; color:var(--accent-text, var(--accent));
  font-size:.72rem; letter-spacing:.02em;
}
.workflow-fallback-meta {
  margin:0; padding:0 14px 14px; color:var(--text-dim); font-size:.68rem; line-height:1.4;
}
@keyframes workflowSignal { 50% { opacity:.35; transform:scale(.72); } }
@keyframes workflowTravel { from { transform:translateX(-20%); } to { transform:translateX(360%); } }
@keyframes workflowStep { 0%,14%,100% { opacity:.78; transform:translateY(0); } 4%,10% { opacity:1; transform:translateY(-4px); } }
@keyframes workflowPing { 0%,3%,100% { opacity:0; transform:scale(.72); } 6% { opacity:.55; transform:scale(1); } 12% { opacity:0; transform:scale(1.28); } }
.agent-crew__intro { max-width:680px; }
.ai-experiment { border-radius:8px; }

.section--contact { margin-top:40px; border-top:1px solid var(--border); }
html[lang="en"] .section--contact::before { content:"OPEN TO SOFTWARE ENGINEERING ROLES & PROJECTS"; }
html[lang="vi"] .section--contact::before { content:"SẴN SÀNG TRAO ĐỔI VỀ VỊ TRÍ VÀ DỰ ÁN PHÙ HỢP"; }
.section--contact::before { display:inline-block; margin-bottom:20px; color:var(--accent-text); font:600 .65rem var(--font-mono); letter-spacing:.12em; }

@media (max-width: 900px) {
  .section__head { grid-template-columns:1fr; gap:12px; }
  .spotlight__item { grid-template-columns:1fr; gap:26px; }
  .timeline { grid-template-columns:1fr; }
  .project-card { grid-template-columns:38px minmax(0,1fr) auto; }
  .project-card__tech { display:none; }
  .skills { grid-template-columns:repeat(2,1fr); }
  .skill-card:nth-child(2) { border-right:0; }
  .skill-card:nth-child(-n+2) { border-bottom:1px solid var(--border); }
}
@media (max-width: 900px) {
  /* Contain long stage chrome without overriding .container max-width on desktop. */
  .hero__stage { min-width: 0; }
  .hero-system__top { min-width: 0; }
  .hero-system__top b { white-space: normal; }
}
@media (max-width: 640px) {
  .section { padding-top:76px; padding-bottom:76px; }
  .hero-system { inset:8px; }
  .hero-system__top { padding:9px 10px; }
  /* Mobile-only 2×2 map: prevents domain 03/04 title collision without changing desktop. */
  .hero-system__map {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 10px 8px;
    align-content: center;
    min-height: 286px;
    padding: 6px 2px 2px;
  }
  .hero-system__links {
    position: absolute;
    inset: 0;
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    transform: none;
    opacity: 0.55;
    pointer-events: none;
  }
  .hero-system__core {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    width: 132px;
    min-height: 120px;
    z-index: 2;
  }
  .hero-mascot { width: 56px; height: 64px; }
  .hero-system__core small { display: none; }
  .hero-domain {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    min-width: 0;
    width: 100%;
    max-width: none;
    min-height: 68px;
    padding: 8px 9px;
  }
  .hero-domain--geo { grid-column: 1; grid-row: 1; }
  .hero-domain--web { grid-column: 2; grid-row: 1; }
  .hero-domain--tools { grid-column: 1; grid-row: 3; }
  .hero-domain--ai { grid-column: 2; grid-row: 3; }
  .hero-domain strong { font-size: .72rem; line-height: 1.2; overflow-wrap: anywhere; }
  .hero-domain small { display: block; font-size: .54rem; line-height: 1.3; }
  .about { grid-template-columns:1fr; gap:34px; }
  .about__photo { order:0; justify-content:flex-start; }
  .about__photo-frame { max-width:230px; }
  .skills { grid-template-columns:1fr; }
  .skill-card { min-height:0; border-right:0; border-bottom:1px solid var(--border); }
  .skill-card:last-child { border-bottom:0; }
  .skill-card__num { margin-bottom:24px; }
  .project-card { grid-template-columns:30px minmax(0,1fr) auto; gap:10px; }
  .project-card__links .project-link--external { display:none; }
  .l3d-legend { left: 12px; right: 12px; gap: 10px; font-size: 0.56rem; }
  .ai-lab { padding:24px 0; border-radius:0; }
  .workflow-track { grid-template-columns:1fr; gap:10px; align-items:stretch; padding:14px; }
  .workflow-track::before, .workflow-track::after { display:none; }
  .workflow-step { grid-template-columns:38px 1fr; justify-items:start; align-items:center; gap:10px; text-align:left; padding:5px 8px; }
  .workflow-step__num { grid-row:1; width:34px; height:34px; box-shadow:none; }
  .workflow-step small { max-width:none; margin-top:2px; }
  .workflow-step > i { left:-2px; top:50%; width:42px; height:42px; transform:translateY(-50%); }
  .workflow-evidence {
    align-items:flex-start; flex-direction:column; gap:10px;
  }
  .workflow-evidence__checks {
    display:flex; justify-content:flex-start; gap:6px 10px;
    white-space:normal;
  }
  .workflow-evidence__checks span { white-space:normal; }
  .workflow-fallback-steps { padding:12px; gap:8px; }
  .workflow-fallback-steps li { grid-template-columns:1fr; gap:2px; }
  .workflow-fallback-steps span { grid-column:1; }
  .ai-experiment.is-static .agent-crew__scene {
    min-height: 560px;
  }
  .ai-experiment.is-static .agent-crew__iso-wrap {
    inset: 96px 8px 88px;
  }
  .ai-experiment.is-static .agent-crew__hud--agent,
  .ai-experiment.is-static .agent-crew__hud--terminal {
    display: none;
  }
  .ai-experiment.is-static .agent-crew__hud--contract {
    left: 14px; right: 14px; width: auto; top: 14px;
  }
  .ai-experiment.is-3d-active .agent-crew__scene {
    min-height: 720px;
  }
  .ai-experiment.is-3d-active .agent-crew__hud--contract { top: 12px; }
  .ai-experiment.is-3d-active .agent-crew__hud--agent { top: 132px; }
  .ai-experiment.is-3d-active .agent-crew__hud--terminal { bottom: 86px; }
  .ai-experiment.is-3d-active .agent-crew__controls { top: 248px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-system__top i, .hero-system__links path, .hero-system__links circle { animation:none !important; }
  .hero-mascot, .hero-mascot * { animation:none !important; transition:none !important; }
  .hero-mascot__actor, .hero-mascot__actor * { transform:none !important; }
  .hero-mascot__face--idle { opacity:1 !important; }
  .hero-mascot__face--blink { opacity:0 !important; }
  .workflow-board__bar i, .workflow-track::after, .workflow-step, .workflow-step > i { animation:none !important; }
  .workflow-step { opacity:1; transform:none; }
}

/* ============================================================
   INTERACTION POLISH — inspectable, accessible, motion-aware
   ============================================================ */
.reveal {
  transition-duration: var(--motion-reveal);
  transition-timing-function: var(--ease-enter);
  transition-delay: var(--reveal-delay, 0ms);
}
.hero__copy .reveal:nth-child(2) { --reveal-delay: 45ms; }
.hero__copy .reveal:nth-child(3) { --reveal-delay: 90ms; }
.hero__copy .reveal:nth-child(4) { --reveal-delay: 135ms; }
.hero__copy .reveal:nth-child(5) { --reveal-delay: 180ms; }
.hero__copy .reveal:nth-child(6) { --reveal-delay: 225ms; }
.hero__copy .reveal:nth-child(7) { --reveal-delay: 270ms; }
.hero__stage.reveal { --reveal-delay: 130ms; }

.nav__links a:focus-visible,
.theme-toggle:focus-visible,
.lang-toggle:focus-visible,
.social-link:focus-visible,
.btn:focus-visible,
.project-link:focus-visible,
.spotlight__title a:focus-visible {
  border-color: var(--focus-ring);
  text-decoration: none;
}

body.nav-open::before {
  content: ""; position: fixed; inset: 64px 0 0; z-index: 90;
  background: color-mix(in srgb, var(--text-primary) 24%, transparent);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}

.hero-domain {
  min-height: 44px; color: inherit; text-decoration: none; cursor: pointer;
}
.hero-domain:hover,
.hero-domain:focus-visible,
.hero-domain.is-active {
  transform: translateY(-2px);
  color: inherit; text-decoration: none;
  border-color: var(--domain-visual);
  background: color-mix(in srgb, var(--domain-visual) 14%, var(--surface-card));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--domain-visual) 26%, transparent);
}
.hero-system__links path {
  opacity: .72;
  transition: opacity var(--motion-fast) var(--ease-ui), stroke var(--motion-fast) var(--ease-ui), stroke-width var(--motion-fast) var(--ease-ui);
}
.hero-system__links path[data-hero-route="geo"] { --route-color: var(--accent-visual); }
.hero-system__links path[data-hero-route="web"] { --route-color: var(--info-visual); }
.hero-system__links path[data-hero-route="tools"] { --route-color: var(--warning-visual); }
.hero-system__links path[data-hero-route="ai"] { --route-color: var(--violet-visual); }
.hero-system[data-active-domain] .hero-system__links path { opacity: .14; }
.hero-system[data-active-domain] .hero-packet { opacity: .2; }

.hero-system__links path.is-active {
  opacity: 1 !important; stroke: var(--route-color); stroke-width: 2.2;
  filter: drop-shadow(0 0 6px var(--route-color));
  animation-duration: 6s;
}
.hero-system[data-active-domain="geo"] .hero-packet--geo,
.hero-system[data-active-domain="web"] .hero-packet--web,
.hero-system[data-active-domain="tools"] .hero-packet--tools,
.hero-system[data-active-domain="ai"] .hero-packet--ai {
  opacity: 1 !important;
  filter: drop-shadow(0 0 10px var(--packet-color));
  transform: scale(1.4);
}
.hero-system__core { transition: border-color var(--motion-ui) var(--ease-ui), box-shadow var(--motion-ui) var(--ease-ui); }
.hero-system[data-active-domain] .hero-system__core {
  border-color: color-mix(in srgb, var(--core-light) 62%, var(--border-subtle));
  box-shadow: 0 0 34px color-mix(in srgb, var(--core-light) 48%, transparent), inset 0 0 24px color-mix(in srgb, var(--text-primary) 4%, transparent);
}
.spotlight__item { scroll-margin-top: 88px; }

.spotlight__media:focus-visible {
  border-color: var(--focus-ring);
  box-shadow: var(--shadow-hover);
}

.contrib__inspector {
  min-height: 28px; margin-top: 8px; padding: 8px 10px;
  border-top: 1px solid var(--border); color: var(--text-dim);
  font-size: .7rem; text-align: center;
}
.contrib__graph[tabindex] { cursor: default; border-radius: 8px; }
.contrib__graph[tabindex]:focus-visible { outline-offset: 5px; }
.contrib__iso .iso { cursor: pointer; }
.contrib__iso .iso polygon {
  stroke: transparent; stroke-width: 1; vector-effect: non-scaling-stroke;
}
.contrib__iso .iso.is-selected polygon { stroke: var(--contrib-selected-stroke); }
.contrib__iso .iso.is-selected .iso__t { fill: color-mix(in srgb, var(--c) 74%, var(--contrib-selected-mix)); }
.contrib__iso .iso.is-keyboard-selected polygon { stroke-width: 2; }

@media (max-width: 640px) {
  .nav__links {
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform var(--motion-ui) var(--ease-ui), opacity var(--motion-fast) var(--ease-ui), visibility 0s linear var(--motion-ui);
  }
  .nav__links.open {
    opacity: 1; visibility: visible; pointer-events: auto;
    transition-delay: 0s;
  }
  .contrib__inspector { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; transition-delay: 0ms; }
  .hero-domain, .hero-system__links path, .hero-system__core,
  .contrib__iso .iso polygon { transition: none; }
  .hero-domain:hover, .hero-domain:focus-visible, .hero-domain.is-active { transform: none; }
}

/* ============================================================
   PROJECT EVIDENCE + RESPONSIVE DENSITY
   Scoped to Featured Projects and Project Index.
   ============================================================ */
.spotlight { gap: 68px; }
.spotlight__item { gap: 42px; }
.spotlight__tagline { margin-bottom: 12px; }
.spotlight__desc { padding: 16px 18px; }
.spotlight__desc p + p { margin-top: 8px; }
.spotlight__tech { gap: 7px 12px; margin-top: 14px; }
.spotlight__links { margin-top: 12px; }

.project-card__links {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.project-card__links .project-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 44px; min-height: 44px; padding: 0 11px;
  border: 1px solid var(--border-subtle); border-radius: 8px;
  color: var(--text-dim); background: var(--surface-subtle);
  font: 600 .66rem/1.2 var(--font-mono); text-decoration: none;
  transition: color var(--motion-fast) var(--ease-ui),
    border-color var(--motion-fast) var(--ease-ui),
    background var(--motion-fast) var(--ease-ui);
}
.project-card__links .project-link svg { width: 16px; height: 16px; flex: 0 0 auto; }
.project-card__links .project-link:hover {
  color: var(--link-hover); border-color: var(--border-interactive); background: var(--surface-hover);
}
.project-card__links .project-link--primary {
  color: var(--accent-text); border-color: color-mix(in srgb, var(--accent-visual) 42%, var(--border-subtle));
  background: var(--accent-fill);
}
.projects .project-card__links--compact .project-link {
  min-width: 108px; padding-inline: 10px; background: transparent;
}
.projects .project-card__links--compact .project-link--primary {
  background: transparent;
}

.spotlight__media--contain {
  position: relative; display: block; aspect-ratio: 16 / 9; min-height: 0;
  padding: 18px; background: var(--viz-bg);
}
.spotlight__media--contain img {
  position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px);
  max-width: none; max-height: none; object-fit: contain;
  filter: none; border-radius: 5px; box-shadow: var(--shadow-sm);
}
.spotlight__media--contain:hover img { filter: none; transform: none; }

.project-card {
  grid-template-columns: 48px minmax(220px, 1fr) minmax(170px, .55fr) auto;
  gap: 18px; min-height: 106px; padding: 18px 8px;
}
.project-card__meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px;
  margin-bottom: 5px; color: var(--text-dim); font-size: .58rem;
  line-height: 1.35; letter-spacing: .07em; text-transform: uppercase;
}
.project-card__context { color: var(--accent-text); }
.project-card__evidence::before { content: "·"; margin-right: 10px; color: var(--border-strong); }
.project-card__tech { gap: 6px 10px; }
.project-card__tech span { font-size: .7rem; }

@media (max-width: 960px) {
  .spotlight { gap: 60px; }
  .spotlight__item { grid-template-columns: 1fr; gap: 20px; }
  .spotlight__item .spotlight__media,
  .spotlight__item--flip .spotlight__media { order: 1; }
  .spotlight__item .spotlight__content,
  .spotlight__item--flip .spotlight__content { order: 2; }
  .spotlight__media--lidar3d .terminal {
    display: grid; grid-template-rows: auto minmax(0, 1fr);
    height: clamp(230px, 42vw, 340px);
  }
  .spotlight__media--lidar3d .terminal__body--lidar { min-height: 0; overflow: hidden; }
  .spotlight__media--lidar3d .l3d { width: 100%; height: 100%; max-height: none; }
}

@media (max-width: 900px) {
  .project-card {
    grid-template-columns: 38px minmax(0, 1fr); align-items: start;
    gap: 8px 16px; min-height: 0; padding: 18px 6px;
  }
  .project-card__index { grid-column: 1; grid-row: 1; padding-top: 2px; }
  .project-card__main { grid-column: 2; grid-row: 1; min-width: 0; }
  .project-card__tech {
    display: flex; grid-column: 2; grid-row: 2; margin: 2px 0 0;
  }
  .project-card__links { grid-column: 2; grid-row: 3; margin-top: 2px; }
}

@media (max-width: 640px) {
  .spotlight { gap: 52px; }
  .spotlight__item { gap: 16px; }
  .spotlight__meta { margin-bottom: 7px; }
  .spotlight__title { font-size: 1.55rem; }
  .spotlight__tagline { margin: 3px 0 8px; font-size: .94rem; line-height: 1.45; }
  .spotlight__desc { padding: 12px 13px; }
  .spotlight__desc p { font-size: .89rem; line-height: 1.5; }
  .spotlight__desc p + p { margin-top: 6px; }
  .spotlight__tech { margin-top: 11px; }
  .spotlight__links { margin-top: 9px; }
  .project-card__links .project-link,
  .project-card__links .project-link--external {
    display: inline-flex; padding: 0 10px; font-size: .63rem;
  }
  .spotlight__media--contain { padding: 14px; }
  .spotlight__media--contain img {
    inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px);
  }
  .spotlight__media--lidar3d .terminal { height: 230px; }
  .spotlight__media--lidar3d .terminal__title { font-size: .64rem; }
  .spotlight__media--lidar3d .l3d { padding: 32px 0 25px; }
  .project-card { grid-template-columns: 28px minmax(0, 1fr); gap: 8px 12px; padding: 16px 4px; }
  .project-card__meta { align-items: flex-start; gap: 3px; font-size: .56rem; }
  .project-card__context,
  .project-card__evidence { width: 100%; }
  .project-card__evidence::before { display: none; }
}

/* The orchestration visual carries more structure than a normal spotlight row;
   give its process diagram the wider side on desktop, then let mobile stack it. */
@media (min-width: 901px) {
  .spotlight__item--pipeline {
    grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
  }
}

/* ============================================================
   CINEMATIC PROJECT SCENES
   Original image-led visuals for the two featured systems.
   ============================================================ */
.spotlight__media--spacelens-scene,
.spotlight__media--ah-command {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  background: #020611;
  box-shadow: 0 20px 55px rgba(0, 18, 48, .32), 0 0 0 1px rgba(94, 195, 255, .16);
  isolation: isolate;
  container: cinematic-scene / inline-size;
}
.spotlight__media--spacelens-scene:hover,
.spotlight__media--ah-command:hover {
  border-color: transparent;
  box-shadow: 0 24px 65px rgba(0, 28, 72, .42), 0 0 0 1px rgba(94, 195, 255, .38);
  transform: translateY(-4px);
}
.spotlight__media--spacelens-scene:focus-visible,
.spotlight__media--ah-command:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 5px;
}

/* ---- SpaceLens: a scanner looking down on a file city ---- */
.sl-scene {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  overflow: hidden;
  color: #e9f7ff;
  background:
    radial-gradient(circle at 78% 16%, rgba(57, 153, 255, .24), transparent 24%),
    radial-gradient(circle at 38% 70%, rgba(0, 202, 255, .12), transparent 34%),
    #020611;
  font-family: var(--font-mono);
}
.sl-scene::before,
.sl-scene::after,
.ah-command::before,
.ah-command::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
}
.sl-scene::before,
.ah-command::before {
  background: linear-gradient(115deg, rgba(1, 8, 20, .78), transparent 38%, transparent 68%, rgba(0, 5, 16, .56));
}
.sl-scene::after,
.ah-command::after {
  z-index: 3;
  opacity: .26;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 100% 4px;
  mix-blend-mode: screen;
}
.sl-scene__svg,
.ah-command__svg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.sl-scene__space { fill: #020611; }
.sl-scene__nebula { fill: rgba(22, 82, 157, .22); }
.sl-scene__star { fill: #a8e7ff; opacity: .62; }
.sl-scene__rings ellipse {
  stroke: rgba(73, 201, 255, .3);
  stroke-dasharray: 2 10;
  stroke-width: 1.2;
  animation: slSceneOrbit 16s linear infinite;
}
.sl-scene__rings ellipse:nth-child(2) { opacity: .78; animation-duration: 19s; animation-direction: reverse; }
.sl-scene__rings ellipse:nth-child(3) { opacity: .48; animation-duration: 24s; }
.sl-scene__rings ellipse:nth-child(4) { opacity: .26; animation-duration: 30s; animation-direction: reverse; }
.sl-scene__beam { opacity: .84; transform-origin: 785px 157px; animation: slSceneBeam 5.5s var(--ease-ui) infinite; }
.sl-scene__beam-line {
  fill: none;
  stroke: rgba(126, 229, 255, .8);
  stroke-dasharray: 2 12;
  stroke-width: 1.2;
  opacity: .64;
  animation: slSceneSignal 2.8s linear infinite;
}
.sl-scene__city-floor { opacity: .92; }
.sl-scene__city-grid {
  fill: none;
  stroke: rgba(73, 184, 255, .24);
  stroke-width: 1;
}
.sl-scene__city-edge {
  fill: none;
  stroke: rgba(102, 212, 255, .56);
  stroke-width: 1.4;
}
.sl-scene__block {
  --district: #3fd0ff;
  fill: color-mix(in srgb, var(--district) 72%, #061426);
  stroke: color-mix(in srgb, var(--district) 78%, #95e9ff);
  stroke-width: 1.1;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--district) 42%, transparent));
}
.sl-scene__block--build { --district: #44d5ff; }
.sl-scene__block--cache { --district: #6ee7ad; }
.sl-scene__block--media { --district: #ffc36b; }
.sl-scene__block--logs { --district: #ff7d91; }
.sl-scene__block--src { --district: #aeb9ff; }
.sl-scene__block-depth { opacity: .46; }
.sl-scene__block-glint { fill: none; stroke: rgba(255,255,255,.62); stroke-width: 1.5; }
.sl-scene__lens-shadow { fill: rgba(0, 2, 10, .86); stroke: rgba(34, 101, 190, .5); stroke-width: 8; }
.sl-scene__lens-ring { fill: none; stroke: #2b9dff; stroke-width: 4; stroke-dasharray: 18 8 3 9; }
.sl-scene__lens-core { stroke: #79e4ff; stroke-width: 2; }
.sl-scene__lens-glass { fill: rgba(25, 151, 255, .28); stroke: rgba(203, 249, 255, .8); stroke-width: 2; }
.sl-scene__lens-cross { fill: none; stroke: rgba(180, 244, 255, .54); stroke-width: 1; }
.sl-scene__lens-aperture { fill: #d6fbff; filter: drop-shadow(0 0 10px #36caff); }
.sl-scene__lens-spark { fill: #fff; filter: drop-shadow(0 0 8px #9ceeff); }
.sl-scene__lens { animation: slSceneLens 8s var(--ease-ui) infinite; transform-box: fill-box; transform-origin: center; }

.sl-scene__hud,
.sl-scene__scan-status,
.sl-scene__readout,
.sl-scene__legend,
.sl-scene__contract,
.ah-command__detail,
.ah-command__rail,
.ah-command__telemetry {
  position: absolute;
  z-index: 5;
}
.sl-scene__hud {
  top: 6%;
  left: 5%;
  display: grid;
  gap: 3px;
  max-width: 52%;
  pointer-events: none;
}
.sl-scene__kicker {
  color: #69dcff;
  font-size: clamp(.56rem, 1vw, .68rem);
  letter-spacing: .16em;
  white-space: nowrap;
}
.sl-scene__hud strong {
  color: #f1fbff;
  font: 600 clamp(1.1rem, 2.4vw, 1.72rem)/1.1 var(--font-display);
  letter-spacing: -.02em;
  text-shadow: 0 0 20px rgba(60, 194, 255, .26);
}
.sl-scene__volume {
  position: absolute;
  top: 7%;
  right: 5%;
  z-index: 5;
  width: min(42%, 220px);
  color: rgba(191, 229, 255, .78);
  font-size: clamp(.52rem, .85vw, .62rem);
  line-height: 1.28;
  text-align: right;
  pointer-events: none;
}
.sl-scene__volume b {
  display: block;
  margin-bottom: 2px;
  color: #8aeaff;
  font-weight: 600;
}
.sl-scene__scan-status {
  top: 22%;
  right: 5%;
  display: grid;
  gap: 2px;
  color: rgba(168, 224, 255, .62);
  font-size: clamp(.46rem, .8vw, .56rem);
  letter-spacing: .08em;
  text-align: right;
  pointer-events: none;
}
.sl-scene__scan-status b { color: #69e8b2; font-weight: 600; }
.sl-scene__hotspots {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}
.sl-scene__hotspot {
  position: absolute;
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid rgba(137, 221, 255, .28);
  border-radius: 999px;
  color: rgba(227, 249, 255, .82);
  background: rgba(2, 12, 28, .62);
  box-shadow: 0 0 0 4px rgba(45, 178, 255, 0), 0 6px 18px rgba(0, 0, 0, .22);
  font: 600 clamp(.47rem, .9vw, .62rem)/1 var(--font-mono);
  letter-spacing: .05em;
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: color var(--motion-fast) var(--ease-ui), border-color var(--motion-fast) var(--ease-ui), background var(--motion-fast) var(--ease-ui), box-shadow var(--motion-fast) var(--ease-ui);
}
.sl-scene__hotspot:hover,
.sl-scene__hotspot:focus-visible,
.sl-scene__hotspot.is-active {
  border-color: var(--hotspot-color, #58d9ff);
  color: #fff;
  background: color-mix(in srgb, var(--hotspot-color, #58d9ff) 22%, rgba(2, 12, 28, .82));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--hotspot-color, #58d9ff) 15%, transparent), 0 0 22px color-mix(in srgb, var(--hotspot-color, #58d9ff) 38%, transparent);
}
.sl-scene__hotspot:focus-visible { outline: 2px solid #b7f2ff; outline-offset: 4px; }
.sl-scene__hotspot-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--hotspot-color, #58d9ff); box-shadow: 0 0 8px var(--hotspot-color, #58d9ff); }
.sl-scene__hotspot-index { color: var(--hotspot-color, #58d9ff); font-size: .5rem; }
.sl-scene__hotspot-name { white-space: nowrap; }
.sl-scene__hotspot--build { --hotspot-color: #48d7ff; left: 31%; top: 53%; }
.sl-scene__hotspot--cache { --hotspot-color: #72e9ad; left: 62%; top: 48%; }
.sl-scene__hotspot--media { --hotspot-color: #ffc46b; left: 18%; top: 73%; }
.sl-scene__hotspot--logs { --hotspot-color: #ff7f94; left: 43%; top: 76%; }
.sl-scene__hotspot--src { --hotspot-color: #adb7ff; left: 67%; top: 73%; }
.sl-scene__readout {
  left: 4.5%;
  bottom: 19%;
  width: min(39%, 260px);
  padding: 11px 13px;
  border: 1px solid rgba(91, 212, 255, .18);
  border-left: 2px solid #48d7ff;
  background: linear-gradient(90deg, rgba(2, 13, 31, .97), rgba(2, 13, 31, .91));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .34), 0 0 22px rgba(0, 125, 215, .08);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  pointer-events: none;
}
.sl-scene__readout-kicker,
.sl-scene__readout-rule {
  display: block;
  color: #62ddff;
  font-size: clamp(.5rem, .78vw, .56rem);
  letter-spacing: .1em;
  line-height: 1.25;
  text-transform: uppercase;
}
.sl-scene__readout > strong {
  display: block;
  margin: 4px 0 2px;
  color: #fff;
  font: 600 clamp(.82rem, 1.35vw, 1rem)/1.1 var(--font-display);
}
.sl-scene__readout-rule { color: #8cebb9; letter-spacing: .04em; }
.sl-scene__readout-rows { display: grid; gap: 4px; margin: 8px 0 0; }
.sl-scene__readout-rows > div { display: flex; justify-content: space-between; gap: 8px; }
.sl-scene__readout-rows dt,
.sl-scene__readout-rows dd { min-width: 0; margin: 0; font-size: clamp(.48rem, .75vw, .54rem); line-height: 1.3; }
.sl-scene__readout-rows dt { color: rgba(187, 222, 243, .62); }
.sl-scene__readout-rows dd { overflow-wrap: anywhere; color: rgba(239, 250, 255, .92); text-align: right; }
.sl-scene__value--safe { color: #79e6b0 !important; }
.sl-scene__value--warning { color: #ffca72 !important; }
.sl-scene__value--protected { color: #ff8e9e !important; }
.sl-scene__legend { left: 5%; bottom: 12%; color: rgba(195, 229, 245, .62); font-size: clamp(.43rem, .72vw, .52rem); }
.sl-scene__legend i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: #48d7ff; box-shadow: 0 0 8px #48d7ff; }
.sl-scene__contract {
  right: 4%;
  bottom: 4%;
  left: 4%;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  align-items: center;
  padding-top: 7px;
  border-top: 1px solid rgba(126, 210, 255, .18);
  color: rgba(191, 225, 241, .66);
  font-size: clamp(.4rem, .7vw, .5rem);
  letter-spacing: .06em;
}
.sl-scene__contract span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.sl-scene__contract i { width: 5px; height: 5px; border-radius: 50%; background: #72e9ad; box-shadow: 0 0 7px #72e9ad; }
.sl-scene__contract span:nth-child(2) i { background: #48d7ff; box-shadow: 0 0 7px #48d7ff; }
.sl-scene__contract span:nth-child(3) i { background: #ffc46b; box-shadow: 0 0 7px #ffc46b; }
.sl-scene__contract small { margin-left: auto; color: rgba(202, 234, 247, .5); font-size: inherit; }

/* ---- Open Code Better: command orbit around Sisyphus ---- */
.ah-command {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  overflow: hidden;
  color: #edfaff;
  background:
    radial-gradient(circle at 50% 45%, rgba(0, 199, 229, .16), transparent 25%),
    radial-gradient(circle at 83% 18%, rgba(127, 91, 255, .14), transparent 30%),
    #02070f;
  font-family: var(--font-mono);
}
.ah-command__space { fill: #02070f; }
.ah-command__constellation { fill: none; stroke: rgba(47, 204, 255, .18); stroke-width: 1; stroke-dasharray: 2 9; }
.ah-command__routes path,
.ah-command__route { stroke: var(--route-color, #43d8ff); stroke-width: 1.35; stroke-linecap: round; opacity: .38; stroke-dasharray: 5 8; animation: ahCommandRoute 8s linear infinite; }
.ah-command__route--plan { --route-color: #54e4ff; }
.ah-command__route--explore { --route-color: #35b8ff; }
.ah-command__route--oracle { --route-color: #a99aff; }
.ah-command__route--machaon { --route-color: #ffb86c; }
.ah-command__route--hephaestus { --route-color: #70e6ad; }
.ah-command__route.is-active { opacity: 1; stroke-width: 2.6; filter: drop-shadow(0 0 5px var(--route-color)); }
.ah-command__packet { fill: var(--packet-color, #69e4ff); opacity: .68; filter: drop-shadow(0 0 5px var(--packet-color, #69e4ff)); }
.ah-command__packet--plan { --packet-color: #54e4ff; }
.ah-command__packet--explore { --packet-color: #35b8ff; }
.ah-command__packet--oracle { --packet-color: #a99aff; }
.ah-command__packet--machaon { --packet-color: #ffb86c; }
.ah-command__packet--hephaestus { --packet-color: #70e6ad; }
.ah-command__packet.is-active { opacity: 1; r: 4; }
.ah-command__node { opacity: .72; transition: opacity var(--motion-fast) var(--ease-ui), transform var(--motion-fast) var(--ease-ui); }
.ah-command__node.is-active { opacity: 1; }
.ah-command__node-halo { fill: rgba(48, 189, 255, .08); stroke: var(--node-color, #54e4ff); stroke-width: 1; stroke-dasharray: 2 8; }
.ah-command__node-orbit { fill: rgba(3, 13, 30, .72); stroke: var(--node-color, #54e4ff); stroke-width: 1.7; }
.ah-command__node-core { fill: rgba(17, 55, 91, .8); stroke: var(--node-color, #54e4ff); stroke-width: 1.2; }
.ah-command__node-glyph { fill: none; stroke: var(--node-color, #54e4ff); stroke-linecap: round; stroke-width: 2.4; }
.ah-command__node--plan { --node-color: #54e4ff; }
.ah-command__node--explore { --node-color: #35b8ff; }
.ah-command__node--oracle { --node-color: #a99aff; }
.ah-command__node--machaon { --node-color: #ffb86c; }
.ah-command__node--hephaestus { --node-color: #70e6ad; }
.ah-command__node.is-active .ah-command__node-halo { filter: drop-shadow(0 0 7px var(--node-color)); }
.ah-command__node-name,
.ah-command__node-role,
.ah-command__core-name,
.ah-command__core-role,
.ah-command__telemetry text,
.ah-command__signal { text-rendering: geometricPrecision; }
.ah-command__node-name { fill: #f1fbff; font: 600 12px var(--font-display); text-anchor: middle; letter-spacing: .04em; }
.ah-command__node-role { fill: rgba(190, 229, 246, .65); font: 8px var(--font-mono); text-anchor: middle; }
.ah-command__core { opacity: .98; }
.ah-command__core.is-active .ah-command__core-halo { filter: drop-shadow(0 0 11px #38d6ff); }
.ah-command__core-halo { fill: rgba(45, 210, 255, .08); stroke: rgba(72, 225, 255, .28); stroke-width: 2; stroke-dasharray: 3 9; }
.ah-command__core-orbit { fill: none; stroke: #42d9ff; stroke-width: 2; stroke-dasharray: 16 7 3 8; }
.ah-command__core-disc { fill: rgba(7, 38, 67, .94); stroke: #b5f1ff; stroke-width: 1.6; }
.ah-command__core-head,
.ah-command__core-body,
.ah-command__core-mark { fill: none; stroke: #5ee5ff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.6; }
.ah-command__core-body { fill: rgba(65, 199, 255, .12); }
.ah-command__core-name { fill: #fff; font: 700 17px var(--font-display); letter-spacing: .08em; }
.ah-command__core-role { fill: #52e6ff; font: 9px var(--font-mono); letter-spacing: .08em; }
.ah-command__telemetry path { fill: none; stroke: rgba(91, 216, 255, .58); stroke-width: 1; stroke-dasharray: 2 5; }
.ah-command__telemetry text { fill: rgba(207, 238, 249, .76); font: 9px var(--font-mono); letter-spacing: .08em; }
.ah-command__telemetry text:first-of-type { fill: #5ee5ff; font-size: 10px; }
.ah-command__telemetry--left { transform: translateY(4px); }
.ah-command__telemetry--right path { stroke: rgba(175, 139, 255, .62); }
.ah-command__telemetry--right text:first-of-type { fill: #b8a5ff; }
.ah-command__signal { fill: rgba(184, 233, 249, .62); font: 9px var(--font-mono); letter-spacing: .12em; }
.ah-command__detail {
  left: 4%;
  bottom: 21%;
  width: min(28%, 220px);
  display: grid;
  gap: 4px;
  padding: 9px 11px;
  border-left: 2px solid #54e4ff;
  background: linear-gradient(90deg, rgba(2, 13, 28, .88), rgba(2, 13, 28, .18));
  pointer-events: none;
}
.ah-command__detail-label { color: #54e4ff; font-size: clamp(.42rem, .72vw, .5rem); letter-spacing: .1em; }
.ah-command__detail strong { color: #fff; font: 600 clamp(.68rem, 1.15vw, .86rem)/1.1 var(--font-display); }
.ah-command__detail p { margin: 0; color: rgba(197, 228, 241, .7); font: clamp(.43rem, .68vw, .5rem)/1.4 var(--font-mono); }
.ah-command__detail-signal { color: #7cebb2; font-size: clamp(.41rem, .68vw, .49rem); }
.ah-command__rail {
  right: 3.5%;
  bottom: 3.5%;
  left: 27%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  align-items: end;
  padding-top: 9px;
  border-top: 1px solid rgba(82, 213, 255, .28);
}
.ah-command__rail-line { position: absolute; top: -4px; right: 0; left: 0; height: 7px; background: linear-gradient(90deg, transparent, rgba(67, 218, 255, .8), rgba(167, 130, 255, .7), transparent); opacity: .46; filter: blur(3px); }
.ah-command__stage {
  position: relative;
  display: grid;
  min-width: 44px;
  min-height: 44px;
  gap: 3px;
  align-content: end;
  padding: 5px 5px 2px;
  border: 0;
  border-bottom: 2px solid rgba(116, 218, 255, .18);
  color: rgba(197, 233, 245, .66);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color var(--motion-fast) var(--ease-ui), border-color var(--motion-fast) var(--ease-ui), transform var(--motion-fast) var(--ease-ui);
}
.ah-command__stage::before { width: 8px; height: 8px; margin-bottom: 2px; border: 1px solid currentColor; border-radius: 50%; content: ""; box-shadow: 0 0 8px currentColor; }
.ah-command__stage:hover,
.ah-command__stage:focus-visible,
.ah-command__stage.is-active { color: #fff; border-color: #54e4ff; transform: translateY(-2px); }
.ah-command__stage:focus-visible { outline: 2px solid #c1f5ff; outline-offset: 4px; }
.ah-command__stage-number { color: #54e4ff; font-size: .45rem; }
.ah-command__stage-name { overflow-wrap: anywhere; color: inherit; font: 600 clamp(.5rem, .82vw, .62rem)/1.1 var(--font-display); }
.ah-command__stage small { color: rgba(192, 228, 239, .56); font-size: clamp(.4rem, .66vw, .48rem); }

@keyframes slSceneOrbit { to { transform: rotate(360deg); transform-origin: 414px 349px; } }
@keyframes slSceneBeam { 0%, 100% { opacity: .58; transform: scaleX(.96); } 50% { opacity: 1; transform: scaleX(1.02); } }
@keyframes slSceneSignal { to { stroke-dashoffset: -42; } }
@keyframes slSceneLens { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-4px, 3px); } }
@keyframes ahCommandRoute { to { stroke-dashoffset: -80; } }

@media (max-width: 960px) {
  .spotlight__item--pipeline { grid-template-columns: 1fr; }
  .spotlight__media--spacelens-scene,
  .spotlight__media--ah-command { width: 100%; }
}
@media (max-width: 640px) {
  .sl-scene,
  .ah-command { aspect-ratio: 4 / 3; min-height: 0; }
  .sl-scene__hud { top: 5%; left: 5%; max-width: 60%; }
  .sl-scene__volume { top: 6%; right: 5%; max-width: 32%; }
  .sl-scene__scan-status { top: 23%; right: 5%; }
  .sl-scene__readout { bottom: 18%; width: 48%; padding: 8px 9px; }
  .sl-scene__readout-rows > div:nth-child(n+4) { display: none; }
  .sl-scene__hotspot { padding: 6px 7px; }
  .sl-scene__hotspot-name { display: none; }
  .sl-scene__hotspot--build { left: 29%; top: 53%; }
  .sl-scene__hotspot--cache { left: 66%; top: 49%; }
  .sl-scene__hotspot--media { left: 16%; top: 72%; }
  .sl-scene__hotspot--logs { left: 44%; top: 78%; }
  .sl-scene__hotspot--src { left: 73%; top: 73%; }
  .sl-scene__legend { bottom: 13%; }
  .sl-scene__contract { gap: 3px 8px; }
  .sl-scene__contract small { display: none; }
  .ah-command__telemetry text { font-size: 8px; }
  .ah-command__detail { right: 4%; bottom: 20%; left: 4%; width: auto; max-width: 42%; }
  .ah-command__rail { right: 4%; bottom: 3%; left: 4%; gap: 2px; }
  .ah-command__stage { padding-inline: 3px; }
  .ah-command__stage-name { font-size: .49rem; }
  .ah-command__stage small { display: none; }
  .ah-command__core-name { font-size: 14px; }
  .ah-command__node-name { font-size: 10px; }
  .ah-command__node-role { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sl-scene__rings ellipse,
  .sl-scene__beam,
  .sl-scene__beam-line,
  .sl-scene__lens,
  .ah-command__route,
  .ah-command__routes path,
  .ah-command__packet { animation: none !important; }
  .sl-scene__beam { opacity: .72; }
  .sl-scene__beam-line { stroke-dashoffset: 0; }
}

/* Keep the image-led compositions legible when a spotlight column is narrow.
   These overrides use the scene container rather than the viewport because the
   featured grid can make a scene compact even on a wide screen. */
@container cinematic-scene (max-width: 760px) {
  .sl-scene__hud { max-width: 50%; }
  .sl-scene__kicker { font-size: .48rem; letter-spacing: .1em; }
  .sl-scene__hud strong { font-size: clamp(.92rem, 3.5cqw, 1.32rem); }
  .sl-scene__volume { width: 29%; font-size: .44rem; }
  .sl-scene__scan-status { font-size: .43rem; }
  .sl-scene__readout {
    width: 32%;
    padding: 9px 10px;
    bottom: 22%;
  }
  .sl-scene__readout-rows { gap: 3px; margin-top: 6px; }
  .sl-scene__readout-rows > div:nth-child(n+4) { display: none; }
  .sl-scene__readout-kicker,
  .sl-scene__readout-rows dt,
  .sl-scene__readout-rows dd { font-size: .43rem; }
  .sl-scene__readout > strong { font-size: .78rem; }

  .ah-command__detail {
    bottom: 27%;
    width: 28%;
    padding: 8px 9px;
  }
  .ah-command__detail p { line-height: 1.28; }
  .ah-command__rail { left: 24%; gap: 6px; }
  .ah-command__stage { padding-inline: 3px; }
  .ah-command__stage-name { font-size: .5rem; }
  .ah-command__stage small { font-size: .4rem; }
  .ah-command__node--hephaestus .ah-command__node-name,
  .ah-command__node--hephaestus .ah-command__node-role {
    transform: translateY(-92px);
  }
}

@container cinematic-scene (max-width: 480px) {
  .sl-scene__hud { top: 6%; left: 5%; max-width: 51%; }
  .sl-scene__kicker { font-size: .4rem; letter-spacing: .08em; }
  .sl-scene__hud strong { font-size: .86rem; }
  .sl-scene__volume { top: 7%; right: 5%; width: 27%; font-size: .38rem; }
  .sl-scene__scan-status { top: 25%; right: 5%; font-size: .38rem; }
  .sl-scene__readout {
    left: 4.5%;
    bottom: 22%;
    width: 37%;
    padding: 7px 8px;
  }
  .sl-scene__readout-kicker,
  .sl-scene__readout-rows dt,
  .sl-scene__readout-rows dd { font-size: .39rem; }
  .sl-scene__readout > strong { margin-top: 3px; font-size: .7rem; }
  .sl-scene__readout-rows { gap: 2px; margin-top: 4px; }
  .sl-scene__hotspot--build { left: 40%; top: 53%; }
  .sl-scene__hotspot--cache { left: 69%; top: 49%; }
  .sl-scene__hotspot--media { left: 18%; top: 73%; }
  .sl-scene__hotspot--logs { left: 48%; top: 79%; }
  .sl-scene__hotspot--src { left: 78%; top: 74%; }

  .ah-command__detail {
    bottom: 26%;
    width: 42%;
    max-width: none;
    padding: 7px 8px;
  }
  .ah-command__detail p { font-size: .42rem; line-height: 1.24; }
  .ah-command__rail { right: 4%; bottom: 3%; left: 4%; gap: 3px; }
  .ah-command__stage { padding-inline: 2px; }
  .ah-command__stage-name { font-size: .46rem; line-height: 1.05; }
  .ah-command__stage small { display: none; }
  .ah-command__node--hephaestus .ah-command__node-name,
  .ah-command__node--hephaestus .ah-command__node-role {
    transform: translateY(-78px);
  }
}

/* ============================================================
   IMAGE-LED RESET
   The featured scenes are illustrations first, controls second.
   These scoped rules are the authoritative treatment for the new
   renderer roots; the older atlas/pipeline families are unused.
   ============================================================ */
.spotlight__media--spacelens-scene,
.spotlight__media--ah-command {
  min-width: 0;
  overflow: hidden;
  border: 0 !important;
  border-radius: 14px;
  background: #020611;
  box-shadow: none !important;
  isolation: isolate;
  container: cinematic-scene / inline-size;
  transition: none !important;
}
.spotlight__media--spacelens-scene:hover,
.spotlight__media--ah-command:hover {
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

/* SpaceLens: lens hardware -> scan beam -> orbital filesystem city. */
.sl-scene--orbital {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  overflow: hidden;
  color: #eafaff;
  background: #020611;
  font-family: var(--font-mono);
}
.sl-scene--orbital::before,
.sl-scene--orbital::after,
.ah-command--poster::before,
.ah-command--poster::after { display: none !important; }
.sl-scene--orbital .sl-scene__svg,
.ah-command--poster .ah-command__svg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.sl-scene--orbital .sl-scene__space { fill: #020611; }
.sl-scene--orbital .sl-scene__nebula { fill: rgba(35, 107, 192, .18); }
.sl-scene--orbital .sl-scene__star { fill: #b4edff; opacity: .66; }
.sl-scene--orbital .sl-scene__beam { opacity: .78; transform-origin: 824px 106px; animation: slImageBeam 7s var(--ease-ui) infinite; }
.sl-scene--orbital .sl-scene__beam-line { fill: none; stroke: rgba(143, 235, 255, .62); stroke-width: 1.1; stroke-dasharray: 2 14; animation: slImageSignal 3.4s linear infinite; }
.sl-scene--orbital .sl-scene__orbit ellipse { stroke: rgba(88, 203, 255, .28); stroke-width: 1; stroke-dasharray: 2 12; transform-box: fill-box; transform-origin: center; animation: slImageOrbit 24s linear infinite; }
.sl-scene--orbital .sl-scene__orbit ellipse:nth-child(2) { opacity: .75; animation-duration: 29s; animation-direction: reverse; }
.sl-scene--orbital .sl-scene__orbit ellipse:nth-child(3) { opacity: .52; animation-duration: 36s; }
.sl-scene--orbital .sl-scene__orbit ellipse:nth-child(4) { opacity: .34; animation-duration: 45s; animation-direction: reverse; }
.sl-scene--orbital .sl-scene__orbit ellipse:nth-child(5) { opacity: .18; animation-duration: 58s; }
.sl-scene--orbital .sl-scene__city-floor { opacity: .76; }
.sl-scene--orbital .sl-scene__city-grid { fill: none; stroke: rgba(105, 208, 255, .2); stroke-width: .9; }
.sl-scene--orbital .sl-scene__city-edge { fill: none; stroke: rgba(113, 221, 255, .46); stroke-width: 1.2; }
.sl-scene--orbital .sl-scene__target { fill: #d7fbff; stroke: #4cd7ff; stroke-width: 2; filter: drop-shadow(0 0 9px #39caff); }
.sl-scene--orbital .sl-scene__block { fill: color-mix(in srgb, var(--district-color) 62%, #07162b); stroke: color-mix(in srgb, var(--district-color) 72%, #d7fbff); stroke-width: .9; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--district-color) 38%, transparent)); transition: opacity .45s var(--ease-ui), filter .45s var(--ease-ui); }
.sl-scene--orbital .sl-scene__block-depth { fill: color-mix(in srgb, var(--district-color) 34%, #020917); opacity: .8; }
.sl-scene--orbital .sl-scene__block-glint { fill: none; stroke: rgba(255,255,255,.62); stroke-width: 1.1; }
.sl-scene--orbital[data-active-zone="build"] .sl-scene__district:not(.sl-scene__district--build),
.sl-scene--orbital[data-active-zone="cache"] .sl-scene__district:not(.sl-scene__district--cache),
.sl-scene--orbital[data-active-zone="media"] .sl-scene__district:not(.sl-scene__district--media),
.sl-scene--orbital[data-active-zone="logs"] .sl-scene__district:not(.sl-scene__district--logs),
.sl-scene--orbital[data-active-zone="src"] .sl-scene__district:not(.sl-scene__district--src) { opacity: .48; }
.sl-scene--orbital[data-active-zone="build"] .sl-scene__district--build .sl-scene__block,
.sl-scene--orbital[data-active-zone="cache"] .sl-scene__district--cache .sl-scene__block,
.sl-scene--orbital[data-active-zone="media"] .sl-scene__district--media .sl-scene__block,
.sl-scene--orbital[data-active-zone="logs"] .sl-scene__district--logs .sl-scene__block,
.sl-scene--orbital[data-active-zone="src"] .sl-scene__district--src .sl-scene__block { filter: drop-shadow(0 0 8px var(--district-color)); }
.sl-scene--orbital .sl-scene__lens { transform-box: fill-box; transform-origin: center; animation: none; }
.sl-scene--orbital .sl-scene__lens-shadow { fill: rgba(0, 1, 8, .86); stroke: rgba(47, 139, 231, .45); stroke-width: 9; }
.sl-scene--orbital .sl-scene__lens-ring { fill: none; stroke: #3db8ff; stroke-width: 4; stroke-dasharray: 19 8 4 11; }
.sl-scene--orbital .sl-scene__lens-core { stroke: #9cecff; stroke-width: 2; }
.sl-scene--orbital .sl-scene__lens-glass { fill: rgba(74, 184, 255, .2); stroke: rgba(223, 252, 255, .82); stroke-width: 2; }
.sl-scene--orbital .sl-scene__lens-cross { fill: none; stroke: rgba(198, 247, 255, .5); stroke-width: 1; }
.sl-scene--orbital .sl-scene__lens-aperture { fill: #e5ffff; filter: drop-shadow(0 0 12px #36caff); }
.sl-scene--orbital .sl-scene__lens-spark { fill: #fff; filter: drop-shadow(0 0 8px #a6f0ff); }
.sl-scene--orbital .sl-scene__title { position: absolute; top: 7%; left: 5%; z-index: 4; display: grid; gap: 3px; pointer-events: none; }
.sl-scene--orbital .sl-scene__kicker { color: #75e4ff; font-size: clamp(.48rem, .78vw, .62rem); letter-spacing: .16em; }
.sl-scene--orbital .sl-scene__title strong { color: rgba(240, 253, 255, .94); font: 600 clamp(1rem, 2.2vw, 1.5rem)/1.05 var(--font-display); letter-spacing: -.02em; text-shadow: 0 0 22px rgba(41, 190, 255, .3); }
.sl-scene--orbital .sl-scene__hotspots { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.sl-scene--orbital .sl-scene__hotspot { position: absolute; display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; gap: 5px; padding: 4px; border: 0; border-radius: 0; color: #aeefff; background: transparent; box-shadow: none; font: 600 .52rem/1 var(--font-mono); letter-spacing: .06em; cursor: pointer; pointer-events: auto; transform: translate(-50%, -50%); transition: color .35s var(--ease-ui), opacity .35s var(--ease-ui), transform .35s var(--ease-ui); }
.sl-scene--orbital .sl-scene__hotspot-dot { width: 9px; height: 9px; flex: 0 0 auto; border: 1px solid var(--hotspot-color, #58d9ff); border-radius: 50%; background: rgba(2, 12, 28, .75); box-shadow: 0 0 0 4px rgba(72, 211, 255, .08), 0 0 11px var(--hotspot-color, #58d9ff); }
.sl-scene--orbital .sl-scene__hotspot-index { display: none; color: var(--hotspot-color, #58d9ff); }
.sl-scene--orbital .sl-scene__hotspot-name { opacity: 0; white-space: nowrap; transform: translateX(-3px); transition: opacity .35s var(--ease-ui), transform .35s var(--ease-ui); }
.sl-scene--orbital .sl-scene__hotspot:hover .sl-scene__hotspot-name,
.sl-scene--orbital .sl-scene__hotspot:focus-visible .sl-scene__hotspot-name,
.sl-scene--orbital .sl-scene__hotspot.is-active .sl-scene__hotspot-name { opacity: 1; transform: translateX(0); }
.sl-scene--orbital .sl-scene__hotspot:hover,
.sl-scene--orbital .sl-scene__hotspot:focus-visible,
.sl-scene--orbital .sl-scene__hotspot.is-active { color: #fff; transform: translate(-50%, -50%) scale(1.08); }
.sl-scene--orbital .sl-scene__hotspot:focus-visible { outline: 2px solid #c8f7ff; outline-offset: 4px; }
.sl-scene--orbital .sl-scene__hotspot--build { --hotspot-color: #59dcff; left: 31%; top: 58%; }
.sl-scene--orbital .sl-scene__hotspot--cache { --hotspot-color: #83e8b0; left: 65%; top: 54%; }
.sl-scene--orbital .sl-scene__hotspot--media { --hotspot-color: #ffc878; left: 20%; top: 77%; }
.sl-scene--orbital .sl-scene__hotspot--logs { --hotspot-color: #ff8c9e; left: 45%; top: 82%; }
.sl-scene--orbital .sl-scene__hotspot--src { --hotspot-color: #b8baff; left: 74%; top: 75%; }
.sl-scene--orbital .sl-scene__readout { position: absolute; left: 5%; bottom: 11%; z-index: 5; display: flex; max-width: 45%; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; padding: 0 0 0 9px; border: 0; border-left: 1px solid #59dcff; background: transparent; box-shadow: none; pointer-events: none; }
.sl-scene--orbital .sl-scene__readout-kicker { flex-basis: 100%; color: #72ddff; font-size: clamp(.43rem, .68vw, .52rem); letter-spacing: .1em; }
.sl-scene--orbital .sl-scene__readout > strong { color: #fff; font: 600 clamp(.9rem, 1.55vw, 1.1rem)/1.1 var(--font-display); }
.sl-scene--orbital .sl-scene__readout-rule { color: #a2edc4; font-size: clamp(.43rem, .68vw, .52rem); }
.sl-scene--orbital .sl-scene__readout-path,
.sl-scene--orbital .sl-scene__readout-size,
.sl-scene--orbital .sl-scene__readout-conf,
.sl-scene--orbital .sl-scene__readout-safety,
.sl-scene--orbital .sl-scene__readout-reclaim { color: rgba(221, 246, 255, .72); font-size: clamp(.4rem, .62vw, .48rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-scene--orbital .sl-scene__readout-path { max-width: 100%; }
.sl-scene--orbital .sl-scene__readout-conf,
.sl-scene--orbital .sl-scene__readout-safety,
.sl-scene--orbital .sl-scene__readout-reclaim { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sl-scene--orbital .sl-scene__readout-safety,
.sl-scene--orbital .sl-scene__readout-reclaim { color: #84e7b2; }
.sl-scene--orbital .sl-scene__value--warning { color: #ffca72 !important; }
.sl-scene--orbital .sl-scene__value--protected { color: #ff8e9e !important; }
.sl-scene--orbital .sl-scene__caption { position: absolute; right: 5%; bottom: 6%; z-index: 4; max-width: 29%; color: rgba(194, 234, 248, .58); font-size: clamp(.38rem, .58vw, .46rem); letter-spacing: .04em; line-height: 1.35; text-align: right; pointer-events: none; }
.sl-scene--orbital .sl-scene__caption i { display: inline-block; width: 5px; height: 5px; margin: 0 3px; border-radius: 50%; background: #72e9ad; box-shadow: 0 0 8px #72e9ad; }
.sl-scene--orbital .sl-scene__contract { display: none; }
.sl-scene--orbital .sl-scene__contract span { display: block; }
.sl-scene--orbital .sl-scene__contract i { display: inline-block; width: 4px; height: 4px; margin: 0 5px 1px 0; border-radius: 50%; background: #72e9ad; }

/* Open Code Better: source-hero typography over teal architecture. */
.ah-command--poster { position: relative; aspect-ratio: 16 / 9; min-height: 320px; overflow: hidden; color: #efffff; background: #032630; font-family: var(--font-mono); }
.ah-command--poster .ah-command__space { fill: #032630; }
.ah-command--poster .ah-command__architecture path { fill: none; stroke: rgba(109, 224, 224, .2); stroke-width: 1; }
.ah-command--poster .ah-command__architecture .ah-command__architecture-deep { stroke: rgba(123, 231, 224, .12); stroke-width: 2; }
.ah-command--poster .ah-command__architecture .ah-command__architecture-floor { stroke: rgba(145, 240, 227, .16); stroke-dasharray: 1 9; }
.ah-command--poster .ah-command__route { stroke: rgba(88, 235, 235, .4); stroke-width: 1; stroke-dasharray: 3 10; opacity: .42; animation: ahPosterRoute 8s linear infinite; }
.ah-command--poster .ah-command__route.is-active { stroke: #9ffff5; stroke-width: 2; opacity: 1; filter: drop-shadow(0 0 5px #4fe5dc); }
.ah-command--poster .ah-command__packet { fill: #a5fff7; opacity: .58; filter: drop-shadow(0 0 6px #42e0d5); }
.ah-command--poster .ah-command__packet.is-active { opacity: 1; }
.ah-command--poster .ah-command__spine-line { fill: none; stroke: #5edfd7; stroke-width: 2; opacity: .82; }
.ah-command--poster .ah-command__spine-core { fill: #dbfff9; stroke: #4fe6da; stroke-width: 2; filter: drop-shadow(0 0 9px #54e9de); }
.ah-command--poster .ah-command__spine-core-ring { fill: none; stroke: rgba(111, 247, 231, .45); stroke-width: 1; stroke-dasharray: 2 6; }
.ah-command--poster .ah-command__spine-name { fill: #eaffff; font: 600 13px var(--font-display); letter-spacing: .1em; }
.ah-command--poster .ah-command__spine-role { fill: rgba(188, 241, 237, .64); font: 8px var(--font-mono); }
.ah-command--poster .ah-command__agent { opacity: .52; transition: opacity .35s var(--ease-ui); }
.ah-command--poster .ah-command__agent.is-active { opacity: 1; }
.ah-command--poster .ah-command__agent-halo { fill: none; stroke: var(--agent-color, #65e6dd); stroke-width: 1; stroke-dasharray: 2 5; }
.ah-command--poster .ah-command__agent-light { fill: var(--agent-color, #65e6dd); filter: drop-shadow(0 0 6px var(--agent-color, #65e6dd)); }
.ah-command--poster .ah-command__agent-name { fill: #e6fffd; font: 600 10px var(--font-display); letter-spacing: .08em; }
.ah-command--poster .ah-command__agent-role { fill: rgba(185, 236, 232, .62); font: 7px var(--font-mono); }
.ah-command--poster .ah-command__agent--plan { --agent-color: #72e9e1; }
.ah-command--poster .ah-command__agent--explore { --agent-color: #7dc7ff; }
.ah-command--poster .ah-command__agent--oracle { --agent-color: #bca9ff; }
.ah-command--poster .ah-command__agent--machaon { --agent-color: #ffc377; }
.ah-command--poster .ah-command__agent--hephaestus { --agent-color: #91edaf; }
.ah-command--poster .ah-command__poster { position: absolute; top: 12%; left: 7%; z-index: 4; display: grid; width: min(53%, 420px); pointer-events: none; }
.ah-command--poster .ah-command__poster-eyebrow { margin-bottom: 8px; color: #80f3e5; font-size: clamp(.4rem, .72vw, .56rem); letter-spacing: .16em; }
.ah-command--poster .ah-command__poster-top,
.ah-command--poster .ah-command__poster strong { display: block; color: #f5ffff; font: 700 clamp(2.1rem, 6.8cqw, 5.2rem)/.84 var(--font-display); letter-spacing: -.075em; }
.ah-command--poster .ah-command__poster strong { color: #fff; }
.ah-command--poster .ah-command__poster-subtitle { display: block; max-width: 23em; margin-top: 14px; color: #6df1e7; font: 500 clamp(.58rem, 1.1cqw, .82rem)/1.25 var(--font-mono); letter-spacing: .02em; }
.ah-command--poster .ah-command__spine-label { display: none; }
.ah-command--poster .ah-command__detail { position: absolute; left: 7%; bottom: 8%; z-index: 5; width: min(42%, 300px); display: grid; gap: 3px; padding: 0 0 0 10px; border: 0; border-left: 1px solid #6df1e7; background: transparent; pointer-events: none; }
.ah-command--poster .ah-command__detail-label { color: #78eee4; font-size: clamp(.4rem, .66vw, .5rem); letter-spacing: .1em; }
.ah-command--poster .ah-command__detail strong { color: #fff; font: 600 clamp(.68rem, 1.2vw, .9rem)/1.1 var(--font-display); }
.ah-command--poster .ah-command__detail p { margin: 0; color: rgba(197, 237, 233, .65); font: clamp(.4rem, .62vw, .48rem)/1.35 var(--font-mono); }
.ah-command--poster .ah-command__detail-signal { color: #91edaf; font-size: clamp(.39rem, .6vw, .47rem); }
.ah-command--poster .ah-command__rail { position: absolute; top: 22%; right: 7%; bottom: 8%; z-index: 6; left: auto; display: flex; width: min(24%, 170px); flex-direction: column; gap: 0; padding: 0 0 0 12px; border: 0; border-left: 1px solid rgba(109, 241, 231, .42); }
.ah-command--poster .ah-command__stage { position: relative; display: grid; min-width: 44px; min-height: 44px; flex: 1; grid-template-columns: 24px 1fr; gap: 3px 6px; align-content: center; padding: 3px 0; border: 0; border-bottom: 1px solid rgba(132, 236, 226, .12); color: rgba(192, 239, 234, .58); background: transparent; font: inherit; text-align: left; cursor: pointer; transition: color .35s var(--ease-ui), opacity .35s var(--ease-ui); }
.ah-command--poster .ah-command__stage::before { position: absolute; top: 50%; left: -17px; width: 7px; height: 7px; margin: 0; border: 1px solid currentColor; border-radius: 50%; background: #032630; content: ""; box-shadow: 0 0 7px currentColor; transform: translateY(-50%); }
.ah-command--poster .ah-command__stage:hover,
.ah-command--poster .ah-command__stage:focus-visible,
.ah-command--poster .ah-command__stage.is-active { color: #fff; }
.ah-command--poster .ah-command__stage.is-active::before { background: #bafff5; box-shadow: 0 0 11px #70eee3; }
.ah-command--poster .ah-command__stage:focus-visible { outline: 2px solid #c6fff9; outline-offset: 4px; }
.ah-command--poster .ah-command__stage-number { color: #70eee3; font-size: .46rem; }
.ah-command--poster .ah-command__stage-name { overflow-wrap: anywhere; font: 600 clamp(.48rem, .78vw, .6rem)/1.05 var(--font-display); }
.ah-command--poster .ah-command__stage small { grid-column: 2; color: rgba(185, 235, 230, .5); font-size: clamp(.38rem, .58vw, .45rem); }

@keyframes slImageOrbit { to { transform: rotate(360deg); } }
@keyframes slImageBeam { 0%, 100% { opacity: .62; } 50% { opacity: .95; } }
@keyframes slImageSignal { to { stroke-dashoffset: -48; } }
@keyframes slImageLens { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-3px, 3px); } }
@keyframes ahPosterRoute { to { stroke-dashoffset: -74; } }
.sl-scene--orbital.motion-paused *,
.ah-command--poster.motion-paused *,
.sl-scene--orbital.motion-paused .sl-scene__beam,
.ah-command--poster.motion-paused .ah-command__route { animation-play-state: paused !important; }

@container cinematic-scene (max-width: 760px) {
  .sl-scene--orbital .sl-scene__title { top: 6%; left: 5%; }
  .sl-scene--orbital .sl-scene__readout { max-width: 58%; bottom: 9%; }
  .sl-scene--orbital .sl-scene__contract { right: 5%; bottom: 7%; }
  .ah-command--poster .ah-command__poster { top: 11%; left: 6%; width: 55%; }
  .ah-command--poster .ah-command__poster-eyebrow { margin-bottom: 5px; }
  .ah-command--poster .ah-command__poster-subtitle { margin-top: 9px; }
  .ah-command--poster .ah-command__rail { right: 5%; width: 27%; }
  .ah-command--poster .ah-command__detail { left: 6%; bottom: 7%; width: 45%; }
}
@container cinematic-scene (max-width: 480px) {
  .sl-scene--orbital { aspect-ratio: 4 / 3; min-height: 0; }
  .sl-scene--orbital .sl-scene__title strong { font-size: .92rem; }
  .sl-scene--orbital .sl-scene__kicker { font-size: .4rem; }
  .sl-scene--orbital .sl-scene__hotspot-name { display: none !important; }
  .sl-scene--orbital .sl-scene__readout { left: 5%; bottom: 8%; max-width: 66%; gap: 2px 5px; }
  .sl-scene--orbital .sl-scene__readout-path,
  .sl-scene--orbital .sl-scene__readout-conf,
  .sl-scene--orbital .sl-scene__readout-reclaim { display: none; }
  .sl-scene--orbital .sl-scene__caption { right: 5%; bottom: 5%; max-width: 35%; font-size: .36rem; }
  .sl-scene--orbital .sl-scene__contract { display: none; }
  .ah-command--poster { aspect-ratio: 4 / 3; min-height: 0; }
  .ah-command--poster .ah-command__poster { top: 8%; left: 6%; width: 67%; }
  .ah-command--poster .ah-command__poster-eyebrow { font-size: .38rem; }
  .ah-command--poster .ah-command__poster-top,
  .ah-command--poster .ah-command__poster strong { font-size: clamp(1.7rem, 10cqw, 3.6rem); }
  .ah-command--poster .ah-command__poster-subtitle { margin-top: 7px; font-size: .44rem; }
  .ah-command--poster .ah-command__spine-label { display: none; }
  .ah-command--poster .ah-command__rail { top: 49%; right: 5%; bottom: 7%; width: 36%; padding-left: 9px; }
  .ah-command--poster .ah-command__detail { top: 36%; right: auto; bottom: auto; left: 6%; width: 43%; }
  .ah-command--poster .ah-command__detail p { display: none; }
  .ah-command--poster .ah-command__stage-name { font-size: .44rem; }
  .ah-command--poster .ah-command__stage small { display: none; }
  .ah-command--poster .ah-command__agent-role { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sl-scene--orbital .sl-scene__orbit ellipse,
  .sl-scene--orbital .sl-scene__beam,
  .sl-scene--orbital .sl-scene__beam-line,
  .sl-scene--orbital .sl-scene__lens,
  .ah-command--poster .ah-command__route,
  .ah-command--poster .ah-command__packet { animation: none !important; }
}

/* ============================================================
   HIGH-DENSITY ART DIRECTION PASS
   Detail belongs to the repository metaphor; controls stay quiet.
   ============================================================ */
.sl-scene--orbital .sl-scene__nebula--secondary { fill: rgba(73, 76, 205, .14); }
.sl-scene--orbital .sl-scene__star--bright { fill: #fff; opacity: .98; filter: drop-shadow(0 0 5px #bdf7ff); }
.sl-scene--orbital .sl-scene__star--soft { opacity: .34; }
.sl-scene--orbital .sl-scene__dust { fill: #65dfff; opacity: .26; }
.sl-scene--orbital .sl-scene__dust--1 { fill: #8f8dff; opacity: .28; }
.sl-scene--orbital .sl-scene__dust--2 { fill: #ff9fd2; opacity: .22; }
.sl-scene--orbital .sl-scene__beam { mix-blend-mode: screen; }
.sl-scene--orbital .sl-scene__beam-ambient { opacity: .56; }
.sl-scene--orbital .sl-scene__beam-mid { opacity: .76; }
.sl-scene--orbital .sl-scene__beam-inner { opacity: .86; }
.sl-scene--orbital .sl-scene__beam-core { fill: #d8ffff; opacity: .42; filter: drop-shadow(0 0 10px #5ddcff); }
.sl-scene--orbital .sl-scene__beam-source { fill: #e4ffff; stroke: #49cfff; stroke-width: 2; filter: drop-shadow(0 0 13px #4edaff); }
.sl-scene--orbital .sl-scene__traces path { stroke: rgba(116, 213, 255, .23); stroke-width: 1; }
.sl-scene--orbital .sl-scene__traces .sl-scene__trace-dash { stroke: rgba(218, 164, 255, .62); stroke-width: 1.4; stroke-dasharray: 2 11; animation: slImageSignal 4.8s linear infinite; }
.sl-scene--orbital .sl-scene__trace-node { fill: #e9d3ff; filter: drop-shadow(0 0 6px #aa7bff); }
.sl-scene--orbital .sl-scene__galaxy-halo { opacity: .72; mix-blend-mode: screen; }
.sl-scene--orbital .sl-scene__galaxy-grid { opacity: .42; mix-blend-mode: screen; }
.sl-scene--orbital .sl-scene__city-floor { opacity: .66; mix-blend-mode: screen; }
.sl-scene--orbital .sl-scene__city-grid { stroke: rgba(116, 220, 255, .18); }
.sl-scene--orbital .sl-scene__block { transform-box: fill-box; transform-origin: center bottom; }
.sl-scene--orbital .sl-scene__block-face { fill: color-mix(in srgb, var(--district-color) 52%, #08152e); stroke: color-mix(in srgb, var(--district-color) 78%, #d9fbff); stroke-width: .8; }
.sl-scene--orbital .sl-scene__block-side { fill: color-mix(in srgb, var(--district-color) 25%, #020817); opacity: .92; }
.sl-scene--orbital .sl-scene__block-shadow { fill: #000817; opacity: .42; transform: translate(2px, 4px); }
.sl-scene--orbital .sl-scene__block-depth { fill: color-mix(in srgb, var(--district-color) 42%, #07162b); opacity: .68; }
.sl-scene--orbital .sl-scene__block-roof { fill: color-mix(in srgb, var(--district-color) 78%, #b8f8ff); opacity: .74; }
.sl-scene--orbital .sl-scene__block-window { fill: #e3ffff; opacity: .42; }
.sl-scene--orbital .sl-scene__microblock { fill: #5ce1ff; opacity: .64; filter: drop-shadow(0 0 2px #42bfff); }
.sl-scene--orbital .sl-scene__microblock--1 { fill: #a98cff; opacity: .74; }
.sl-scene--orbital .sl-scene__microblock--2 { fill: #ff88be; opacity: .6; }
.sl-scene--orbital .sl-scene__microblock--3 { fill: #86f5ca; opacity: .56; }
.sl-scene--orbital .sl-scene__planet-orbit { fill: none; stroke: rgba(130, 214, 255, .16); stroke-width: .8; stroke-dasharray: 1 16; }
.sl-scene--orbital .sl-scene__planet-shadow { fill: #020918; opacity: .82; filter: drop-shadow(0 0 8px var(--planet-color)); }
.sl-scene--orbital .sl-scene__planet-core { fill: color-mix(in srgb, var(--planet-color) 52%, #061632); stroke: color-mix(in srgb, var(--planet-color) 78%, #d7ffff); stroke-width: 1; }
.sl-scene--orbital .sl-scene__planet-ring { fill: none; stroke: color-mix(in srgb, var(--planet-color) 75%, #efffff); stroke-width: 1; opacity: .72; }
.sl-scene--orbital .sl-scene__planet-crater { fill: none; stroke: rgba(4, 17, 40, .56); stroke-width: 1.2; }
.sl-scene--orbital .sl-scene__moon { fill: #d1efff; filter: drop-shadow(0 0 4px #78d9ff); }
.sl-scene--orbital .sl-scene__galaxy-core-ring { fill: none; stroke: #88efff; stroke-width: 2; stroke-dasharray: 4 5; }
.sl-scene--orbital .sl-scene__galaxy-core-disc { fill: #f2ffff; stroke: #64dcff; stroke-width: 2; }
.sl-scene--orbital .sl-scene__galaxy-core-cross { fill: none; stroke: rgba(222, 255, 255, .84); stroke-width: 1; }
.sl-scene--orbital .sl-scene__lens-aura { opacity: .38; mix-blend-mode: screen; }
.sl-scene--orbital .sl-scene__lens-hardware { filter: drop-shadow(0 0 8px rgba(42, 171, 255, .3)); }
.sl-scene--orbital .sl-scene__lens-tooth { fill: #08275a; stroke: #368dd3; stroke-width: 1; opacity: .92; }
.sl-scene--orbital .sl-scene__lens-plate { fill: #051a42; stroke: #4fb8ed; stroke-width: 2; opacity: .94; }
.sl-scene--orbital .sl-scene__lens-ring--inner { stroke: #8eeaff; stroke-width: 1.5; stroke-dasharray: 4 7; opacity: .72; }
.sl-scene--orbital .sl-scene__lens-bolt { fill: #b7f5ff; stroke: #1764ae; stroke-width: 1.2; }
.sl-scene--orbital .sl-scene__lens-iris { fill: #082b68; stroke: #81e6ff; stroke-width: 1.2; opacity: .88; }
.sl-scene--orbital .sl-scene__lens-blade { transform-origin: 0 0; }
.sl-scene--orbital .sl-scene__lens-aperture-ring { fill: none; stroke: #b6f5ff; stroke-width: 1.5; stroke-dasharray: 2 4; opacity: .8; }
.sl-scene--orbital .sl-scene__lens-reticle { fill: none; stroke: rgba(220, 255, 255, .78); stroke-width: 1; }
.sl-scene--orbital .sl-scene__lens-scan { fill: none; stroke: #d9ffff; stroke-width: 1.4; opacity: .82; }
.sl-scene--orbital .sl-scene__lens-mark { fill: #a4efff; font-size: 7px; letter-spacing: .16em; opacity: .72; }

/* Poster typography is the hero; all system annotations sit behind it. */
.ah-command--poster .ah-command__architecture { opacity: .96; }
.ah-command--poster .ah-command__architecture-lines path { fill: none; stroke: rgba(133, 238, 226, .16); stroke-width: 1; }
.ah-command--poster .ah-command__architecture-lines .ah-command__architecture-floor { stroke: rgba(163, 250, 235, .2); stroke-dasharray: 1 10; }
.ah-command--poster .ah-command__horizon { opacity: .74; mix-blend-mode: screen; }
.ah-command--poster .ah-command__column { fill: rgba(14, 91, 101, .34) !important; stroke: rgba(126, 244, 231, .24); stroke-width: 1.2; opacity: .96; }
.ah-command--poster .ah-command__column--far { fill: rgba(8, 64, 76, .28) !important; opacity: .74; }
.ah-command--poster .ah-command__column--hero { fill: rgba(24, 119, 123, .46) !important; opacity: .86; }
.ah-command--poster .ah-command__column-edge { fill: none; stroke-width: 1.2; opacity: .78; }
.ah-command--poster .ah-command__grain { opacity: .42; mix-blend-mode: screen; }
.ah-command--poster .ah-command__spine { opacity: .52; }
.ah-command--poster .ah-command__spine-name,
.ah-command--poster .ah-command__spine-role,
.ah-command--poster .ah-command__agent-name,
.ah-command--poster .ah-command__agent-role { opacity: 0; }
.ah-command--poster .ah-command__agent-halo { opacity: .58; }
.ah-command--poster .ah-command__poster { top: 50%; left: 50%; width: min(72%, 690px); transform: translate(-50%, -50%); text-align: center; justify-items: center; }
.ah-command--poster .ah-command__poster-eyebrow { margin-bottom: 12px; color: #87f5e8; font-size: clamp(.42rem, .7vw, .56rem); letter-spacing: .25em; }
.ah-command--poster .ah-command__poster-top,
.ah-command--poster .ah-command__poster strong { font-size: clamp(2.7rem, 7vw, 7rem); font-size: clamp(2.7rem, 8.6cqw, 7rem); line-height: .78; letter-spacing: -.085em; text-shadow: 0 0 24px rgba(71, 226, 214, .12); }
.ah-command--poster .ah-command__poster strong { font-size: clamp(3.2rem, 9vw, 9.2rem); font-size: clamp(3.2rem, 11.3cqw, 9.2rem); }
.ah-command--poster .ah-command__poster-subtitle { max-width: 32em; margin-top: 20px; color: #83f5e7; font-size: clamp(.58rem, 1.15cqw, .86rem); letter-spacing: .055em; }
.ah-command--poster .ah-command__detail { left: 6%; bottom: 7%; width: min(28%, 230px); opacity: .68; }
.ah-command--poster .ah-command__rail { top: 18%; right: 5%; bottom: 9%; width: min(17%, 135px); opacity: .62; }
.ah-command--poster .ah-command__stage { border-bottom-color: rgba(132, 236, 226, .08); }
.ah-command--poster .ah-command__stage-name { font-size: clamp(.44rem, .65vw, .56rem); }
.ah-command--poster .ah-command__stage small { opacity: .55; }

@container cinematic-scene (max-width: 760px) {
  .ah-command--poster .ah-command__poster { width: min(82%, 620px); }
  .ah-command--poster .ah-command__poster-top,
  .ah-command--poster .ah-command__poster strong { font-size: clamp(2.2rem, 11vw, 5.8rem); font-size: clamp(2.2rem, 11cqw, 5.8rem); }
  .ah-command--poster .ah-command__poster strong { font-size: clamp(2.7rem, 14vw, 7.2rem); font-size: clamp(2.7rem, 14cqw, 7.2rem); }
  .ah-command--poster .ah-command__rail { width: min(20%, 120px); }
  .ah-command--poster .ah-command__detail { width: min(31%, 200px); }
}
@container cinematic-scene (max-width: 480px) {
  .sl-scene--orbital .sl-scene__microblock { opacity: .42; }
  .sl-scene--orbital .sl-scene__planet-orbit { opacity: .5; }
  .ah-command--poster .ah-command__poster { top: 39%; width: 90%; }
  .ah-command--poster .ah-command__poster-eyebrow { margin-bottom: 8px; font-size: .36rem; }
  .ah-command--poster .ah-command__poster-top,
  .ah-command--poster .ah-command__poster strong { font-size: clamp(2rem, 15vw, 4.8rem); font-size: clamp(2rem, 15cqw, 4.8rem); }
  .ah-command--poster .ah-command__poster strong { font-size: clamp(2.35rem, 18vw, 5.8rem); font-size: clamp(2.35rem, 18cqw, 5.8rem); }
  .ah-command--poster .ah-command__poster-subtitle { margin-top: 12px; font-size: .44rem; }
  .ah-command--poster .ah-command__rail { top: 60%; right: 5%; width: 38%; opacity: .7; }
  .ah-command--poster .ah-command__detail { top: 60%; left: 5%; bottom: auto; width: 34%; }
}
.sl-scene--orbital .sl-scene__folder { opacity: .86; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--folder-color) 65%, transparent)); }
.sl-scene--orbital .sl-scene__folder-tab { fill: color-mix(in srgb, var(--folder-color) 68%, #112557); stroke: color-mix(in srgb, var(--folder-color) 82%, #e4ffff); stroke-width: .8; }
.sl-scene--orbital .sl-scene__folder-face { fill: color-mix(in srgb, var(--folder-color) 44%, #071633); stroke: color-mix(in srgb, var(--folder-color) 76%, #d7ffff); stroke-width: .8; }
.sl-scene--orbital .sl-scene__folder-line { fill: none; stroke: rgba(231, 255, 255, .64); stroke-width: 1; }
.sl-scene--orbital .sl-scene__foreground-planet { opacity: .98; filter: drop-shadow(0 0 14px rgba(64, 165, 255, .34)); }
.sl-scene--orbital .sl-scene__foreground-planet-aura { fill: rgba(38, 142, 255, .12); filter: blur(3px); }
.sl-scene--orbital .sl-scene__foreground-planet-shadow { fill: #020b22; stroke: rgba(66, 179, 255, .38); stroke-width: 4; }
.sl-scene--orbital .sl-scene__foreground-planet-core { fill: #0a3269; stroke: #79dcff; stroke-width: 1.5; }
.sl-scene--orbital .sl-scene__foreground-planet-continent { fill: #1c7eaa; opacity: .62; }
.sl-scene--orbital .sl-scene__foreground-planet-ring { fill: none; stroke: rgba(144, 228, 255, .7); stroke-width: 1.2; }
@media (prefers-reduced-motion: reduce) {
  .sl-scene--orbital .sl-scene__traces .sl-scene__trace-dash,
  .sl-scene--orbital .sl-scene__beam,
  .sl-scene--orbital .sl-scene__beam-line,
  .sl-scene--orbital .sl-scene__orbit ellipse,
  .sl-scene--orbital .sl-scene__block,
  .sl-scene--orbital .sl-scene__hotspot,
  .sl-scene--orbital .sl-scene__hotspot-name { animation: none !important; transition: none !important; }
}
