/* =====================================================================
   Discovery Triage — Blackbird Forensics
   Design language from 01-original-design; feature explorer from 02-current-design.
   ===================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Surfaces */
  --bg: #0B0E13;
  --bg-deep: #07090D;
  --panel: #10151D;
  --panel-2: #0D1219;
  --tile: #161E29;
  --well: #0A0F16;
  --banner: #101722;

  /* Lines */
  --line: #26303D;
  --line-soft: #1B232E;
  --line-lane: #1D2530;
  --line-tile: #2A3543;

  /* Text */
  --ink: #FFFFFF;
  --text: #E8EBEF;
  --text-2: #C6CEDA;
  --sub: #AEB7C2;
  --muted: #9AA6B5;
  --dim: #8A94A3;
  --faint: #778392;
  --ghost: #5B6B7E;

  /* Signal colours */
  --blue: #4DA3FF;
  --blue-ink: #06121F;
  --blue-soft: #D8ECFF;
  --blue-line: #2C5A86;
  --blue-deep: #0E1A29;
  --blue-mute: #23405E;
  --amber: #FFB224;
  --amber-line: #4A3A10;
  --amber-soft: #FFE1A1;
  --red: #FF7A70;
  --red-text: #FF9D94;
  --red-deep: #B3402A;
  --red-line: #5A2620;
  --red-bg: #1D1416;
  --red-soft: #FFD9D4;
  --green: #57D977;
  --green-line: #1F4D2E;

  /* Paper card */
  --paper: #F2F1EC;
  --paper-ink: #10151D;
  --paper-text: #3C4450;
  --paper-dim: #6B7280;
  --paper-line: #D8D5CC;

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --win: "Segoe UI", Tahoma, system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 64px;
  --radius: 10px;

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3, .band .line, .banner .big { text-wrap: balance; }
ol, ul { padding: 0; list-style: none; }
b, strong { font-weight: 650; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: rgba(77, 163, 255, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--blue); color: var(--blue-ink); font-weight: 700; padding: 8px 14px; border-radius: 4px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Shared type ---------- */
.eyebrow {
  font-size: .75rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
  margin-bottom: 14px;
}
h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -.025em;
  font-weight: 680;
  color: var(--ink);
}
h2 {
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  font-weight: 650;
  color: var(--ink);
}
.sec-head { margin-bottom: clamp(28px, 4vw, 44px); max-width: 52rem; }

.tag {
  display: inline-block;
  font-size: .6875rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber-line);
  padding: 5px 11px;
  border-radius: 999px;
  font-weight: 500;
}

.btn, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  border-radius: 4px;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn { background: var(--blue); color: var(--blue-ink); font-weight: 800; padding: 15px 26px; }
.btn:hover { background: #6DB4FF; transform: translateY(-1px); }
.btn-outline { border: 1px solid var(--blue); color: var(--blue); font-weight: 600; padding: 9px 14px; }
.btn-outline:hover { background: var(--blue); color: var(--blue-ink); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 120px); border-top: 1px solid var(--line-soft); }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(11, 14, 19, .82);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { font-weight: 700; font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); text-decoration: none;
  padding: 6px 0; position: relative; transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--blue); border-radius: 2px; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); cursor: pointer; place-items: center; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, background-color .25s; }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0, 0, 0, .5);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: .8125rem; }
  .nav-links a.is-active::after { display: none; }
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(64px, 8vw, 104px); }
.hero h1 { margin-bottom: 18px; }
.hero-lede { font-size: clamp(1.125rem, 1.8vw, 1.375rem); font-weight: 600; color: var(--text); margin-bottom: 14px; }
.hero-sub { font-size: clamp(1rem, 1.3vw, 1.125rem); color: var(--sub); line-height: 1.65; max-width: 60ch; }

