/* =========================================================
   Blood on the Bunge — June 25, Kenya
   ========================================================= */
:root {
  --red: #b3121b;
  --red-deep: #7d0a10;
  --green: #1d6b33;
  --black: #0d0d0c;
  --ink: #1a1816;
  --paper: #f3eee4;
  --paper-2: #e9e2d4;
  --muted: #6d665c;
  --rule: rgba(179, 18, 27, .45);

  --f-display: "Anton", "Impact", sans-serif;
  --f-serif: "Source Serif 4", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --f-hand: "Caveat", cursive;

  --gutter: clamp(16px, 4vw, 48px);
  --col: min(680px, 100% - 2 * var(--gutter));
  --ease: cubic-bezier(.2, .7, .1, 1);

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--red);
  color: var(--ink);
  font: 400 clamp(17px, 1.15vw + 11px, 20px)/1.6 var(--f-serif);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }
.is-loading { overflow: hidden; }

/* ---------- shared bits ---------- */
.kicker {
  font: 500 12px/1 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}
.display {
  font: 400 clamp(56px, 9vw, 132px)/.9 var(--f-display);
  text-transform: uppercase;
  letter-spacing: -.005em;
  margin: .2em 0 .35em;
  color: var(--black);
}
.display--md { font-size: clamp(44px, 6.4vw, 96px); }
.display--red { color: var(--red); }
.lede {
  font: italic 400 clamp(20px, 1.6vw + 10px, 27px)/1.45 var(--f-serif);
  margin: 0 0 1.2em;
}
.lede--sm { font-size: clamp(17px, 1vw + 11px, 21px); color: var(--muted); max-width: 40ch; }
.prose p { margin: 0 0 1.1em; }
.prose q { font-style: italic; }
.prose q::before, .prose q::after { content: ""; }
.prose--center { width: var(--col); margin: 0 auto 4rem; }
.subhead {
  font: 400 clamp(28px, 2.6vw, 40px)/1 var(--f-display);
  text-transform: uppercase;
  margin: 2.6em 0 .6em;
}
.dropcap::first-letter {
  float: left;
  font: 400 5.2em/.82 var(--f-display);
  color: var(--red);
  padding: .06em .1em 0 0;
}
.pull {
  font: 400 clamp(26px, 2.4vw, 36px)/1.05 var(--f-display);
  text-transform: uppercase;
  color: var(--red);
  border-left: 3px solid var(--red);
  padding-left: .6em;
  margin-top: 1.6em;
}
.pull span { display: block; margin-top: .8em; font: 400 12px/1.5 var(--f-mono); letter-spacing: .08em; color: var(--muted); text-transform: none; }
.pull--center { border: 0; padding: 0; text-align: center; margin: 2.4em 0; }

