/* ============================================================
   SENTINEL MESH — Detection Cascade Visualization
   viz.css — SM-VIZ-1.3
   3rc0.github.io/assets/css/viz.css
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   NODE ANATOMY — SM-ANAT-1.0
   ══════════════════════════════════════════════════════════════ */

.anat-section {
  padding: 3rem 0 2rem;
  position: relative;
}

.anat-hdr { text-align: center; margin-bottom: 2.5rem; }

.anat-hdr-tag {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}
.anat-hdr-tag::before,
.anat-hdr-tag::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}

.anat-title {
  font-family: var(--f-head);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 0.95;
  color: #fff;
  margin-bottom: 0.5rem;
}
.anat-title em { font-style: normal; color: var(--accent); text-shadow: 0 0 40px rgba(0,212,245,0.4); }

.anat-sub {
  font-family: var(--f-body);
  font-size: 0.92rem;
  color: var(--text2);
  letter-spacing: 0.04em;
}

.anat-diagram {
  display: grid;
  grid-template-columns: 1fr 200px 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.anat-left, .anat-right { display: flex; flex-direction: column; gap: 0.8rem; }
.anat-left  { align-items: flex-end; }
.anat-right { align-items: flex-start; }

.anat-card {
  width: 100%;
  max-width: 340px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(3,8,16,0.75);
  backdrop-filter: blur(10px);
  padding: 0.9rem 1rem;
  cursor: pointer;
  position: relative;
  transition: border-color 0.3s, transform 0.25s, background 0.3s;
  overflow: hidden;
}
.anat-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}
.anat-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 10px; height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.anat-card:hover, .anat-card.active { border-color: currentColor; background: rgba(3,8,16,0.92); }
.anat-card:hover::after, .anat-card.active::after { opacity: 1; }
.anat-left  .anat-card:hover, .anat-left  .anat-card.active { transform: translateX(-3px); }
.anat-right .anat-card:hover, .anat-right .anat-card.active { transform: translateX(3px); }

.s-acoustic { color: var(--amber);  }
.s-rf       { color: var(--accent); }
.s-thermal  { color: var(--red);    }
.s-optical  { color: var(--green);  }
.s-seismic  { color: #a855f7;       }
.s-compute  { color: var(--accent); }

.anat-card-head { display: flex; align-items: center; gap: 0.6rem; }

.anat-icon-wrap {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: rgba(255,255,255,0.03);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: box-shadow 0.3s;
}
.anat-card:hover .anat-icon-wrap,
.anat-card.active .anat-icon-wrap { box-shadow: 0 0 14px currentColor; }

.anat-title-wrap { flex: 1; min-width: 0; }

.anat-sname {
  font-family: var(--f-head);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: currentColor;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.anat-ssub {
  font-family: var(--f-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  color: var(--text2);
  margin-top: 0.15rem;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.anat-badge {
  font-family: var(--f-mono);
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  padding: 0.12rem 0.4rem;
  border: 1px solid currentColor;
  color: currentColor;
  opacity: 0.7;
  white-space: nowrap;
  flex-shrink: 0;
}

.anat-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s;
}
.anat-card.active .anat-body { max-height: 220px; opacity: 1; margin-top: 0.8rem; }

.anat-divider { height: 1px; background: currentColor; opacity: 0.15; margin-bottom: 0.7rem; }

.anat-rows { display: flex; flex-direction: column; gap: 0.35rem; }

.anat-row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }

.anat-lbl {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text2);
  white-space: nowrap;
}

.anat-val {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: currentColor;
  font-weight: 700;
  text-align: right;
}

.anat-detects {
  margin-top: 0.5rem;
  font-family: var(--f-body);
  font-size: 0.75rem;
  color: var(--text2);
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 0.45rem;
}

.anat-pole-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 600px;
}

/* Inner wrapper pins hotspot coordinates to SVG dimensions regardless of column width */
.anat-pole-inner {
  position: relative;
  width: 200px;
  height: 600px;
  flex-shrink: 0;
}

.anat-pole-svg {
  width: 200px;
  height: 600px;
  filter: drop-shadow(0 0 20px rgba(0,212,245,0.1));
}

.anat-hotspot {
  position: absolute;
  width: 24px; height: 24px;
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.anat-hr {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid currentColor;
  animation: anatRing 2.5s ease-out infinite;
  opacity: 0;
}
.anat-hr:nth-child(2) { animation-delay: 0.7s; }
@keyframes anatRing {
  0%   { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.8); opacity: 0; }
}

.anat-hd {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  transition: transform 0.3s, box-shadow 0.3s;
}
.anat-hotspot:hover .anat-hd,
.anat-hotspot.active .anat-hd { transform: scale(1.5); box-shadow: 0 0 20px currentColor; }

.anat-pole-callout {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}
.anat-callout-val {
  font-family: var(--f-head);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(0,212,245,0.5);
}
.anat-callout-lbl {
  font-family: var(--f-mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text2);
}

.anat-stats-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(0,212,245,0.1);
  border: 1px solid rgba(0,212,245,0.15);
  margin-top: 2.5rem;
}
.anat-stat { background: var(--bg); padding: 0.9rem 1rem; text-align: center; transition: background 0.2s; }
.anat-stat:hover { background: rgba(0,212,245,0.04); }
.anat-stat-val {
  font-family: var(--f-head);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-shadow: 0 0 16px rgba(0,212,245,0.35);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.anat-stat-lbl {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text2);
  margin-top: 0.25rem;
}

