/* ═══════════════════════════════════════════════════════════════════
   NDF Home — Redesigned (obsidian + cyan)
   Ported from the ndf-home React/TSX drop-in kit to vanilla CSS.
   Self-contained: the redesigned home page drops the legacy /style.css,
   /home.css, matrix-rain, ticker, and ghost words. Loaded alone.
   Fonts: Barlow Condensed (display) / Barlow (body) / IBM Plex Mono (mono).
   ═══════════════════════════════════════════════════════════════════ */

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

:root {
  --ndh-obsidian:   #05080a;
  --ndh-cyan:       #06b6d4;
  --ndh-cyan-bright:#22d3ee;
  --ndh-cyan-soft:  #38bdf8;
  --ndh-amber:      #d97706;   /* legacy mode accent */
  --ndh-font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --ndh-font-body:    'Barlow', system-ui, sans-serif;
  --ndh-font-mono:    'IBM Plex Mono', ui-monospace, monospace;
}

html { scroll-behavior: smooth; }
body {
  background: var(--ndh-obsidian);
  color: #eef4f7;
  font-family: var(--ndh-font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ndh-cyan-bright); outline-offset: 2px; }

.ndh-root { color: #eef4f7; font-family: var(--ndh-font-body); }
.ndh-display { font-family: var(--ndh-font-display); }
.ndh-mono { font-family: var(--ndh-font-mono); }

/* ── Keyframes (ported from home-animations.css) ──────────────── */
.home-stage-grid {
  background-image: radial-gradient(rgba(34, 211, 238, 0.14) 1px, transparent 1px);
  background-size: 24px 24px;
}
@keyframes platform-pulse-ring {
  0% { transform: scale(0.88); opacity: 0.72; }
  100% { transform: scale(1.26); opacity: 0; }
}
@keyframes home-intel-flow { from { stroke-dashoffset: 140; } to { stroke-dashoffset: 0; } }
@keyframes home-legacy-flood { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }

.animate-platform-ring {
  transform-box: fill-box; transform-origin: center;
  animation: platform-pulse-ring 3s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.animate-home-intel { stroke-dasharray: 10 18; animation: home-intel-flow 3.6s linear infinite; }
.animate-home-intel-alt { stroke-dasharray: 8 20; animation: home-intel-flow 4.4s linear infinite reverse; }
.animate-home-legacy-flood { stroke-dasharray: 18 10; animation: home-legacy-flood 1.6s linear infinite; }

.motion-paused .animate-platform-ring,
.motion-paused .animate-home-intel,
.motion-paused .animate-home-intel-alt,
.motion-paused .animate-home-legacy-flood { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .animate-platform-ring, .animate-home-intel, .animate-home-intel-alt, .animate-home-legacy-flood {
    animation: none !important;
  }
}

/* ── Telemetry stream background (restored signature layer) ───── */
.data-stream-layer {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  overflow: hidden; pointer-events: none; z-index: 0; opacity: 0.17;
}
.data-column {
  position: absolute; top: 0;
  display: flex; flex-direction: column; gap: 0.55em;
  font-family: var(--ndh-font-mono); font-size: 0.68rem;
  color: rgba(34, 211, 238, 0.55); line-height: 1.6; white-space: nowrap;
  animation: streamScroll var(--scroll-duration, 22s) linear infinite;
  animation-delay: var(--scroll-delay, 0s);
}
@keyframes streamScroll { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
.data-column:nth-child(1) { left: 2%;  --scroll-duration: 20s; --scroll-delay: 0s; }
.data-column:nth-child(2) { left: 14%; --scroll-duration: 26s; --scroll-delay: -8s; }
.data-column:nth-child(3) { left: 28%; --scroll-duration: 18s; --scroll-delay: -3s; }
.data-column:nth-child(4) { left: 44%; --scroll-duration: 23s; --scroll-delay: -11s; }
.data-column:nth-child(5) { left: 60%; --scroll-duration: 21s; --scroll-delay: -6s; }
.data-column:nth-child(6) { left: 74%; --scroll-duration: 28s; --scroll-delay: -14s; }
.data-column:nth-child(7) { left: 88%; --scroll-duration: 19s; --scroll-delay: -2s; }

/* ── Ghost watermark words (restored signature layer) ─────────── */
.ndh-content { position: relative; z-index: 1; }
.ghost-word {
  position: absolute; bottom: -0.1em; left: -0.05em;
  font-family: var(--ndh-font-display); font-weight: 900;
  font-size: clamp(5rem, 16vw, 14rem); text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 1; color: rgba(34, 211, 238, 0.045);
  pointer-events: none; user-select: none; z-index: 0; white-space: nowrap;
}
.ndh-hero, .ndh-section { position: relative; overflow: hidden; }
.ndh-hero .ndh-container, .ndh-section .ndh-container { position: relative; z-index: 1; }

/* ── Top bar ──────────────────────────────────────────────────── */
.ndh-topbar {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid #192830;
  background: rgba(5, 8, 10, 0.92);
  backdrop-filter: blur(8px);
}
.ndh-topbar-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 0.75rem;
  min-height: 4rem; max-width: 1280px; margin: 0 auto; padding: 0.5rem 1rem;
}
.ndh-logo {
  font-family: var(--ndh-font-display); font-size: 1.25rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: #eef4f7; white-space: nowrap;
}
.ndh-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem 1.4rem; font-size: 0.72rem; font-weight: 500; color: #9eb4bf; }
.ndh-nav a { white-space: nowrap; transition: color 0.2s; }
.ndh-nav a:hover { color: var(--ndh-cyan-bright); }
@media (max-width: 767px) {
  .ndh-nav { width: 100%; order: 3; justify-content: center; gap: 0.4rem 1rem; }
}
.ndh-briefing-btn {
  min-height: 40px; padding: 0.5rem 1rem; cursor: pointer;
  border: 1px solid var(--ndh-cyan); background: var(--ndh-cyan);
  font-family: var(--ndh-font-body); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: #041014; white-space: nowrap;
  transition: background 0.2s;
}
.ndh-briefing-btn:hover { background: var(--ndh-cyan-bright); }

/* ── Layout helpers ───────────────────────────────────────────── */
.ndh-container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .ndh-container { padding: 0 1.5rem; } }

.ndh-kicker {
  font-family: var(--ndh-font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--ndh-cyan-bright);
}
.ndh-h2 {
  margin-top: 0.75rem; font-family: var(--ndh-font-display);
  font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.02; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.02em; color: #f2f7fa; text-wrap: balance;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.ndh-hero {
  border-bottom: 1px solid #16232a; background: #05080a;
  padding: 2.5rem 0 3.5rem;
}
@media (min-width: 640px) { .ndh-hero { padding: 3.5rem 0 4rem; } }
.ndh-hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: stretch; }
@media (min-width: 1024px) { .ndh-hero-grid { grid-template-columns: 5fr 7fr; gap: 2.5rem; } }

