/* ============================================================
   Video Investigation · Training Console
   ============================================================ */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(../assets/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(../assets/fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(../assets/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-display: swap; src: url(../assets/fonts/ibm-plex-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(../assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(../assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }
:root {
  /* palette taken from the Conntour launch video: pure black, white type, neutral silver accents.
     The electric violet is used sparingly: nav mark, progress line, the word "talk". */
  --bg: #000;
  --bg-2: #0a0a0b;
  --panel: rgba(17, 17, 19, 0.92);
  --panel-solid: #111113;
  --field: #1b1b1e;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --dim: #5c5c61;
  --violet: #5200ff;
  --violet-2: #3d6bff;
  --violet-grad: linear-gradient(100deg, #5200ff 0%, #6f3dff 45%, #3d6bff 100%);
  --accent: #cfcfd4;
  --accent-soft: rgba(255, 255, 255, 0.08);
  --grad: linear-gradient(100deg, #ffffff 0%, #b4b4bb 100%);
  --gold: #a9a9b0;
  --red: #ff4b55;
  --orange: #ffa62b;
  --green: #2ff0a0;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --nav-h: 56px;
  --r: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }

/* subtle grid + vignette behind everything */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.04), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 48px;
  opacity: 0.22;
}

.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold);
}
.muted { color: var(--muted); }

/* ---------------- NAV ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 50;
  display: flex; align-items: center; gap: 24px; padding: 0 24px;
  background: rgba(12, 12, 13, 0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .brand { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-weight: 600; font-size: 12.5px; letter-spacing: 0.14em; color: var(--muted); white-space: nowrap; }
.nav .brand .mark { width: 22px; height: 22px; border: 1.5px solid var(--gold); border-radius: 50%; position: relative; }
.nav .brand .mark::after { content: ""; position: absolute; inset: 5px; background: var(--gold); border-radius: 50%; }
.nav ol { display: flex; gap: 4px; list-style: none; margin: 0 auto; padding: 0; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 6px;
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--muted); text-decoration: none; white-space: nowrap;
}
.nav a span { color: var(--dim); margin-right: 6px; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav a.active { color: var(--accent); background: var(--accent-soft); }
.nav a.active span { color: var(--accent); }
.nav .class-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; color: var(--gold); border: 1px solid rgba(200, 168, 94, 0.4); padding: 4px 8px; border-radius: 3px; white-space: nowrap; }
.nav .progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--gold); }

/* ---------------- SECTIONS ---------------- */
section.slide { position: relative; min-height: 100vh; padding: calc(var(--nav-h) + 48px) 6vw 72px; }
.section-head { max-width: 900px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; margin: 10px 0 12px; font-weight: 700; letter-spacing: -0.01em; }
.section-head p { font-size: 18px; color: var(--muted); line-height: 1.6; margin: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 6px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03);
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
  transition: all 0.2s ease; text-decoration: none; color: var(--text);
}
.btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn.primary { border-color: var(--accent); color: #111; background: var(--accent); font-weight: 600; }
.btn.primary:hover { box-shadow: 0 0 24px rgba(216, 210, 196, 0.45); color: #111; }
.btn.big { padding: 18px 30px; font-size: 15px; }
.next-row { display: flex; justify-content: flex-end; margin-top: 36px; }

/* ---------------- 01 · INTRO ---------------- */
#intro { display: grid; place-items: center; text-align: center; overflow: hidden; }
#intro .scan { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#intro .scan::after {
  content: ""; position: absolute; left: 0; right: 0; height: 160px;
  background: linear-gradient(180deg, transparent, rgba(216, 210, 196, 0.07), transparent);
  animation: scan 6s linear infinite;
}
@keyframes scan { from { top: -160px; } to { top: 100%; } }
.intro-rings { position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; transform: translate(-50%, -50%); pointer-events: none; opacity: 0.55; }
.intro-rings circle { fill: none; stroke: var(--line-2); }
.intro-rings .sweep { transform-origin: 450px 450px; animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.intro-inner { position: relative; max-width: 1100px; }
.intro-inner h1 {
  font-size: clamp(44px, 7vw, 104px); line-height: 0.98; margin: 18px 0 10px;
  font-weight: 700; letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff 30%, #b9b5ab); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intro-inner h1 em { font-style: normal; font-weight: 400; color: var(--muted); -webkit-text-fill-color: #a9a59b; }
.intro-inner .sub { font-size: clamp(18px, 2vw, 26px); color: var(--muted); letter-spacing: 0.02em; margin-bottom: 44px; }
.intro-meta { display: flex; justify-content: center; gap: 36px; margin-top: 56px; font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0.18em; text-transform: uppercase; }
.intro-meta b { display: block; color: var(--text); font-weight: 500; margin-top: 6px; }

/* ---------------- MAP ---------------- */
.ops { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: stretch; }
.map-frame {
  position: relative; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden;
  background: #0e0e0f; aspect-ratio: 16 / 9;
}
.map-frame svg { width: 100%; height: 100%; display: block; }
.map-frame .corner { position: absolute; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); pointer-events: none; }
.map-frame .corner.tl { top: 12px; left: 14px; }
.map-frame .corner.tr { top: 12px; right: 14px; text-align: right; }
.map-frame .corner.bl { bottom: 12px; left: 14px; }
.map-frame .corner.br { bottom: 12px; right: 14px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend svg { width: 16px; height: 16px; }

/* map image already prints its own title, compass and legend */
.map-frame.has-img .corner.tl, .map-frame.has-img .corner.tr, .map-frame.has-img .corner.bl { display: none; }
.map-frame.has-img .corner.br { right: 24%; }

.cam { cursor: pointer; --cat: var(--accent); }
.cat-perimeter { --cat: #4d9bff; }
.cat-gate { --cat: #ff9a3c; }
.cat-area { --cat: #4ee39a; }
.cat-road { --cat: #e9e9e6; }
.cam .fov { fill: rgba(216, 210, 196, 0.10); stroke: none; transition: fill 0.2s; }
.has-img .cam .fov { fill: transparent; }
.cam .dot { fill: #0b0d11; stroke: var(--cat); stroke-width: 1.8; transition: all 0.2s; }
.cam .num { font-family: var(--mono); font-size: 8.5px; font-weight: 500; fill: #fff; pointer-events: none; letter-spacing: -0.02em; }
.map-legend .lg-dot { fill: #0b0d11; stroke: var(--cat); stroke-width: 2; }
.cam:hover .dot { fill: var(--cat); }
.cam:hover .num { fill: #111; }
.cam:hover .fov, .has-img .cam:hover .fov { fill: rgba(216, 210, 196, 0.28); }
.cam.seen .dot { stroke-dasharray: 2 2; }
.cam.hit .dot { fill: var(--green); stroke: var(--green); }
.cam.hit .num { fill: #111; }
.cam.hit .fov, .has-img .cam.hit .fov { fill: rgba(47, 240, 160, 0.3); }
.cam .pulse { fill: none; stroke: var(--green); stroke-width: 2; opacity: 0; }
.cam.hit .pulse { animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { r: 9; opacity: 0.9; } 100% { r: 30; opacity: 0; } }

.tooltip {
  position: fixed; z-index: 70; pointer-events: none; max-width: 260px;
  background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 6px; padding: 10px 12px;
  font-size: 13px; line-height: 1.4; opacity: 0; transform: translateY(4px); transition: opacity 0.12s, transform 0.12s;
}
.tooltip.show { opacity: 1; transform: none; }
.tooltip .t-id { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.12em; }
.tooltip .t-name { font-weight: 600; margin: 2px 0 4px; }
.tooltip .t-view { color: var(--muted); font-size: 12px; }

/* side panel */
.side { display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.card h4 { margin: 0 0 12px; font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; font-weight: 500; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat b { display: block; font-family: var(--mono); font-size: 28px; font-weight: 500; color: var(--text); }
.stat span { font-size: 12px; color: var(--muted); }
.brief-line { font-size: 15px; line-height: 1.55; margin: 0 0 10px; }
.brief-line .ts { font-family: var(--mono); font-size: 12px; color: var(--gold); margin-right: 6px; }
.hidden-step { display: none; }
.alert { border-color: rgba(255, 75, 85, 0.45); background: linear-gradient(180deg, rgba(255, 75, 85, 0.10), var(--panel)); }
.alert h4 { color: var(--red); }
.mission { border-color: rgba(200, 168, 94, 0.5); background: linear-gradient(180deg, rgba(200, 168, 94, 0.10), var(--panel)); }
.mission h4 { color: var(--gold); }
.mission p { font-size: 20px; font-weight: 600; margin: 0; line-height: 1.35; }
.stopwatch { display: flex; justify-content: space-between; align-items: baseline; }
.stopwatch b { font-family: var(--mono); font-size: 34px; font-weight: 400; color: var(--orange); }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.row-btns .btn { padding: 9px 12px; font-size: 11px; }

/* ---------------- PLAYER MODAL ---------------- */
.modal { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; background: rgba(2, 4, 8, 0.82); backdrop-filter: blur(6px); }
.modal.open { display: grid; animation: fade 0.18s ease; }
@keyframes fade { from { opacity: 0; } }
.player { width: min(1180px, 94vw); background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.player-head { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.player-head .pid { font-family: var(--mono); color: var(--accent); font-size: 13px; letter-spacing: 0.14em; }
.player-head .pname { font-weight: 600; }
.player-head .pview { color: var(--muted); font-size: 13px; }
.player-head .x { margin-left: auto; background: none; border: 1px solid var(--line-2); width: 32px; height: 32px; border-radius: 6px; font-size: 18px; line-height: 1; }
.player-head .x:hover { border-color: var(--red); color: var(--red); }
.player canvas { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.controls { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.controls button { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); border-radius: 6px; height: 34px; min-width: 38px; padding: 0 10px; font-family: var(--mono); font-size: 12px; }
.controls button:hover { border-color: var(--accent); color: var(--accent); }
.controls button.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.controls .time { font-family: var(--mono); font-size: 13px; color: var(--muted); min-width: 118px; text-align: center; }
.scrub { position: relative; flex: 1; height: 34px; display: flex; align-items: center; }
.scrub input { width: 100%; accent-color: var(--accent); cursor: pointer; }
.scrub .marks { position: absolute; left: 0; right: 0; top: 4px; height: 6px; pointer-events: none; display: none; }
.scrub.show-marks .marks { display: block; }
.scrub .marks i { position: absolute; top: 0; height: 6px; background: var(--green); border-radius: 2px; }
.speeds { display: flex; gap: 4px; }

/* ---------------- 03 · VIDEO PHYSICS ---------------- */
#video { background: #000; padding-left: 0; padding-right: 0; padding-top: 0; }
.scrolly { position: relative; }
.sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#pixel-stage canvas { width: 100%; height: 100%; display: block; }
.pixel-hud { position: absolute; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--muted); }
.pixel-hud.tl { top: calc(var(--nav-h) + 20px); left: 28px; }
.pixel-hud.tr { top: calc(var(--nav-h) + 20px); right: 28px; text-align: right; }
.pixel-hud b { color: var(--accent); font-weight: 500; }
.pixel-caption {
  position: absolute; left: 6vw; bottom: 10vh; max-width: 560px;
  background: rgba(0, 0, 0, 0.72); border: 1px solid var(--line-2); border-left: 3px solid var(--accent);
  padding: 20px 24px; border-radius: 6px; backdrop-filter: blur(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.pixel-caption h3 { margin: 6px 0 8px; font-size: 26px; }
.pixel-caption p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.pixel-caption .big-num { font-family: var(--mono); color: var(--text); }

.factors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 12vh 6vw; background: linear-gradient(#000, var(--bg)); }
.factor { border: 1px solid var(--line); border-radius: 10px; padding: 22px; background: var(--panel); }
.factor .n { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.2em; }
.factor h3 { margin: 10px 0 8px; font-size: 22px; }
.factor p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 15px; }
.factor .demo { height: 90px; border-radius: 6px; margin-bottom: 16px; overflow: hidden; position: relative; border: 1px solid var(--line); }
.demo-res { background: repeating-conic-gradient(#2a2a2c 0 25%, #161617 0 50%) 0 0 / 18px 18px; }
.demo-res::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 50%; background: repeating-conic-gradient(#2a2a2c 0 25%, #161617 0 50%) 0 0 / 4px 4px; }
.demo-color { background: linear-gradient(90deg, #ff3b3b, #ffd23b, #3bff8c, #3bc9ff, #8a3bff); }
.demo-color::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 50%; background: linear-gradient(90deg, #6a6a6a, #9a9a9a); mix-blend-mode: normal; }
.demo-angle { background: linear-gradient(160deg, #2a2a2c, #111112); }
.demo-angle::before { content: ""; position: absolute; left: 50%; bottom: 10px; width: 0; height: 0; border-left: 40px solid transparent; border-right: 40px solid transparent; border-bottom: 70px solid rgba(216, 210, 196, 0.25); transform: translateX(-50%); }
.demo-light { background: linear-gradient(90deg, #f0e6c8 0%, #807a66 45%, #0a0a0a 100%); }

/* quality compare */
#compare { height: 360vh; }
#compare .sticky { display: grid; place-items: center; padding-top: var(--nav-h); }
.cmp-wrap { position: relative; width: min(1200px, 92vw); height: calc(100vh - var(--nav-h) - 40px); }
.shot {
  position: absolute; left: 0; width: 64%; aspect-ratio: 16 / 9;
  border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #101011;
  transition: transform 0.9s cubic-bezier(.2, .8, .2, 1), opacity 0.9s ease, filter 0.9s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.shot img, .shot .ph { width: 100%; height: 100%; object-fit: cover; }
.shot .tag { position: absolute; left: 12px; top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; padding: 4px 8px; background: rgba(0, 0, 0, 0.6); border-radius: 3px; }
.shot.good { top: 50%; transform: translateY(-50%); }
.shot.bad { top: 50%; transform: translate(0, 120%); opacity: 0; }
.checklist { position: absolute; left: calc(64% + 36px); width: 300px; transition: transform 0.9s cubic-bezier(.2, .8, .2, 1), opacity 0.6s ease; }
.checklist.good { top: 50%; transform: translateY(-50%); }
.checklist.bad { top: 50%; transform: translate(0, 120%); opacity: 0; }
.check {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin-bottom: 12px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; font-size: 20px; font-weight: 600;
  animation: float 5s ease-in-out infinite;
}
.check:nth-child(2) { animation-delay: -1.6s; margin-left: 26px; }
.check:nth-child(3) { animation-delay: -3.2s; }
@keyframes float { 50% { transform: translateY(-6px); } }
.check .box { width: 30px; height: 30px; border-radius: 6px; border: 2px solid var(--green); display: grid; place-items: center; flex: none; }
.check .box svg { width: 20px; height: 20px; stroke: var(--green); stroke-width: 3; fill: none; stroke-dasharray: 30; stroke-dashoffset: 0; transition: stroke-dashoffset 0.5s ease; }
.checklist.bad .check .box { border-color: var(--red); }
.checklist.bad .check .box svg { stroke: var(--red); stroke-dashoffset: 30; }
.checklist.bad.revealed .check .box svg { stroke-dashoffset: 30; }
.checklist.bad .check { color: var(--muted); }
/* compare stages */
.cmp-wrap.s2 .shot.good { transform: translateY(-94%) scale(0.72); transform-origin: left top; }
.cmp-wrap.s2 .checklist.good { transform: translateY(-140%) scale(0.8); transform-origin: left top; opacity: 0.85; }
.cmp-wrap.s2 .shot.bad { transform: translateY(-8%) scale(0.72); transform-origin: left top; opacity: 1; }
.cmp-wrap.s2 .checklist.bad { transform: translateY(-30%) scale(0.8); transform-origin: left top; opacity: 1; }

/* accuracy meter */
#accuracy { height: 300vh; background: #000; }
#accuracy .sticky { display: grid; place-items: center; }
.meter { text-align: center; }
.meter .eyebrow { margin-bottom: 26px; }
.seg-display { display: inline-flex; gap: 12px; align-items: flex-end; padding: 30px 40px; background: #030504; border: 1px solid #1a1f1c; border-radius: 12px; box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.9); }
.seg-display svg { height: 190px; width: auto; }
.seg-display .seg { transition: fill 0.1s; }
.meter-bar { width: min(720px, 80vw); height: 8px; margin: 34px auto 0; border-radius: 4px; background: #111; overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: 0; border-radius: 4px; }
.meter-word { margin-top: 40px; font-size: clamp(48px, 7vw, 110px); font-weight: 800; letter-spacing: 0.3em; opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.meter-word.show { opacity: 1; transform: none; }

/* ---------------- 04 · TALK ---------------- */
#talk { display: grid; align-content: center; }
.talk-hero { font-size: clamp(40px, 5.6vw, 88px); line-height: 1.05; font-weight: 800; margin: 16px 0 36px; letter-spacing: -0.02em; }
.talk-hero .strike { color: var(--dim); text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 5px; }
.talk-hero .hl { color: var(--accent); }
.video-box { position: relative; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; max-width: 1100px; }
.video-box video { width: 100%; height: 100%; display: block; }
.ph { display: grid; place-items: center; text-align: center; background: repeating-linear-gradient(45deg, #121213 0 12px, #151516 12px 24px); color: var(--dim); font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; padding: 16px; }
.ph b { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }

/* ---------------- 05 · EVENT ---------------- */
.continuity { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 12vh; }
.continuity .video-box { aspect-ratio: 16 / 9; }
.continuity .video-box img, .continuity .video-box video, .continuity .video-box .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.continuity .question { font-size: clamp(30px, 3.4vw, 50px); font-weight: 800; line-height: 1.1; margin: 10px 0 18px; }
.continuity .question .or { color: var(--dim); font-weight: 400; }
.continuity .answer { font-size: 20px; line-height: 1.55; color: var(--muted); opacity: 0; transition: opacity 0.6s; }
.continuity .answer.show { opacity: 1; }
.continuity .answer b { color: var(--text); }
.ff-badge { position: absolute; right: 12px; bottom: 12px; font-family: var(--mono); font-size: 13px; background: rgba(0, 0, 0, 0.7); padding: 4px 8px; border-radius: 3px; color: var(--orange); }

.big-insight { text-align: center; padding: 14vh 0; }
.big-insight h3 { font-size: clamp(34px, 4.6vw, 72px); line-height: 1.1; margin: 16px 0 0; font-weight: 800; }
.big-insight h3 span { color: var(--accent); }

#prompt-scroll { height: 420vh; margin: 0 -6vw; }
#prompt-scroll .sticky { display: grid; place-items: center; padding: var(--nav-h) 6vw 0; }
.prompt-stage { width: min(1100px, 100%); }
.prompt-box {
  display: flex; align-items: center; gap: 18px; min-height: 96px; padding: 24px 28px;
  background: #111113; border: 2px solid var(--red); border-radius: 12px;
  font-size: clamp(22px, 2.6vw, 38px); font-weight: 600; line-height: 1.3; color: var(--red);
  transition: border-color 0.5s, color 0.5s, box-shadow 0.5s;
}
.prompt-box .ico { flex: none; width: 34px; height: 34px; opacity: 0.8; }
.prompt-box .caret { display: inline-block; width: 3px; height: 1em; background: currentColor; margin-left: 4px; vertical-align: -0.12em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.prompt-box .chunk { opacity: 0; transition: opacity 0.4s; }
.prompt-box .chunk.on { opacity: 1; }
.lvl-red { --lvl: var(--red); }
.lvl-orange { --lvl: var(--orange); }
.lvl-green { --lvl: var(--green); }
.prompt-box[class*="lvl-"] { color: var(--lvl); border-color: var(--lvl); box-shadow: 0 0 40px color-mix(in srgb, var(--lvl) 22%, transparent); }
.prompt-meta { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--dim); transition: all 0.4s; }
.chip.on { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.seg-display.small { padding: 14px 20px; gap: 6px; }
.seg-display.small svg { height: 80px; }
.prompt-note { margin-top: 26px; font-size: 18px; color: var(--muted); min-height: 1.6em; }

/* ---------------- 06 · INVESTIGATION ---------------- */
.feed { display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - var(--nav-h) - 170px); overflow-y: auto; padding-right: 4px; }
.feed::-webkit-scrollbar { width: 6px; }
.feed::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.feed-empty { color: var(--dim); font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-align: center; padding: 40px 0; }
.intel { animation: slideIn 0.5s cubic-bezier(.2, .8, .2, 1); }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } }
.intel .photo { border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 12px; border: 1px solid var(--line); }
.intel .photo img, .intel .photo .ph { width: 100%; height: 100%; object-fit: cover; }
.intel ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.intel li { font-size: 12.5px; padding: 4px 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.intel .search { font-size: 20px; font-weight: 600; min-height: 60px; padding: 14px 16px; background: #111113; border: 2px solid var(--line-2); border-radius: 8px; color: var(--text); transition: color 0.4s, border-color 0.4s; }
.intel .search.red { color: var(--red); border-color: var(--red); }
.intel .search.orange { color: var(--orange); border-color: var(--orange); }
.intel .search.green { color: var(--green); border-color: var(--green); }
.intel .acc { font-family: var(--mono); font-size: 12px; margin-top: 8px; color: var(--muted); letter-spacing: 0.1em; }
.results { display: grid; gap: 10px; }
.result { position: relative; border-radius: 6px; overflow: hidden; border: 1px solid var(--green); cursor: pointer; aspect-ratio: 16 / 9; }
.result img, .result .ph { width: 100%; height: 100%; object-fit: cover; }
.result .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); color: var(--green); }
.result:hover { box-shadow: 0 0 0 2px var(--green); }
.finale-ctrl { display: flex; gap: 10px; margin-top: 14px; align-items: center; }
.finale-ctrl .count { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.route { fill: none; stroke: var(--green); stroke-width: 2.4; stroke-dasharray: 8 6; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }

/* WHO WHAT HOW overlay */
.www { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; background: rgba(2, 4, 8, 0.94); }
.www.open { display: grid; animation: fade 0.3s; }
.www .words { display: flex; gap: 5vw; font-size: clamp(56px, 10vw, 170px); font-weight: 900; letter-spacing: -0.02em; }
.www .w { opacity: 0; transform: translateY(40px) scale(0.9); transition: opacity 0.6s, transform 0.6s cubic-bezier(.2, .8, .2, 1), color 0.6s, text-shadow 0.6s; }
.www .w.on { opacity: 1; transform: none; }
.www .words.red .w { color: var(--red); text-shadow: 0 0 40px rgba(255, 75, 85, 0.5); }
.www .words.orange .w { color: var(--orange); text-shadow: 0 0 40px rgba(255, 166, 43, 0.5); }
.www .words.green .w { color: var(--green); text-shadow: 0 0 40px rgba(47, 240, 160, 0.5); }
.www .sub { text-align: center; margin-top: 30px; font-size: 22px; color: var(--muted); opacity: 0; transition: opacity 0.8s; }
.www .sub.on { opacity: 1; }

@media (max-width: 1100px) {
  .ops, .continuity { grid-template-columns: 1fr; }
  .factors { grid-template-columns: 1fr 1fr; }
  .nav ol { display: none; }
}
.video-box > .ph { position: absolute; inset: 0; }
#talk .video-box { max-width: min(1100px, calc(60vh * 16 / 9)); }

/* ============================================================
   Conntour look: black canvas, calm white type, violet accent,
   pill buttons, "What are you looking for?" search fields
   ============================================================ */
body::before { opacity: 0.08; }
body::after {
  content: ""; position: fixed; left: 50%; top: -30vh; width: 90vw; height: 60vh; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.05), transparent); pointer-events: none; z-index: -1;
}
::selection { background: rgba(255, 255, 255, 0.85); color: #000; }

.eyebrow { color: var(--accent); letter-spacing: 0.14em; font-weight: 600; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* nav */
.nav { background: rgba(0, 0, 0, 0.72); backdrop-filter: saturate(1.4) blur(16px); }
.nav .brand { color: var(--text); letter-spacing: 0.08em; }
.nav .brand .mark { border-color: var(--violet); }
.nav .brand .mark::after { background: var(--violet-grad); }
.nav a { border-radius: 999px; }
.nav a.active { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav a.active span { color: var(--accent); }
.nav .class-tag { color: var(--muted); border-color: var(--line-2); border-radius: 999px; padding: 5px 12px; }
.nav .progress { background: var(--violet-grad); height: 2px; }

/* type */
.section-head h2 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; }
.section-head h2 em { font-style: normal; color: var(--muted); }
.section-head p { color: var(--muted); }

/* buttons: white pill primary, dark pill secondary (like the send button in the product) */
.btn { border-radius: 999px; letter-spacing: 0.01em; font-weight: 500; background: rgba(255, 255, 255, 0.06); border-color: var(--line-2); }
.btn:hover { border-color: rgba(255, 255, 255, 0.4); color: #fff; background: rgba(255, 255, 255, 0.1); }
.btn.primary { background: #fff; border-color: #fff; color: #000; font-weight: 600; }
.btn.primary:hover { background: #fff; color: #000; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18), 0 10px 40px rgba(255, 255, 255, 0.12); }

/* intro */
#intro .scan::after { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.035), transparent); }
.intro-rings { opacity: 0.4; }
.intro-inner h1 { font-weight: 600; letter-spacing: -0.035em; background: none; color: #fff; -webkit-text-fill-color: #fff; }
.intro-inner h1 em { font-weight: 500; -webkit-text-fill-color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.intro-meta { font-family: var(--sans); letter-spacing: 0.14em; }
.intro-meta b { font-family: var(--sans); letter-spacing: 0.02em; text-transform: none; font-size: 15px; }

/* cards & panels */
.card, .factor, .map-frame, .video-box, .shot, .player, .check { border-radius: var(--r); }
.card { background: var(--panel); border-color: var(--line); }
.card h4 { letter-spacing: 0.12em; }
.stat b { font-family: var(--sans); font-weight: 600; letter-spacing: -0.02em; }
.brief-line .ts { color: var(--accent); }
.mission { border-color: rgba(255, 255, 255, 0.32); background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), var(--panel)); }
.mission h4 { color: var(--accent); }
.tooltip { border-radius: 12px; background: rgba(17, 17, 19, 0.96); backdrop-filter: blur(10px); }

/* player chrome */
.player-head .pid { color: var(--accent); }
.controls button { border-radius: 999px; }
.controls button.on { background: #fff; color: #000; border-color: #fff; }
.controls button:hover { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.controls button.on:hover { color: #000; }
.scrub input { accent-color: #fff; }

/* pixel captions & factors */
.pixel-caption { border-left: 0; border-radius: var(--r); background: rgba(10, 10, 12, 0.78); }
.pixel-caption h3 { font-weight: 600; letter-spacing: -0.02em; }
.pixel-hud b { color: #fff; }
.factor { background: var(--panel); }
.factor .n { color: var(--accent); }
.factor h3 { font-weight: 600; letter-spacing: -0.01em; }
.demo-angle::before { border-bottom-color: rgba(255, 255, 255, 0.28); }

/* talk */
.talk-hero { font-weight: 600; letter-spacing: -0.035em; }
.talk-hero .strike { text-decoration-color: rgba(255, 255, 255, 0.5); text-decoration-thickness: 4px; }
.talk-hero .hl { background: var(--violet-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.video-box { box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6); }

/* event */
.continuity .question, .big-insight h3 { font-weight: 600; letter-spacing: -0.03em; }
.big-insight h3 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.meter-word { font-weight: 700; }

/* search fields in the product style: "What are you looking for?" */
.ask-label { font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 14px; color: #fff; }
.prompt-box {
  background: var(--field); border: 1px solid var(--line-2); border-radius: 20px; padding: 22px 22px 22px 26px;
  font-weight: 500; letter-spacing: -0.01em;
}
.prompt-box #promptText { flex: 1; }
.prompt-box .ico { width: 28px; height: 28px; opacity: 0.55; color: var(--muted); stroke: var(--muted); }
.send-btn { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.send-btn svg { width: 22px; height: 22px; stroke: #000; stroke-width: 2.4; fill: none; }
.prompt-box[class*="lvl-"] { border-width: 1px; box-shadow: 0 0 0 1px var(--lvl), 0 0 50px color-mix(in srgb, var(--lvl) 18%, transparent); }
.chip { border-radius: 999px; font-family: var(--sans); letter-spacing: 0.1em; }
.chip.on { color: #fff; border-color: var(--accent); background: var(--accent-soft); }
.intel .search { background: var(--field); border: 1px solid var(--line-2); border-radius: 14px; font-weight: 500; position: relative; padding-right: 52px; }
.intel .search::after {
  content: ""; position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.intel li { border-radius: 999px; padding: 4px 10px; }
.result { border-radius: 12px; }
.feed-empty { font-family: var(--sans); }

/* WHO WHAT HOW */
.www { background: rgba(0, 0, 0, 0.95); }
.www .words { font-weight: 700; letter-spacing: -0.04em; }
.prompt-box[class*="lvl-"] { color: #fff; }
.prompt-box .caret { background: var(--lvl, #fff); }
.cont-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.12); z-index: 2; }
.cont-bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width 0.7s linear; }
.ff-badge { z-index: 2; }

/* criteria pairs: good vs bad example per factor */
.factors { grid-template-columns: 1fr 1fr; gap: 20px; }
.factor h3 { margin: 6px 0 14px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair figure, .acc-grid figure, .detainee { position: relative; margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: #0b0b0c; border: 1px solid var(--line); }
.pair img, .pair .ph, .acc-grid img, .acc-grid .ph, .detainee img, .detainee .ph { width: 100%; height: 100%; object-fit: cover; }
.pair figcaption, .acc-grid figcaption, .detainee figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 7px; font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}
.pair figcaption::before { display: inline-block; width: 16px; margin-right: 4px; font-weight: 700; }
.pair .ok figcaption::before { content: "✓"; color: var(--green); }
.pair .no figcaption::before { content: "✕"; color: var(--red); }
.pair .ok { border-color: rgba(47, 240, 160, 0.35); }
.pair .no { border-color: rgba(255, 75, 85, 0.3); }

/* checklist: the bad source has the same angle, so "Angle" stays checked */
.checklist.bad .check.keep { color: var(--text); }
.checklist.bad .check.keep .box { border-color: var(--green); }
.checklist.bad .check.keep .box svg { stroke: var(--green); stroke-dashoffset: 0; }

/* accuracy gallery after the meter */
.acc-gallery { padding: 8vh 6vw 14vh; background: #000; display: grid; gap: 40px; }
.acc-group .eyebrow { margin-bottom: 14px; }
.acc-group.good .eyebrow { color: var(--green); }
.acc-group.bad .eyebrow { color: var(--red); }
.acc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.acc-group.good .acc-grid figure { border-color: rgba(47, 240, 160, 0.35); }
.acc-group.bad .acc-grid figure { border-color: rgba(255, 75, 85, 0.3); }
.seg-display.tiny { position: absolute; left: 8px; top: 8px; padding: 5px 7px; gap: 2px; border-radius: 6px; background: rgba(3, 5, 4, 0.82); border-color: rgba(255, 255, 255, 0.08); box-shadow: none; }
.seg-display.tiny svg { height: 20px; }

/* incident card: detainee photo pops in */
.detainee { margin: 4px 0 12px; aspect-ratio: 4 / 3; animation: pop 0.5s cubic-bezier(.2, .9, .3, 1.3); }
.detainee figcaption { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--muted); }
@keyframes pop { from { opacity: 0; transform: scale(0.85); } }
@media (max-width: 1100px) { .factors { grid-template-columns: 1fr; } .acc-grid { grid-template-columns: 1fr 1fr; } }

/* criteria lightbox */
.factor, .acc-grid figure { cursor: zoom-in; transition: border-color 0.2s, transform 0.2s; }
.factor:hover { border-color: rgba(255, 255, 255, 0.28); }
.acc-grid figure:hover { transform: translateY(-2px); }
.lightbox { position: fixed; inset: 0; z-index: 95; display: none; align-items: center; justify-content: center; gap: 2vw; background: rgba(0, 0, 0, 0.94); backdrop-filter: blur(8px); cursor: zoom-out; }
.lightbox.open { display: flex; animation: fade 0.2s ease; }
.lb-body { width: min(94vw, 1700px); }
.lb-title { font-size: clamp(22px, 2.4vw, 36px); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 18px; }
.lb-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lb-pair figure { position: relative; margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: #0b0b0c; border: 1px solid var(--line-2); }
.lb-pair img, .lb-pair .ph { width: 100%; height: 100%; object-fit: cover; }
.lb-pair figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; font-size: 18px; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); }
.lb-pair .ok { border-color: rgba(47, 240, 160, 0.5); }
.lb-pair .no { border-color: rgba(255, 75, 85, 0.45); }
.lb-pair .ok figcaption::before { content: "✓ "; color: var(--green); }
.lb-pair .no figcaption::before { content: "✕ "; color: var(--red); }
.lb-hint { margin-top: 14px; font-size: 12px; color: var(--dim); letter-spacing: 0.08em; text-align: center; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.06); font-size: 20px; z-index: 2; }
.lb-nav:hover { background: #fff; color: #000; }
.lb-nav.prev { left: 1.2vw; }
.lb-nav.next { right: 1.2vw; }
@media (max-width: 900px) { .lb-pair { grid-template-columns: 1fr; } }

/* prompt builder: station frames on the left, the search on the right */
.prompt-stage { width: min(1500px, 100%); display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.prompt-visual { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); background: #0b0b0c; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6); }
.prompt-visual > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.45s ease; }
.prompt-visual > .on { opacity: 1; }
.prompt-side .prompt-box { font-size: clamp(18px, 1.6vw, 27px); min-height: 0; padding: 18px 16px 18px 20px; gap: 12px; }
.prompt-side .send-btn { width: 40px; height: 40px; }
.prompt-side .prompt-meta { grid-template-columns: 1fr; gap: 18px; margin-top: 22px; }
.prompt-side .seg-display.small svg { height: 60px; }
.prompt-side .seg-display.small { justify-self: start; }
@media (max-width: 1100px) { .prompt-stage { grid-template-columns: 1fr; } }

/* 06 · investigation: small map, big intel feed */
#investigation .ops { grid-template-columns: minmax(0, 0.44fr) minmax(0, 1fr); gap: 24px; align-items: start; }
#investigation .ops > div:first-child { position: sticky; top: calc(var(--nav-h) + 20px); }
#investigation .map-frame .cam .num { font-size: 9.5px; }
#investigation .feed { max-height: calc(100vh - var(--nav-h) - 150px); gap: 16px; }
#investigation .card h4 { font-size: 13px; }
#investigation .intel > div:has(> .photo) { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
#investigation .intel .photo { aspect-ratio: 16 / 10; margin-bottom: 0; }
#investigation .intel ul { flex-direction: column; align-items: flex-start; gap: 8px; }
#investigation .intel li { font-size: 15px; padding: 6px 12px; }
#investigation .intel .search { font-size: clamp(20px, 1.7vw, 28px); min-height: 72px; padding: 18px 60px 18px 20px; }
#investigation .intel .acc { font-size: 13px; }
#investigation .results { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
#investigation .result .cap { font-size: 12px; padding: 8px 12px; }
@media (max-width: 1100px) { #investigation .ops > div:first-child { position: static; } }
#investigation { padding-top: calc(var(--nav-h) + 22px); }
#investigation .section-head { margin-bottom: 18px; }
#investigation .section-head h2 { font-size: clamp(26px, 2.4vw, 36px); margin: 6px 0 0; }
#investigation .map-frame .cam .num { font-size: 11px; }
#investigation .map-frame .cam .dot { r: 9.5; }
/* the current intel step is big; earlier steps collapse into a compact history */
#investigation .feed .intel:not(:last-child) { padding: 10px 14px; opacity: 0.6; }
#investigation .feed .intel:not(:last-child) h4 { margin-bottom: 6px; font-size: 11px; }
#investigation .feed .intel:not(:last-child) > div:has(> .photo) { grid-template-columns: 90px minmax(0, 1fr); gap: 12px; align-items: center; }
#investigation .feed .intel:not(:last-child) .photo { aspect-ratio: 4 / 3; }
#investigation .feed .intel:not(:last-child) ul { flex-direction: row; flex-wrap: wrap; gap: 4px; }
#investigation .feed .intel:not(:last-child) li { font-size: 11px; padding: 2px 8px; }
#investigation .feed .intel:not(:last-child) .search { font-size: 14px; min-height: 0; padding: 8px 12px; }
#investigation .feed .intel:not(:last-child) .search::after { display: none; }
#investigation .feed .intel:not(:last-child) .acc { margin-top: 4px; font-size: 11px; }
#investigation .feed .intel:not(:last-child) .results { grid-template-columns: repeat(auto-fill, 120px); gap: 6px; }
#investigation .feed .intel:not(:last-child) .result .cap { display: none; }
#investigation .feed .intel:last-child .search { font-size: clamp(24px, 2.4vw, 40px); }
#investigation .map-frame .corner { display: none; }
#investigation .finale-ctrl { margin-top: 16px; }
#investigation .finale-ctrl .btn.primary { flex: 1; justify-content: center; padding: 16px 20px; font-size: 16px; }
#investigation .feed .intel:last-child > div:has(> .photo) { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); }

/* 06 · investigation: sticky stage, map and intel image side by side (same height), search underneath */
#investigation { padding: 0 6vw; }
#investigation .scrolly { margin: 0 -6vw; }
.fin-stage { display: flex; flex-direction: column; gap: 18px; padding: calc(var(--nav-h) + 18px) 6vw 24px; height: 100vh; }
.fin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.fin-head h2 { font-size: clamp(24px, 2.3vw, 34px); font-weight: 600; letter-spacing: -0.03em; margin: 6px 0 0; }
.fin-head .finale-ctrl { margin: 0; gap: 12px; }
.fin-head .finale-ctrl .btn { padding: 10px 16px; }
.fin-head .count { margin: 0; font-size: 14px; color: var(--muted); min-width: 48px; text-align: center; }
.fin-top { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fin-top > * { min-height: 0; }
.fin-top .map-frame { aspect-ratio: auto; height: 100%; }
.fin-top .map-frame .corner { display: none; }
.fin-top .map-frame .cam .num { font-size: 10px; }
.fin-visual { position: relative; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: #0b0b0c; }
.fin-label { position: absolute; left: 0; right: 0; top: 0; z-index: 2; padding: 12px 16px 26px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: linear-gradient(rgba(0, 0, 0, 0.75), transparent); pointer-events: none; }
.fin-media { position: absolute; inset: 0; }
.fin-empty { height: 100%; display: grid; place-items: center; color: var(--dim); font-size: 14px; letter-spacing: 0.08em; }
.fin-photo, .fin-photo img, .fin-photo .ph { width: 100%; height: 100%; object-fit: cover; }
.fin-results { position: absolute; inset: 0; display: grid; gap: 6px; padding: 44px 6px 6px; }
.fin-results.n1 { grid-template-columns: 1fr; }
.fin-results.n3 { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; }
.fin-results.n3 .result:first-child { grid-row: span 2; }
.fin-results .result { aspect-ratio: auto; min-height: 0; border-radius: 10px; }
.fin-results .result .cap { font-size: 12px; padding: 20px 12px 8px; }
.fin-bottom { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.fin-ask .ask-label { font-size: 18px; margin-bottom: 10px; }
.fin-ask .prompt-box { min-height: 74px; font-size: clamp(20px, 1.9vw, 30px); padding: 14px 14px 14px 20px; }
.fin-ask .prompt-box[class*="lvl-"] { color: #fff; }
.fin-text { flex: 1; }
.fin-text .caret { display: inline-block; width: 3px; height: 1em; margin-left: 3px; vertical-align: -0.12em; background: var(--lvl, #fff); animation: blink 1s steps(1) infinite; }
.fin-facts { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-height: 30px; }
.fin-facts li { font-size: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.fin-acc { text-align: center; }
.fin-acc .eyebrow { margin-bottom: 10px; }
.fin-acc .seg-display.small svg { height: 64px; }

/* the camera player always fits the window, controls included */
.player { width: min(1180px, 94vw, calc((100vh - 150px) * 16 / 9)); }

/* both panels are 16:9 and exactly the same size, as large as the free height allows */
.fin-top { container-type: size; align-items: center; justify-items: center; }
.fin-top > .map-frame, .fin-top > .fin-visual { width: min(100%, calc(100cqh * 16 / 9)); height: auto; aspect-ratio: 16 / 9; }
.fin-results.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.fin-results.n3 .result:first-child { grid-row: auto; }
.fin-summary { border-radius: 10px; border: 1px dashed rgba(47, 240, 160, 0.45); display: grid; place-content: center; gap: 6px; text-align: center; padding: 10px; }
.fin-summary b { font-size: clamp(14px, 1.3vw, 20px); color: var(--green); font-weight: 600; }
.fin-summary span { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
.fin-stage { padding-left: 4vw; padding-right: 4vw; justify-content: center; }
.fin-top { flex: 0 0 auto; height: min(calc((92vw - 20px) / 2 * 9 / 16), calc(100vh - var(--nav-h) - 290px)); }

/* still images in the lightbox */
.lightbox.single .lb-nav { display: none; }
.lightbox.single .lb-pair { grid-template-columns: 1fr; justify-items: center; }
.lightbox.single .lb-pair figure { width: min(100%, calc((100vh - 170px) * 16 / 9)); }
.fin-photo, .detainee, .fin-results .result { cursor: zoom-in; }
.fin-results .result:not(:has(img[src*="driver-face"])) { cursor: pointer; }

/* 02 · facility: the info column never grows past the map; cards stay compact */
#facility .ops { align-items: stretch; }
#facility .side { contain: size; overflow-y: auto; gap: 10px; scrollbar-width: thin; }
#facility .side .card { padding: 14px 16px; }
#facility .side .card h4 { margin-bottom: 8px; }
#facility .stats { grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 10px; }
#facility .stat b { font-size: 20px; }
#facility .stat span { font-size: 11px; }
#facility .incident-body { display: grid; grid-template-columns: 38% minmax(0, 1fr); gap: 12px; align-items: start; }
#facility .detainee { margin: 0; aspect-ratio: 3 / 4; }
#facility .detainee figcaption { padding: 14px 6px 5px; font-size: 9px; letter-spacing: 0.08em; }
#facility .brief-line { font-size: 13.5px; line-height: 1.45; margin-bottom: 8px; }
#facility .mission p { font-size: 17px; }
#facility .stopwatch b { font-size: 26px; }
#facility .presenter { order: -1; padding: 8px; background: transparent; border-style: dashed; }
#facility .presenter .row-btns { flex-wrap: nowrap; }
#facility .presenter .btn { flex: 1; justify-content: center; padding: 8px 10px; font-size: 12px; }
#facility #manual[style*="block"] { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; }
#facility #manual h4 { margin: 0; }
#facility #manual .stopwatch { gap: 14px; align-items: center; }
#facility .side { gap: 8px; }
#facility .side > .card:not(.presenter):first-of-type h4 { display: none; } /* "Coverage": the numbers speak for themselves */
#facility #mission[style*="block"] { display: flex !important; align-items: baseline; gap: 14px; }
#facility #mission h4 { margin: 0; }
#facility #manual .stopwatch span { white-space: nowrap; }
#facility .detainee { aspect-ratio: 4 / 5; }
#facility .brief-line { font-size: 13px; margin-bottom: 6px; }
#facility .side .card { padding: 12px 14px; }

/* ============================================================
   Phones & small tablets (desktop layout above is untouched)
   ============================================================ */
@supports (height: 100dvh) { .sticky, .fin-stage { height: 100dvh; } }
@media (max-width: 900px) {
  :root { --nav-h: 50px; }
  .nav { padding: 0 16px; gap: 10px; }
  .nav .class-tag { display: none; }
  .nav .brand { font-size: 11px; letter-spacing: 0.06em; }
  section.slide { padding: calc(var(--nav-h) + 28px) 5vw 56px; min-height: auto; }
  #intro { min-height: 100dvh; }
  .section-head { margin-bottom: 22px; }
  .section-head h2 { font-size: clamp(26px, 7.5vw, 34px); }
  .section-head p { font-size: 15px; }
  .next-row { margin-top: 24px; }
  .btn.big { padding: 14px 22px; font-size: 14px; }
  .intro-rings { width: 600px; height: 600px; }
  .intro-meta { gap: 18px; font-size: 10px; }

  /* 02 site: map on top, info below (no height lock) */
  #facility .side { contain: none; overflow: visible; }
  #facility .stats { grid-template-columns: repeat(2, 1fr); }
  .map-legend { gap: 8px 12px; font-size: 10px; }
  .map-frame .corner { font-size: 9px; }
  /* bigger, tappable camera markers on a small map */
  .cam .dot { r: 15; stroke-width: 2.5; }
  .cam .pulse { r: 16; }
  .cam .num { font-size: 15px; }

  /* 03 talk */
  .talk-hero { font-size: clamp(34px, 10vw, 48px); margin-bottom: 22px; }

  /* 04 video physics */
  .pixel-caption { left: 4vw; right: 4vw; bottom: 3vh; max-width: none; padding: 14px 16px; }
  .pixel-caption h3 { font-size: 20px; }
  .pixel-caption p { font-size: 14px; }
  .pixel-hud { font-size: 10px; }
  .pixel-hud.tl { left: 14px; } .pixel-hud.tr { right: 14px; }
  .factors { grid-template-columns: 1fr; padding: 8vh 5vw; gap: 14px; }
  .factor { padding: 16px; }
  .seg-display { padding: 16px 18px; gap: 6px; }
  .seg-display svg { height: 90px; }
  .meter-word { letter-spacing: 0.12em; font-size: clamp(34px, 11vw, 52px); }
  .acc-gallery { padding: 6vh 5vw 10vh; gap: 28px; }
  .acc-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .seg-display.tiny { left: 5px; top: 5px; padding: 3px 5px; }
  .seg-display.tiny svg { height: 14px; }
  .acc-grid figcaption { font-size: 11px; }

  /* 05 event: prompt stage stacks, image on top */
  #prompt-scroll .sticky { padding: calc(var(--nav-h) + 10px) 5vw 12px; place-items: start center; }
  .prompt-stage { grid-template-columns: 1fr; gap: 14px; }
  .prompt-side .eyebrow { margin-bottom: 8px !important; }
  .ask-label { font-size: 18px; margin-bottom: 8px; }
  .prompt-side .prompt-box { font-size: 16px; padding: 12px 12px 12px 14px; }
  .prompt-side .send-btn { width: 34px; height: 34px; }
  .prompt-side .prompt-meta { margin-top: 12px; gap: 10px; grid-template-columns: 1fr auto; align-items: center; }
  .prompt-side .seg-display.small svg { height: 38px; }
  .chip { font-size: 10px; padding: 5px 8px; }
  .prompt-note { font-size: 14px; margin-top: 10px; }
  .big-insight { padding: 8vh 0; }
  .continuity { gap: 18px; margin-bottom: 6vh; }
  .continuity .answer { font-size: 16px; }

  /* 06 investigation: head, then map + intel stacked, search below */
  .fin-stage { padding: calc(var(--nav-h) + 10px) 4vw 12px; gap: 10px; justify-content: flex-start; }
  .fin-head h2 { font-size: 20px; }
  .fin-head .eyebrow { font-size: 10px; }
  .fin-head .finale-ctrl .btn { padding: 8px 12px; }
  .fin-top { height: auto; container-type: normal; grid-template-columns: 1fr; gap: 8px; }
  .fin-top > .map-frame, .fin-top > .fin-visual { width: 100%; }
  .fin-top .map-frame .cam .dot { r: 13; }
  .fin-top .map-frame .cam .num { font-size: 13px; }
  .fin-label { font-size: 10px; padding: 8px 10px 18px; }
  .fin-results { padding: 30px 4px 4px; gap: 4px; }
  .fin-results .result .cap { font-size: 9px; padding: 12px 6px 4px; }
  .fin-summary b { font-size: 13px; } .fin-summary span { font-size: 9px; }
  .fin-bottom { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
  .fin-ask .ask-label { font-size: 14px; margin-bottom: 6px; }
  .fin-ask .prompt-box { min-height: 0; font-size: 15px; padding: 10px 10px 10px 12px; gap: 8px; }
  .fin-ask .prompt-box .ico { display: none; }
  .fin-ask .send-btn { width: 30px; height: 30px; }
  .fin-ask .send-btn svg { width: 16px; height: 16px; }
  .fin-facts { margin-top: 8px; gap: 4px; min-height: 0; }
  .fin-facts li { font-size: 11px; padding: 3px 8px; }
  .fin-acc .eyebrow { font-size: 9px; margin-bottom: 4px; }
  .fin-acc .seg-display.small { padding: 8px 10px; }
  .fin-acc .seg-display.small svg { height: 34px; }

  /* camera player & lightbox */
  .player { width: min(96vw, calc((100dvh - 190px) * 16 / 9)); }
  .player-head { padding: 10px 12px; gap: 8px; }
  .player-head .pview { display: none; }
  .player-head .pname { font-size: 14px; }
  .controls { flex-wrap: wrap; padding: 10px 12px; gap: 8px; }
  .controls .scrub { order: -1; flex: 1 1 100%; }
  .controls .time { min-width: 0; font-size: 12px; margin-left: auto; }
  .lightbox { padding: 60px 4vw; align-items: flex-start; }
  .lb-body { width: 100%; }
  .lb-title { font-size: 20px; }
  .lb-pair figcaption { font-size: 14px; padding: 18px 10px 8px; }
  .lb-nav { top: auto; bottom: 16px; transform: none; }
  .lb-nav.prev { left: calc(50% - 60px); } .lb-nav.next { right: calc(50% - 60px); }
  .lightbox.single .lb-pair figure { width: 100%; }
  .www .words { gap: 4vw; }
  .www .sub { font-size: 16px; }
}
/* phones held sideways / very short screens: the finale map would push the search off screen */
@media (max-width: 900px) and (max-height: 760px) {
  .fin-top .map-frame { display: none; }
  .fin-top { justify-items: center; }
  .fin-top > .fin-visual { width: min(100%, calc((100dvh - 230px) * 16 / 9)); }
  .fin-head .eyebrow { display: none; }
}
@media (hover: none) {
  .cam:hover .dot { fill: #0b0d11; }
  .cam:hover .num { fill: #fff; }
}
@media (max-width: 900px) {
  #investigation .fin-results .result .cap { font-size: 9px; padding: 12px 6px 4px; letter-spacing: 0.02em; }
  .fin-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 900px) { html, body { overflow-x: clip; } }

.fin-photo.contain img { object-fit: contain; background: #050806; }