.anat-scroll-cue {
  text-align: center;
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.anat-scroll-label {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.anat-scroll-arrow {
  font-size: 1.2rem;
  color: var(--accent);
  animation: anat-bounce 2s ease-in-out infinite;
}
@keyframes anat-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

.anat-section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.2;
  margin: 2.5rem 0;
}

@media (max-width: 900px) {
  .anat-diagram { grid-template-columns: 1fr; }
  .anat-pole-wrap { height: 480px; order: -1; }
  .anat-left, .anat-right { align-items: stretch; }
  .anat-left .anat-card, .anat-right .anat-card { max-width: 100%; }
  .anat-stats-bar { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 500px) {
  .anat-stats-bar { grid-template-columns: 1fr 1fr; }
}
/* ══ END NODE ANATOMY ══════════════════════════════════════════ */

/* ── SELF-HOSTED FONTS ─────────────────────────────────────── */
@font-face {
  font-family: 'Share Tech Mono';
  src: url('../fonts/share-tech-mono-v16-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-v13-latin-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-v13-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-v13-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-v13-latin-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/barlow-v13-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Colours */
  --bg:       #030810;
  --bg2:      #060d18;
  --bg3:      #0a1525;
  --surface:  #0d1b2e;
  --amber:    #f5a623;
  --amber2:   #fbbf4e;
  --amber-d:  #7a4f0a;
  --cyan:     #00d4f5;
  --green:    #39d353;
  --red:      #ff4757;
  --text:     #c8daea;
  --text2:    #6b8aaa;
  --muted:    #304560;
  --grid:     rgba(0, 212, 245, 0.04);
  --accent:   var(--amber);

  /* Typography */
  --f-mono: 'Share Tech Mono', 'Courier New', Courier, monospace;
  --f-head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --f-body: 'Barlow', system-ui, -apple-system, sans-serif;

  /* Canvas */
  --det-range: 55px;
}

/* ── FIXED STATS BAR ────────────────────────────────────────── */
.stats-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(3, 8, 16, 0.96);
  border-bottom: 1px solid rgba(0, 212, 245, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.stats-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 0;
}

.stat-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0 1.4rem;
  flex-shrink: 0;
}

.stat-value {
  font-family: var(--f-head);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--accent);
  line-height: 1;
  transition: color 0.4s;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text2);
  white-space: nowrap;
}

.stat-div {
  width: 1px;
  height: 18px;
  background: var(--muted);
  flex-shrink: 0;
}

.stat-tagline {
  font-family: var(--f-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text2);
  margin-left: auto;
  padding-left: 1.4rem;
  white-space: nowrap;
}

/* Push page content below fixed bar */
.stats-bar-offset {
  padding-top: 42px;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { font-size: 18px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Scanline overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 3px
  );
  pointer-events: none;
}

/* ── LAYOUT ─────────────────────────────────────────────────── */
.wrap {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 1.5rem;
  align-items: start;
}

.pipeline {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.right-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes poleGlow {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

/* ── HEADER ─────────────────────────────────────────────────── */
.sys-header {
  border-bottom: 1px solid rgba(0, 212, 245, 0.14);
  padding: 1rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}

.sys-logo {
  font-family: var(--f-head);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
}
.sys-logo span { color: var(--text2); font-weight: 300; }

.sys-tag {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text2);
  border: 1px solid var(--muted);
  padding: 0.22rem 0.55rem;
}

.sys-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.sys-clock {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.sys-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--green);
  text-transform: uppercase;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.8s infinite;
  flex-shrink: 0;
}

/* ── PAGE TITLE ─────────────────────────────────────────────── */
.viz-title {
  text-align: center;
  margin-bottom: 1.2rem;
}

.viz-title h1 {
  font-family: var(--f-head);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.viz-title h1 em { color: var(--amber); font-style: normal; }

.viz-title .sub {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--text2);
  text-transform: uppercase;
}

/* ── SCENARIO SELECTOR ──────────────────────────────────────── */
.scenario-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.sc-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 0.5rem 0.65rem;
  background: var(--surface);
  border: 1px solid var(--muted);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
  overflow: hidden;
  color: inherit;
  font-family: inherit;
}
.sc-btn::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--muted);
  transition: background 0.25s, box-shadow 0.25s;
}
.sc-btn:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.025);
}
.sc-btn.active {
  border-color: var(--btn-accent, var(--amber));
  background: rgba(245,166,35,0.04);
}
.sc-btn.active::before {
  background: var(--btn-accent, var(--amber));
  box-shadow: 0 0 10px var(--btn-accent, var(--amber));
}

.sc-btn-icon {
  font-size: 1.6rem;
  line-height: 1;
  filter: grayscale(1) opacity(0.4);
  transition: filter 0.25s;
}
.sc-btn.active .sc-btn-icon { filter: none; }

.sc-btn-label {
  font-family: var(--f-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text2);
  line-height: 1.1;
  text-align: center;
  transition: color 0.25s;
}
.sc-btn.active .sc-btn-label { color: var(--btn-accent, var(--amber)); }

.sc-btn-status {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
}
.sc-btn.active .sc-btn-status {
  color: var(--btn-accent, var(--amber));
}

/* ── SCENARIO INFO CARD ─────────────────────────────────────── */
.scenario-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--muted);
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  transition: border-color 0.4s, background 0.4s;
  overflow: hidden;
}

.scenario-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
  transition: background 0.4s, box-shadow 0.4s;
}

