/* =====================================
   Investigation template
   Long-form research feature. Independent of main.css and essay.css.
   ===================================== */

:root {
  --night: #0a0a0b;
  --night-2: #131315;
  --night-3: #1c1c1f;
  --night-line: rgba(255, 255, 255, 0.1);
  --night-line-strong: rgba(255, 255, 255, 0.22);
  --on-night: #f3f1ec;
  --on-night-muted: rgba(243, 241, 236, 0.62);
  --on-night-faint: rgba(243, 241, 236, 0.38);

  --bone: #f5f2ec;
  --paper: #fbfaf7;
  --ink: #121212;
  --ink-soft: #393835;
  --muted: #74706a;
  --faint: #a29d95;
  --rule: #e2ddd3;
  --rule-strong: #cfc8bb;

  --signal: #e5484d;
  --signal-deep: #c22b30;
  --signal-soft: rgba(229, 72, 77, 0.12);

  --display: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: 32px;
  --story: 42.5rem;
  --topbar: 56px;
}

/* Larger root size on wide, high-density desktops (e.g. 27" 1440p) so every rem-based size scales up together. */
@media (min-width: 1800px) {
  html { font-size: 112.5%; }
}

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

html:has(body.inv) {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar) + 16px);
}

body.inv {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.8;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.inv a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(229, 72, 77, 0.45);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.inv a:hover {
  text-decoration-color: var(--signal);
}

.inv :focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.inv-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-deep);
}

.is-night .inv-label {
  color: var(--signal);
}

/* ---------- Top bar ---------- */

.inv-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--gutter);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--on-night-muted);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.inv-topbar a {
  color: inherit;
  text-decoration: none;
}

.inv-topbar a:hover {
  color: var(--on-night);
}

.inv-topbar .brand {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--on-night);
}

.inv-topbar .series {
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.inv.is-on-paper .inv-topbar {
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--rule);
  color: var(--muted);
}

.inv.is-on-paper .inv-topbar .brand,
.inv.is-on-paper .inv-topbar a:hover {
  color: var(--ink);
}

.inv-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--signal);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- Hero ---------- */

.inv-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at min(78%, calc(50% + 440px)) 40%, rgba(229, 72, 77, 0.1), transparent 60%),
    var(--night);
  color: var(--on-night);
}

.inv-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.4px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}

.hero-network {
  position: absolute;
  top: 50%;
  /* Anchor to the 1520px content column so the graph stays beside the headline on wide screens. */
  right: max(-3vw, calc(50vw - 800px));
  width: min(56vw, 960px);
  margin: 0;
  transform: translateY(-54%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-network svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-network .network-link {
  fill: none;
  stroke: rgba(243, 241, 236, 0.16);
  stroke-width: 1;
}

.hero-network .network-link--strong {
  stroke: rgba(229, 72, 77, 0.55);
  stroke-width: 1.4;
}

.hero-network .network-link--soft {
  stroke: rgba(243, 241, 236, 0.07);
  stroke-dasharray: 3 6;
}

.hero-network .network-connectors circle {
  fill: rgba(243, 241, 236, 0.35);
}

.hero-network .network-node circle {
  fill: var(--night);
  stroke: rgba(243, 241, 236, 0.55);
  stroke-width: 1.3;
}

.hero-network .network-node--secondary circle {
  fill: var(--on-night);
  stroke: none;
}

.hero-network .network-node--primary circle {
  fill: var(--signal);
  stroke: none;
}

.hero-network .network-node--primary {
  animation: hero-pulse 3.2s ease-in-out infinite;
  transform-origin: 360px 260px;
  transform-box: view-box;
}

.hero-network text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  fill: var(--on-night-muted);
  text-transform: uppercase;
}

.hero-network .network-node:not(.network-node--primary):not(.network-node--secondary) text {
  display: none;
}

.hero-network .network-node--primary text {
  fill: var(--signal);
  font-size: 12px;
}

@keyframes hero-pulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(229, 72, 77, 0)); }
  50% { filter: drop-shadow(0 0 14px rgba(229, 72, 77, 0.7)); }
}

.inv-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: calc(var(--topbar) + 48px) var(--gutter) 48px;
}

.inv-hero h1 {
  max-width: 14ch;
  margin: 24px 0 0;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(3rem, 5.8vw, 6rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--on-night);
}

.inv-hero h1 em {
  font-style: italic;
  color: var(--signal);
}

