/* ─────────────────────────────────────────────────────────────
   AEGIS Product Tour — page styles
   slate cockpit base with amber authority accent
   ───────────────────────────────────────────────────────────── */

@import url("aegis-tokens.css");

/* Default theme override — tour is cockpit-dark by default */
:root {
  --bg:        #07090d;
  --s0:        #0b0e14;
  --s1:        #10141c;
  --s2:        #161c26;
  --s3:        #1e2530;
  --s4:        #2a3340;

  --b:         rgba(190,205,225,0.06);
  --bh:        rgba(190,205,225,0.14);
  --bs:        rgba(190,205,225,0.28);

  --t:         #c8d2e2;
  --tb:        #e5ecf6;
  --tw:        #ffffff;
  --td:        #7c8597;
  --tdd:       #4a5161;

  /* AEGIS / Bronze Shield bronze — primary brand accent */
  --a:         #ff9050;
  --a2:        #ffac7a;
  --ad:        rgba(255,144,80,0.14);
  --ad2:       rgba(255,144,80,0.28);
  --abg:       rgba(255,144,80,0.08);

  /* alt accent — cyan telemetry */
  --c:         #6fb8d6;
  --cd:        rgba(111,184,214,0.16);
  --cbg:       rgba(111,184,214,0.08);

  --g:         #4fc77a;
  --gd:        rgba(79,199,122,0.18);
  --gbg:       rgba(79,199,122,0.10);

  --y:         #e5a651;
  --yd:        rgba(229,166,81,0.18);
  --ybg:       rgba(229,166,81,0.10);

  --r:         #e87575;
  --rd:        rgba(232,117,117,0.18);
  --rbg:       rgba(232,117,117,0.10);

  --m:         #7ba3d6;
  --md:        rgba(123,163,214,0.16);
  --mbg:       rgba(123,163,214,0.10);

  --cui-bg:    #5a3a00;
  --cui-fg:    #ffd075;
  --cui-line:  #8a5a00;

  --sel:       #ff9050;

  --sh-1:      0 1px 2px rgba(0,0,0,0.40);
  --sh-2:      0 4px 16px rgba(0,0,0,0.50);
  --sh-3:      0 16px 48px rgba(0,0,0,0.65);
}

/* Accent variants set by Tweaks */
:root[data-accent="cyan"] {
  --a:  #6fb8d6;
  --a2: #9bcfe5;
  --ad: rgba(111,184,214,0.16);
  --ad2: rgba(111,184,214,0.30);
  --abg: rgba(111,184,214,0.08);
  --sel: #6fb8d6;
  --cui-bg: #173548;
  --cui-fg: #b8e0f2;
  --cui-line: #2a5c7a;
}
:root[data-accent="red"] {
  --a:  #e87575;
  --a2: #f29a9a;
  --ad: rgba(232,117,117,0.16);
  --ad2: rgba(232,117,117,0.32);
  --abg: rgba(232,117,117,0.08);
  --sel: #e87575;
  --cui-bg: #4a1a1a;
  --cui-fg: #f5b5b5;
  --cui-line: #7a2a2a;
}

/* Theme: daylight (parchment) */
:root[data-theme="daylight"] {
  --bg:        #f4efe2;
  --s0:        #ffffff;
  --s1:        #ebe5d3;
  --s2:        #ddd5be;
  --s3:        #c9c0a4;
  --s4:        #b3a988;

  --b:         rgba(30,22,8,0.10);
  --bh:        rgba(30,22,8,0.20);
  --bs:        rgba(30,22,8,0.36);

  --t:         #3a3124;
  --tb:        #241d12;
  --tw:        #15110a;
  --td:        #6f6452;
  --tdd:       #9b907a;

  --a:         #8a5a14;
  --a2:        #a36b1c;
  --ad:        rgba(138,90,20,0.12);
  --ad2:       rgba(138,90,20,0.24);
  --abg:       rgba(138,90,20,0.06);
  --sel:       #8a5a14;
}

/* ── Reduced-motion variant ── */
:root[data-motion="off"] *,
:root[data-motion="off"] *::before,
:root[data-motion="off"] *::after {
  animation-duration: 0s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0s !important;
}

