/* DVA Intelligence — HUD command-centre styles (see DESIGN.md §1) */

/* Metric-matched local fallbacks: text takes the same space before and after the web fonts load,
   so the swap doesn't shift the layout. Values measured against Rajdhani, Inter and JetBrains Mono. */
@font-face { font-family: 'Rajdhani Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 600 700; size-adjust: 86.47%; ascent-override: 107.55%; descent-override: 40.48%; line-gap-override: 0%; }
@font-face { font-family: 'Rajdhani Fallback'; src: local('Arial'), local('ArialMT'); font-weight: 400 500; size-adjust: 86%; ascent-override: 108.1%; descent-override: 40.7%; line-gap-override: 0%; }
@font-face { font-family: 'Inter Fallback'; src: local('Arial'), local('ArialMT'); font-weight: 400 500; size-adjust: 106.9%; ascent-override: 90.74%; descent-override: 22.45%; line-gap-override: 0%; }
@font-face { font-family: 'Inter Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 600 700; size-adjust: 101.95%; ascent-override: 95.15%; descent-override: 23.54%; line-gap-override: 0%; }
@font-face { font-family: 'JetBrains Mono Fallback'; src: local('Courier New'), local('CourierNewPSMT'); size-adjust: 99.98%; ascent-override: 102.02%; descent-override: 30%; line-gap-override: 0%; }

:root {
  --bg-0: #050B18;
  --bg-1: #0A1428;
  --bg-2: #0E1B33;
  --panel: rgba(12, 28, 54, 0.58);
  --panel-solid: #0C1C36;
  --line: rgba(0, 212, 255, 0.24);
  --line-strong: rgba(0, 212, 255, 0.6);
  --cyan: #00D4FF;
  --blue: #1E90FF;
  --text: #E6F1FF;
  --text-dim: #9AB0CC;
  --text-faint: #7189A9;
  --ok: #2EE59D;
  --warn: #FFB020;
  --bad: #FF4D5E;
  --orange: #FF7A1A;
  --glow: 0 0 18px rgba(0, 212, 255, 0.35);

  --f-display: 'Rajdhani', 'Rajdhani Fallback', 'Arial Narrow', sans-serif;
  --f-body: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', 'JetBrains Mono Fallback', 'IBM Plex Mono', ui-monospace, monospace;

  --gutter: 24px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Faint scanlines over everything */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.01) 0 1px, transparent 1px 4px);
}
@media (max-width: 720px) { body::after { display: none; } }
img, svg { display: block; }
a { color: var(--cyan); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: 0.01em; }
p { margin: 0 0 0.8em; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 0.86em; letter-spacing: 0; }
.small { font-size: 0.86rem; }
.dim { color: var(--text-dim); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 200; background: var(--orange); color: #111; padding: 8px 14px; font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-lg { width: 30px; height: 30px; }

.label, .eyebrow, .kicker, .hud-head {
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Status dots */
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px currentColor; color: var(--cyan); margin-right: 6px; vertical-align: 1px; }
.dot.ok { background: var(--ok); color: var(--ok); }
.dot.warn { background: var(--warn); color: var(--warn); }
.dot.bad { background: var(--bad); color: var(--bad); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  font-family: var(--f-display); font-weight: 700; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-primary { background: var(--orange); color: #12100C; }
.btn-primary:hover { background: #FF9447; }
.btn-ghost { background: rgba(0, 212, 255, 0.08); color: var(--cyan); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(0, 212, 255, 0.18); }
.btn-sm { padding: 9px 16px; font-size: 0.82rem; }
.btn .ico { width: 16px; height: 16px; }

/* Chips & pills */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid currentColor;
}
.chip-demo { color: var(--orange); background: rgba(255, 122, 26, 0.08); }
.pill { display: inline-block; padding: 3px 10px; font-family: var(--f-mono); font-size: 0.75rem; border: 1px solid; }
.pill-review { color: var(--warn); border-color: rgba(255, 176, 32, 0.6); background: rgba(255, 176, 32, 0.08); }

/* HUD panel: glass, thin border, corner brackets */
.hud {
  --c: var(--cyan);
  --s: 12px;
  position: relative;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--s) 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 2px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--s) 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 2px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--s) 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 2px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--s) 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 2px var(--s) no-repeat,
    var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hud-head {
  display: flex; align-items: center; gap: 4px;
  margin: -4px 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem; color: var(--cyan);
}
.hud-head .chip { margin-left: auto; }

/* ───────── Header ───────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(5, 11, 24, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 62px; height: 24px; flex: none;
  color: var(--cyan);
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.45));
}
.brand-name { white-space: nowrap; font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; letter-spacing: 0.14em; text-transform: uppercase; }
.brand-name b { color: var(--cyan); font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 20px; white-space: nowrap; }
.site-nav a:not(.btn) { color: var(--text-dim); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.site-nav a:not(.btn):hover { color: var(--cyan); }
.nav-cta { padding: 10px 16px; font-size: 0.8rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); width: 42px; height: 42px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--cyan); margin: 4px 0; transition: transform 0.2s, opacity 0.2s; }

/* ───────── Sections ───────── */
.section { position: relative; padding: 120px 0; overflow-x: clip; }
.section:nth-of-type(even) { background: linear-gradient(180deg, var(--bg-0), var(--bg-1) 30%, var(--bg-1) 70%, var(--bg-0)); }
.section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(0, 212, 255, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(0, 212, 255, 0.035) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.section > .container { position: relative; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.kicker { display: flex; align-items: center; gap: 12px; color: var(--cyan); margin-bottom: 18px; }
.kicker span { font-family: var(--f-mono); font-size: 0.75rem; padding: 2px 8px; border: 1px solid var(--line-strong); color: var(--cyan); letter-spacing: 0; }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); margin-bottom: 20px; }
.section-head h2 span, .hero h1 span {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-lede { color: var(--text-dim); font-size: 1.08rem; max-width: 640px; }
.section-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.note { color: var(--text-faint); font-size: 0.88rem; margin-top: 24px; max-width: 760px; border-left: 2px solid var(--line-strong); padding-left: 12px; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ───────── 01 Hero ───────── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 80px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(30, 144, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 40% at 15% 20%, rgba(0, 212, 255, 0.08), transparent 70%),
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--bg-0);
}
.radar {
  position: absolute; right: -10vw; top: 50%;
  width: 90vh; height: 90vh; margin-top: -45vh;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.12);
  background:
    repeating-radial-gradient(circle, transparent 0 59px, rgba(0, 212, 255, 0.08) 59px 60px),
    conic-gradient(from 0deg, rgba(0, 212, 255, 0.18), transparent 60deg);
  animation: sweep 9s linear infinite;
  opacity: 0.7;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; width: 100%; }
.eyebrow { color: var(--cyan); margin-bottom: 22px; }
.eyebrow i { font-style: normal; color: var(--orange); margin: 0 6px; }
.hero h1 { font-size: clamp(2.5rem, 4.6vw, 3.9rem); font-weight: 700; margin-bottom: 26px; }
.hero h1 span { display: block; }
.hero-tagline { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; letter-spacing: 0.04em; color: var(--cyan); margin-bottom: 14px; }
.lede { font-size: 1.12rem; color: var(--text-dim); max-width: 560px; margin-bottom: 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--text-dim); font-size: 0.9rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ico { color: var(--cyan); width: 18px; height: 18px; }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 600px; width: 100%; justify-self: center; }
.float { position: absolute; width: 210px; padding: 14px 16px; font-size: 0.85rem; animation: bob 6s ease-in-out infinite; }
.float p { margin: 0 0 6px; }
.float .hud-head { margin-bottom: 8px; }
.f1 { left: -4%; top: 10%; }
.f2 { right: -2%; top: 4%; width: 170px; animation-delay: -2s; }
.f3 { right: 0; bottom: 6%; width: 250px; animation-delay: -4s; }
.big-num { font-family: var(--f-display); font-size: 2rem; font-weight: 700; color: var(--cyan); line-height: 1; }
.big-num small { font-size: 0.85rem; color: var(--text-dim); margin-left: 4px; font-weight: 500; }
.hero-chip { position: absolute; left: 4%; bottom: 2%; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.scroll-cue { position: absolute; left: 50%; bottom: 24px; width: 24px; height: 40px; border: 1px solid var(--line-strong); border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; background: var(--cyan); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 60% { transform: translateY(12px); opacity: 0; } }

/* ───────── 3D stacked layers (hero + ontology) ───────── */
.stack {
  --rx: 58deg; --rz: -38deg; --gap: 64px;
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  perspective: 1800px;
}
.stack-inner {
  position: absolute; inset: 17%;
  transform-style: preserve-3d;
  transform: translateY(calc(var(--gap) * 1.25)) rotateX(var(--rx)) rotateZ(var(--rz));
}
.plane {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--z) * var(--gap)));
  border: 1px solid rgba(0, 212, 255, 0.4);
  background:
    linear-gradient(rgba(0, 212, 255, 0.08) 1px, transparent 1px) 0 0 / 10% 10%,
    linear-gradient(90deg, rgba(0, 212, 255, 0.08) 1px, transparent 1px) 0 0 / 10% 10%,
    rgba(8, 28, 58, 0.42);
  box-shadow: inset 0 0 40px rgba(0, 212, 255, 0.1), 0 0 30px rgba(0, 212, 255, 0.06);
}
.plane[data-layer='decision'] { border-color: rgba(255, 176, 32, 0.45); background-color: rgba(60, 40, 10, 0.18); box-shadow: inset 0 0 40px rgba(255, 176, 32, 0.08); }
.plane[data-layer='decision'] { background-image: none; }
.plane-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.billboard {
  position: absolute; left: 0; top: 0;
  transform-origin: 0 0;
  transform: rotateZ(calc(var(--rz) * -1)) rotateX(calc(var(--rx) * -1)) translate(-50%, -140%);
  white-space: nowrap; pointer-events: none;
}
.plane-label {
  position: absolute; left: -2%; top: 50%;
  transform-style: preserve-3d;
}
.plane-label .billboard {
  transform: rotateZ(calc(var(--rz) * -1)) rotateX(calc(var(--rx) * -1)) translate(-100%, -50%);
  font-family: var(--f-display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.2em;
  color: var(--cyan); padding: 2px 8px; border: 1px solid var(--line-strong); background: rgba(5, 11, 24, 0.85);
}
.plane[data-layer='decision'] .plane-label .billboard { color: var(--warn); border-color: rgba(255, 176, 32, 0.6); }

.node {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  width: 0; height: 0; padding: 0; border: 0; background: none;
  transform-style: preserve-3d;
  cursor: default;
}
button.node { cursor: pointer; }
.glyph {
  position: absolute; left: 0; top: 0;
  width: 14px; height: 14px; transform: translate(-50%, -50%);
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.9);
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}
.node-circle .glyph { border-radius: 50%; }
.node-rect .glyph { width: 22px; height: 13px; }
.node-doc .glyph { width: 13px; height: 16px; clip-path: polygon(0 0, 65% 0, 100% 30%, 100% 100%, 0 100%); }
.node-hex .glyph { width: 30px; height: 26px; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); background: var(--warn); }
.node-source .glyph { width: 18px; height: 10px; background: transparent; border: 1px solid var(--cyan); box-shadow: none; }
.node-step .glyph { width: 10px; height: 10px; transform: translate(-50%, -50%) rotate(45deg); background: var(--blue); box-shadow: 0 0 10px rgba(30, 144, 255, 0.9); }
.node.is-denied .glyph { background: var(--bad); box-shadow: 0 0 10px rgba(255, 77, 94, 0.7); }
.node-source.is-denied .glyph { background: transparent; border-color: var(--bad); }
.node.is-ghost .glyph { background: transparent; border: 1px dashed var(--warn); box-shadow: none; }

