/* ==========================================================================
   MEMORYFORGE AI LABS — SYNTHESIS SYSTEM ARCHITECTURE
   High-Tech Tactical HUD & 31st Century Optical Instrument
   Mona Sans Variable Typography · Cut-Corner Chamfer Polygon Grammar
   Zero Plain Text Blocks · High-Density Telemetry & Tactile Visuals
   ========================================================================== */

@font-face {
  font-family: "Mona Sans";
  src: url("assets/fonts/MonaSans-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Spatial Environment */
  --room: #03060a;
  --room-elevated: #070d14;
  --room-card: rgba(8, 15, 24, 0.75);
  --room-border: rgba(var(--acc-rgb), 0.16);

  /* Optical Colors */
  --holo: #e0f2fe;
  --holo-dim: rgba(224, 242, 254, 0.45);
  --holo-faint: rgba(224, 242, 254, 0.12);
  --acc-rgb: 34, 211, 238;
  --cyan: #22d3ee;
  --cyan-bright: #67e8f9;
  --cyan-glow: rgba(var(--acc-rgb), 0.25);
  --amber: #fbbf24;
  --amber-glow: rgba(251, 191, 36, 0.25);
  --emerald: #34d399;
  --emerald-glow: rgba(52, 211, 153, 0.25);
  --crimson: #ef4444;
  --crimson-glow: rgba(239, 68, 68, 0.3);

  /* Typography */
  --font-sans: "Mona Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Consolas", "Monaco", monospace;

  /* Layout */
  --gutter: clamp(18px, 4vw, 56px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
}

/* ==========================================================================
   OPTICAL THEME: CLEANROOM SCIENCE LAB (DAYLIGHT BLUEPRINT)
   ========================================================================== */
[data-theme="light"] {
  /* Cleanroom Spatial Environment */
  --room: #f4f6fa;
  --room-elevated: #ffffff;
  --room-card: rgba(255, 255, 255, 0.65);
  --room-border: rgba(var(--acc-rgb), 0.22);

  /* Deep Contrast Technical Blueprint Colors */
  --holo: #0f172a;
  --holo-dim: #475569;
  --holo-faint: #94a3b8;
  --acc-rgb: 2, 132, 199;
  --cyan: #0284c7;
  --cyan-bright: #0369a1;
  --cyan-glow: rgba(var(--acc-rgb), 0.18);
  --amber: #b45309;
  --amber-glow: rgba(180, 83, 9, 0.18);
  --emerald: #059669;
  --emerald-glow: rgba(5, 150, 105, 0.18);
  --crimson: #dc2626;
  --crimson-glow: rgba(220, 38, 38, 0.2);
}

[data-theme="light"] body {
  background-color: #f4f6fa;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(14, 165, 233, 0.08), transparent 70%),
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--room);
  color: var(--holo);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-color: var(--room);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(var(--acc-rgb), 0.08), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
}

/* Background Atmosphere Layers */
.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.atmosphere canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
.font-mono { font-family: var(--font-mono); }

/* ==========================================================================
   COMMAND BAR (TOP NAVIGATION)
   ========================================================================== */
.command-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px var(--gutter);
  background: rgba(3, 6, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--room-border);
}

.brand-unit {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 8px var(--cyan-glow));
}
.brand-text {
  font-size: 15px;
  font-weight: 600;
  font-stretch: 115%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand-text span {
  color: var(--cyan);
  font-weight: 300;
}

/* Center Perspective Switcher (CleanLoop) */
.perspective-dock {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(8, 15, 24, 0.9);
  padding: 4px;
  border-radius: 6px;
  border: 1px solid rgba(var(--acc-rgb), 0.22);
}
.perspective-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--holo-dim);
  border-radius: 4px;
  transition: all 0.2s var(--ease-out);
}
.perspective-btn:hover {
  color: var(--holo);
  background: rgba(var(--acc-rgb), 0.08);
}
.perspective-btn.is-active {
  color: var(--room);
  background: var(--cyan);
  font-weight: 600;
  box-shadow: 0 0 12px var(--cyan-glow);
}

/* Header Status / Action Unit */
.command-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.integrity-pulse {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--emerald);
  padding: 4px 10px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 4px;
  background: rgba(52, 211, 153, 0.05);
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.contact-trigger {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border: 1px solid var(--room-border);
  border-radius: 4px;
  background: rgba(var(--acc-rgb), 0.06);
  transition: all 0.2s;
}
.contact-trigger:hover {
  background: var(--cyan);
  color: var(--room);
  border-color: var(--cyan);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border: 1px solid var(--room-border);
  border-radius: 4px;
  background: rgba(var(--acc-rgb), 0.06);
  color: var(--cyan);
  cursor: pointer;
  transition: all 0.2s;
}
.theme-toggle:hover {
  background: var(--cyan);
  color: var(--room);
  border-color: var(--cyan);
}
.theme-icon {
  font-size: 13px;
  line-height: 1;
}

/* ==========================================================================
   LIGHT MODE COMPONENT REFINEMENTS
   ========================================================================== */
[data-theme="light"] .command-bar {
  background: rgba(244, 246, 250, 0.90);
  border-bottom: 1px solid rgba(var(--acc-rgb), 0.18);
}

[data-theme="light"] .perspective-dock {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(var(--acc-rgb), 0.22);
}
[data-theme="light"] .perspective-btn {
  color: #475569;
}
[data-theme="light"] .perspective-btn:hover {
  color: var(--cyan);
  background: rgba(var(--acc-rgb), 0.08);
}
[data-theme="light"] .perspective-btn.is-active {
  color: #ffffff;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(var(--acc-rgb), 0.35);
}