/* ── Display font (Space Grotesk) — used for big headlines, ties AEGIS to Bronze Shield brand ── */
:root {
  --display: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Page base ── */
/* Override tokens.css: it forces html,body to height:100% which breaks page scroll */
html, body {
  height: auto !important;
  min-width: 0 !important;
}
html { scroll-behavior: smooth; overflow-y: auto; }
body {
  background: var(--bg);
  color: var(--t);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  overflow-x: hidden;
  overflow-y: visible;
  min-height: 100vh;
}

/* Override the tokens.css #root grid which assumed app-shell */
#root, .app-root {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  grid-template-rows: none !important;
}

/* ── Classification bars (top & bottom) ── */
.cls-bar {
  position: fixed;
  left: 0; right: 0;
  height: 22px;
  background: var(--cui-bg);
  color: var(--cui-fg);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2em;
  z-index: 100;
  border-color: var(--cui-line);
  border-style: solid;
  border-width: 0;
}
.cls-bar.top    { top: 0; border-bottom-width: 1px; }
.cls-bar.bottom { bottom: 0; border-top-width: 1px; }
.cls-bar .sep { opacity: 0.5; }

/* ── HUD chrome (top status strip) ── */
.hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(7,9,13,0) 100%);
  z-index: 50;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--td);
  pointer-events: none;
}
.hud > * { pointer-events: auto; }
.hud-cluster { display: flex; align-items: center; gap: 18px; }
.hud-mark {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--tw);
  font-size: 12px;
}
.hud-mark .glyph {
  display: inline-block;
  width: 14px; height: 14px;
  margin-right: 8px;
  position: relative;
  top: 2px;
}

/* "by The Bronze Shield" co-brand mark in HUD */
.hud-by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 0 14px;
  margin-left: -4px;
  border-left: 1px solid var(--b);
  color: var(--td);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hud-by-pre { color: var(--tdd); }
.hud-by-glyph {
  width: 14px; height: 14px;
  object-fit: contain;
  filter: brightness(0.95);
}
.hud-by-mark {
  color: var(--tb);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Parent → product lockup in HUD: "Bronze Shield / AEGIS" */
.hud-parent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--td);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: color .15s ease, opacity .15s ease;
  opacity: 0.78;
}
.hud-parent:hover { color: var(--tw); opacity: 1; }
.hud-parent-glyph {
  width: 18px;
  height: auto;
  object-fit: contain;
  position: relative;
  top: 1px;
}
.hud-parent-mark { color: inherit; }

.hud-divider {
  color: var(--tdd);
  font-family: var(--display);
  font-weight: 400;
  font-size: 16px;
  user-select: none;
}

/* "Back to The Bronze Shield" link on the right of HUD */
.hud-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--td);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--b);
  border-radius: 2px;
  background: rgba(11,14,20,0.4);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.hud-back:hover {
  color: var(--tw);
  border-color: var(--a);
  background: var(--ad);
}
.hud-back-arrow {
  color: var(--a);
  font-family: var(--display);
  font-size: 12px;
  transition: transform .2s ease;
}
.hud-back:hover .hud-back-arrow {
  transform: translateX(-2px);
}
.hud-tag {
  padding: 2px 8px;
  border: 1px solid var(--b);
  border-radius: 2px;
  color: var(--td);
  text-transform: uppercase;
}
.hud-tag.live {
  color: var(--g);
  border-color: var(--gd);
  background: var(--gbg);
}
.hud-tag.live::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--g);
  border-radius: 50%;
  margin-right: 6px;
  animation: blink 1.6s infinite;
  position: relative;
  top: -1px;
}
@keyframes blink {
  0%, 60% { opacity: 1; }
  61%, 100% { opacity: 0.2; }
}

/* ── Section scaffold ── */
section.scene {
  position: relative;
  min-height: 100vh;
  padding: 96px 56px 96px;
  display: flex;
  flex-direction: column;
}
section.scene + section.scene {
  border-top: 1px solid var(--b);
}
.scene-label {
  position: absolute;
  top: 78px;
  left: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--td);
  text-transform: uppercase;
}
.scene-label .ix {
  color: var(--a);
  font-weight: 600;
}
.scene-label .rule {
  width: 56px; height: 1px;
  background: var(--bh);
}