.node .tag {
  font-family: var(--f-mono); font-size: 11px; color: var(--text);
  padding: 1px 6px; background: rgba(5, 11, 24, 0.78); border: 1px solid rgba(0, 212, 255, 0.3);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.node-source .tag, .node-step .tag { font-size: 11px; color: var(--text-dim); border-color: transparent; background: rgba(5, 11, 24, 0.6); }
.node-hex .tag { color: var(--warn); border-color: rgba(255, 176, 32, 0.6); font-size: 11px; }
.node.is-denied .tag { color: var(--bad); border-color: rgba(255, 77, 94, 0.5); }
.node.is-ghost .tag { color: var(--warn); border-style: dashed; border-color: rgba(255, 176, 32, 0.5); }

.node.lit .glyph { transform: translate(-50%, -50%) scale(1.35); }
.node.lit .tag { border-color: var(--cyan); }
.node.selected .glyph { background: #fff; box-shadow: 0 0 18px var(--cyan), 0 0 40px var(--cyan); transform: translate(-50%, -50%) scale(1.6); }
.node.selected .tag { background: var(--cyan); color: #04101F; }
.node-step.lit .glyph { transform: translate(-50%, -50%) rotate(45deg) scale(1.4); }

/* Edges inside a plane */
.edge { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; transition: opacity 0.4s, stroke-width 0.4s; }
.e-verified { stroke: var(--cyan); filter: drop-shadow(0 0 3px rgba(0, 212, 255, 0.8)); }
.e-identifier { stroke: var(--cyan); stroke-dasharray: 1 5; stroke-linecap: round; stroke-width: 2; opacity: 0.8; }
.e-candidate { stroke: var(--blue); stroke-dasharray: 6 6; opacity: 0.55; }
.e-ambiguous { stroke: var(--warn); stroke-dasharray: 4 3; opacity: 0.85; }
.e-denied { stroke: var(--bad); stroke-dasharray: 3 4; opacity: 0.55; }
.e-process { stroke: var(--blue); stroke-dasharray: 2 4; opacity: 0.6; }
.edge.lit { stroke-width: 2.8; opacity: 1; }
.e-candidate.lit { animation: candidatePulse 1.6s ease-in-out infinite; }
@keyframes candidatePulse { 50% { opacity: 0.35; } }
.flow { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 0.5 14; vector-effect: non-scaling-stroke; opacity: 0; animation: flow 1.4s linear infinite; }
.flow.lit, .stack-hero .flow { opacity: 0.9; }
@keyframes flow { to { stroke-dashoffset: -29; } }

/* Vertical lineage lines between planes */
.lineage {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  width: 2px; margin-left: -1px;
  height: calc(var(--span) * var(--gap));
  transform-origin: 50% 0;
  transform: translateZ(calc(var(--z0) * var(--gap))) rotateZ(var(--turn, 0deg)) rotateX(90deg);
  background: linear-gradient(to bottom, rgba(0, 212, 255, 0.85), rgba(0, 212, 255, 0.2));
  transition: opacity 0.4s;
}
.lineage.is-denied { background: repeating-linear-gradient(to bottom, rgba(255, 77, 94, 0.7) 0 4px, transparent 4px 8px); }
.lineage.to-decision { background: linear-gradient(to bottom, rgba(30, 144, 255, 0.8), rgba(255, 176, 32, 0.9)); }
.lineage.lit { background: linear-gradient(to bottom, #fff, var(--cyan)); box-shadow: 0 0 8px var(--cyan); }

.stack-hero { animation: none; }
.stack-hero .node .tag { font-size: 11px; }

/* ───────── 02 Pain ───────── */
.fragments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 48px; }
.frag {
  position: relative; padding: 18px; min-height: 130px;
  border: 1px dashed rgba(0, 212, 255, 0.28);
  background: rgba(10, 22, 44, 0.6);
  transform: rotate(var(--r));
  animation: flicker 7s infinite;
}
.frag:nth-child(3n) { animation-delay: -2.4s; }
.frag:nth-child(3n+1) { animation-delay: -4.7s; }
.frag .ico { color: var(--text-dim); margin-bottom: 12px; }
.frag h3 { font-size: 1.15rem; margin-bottom: 6px; }
.frag p { color: var(--text-faint); margin: 0; }
.frag-x { position: absolute; top: 12px; right: 12px; color: var(--bad); opacity: 0.75; }
.frag-x .ico { color: var(--bad); width: 16px; height: 16px; margin: 0; }
@keyframes flicker { 0%, 92%, 100% { opacity: 1; } 93% { opacity: 0.4; } 95% { opacity: 0.9; } 96% { opacity: 0.5; } }
.questions { max-width: 860px; }
.typed { font-family: var(--f-display); font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 500; min-height: 2.6em; margin: 0; }
.caret { display: inline-block; width: 10px; height: 1.1em; vertical-align: -0.15em; margin-left: 4px; background: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ───────── 03 Transformation ───────── */
.ba { display: grid; grid-template-columns: 1fr auto 1.4fr; gap: 28px; align-items: center; }
.ba-col .label { margin-bottom: 14px; color: var(--cyan); }
.ba-before .label { color: var(--text-faint); }
.ba-scatter { position: relative; height: 340px; border: 1px dashed rgba(255, 255, 255, 0.12); margin-bottom: 14px; }
.ba-scatter span {
  position: absolute; left: var(--x); top: var(--y);
  padding: 8px 14px; font-family: var(--f-mono); font-size: 0.8rem; color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(10, 20, 40, 0.8);
}
.ba-arrow .ico { width: 40px; height: 40px; color: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.arch { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; perspective: 900px; }
.arch li {
  display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: center;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.1), rgba(0, 212, 255, 0.02));
}
.arch li b { font-family: var(--f-display); font-size: 1.05rem; letter-spacing: 0.04em; }
.arch li span { color: var(--text-dim); font-size: 0.84rem; }
.arch li.arch-hot { border-left-color: var(--orange); background: linear-gradient(90deg, rgba(255, 122, 26, 0.12), rgba(0, 212, 255, 0.02)); }
.js .ba.reveal .arch li { opacity: 0; transform: translateX(30px) rotateY(-12deg); transition: opacity 0.6s, transform 0.6s; transition-delay: calc((6 - var(--i)) * 90ms); }
.js .ba.reveal.in .arch li { opacity: 1; transform: none; }

/* ───────── 04 Signature workflow ───────── */
.story { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; position: relative; }
.story::before { content: ''; position: absolute; left: 4%; right: 4%; top: 22px; height: 2px; background: var(--line); }
.story::after {
  content: ''; position: absolute; left: 4%; top: 22px; height: 2px;
  width: calc(var(--progress, 0) * 92%);
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: var(--glow);
  transition: width 0.6s ease;
}
.story-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 0 6px; opacity: 0.45; transition: opacity 0.4s; }
.story-step.on { opacity: 1; }
.story-n {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  font-family: var(--f-mono); font-size: 0.8rem;
  border: 1px solid var(--line-strong); background: var(--bg-1);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}
.story-step.on .story-n { background: rgba(0, 212, 255, 0.2); color: var(--cyan); }
.story-step.warn.on .story-n { background: rgba(255, 77, 94, 0.2); color: var(--bad); }
.story-step.decide.on .story-n { background: rgba(255, 176, 32, 0.2); color: var(--warn); }
.story-step b { font-family: var(--f-display); font-size: 1.02rem; line-height: 1.15; }
.badge { font-size: 0.75rem; padding: 3px 8px; border: 1px solid var(--line); color: var(--text-dim); }
.story-step.warn .badge { color: var(--bad); border-color: rgba(255, 77, 94, 0.5); }
.story-step.decide .badge { color: var(--warn); border-color: rgba(255, 176, 32, 0.6); font-family: var(--f-mono); }
.story-detail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.story-detail p { margin: 0; color: var(--text-dim); font-size: 0.94rem; }

/* ───────── 05 Command centre ───────── */
.cc {
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(10, 22, 44, 0.92), rgba(5, 11, 24, 0.96));
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.06), 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 212, 255, 0.08);
}
.cc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: rgba(0, 212, 255, 0.04); }
.cc-brand { font-family: var(--f-display); font-weight: 700; letter-spacing: 0.2em; color: var(--cyan); }
.cc-brand b { color: var(--orange); }
.cc-field { display: flex; flex-direction: column; font-size: 0.82rem; line-height: 1.3; }
.cc-field small { font-family: var(--f-display); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; color: var(--text-faint); }
.cc-select select { background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 0 18px 0 0; font-size: 0.82rem; cursor: pointer; }
.cc-select option { background: var(--bg-1); }
.cc-alerts { margin-left: auto; font-family: var(--f-mono); color: var(--warn); border: 1px solid rgba(255, 176, 32, 0.5); padding: 4px 10px; }

.cc-kpis { display: grid; grid-template-columns: repeat(6, 1fr); border-bottom: 1px solid var(--line); }
.kpi { padding: 14px 18px; border-right: 1px solid var(--line); }
.kpi:last-child { border-right: 0; }
.kpi-v { font-family: var(--f-display); font-size: 2rem; font-weight: 700; line-height: 1; color: var(--cyan); }
.kpi-v.warn { color: var(--warn); }
.kpi-v.bad { color: var(--bad); }
.kpi-l { font-size: 0.75rem; color: var(--text-dim); margin-top: 6px; }

