:root {
  --bg: #060b14;
  --surface: rgba(8, 14, 22, .88);
  --text: #f5f5f5;
  --text-muted: #d8dadb;
  --text-dim: #8f979d;
  --accent: #c04e01;
  --teal: #4a8a7c;
  --mono: 'IBM Plex Mono', monospace;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text-muted);
  font-family: var(--body);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: #7ab89c; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.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-link {
  position: fixed;
  z-index: 3000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 4px;
  background: #f5f5f5;
  color: #060b14;
  font: 600 11px var(--mono);
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 160ms cubic-bezier(.2, 0, 0, 1);
}

.skip-link:focus { transform: translateY(0); }

#map,
#map-fallback {
  position: fixed;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
}

#map {
  contain: layout paint;
}

#map::after {
  position: absolute;
  z-index: 1100;
  inset: 0;
  background: #060b14;
  content: '';
  opacity: 0;
  pointer-events: none;
  transition-property: opacity;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
  will-change: opacity;
}

#map.map-view-changing::after {
  opacity: 1;
  transition-duration: 120ms;
}

#map-fallback {
  display: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 40% 42%, rgba(74, 138, 124, .16), transparent 8rem),
    linear-gradient(165deg, #101923, #050910 62%);
}

.map-unavailable #map { display: none; }
.map-unavailable #map-fallback { display: block; }

.fallback-coast {
  position: absolute;
  right: -10vw;
  bottom: 8vh;
  width: 85vw;
  height: 22vh;
  border-radius: 62% 0 0 42%;
  background: #151a1e;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .04);
  transform: rotate(-4deg);
}

.leaflet-container { background: #060b14; }
.leaflet-map-pane {
  backface-visibility: hidden;
  will-change: transform;
}
.leaflet-zoom-anim .leaflet-zoom-animated {
  transition-property: transform;
  transition-duration: 320ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
.leaflet-control-attribution {
  background: rgba(6, 11, 20, .72) !important;
  color: #81878c;
  font: 9px var(--mono) !important;
}
.leaflet-control-attribution a { color: #9ba0a4; }
.leaflet-tooltip.map-label {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 3px;
  background: rgba(6, 11, 20, .9);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .22);
  color: #f5f5f5;
  font: 600 10px var(--mono);
  letter-spacing: .02em;
}
.leaflet-tooltip.map-label::before { display: none; }

.top-controls {
  position: fixed;
  z-index: 1200;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 7px;
}

.control-link,
.control-button {
  display: inline-flex;
  min-height: 42px;
  padding: 8px 11px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 4px;
  background: rgba(6, 11, 20, .82);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .16);
  color: #cfd2d4;
  cursor: pointer;
  font: 600 10px var(--mono);
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  transition-property: color, background-color, border-color, transform;
  transition-duration: 160ms;
}

.control-link:hover,
.control-button:hover,
.control-button[aria-expanded="true"] {
  border-color: rgba(192, 78, 1, .55);
  background: rgba(14, 22, 32, .96);
  color: #fff;
}

.control-link:active,
.control-button:active,
.panel-close:active,
.media-trigger:active,
.source-link:active,
.lightbox-close:active { transform: scale(.96); }

.control-link svg,
.control-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.control-link svg.fill-icon,
.control-button svg.fill-icon { fill: currentColor; stroke: none; }

.timeline-menu { position: relative; }

.timeline-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(430px, calc(100vw - 28px));
  max-height: calc(100svh - 82px);
  overflow-y: auto;
  padding: 18px;
  border-radius: 5px;
  background: rgba(8, 14, 22, .98);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .42), inset 0 0 0 1px rgba(255, 255, 255, .1);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-7px);
  transform-origin: top left;
  backdrop-filter: blur(18px);
  transition-property: opacity, transform;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.timeline-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
}

.timeline-dropdown-header {
  margin-bottom: 16px;
  padding-bottom: 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .1);
}

.timeline-dropdown-header p {
  margin: 0 0 5px;
  color: #f3eee4;
  font: 600 12px var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.timeline-dropdown-header span {
  display: block;
  color: #8f979d;
  font-size: 11px;
  line-height: 1.55;
  text-wrap: pretty;
}

.timeline-date-section + .timeline-date-section { margin-top: 18px; }

.timeline-date-section h2 {
  margin: 0 0 8px;
  color: #d36d2a;
  font: 600 11px var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}

.timeline-hour {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .07);
}