/* ── Type utilities ── */
.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--a);
  font-weight: 600;
}
.eyebrow-d { color: var(--td); }
.display {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--tw);
  text-wrap: balance;
}
.display .accent { color: var(--a); }
.display .strike {
  text-decoration: line-through;
  text-decoration-color: var(--r);
  text-decoration-thickness: 4px;
  color: var(--tdd);
}
.h-xl {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 3.8vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--tw);
  text-wrap: balance;
}
.h-lg {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--tw);
}
.lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--t);
  max-width: 56ch;
  text-wrap: pretty;
}
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--td);
}
.mono-lg {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ── Hero ── */
.hero {
  height: 100vh;
  min-height: 760px;
  padding: 96px 56px 64px;
  position: relative;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 55%, rgba(7,9,13,0) 0%, rgba(7,9,13,0.5) 70%, rgba(7,9,13,0.92) 100%),
    linear-gradient(180deg, rgba(7,9,13,0.6) 0%, rgba(7,9,13,0) 18%, rgba(7,9,13,0) 70%, rgba(7,9,13,0.85) 100%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(190,205,225,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190,205,225,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 45%, black 30%, transparent 80%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
}
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
  text-align: right;
}
.hero-meta-grid {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 18px;
  row-gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--td);
}
.hero-meta-grid .v { color: var(--tb); font-variant-numeric: tabular-nums; }

/* Telemetry pills floating in hero */
.tele-pill {
  position: absolute;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  background: rgba(11,14,20,0.78);
  border: 1px solid var(--b);
  border-radius: 2px;
  color: var(--tb);
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.tele-pill::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--a);
  margin-right: 8px;
  vertical-align: 2px;
}
.tele-pill.cyan::before { background: var(--c); }
.tele-pill.green::before { background: var(--g); }
.tele-pill.red::before { background: var(--r); }
.tele-pill .k { color: var(--td); margin-right: 6px; }
.tele-pill .v { color: var(--tw); }

.tele-pill.crosshair::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, var(--bh), transparent);
}
.tele-pill.crosshair.left::after { left: 100%; }
.tele-pill.crosshair.right::after {
  right: 100%;
  background: linear-gradient(90deg, transparent, var(--bh));
}

/* Hero CTA chips */
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 36px;
}
.btn {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 14px 22px;
  background: transparent;
  color: var(--tb);
  border: 1px solid var(--bh);
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .18s ease;
  text-decoration: none;
}
.btn:hover { border-color: var(--a); color: var(--tw); background: var(--ad); }
.btn.primary {
  background: var(--a);
  color: #0c0a06;
  border-color: var(--a);
}
.btn.primary:hover { background: var(--a2); border-color: var(--a2); }
.btn .arrow { font-family: var(--sans); font-weight: 400; }

/* Scroll indicator */
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--td);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 3;
}
.scroll-cue .bar {
  width: 1px; height: 28px;
  background: linear-gradient(180deg, transparent, var(--a), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { transform: translateY(-8px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* ── Problem section ── */
.problem-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  margin-top: 80px;
  align-items: start;
}
.problem-copy { display: flex; flex-direction: column; gap: 28px; }
.problem-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--b);
  border: 1px solid var(--b);
}
.problem-stat {
  background: var(--s0);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.problem-stat .n {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--tw);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.problem-stat .n .u { font-size: 22px; color: var(--td); font-weight: 500; margin-left: 4px; }
.problem-stat .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--td);
}
.problem-stat .d {
  font-size: 12.5px;
  color: var(--td);
  margin-top: 10px;
  line-height: 1.45;
}