.cc-body { display: grid; grid-template-columns: 270px 1fr 310px; min-height: 440px; }
.cc-rail { border-right: 1px solid var(--line); padding: 14px; }
.cc-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.cc-view { display: grid; gap: 4px; margin: 0 0 18px; }
.cc-view .active { justify-self: start; font-family: var(--f-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; padding: 4px 8px; border: 1px solid var(--cyan); color: var(--cyan); background: rgba(0, 212, 255, 0.1); }
.cc-view small { font-size: 0.75rem; color: var(--text-faint); }
.cc-nav span { font-family: var(--f-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; padding: 4px 8px; border: 1px solid var(--line); color: var(--text-dim); }
.cc-nav span.active { color: var(--cyan); border-color: var(--cyan); background: rgba(0, 212, 255, 0.1); }
.cc-rail .label { margin-bottom: 8px; }
.cc-ex { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cc-ex button {
  width: 100%; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 4px 1fr; gap: 10px;
  padding: 10px 10px 10px 0;
  border: 1px solid var(--line); background: rgba(10, 22, 44, 0.6);
  transition: border-color 0.2s, background 0.2s;
}
.cc-ex button::before { content: ''; background: var(--warn); }
.cc-ex button.bad::before { background: var(--bad); }
.cc-ex button:hover { border-color: var(--line-strong); }
.cc-ex button[aria-pressed='true'] { border-color: var(--cyan); background: rgba(0, 212, 255, 0.1); box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.1); }
.cc-ex b { display: block; font-size: 0.84rem; font-weight: 600; line-height: 1.3; }
.cc-ex small { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 0.75rem; color: var(--text-dim); }

.state { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 0.75rem; }
.state::before { content: ''; width: 18px; height: 0; border-top: 2px solid var(--cyan); }
.state.st-identifier::before { border-top-style: dotted; }
.state.st-candidate::before { border-top: 2px dashed var(--blue); }
.state.st-ambiguous { color: var(--warn); }
.state.st-ambiguous::before { border-top: 2px dashed var(--warn); }
.state.st-denied { color: var(--bad); }
.state.st-denied::before { border-top: 2px dashed var(--bad); }

.cc-stage { position: relative; padding: 14px; display: flex; flex-direction: column; }
.cc-stage-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.legend-mini { font-size: 0.75rem; color: var(--text-dim); display: inline-flex; align-items: center; gap: 4px; }
.legend-mini .dot { margin-left: 8px; margin-right: 2px; }
.twin { width: 100%; height: auto; flex: 1; }
.twin .zone { fill: rgba(0, 212, 255, 0.04); stroke: rgba(0, 212, 255, 0.3); stroke-width: 1; }
.twin .z-plant { fill: rgba(0, 212, 255, 0.12); stroke: var(--cyan); }
.twin .z-riser, .twin .z-corr { fill: rgba(30, 144, 255, 0.08); }
.twin .z-bay { fill: rgba(255, 176, 32, 0.06); stroke: rgba(255, 176, 32, 0.4); }
.twin .pipe { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-dasharray: 8 6; opacity: 0.7; animation: flow 2.4s linear infinite; }
.twin .zlabel { font-family: var(--f-display); font-size: 11px; letter-spacing: 0.18em; fill: var(--text-faint); text-anchor: middle; }
.mk .core { fill: var(--cyan); filter: drop-shadow(0 0 4px var(--cyan)); }
.mk .ring { fill: none; stroke: var(--cyan); stroke-width: 1; opacity: 0.35; }
.mk text { font-family: var(--f-mono); font-size: 11px; fill: var(--text-dim); }
.mk.active .core { fill: #fff; }
.mk.active .ring { opacity: 1; stroke: var(--warn); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ping 1.6s ease-out infinite; }
.mk.active text { fill: var(--text); font-weight: 500; }
@keyframes ping { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

.cc-inspector { border-left: 1px solid var(--line); padding: 16px; font-size: 0.86rem; }
.insp-title { font-family: var(--f-display); font-size: 1.25rem; margin-bottom: 8px; }
.insp-dl { display: grid; grid-template-columns: 96px 1fr; gap: 6px 10px; margin: 12px 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.insp-dl dt { color: var(--text-faint); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--f-display); }
.insp-dl dd { margin: 0; font-family: var(--f-mono); font-size: 0.76rem; }
.insp-sec { margin-bottom: 12px; }
.insp-sec .label { margin-bottom: 4px; font-size: 0.75rem; }
.insp-sec p { margin: 0; color: var(--text-dim); }
.insp-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.insp-actions button { flex: 1 1 auto; padding: 8px 10px; font-family: var(--f-display); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer; border: 1px solid var(--line-strong); background: rgba(0, 212, 255, 0.06); color: var(--cyan); }
.insp-actions button:hover { background: rgba(0, 212, 255, 0.16); }
.insp-actions button.reject { color: var(--bad); border-color: rgba(255, 77, 94, 0.5); background: rgba(255, 77, 94, 0.05); }
.insp-actions button.request { color: var(--warn); border-color: rgba(255, 176, 32, 0.5); background: rgba(255, 176, 32, 0.05); }

.cc-bottom { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding: 10px 18px; }
.cc-steps { list-style: none; padding: 0; margin: 0; display: flex; gap: 4px; }
.cc-steps li { font-family: var(--f-display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; padding: 4px 8px; border: 1px solid var(--line); color: var(--text-faint); }
.cc-steps li.done { color: var(--cyan); border-color: rgba(0, 212, 255, 0.4); }
.cc-steps li.now { color: var(--bad); border-color: var(--bad); background: rgba(255, 77, 94, 0.1); }
.ticker { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 40px; width: max-content; font-family: var(--f-mono); font-size: 0.75rem; color: var(--text-dim); animation: ticker 40s linear infinite; }
@keyframes ticker { to { transform: translateX(-50%); } }
.cc-disclaimer { margin: 0; padding: 8px 18px; border-top: 1px solid var(--line); font-size: 0.75rem; color: var(--orange); font-family: var(--f-mono); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; max-width: calc(100% - 32px);
  font-family: var(--f-mono); font-size: 0.8rem;
  background: var(--panel-solid); border: 1px solid var(--warn); color: var(--text);
  transition: opacity 0.3s, transform 0.3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ───────── 06 Ontology ───────── */
.onto-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.onto-stage { position: sticky; top: calc(var(--header-h) + 10px); height: calc(100vh - var(--header-h) - 20px); display: flex; flex-direction: column; justify-content: center; }
.stack-onto { max-width: 640px; margin: 0 auto; }
.edge-legend { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 0.75rem; color: var(--text-dim); }
.edge-legend li { display: inline-flex; align-items: center; gap: 8px; }
.ln { display: inline-block; width: 26px; height: 0; border-top: 2px solid var(--cyan); }
.ln-verified { box-shadow: 0 0 6px var(--cyan); }
.ln-identifier { border-top-style: dotted; }
.ln-candidate { border-top: 2px dashed var(--blue); opacity: 0.8; }
.ln-ambiguous { border-top: 2px dashed var(--warn); }
.ln-denied { border-top: 2px dashed var(--bad); }
.ln-unknown { border-top: 1px dashed transparent; position: relative; }
.ln-unknown::after { content: '∅'; position: absolute; left: 50%; top: -0.75em; transform: translateX(-50%); color: var(--text-faint); font-size: 0.9rem; line-height: 1; }

.ask { margin-bottom: 36px; }
.ask-row { display: flex; gap: 8px; }
.ask-row input { flex: 1; min-width: 0; padding: 10px 12px; background: rgba(5, 11, 24, 0.7); border: 1px solid var(--line-strong); font-size: 0.88rem; }
.ask-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ask-presets button { cursor: pointer; padding: 8px 12px; font-size: 0.85rem; min-height: 36px; border: 1px solid var(--line); background: transparent; color: var(--text-dim); text-align: left; }
.ask-presets button:hover, .ask-presets button[aria-pressed='true'] { color: var(--cyan); border-color: var(--cyan); }
.ask-answer:not(:empty) { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.88rem; }
.ask-answer ul { margin: 6px 0 10px; padding-left: 18px; color: var(--text-dim); }
.ask-answer li { margin-bottom: 4px; }
.ask-answer .cites { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.cite { cursor: pointer; font-family: var(--f-mono); font-size: 0.75rem; padding: 2px 8px; border: 1px solid var(--line-strong); background: rgba(0, 212, 255, 0.06); color: var(--cyan); }
.ask-answer .pill { margin-top: 2px; }

.trail-label { margin: 0 0 10px; }
.trail { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; counter-reset: t; }
.trail > li { position: relative; }
.trail-btn {
  width: 100%; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line); background: rgba(10, 22, 44, 0.6);
  transition: border-color 0.2s, background 0.2s;
}
.trail-btn:hover { border-color: var(--line-strong); }
.trail-n { font-family: var(--f-mono); font-size: 0.75rem; color: var(--text-faint); }
.trail-name { font-weight: 600; font-size: 0.9rem; }
.trail-name small { display: block; font-weight: 400; color: var(--text-faint); font-size: 0.75rem; }
.trail > li.lit .trail-btn { border-left: 3px solid var(--cyan); }
.trail > li.lit .trail-n { color: var(--cyan); }
.trail-btn[aria-expanded='true'] { border-color: var(--cyan); background: rgba(0, 212, 255, 0.08); }
.trail-edge { padding: 4px 0 4px 40px; font-size: 0.75rem; color: var(--text-dim); }
.evidence { display: none; padding: 12px 14px 14px; border: 1px solid var(--cyan); border-top: 0; background: rgba(0, 212, 255, 0.04); font-size: 0.84rem; }
.evidence.open { display: block; }
.evidence .insp-dl { margin-top: 0; border-top: 0; padding-top: 0; }
.evidence p { margin: 0 0 6px; color: var(--text-dim); }
.unknown-card { padding: 14px 16px; border: 1px dashed rgba(255, 255, 255, 0.2); margin-bottom: 8px; }
.unknown-card .label { display: flex; align-items: center; gap: 10px; color: var(--text); margin-bottom: 6px; }
.unknown-card p:last-child { margin: 0; color: var(--text-dim); font-size: 0.88rem; }

/* ───────── 07 Paths ───────── */
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path { padding: 30px; }
.path h3 { font-size: 1.7rem; margin-bottom: 12px; }
.path > p { color: var(--text-dim); }
.ticks { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 22px; color: var(--text-dim); font-size: 0.94rem; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border: 1px solid var(--cyan); transform: rotate(45deg); background: rgba(0, 212, 255, 0.2); }

/* ───────── 08 Solutions ───────── */
.mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mod-grid-4 { grid-template-columns: repeat(4, 1fr); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.svc-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.svc { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.svc h3 { font-size: 1.2rem; margin: 0 0 6px; }
.svc p { margin: 0 0 6px; }
.sol-examples-head { padding-bottom: 8px; }
.mod { padding: 26px; transition: transform 0.3s, box-shadow 0.3s; }
.mod:hover { transform: translateY(-4px); box-shadow: 0 0 40px rgba(0, 212, 255, 0.12); }
.mod .ico { color: var(--cyan); margin-bottom: 16px; filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.6)); }
.mod h3 { font-size: 1.35rem; margin-bottom: 10px; }
.mod .q { font-family: var(--f-display); font-size: 1.05rem; color: var(--cyan); }
.mod p:last-child { color: var(--text-dim); font-size: 0.92rem; margin: 0; }

/* ───────── 09 IDD ───────── */
.idd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.idd-grid .hud { padding: 28px; }
.idd-grid h3 { font-size: 1.4rem; margin-bottom: 12px; }
.idd-grid p { color: var(--text-dim); }
.matrix-flow { list-style: none; padding: 0; margin: 16px 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.matrix-flow li { padding: 5px 10px; border: 1px solid var(--line-strong); color: var(--cyan); background: rgba(0, 212, 255, 0.06); position: relative; }
.matrix-flow li:not(:last-child)::after { content: '→'; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); color: var(--text-faint); font-size: 0.75rem; }
.matrix-flow li { margin-right: 6px; }

/* ───────── 10 Ecosystem ───────── */
.eco-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.eco-grid .section-head { margin-bottom: 0; }
.hub { --rad: 175px; position: relative; width: 100%; max-width: 480px; aspect-ratio: 1 / 1; margin: 0 auto; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-lines .orbit { fill: none; stroke: rgba(0, 212, 255, 0.18); stroke-dasharray: 3 6; }
.hub::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(0, 212, 255, 0.35) 0 0.4deg, transparent 0.4deg 45deg);
  mask-image: radial-gradient(circle, transparent 22%, #000 23%, #000 72%, transparent 73%);
  -webkit-mask-image: radial-gradient(circle, transparent 22%, #000 23%, #000 72%, transparent 73%);
}
.hub-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 130px; height: 130px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid var(--cyan);
  background: radial-gradient(circle, rgba(0, 212, 255, 0.25), rgba(5, 11, 24, 0.95) 70%);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.35);
  animation: corePulse 3s ease-in-out infinite;
}
.hub-core b { font-family: var(--f-display); font-size: 1.4rem; letter-spacing: 0.2em; }
.hub-core small { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.12em; }
.hub-core .brand-mark { width: 44px; height: 17px; }
@keyframes corePulse { 50% { box-shadow: 0 0 70px rgba(0, 212, 255, 0.55); } }
.hub-node {
  position: absolute; left: 50%; top: 50%;
  width: 116px; margin: -38px 0 0 -58px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  transform: rotate(calc(var(--a) * 45deg - 90deg)) translate(var(--rad)) rotate(calc(var(--a) * -45deg + 90deg));
}
.hub-node .ico { width: 42px; height: 42px; padding: 10px; color: var(--cyan); border: 1px solid var(--line-strong); background: var(--bg-1); box-shadow: 0 0 14px rgba(0, 212, 255, 0.2); }
.hub-node span { font-size: 0.75rem; color: var(--text-dim); line-height: 1.25; }

/* ───────── 11 Method & trust ───────── */
.stages { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.stages li { position: relative; padding: 24px 20px 0 0; border-top: 2px solid var(--line); }
.stages li::before { content: ''; position: absolute; left: 0; top: -7px; width: 12px; height: 12px; background: var(--bg-0); border: 2px solid var(--cyan); transform: rotate(45deg); box-shadow: var(--glow); }
.stage-n { font-family: var(--f-mono); font-size: 0.75rem; color: var(--cyan); }
.stages h3 { font-size: 1.35rem; margin: 6px 0 8px; }
.stages p { color: var(--text-dim); font-size: 0.9rem; }
.stages.caps { margin-bottom: 48px; }
.trust { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
.trust-statement { padding: 30px; --c: var(--ok); }
.trust-quote { font-family: var(--f-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 500; line-height: 1.3; margin: 0; }
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.trust-list li { display: grid; grid-template-columns: 28px 170px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.trust-list .ico { color: var(--cyan); }
.trust-list b { font-family: var(--f-display); font-size: 1.05rem; }
.trust-list span { color: var(--text-dim); font-size: 0.88rem; }

/* ───────── 12 Contact ───────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-form { padding: 28px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.fgrid .full { grid-column: 1 / -1; }
.fgrid label, .fgrid legend { display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; color: var(--text-dim); font-family: var(--f-display); text-transform: uppercase; letter-spacing: 0.1em; }
.fgrid input[type='text'], .fgrid input[type='email'], .fgrid select, .fgrid textarea {
  padding: 10px 12px; background: rgba(5, 11, 24, 0.7); border: 1px solid var(--line);
  font-family: var(--f-body); font-size: 0.94rem; text-transform: none; letter-spacing: 0; color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.fgrid input:focus, .fgrid select:focus, .fgrid textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15); }
.fgrid select option { background: var(--bg-1); }
.fgrid [aria-invalid='true'] { border-color: var(--bad); }
.fgrid fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.fgrid legend { margin-bottom: 8px; padding: 0; }
.fgrid label.radio, .fgrid label.check { flex-direction: row; align-items: center; gap: 8px; font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-size: 0.9rem; color: var(--text); }
.fgrid label.check { align-items: flex-start; color: var(--text-dim); font-size: 0.86rem; }
.fgrid input[type='radio'], .fgrid input[type='checkbox'] { accent-color: var(--cyan); margin: 3px 0 0; }
.form-status { margin: 14px 0 0; color: var(--text-faint); }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--bad); }

/* ───────── Footer ───────── */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0; background: var(--bg-0); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.2fr 1.3fr; gap: 32px; }
.footer-grid .brand { margin-bottom: 12px; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; align-content: start; }
.footer-nav a { color: var(--text-dim); text-decoration: none; font-size: 0.88rem; white-space: nowrap; }
.footer-nav a:hover { color: var(--cyan); }
.footer-legal p { margin-bottom: 8px; }

/* ───────── Responsive ───────── */
@media (max-width: 1280px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px;
    background: rgba(5, 11, 24, 0.97); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform 0.3s; visibility: hidden;
  }
  .site-nav.open { transform: none; visibility: visible; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-cta { margin-top: 14px; justify-content: center; }
  .nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

@media (max-width: 1180px) {
  .cc-body { grid-template-columns: 240px 1fr; }
  .cc-inspector { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .cc-kpis { grid-template-columns: repeat(3, 1fr); }
  .kpi:nth-child(3n) { border-right: 0; }
  .kpi:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 1060px) {
  :root { --header-h: 62px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .fragments { grid-template-columns: repeat(2, 1fr); }
  .ba { grid-template-columns: 1fr; }
  .ba-arrow { justify-self: center; transform: rotate(90deg); }
  .ba-scatter { height: 240px; }
  .story { grid-template-columns: repeat(7, minmax(120px, 1fr)); overflow-x: auto; padding-bottom: 12px; }
  .story-detail { grid-template-columns: 1fr; }
  .onto-grid { grid-template-columns: 1fr; }
  .onto-stage { position: relative; top: 0; height: auto; margin-bottom: 32px; }
  .stack-onto { width: 100%; max-width: 560px; }
  .mod-grid { grid-template-columns: 1fr 1fr; }
  .eco-grid, .contact-grid, .trust { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; gap: 0; }
  .stages li { border-top: 0; border-left: 2px solid var(--line); padding: 0 0 24px 24px; }
  .stages li::before { left: -7px; top: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 36px; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 32px); }
  .hero-visual { max-width: 420px; }
  .float { display: none; }
  .float.f1 { display: block; left: 0; top: 0; width: 190px; }
  .scroll-cue { display: none; }
  .fragments { gap: 12px; }
  .frag { min-height: 0; padding: 14px; }
  .frag h3 { font-size: 1rem; }
  .arch li { grid-template-columns: 1fr; gap: 2px; }
  .cc-top { gap: 10px 16px; }
  .cc-body { grid-template-columns: 1fr; }
  .cc-rail { border-right: 0; border-bottom: 1px solid var(--line); }
  .cc-kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi { border-bottom: 1px solid var(--line); }
  .kpi:nth-child(3n) { border-right: 1px solid var(--line); }
  .kpi:nth-child(2n) { border-right: 0; }
  .cc-bottom { grid-template-columns: 1fr; }
  .cc-steps { flex-wrap: wrap; }
  /* Mobile: the trail cards are the story graph; the dense 3D scene is hidden (brief §7.2) */
  .onto-stage { display: none; }
  .mod-grid, .path-grid, .idd-grid, .fgrid { grid-template-columns: 1fr; }
  .hub { --rad: 128px; max-width: 360px; }
  .hub-core { width: 100px; height: 100px; }
  .hub-node { width: 92px; margin: -34px 0 0 -46px; }
  .hub-node .ico { width: 36px; height: 36px; padding: 8px; }
  .hub-node span { font-size: 0.75rem; }
  .trust-list li { grid-template-columns: 28px 1fr; }
  .trust-list span { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .ba.reveal .arch li { opacity: 1; transform: none; }
}

/* ═════════ Intelligence Demo page (demo.html) ═════════ */
.site-nav a[aria-current='page'] { color: var(--cyan); }
.demo-hero { position: relative; padding: calc(var(--header-h) + 72px) 0 40px; background:
  radial-gradient(ellipse 50% 60% at 80% 20%, rgba(30, 144, 255, 0.16), transparent 70%),
  linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
  linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px) 0 0 / 40px 40px, var(--bg-0); }
.demo-hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); font-weight: 700; margin-bottom: 20px; max-width: 820px; }
.demo-hero h1 span { background: linear-gradient(90deg, var(--cyan), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.demo-disclaimer { display: flex; align-items: flex-start; gap: 12px; max-width: 760px; margin: 22px 0 36px; padding: 12px 14px; border: 1px solid rgba(255, 122, 26, 0.45); background: rgba(255, 122, 26, 0.06); }
.demo-disclaimer p { margin: 0; font-size: 0.88rem; color: var(--text-dim); }
.scene-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.scene-nav a { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 14px 16px; text-decoration: none; color: var(--text); border: 1px solid var(--line); background: rgba(10, 22, 44, 0.6); transition: border-color 0.2s, background 0.2s; }
.scene-nav a:hover { border-color: var(--cyan); background: rgba(0, 212, 255, 0.08); }
.scene-nav b { grid-row: span 2; font-family: var(--f-display); font-size: 1.8rem; color: var(--cyan); line-height: 1; }
.scene-nav span { font-weight: 600; font-size: 0.92rem; }
.scene-nav small { color: var(--text-faint); font-size: 0.76rem; }
.scene { padding: 96px 0; }
.scene .section-head { margin-bottom: 36px; }

/* Shared bits */
.seg { display: inline-flex; border: 1px solid var(--line-strong); }
.seg button { padding: 7px 12px; background: transparent; border: 0; color: var(--text-dim); cursor: pointer; font-family: var(--f-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button[aria-pressed='true'] { background: rgba(0, 212, 255, 0.16); color: var(--cyan); }
.linkish { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-align: left; display: inline-flex; align-items: center; gap: 8px; }
.linkish:hover span, .linkish:hover b { color: var(--cyan); }
.state.st-unknown::before { border-top: 0; content: '∅'; width: auto; color: var(--text-faint); }
.ex-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.ex-table th, .ex-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ex-table th { font-family: var(--f-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; color: var(--text-faint); font-weight: 600; }
.ex-table td { color: var(--text-dim); }
.ex-table .row-unknown td { border-bottom-style: dashed; }

/* Scene B: Evidence Explorer */
.ex { border: 1px solid var(--line-strong); background: linear-gradient(180deg, rgba(10, 22, 44, 0.92), rgba(5, 11, 24, 0.96)); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 212, 255, 0.07); }
.ex-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: rgba(0, 212, 255, 0.04); }
.ex-states { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-states button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 0.76rem; cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--text-dim); }
.ex-states button .ln { width: 18px; }
.ex-states button[aria-pressed='true'] { color: var(--text); border-color: var(--cyan); background: rgba(0, 212, 255, 0.1); }
.ex-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.ex-controls label { display: flex; flex-direction: column; gap: 4px; font-family: var(--f-display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; color: var(--text-faint); }
.ex-controls select, .ex-controls input { padding: 6px 8px; min-width: 140px; background: rgba(5, 11, 24, 0.8); border: 1px solid var(--line); font-family: var(--f-body); font-size: 0.84rem; letter-spacing: 0; text-transform: none; color: var(--text); }
.ex-controls select option { background: var(--bg-1); }
.ex-banner { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px dashed rgba(255, 255, 255, 0.16); font-size: 0.86rem; color: var(--text-dim); }
.ex-banner p { margin: 0; }
.ex-banner b { color: var(--text); }
.ex-body { display: grid; grid-template-columns: 65fr 35fr; min-height: 560px; }
.ex-main { border-right: 1px solid var(--line); padding: 8px; overflow-x: auto; }
.ex-graph { width: 100%; height: auto; }
.ex-text { padding: 8px; }
.ex-bg { fill: transparent; }
.ex-drawer { padding: 18px; font-size: 0.86rem; }
.ex-drawer .state { margin-bottom: 4px; }
.rel-list, .src-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.src-list li { display: grid; gap: 2px; }
.src-list span { font-family: var(--f-mono); font-size: 0.75rem; color: var(--text-dim); }
.link-verdict p:last-child { color: var(--text); }

.g-edge { cursor: pointer; outline: none; }
.g-edge .hit { fill: none; stroke: transparent; stroke-width: 18; }
.g-edge .edge { stroke-width: 2; }
.g-edge .e-verified { stroke-width: 2.4; }
.g-edge .e-identifier { stroke-width: 2.6; stroke-dasharray: 1 6; }
.g-edge .e-candidate { opacity: 0.85; stroke-dasharray: 8 6; }
.g-edge .e-denied { opacity: 0.8; }
.e-label rect { fill: var(--bg-1); stroke: var(--line); }
.e-label text { font-family: var(--f-mono); font-size: 12.5px; fill: var(--text-dim); }
.g-edge:hover .edge, .g-edge:focus-visible .edge, .g-edge.related .edge { stroke-width: 3.4; opacity: 1; }
.g-edge.selected .edge { stroke-width: 4; opacity: 1; }
.g-edge.selected .e-label rect, .g-edge:focus-visible .e-label rect { stroke: var(--cyan); fill: rgba(0, 212, 255, 0.15); }
.g-edge.selected .e-label text { fill: var(--text); }
.g-ghost circle { fill: none; stroke: var(--warn); stroke-dasharray: 3 3; }
.g-ghost text { font-family: var(--f-mono); font-size: 12px; fill: var(--warn); }

.g-node { cursor: pointer; outline: none; }
.g-node .halo { fill: rgba(0, 212, 255, 0.08); stroke: none; opacity: 0; transition: opacity 0.2s; }
.g-node .shape { fill: var(--bg-2); stroke: var(--cyan); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.6)); }
.g-node.is-denied .shape { stroke: var(--bad); filter: none; }
.g-node .n-rec { font-family: var(--f-mono); font-size: 15px; fill: var(--text); }
.g-node .n-type { font-size: 12.5px; fill: var(--text-faint); }
.g-node .badge-unknown circle { fill: var(--bg-1); stroke: var(--warn); stroke-width: 1.5; }
.g-node .badge-unknown text { font-family: var(--f-mono); font-size: 11px; fill: var(--warn); font-weight: 600; }
.g-node:hover .halo, .g-node:focus-visible .halo, .g-node.related .halo { opacity: 1; }
.g-node.selected .halo { opacity: 1; fill: rgba(0, 212, 255, 0.2); stroke: var(--cyan); stroke-width: 1; }
.g-node.selected .shape { fill: var(--cyan); }
.g-node:focus-visible .halo { stroke: #fff; stroke-width: 2; }
.g-edge.dim, .g-node.dim { opacity: 0.12; }

/* Scene C: Tender → Workforce */
.tw-steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.tw-steps button { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 10px 12px; cursor: pointer; border: 1px solid var(--line); border-top: 3px solid var(--line); background: rgba(10, 22, 44, 0.6); color: var(--text-dim); font-family: var(--f-display); font-weight: 600; font-size: 0.98rem; line-height: 1.15; }
.tw-steps button .mono { font-size: 0.75rem; color: var(--text-faint); }
.tw-steps button.done { border-top-color: var(--cyan); color: var(--text); }
.tw-steps button.now { border-color: var(--cyan); border-top-color: var(--orange); background: rgba(0, 212, 255, 0.1); color: var(--text); }
.tw-body { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 18px; align-items: start; }
.tw-title { font-size: 1.7rem; margin-bottom: 10px; }
.tw-who { color: var(--cyan); border-color: var(--line-strong); background: rgba(0, 212, 255, 0.06); }
.tw-dl { display: grid; grid-template-columns: 110px 1fr; gap: 10px 14px; margin: 18px 0; }
.tw-dl dt { font-family: var(--f-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; color: var(--text-faint); padding-top: 2px; }
.tw-dl dd { margin: 0; color: var(--text-dim); font-size: 0.92rem; }
.tw-unknown { padding: 10px 12px; border: 1px dashed rgba(255, 176, 32, 0.6); background: rgba(255, 176, 32, 0.05); margin-bottom: 14px; }
.tw-unknown .label { color: var(--warn); margin-bottom: 4px; }
.tw-unknown p:last-child { margin: 0; font-size: 0.9rem; }
.tw-records { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.tw-records .label { margin-right: 6px; }
.tw-options { border: 0; padding: 0; margin: 4px 0 14px; display: grid; gap: 8px; }
.tw-options legend { margin-bottom: 8px; padding: 0; }
.tw-option { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); cursor: pointer; }
.tw-option:has(input:checked) { border-color: var(--cyan); background: rgba(0, 212, 255, 0.08); }
.tw-option input { accent-color: var(--cyan); margin-top: 4px; }
.tw-option b { display: block; font-size: 0.92rem; }
.tw-option small { color: var(--text-dim); font-size: 0.8rem; }
.tw-record-status { margin: 10px 0 0; }
.tw-scenarios { margin-bottom: 12px; flex-wrap: wrap; }
.tw-legend { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.76rem; color: var(--text-dim); }
.tw-legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.sw-committed { background: #3E8BE8; }
.sw-tender { background: #D0782E; }
.sw-cap { width: 18px; height: 0; border-top: 2px solid var(--text); border-radius: 0; }
.sw-extra { width: 18px; height: 0; border-top: 2px dashed var(--warn); border-radius: 0; }
.sw-over { background: repeating-linear-gradient(45deg, #FF4D5E 0 2px, rgba(255, 77, 94, 0.16) 2px 5px); }
.tw-plot { position: relative; }
.tw-plot svg { width: 100%; height: auto; }
.tw-plot .grid { stroke: rgba(154, 176, 204, 0.12); }
.tw-plot .axis { font-family: var(--f-mono); font-size: 11px; fill: var(--text-faint); }
.tw-plot .empty { font-size: 14px; fill: var(--text-faint); }
.tw-plot .bar-committed { fill: #3E8BE8; }
.tw-plot .bar-tender { fill: #D0782E; }
.tw-plot .val { font-family: var(--f-mono); font-size: 12px; fill: var(--text); }
.tw-plot .over-label { font-family: var(--f-mono); font-size: 12px; font-weight: 500; fill: var(--text); }
.tw-plot .cap-line { stroke: var(--text); stroke-width: 2; }
.tw-plot .cap-label { font-family: var(--f-mono); font-size: 11px; fill: var(--text); }
.tw-plot .cap-extra { stroke: var(--warn); stroke-width: 2; stroke-dasharray: 5 4; }
.tw-plot .cap-extra-label { font-family: var(--f-mono); font-size: 11px; fill: var(--text-dim); }
.tw-plot .hit { fill: transparent; }
.tw-plot .hit:hover { fill: rgba(0, 212, 255, 0.05); }
.tw-tip { position: absolute; transform: translate(-50%, -100%); padding: 8px 10px; min-width: 150px; pointer-events: none; font-family: var(--f-mono); font-size: 0.75rem; line-height: 1.5; background: var(--panel-solid); border: 1px solid var(--line-strong); color: var(--text-dim); }
.tw-tip b { color: var(--text); }
.tip-bad { color: var(--text); text-decoration: underline wavy var(--bad); }
.tw-note { margin: 8px 0 10px; }
.tw-table summary { cursor: pointer; font-size: 0.8rem; color: var(--cyan); }
.tw-table .ex-table { margin-top: 8px; font-size: 0.8rem; }
.tw-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.tw-nav .btn:disabled { opacity: 0.35; cursor: default; }

/* Scene D: IDD tracker */
.idd-warning { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; margin-bottom: 22px; border: 1px solid rgba(255, 122, 26, 0.45); background: rgba(255, 122, 26, 0.06); }
.idd-warning p { margin: 0; font-size: 0.88rem; color: var(--text-dim); }
.idd-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.idd-kpi { padding: 16px 18px; }
.idd-kpi .kpi-l { margin: 0 0 6px; }
.idd-kpi .kpi-v { font-family: var(--f-display); font-size: 2.1rem; font-weight: 700; line-height: 1; color: var(--text); margin: 0 0 6px; }
.idd-kpi .kpi-v small { font-size: 0.8rem; color: var(--text-dim); margin-left: 6px; font-weight: 500; }
.spark { width: 100%; height: 36px; margin-bottom: 6px; }
.spark polyline { fill: none; stroke: var(--cyan); stroke-width: 2; vector-effect: non-scaling-stroke; }
.spark circle { fill: var(--cyan); stroke: var(--bg-1); stroke-width: 2; }
.trend-ok, .trend-bad { margin: 0; color: var(--text-dim); }
.trend-ok::first-letter { color: var(--ok); }
.trend-bad::first-letter { color: var(--bad); }
.idd-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.idd-filters button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--text-dim); font-size: 0.8rem; }
.idd-filters button[aria-pressed='true'] { border-color: var(--cyan); background: rgba(0, 212, 255, 0.1); color: var(--text); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: rgba(10, 22, 44, 0.6); }
.idd-table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 0.86rem; }
.idd-table th, .idd-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.idd-table thead th { font-family: var(--f-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; color: var(--text-faint); font-weight: 600; background: rgba(0, 212, 255, 0.04); }
.idd-table tbody th { font-weight: 600; color: var(--text); }
.idd-table td { color: var(--text-dim); }
.idd-table td.mono { font-size: 0.76rem; }
.metric-v { display: block; font-family: var(--f-display); font-size: 1.3rem; font-weight: 700; color: var(--text); line-height: 1.1; }
.idd-table small { font-size: 0.75rem; }
.ev { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--text); }
.ev i { font-style: normal; display: inline-grid; place-items: center; width: 18px; height: 18px; font-size: 0.75rem; border: 1px solid; border-radius: 50%; }
.ev-ok i { color: var(--ok); }
.ev-warn i { color: var(--warn); }
.ev-bad i { color: var(--bad); }
.ev-none i { color: var(--text-faint); }

.demo-cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 32px; }
.demo-cta-box h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 8px; }
.demo-cta-box h2 span { background: linear-gradient(90deg, var(--cyan), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.demo-cta-box .section-lede { margin: 0; }
.demo-cta-box .cta-row { margin: 0; }

@media (max-width: 1060px) {
  .scene-nav { grid-template-columns: 1fr 1fr; }
  .ex-body { grid-template-columns: 1fr; }
  .ex-main { border-right: 0; border-bottom: 1px solid var(--line); }
  .tw-steps { grid-template-columns: repeat(7, minmax(110px, 1fr)); overflow-x: auto; padding-bottom: 6px; }
  .tw-body { grid-template-columns: 1fr; }
  .idd-kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .demo-hero { padding-top: calc(var(--header-h) + 40px); }
  .scene-nav { grid-template-columns: 1fr; }
  .scene { padding: 72px 0; }
  .ex-controls { width: 100%; }
  .ex-controls label { flex: 1 1 140px; }
  .ex-controls select, .ex-controls input { min-width: 0; width: 100%; }
  .ex-text .ex-table thead { display: none; }
  .ex-text .ex-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .ex-text .ex-table td { border: 0; padding: 0; }
  .ex-text .ex-table td:nth-child(3), .ex-text .ex-table td:nth-child(4), .ex-text .ex-table .row-unknown td { grid-column: 1 / -1; }
  .tw-dl { grid-template-columns: 1fr; gap: 2px; }
  .tw-dl dd { margin-bottom: 10px; }
  .idd-kpis { grid-template-columns: 1fr; }
  .demo-cta-box { padding: 24px; }
}

/* ═════════ Solutions page (solutions.html) ═════════ */
.sol-hero { padding-bottom: 8px; }
.sol-hero .demo-disclaimer { margin-bottom: 32px; }
.demo-disclaimer .chip { white-space: nowrap; }

/* Sticky role filter, docked under the fixed header */
.role-bar { position: sticky; top: var(--header-h); z-index: 40; background: rgba(5, 11, 24, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.role-bar-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 18px; padding: 10px 0 12px; }
.role-chips { grid-column: 1 / -1; grid-row: 2; }
.role-bar .label { margin: 0; color: var(--cyan); }
.role-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.role-chips button { padding: 7px 12px; cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--text-dim); font-size: 0.8rem; white-space: nowrap; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.role-chips button:hover { border-color: var(--line-strong); color: var(--text); }
.role-chips button[aria-pressed='true'] { border-color: var(--cyan); background: rgba(0, 212, 255, 0.14); color: var(--cyan); box-shadow: 0 0 14px rgba(0, 212, 255, 0.18); }
.role-count { margin: 0; color: var(--text-faint); grid-column: 2; grid-row: 1; }

.sol { padding-top: 48px; }
.role-panel { margin-bottom: 36px; }
.role-panel-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 28px; }
.role-panel .label { margin-bottom: 8px; }
.role-owns { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; line-height: 1.25; color: var(--text); }
.role-prompts { margin: 0; padding-left: 26px; display: grid; gap: 8px; color: var(--text-dim); font-size: 0.92rem; }
.role-prompts li::marker { font-family: var(--f-mono); font-size: 0.8rem; color: var(--cyan); }

.sol-layout { display: grid; grid-template-columns: 210px 1fr; gap: 40px; align-items: start; }
.sol-index { position: sticky; top: calc(var(--header-h) + 116px); }
.sol-index .label { margin-bottom: 10px; }
.sol-index ol { list-style: none; margin: 0 0 14px; padding: 0; border-left: 1px solid var(--line); }
.sol-index a { display: flex; gap: 10px; padding: 7px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-dim); text-decoration: none; font-size: 0.86rem; line-height: 1.3; transition: color 0.2s, border-color 0.2s; }
.sol-index a b { font-family: var(--f-mono); font-weight: 500; font-size: 0.75rem; color: var(--text-faint); padding-top: 1px; }
.sol-index a:hover, .sol-index .is-active a { color: var(--text); border-left-color: var(--cyan); }
.sol-index .is-active a b { color: var(--cyan); }
.sol-index-extra { font-size: 0.8rem; color: var(--text-faint); }

.sol-list { display: grid; gap: 24px; }
.mdl, .research { scroll-margin-top: calc(var(--header-h) + 116px); }
.mdl { padding: 28px 30px 22px; }
.mdl-head { display: grid; grid-template-columns: auto auto 1fr auto; gap: 4px 16px; align-items: start; margin-bottom: 24px; }
.mdl-num { font-family: var(--f-display); font-weight: 700; font-size: 2.4rem; line-height: 0.9; color: transparent; -webkit-text-stroke: 1px var(--line-strong); }
.mdl-head .ico { color: var(--cyan); filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.6)); margin-top: 2px; }
.mdl h2 { font-size: 1.6rem; margin-bottom: 6px; }
.mdl .q { font-family: var(--f-display); font-size: 1.1rem; color: var(--cyan); margin: 0; }
.mdl-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.tag { padding: 3px 9px; font-family: var(--f-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; border: 1px solid var(--line-strong); color: var(--text-dim); white-space: nowrap; }
.tag-primary { color: var(--cyan); background: rgba(0, 212, 255, 0.1); border-color: var(--cyan); }
.mdl h3.label { margin: 0 0 8px; font-size: 0.75rem; color: var(--text-faint); }
.mdl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
.mdl-grid p { color: var(--text-dim); font-size: 0.94rem; margin-bottom: 18px; }
.inputs { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.inputs li { padding: 3px 9px; font-size: 0.8rem; color: var(--text); background: rgba(30, 144, 255, 0.1); border: 1px solid rgba(30, 144, 255, 0.35); }
.mdl-grid .guard { display: flex; gap: 10px; padding: 10px 12px; border-left: 2px solid var(--warn); background: rgba(255, 176, 32, 0.06); color: var(--text); font-size: 0.9rem; }
.guard .ico { width: 18px; height: 18px; color: var(--warn); margin-top: 2px; }

/* Flow: numbered steps joined by a line; the last step is the human decision */
.mflow { list-style: none; counter-reset: step; margin: 22px 0 22px; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.mflow li { counter-increment: step; position: relative; padding: 30px 10px 10px; font-size: 0.82rem; line-height: 1.35; color: var(--text-dim); border-top: 1px solid var(--line-strong); }
.mflow li::before { content: counter(step, decimal-leading-zero); position: absolute; top: -11px; left: 0; padding: 0 6px; font-family: var(--f-mono); font-size: 0.75rem; line-height: 20px; color: var(--cyan); background: var(--bg-1); border: 1px solid var(--line-strong); }
.mflow li:last-child { color: var(--text); border-top: 2px solid var(--orange); }
.mflow li:last-child::before { color: var(--orange); border-color: var(--orange); }

.mdl-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.mdl-roles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mdl-roles .label { font-size: 0.75rem; margin-right: 4px; }
.rc { padding: 2px 8px; font-size: 0.75rem; color: var(--text-faint); border: 1px solid var(--line); }
.rc.is-match { color: var(--cyan); border-color: var(--cyan); background: rgba(0, 212, 255, 0.1); }
.sol-empty p { margin: 0; color: var(--text-dim); }

.research { margin-top: 40px; padding: 24px 28px; border: 1px dashed var(--line-strong); background: rgba(10, 22, 44, 0.4); }
.research-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.research-head .ico { color: var(--text-dim); }
.research-head .label { margin: 0 0 4px; font-size: 0.75rem; }
.research h2 { font-size: 1.4rem; }
.research p { color: var(--text-dim); max-width: 820px; }
.research p:last-child { margin: 0; }

.bounds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bounds-grid .ticks { margin-bottom: 0; }
.gate { list-style: none; counter-reset: gate; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.gate li { counter-increment: gate; display: flex; gap: 10px; align-items: baseline; font-size: 0.92rem; }
.gate li::before { content: counter(gate); flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; font-family: var(--f-mono); font-size: 0.75rem; color: var(--ok); border: 1px solid var(--ok); }

@media (max-width: 1060px) {
  .sol-layout { grid-template-columns: 1fr; }
  .sol-index { display: none; }
  .mflow { grid-auto-flow: row; grid-auto-columns: auto; gap: 0; border-left: 1px solid var(--line-strong); margin-left: 11px; }
  .mflow li { padding: 6px 0 12px 26px; border-top: 0; }
  .mflow li::before { top: 4px; left: -12px; padding: 0; width: 24px; text-align: center; }
  .mflow li:last-child { border-top: 0; padding-bottom: 0; }
  .bounds-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .role-bar-inner { padding: 8px 0; gap: 6px; }
  .role-bar .label { display: none; }
  .role-chips { grid-row: 1; }
  .role-count { grid-column: 1 / -1; grid-row: 2; font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .demo-disclaimer { flex-direction: column; gap: 8px; }
  .role-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 2px; scrollbar-width: none; }
  .role-chips::-webkit-scrollbar { display: none; }
  .role-panel-grid { grid-template-columns: 1fr; gap: 16px; }
  .mdl { padding: 22px 18px 18px; }
  .mdl-head { grid-template-columns: auto 1fr; }
  .mdl-head .ico { display: none; }
  .mdl-tags { grid-column: 1 / -1; justify-content: flex-start; }
  .mdl h2 { font-size: 1.35rem; }
  .mdl-grid { grid-template-columns: 1fr; }
  .gate { grid-template-columns: 1fr; }
  .research { padding: 20px 18px; }
}

/* ═════════ How It Works page (how-it-works.html) ═════════ */
.how-hero .section-lede { margin-bottom: 28px; }
.principle { list-style: none; margin: 0 0 36px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 30px; }
.principle li { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font-family: var(--f-display); font-weight: 600; font-size: 0.86rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); border: 1px solid var(--line-strong); background: rgba(0, 212, 255, 0.06); }
.principle li + li::before { content: '→'; position: absolute; left: -22px; color: var(--cyan); }
.principle li:last-child { color: var(--orange); border-color: rgba(255, 122, 26, 0.6); background: rgba(255, 122, 26, 0.08); }

/* Method ladder: ascending step bars act as tabs */
.ladder-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; margin-bottom: 18px; }
.ladder-tabs button { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 0 0 10px; background: none; border: 0; border-bottom: 2px solid var(--line); color: var(--text-dim); text-align: left; cursor: pointer; }
.ladder-tabs button::before { content: ''; display: block; height: calc(var(--h) * 16px + 8px); margin-bottom: 10px; border: 1px solid var(--line-strong); background: rgba(0, 212, 255, 0.04); transition: background 0.3s, box-shadow 0.3s; }
.ladder-tabs b { font-family: var(--f-mono); font-weight: 500; font-size: 0.75rem; color: var(--text-faint); }
.ladder-tabs span { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; line-height: 1.1; }
.ladder-tabs button:hover span { color: var(--text); }
.ladder-tabs .is-past::before { background: rgba(0, 212, 255, 0.16); }
.ladder-tabs [aria-selected='true'] { color: var(--cyan); border-bottom-color: var(--cyan); }
.ladder-tabs [aria-selected='true']::before { background: linear-gradient(180deg, rgba(0, 212, 255, 0.55), rgba(30, 144, 255, 0.25)); border-color: var(--cyan); box-shadow: 0 0 22px rgba(0, 212, 255, 0.35); }
.ladder-tabs [aria-selected='true'] b { color: var(--cyan); }
.ladder-panels { display: grid; gap: 16px; }
.stage-panel { padding: 24px 26px; }
.stage-grid { display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: 28px; }
.stage-grid .label { margin: 0 0 4px; font-size: 0.75rem; color: var(--text-faint); }
.stage-grid .ticks { margin: 10px 0 0; }
.stage-next { padding-left: 24px; border-left: 1px solid var(--line); }
.stage-next p { color: var(--text-dim); font-size: 0.92rem; margin: 10px 0 16px; }
.how-paths { margin-top: 24px; }
.how-paths .path { padding: 22px 24px; }
.how-paths .path p { margin: 0; }

/* Layer explorer: isometric plates stacked down a lineage line */
.layers { --pw: 150px; --pl: 36px; --rh: 58px; display: grid; grid-template-columns: 470px 1fr; gap: 32px; align-items: start; }
.layer-stack { position: relative; list-style: none; margin: 0; padding: 30px 0; }
.layer-stack::before { content: ''; position: absolute; left: calc(var(--pl) + var(--pw) / 2); top: 30px; bottom: 30px; border-left: 1px dashed var(--line-strong); }
.layer-stack::after { content: ''; position: absolute; z-index: 3; left: calc(var(--pl) + var(--pw) / 2 - 5px); top: calc(30px + var(--k, 0) * var(--rh) + var(--rh) / 2 - 5px); width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan), 0 0 26px rgba(0, 212, 255, 0.6); transition: top 0.5s cubic-bezier(.4, 0, .2, 1); pointer-events: none; }
.layer-stack button { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: var(--rh); padding: 0 0 0 calc(var(--pl) + var(--pw) * 1.207 + 16px); background: none; border: 0; color: var(--text-dim); text-align: left; cursor: pointer; }
.layer-stack .plate { position: absolute; left: var(--pl); top: 50%; width: var(--pw); height: var(--pw); margin-top: calc(var(--pw) / -2); transform: rotateX(60deg) rotateZ(45deg); border: 1px solid var(--line-strong); background: rgba(14, 27, 51, 0.82); pointer-events: none; transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, opacity 0.3s; }
.layer-stack .is-above .plate { opacity: 0.55; }
.layer-stack button:hover .plate { border-color: var(--cyan); }
.layer-stack [aria-selected='true'] { z-index: 2; color: var(--cyan); }
.layer-stack [aria-selected='true'] .plate { border-color: var(--cyan); background: rgba(0, 120, 170, 0.45); box-shadow: 0 0 30px rgba(0, 212, 255, 0.4), inset 0 0 24px rgba(0, 212, 255, 0.35); }
.layer-stack b { font-family: var(--f-mono); font-weight: 500; font-size: 0.75rem; color: var(--text-faint); }
.layer-stack span { font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; line-height: 1.15; }
.layer-stack button:hover span { color: var(--text); }
.layer-stack [aria-selected='true'] span { color: var(--cyan); text-shadow: 0 0 12px rgba(0, 212, 255, 0.5); }
.layer-stack [aria-selected='true'] b { color: var(--cyan); }
.layer-detail { min-height: 420px; padding: 24px 26px; }
.layer-name { font-size: 1.9rem; margin-bottom: 8px; }
.layer-does { color: var(--text-dim); }
.layer-scn { margin: 4px 0 20px; padding: 14px 16px; border-left: 2px solid var(--orange); background: rgba(255, 122, 26, 0.05); }
.layer-scn .label { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 0.75rem; }
.layer-scn p:last-child { margin: 0; color: var(--text); font-size: 0.94rem; }
.layer-nav { display: flex; gap: 10px; }
.layer-nav .btn:disabled { opacity: 0.35; cursor: default; }
.layer-fallback { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text-dim); }
.arch-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0 12px; }
.arch-notes p { margin: 0; color: var(--text-dim); font-size: 0.94rem; }
.arch-sec .cc-disclaimer { padding-left: 0; border: 0; }

/* Governance */
.gov-grid { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.gov-grid li { padding: 20px 18px; }
.gov-grid .ico { color: var(--cyan); margin-bottom: 14px; filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.6)); }
.gov-grid h3 { font-size: 1.15rem; margin-bottom: 8px; }
.gov-grid p { margin: 0; color: var(--text-dim); font-size: 0.86rem; }
.never-merge { padding: 22px 24px; }
.never-merge > p { max-width: 780px; }
.nm-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.88rem; }
.nm-table th, .nm-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.nm-table thead th { font-family: var(--f-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; color: var(--text-faint); font-weight: 600; background: rgba(0, 212, 255, 0.04); }
.nm-table thead .chip { margin-left: 8px; letter-spacing: 0.04em; }
.nm-table tbody th { font-weight: 600; color: var(--text); white-space: nowrap; }
.nm-table td { color: var(--text-dim); }
.nm-n { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; font-family: var(--f-mono); font-size: 0.75rem; color: var(--cyan); border: 1px solid var(--line-strong); }
.nm-table tr:last-child .nm-n { color: var(--orange); border-color: var(--orange); }
.gates { margin-top: 28px; }
.gates .label { margin-bottom: 12px; }
.gate-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; gap: 12px; }
.gate-flow li { position: relative; display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); background: rgba(10, 22, 44, 0.6); }
.gate-flow li + li::before { content: '→'; position: absolute; left: -12px; top: 50%; transform: translate(-50%, -50%); color: var(--cyan); }
.gate-flow b { font-family: var(--f-display); font-size: 1.1rem; }
.gate-flow span { color: var(--text-dim); font-size: 0.86rem; }
.gate-actions { border-color: rgba(255, 122, 26, 0.6) !important; background: rgba(255, 122, 26, 0.06) !important; }
.gate-actions span { display: flex; flex-wrap: wrap; gap: 6px; }
.gate-actions em { font-style: normal; padding: 2px 8px; font-size: 0.78rem; color: var(--text); border: 1px solid rgba(255, 122, 26, 0.5); }

/* Integrations */
.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.route h3 { font-size: 1.3rem; margin-bottom: 8px; }
.route p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }
.int-rules { list-style: none; margin: 20px 0 48px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.int-rules li { display: flex; gap: 12px; color: var(--text-dim); font-size: 0.92rem; }
.int-rules .ico { color: var(--cyan); margin-top: 2px; }
.int-rules b { color: var(--text); font-weight: 600; }
.int-sub { font-size: 1.5rem; margin-bottom: 16px; }
.int-grid { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.int-grid li { padding: 18px; }
.int-grid .ico { color: var(--cyan); margin-bottom: 12px; filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.6)); }
.int-grid h4 { margin: 0 0 6px; font-family: var(--f-display); font-size: 1.1rem; font-weight: 600; }
.int-grid p { margin: 0; color: var(--text-dim); font-size: 0.84rem; }
.tiers { padding: 22px 24px; }
.tier-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 4px 0 14px; }
.tier-list div { display: grid; align-content: start; gap: 8px; }
.tier-list dt { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; }
.tier-list dd { margin: 0; color: var(--text-dim); font-size: 0.88rem; }
.tier-list .tier-now { font-size: 0.84rem; }
.tiers > p { margin: 0; }

@media (max-width: 1180px) {
  .gov-grid { grid-template-columns: repeat(3, 1fr); }
  .layers { grid-template-columns: 1fr; }
  .layer-stack { max-width: 520px; }
  .layer-detail { min-height: 0; }
}
@media (max-width: 1060px) {
  .ladder-tabs span { font-size: 0.98rem; }
  .stage-grid { grid-template-columns: 1fr 1fr; }
  .stage-next { grid-column: 1 / -1; padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .arch-notes, .routes, .int-rules { grid-template-columns: 1fr; }
  .int-grid { grid-template-columns: repeat(2, 1fr); }
  .gate-flow { grid-template-columns: 1fr 1fr; }
  .gate-flow li:nth-child(3)::before { display: none; }
  .tier-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .principle li + li::before { display: none; }
  .ladder-tabs { gap: 4px; }
  .ladder-tabs button::before { height: calc(var(--h) * 10px + 6px); }
  .ladder-tabs span { font-size: 0.78rem; letter-spacing: 0; }
  .stage-grid { grid-template-columns: 1fr; gap: 16px; }
  .layers { --pw: 90px; --pl: 20px; --rh: 46px; }
  .layer-stack { padding: 18px 0; }
  .layer-stack::before { top: 18px; bottom: 18px; }
  .layer-stack::after { top: calc(18px + var(--k, 0) * var(--rh) + var(--rh) / 2 - 5px); }
  .layer-stack span { font-size: 0.98rem; }
  .layer-detail { padding: 20px 18px; }
  .layer-name { font-size: 1.5rem; }
  .gov-grid { grid-template-columns: 1fr; }
  .int-grid { grid-template-columns: 1fr; }
  .gate-flow { grid-template-columns: 1fr; }
  .gate-flow li + li::before { display: block !important; left: 50%; top: -12px; transform: translate(-50%, -50%) rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) {
  .layer-stack::after { transition: none; }
}

/* ═════════ IDD & Transformation page (idd.html) ═════════ */
.claim-line { display: flex; gap: 12px; align-items: flex-start; max-width: 760px; margin: 22px 0 36px; padding: 14px 16px; border: 1px solid var(--line-strong); background: rgba(0, 212, 255, 0.06); }
.claim-line .ico { color: var(--cyan); margin-top: 3px; }
.claim-line p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }
.claim-line b { color: var(--text); font-weight: 600; }

/* 01 · three elements */
.elements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.element { padding: 26px 24px; }
.el-n { position: absolute; top: 14px; right: 20px; font-family: var(--f-display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line-strong); }
.element .ico { color: var(--cyan); margin-bottom: 16px; filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.6)); }
.element h3 { font-size: 1.35rem; margin-bottom: 10px; padding-right: 40px; }
.element p { color: var(--text-dim); font-size: 0.92rem; }
.element .el-dva { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.el-dva b { color: var(--cyan); font-weight: 600; }
.kpi-types { margin-top: 28px; display: grid; gap: 12px; justify-items: start; }
.kpi-types .label { margin: 0; }
.kpi-types .inputs { margin: 0; }
.source-line { margin: 24px 0 0; color: var(--text-faint); }
.source-line a { display: inline-flex; align-items: center; gap: 4px; }
.source-line .ico { width: 13px; height: 13px; }

/* 02 · self-check */
.selfcheck { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.sc-form { padding: 22px 24px; }
.sc-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); }
.sc-item legend { float: left; display: flex; gap: 12px; align-items: baseline; padding: 0; font-size: 0.95rem; color: var(--text); max-width: 340px; }
.sc-item legend b { font-family: var(--f-mono); font-weight: 500; font-size: 0.75rem; color: var(--cyan); }
.sc-opts { display: inline-flex; border: 1px solid var(--line-strong); }
.sc-opts label { position: relative; padding: 6px 12px; font-family: var(--f-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); cursor: pointer; }
.sc-opts label + label { border-left: 1px solid var(--line-strong); }
.sc-opts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sc-opts label:has(input:checked) { background: rgba(0, 212, 255, 0.16); color: var(--cyan); }
.sc-opts label:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }
.sc-private { margin: 14px 0 0; }
.sc-result { position: sticky; top: calc(var(--header-h) + 20px); padding: 22px 24px; }
.sc-cells { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
.sc-cells li { display: grid; justify-items: center; gap: 4px; padding: 10px 0 8px; border-top: 3px solid; background: rgba(10, 22, 44, 0.6); }
.sc-cells li.ev-ok { border-color: var(--ok); }
.sc-cells li.ev-warn { border-color: var(--warn); }
.sc-cells li.ev-bad { border-color: var(--bad); }
.sc-cells li.ev-none { border-color: var(--line); }
.sc-cells b { font-family: var(--f-mono); font-weight: 500; font-size: 0.75rem; color: var(--text-faint); }
.sc-counts { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--text-dim); margin-bottom: 10px; }
.sc-summary { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.sc-gaps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.sc-gaps li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: baseline; font-size: 0.9rem; color: var(--text-dim); }
.sc-gaps .ev { font-size: 0.78rem; }
.help-flow { margin-top: 28px; padding: 22px 24px 6px; }
.help-flow .mflow { margin-top: 26px; }

/* 03 · requirement matrix */
.rm-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.rm-filters button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--text-dim); font-size: 0.8rem; }
.rm-filters button .mono { color: var(--text-faint); }
.rm-filters button[aria-pressed='true'] { border-color: var(--cyan); background: rgba(0, 212, 255, 0.1); color: var(--text); }
.rm-filters .cs { width: 10px; height: 10px; padding: 0; font-size: 0; }
.rm-table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 0.86rem; }
.rm-table th, .rm-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rm-table thead th { font-family: var(--f-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; color: var(--text-faint); font-weight: 600; background: rgba(0, 212, 255, 0.04); }
.rm-table tbody th { font-weight: 600; color: var(--text); width: 18%; }
.rm-table td { color: var(--text-dim); }
.rm-table td:last-child { width: 17%; }
.rm-table small { display: block; margin-top: 6px; font-size: 0.76rem; color: var(--text-faint); }
/* Claim status: label carries meaning; border style and tint support it */
.cs { display: inline-block; padding: 2px 8px; font-family: var(--f-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; border: 1px solid; white-space: nowrap; }
.cs-proposed { color: var(--cyan); border-style: dashed; }
.cs-demo { color: var(--orange); background: rgba(255, 122, 26, 0.08); }
.cs-planned { color: var(--blue); border-style: dotted; }
.cs-advisory { color: var(--ok); }
.cs-yours { color: var(--text); }
.cs-not { color: var(--text-faint); border-style: dashed; text-decoration: line-through; }
.rm-filters .cs-demo, .rm-filters .cs-advisory, .rm-filters .cs-yours, .rm-filters .cs-proposed, .rm-filters .cs-planned, .rm-filters .cs-not { text-decoration: none; }

/* 04 · BETC */
.betc-alert { display: flex; align-items: flex-start; gap: 12px; max-width: 860px; margin-bottom: 28px; padding: 12px 14px; border: 1px solid rgba(255, 176, 32, 0.5); background: rgba(255, 176, 32, 0.06); }
.betc-alert .chip { color: var(--warn); background: rgba(255, 176, 32, 0.08); white-space: nowrap; }
.betc-alert p { margin: 0; color: var(--text); font-size: 0.92rem; }
.betc-flow { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.betc-flow li { position: relative; display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); background: rgba(10, 22, 44, 0.6); }
.betc-flow li + li::before { content: '→'; position: absolute; left: -13px; top: 50%; transform: translate(-50%, -50%); color: var(--cyan); }
.betc-flow b { font-family: var(--f-display); font-size: 1.1rem; }
.betc-flow span { color: var(--text-dim); font-size: 0.86rem; }
.betc-flow .you { border-color: rgba(255, 122, 26, 0.6); background: rgba(255, 122, 26, 0.06); }
.betc-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; align-items: start; }
.betc-grid .hud { padding: 22px 24px; }
.betc-services { margin: 4px 0 16px; padding-left: 22px; display: grid; gap: 10px; color: var(--text-dim); font-size: 0.92rem; }
.betc-services li::marker { font-family: var(--f-mono); font-size: 0.8rem; color: var(--cyan); }
.betc-grid .hud > p:last-child { margin: 0; }
.betc-facts .hud-head .chip { color: var(--text-dim); }
.betc-timeline { margin: 6px 0 10px; }
.tl-bar { position: relative; display: grid; grid-template-columns: 40fr 60fr; gap: 2px; }
.tl-seg { display: grid; gap: 2px; padding: 10px 12px; border-top: 3px solid; font-size: 0.82rem; color: var(--text-dim); }
.tl-seg b { font-family: var(--f-display); font-size: 0.95rem; color: var(--text); }
.tl-a { border-color: var(--cyan); background: rgba(0, 212, 255, 0.08); }
.tl-b { border-color: var(--blue); background: rgba(30, 144, 255, 0.05); }
/* 1 Apr 2025 → 28 Oct 2026 is 19 of 60 months */
.tl-now { position: absolute; top: -10px; height: 13px; left: 31.7%; border-left: 2px solid var(--orange); }
.tl-now span { position: absolute; top: -14px; left: 4px; font-family: var(--f-mono); font-style: normal; font-size: 0.75rem; white-space: nowrap; color: var(--orange); }
.tl-axis { display: grid; grid-template-columns: 40fr 60fr auto; margin-top: 6px; font-size: 0.75rem; color: var(--text-faint); }
.betc-timeline { padding-top: 14px; }
.betc-list { list-style: none; margin: 14px 0 16px; padding: 0; display: grid; gap: 8px; }
.betc-list li { position: relative; padding-left: 18px; font-size: 0.88rem; color: var(--text-dim); }
.betc-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; background: var(--cyan); }
.betc-official { padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--text-dim); }
.betc-official b { color: var(--text); }
.betc-official a { display: inline-flex; align-items: center; gap: 4px; }
.betc-official .ico { width: 13px; height: 13px; }