.timeline-hour-label {
  margin: 11px 0 0;
  color: #818a90;
  font: 600 10px var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.timeline-hour-events { display: grid; gap: 4px; }

.timeline-jump {
  display: grid;
  min-height: 42px;
  padding: 7px 9px;
  align-content: center;
  border-radius: 3px;
  color: #d8dadb;
  text-decoration: none;
  transition-property: color, background-color, transform, box-shadow;
  transition-duration: 160ms;
}

.timeline-jump:hover,
.timeline-jump:focus-visible {
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 3px 0 0 #c04e01;
  color: #fff;
}

.timeline-jump:active { transform: scale(.96); }

.timeline-jump time {
  color: #d4a574;
  font: 600 11px var(--mono);
  font-variant-numeric: tabular-nums;
}

.timeline-jump span {
  margin-top: 2px;
  color: inherit;
  font-size: 12px;
  line-height: 1.4;
  text-wrap: pretty;
}

.timeline-empty {
  margin: 0;
  padding: 11px 12px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .035);
  color: #92999d;
  font-size: 11px;
  line-height: 1.5;
}

.reference-panel {
  position: fixed;
  z-index: 1500;
  top: 66px;
  right: 14px;
  width: min(390px, calc(100vw - 28px));
  max-height: calc(100vh - 86px);
  overflow: auto;
  padding: 20px;
  border-radius: 5px;
  background: rgba(8, 14, 22, .97);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .42), inset 0 0 0 1px rgba(255, 255, 255, .1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  backdrop-filter: blur(18px);
  transition-property: opacity, transform;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.reference-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.panel-header {
  display: flex;
  margin-bottom: 12px;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.panel-kicker {
  margin: 0 0 4px;
  color: #d36d2a;
  font: 600 9px var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}

.panel-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
}

.panel-close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, .05);
  color: #bfc3c5;
  cursor: pointer;
  font-size: 22px;
  transition-property: color, background-color, transform;
  transition-duration: 160ms;
}