.flagbar { display: flex; height: 6px; width: 140px; }
.flagbar b { flex: 1; }
.flagbar b:nth-child(1) { background: var(--black); }
.flagbar b:nth-child(2) { background: var(--red); box-shadow: 0 -1.5px 0 #fff inset, 0 1.5px 0 #fff inset; }
.flagbar b:nth-child(3) { background: var(--green); }
.flagbar--wide { width: 100%; height: 8px; margin-bottom: 3rem; }

/* ---------- photos & captions ---------- */
.photo { margin: 0; }
.photo img { width: 100%; border-radius: 3px; filter: saturate(.92) contrast(1.03); }
.photo figcaption, .forensic figcaption {
  display: flex; flex-wrap: wrap; gap: .35em 1em; justify-content: space-between;
  margin-top: .7em;
  font: 400 11.5px/1.5 var(--f-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
}
.photo figcaption span::before { content: "▪ "; color: var(--red); }
.tc {
  color: var(--red); text-decoration: none; white-space: nowrap;
  border-bottom: 1px dotted currentColor;
}
.tc:hover { color: var(--black); }
.photo--inset { margin: 2rem 0 0; max-width: 340px; }

/* ---------- progress + masthead ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; }
.progress span {
  display: block; height: 100%; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--black) 0 33%, #fff 33% 34%, var(--red) 34% 66%, #fff 66% 67%, var(--green) 67%);
}
.masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 14px var(--gutter);
  color: #f6efe6;
  transition: background .4s, color .4s, transform .4s var(--ease);
}
.masthead.is-paper { color: var(--black); background: rgba(243, 238, 228, .92); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.masthead.is-hidden { transform: translateY(-100%); }
.masthead__mark { font: 400 22px/1 var(--f-display); text-transform: uppercase; text-decoration: none; letter-spacing: .02em; }
.masthead__mark span { color: var(--red); }
.masthead__date { font: 500 11px/1 var(--f-mono); letter-spacing: .2em; opacity: .7; }

/* ---------- PAPER ---------- */
.paper {
  position: relative;
  background: var(--paper) var(--noise);
  margin-top: -1px;
  z-index: 2;
}
.torn {
  position: absolute; left: 0; right: 0; bottom: calc(100% - 2px);
  width: 100%; height: clamp(60px, 9vw, 140px);
  display: block;
}
.torn__paper { fill: var(--paper); }
.torn__shadow { fill: rgba(255, 255, 255, .55); transform: translateY(-6px); }

/* ---------- spine layout (RS-style left rule) ---------- */
.spine {
  position: relative;
  width: min(1100px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(60px, 10vw, 140px) 0 80px clamp(0px, 32%, 380px);
}
.spine::before {
  content: ""; position: absolute; top: clamp(60px, 10vw, 140px); bottom: 0;
  left: calc(clamp(0px, 32%, 380px) - 26px);
  width: 1px; background: var(--rule);
}
.spine__label { position: relative; display: flex; align-items: center; gap: 10px; }
.dot { position: absolute; left: -31px; width: 11px; height: 11px; border-radius: 50%; background: var(--red); }
.byline { font: 400 13px/1.6 var(--f-mono); color: var(--muted); max-width: 52ch; }
.byline em { color: var(--ink); }
.warning {
  display: inline-flex; gap: .8em; align-items: baseline; flex-wrap: wrap;
  font: 400 12px/1.5 var(--f-mono); color: var(--ink);
  border: 1px dashed var(--rule); padding: .7em 1em; margin-top: 1rem;
}
.warning span { color: var(--red); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 760px) {
  .spine { padding-left: 22px; }
  .spine::before { left: 0; }
  .dot { left: -27px; }
}

/* ---------- evidence strip ---------- */
.evidence-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  width: min(1100px, 100% - 2 * var(--gutter));
  margin: 0 auto 120px;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.stat { padding: 28px 18px 24px; border-right: 1px dashed rgba(0,0,0,.25); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 400 clamp(48px, 5.4vw, 84px)/1 var(--f-display); color: var(--black); }
.stat span { display: block; margin-top: .6em; font: 400 11.5px/1.5 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat--red b { color: var(--red); }
@media (max-width: 760px) {
  .evidence-strip { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px dashed rgba(0,0,0,.25); }
}

/* ---------- two-col ---------- */
.two-col {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px);
  width: min(1180px, 100% - 2 * var(--gutter));
  margin: 0 auto 140px;
  align-items: start;
}
.two-col__media { position: sticky; top: 90px; }
.two-col--flip .two-col__media { order: 2; }
.kicker-head {
  font: 400 clamp(36px, 4vw, 60px)/.95 var(--f-display); text-transform: uppercase;
  margin: 0 0 .6em;
}
.kicker-head .kicker { display: block; margin-bottom: 1em; }
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col__media { position: static; }
  .two-col--flip .two-col__media { order: 0; }
}

/* ---------- film-strip quote ---------- */
.filmquote {
  position: relative;
  overflow-x: clip;
  width: min(1100px, 100% - 2 * var(--gutter));
  margin: 0 auto 160px;
  padding: 80px 0;
}
.filmstrip {
  position: absolute; top: 50%; left: -2%;
  width: min(460px, 52%); height: 210px;
  transform: translateY(-50%) rotate(-5deg);
  background: var(--red);
  border-radius: 8px;
  z-index: 0;
}
.filmstrip::before, .filmstrip::after {
  content: ""; position: absolute; left: 14px; right: 14px; height: 13px;
  background: repeating-linear-gradient(90deg, var(--paper) 0 11px, transparent 11px 22px);
  border-radius: 2px;
}
.filmstrip::before { top: 12px; }
.filmstrip::after { bottom: 12px; }
.filmquote--right .filmstrip { left: auto; right: -2%; transform: translateY(-50%) rotate(4deg); }
.filmquote blockquote { position: relative; z-index: 1; margin: 0 auto; max-width: 900px; text-align: center; }
.filmquote p, .bigquote p, .barbed p {
  font: 400 clamp(34px, 4.6vw, 72px)/1 var(--f-display);
  text-transform: uppercase;
  color: var(--black);
  margin: 0;
}
.filmquote cite, .bigquote cite, .barbed cite {
  display: block; margin-top: 1.4em;
  font: normal 400 11.5px/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.type .ch { opacity: .08; transition: opacity .15s; }
.type .ch.on { opacity: 1; }

/* ---------- timeline ---------- */
.timeline {
  width: min(1180px, 100% - 2 * var(--gutter));
  margin: 0 auto 160px;
}
.timeline__head { margin-bottom: 70px; }
.timeline__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 72px); }
.clock { position: sticky; top: 18vh; align-self: start; }
.clock__face {
  border: 2px solid var(--black);
  padding: .1em .25em;
  display: inline-block;
  background: var(--black);
  border-radius: 4px;
}
.clock__time {
  font: 400 clamp(84px, 11vw, 180px)/1 var(--f-display);
  color: var(--paper);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  display: block;
}
.clock.is-blood .clock__face { background: var(--red); border-color: var(--red); }
.clock__date { margin-top: 14px; font: 400 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.timeline__list { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.tl { position: relative; padding: 0 0 72px 32px; min-height: 40vh; }
.tl::before {
  content: ""; position: absolute; left: -6px; top: .55em;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--red);
  transition: background .3s;
}
.tl.is-active::before { background: var(--red); }
.tl time { font: 500 12px/1 var(--f-mono); letter-spacing: .14em; color: var(--red); text-transform: uppercase; }
.tl h3 { font: 400 clamp(30px, 3vw, 46px)/1 var(--f-display); text-transform: uppercase; margin: .35em 0 .45em; }
.tl p { margin: 0 0 1em; }
.tl .photo { margin-top: 1.6rem; }
.tl--blood h3 { color: var(--red); }
.jump { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--red); text-decoration: none; border-bottom: 1px solid; padding-bottom: 2px; }
.vote { margin: 1.2rem 0 1.4rem; display: grid; gap: 10px; }
.vote__row { display: grid; grid-template-columns: 56px 1fr 48px; align-items: center; gap: 12px; font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; }
.vote__row b { font: 400 30px/1 var(--f-display); letter-spacing: 0; }
.vote__bar { height: 22px; background: var(--paper-2); }
.vote__bar i { display: block; height: 100%; width: calc(var(--v) / 301 * 100%); background: var(--black); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); }
.vote__row--no .vote__bar i { background: var(--red); }
.vote.is-in .vote__bar i { transform: scaleX(1); }
@media (max-width: 860px) {
  .timeline__grid { display: block; }
  .clock { position: sticky; top: 0; z-index: 5; padding: 10px 0; background: linear-gradient(var(--paper) 80%, transparent); }
  .clock__time { font-size: 64px; }
  .clock__date { display: none; }
  .tl { min-height: 0; }
}