.ndh-hero-copy { display: flex; flex-direction: column; justify-content: space-between; }
.ndh-hero-kicker { font-family: var(--ndh-font-mono); font-size: 11px; letter-spacing: 0.03em; color: #7ea3b0; }
.ndh-hero-h1 {
  margin-top: 1.25rem; font-family: var(--ndh-font-display);
  font-size: clamp(2.75rem, 4.6vw, 4.25rem); line-height: 0.95; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.015em; color: #f3f8fa; text-wrap: balance;
}
.ndh-hero-h1 .ndh-accent { color: var(--ndh-cyan-bright); }
.ndh-hero-sub { margin-top: 1.5rem; max-width: 46ch; font-size: 1rem; line-height: 1.6; color: #b2c4cd; }
.ndh-hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.ndh-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px;
  padding: 0.625rem 1.25rem; cursor: pointer;
  font-family: var(--ndh-font-body); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.ndh-btn svg { width: 16px; height: 16px; }
.ndh-btn-primary { border: 1px solid var(--ndh-cyan); background: var(--ndh-cyan); color: #041014; }
.ndh-btn-primary:hover { background: var(--ndh-cyan-bright); }
.ndh-btn-ghost { border: 1px solid #233944; background: #0a1216; color: #d6e4ea; }
.ndh-btn-ghost:hover { border-color: var(--ndh-cyan-bright); color: #ffffff; }
.ndh-hero-context {
  margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  border-top: 1px solid #16232a; padding-top: 1.25rem;
}
.ndh-hero-context .ndh-mono { font-family: var(--ndh-font-mono); font-size: 0.72rem; color: #7d99a6; }
.ndh-motion-btn {
  display: inline-flex; align-items: center; gap: 0.375rem; min-height: 36px;
  padding: 0.375rem 0.75rem; cursor: pointer;
  border: 1px solid #1c2e38; background: #091014;
  font-family: var(--ndh-font-mono); font-size: 0.72rem; color: #9cb5c0; white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.ndh-motion-btn:hover { border-color: rgba(34, 211, 238, 0.6); color: #eef4f7; }
.ndh-motion-btn svg { width: 14px; height: 14px; color: var(--ndh-cyan-bright); }

/* comparison stage */
.ndh-stage {
  display: flex; flex-direction: column;
  border: 1px solid #192b34; background: #080e12;
}
.ndh-stage-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
  border-bottom: 1px solid #16242c; background: #0b1318; padding: 0.75rem 1.25rem;
}
.ndh-stage-bar .ndh-label { font-family: var(--ndh-font-mono); font-size: 0.72rem; color: #88a5b3; }
.ndh-mode-group { display: flex; align-items: center; gap: 0.25rem; border: 1px solid #1b2e38; background: #05090c; padding: 0.25rem; }
.ndh-mode-btn {
  min-height: 34px; padding: 0.25rem 0.75rem; cursor: pointer;
  font-family: var(--ndh-font-body); font-size: 0.72rem; font-weight: 600; white-space: nowrap;
  background: transparent; color: #92aebc; border: none; transition: background 0.2s, color 0.2s;
}
.ndh-mode-btn:hover { color: #eef4f7; }
.ndh-mode-btn[aria-pressed="true"].ndh-imadf { background: var(--ndh-cyan); color: #041014; }
.ndh-mode-btn[aria-pressed="true"].ndh-legacy { background: var(--ndh-amber); color: #0b0905; }

.ndh-stage-svg { position: relative; flex: 1; padding: 1rem 1.25rem; }
.ndh-stage-svg svg { width: 100%; height: auto; user-select: none; }

.ndh-stage-caption { border-top: 1px solid #16242c; background: #0a1115; padding: 1rem 1.25rem; }
.ndh-stage-caption .ndh-headline { font-size: 0.875rem; font-weight: 600; color: #eef4f7; }
.ndh-stage-caption .ndh-summary { margin-top: 0.25rem; font-size: 0.72rem; line-height: 1.6; color: #9cb3be; }
.ndh-metrics {
  margin-top: 1rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
  border-top: 1px solid #16242c; padding-top: 1rem;
}
@media (min-width: 640px) { .ndh-metrics { grid-template-columns: repeat(4, 1fr); } }
.ndh-metrics dt { font-family: var(--ndh-font-mono); font-size: 11px; color: #73919e; }
.ndh-metrics dd { margin-top: 0.25rem; font-family: var(--ndh-font-mono); font-size: 0.72rem; font-weight: 500; color: #e6f0f4; }
.ndh-metrics dd.ndh-cyan { color: var(--ndh-cyan-bright); }
.ndh-metrics dd.ndh-amber { color: #fbbf24; }

/* proof strip */
.ndh-proof {
  margin-top: 2.5rem; display: grid; grid-template-columns: 1fr;
  border: 1px solid #16242c; background: #080d10;
}
@media (min-width: 640px) { .ndh-proof { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ndh-proof { grid-template-columns: repeat(4, 1fr); } }
.ndh-proof-item { padding: 1.25rem; border-bottom: 1px solid #16242c; }
@media (min-width: 640px) {
  .ndh-proof-item { border-bottom: 0; }
  .ndh-proof-item + .ndh-proof-item { border-left: 1px solid #16242c; }
  .ndh-proof-item:nth-child(3), .ndh-proof-item:nth-child(4) { border-top: 1px solid #16242c; }
}
@media (min-width: 1024px) {
  .ndh-proof-item:nth-child(3), .ndh-proof-item:nth-child(4) { border-top: 0; }
}
.ndh-proof-item .ndh-value {
  font-family: var(--ndh-font-display); font-size: 1.5rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em; color: var(--ndh-cyan-bright); font-variant-numeric: tabular-nums;
}
.ndh-proof-item .ndh-label { margin-top: 0.25rem; font-size: 0.875rem; font-weight: 600; color: #eef4f7; }
.ndh-proof-item .ndh-detail { margin-top: 0.375rem; font-size: 0.72rem; line-height: 1.6; color: #92aab6; }

/* ── Section scaffolding ──────────────────────────────────────── */
.ndh-section { border-bottom: 1px solid #16232a; padding: 4rem 0; }
@media (min-width: 640px) { .ndh-section { padding: 5rem 0; } }
.ndh-section-alt { background: #060a0d; }

/* ── Architecture shifts ──────────────────────────────────────── */
.ndh-shift-intro { max-width: 48rem; }
.ndh-shift-intro p { margin-top: 0.75rem; font-size: 1rem; line-height: 1.6; color: #a6bac4; }
.ndh-shift-tabs {
  margin-top: 2rem; display: grid; grid-template-columns: 1fr; gap: 0.5rem;
}
@media (min-width: 640px) { .ndh-shift-tabs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ndh-shift-tabs { grid-template-columns: repeat(5, 1fr); } }
.ndh-shift-tab {
  display: flex; align-items: center; gap: 0.625rem; min-height: 54px;
  padding: 0.75rem 1rem; text-align: left; cursor: pointer;
  border: 1px solid #18262e; background: #080e12; color: #9cb3be;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.ndh-shift-tab:hover { border-color: #2a4350; color: #e6f0f4; }
.ndh-shift-tab[aria-selected="true"] { border-color: var(--ndh-cyan-bright); background: #0b1b22; color: #f5fafc; }
.ndh-shift-tab .ndh-num { font-family: var(--ndh-font-mono); font-size: 0.72rem; color: #627e8c; font-variant-numeric: tabular-nums; }
.ndh-shift-tab[aria-selected="true"] .ndh-num { color: var(--ndh-cyan-bright); }
.ndh-shift-tab .ndh-name { font-size: 0.875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ndh-shift-panel {
  margin-top: 1.25rem; display: grid; grid-template-columns: 1fr;
  border: 1px solid #192b34; background: #080f13;
}
@media (min-width: 1024px) { .ndh-shift-panel { grid-template-columns: 5fr 7fr; } }
.ndh-shift-legacy { padding: 1.5rem; }
@media (min-width: 640px) { .ndh-shift-legacy, .ndh-shift-fabric { padding: 2rem; } }
@media (min-width: 1024px) { .ndh-shift-legacy { border-right: 1px solid #16242c; } }
.ndh-shift-legacy .ndh-tag { font-family: var(--ndh-font-mono); font-size: 0.72rem; color: #e09f5a; }
.ndh-shift-fabric { border-top: 1px solid #16242c; background: #0a151b; }
@media (min-width: 1024px) { .ndh-shift-fabric { border-top: 0; } }
.ndh-shift-fabric .ndh-tag { font-family: var(--ndh-font-mono); font-size: 0.72rem; color: var(--ndh-cyan-bright); }
.ndh-shift-h3 {
  margin-top: 0.75rem; font-family: var(--ndh-font-display); font-size: 1.5rem; line-height: 1.2;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: #eef4f7;
}
.ndh-shift-fabric .ndh-shift-h3 { color: #ffffff; }
.ndh-shift-body { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6; color: #9cb3be; }
.ndh-shift-fabric .ndh-shift-body { font-size: 1rem; color: #c6d6de; max-width: 62ch; }
.ndh-shift-meta { margin-top: 1.5rem; border-top: 1px solid #18262e; padding-top: 1rem; }
.ndh-shift-meta .ndh-l { font-family: var(--ndh-font-mono); font-size: 11px; color: #78919d; }
.ndh-shift-meta .ndh-v { margin-top: 0.25rem; font-size: 0.875rem; font-weight: 500; color: #e8be8e; }
.ndh-shift-fabric .ndh-shift-meta .ndh-v { font-weight: 600; color: #eef8fb; }
.ndh-shift-headrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.ndh-shift-headrow .ndh-metric { font-family: var(--ndh-font-mono); font-size: 0.72rem; color: #88b6c7; }
.ndh-shift-headrow .ndh-metric .ndh-v { color: var(--ndh-cyan-bright); font-weight: 600; }

/* ── Ecosystem ────────────────────────────────────────────────── */
.ndh-eco-head { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
@media (min-width: 768px) { .ndh-eco-head { flex-direction: row; align-items: flex-end; } }
.ndh-eco-head .ndh-hint { font-family: var(--ndh-font-mono); font-size: 0.72rem; color: #7d99a6; white-space: nowrap; }
.ndh-eco-cards {
  margin-top: 2rem; display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 640px) { .ndh-eco-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ndh-eco-cards { grid-template-columns: repeat(4, 1fr); } }
.ndh-pillar-card {
  display: flex; flex-direction: column; overflow: hidden; text-align: left; cursor: pointer;
  border: 1px solid #17252d; background: #080d11; color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.ndh-pillar-card:hover { border-color: #2a4552; }
.ndh-pillar-card[aria-selected="true"] { border-color: var(--ndh-cyan-bright); background: #0a171e; }
.ndh-pillar-thumb { position: relative; aspect-ratio: 4 / 3; width: 100%; overflow: hidden; border-bottom: 1px solid #16242c; background: #070d11; }
.ndh-pillar-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.ndh-pillar-card:hover .ndh-pillar-thumb img { transform: scale(1.03); }
.ndh-pillar-thumb .ndh-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,8,10,0.8), transparent); pointer-events: none; }
.ndh-pillar-thumb .ndh-tag { position: absolute; left: 0.75rem; bottom: 0.75rem; font-family: var(--ndh-font-mono); font-size: 0.72rem; color: #d6ecf4; }
.ndh-pillar-body { display: flex; flex: 1; flex-direction: column; justify-content: space-between; padding: 1rem; }
.ndh-pillar-body h3 { font-family: var(--ndh-font-display); font-size: 1.25rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: #f2f7fa; }
.ndh-pillar-body p { margin-top: 0.25rem; font-size: 0.72rem; line-height: 1.6; color: #92aab6; }

.ndh-spotlight {
  margin-top: 1.5rem; display: grid; grid-template-columns: 1fr;
  border: 1px solid #192b34; background: #080f13; align-items: stretch;
}
@media (min-width: 1024px) { .ndh-spotlight { grid-template-columns: 5fr 7fr; } }
.ndh-spotlight-plate { position: relative; min-height: 260px; overflow: hidden; border-bottom: 1px solid #16242c; background: #060b0e; }
@media (min-width: 1024px) { .ndh-spotlight-plate { border-right: 1px solid #16242c; border-bottom: 0; } }
.ndh-spotlight-plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ndh-spotlight-plate .ndh-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,8,10,0.85), rgba(5,8,10,0.2) 50%, transparent); pointer-events: none; }
.ndh-spotlight-plate .ndh-tag {
  position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  font-family: var(--ndh-font-mono); font-size: 0.72rem; color: #cde4ed;
}
.ndh-spotlight-plate .ndh-tag .ndh-href { color: var(--ndh-cyan-bright); }
.ndh-spotlight-detail { display: flex; flex-direction: column; justify-content: space-between; padding: 1.5rem; }
@media (min-width: 640px) { .ndh-spotlight-detail { padding: 2rem; } }
.ndh-spotlight-detail .ndh-env { font-family: var(--ndh-font-mono); font-size: 0.72rem; color: #7ea3b0; }
.ndh-spotlight-detail h3 { margin-top: 0.5rem; font-family: var(--ndh-font-display); font-size: 1.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: #ffffff; }
.ndh-spotlight-detail .ndh-summary { margin-top: 0.75rem; max-width: 64ch; font-size: 1rem; line-height: 1.6; color: #c0d2db; }
.ndh-spotlight-cap { margin-top: 1.5rem; list-style: none; border-top: 1px solid #16242c; padding-top: 1.25rem; }
.ndh-spotlight-cap li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; line-height: 1.6; color: #dce8ee; padding: 0.25rem 0; }
.ndh-spotlight-cap li svg { margin-top: 0.125rem; width: 16px; height: 16px; flex-shrink: 0; color: var(--ndh-cyan-bright); }
.ndh-spotlight-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; border-top: 1px solid #16242c; padding-top: 1.25rem; }

.ndh-chapters { margin-top: 2rem; border: 1px solid #16242c; background: #070c10; }
.ndh-chapters-head { border-bottom: 1px solid #16242c; padding: 0.75rem 1.25rem; }
.ndh-chapters-head p { font-family: var(--ndh-font-mono); font-size: 0.72rem; color: #7d99a6; }
.ndh-chapters-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ndh-chapters-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ndh-chapters-grid { grid-template-columns: repeat(4, 1fr); } }
.ndh-chapter {
  display: flex; flex-direction: column; justify-content: space-between; padding: 1.25rem;
  border-bottom: 1px solid #16242c; transition: background 0.2s;
}
@media (min-width: 640px) {
  .ndh-chapter { border-bottom: 0; }
  .ndh-chapter + .ndh-chapter { border-left: 1px solid #16242c; }
  .ndh-chapter:nth-child(3), .ndh-chapter:nth-child(4) { border-top: 1px solid #16242c; }
}
@media (min-width: 1024px) { .ndh-chapter:nth-child(3), .ndh-chapter:nth-child(4) { border-top: 0; } }
.ndh-chapter:hover { background: #0c161c; }
.ndh-chapter .ndh-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.ndh-chapter .ndh-num { font-family: var(--ndh-font-mono); font-size: 0.72rem; color: var(--ndh-cyan-bright); font-variant-numeric: tabular-nums; }
.ndh-chapter svg { width: 16px; height: 16px; color: #5e7c8a; transition: color 0.2s; }
.ndh-chapter:hover svg { color: var(--ndh-cyan-bright); }
.ndh-chapter h3 { margin-top: 0.5rem; font-family: var(--ndh-font-display); font-size: 1.25rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: #eef4f7; }
.ndh-chapter:hover h3 { color: #ffffff; }
.ndh-chapter p { margin-top: 0.375rem; font-size: 0.72rem; line-height: 1.6; color: #92aab6; }

/* ── Briefing ─────────────────────────────────────────────────── */
.ndh-briefing-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) { .ndh-briefing-grid { grid-template-columns: 7fr 5fr; } }
.ndh-briefing-intro p { margin-top: 0.75rem; max-width: 60ch; font-size: 1rem; line-height: 1.6; color: #a6bac4; }
.ndh-track-tabs { margin-top: 1.75rem; display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .ndh-track-tabs { grid-template-columns: repeat(3, 1fr); } }
.ndh-track-tab {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 84px;
  padding: 1rem; text-align: left; cursor: pointer;
  border: 1px solid #18262e; background: #080e12; color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.ndh-track-tab:hover { border-color: #2a4350; }
.ndh-track-tab[aria-checked="true"] { border-color: var(--ndh-cyan-bright); background: #0b1b22; }
.ndh-track-tab .ndh-title { font-size: 0.875rem; font-weight: 600; color: #d4e3ea; }
.ndh-track-tab[aria-checked="true"] .ndh-title { color: #ffffff; }
.ndh-track-tab .ndh-aud { margin-top: 0.5rem; font-family: var(--ndh-font-mono); font-size: 11px; color: #7ea3b0; }
.ndh-briefing-card {
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid #192b34; background: #091217; padding: 1.5rem;
}
@media (min-width: 640px) { .ndh-briefing-card { padding: 2rem; } }
.ndh-briefing-card .ndh-tag { font-family: var(--ndh-font-mono); font-size: 0.72rem; color: var(--ndh-cyan-bright); }
.ndh-briefing-card h3 { margin-top: 0.5rem; font-family: var(--ndh-font-display); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: #ffffff; }
.ndh-briefing-card .ndh-summary { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.6; color: #b2c4cd; }
.ndh-briefing-card ul { margin-top: 1.25rem; list-style: none; border-top: 1px solid #16242c; padding-top: 1rem; }
.ndh-briefing-card li { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.875rem; color: #dbe7ed; padding: 0.25rem 0; }
.ndh-briefing-card li svg { margin-top: 0.125rem; width: 16px; height: 16px; flex-shrink: 0; color: var(--ndh-cyan-bright); }
.ndh-briefing-card .ndh-actions { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; border-top: 1px solid #16242c; padding-top: 1.25rem; }
@media (min-width: 640px) { .ndh-briefing-card .ndh-actions { flex-direction: row; align-items: center; justify-content: space-between; } }
.ndh-briefing-card .ndh-email { font-family: var(--ndh-font-mono); font-size: 0.72rem; color: #88a8b5; }
.ndh-briefing-card .ndh-email:hover { color: var(--ndh-cyan-bright); }

/* ── Footer ───────────────────────────────────────────────────── */
.ndh-footer { background: #05080a; padding: 2.5rem 0; }
.ndh-footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1rem;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
}
@media (min-width: 640px) { .ndh-footer-inner { flex-direction: row; align-items: center; padding: 0 1.5rem; } }
.ndh-footer .ndh-brand { font-family: var(--ndh-font-display); font-size: 1.125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #eef4f7; }
.ndh-footer .ndh-sub { margin-top: 0.25rem; font-family: var(--ndh-font-mono); font-size: 0.72rem; color: #73919e; }

/* ── Briefing modal ───────────────────────────────────────────── */
.ndh-modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3, 6, 8, 0.85); padding: 1rem; backdrop-filter: blur(2px);
}
.ndh-modal {
  width: 100%; max-width: 32rem;
  border: 1px solid #1f3b47; background: #081014; padding: 1.5rem;
}
@media (min-width: 640px) { .ndh-modal { padding: 2rem; } }
.ndh-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #162730; padding-bottom: 1rem; }
.ndh-modal-head .ndh-tag { font-family: var(--ndh-font-mono); font-size: 0.72rem; color: var(--ndh-cyan-bright); }
.ndh-modal-head h2 { margin-top: 0.25rem; font-family: var(--ndh-font-display); font-size: 1.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: #f2f7fa; }
.ndh-modal-close {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; cursor: pointer;
  border: 1px solid #1d3440; background: transparent; color: #9eb4bf;
  transition: border-color 0.2s, color 0.2s;
}
.ndh-modal-close:hover { border-color: var(--ndh-cyan-bright); color: #ffffff; }
.ndh-modal-close svg { width: 16px; height: 16px; }
.ndh-modal form { margin-top: 1.5rem; }
.ndh-field { margin-bottom: 1rem; }
.ndh-field label { display: block; font-size: 0.72rem; font-weight: 500; color: #b2c4cd; }
.ndh-field input, .ndh-field select {
  margin-top: 0.375rem; width: 100%;
  border: 1px solid #1d3440; background: #05090c;
  padding: 0.625rem 0.875rem; font-size: 0.875rem; color: #eef4f7; font-family: var(--ndh-font-body);
}
.ndh-field input:focus, .ndh-field select:focus { border-color: var(--ndh-cyan-bright); outline: none; }
.ndh-field input::placeholder { color: #587280; }
.ndh-field-error { margin-top: 0.25rem; font-size: 0.72rem; color: #f6b289; }
.ndh-modal-success { padding-top: 1.5rem; }
.ndh-modal-success p.ndh-ok { font-size: 1rem; font-weight: 600; color: #ffffff; }
.ndh-modal-success p.ndh-msg { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6; color: #b2c4cd; }
.ndh-modal-success .ndh-msg .ndh-accent { color: var(--ndh-cyan-bright); }
.ndh-modal-success .ndh-msg .ndh-strong { color: #eef4f7; }
.ndh-modal-submit { margin-top: 0.5rem; width: 100%; }

/* ═══════════════════════════════════════════════════════════════════
   UPDATED-BUNDLE ADDITIONS — stress bar, 3D stage, diagnostics, teaser,
   reality-check, video lab, drawer, footer downloads.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hero: stress trigger bar + follow-up deep link ─────────────── */
.ndh-stress-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem;
  border-bottom: 1px solid #16242c; background: #070d11; padding: 0.625rem 1.25rem;
}
.ndh-stress-label {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-family: var(--ndh-font-mono); font-size: 11px; color: #7ea3b0;
}
.ndh-stress-label svg { width: 14px; height: 14px; color: var(--ndh-cyan-bright); }
.ndh-stress-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; }
.ndh-stress-btn {
  min-height: 32px; padding: 0.25rem 0.625rem; cursor: pointer;
  border: 1px solid #1a2c36; background: #080f14;
  font-family: var(--ndh-font-mono); font-size: 11px; color: #94b2bf; white-space: nowrap;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.ndh-stress-btn:hover { border-color: #2c4b5b; color: #ffffff; }
.ndh-stress-btn.ndh-stress-on { border-color: var(--ndh-cyan-bright); background: #0b232d; color: #ecfbff; }
.ndh-caption-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.ndh-caption-head > div:first-child { max-width: 46ch; }
.ndh-followup-btn {
  display: inline-flex; align-items: center; gap: 0.375rem; min-height: 34px; flex-shrink: 0;
  padding: 0.25rem 0.75rem; cursor: pointer;
  border: 1px solid #1f3b47; background: #071319;
  font-family: var(--ndh-font-mono); font-size: 11px; color: var(--ndh-cyan-bright); white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.ndh-followup-btn:hover { border-color: var(--ndh-cyan-bright); color: #ffffff; }
.ndh-followup-btn svg { width: 14px; height: 14px; }

/* ── 3D Fabric stage (home-3d.js HUD + canvas) ──────────────────── */
.ndh-3d-section {
  position: relative; height: calc(100vh - 4rem); min-height: 580px; max-height: 860px;
  width: 100%; overflow: hidden; border-bottom: 1px solid #16232a; background: #05080a; scroll-margin-top: 4rem;
}
.ndh3d-root { position: relative; }
.ndh3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ndh3d-canvas canvas { display: block; }
.ndh3d-badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 10; pointer-events: none;
  max-width: 340px; border: 1px solid #192c36; background: rgba(6, 11, 15, 0.92); padding: 0.75rem 1rem;
}
@media (min-width: 640px) { .ndh3d-badge { top: 1.25rem; left: 1.5rem; } }
.ndh3d-mono { font-family: var(--ndh-font-mono); font-size: 11px; letter-spacing: 0.05em; color: var(--ndh-cyan-bright); }
.ndh3d-h2 {
  margin-top: 0.25rem; font-family: var(--ndh-font-display); font-size: 1.5rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: #f3f8fa;
}
.ndh3d-scenario { margin-top: 0.125rem; font-family: var(--ndh-font-mono); font-size: 11px; color: #94b2bf; }
.ndh3d-top-right {
  position: absolute; top: 1rem; right: 1rem; z-index: 10; display: flex; align-items: center; gap: 0.5rem;
}
@media (min-width: 640px) { .ndh3d-top-right { top: 1.25rem; right: 1.5rem; } }
.ndh3d-btn {
  display: inline-flex; align-items: center; gap: 0.375rem; min-height: 38px; padding: 0.375rem 0.75rem;
  cursor: pointer; font-family: var(--ndh-font-body); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap;
}
.ndh3d-btn svg { width: 14px; height: 14px; }
.ndh3d-btn-primary { border: 1px solid var(--ndh-cyan); background: var(--ndh-cyan); color: #041014; transition: background 0.2s; }
.ndh3d-btn-primary:hover { background: var(--ndh-cyan-bright); }
.ndh3d-btn-primary span { display: none; }
@media (min-width: 640px) { .ndh3d-btn-primary span { display: inline; } }
.ndh3d-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 38px;
  cursor: pointer; border: 1px solid #1d323d; background: rgba(7, 13, 17, 0.95); color: #cde0e8;
  transition: border-color 0.2s, color 0.2s;
}
.ndh3d-icon-btn:hover { border-color: var(--ndh-cyan-bright); color: #ffffff; }
.ndh3d-icon-btn svg { width: 16px; height: 16px; }
.ndh3d-capture-notice {
  position: absolute; top: 4rem; right: 1rem; z-index: 20; opacity: 0; pointer-events: none;
  border: 1px solid var(--ndh-cyan-bright); background: #061218; padding: 0.375rem 0.75rem;
  font-family: var(--ndh-font-mono); font-size: 0.72rem; color: #cef4fc;
  transition: opacity 0.25s;
}
@media (min-width: 640px) { .ndh3d-capture-notice { right: 1.5rem; } }
.ndh3d-capture-notice.ndh3d-show { opacity: 1; }

.ndh3d-dock-wrap {
  position: absolute; left: 0; right: 0; bottom: 1rem; z-index: 10;
  display: flex; flex-direction: column; align-items: center; padding: 0 0.75rem; pointer-events: none;
}
.ndh3d-dock-toggle {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 0.375rem; min-height: 32px;
  padding: 0.25rem 0.875rem; cursor: pointer; border: 1px solid #1c303b; border-bottom: 0;
  background: rgba(7, 14, 19, 0.96); font-family: var(--ndh-font-mono); font-size: 11px;
  letter-spacing: 0.05em; text-transform: uppercase; color: #a7c4d1;
  transition: border-color 0.2s, color 0.2s;
}
.ndh3d-dock-toggle:hover { border-color: var(--ndh-cyan-bright); color: #ffffff; }
.ndh3d-dock-toggle svg { width: 14px; height: 14px; color: var(--ndh-cyan-bright); }
.ndh3d-dock {
  pointer-events: auto; width: 100%; max-width: 940px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem;
  border: 1px solid #1c303b; background: rgba(7, 14, 19, 0.96); padding: 0.625rem 0.75rem;
}
@media (min-width: 640px) { .ndh3d-dock { padding: 0.625rem 1rem; } }
.ndh3d-mode-group { display: flex; align-items: center; gap: 0.25rem; border: 1px solid #172831; background: #05090c; padding: 0.125rem; }
.ndh3d-mode-btn {
  min-height: 32px; padding: 0.25rem 0.625rem; cursor: pointer;
  font-family: var(--ndh-font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; white-space: nowrap; background: transparent; border: none; color: #8fb0be;
  transition: background 0.2s, color 0.2s;
}
.ndh3d-mode-btn:hover { color: #ffffff; }
.ndh3d-mode-btn.ndh3d-on { background: var(--ndh-cyan); color: #041014; }
.ndh3d-mode-btn:nth-child(2).ndh3d-on { background: var(--ndh-amber); color: #0b0905; }
.ndh3d-stress-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.ndh3d-stress-btn {
  min-height: 32px; padding: 0.25rem 0.625rem; cursor: pointer;
  border: 1px solid #1a2c36; background: #081016; font-family: var(--ndh-font-mono); font-size: 11px; color: #92b0bd;
  white-space: nowrap; transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.ndh3d-stress-btn:hover { border-color: #2c4b5b; color: #ffffff; }
.ndh3d-stress-btn.ndh3d-on { border-color: var(--ndh-cyan-bright); background: #0b232d; color: #ecfbff; }
.ndh3d-explode-label { display: flex; align-items: center; gap: 0.375rem; font-family: var(--ndh-font-mono); font-size: 11px; color: #96b4c2; }
.ndh3d-explode-label input[type="range"] { width: 5rem; accent-color: var(--ndh-cyan-bright); cursor: pointer; }
@media (min-width: 640px) { .ndh3d-explode-label input[type="range"] { width: 6rem; } }
.ndh3d-explode-num { min-width: 2rem; text-align: right; color: #d8eef5; font-variant-numeric: tabular-nums; }
.ndh3d-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.ndh3d-preset {
  min-height: 30px; padding: 0.25rem 0.5rem; cursor: pointer;
  border: 1px solid #182933; background: #070f14; font-family: var(--ndh-font-mono); font-size: 10px;
  letter-spacing: 0.04em; text-transform: uppercase; color: #8aa7b5; white-space: nowrap;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.ndh3d-preset:hover { border-color: #2a4756; color: #ffffff; }
.ndh3d-preset.ndh3d-on { border-color: var(--ndh-cyan-bright); background: #0b232d; color: #eefaff; }
.ndh3d-reset { min-width: 30px; min-height: 30px; }
.ndh3d-fullscreen { position: fixed; inset: 0; z-index: 60; height: 100vh; width: 100vw; }
.ndh3d-noscroll { overflow: hidden; }

/* ── Mission diagnostics (01) ───────────────────────────────────── */
.ndh-diag-grid { margin-top: 2rem; display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 1024px) { .ndh-diag-grid { grid-template-columns: 7fr 5fr; } }
.ndh-diag-cards { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .ndh-diag-cards { grid-template-columns: repeat(2, 1fr); } }
.ndh-diag-card {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 124px;
  padding: 1.25rem; text-align: left; cursor: pointer;
  border: 1px solid #18262e; background: #080e12; color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.ndh-diag-card:hover { border-color: #2a4552; }
.ndh-diag-card.ndh-diag-on { border-color: var(--ndh-cyan-bright); background: #0a1921; }
.ndh-diag-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.ndh-diag-top .ndh-num { font-family: var(--ndh-font-mono); font-size: 0.72rem; color: var(--ndh-cyan-bright); font-variant-numeric: tabular-nums; }
.ndh-diag-top .ndh-role { font-family: var(--ndh-font-mono); font-size: 11px; color: #7ea3b0; }
.ndh-diag-q { margin-top: 0.75rem; font-size: 0.875rem; font-weight: 600; line-height: 1.4; color: #d4e3ea; }
.ndh-diag-card.ndh-diag-on .ndh-diag-q { color: #ffffff; }
.ndh-diag-verdict {
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid #192b34; background: #091217; padding: 1.5rem;
}
@media (min-width: 640px) { .ndh-diag-verdict { padding: 1.75rem; } }
.ndh-diag-verdict .ndh-tag { font-family: var(--ndh-font-mono); font-size: 0.72rem; color: var(--ndh-cyan-bright); }
.ndh-diag-h3 {
  margin-top: 0.5rem; font-family: var(--ndh-font-display); font-size: 1.5rem; line-height: 1.2;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: #ffffff;
}
.ndh-diag-points { margin-top: 1.25rem; list-style: none; border-top: 1px solid #16242c; padding-top: 1rem; }
.ndh-diag-points li { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.875rem; line-height: 1.6; color: #d7e5ec; padding: 0.25rem 0; }
.ndh-diag-points li svg { margin-top: 0.125rem; width: 16px; height: 16px; flex-shrink: 0; color: var(--ndh-cyan-bright); }
.ndh-diag-actions { margin-top: 1.5rem; border-top: 1px solid #16242c; padding-top: 1.25rem; }
.ndh-diag-actions .ndh-btn { width: 100%; justify-content: center; }
@media (min-width: 640px) { .ndh-diag-actions .ndh-btn { width: auto; } }

/* ── Ecosystem: playable teaser module ──────────────────────────── */
.ndh-teaser { margin-top: 1.25rem; border: 1px solid #1c3643; background: #061117; padding: 1rem; }
.ndh-teaser-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.ndh-teaser-phase { font-family: var(--ndh-font-mono); font-size: 11px; font-weight: 600; color: var(--ndh-cyan-bright); }
.ndh-teaser-metric { font-family: var(--ndh-font-mono); font-size: 11px; color: #e6f7fc; }
.ndh-teaser-headline { margin-top: 0.5rem; font-size: 0.875rem; font-weight: 600; color: #ffffff; }
.ndh-teaser-detail { margin-top: 0.25rem; font-size: 0.72rem; line-height: 1.6; color: #9db9c6; }
.ndh-teaser-foot {
  margin-top: 0.875rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
  border-top: 1px solid #152933; padding-top: 0.75rem;
}
.ndh-teaser-dots { display: flex; align-items: center; gap: 0.375rem; }
.ndh-teaser-dot { width: 1.5rem; height: 0.375rem; background: #1a2f3a; }
.ndh-teaser-dot.ndh-teaser-dot-on { background: var(--ndh-cyan-bright); }
.ndh-teaser-btn {
  display: inline-flex; align-items: center; gap: 0.375rem; min-height: 34px; padding: 0.25rem 0.75rem; cursor: pointer;
  border: 1px solid rgba(34, 211, 238, 0.6); background: #0a212b;
  font-family: var(--ndh-font-mono); font-size: 11px; font-weight: 500; color: #d8f6fd; white-space: nowrap;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.ndh-teaser-btn:hover { border-color: var(--ndh-cyan-bright); background: #0d2d3a; color: #ffffff; }
.ndh-teaser-btn svg { width: 12px; height: 12px; color: var(--ndh-cyan-bright); }

/* ── Data gravity reality check (03) ────────────────────────────── */
.ndh-rc-grid { margin-top: 2rem; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 1024px) { .ndh-rc-grid { grid-template-columns: 5fr 7fr; } }
.ndh-rc-controls {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  border: 1px solid #192b34; background: #080f13; padding: 1.5rem;
}
.ndh-rc-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.ndh-rc-label { font-family: var(--ndh-font-mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: #9cb8c5; }
.ndh-rc-block { display: block; }
.ndh-rc-value { font-family: var(--ndh-font-display); font-size: 1.5rem; font-weight: 700; color: var(--ndh-cyan-bright); font-variant-numeric: tabular-nums; }
.ndh-rc-controls input[type="range"] { margin-top: 0.75rem; width: 100%; accent-color: var(--ndh-cyan-bright); cursor: pointer; }
.ndh-rc-scale { margin-top: 0.25rem; display: flex; justify-content: space-between; font-family: var(--ndh-font-mono); font-size: 11px; color: #6d8a97; }
.ndh-conn-group { margin-top: 0.625rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.ndh-conn-btn {
  min-height: 42px; padding: 0.5rem 0.625rem; cursor: pointer;
  border: 1px solid #1a2c36; background: #05090c; font-family: var(--ndh-font-mono); font-size: 11px; color: #92aebc;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.ndh-conn-btn:hover { border-color: #2c4957; }
.ndh-conn-btn.ndh-conn-on { border-color: var(--ndh-cyan-bright); background: #0b232d; color: #ffffff; }
.ndh-rc-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; border-top: 1px solid #16242c; padding-top: 1.25rem; }
.ndh-rc-compare { display: grid; grid-template-columns: 1fr; border: 1px solid #192b34; background: #080f13; }
@media (min-width: 768px) { .ndh-rc-compare { grid-template-columns: 1fr 1fr; } }
.ndh-rc-legacy { padding: 1.5rem; border-bottom: 1px solid #16242c; }
@media (min-width: 768px) { .ndh-rc-legacy { border-right: 1px solid #16242c; border-bottom: 0; } }
.ndh-rc-ndf { padding: 1.5rem; background: #0a151b; }
.ndh-rc-tag { font-family: var(--ndh-font-mono); font-size: 0.72rem; }
.ndh-rc-tag.ndh-amber { color: #e09f5a; }
.ndh-rc-tag.ndh-cyan { color: var(--ndh-cyan-bright); }
.ndh-rc-big {
  margin-top: 0.75rem; font-family: var(--ndh-font-display); font-size: 2.25rem; line-height: 1;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; font-variant-numeric: tabular-nums;
}
.ndh-rc-legacy .ndh-rc-big { color: #fbbf24; }
.ndh-rc-ndf .ndh-rc-big { color: #ffffff; }
.ndh-rc-sub { margin-top: 0.25rem; font-family: var(--ndh-font-mono); font-size: 0.72rem; color: #a89077; line-height: 1.6; }
.ndh-rc-ndf .ndh-rc-sub { color: #8db8c7; }
.ndh-rc-dl { margin-top: 1.5rem; border-top: 1px solid #1c262c; padding-top: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.ndh-rc-ndf .ndh-rc-dl { border-color: #1a333f; }
.ndh-rc-dl dt { font-family: var(--ndh-font-mono); font-size: 11px; color: #7f949e; }
.ndh-rc-ndf .ndh-rc-dl dt { color: #7ba4b3; }
.ndh-rc-dl dd { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.6; color: #f0cfb0; }
.ndh-rc-ndf .ndh-rc-dl dd { color: #eef8fb; font-weight: 500; }
.ndh-rc-ndf-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.ndh-rc-pct { font-family: var(--ndh-font-mono); font-size: 0.72rem; font-weight: 600; color: var(--ndh-cyan-bright); font-variant-numeric: tabular-nums; }

/* ── Video lab (04) ─────────────────────────────────────────────── */
.ndh-vl-head { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
@media (min-width: 1024px) { .ndh-vl-head { flex-direction: row; align-items: flex-end; } }
.ndh-vl-mode-tabs { display: flex; align-items: center; gap: 0.375rem; border: 1px solid #192b34; background: #080f13; padding: 0.375rem; align-self: flex-start; }
.ndh-vl-tab {
  min-height: 40px; padding: 0.5rem 1rem; cursor: pointer;
  font-family: var(--ndh-font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; background: transparent; border: none; color: #9cb3be; white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.ndh-vl-tab:hover { color: #ffffff; }
.ndh-vl-tab.ndh-vl-on { background: var(--ndh-cyan); color: #041014; }
.ndh-vl-presets { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.ndh-vl-presets-label { font-family: var(--ndh-font-mono); font-size: 0.72rem; color: #7d99a6; margin-right: 0.25rem; }
.ndh-vl-preset {
  min-height: 36px; padding: 0.375rem 0.75rem; cursor: pointer;
  border: 1px solid #1b2e38; background: #080f13; font-family: var(--ndh-font-mono); font-size: 0.72rem; color: #b8cfd9; white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.ndh-vl-preset:hover { border-color: var(--ndh-cyan-bright); color: #ffffff; }
.ndh-vl-grid { margin-top: 1.5rem; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 1024px) { .ndh-vl-grid { grid-template-columns: 1fr 1fr; } }
.ndh-vl-form { display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; border: 1px solid #192b34; background: #080f13; padding: 1.25rem; }
@media (min-width: 640px) { .ndh-vl-form { padding: 1.5rem; } }
.ndh-vl-field textarea {
  margin-top: 0.5rem; width: 100%; border: 1px solid #1e333e; background: #05090c; padding: 0.75rem;
  font-size: 0.875rem; line-height: 1.6; color: #eef4f7; font-family: var(--ndh-font-body); resize: vertical;
}
.ndh-vl-field textarea:focus { border-color: var(--ndh-cyan-bright); outline: none; }
.ndh-vl-field textarea::placeholder { color: #5d7a87; }
.ndh-vl-photo-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.ndh-vl-clear { display: inline-flex; align-items: center; gap: 0.25rem; cursor: pointer; background: transparent; border: none; font-family: var(--ndh-font-mono); font-size: 0.72rem; color: #9cb3be; }
.ndh-vl-clear:hover { color: #f87171; }
.ndh-vl-clear svg { width: 14px; height: 14px; }
.ndh-vl-photo-box { margin-top: 0.5rem; border: 1px dashed #233b47; background: #05090c; padding: 1rem; }
.ndh-vl-upload { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
@media (min-width: 640px) { .ndh-vl-upload { flex-direction: row; align-items: center; } }
.ndh-vl-upload-title { font-size: 0.875rem; font-weight: 500; color: #e6f0f4; }
.ndh-vl-upload-hint { margin-top: 0.125rem; font-size: 0.72rem; color: #8aa5b2; }
.ndh-vl-upload-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 40px; padding: 0.5rem 0.875rem; cursor: pointer; flex-shrink: 0;
  border: 1px solid #243d4a; background: #0a141a; font-family: var(--ndh-font-body); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; color: #e6f0f4; white-space: nowrap;
}
.ndh-vl-upload-btn:hover { border-color: var(--ndh-cyan-bright); }
.ndh-vl-upload-btn svg { width: 16px; height: 16px; color: var(--ndh-cyan-bright); }
.ndh-vl-image-ready { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .ndh-vl-image-ready { flex-direction: row; align-items: center; } }
.ndh-vl-image-ready img { width: 10rem; height: 6rem; object-fit: cover; border: 1px solid #1c323d; background: #05080a; flex-shrink: 0; }
.ndh-vl-image-meta { min-width: 0; }
.ndh-vl-ready { font-family: var(--ndh-font-mono); font-size: 0.72rem; color: var(--ndh-cyan-bright); }
.ndh-vl-image-label { margin-top: 0.25rem; font-size: 0.875rem; font-weight: 500; color: #eef4f7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ndh-vl-replace {
  margin-top: 0.5rem; display: inline-flex; align-items: center; gap: 0.375rem; min-height: 34px; padding: 0.25rem 0.75rem; cursor: pointer;
  border: 1px solid #243d4a; background: #0a1318; font-family: var(--ndh-font-mono); font-size: 0.72rem; color: #cde2eb;
}
.ndh-vl-replace:hover { border-color: var(--ndh-cyan-bright); }
.ndh-vl-replace svg { width: 14px; height: 14px; }
.ndh-vl-plates { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.375rem; }
.ndh-vl-plate {
  min-height: 32px; padding: 0.25rem 0.625rem; cursor: pointer;
  border: 1px solid #192b34; background: #070d11; font-family: var(--ndh-font-mono); font-size: 11px; color: #9bb6c2;
  transition: border-color 0.2s, color 0.2s;
}
.ndh-vl-plate:hover { border-color: var(--ndh-cyan-bright); color: #ffffff; }
.ndh-vl-options { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .ndh-vl-options { grid-template-columns: 1fr 1fr; } }
.ndh-vl-opt-group { margin-top: 0.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.ndh-vl-opt-group:last-child { grid-template-columns: repeat(3, 1fr); }
.ndh-vl-opt {
  min-height: 40px; padding: 0.25rem 0.75rem; cursor: pointer;
  border: 1px solid #1a2c36; background: #05090c; font-family: var(--ndh-font-mono); font-size: 0.72rem; color: #92aebc;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.ndh-vl-opt:hover { border-color: #2c4957; }
.ndh-vl-opt.ndh-vl-on { border-color: var(--ndh-cyan-bright); background: #0b232d; color: #ffffff; }
.ndh-vl-error { border: 1px solid #7f1d1d; background: #1f0b0b; padding: 0.75rem; font-size: 0.72rem; line-height: 1.6; color: #fecaca; }
.ndh-vl-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; border-top: 1px solid #16242c; padding-top: 1.25rem; }
.ndh-vl-meta { font-family: var(--ndh-font-mono); font-size: 11px; color: #7896a3; }
.ndh-vl-form button[disabled] { cursor: wait; opacity: 0.65; }
.ndh-vl-form button[disabled] svg { animation: ndh-spin 1s linear infinite; }
@keyframes ndh-spin { to { transform: rotate(360deg); } }
.ndh-vl-output { display: flex; flex-direction: column; justify-content: space-between; border: 1px solid #192b34; background: #080f13; padding: 1.25rem; }
@media (min-width: 640px) { .ndh-vl-output { padding: 1.5rem; } }
.ndh-vl-output-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; border-bottom: 1px solid #16242c; padding-bottom: 0.875rem; }
.ndh-vl-output-head .ndh-tag { font-family: var(--ndh-font-mono); font-size: 0.72rem; color: var(--ndh-cyan-bright); }
.ndh-vl-output-title { margin-top: 0.125rem; font-size: 0.875rem; font-weight: 600; color: #eef4f7; }
.ndh-vl-download {
  display: inline-flex; align-items: center; gap: 0.375rem; min-height: 38px; padding: 0.375rem 0.75rem; cursor: pointer; flex-shrink: 0;
  border: 1px solid #243d4a; background: #0a141a; font-family: var(--ndh-font-mono); font-size: 0.72rem; color: #dceef5;
  transition: border-color 0.2s, color 0.2s;
}
.ndh-vl-download:hover { border-color: var(--ndh-cyan-bright); color: #ffffff; }
.ndh-vl-download svg { width: 14px; height: 14px; color: var(--ndh-cyan-bright); }
.ndh-vl-output-stage { margin: 1.25rem 0; flex: 1; display: flex; align-items: center; justify-content: center; border: 1px solid #15232b; background: #05080a; padding: 1rem; min-height: 300px; }
.ndh-vl-video { width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: contain; }
.ndh-vl-video-916 { max-height: 420px; width: auto; aspect-ratio: 9 / 16; }
.ndh-vl-frame {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  border: 1px solid #1c303b; background: #070d11; padding: 1.5rem; width: 100%; max-width: 460px; aspect-ratio: 16 / 9;
}
.ndh-vl-frame-916 { width: 180px; height: 320px; aspect-ratio: auto; max-width: none; }
.ndh-vl-frame svg { width: 32px; height: 32px; color: rgba(34, 211, 238, 0.7); }
.ndh-vl-frame-title { margin-top: 0.75rem; font-family: var(--ndh-font-display); font-size: 1.125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #eef4f7; }
.ndh-vl-frame-hint { margin-top: 0.375rem; max-width: 30ch; font-size: 0.72rem; line-height: 1.6; color: #8aa5b2; }
.ndh-vl-tip { font-family: var(--ndh-font-mono); font-size: 11px; color: #73919e; }
.ndh-vl-tip-accent { color: #cde4ed; }
.ndh-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── 2-Min brief drawer ─────────────────────────────────────────── */
.ndh-drawer-overlay {
  position: fixed; inset: 0; z-index: 50; display: flex; justify-content: flex-end;
  background: rgba(3, 5, 7, 0.8);
}
.ndh-drawer {
  display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
  width: 100%; max-width: 540px; height: 100%;
  border-left: 1px solid #1f3440; background: #070d11; padding: 1.5rem;
}
@media (min-width: 640px) { .ndh-drawer { padding: 2rem; } }
.ndh-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #16242c; padding-bottom: 1.25rem; }
.ndh-drawer-head .ndh-tag { font-family: var(--ndh-font-mono); font-size: 0.72rem; color: var(--ndh-cyan-bright); }
.ndh-drawer-head h2 { margin-top: 0.375rem; font-family: var(--ndh-font-display); font-size: 1.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: #ffffff; }
.ndh-drawer-intro { margin-top: 1.25rem; font-size: 0.875rem; line-height: 1.6; color: #b2c4cd; }
.ndh-brief-points { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.ndh-brief-point { border: 1px solid #182933; background: #0a1319; padding: 1rem; }
.ndh-brief-code { font-family: var(--ndh-font-mono); font-size: 11px; color: var(--ndh-cyan-bright); }
.ndh-brief-point h3 { margin-top: 0.25rem; font-family: var(--ndh-font-display); font-size: 1.125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: #f3f8fa; }
.ndh-brief-point p { margin-top: 0.375rem; font-size: 0.72rem; line-height: 1.6; color: #a8bec9; }
.ndh-drawer-fit { margin-top: 1.5rem; border: 1px solid #19303b; background: #08141a; padding: 1rem; }
.ndh-drawer-fit .ndh-tag { font-family: var(--ndh-font-mono); font-size: 11px; color: #84b4c4; }
.ndh-drawer-fit ul { margin-top: 0.625rem; list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.ndh-drawer-fit li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.72rem; color: #dbe8ee; }
.ndh-drawer-fit li svg { margin-top: 0.125rem; width: 14px; height: 14px; flex-shrink: 0; color: var(--ndh-cyan-bright); }
.ndh-drawer-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; border-top: 1px solid #16242c; padding-top: 1.25rem; }
.ndh-drawer-continue {
  min-height: 44px; padding: 0.5rem 1rem; cursor: pointer;
  border: 1px solid #223742; background: transparent; font-family: var(--ndh-font-body); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; color: #b8cdd7; white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.ndh-drawer-continue:hover { border-color: var(--ndh-cyan-bright); color: #ffffff; }

/* ── Footer downloads ───────────────────────────────────────────── */
.ndh-footer-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
@media (min-width: 640px) { .ndh-footer-actions { align-items: flex-end; } }
.ndh-footer-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; }
.ndh-download-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 42px; padding: 0.5rem 1rem; cursor: pointer;
  border: 1px solid #233944; background: #080f13; font-family: var(--ndh-font-body); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: #dbe8ee; white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.ndh-download-btn:hover { border-color: var(--ndh-cyan-bright); color: #ffffff; }
.ndh-download-btn:disabled { cursor: wait; opacity: 0.6; }
.ndh-download-btn svg { width: 16px; height: 16px; color: var(--ndh-cyan-bright); }
.ndh-download-error { font-size: 0.72rem; color: #f87171; }