[data-theme="light"] .dock-chip {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(var(--acc-rgb), 0.18);
  color: #0f172a;
}
[data-theme="light"] .dock-chip:hover {
  background: rgba(var(--acc-rgb), 0.08);
  border-color: var(--cyan);
}

[data-theme="light"] .system-eyebrow {
  background: rgba(var(--acc-rgb), 0.08);
  color: var(--cyan);
  border-left-color: var(--cyan);
}

[data-theme="light"] .holo-panel {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(var(--acc-rgb), 0.25);
  box-shadow: 
    0 24px 60px -15px rgba(15, 23, 42, 0.08),
    0 0 35px -10px rgba(var(--acc-rgb), 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 32px rgba(var(--acc-rgb), 0.03);
}

[data-theme="light"] .holo-panel::before {
  background: 
    radial-gradient(ellipse 75% 40% at 50% 100%, rgba(var(--acc-rgb), 0.18), rgba(56, 189, 248, 0.05) 50%, transparent 80%),
    radial-gradient(ellipse 90% 55% at 50% 50%, rgba(var(--acc-rgb), 0.04), transparent 75%);
}

[data-theme="light"] .holo-panel::after {
  background: linear-gradient(90deg, 
    transparent, 
    rgba(var(--acc-rgb), 0.4) 15%, 
    rgba(var(--acc-rgb), 0.95) 50%, 
    rgba(var(--acc-rgb), 0.4) 85%, 
    transparent
  );
  box-shadow: 0 0 10px rgba(var(--acc-rgb), 0.4);
}

[data-theme="light"] .telemetry-spec-grid {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(var(--acc-rgb), 0.18);
}
[data-theme="light"] .spec-cell {
  background: rgba(241, 245, 249, 0.7);
  border-left: 2px solid var(--cyan);
}

[data-theme="light"] .metric-meter {
  background: rgba(241, 245, 249, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .metric-bar-track {
  background: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .parallax-hud,
[data-theme="light"] .chain__hud,
[data-theme="light"] .safeagent-hud {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(var(--acc-rgb), 0.22);
}

[data-theme="light"] .pipeline-node {
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid rgba(var(--acc-rgb), 0.2);
}
[data-theme="light"] .node-telemetry-panel {
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .chain-block {
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(var(--acc-rgb), 0.22);
}
[data-theme="light"] .chain-block__body {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.06);
}
[data-theme="light"] .chain__telemetry-banner {
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .gate-readout {
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .gate-val {
  background: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .scenario-btn {
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #475569;
}
[data-theme="light"] .scenario-btn.is-active {
  background: rgba(var(--acc-rgb), 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
}

[data-theme="light"] .probe-row {
  background: rgba(255, 255, 255, 0.65);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
[data-theme="light"] .ladder-rung {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(var(--acc-rgb), 0.2);
}

[data-theme="light"] .contact-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(var(--acc-rgb), 0.2);
}

[data-theme="light"] .hud-btn--primary {
  background: var(--cyan);
  color: #ffffff;
}
[data-theme="light"] .hud-btn--secondary {
  background: rgba(var(--acc-rgb), 0.08);
  border-color: rgba(var(--acc-rgb), 0.3);
  color: var(--cyan);
}

[data-theme="light"] .f-edge {
  stroke: rgba(var(--acc-rgb), 0.2);
}
[data-theme="light"] .f-hot {
  stroke: var(--cyan);
  filter: drop-shadow(0 0 4px rgba(var(--acc-rgb), 0.3));
}
[data-theme="light"] .f-tick {
  stroke: rgba(var(--acc-rgb), 0.35);
}

@media (max-width: 900px) {
  .perspective-dock { display: none; }
}

/* ==========================================================================
   HERO ROOM — ASTROMETRIC INSTRUMENT DECK
   ========================================================================== */
.hero-deck {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--gutter) 60px;
  z-index: 1;
}

.astrometric-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.system-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 24px;
  padding: 4px 10px;
  border-left: 2px solid var(--cyan);
  background: rgba(var(--acc-rgb), 0.05);
}

.hero-title {
  font-weight: 280;
  font-stretch: 125%;
  font-size: clamp(38px, 6.8vw, 98px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero-title span {
  display: block;
  color: var(--cyan);
  font-weight: 320;
  text-shadow: 0 0 32px var(--cyan-glow);
}

/* Hero HUD Telemetry Strip (Replacing plain text paragraphs) */
.hero-telemetry-hud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}
.hud-telemetry-item {
  background: var(--room-card);
  border: 1px solid var(--room-border);
  padding: 12px 16px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}
.hud-k {
  display: block;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--holo-dim);
  margin-bottom: 4px;
}
.hud-v {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--holo);
}

/* Quick Jump Dock */
.quick-dock {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.dock-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  background: rgba(8, 15, 24, 0.7);
  border: 1px solid var(--room-border);
  border-radius: 4px;
  transition: all 0.2s var(--ease-out);
}
.dock-chip:hover {
  border-color: var(--cyan);
  background: rgba(var(--acc-rgb), 0.1);
  transform: translateY(-2px);
}
.dock-chip span { color: var(--cyan); font-weight: 600; }

/* Mobile Perspective Switcher */
.mobile-perspective-switch {
  display: none;
  margin-top: 36px;
}
@media (max-width: 900px) {
  .mobile-perspective-switch {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .mobile-perspective-label {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--holo-dim);
    letter-spacing: 0.1em;
  }
  .mobile-perspective-group {
    display: flex;
    gap: 6px;
  }
  .mobile-perspective-group .perspective-btn {
    flex: 1;
    text-align: center;
  }
}

/* ==========================================================================
   PRODUCT HOLO SECTION (CHAMFERED OPTICAL CHASSIS)
   ========================================================================== */
.products-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 12vh, 160px);
  padding: 40px var(--gutter) 100px;
}

.product-chassis {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* ==========================================================================
   PRODUCT HOLO SECTION (CLEAR TABLETS & ANIMATED PROJECTED UNDERGLOW)
   Stationary Star Trek Discovery crystal PADDs: semi-transparent,
   allowing background patterns to show through, with radiant underglow.
   ========================================================================== */
.holo-panel {
  position: relative;
  /* Slightly opaque crystal glass letting background pattern pass through */
  background: rgba(5, 10, 18, 0.40);
  backdrop-filter: blur(8px) saturate(135%);
  -webkit-backdrop-filter: blur(8px) saturate(135%);
  border: 1px solid rgba(var(--acc-rgb), 0.22);
  padding: clamp(24px, 3.5vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
  /* Stationary: zero mousemove tilt or translation */
  transform: none !important;
  box-shadow: 
    0 24px 60px -15px rgba(0, 0, 0, 0.5),
    0 0 35px -10px rgba(var(--acc-rgb), 0.12),
    inset 0 1px 0 rgba(224, 242, 254, 0.16),
    inset 0 0 32px rgba(var(--acc-rgb), 0.04);
}

/* Animated Projection Underglow diffusing into the background */
.holo-panel::before {
  content: "";
  position: absolute;
  inset: -15px -25px -48px -25px;
  background: 
    radial-gradient(ellipse 75% 40% at 50% 100%, rgba(var(--acc-rgb), 0.26), rgba(56, 189, 248, 0.07) 50%, transparent 80%),
    radial-gradient(ellipse 90% 55% at 50% 50%, rgba(var(--acc-rgb), 0.05), transparent 75%);
  filter: blur(34px);
  z-index: -1;
  pointer-events: none;
  animation: holo-projected-diffuse 6s ease-in-out infinite alternate;
}

@keyframes holo-projected-diffuse {
  0% {
    opacity: 0.50;
    transform: translateY(0px) scale(0.98);
    filter: blur(28px);
  }
  50% {
    opacity: 0.85;
    transform: translateY(6px) scale(1.02);
    filter: blur(40px);
  }
  100% {
    opacity: 0.55;
    transform: translateY(2px) scale(0.99);
    filter: blur(32px);
  }
}

/* Laser Emitter Base Line */
.holo-panel::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(var(--acc-rgb), 0.4) 15%, 
    rgba(224, 242, 254, 0.95) 50%, 
    rgba(var(--acc-rgb), 0.4) 85%, 
    transparent
  );
  box-shadow: 
    0 0 12px rgba(var(--acc-rgb), 0.7),
    0 3px 20px rgba(var(--acc-rgb), 0.4);
  pointer-events: none;
  z-index: 5;
  animation: holo-emitter-shimmer 5s ease-in-out infinite alternate;
}

@keyframes holo-emitter-shimmer {
  0% { opacity: 0.65; transform: scaleX(0.96); }
  50% { opacity: 1.0; transform: scaleX(1.03); }
  100% { opacity: 0.72; transform: scaleX(0.98); }
}

.holo-panel--flip {
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
}
.holo-panel--flip .product-optic {
  order: 2;
}

/* Dynamic SVG Chamfer Frame Overlay */
.holo__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 4;
}
.holo__frame path {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.f-edge {
  stroke: var(--room-border);
  stroke-width: 1;
}
.f-hot {
  stroke: var(--cyan);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 6px var(--cyan-glow));
}
.f-tick {
  stroke: rgba(var(--acc-rgb), 0.4);
  stroke-width: 1;
}

/* Laser sweep effect */
.holo__sweep {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  clip-path: var(--shape, none);
  background: linear-gradient(105deg, transparent 35%, rgba(var(--acc-rgb), 0.08) 50%, transparent 65%);
  background-size: 300% 100%;
  animation: laser-sweep 10s ease-in-out infinite;
}
@keyframes laser-sweep {
  0% { background-position: 120% 0; opacity: 0; }
  5% { opacity: 1; }
  20% { background-position: -20% 0; opacity: 0; }
  100% { background-position: -20% 0; opacity: 0; }
}

/* Sacred Logo Optical Chamber */
.product-optic {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: rgba(4, 8, 14, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(var(--acc-rgb), 0.2);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-shadow: inset 0 0 32px rgba(0, 0, 0, 0.6), 0 0 24px rgba(var(--acc-rgb), 0.06);
}
.product-optic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(0, 0, 0, 0.6));
}

.optic-scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 0, 0, 0.3) 51%
  );
  background-size: 100% 4px;
  opacity: 0.35;
}