/* Tool sprawl viz */
.sprawl {
  position: relative;
  margin-top: 8px;
  padding: 32px;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(190,205,225,0.02) 14px 15px),
    var(--s0);
  border: 1px solid var(--b);
  border-radius: 2px;
  min-height: 360px;
  overflow: hidden;
}
.sprawl-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--s2);
  border: 1px solid var(--b);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--tb);
  position: absolute;
  box-shadow: var(--sh-1);
  transform-origin: center;
}
.sprawl-chip .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--td);
}
.sprawl-chip.tool-emass .dot { background: var(--m); }
.sprawl-chip.tool-excel .dot { background: var(--g); }
.sprawl-chip.tool-word  .dot { background: var(--c); }
.sprawl-chip.tool-stig  .dot { background: var(--y); }
.sprawl-chip.tool-acas  .dot { background: var(--r); }
.sprawl-chip.tool-pdf   .dot { background: var(--td); }
.sprawl-arrow {
  position: absolute;
  height: 1px;
  background: var(--bh);
  transform-origin: 0 50%;
}
.sprawl-arrow::after {
  content: "";
  position: absolute;
  right: -1px; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid var(--bh);
  border-right: 1px solid var(--bh);
  transform: rotate(45deg);
}
.sprawl-stamp {
  position: absolute;
  right: 20px; bottom: 20px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--r);
  border: 1px solid var(--r);
  padding: 4px 8px;
  transform: rotate(-4deg);
  opacity: 0.7;
}

/* ── Pipeline ── */
.pipeline-wrap {
  margin-top: 64px;
  padding: 36px 0;
  position: relative;
}
.pipeline-rail {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: var(--bh);
}
.pipeline-rail::after {
  content: "";
  position: absolute;
  left: 0; top: 0; height: 100%;
  width: var(--rail-progress, 0%);
  background: var(--a);
  transition: width .8s cubic-bezier(.4,.0,.2,1);
}
.pipeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  position: relative;
  gap: 0;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  gap: 16px;
}
.step .node {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--s0);
  border: 1px solid var(--bh);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--td);
  transition: all .4s ease;
}
.step.active .node {
  background: var(--ad);
  border-color: var(--a);
  color: var(--a);
  box-shadow: 0 0 0 6px var(--ad), 0 0 24px var(--ad2);
}
.step.done .node {
  background: var(--a);
  border-color: var(--a);
  color: #0c0a06;
}
.step .lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--td);
}
.step.active .lbl, .step.done .lbl { color: var(--tb); }
.step .name {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--tb);
}
.step.active .name { color: var(--tw); }

/* Architecture grid */
.arch {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--b);
  border: 1px solid var(--b);
  margin-top: 32px;
}
.arch-cell {
  background: var(--s0);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
}
.arch-cell .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--a);
}
.arch-cell .h {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--tw);
  letter-spacing: -0.01em;
}
.arch-cell .d {
  font-size: 13px;
  color: var(--td);
  line-height: 1.5;
  margin-top: auto;
}

/* ── 9 Agents centerpiece ── */
.agents-stage {
  position: relative;
  height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 56px;
  perspective: 1400px;
  perspective-origin: 50% 50%;
}
.agents-orbit {
  position: relative;
  width: 540px;
  height: 540px;
  transform-style: preserve-3d;
  /* rotation is driven by JS in AgentsOrbit so node counter-rotation can cancel it */
}
.agents-core {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, var(--ad2) 0%, rgba(11,14,20,0) 70%),
    var(--s0);
  border: 1px solid var(--ad2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  box-shadow: 0 0 80px var(--ad), inset 0 0 40px var(--ad);
}
.agents-core::before, .agents-core::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px dashed var(--ad2);
  animation: coreRing 22s linear infinite;
  pointer-events: none;
}
.agents-core::after {
  inset: -28px;
  border-style: dotted;
  animation-direction: reverse;
  animation-duration: 36s;
  opacity: 0.5;
}
@keyframes coreRing {
  to { transform: rotate(360deg); }
}
.agents-core .glyph {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--tw);
  font-size: 22px;
}
.agents-core .sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--a);
  margin-top: 8px;
  text-transform: uppercase;
}
.agents-core .pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--a);
  margin-top: 14px;
  box-shadow: 0 0 0 4px var(--ad);
  animation: pulse 1.8s ease-in-out infinite;
}