@media (max-width: 1060px) {
  .elements { grid-template-columns: 1fr; }
  .selfcheck, .betc-grid { grid-template-columns: 1fr; }
  .sc-result { position: static; }
  .betc-flow { grid-template-columns: 1fr 1fr; }
  .betc-flow li:nth-child(3)::before { display: none; }
}
@media (max-width: 720px) {
  .sc-item legend { float: none; max-width: none; margin-bottom: 8px; }
  .sc-opts { width: 100%; }
  .sc-opts label { flex: 1; text-align: center; padding: 8px 6px; }
  .sc-form, .sc-result, .betc-grid .hud { padding: 20px 18px; }
  .betc-alert { flex-direction: column; gap: 8px; }
  .betc-flow { grid-template-columns: 1fr; }
  .betc-flow li + li::before { display: block !important; left: 50%; top: -8px; transform: translate(-50%, -50%) rotate(90deg); }
  .tl-seg { padding: 8px; font-size: 0.76rem; }
}

/* ═════════ Technology Ecosystem page (ecosystem.html) ═════════ */
.eco-map { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.eco-hub { max-width: 520px; }
.eco-hub .hub-node { padding: 0; background: none; border: 0; color: inherit; cursor: pointer; }
.eco-hub .hub-node .ico { transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.eco-hub .hub-node:hover .ico { border-color: var(--cyan); }
.eco-hub .hub-node:hover span { color: var(--text); }
.eco-hub .hub-node[aria-selected='true'] .ico { border-color: var(--cyan); background: rgba(0, 120, 170, 0.5); box-shadow: 0 0 26px rgba(0, 212, 255, 0.6); }
.eco-hub .hub-node[aria-selected='true'] span { color: var(--cyan); font-weight: 600; }
.spoke-line { stroke: rgba(0, 212, 255, 0.22); stroke-width: 1; }
.spoke.on .spoke-line { stroke: var(--cyan); stroke-width: 1.5; }
.spoke.on .flow { opacity: 0.9; }
.eco-detail { min-height: 470px; padding: 24px 26px; }
.eco-detail .label { margin: 18px 0 8px; font-size: 0.75rem; color: var(--text-faint); }
.eco-detail .inputs { margin: 0; }
.chip-eval { color: var(--warn); background: rgba(255, 176, 32, 0.08); }
.eco-name { font-size: 1.9rem; margin-bottom: 6px; }
.eco-feeds { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.eco-feeds a { display: inline-flex; gap: 8px; padding: 4px 10px; font-size: 0.82rem; color: var(--text); text-decoration: none; border: 1px solid var(--line-strong); }
.eco-feeds a:hover { border-color: var(--cyan); color: var(--cyan); }
.eco-feeds b { font-family: var(--f-mono); font-weight: 500; font-size: 0.75rem; color: var(--cyan); }
.eco-idd { color: var(--text-dim); font-size: 0.92rem; }
.eco-guard { display: flex; gap: 10px; margin: 18px 0 0; padding: 10px 12px; border-left: 2px solid var(--warn); background: rgba(255, 176, 32, 0.06); color: var(--text); font-size: 0.9rem; }
.eco-guard .ico { width: 18px; height: 18px; color: var(--warn); margin-top: 2px; }

.fit-table { width: 100%; min-width: 920px; border-collapse: collapse; font-size: 0.86rem; }
.fit-table th, .fit-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.fit-table thead th { vertical-align: bottom; background: rgba(0, 212, 255, 0.04); font-weight: 500; }
.fit-table thead th:first-child { text-align: left; font-family: var(--f-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; color: var(--text-faint); font-weight: 600; }
.fit-table thead a { display: grid; gap: 2px; justify-items: center; color: var(--text-dim); text-decoration: none; font-size: 0.78rem; line-height: 1.2; }
.fit-table thead a:hover { color: var(--cyan); }
.fit-table thead b { font-family: var(--f-mono); font-weight: 500; font-size: 0.75rem; color: var(--cyan); }
.fit-table tbody th { text-align: left; white-space: nowrap; font-weight: 600; color: var(--text); }
.fit-table tbody th .linkish span { font-weight: 600; }
.fit-table td + td { border-left: 1px solid rgba(0, 212, 255, 0.08); }
.fit-table td.on i { font-style: normal; color: var(--cyan); text-shadow: 0 0 8px rgba(0, 212, 255, 0.8); }
.fit-table tbody tr { transition: background 0.2s; }
.fit-table tbody tr:hover { background: rgba(0, 212, 255, 0.05); }
.fit-table tbody tr.is-sel { background: rgba(0, 212, 255, 0.1); }
.fit-table tbody tr.is-sel th { box-shadow: inset 2px 0 0 var(--cyan); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split .hud { padding: 22px 24px; }
.split .ticks { margin-bottom: 0; }
.split-dva { --c: var(--orange); border-color: rgba(255, 122, 26, 0.45); }
.split-dva .hud-head { color: var(--orange); border-bottom-color: rgba(255, 122, 26, 0.35); }
.split-dva .hud-head .dot { background: var(--orange); color: var(--orange); }
.aip-def { display: flex; gap: 18px; margin-top: 20px; padding: 22px 24px; }
.aip-def .ico { color: var(--cyan); flex: none; filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.6)); }
.aip-def .label { margin: 0 0 8px; }
.aip-def p { max-width: 860px; color: var(--text-dim); }
.aip-def p:last-child { margin: 0; }

.label-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.label-steps li { position: relative; display: grid; align-content: start; gap: 8px; padding: 22px 22px 18px; border: 1px solid var(--line); background: rgba(10, 22, 44, 0.6); }
.label-steps li + li::before { content: '→'; position: absolute; left: -17px; top: 40px; transform: translateX(-50%); color: var(--cyan); }
.label-steps .ls-now { border-color: var(--line-strong); background: rgba(0, 212, 255, 0.06); box-shadow: 0 0 30px rgba(0, 212, 255, 0.08); }
.ls-n { font-family: var(--f-display); font-weight: 700; font-size: 2.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line-strong); }
.label-steps h3 { font-size: 1.35rem; }
.label-steps p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }
.label-steps .ls-req { padding-top: 10px; border-top: 1px solid var(--line); }
.ls-req b { color: var(--text); font-weight: 600; }
.ls-count { margin-top: 4px !important; font-size: 0.84rem !important; }

@media (max-width: 1060px) {
  .eco-map { grid-template-columns: 1fr; gap: 28px; }
  .eco-detail { min-height: 0; }
  .split { grid-template-columns: 1fr; }
  .label-steps { grid-template-columns: 1fr; gap: 28px; }
  .label-steps li + li::before { left: 50%; top: -15px; transform: translate(-50%, -50%) rotate(90deg); }
}
@media (max-width: 720px) {
  .eco-detail { padding: 20px 18px; }
  .eco-name { font-size: 1.5rem; }
  .aip-def { flex-direction: column; gap: 12px; padding: 20px 18px; }
}

/* ═════════ Consistency pass ═════════ */
/* Bigger tap targets for in-table buttons on touch screens */
@media (pointer: coarse) {
  .linkish { min-height: 36px; }
  .fit-table tbody th .linkish { width: 100%; }
}
@media (max-width: 720px) {
  .hub-node span { font-size: 0.75rem; }
}

/* ═════════ v2.2 pre-production refinements ═════════ */

/* Pause motion (WCAG 2.2.2): footer, hero and command-centre controls */
.motion-toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; cursor: pointer;
  font-family: var(--f-display); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim); background: rgba(0, 212, 255, 0.04); border: 1px solid var(--line-strong);
}
.motion-toggle::before { content: '❚❚'; font-size: 0.6rem; letter-spacing: 0; color: var(--cyan); }
.motion-toggle[aria-pressed='true']::before { content: '▶'; }
.motion-toggle:hover, .motion-toggle:focus-visible { color: var(--text); border-color: var(--cyan); }
.hero-copy .motion-toggle { margin-top: 18px; }
.cc-top .cc-motion { padding: 4px 10px; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* Simulated controls are labelled as such */
.sim-label { margin: 14px 0 -6px; font-family: var(--f-mono); font-size: 0.72rem; color: var(--text-faint); letter-spacing: 0.04em; }
.cc-steps-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cc-steps-label { margin: 0; font-size: 0.7rem; }
.cc-steps li { border-color: transparent; padding: 2px 4px; }
.cc-steps li + li::before { content: '›'; margin-right: 6px; color: var(--text-faint); }
.cc-steps li.now { border-color: transparent; background: none; text-decoration: underline; text-underline-offset: 4px; }
.cc-kpi-note { margin: 0; padding: 6px 18px; font-size: 0.75rem; color: var(--text-faint); border-bottom: 1px solid var(--line); }

/* Six solution families: who each one is for */
.mod p { color: var(--text-dim); font-size: 0.92rem; }
.mod p.mod-for { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 0.75rem; color: var(--cyan); }

/* Commercial entry: discovery → diagnostic → pilot */
.entry-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.entry-steps.entry-four { grid-template-columns: repeat(4, 1fr); }
.entry { position: relative; padding: 24px 24px 22px; }
.entry + .entry::before { content: '→'; position: absolute; left: -16px; top: 26px; color: var(--cyan); font-size: 0.9rem; }
.entry-n { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; color: var(--cyan); line-height: 1; margin-bottom: 10px; }
.entry h3 { font-size: 1.25rem; margin-bottom: 8px; }
.entry p { margin: 0 0 10px; color: var(--text-dim); font-size: 0.92rem; }
.entry .entry-out { margin: 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--text); }
.entry .entry-out b { color: var(--orange); font-weight: 600; }
.entry .entry-map { margin: 0; font-family: var(--f-mono); font-size: 0.75rem; color: var(--text-faint); }