.inv-hero .deck {
  max-width: 560px;
  margin: 28px 0 0;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--on-night-muted);
}

.inv-hero .deck strong {
  color: var(--on-night);
  font-weight: 500;
}

.inv-hero .hook {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 28px 0 0;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: 1.375rem;
  font-style: italic;
  color: var(--on-night);
}

.inv-hero .hook span + span::before {
  content: "→";
  margin-right: 18px;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-style: normal;
  color: var(--signal);
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--night-line);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  margin: 0;
}

.hero-meta div {
  display: grid;
  gap: 4px;
}

.hero-meta dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-night-faint);
}

.hero-meta dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--on-night);
}

.inv .hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-night);
}

.hero-scroll i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--night-line-strong);
  border-radius: 50%;
  font-style: normal;
  animation: nudge 2.4s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ---------- Paper bands ---------- */

.band {
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px 80px;
}

.band + .band {
  border-top: 1px solid var(--rule);
}

.band h2 {
  margin: 16px 0 0;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(2.25rem, 3.8vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.band-copy p {
  margin: 0 0 1.2em;
}

.band-copy p:last-child {
  margin-bottom: 0;
}

.research-note .band-copy p {
  font-size: 1.25rem;
  line-height: 1.7;
  letter-spacing: 0;
  color: var(--ink);
}

/* Confidence legend */

.legend-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}

.legend-grid article {
  padding: 24px 24px 8px 0;
}

.legend-grid article + article {
  padding-left: 24px;
  border-left: 1px solid var(--rule);
}

.legend-grid svg {
  display: block;
  width: 100%;
  height: 14px;
  margin-bottom: 18px;
}

.legend-grid line {
  stroke: var(--ink);
  stroke-width: 2;
}

.legend-grid h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
}

.legend-grid p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Chapter openers ---------- */

.opener {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--night);
  color: var(--on-night);
}

.opener-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px var(--gutter) 88px;
}

.opener-num {
  position: absolute;
  right: var(--gutter);
  bottom: -0.16em;
  z-index: 0;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(14rem, 34vw, 32rem);
  line-height: 1;
  color: rgba(243, 241, 236, 0.05);
  user-select: none;
  pointer-events: none;
}

.opener h2 {
  max-width: 18ch;
  margin: 24px 0 0;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(2.75rem, 5.4vw, 5.25rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--on-night);
}

.opener .lede {
  max-width: 520px;
  margin: 32px 0 0;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--on-night-muted);
}

.opener.is-pivot {
  background:
    radial-gradient(900px 600px at 50% 60%, rgba(229, 72, 77, 0.16), transparent 70%),
    var(--night);
}

.opener.is-pivot {
  min-height: 100vh;
  min-height: 100svh;
}

.pivot-word {
  position: absolute;
  top: calc(var(--topbar) + 6vh);
  left: 0;
  right: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(8rem, 24vw, 22rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: rgba(229, 72, 77, 0.16);
  pointer-events: none;
  user-select: none;
}

.pivot-word span {
  margin-bottom: 0.12em;
  font-family: var(--mono);
  font-size: 0.07em;
  letter-spacing: 0.5em;
  color: var(--signal);
}

/* ---------- Act body with evidence board ---------- */

.act-body {
  max-width: 1400px;
  margin: 0 auto;
  padding: 96px var(--gutter) 120px;
  display: grid;
  grid-template-columns: minmax(0, var(--story)) minmax(0, 1fr);
  gap: 0 88px;
  align-items: start;
}

.story {
  grid-column: 1;
  min-width: 0;
}

.board-slot {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  width: min(100%, 460px);
  position: sticky;
  top: calc(var(--topbar) + 24px);
  min-width: 0;
}

.story > p,
.story .prose p {
  margin: 0 0 1.35em;
}

.story .voice {
  margin: 0 0 2em;
  padding-left: 22px;
  border-left: 2px solid var(--signal);
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}

.story .first::first-letter {
  float: left;
  margin: 0.1em 0.12em 0 0;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: 4.6em;
  line-height: 0.78;
  color: var(--signal-deep);
}

.story h3 {
  margin: 56px 0 14px;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
}

.preview-note {
  margin-top: 40px !important;
  padding: 14px 16px;
  border: 1px dashed var(--rule-strong);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* Sidenotes */

.sn-ref {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 3px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--signal-soft);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  vertical-align: 2px;
  color: var(--signal-deep);
  text-decoration: none !important;
}

.sn-ref {
  position: relative;
}

.sn-ref::after {
  content: attr(data-note);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 5;
  width: max-content;
  max-width: 260px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--night);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  white-space: normal;
  text-align: left;
  color: var(--on-night);
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}