.panel-close:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.panel-item {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.panel-item a,
.panel-item strong {
  color: #ebe2cd;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.panel-item a:hover { color: #d36d2a; text-decoration: underline; }
.panel-item p { margin: 4px 0 0; color: #939a9f; font-size: 12px; line-height: 1.55; text-wrap: pretty; }
.panel-archive-link { display: inline-flex; min-height: 44px; padding: 8px 2px; align-items: center; color: #d3a17f; font: 600 9px var(--mono); text-decoration: none; text-transform: uppercase; transition-property: color, transform; transition-duration: 150ms; }
.panel-archive-link:hover { color: #fff; }
.panel-archive-link:active { transform: scale(.96); }

.scroll-container {
  position: relative;
  z-index: 100;
  width: 100%;
  pointer-events: none;
}

.step {
  display: flex;
  min-height: 100svh;
  padding: 20vh 24px 10vh;
  align-items: flex-start;
  justify-content: center;
  pointer-events: none;
}

.step-content {
  width: min(100%, 1000px);
  padding: clamp(26px, 5vw, 58px) clamp(20px, 4vw, 40px);
  border-radius: 5px;
  background: rgba(0, 0, 0, .18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
  pointer-events: auto;
  backdrop-filter: blur(1px);
}

.step.is-active .step-content { box-shadow: inset 3px 0 0 var(--tone, var(--accent)); }

.intro-content { max-width: 900px; }

.step-time {
  margin: 0 0 11px;
  color: var(--tone, var(--accent));
  font: 600 14px var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition-property: color;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.step-content:hover .step-time,
.step-content:focus-within .step-time { color: #fff; }

.step-title {
  margin: 0 0 15px;
  color: var(--text);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.16;
  text-wrap: balance;
}

h1.step-title { font-size: clamp(2.35rem, 7vw, 4.2rem); }

.step-summary {
  max-width: 790px;
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(.98rem, 1.8vw, 1.06rem);
  line-height: 1.8;
  text-wrap: pretty;
}

.intro-note {
  max-width: 750px;
  margin: 14px 0 0;
  color: #a7adb1;
  font-size: 12px;
  font-style: italic;
  line-height: 1.6;
}

.evidence-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 0;
}

.evidence-pill,
.confidence-pill {
  display: inline-flex;
  min-height: 25px;
  padding: 4px 8px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--tone) 48%, transparent);
  border-radius: 3px;
  background: color-mix(in srgb, var(--tone) 13%, transparent);
  color: color-mix(in srgb, var(--tone) 82%, white);
  font: 600 9px var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.confidence-pill {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .045);
  color: #aab0b4;
}

.precision {
  margin: 10px 0 0;
  color: #9ca2a7;
  font: 400 11px var(--mono);
  line-height: 1.55;
}

.claim-list {
  display: grid;
  gap: 8px;
  max-width: 790px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.claim-list li {
  position: relative;
  padding-left: 18px;
  color: #bdc1c4;
  font-size: 13px;
  line-height: 1.65;
  text-wrap: pretty;
}

.claim-list li::before {
  position: absolute;
  top: .72em;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tone);
  content: '';
}

.event-evidence {
  max-width: 800px;
  margin-top: 22px;
  border-radius: 6px;
  background: rgba(6, 11, 20, .74);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .11), 0 10px 28px rgba(0, 0, 0, .16);
}

.event-evidence > summary {
  display: flex;
  min-height: 54px;
  padding: 11px 14px;
  align-items: center;
  gap: 9px;
  color: #d6d8d9;
  cursor: pointer;
  font: 600 10px var(--mono);
  letter-spacing: .055em;
  list-style: none;
  text-transform: uppercase;
  transition-property: color, background-color, box-shadow;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.event-evidence > summary::-webkit-details-marker { display: none; }
.event-evidence > summary:hover { background: rgba(255, 255, 255, .045); color: #fff; }
.event-evidence[open] > summary { box-shadow: 0 1px 0 rgba(255, 255, 255, .1); }
.event-evidence > summary small { margin-left: auto; color: #7f888e; font-size: 8px; white-space: nowrap; }
.toggle-copy-hide { display: none; }
.event-evidence[open] > summary .toggle-copy-show,
.audio-evidence[open] > summary .toggle-copy-show { display: none; }
.event-evidence[open] > summary .toggle-copy-hide,
.audio-evidence[open] > summary .toggle-copy-hide { display: inline; }

.drawer-caret {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  color: var(--tone);
  font-size: 21px;
  line-height: 1;
  transform: rotate(0deg);
  transition-property: transform;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.event-evidence[open] .drawer-caret { transform: rotate(90deg); }

.event-evidence-body { padding: 14px; }
.drawer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }

.drawer-section {
  padding: 13px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .035);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .065);
}

.drawer-section p { margin: 0; color: #adb2b5; font-size: 11px; line-height: 1.65; text-wrap: pretty; }
.drawer-section.confidence-reason { border-left: 3px solid var(--tone); background: color-mix(in srgb, var(--tone) 8%, rgba(255, 255, 255, .025)); }
.drawer-label { margin-bottom: 8px !important; color: color-mix(in srgb, var(--tone) 75%, white) !important; font: 600 8px var(--mono) !important; letter-spacing: .085em; text-transform: uppercase; }

.drawer-list { display: grid; gap: 7px; margin: 0; padding: 0; color: #aeb3b6; font-size: 10px; line-height: 1.6; list-style: none; }
.drawer-list li { position: relative; padding-left: 13px; text-wrap: pretty; }
.drawer-list li::before { position: absolute; top: .7em; left: 1px; width: 4px; height: 4px; border-radius: 50%; background: #7d858b; content: ''; }
.known-section .drawer-list li::before { background: #72a860; }
.unknown-section .drawer-list li::before { background: #9b7bb6; }
.needed-section .drawer-list li::before { background: #d36d2a; }

.comparison-section { margin-top: 8px; }
.comparison-list { display: grid; }
.comparison-row { display: grid; grid-template-columns: minmax(105px, .28fr) minmax(0, 1fr); gap: 12px; padding: 9px 0; box-shadow: 0 1px 0 rgba(255, 255, 255, .055); }
.comparison-row:last-child { box-shadow: none; }
.comparison-row strong { color: #d9dbdc; font: 600 9px var(--mono); }
.comparison-row span { color: #a6acb0; font-size: 10px; line-height: 1.55; text-wrap: pretty; }

.gap-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 8px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.gap-node { min-height: 72px; padding: 11px; background: rgba(8, 13, 20, .96); }
.gap-node time { display: block; margin-bottom: 5px; color: #9b7bb6; font: 600 11px var(--mono); font-variant-numeric: tabular-nums; }
.gap-node span { color: #989fa4; font-size: 9px; line-height: 1.45; }
.gap-node.known time { color: #72a860; }

.coordinate-link {
  display: grid;
  min-height: 58px;
  margin-top: 8px;
  padding: 11px 13px;
  grid-template-columns: minmax(120px, .36fr) 1fr;
  gap: 3px 12px;
  align-items: center;
  border-radius: 4px;
  background: rgba(74, 138, 124, .08);
  box-shadow: 0 0 0 1px rgba(74, 138, 124, .25);
  color: #d8dbdc;
  text-decoration: none;
  transition-property: background-color, box-shadow, transform;
  transition-duration: 160ms;
}

.coordinate-link:hover { background: rgba(74, 138, 124, .14); box-shadow: 0 0 0 1px rgba(74, 138, 124, .48); }
.coordinate-link:active { transform: scale(.96); }
.coordinate-link span { grid-row: 1 / span 2; color: #72a99d; font: 600 9px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.coordinate-link strong { font: 600 11px var(--mono); font-variant-numeric: tabular-nums; }
.coordinate-link small { color: #838c91; font: 400 8px var(--mono); }

.event-evidence .source-block,
.event-evidence .audio-evidence,
.event-evidence .evidence-media { margin-top: 8px; }

.source-block {
  max-width: 800px;
  margin-top: 22px;
  padding: 14px;
  border-radius: 4px;
  background: rgba(235, 226, 205, .045);
  box-shadow: inset 0 0 0 1px rgba(235, 226, 205, .13);
}

.source-label {
  margin: 0 0 10px;
  color: #8e969b;
  font: 600 9px var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.source-links { display: flex; flex-wrap: wrap; gap: 7px; }

.source-link {
  display: inline-flex;
  min-height: 40px;
  padding: 8px 10px;
  align-items: center;
  border-radius: 3px;
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  color: #d3a17f;
  font: 600 10px var(--mono);
  text-decoration: none;
  transition-property: color, background-color, transform, box-shadow;
  transition-duration: 160ms;
}

.source-link:hover {
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(192, 78, 1, .45);
  color: #fff;
}

.evidence-media {
  max-width: 800px;
  margin: 20px 0 4px;
  overflow: hidden;
  border-radius: 4px;
  background: #030507;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(255, 255, 255, .1);
}

.media-trigger {
  display: flex;
  width: 100%;
  min-height: 62px;
  padding: 14px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  background: rgba(255, 255, 255, .035);
  color: #d2d5d7;
  cursor: pointer;
  font: 600 10px var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  transition-property: background-color, color, transform;
  transition-duration: 160ms;
}

.media-trigger:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.media-trigger svg { width: 20px; height: 20px; fill: none; stroke: #d36d2a; stroke-width: 1.5; }

.loaded-media { position: relative; margin: 0; padding-top: 50px; }
.media-hide {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 4px;
  background: rgba(6, 11, 20, .9);
  color: #f0f1f1;
  cursor: pointer;
  font: 600 9px var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  transition-property: background-color, border-color, transform;
  transition-duration: 160ms;
}
.media-hide:hover { border-color: rgba(211, 109, 42, .7); background: #111925; }
.media-hide:active { transform: scale(.96); }
.loaded-media img,
.loaded-media video { display: block; width: 100%; max-height: 440px; object-fit: contain; }
.loaded-media img { outline: 1px solid rgba(255, 255, 255, .1); outline-offset: -1px; }
.loaded-audio { padding: 50px 14px 0; }
.loaded-audio audio { display: block; width: 100%; min-width: 0; height: 40px; }
.loaded-audio figcaption { margin: 0 -14px; margin-top: 12px; }
.image-open { display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: zoom-in; }
.loaded-media figcaption { padding: 9px 12px; color: #8f979d; font: 400 9px var(--mono); line-height: 1.5; }

.audio-evidence {
  max-width: 800px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(6, 11, 20, .72);
  box-shadow: inset 0 0 0 1px rgba(235, 226, 205, .14);
}

.audio-evidence summary {
  display: flex;
  min-height: 52px;
  padding: 13px 15px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #d6d8d9;
  cursor: pointer;
  font: 600 10px var(--mono);
  letter-spacing: .07em;
  list-style: none;
  text-transform: uppercase;
  transition-property: color, background-color;
  transition-duration: 160ms;
}

.audio-evidence summary::-webkit-details-marker { display: none; }
.audio-evidence summary::before { color: #d36d2a; content: '▶'; font-size: 9px; }
.audio-evidence[open] summary::before { content: '▼'; }
.audio-evidence summary:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.audio-evidence summary span { margin-left: auto; color: #858d92; font-size: 8px; }

.audio-evidence-body {
  padding: 0 14px 15px;
  border-top: 1px solid rgba(235, 226, 205, .09);
}

.audio-caution {
  margin: 13px 0;
  color: #9fa5a9;
  font-size: 11px;
  line-height: 1.6;
}

.audio-caution strong { color: #d3a17f; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.audio-track-list { display: grid; gap: 8px; }

.audio-track {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(250px, 1fr);
  gap: 12px;
  padding: 11px;
  align-items: center;
  border-radius: 3px;
  background: rgba(255, 255, 255, .035);
}

.audio-track-heading h3 {
  margin: 0;
  color: #d9dbdc;
  font: 600 10px var(--mono);
  line-height: 1.4;
}

.audio-track-heading p { margin: 4px 0 0; color: #878f94; font: 400 8px var(--mono); line-height: 1.45; text-transform: uppercase; }
.audio-track audio { display: block; width: 100%; min-width: 0; height: 36px; }

.audio-transcript-link {
  display: inline-flex;
  min-height: 40px;
  margin-top: 11px;
  align-items: center;
  color: #d3a17f;
  font: 600 9px var(--mono);
  text-decoration: none;
  text-transform: uppercase;
  transition-property: color;
  transition-duration: 160ms;
}

.audio-transcript-link:hover { color: #fff; }

.end-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.end-attribution { margin-top: 24px; color: #81898e; font: 400 10px var(--mono); line-height: 1.6; }

.map-key {
  position: fixed;
  z-index: 900;
  right: 14px;
  bottom: 26px;
  display: grid;
  gap: 4px;
  max-width: 320px;
  padding: 9px 11px;
  border-radius: 3px;
  background: rgba(6, 11, 20, .78);
  color: #838b90;
  font: 400 9px var(--mono);
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.map-key span:first-child { color: #b3b8bb; }
.key-route { display: inline-block; width: 20px; margin-right: 5px; border-top: 2px dashed #d4a574; vertical-align: middle; }

.lightbox {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: flex;
  padding: 28px;
  align-items: center;
  justify-content: center;
  background: rgba(6, 11, 20, .94);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(9px);
  transition: opacity 160ms cubic-bezier(.2, 0, 0, 1);
}

.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 100px); border-radius: 4px; outline: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 20px 70px rgba(0, 0, 0, .5); }
.lightbox p { position: absolute; right: 20px; bottom: 12px; left: 20px; margin: 0; color: #92999d; font: 400 9px var(--mono); text-align: center; }
.lightbox-close { position: absolute; top: 14px; right: 14px; display: flex; min-width: 44px; min-height: 44px; padding: 8px 12px; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(255,255,255,.15); border-radius: 4px; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; font: 600 9px var(--mono); letter-spacing: .06em; text-transform: uppercase; transition-property: background-color, transform; transition-duration: 160ms; }
.lightbox-close-icon { font: 400 22px/1 sans-serif; }
.lightbox-close:hover { background: rgba(255,255,255,.1); }

:focus-visible { outline: 3px solid #7ab89c; outline-offset: 3px; }

@media (max-width: 760px) {
  .top-controls { top: 10px; right: 10px; gap: 5px; }
  .control-link, .control-button { width: 42px; padding: 8px; justify-content: center; }
  .control-link span, .control-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .timeline-dropdown { position: fixed; top: 60px; right: 10px; left: 10px; width: auto; max-height: calc(100svh - 74px); }
  .reference-panel { top: 60px; right: 10px; width: calc(100vw - 20px); max-height: calc(100svh - 74px); }
  .step { min-height: 112svh; padding: 13vh 0 22vh; justify-content: stretch; }
  .step-content { width: 100%; padding: 26px 15px 28px; border-radius: 0; background: rgba(8, 13, 20, .8); backdrop-filter: blur(7px); }
  .step.is-active .step-content { box-shadow: inset 3px 0 0 var(--tone, var(--accent)); }
  .step-title { font-size: 1.45rem; }
  h1.step-title { font-size: 2rem; }
  .step-summary { font-size: .92rem; line-height: 1.72; }
  .claim-list li { font-size: 12px; }
  .source-block { margin-right: -3px; margin-left: -3px; }
  .source-link { flex: 1 1 145px; }
  .event-evidence { margin-right: -3px; margin-left: -3px; }
  .drawer-grid { grid-template-columns: 1fr; }
  .comparison-row { grid-template-columns: 1fr; gap: 4px; }
  .coordinate-link { grid-template-columns: 1fr; }
  .coordinate-link span { grid-row: auto; }
  .audio-track { grid-template-columns: 1fr; }
  .map-key { right: 8px; bottom: 21px; max-width: 250px; }
}

@media (max-width: 430px) {
  .event-evidence > summary { align-items: flex-start; }
  .event-evidence > summary small { padding-top: 3px; }
  .gap-track { grid-template-columns: 1fr; }
  .gap-node { min-height: 58px; }
  .map-key span:last-child { display: none; }
  .map-key { bottom: 18px; }
}

@media (max-width: 760px) and (max-height: 700px) {
  .intro-step .intro-note,
  .intro-step .source-block { display: none; }
  .intro-step .step-content { padding-bottom: 20px; }
}

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