/* Contact card (replaces the unconnected form until a receiver is approved) */
.contact-card { padding: 26px; }
.contact-opt { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-opt:last-of-type { border-bottom: 0; }
.contact-opt .ico { color: var(--cyan); }
.contact-opt h3 { font-size: 1.2rem; margin-bottom: 6px; }
.contact-opt p { margin: 0 0 12px; color: var(--text-dim); font-size: 0.92rem; }
.contact-email { font-family: var(--f-mono); font-size: 1rem; color: var(--cyan); }
.contact-privacy { margin: 6px 0 0; }
[data-contact][hidden] { display: none; }

/* How it works: six-step principle chips in two balanced rows */
@media (min-width: 1061px) {
  .principle { display: grid; grid-template-columns: repeat(3, max-content); }
}

/* Hero stack: keep layer labels clear of the node tags */
.stack-hero .plane-label { left: -12%; }
.stack-hero .plane-label .billboard { font-size: 0.65rem; padding: 1px 6px; }

/* Solutions: workflow detail opens on demand */
.mdl-body[hidden] { display: none; }
.mdl-toggle { margin-left: auto; }

/* About: profile and philosophy */
.profile-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin: 8px 0 24px; }
.profile-card { padding: 24px; }
.profile-dl { margin: 6px 0 14px; }
.profile-name { font-size: 1.6rem; margin: 4px 0 2px; }
.profile-role { margin: 0 0 12px; font-family: var(--f-mono); font-size: 0.8rem; color: var(--cyan); }
.philo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.philo-grid p { margin: 0; color: var(--text-dim); font-size: 0.94rem; }