.sn-ref:hover::after,
.sn-ref:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.act-sources {
  margin: 64px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.act-sources ol {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.act-sources li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  padding: 6px 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
  scroll-margin-top: calc(var(--topbar) + 40px);
}

.act-sources li > span {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--signal-deep);
}

.act-sources li:target {
  color: var(--ink);
}

.act-sources a {
  color: var(--ink-soft);
}

/* ---------- Evidence board (map) ---------- */

.board {
  position: relative;
  overflow: hidden;
  background: var(--night);
  border-radius: 18px;
  color: var(--on-night);
  box-shadow: 0 30px 60px -40px rgba(10, 10, 11, 0.6);
}

.board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 0;
}

.board-head .inv-label {
  color: var(--on-night-faint);
}

.board-stage {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
}

.board-title {
  margin: 6px 20px 0;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--on-night);
}

.board svg {
  display: block;
  width: 100%;
  height: auto;
}

.board .edge {
  fill: none;
  stroke: rgba(243, 241, 236, 0.75);
  stroke-width: 1.4;
  transition: opacity 0.6s ease, stroke 0.3s ease;
}

.board .edge.likely { stroke-dasharray: 7 5; }
.board .edge.suspected { stroke-dasharray: 1.5 5; stroke-linecap: round; }
.board .edge.unknown { stroke: rgba(243, 241, 236, 0.25); }
.board .edge.is-new { stroke: var(--signal); }

.board .node {
  transition: opacity 0.6s ease;
}

.board .node circle {
  fill: var(--night);
  stroke: var(--on-night);
  stroke-width: 1.4;
  transition: fill 0.3s ease, stroke 0.3s ease;
}

.board .node.brand circle { fill: var(--on-night); }
.board .node.cluster circle { fill: var(--night-3); }
.board .node.ecosystem circle { fill: var(--signal); stroke: none; }
.board .node.ghost circle { fill: none; stroke: rgba(243, 241, 236, 0.3); stroke-dasharray: 2 3; }
.board .node.is-new circle { stroke: var(--signal); }
.board .node.brand.is-new circle { fill: var(--signal); stroke: none; }

.board .node text {
  paint-order: stroke;
  stroke: var(--night);
  stroke-width: 4px;
  stroke-linejoin: round;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  fill: var(--on-night-muted);
}

.board .node.brand text,
.board .node.ecosystem text,
.board .node.cluster text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  fill: var(--on-night);
}

.board .node.ecosystem text { fill: var(--signal); font-size: 15px; }
.board .node.ghost text { fill: var(--on-night-faint); font-size: 12px; }

.board .halo {
  fill: none;
  stroke: var(--signal);
  stroke-width: 1;
  opacity: 0.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: halo 2.8s ease-out infinite;
}

@keyframes halo {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.4); opacity: 0; }
}

.board .is-hidden {
  opacity: 0;
  pointer-events: none;
}

.board.is-interactive .node {
  cursor: pointer;
}

.board.is-interactive .node:hover circle,
.board .node.is-selected circle {
  stroke: var(--signal);
  stroke-width: 2.2;
}

.board .is-muted {
  opacity: 0.12;
}

.board-foot {
  display: grid;
  gap: 12px;
  padding: 0 20px 18px;
}

.board-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--night-line);
  list-style: none;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-night-faint);
}

.board-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.board-legend svg {
  width: 26px;
  height: 6px;
}

.board-legend line {
  stroke: var(--on-night);
  stroke-width: 1.6;
}

.board-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.board-filters button {
  appearance: none;
  padding: 5px 11px;
  border: 1px solid var(--night-line-strong);
  border-radius: 999px;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--on-night-muted);
  cursor: pointer;
}

.board-filters button.is-active,
.board-filters button:hover {
  border-color: var(--signal);
  color: var(--on-night);
}

.board-detail {
  min-height: 64px;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--on-night-muted);
}

.board-detail b {
  display: block;
  margin-bottom: 2px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
}

.board-caption {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--on-night-muted);
}

/* ---------- Act I artefacts ---------- */

.trail {
  margin: 56px 0;
  overflow: hidden;
  background: var(--night);
  border-radius: 18px;
  color: var(--on-night);
}