.optic-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--cyan);
  background: rgba(3, 6, 10, 0.9);
  padding: 3px 8px;
  border: 1px solid rgba(var(--acc-rgb), 0.3);
  border-radius: 2px;
}

/* ==========================================================================
   HIGH-TECH INSTRUMENT HUD (ANTI-TEXT-BLOCK ARCHITECTURE)
   ========================================================================== */
.product-instrument {
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 2;
}

.instrument-hdr {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.instrument-super {
  display: flex;
  align-items: center;
  gap: 12px;
}
.instrument-idx {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.15em;
}
.instrument-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--amber);
  letter-spacing: 0.12em;
  padding: 2px 8px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 3px;
}

.instrument-name {
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 300;
  font-stretch: 120%;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.instrument-headline {
  font-size: 15px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--holo-dim);
}

/* Telemetry Micro-Spec Grid */
.telemetry-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  background: rgba(4, 8, 14, 0.32);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 14px;
  border: 1px solid rgba(var(--acc-rgb), 0.12);
  border-radius: 4px;
}
.spec-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  background: rgba(8, 15, 24, 0.35);
  border-left: 2px solid rgba(var(--acc-rgb), 0.3);
}
.spec-k {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--holo-dim);
  text-transform: uppercase;
}
.spec-v {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--holo);
}

