/* ==========================================================================
   INCIDENT FILE HF-2026-07 — design system
   Dark, editorial, memorial-adjacent. Serif display + mono forensics.
   ========================================================================== */

:root {
  --canvas: #0c0b09;
  --surface: #14120e;
  --surface-2: #1a1712;
  --ink: #ece5d5;
  --ink-soft: #c6bca8;
  --muted: #8f8571;
  --faint: #5b5344;
  --line: #29231a;
  --line-soft: #1d1913;

  --attacker: #ffa028;
  --attacker-hot: #ff5230;
  --defender: #7fc6dd;
  --disclosure: #e8dfca;
  --policy: #a5c48d;
  --press: #a29885;

  --serif-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --serif-body: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --head-h: 54px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --measure: 68ch;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 1.075rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle film-grain / terminal texture over the whole canvas */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.012) 0px,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

::selection { background: rgba(255, 160, 40, 0.28); color: #fff8ec; }

a { color: inherit; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.mono { font-family: var(--mono); }

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 3000;
  background: var(--attacker);
  color: #131109;
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.5rem 0.9rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 0.5rem; }

/* ---------- fixed header ---------- */

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--head-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 var(--gutter);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(12, 11, 9, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-head .brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.site-head .brand em { color: var(--attacker); font-style: normal; }
.site-head nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}
.site-head nav a {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
}
.site-head nav a:hover, .site-head nav a:focus-visible { color: var(--attacker); }
.head-clock {
  color: var(--faint);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.head-clock b { color: var(--muted); font-weight: 500; }
.head-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--attacker), var(--attacker-hot));
}

/* ---------- shared section chrome ---------- */

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { position: relative; }

.sec-kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.4rem;
}
.sec-kicker::after {
  content: "";
  height: 1px;
  flex: 0 0 64px;
  background: var(--line);
}
.sec-kicker .fig { color: var(--attacker); }

.sec-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 1.2rem;
  max-width: 20ch;
}
.sec-title em { font-style: italic; color: var(--attacker); }
.sec-lede {
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: 1.12rem;
  margin: 0 0 3rem;
}

/* source chips — every factual claim carries its paper trail */
.src-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
}
.src-list a {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 0.28rem 0.55rem;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.src-list a::after {
  content: "↗";
  font-size: 0.6rem;
  opacity: 0.6;
}
.src-list a:hover, .src-list a:focus-visible {
  color: var(--attacker);
  border-color: var(--attacker);
  background: rgba(255, 160, 40, 0.06);
}
.src-list a[data-kind="primary"] { color: var(--ink-soft); border-color: #39301f; }

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- HERO ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--head-h) + 4rem) 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-bg-count {
  position: absolute;
  right: -0.08em;
  top: 44%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(12rem, 34vw, 30rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 160, 40, 0.13);
  pointer-events: none;
  user-select: none;
  font-variant-numeric: tabular-nums;
}
.hero .wrap { position: relative; width: 100%; }
.hero-file-row {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-bottom: 2.6rem;
}
.hero-file-row .hot { color: var(--attacker); }
.hero h1 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(3rem, 8.6vw, 7.4rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0 0 1.8rem;
  max-width: 12ch;
}
.hero h1 .strike {
  position: relative;
  white-space: nowrap;
}
.hero h1 .strike::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 54%;
  height: 0.055em;
  background: var(--attacker-hot);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.1s var(--ease-out) 0.5s;
}
.hero.in h1 .strike::after { transform: scaleX(1); }
.hero h1 em { font-style: italic; color: var(--attacker); }
.hero-lede {
  max-width: 56ch;
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  margin: 0 0 3rem;
}
.hero-lede b { color: var(--ink); font-weight: 600; }
.hero-lede .redact {
  background: var(--faint);
  color: transparent;
  border-radius: 1px;
  cursor: help;
  position: relative;
  transition: background 0.25s, color 0.25s;
}
.hero-lede .redact:hover, .hero-lede .redact:focus-visible {
  background: rgba(255, 82, 48, 0.16);
  color: var(--attacker-hot);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 3.2rem;
}
.stat {
  background: var(--surface);
  padding: 1rem 1rem 1.1rem;
}
.stat .v {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: block;
}
.stat .v.hot { color: var(--attacker); }
.stat .k {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 0.4rem;
  line-height: 1.5;
}

