/* Lantern Hunt — "field instrument" design system
   Layout concept: a survey sheet. Dark field bands for the mission and the
   work; cool lichen-paper bands for reading. Mono field labels, hairline
   rules with ruler ticks, photography given full width with plain credits. */

@font-face {
  font-family: "Archivo LH";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations"), url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono LH";
  src: url("../fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono LH";
  src: url("../fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  /* Color */
  --forest: #0c1410;      /* field band ground */
  --canopy: #13201a;      /* raised surface on field */
  --moss: #2a3f33;        /* hairlines on field */
  --fog: #a9b9ac;         /* secondary text on field */
  --mist: #e9eee8;        /* primary text on field */
  --lichen: #e3e8e0;      /* paper band ground */
  --bone: #f5f7f2;        /* paper surface */
  --ink: #111a15;         /* primary text on paper */
  --slate: #48574d;       /* secondary text on paper */
  --rule: #c3ccc2;        /* hairlines on paper */
  --amber: #f2b33d;       /* lantern accent */
  --amber-deep: #8a5a00;  /* amber for text on paper */
  --signal: #e2483a;      /* hindwing red — markers only */

  /* Type */
  --display: "Archivo LH", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo LH", "Archivo", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Plex Mono LH", "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.25rem + 0.9vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.9vw, 3rem);
  --step-4: clamp(2.35rem, 1.6rem + 3.6vw, 4.6rem);

  /* Space */
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --band: clamp(64px, 6vw + 32px, 128px);
  --maxw: 1240px;
  --radius: 4px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--forest);
  color: var(--mist);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--amber); color: var(--ink); }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 100;
  background: var(--amber); color: var(--ink); padding: 10px 14px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); font-weight: 800; font-stretch: 118%; line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); font-weight: 780; font-stretch: 112%; line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: var(--step-1); font-weight: 700; font-stretch: 104%; line-height: 1.25; letter-spacing: -0.005em; }
p { margin: 0; max-width: 66ch; }
.lede { font-size: var(--step-1); line-height: 1.5; max-width: 58ch; }
.label {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4;
}
.latin { font-style: italic; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Bands ---------- */
.band { padding-block: var(--band); position: relative; }
.band--field { background: var(--forest); color: var(--mist); }
.band--canopy { background: var(--canopy); color: var(--mist); }
.band--paper { background: var(--lichen); color: var(--ink); color-scheme: light; }
.band--bone { background: var(--bone); color: var(--ink); color-scheme: light; }
.band--paper .muted, .band--bone .muted { color: var(--slate); }
.band--field .muted, .band--canopy .muted { color: var(--fog); }
.band--paper .label, .band--bone .label { color: var(--slate); }
.band--field .label, .band--canopy .label { color: var(--fog); }
.label--amber { color: var(--amber) !important; }
.band--paper .label--amber, .band--bone .label--amber { color: var(--amber-deep) !important; }

.stack { display: grid; gap: 20px; align-content: start; }
.stack--tight { gap: 10px; }
.stack--loose { gap: 32px; }

/* Ruler rule: a hairline with survey ticks */
.ruler {
  height: 12px; border: 0; margin: 0;
  background:
    linear-gradient(currentColor, currentColor) bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 24px) bottom / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 120px) bottom / 100% 12px no-repeat;
  opacity: 0.35;
}

.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head .label { display: flex; align-items: center; gap: 10px; }
.section-head .label::before { content: ""; width: 8px; height: 8px; background: var(--signal); border-radius: 50%; flex: none; }