.sc-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  line-height: 1;
  width: 46px;
  text-align: center;
}

.sc-left { flex: 1; }

.sc-label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 0.28rem;
}

.sc-name {
  font-family: var(--f-head);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}
.sc-name em { font-style: normal; color: var(--accent); }

.sc-desc {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text2);
  margin-top: 0.3rem;
  line-height: 1.75;
}

.sc-sensors {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.sc-sensor-tag {
  font-family: var(--f-mono);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--muted);
  color: var(--text2);
  background: rgba(0,0,0,0.3);
}
.sc-sensor-tag.active {
  color: var(--accent);
  border-color: var(--accent);
}

/* Auto-rotate indicator */
.sc-auto {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.sc-auto .auto-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  transition: background 0.3s;
}
.sc-auto.running .auto-dot {
  background: var(--green);
  box-shadow: 0 0 5px var(--green);
  animation: blink 2s infinite;
}
.sc-auto.manual .auto-dot { background: var(--amber); }

/* ── EXPLAINER — THE PROBLEM ────────────────────────────────── */
.explainer-block {
  margin-bottom: 2.5rem;
}

.ex-problem {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  background: rgba(255,71,87,0.04);
  border: 1px solid rgba(255,71,87,0.15);
  border-left: 4px solid var(--red);
  padding: 1.4rem 1.6rem;
}

.ex-problem-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
  color: var(--red);
  margin-top: 0.1rem;
}

.ex-problem-title {
  font-family: var(--f-head);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.ex-problem-text p {
  font-family: var(--f-body);
  font-size: 0.9rem;
  color: var(--text1);
  line-height: 1.8;
  margin-bottom: 0.6rem;
}
.ex-problem-text p:last-child { margin-bottom: 0; }
.ex-problem-text strong { color: #fff; font-weight: 600; }

/* ── SYSTEM CARDS ───────────────────────────────────────────── */
.system-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.sys-card {
  background: var(--surface);
  border: 1px solid var(--muted);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: border-color 0.2s;
}
.sys-card:hover { border-color: rgba(255,255,255,0.12); }

.sentinel-card {
  border-color: rgba(0,212,245,0.3);
  background: rgba(0,212,245,0.03);
}
.palantir-card {
  border-color: rgba(74,100,128,0.35);
  opacity: 0.85;
}

.sys-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(74,100,128,0.2);
}

.sys-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
}

.sys-name {
  font-family: var(--f-head);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.sentinel-card .sys-name { color: var(--cyan); }

.sys-tagline {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text2);
  text-transform: uppercase;
  margin-top: 0.1rem;
}

.sys-body p {
  font-family: var(--f-body);
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--text2);
}

.sys-catches {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sys-label {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.sys-label.catches { color: var(--green); }
.sys-label.misses  { color: var(--red);   }
.sys-label.cost    { color: var(--accent); }

.sys-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.sys-tag {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem;
  border-radius: 0;
}
.sys-tag.green  { background: rgba(57,211,83,0.1);  border: 1px solid rgba(57,211,83,0.25);  color: var(--green); }
.sys-tag.red    { background: rgba(255,71,87,0.08); border: 1px solid rgba(255,71,87,0.2);   color: var(--red);   }
.sys-tag.accent { background: rgba(0,212,245,0.08); border: 1px solid rgba(0,212,245,0.2);   color: var(--cyan);  }

.sys-used {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-top: 1px solid rgba(74,100,128,0.15);
  padding-top: 0.6rem;
  margin-top: auto;
  line-height: 1.6;
}

.palantir-integration-tag {
  color: var(--cyan) !important;
  border-top-color: rgba(0,212,245,0.15) !important;
}

/* ── THE GAP ────────────────────────────────────────────────── */
.gap-block {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  background: rgba(0,212,245,0.04);
  border: 1px solid rgba(0,212,245,0.18);
  border-left: 4px solid var(--cyan);
  padding: 1.4rem 1.6rem;
  margin-bottom: 2.5rem;
}

.gap-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.gap-title {
  font-family: var(--f-head);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.6rem;
}

.gap-text p {
  font-family: var(--f-body);
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.8;
}
.gap-text strong { color: #fff; font-weight: 600; }

/* Responsive — system cards */
@media (max-width: 1100px) {
  .system-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .system-cards { grid-template-columns: 1fr; }
  .ex-problem { flex-direction: column; }
  .gap-block   { flex-direction: column; }
}

/* ── COMPETITOR COMPARISON — SM-VIZ-2.0 ────────────────────── */
.comp-section {
  margin: 2.5rem 0 0;
  border-top: 1px solid rgba(0,212,245,0.12);
  padding-top: 2rem;
}

.comp-header {
  margin-bottom: 1.8rem;
}

.comp-title {
  font-family: var(--f-head);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.comp-title em { font-style: normal; color: var(--accent); }

.comp-title-tag {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text2);
  display: block;
  margin-bottom: 0.3rem;
}

.comp-subtitle {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text2);
}

.matrix-label {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 0.9rem;
  padding-left: 0.2rem;
  border-left: 2px solid var(--accent);
  padding-left: 0.6rem;
}

/* Matrix scroll wrapper for mobile */
.matrix-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0.8rem;
}

.matrix-wrap { margin-bottom: 2.5rem; }

.matrix-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-family: var(--f-mono);
  font-size: 0.76rem;
}

.matrix-table thead tr {
  border-bottom: 1px solid rgba(0,212,245,0.2);
}

