:root {
  --bg-deep: #060a0f;
  --bg-obsidian: #04070b;
  --panel-bg: rgba(7, 12, 19, 0.82);
  --drawer-bg: rgba(7, 12, 19, 0.96);
  --hairline: rgba(156, 178, 196, 0.16);
  --hairline-strong: rgba(156, 178, 196, 0.28);
  --ember: #e84b34;
  --ember-hi: #ff7860;
  --crit-unpatched: #c85844;
  --compromised: #ff2b36;
  --orange: #f28c28;
  --yellow: #e6c43e;
  --violet: #b388ff;
  --violet-hi: #cfaeff;
  --blue: #60afff;
  --cyan: #5ce1e6;
  --teal: #24d9b5;
  --accent: rgb(255, 76, 82);
  --accent-soft: rgba(255, 76, 82, 0.12);
  --accent-soft-hi: rgba(255, 76, 82, 0.22);
  --accent-border: rgba(255, 76, 82, 0.58);
  --accent-glow: rgba(255, 76, 82, 0.24);
  --bright: #eef4f8;
  --silver: #93a7b8;
  --muted: rgba(147, 167, 184, 0.56);
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, Monaco, monospace;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--bright);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: radial-gradient(ellipse at 42% 55%, #0d1623 0%, #070b11 60%, #04070b 100%);
}

canvas#dcCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
  cursor: grab;
  touch-action: none;
}
canvas#dcCanvas.dragging { cursor: grabbing; }

.vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 38% at 41% 57%, rgba(4, 7, 11, 0) 0%, rgba(4, 7, 11, 0.18) 54%, rgba(4, 7, 11, 0.84) 82%, rgba(4, 7, 11, 0.98) 100%),
    linear-gradient(to bottom, rgba(4, 7, 11, 0.92) 0%, rgba(4, 7, 11, 0.55) 16%, rgba(4, 7, 11, 0) 30%),
    linear-gradient(to top, rgba(4, 7, 11, 0.96) 0%, rgba(4, 7, 11, 0.54) 12%, rgba(4, 7, 11, 0) 24%);
}

/* HUD Layer */
.hud {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  padding: 22px 38px 22px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  z-index: 6;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--bright);
  margin-right: 8px;
}

.menu-btn {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 26px;
  padding: 5px 4px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  background: rgba(6, 10, 15, 0.52);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.menu-btn:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}
.menu-btn span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
  transition: background 0.4s ease, transform 0.22s ease, opacity 0.2s ease;
}
.menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Left Slide-Over Navigation Menu */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 22;
  background: rgba(3, 6, 10, 0.66);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }
.nav-drawer {
  --accent: rgb(164, 126, 242);
  --accent-soft: rgba(126, 82, 214, 0.16);
  --accent-border: rgba(154, 114, 238, 0.68);
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 23;
  width: min(340px, 88vw);
  background: var(--drawer-bg);
  border-right: 1px solid var(--hairline-strong);
  padding: 24px 24px 20px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 24px 0 72px rgba(0, 0, 0, 0.72);
}
.nav-drawer.open { transform: translateX(0); }
.nav-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--hairline); }
.nav-brand { font-family: var(--font-mono); font-size: 19px; font-weight: 500; letter-spacing: 0.08em; color: var(--bright); }
.nav-sections { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-link {
  width: 100%; text-align: left; text-decoration: none;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 5px;
  background: transparent; border: 1px solid transparent;
  color: var(--bright); font-family: var(--font-sans); font-size: 15.5px; font-weight: 400;
  cursor: pointer; transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.nav-link:hover { background: var(--accent-soft); border-color: var(--accent-border); color: var(--bright); }
.nav-link.subsite { color: #c4d3e0; }
.nav-link.subsite:hover { color: var(--bright); }
.nav-chev {
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  transition: transform 0.22s ease;
}
.nav-group-hover { display: flex; flex-direction: column; }
.nav-submenu {
  display: flex; flex-direction: column; gap: 2px;
  margin-left: 12px; padding-left: 12px;
  border-left: 1px solid var(--accent-border);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.22s ease, margin-top 0.22s ease, margin-bottom 0.22s ease;
}
.nav-group-hover:hover .nav-submenu,
.nav-group-hover:focus-within .nav-submenu,
.nav-group-hover.expanded .nav-submenu {
  max-height: 320px; opacity: 1; margin-top: 4px; margin-bottom: 6px;
}
.nav-group-hover:hover .nav-chev,
.nav-group-hover:focus-within .nav-chev,
.nav-group-hover.expanded .nav-chev {
  transform: rotate(180deg);
}
.nav-sublink {
  width: 100%; text-align: left;
  padding: 8px 10px; border-radius: 4px;
  background: transparent; border: 1px solid transparent;
  color: #cddae6; font-family: var(--font-sans); font-size: 14px; font-weight: 300; line-height: 1.35;
  cursor: pointer; transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.nav-sublink:hover { background: var(--accent-soft); border-color: rgba(164, 126, 242, 0.32); color: var(--bright); }
.nav-divider { height: 1px; background: var(--hairline); margin: 8px 4px; }
.nav-foot {
  padding-top: 14px; border-top: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: 10px; line-height: 1.55; color: var(--muted);
}

.lang-btn, .pill-link {
  background: rgba(6, 10, 15, 0.55);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 3.5px 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-btn:hover, .pill-link:hover { border-color: var(--hairline-strong); color: var(--bright); }
.lang-btn span.on { color: var(--bright); font-weight: 600; }

/* Top-Right Live Beat Pill + Camera Controls */
.top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 15px;
  background: var(--panel-bg);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  transition: border-color 0.35s ease;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
  transition: background 0.35s ease;
}
.status-text { color: var(--bright); font-weight: 500; }
.status-count {
  color: var(--silver);
  padding-left: 11px;
  border-left: 1px solid var(--hairline);
  font-variant-numeric: tabular-nums;
  min-width: 86px;
  text-align: right;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
  padding: 4px 8px;
  background: rgba(6, 10, 15, 0.62);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.nav-btn {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(147, 167, 184, 0.08);
  border: 1px solid var(--hairline);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.nav-btn:hover { border-color: var(--bright); color: var(--bright); }
.nav-btn.on { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent); transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease; }
.zoom-readout { min-width: 36px; text-align: center; color: var(--silver); font-variant-numeric: tabular-nums; }

/* Hormozi-Direct, Zero-Cuteness Hero: Always Centered Horizontally (left: 50%) so Intro Lift is 100% Pure Vertical! */
.story {
  position: absolute;
  z-index: 5;
  top: 56px;
  left: 50%;
  transform: translate(-50%, 0) scale(1);
  width: min(980px, calc(100vw - 48px));
  text-align: center;
  pointer-events: none;
  transition:
    top 3.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 3.3s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: top, transform;
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.story-title {
  font-size: clamp(22px, 2.6vw, 46px);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.028em;
  color: var(--bright);
  margin-bottom: 10px;
  text-shadow: 0 2px 24px rgba(4, 7, 11, 0.98), 0 0 8px rgba(4, 7, 11, 0.95);
  animation: heroFadeIn 1.125s ease-out both;
}
.story-line {
  display: block;
  white-space: nowrap;
}
.story-line-2 {
  transition: opacity 0.26s ease, transform 0.26s ease;
}
.story.swapping .story-line-2,
.story.swapping .story-sub {
  opacity: 0;
  transform: translateY(5px);
}
.story-title em {
  font-style: normal;
  color: var(--accent);
  font-weight: 400;
  transition: color 0.45s ease;
}
.story-sub {
  font-size: clamp(13.5px, 1.18vw, 17px);
  font-weight: 300;
  line-height: 1.44;
  color: #c8d7e4;
  max-width: 680px;
  margin: 0 auto;
  text-shadow: 0 2px 18px rgba(4, 7, 11, 0.98);
  transition: opacity 0.32s ease, transform 0.32s ease;
}
.story-sub.hidden {
  opacity: 0;
  pointer-events: none;
  margin: 0 auto;
  max-height: 0;
  overflow: hidden;
}
.story-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.42s ease 0.12s, transform 0.42s ease 0.12s, max-height 0.35s ease, margin-top 0.35s ease;
  max-height: 56px;
}
.story-cta.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
}
.story.swapping .story-cta {
  opacity: 0;
  transform: translateY(5px);
}
.story-cta .btn-primary {
  padding: 9px 18px;
  box-shadow: 0 8px 28px rgba(126, 82, 214, 0.32);
}
.story-cta .btn-ghost {
  padding: 9px 16px;
  background: rgba(6, 11, 18, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Live Story Chapter Caption (subtle floating telemetry strip bottom-left above dock) */
.beat-bar {
  position: fixed;
  left: 38px;
  bottom: 102px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 13px;
  background: rgba(6, 11, 18, 0.80);
  border: 1px solid var(--hairline);
  border-left: 2.5px solid var(--ember);
  border-radius: 4px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  pointer-events: none;
  max-width: calc(100vw - 440px);
  transition: border-left-color 0.35s ease;
}
.beat-step {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ember-hi);
  white-space: nowrap;
  transition: color 0.35s ease;
}
.beat-text {
  font-size: 10px;
  color: #d4e0eb;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Floating 8-Row Glass Propagation & Vulnerability Feed Card */
.cve-panel {
  position: fixed;
  top: 55%;
  right: 42px;
  transform: translateY(-50%);
  width: 332px;
  z-index: 6;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  background: rgba(6, 11, 18, 0.76);
  border: 1px solid rgba(156, 178, 196, 0.20);
  border-radius: 8px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.74), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  overflow: hidden;
}
.cve-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(9, 15, 24, 0.68);
  flex-shrink: 0;
}
.cve-head-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  color: var(--silver);
}
.cve-head-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ember);
  transition: background 0.3s ease;
}
.cve-head-count {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(232, 75, 52, 0.18);
  color: var(--ember-hi);
  font-variant-numeric: tabular-nums;
  transition: background 0.25s ease, color 0.25s ease;
}
.cve-head-count.assess { background: rgba(179, 136, 255, 0.20); color: var(--violet-hi); }
.cve-head-count.fixing { background: rgba(96, 175, 255, 0.18); color: var(--blue); }
.cve-head-count.clean  { background: rgba(36, 217, 181, 0.18); color: var(--teal); }
.cve-head-count.idle   { background: rgba(147, 167, 184, 0.14); color: var(--silver); }

.cve-list-wrap { position: relative; display: flex; flex-direction: column; }
.cve-list {
  max-height: min(416px, calc(100vh - 300px)); /* 8 visible scrollable rows */
  overflow-y: auto;
  padding: 10px 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(147, 167, 184, 0.24) transparent;
}
.cve-list::-webkit-scrollbar { width: 4px; }
.cve-list::-webkit-scrollbar-thumb { background: rgba(147, 167, 184, 0.24); border-radius: 2px; }
.cve-list-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0; height: 26px;
  pointer-events: none;
  background: linear-gradient(to top, rgba(6, 11, 18, 0.92) 0%, rgba(6, 11, 18, 0) 100%);
}
.cve-empty {
  padding: 14px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}

