:root {
  --paper: #ffffff;
  --paper-2: #f5f6f8;
  --ink: #14171c;
  --ink-2: #3d4450;
  --muted: #6b7380;
  --rule: #e2e5ea;
  --rule-strong: #14171c;
  --red: #d42a1f;
  --blue: #1f5fd6;
  --screen: #0d0f13;
  --max: 1240px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--sans); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
code { font-family: var(--mono); font-size: .82em; background: var(--paper-2); padding: 1px 5px; border-radius: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- masthead ---------- */
.utility { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); padding-top: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 14px; }
.wordmark { font-family: var(--serif); font-size: 40px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; line-height: 1; }
.wordmark b { color: var(--red); }
.wordmark .sad { display: inline-block; font: 700 22px/1 Arial, sans-serif; color: #fff; background: var(--blue); border-radius: 6px; padding: 6px 7px; margin-right: 10px; vertical-align: 6px; }
.tagline { margin: 0; color: var(--ink-2); font-family: var(--serif); font-style: italic; font-size: 17px; }
.nav {
  position: sticky; top: 0; z-index: 40; display: flex; gap: 22px; align-items: center; overflow-x: auto; scrollbar-width: none;
  background: var(--paper); border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule); padding-top: 10px; padding-bottom: 10px;
}
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; color: var(--ink-2); }
.nav a:hover { color: var(--red); }
.nav .nav-cta { margin-left: auto; color: #fff; background: var(--red); padding: 5px 12px; border-radius: 3px; }
.nav .nav-cta:hover { color: #fff; background: #b11f16; }

/* ---------- lead ---------- */
.lead { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 36px; padding-top: 28px; padding-bottom: 36px; }
@media (max-width: 960px) { .lead { grid-template-columns: 1fr; } }
.kicker { margin: 0 0 6px; font: 600 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--red); }
.lead h1 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.015em; margin-bottom: 10px; }
.dek { margin: 0 0 18px; color: var(--ink-2); font-size: 16px; max-width: 720px; }

