/* The Unbadged — the map is the story. One canvas, one flight, one record. */
:root {
  color-scheme: dark;
  --ink: #070a0e;
  --paper: #e8e3d8;
  --paper-dim: #aaa9a4;
  --ember: #c53b2c;
  --steel: #7e9bb2;
  --steel-bright: #9fc4de;
  --charge: #9e3429;
  --claimed: #c49a45;
  --hairline: rgba(232, 227, 216, .16);
  --page-progress: 0;
}
* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: auto; }
body.story {
  margin: 0;
  overflow-x: clip;
  background: var(--ink);
  color: var(--paper);
  font: 400 17px/1.68 "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
::selection { color: #090b0d; background: var(--steel-bright); }
strong { color: #fff; font-weight: 650; }
.skip-link {
  position: fixed; top: .75rem; left: .75rem; z-index: 100;
  padding: .65rem .9rem; color: #090b0d; background: var(--paper);
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.paper-grain, .edge-shade {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.paper-grain {
  z-index: 3; opacity: .11; mix-blend-mode: soft-light;
  background-image:
    repeating-radial-gradient(circle at 19% 31%, transparent 0 1px, rgba(255,255,255,.22) 1.5px 2px, transparent 2.5px 5px),
    repeating-linear-gradient(93deg, transparent 0 3px, rgba(255,255,255,.08) 4px, transparent 5px 9px);
  background-size: 127px 113px, 97px 100%;
}
.edge-shade {
  z-index: 4;
  background: radial-gradient(ellipse at 50% 45%, transparent 25%, rgba(1,3,5,.25) 69%, rgba(1,3,5,.76) 120%);
}
.story-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 5.25rem; padding: 0 clamp(1.25rem, 3.2vw, 3.5rem);
  background: linear-gradient(180deg, rgba(4,6,8,.82), rgba(4,6,8,0));
}
.brand {
  color: var(--paper); text-decoration: none;
  font: 600 clamp(.86rem, 1.2vw, 1.02rem)/1 Georgia, "Times New Roman", serif;
  letter-spacing: .13em;
}
.brand .un, .hero-name .un { color: var(--ember); }
.story-header nav { display: flex; align-items: center; gap: clamp(.9rem, 2.2vw, 2.1rem); }
.story-header nav a {
  color: rgba(232,227,216,.7); text-decoration: none;
  font-size: .67rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  transition: color .2s ease;
}
.story-header nav a:hover, .story-header nav a:focus-visible { color: var(--paper); }
.story-header .nav-submit { padding: .62rem .8rem; border: 1px solid rgba(197,59,44,.62); }
.read-progress {
  position: absolute; right: 0; bottom: 0; left: 0; height: 1px;
  background: rgba(255,255,255,.07);
}
.read-progress span {
  display: block; width: 100%; height: 1px; background: var(--ember);
  transform: scaleX(var(--page-progress)); transform-origin: left;
}

/* ---- the route: the whole page ---- */
.route-rail { position: relative; height: 1350vh; background: var(--ink); }
.route-stick { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#route-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.route-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.route-caption {
  position: absolute;
  right: clamp(1.2rem, 6vw, 5.5rem);
  bottom: 9vh;
  max-width: 36rem;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, transform;
}
.route-caption a { pointer-events: auto; }
/* a soft dark pool behind the text, dissolving into the map */
.route-caption::before {
  content: ""; position: absolute; z-index: -1;
  inset: -3rem -4rem -3.5rem -5rem;
  background: radial-gradient(ellipse at 62% 55%,
    rgba(4,7,11,.82) 0%, rgba(4,7,11,.55) 46%, rgba(4,7,11,0) 74%);
  pointer-events: none;
}
.route-hero::before { content: none; }
.route-kicker {
  margin: 0 0 .65rem;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--ember);
}
.route-line {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.45;
  color: var(--paper);
  text-shadow: 0 1px 18px rgba(0,0,0,.85), 0 0 44px rgba(0,0,0,.6);
}
.route-line + .route-line { margin-top: .9rem; }
.route-line.small {
  font-size: clamp(1rem, 1.9vw, 1.2rem);
  color: rgba(232,227,216,.78);
}
.route-line .label { display: block; margin: .75rem 0 0; width: fit-content; }
.route-line em { color: var(--ember); font-style: italic; }
.route-credit {
  margin: .9rem 0 0;
  font-size: .68rem; letter-spacing: .06em;
  color: var(--paper-dim); opacity: .8;
}

/* the closing fold: the record, front and center */
.route-caption.route-final {
  inset: 0; right: 0; bottom: 0; max-width: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6rem 1.5rem 4rem; text-align: center;
}
.route-final::before {
  inset: 0;
  background: radial-gradient(ellipse at 50% 52%,
    rgba(4,7,11,.8) 0%, rgba(4,7,11,.5) 48%, rgba(4,7,11,0) 76%);
}
.route-final .route-line { max-width: 46rem; }
.route-final .route-line .label { margin-inline: auto; }
.route-final .ctas { justify-content: center; }

/* the hero: title over the opening aerial (visible before the scene is ready) */
.route-hero {
  opacity: 1; visibility: visible;
  inset: 0; max-width: none; top: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6rem 1.5rem 9rem; text-align: center;
}
.hero-kicker {
  margin: 0 0 1.4rem; color: var(--ember);
  font: 700 clamp(.62rem, .8vw, .72rem)/1.4 "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .27em; text-transform: uppercase;
}
.route-hero h1 {
  display: flex; flex-direction: column; align-items: center; margin: 0;
  font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: .76;
}
.hero-the {
  margin-left: -.24em; margin-bottom: clamp(.55rem, 1.6vh, 1.2rem);
  color: rgba(232,227,216,.56);
  font-size: clamp(1.05rem, 2vw, 1.6rem); letter-spacing: .56em;
}
.hero-name {
  font-size: clamp(3.3rem, 10.8vw, 10.5rem);
  letter-spacing: -.055em;
  text-shadow: 0 2px 40px rgba(0,0,0,.6);
}
.hero-tag {
  margin: clamp(1.6rem, 4vh, 3rem) 0 0;
  color: rgba(232,227,216,.74);
  font: italic 400 clamp(1.1rem, 2vw, 1.55rem)/1.45 Georgia, "Times New Roman", serif;
}
.hero-cta { margin-top: clamp(1.6rem, 4vh, 2.6rem); }
.hero-cta .btn { pointer-events: auto; }
.scroll-cue {
  position: absolute; right: 0; bottom: 4.6rem; left: 0;
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  color: rgba(232,227,216,.42); font-size: .57rem; font-weight: 700;
  letter-spacing: .25em; text-transform: uppercase;
}
.scroll-cue i { display: block; width: 1px; height: 2.8rem; background: linear-gradient(var(--paper), transparent); }
.route-hero .route-credit {
  position: absolute; bottom: 1.4rem; left: 0; right: 0;
  margin-inline: auto; max-width: 46rem; padding-inline: 1rem;
  text-align: center; font-size: .58rem; opacity: .6;
}

/* status labels: nothing public without one */
.label {
  display: inline-block; margin-left: .38rem; padding: .16rem .52rem .14rem;
  border: 1px solid; border-radius: 99rem; vertical-align: .12em;
  font-size: .59rem; font-weight: 750; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap;
}
.label.claimed { color: var(--claimed); border-color: rgba(196,154,69,.72); }
.label.corroborated { color: var(--steel-bright); border-color: rgba(126,155,178,.78); }

/* inline sources: findings carry their evidence */
.sources-row {
  margin: 1rem 0 0;
  font-size: .82rem;
  letter-spacing: .05em;
  color: var(--paper-dim);
}
.sources-row a {
  color: var(--steel-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(159,196,222,.3);
  margin: 0 .85rem 0 .1rem;
  white-space: nowrap;
}
.sources-row a:hover { border-bottom-color: var(--steel-bright); }

/* the count: compact figures inside a caption */
.route-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.rf { padding: .8rem .9rem; background: rgba(7,10,14,.82); }
.rf .n {
  display: block; color: var(--paper);
  font: 400 clamp(1.7rem, 3.2vw, 2.4rem)/1 Georgia, "Times New Roman", serif;
  letter-spacing: -.04em; font-variant-numeric: tabular-nums lining-nums;
}
.rf:last-child .n { color: var(--ember); }
.rf .d {
  display: block; margin-top: .45rem; color: rgba(232,227,216,.55);
  font-size: .6rem; line-height: 1.45; letter-spacing: .07em; text-transform: uppercase;
}

/* closing CTAs */
.route-cta { margin: 1.1rem 0 0; font-size: .95rem; color: var(--paper-dim); }
.ctas { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; }
.btn {
  position: relative; display: flex; flex-direction: column; min-width: 13.8rem;
  padding: .92rem 1.15rem .8rem; border: 1px solid; text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn span { font-size: .8rem; font-weight: 750; letter-spacing: .045em; }
.btn small { margin-top: .16rem; font-size: .58rem; letter-spacing: .15em; text-transform: uppercase; opacity: .65; }
.btn.fire { border-color: var(--ember); color: #f3ede2; background: var(--ember); }
.btn.steel { border-color: rgba(159,196,222,.72); color: var(--steel-bright); background: rgba(7,10,14,.72); }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn.steel:hover, .btn.steel:focus-visible { color: var(--paper); background: rgba(126,155,178,.14); }
.privacy-line { margin: 1rem 0 0; color: rgba(232,227,216,.48); font-size: .74rem; letter-spacing: .025em; }
.privacy-line a { color: var(--steel-bright); text-underline-offset: .24em; }

.story-footer {
  position: relative; z-index: 6; min-height: 11rem; display: grid; place-items: center;
  padding: 3rem 1.5rem; border-top: 1px solid var(--hairline); background: #080b0e;
  color: rgba(232,227,216,.42); text-align: center; font-size: .7rem; letter-spacing: .035em;
}
.story-footer span { max-width: 70rem; }
.story-footer a { color: var(--steel-bright); text-underline-offset: .2em; }

@media (max-width: 760px) {
  body.story { font-size: 15px; }
  .story-header { height: 4.4rem; padding-inline: 1rem; }
  .story-header nav { gap: .85rem; }
  .story-header nav a { font-size: .54rem; letter-spacing: .1em; }
  .story-header .nav-submit { padding: .45rem .5rem; }
  .brand { font-size: .76rem; }
  .route-caption { right: 1.2rem; bottom: 7vh; left: 1.2rem; max-width: none; }
  .route-hero { inset: 0; padding: 5rem 1.2rem 7rem; }
  .route-hero .route-credit { font-size: .5rem; max-width: 92vw; }
  .route-figures { grid-template-columns: 1fr 1fr; }
  .rf { padding: .55rem .6rem; }
  .rf .d { font-size: .52rem; }
  .ctas { gap: .55rem; }
  .btn { min-width: 0; width: calc(50% - .3rem); padding: .7rem .65rem; }
  .btn span { font-size: .66rem; }
  .sources-row { font-size: .66rem; }
}
@media (max-width: 390px) {
  .story-header nav a:nth-child(2) { display: none; }
  .label { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .route-rail { height: auto; }
  .route-stick { position: static; height: auto; }
  #route-canvas { position: relative; height: 60vh; }
  .route-overlay { position: static; }
  .route-caption {
    position: static; opacity: 1 !important; visibility: visible !important;
    transform: none !important; margin: 2.2rem clamp(1.2rem, 6vw, 5.5rem);
  }
  .route-caption::before { content: none; }
  .route-hero { display: block; padding: 2.5rem 0 0; text-align: left; }
  .route-hero h1 { align-items: flex-start; }
  .route-hero .route-credit { position: static; text-align: left; margin-top: 1rem; }
  .scroll-cue { display: none; }
}
@media print {
  .paper-grain, .edge-shade, .story-header, #route-canvas { display: none !important; }
  body.story { color: #111; background: #fff; font-size: 11pt; }
  .route-rail { height: auto; }
  .route-stick { position: static; height: auto; overflow: visible; }
  .route-overlay { position: static; }
  .route-caption { position: static; opacity: 1 !important; visibility: visible !important; transform: none !important; margin: 1.5rem 0; }
  .route-caption::before { content: none; }
  .route-line { color: #111; text-shadow: none; }
}

/* ---- evidence interludes: the lights dim, the record speaks ---- */
.evidence-veil {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at 50% 42%, rgba(2,4,6,.88) 0%, rgba(1,2,4,.97) 78%);
}
.evidence-scene {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  padding: 6rem 1.5rem 3.5rem;
  opacity: 0; visibility: hidden; will-change: opacity, transform;
}
.evidence-scene[data-dead="1"] { display: none; }
.evidence-scene a { pointer-events: auto; }
.ex-stage { max-width: min(92vw, 62rem); text-align: center; }
.ex-stage .route-kicker { text-align: center; margin-bottom: 1rem; }
.ex-media { position: relative; display: grid; place-items: center; }
.ex-slide { grid-area: 1 / 1; margin: 0; opacity: 1; will-change: opacity; }
.ex-slide img, .ex-slide video {
  display: block; height: 56vh; width: auto;
  margin: 0 auto; /* the figcaption can be wider than the media: center anyway */
  max-width: min(88vw, 56rem); object-fit: contain;
  border: 1px solid rgba(232,227,216,.22);
  box-shadow: 0 12px 70px rgba(0,0,0,.75);
  filter: saturate(.88);
}
.ex-slide figcaption {
  margin: .9rem auto 0; max-width: 44rem;
  font: italic 400 clamp(1rem, 1.9vw, 1.25rem)/1.5 Georgia, "Times New Roman", serif;
  color: var(--paper);
  text-shadow: 0 1px 14px rgba(0,0,0,.8);
}
.ex-slide figcaption .label { display: inline-block; margin-left: .5rem; vertical-align: .1em; }
.ex-src { margin: 1rem 0 0; font-size: .74rem; letter-spacing: .05em; color: var(--paper-dim); }
.ex-src a {
  color: var(--steel-bright); text-decoration: none;
  border-bottom: 1px solid rgba(159,196,222,.3); margin-left: .4rem; white-space: nowrap;
}
.ex-src a:hover { border-bottom-color: var(--steel-bright); }
@media (max-width: 760px) {
  .evidence-scene { padding: 4.6rem 1rem 2.5rem; }
  .ex-slide img, .ex-slide video { max-width: 92vw; max-height: 52vh; }
}
@media (prefers-reduced-motion: reduce) {
  .evidence-veil { display: none; }
  .evidence-scene {
    position: static; opacity: 1 !important; visibility: visible !important;
    transform: none !important; padding: 1.5rem clamp(1.2rem, 6vw, 5.5rem); justify-content: flex-start;
  }
  .ex-stage { text-align: left; }
  .ex-stage .route-kicker { text-align: left; }
  .ex-media { display: block; }
  .ex-slide { opacity: 1 !important; margin-bottom: 1.2rem; }
}