/* Metric Meters & Radar Bars */
.instrument-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.metric-meter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(8, 15, 24, 0.30);
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 3px;
}
.metric-meter-hdr {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-family: var(--font-mono);
}
.metric-name { color: var(--holo-dim); }
.metric-val { color: var(--cyan); font-weight: 600; }
.metric-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.metric-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--emerald));
  box-shadow: 0 0 6px var(--cyan-glow);
  transition: width 0.4s var(--ease-out);
}

/* Action Controls */
.instrument-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}
.hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  border-radius: 4px;
  transition: all 0.2s;
}
.hud-btn--primary {
  background: var(--cyan);
  color: var(--room);
  font-weight: 600;
  box-shadow: 0 0 16px var(--cyan-glow);
}
.hud-btn--primary:hover {
  background: var(--cyan-bright);
  transform: translateY(-2px);
}
.hud-btn--secondary {
  background: rgba(var(--acc-rgb), 0.06);
  border: 1px solid rgba(var(--acc-rgb), 0.25);
  color: var(--holo);
}
.hud-btn--secondary:hover {
  border-color: var(--cyan);
  background: rgba(var(--acc-rgb), 0.14);
}

/* ==========================================================================
   SIMULATOR 1: PARALLAX MEMORY RETRIEVAL PIPELINE
   ========================================================================== */
.parallax-hud {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(4, 8, 14, 0.40);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(var(--acc-rgb), 0.2);
  border-radius: 4px;
  padding: 20px;
  margin-top: 10px;
}
.parallax-pipeline-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.pipeline-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hud-tag {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--cyan);
  letter-spacing: 0.12em;
}
.hud-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.sim-pulse-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: var(--font-mono);
  padding: 8px 14px;
  background: rgba(var(--acc-rgb), 0.12);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  border-radius: 4px;
  transition: all 0.2s;
}
.sim-pulse-btn:hover:not(:disabled) {
  background: var(--cyan);
  color: var(--room);
}
.sim-pulse-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pipeline-nodes {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
}
.pipeline-node {
  flex: 1;
  min-width: 140px;
  background: rgba(8, 15, 24, 0.45);
  border: 1px solid rgba(var(--acc-rgb), 0.18);
  border-radius: 4px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.pipeline-node:hover {
  border-color: var(--cyan);
  background: rgba(var(--acc-rgb), 0.06);
}
.pipeline-node.is-active {
  border-color: var(--cyan);
  background: rgba(var(--acc-rgb), 0.12);
  box-shadow: 0 0 12px var(--cyan-glow);
}
.pipeline-node.is-pulsing {
  border-color: var(--amber);
  background: rgba(251, 191, 36, 0.2);
  box-shadow: 0 0 16px var(--amber-glow);
}
.node-badge {
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--holo-dim);
  margin-bottom: 4px;
}
.node-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--holo);
  margin-bottom: 2px;
}
.node-sub {
  font-size: 10px;
  color: var(--holo-dim);
  margin-bottom: 6px;
}
.node-metric {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--cyan);
}

.pipeline-bus {
  color: var(--cyan);
  font-size: 14px;
  opacity: 0.4;
  padding: 0 4px;
}
.pipeline-bus.is-bus-active {
  opacity: 1;
  color: var(--amber);
  text-shadow: 0 0 8px var(--amber);
}

.node-telemetry-panel {
  background: rgba(8, 15, 24, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 14px;
}
.panel-hdr {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-family: var(--font-mono);
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}
.panel-stage { color: var(--cyan); }
.panel-status { color: var(--emerald); }
.panel-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.telemetry-chip {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 6px 10px;
  background: rgba(3, 6, 10, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.chip-k { color: var(--holo-dim); }
.chip-v { color: var(--holo); font-weight: 600; }

/* ==========================================================================
   SIMULATOR 2: SHA-256 INTERACTIVE CRYPTO LEDGER
   ========================================================================== */
.chain__hud {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(4, 8, 14, 0.40);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(var(--acc-rgb), 0.2);
  border-radius: 4px;
  padding: 24px;
  margin-top: 10px;
}

.chain__status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.chain__status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}
.chain__status-indicator.is-sealed { color: var(--emerald); }
.chain__status-indicator.is-breached { color: var(--crimson); }
.chain__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.is-sealed .chain__status-dot {
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}
.is-breached .chain__status-dot {
  background: var(--crimson);
  box-shadow: 0 0 14px var(--crimson);
  animation: breach-flash 1s infinite;
}
@keyframes breach-flash {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.chain__telemetry-meta {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--amber);
}

.chain__blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.chain-block {
  background: rgba(8, 15, 24, 0.45);
  border: 1px solid rgba(var(--acc-rgb), 0.25);
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: all 0.3s;
}
.chain-block--sealed {
  border-color: rgba(52, 211, 153, 0.4);
}
.chain-block--broken {
  border-color: var(--crimson);
  background: rgba(30, 8, 12, 0.65);
  box-shadow: 0 0 16px var(--crimson-glow);
}

.chain-block__hdr {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-family: var(--font-mono);
}
.chain-block__idx { color: var(--cyan); font-weight: 700; }
.chain-block__type { color: var(--holo-dim); }
.chain-block__time {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--holo-dim);
}

.chain-block__body {
  background: rgba(3, 6, 10, 0.35);
  padding: 10px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.chain-block__label {
  display: block;
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--holo-dim);
  margin-bottom: 4px;
}
.chain-block__payload {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--holo);
  line-height: 1.4;
}
.is-tampered-text {
  color: var(--crimson);
  font-weight: 700;
  text-shadow: 0 0 6px var(--crimson-glow);
}

