/* ===== LOOP.CRAFT — FIELD MANUAL No. 001 ===== */

@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #121315;
  --ink-deep: #0b0c0a;
  --ink-soft: #171915;
  --cream: #efe8d5;
  --cream-dim: #cfc8b6;
  --muted: #9a9587;
  --lime: #8bd605;
  --lime-bright: #b6ff2e;
  --orange: #f48639;
  --line: rgba(239, 232, 213, 0.18);
  --line-strong: rgba(239, 232, 213, 0.38);
  --paper-line: rgba(18, 19, 21, 0.22);
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --max: 1400px;
  --gutter: clamp(20px, 4.2vw, 64px);
  --topbar: 64px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--ink-deep);
  color: var(--cream);
  font-family: var(--body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg { display: block; max-width: 100%; }

img { height: auto; }

a { color: inherit; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  line-height: 1.02;
}

h2, h3 { text-wrap: balance; }

::selection {
  background: var(--lime);
  color: var(--ink);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

.nowrap { white-space: nowrap; }

.micro {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== TOP BAR ===== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  min-height: var(--topbar);
  padding: 12px var(--gutter);
  background: rgba(11, 12, 10, 0.985);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--lime);
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--ink-deep);
}

.brand:hover .brand-dot { background: var(--lime); }

.topbar-edition {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.chapters {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 26px);
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.chapters a {
  position: relative;
  padding: 8px 0;
  color: var(--cream-dim);
  text-decoration: none;
  white-space: nowrap;
}

.chapters a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.chapters a:hover,
.chapters a:focus-visible,
.chapters a.is-current { color: var(--cream); }
.chapters a:hover::after,
.chapters a:focus-visible::after,
.chapters a.is-current::after { transform: scaleX(1); }

.gate-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gate-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(139, 214, 5, 0.5);
  animation: gate-pulse 2.6s ease-in-out infinite;
}

@keyframes gate-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 214, 5, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(139, 214, 5, 0); }
}

/* ===== COVER ===== */

.cover {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.82fr);
  gap: clamp(32px, 5.2vw, 84px);
  align-items: center;
  max-width: var(--max);
  min-height: calc(100svh - var(--topbar));
  margin: 0 auto;
  padding: clamp(34px, 5.5vh, 68px) var(--gutter) clamp(36px, 5vh, 60px);
  position: relative;
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0 var(--gutter);
  pointer-events: none;
  background-image: radial-gradient(rgba(239, 232, 213, 0.09) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 55%);
  opacity: 0.45;
}

.cover-copy { position: relative; z-index: 1; }

.cover-emblem { display: none; }

.kicker {
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.cover h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(4.2rem, 9.2vw, 8.8rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.018em;
  color: var(--cream);
  animation: rise 0.7s var(--ease) both;
}

.cover h1 span { color: var(--cream); }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.tagline {
  margin: 0 0 26px;
  font-family: var(--body);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: var(--cream);
  animation: rise 0.7s 0.08s var(--ease) both;
}

.tagline .dash { color: var(--orange); padding: 0 0.1em; }

.lede {
  max-width: 58ch;
  margin-bottom: 14px;
  color: var(--cream-dim);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.62;
  animation: rise 0.7s 0.14s var(--ease) both;
}

.lede--small {
  font-size: 0.95rem;
  color: var(--muted);
  animation-delay: 0.18s;
}

.cover-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  animation: rise 0.7s 0.22s var(--ease) both;
}

.cover-status > div {
  padding: 12px 14px 12px 0;
  border-right: 1px solid var(--line);
}
.cover-status > div:last-child { border-right: 0; }
.cover-status > div:not(:first-child) { padding-left: 14px; }