/* ---------- chapters ---------- */
.chapter { margin: 0 auto 120px; }
.chapter__head { width: min(1180px, 100% - 2 * var(--gutter)); margin: 0 auto 60px; border-top: 6px solid var(--black); padding-top: 26px; }
.memorial { width: min(1000px, 100% - 2 * var(--gutter)); margin: 0 auto 80px; display: grid; gap: clamp(20px, 4vw, 48px); }
.memorial--two { grid-template-columns: 1fr 1fr; max-width: 760px; }
.memorial--feature { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); align-items: start; width: min(1180px, 100% - 2 * var(--gutter)); }
.person { margin: 0; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.05); border-radius: 3px; transition: filter .8s; }
.person:hover img, .person.is-color img { filter: none; }
.person figcaption { margin-top: 14px; border-top: 2px solid var(--red); padding-top: 10px; }
.person b { display: block; font: 400 clamp(30px, 3vw, 44px)/1 var(--f-display); text-transform: uppercase; }
.person span { display: block; margin-top: 6px; font: 400 12px/1.5 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.person em { display: block; margin-top: 8px; font-size: .92em; }
.person--large img { aspect-ratio: 1; }
@media (max-width: 860px) {
  .memorial--feature { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .memorial--two { grid-template-columns: 1fr 1fr; gap: 14px; }
  .person b { font-size: 24px; }
}

/* ---------- casefile ---------- */
.casefile { width: min(1180px, 100% - 2 * var(--gutter)); margin: 0 auto 100px; }
.casefile__tab {
  display: inline-block; background: var(--black); color: var(--paper);
  font: 500 11.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 4px 4px 0 0;
}
.casefile__body {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px);
  background: var(--black); color: #ece6db; padding: clamp(18px, 3vw, 40px);
  border-radius: 0 4px 4px 4px;
}
.casefile .photo figcaption { color: #bdb5a8; }
.casefile .photo figcaption span::before { color: #ff4a4a; }
.casefile .tc { color: #ff6b6b; }
.casefile__notes p { margin: 0 0 1em; font-size: .95em; }
.casefile__notes b { color: #fff; }
.casefile__notes q { font-style: italic; color: #fff; }
@media (max-width: 860px) { .casefile__body { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 1.2em 0 1.4em; font: 400 13px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(255,255,255,.15); }
.checklist li::before {
  content: ""; width: 14px; height: 14px; flex: none;
  border: 1.5px solid #ff4a4a; border-radius: 2px;
  background: transparent; transition: background .3s;
}
.checklist li.on::before, .checklist li.hit::before { background: #ff4a4a; box-shadow: inset 0 0 0 2px var(--black); }
.checklist li.hit { color: #ff6b6b; }
.checklist--dark li { border-color: rgba(255,255,255,.15); }

/* ---------- forensic scrolly ---------- */
.forensic {
  position: relative;
  background: var(--black) var(--noise);
  color: #ece6db;
  margin: 0 0 0;
  padding-bottom: 20vh;
}
.forensic__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; place-items: center;
  padding: 70px var(--gutter) 20px;
}
.forensic__frame {
  position: relative; width: min(1200px, 100%); aspect-ratio: 16 / 9; max-height: 78vh;
  border-radius: 4px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease); }
.scene img { width: 100%; height: 100%; object-fit: cover; }
.scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene--a img { transition: transform 1.6s var(--ease), filter .8s; }

.forensic__frame[data-state="0"] .scene--a,
.forensic__frame[data-state="1"] .scene--a,
.forensic__frame[data-state="2"] .scene--a { opacity: 1; }
.forensic__frame[data-state="0"] .scene--a img { filter: grayscale(.6) brightness(.7); }
.forensic__frame[data-state="1"] .scene--a img { filter: grayscale(.5) brightness(.7); }
.forensic__frame[data-state="2"] .scene--a img { filter: grayscale(.8) brightness(.55); }
.forensic__frame[data-state="3"] .scene--b,
.forensic__frame[data-state="4"] .scene--b { opacity: 1; }
.forensic__frame[data-state="5"] .scene--c,
.forensic__frame[data-state="6"] .scene--c { opacity: 1; }
.forensic__frame[data-state="6"] .scene--c img { filter: grayscale(1) brightness(.4); }

.ring { fill: none; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1s var(--ease); }
.ring { stroke-width: .45; }
.ring--shooter { stroke: #ff3b3b; }
.ring--victim { stroke: #f2c230; }
.range { stroke: #fff; stroke-width: 2px; vector-effect: non-scaling-stroke; stroke-dasharray: 6 5; opacity: 0; transition: opacity .6s .2s; }
.forensic__frame[data-state="1"] .ring--shooter,
.forensic__frame[data-state="2"] .ring--shooter,
.forensic__frame[data-state="2"] .ring--victim { stroke-dashoffset: 0; }
.forensic__frame[data-state="2"] .range { opacity: 1; }

.tag, .pin em {
  position: absolute; z-index: 2;
  font: 500 11px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  background: #ff3b3b; color: #fff; padding: 4px 7px; border-radius: 2px;
  opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s var(--ease);
  white-space: nowrap; font-style: normal;
}
.tag--victim { background: #f2c230; color: var(--black); }
.tag--range { background: #fff; color: var(--black); font-size: 13px; }
.forensic__frame[data-state="1"] .tag--shooter,
.forensic__frame[data-state="2"] .tag { opacity: 1; transform: none; }

.pin { position: absolute; z-index: 2; width: 0; height: 0; }
.pin i {
  position: absolute; left: -16px; top: -16px; width: 32px; height: 32px;
  border: 2px solid #ff3b3b; border-radius: 50%;
  opacity: 0; transform: scale(2); transition: opacity .4s, transform .5s var(--ease);
}
.pin em { left: 22px; top: -12px; }
.pin--3 em { white-space: normal; width: max-content; max-width: 220px; }
.forensic__frame[data-state="3"] .pin i,
.forensic__frame[data-state="4"] .pin i { opacity: 1; transform: none; }
.forensic__frame[data-state="3"] .pin em,
.forensic__frame[data-state="4"] .pin em { opacity: 1; transform: none; }
.forensic__frame[data-state="4"] .pin--2 i { transition-delay: .15s; }
.forensic__frame[data-state="4"] .pin--3 i { transition-delay: .3s; }
.forensic__frame[data-state="4"] .pin i { border-color: #ffe14d; box-shadow: 0 0 0 4px rgba(255,225,77,.25); }

.swatches { position: absolute; right: 4%; bottom: 8%; display: flex; gap: 8px; }
.swatches span {
  display: flex; align-items: center; gap: 8px;
  font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #fff;
  background: rgba(0,0,0,.6); padding: 8px 10px; border-radius: 2px;
  opacity: 0; transform: translateY(8px); transition: .5s var(--ease);
}
.swatches span::before { content: ""; width: 14px; height: 14px; background: var(--c); border: 1px solid rgba(255,255,255,.6); }
.swatches span:nth-child(2) { transition-delay: .15s; }
.swatches span:nth-child(3) { transition-delay: .3s; }
.forensic__frame[data-state="5"] .swatches span { opacity: 1; transform: none; }

.forensic__hud {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3;
  display: flex; justify-content: space-between; padding: 12px 16px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .12em; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
  pointer-events: none;
}
.hud__rec { color: #ff3b3b; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }

.forensic__steps { position: relative; z-index: 4; margin-top: -60vh; }
.step {
  width: min(460px, 100% - 2 * var(--gutter));
  margin: 0 0 80vh var(--gutter);
  background: rgba(13, 13, 12, .94);
  border: 1px solid rgba(255,255,255,.12);
  border-left: 3px solid #ff3b3b;
  padding: 22px 24px;
  font-size: .95em;
  backdrop-filter: blur(6px);
}
.step p { margin: 0 0 .8em; }
.step p:last-child { margin: 0; }
.step b { color: #fff; }
.step .checklist { margin-bottom: 0; }
.step--verdict { width: min(760px, 100% - 2 * var(--gutter)); margin-left: auto; margin-right: auto; border-left: 0; border-top: 3px solid #ff3b3b; text-align: center; }
.verdict { font: 400 clamp(28px, 3.2vw, 46px)/1.02 var(--f-display); text-transform: uppercase; color: #fff; }
.verdict__src { font: 400 12px/1.6 var(--f-mono); color: #bdb5a8; letter-spacing: .04em; }
@media (max-width: 760px) {
  .forensic__sticky { place-items: start center; padding-top: 64px; }
  .step { margin-left: auto; margin-right: auto; padding: 18px; }
  .tag, .pin em { font-size: 9px; padding: 3px 5px; }
  .pin--3 em { max-width: 130px; }
  .forensic__hud { font-size: 8.5px; padding: 6px 8px; top: auto; bottom: 0; }
  .swatches { right: 2%; bottom: 4%; gap: 4px; }
  .swatches span { padding: 5px 6px; font-size: 9px; }
}
@media (min-width: 1100px) {
  .step:not(.step--verdict) { margin-left: max(var(--gutter), calc(50% - 600px)); }
}

/* ---------- big quote ---------- */
.bigquote {
  background: var(--red) var(--noise);
  padding: clamp(90px, 14vw, 200px) var(--gutter);
  text-align: center;
  margin-bottom: 140px;
}
.bigquote p { color: var(--paper); max-width: 18ch; margin: 0 auto; font-size: clamp(40px, 6.4vw, 104px); }
.bigquote .type .ch { opacity: .18; }
.bigquote .type .ch.on { opacity: 1; }
.bigquote cite { color: rgba(255,255,255,.75); }

/* ---------- after ---------- */
.after__head { width: min(1100px, 100% - 2 * var(--gutter)); margin: 0 auto 70px; text-align: center; }
.after__head .display { font-size: clamp(40px, 6vw, 92px); max-width: 16ch; margin-inline: auto; }
.after__src { font: 400 12px/1.5 var(--f-mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.ledger { width: min(820px, 100% - 2 * var(--gutter)); margin: 0 auto 100px; border-top: 2px solid var(--black); }
.ledger__row {
  display: grid; grid-template-columns: 150px 1fr auto; align-items: baseline; gap: 20px;
  padding: 18px 0; border-bottom: 1px dashed rgba(0,0,0,.25);
}
.ledger__row b { font: 400 clamp(46px, 5vw, 72px)/1 var(--f-display); }
.ledger__row span { font-size: 1.05em; }
.ledger__row small { font: 400 11px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: right; }
.ledger__row--red b { color: var(--red); }
@media (max-width: 600px) {
  .ledger__row { grid-template-columns: 96px 1fr; }
  .ledger__row small { grid-column: 2; text-align: left; }
}
.barbed {
  margin: 20px 0 100px; padding: 110px var(--gutter);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Cpath d='M0 20 Q30 12 60 20 T120 20' stroke='%23999' stroke-width='2' fill='none'/%3E%3Cpath d='M0 23 Q30 30 60 23 T120 23' stroke='%23777' stroke-width='2' fill='none'/%3E%3Cpath d='M28 10 L36 32 M34 10 L26 32 M88 10 L96 32 M94 10 L86 32' stroke='%23888' stroke-width='2'/%3E%3C/svg%3E") repeat-x 0 30px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Cpath d='M0 20 Q30 12 60 20 T120 20' stroke='%23999' stroke-width='2' fill='none'/%3E%3Cpath d='M0 23 Q30 30 60 23 T120 23' stroke='%23777' stroke-width='2' fill='none'/%3E%3Cpath d='M28 10 L36 32 M34 10 L26 32 M88 10 L96 32 M94 10 L86 32' stroke='%23888' stroke-width='2'/%3E%3C/svg%3E") repeat-x 60px calc(100% - 30px),
    var(--black);
  text-align: center;
}
.barbed blockquote { margin: 0 auto; max-width: 960px; }
.barbed p { color: var(--paper); font-size: clamp(30px, 3.8vw, 58px); }
.barbed .type .ch { opacity: .15; }
.barbed .type .ch.on { opacity: 1; }
.barbed cite { color: #bdb5a8; }

/* ---------- watch ---------- */
.watch { width: min(1180px, 100% - 2 * var(--gutter)); margin: 0 auto 140px; padding-top: 30px; border-top: 6px solid var(--black); }
.watch__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px; align-items: start; }
.ratio { position: relative; aspect-ratio: 16 / 9; background: var(--black); border-radius: 4px; overflow: hidden; }
.ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.chapters { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.chapters button {
  display: grid; grid-template-columns: 54px 1fr; gap: 10px; width: 100%;
  background: none; border: 0; border-bottom: 1px dashed rgba(0,0,0,.25);
  padding: 11px 4px; text-align: left; cursor: pointer;
  font: 400 15px/1.35 var(--f-serif); color: var(--ink);
  transition: background .2s, color .2s;
}
.chapters button time { font: 500 12px/1.6 var(--f-mono); color: var(--red); }
.chapters button:hover, .chapters button.is-on { background: var(--black); color: var(--paper); }
.chapters button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@media (max-width: 860px) { .watch__grid { grid-template-columns: 1fr; } }

/* ---------- names ---------- */
.names { text-align: center; padding: 60px var(--gutter) 140px; }
.names ul { list-style: none; padding: 0; margin: 30px 0; }
.names li { font: 400 clamp(48px, 8vw, 128px)/1 var(--f-display); text-transform: uppercase; color: var(--black); }
.names li + li { margin-top: .08em; }
.names__more { font-style: italic; color: var(--muted); max-width: 40ch; margin: 0 auto; }
.haki { font: 700 clamp(60px, 9vw, 130px)/1 var(--f-hand); color: var(--red); margin: 60px 0 0; transform: rotate(-4deg); }

/* ---------- sources ---------- */
.sources { background: var(--black); color: #cfc7ba; padding: 0 var(--gutter) 60px; }
.sources__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1180px; margin: 0 auto; }
.sources h4 { font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #ff6b6b; margin: 0 0 1.2em; }
.sources p, .sources li { font-size: 14.5px; line-height: 1.6; }
.sources ul { padding: 0; margin: 0; list-style: none; }
.sources li { padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,.12); }
.sources a { text-decoration: none; }
.sources a:hover { color: #fff; text-decoration: underline; }
.sources__end { text-align: center; margin: 70px 0 0; font: 500 12px/1 var(--f-mono); letter-spacing: .4em; text-transform: uppercase; color: #8a8378; }
@media (max-width: 860px) { .sources__grid { grid-template-columns: 1fr; } }


/* =========================================================
   HERO — THE LIVESTREAM
   ========================================================= */
.live { position: relative; height: 400vh; background: #060505; color: #f6efe6; }
.live__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.live__bg {
  position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover;
  filter: blur(26px) saturate(1.4) brightness(.62); transform: scale(1.1);
}
.live__stage::after { /* red wash + vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 70% 50%, transparent 30%, rgba(0,0,0,.75) 100%),
    linear-gradient(90deg, rgba(6,5,5,.92) 0%, rgba(6,5,5,.55) 45%, rgba(120,8,14,.25) 100%);
}
.live__grain { position: absolute; inset: 0; z-index: 1; background: var(--noise); opacity: .7; mix-blend-mode: overlay; pointer-events: none; }
.live__alarm { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.live__intro {
  position: absolute; z-index: 3; left: var(--gutter); top: 50%;
  transform: translateY(-50%);
  width: min(600px, 50vw);
}
.live__kicker { display: flex; align-items: center; gap: 10px; font: 500 12px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; margin: 0 0 22px; color: #ffb3b3; }
.rec { width: 10px; height: 10px; border-radius: 50%; background: #ff2b2b; box-shadow: 0 0 0 0 rgba(255,43,43,.7); animation: recpulse 1.6s infinite; }
@keyframes recpulse { 70% { box-shadow: 0 0 0 10px rgba(255,43,43,0); } 100% { box-shadow: 0 0 0 0 rgba(255,43,43,0); } }
.live__title { margin: 0; font: 400 clamp(64px, 10.5vw, 168px)/.84 var(--f-display); text-transform: uppercase; letter-spacing: -.01em; }
.live__title span { display: block; }
.live__title span:nth-child(1) { color: #ff3b3b; }
.live__title span:nth-child(2) { font: italic 400 clamp(26px, 3.2vw, 46px)/1.3 var(--f-serif); text-transform: none; color: #f6efe6; margin: .1em 0 .05em .1em; }
.live__dek { font: 400 clamp(17px, 1.3vw + 6px, 22px)/1.5 var(--f-serif); max-width: 36ch; margin: 28px 0 0; color: #e9dfd2; }
.live__cue { margin: 36px 0 0; font: 500 11px/1 var(--f-mono); letter-spacing: .24em; text-transform: uppercase; color: #bfb2a4; display: flex; align-items: center; gap: 14px; }
.live__cue::before { content: ""; width: 1px; height: 38px; background: currentColor; transform-origin: top; animation: cue 1.8s infinite var(--ease); }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { opacity: 0; } }

/* phone */
.phone {
  position: absolute; z-index: 4; margin: 0;
  right: max(var(--gutter), 9vw); top: 50%;
  width: clamp(230px, min(23vw, 42vh), 350px);
  transform: translateY(-50%);
  will-change: transform;
}
.phone__screen {
  position: relative; aspect-ratio: 9 / 18.5; overflow: hidden;
  border-radius: 38px; background: #000;
  border: 9px solid #121111;
  box-shadow: 0 0 0 1.5px #2b2a29, 0 40px 120px -20px rgba(255, 30, 30, .35), 0 30px 60px -20px #000;
}
.phone__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone__screen::before { /* readability gradients */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(0,0,0,.45), transparent 18%, transparent 52%, rgba(0,0,0,.72));
}
.phone__top { position: absolute; z-index: 2; top: 14px; left: 12px; right: 12px; display: flex; align-items: center; gap: 6px; font: 600 11px/1 system-ui, sans-serif; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 6px; }
.pill--live { background: #ff1f3d; letter-spacing: .06em; }
.pill--views { background: rgba(0,0,0,.45); }
.pill--views svg { width: 13px; height: 13px; fill: currentColor; }
.phone__clock { margin-left: auto; font: 500 11px/1 var(--f-mono); background: rgba(0,0,0,.45); padding: 5px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.phone__loc { position: absolute; z-index: 2; top: 44px; left: 14px; margin: 0; font: 500 11px/1 system-ui, sans-serif; opacity: .9; }
.chat {
  position: absolute; z-index: 2; left: 10px; right: 54px; bottom: 58px;
  height: 46%; margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 7px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 30%); mask-image: linear-gradient(transparent, #000 30%);
}
.chat li {
  display: flex; gap: 7px; align-items: flex-start;
  font: 500 12.5px/1.3 system-ui, sans-serif; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
  animation: chatIn .45s var(--ease) both;
}
.chat li .av { flex: none; display: block; width: 24px; height: 24px; overflow: visible; filter: drop-shadow(0 1px 3px rgba(0,0,0,.45)); }
.chat li { padding-top: 1px; }
.chat li.alarm { color: #ffd2d2; }
.chat li.alarm span { background: rgba(200, 0, 20, .55); padding: 2px 6px; border-radius: 6px; }
@keyframes chatIn { from { opacity: 0; transform: translateY(12px); } }
.hearts { position: absolute; z-index: 2; right: 8px; bottom: 60px; width: 40px; height: 60%; pointer-events: none; }
.hearts span { position: absolute; bottom: 0; left: 50%; font-size: 20px; animation: heart 2.6s ease-out forwards; }
@keyframes heart {
  0% { transform: translate(-50%, 0) scale(.4); opacity: 0; }
  15% { opacity: 1; transform: translate(-50%, -20px) scale(1); }
  100% { transform: translate(calc(-50% + var(--dx, 0px)), -260px) scale(.8); opacity: 0; }
}
.phone__bar { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 14px; display: flex; align-items: center; gap: 8px; }
.phone__bar span { flex: 1; font: 400 12px/1 system-ui, sans-serif; color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.3); border-radius: 20px; padding: 9px 12px; }
.phone__bar i { font-style: normal; color: #ff3b5c; font-size: 22px; }
.phone__glitch {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, rgba(255,0,60,.35), rgba(0,255,200,.25));
  mix-blend-mode: screen;
}
.phone.is-glitching .phone__video { animation: glitch .28s steps(2) infinite; }
@keyframes glitch {
  0% { transform: translate(0); filter: none; }
  25% { transform: translate(-6px, 2px) skewX(6deg); filter: hue-rotate(80deg) contrast(1.8); clip-path: inset(10% 0 30% 0); }
  50% { transform: translate(5px, -3px); filter: saturate(3) contrast(2); clip-path: inset(40% 0 5% 0); }
  75% { transform: translate(-3px, 0) skewX(-4deg); clip-path: inset(0 0 60% 0); }
}
.phone__lost {
  position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; text-align: center; gap: 8px;
  background: #0b0b0b; opacity: 0; font: 500 12px/1.3 system-ui, sans-serif; color: #aaa;
}
.phone__lost b { font: 400 26px/1 var(--f-display); text-transform: uppercase; color: #fff; letter-spacing: .02em; }
.phone__lost { padding: 0 22px; }
.lost__status { font: 500 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #ff6b6b; }
.lost__status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ff3b3b; margin-right: 7px; vertical-align: 1px; animation: blink 1.2s steps(2) infinite; }
.lost__note { margin: 14px auto 0; max-width: 30ch; font: 400 12.5px/1.5 var(--f-serif); color: #cfc6ba; }
.phone figcaption { margin-top: 14px; font: 400 10.5px/1.5 var(--f-mono); letter-spacing: .04em; color: #a99e92; text-align: center; }

.live__outro { position: absolute; z-index: 5; inset: 0; display: grid; place-content: center; text-align: center; padding: 0 var(--gutter); pointer-events: none; }
.outro__line { margin: 0 auto; max-width: 22ch; font: 400 clamp(34px, 4.4vw, 68px)/1.02 var(--f-display); text-transform: uppercase; opacity: 0; grid-area: 1 / 1; }
.outro__line--2 { font: 400 clamp(26px, 3vw, 46px)/1.2 var(--f-serif); text-transform: none; max-width: 24ch; }
.outro__line--2 em { color: #ff4d4d; }

@media (max-width: 760px) {
  .live__intro { top: 76px; transform: none; width: auto; right: var(--gutter); }
  .live__title { font-size: 64px; }
  .live__title span:nth-child(2) { font-size: 24px; }
  .live__dek { font-size: 15px; margin-top: 14px; }
  .live__cue { display: none; }
  /* phones: shorter scroll, and nothing expensive that the full-screen stream would hide anyway */
  .live { height: 310vh; height: 310svh; }
  .live__bg, .live__grain { display: none; }
  .live__alarm { z-index: 4; }
  .phone__lost b { font-size: 34px; }
  .lost__note { font-size: 15px; }
  .phone { will-change: auto; }
  /* on a phone, the stream *is* the screen */
  .phone { inset: 0; width: auto; transform: none; }
  .phone__screen { aspect-ratio: auto; height: 100%; border: 0; border-radius: 0; box-shadow: none; }
  .phone__screen::before { background: linear-gradient(rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 42%, transparent 58%, rgba(0,0,0,.75)); }
  .phone__top { top: 64px; opacity: 0; }
  .phone__loc { top: 96px; opacity: 0; }
  .chat { height: 40%; bottom: 66px; right: 64px; }
  .chat li { font-size: 14px; }
  .chat li .av { width: 28px; height: 28px; }
  .phone__bar { bottom: 18px; left: 14px; right: 14px; }
  .phone figcaption { display: none; }
  .live__intro { z-index: 5; }
  .live__stage::after { background: linear-gradient(rgba(6,5,5,.9) 0%, rgba(6,5,5,.5) 50%, rgba(80,6,10,.4) 100%); }
}

/* the torn edge on dark */
.live + .paper .torn__shadow { fill: rgba(255, 60, 60, .35); }

/* =========================================================
   CHAPTER RAIL
   ========================================================= */
.rail {
  position: fixed; z-index: 40; right: 18px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 14px;
}
.rail a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; text-decoration: none; color: var(--rail, #d8cfc4); }
.rail i { order: 2; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; transition: background .3s, transform .3s; }
.rail span { font: 500 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; opacity: 0; transform: translateX(6px); transition: .3s var(--ease); white-space: nowrap; }
.rail a:hover span, .rail a.is-on span { opacity: 1; transform: none; }
.rail a.is-on i { background: #ff3b3b; border-color: #ff3b3b; transform: scale(1.3); }
.rail.on-paper { --rail: #6d665c; }
@media (max-width: 1100px) { .rail { display: none; } }

/* =========================================================
   TIMELINE PANEL + MAP
   ========================================================= */
.panel { position: sticky; top: 72px; align-self: start; display: grid; gap: 14px; }
.panel .clock { position: static; display: flex; align-items: center; gap: 16px; }
.panel .clock__time { font-size: clamp(56px, 5.6vw, 96px); }
.panel .clock__date { margin: 0; }
.map { margin: 0; position: relative; }
.map__svg {
  display: block; width: 100%; height: auto; max-height: calc(100vh - 230px);
  background: #ece5d8; border: 1px solid rgba(0,0,0,.12); border-radius: 4px;
}
.m-green path { fill: #dde3cc; }
.m-bld path { fill: #e0d7c6; }
.m-minor path { fill: none; stroke: #d9cfbe; stroke-width: 1.4; }
.m-road path { fill: none; stroke: #fbf8f2; stroke-width: 7; stroke-linecap: round; }
.m-road path.m-trunk, .m-road path.m-motorway { stroke-width: 11; }
.m-parl { fill: rgba(179, 18, 27, .18); stroke: var(--red); stroke-width: 2.5; }
.m-lbl { font: 400 22px/1 var(--f-display); letter-spacing: .06em; fill: var(--red); }
.m-road-lbl { font: 500 10px/1 var(--f-mono); letter-spacing: .2em; fill: #8b8172; }
.m-note { font: 500 13px/1 var(--f-mono); fill: var(--ink); paint-order: stroke; stroke: #ece5d8; stroke-width: 4px; }
.m-note.z, .m-dist.z { font-size: 8px; stroke-width: 2.5px; }
.m-note--big { font: 400 30px/1 var(--f-display); }
.m-note--red { fill: var(--red); }
.m-note--crowd { fill: #1d6b33; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.m-note--police { fill: #111; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.m-dist { font: 600 13px/1 var(--f-mono); fill: #111; paint-order: stroke; stroke: #ece5d8; stroke-width: 4px; }
.ah { fill: #1d6b33; }
.crowd { fill: none; stroke: #1d6b33; stroke-width: 7; stroke-linecap: round; marker-end: url(#ah); stroke-dasharray: 2 14; animation: march 1s linear infinite; }
@keyframes march { to { stroke-dashoffset: -16; } }
.police { stroke: #111; stroke-width: 9; stroke-linecap: square; }
.range { stroke: #111; stroke-width: 2; stroke-dasharray: 5 4; }
.shooter { fill: #111; stroke: #ff3b3b; stroke-width: 3; }
.x path { stroke: var(--red); stroke-width: 4.5; stroke-linecap: round; }
.fire circle { fill: #ff8a1f; opacity: .35; animation: flick .5s infinite alternate; }
.fire path { fill: #ff5a00; }
@keyframes flick { to { opacity: .7; transform: scale(1.25); } }
.pulse { fill: none; stroke: #111; stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: pulse 1.6s infinite; }
.pulse--red { stroke: var(--red); }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.L { opacity: 0; transition: opacity .5s; pointer-events: none; }
.L.on { opacity: 1; }
.map__note { margin-top: 8px; font: 400 10.5px/1.4 var(--f-mono); color: var(--muted); letter-spacing: .03em; }
@media (max-width: 860px) {
  .panel { position: sticky; top: 50px; z-index: 6; background: var(--paper); padding: 8px 0 6px; grid-template-columns: auto 1fr; align-items: center; gap: 10px; box-shadow: 0 10px 18px -12px rgba(0,0,0,.3); }
  .panel .clock__time { font-size: 38px; }
  .panel .clock__date { display: none; }
  .map__svg { max-height: 34vh; }
  .map__note { display: none; }
}

/* 3D map */
.map__stage { position: relative; line-height: 0; }
.map3d {
  position: absolute; inset: 0; width: 100% !important; height: 100% !important;
  border-radius: 4px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.map__stage.is-3d .map3d { opacity: 1; visibility: visible; }
.map__stage.is-3d .map__svg { visibility: hidden; transition: visibility 0s .35s; }
.map3d__labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .3s; line-height: 1.2; }
.map__stage.is-3d .map3d__labels { opacity: 1; }
.map__stage.is-leaving .map3d__labels { opacity: 0; }
.m3-lbl {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .04em;
  color: var(--ink); background: rgba(243, 238, 228, .92); padding: 4px 6px; border-radius: 2px;
  box-shadow: 0 1px 0 rgba(0,0,0,.15); margin-top: -6px; transition: opacity .2s;
}
.m3-lbl::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 1px; height: 5px; background: currentColor; opacity: .6; }
.m3-lbl--below { margin-top: 8px; }
.m3-lbl--below::after { bottom: auto; top: -5px; }
.m3-lbl--red { color: #fff; background: var(--red); }
.m3-lbl--yellow { color: var(--black); background: #f2c230; }
.m3-lbl--crowd { color: #fff; background: #1d6b33; }
.m3-lbl--police { color: #fff; background: #1b1d22; }
.m3-lbl--dist { background: #fff; font-weight: 600; }
.map__mode {
  position: absolute; top: 10px; right: 10px; z-index: 3; display: none;
  background: rgba(243, 238, 228, .94); border: 1px solid rgba(0,0,0,.15); border-radius: 30px; padding: 3px;
}
.map.has-3d .map__mode { display: flex; }
.map__mode button {
  font: 500 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  border: 0; background: none; color: var(--ink); padding: 7px 12px; border-radius: 30px; cursor: pointer;
}
.map__mode button[aria-pressed="true"] { background: var(--black); color: var(--paper); }
.map__mode button:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }

@media (max-width: 860px) {
  .m3-lbl { font-size: 8.5px; padding: 2px 4px; }
  .map__mode { top: 6px; right: 6px; padding: 2px; }
  .map__mode button { font-size: 9px; padding: 5px 8px; }
}

/* footage loops */
.clip { position: relative; }
.clip video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; background: #111; display: block; }
.clip__badge { position: absolute; top: 10px; left: 10px; font: 500 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.55); padding: 5px 7px; border-radius: 3px; }
.clip__badge { animation: none; }

/* =========================================================
   SCRUBBER
   ========================================================= */
.scene--scrub canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.scrub__chapter { position: absolute; left: 14px; top: 46px; z-index: 2; }
.scrub__src { font: 500 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; background: #ff3b3b; color: #fff; padding: 6px 8px; border-radius: 2px; }
.forensic__frame[data-state="0"] .scene--scrub,
.forensic__frame[data-state="1"] .scene--scrub,
.forensic__frame[data-state="2"] .scene--scrub { opacity: 1; }
.scrub__bar {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: max(14px, calc((100svh - min(1200px, 100vw) * 9 / 16) / 2 - 56px));
  width: min(1200px, 100% - 2 * var(--gutter));
  display: flex; align-items: center; gap: 14px;
  font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #bdb5a8;
  transition: opacity .4s;
}
.forensic__sticky:has(.forensic__frame:not([data-state="0"]):not([data-state="1"]):not([data-state="2"])) .scrub__bar { opacity: 0; }
.scrub__track { position: relative; flex: 1; height: 4px; background: rgba(255,255,255,.15); border-radius: 2px; }
.scrub__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: #ff3b3b; border-radius: 2px; }
.scrub__mark { position: absolute; top: -5px; width: 2px; height: 14px; background: #fff; opacity: .6; }
.scrub__mark::after { content: "3D model"; position: absolute; left: 6px; top: -2px; font-size: 9px; color: #bdb5a8; white-space: nowrap; }
.scrub__head { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,59,59,.5); }
.scrub__tc { color: #fff; font-variant-numeric: tabular-nums; min-width: 6ch; text-align: right; }
.step__hint { font: 400 11.5px/1.5 var(--f-mono); color: #ff8a8a; letter-spacing: .04em; }

/* =========================================================
   FLOWERS ON THE WIRE
   ========================================================= */
.barbed { position: relative; }
.wire { position: relative; height: 70px; margin: 56px auto 0; max-width: 1100px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Cpath d='M0 20 Q30 12 60 20 T120 20' stroke='%23aaa' stroke-width='2' fill='none'/%3E%3Cpath d='M0 23 Q30 30 60 23 T120 23' stroke='%23888' stroke-width='2' fill='none'/%3E%3Cpath d='M28 10 L36 32 M34 10 L26 32 M88 10 L96 32 M94 10 L86 32' stroke='%23999' stroke-width='2'/%3E%3C/svg%3E") repeat-x 0 50%;
}
.wire__flowers { position: absolute; inset: 0; }
.flower { position: absolute; top: 50%; font-size: 26px; line-height: 1; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); animation: hang .9s cubic-bezier(.3,1.6,.5,1) both; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
@keyframes hang { from { transform: translate(-50%, -260%) rotate(-30deg); opacity: 0; } }
.flower-ui { margin-top: 26px; display: grid; justify-items: center; gap: 12px; }
.flower-btn {
  font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--black); background: var(--paper); border: 0; border-radius: 40px; padding: 14px 22px; cursor: pointer;
  transition: transform .2s, background .2s;
}
.flower-btn:hover { background: #fff; transform: translateY(-2px); }
.flower-btn:focus-visible { outline: 2px solid #ff6b6b; outline-offset: 3px; }
.flower-btn__icon { color: var(--red); font-size: 15px; }
.barbed .flower-count { margin: 0; font: 400 clamp(22px, 2.4vw, 32px)/1.1 var(--f-display); text-transform: uppercase; color: var(--paper); letter-spacing: .02em; }
.barbed .flower-count:empty { display: none; }
.barbed .flower-note { margin: 0; text-transform: none; color: #a99e92; font: 400 11.5px/1.5 var(--f-mono); color: #a99e92; max-width: 52ch; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .type .ch { opacity: 1 !important; }
}