/* ---------- Header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--forest);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--forest) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--moss);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--mist); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span { font-family: var(--display); font-weight: 800; font-stretch: 122%; font-size: 1.12rem; letter-spacing: -0.01em; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--moss); color: var(--mist);
  font: 500 0.78rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 11px 14px; border-radius: var(--radius); cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; padding: 10px 12px; text-decoration: none; color: var(--fog);
  font-size: 0.95rem; font-weight: 550; border-radius: var(--radius);
}
.site-nav a:hover { color: var(--mist); }
.site-nav a[aria-current="page"] { color: var(--mist); box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }
.site-nav .nav-cta a { color: var(--ink); background: var(--amber); margin-left: 8px; border-radius: var(--radius); }
.site-nav .nav-cta a:hover { background: #ffc85c; color: var(--ink); }

@media (max-width: 920px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--forest); border-bottom: 1px solid var(--moss);
    padding: 8px var(--gutter-r) 20px var(--gutter); }
  .js .site-nav.open ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav.open a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--moss); border-radius: 0; }
  .js .site-nav.open a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--amber); padding-left: 14px; }
  .js .site-nav.open .nav-cta a { margin: 16px 0 0; text-align: center; border-bottom: 0; border-radius: var(--radius); }
  .site-header .wrap { position: relative; }
  html:not(.js) .site-header .wrap { flex-wrap: wrap; padding-block: 10px; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 650; font-size: 1rem; line-height: 1; padding: 16px 20px; border-radius: var(--radius);
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--amber); color: var(--ink); }
.btn--primary:hover { background: #ffc85c; }
.btn--ghost { border-color: color-mix(in srgb, currentColor 40%, transparent); color: inherit; }
.btn--ghost:hover { border-color: currentColor; }
.band--paper .btn--primary, .band--bone .btn--primary { background: var(--ink); color: var(--bone); }
.band--paper .btn--primary:hover, .band--bone .btn--primary:hover { background: #24342b; }
.textlink { font-weight: 650; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.textlink:hover { text-decoration-thickness: 2px; }
.band--field .textlink, .band--canopy .textlink { color: var(--amber); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; background: var(--forest); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12,20,16,.94) 0%, rgba(12,20,16,.80) 38%, rgba(12,20,16,.25) 72%, rgba(12,20,16,.15) 100%),
    linear-gradient(0deg, rgba(12,20,16,.9) 0%, rgba(12,20,16,0) 40%);
}
.hero .wrap { padding-block: clamp(88px, 12vw, 176px) clamp(56px, 7vw, 96px); display: grid; gap: 28px; }
.hero h1 { max-width: 16ch; color: #fff; }
.hero .lede { color: #dbe4dc; }
.hero__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: end;
  margin-top: clamp(32px, 6vw, 72px); padding-top: 16px; border-top: 1px solid rgba(233,238,232,.22);
}
.hero__foot .label { color: #c4d0c6; }
.credit { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.02em; color: #b7c3b9; }
.band--paper .credit, .band--bone .credit { color: var(--slate); }

.page-hero { background: var(--forest); border-bottom: 1px solid var(--moss); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .55; pointer-events: none;
  background: url("../img/contours.svg") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 70%); mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
}
.page-hero .wrap { position: relative; padding-block: clamp(72px, 9vw, 128px) clamp(48px, 6vw, 80px); display: grid; gap: 22px; }
.page-hero h1 { max-width: 18ch; }

/* ---------- Grids ---------- */
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-text { grid-template-columns: 1.15fr 0.85fr; }
  .split--wide-media { grid-template-columns: 0.9fr 1.1fr; }
  .split--top { align-items: start; }
}
.split > * { min-width: 0; }