.matrix-table th {
  font-family: var(--f-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text2);
  padding: 0.6rem 0.8rem;
  text-align: center;
  white-space: nowrap;
}
.matrix-table th.cap-col { text-align: left; }

.matrix-table th.sentinel-col {
  color: var(--accent);
  background: rgba(0,212,245,0.04);
  border-left: 1px solid rgba(0,212,245,0.2);
  border-right: 1px solid rgba(0,212,245,0.2);
}

.matrix-table tbody tr {
  border-bottom: 1px solid rgba(74,100,128,0.14);
  transition: background 0.15s;
}
.matrix-table tbody tr:hover { background: rgba(255,255,255,0.02); }

.matrix-table td {
  padding: 0.6rem 0.8rem;
  text-align: center;
  vertical-align: middle;
}
.matrix-table td.cap-name {
  text-align: left;
  color: var(--text1);
  font-size: 0.8rem;
  white-space: nowrap;
}

.sentinel-cell {
  background: rgba(0,212,245,0.04);
  border-left: 1px solid rgba(0,212,245,0.15);
  border-right: 1px solid rgba(0,212,245,0.15);
}

/* Capability indicators */
.cap {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  width: 22px;
  line-height: 1;
}
.cap.yes     { color: var(--green); }
.cap.no      { color: var(--red);   opacity: 0.6; }
.cap.partial { color: var(--amber); }

.cap-note {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: var(--text2);
  margin-top: 0.15rem;
  white-space: nowrap;
}

.cap-text {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.cap-text.green { color: var(--green); }
.cap-text.amber { color: var(--amber); }
.cap-text.red   { color: var(--red);   }

/* Legend */
.matrix-legend {
  display: flex;
  gap: 1.8rem;
  margin-top: 0.6rem;
  padding-left: 0.2rem;
}
.ml-item {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Cost bar chart */
.cost-wrap { margin-bottom: 2rem; }

.cost-chart {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.cost-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 0.9rem;
}

.cost-name {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--text2);
  text-align: right;
  white-space: nowrap;
}

.sentinel-row .cost-name { color: var(--accent); font-weight: 700; }

.cost-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  height: 28px;
}

.cost-bar {
  height: 28px;
  display: flex;
  align-items: center;
  padding: 0 0.6rem;
  position: relative;
  transition: width 1.2s cubic-bezier(0.16,1,0.3,1);
  flex-shrink: 0;
  min-width: 6px;
}
.cost-bar.red   { background: rgba(255,71,87,0.18);  border-left: 3px solid var(--red);   }
.cost-bar.amber { background: rgba(245,166,35,0.15); border-left: 3px solid var(--amber); }
.cost-bar.green { background: rgba(57,211,83,0.15);  border-left: 3px solid var(--green); }

.cost-val {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  white-space: nowrap;
}

.cost-val-ext {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.cost-val-ext.green { color: var(--green); }

.cost-note {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 0.8rem;
  line-height: 1.6;
}

.matrix-table th.palantir-col {
  color: var(--text2);
  opacity: 0.7;
  border-left: 1px solid rgba(74,100,128,0.2);
}

.palantir-cell {
  border-left: 1px solid rgba(74,100,128,0.15);
  opacity: 0.75;
}

/* Palantir integration note */
.palantir-note {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-top: 1.2rem;
  padding: 0.9rem 1.1rem;
  background: rgba(0,212,245,0.04);
  border: 1px solid rgba(0,212,245,0.14);
  border-left: 3px solid var(--cyan);
}

.pn-star {
  font-family: var(--f-mono);
  font-size: 0.9rem;
  color: var(--cyan);
  flex-shrink: 0;
  line-height: 1.6;
}

.pn-text {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text2);
  line-height: 1.85;
}

.pn-text strong {
  color: var(--cyan);
  font-weight: 700;
}

/* ── NODE COST BREAKDOWN ────────────────────────────────────── */
.cost-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,212,245,0.12);
}

.cost-section-header { margin-bottom: 1.8rem; }

.cost-section-title {
  font-family: var(--f-head);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.cost-section-title em { font-style: normal; color: var(--accent); }

.cost-section-sub {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text2);
}

.cost-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

/* Component bar rows */
.cost-bdown-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.cbd-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cbd-icon { font-size: 1.1rem; flex-shrink: 0; }

.cbd-name {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text1);
}

.cbd-detail {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 0.1rem;
}

.cbd-bar-wrap {
  height: 26px;
  display: flex;
  align-items: center;
}

.cbd-bar {
  height: 26px;
  background: rgba(0,212,245,0.12);
  border-left: 3px solid var(--accent);
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  min-width: 48px;
  transition: width 1.4s cubic-bezier(0.16,1,0.3,1);
}

.cbd-val {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* Totals column */
.cost-totals-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.cost-total-card,
.cost-vs-card,
.cost-scale-card {
  background: var(--surface);
  border: 1px solid var(--muted);
  padding: 1rem 1.1rem;
}

.cost-total-card { border-color: rgba(0,212,245,0.2); }

.ct-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}
.ct-label { color: var(--text2); }
.ct-val   { color: var(--text1); font-weight: 700; }
.ct-val.accent { color: var(--accent); font-size: 1rem; }
.ct-val.muted  { color: var(--muted);  font-weight: 400; }