.trail-intro {
  padding: 28px 28px 0;
}

.trail-intro h3 {
  margin: 10px 0 10px;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1;
  color: var(--on-night);
}

.trail-intro p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--on-night-muted);
}

.trail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0 0;
  border-top: 1px solid var(--night-line);
}

.trail-stats div {
  padding: 18px 0 20px;
}

.trail-stats div + div {
  padding-left: 18px;
  border-left: 1px solid var(--night-line);
}

.trail-stats dt {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: 3rem;
  line-height: 1;
  color: var(--signal);
}

.trail-stats dd {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-night-faint);
}

.trail-window {
  margin: 0 28px 28px;
  overflow: hidden;
  border: 1px solid var(--night-line-strong);
  border-radius: 12px;
  background: var(--night-2);
}

.trail-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--on-night-faint);
}

.trail-tabs .dots {
  display: inline-flex;
  gap: 5px;
  margin-right: 8px;
}

.trail-tabs .dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--night-line-strong);
}

.trail-tabs span {
  padding: 7px 12px;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.03);
}

.trail-tabs span.is-active {
  background: var(--night-3);
  color: var(--on-night);
}

.trail-tabs span.more {
  color: var(--signal);
  background: none;
}

.trail-search {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 32px 20px 36px;
  background: var(--night-3);
}

.trail-search strong {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--on-night);
}

.trail-query {
  width: min(100%, 420px);
  padding: 12px 18px;
  border: 1px solid var(--night-line-strong);
  border-radius: 999px;
  font-size: 0.9375rem;
  color: var(--on-night);
}

.trail-query::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--signal);
  animation: caret 1s steps(2) infinite;
}

@keyframes caret {
  50% { opacity: 0; }
}

.steps-trail {
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--ink);
}

.steps-trail li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.steps-trail li > span {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: 2rem;
  line-height: 1;
  color: var(--signal-deep);
}

.steps-trail strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.steps-trail p {
  margin: 2px 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.inv-end {
  background: var(--night);
  color: var(--on-night-muted);
}

.inv-end-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 96px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.inv-end h2 {
  margin: 12px 0 0;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(2.25rem, 4.2vw, 3.75rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--on-night);
}

.inv .inv-end a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-night);
  text-decoration: none;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* On desktop, centre the headline block in the viewport and keep the meta row pinned to the bottom. */
@media (min-width: 981px) {
  .inv-hero-inner {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
  }

  .inv-hero-inner > .inv-label,
  .hero-foot {
    margin-top: auto;
  }

  .inv-hero .hook {
    margin-bottom: 44px;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1240px) {
  .act-body {
    gap: 0 48px;
  }
}

@media (max-width: 980px) {
  :root { --gutter: 20px; }

  .hero-network {
    top: calc(var(--topbar) + 8px);
    right: -30vw;
    width: 120vw;
    transform: none;
    opacity: 0.45;
  }

  .band {
    grid-template-columns: 1fr;
    padding: 80px var(--gutter);
  }

  .legend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legend-grid article:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .act-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 64px var(--gutter) 88px;
  }

  .story {
    width: 100%;
  }

  .board-slot {
    position: static;
    order: -1;
    width: 100%;
    margin-bottom: 40px;
  }

  .opener { min-height: 80vh; }
}

@media (max-width: 640px) {
  body.inv { font-size: 1rem; }

  .inv-topbar .series { display: none; }

  .inv-hero .hook { font-size: 1.25rem; }

  .legend-grid { grid-template-columns: 1fr; }

  .legend-grid article + article {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .story .voice { font-size: 1.375rem; }

  .trail-stats dt { font-size: 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.inv) { scroll-behavior: auto; }

  .inv *,
  .inv *::before,
  .inv *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal { opacity: 1; transform: none; }
}

/* =====================================
   Full report components
   ===================================== */

.board .is-dim {
  opacity: 0.18;
}

.board .is-dim.is-hidden {
  opacity: 0;
}

.inv-topbar .series {
  max-width: 46vw;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Contents */

.contents-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.inv .contents-list a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: padding 0.2s ease;
}

.inv .contents-list a:hover {
  padding-left: 8px;
}

.contents-list b {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--signal-deep);
}

.contents-list strong {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
}

.contents-list span {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Story prose extras */

.story em { font-style: italic; }

.story .prose-block + .prose-block { margin-top: 0; }

/* Dossier (case file) */

.dossier {
  margin: 48px 0;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  border-radius: 16px;
  background: #fff;
  scroll-margin-top: calc(var(--topbar) + 24px);
}

.dossier-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--rule);
  background: var(--bone);
}