.scroll-cue {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--faint);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}
.scroll-cue .arrow {
  display: inline-block;
  animation: cue-bob 2.2s ease-in-out infinite;
  color: var(--attacker);
}
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ---------- FIG. 01 — campaign chart ---------- */

.chart-fig {
  margin: 0 0 5rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.chart-fig figcaption {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.chart-fig figcaption b { color: var(--ink-soft); font-weight: 500; }
.chart-pad { padding: 1.6rem 1.4rem 1.2rem; }

.vol-chart { width: 100%; height: auto; display: block; }
.vol-chart .grid-line { stroke: var(--line-soft); stroke-width: 1; }
.vol-chart .bar { fill: url(#bar-grad); }
.vol-chart .bar-quiet { fill: #3a3325; }
.vol-chart text {
  font-family: var(--mono);
  fill: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}
.vol-chart .bar-val { fill: var(--ink); font-weight: 600; font-size: 12.5px; }
.vol-chart .bar-note { fill: var(--faint); font-style: italic; }
.vol-chart .peak-note { fill: var(--attacker); }
.vol-chart .quiet-note { fill: #7a6f52; }

.swim { margin-top: 2.2rem; }
.swim-head {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--faint);
  text-transform: uppercase;
  margin: 0 0 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.swim-grid {
  display: grid;
  grid-template-columns: minmax(96px, 130px) repeat(5, 1fr) minmax(64px, 84px);
  gap: 3px;
}
.swim-cell, .swim-label, .swim-count, .swim-day {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  padding: 0.42rem 0.5rem;
  white-space: nowrap;
}
.swim-day { color: var(--muted); text-align: center; }
.swim-day + .swim-day { border-left: none; }
.swim-label { color: var(--ink-soft); }
.swim-count { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.swim-cell {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  min-height: 26px;
  position: relative;
  transition: background 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out);
}
.swim-cell.on {
  background: rgba(255, 160, 40, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 160, 40, 0.4);
}
.swim-cell.onset {
  background: rgba(255, 82, 48, 0.2);
  box-shadow: inset 0 0 0 1px var(--attacker-hot);
}
.swim-legend {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--faint);
  letter-spacing: 0.08em;
  margin-top: 0.9rem;
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.swim-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 0.4rem;
  vertical-align: -1px;
  border: 1px solid var(--line);
  font-style: normal;
}
.swim-legend .lg-on { background: rgba(255, 160, 40, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 160, 40, 0.4); }
.swim-legend .lg-onset { background: rgba(255, 82, 48, 0.2); box-shadow: inset 0 0 0 1px var(--attacker-hot); }

/* ---------- THE TIMELINE ---------- */

.tl-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
}

/* sticky forensic rail */
.tl-rail {
  position: sticky;
  top: calc(var(--head-h) + 24px);
  font-family: var(--mono);
  border: 1px solid var(--line);
  background: rgba(20, 18, 14, 0.7);
  backdrop-filter: blur(6px);
}
.rail-block { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line-soft); }
.rail-block:last-child { border-bottom: none; }
.rail-k {
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  color: var(--faint);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.45rem;
}
.rail-k .k-short { display: none; }
.rail-clock {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.rail-clock .dim { color: var(--faint); font-weight: 400; }
.rail-count {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 600;
  color: var(--attacker);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.rail-count .dim { color: var(--faint); font-size: 0.62em; font-weight: 400; }
.rail-bar {
  height: 3px;
  background: var(--surface-2);
  margin-top: 0.7rem;
  overflow: hidden;
}
.rail-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--attacker), var(--attacker-hot));
}
.rail-phases { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.phase-chip {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--line);
  color: var(--faint);
  display: inline-flex;
  gap: 0.4rem;
  align-items: baseline;
  transition: color 0.4s, border-color 0.4s, background 0.4s;
}
.phase-chip b { font-weight: 600; font-variant-numeric: tabular-nums; }
.phase-chip.lit {
  color: var(--attacker);
  border-color: rgba(255, 160, 40, 0.55);
  background: rgba(255, 160, 40, 0.07);
}
.rail-state {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.rail-state .blip {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
  margin-right: 0.5rem;
  vertical-align: 0;
}
.rail-state.live .blip { background: var(--attacker-hot); animation: blip 1.1s ease-in-out infinite; }
@keyframes blip { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* the stream + spine */
.tl-stream { position: relative; padding: 0.5rem 0 4rem clamp(2.2rem, 4vw, 4rem); }
.spine-track, .spine-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
}
.spine-track { background: var(--line); }
.spine-fill {
  background: linear-gradient(180deg, var(--attacker) 0%, var(--attacker-hot) 55%, var(--defender) 100%);
  transform-origin: 0 0;
  transform: scaleY(0);
}

/* day groups */
.day-group { margin-bottom: 3.4rem; position: relative; }
.day-head { position: relative; margin-bottom: 1.8rem; }
.day-head::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(2.2rem, 4vw, 4rem) - 7px);
  top: 0.9rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--canvas);
  border: 2px solid var(--faint);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.day-group.active .day-head::before {
  border-color: var(--attacker);
  box-shadow: 0 0 14px rgba(255, 160, 40, 0.55);
}
.day-group.defense .day-head::before { border-color: var(--defender); box-shadow: none; }
.day-group.defense.active .day-head::before { box-shadow: 0 0 14px rgba(127, 198, 221, 0.5); }

.day-date {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  display: flex;
  gap: 1rem;
  align-items: baseline;
  flex-wrap: wrap;
}
.day-date .dow { color: var(--faint); }
.day-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.05;
  margin: 0.35rem 0 0.7rem;
}
.day-title em { font-style: italic; color: var(--attacker); }
.day-group.defense .day-title em { color: var(--defender); }