.ct-row.total {
  padding-top: 0.6rem;
  margin-top: 0.1rem;
}
.ct-row.total .ct-label { color: #fff; font-weight: 700; }

.ct-divider {
  height: 1px;
  background: rgba(74,100,128,0.3);
  margin: 0.3rem 0;
}

/* vs table */
.cvs-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(74,100,128,0.12);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.cvs-name { color: var(--text2); }
.cvs-val.red { color: var(--red); font-weight: 700; }
.cvs-mult {
  font-size: 0.65rem;
  color: var(--amber);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: right;
}
.cvs-note {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 0.6rem;
  line-height: 1.65;
}

/* scale table */
.csc-row {
  display: grid;
  grid-template-columns: 90px auto 1fr;
  gap: 0.6rem;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(74,100,128,0.12);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.csc-nodes { color: var(--text2); }
.csc-cost  { color: var(--accent); font-weight: 700; text-align: center; }
.csc-area  { color: var(--muted); text-align: right; font-size: 0.65rem; }

.cost-footnote {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 1.4rem;
  line-height: 1.7;
  border-top: 1px solid rgba(74,100,128,0.15);
  padding-top: 0.8rem;
}

@media (max-width: 900px) {
  .cost-breakdown-grid { grid-template-columns: 1fr; }
  .cost-bdown-row      { grid-template-columns: 160px 1fr; }
}
@media (max-width: 500px) {
  .cost-bdown-row { grid-template-columns: 1fr; gap: 0.3rem; }
}
/* ── END NODE COST BREAKDOWN ────────────────────────────────── */

/* ── COVERAGE MAP ───────────────────────────────────────────── */
.cov-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,212,245,0.12);
}

.cov-header { margin-bottom: 1.8rem; }

.cov-title {
  font-family: var(--f-head);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.cov-title em { font-style: normal; color: var(--accent); }

.cov-sub {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text2);
}

.cov-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  align-items: start;
}

.cov-canvas-wrap {
  position: relative;
  border: 1px solid rgba(74,100,128,0.3);
  background: #060d18;
}

#cov-canvas {
  display: block;
  width: 100%;
  height: auto;
}

.cov-canvas-label {
  position: absolute;
  top: 8px; left: 10px;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(74,100,128,0.7);
  pointer-events: none;
}

/* Controls */
.cov-controls {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.csb-num {
  font-family: var(--f-head);
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--accent);
  line-height: 1;
}

.csb-label {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text2);
  margin-top: 0.2rem;
}

/* Slider */
.cov-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--muted);
  outline: none;
  border-radius: 0;
  cursor: pointer;
}
.cov-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent);
  cursor: pointer;
  border-radius: 0;
  box-shadow: 0 0 8px var(--accent);
}
.cov-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--accent);
  cursor: pointer;
  border-radius: 0;
  border: none;
  box-shadow: 0 0 8px var(--accent);
}

/* Preset buttons */
.cov-presets {
  display: flex;
  gap: 0.5rem;
}

.cov-preset-btn {
  flex: 1;
  padding: 0.4rem 0;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text2);
  background: var(--surface);
  border: 1px solid var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.cov-preset-btn:hover,
.cov-preset-btn.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0,212,245,0.06);
}

/* Stats grid */
.cov-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.cov-stat {
  background: var(--surface);
  border: 1px solid var(--muted);
  padding: 0.65rem 0.75rem;
}

.cov-stat-val {
  font-family: var(--f-head);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--text1);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cov-stat-val.accent { color: var(--accent); }
.cov-stat-val.green  { color: var(--green);  }
.cov-stat-val.amber  { color: var(--amber);  }

.cov-stat-lbl {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Legend */
.cov-legend {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cov-leg-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  color: var(--text2);
}

.cov-leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cov-note {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.7;
  border-top: 1px solid rgba(74,100,128,0.15);
  padding-top: 0.8rem;
}

@media (max-width: 860px) {
  .cov-grid { grid-template-columns: 1fr; }
  .cov-controls { flex-direction: row; flex-wrap: wrap; }
  .cov-stat-big, .cov-slider, .cov-presets { width: 100%; }
}
/* ── END COVERAGE MAP ───────────────────────────────────────── */

/* ── CALL TO ACTION FOOTER ──────────────────────────────────── */
.cta-section {
  margin-top: 3rem;
  border-top: 1px solid rgba(0,212,245,0.15);
  background: linear-gradient(180deg, rgba(0,212,245,0.03) 0%, rgba(3,8,16,0) 100%);
}

.cta-inner {
  padding: 3rem 0 2.5rem;
}

.cta-tag {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.cta-title {
  font-family: var(--f-head);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.cta-title em { font-style: normal; color: var(--accent); }

.cta-sub {
  font-family: var(--f-body);
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.8;
  max-width: 580px;
  margin-bottom: 1.6rem;
}

.cta-site-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,212,245,0.35);
  padding-bottom: 0.1rem;
  transition: color 0.2s, border-color 0.2s;
}
.cta-site-link:hover { color: #fff; border-color: #fff; }
.cta-site-icon { font-size: 1rem; }
.cta-site-arr  { font-size: 1rem; transition: transform 0.2s; }
.cta-site-link:hover .cta-site-arr { transform: translateX(4px); }

.cta-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 1px solid rgba(74,100,128,0.2);
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-footer-left,
.cta-footer-right {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.cta-unclass {
  color: var(--text2);
  font-weight: 700;
  letter-spacing: 0.15em;
}

@media (max-width: 500px) {
  .cta-footer-bar { flex-direction: column; text-align: center; }
}
/* ── END CTA FOOTER ─────────────────────────────────────────── */

/* ── TIMER BAR ──────────────────────────────────────────────── */
.timer-bar-wrap {
  background: var(--bg3);
  border: 1px solid var(--muted);
  padding: 0.75rem 1.3rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.timer-label {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--text2);
  text-transform: uppercase;
  flex-shrink: 0;
}

.timer-track {
  flex: 1;
  height: 4px;
  background: var(--muted);
  position: relative;
  overflow: hidden;
}

.timer-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--accent);
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--accent);
}