.chain-block__hashes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.chain-hash-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-family: var(--font-mono);
}
.chain-hash-lbl { color: var(--holo-dim); }
.chain-hash-val { color: var(--holo); }
.chain-hash-val--own { color: var(--cyan); }
.hash-mismatch { color: var(--crimson); font-weight: 700; }

.chain__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 10px;
}
.chain-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  border-radius: 4px;
  transition: all 0.2s;
}
.chain-btn--tamper {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--crimson);
  color: var(--crimson);
}
.chain-btn--tamper:hover:not(:disabled) {
  background: var(--crimson);
  color: var(--room);
}
.chain-btn--reset {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid var(--emerald);
  color: var(--emerald);
}
.chain-btn--reset:hover:not(:disabled) {
  background: var(--emerald);
  color: var(--room);
}
.chain-btn--verify {
  background: rgba(var(--acc-rgb), 0.1);
  border: 1px solid var(--cyan);
  color: var(--cyan);
}
.chain-btn--verify:hover {
  background: var(--cyan);
  color: var(--room);
}
.chain-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.chain__telemetry-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  padding: 12px 16px;
  background: rgba(8, 15, 24, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 3px;
}
.telemetry-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.telemetry-k {
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--holo-dim);
}
.telemetry-v {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--amber);
  font-weight: 600;
}

/* ==========================================================================
   SIMULATOR 3: SAFEAGENT BOUNDARY GATEWAY
   ========================================================================== */
.safeagent-hud {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(4, 8, 14, 0.40);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(var(--acc-rgb), 0.2);
  border-radius: 4px;
  padding: 24px;
  margin-top: 10px;
}

.safeagent-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.hud-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--emerald);
  padding: 3px 10px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 3px;
  background: rgba(52, 211, 153, 0.08);
}

.scenario-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.scenario-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(8, 15, 24, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--holo-dim);
  border-radius: 4px;
  transition: all 0.2s;
}
.scenario-btn:hover {
  border-color: var(--cyan);
  color: var(--holo);
}
.scenario-btn.is-active {
  border-color: var(--cyan);
  background: rgba(var(--acc-rgb), 0.12);
  color: var(--cyan);
  font-weight: 600;
}
.scenario-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.gate-readout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(8, 15, 24, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 16px;
}
.gate-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gate-label {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--holo-dim);
  letter-spacing: 0.1em;
}
.gate-val {
  font-size: 13px;
  color: var(--holo);
  padding: 6px 10px;
  background: rgba(3, 6, 10, 0.35);
  border-radius: 3px;
}
.gate-val--status.is-allowed { color: var(--emerald); border-left: 3px solid var(--emerald); }
.gate-val--status.is-breached { color: var(--crimson); border-left: 3px solid var(--crimson); }
.gate-val--status.is-deflected { color: var(--amber); border-left: 3px solid var(--amber); }

.gate-audit-text {
  color: var(--holo-dim);
  font-size: 11px;
}

/* ==========================================================================
   15-MODEL RED-TEAM PROBE MATRIX (PURE DATA, ZERO FLUFF)
   ========================================================================== */