.day-vol { max-width: 520px; }
.day-vol .dv-row {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  font-family: var(--mono);
  margin-bottom: 0.4rem;
}
.day-vol .dv-n {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--attacker);
  font-variant-numeric: tabular-nums;
}
.day-vol .dv-k { font-size: 0.6rem; letter-spacing: 0.18em; color: var(--faint); text-transform: uppercase; }
.day-vol .dv-note { font-size: 0.66rem; color: var(--muted); font-style: italic; margin-left: auto; }
.day-vol .dv-track {
  height: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.day-vol .dv-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(255, 160, 40, 0.55), var(--attacker));
  transition: width 1.4s var(--ease-out);
}
.day-group.active .dv-fill { width: var(--w); }
.day-group.quiet-day .dv-fill { background: #4a4130; }
.day-group.peak-day .dv-fill { background: linear-gradient(90deg, var(--attacker), var(--attacker-hot)); }
.day-phases { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.7rem; }

/* event nodes */
.node { position: relative; margin-bottom: 2.2rem; max-width: 720px; }
.node::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(2.2rem, 4vw, 4rem) - 4px);
  top: 0.55rem;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: var(--canvas);
  border: 1.5px solid var(--faint);
  transition: border-color 0.3s, background 0.3s;
}
.node[data-cat="attacker"]::before { border-color: var(--attacker); }
.node[data-cat="defender"]::before { border-color: var(--defender); transform: rotate(45deg); border-radius: 50%; }
.node[data-cat="disclosure"]::before { border-color: var(--disclosure); }
.node[data-cat="policy"]::before { border-color: var(--policy); }
.node[data-cat="press"]::before { border-color: var(--press); }
.node.open::before { background: currentColor; }
.node[data-cat="attacker"].open::before { background: var(--attacker); }
.node[data-cat="defender"].open::before { background: var(--defender); }
.node[data-cat="disclosure"].open::before { background: var(--disclosure); }
.node[data-cat="policy"].open::before { background: var(--policy); }
.node[data-cat="press"].open::before { background: var(--press); }

.node-head { cursor: default; }
.node-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.45rem;
}
.node-time { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.node-cat {
  padding: 0.14rem 0.45rem;
  border: 1px solid currentColor;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
}
.node-cat[data-cat="attacker"] { color: var(--attacker); }
.node-cat[data-cat="defender"] { color: var(--defender); }
.node-cat[data-cat="disclosure"] { color: var(--disclosure); }
.node-cat[data-cat="policy"] { color: var(--policy); }
.node-cat[data-cat="press"] { color: var(--press); }

.node-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  line-height: 1.08;
  margin: 0 0 0.4rem;
}
.node-lede {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin: 0 0 0.6rem;
  max-width: 60ch;
}
.node-toggle {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 0.35rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.15s;
}
.node-toggle:hover, .node-toggle:focus-visible { color: var(--attacker); }
.node-toggle .glyph { color: var(--attacker); font-weight: 600; transition: transform 0.3s var(--ease-out); }
.node.open .node-toggle .glyph { transform: rotate(45deg); }