.cols { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.band--field .cols, .band--canopy .cols { background: var(--moss); border-color: var(--moss); }
.cols > * { background: var(--lichen); padding: clamp(22px, 2.4vw, 32px); display: grid; gap: 12px; align-content: start; min-width: 0; }
.band--bone .cols > * { background: var(--bone); }
.band--field .cols > * { background: var(--forest); }
.band--canopy .cols > * { background: var(--canopy); }
@media (min-width: 720px) { .cols--2 { grid-template-columns: repeat(2, 1fr); } .cols--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cols--3 { grid-template-columns: repeat(3, 1fr); } .cols--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 720px) and (max-width: 979px) { .cols--3 { grid-template-columns: repeat(3, 1fr); } }
.cols h3 { font-size: 1.15rem; }
.cols p { font-size: 0.98rem; }

/* ---------- Figures ---------- */
figure { margin: 0; }
.photo { display: grid; gap: 10px; }
.photo img { width: 100%; border-radius: var(--radius); background: var(--canopy); }
.photo--tall img { aspect-ratio: 4 / 5; object-fit: cover; }
.photo--wide img { aspect-ratio: 3 / 2; object-fit: cover; }
.photo figcaption { display: grid; gap: 2px; font-size: 0.9rem; }
.photo figcaption .credit { font-size: 0.72rem; }

.bleed { position: relative; min-height: clamp(360px, 46vw, 620px); display: grid; align-items: end; isolation: isolate; overflow: hidden; }
.bleed > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bleed::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(12,20,16,.94) 0%, rgba(12,20,16,.62) 45%, rgba(12,20,16,.08) 100%); }
.bleed .wrap { width: 100%; padding-block: clamp(48px, 6vw, 88px); display: grid; gap: 20px; }
.bleed h2 { color: #fff; max-width: 20ch; }
.bleed p { color: #dbe4dc; }

/* ---------- Phone frame for real app screenshots ---------- */
.device {
  width: min(100%, 320px); margin-inline: auto; padding: 10px; border-radius: 46px;
  background: #050806; box-shadow: 0 0 0 1px #2b3a31, 0 30px 60px -20px rgba(0,0,0,.6);
}
.device img { border-radius: 36px; width: 100%; }
.device--crop { border-radius: 30px; }
.device--crop img { border-radius: 22px; }
.devices { display: grid; gap: clamp(20px, 3vw, 36px); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: start; }
.shot-caption { margin-top: 14px; text-align: center; }

/* ---------- Steps (a real sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--rule); }
.band--field .steps, .band--canopy .steps { border-color: var(--moss); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 6px 20px; padding-block: 24px; border-bottom: 1px solid var(--rule); }
.band--field .steps > li, .band--canopy .steps > li { border-color: var(--moss); }
.steps > li::before {
  content: counter(step, decimal-leading-zero); grid-row: span 2;
  font-family: var(--mono); font-size: 0.85rem; font-weight: 500; letter-spacing: .06em; padding-top: 4px; color: var(--amber-deep);
}
.band--field .steps > li::before, .band--canopy .steps > li::before { color: var(--amber); }
.steps h3 { font-size: 1.2rem; }

/* ---------- Field notes (fact list) ---------- */
.notes { margin: 0; display: grid; border-top: 1px solid var(--rule); }
.band--field .notes, .band--canopy .notes { border-color: var(--moss); }
.notes > div { display: grid; grid-template-columns: minmax(120px, 0.42fr) 1fr; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.band--field .notes > div, .band--canopy .notes > div { border-color: var(--moss); }
.notes dt { font-family: var(--mono); font-size: 0.78rem; letter-spacing: .06em; text-transform: uppercase; padding-top: 3px; }
.band--paper .notes dt, .band--bone .notes dt { color: var(--slate); }
.band--field .notes dt, .band--canopy .notes dt { color: var(--fog); }
.notes dd { margin: 0; min-width: 0; }
@media (max-width: 520px) { .notes > div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Status tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 2px; border: 1px solid currentColor;
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag--live { color: #2f7a4a; }
.band--field .tag--live, .band--canopy .tag--live { color: #7fd29b; }
.tag--proposal { color: var(--amber-deep); }
.band--field .tag--proposal, .band--canopy .tag--proposal { color: var(--amber); }
.tag--proposal::before { background: transparent; border: 1.5px solid currentColor; }

/* ---------- Life-cycle chart ---------- */
.cycle-wrap { overflow-x: auto; border: 1px solid var(--rule); background: var(--bone); border-radius: var(--radius); }
.cycle { border-collapse: collapse; width: 100%; min-width: 680px; font-size: 0.9rem; }
.cycle th, .cycle td { padding: 0; height: 46px; border-left: 1px solid #dfe5dd; }
.cycle thead th { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: .08em; color: var(--slate); text-align: center; height: 40px; border-bottom: 1px solid var(--rule); }
.cycle tbody th { text-align: left; font-weight: 650; padding: 0 16px; white-space: nowrap; border-left: 0; width: 1%; }
.cycle tbody tr + tr th, .cycle tbody tr + tr td { border-top: 1px solid #dfe5dd; }
.cycle td.on { position: relative; }
.cycle td.on::after { content: ""; position: absolute; left: 0; right: 0; top: 14px; bottom: 14px; background: var(--c, var(--ink)); }
.cycle td.start::after { left: 6px; border-radius: 3px 0 0 3px; }
.cycle td.end::after { right: 6px; border-radius: 0 3px 3px 0; }
.cycle td.start.end::after { border-radius: 3px; }
.cycle .r-egg { --c: #7a6a55; }
.cycle .r-early { --c: #1d241f; }
.cycle .r-late { --c: var(--signal); }
.cycle .r-adult { --c: #b78478; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Review flow ---------- */
.flow { display: grid; gap: 12px; }
@media (min-width: 900px) { .flow { grid-template-columns: 1fr auto 1fr auto 1.2fr; align-items: stretch; } }
.flow__node { border: 1px solid var(--rule); background: var(--bone); padding: 20px; border-radius: var(--radius); display: grid; gap: 8px; align-content: start; min-width: 0; }
.flow__arrow { display: grid; place-items: center; color: var(--slate); font-family: var(--mono); }
.flow__arrow svg { width: 28px; height: 28px; }
@media (max-width: 899px) { .flow__arrow svg { transform: rotate(90deg); } }
.flow__out { display: grid; gap: 12px; }
.flow__out .flow__node.ok { border-left: 4px solid #2f7a4a; }
.flow__out .flow__node.no { border-left: 4px solid var(--signal); }

/* ---------- Two-column lists ---------- */
.ledger { display: grid; gap: 0; }
@media (min-width: 880px) { .ledger { grid-template-columns: 1fr 1fr; gap: 0 48px; } }
.ledger ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.ledger li { padding: 14px 0 14px 30px; border-bottom: 1px solid var(--rule); position: relative; }
.ledger li::before { position: absolute; left: 2px; top: 13px; font-family: var(--mono); font-weight: 500; }
.ledger .yes li::before { content: "+"; color: #2f7a4a; }
.ledger .no li::before { content: "–"; color: var(--signal); }
.ledger h3 { margin-bottom: 14px; }
.ledger > div + div { margin-top: 32px; }
@media (min-width: 880px) { .ledger > div + div { margin-top: 0; } }

/* ---------- Program cards ---------- */
.program { display: grid; gap: 0; border: 1px solid var(--rule); background: var(--bone); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .program { grid-template-columns: 0.9fr 1.1fr; } .program--flip > :first-child { order: 2; } }
.program > img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.program__body { padding: clamp(24px, 3vw, 44px); display: grid; gap: 18px; align-content: start; min-width: 0; }
.program__body ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; }
.program__body .credit { margin-top: 4px; }

/* ---------- Contact panel ---------- */
.contact {
  display: grid; gap: 24px; padding: clamp(28px, 4vw, 56px); border: 1px solid var(--moss); border-radius: var(--radius);
  background: var(--canopy) url("../img/contours.svg") right center / 900px auto no-repeat;
}
@media (min-width: 880px) { .contact { grid-template-columns: 1.2fr 0.8fr; align-items: end; } }
.contact .addr { font-family: var(--mono); font-size: 1.05rem; user-select: all; word-break: break-all; color: var(--mist); }

/* ---------- Prose (support, privacy) ---------- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; padding-top: 1.1em; border-top: 1px solid var(--rule); }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--ink); text-underline-offset: 3px; }
.prose .note, .note {
  background: var(--bone); border: 1px solid var(--rule); border-left: 4px solid var(--amber); padding: 18px 20px; border-radius: var(--radius);
}
.prose-layout { display: grid; gap: 40px; }
@media (min-width: 1000px) { .prose-layout { grid-template-columns: 220px 1fr; gap: 72px; } }
.toc { position: sticky; top: 100px; align-self: start; display: none; }
@media (min-width: 1000px) { .toc { display: grid; gap: 10px; } }
.toc a { text-decoration: none; color: var(--slate); font-size: 0.92rem; }
.toc a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: var(--fog); border-top: 1px solid var(--moss); padding-block: 56px 40px; font-size: 0.92rem; }
.site-footer .grid { display: grid; gap: 36px; }
@media (min-width: 860px) { .site-footer .grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fog); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .fine { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--moss); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.82rem; }
.site-footer .brand { margin-bottom: 14px; }
.site-footer p { max-width: 52ch; }

/* ---------- Misc ---------- */
.kicker-row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.divider-top { border-top: 1px solid var(--rule); padding-top: 28px; }
.band--field .divider-top, .band--canopy .divider-top { border-color: var(--moss); }
.center { text-align: center; margin-inline: auto; }
.mt-l { margin-top: clamp(40px, 5vw, 64px); }
.mt-m { margin-top: 28px; }

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lede, .hero .actions { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero .lede { animation-delay: .08s; }
  .hero .actions { animation-delay: .16s; }
  @keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
}
@media print {
  .site-header, .site-footer, .hero__media, .bleed > img { display: none; }
  body, .band { background: #fff !important; color: #000 !important; }
}

/* ---------- Additions ---------- */
.checklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.checklist li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--rule); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 10px; height: 2px; background: var(--amber-deep); }
.checklist a { text-underline-offset: 3px; }
.lifestages .photo img { aspect-ratio: 3 / 2; object-fit: cover; }
.lifestages figcaption { font-size: 0.96rem; }
.program__body h3 { font-size: var(--step-2); }
.h1-mission { max-width: 22ch !important; font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.9rem); }
.cta-center { justify-items: center; text-align: center; }
.cta-center p { margin-inline: auto; }
.cta-center .actions { justify-content: center; }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bone); }
.credits { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.92rem; }
.credits th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.credits td { padding: 12px 16px; border-bottom: 1px solid #dfe5dd; vertical-align: top; }
.credits tr:last-child td { border-bottom: 0; }
.credits a { color: var(--ink); text-underline-offset: 3px; }
.band--paper a:not(.btn), .band--bone a:not(.btn) { color: var(--ink); }
.stack--loose > .section-head { margin-bottom: 0; }
.program img.crab { object-position: 28% 78%; }
.bleed::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(12,20,16,.7) 0%, rgba(12,20,16,.35) 50%, rgba(12,20,16,0) 80%); }
.site-footer .fine a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Headline statistics (rendered from data/stats.json) ---------- */
.stats__primary, .stats__support { margin: 0; }
.stats { display: grid; gap: 0; border-top: 1px solid var(--moss); border-bottom: 1px solid var(--moss); }
@media (min-width: 880px) { .stats { grid-template-columns: 1.35fr 1fr; } }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding-block: clamp(24px, 3vw, 40px); min-width: 0; }
.stat dt { font-family: var(--mono); font-size: 0.8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fog); }
.stat dd { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 112%; letter-spacing: -0.03em; line-height: 0.95; color: var(--mist); font-size: clamp(2.6rem, 2rem + 2.6vw, 4.2rem); }
.stat--primary dd { color: var(--amber); font-stretch: 125%; font-size: clamp(4.2rem, 2.4rem + 8vw, 9.5rem); }
.stat--primary dt { font-size: 0.9rem; color: var(--mist); }
.stats__support { display: grid; border-top: 1px solid var(--moss); }
.stats__support .stat + .stat { border-top: 1px solid var(--moss); }
@media (min-width: 880px) {
  .stat--primary { padding-right: clamp(24px, 4vw, 64px); justify-content: center; }
  .stats__support { border-top: 0; border-left: 1px solid var(--moss); }
  .stats__support .stat { padding-left: clamp(24px, 3vw, 48px); justify-content: center; }
}
.stats__asof { margin-top: 14px; color: var(--fog); font-size: 0.72rem; }
.stats__asof time { font-variant-numeric: tabular-nums; }

/* ---------- Five-part platform row ---------- */
.platform .tag { margin-bottom: 4px; }
@media (min-width: 720px) {
  .cols--5 { grid-template-columns: repeat(6, 1fr); }
  .cols--5 > :nth-child(-n+3) { grid-column: span 2; }
  .cols--5 > :nth-child(n+4) { grid-column: span 3; }
}
@media (min-width: 1180px) {
  .cols--5 { grid-template-columns: repeat(5, 1fr); }
  .cols--5 > * { grid-column: auto !important; }
}
.platform-proof { font-size: var(--step-1); color: var(--mist); max-width: 60ch; }
.platform-proof strong { color: var(--amber); font-weight: 750; }
.platform-proof .textlink { font-size: 1rem; margin-left: 6px; }
.notes dd a { font-family: var(--mono); font-size: 0.75rem; margin-left: 4px; }
@media (min-width: 980px) and (max-width: 1179px) { .lifestages.cols--4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Speed line under stats ---------- */
.stats__speed { margin-top: 22px; font-size: var(--step-1); color: var(--mist); max-width: 60ch; }

/* ---------- Future species ---------- */
.species-grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 720px) { .species-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .species-grid { grid-template-columns: repeat(3, 1fr); } }
.species { background: var(--bone); display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.species > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.species__body { padding: 22px 24px 24px; display: grid; gap: 10px; align-content: start; }
.species__body h3 { font-size: 1.2rem; }
.species__body h3 .latin { font-family: var(--body); font-weight: 400; font-size: 0.92rem; font-stretch: 100%; }
.species__body p { font-size: 0.97rem; }
.species__limit { border-left: 3px solid var(--amber-deep); padding-left: 12px; color: var(--slate); font-size: 0.92rem !important; }
.band--paper .species .tag--live { color: #2f7a4a; }
.species__body p.credit { font-size: 0.72rem; }

/* ---------- Activity map ---------- */
.map { display: grid; gap: 18px; }
.map-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; }
.map-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-stretch: 108%; font-size: 1.05rem; }
.map-crumb { font: inherit; color: var(--mist); background: none; border: 0; padding: 8px 0; min-height: 44px; }
button.map-crumb { cursor: default; }
button.map-crumb.is-link { cursor: pointer; color: var(--amber); text-decoration: underline; text-underline-offset: 4px; }
.map-crumb--here { color: var(--mist); }
.map-crumb-sep { color: var(--fog); }
.map-clear { font: 600 0.92rem var(--body); color: var(--mist); background: transparent; border: 1px solid #5b7766; border-radius: var(--radius); padding: 10px 14px; min-height: 44px; cursor: pointer; }
.map-clear:hover { border-color: var(--mist); }
.map-body { display: grid; gap: 1px; background: var(--moss); border: 1px solid var(--moss); }
@media (min-width: 960px) { .map-body { grid-template-columns: 1.6fr 1fr; } }
.map-stage { background: var(--canopy); padding: 14px; display: grid; place-items: center; min-width: 0; }
.map-svg { width: 100%; height: auto; display: block; max-height: 560px; }
[hidden] { display: none !important; }
.map-side { background: var(--canopy); padding: 18px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.m-land { fill: #1a2a22; }
.m-borders { fill: none; stroke: #3a5144; stroke-width: 0.7; stroke-linejoin: round; pointer-events: none; }
.m-county-base { fill: #1a2a22; }
.m-county-lines { fill: none; stroke: #2c4236; stroke-width: 0.6; pointer-events: none; }
.m-state-outline { fill: none; stroke: #6f8f7c; stroke-width: 1.4; pointer-events: none; }
.m-callout line { stroke: var(--fog); stroke-width: 1; }
.m-callout text { fill: var(--fog); font: 500 15px var(--mono); letter-spacing: .06em; }
.m-state, .m-county { stroke: var(--forest); stroke-width: 0.6; cursor: pointer; transition: filter .15s; }
.m-state.is-hover, .m-county.is-hover { filter: brightness(1.3); stroke: #e9eee8; stroke-width: 1.2; }
.m-county.is-selected { stroke: #fff; stroke-width: 3.5; stroke-linejoin: round; paint-order: stroke; filter: brightness(1.15); }
.map-preview .m-state { cursor: inherit; }
.t-1-9 { fill: #6a5526; background: #6a5526; }
.t-10-49 { fill: #9c7424; background: #9c7424; }
.t-50-999 { fill: #d0962c; background: #d0962c; }
.t-1000\+ { fill: #ffc44d; background: #ffc44d; }
.map-readout { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--moss); border-radius: var(--radius); background: var(--forest); min-height: 92px; align-content: start; }
.map.is-previewing .map-readout { border-style: dashed; }
.map-readout__kicker { color: var(--fog); }
.map-readout__name { font-family: var(--display); font-weight: 700; font-stretch: 108%; font-size: 1.15rem; color: var(--mist); }
.map-readout__value { color: var(--amber); font-variant-numeric: tabular-nums; }
.map-list-title { color: var(--fog); margin: 0; }
.map-list-title:focus { outline: none; }
.map-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.map-item { width: 100%; display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 12px; text-align: left; font: 500 0.98rem var(--body); color: var(--mist); background: var(--forest); border: 1px solid var(--moss); border-radius: var(--radius); padding: 11px 14px; min-height: 48px; cursor: pointer; }
.map-item:hover { border-color: #6f8f7c; }
.map-item[aria-pressed="true"] { border-color: var(--amber); box-shadow: inset 3px 0 0 var(--amber); }
.map-item i { width: 14px; height: 14px; border-radius: 2px; }
.map-item__value { color: var(--fog); font-size: 0.86rem; font-variant-numeric: tabular-nums; text-align: right; }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--fog); font-size: 0.9rem; }
.map-legend__item { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.map-legend__item i { width: 22px; height: 12px; border-radius: 2px; display: inline-block; }
.map-table summary { cursor: pointer; color: var(--amber); font-weight: 650; min-height: 44px; display: flex; align-items: center; width: fit-content; }
.map-table .table-wrap { margin-top: 12px; }
.band--field .map-table .credits td, .band--field .map-table .credits th { color: var(--ink); }
.home-reach { margin-top: 36px; align-items: center; }
.map-preview { display: grid; gap: 10px; text-decoration: none; padding: 14px; border: 1px solid var(--moss); border-radius: var(--radius); background: var(--forest); transition: border-color .15s; }
.map-preview:hover { border-color: var(--amber); }
.map-preview .m-state { cursor: inherit; }

/* ---------- Single-column image proportions ---------- */
@media (max-width: 879px) { .photo--tall img { aspect-ratio: 3 / 2; } }
@media (max-width: 899px) { .program > img { height: auto; min-height: 0; aspect-ratio: 3 / 2; } }

/* ---------- Footer and inline link targets ---------- */
.site-footer ul a { display: inline-block; padding-block: 4px; }
.site-footer .fine a { display: inline-block; padding-block: 4px; }

.textlink { display: inline-block; padding-block: 4px; }

/* v7 components */
.mt-s { margin-top: 14px; }
ol.cols, ul.cols { list-style: none; margin: 0; padding: 0; }
.jump { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 28px; }
.jump a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border: 1px solid rgba(233, 238, 232, 0.28); border-radius: 999px; color: inherit; text-decoration: none; font-size: 0.92rem; }
.jump a:hover, .jump a:focus-visible { border-color: var(--amber); color: var(--amber); }
.photo-credit { display: inline-block; justify-self: start; padding-block: 4px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; color: inherit; opacity: 0.62; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.photo-credit:hover, .photo-credit:focus-visible { opacity: 1; }
figcaption .photo-credit { margin-top: 2px; }
.hero__foot .photo-credit { opacity: 0.7; }
.history { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.history > article { background: var(--bone); padding: clamp(22px, 2.6vw, 34px); display: grid; gap: 12px; align-content: start; }
.history h3 { margin: 0; font-size: 1.25rem; }
@media (min-width: 900px) { .history { grid-template-columns: 1fr 1fr; } }
.precedents { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.precedents li { background: var(--bone); padding: 20px 22px; display: grid; gap: 8px; align-content: start; }
.precedents p { margin: 0; font-size: 0.98rem; }
@media (min-width: 720px) { .precedents { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .precedents { grid-template-columns: repeat(4, 1fr); } }
.credits__where { display: block; margin-top: 4px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.02em; color: var(--slate); }
.credits tr:target td { background: rgba(242, 179, 61, 0.18); }