.cve-row {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 7px 10px;
  border-radius: 4px;
  background: rgba(38, 15, 17, 0.56);
  border: 1px solid rgba(156, 178, 196, 0.10);
  border-left: 2.5px solid var(--ember);
  cursor: pointer;
  animation: rowSlide 0.22s ease-out;
  transition: border-color 0.2s ease, background 0.2s ease, opacity 0.25s ease;
}
.cve-row:hover { background: rgba(24, 34, 48, 0.90); border-color: rgba(238, 244, 248, 0.28); }
.cve-row[data-phase="unpatched"] { border-left-color: var(--crit-unpatched); background: rgba(34, 18, 17, 0.50); }
.cve-row[data-phase="compromised"] { border-left-color: var(--compromised); background: rgba(58, 10, 16, 0.72); border-color: rgba(255, 43, 54, 0.26); }
.cve-row[data-phase="infected"][data-sev="high"] { border-left-color: var(--orange); background: rgba(32, 21, 12, 0.56); }
.cve-row[data-phase="infected"][data-sev="med"]  { border-left-color: var(--yellow); background: rgba(31, 27, 13, 0.52); }
.cve-row[data-phase="assessing"],
.cve-row[data-phase="assessed"]   { border-left-color: var(--violet); background: rgba(29, 18, 46, 0.62); }
.cve-row[data-phase="rebuilding"] { border-left-color: var(--blue); background: rgba(14, 26, 44, 0.62); }
.cve-row[data-phase="rescanning"] { border-left-color: var(--cyan); background: rgba(12, 32, 38, 0.56); }
.cve-row[data-phase="clean"] { border-left-color: var(--teal); background: rgba(10, 24, 24, 0.42); opacity: 0.55; }
.cve-row[data-phase="clean"]:hover { opacity: 0.92; }