.node-card {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.55s var(--ease-out), opacity 0.4s var(--ease-out), margin 0.4s;
  margin-top: 0;
}
.node.open .node-card { max-height: 1200px; opacity: 1; margin-top: 1rem; }
.node-card-inner {
  border: 1px solid var(--line);
  border-left: 2px solid var(--attacker);
  background: var(--surface);
  padding: 1.3rem 1.4rem 1.2rem;
}
.node[data-cat="defender"] .node-card-inner { border-left-color: var(--defender); }
.node[data-cat="disclosure"] .node-card-inner { border-left-color: var(--disclosure); }
.node[data-cat="policy"] .node-card-inner { border-left-color: var(--policy); }
.node[data-cat="press"] .node-card-inner { border-left-color: var(--press); }
.node-card p { margin: 0 0 0.9rem; max-width: var(--measure); }
.node-card p:last-of-type { margin-bottom: 0; }
.node-detail {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  margin-top: 1rem;
  padding-top: 0.9rem;
}
.node-detail::before {
  content: "FIELD NOTE — ";
  color: var(--attacker);
  letter-spacing: 0.14em;
}

/* aftermath divider */
.after-divider {
  margin: 4rem 0 3rem;
  position: relative;
  font-family: var(--mono);
}
.after-divider .ad-line {
  border-top: 1px dashed var(--line);
  margin-bottom: 1.1rem;
}
.after-divider .ad-k {
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  color: var(--defender);
  text-transform: uppercase;
}
.after-divider .ad-t {
  font-family: var(--serif-display);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  color: var(--ink);
  margin-top: 0.4rem;
  line-height: 1.05;
}
.after-divider p { color: var(--muted); font-family: var(--serif-body); font-size: 1rem; max-width: 60ch; }

/* coda */
.tl-coda {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  letter-spacing: 0.1em;
  border: 1px dashed var(--line);
  padding: 1.1rem 1.3rem;
  max-width: 720px;
  line-height: 2;
}
.tl-coda b { color: var(--muted); font-weight: 500; }
.tl-coda .hot { color: var(--attacker); }
.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: var(--attacker);
  vertical-align: -0.12em;
  animation: blink 1.06s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- ATTACK CHAIN STEPPER ---------- */

.chain { padding: 7rem 0; }
.chain-shell {
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
}
.chain-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.35;
}
.chain-inner { position: relative; padding: 1.6rem clamp(1rem, 3vw, 2.4rem) 2rem; }

.chain-track {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding: 1rem 0 0.6rem;
  min-height: 96px;
  scrollbar-width: none;
  scrollbar-color: var(--line) transparent;
}
.chain-track::-webkit-scrollbar { display: none; }
.chain-node {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}
.chain-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--faint);
  background: var(--canvas);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  transition: all 0.35s var(--ease-out);
}
.chain-dot:hover, .chain-dot:focus-visible { border-color: var(--attacker); color: var(--attacker); }
.chain-node.done .chain-dot { border-color: rgba(255, 160, 40, 0.5); color: var(--attacker); }
.chain-node.current .chain-dot {
  border-color: var(--attacker-hot);
  color: #131109;
  background: var(--attacker-hot);
  box-shadow: 0 0 18px rgba(255, 82, 48, 0.5);
}
.chain-link {
  width: clamp(14px, 2.4vw, 34px);
  height: 1.5px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.chain-node.done + .chain-node .chain-link,
.chain-node.done .chain-link { background: rgba(255, 160, 40, 0.45); }
.chain-gate {
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  align-items: center;
  margin: 0 0.5rem;
}
.chain-gate i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  color: var(--attacker-hot);
  border: 1px dashed rgba(255, 82, 48, 0.5);
  padding: 0.22rem 0.4rem;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.chain-stage { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 3.5vw, 3.5rem); }