.cover-status span {
  display: block;
  margin-bottom: 5px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.cover-status strong {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.cover-status small {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
}

.index {
  margin-top: 30px;
  animation: rise 0.7s 0.28s var(--ease) both;
}

.index .micro { margin-bottom: 10px; }

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

.index a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.index a:hover,
.index a:focus-visible {
  color: var(--lime);
  background: rgba(139, 214, 5, 0.04);
}

.index-num {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--lime);
}

.index-title {
  font-family: var(--body);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.index-desc {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

.cover-plate {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(100%, 560px);
  margin: 0;
  padding: 9px;
  background: #060706;
  border: 1px solid var(--line-strong);
  animation: cover-in 0.9s 0.12s var(--ease) both;
}

@keyframes cover-in {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cover-image-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(239, 232, 213, 0.14);
}

.cover-image-wrap::before,
.cover-image-wrap::after {
  content: "+";
  position: absolute;
  z-index: 2;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1;
  color: rgba(239, 232, 213, 0.75);
}
.cover-image-wrap::before { top: 8px; left: 8px; }
.cover-image-wrap::after { right: 8px; bottom: 8px; }

.cover-plate img {
  width: 100%;
  height: auto;
}

.cover-plate figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 2px 1px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== BRIEFING / CREAM INSERT ===== */

.briefing-strip {
  background: var(--cream);
  color: var(--ink);
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
}

.briefing-strip > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.briefing-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
  padding: clamp(44px, 7vw, 86px) var(--gutter) 30px;
}

.briefing-head .micro { grid-column: 1 / -1; color: #5d594f; }

.briefing-head h2 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: 0.92;
  color: var(--ink);
}

.briefing-head p:last-child {
  max-width: 44ch;
  margin: 0;
  color: #49463e;
  font-size: 0.96rem;
  line-height: 1.6;
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0 var(--gutter);
  border-top: 1px solid var(--paper-line);
}

.capability {
  padding: 22px 20px 26px 0;
  border-right: 1px solid var(--paper-line);
}
.capability:not(:first-child) { padding-left: 20px; }
.capability:last-child { border-right: 0; }

.cap-num {
  display: inline-block;
  margin-bottom: 18px;
  padding: 3px 5px;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1;
}

.capability h3 {
  margin-bottom: 8px;
  font-family: var(--body);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.capability p {
  color: #4b483f;
  font-size: 0.85rem;
  line-height: 1.55;
}

.briefing-rule {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px var(--gutter) clamp(44px, 6vw, 70px);
  border-top: 1px solid var(--paper-line);
  font-family: var(--body);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  max-width: 78ch;
}

/* ===== CHAPTERS ===== */

.chapter {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 68px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 118px) var(--gutter);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--topbar) + 8px);
}

.chapter-rail {
  position: sticky;
  top: calc(var(--topbar) + 26px);
  align-self: start;
}

.rail-num {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 3.1rem;
  line-height: 0.8;
  color: var(--cream);
}

.rail-label {
  margin: 0 0 14px;
  padding-top: 12px;
  border-top: 2px solid var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
}

.rail-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.chapter-body { min-width: 0; }