.cve-row-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 9.2px; }
.cve-code-grp { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cve-sev {
  font-size: 8px; font-weight: 600; letter-spacing: 0.08em;
  padding: 1px 4.5px; border-radius: 2px;
  background: rgba(200, 88, 68, 0.22); color: #de806c; flex-shrink: 0;
}
.cve-row[data-phase="compromised"] .cve-sev { background: rgba(255, 43, 54, 0.28); color: #ff5c64; }
.cve-row[data-sev="high"] .cve-sev { background: rgba(242, 140, 40, 0.22); color: #ffa24c; }
.cve-row[data-sev="med"] .cve-sev  { background: rgba(230, 196, 62, 0.22); color: #f0d35e; }
.cve-row[data-phase="assessing"] .cve-sev,
.cve-row[data-phase="assessed"] .cve-sev   { background: rgba(179, 136, 255, 0.24); color: var(--violet-hi); }
.cve-row[data-phase="rebuilding"] .cve-sev { background: rgba(96, 175, 255, 0.22); color: var(--blue); }
.cve-row[data-phase="rescanning"] .cve-sev { background: rgba(92, 225, 230, 0.22); color: var(--cyan); }
.cve-row[data-phase="clean"] .cve-sev      { background: rgba(36, 217, 181, 0.18); color: var(--teal); }

.cve-code { font-weight: 600; letter-spacing: 0.04em; color: #de806c; }
.cve-row[data-phase="compromised"] .cve-code { color: #ff5c64; }
.cve-row[data-phase="infected"][data-sev="high"] .cve-code { color: #ffa24c; }
.cve-row[data-phase="infected"][data-sev="med"] .cve-code  { color: #f0d35e; }
.cve-row[data-phase="assessing"] .cve-code,
.cve-row[data-phase="assessed"] .cve-code   { color: var(--violet-hi); }
.cve-row[data-phase="rebuilding"] .cve-code { color: var(--blue); }
.cve-row[data-phase="rescanning"] .cve-code { color: var(--cyan); }
.cve-row[data-phase="clean"] .cve-code { color: var(--teal); text-decoration: line-through; }

.cve-host { color: var(--silver); font-size: 9px; letter-spacing: 0.04em; }
.cve-desc {
  font-family: var(--font-mono); font-size: 9.2px; line-height: 1.35; color: #c8d6e3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cve-row[data-phase="clean"] .cve-desc { color: var(--muted); }

.cve-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 15px; border-top: 1px solid var(--hairline);
  background: rgba(9, 15, 24, 0.72);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.09em; color: var(--muted); flex-shrink: 0;
}
.cve-foot strong { color: var(--silver); font-weight: 600; font-variant-numeric: tabular-nums; }

@keyframes rowSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Rich Hover Inspector */
.inspector {
  position: fixed; z-index: 14; width: 296px; padding: 13px 15px;
  background: rgba(6, 11, 18, 0.95); border: 1px solid var(--hairline-strong);
  border-left: 2.5px solid var(--silver); border-radius: 4px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  pointer-events: none; opacity: 0; transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
}
.inspector.show { opacity: 1; transform: translateY(0); }
.insp-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.insp-host { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--bright); }
.insp-status {
  font-family: var(--font-mono); font-size: 9px; font-weight: 600; letter-spacing: 0.08em;
  padding: 2px 6px; border-radius: 2px; background: rgba(147,167,184,0.14); color: var(--silver);
}
.insp-role { font-size: 12px; font-weight: 300; color: var(--silver); line-height: 1.4; margin-bottom: 9px; }
.insp-meta { padding-top: 8px; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 3px; }
.insp-lbl { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.12em; color: var(--muted); }
.insp-val { font-family: var(--font-mono); font-size: 10.5px; line-height: 1.4; color: var(--bright); }

/* Bottom Dock */
.dock {
  pointer-events: auto;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 18px; background: var(--panel-bg);
  border: 1px solid var(--hairline); border-radius: 4px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.play-btn {
  -webkit-appearance: none; appearance: none;
  background: var(--accent-soft); border: 1px solid var(--accent-border);
  color: var(--accent); font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; padding: 9px 13px; border-radius: 3px; cursor: pointer;
  white-space: nowrap; min-width: 102px;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}
.play-btn:hover { background: var(--accent-soft-hi); }

.speed-ctrl {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 10px;
  background: rgba(147, 167, 184, 0.06);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em;
  color: var(--muted); flex-shrink: 0;
}
.speed-ctrl input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 58px; height: 14px; background: transparent; cursor: ew-resize;
}
.speed-ctrl input[type="range"]::-webkit-slider-runnable-track {
  height: 2px; background: rgba(147, 167, 184, 0.30); border-radius: 2px;
}
.speed-ctrl input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 10px; height: 10px; margin-top: -4px; border-radius: 50%;
  background: var(--accent); border: 1.5px solid var(--bg-deep); cursor: ew-resize;
}
.speed-val { color: var(--bright); font-weight: 600; min-width: 28px; text-align: right; font-variant-numeric: tabular-nums; }

.scrubber-wrap { flex: 1; display: flex; flex-direction: column; gap: 6px; position: relative; min-width: 0; }
.track-bg { position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: rgba(147, 167, 184, 0.22); pointer-events: none; }
.track-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--ember) 0%, var(--compromised) 40%, var(--violet) 54%, var(--teal) 100%);
}
input[type="range"].scrubber {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 20px; background: transparent; cursor: ew-resize; position: relative; z-index: 2;
}
input[type="range"].scrubber:focus { outline: none; }
input[type="range"].scrubber::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg-deep); border: 2.5px solid var(--accent); cursor: ew-resize;
}
input[type="range"].scrubber::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg-deep); border: 2.5px solid var(--accent); cursor: ew-resize;
}