.chain-stage-main .cs-zone {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: var(--defender);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.8rem;
}
.chain-stage-main .cs-step {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--faint);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 0.6rem;
  font-variant-numeric: tabular-nums;
}
.chain-stage-main h3 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1;
  margin: 0 0 0.6rem;
}
.chain-stage-main h3 em { color: var(--attacker); font-style: italic; }
.chain-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--attacker);
  display: block;
  margin-bottom: 1.2rem;
}
.chain-body { color: var(--ink-soft); font-size: 1.05rem; max-width: 56ch; margin: 0 0 1.2rem; }
.chain-note {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--muted);
  border-left: 2px solid var(--attacker);
  padding: 0.35rem 0 0.35rem 0.9rem;
  margin: 0 0 1.2rem;
  max-width: 52ch;
  font-style: italic;
}

.chain-side {
  border: 1px solid var(--line);
  background: var(--canvas);
  font-family: var(--mono);
  align-self: start;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.chain-side .term-head {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--faint);
  border-bottom: 1px solid var(--line-soft);
  padding: 0.55rem 0.9rem;
  display: flex;
  justify-content: space-between;
}
.chain-side .term-body {
  padding: 0.9rem;
  font-size: 0.7rem;
  line-height: 1.9;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1;
}
.chain-side .term-body .ok { color: var(--policy); }
.chain-side .term-body .bad { color: var(--attacker-hot); }
.chain-side .term-body .dim { color: var(--faint); }
.chain-side .term-foot {
  border-top: 1px solid var(--line-soft);
  padding: 0.5rem 0.9rem;
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  color: var(--faint);
}

.chain-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  font-family: var(--mono);
}
.chain-btn {
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  padding: 0.7rem 1.2rem;
  text-transform: uppercase;
  transition: all 0.15s;
}
.chain-btn:hover:not(:disabled), .chain-btn:focus-visible:not(:disabled) {
  border-color: var(--attacker);
  color: var(--attacker);
  background: rgba(255, 160, 40, 0.06);
}
.chain-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.chain-progress {
  margin-left: auto;
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
}
.chain-progress b { color: var(--attacker); font-weight: 600; }
.chain-hint { font-size: 0.58rem; color: var(--faint); letter-spacing: 0.12em; }

/* ---------- STAKES ---------- */

.stakes { padding: 7rem 0 5rem; }
.stakes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 4rem;
}
.stake {
  background: var(--surface);
  padding: 1.6rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
}
.stake .n {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--attacker);
  margin-bottom: 1rem;
}
.stake h3 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.05;
  margin: 0 0 0.8rem;
}
.stake p { color: var(--ink-soft); font-size: 0.98rem; margin: 0 0 1rem; flex: 1; }

.quote-band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); }
.quote blockquote {
  margin: 0 0 1rem;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.15;
}
.quote blockquote::before { content: "“"; color: var(--attacker); }
.quote blockquote::after { content: "”"; color: var(--attacker); }
.quote figcaption {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  line-height: 1.9;
}
.quote figcaption b { color: var(--ink-soft); font-weight: 500; display: block; }

/* ---------- SOURCES / FOOTER ---------- */

.sources { padding: 5rem 0 3rem; }
.src-groups { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); }
.src-group h3 {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.1rem;
  font-weight: 500;
}
.src-group ul { list-style: none; margin: 0 0 2rem; padding: 0; }
.src-group li { margin-bottom: 0.55rem; }
.src-group a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.98rem;
  border-bottom: 1px solid var(--line);
  transition: color 0.15s, border-color 0.15s;
}
.src-group a:hover, .src-group a:focus-visible { color: var(--attacker); border-color: var(--attacker); }
.src-group .src-date {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--faint);
  letter-spacing: 0.1em;
  margin-left: 0.6rem;
  white-space: nowrap;
}
.method-note {
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.9;
  color: var(--muted);
  border: 1px dashed var(--line);
  padding: 1.2rem 1.4rem;
  margin-top: 1rem;
}
.method-note b { color: var(--ink-soft); font-weight: 500; }