.stage { background: var(--screen); border-radius: 6px; overflow: hidden; }
.screen { position: relative; aspect-ratio: 16 / 10; background: #000; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .8s ease; }
.slide.is-active { opacity: 1; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font: 700 11px/1 var(--sans); letter-spacing: .12em; padding: 6px 8px; border-radius: 2px; }
.badge[hidden], .stage-empty[hidden] { display: none; }
.stage-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #9aa3b5; font-family: var(--mono); font-size: 13px; }
.progress { height: 2px; background: #22262e; }
.progress-bar { height: 100%; width: 0; background: var(--red); }
.stage-bar { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px 14px; color: #e7eaf0; }
.stage-caption { min-height: 3.9em; font-size: 14px; }
.stage-caption strong { display: block; font-size: 15px; margin-bottom: 2px; }
.stage-caption span { display: block; color: #c4cad5; }
.stage-caption a { display: inline-block; margin-top: 4px; font-size: 12px; color: #8f98a8; text-decoration: none; }
.stage-caption a:hover { color: #fff; text-decoration: underline; }
.stage-controls { display: flex; align-items: flex-start; gap: 6px; flex-shrink: 0; }
.counter { font: 12px/32px var(--mono); color: #8f98a8; margin-right: 6px; white-space: nowrap; }
.stage-controls button { width: 32px; height: 32px; border: 1px solid #2f3540; background: #171a20; color: #e7eaf0; border-radius: 3px; cursor: pointer; font-size: 16px; line-height: 1; }
.stage-controls button:hover { border-color: var(--red); }
@media (max-width: 560px) { .stage-bar { flex-direction: column-reverse; } }

/* ---------- recent rail ---------- */
.rail-h { font: 700 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; padding-bottom: 10px; border-bottom: 2px solid var(--rule-strong); }
.news { list-style: none; margin: 0; padding: 0; }
.news li { padding: 13px 0; border-bottom: 1px solid var(--rule); }
.news time, .nyc-files time { font: 600 11px/1 var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tag { display: inline-block; margin-left: 8px; font: 700 10px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }
.tag.nyc { color: var(--red); }
.news a { display: block; margin: 5px 0 4px; font-family: var(--serif); font-weight: 600; font-size: 16.5px; line-height: 1.25; text-decoration: none; }
.news a:hover { color: var(--red); }
.news p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
cite { font-style: normal; font-size: 12px; color: var(--muted); }
.news cite { display: block; margin-top: 3px; }
.rail-more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--red); text-decoration: none; }

/* ---------- stats ---------- */
.stats { background: var(--ink); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid div { padding: 22px 20px 22px 0; border-right: 1px solid #2c313a; margin-right: 20px; }
.stats-grid div:last-child { border-right: 0; }
.stats-grid b { display: block; font-family: var(--serif); font-size: 30px; line-height: 1.05; margin-bottom: 6px; }
.stats-grid span { font-size: 13px; color: #b9c0cc; }
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid div:nth-child(2) { border-right: 0; }
}

/* ---------- blocks ---------- */
.block { padding-top: 44px; padding-bottom: 44px; }
.block-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: end; padding-bottom: 14px; margin-bottom: 22px; border-bottom: 2px solid var(--rule-strong); }
.block-head h2 { font-family: var(--serif); font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -.01em; }
.block-head p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .block-head { grid-template-columns: 1fr; gap: 6px; } }

/* NYC grid */
.nyc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .nyc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .nyc-grid { grid-template-columns: 1fr; } }
.card { display: block; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.card .ph { aspect-ratio: 4 / 3; overflow: hidden; background: #000; border-radius: 4px; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover img { transform: scale(1.03); }
.card h3 { font-family: var(--serif); font-size: 17px; margin: 10px 0 4px; }
.card p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.card small { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); }

.nyc-files { margin-top: 32px; padding: 18px 20px; background: var(--paper-2); border-left: 3px solid var(--red); }
.nyc-files h3 { font: 700 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; }
.nyc-files ul { list-style: none; margin: 0; padding: 0; }
.nyc-files li { padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.nyc-files li:last-child { border-bottom: 0; }
.nyc-files a { font-weight: 600; text-decoration: none; margin: 0 6px; }
.nyc-files a:hover { color: var(--red); text-decoration: underline; }

/* world grid */
.world-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1000px) { .world-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { .world-grid { grid-template-columns: repeat(2, 1fr); } }
.world-grid .card .ph { aspect-ratio: 1 / 1; }
.world-grid .card h3 { font-family: var(--sans); font-size: 12.5px; font-weight: 600; margin: 7px 0 0; line-height: 1.3; }

/* ---------- costs ---------- */
.costs-band, .history-band { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cost-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .cost-cols { grid-template-columns: 1fr; } }
.cost-cols h3 { font: 700 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.cost-table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 14px; }
.cost-table th { text-align: left; font: 600 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.cost-table td { padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.cost-table td:last-child { text-align: right; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cost-table tr.punch td { color: var(--red); font-weight: 700; border-bottom: 0; }
@media (max-width: 520px) { .cost-table td:last-child { white-space: normal; } }
.sources { margin: 16px 0 0; font-size: 12px; color: var(--muted); }
.sources a { color: var(--ink-2); }

/* ---------- guide ---------- */
.guide { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
@media (max-width: 860px) { .guide { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .guide { grid-template-columns: 1fr; } }
.guide article { padding: 16px 18px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.guide h3 { font-family: var(--serif); font-size: 17px; margin-bottom: 4px; }
.guide p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ---------- history ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; } }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.timeline time { font: 600 12px/1.5 var(--mono); color: var(--red); }
.timeline p { margin: 0; font-size: 14px; color: var(--ink-2); }
.timeline b { color: var(--ink); }

/* ---------- submit / footer ---------- */
.submit { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 28px; border: 2px solid var(--rule-strong); }
.submit h2 { font-family: var(--serif); font-size: 26px; margin-bottom: 4px; }
.submit p { margin: 0; color: var(--ink-2); max-width: 720px; }
@media (max-width: 700px) { .submit { flex-direction: column; align-items: flex-start; } }
.btn { display: inline-block; flex-shrink: 0; background: var(--red); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 3px; }
.btn:hover { background: #b11f16; }
.footer { background: var(--ink); color: #c9cfd9; padding: 28px 0; font-size: 14px; }
.footer p { margin: 0 0 8px; }
.fine { font-size: 12px; color: #8f98a8; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .card img { transition: none; }
}

/* News thumbnails in the Recent Fails rail (added 2026-11-29).
   Images live in images/news/ at 400x300; photos are crops of gallery photos, credited in each img title. */
.recent .news li{position:relative;padding-left:106px;min-height:72px}
.recent .news .news-thumb{position:absolute;left:0;top:15px;width:92px;height:69px;object-fit:cover;border-radius:3px;background:#2a2e36;display:block}
@media (max-width:520px){.recent .news li{padding-left:96px}.recent .news .news-thumb{width:82px;height:62px}}