.stops { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; color: var(--muted); }
.stop-btn { background: none; border: none; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; padding: 0; transition: color 0.3s ease; }
.stop-btn:hover { color: var(--bright); }
.stop-btn.active { color: var(--accent); }

.actions { display: flex; align-items: center; gap: 10px; }
.btn-ghost {
  -webkit-appearance: none; appearance: none;
  background: transparent; border: 1px solid rgba(138, 94, 226, 0.76); color: var(--bright);
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 500;
  padding: 10px 16px; border-radius: 3px; cursor: pointer; white-space: nowrap; transition: all 0.2s ease;
}
.btn-ghost:hover { border-color: rgb(156, 114, 240); background: rgba(126, 82, 214, 0.16); }
.btn-primary {
  -webkit-appearance: none; appearance: none;
  background: rgb(126, 82, 214); border: 1px solid rgb(138, 94, 226); color: #f8f6ff;
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 600;
  padding: 10px 18px; border-radius: 3px; cursor: pointer; white-space: nowrap;
  transition: filter 0.2s ease;
}
.btn-primary:hover { filter: brightness(1.08); }

/* Centered Landscape Interactive Scenario & AI Intake Modal */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 20; background: rgba(3, 6, 10, 0.74);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity 0.28s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  --accent: rgb(164, 126, 242);
  --accent-soft: rgba(126, 82, 214, 0.16);
  --accent-border: rgba(154, 114, 238, 0.68);
  position: fixed; top: 50%; left: 50%; z-index: 21;
  width: min(1040px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  background: var(--drawer-bg);
  border: 1px solid var(--hairline-strong);
  border-top: 2px solid var(--accent);
  border-radius: 10px;
  padding: 28px 32px 30px;
  display: flex; flex-direction: column; gap: 22px;
  overflow-y: auto;
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.84);
  opacity: 0; pointer-events: none;
  transform: translate(-50%, -48%) scale(0.97);
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.drawer.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.drawer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.drawer-head-left { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.modal-back {
  background: none;
  border: none;
  color: var(--silver);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em;
  padding: 0; cursor: pointer; flex-shrink: 0;
  transition: color 0.18s ease;
}
.modal-back:hover { color: var(--bright); }
.drawer-head-copy { display: flex; flex-direction: column; gap: 6px; }
.drawer-title { font-size: clamp(24px, 2.5vw, 31px); font-weight: 300; line-height: 1.2; letter-spacing: -0.022em; color: var(--bright); }
.drawer-sub { font-size: 15px; font-weight: 300; line-height: 1.48; color: #b8c8d8; max-width: 640px; }
.drawer-close {
  background: none; border: none; color: var(--muted);
  font-family: var(--font-sans); font-size: 20px; line-height: 1;
  width: 34px; height: 34px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: color 0.18s ease, background 0.18s ease;
}
.drawer-close:hover { color: var(--bright); background: rgba(255, 255, 255, 0.07); }

.modal-view { display: flex; flex-direction: column; gap: 18px; animation: modalViewIn 0.26s ease-out; }
.modal-view.hidden, .hidden { display: none !important; }
@keyframes modalViewIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* View 1: 4 Interactive Flip Scenario Cards */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.scenario-card {
  position: relative;
  height: 262px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  perspective: 1100px;
  text-align: left;
}
.scenario-card-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.56s cubic-bezier(0.22, 1, 0.36, 1);
}
.scenario-card:hover .scenario-card-inner,
.scenario-card:focus-visible .scenario-card-inner {
  transform: rotateY(180deg);
}
.scenario-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 8px;
  padding: 24px 20px 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--hairline-strong);
}
.scenario-front {
  background: linear-gradient(180deg, rgba(16, 24, 38, 0.90) 0%, rgba(9, 14, 23, 0.96) 100%);
}
.scenario-back {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, rgba(126, 82, 214, 0.22) 0%, rgba(11, 17, 28, 0.98) 70%);
  border-color: var(--accent-border);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.52);
}
.sc-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border: 1px solid rgba(164, 126, 242, 0.34);
  color: var(--accent);
}
.sc-icon-wrap svg { width: 22px; height: 22px; }
.sc-front-body { display: flex; flex-direction: column; gap: 7px; }
.sc-name { font-size: 19px; font-weight: 500; color: var(--bright); letter-spacing: -0.015em; line-height: 1.24; }
.sc-short { font-size: 14px; font-weight: 300; color: #b9cada; line-height: 1.42; }
.sc-cue {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.11em;
  color: var(--muted); text-transform: uppercase;
}
.sc-back-tag { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.13em; color: var(--accent); }
.sc-back-title { font-size: 19px; font-weight: 500; color: var(--bright); line-height: 1.25; }
.sc-back-desc { font-size: 14px; font-weight: 300; color: #d4e1ec; line-height: 1.48; }
.sc-back-cta { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); }

.scenario-skip { text-align: center; padding-top: 2px; }
.skip-link {
  background: none; border: none; color: #c4d3e0;
  font-family: var(--font-sans); font-size: 14.5px; cursor: pointer;
  padding: 6px 12px; border-radius: 4px; transition: color 0.2s ease, background 0.2s ease;
}
.skip-link:hover { color: var(--accent); background: rgba(126, 82, 214, 0.10); }

/* View 2: Expanded Scenario Deep-Dive + LangGraph & Data Privacy Card */
.detail-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
}
.detail-offer, .detail-trust {
  border-radius: 8px;
  padding: 24px 24px 22px;
  display: flex; flex-direction: column; gap: 16px;
}
.detail-offer {
  background: rgba(11, 18, 28, 0.84);
  border: 1px solid var(--hairline-strong);
}
.detail-trust {
  background: linear-gradient(180deg, rgba(126, 82, 214, 0.15) 0%, rgba(10, 16, 26, 0.92) 60%);
  border: 1px solid var(--accent-border);
}
.det-kicker { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.13em; color: var(--accent); }
.det-lead { font-size: 16px; font-weight: 300; line-height: 1.5; color: #d5e2ec; }
.det-list { display: flex; flex-direction: column; gap: 11px; }
.det-item { display: flex; gap: 10px; font-size: 15px; line-height: 1.48; color: var(--bright); }
.det-item .m { color: var(--accent); font-family: var(--font-mono); flex-shrink: 0; font-weight: 600; }
.method-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hairline);
}
.method-step {
  background: rgba(6, 11, 18, 0.72); border: 1px solid var(--hairline); border-radius: 5px;
  padding: 10px 11px; display: flex; flex-direction: column; gap: 4px;
}
.method-num { font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--accent); letter-spacing: 0.10em; }
.method-lbl { font-size: 13px; font-weight: 500; color: var(--bright); line-height: 1.3; }