.colophon {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 2.6rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  align-items: center;
  line-height: 1.9;
}
.colophon .end {
  color: var(--muted);
  letter-spacing: 0.22em;
}
.colophon button.killhint {
  font: inherit;
  letter-spacing: inherit;
  color: var(--faint);
  border: 1px dashed var(--line);
  padding: 0.3rem 0.7rem;
  transition: all 0.15s;
}
.colophon button.killhint:hover, .colophon button.killhint:focus-visible {
  color: var(--attacker-hot);
  border-color: var(--attacker-hot);
}
.colophon button.killhint kbd {
  font: inherit;
  border: 1px solid currentColor;
  padding: 0 0.3rem;
  margin-right: 0.3rem;
}

/* kill-switch overlay */
.kill-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: #050403;
  display: grid;
  place-items: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.kill-overlay.on { opacity: 1; pointer-events: auto; }
.kill-term {
  font-family: var(--mono);
  font-size: clamp(0.78rem, 2vw, 0.95rem);
  line-height: 2.1;
  color: var(--ink-soft);
  max-width: 640px;
  width: 100%;
}
.kill-term .k-title {
  color: var(--attacker-hot);
  letter-spacing: 0.3em;
  font-weight: 600;
  margin-bottom: 1.4rem;
  font-size: 0.8em;
}
.kill-term .ln { display: block; min-height: 1.6em; }
.kill-term .dim { color: var(--faint); }
.kill-term .bad { color: var(--attacker-hot); }
.kill-term .ok { color: var(--policy); }
.kill-term a { color: var(--defender); }
.kill-term .resume { margin-top: 1.6rem; color: var(--faint); font-size: 0.8em; letter-spacing: 0.14em; }

/* ---------- responsive ---------- */

@media (max-width: 1060px) {
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .tl-layout { grid-template-columns: 1fr; }
  /* rail becomes a slim bottom bar on small screens */
  .tl-rail {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    display: flex;
    align-items: stretch;
    gap: 0;
    border: none;
    border-top: 1px solid var(--line);
    background: rgba(12, 11, 9, 0.92);
    backdrop-filter: blur(10px);
  }
  .rail-block {
    border-bottom: none;
    border-right: 1px solid var(--line-soft);
    padding: 0.45rem 0.65rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
  }
  .rail-k { font-size: 0.5rem; letter-spacing: 0.16em; white-space: nowrap; margin-bottom: 0.25rem; }
  .rail-k .k-full { display: none; }
  .rail-k .k-short { display: inline; }
  .rail-block.rail-phases-block { display: none; }
  .rail-count { font-size: 0.95rem; white-space: nowrap; }
  .rail-count .dim { font-size: 0.7em; }
  .rail-clock { font-size: 0.72rem; white-space: nowrap; }
  .rail-bar { display: none; }
  .rail-block.rail-state-block { margin-left: auto; border-right: none; }
  .rail-state { font-size: 0.52rem; letter-spacing: 0.1em; white-space: nowrap; }
  body { padding-bottom: 64px; }
  /* keep the honest chart legible: scroll it sideways instead of squashing */
  .chart-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
  .chart-scroll .vol-chart { min-width: 620px; }
}

@media (max-width: 860px) {
  .chain-stage { grid-template-columns: 1fr; }
  .stakes-grid { grid-template-columns: 1fr; }
  .quote-band { grid-template-columns: 1fr; }
  .src-groups { grid-template-columns: 1fr; }
  .site-head nav { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-bg-count { font-size: 11rem; top: 18%; }
  .tl-stream { padding-left: 1.7rem; }
  .day-head::before { left: calc(-1.7rem - 7px); }
  .node::before { left: calc(-1.7rem - 4px); }
  .swim-grid { grid-template-columns: minmax(74px, 96px) repeat(5, 1fr); }
  .swim-count { display: none; }
  .swim-cell, .swim-label, .swim-day { font-size: 0.54rem; padding: 0.34rem 0.3rem; }
  .head-clock { display: none; }
  .node-card-inner { padding: 1.05rem 1rem 1rem; }
  .day-vol .dv-note { display: none; }
  .rail-state .st-txt { display: none; }
  .rail-count .dim { display: none; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .day-group .dv-fill { width: var(--w); }
  .node-card { transition: none; }
  .hero h1 .strike::after { transform: scaleX(1); }
  .scroll-cue .arrow { animation: none; }
  .cursor { animation: none; }
}