.agent-node {
  position: absolute;
  width: 132px;
  left: 50%; top: 50%;
  margin-left: -66px;
  margin-top: -28px;
  background: var(--s1);
  border: 1px solid var(--bh);
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: all .2s ease;
  border-radius: 2px;
  /* counter-rotate so cards stay upright */
  transform-origin: center center;
  box-shadow: var(--sh-1);
}
.agent-node:hover {
  border-color: var(--a);
  background: var(--s2);
  z-index: 10;
}
.agent-node.sel { border-color: var(--a); background: var(--ad); box-shadow: 0 0 0 1px var(--a), 0 0 24px var(--ad); }
.agent-node .id {
  color: var(--a);
  letter-spacing: 0.14em;
  font-weight: 600;
  font-size: 10px;
}
.agent-node .nm {
  color: var(--tw);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}
/* connecting line from node to center */
.agent-line {
  position: absolute;
  left: 50%; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, var(--ad2), transparent 80%);
  transform-origin: 0 50%;
  pointer-events: none;
  z-index: 0;
}

/* Agent dossier panel */
.dossier {
  margin-top: 56px;
  background: var(--s0);
  border: 1px solid var(--b);
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 360px;
}
.dossier-roster {
  border-right: 1px solid var(--b);
  padding: 8px 0;
  max-height: 480px;
  overflow-y: auto;
}
.dossier-roster button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--t);
  border-left: 2px solid transparent;
  cursor: pointer;
  transition: background .12s ease;
}
.dossier-roster button:hover { background: var(--s1); }
.dossier-roster button.sel {
  background: var(--s1);
  border-left-color: var(--a);
}
.dossier-roster .id { color: var(--a); }
.dossier-roster .nm { color: var(--tw); font-family: var(--sans); font-size: 13px; font-weight: 500; }
.dossier-roster .st {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--g);
  box-shadow: 0 0 0 3px var(--gd);
}
.dossier-detail {
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.dossier-detail .head {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--b);
  margin-bottom: 8px;
}
.dossier-detail .head .ix {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--a);
}
.dossier-detail .head .ttl {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--tw);
}
.dossier-detail .head .desc {
  font-size: 15px;
  color: var(--t);
  max-width: 56ch;
  line-height: 1.5;
  margin-top: 4px;
}
.dossier-block .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--td);
  margin-bottom: 14px;
}
.dossier-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dossier-block li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  font-size: 13px;
  color: var(--t);
  align-items: baseline;
}
.dossier-block li::before {
  content: "▸";
  color: var(--a);
  font-size: 10px;
}
.dossier-block .kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  align-items: baseline;
}
.dossier-block .kv .k { color: var(--td); }
.dossier-block .kv .v { color: var(--tb); }
.guard {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--ad2);
  background: var(--ad);
  color: var(--a);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-right: 6px;
  margin-bottom: 4px;
  border-radius: 2px;
}

/* ── Outcomes ── */
.outcomes {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--b);
  border: 1px solid var(--b);
}
.outcome-row {
  display: grid;
  grid-template-columns: 200px 1fr 1fr 140px;
  gap: 24px;
  align-items: center;
  background: var(--s0);
  padding: 22px 28px;
}
.outcome-row.head {
  background: var(--s1);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--td);
  padding: 14px 28px;
}
.outcome-name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--tw);
}
.outcome-name .sub {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--td);
  font-weight: 400;
  margin-top: 4px;
  text-transform: uppercase;
}
.bar-pair {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bar {
  position: relative;
  height: 22px;
  background: var(--s2);
  border-radius: 1px;
  overflow: hidden;
}
.bar .fill {
  height: 100%;
  border-radius: 1px;
  transition: width 1.2s cubic-bezier(.4,.0,.2,1);
}
.bar.before .fill { background: linear-gradient(90deg, var(--rd), var(--r)); width: var(--w, 100%); }
.bar.after  .fill { background: linear-gradient(90deg, var(--ad), var(--a)); width: var(--w, 40%); }
.bar .lbl-inline {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--tw);
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  letter-spacing: 0.04em;
}
.bar-tag {
  position: absolute;
  left: -52px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--td);
  text-transform: uppercase;
}
.delta {
  text-align: right;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--a);
  font-variant-numeric: tabular-nums;
}
.delta .pct { color: var(--td); font-size: 14px; font-weight: 500; }