.trust-title { font-size: 19px; font-weight: 500; color: var(--bright); line-height: 1.25; }
.trust-pillars { display: flex; flex-direction: column; gap: 13px; }
.trust-pillar {
  background: rgba(6, 10, 17, 0.66); border: 1px solid rgba(164, 126, 242, 0.22);
  border-radius: 6px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px;
}
.trust-pillar-title { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); }
.trust-pillar-desc { font-size: 13.5px; font-weight: 300; line-height: 1.48; color: #d2dfe9; }

.detail-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-actions .btn-primary { padding: 12px 22px; font-size: 14.5px; }
.detail-actions .btn-ghost { padding: 12px 18px; font-size: 14px; }

/* View 3: Clean 2x2 Contact Quadrant */
.contact-quad {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 176px;
  padding: 24px 24px 22px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(14, 21, 34, 0.90) 0%, rgba(9, 14, 23, 0.96) 100%);
  border: 1px solid var(--hairline-strong);
  color: inherit;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover,
.contact-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent-border);
  background: linear-gradient(180deg, rgba(126, 82, 214, 0.16) 0%, rgba(10, 16, 26, 0.98) 72%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.44);
  outline: none;
}
.contact-card.is-featured {
  border-color: rgba(164, 126, 242, 0.56);
  background: linear-gradient(180deg, rgba(126, 82, 214, 0.14) 0%, rgba(9, 14, 23, 0.97) 68%);
}
.contact-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.contact-arrow {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}
.contact-card:hover .contact-arrow {
  color: var(--accent);
  transform: translateX(3px);
}
.contact-card-copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.contact-card-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--bright);
  letter-spacing: -0.015em;
  line-height: 1.24;
}
.contact-card-desc {
  font-size: 14.5px;
  font-weight: 300;
  color: #bfd0df;
  line-height: 1.48;
}