.probe-section {
  position: relative;
  z-index: 2;
  padding: 60px var(--gutter) 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-hdr {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.section-tag {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  color: var(--cyan);
}
.section-title {
  font-weight: 280;
  font-stretch: 125%;
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.probe-matrix-table-wrap {
  overflow-x: auto;
  background: var(--room-card);
  border: 1px solid var(--room-border);
  border-radius: 4px;
  backdrop-filter: blur(12px);
}
.probe-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-family: var(--font-mono);
}
.probe-table th, .probe-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.probe-table th {
  background: rgba(4, 8, 14, 0.9);
  color: var(--holo-dim);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.probe-table tr:hover td {
  background: rgba(var(--acc-rgb), 0.04);
}
.diode-pass {
  color: var(--emerald);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.diode-fail {
  color: var(--crimson);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   3-RUNG GUARANTEE LADDER (AUTHENTIC MATHEMATICAL TRUTH)
   ========================================================================== */
.ladder-section {
  position: relative;
  z-index: 2;
  padding: 40px var(--gutter) 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.ladder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.ladder-rung {
  background: var(--room-card);
  border: 1px solid var(--room-border);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.rung-idx {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.1em;
}
.rung-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.rung-telemetry {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.rung-item {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-family: var(--font-mono);
}
.rung-k { color: var(--holo-dim); }
.rung-v { color: var(--emerald); font-weight: 600; }

/* ==========================================================================
   SOVEREIGN FOOTER & CONTACT TRANSMISSION
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--room-border);
  background: rgba(3, 6, 10, 0.95);
  padding: 60px var(--gutter) 40px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-legal-unit {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--holo-dim);
}
.footer-legal-unit span:first-child {
  color: var(--holo);
  font-weight: 600;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(8, 15, 24, 0.8);
  border: 1px solid var(--room-border);
  padding: 12px 20px;
  border-radius: 4px;
}
.contact-link {
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--cyan);
  font-weight: 600;
}
.copy-contact-btn {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--holo-dim);
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  transition: all 0.2s;
}
.copy-contact-btn:hover {
  color: var(--holo);
  border-color: var(--cyan);
}

/* ==========================================================================
   MODAL INSPECTION DOSSIER DIALOG (PROJECTED OPTICAL PLANE)
   ========================================================================== */
.dossier-dialog {
  margin: auto;
  background: rgba(4, 9, 16, 0.98);
  border: 1px solid rgba(var(--acc-rgb), 0.5);
  border-bottom: 2px solid var(--cyan);
  border-radius: 4px;
  color: var(--holo);
  max-width: 840px;
  width: 90vw;
  max-height: 85vh;
  padding: 0;
  overflow: visible; /* allows projection underglow to bleed out */
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  /* Instant projection into place - NO scale/slide bouncy animations */
  animation: none !important;
  transition: none !important;

  /* Projected Optical Underglow & Floor Emitter Reflection */
  box-shadow:
    0 0 0 1px rgba(var(--acc-rgb), 0.45),
    0 0 24px rgba(var(--acc-rgb), 0.25),
    0 25px 60px rgba(0, 0, 0, 0.95),
    0 45px 95px rgba(var(--acc-rgb), 0.38),
    0 80px 140px rgba(6, 182, 212, 0.28);
}

/* Floor projection emitter plane beneath the dialog */
.dossier-dialog::before {
  content: "";
  position: absolute;
  bottom: -45px;
  left: 6%;
  right: 6%;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(var(--acc-rgb), 0.75) 0%, rgba(var(--acc-rgb), 0.25) 45%, transparent 75%);
  filter: blur(12px);
  pointer-events: none;
  z-index: -1;
}

/* Upward projection emitter beam line */
.dossier-dialog::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--acc-rgb), 0.8) 15%, #ffffff 50%, rgba(var(--acc-rgb), 0.8) 85%, transparent 100%);
  box-shadow: 0 0 14px 2px rgba(var(--acc-rgb), 0.9);
  pointer-events: none;
}

.dossier-dialog::backdrop {
  background: rgba(2, 4, 8, 0.88);
  backdrop-filter: blur(12px);
  animation: none !important;
  transition: none !important;
}

.dossier-shell {
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(4, 9, 16, 0.98);
}
.dossier-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--room-border);
  background: rgba(8, 15, 24, 0.8);
}
.dossier-title {
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--cyan);
  letter-spacing: 0.1em;
}
.dossier-close {
  font-size: 20px;
  color: var(--holo-dim);
  transition: color 0.2s;
}
.dossier-close:hover { color: var(--crimson); }

.dossier-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dossier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

@media (max-width: 768px) {
  .holo-panel, .holo-panel--flip {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .holo-panel--flip .product-optic {
    order: 0;
  }
}


/* ==========================================================================
   ACCURACY PASS (2026-10-05): meters that mean what they show
   frac  = the existing gradient bar, width is a real fraction
   stage = a segmented track: done / now / next
   rail  = a ticked line marking a fact, deliberately not a percentage
   ========================================================================== */
.metric-stage {
  display: flex;
  gap: 4px;
}
.metric-stage-seg {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.metric-stage-seg i {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
}
.metric-stage-seg b {
  font-size: 9px;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--holo-dim);
  line-height: 1.25;
}
.metric-stage-seg--done i { background: linear-gradient(90deg, var(--cyan), var(--emerald)); box-shadow: 0 0 6px var(--cyan-glow); }
.metric-stage-seg--now i { background: var(--amber); box-shadow: 0 0 8px var(--amber-glow); }
.metric-stage-seg--now b { color: var(--amber); }
.metric-stage-seg--next i { background: repeating-linear-gradient(90deg, rgba(255,255,255,0.14) 0 6px, transparent 6px 10px); }
.metric-rail {
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 2px, transparent 2px 9px);
  opacity: 0.55;
}
.diode-warn {
  color: var(--amber);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.probe-table small {
  font-size: 11px;
  opacity: 0.7;
  font-weight: 400;
}
.ladder-rung--pending {
  border-style: dashed;
  border-color: var(--amber-glow);
}
.ladder-rung--pending .rung-idx { color: var(--amber); }
[data-theme="light"] .metric-stage-seg i,
[data-theme="light"] .metric-stage-seg--next i { background-color: rgba(0, 0, 0, 0.08); }
[data-theme="light"] .metric-stage-seg--next i { background: repeating-linear-gradient(90deg, rgba(0,0,0,0.16) 0 6px, transparent 6px 10px); }
[data-theme="light"] .metric-stage-seg--done i { background: linear-gradient(90deg, var(--cyan), var(--emerald)); }
[data-theme="light"] .metric-stage-seg--now i { background: var(--amber); }

/* ==========================================================================
   PERSPECTIVE LIGHTING (2026-10-05)
   Each perspective re-lights the room: Technical cyan, Capital & IP gold,
   User & Prosumer green. Only the accent changes. Status colours (emerald
   pass, amber not-yet, crimson fail) never change, and status markers keep
   their shapes, so meaning never rides on hue alone.
   ========================================================================== */
html[data-perspective="investment"]:not([data-theme="light"]) {
  --acc-rgb: 230, 190, 110;
  --cyan: #e6be6e;
  --cyan-bright: #f5d08c;
}
html[data-perspective="retail"]:not([data-theme="light"]) {
  --acc-rgb: 74, 222, 128;
  --cyan: #4ade80;
  --cyan-bright: #86efac;
}
html[data-theme="light"][data-perspective="investment"] {
  --acc-rgb: 154, 107, 15;
  --cyan: #9a6b0f;
  --cyan-bright: #7c5509;
}
html[data-theme="light"][data-perspective="retail"] {
  --acc-rgb: 21, 128, 61;
  --cyan: #15803d;
  --cyan-bright: #166534;
}

/* Each button always wears its own colour, so the three read as three different controls. */
.perspective-btn[data-perspective-btn="technical"]  { --btn-rgb: 34, 211, 238; }
.perspective-btn[data-perspective-btn="investment"] { --btn-rgb: 230, 190, 110; }
.perspective-btn[data-perspective-btn="retail"]     { --btn-rgb: 74, 222, 128; }
[data-theme="light"] .perspective-btn[data-perspective-btn="technical"]  { --btn-rgb: 2, 132, 199; }
[data-theme="light"] .perspective-btn[data-perspective-btn="investment"] { --btn-rgb: 154, 107, 15; }
[data-theme="light"] .perspective-btn[data-perspective-btn="retail"]     { --btn-rgb: 21, 128, 61; }

.perspective-dock,
.mobile-perspective-group { position: relative; }
.perspective-btn {
  position: relative;
  color: rgba(var(--btn-rgb), 0.82);
}
.perspective-btn::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: 1px;
  background: rgb(var(--btn-rgb));
  box-shadow: 0 0 6px rgba(var(--btn-rgb), 0.9);
}
.perspective-btn:hover,
[data-theme="light"] .perspective-btn:hover {
  color: rgb(var(--btn-rgb));
  background: rgba(var(--btn-rgb), 0.10);
}
.perspective-btn.is-active,
[data-theme="light"] .perspective-btn.is-active {
  color: var(--room);
  background: rgb(var(--btn-rgb));
  box-shadow: 0 0 14px rgba(var(--btn-rgb), 0.45);
}
[data-theme="light"] .perspective-btn.is-active { color: #ffffff; }
.perspective-btn.is-active::before { background: var(--room); box-shadow: none; }
[data-theme="light"] .perspective-btn.is-active::before { background: #ffffff; }

/* Power-on, once per visit: 01, 02, 03 light up in turn, each in its own colour. */
@keyframes pbtn-power {
  0%   { box-shadow: 0 0 0 0 rgba(var(--btn-rgb), 0); }
  35%  { box-shadow: 0 0 0 1px rgba(var(--btn-rgb), 0.95), 0 0 22px rgba(var(--btn-rgb), 0.6); }
  100% { box-shadow: 0 0 0 0 rgba(var(--btn-rgb), 0); }
}
.is-powering .perspective-btn:not(.is-active) { animation: pbtn-power 1000ms var(--ease-out) both; }
.is-powering .perspective-btn:nth-child(2) { animation-delay: 200ms; }
.is-powering .perspective-btn:nth-child(3) { animation-delay: 400ms; }

/* Idle sweep: a beam of light crosses the switch every few seconds, until it has been used. */
.perspective-dock::after,
.mobile-perspective-group::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, 0.16) 50%, transparent 58%) no-repeat;
  background-size: 260% 100%;
  background-position: 170% 0;
  animation: pdock-sweep 8s 4s infinite;
}
[data-theme="light"] .perspective-dock::after,
[data-theme="light"] .mobile-perspective-group::after {
  background-image: linear-gradient(100deg, transparent 42%, rgba(var(--acc-rgb), 0.18) 50%, transparent 58%);
}
@keyframes pdock-sweep {
  0%, 80% { background-position: 170% 0; }
  100%    { background-position: -70% 0; }
}
html.perspective-used .perspective-dock::after,
html.perspective-used .mobile-perspective-group::after { animation: none; opacity: 0; }