.dossier-head h3 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
}

.stamp {
  flex: none;
  max-width: 190px;
  padding: 6px 10px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-2deg);
  color: var(--ink);
}

.stamp.likely { color: var(--signal-deep); }

.dossier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--rule);
}

.dossier-def {
  padding: 20px 24px;
  border-right: 1px solid var(--rule);
}

.dossier-def p:last-child {
  margin: 8px 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
}

.dossier-data {
  margin: 0;
  padding: 10px 24px;
}

.dossier-data div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--rule);
}

.dossier-data div:last-child { border-bottom: 0; }

.dossier-data dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  line-height: 1.9;
  text-transform: uppercase;
  color: var(--faint);
}

.dossier-data dd {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink);
}

.dossier-body {
  padding: 22px 24px 2px;
}

.dossier-body p {
  margin: 0 0 1.2em;
  font-size: 1rem;
}

.ttp {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 24px 22px;
}

.ttp span {
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bone);
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-soft);
}

/* Analyst observation */

.observation {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 20px;
  margin: 56px 0 0;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}

.observation-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--night);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--signal);
}

.observation h3,
.wide .observation h3 {
  margin: 8px 0 10px;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

.observation p:last-child {
  margin: 0;
  color: var(--muted);
}

/* Wide band below an act */

.wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter) 120px;
}

.wide > * + * {
  margin-top: 88px;
}

.wide-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: end;
  gap: 16px 80px;
  margin-bottom: 28px;
}

.wide-head h3 {
  margin: 12px 0 0;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
}

.wide-head p:last-child {
  margin: 0;
  color: var(--muted);
}

.exhibit {
  margin: 0;
  padding: 32px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: #fff;
}

.exhibit figcaption {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--rule-strong);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Judgments reuse the legend grid */

.legend-grid .kicker {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal-deep);
}

.twist {
  max-width: 900px;
  padding-left: 28px;
  border-left: 2px solid var(--signal);
}

.twist p:last-child {
  margin: 12px 0 0;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.35;
  color: var(--ink);
}

/* Sub-community cards */

.subs {
  margin: 48px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.subs li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}

.subs li > b {
  font-family: var(--display);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1;
  color: var(--signal-deep);
}

.subs h3,
.story .subs h3 {
  margin: 8px 0 8px;
  font-family: var(--display);
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

.subs p:last-child {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Path diagram */

.path-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: path;
}

.path-steps li {
  position: relative;
  padding: 16px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  background: var(--paper);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink);
  counter-increment: path;
}

.path-steps li::before {
  content: counter(path, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--faint);
}

.path-steps li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -12px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
  transform: translateY(-50%);
}

.path-steps li:last-child {
  border-color: var(--night);
  background: var(--night);
  color: var(--on-night);
}

.path-steps li:last-child::before { color: var(--signal); }

.path-loops {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.path-loops li::before {
  content: "↺";
  margin-right: 8px;
  color: var(--signal-deep);
}

/* Confidence tag */

.conf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}

.conf::before {
  content: "";
  width: 20px;
  border-top: 2px solid currentColor;
}

.conf.likely { color: var(--signal-deep); }
.conf.likely::before { border-top-style: dashed; }
.conf.suspected { color: var(--ink-soft); }
.conf.suspected::before { border-top-style: dotted; }
.conf.unknown { color: var(--faint); }

/* Chronology */

.chrono {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.chrono li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 130px;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.chrono time {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  color: var(--signal-deep);
}

.chrono strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}

.chrono p {
  margin: 4px 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.chrono .conf { justify-self: end; }

/* Evidence matrix */

.matrix-wrap {
  overflow-x: auto;
  border-top: 2px solid var(--ink);
}

.matrix {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.matrix caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.matrix th {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
  color: var(--faint);
}

.matrix td {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--ink-soft);
}

.matrix td:nth-child(2) {
  width: 26%;
  color: var(--ink);
}

.matrix td:last-child { color: var(--muted); }

.matrix strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.matrix small,
.matrix .meta {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.matrix .meta b {
  display: block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.matrix .seq {
  display: grid;
  gap: 6px;
}

.matrix .seq i {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-style: normal;
  color: var(--faint);
}

/* Attack flow */

.phase + .phase-then + .phase { margin-top: 0; }

.phase h4 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal-deep);
}

.phase ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phase li {
  position: relative;
  padding: 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  background: var(--paper);
}

.phase li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -12px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
  transform: translateY(-50%);
}