/* View 4: Minimal Single-Column Quick Briefing (Zero Frame-in-Frame) */
.briefing-shell {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-feed {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 2px 2px 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(164, 126, 242, 0.30) transparent;
}
.chat-msg {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.52;
  animation: modalViewIn 0.2s ease-out;
}
.chat-msg.agent {
  align-self: flex-start;
  background: rgba(126, 82, 214, 0.12);
  color: var(--bright);
}
.chat-msg.agent.urgent {
  background: rgba(255, 43, 54, 0.16);
}
.chat-msg.user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.06);
  color: var(--bright);
}
.chat-sender {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.11em; color: var(--accent); margin-bottom: 4px;
}
.chat-msg.agent.urgent .chat-sender { color: #ff6b72; }
.chat-msg.user .chat-sender { color: var(--muted); }

/* Unified single composer surface */
.chat-composer {
  display: flex;
  flex-direction: column;
  background: rgba(5, 9, 15, 0.90);
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  transition: border-color 0.2s ease;
}
.chat-composer:focus-within {
  border-color: var(--accent-border);
}
#chatInput {
  width: 100%;
  resize: none;
  background: transparent;
  border: none;
  padding: 16px 18px 10px;
  color: var(--bright);
  font-family: var(--font-sans); font-size: 15.5px; line-height: 1.5;
  outline: none;
}
.composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px 12px 14px;
}
.mic-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px;
  background: rgba(126, 82, 214, 0.12);
  border: none;
  border-radius: 6px;
  color: var(--bright);
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em;
  cursor: pointer; flex-shrink: 0;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.mic-btn:hover { background: rgba(126, 82, 214, 0.24); }
.mic-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.mic-btn.listening {
  background: rgba(255, 43, 54, 0.22);
  box-shadow: 0 0 0 2px rgba(255, 76, 82, 0.45);
}
.mic-btn.listening .mic-dot {
  background: #ff4d57;
  animation: micPulse 1s ease-in-out infinite;
}
@keyframes micPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.55; }
}
.chat-send { padding: 9px 22px; font-size: 14px; border-radius: 6px; margin-left: auto; }

.briefing-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brief-prio {
  padding: 4px 10px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.10em;
  background: rgba(255, 43, 54, 0.20); color: #ff6b72; border: 1px solid rgba(255, 76, 82, 0.68);
}
.brief-handoff { padding: 10px 18px; font-size: 14px; border-radius: 6px; margin-left: auto; }

/* View 5: 1-Field Pre-Filled Connect Form (Direct on Modal Surface, No Outer Frame) */
.classic-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.classic-scenarios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sc-chip {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(14, 21, 34, 0.86);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 7px 13px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--silver);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.sc-chip:hover {
  border-color: var(--accent-border);
  color: var(--bright);
}
.sc-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--bright);
}
.sc-chip.is-urgent.active {
  background: rgba(255, 43, 54, 0.18);
  border-color: rgba(255, 76, 82, 0.78);
  color: #ff8a90;
}
.classic-contact-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.classic-contact-field {
  flex: 1;
}
.channel-toggle {
  display: inline-flex;
  background: rgba(5, 9, 15, 0.94);
  border: 1px solid var(--hairline-strong);
  border-radius: 6px;
  padding: 3px;
  gap: 3px;
  flex-shrink: 0;
  height: 45px;
}
.ch-btn {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}
.ch-btn:hover { color: var(--bright); }
.ch-btn.active {
  background: rgba(126, 82, 214, 0.24);
  color: var(--bright);
}
.classic-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.classic-field > span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--silver);
}
.classic-field input,
.classic-field textarea {
  width: 100%;
  background: rgba(5, 9, 15, 0.94);
  border: 1px solid var(--hairline-strong);
  border-radius: 6px;
  padding: 11px 13px;
  color: var(--bright);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.classic-field input:focus,
.classic-field textarea:focus {
  border-color: var(--accent);
}
.classic-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 2px;
}
.classic-actions .btn-primary {
  padding: 12px 24px;
  font-size: 14.5px;
  border-radius: 6px;
}
.classic-actions .btn-primary.is-urgent {
  background: #c82834;
  border-color: #e2434f;
}
.classic-direct {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--silver);
  text-decoration: none;
  transition: color 0.2s ease;
}
.classic-direct:hover {
  color: var(--accent);
}