/* Privacy notice */
.legal-body { max-width: 780px; }
.legal-body h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.15rem; margin: 22px 0 8px; color: var(--cyan); }
.legal-body p { color: var(--text-dim); }

@media (max-width: 1060px) {
  .entry-steps, .entry-steps.entry-four { grid-template-columns: 1fr 1fr; }
  .philo-grid, .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .entry-steps, .entry-steps.entry-four { grid-template-columns: 1fr; }
  .entry + .entry::before { content: '↓'; left: 24px; top: -18px; }
  .stack-hero .plane-label { left: -6%; }
}
.mdl-foot .mdl-roles { flex: 1 1 100%; }

/* v2.2 RC: final mobile and chart refinements */
.tw-plot .val-in { fill: #12100C; font-weight: 500; }
@media (max-width: 720px) {
  /* The exception card sits under the layer stack on phones instead of covering its labels */
  .hero-visual { aspect-ratio: auto; }
  .float.f1 { position: relative; left: auto; top: auto; width: auto; max-width: 340px; margin: 4px auto 0; animation: none; }
  .hero-chip { position: relative; left: auto; bottom: auto; display: table; margin: 12px auto 0; }
}
/* Anchor the decorative radar to the viewport-height hero position rather than 50% of a height that can change while loading */
.radar { top: 5vh; margin-top: 0; }
@media (min-width: 1061px) {
  /* Top-align the desktop hero so the visual doesn't re-centre as text settles (layout shift) */
  .hero { align-items: flex-start; }
  .hero-visual { align-self: start; }
}