.timer-elapsed {
  font-family: var(--f-mono);
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  min-width: 58px;
  text-align: right;
}

.timer-cycle {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

/* ── STAGE ──────────────────────────────────────────────────── */
.stage {
  border: 1px solid var(--muted);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}

.stage::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--muted);
  transition: background 0.3s, box-shadow 0.3s;
}

.stage.active {
  border-color: var(--accent);
  background: rgba(245, 166, 35, 0.04);
}
.stage.active::before {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.stage.done {
  border-color: rgba(57, 211, 83, 0.35);
  background: rgba(57, 211, 83, 0.02);
}
.stage.done::before { background: var(--green); }

/* Stage header */
.stage-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.3rem;
  cursor: pointer;
  user-select: none;
  min-height: 62px;
  transition: background 0.2s;
}
.stage-head:hover { background: rgba(255,255,255,0.02); }

.stage-num {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  width: 28px;
  flex-shrink: 0;
}
.stage.active .stage-num { color: var(--accent); }
.stage.done   .stage-num { color: var(--green); }

.stage-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 30px;
  text-align: center;
  filter: grayscale(1) opacity(0.3);
  transition: filter 0.3s;
}
.stage.active .stage-icon,
.stage.done   .stage-icon { filter: none; }

.stage-name {
  font-family: var(--f-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text2);
  transition: color 0.3s;
}
.stage.active .stage-name { color: var(--accent); }
.stage.done   .stage-name { color: var(--green); }

.stage-summary {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text2);
  margin-left: auto;
  text-align: right;
  line-height: 1.8;
  padding-right: 0.6rem;
}
.stage.active .stage-summary { color: var(--amber2); }
.stage.done   .stage-summary { color: var(--green); }

.conf-mini {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: flex-end;
  margin-top: 0.18rem;
}

.conf-track {
  width: 72px;
  height: 2px;
  background: var(--muted);
  position: relative;
}

.conf-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--accent);
  transition: width 0.8s ease;
}
.stage.done .conf-fill { background: var(--green); }

.conf-pct {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.stage-toggle {
  font-size: 0.68rem;
  color: var(--muted);
  transition: transform 0.3s, color 0.2s;
  flex-shrink: 0;
  margin-left: 0.5rem;
}
.stage-toggle.open { transform: rotate(90deg); color: var(--accent); }

/* Stage body */
.stage-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.stage-body.open { max-height: 700px; }

/* Sub-section button */
.sub-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.62rem 1.3rem;
  background: none;
  border: none;
  border-top: 1px solid rgba(74, 100, 128, 0.12);
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: background 0.15s;
}
.sub-btn:hover { background: rgba(255,255,255,0.025); }

.sub-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.sub-btn.active .sub-icon { opacity: 1; }

.sub-label {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text2);
  flex: 1;
  transition: color 0.2s;
}
.sub-btn.active .sub-label { color: var(--accent); }

.sub-badge {
  font-family: var(--f-mono);
  font-size: 0.67rem;
  letter-spacing: 0.07em;
  color: var(--muted);
  padding: 0.14rem 0.44rem;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.sub-btn.active .sub-badge {
  color: var(--accent);
  border-color: var(--amber-d);
}

.sub-arr {
  font-size: 0.62rem;
  color: var(--muted);
  transition: transform 0.25s, color 0.2s;
  flex-shrink: 0;
}
.sub-btn.active .sub-arr { transform: rotate(90deg); color: var(--accent); }

/* Sub content */
.sub-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(3, 8, 16, 0.5);
}
.sub-content.open { max-height: 420px; }

.sub-inner {
  padding: 0.8rem 1.3rem;
  border-top: 1px solid rgba(74, 100, 128, 0.08);
}

/* ── DATA — SENSOR ROWS ─────────────────────────────────────── */
.sensor-row {
  display: grid;
  grid-template-columns: 150px 110px 1fr 60px;
  gap: 0.5rem;
  align-items: center;
  padding: 0.42rem 0;
  border-bottom: 1px solid rgba(74, 100, 128, 0.07);
  font-family: var(--f-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}
.sensor-row:last-child { border-bottom: none; }

.sr-name { color: var(--text2); }
.sr-type { color: var(--cyan); font-size: 0.66rem; }

.sr-bar {
  height: 3px;
  background: var(--muted);
  position: relative;
}

.sr-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  transition: width 1.1s ease;
}

.sr-val { color: var(--amber); text-align: right; }

/* ── DATA — TABLE ───────────────────────────────────────────── */
.dtable { width: 100%; border-collapse: collapse; }

.dtable td {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  padding: 0.38rem 0.52rem;
  border-bottom: 1px solid rgba(74, 100, 128, 0.07);
  vertical-align: top;
}
.dtable td:first-child {
  color: var(--text2);
  width: 175px;
  white-space: nowrap;
}
.dtable td:last-child { color: var(--text); }