/* Instant Live Response + Ticking Timer Card */
.live-response {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 26px 26px 24px;
  background: linear-gradient(180deg, rgba(126, 82, 214, 0.14) 0%, rgba(9, 15, 24, 0.94) 64%);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: modalViewIn 0.24s ease-out;
}
.live-response.urgent {
  background: linear-gradient(180deg, rgba(255, 43, 54, 0.16) 0%, rgba(12, 14, 22, 0.96) 64%);
  border-color: rgba(255, 76, 82, 0.70);
}
.live-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.live-response.urgent .live-badge {
  color: #ff737a;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: micPulse 1.4s ease-in-out infinite;
}
.live-response.urgent .live-dot {
  background: #ff4d57;
}
.live-timer {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--bright);
  padding: 5px 11px;
  border-radius: 4px;
  background: rgba(5, 9, 15, 0.80);
  border: 1px solid var(--hairline-strong);
}
.live-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--bright);
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.live-copy {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.54;
  color: #d3e0ec;
}
.live-agent-note {
  padding: 15px 17px;
  border-radius: 6px;
  background: rgba(5, 9, 15, 0.74);
  border: 1px solid var(--hairline-strong);
  font-size: 14.5px;
  line-height: 1.56;
  color: var(--bright);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.live-agent-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.live-response.urgent .live-agent-label {
  color: #ff737a;
}
.live-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.live-actions .btn-primary,
.live-actions .btn-ghost {
  padding: 11px 18px;
  font-size: 14px;
  border-radius: 6px;
}

.turnstile-slot {
  min-height: 0;
  display: flex;
  align-items: center;
}
.confirm-box { display: none; padding: 11px 14px; border-radius: 6px; background: var(--accent-soft); border: 1px solid var(--accent-border); font-family: var(--font-mono); font-size: 12px; line-height: 1.5; color: var(--accent); }
.confirm-box.show { display: block; }
.confirm-box.error { background: rgba(255, 43, 54, 0.15); border-color: rgba(255, 76, 82, 0.62); color: #ff8a90; }

@media (max-width: 1280px) {
  .cve-panel { width: 290px; right: 24px; }
  .story { left: 50%; width: min(900px, calc(100vw - 48px)); top: 68px; }
  .story-title { font-size: clamp(20px, 2.5vw, 34px); }
}
@media (max-width: 1080px) {
  .hud { padding: 18px 22px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .story { left: 50%; width: min(880px, calc(100vw - 40px)); top: 72px; }
  .story-title { font-size: clamp(20px, 3.1vw, 34px); }
  .story-sub { font-size: 13.5px; }
  .beat-bar { display: none; }
  .cve-panel { top: auto; transform: none; left: 22px; right: 22px; bottom: 96px; width: auto; }
  .cve-list { max-height: 112px; }
  .scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hud { padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .nav-controls, .stops { display: none; }
  .status-pill { padding: 7px 11px; gap: 9px; font-size: 9.5px; }
  .status-count { min-width: 68px; padding-left: 9px; }
  .story { top: 66px; width: calc(100vw - 28px); }
  .cve-panel { bottom: 134px; left: 14px; right: 14px; }
  .cve-list { max-height: 88px; }
  .dock { flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; }
  .dock .play-btn { min-width: 78px; padding: 7px 10px; }
  .dock .scrubber-wrap { flex: 1 1 160px; }
  .dock .actions { flex: 1 0 100%; }
  .dock .actions button { flex: 1; text-align: center; padding: 9px 10px; }
  .drawer { width: calc(100vw - 24px); max-height: calc(100vh - 24px); padding: 18px 16px 16px; }
  .scenario-grid, .contact-quad { grid-template-columns: 1fr; gap: 12px; }
  .classic-contact-row { flex-direction: column; align-items: stretch; }
  .channel-toggle { width: 100%; }
  .ch-btn { flex: 1; }
  .contact-card { min-height: 132px; padding: 18px 18px 16px; }
  .scenario-card { height: 176px; }
  .method-strip { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .speed-ctrl { display: none; }
  .story { top: 62px; }
  .story-line { display: inline; white-space: normal; }
  .story-title { font-size: clamp(20px, 5.8vw, 27px); line-height: 1.18; text-wrap: balance; }
  .story-sub { font-size: 12.5px; line-height: 1.4; }
  .story-cta { gap: 8px; margin-top: 12px; }
  .story-cta .btn-primary, .story-cta .btn-ghost { padding: 8px 12px; font-size: 10px; }
  .cve-panel { bottom: 118px; }
  .cve-list { max-height: 72px; padding: 6px 8px 10px; }
  .cve-head { padding: 8px 11px; }
  .cve-foot { padding: 6px 11px; }
  .brand { font-size: 18px; gap: 9px; }
  .menu-btn { width: 25px; height: 23px; padding: 4px 3px; }
  .status-pill { padding: 6px 9px; font-size: 8.5px; letter-spacing: 0.07em; }
  .status-count { min-width: 56px; padding-left: 7px; }
}

/* Cinematic Opening Stage Setup: Headline fades in (1.125s) -> holds -> rises slowly (3.3s) -> datacenter fades in -> HUD fades in */
canvas#dcCanvas {
  opacity: 1;
  transition: opacity 1.2s ease-out 2.7s;
}
.top-right, .beat-bar, .cve-panel, .dock {
  opacity: 1;
  transition: opacity 0.9s ease-out 3.1s;
}
.stage.intro-stage canvas#dcCanvas {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.stage.intro-stage .top-right,
.stage.intro-stage .beat-bar,
.stage.intro-stage .cve-panel,
.stage.intro-stage .dock {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.stage.intro-stage .story {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.14);
}
@media (max-width: 860px) {
  .stage.intro-stage .story {
    transform: translate(-50%, -50%) scale(1.04);
  }
}
  

/* Bot honeypot (off-screen, never visible to humans) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}