/* The room re-lights: one soft band of the new colour crosses the page. */
.accent-wash {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  overflow: hidden;
}
.accent-wash::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 42vh;
  background: linear-gradient(180deg, transparent, rgba(var(--acc-rgb), 0.13) 50%, transparent);
  transform: translateY(-45vh);
  opacity: 0;
}
.accent-wash.is-washing::before { animation: accent-wash 900ms cubic-bezier(0.45, 0, 0.2, 1) forwards; }
@keyframes accent-wash {
  0%   { transform: translateY(-45vh); opacity: 1; }
  100% { transform: translateY(105vh); opacity: 0.5; }
}
/* Everything that wears the accent eases to the new colour instead of snapping. */
.perspective-btn, .hud-v, .instrument-tag, .metric-val, .rung-idx, .brand-text span {
  transition: color 0.6s var(--ease-out), background-color 0.6s var(--ease-out), border-color 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

/* Scroll cue: says what is below, then gets out of the way. */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  text-decoration: none;
  color: var(--holo-dim);
  font: 500 10px var(--font-mono);
  letter-spacing: 0.24em;
  opacity: 0;
  animation: cue-in 1000ms 2600ms var(--ease-out) forwards;
  transition: color 0.3s var(--ease-out);
}
.scroll-cue:hover { color: var(--cyan); }
.scroll-cue__rail {
  position: relative;
  width: 1px;
  height: 44px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(var(--acc-rgb), 0), rgba(var(--acc-rgb), 0.5));
}
.scroll-cue__rail i {
  position: absolute;
  left: -1.5px;
  top: -6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: cue-drop 2200ms 3200ms cubic-bezier(0.5, 0, 0.2, 1) infinite;
}
@keyframes cue-in { to { opacity: 1; } }
@keyframes cue-drop {
  0%   { transform: translateY(0); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateY(52px); opacity: 0; }
}
html.has-scrolled .scroll-cue { animation: none; opacity: 0; pointer-events: none; transition: opacity 0.6s var(--ease-out); }
@media (max-width: 760px) {
  .hero-deck { padding-bottom: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  .is-powering .perspective-btn,
  .perspective-dock::after,
  .mobile-perspective-group::after,
  .scroll-cue__rail i { animation: none !important; }
  .scroll-cue { animation: none; opacity: 1; }
}

/* Header fit (2026-10-05): one line per control at every width. The honest status pill
   only shows where it fits; the same statement is in the ladder, the demo and the footer. */
.perspective-btn, .integrity-pulse span, .theme-toggle, .contact-trigger, .brand-text { white-space: nowrap; }
.perspective-btn { padding: 6px 11px; }
@media (max-width: 1500px) {
  .integrity-pulse { display: none; }
}
@media (max-width: 900px) {
  .theme-mode-text { display: none; }
  .command-actions { gap: 8px; }
  /* the hero is taller than a phone screen: pin the cue to the screen until the first scroll */
  .scroll-cue {
    position: fixed;
    bottom: 14px;
    text-shadow: 0 0 10px var(--room), 0 0 4px var(--room);
  }
}
@media (max-width: 900px) {
  .command-bar { gap: 10px; padding: 12px 14px; }
  .brand-mark { width: 24px; height: 24px; }
  .brand-unit { gap: 8px; min-width: 0; }
  .brand-text { font-size: 13px; }
  .contact-trigger { padding: 6px 10px; }
  .theme-toggle { padding-inline: 8px; }
}
.probe-matrix-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Phone layout (2026-10-05): the product panels were 710px wide on a 390px phone (AG's original
   too), so phones scrolled sideways. Columns now collapse; nothing on desktop changes. */
@media (max-width: 760px) {
  .holo-panel, .holo-panel--flip { grid-template-columns: minmax(0, 1fr); }
  .product-instrument, .product-optic { min-width: 0; }
  .pipeline-nodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pipeline-bus { display: none; }
  .pipeline-node { width: auto; min-width: 0; }
  .panel-chips,
  .telemetry-spec-grid,
  .instrument-metrics,
  .chain__telemetry-banner { grid-template-columns: minmax(0, 1fr); }
  .chain__blocks { grid-template-columns: minmax(0, 1fr); }
  .spec-v, .chip-v, .gate-val, .chain-block__payload { overflow-wrap: anywhere; }
}
/* Pipeline fit: four stages share the row (arrows kept) on wide screens, 2x2 below 1180px. */
html, body { overflow-x: clip; }
@media (min-width: 761px) {
  .pipeline-node { flex: 1 1 0; width: auto; min-width: 0; }
  .pipeline-node .node-label, .pipeline-node .node-sub, .pipeline-node .node-metric { overflow-wrap: anywhere; }
}
@media (min-width: 761px) and (max-width: 1180px) {
  .pipeline-nodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pipeline-bus { display: none; }
}
@media (max-width: 900px) {
  .scroll-cue {
    padding: 8px 16px 6px;
    gap: 6px;
    border-radius: 14px;
    background: rgba(3, 6, 10, 0.88);
    border: 1px solid rgba(var(--acc-rgb), 0.35);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    text-shadow: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  }
  .scroll-cue__rail { height: 18px; }
  [data-theme="light"] .scroll-cue { background: rgba(255, 255, 255, 0.92); }
}
@keyframes cue-drop-short {
  0%   { transform: translateY(0); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(24px); opacity: 0; }
}
@media (max-width: 900px) { .scroll-cue__rail i { animation-name: cue-drop-short; } }


/* ==========================================================================
   BRAND NAMES (2026-10-06): MYLES[AI] · MEMORY[FORGE] · SAFEAGENT[AI]
   The highlight is the brand cyan sampled from the new nameplates (~#00F0FF).
   It is identity, like the marks, so it does NOT follow the perspective accent.
   ========================================================================== */
:root { --brand-base: #fcfcfc; --brand-hi: #00f0ff; --brand-hi-glow: rgba(0, 240, 255, 0.35); }
[data-theme="light"] { --brand-base: #0f172a; --brand-hi: #0e7490; --brand-hi-glow: transparent; }
.nm,
.brand-text .nm,
.dock-chip .nm { color: var(--brand-base); font-weight: inherit; }
.nm-hi,
.brand-text .nm-hi,
.dock-chip .nm-hi { color: var(--brand-hi); font-weight: inherit; text-shadow: 0 0 14px var(--brand-hi-glow); }
.nm-tld,
.dock-chip .nm-tld { color: var(--holo-dim); font-weight: inherit; }
.brand-text .brand-sub { color: var(--cyan); font-weight: 300; }
.dock-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex: none;
}
.dossier-title .nm { color: var(--brand-base); }
[data-theme="light"] .product-optic {
  background: rgba(15, 23, 42, 0.035);
  box-shadow: inset 0 0 24px rgba(15, 23, 42, 0.06);
}

.dock-chip .nm-wrap { color: inherit; font-weight: inherit; display: inline; }