.phase li strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.phase li span {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.phase li.is-decision {
  border-style: dashed;
  background: transparent;
}

.phase li.is-outcome {
  border-color: var(--night);
  background: var(--night);
}

.phase li.is-outcome strong { color: var(--on-night); }
.phase li.is-outcome span { color: var(--on-night-muted); }

.phase-then {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.phase-then::before,
.phase-then::after {
  content: "";
  flex: 1;
  border-top: 1px dashed var(--rule-strong);
}

/* ATT&CK techniques */

.techniques {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.inv .techniques a {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.inv .techniques a:hover {
  border-color: var(--signal);
  transform: translateY(-2px);
}

.techniques span {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--signal-deep);
}

.techniques strong {
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

.techniques em {
  font-size: 0.8125rem;
  font-style: normal;
  color: var(--muted);
}

/* Assessments */

.assessments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 40px 0 0;
  border-top: 1px solid var(--ink);
}

.assessments article {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}

.assessments article > b {
  display: block;
  font-family: var(--display);
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1;
  color: var(--signal-deep);
}

.assessments h3,
.story .assessments h3 {
  margin: 10px 0 10px;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

.assessments p:last-child {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Defender brief */

.defender {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px 80px;
  padding: 56px;
  border-radius: 24px;
  background: var(--night);
  color: var(--on-night-muted);
}

.defender h3 {
  margin: 14px 0 16px;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--on-night);
}

.defender ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.defender li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--night-line);
}

.defender li:first-child { padding-top: 0; }

.defender li > span {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.9;
  color: var(--signal);
}

.defender strong {
  display: block;
  font-weight: 500;
  color: var(--on-night);
}

.defender li p {
  margin: 4px 0 0;
  font-size: 0.9375rem;
}

.defender .source-line {
  margin: 18px 0 0;
  font-size: 0.8125rem;
  color: var(--on-night-faint);
}

.defender .sn-ref {
  background: rgba(229, 72, 77, 0.2);
  color: var(--signal);
}

.defender .sn-ref::after {
  background: var(--on-night);
  color: var(--ink);
}

/* Closing */

.closing {
  max-width: 1000px;
}

.closing blockquote {
  margin: 20px 0 40px;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-style: italic;
  line-height: 1.25;
  color: var(--ink);
}

.closing p:not(.inv-label) {
  max-width: 680px;
  margin: 0 0 1.35em;
}

.closing .personal {
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

/* Sources */

.source-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.source-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: calc(var(--topbar) + 40px);
  transition: background 0.3s ease;
}

.source-list li:target {
  background: var(--signal-soft);
}

.source-list li > span {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.9;
  color: var(--signal-deep);
}

.source-list a {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
}

.source-list p {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.method-note {
  grid-column: 1 / -1;
  max-width: 900px;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Responsive for report components */

@media (max-width: 1100px) {
  .path-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .path-steps li:nth-child(3)::after { display: none; }
  .techniques { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .defender { grid-template-columns: 1fr; padding: 40px; }
}

@media (max-width: 980px) {
  .wide { padding-bottom: 88px; }
  .wide-head { grid-template-columns: 1fr; }
  .contents-list a { grid-template-columns: 48px minmax(0, 1fr); }
  .contents-list span { display: none; }
  .source-list { grid-template-columns: 1fr; }
  .chrono li { grid-template-columns: 110px minmax(0, 1fr); }
  .chrono .conf { grid-column: 2; justify-self: start; }
}

@media (max-width: 720px) {
  .dossier-head { flex-direction: column; }
  .dossier-grid { grid-template-columns: 1fr; }
  .dossier-def { border-right: 0; border-bottom: 1px solid var(--rule); }
  .exhibit { padding: 20px; }
  .path-steps,
  .phase ol,
  .techniques,
  .assessments { grid-template-columns: 1fr; }
  .path-steps li::after,
  .phase li::after { display: none; }
  .chrono li { grid-template-columns: 1fr; gap: 6px; }
  .chrono .conf { grid-column: 1; }
  .defender { padding: 28px 22px; border-radius: 18px; }
  .observation { grid-template-columns: 1fr; }
}

.scroll-hint {
  display: none;
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--faint);
}

@media (max-width: 980px) {
  .scroll-hint { display: block; }
}