.dtable .hi   { color: var(--amber); }
.dtable .ok   { color: var(--green); }
.dtable .warn { color: var(--red); }

/* ── DATA — RAW LOG ─────────────────────────────────────────── */
.raw-log {
  background: rgba(3, 8, 16, 0.95);
  padding: 0.6rem 0.85rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text2);
  line-height: 2.1;
  max-height: 140px;
  overflow-y: auto;
  white-space: pre;
}
.raw-log .lt { color: var(--muted); }
.raw-log .lh { color: var(--amber); }
.raw-log .lo { color: var(--green); }
.raw-log .le { color: var(--red); }

/* ── RIGHT PANEL ────────────────────────────────────────────── */
.panel-card {
  background: var(--surface);
  border: 1px solid var(--muted);
}

.panel-head {
  font-family: var(--f-mono);
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text2);
  padding: 0.65rem 1.1rem;
  border-bottom: 1px solid rgba(74, 100, 128, 0.2);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.panel-head .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}

/* Canvas */
#node-canvas { display: block; width: 100%; }

/* Node grid legend */
.node-legend {
  display: flex;
  gap: 0.9rem;
  padding: 0.55rem 1.1rem;
  border-top: 1px solid rgba(74, 100, 128, 0.15);
  flex-wrap: wrap;
}

.nl-item {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--text2);
}

.nl-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Evidence chain */
.ev-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.52rem 1.1rem;
  border-bottom: 1px solid rgba(74, 100, 128, 0.08);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}
.ev-row:last-child { border-bottom: none; }

.ev-icon  { font-size: 0.95rem; flex-shrink: 0; }
.ev-label { color: var(--text2); flex: 1; }
.ev-val   { color: var(--text); text-align: right; }

.ev-val.hi      { color: var(--amber); }
.ev-val.ok      { color: var(--green); }
.ev-val.pending { color: var(--muted); }

/* Alert feed */
.alert-list {
  padding: 0.3rem 0;
  max-height: 170px;
  overflow-y: auto;
}

.alert-item {
  display: flex;
  gap: 0.65rem;
  padding: 0.42rem 1.1rem;
  border-bottom: 1px solid rgba(74, 100, 128, 0.08);
  animation: slideIn 0.3s ease;
  align-items: flex-start;
}
.alert-item:last-child { border-bottom: none; }

.alert-ts {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--muted);
  flex-shrink: 0;
  margin-top: 0.1rem;
  white-space: nowrap;
}

.alert-msg {
  font-family: var(--f-mono);
  font-size: 0.71rem;
  letter-spacing: 0.04em;
  color: var(--text2);
  line-height: 1.7;
}
.alert-msg .hi   { color: var(--amber); }
.alert-msg .ok   { color: var(--green); }
.alert-msg .warn { color: var(--red); }

/* ── BOTTOM LOG ─────────────────────────────────────────────── */
.bottom-log {
  margin-top: 1.2rem;
  background: var(--bg2);
  border: 1px solid var(--muted);
}

.log-stream {
  padding: 0.5rem 1.1rem;
  height: 90px;
  overflow-y: auto;
  display: flex;
  flex-direction: column-reverse;
}

.ls-line {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text2);
  line-height: 2.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: fadeIn 0.3s ease;
}
.ls-line .ts   { color: var(--muted); }
.ls-line .node { color: var(--cyan); }
.ls-line .evt  { color: var(--amber); }
.ls-line .ok   { color: var(--green); }

/* ── VERSION BADGE ──────────────────────────────────────────── */
.version-badge {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--muted);
  padding: 0.3rem 0.6rem;
  background: var(--bg);
  z-index: 200;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  .right-panel {
    position: static;
  }
  .stat-tagline { display: none; }
}

@media (max-width: 600px) {
  html { font-size: 16px; }
  .scenario-selector { grid-template-columns: repeat(2, 1fr); }
  .scenario-card { flex-wrap: wrap; }
  .sensor-row {
    grid-template-columns: 110px 80px 1fr 48px;
    font-size: 0.68rem;
  }
  .stat-item { padding: 0 0.7rem; }
  .stat-label { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   INFOGRAPHICS — SHARED
   ═══════════════════════════════════════════════════════════════ */
.ig-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(0,212,245,0.12);
}

.ig-header { text-align: center; margin-bottom: 2rem; }

.ig-tag {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.ig-title {
  font-family: var(--f-head);
  font-size: clamp(2rem,4vw,3.4rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  line-height: 0.95;
  margin-bottom: 0.4rem;
}
.ig-title em { font-style: normal; color: var(--accent); }

.ig-sub {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text2);
}

/* ═══════════════════════════════════════════════════════════════
   IG 1 — TIMELINE OF A THREAT
   ═══════════════════════════════════════════════════════════════ */
.tl-scenario-pick {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}

.tl-btn {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--muted);
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s;
}
.tl-btn:hover, .tl-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,212,245,0.06);
}

.tl-wrap {
  position: relative;
  margin-bottom: 1.2rem;
}