.chapter-head {
  max-width: 980px;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.chapter-head .micro { margin-bottom: 12px; }

.chapter-head h2 {
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: clamp(2.7rem, 5.3vw, 5.2rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.005em;
  color: var(--cream);
}

.chapter-head--wide h2 {
  font-size: clamp(4.2rem, 10vw, 9.6rem);
  line-height: 0.8;
  letter-spacing: -0.015em;
}

.chapter-lede {
  max-width: 70ch;
  margin: 0;
  color: var(--cream-dim);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.62;
}

.study-note {
  max-width: 74ch;
  margin: 26px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.study-note--lime { color: var(--lime); }

/* ===== WORKSPACE TOUR ===== */

.tour {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(270px, 0.68fr);
  gap: 22px;
  align-items: start;
}

.tour-plate {
  margin: 0;
  padding: 8px;
  background: #060706;
  border: 1px solid var(--line);
}

.tour-frame {
  position: relative;
  background: #000;
  border: 1px solid var(--line);
}

.tour-frame > img { width: 100%; }

.tour-zones {
  position: absolute;
  inset: 0;
}

.zone {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 4px;
  background: transparent;
  border: 1px dashed rgba(139, 214, 5, 0.42);
  color: var(--cream);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.zone:hover,
.zone:focus-visible {
  background: rgba(139, 214, 5, 0.12);
  border-color: var(--lime);
}

.zone[aria-pressed="true"] {
  background: rgba(139, 214, 5, 0.1);
  border-style: solid;
  border-color: var(--lime);
  box-shadow: inset 0 0 0 1px rgba(139, 214, 5, 0.35);
}

.zone-num,
.zone-name {
  display: inline-block;
  padding: 2px 4px;
  background: rgba(6, 7, 6, 0.9);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.zone-num { color: var(--lime); }
.zone-name { color: var(--cream); }
.zone[aria-pressed="true"] .zone-name { color: var(--lime); }

.zone--transport { top: 0.7%; left: 16%; right: 0.6%; height: 5.2%; }
.zone--browser { top: 6.4%; left: 0.4%; width: 15.2%; bottom: 0.8%; }
.zone--timeline { top: 9.7%; left: 18.1%; right: 0.6%; height: 40.5%; }
.zone--sequencer { top: 55.4%; left: 18.1%; width: 32.4%; height: 32.4%; }
.zone--mixer { top: 55.4%; left: 51.8%; width: 24.6%; height: 32.4%; }
.zone--instrument { top: 55.4%; left: 76.9%; right: 0.6%; height: 32.4%; }

.tour-plate figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 2px 1px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.tour-detail {
  position: sticky;
  top: calc(var(--topbar) + 26px);
  padding: 20px;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-top: 2px solid var(--lime);
}

.tour-detail h3 {
  margin: 8px 0 12px;
  font-family: var(--body);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.1;
}

.tour-body {
  margin-bottom: 18px;
  color: var(--cream-dim);
  font-size: 0.94rem;
  line-height: 1.58;
}

.tour-spec {
  margin: 0 0 18px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.tour-spec > div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.tour-spec dt {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.tour-spec dd {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--cream);
}

.tour-note {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.65;
  color: var(--lime);
}

.tour-hint {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.tour-hint p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.transcript {
  margin-top: 24px;
  border: 1px solid var(--line);
  background: rgba(239, 232, 213, 0.025);
}

.transcript summary {
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  cursor: pointer;
}

.transcript summary:hover { color: var(--lime); }

.transcript ol {
  margin: 0;
  padding: 0 18px 18px 34px;
  columns: 2;
  column-gap: 34px;
  color: var(--cream-dim);
  font-size: 0.82rem;
  line-height: 1.5;
}

.transcript li {
  break-inside: avoid;
  margin-bottom: 10px;
  padding-left: 4px;
}

.transcript strong { color: var(--cream); }

/* ===== TAKE TO PAD ===== */

.chapter--ttp { border-top-color: var(--line); }

.ttp {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 38px;
}

.ttp-rail {
  position: sticky;
  top: calc(var(--topbar) + 26px);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.step-tabs {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.step-tab {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 4px 8px;
  width: 100%;
  padding: 13px 8px 13px 14px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--cream);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.step-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: transparent;
}

.step-tab:hover,
.step-tab:focus-visible { background: rgba(139, 214, 5, 0.06); }

.step-tab.is-active { background: rgba(139, 214, 5, 0.08); }
.step-tab.is-active::before { background: var(--lime); }

.step-num {
  grid-row: 1 / 3;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  color: var(--muted);
}
.step-tab.is-active .step-num { color: var(--lime); }

.step-name {
  font-family: var(--body);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.25;
}

.step-meta {
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.ttp-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.arrow:hover,
.arrow:focus-visible {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.source-ticket {
  margin-top: 24px;
  padding: 12px;
  border: 1px dashed rgba(139, 214, 5, 0.55);
}

.source-ticket p:last-child {
  margin: 7px 0 0;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.65;
  color: var(--cream-dim);
}

.source-ticket span { color: var(--lime); }
.source-ticket em { color: var(--muted); font-style: normal; }

.ttp-stage { min-width: 0; }

.ttp-panel {
  margin: 0;
  animation: panel-in 0.35s var(--ease) both;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ttp-panel[hidden] { display: none; }

.plate-frame {
  position: relative;
  padding: 8px;
  background: #060706;
  border: 1px solid var(--line);
}

.plate-frame > img {
  width: 100%;
  border: 1px solid var(--line);
}

.plate-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 4px 7px;
  background: rgba(6, 7, 6, 0.9);
  border: 1px solid var(--lime);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pin {
  position: absolute;
  z-index: 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(139, 214, 5, 0.55);
  transform: translate(-50%, -50%);
  animation: pin-pulse 2.4s ease-out infinite;
}

@keyframes pin-pulse {
  0% { box-shadow: 0 0 0 0 rgba(139, 214, 5, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(139, 214, 5, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 214, 5, 0); }
}

.pin--selection { left: 94%; top: 32%; }
.pin--pad { left: 22.7%; top: 67%; }

.pin-label {
  position: absolute;
  z-index: 2;
  padding: 4px 6px;
  background: rgba(6, 7, 6, 0.92);
  border: 1px solid var(--lime);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pin-label--selection { right: 3.2%; top: 27.5%; }
.pin-label--pad { left: 25%; top: 63.6%; }

.ttp-panel figcaption {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  margin-top: 14px;
}

.fig-eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}

.ttp-panel figcaption p:last-child {
  max-width: 68ch;
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.95rem;
  line-height: 1.58;
}

.ttp-foot {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.pattern-strip {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 2px;
  margin: 9px 0 10px;
}

.pattern-strip span {
  padding: 6px 0;
  background: #191b16;
  border: 1px solid #2a2d24;
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1;
  text-align: center;
  color: var(--muted);
}

.pattern-strip .hit {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  font-weight: 500;
}

.ttp-foot-note { margin-top: 0; }

.supporting {
  margin-top: clamp(48px, 7vw, 82px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.supporting-head {
  max-width: 66ch;
  margin-bottom: 22px;
}

.supporting-head h3 {
  margin: 6px 0 8px;
  font-family: var(--body);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
}

.supporting-head p:last-child {
  color: var(--cream-dim);
  font-size: 0.92rem;
}

.plate-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.plate-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.plate-card:hover,
.plate-card:focus-visible {
  border-color: var(--lime);
  transform: translateY(-2px);
}

.plate-card-img {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #000;
}

.plate-card-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: filter 0.25s var(--ease);
}

.plate-card:hover .plate-card-img img { filter: brightness(1.12); }

.plate-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
}

.plate-card-title {
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 600;
}

.plate-card-desc {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* ===== VISUAL ARCHIVE ===== */

.archive-lede {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 22px;
  align-items: start;
}

.specimen {
  margin: 0;
  padding: 10px;
  background: var(--ink-soft);
  border: 1px solid var(--line);
}

.specimen--proof img { border: 1px solid var(--line); }

.specimen--proof figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 2px 1px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.specimen--notes { padding: 24px; }

.specimen--notes h3 {
  margin: 8px 0 12px;
  font-family: var(--body);
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  font-weight: 600;
  line-height: 1.1;
}

.specimen--notes > p {
  color: var(--cream-dim);
  font-size: 0.9rem;
  line-height: 1.58;
}

.identity-mini {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 8px;
  margin: 18px 0;
}

.identity-mini figure {
  margin: 0;
  padding: 10px;
  background: #0b0c09;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 96px;
}

.identity-mini img { max-height: 52px; width: auto; }

.identity-mini figcaption,
.specimen-strip figcaption {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.specimen-strip { margin: 0; }

.specimen-strip img {
  width: 100%;
  border: 1px solid var(--line);
}

.specimen-strip figcaption { padding-top: 7px; }

.archive-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
  gap: 22px;
  margin-top: 22px;
}

.specimen-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.concept-chip {
  padding: 3px 6px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.specimen--deck { padding: 18px; }

.specimen--deck img {
  width: 100%;
  margin: 14px 0 18px;
  border: 1px solid var(--line);
  background: #141614;
}

.specimen--deck h3,
.specimen--controls h3 {
  margin: 0 0 10px;
  font-family: var(--body);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.1;
}

.specimen--deck > p,
.specimen--controls > p {
  color: var(--cream-dim);
  font-size: 0.88rem;
  line-height: 1.55;
}

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

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.spec-list li span:first-child { color: var(--lime); }
.spec-list li span:last-child { color: var(--muted); }

.specimen--controls { padding: 18px; }

.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 16px;
}

.icon-grid figure,
.state-grid figure {
  margin: 0;
  padding: 10px 6px;
  background: #0b0c09;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.icon-grid img,
.state-grid img { width: 22px; height: 22px; }

.icon-grid figcaption,
.state-grid figcaption {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.state-label { margin: 18px 0 0; }

.state-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7px;
}

.control-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.65;
  letter-spacing: 0.03em;
}

.archive-materials {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
  gap: 22px;
  margin-top: 22px;
}

.watermark-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0c0e0a;
}

.watermark-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.16;
  filter: contrast(1.05);
}

.watermark-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding: clamp(20px, 4vw, 38px);
}

.watermark-copy blockquote {
  margin: 10px 0 14px;
  font-family: var(--body);
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--cream);
}

.watermark-copy p:last-child {
  max-width: 48ch;
  color: var(--cream-dim);
  font-size: 0.84rem;
  line-height: 1.55;
}

.material-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.material {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--ink-soft);
}

.material-swatch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 114px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.material-swatch--graphite {
  background-color: #191b18;
  background-image: url("../img/textures/graphite.webp");
  background-size: 256px 256px;
}
.material-swatch--dots {
  background-color: #0d0f0b;
  background-image: url("../img/textures/dots.png");
  background-size: 20px 20px;
}
.material-swatch--window { background: #0b0d0a; padding: 12px; }
.material-swatch--window img { width: 100%; }
.material-swatch--lime { background: var(--lime); }

.material figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}
.material figcaption span:last-child { color: var(--muted); }

.palette {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 22px;
  border: 1px solid var(--line);
}

.swatch {
  padding: 10px;
  border-right: 1px solid var(--line);
}
.swatch:last-child { border-right: 0; }

.swatch::before {
  content: "";
  display: block;
  height: 48px;
  margin-bottom: 9px;
  background: var(--sw);
  border: 1px solid rgba(239, 232, 213, 0.14);
}

.swatch span {
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}

.swatch code {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted);
}

.comparison {
  margin-top: clamp(48px, 7vw, 78px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.comparison-head {
  max-width: 72ch;
  margin-bottom: 22px;
}

.comparison-head h3 {
  margin: 6px 0 8px;
  font-family: var(--body);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
}

.comparison-head p:last-child {
  color: var(--cream-dim);
  font-size: 0.92rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.compare-card { margin: 0; }

.compare-frame {
  position: relative;
  padding: 8px;
  background: #060706;
  border: 1px solid var(--line);
}

.compare-frame img {
  width: 100%;
  border: 1px solid var(--line);
}

.still-chip {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 4px 6px;
  background: rgba(6, 7, 6, 0.9);
  border: 1px solid var(--lime);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compare-card figcaption {
  padding-top: 10px;
}

.compare-card figcaption .micro { color: var(--lime); margin-bottom: 5px; }

.compare-card figcaption p {
  max-width: 52ch;
  color: var(--cream-dim);
  font-size: 0.84rem;
  line-height: 1.5;
}

/* ===== ENGINEERING / PAPER ===== */

.chapter--paper {
  --line: rgba(18, 19, 21, 0.22);
  --line-strong: rgba(18, 19, 21, 0.5);
  --muted: #5f5b50;
  max-width: none;
  width: 100%;
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  background: var(--cream);
  color: var(--ink);
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
}

.chapter--paper .rail-num { color: var(--ink); }
.chapter--paper .rail-label { color: var(--ink); border-top-color: var(--ink); }
.chapter--paper .rail-meta { color: #5f5b50; }
.chapter--paper .chapter-head h2 { color: var(--ink); }
.chapter--paper .chapter-lede,
.chapter--paper .report-lede { color: #413e35; }
.chapter--paper .micro { color: #5f5b50; }
.chapter--paper a { color: var(--ink); text-decoration-color: rgba(18, 19, 21, 0.35); }
.chapter--paper :focus-visible { outline-color: var(--ink); }

.status-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
  margin-bottom: 30px;
}

.status-cell {
  padding: 18px;
  border-right: 1px solid rgba(239, 232, 213, 0.2);
}
.status-cell:last-child { border-right: 0; }

.status-cell span {
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a7a293;
}

.status-cell strong {
  display: block;
  margin: 8px 0 5px;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.status-cell small {
  display: block;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a7a293;
}

.status-cell--open { background: var(--lime); color: var(--ink); }
.status-cell--open span,
.status-cell--open small { color: #2c340b; }

.report-lede {
  max-width: 88ch;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.62;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.proof {
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-num {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 5px;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1;
}

.proof h3 {
  margin-bottom: 7px;
  font-family: var(--body);
  font-size: 1.08rem;
  font-weight: 600;
}

.proof p {
  color: #47443b;
  font-size: 0.82rem;
  line-height: 1.52;
}

.proof-metric {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.07em;
  color: var(--ink) !important;
}

.report-block {
  margin-top: clamp(36px, 5vw, 54px);
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.report-head { max-width: 82ch; }

.report-head h3,
.open-block h3,
.evidence-head h3 {
  margin: 6px 0 9px;
  font-family: var(--body);
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  font-weight: 600;
  line-height: 1.1;
}

.report-head p:last-child {
  color: #4b483f;
  font-size: 0.9rem;
  line-height: 1.55;
}

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border-top: 1px solid var(--ink);
}

.data-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 0.78rem;
  line-height: 1.35;
}

.data-table thead th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #5f5b50;
  text-align: left;
  white-space: nowrap;
}

.data-table tbody th,
.data-table tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table tbody th {
  font-weight: 600;
  color: var(--ink);
}

.data-table tbody td { color: #47443b; }
.data-table tbody tr:hover { background: rgba(18, 19, 21, 0.035); }

.decision-table { min-width: 760px; }

.pill {
  display: inline-block;
  padding: 2px 5px;
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill--pass { background: var(--lime); color: var(--ink); }
.pill--fail { background: var(--ink); color: var(--cream); }

.table-note {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: #5f5b50;
}

.open-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 54px);
  margin-top: clamp(38px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.check-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.check-list li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.check-mark {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  background: var(--lime);
  border: 1px solid var(--ink);
  transform: rotate(45deg);
}

.check-list strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 600;
}

.check-list p {
  color: #4b483f;
  font-size: 0.8rem;
  line-height: 1.5;
}

.roadmap {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.roadmap li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.gate-num {
  display: inline-block;
  height: fit-content;
  padding: 4px 5px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1;
  text-align: center;
}

.roadmap strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 600;
}

.roadmap p {
  color: #4b483f;
  font-size: 0.8rem;
  line-height: 1.5;
}

.record-note {
  margin-top: clamp(36px, 5vw, 54px);
  padding: 18px 20px;
  border: 1px solid var(--ink);
  background: rgba(18, 19, 21, 0.045);
}

.record-note p:last-child {
  max-width: 92ch;
  color: #47443b;
  font-size: 0.82rem;
  line-height: 1.58;
}

.evidence {
  margin-top: clamp(44px, 6vw, 68px);
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}

.evidence-head {
  max-width: 70ch;
  margin-bottom: 18px;
}

.evidence-head p:last-child {
  color: #4b483f;
  font-size: 0.9rem;
}

.evidence-wave {
  margin: 0 0 14px;
  padding: 10px;
  background: var(--ink);
  border: 1px solid var(--ink);
}

.evidence-wave img {
  width: 100%;
  border: 1px solid rgba(239, 232, 213, 0.16);
}

.evidence-wave figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 8px;
  color: var(--cream-dim);
  font-size: 0.76rem;
  line-height: 1.5;
}

.evidence-wave strong { color: var(--cream); }
.evidence-wave .micro { color: var(--lime); text-align: right; }

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

.evidence-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--cream);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: outline-color 0.2s var(--ease), transform 0.2s var(--ease);
  outline: 1px solid transparent;
  outline-offset: 2px;
}

.evidence-card:hover,
.evidence-card:focus-visible {
  outline-color: var(--lime);
  transform: translateY(-2px);
}

.evidence-img {
  display: block;
  border-bottom: 1px solid rgba(239, 232, 213, 0.18);
  background: #000;
}

.evidence-img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.92);
  transition: filter 0.25s var(--ease);
}
.evidence-card:hover .evidence-img img { filter: saturate(1.1) brightness(1.05); }

.evidence-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px;
}

.evidence-copy .micro { color: var(--lime); }
.evidence-copy strong {
  font-family: var(--body);
  font-size: 0.86rem;
  font-weight: 600;
}

.evidence-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  margin-top: 26px;
}

.evidence-links ul {
  list-style: none;
  margin: 9px 0 0;
  padding: 0;
}

.evidence-links li { border-top: 1px solid var(--line); }

.evidence-links a {
  display: block;
  padding: 8px 4px;
  font-family: var(--body);
  font-size: 0.82rem;
  text-decoration: none;
  transition: background 0.18s var(--ease);
}

.evidence-links a:hover,
.evidence-links a:focus-visible {
  background: var(--lime);
  color: var(--ink);
}

.report-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 40px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #5f5b50;
}

/* ===== SITE FOOT ===== */

.site-foot {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 56px) var(--gutter);
  background: var(--ink-deep);
  border-top: 1px solid var(--line);
}

.site-foot .foot-line {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 0.95;
  color: var(--cream);
}

.site-foot > p {
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.back-top {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--cream);
}
.back-top:hover { color: var(--lime); }

/* ===== LIGHTBOX ===== */

.lightbox {
  width: min(1180px, 92vw);
  max-height: 92vh;
  margin: auto;
  padding: 0;
  overflow: auto;
  background: #0b0c0a;
  color: var(--cream);
  border: 1px solid var(--lime);
}

.lightbox::backdrop {
  background: rgba(3, 4, 3, 0.9);
  backdrop-filter: blur(3px);
}

.lightbox-inner {
  position: relative;
  padding: 10px;
}

.lightbox-close {
  position: sticky;
  top: 10px;
  z-index: 2;
  float: right;
  margin-left: 10px;
  padding: 9px 11px;
  background: rgba(6, 7, 6, 0.92);
  border: 1px solid var(--lime);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--lime);
  color: var(--ink);
}

.lightbox img {
  width: 100%;
  max-height: 64vh;
  object-fit: contain;
  background: #000;
  border: 1px solid var(--line);
}

.lightbox-copy {
  padding: 14px 4px 6px;
}

.lightbox-copy h2 {
  margin: 5px 0 6px;
  font-family: var(--body);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
}

.lightbox-copy p:last-child {
  max-width: 80ch;
  color: var(--cream-dim);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ===== RESPONSIVE ===== */

@media (min-width: 961px) and (max-height: 820px) {
  .cover {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .cover h1 { font-size: clamp(4rem, 7.6vw, 7rem); }
  .lede--small { display: none; }
  .cover-status { margin-top: 18px; }
  .index { margin-top: 18px; }
  .cover-plate { width: min(100%, 460px); }
}

@media (max-width: 1180px) {
  .topbar-edition { display: none; }
  .cover { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr); }
  .chapter { grid-template-columns: 112px minmax(0, 1fr); }
  .tour { grid-template-columns: minmax(0, 1.6fr) minmax(250px, 0.7fr); }
  .ttp { grid-template-columns: 200px minmax(0, 1fr); }
  .archive-lede { grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr); }
}

@media (max-width: 960px) {
  .topbar {
    position: relative;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding-top: 14px;
    padding-bottom: 10px;
  }
  .chapters {
    order: 3;
    width: 100%;
    margin-left: 0;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .chapters::-webkit-scrollbar { display: none; }
  .chapters a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 2px;
  }
  .gate-chip { margin-left: auto; }
  :root { --topbar: 0px; }

  .cover {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 42px;
  }
  .cover-copy { display: flex; flex-direction: column; }
  .cover-emblem {
    display: block;
    width: 76px;
    height: auto;
    margin-bottom: 18px;
    opacity: 0.9;
  }
  .index { order: 1; margin-top: 24px; margin-bottom: 4px; }
  .lede { order: 2; }
  .lede--small { order: 3; }
  .cover-status { order: 4; }
  .cover-plate { justify-self: start; width: min(100%, 520px); }
  .cover h1 { font-size: clamp(4.4rem, 15vw, 8rem); }

  .briefing-head { grid-template-columns: 1fr; }
  .briefing-head .micro { grid-column: auto; }
  .capabilities { grid-template-columns: 1fr 1fr; }
  .capability { padding: 20px 18px 22px 0; }
  .capability:nth-child(2) { border-right: 0; }
  .capability:nth-child(3) { border-top: 1px solid var(--paper-line); }
  .capability:nth-child(4) { border-top: 1px solid var(--paper-line); }
  .capability:not(:first-child) { padding-left: 0; }
  .capability:nth-child(even) { padding-left: 18px; }

  .chapter {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .chapter-rail {
    position: static;
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
  }
  .chapter--paper .chapter-rail { border-bottom-color: var(--line); }
  .rail-num { margin: 0; font-size: 2.4rem; }
  .rail-label { margin: 0; padding-top: 0; border-top: 0; }
  .rail-meta { margin-left: auto; text-align: right; }

  .tour { grid-template-columns: 1fr; }
  .tour-detail { position: static; }
  .tour-zones {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    padding: 8px;
    border-top: 1px solid var(--line);
  }
  .zone {
    position: static;
    width: auto;
    height: auto;
    min-height: 38px;
    align-items: center;
    padding: 6px;
    background: rgba(239, 232, 213, 0.02);
    border-style: solid;
    border-color: var(--line);
  }
  .zone[aria-pressed="true"] { border-color: var(--lime); }

  .ttp { grid-template-columns: 1fr; }
  .ttp-rail { position: static; }
  .step-tabs { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 0; }
  .step-tab { border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .step-tab:last-child { border-right: 0; }
  .step-tab::before { top: auto; bottom: -1px; left: 0; right: 0; width: auto; height: 2px; }
  .source-ticket { display: none; }

  .archive-lede,
  .archive-row,
  .archive-materials { grid-template-columns: 1fr; }
  .icon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .comparison-grid { grid-template-columns: 1fr; }
  .palette { grid-template-columns: repeat(5, minmax(0, 1fr)); }

  .chapter--paper {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .open-grid { grid-template-columns: 1fr; }
  .evidence-grid { grid-template-columns: 1fr 1fr; }
  .status-board { grid-template-columns: 1fr 1fr; }
  .status-cell:nth-child(2) { border-right: 0; }
  .status-cell:nth-child(1),
  .status-cell:nth-child(2) { border-bottom: 1px solid rgba(239, 232, 213, 0.2); }
  .site-foot { grid-template-columns: 1fr 1fr; }
  .site-foot > p { grid-column: 1 / -1; grid-row: 2; }
  .back-top { justify-self: end; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }

  .cover-status { grid-template-columns: 1fr 1fr; }
  .cover-status > div:nth-child(2) { border-right: 0; }
  .cover-status > div:nth-child(1),
  .cover-status > div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .cover-status > div:nth-child(3) { padding-left: 0; }

  .index a { grid-template-columns: 28px minmax(0, 1fr); padding: 12px 0; }
  .index-desc { display: none; }

  .briefing-head { padding-top: 40px; }
  .capabilities { grid-template-columns: 1fr; }
  .capability,
  .capability:nth-child(even) { padding: 18px 0; border-right: 0; border-top: 1px solid var(--paper-line); }
  .capability:first-child { border-top: 0; }
  .capability:nth-child(2) { border-top: 1px solid var(--paper-line); }

  .chapter-head h2 { font-size: clamp(2.3rem, 11vw, 3.8rem); }
  .chapter-head--wide h2 { font-size: clamp(3.8rem, 17vw, 6.2rem); }

  .transcript ol { columns: 1; }

  .step-tabs { grid-template-columns: 1fr; }
  .step-tab { border-right: 0; }

  .ttp-panel figcaption { grid-template-columns: 1fr; gap: 6px; }
  .pin-label { font-size: 7px; padding: 3px 4px; }
  .plate-badge { right: 12px; bottom: 12px; font-size: 7px; }

  .plate-cards { grid-template-columns: 1fr; }

  .identity-mini { grid-template-columns: 1fr 1fr; }
  .icon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .material-list { grid-template-columns: 1fr 1fr; }
  .palette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swatch { border-bottom: 1px solid var(--line); }
  .swatch:nth-child(even) { border-right: 0; }
  .swatch:last-child { border-bottom: 0; }

  .status-board { grid-template-columns: 1fr; }
  .status-cell { border-right: 0; border-bottom: 1px solid rgba(239, 232, 213, 0.2); }
  .status-cell:last-child { border-bottom: 0; }

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

  .table-wrap { overflow: visible; }
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td { display: block; }
  .data-table { min-width: 0; }
  .data-table thead { display: none; }
  .data-table tbody tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--ink);
  }
  .data-table tbody tr:hover { background: transparent; }
  .data-table tbody th {
    padding: 0 0 7px;
    border: 0;
    font-size: 0.9rem;
  }
  .data-table tbody td {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 8px;
    padding: 3px 0;
    border: 0;
  }
  .data-table tbody td::before {
    content: attr(data-label);
    font-family: var(--mono);
    font-size: 7px;
    line-height: 1.5;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5f5b50;
  }
  .decision-table tbody td { grid-template-columns: 92px minmax(0, 1fr); }

  .evidence-wave figcaption { flex-direction: column; gap: 4px; }
  .evidence-wave .micro { text-align: left; }
  .evidence-grid { grid-template-columns: 1fr; }
  .evidence-links { grid-template-columns: 1fr; }
  .report-footer { flex-wrap: wrap; }

  .site-foot { grid-template-columns: 1fr; }
  .site-foot > p { grid-column: auto; grid-row: auto; }
  .back-top { justify-self: start; }
}

@media (max-width: 420px) {
  .cover h1 { font-size: 3.6rem; }
  .gate-chip { font-size: 7px; }
  .brand { font-size: 11px; }
  .chapters { font-size: 8px; }
  .pin-label--selection { right: 2%; }
  .pin-label--pad { left: 14%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