.split {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 92px minmax(0, .94fr);
  align-items: stretch;
}
.split-mid {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
  background: linear-gradient(90deg, transparent, rgba(77, 163, 255, .10), transparent);
}
.split-arrow {
  width: 54px; height: 54px; border-radius: 999px;
  background: var(--blue); color: var(--blue-ink);
  font-weight: 800; font-size: 24px;
  display: grid; place-items: center;
  animation: arrowpulse 2.2s ease-out infinite;
}
.split-lbl { font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase; color: #8FB9E8; font-weight: 700; }
@keyframes arrowpulse {
  0% { box-shadow: 0 0 0 0 rgba(77, 163, 255, .45); }
  70% { box-shadow: 0 0 0 16px rgba(77, 163, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(77, 163, 255, 0); }
}

/* ---- Windows Explorer window (their production) ---- */
.xp {
  min-width: 0;
  background: #F3F3F3; color: #1B1B1B;
  border: 1px solid #9BA3AC; border-radius: 8px; overflow: hidden;
  font-family: var(--win);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
  display: flex; flex-direction: column;
}
.xp svg { width: 16px; height: 16px; flex: none; }
.xp-title { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 8px 11px; border-bottom: 1px solid #D9D9D9; font-size: 12px; }
.xp-title .l { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-win { color: #555; letter-spacing: 9px; font-size: 12px; }
.xp-addr { display: flex; gap: 8px; align-items: center; background: #fff; padding: 7px 10px; border-bottom: 1px solid #D9D9D9; }
.xp-nav { color: #666; font-size: 14px; letter-spacing: 2px; }
.xp-path, .xp-search { border: 1px solid #C8C8C8; padding: 5px 8px; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-path { flex: 1; min-width: 0; color: #333; }
.xp-search { width: 32%; min-width: 90px; color: #888; }
.xp-cols, .xp-row { display: grid; grid-template-columns: 18px minmax(120px, 1fr) 116px 90px 52px; gap: 8px; align-items: center; padding: 0 10px; }
.xp-cols { font-size: 11px; color: #555; border-bottom: 1px solid #D9D9D9; background: #FAFAFA; padding-block: 6px; }
.xp-list { padding: 4px 0; background: #fff; flex: 1; }
.xp-row { font-size: 12px; padding-block: 4px; border-bottom: 1px solid #F0F0F0; }
.xp-row.sel { background: #E5F1FB; }
.xp-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-dim { color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-status { display: flex; justify-content: space-between; background: #F3F3F3; border-top: 1px solid #D9D9D9; padding: 6px 11px; font-size: 11px; color: #555; }

/* ---- Dashboard (your case) ---- */
.db {
  min-width: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, #141B26 0%, #0D1219 70%);
  display: flex; flex-direction: column;
}
.db-h { padding: 13px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.db-h .t { font-size: 11px; letter-spacing: .22em; color: var(--dim); }
.db-h .t b { color: var(--ink); font-weight: 650; }
.db-h .live { font-size: 10px; letter-spacing: .18em; color: var(--green); white-space: nowrap; }
.db-strip { padding: 9px 16px; border-bottom: 1px solid var(--line); font-size: 10.5px; letter-spacing: .16em; color: var(--dim); display: flex; gap: 16px; flex-wrap: wrap; }
.db-strip b { color: var(--text); }
.db-strip .blue, .db-strip .blue b { color: var(--blue); }
.db-table { padding: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; flex: 1; align-content: center; }
.db-tile { background: var(--tile); border: 1px solid var(--line-tile); border-radius: 8px; padding: 12px 13px 11px; box-shadow: 0 8px 18px rgba(0, 0, 0, .35); transition: transform .35s ease, border-color .25s; }
.db-tile:nth-child(2) { transform: rotate(.7deg); }
.db-tile:nth-child(4) { transform: rotate(-.7deg); }
.db-tile:nth-child(6) { transform: rotate(.6deg); }
.db-tile:nth-child(8) { transform: rotate(-.6deg); }
.db-tile:hover { transform: translateY(-2px) rotate(0); border-color: var(--blue-line); }
.db-tile .cat { font-size: 10px; letter-spacing: .14em; color: var(--muted); line-height: 1.35; min-height: 28px; }
.db-tile .num { font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.db-tile .sub { font-size: 11px; color: var(--faint); margin-top: 4px; line-height: 1.35; }
.db-tile.hot { border-color: var(--red-line); background: var(--red-bg); }
.db-tile.hot .num { color: var(--red); }
.db-tile.hot .cat { color: #C98A83; }
.db-tile.grey .num { color: var(--dim); }
.db-f { padding: 11px 16px; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .06em; color: var(--dim); }
.db-f b { color: var(--text); font-weight: 600; }

/* Tiles land on the table once the hero is in view */
.js .db-tile { opacity: 0; translate: 0 10px; }
.js .db.is-in .db-tile { opacity: 1; translate: 0 0; transition: opacity .5s ease, translate .5s ease, transform .35s ease, border-color .25s; }
.js .db.is-in .db-tile:nth-child(1) { transition-delay: .05s; }
.js .db.is-in .db-tile:nth-child(2) { transition-delay: .1s; }
.js .db.is-in .db-tile:nth-child(3) { transition-delay: .15s; }
.js .db.is-in .db-tile:nth-child(4) { transition-delay: .2s; }
.js .db.is-in .db-tile:nth-child(5) { transition-delay: .25s; }
.js .db.is-in .db-tile:nth-child(6) { transition-delay: .3s; }
.js .db.is-in .db-tile:nth-child(7) { transition-delay: .35s; }
.js .db.is-in .db-tile:nth-child(8) { transition-delay: .4s; }
.js .db.is-in .db-tile:nth-child(9) { transition-delay: .55s; }

/* ---- Banner ---- */
.banner { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; background: var(--banner); }
.banner .big { font-size: clamp(1.25rem, 2.2vw, 1.625rem); font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.banner .small { font-size: 1rem; color: var(--sub); margin-top: 6px; }
.banner .tag { margin-top: 14px; }

/* ---- Paper card ---- */
.paper {
  margin-top: 28px;
  background: var(--paper); color: var(--paper-ink);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.paper .pe { font-size: .6875rem; letter-spacing: .26em; text-transform: uppercase; color: var(--paper-dim); margin-bottom: 20px; }
.pstats, .pprin { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 32px); }
.pstat .n { font-size: clamp(2.5rem, 4.4vw, 3.5rem); font-weight: 750; line-height: 1; letter-spacing: -.03em; color: var(--paper-ink); font-variant-numeric: tabular-nums; }
.pstat .n.red { color: var(--red-deep); }
.pstat .c { font-size: .9375rem; color: var(--paper-text); line-height: 1.45; margin-top: 10px; }
.prule { height: 1px; background: var(--paper-line); margin: 28px 0 24px; }
.pprin .pn { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.0625rem; color: var(--paper-ink); }
.pprin .pn i { font-style: normal; width: 26px; height: 26px; flex: none; border: 1.5px solid var(--paper-ink); border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.pprin .pc { font-size: .9375rem; color: var(--paper-text); line-height: 1.55; margin-top: 8px; }
.paper .pf { font-size: .8125rem; color: var(--paper-dim); margin-top: 22px; }

/* =====================================================================
   01 — BASELINE BAND
   ===================================================================== */
.band { text-align: center; }
.band .line { font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.32; font-weight: 650; letter-spacing: -.02em; color: var(--ink); max-width: 26ch; margin: 0 auto; }
.band .line .dim { color: var(--dim); }
.band .sub { margin: 22px auto 0; font-size: clamp(1rem, 1.4vw, 1.1875rem); color: var(--sub); line-height: 1.65; max-width: 54ch; }
.band .sub b { color: var(--text); }
.bluerule { width: 56px; height: 2px; background: var(--blue); margin: 32px auto 0; }

/* =====================================================================
   02 — FEATURE EXPLORER  (names | description | screen)
   ===================================================================== */
.fx {
  --fx-dur: 12s;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}
.fx-glow {
  position: absolute; z-index: -1;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 163, 255, .13), transparent 65%);
  top: -160px; right: -120px;
  transition: top 1.1s ease, right 1.1s ease;
  pointer-events: none;
}
.fx-grid {
  display: grid;
  grid-template-columns: 208px 300px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
}

/* Names column */
.fx-names { grid-column: 1; grid-row: 1 / 3; display: flex; flex-direction: column; border-right: 1px solid var(--line-soft); }
.nm {
  flex: 1;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 18px 22px; min-height: 76px;
  background: none; border: 0; border-bottom: 1px solid var(--line-soft);
  text-align: left; cursor: pointer;
  transition: background-color .25s;
}
.nm:last-child { border-bottom: 0; }
.nm:hover { background: rgba(255, 255, 255, .015); }
.nm .n { font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ghost); font-weight: 700; transition: color .3s; }
.nm .t { font-size: 1.125rem; font-weight: 650; color: var(--dim); margin-top: 4px; line-height: 1.3; letter-spacing: -.01em; transition: color .3s; }
.nm:hover .t { color: #D7DEE7; }
.nm[aria-selected="true"] .t { color: var(--ink); }
.nm[aria-selected="true"] .n { color: var(--blue); }
.nm:focus-visible { outline-offset: -3px; }
.nm .prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--blue); }
.nm[aria-selected="true"] .prog { animation: fxprog var(--fx-dur) linear forwards; }
.fx.is-paused .nm .prog { animation-play-state: paused; }
.fx.is-manual .nm[aria-selected="true"] .prog { animation: none; width: 100%; }
@keyframes fxprog { from { width: 0; } to { width: 100%; } }
.nm .rip { position: absolute; border-radius: 50%; background: rgba(77, 163, 255, .35); transform: scale(0); animation: fxrip .6s ease-out forwards; pointer-events: none; }
@keyframes fxrip { to { transform: scale(3); opacity: 0; } }

/* Panels: every panel occupies the same cell, so the explorer never changes height */
.fx-panel {
  grid-column: 2 / 4; grid-row: 1 / 3;
  display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid;
  visibility: hidden; opacity: 0;
}
.fx-panel.is-on { visibility: visible; opacity: 1; }
.fx-desc { grid-column: 1; grid-row: 1 / 3; padding: 30px 28px; border-right: 1px solid var(--line-soft); min-width: 0; }
.fx-screen { grid-column: 2; grid-row: 1; padding: 20px 20px 6px; min-width: 0; container-type: inline-size; display: flex; flex-direction: column; justify-content: center; }
.fx-panel.is-on .fx-desc { animation: fxswap .55s ease; }
.fx-panel.is-on .fx-screen { animation: fxvin .6s ease; }
@keyframes fxswap { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fxvin { from { opacity: 0; transform: translateX(26px) scale(.985); } to { opacity: 1; transform: none; } }

.fx-desc .no { font-size: .6875rem; letter-spacing: .24em; text-transform: uppercase; color: var(--blue); font-weight: 700; }
.fx-desc h3 { font-size: clamp(1.5rem, 2.2vw, 1.75rem); line-height: 1.22; letter-spacing: -.015em; color: var(--ink); margin-top: 14px; font-weight: 700; }
.fx-desc p:not(.no) { font-size: .9375rem; color: var(--muted); line-height: 1.68; margin-top: 14px; }
.fx-desc b { color: var(--text); }
.fx-desc .tag { margin-top: 18px; }
.fx-desc .pull { margin-top: 22px; border-left: 3px solid var(--blue); padding: 2px 0 2px 14px; color: var(--text); }
.fx-desc .pull.red { border-left-color: var(--red); }
.fx-desc .pull b { color: var(--ink); }

/* Controls */
.fx-ctrl { grid-column: 3; grid-row: 2; position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 12px 20px 18px; }
.dots { display: flex; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 999px; background: #2A3542; border: 0; padding: 0; cursor: pointer; transition: width .25s, background-color .25s; }
.dot.on { width: 26px; background: var(--blue); }
.arrow { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-size: 17px; cursor: pointer; transition: border-color .25s, color .25s, transform .25s; }
.arrow:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }

/* Tablet: names become a strip across the top */
@media (max-width: 1099px) {
  .fx-grid { grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
  .fx-names { grid-column: 1 / -1; grid-row: 1; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line-soft); scrollbar-width: none; }
  .fx-names::-webkit-scrollbar { display: none; }
  .nm { flex: none; min-height: 0; padding: 16px 20px; border-bottom: 0; border-right: 1px solid var(--line-soft); white-space: nowrap; }
  .nm:last-child { border-right: 0; }
  .fx-panel { grid-column: 1 / -1; grid-row: 2 / 4; }
  .fx-ctrl { grid-column: 2; grid-row: 3; }
}

/* Phone: one column, panels stack and only the active one is shown */
@media (max-width: 759px) {
  .fx-grid { display: block; }
  .fx-panel { display: none; }
  .fx-panel.is-on { display: block; }
  .fx-desc { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 24px 20px; }
  .fx-screen { padding: 16px 12px 4px; }
  .nm { padding: 14px 16px; }
  .nm .t { font-size: 1rem; }
}

/* No JavaScript: show every feature, one after another */
html:not(.js) .fx-grid { display: block; }
html:not(.js) .fx-names, html:not(.js) .fx-ctrl { display: none; }
html:not(.js) .fx-panel { visibility: visible; opacity: 1; display: grid; grid-template-columns: 330px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
html:not(.js) .fx-desc, html:not(.js) .fx-screen { grid-row: auto; grid-column: auto; padding-bottom: 24px; }
@media (max-width: 759px) { html:not(.js) .fx-panel { display: block; } }

/* =====================================================================
   SCREENS — product views shown inside the explorer
   ===================================================================== */
.panel { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); overflow: hidden; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-h .t { font-size: 10.5px; letter-spacing: .2em; color: var(--dim); }
.panel-h .t b { color: var(--ink); font-weight: 650; }
.tabs { display: flex; gap: 6px; }
.tab { font-size: 9.5px; letter-spacing: .14em; padding: 5px 10px; border: 1px solid var(--line-tile); border-radius: 999px; color: var(--dim); }
.tab.on { color: var(--blue-ink); background: var(--blue); border-color: var(--blue); font-weight: 800; }

.chip { display: inline-block; font-size: 9px; letter-spacing: .12em; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-tile); color: var(--muted); }
.chip.amber { color: var(--amber); border-color: #57481A; }
.chip.blue { color: var(--blue); border-color: var(--blue-mute); }
.pill { font-size: 9px; letter-spacing: .12em; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.pill.on { color: var(--green); border: 1px solid var(--green-line); }
.pill.mark { color: var(--blue); border: 1px solid var(--blue-mute); }
.pill.off { color: var(--dim); border: 1px solid var(--line-tile); }

/* ---- Timeline ---- */
.tl { --tl-row: 30px; --tl-gap: 9px; --tl-ruler: 18px; --tl-pops: 172px; display: grid; grid-template-columns: 128px minmax(0, 1fr); column-gap: 12px; padding: 14px 16px 12px; }
.tl-names { padding-top: var(--tl-ruler); }
.tname { height: var(--tl-row); margin-top: var(--tl-gap); display: flex; flex-direction: column; justify-content: center; align-items: flex-end; text-align: right; font-size: 9.5px; letter-spacing: .13em; color: var(--muted); line-height: 1.35; }
.tname b { color: var(--text); font-size: 10px; font-weight: 650; }
.tl-lanes { position: relative; min-width: 0; }
.ruler { position: relative; height: var(--tl-ruler); border-bottom: 1px solid var(--line); }
.ruler span { position: absolute; left: calc(var(--x) * 1%); transform: translateX(-50%); font-family: var(--mono); font-size: 9.5px; color: var(--faint); }
.ruler span:last-child { transform: translateX(-80%); }
.lane { position: relative; height: var(--tl-row); margin-top: var(--tl-gap); background: var(--well); border: 1px solid var(--line-lane); border-radius: 4px; }
.seg, .gap { position: absolute; top: 4px; bottom: 4px; left: calc(var(--s) * 1%); width: calc((var(--e) - var(--s)) * 1%); border-radius: 3px; }
.seg { background: repeating-linear-gradient(90deg, #1D4E79 0 14px, #256396 14px 15px); border: 1px solid #2C5A86; }
.seg.amber { background: repeating-linear-gradient(90deg, #6B5312 0 14px, #82661A 14px 15px); border-color: #8A6D1D; }
.seg.audio { background: repeating-linear-gradient(90deg, #3A2E5C 0 5px, #473873 5px 6px); border-color: #57488A; }
.seg.ghost { background: transparent; border: 1px dashed #3A4552; }
.gap { background: repeating-linear-gradient(45deg, rgba(255, 90, 80, .35) 0 6px, rgba(255, 90, 80, .12) 6px 12px); border: 1px solid var(--red-deep); }
.gap-label { position: absolute; top: 50%; right: calc(35% + 8px); transform: translateY(-50%); font-size: 9px; letter-spacing: .14em; color: var(--red-text); white-space: nowrap; }

.playhead {
  position: absolute; z-index: 3;
  top: calc(var(--tl-ruler) - 4px); bottom: calc(var(--tl-pops) - 6px);
  left: 75%; width: 2px; margin-left: -1px;
  background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .55);
  animation: tl-play 20s linear infinite;
}
.cursor { position: absolute; top: -6px; left: -1px; z-index: 4; }
.pops { position: relative; height: var(--tl-pops); margin-top: 16px; }
.pop {
  position: absolute; top: 0; width: 196px;
  left: clamp(0px, calc(var(--x) * 1% - 98px), calc(100% - 196px));
  background: var(--panel-2); border: 1px solid var(--blue); border-radius: 7px; overflow: hidden;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .55);
  opacity: 0;
  pointer-events: none;
}
.pop.red { border-color: var(--red-deep); }
.pop.p1 { animation: tl-p1 20s linear infinite; }
.pop.p2 { animation: tl-p2 20s linear infinite; }
.pop.p3 { animation: tl-p3 20s linear infinite; }
.frame { height: 84px; position: relative; background-size: cover; background-position: center; }
.frame.empty { background: #170B0B; display: grid; place-items: center; color: var(--red); font-size: 10px; letter-spacing: .18em; text-align: center; line-height: 1.7; }
.frame .ftc { position: absolute; left: 8px; bottom: 6px; font-family: var(--mono); font-size: 10px; color: var(--blue-soft); text-shadow: 0 1px 2px #000; }
.frame .fcam { position: absolute; left: 8px; top: 6px; font-size: 8.5px; letter-spacing: .14em; color: #C6D0DC; text-shadow: 0 1px 2px #000; }
.popbody { padding: 8px 10px 9px; font-size: 11px; color: var(--text-2); line-height: 1.45; }
.popbody b { color: var(--ink); display: block; font-size: 11.5px; }
.pop.red .popbody b { color: var(--red-text); }

/* Playhead dwells on each moment while its card is up; ends sweeping the gap. */
@keyframes tl-play {
  0% { left: 30%; opacity: 0; }
  3% { opacity: 1; }
  6% { left: 33.6%; }
  28% { left: 35%; }
  36% { left: 59.6%; }
  58% { left: 61.4%; }
  65% { left: 65%; }
  92% { left: 85%; opacity: 1; }
  97% { left: 85%; opacity: 0; }
  100% { left: 30%; opacity: 0; }
}
@keyframes tl-p1 { 0%, 5% { opacity: 0; transform: translateY(6px); } 7%, 27% { opacity: 1; transform: none; } 29%, 100% { opacity: 0; transform: none; } }
@keyframes tl-p2 { 0%, 36% { opacity: 0; transform: translateY(6px); } 38%, 57% { opacity: 1; transform: none; } 59%, 100% { opacity: 0; transform: none; } }
@keyframes tl-p3 { 0%, 65% { opacity: 0; transform: translateY(6px); } 67%, 92% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: none; } }

@container (max-width: 520px) {
  .tl { grid-template-columns: 84px minmax(0, 1fr); column-gap: 8px; padding-inline: 10px; }
  .tname { font-size: 8px; letter-spacing: .08em; }
  .tname b { font-size: 9px; }
  .gap-label { display: none; }
  .pop { width: 170px; left: clamp(0px, calc(var(--x) * 1% - 85px), calc(100% - 170px)); }
  .ruler span:nth-child(even) { display: none; }
}

/* ---- People ---- */
.cast { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; padding: 14px; }
.actor { background: var(--tile); border: 1px solid var(--line); border-radius: 8px; padding: 14px; transition: border-color .25s, transform .25s; }
.actor:hover { border-color: var(--blue-line); transform: translateY(-1px); }
.actor-top { display: flex; gap: 11px; align-items: center; margin-bottom: 10px; }
.actor-top > span:last-child { display: flex; flex-direction: column; }
.mono { width: 40px; height: 40px; flex: none; border-radius: 999px; background: #1E3A5C; border: 1px solid var(--blue); color: var(--blue-soft); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.mono.red { background: #3D1713; border-color: var(--red); color: var(--red-soft); }
.mono.amber { background: #3A2E0D; border-color: var(--amber); color: var(--amber-soft); }
.mono.grey { background: #232B36; border-color: #55606E; color: var(--text-2); }
.aname { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.arole { font-size: 9.5px; letter-spacing: .18em; color: var(--dim); margin-top: 4px; }
.astats { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.astats b { color: var(--text); }
.afiles { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 10px; letter-spacing: .14em; color: var(--blue); }
@container (max-width: 480px) { .cast { grid-template-columns: 1fr; } }

/* ---- Video & transcript ---- */
.vsplit { display: flex; gap: 12px; align-items: stretch; }
.vcol { flex: 1.05; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.vid { container-type: inline-size; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #05070A; display: flex; flex-direction: column; }
.screen { position: relative; aspect-ratio: 16 / 9; background-size: cover; background-position: center; }
.cam { position: absolute; top: 10px; left: 12px; font-size: 9.5px; letter-spacing: .18em; color: #BFE0FF; text-shadow: 0 1px 2px #000; }
.rec { position: absolute; top: 10px; right: 12px; font-size: 9.5px; letter-spacing: .16em; color: var(--red); animation: blink 1.6s infinite; }
.tc { position: absolute; right: 12px; bottom: 10px; font-family: var(--mono); font-size: 11px; color: var(--blue-soft); text-shadow: 0 1px 2px #000; }
.silent { position: absolute; left: 12px; bottom: 10px; font-size: 9.5px; letter-spacing: .16em; color: var(--amber); border: 1px solid var(--amber-line); background: rgba(10, 10, 5, .6); padding: 4px 9px; border-radius: 999px; }
.playb { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 50px; height: 50px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(5, 8, 12, .45); display: grid; place-items: center; }
.playb::after { content: ""; border-left: 14px solid rgba(255, 255, 255, .9); border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.vbar { height: 30px; background: var(--panel-2); border-top: 1px solid var(--line); display: flex; align-items: center; padding: 0 12px; gap: 10px; }
.vtrack { flex: 1; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.vfill { height: 100%; background: var(--blue); animation: prog 14s linear infinite; }
.vbar .bt { font-family: var(--mono); font-size: 10px; color: var(--dim); white-space: nowrap; }
.tr { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); overflow: hidden; display: flex; flex-direction: column; }
.tr-h { padding: 10px 13px; border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: .18em; color: var(--dim); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tr-h b { color: var(--ink); font-weight: 650; }
.tr-h .nc { color: var(--green); white-space: nowrap; }
.lines { padding: 8px 6px; flex: 1; }
.tline { padding: 6px 10px; border-radius: 5px; animation: hl 14s linear infinite; }
.tline.d2 { animation-delay: 3.5s; }
.tline.d3 { animation-delay: 7s; }
.tline.d4 { animation-delay: 10.5s; }
.tline .lt { font-family: var(--mono); font-size: 10px; color: var(--faint); }
.tline .ls { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: var(--blue); }
.tline .ls.e { color: var(--amber); }
.tline .lx { font-size: 13px; color: var(--text); line-height: 1.45; }
.es { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: var(--panel); }
.es .eh { font-size: 9.5px; letter-spacing: .18em; color: var(--dim); margin-bottom: 5px; }
.es .ex { font-size: 13px; color: var(--text); line-height: 1.45; font-style: italic; }
.es .ex2 { font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 3px; }
.es .chip { margin-top: 8px; }
@keyframes prog { 0% { width: 5%; } 100% { width: 95%; } }
@keyframes hl { 0%, 4% { background: rgba(77, 163, 255, .17); } 24% { background: rgba(77, 163, 255, .17); } 30%, 100% { background: transparent; } }
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .15; } }
@container (max-width: 520px) { .vsplit { flex-direction: column; } }

/* ---- Sandbox ---- */
.sbx { display: flex; gap: 14px; align-items: flex-start; padding: 14px; }
.sbx-view { flex: 1.15; min-width: 0; }
.sbx-file { margin-top: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--ink); letter-spacing: .02em; }
.sbx-run { margin-top: 4px; display: flex; align-items: center; gap: 7px; font-size: 9.5px; letter-spacing: .16em; color: var(--green); }
.sbx-dot { width: 7px; height: 7px; border-radius: 99px; background: var(--green); box-shadow: 0 0 6px rgba(87, 217, 119, .6); animation: blink 1.6s infinite; }
.sbx-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.sbx-b { background: var(--tile); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }
.sbx-b dt { font-size: 10px; letter-spacing: .18em; color: var(--blue); margin-bottom: 4px; }
.sbx-b dd { margin: 0; font-size: 12px; color: var(--text-2); line-height: 1.45; }
.sbx-b dd.chips { margin-top: 2px; }
.sbx-b.out { border-color: var(--blue-line); background: var(--blue-deep); }
.sbx-foot { padding: 11px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text); }
.sbx-foot b { color: var(--ink); }
@container (max-width: 540px) { .sbx { flex-direction: column; align-items: stretch; } }

/* ---- Mobile companion ---- */
.mrow { display: flex; gap: 16px; align-items: flex-start; }
.phone { width: 244px; flex: none; border: 1px solid #39434F; border-radius: 28px; background: #05070A; padding: 8px; box-shadow: 0 16px 34px rgba(0, 0, 0, .5); }
.pscreen { border-radius: 21px; background: var(--panel-2); overflow: hidden; min-height: 440px; display: flex; flex-direction: column; }
.notch { height: 16px; display: flex; justify-content: center; align-items: center; }
.notch i { width: 56px; height: 4px; border-radius: 2px; background: var(--line); display: block; }
.app-h { padding: 8px 14px 10px; border-bottom: 1px solid var(--line); }
.app-h .a1 { font-size: 9px; letter-spacing: .2em; color: var(--dim); }
.app-h .a2 { font-size: 15.5px; font-weight: 750; color: var(--ink); margin-top: 2px; }
.sync-line { padding: 7px 14px; border-bottom: 1px solid var(--line); font-size: 10px; color: var(--green); display: flex; justify-content: space-between; }
.sync-line span:last-child { color: var(--faint); }
.psec { padding: 11px 14px 2px; font-size: 9px; letter-spacing: .2em; color: var(--dim); }
.pitem { margin: 7px 10px 0; background: var(--tile); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; }
.pitem .it { font-size: 12px; font-weight: 650; color: var(--ink); line-height: 1.35; }
.pitem .is { font-size: 10.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.pitem.red { border-color: var(--red-line); background: var(--red-bg); }
.pitem.red .it { color: var(--red-text); }
.chips { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
.pnote { margin: 9px 10px 0; background: var(--banner); border: 1px dashed var(--line-tile); border-radius: 8px; padding: 9px 11px; font-size: 11px; color: var(--text-2); line-height: 1.5; }
.pnote b { color: var(--amber); font-size: 9px; letter-spacing: .16em; display: block; margin-bottom: 3px; }
.app-f { margin-top: auto; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 9.5px; letter-spacing: .14em; color: var(--faint); display: flex; justify-content: space-between; }
.mside { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cloud { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cloud-h { padding: 11px 13px; border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: .18em; color: var(--dim); }
.cloud-h b { color: var(--ink); font-weight: 650; }
.srow { padding: 8px 13px; border-bottom: 1px solid var(--line-lane); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.srow:last-child { border-bottom: 0; }
.srow .sn { font-size: 12.5px; color: var(--text); line-height: 1.4; }
.srow .ss { font-size: 10.5px; color: var(--faint); line-height: 1.4; }
.mpoints { display: flex; flex-direction: column; gap: 8px; }
.mpoint { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }
.mpoint .ph { font-size: 10px; letter-spacing: .18em; color: var(--blue); margin-bottom: 4px; }
.mpoint .pt { font-size: 12px; color: var(--text-2); line-height: 1.45; }
.mpoint .pt b { color: var(--ink); }
@container (max-width: 560px) { .mrow { flex-direction: column; align-items: stretch; } .phone { margin-inline: auto; } }

/* ---- Map ---- */
.maprow { display: flex; gap: 14px; align-items: stretch; }
.mapbox { flex: 1.5; min-width: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--well); display: flex; flex-direction: column; }
.mapbox svg { width: 100%; height: auto; flex: 1; }
.map-h { padding: 10px 13px; border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: .18em; color: var(--dim); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.map-h b { color: var(--ink); font-weight: 650; }
.map-h .off { color: var(--green); white-space: nowrap; }
.legend { display: flex; gap: 14px; padding: 9px 13px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--muted); flex-wrap: wrap; }
.legend .swatch { display: inline-block; width: 8px; height: 8px; border-radius: 99px; margin-right: 6px; cursor: default; }
.mapbox .route { animation: march 1.4s linear infinite; }
.mapbox .pulse { transform-box: fill-box; transform-origin: center; animation: pinpulse 2.4s ease-out infinite; }
@keyframes march { to { stroke-dashoffset: -16; } }
@keyframes pinpulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.places { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.place { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; transition: border-color .25s, background-color .25s; }
.place.red { border-color: var(--red-line); background: var(--red-bg); }
.place .pl { width: 100%; display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: none; border: 0; text-align: left; cursor: pointer; border-radius: 8px; }
.place .pl:focus-visible { outline-offset: -2px; }
.js .place:not(.is-open):hover { border-color: var(--line-tile); }
.place .pbody { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s ease; }
.place .pbody > div { overflow: hidden; padding: 0 13px 11px; }
.js .place:not(.is-open) .pbody { grid-template-rows: 0fr; }
.js .place:not(.is-open) .pbody > div { padding-bottom: 0; }
.js .place.is-open:not(.red) { border-color: var(--blue-line); }
.place .ps { margin-top: 0 !important; }
.mpin { cursor: pointer; }
.mpin circle { transition: stroke-width .2s; }
.mpin.is-sel circle { stroke-width: 3; }
.pin { width: 24px; height: 24px; flex: none; border-radius: 999px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; border: 2px solid var(--blue); color: var(--blue-soft); background: var(--blue-deep); }
.pin.red { border-color: var(--red); color: var(--red-soft); background: #221114; }
.pin.amber { border-color: var(--amber); color: var(--amber-soft); background: #1D1807; }
.pin.grey { border-color: #55606E; color: var(--text-2); background: #161C24; }
.place .pt { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.place.red .pt { color: var(--red-text); }
.place .ps { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-top: 6px; }
.place .psrc { font-family: var(--mono); font-size: 9.5px; color: var(--blue); margin-top: 4px; }
.place.red .psrc { color: var(--red-text); }
@container (max-width: 540px) {
  .maprow { flex-direction: column; }
  .places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 420px) { .places { grid-template-columns: 1fr; } }

/* ---- Caseload library ---- */
.lrow { display: flex; gap: 14px; align-items: flex-start; }
.lib { flex: 1.35; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); overflow: hidden; }
.lib-h { padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: .2em; color: var(--dim); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.lib-h b { color: var(--ink); font-weight: 650; }
.lib-h .n { color: var(--blue); }
.lsearch { margin: 13px 14px 4px; border: 1px solid var(--blue-line); background: var(--blue-deep); border-radius: 8px; padding: 11px 13px; display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.lsearch .q { font-size: 13px; color: var(--text); }
.lsearch .q span { color: var(--faint); }
.lsearch .go { font-size: 9.5px; letter-spacing: .14em; color: var(--blue); white-space: nowrap; }
.lhit { margin: 8px 14px 4px; font-size: 12px; color: var(--muted); line-height: 1.55; }
.lhit b { color: var(--text); }
.lhit .red { color: var(--red-text); }
.lcase { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--line-lane); }
.lcase .cn { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.lcase .cs { font-size: 11px; color: var(--faint); margin-top: 2px; line-height: 1.45; }
.lside { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.panic, .lheard { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.panic .ph { font-size: 10px; letter-spacing: .2em; color: var(--amber); margin-bottom: 8px; }
.panic .pt { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.panic .pl { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 8px; }
.panic .pl b { color: var(--text); }
.lopen { margin-top: 11px; background: var(--tile); border: 1px solid var(--blue-line); border-radius: 6px; padding: 9px 11px; font-size: 11.5px; color: var(--blue-soft); display: flex; justify-content: space-between; gap: 8px; }
.lopen span:last-child { color: var(--blue); letter-spacing: .1em; font-size: 9.5px; white-space: nowrap; }
.lheard .hh { font-size: 10px; letter-spacing: .2em; color: var(--dim); margin-bottom: 8px; }
.lq { font-size: 12.5px; color: var(--text); font-style: italic; line-height: 1.5; padding: 4px 0 4px 12px; border-left: 2px solid var(--line); }
@container (max-width: 540px) { .lrow { flex-direction: column; align-items: stretch; } }

/* =====================================================================
   03 — HOW IT WORKS
   ===================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.5vw, 30px); position: relative; overflow: hidden; }
.step::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 48px; background: var(--blue); }
.step .n { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; font-weight: 600; }
.step h3 { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; letter-spacing: -.01em; }
.step p:not(.n) { font-size: .9375rem; color: var(--muted); line-height: 1.65; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* =====================================================================
   04 — ABOUT
   ===================================================================== */
.arow { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
/* The card is pure black so the portrait's own black background and the card are one surface: no edge. */
.aid { border: 1px solid #000; border-radius: var(--radius); background: #000; padding: 24px 22px; position: sticky; top: calc(var(--nav-h) + 24px); }
.seal { width: 76px; height: 76px; border-radius: 999px; border: 2px solid var(--blue); background: var(--blue-deep); color: var(--blue-soft); display: grid; place-items: center; font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.aname2 { font-size: 1.25rem; font-weight: 750; color: var(--ink); line-height: 1.25; }
.arole2 { font-size: .875rem; color: var(--muted); line-height: 1.55; margin-top: 6px; }
.tagline { margin-top: 14px; font-size: .9375rem; font-style: italic; color: var(--blue-soft); line-height: 1.5; border-left: 2px solid var(--blue); padding-left: 11px; }
.aphoto { margin: 18px -22px 0; background: #000; }
.aphoto img { display: block; width: 100%; max-width: 460px; height: auto; margin-inline: auto; }
.achips { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; }
.achips li { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); border: 1px solid var(--line-tile); border-radius: 999px; padding: 7px 12px; text-align: center; line-height: 1.5; }
.achips b { color: var(--blue); font-weight: 600; }
.astory { max-width: 68ch; }
.astory > p { font-size: clamp(1rem, 1.3vw, 1.0625rem); color: var(--text-2); line-height: 1.75; margin-bottom: 18px; }
.astory > p b { color: var(--ink); }
.heard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0; }
.heard .hh { font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.hq { font-size: 1.0625rem; color: var(--text); line-height: 1.5; padding: 6px 0 6px 14px; border-left: 2px solid var(--line); font-style: italic; }
.pullquote { margin: 28px 0 0; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.5; color: var(--ink); font-weight: 600; letter-spacing: -.01em; border-left: 3px solid var(--blue); padding: 2px 0 2px 18px; }
.doctrine { margin-top: 22px; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.7; }
.doctrine b { color: var(--text); text-transform: none; letter-spacing: .02em; font-size: 1rem; display: block; margin-top: 4px; }
.sign { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.sign .sn { font-size: 1rem; color: var(--ink); font-weight: 650; }
.sign .st { font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
/* With the portrait the card is ~930px tall: only pin it when the whole card fits on screen. */
@media (max-height: 1060px) { .aid { position: static; } }
@media (max-width: 860px) {
  .arow { grid-template-columns: 1fr; }
  .aid { position: static; }
}

/* =====================================================================
   05 — FAQ
   ===================================================================== */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 64px); }
.faq > div { padding: 22px 0; border-top: 1px solid var(--line); }
.faq dt { font-size: 1.0625rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
.faq dd { font-size: .9375rem; color: var(--muted); line-height: 1.68; margin-top: 8px; max-width: 62ch; }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; } }

/* =====================================================================
   CTA + FOOTER
   ===================================================================== */
.cta-sec { padding-top: 0; border-top: 0; }
.cta {
  border: 1px solid var(--blue-line); border-radius: 14px;
  background: radial-gradient(90% 140% at 50% 0%, #12243A 0%, var(--blue-deep) 60%);
  padding: clamp(36px, 6vw, 64px) clamp(20px, 4vw, 48px);
  text-align: center;
}
.cta p { font-size: clamp(1rem, 1.4vw, 1.125rem); color: var(--sub); line-height: 1.6; margin: 14px auto 0; max-width: 52ch; }
.cta .btn { margin-top: 26px; }

.foot { border-top: 1px solid var(--line); padding-block: 22px 28px; }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

/* =====================================================================
   RESPONSIVE — page level
   ===================================================================== */
@media (max-width: 1000px) {
  .xp-cols, .xp-row { grid-template-columns: 18px minmax(110px, 1fr) 104px 52px; }
  .xp-cols span:nth-child(4), .xp-row span:nth-child(4) { display: none; }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-mid { flex-direction: row; padding: 18px 0; background: linear-gradient(180deg, transparent, rgba(77, 163, 255, .10), transparent); }
  .split-arrow { transform: rotate(90deg); }
}
@media (max-width: 720px) {
  .pstats, .pprin { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pprin { row-gap: 22px; }
}
@media (max-width: 560px) {
  .xp-cols, .xp-row { grid-template-columns: 18px minmax(0, 1fr) 56px; }
  .xp-cols span:nth-child(3), .xp-row span:nth-child(3) { display: none; }
  .xp-search { display: none; }
  .db-table { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 9px; }
  .db-tile.hot { grid-column: 1 / -1; }
  .db-h { flex-wrap: wrap; }
  .hero h1 br { display: none; }
}
@media (max-width: 400px) {
  .pstats { grid-template-columns: 1fr 1fr; }
  .pprin { grid-template-columns: 1fr; }
}

/* =====================================================================
   REDUCED MOTION — everything holds still on its most telling frame
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .split-arrow, .rec, .tline, .vfill, .route, .pulse, .sbx-dot { animation: none !important; }
  .vfill { width: 7%; }
  .tline.d4 { background: rgba(77, 163, 255, .17); }
  .playhead { animation: none !important; left: 75%; opacity: 1; }
  .pop { animation: none !important; }
  .pop.p3 { opacity: 1; }
  .js .db-tile { opacity: 1; translate: 0 0; }
}

/* Tag inside the narrow description column */
.fx-desc .tag { font-size: .625rem; letter-spacing: .16em; }

/* Narrow video frame: the scrub bar already carries the timecode */
@container (max-width: 400px) { .screen .tc { display: none; } }

/* =====================================================================
   PHONE: SCALE-TO-FIT FEATURE SCREENS
   On phones each screen is laid out at its natural 720px width and scaled
   down to fit (site.js sets --fit and the wrapper height), so the whole
   panel is visible end to end. The "Tap to expand" chip sits under the
   panel's bottom-right corner and opens it full size.
   Above 759px — and without JavaScript — the wrappers are inert.
   ===================================================================== */
.fx-fit, .fx-stage { display: contents; }
.fx-expand { display: none; }

@media (max-width: 759px) {
  .js .fx-fit { display: block; overflow: hidden; overflow: clip; }
  .js .fx-stage {
    display: flex; flex-direction: column;
    width: 720px; container-type: inline-size;
    transform: scale(var(--fit, 1)); transform-origin: 0 0;
  }
  .js .fx-expand {
    display: inline-flex; align-items: center; gap: 6px;
    align-self: flex-end; margin-top: 8px;
    padding: 6px 10px; border-radius: 999px;
    border: 1px solid var(--blue-mute); background: rgba(11, 14, 19, .88);
    color: var(--blue); font: 700 9.5px/1 var(--font); letter-spacing: .16em;
    cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .45);
  }
  .js .fx-expand svg { width: 11px; height: 11px; }
}

/* Full-size view: the screen at natural size, pannable */
.fx-full {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--text);
  display: none; flex-direction: column;
}
.fx-full[open] { display: flex; }
.fx-full::backdrop { background: var(--bg); }
.fx-full-h {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel-2);
}
.fx-full-t { font-size: 10px; letter-spacing: .2em; color: var(--dim); text-transform: uppercase; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-full-t b { color: var(--ink); font-weight: 650; }
.fx-close {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--line-tile); background: var(--panel); color: var(--ink);
  font: 700 11px/1 var(--font); letter-spacing: .16em; cursor: pointer;
}
.fx-close:hover, .fx-close:focus-visible { border-color: var(--blue); color: var(--blue); }
.fx-full-b { flex: 1; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 16px; }
.fx-full-b .fx-stage { display: flex; flex-direction: column; width: 720px; container-type: inline-size; transform: none; }
html.fx-locked, html.fx-locked body { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .fx-full[open] { animation: fxfull .22s ease; }
  @keyframes fxfull { from { opacity: 0; } to { opacity: 1; } }
}