.tl-axis {
  display: flex;
  justify-content: space-between;
  padding-left: 110px;
  margin-bottom: 0.4rem;
}
.tl-axis-label {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.tl-track-area {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tl-row {
  display: flex;
  align-items: center;
  gap: 0;
  height: 28px;
}

.tl-row-label {
  width: 110px;
  flex-shrink: 0;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--text2);
  text-align: right;
  padding-right: 0.8rem;
  white-space: nowrap;
}

.tl-lane {
  flex: 1;
  height: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(74,100,128,0.15);
  position: relative;
  overflow: visible;
}

.tl-event {
  position: absolute;
  top: 3px;
  height: calc(100% - 6px);
  border-radius: 2px;
  opacity: 0.9;
  transition: width 0.3s ease, left 0.1s;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-width: 4px;
}

.tl-event-note {
  font-family: var(--f-mono);
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  color: rgba(0,0,0,0.8);
  white-space: nowrap;
  padding: 0 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.6);
  left: 110px;
  pointer-events: none;
  margin-left: calc(var(--left,0) * 1px);
  box-shadow: 0 0 6px #fff;
  transition: left 0.05s linear;
}

.tl-legend {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.tl-leg-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--text2);
}
.tl-leg-dot { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }

.tl-play-btn {
  display: block;
  margin: 0 auto;
  font-family: var(--f-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 0.65rem 2rem;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tl-play-btn:hover { background: var(--accent); color: var(--bg); }

/* ═══════════════════════════════════════════════════════════════
   IG 2 — CASCADE CONFIDENCE FLOW
   ═══════════════════════════════════════════════════════════════ */
.cf-wrap {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2rem;
  align-items: start;
}

.cf-funnel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cf-stage-block {
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid var(--clr, var(--accent));
  background: rgba(3,8,16,0.6);
  margin-bottom: 0;
}

.cf-stage-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.cf-stage-num {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--clr, var(--accent));
  opacity: 0.7;
}

.cf-stage-name {
  font-family: var(--f-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr, var(--accent));
}

.cf-bar-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.cf-bar {
  height: 8px;
  width: 0;
  background: var(--clr, var(--accent));
  transition: width 1.2s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 0 10px var(--clr, var(--accent));
  flex-shrink: 0;
  max-width: 70%;
}

.cf-bar-stat {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--clr, var(--accent));
  white-space: nowrap;
}

.cf-stage-desc {
  font-family: var(--f-body);
  font-size: 0.78rem;
  color: var(--text2);
  line-height: 1.65;
}

.cf-arrow {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
  padding: 0.4rem 0;
}

.cf-aside {
  background: var(--surface);
  border: 1px solid rgba(0,212,245,0.15);
  padding: 1.2rem;
  position: sticky;
  top: 56px;
}

.cf-aside-title {
  font-family: var(--f-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.cf-aside-title span { color: var(--accent); font-size: 0.8rem; }

.cf-aside-stats { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1rem; }

.cf-aside-row {}

.cf-aside-val {
  font-family: var(--f-head);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cf-aside-lbl {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.cf-aside-note {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--green);
  line-height: 1.7;
  border-top: 1px solid rgba(57,211,83,0.15);
  padding-top: 0.8rem;
}

/* ═══════════════════════════════════════════════════════════════
   IG 3 — MESH RESILIENCE
   ═══════════════════════════════════════════════════════════════ */
.mr-wrap {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 2rem;
  align-items: start;
  margin-bottom: 1.2rem;
}

.mr-canvas-wrap {
  position: relative;
  border: 1px solid rgba(74,100,128,0.3);
  background: #060d18;
  cursor: pointer;
}

#mr-canvas { display: block; width: 100%; height: auto; }

.mr-canvas-label {
  position: absolute;
  top: 8px; left: 10px;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(74,100,128,0.6);
  pointer-events: none;
}

.mr-stats-panel {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.mr-stat-big {}
.mr-stat-val {
  font-family: var(--f-head);
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.mr-stat-lbl {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.mr-divider { height: 1px; background: rgba(74,100,128,0.2); }

.mr-coverage-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.mr-cov-label {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text2);
}
.mr-cov-val {
  font-family: var(--f-head);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent);
}

.mr-cov-bar-wrap {
  height: 6px;
  background: rgba(74,100,128,0.2);
  margin-top: 0.3rem;
}
.mr-cov-bar {
  height: 100%;
  background: var(--green);
  transition: width 0.5s ease, background 0.5s;
  box-shadow: 0 0 8px var(--green);
}

.mr-status-msg {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--green);
  transition: color 0.4s;
}

.mr-compare-title {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.mr-compare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(74,100,128,0.1);
}
.mr-compare-name {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: var(--text2);
}
.mr-compare-status {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: color 0.3s;
}

.mr-reset-btn {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding: 0.5rem;
  border: 1px solid var(--muted);
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}
.mr-reset-btn:hover { border-color: var(--accent); color: var(--accent); }

.mr-legend {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.mr-leg-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--text2);
}
.mr-leg-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* Responsive */
@media (max-width: 860px) {
  .cf-wrap { grid-template-columns: 1fr; }
  .cf-aside { position: static; }
  .mr-wrap  { grid-template-columns: 1fr; }
}
/* ══ END INFOGRAPHICS ══════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   BOOT SEQUENCE OVERLAY
   ═══════════════════════════════════════════════════════════════ */
.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #020810;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.boot-overlay.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-inner {
  width: min(420px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.boot-logo {
  font-family: var(--f-head);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
}
.boot-logo span { color: var(--accent); }

.boot-lines {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  line-height: 2;
  min-height: 5.5rem;
  opacity: 0.8;
}

.boot-bar-wrap {
  height: 2px;
  background: rgba(0,212,245,0.12);
  overflow: hidden;
}
.boot-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transition: width 0.15s linear;
}

.boot-status {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text2);
}
/* ══ END BOOT SEQUENCE ══════════════════════════════════════════ */