/* ── CTA ── */
.cta-scene {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 140px 56px 160px;
  position: relative;
  overflow: hidden;
}
.cta-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.5;
}
.cta-rings::before,
.cta-rings::after {
  content: "";
  position: absolute;
  border: 1px solid var(--ad2);
  border-radius: 50%;
  width: 600px; height: 600px;
  animation: ringPulse 6s ease-out infinite;
}
.cta-rings::after {
  animation-delay: 2s;
}
@keyframes ringPulse {
  0%   { width: 200px; height: 200px; opacity: 0.6; }
  100% { width: 1400px; height: 1400px; opacity: 0; }
}
.cta-glyph {
  width: 64px; height: 64px;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}
.cta-form {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 2;
}
.cta-form input {
  background: var(--s1);
  border: 1px solid var(--bh);
  padding: 14px 18px;
  color: var(--tw);
  font-family: var(--mono);
  font-size: 12.5px;
  border-radius: 2px;
  min-width: 320px;
  outline: none;
  letter-spacing: 0.04em;
}
.cta-form input:focus { border-color: var(--a); box-shadow: var(--focus); }
.cta-foot {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  border-top: 1px solid var(--b);
  padding-top: 28px;
  text-align: left;
  font-family: var(--mono);
}
.cta-foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cta-foot-glyph {
  width: 28px; height: 28px;
  flex-shrink: 0;
}
.cta-foot-mark {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--tw);
}
.cta-foot-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--td);
  margin-top: 3px;
}
.cta-foot-nav {
  display: flex;
  gap: 24px;
  justify-content: center;
}
.cta-foot-nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t);
  text-decoration: none;
  transition: color .15s ease;
}
.cta-foot-nav a:hover { color: var(--a); }
.cta-foot-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 10.5px;
  color: var(--td);
  letter-spacing: 0.08em;
}
.cta-foot-legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cta-foot-legal-links a {
  color: var(--td);
  text-decoration: none;
  transition: color .15s ease;
}
.cta-foot-legal-links a:hover { color: var(--tb); }
.cta-foot-legal-links span { opacity: 0.5; }

/* Parent-brand co-brand strip — AEGIS is a Bronze Shield product */
.cta-parent {
  margin-top: 32px;
  padding-top: 24px;
  width: 100%;
  max-width: 1100px;
  border-top: 1px solid var(--b);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: relative;
  z-index: 2;
  opacity: 0.85;
  transition: opacity .2s ease;
}
.cta-parent:hover { opacity: 1; }
.cta-parent-pre {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--td);
  text-transform: uppercase;
}
.cta-parent-mark {
  height: 28px;
  width: auto;
  filter: brightness(1) saturate(1);
  /* The dark wordmark image has light-on-dark coloring already; keep as-is */
}

/* ── reveal animation on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.3,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ── AEGIS sentinel pulse ── */
.aegis-pulse {
  transform-origin: center;
  transform-box: fill-box;
  animation: aegisSentinel 2.4s ease-in-out infinite;
}
@keyframes aegisSentinel {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* ── responsive ── */
@media (max-width: 980px) {
  .problem-grid { grid-template-columns: 1fr; gap: 48px; }
  .arch { grid-template-columns: 1fr; }
  .dossier { grid-template-columns: 1fr; }
  .dossier-roster { border-right: 0; border-bottom: 1px solid var(--b); max-height: 220px; }
  .dossier-detail { grid-template-columns: 1fr; padding: 28px; }
  .outcome-row { grid-template-columns: 1fr; }
  .cta-foot { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .cta-foot-brand { justify-content: center; }
  .cta-foot-nav { flex-wrap: wrap; justify-content: center; }
  .cta-foot-legal { align-items: center; }
  .pipeline { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .pipeline-rail { display: none; }
  section.scene { padding: 80px 28px; }
  .hero { padding: 80px 28px 48px; }
  .scene-label { left: 28px; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-meta { align-items: flex-start; text-align: left; }
}
