/* Unfolding. One dark theme by design: the brief is white type on black. */

:root {
  --bg: #050505;
  --ink: #f2f0ea;
  --ink-2: rgb(242 240 234 / .68);
  --ink-3: rgb(242 240 234 / .42);
  --ink-4: rgb(242 240 234 / .16);
  --ink-5: rgb(242 240 234 / .07);
  --accent: #e4473a;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);

  --pad: clamp(16px, 4vw, 56px);
  --when: clamp(112px, 12vw, 176px);
  --gut: 64px;
  --what-w: 34rem;
  --stage-w: min(440px, 31vw);
  --radius: 14px;            /* panels; buttons are full pill */
  color-scheme: dark;
}

@media (min-width: 1100px) {
  :root { --what-w: min(34rem, calc(100vw - var(--stage-w) - 2 * var(--pad) - var(--when) - var(--gut) - 96px)); }
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.sheet-open { overflow: hidden; }

/* light falloff + film grain, both fixed so nothing repaints on scroll */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(110% 70% at 25% -10%, rgb(255 255 255 / .045), transparent 62%);
}
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  .9 0 0 0 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

main { position: relative; z-index: 1; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; border-radius: 4px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------------------- word reveal */

.w {
  display: inline-block;
  opacity: 0;
  filter: blur(12px);
  transform: translate3d(0, .3em, 0);
  transition: opacity .35s ease, filter .35s ease, transform .35s ease;
}
.is-lit .w, .is-on .w {
  opacity: 1;
  filter: blur(0);
  transform: none;
  transition: opacity 1s var(--ease), filter 1.25s var(--ease), transform 1.25s var(--ease);
  transition-delay: calc(var(--d, 0ms) + var(--i) * var(--step, 50ms));
}

/* ---------------------------------------------------------------- top bar */

.bar {
  position: fixed; z-index: 85; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top, 0px)) var(--pad) 22px;
  background: linear-gradient(var(--bg) 35%, rgb(5 5 5 / 0));
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font: 500 15px/1 var(--sans); letter-spacing: -.01em; text-decoration: none;
}
.brand-mark { position: relative; width: 1px; height: 16px; background: var(--ink); }
.brand-mark::after {
  content: ""; position: absolute; left: -2.5px; bottom: -2px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink);
}

.bar-right { display: flex; gap: 10px; }
body.ov-open .play-toggle { display: none; }
.toggle {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 15px 9px 13px;
  font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  background: rgb(5 5 5 / .6); border: 1px solid var(--ink-4); border-radius: 999px; cursor: pointer;
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease), border-color .2s;
}
body.has-story .ov-toggle,
body.past-hero:not(.ov-open) .play-toggle,
body.is-playing .play-toggle { opacity: 1; transform: none; pointer-events: auto; }
.toggle:hover { border-color: var(--ink-3); }
.toggle:active { transform: scale(.97); }

/* overview glyph: a tiny timeline, a line with three stops */
.glyph-ov { position: relative; width: 9px; height: 11px; flex: none; }
.glyph-ov::before { content: ""; position: absolute; left: 1px; top: 0; bottom: 0; width: 1px; background: currentColor; }
.glyph-ov::after {
  content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 3px; border-radius: 50%; background: currentColor;
  box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor, 5px 0 0 -1px currentColor, 5px 4px 0 -1px currentColor, 5px 8px 0 -1px currentColor;
}

.glyph { position: relative; width: 9px; height: 10px; flex: none; }
.glyph::before, .glyph::after { content: ""; position: absolute; top: 0; bottom: 0; background: currentColor; }
.glyph::before { left: 0; width: 9px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
body.is-playing .toggle .glyph::before { width: 3px; clip-path: none; }
body.is-playing .toggle .glyph::after { right: 0; width: 3px; }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: flex-end;
  padding: 120px var(--pad) clamp(64px, 14vh, 150px);
}
.hero-in { padding-left: calc(var(--when) + var(--gut)); max-width: 100%; }
.eyebrow {
  margin: 0;
  font: 500 12px/20px var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0; filter: blur(8px); transition: opacity 1s var(--ease), filter 1s var(--ease);
}
.h1 {
  margin: 20px 0 0;
  max-width: 12ch;
  font: 300 clamp(3rem, 7.4vw, 7rem)/1.02 var(--serif);
  letter-spacing: -.028em;
  text-wrap: balance;
  --step: 90ms; --d: 150ms;
}
.dek {
  margin: 26px 0 0;
  max-width: 38ch;
  font: 300 clamp(1.05rem, 1.45vw, 1.24rem)/1.55 var(--sans);
  color: var(--ink-2);
  text-wrap: pretty;
  --step: 22ms; --d: 700ms;
}
.cta {
  margin-top: 40px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 24px 15px 20px;
  font: 500 14px/1 var(--sans); letter-spacing: -.005em;
  color: var(--bg); background: var(--ink);
  border: 0; border-radius: 999px; cursor: pointer;
  opacity: 0; filter: blur(8px); transform: translateY(10px);
  transition: opacity 1s var(--ease) 1.1s, filter 1s var(--ease) 1.1s, transform 1s var(--ease) 1.1s, background .2s;
}
.cta:hover { background: #fff; }
.cta:active { transform: scale(.97); transition-delay: 0s; }
/* the line starts in the hero: a hairline grows down toward the first event */
.hero::after {
  content: ""; position: absolute; bottom: 0; width: 1px; height: 24vh;
  left: calc(var(--pad) + var(--when) + var(--gut) / 2);
  transform: translateX(-.5px) scaleY(0); transform-origin: top;
  background: linear-gradient(rgb(242 240 234 / 0), var(--ink-3));
  transition: transform 2.4s var(--ease) 1.5s;
}
.hero.is-lit::after { transform: translateX(-.5px) scaleY(1); }
.is-lit .eyebrow { opacity: 1; filter: blur(0); }
.is-lit .cta { opacity: 1; filter: blur(0); transform: none; }

/* ---------------------------------------------------------------- timeline */

.timeline { position: relative; padding: 16vh 0 34vh; }
.events { list-style: none; margin: 0; padding: 0; }

.rail {
  position: absolute; top: 0; height: 0; width: 1px;
  left: calc(var(--pad) + var(--when) + var(--gut) / 2);
  transform: translateX(-.5px);
  pointer-events: none;
}
.rail-track {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--ink-4) 45%, transparent 0);
  background-size: 1px 7px;
  -webkit-mask-image: linear-gradient(transparent, #000 16vh);
  mask-image: linear-gradient(transparent, #000 16vh);
}
.rail-fill {
  position: absolute; inset: 0;
  background: linear-gradient(rgb(242 240 234 / 0), var(--ink) 16vh);
  clip-path: inset(0 0 100% 0);
}
.rail-tip {
  position: absolute; left: 50%; top: 0;
  width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 5px rgb(242 240 234 / .07), 0 0 26px 6px rgb(242 240 234 / .16);
  opacity: 0; transition: opacity .5s;
}
.rail-tip.is-on { opacity: 1; }

.event {
  --mt: 13px;
  position: relative;
  display: grid;
  grid-template-columns: var(--when) var(--gut) minmax(0, var(--what-w));
  padding: 0 var(--pad);
  cursor: pointer;
}
.event.has-tag { --mt: 0px; }

.node {
  position: absolute; z-index: 2;
  left: calc(var(--pad) + var(--when) + var(--gut) / 2);
  top: calc(var(--mt) + 10px);
  width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--ink-3);
  transition: background .6s var(--ease), box-shadow .6s var(--ease), transform .5s var(--ease);
}
.node::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 1px var(--ink);
  opacity: 0;
}
.event.is-lit .node { background: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.event.is-lit .node::after { animation: ring 1.6s var(--ease) both; }
.k-origin.is-lit .node, .k-now.is-lit .node { background: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.k-origin .node::after, .k-now .node::after { box-shadow: 0 0 0 1px var(--accent); }
.k-now.is-lit .node::after { animation: ring 2.4s var(--ease) 3; }
.event.is-active .node { transform: scale(1.6); }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(4.6); opacity: 0; } }

.when {
  grid-column: 1;
  display: flex; flex-direction: column; align-items: flex-end;
  padding-top: var(--mt);
  font: 500 12px/20px var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2);
  opacity: 0; filter: blur(8px);
  transition: opacity .4s, filter .4s, color .6s;
}
.when .day { color: var(--ink-3); }
.event.is-lit .when { opacity: 1; filter: blur(0); transition: opacity 1s var(--ease), filter 1s var(--ease), color .6s; }
@media (min-width: 721px) {
  .event.is-lit:not(.is-past) .when { opacity: 0 !important; filter: blur(6px); transition: opacity .5s, filter .5s; }
}

.what { grid-column: 3; padding-bottom: 6px; }
.tag {
  margin: 0 0 8px;
  font: 500 11px/20px var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  opacity: 0; filter: blur(6px); transition: opacity .4s, filter .4s;
}
.event.is-lit .tag { opacity: 1; filter: blur(0); transition: opacity 1s var(--ease), filter 1s var(--ease); }
.title {
  margin: 0;
  font: 400 clamp(1.55rem, 2.3vw, 2.25rem)/1.14 var(--serif);
  letter-spacing: -.014em;
  text-wrap: balance;
  transition: color .6s;
  --step: 55ms;
}
.summary {
  margin: 12px 0 0;
  max-width: 46ch;
  font: 300 clamp(.98rem, 1.08vw, 1.06rem)/1.62 var(--sans);
  color: var(--ink-2);
  text-wrap: pretty;
  transition: color .6s;
  --step: 14ms; --d: 300ms;
}
.more {
  margin-top: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0;
  font: 500 11px/20px var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); background: none; border: 0; cursor: pointer;
  opacity: 0; transition: opacity .4s, color .2s;
}
.more::after { content: ""; width: 14px; height: 1px; background: currentColor; transition: width .4s var(--ease); }
.event.is-lit .more { opacity: 1; transition-delay: .9s; }
@media (hover: hover) and (pointer: fine) and (min-width: 1100px) {
  .more { position: absolute; opacity: 0 !important; pointer-events: none; }
  .more:focus-visible { position: static; opacity: 1 !important; }
}

/* reading focus: what you have passed recedes, the point you are on stays bright */
.event.is-past .title { color: rgb(242 240 234 / .62); }
.event.is-past .summary { color: rgb(242 240 234 / .42); }
.event.is-past .when { color: var(--ink-3); }
.event:hover .title, .event.is-active .title { color: var(--ink); }
.event:hover .summary, .event.is-active .summary { color: var(--ink-2); }
.event:hover .more { color: var(--ink); }
.event:hover .more::after { width: 26px; }

.timeline .event > .when, .timeline .event > .what { transition: opacity .5s var(--ease), filter .4s, color .6s; }
.timeline.has-active .event.is-lit:not(.is-active) > .what,
.timeline.has-active .event.is-lit:not(.is-active) > .when { opacity: .3; }

.gap { position: relative; height: var(--h); }
.gap-label {
  position: absolute; top: 50%; left: var(--pad); width: var(--when);
  transform: translateY(-50%);
  text-align: right;
  font: 400 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0; filter: blur(6px);
  transition: opacity .4s, filter .4s;
}
.gap.is-lit .gap-label { opacity: 1; filter: blur(0); transition: opacity 1.2s var(--ease), filter 1.2s var(--ease); }

/* ---------------------------------------------------------------- stage: day clock + detail */

.stage {
  position: fixed; z-index: 20;
  top: calc(13vh + env(safe-area-inset-top, 0px)); bottom: 5vh; right: var(--pad);
  width: var(--stage-w);
  display: grid;
  pointer-events: none;
  opacity: 0; transition: opacity .8s var(--ease);
}
.stage::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(var(--ink-4) 80%, transparent);
  transform-origin: top; transform: scaleY(0); transition: transform 1.2s var(--ease);
}
body.in-story:not(.past-story) .stage { opacity: 1; }
body.in-story .stage::before { transform: scaleY(1); }
@media (max-width: 1099px) { .stage, .connector { display: none; } }

/* the day counter rides just under the tip of the line, in the date column, and keeps
   counting through the quiet days. Everything below the tip is still unlit, so it sits in clear space. */
.day-clock {
  position: fixed; z-index: 10;
  left: var(--pad); width: var(--when);
  top: calc(58vh + 30px);
  text-align: right;
  pointer-events: none;
  opacity: 0; filter: blur(10px);
  transition: opacity .9s var(--ease), filter .9s var(--ease);
}
body.in-story:not(.past-story):not(.ov-open) .day-clock { opacity: 1; filter: blur(0); }
.clock-k {
  display: block;
  font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3);
}
.clock-n {
  position: relative; display: block;
  height: 1em; margin-top: 8px;
  font: 200 clamp(4.2rem, 6.4vw, 7rem)/1 var(--serif);
  letter-spacing: -.045em;
  font-variant-numeric: lining-nums;
}
.num {
  display: inline-block;
  transition: opacity .8s var(--ease), filter .8s var(--ease), transform 1s var(--ease);
}
.num.leave-up, .num.leave-down { position: absolute; right: 0; top: 0; }
.num.enter-up, .num.leave-down { opacity: 0; filter: blur(14px); transform: translateY(.24em); }
.num.enter-down, .num.leave-up { opacity: 0; filter: blur(14px); transform: translateY(-.24em); }
.clock-d {
  display: block; margin-top: 16px;
  font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2);
}
@media (max-width: 720px) { .day-clock { display: none; } }

.slot {
  grid-area: 1 / 1; align-self: start;
  max-height: 100%;
  overflow-y: auto; scrollbar-width: none;
  padding: 4px 0 4px 32px;
  pointer-events: none;
}
.slot::-webkit-scrollbar { display: none; }
.slot.is-on { pointer-events: auto; }
.slot.is-clipped {
  -webkit-mask-image: linear-gradient(#000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 56px), transparent);
  padding-bottom: 40px;
}

/* staggered blur-in for every block of a detail view */
.x {
  opacity: 0; filter: blur(10px); transform: translateY(10px);
  transition: opacity .25s ease, filter .25s ease, transform .25s ease;
}
.is-on .x {
  opacity: 1; filter: blur(0); transform: none;
  transition: opacity .9s var(--ease), filter 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--i) * 75ms);
}

.detail { margin: 0; }
.d-when {
  margin: 0;
  font: 500 12px/20px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2);
}
.d-day { margin-left: 14px; color: var(--ink-3); }
.d-tag {
  margin: 14px 0 0;
  font: 500 11px/20px var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.d-title {
  margin: 14px 0 0;
  font: 400 clamp(1.7rem, 2.3vw, 2.3rem)/1.12 var(--serif);
  letter-spacing: -.016em;
  text-wrap: balance;
}
.d-detail {
  margin: 18px 0 0;
  font: 300 1rem/1.7 var(--sans);
  color: rgb(242 240 234 / .8);
  text-wrap: pretty;
}
.d-facts {
  margin: 28px 0 0; padding-top: 22px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 20px 24px;
  border-top: 1px solid var(--ink-5);
}
.d-facts div { margin: 0; }
.d-facts dt {
  font: 300 clamp(2rem, 2.6vw, 2.6rem)/1 var(--serif);
  letter-spacing: -.02em;
  font-variant-numeric: lining-nums tabular-nums;
}
.d-facts dd {
  margin: 10px 0 0;
  font: 500 11px/1.45 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3);
}
.d-quote { margin: 30px 0 0; padding: 0; }
.d-quote p {
  margin: 0;
  font: italic 300 1.3rem/1.45 var(--serif);
  color: var(--ink);
  text-wrap: pretty;
}
.d-quote cite {
  display: block; margin-top: 12px;
  font: 500 11px/1.4 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3);
}
.d-sources { margin-top: 32px; }
.d-label {
  margin: 0 0 12px;
  font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
}
.d-sources ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.d-sources a { display: grid; gap: 3px; text-decoration: none; }
.d-outlet { font: 500 13px/1.3 var(--sans); color: var(--ink); }
.d-headline {
  font: 300 13px/1.45 var(--sans); color: var(--ink-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .2s;
}
.d-sources a:hover .d-headline { color: var(--ink-2); }
.d-sources a:hover .d-outlet { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* hairline from the event to the detail view */
.connector {
  position: fixed; z-index: 15; left: 0; top: 0;
  height: 1px; width: 0;
  pointer-events: none;
}
.connector::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink-3), var(--ink-4));
  transform-origin: left; transform: scaleX(0);
  transition: transform .2s ease;
}
.connector::after {
  content: ""; position: absolute; right: -3px; top: -2.5px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2);
  opacity: 0; transition: opacity .2s;
}
.connector.is-on::before { transform: scaleX(1); transition: transform .8s var(--ease); }
.connector.is-on::after { opacity: 1; transition: opacity .4s .55s; }

/* ---------------------------------------------------------------- small screens: clock pill + sheet */

.mini-clock {
  position: fixed; z-index: 30;
  left: var(--pad); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: none; gap: 12px; align-items: baseline;
  padding: 10px 14px;
  font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2);
  background: rgb(5 5 5 / .78); border: 1px solid var(--ink-5); border-radius: 999px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.mini-clock b { color: var(--ink); font-weight: 500; }
@media (max-width: 720px) { body.in-story:not(.ov-open):not(.past-story) .mini-clock { display: inline-flex; } }

.sheet { position: fixed; inset: 0; z-index: 95; pointer-events: none; }
.sheet-backdrop {
  position: absolute; inset: 0;
  background: rgb(0 0 0 / .6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .45s var(--ease);
}
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 84dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: 22px var(--pad) calc(36px + env(safe-area-inset-bottom, 0px));
  background: #0b0b0b;
  border-top: 1px solid var(--ink-4);
  border-radius: var(--radius) var(--radius) 0 0;
  transform: translateY(104%);
  transition: transform .55s var(--ease);
}
.sheet.is-open { pointer-events: auto; }
.sheet.is-open .sheet-backdrop { opacity: 1; }
.sheet.is-open .sheet-panel { transform: none; }
.sheet-close {
  position: relative; z-index: 2;   /* above the blur layers of the detail, or taps miss it */
  float: right; margin: 0 0 12px 12px;
  padding: 8px 14px;
  font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  background: none; border: 1px solid var(--ink-4); border-radius: 999px; cursor: pointer;
}
.sheet-body { max-width: 40rem; }

/* ---------------------------------------------------------------- overview: zoomed out, the whole story on one screen */

main { transition: filter .8s var(--ease), transform .9s var(--ease), opacity .7s var(--ease); transform-origin: 50% 40vh; }
body.ov-open main { filter: blur(10px); transform: scale(.965); opacity: .3; }
body.ov-open .stage, body.ov-open .connector, body.ov-open .mini-clock,
body.past-story .connector { opacity: 0 !important; transition: opacity .3s; }

.overview {
  position: fixed; inset: 0; z-index: 80;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  background: rgb(5 5 5 / .8);
  opacity: 0; pointer-events: none;
  transition: opacity .55s var(--ease);
}
.overview::-webkit-scrollbar { display: none; }
.overview.is-open { opacity: 1; pointer-events: auto; }
.ov-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) min(520px, 34vw); gap: clamp(40px, 5vw, 96px);
  max-width: 1680px; margin: 0 auto;
  padding: calc(96px + env(safe-area-inset-top, 0px)) var(--pad) 12vh;
}
.ov-head { text-align: center; }
.ov-head p { margin: 0; font: 500 12px/20px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ov-head h2 { margin: 8px 0 0; font: 300 clamp(2rem, 3.4vw, 3.2rem)/1.05 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.overview.is-open .ov-head .x {
  opacity: 1; filter: blur(0); transform: none;
  transition: opacity .9s var(--ease), filter 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--i) * 80ms);
}

.ov-map { position: relative; margin-top: 8vh; height: var(--map-h, 600px); }
.ov-spine {
  position: absolute; left: 50%; top: 0; bottom: 140px; width: 1px;
  background: linear-gradient(var(--ink-3), var(--ink-4) 85%, transparent);
  transform-origin: top; transform: scaleY(0);
  transition: transform .3s ease;
}
.overview.is-open .ov-spine { transform: scaleY(1); transition: transform 1.6s var(--ease) .1s; }

/* events fold out from the spine once, alternating sides */
.ov-row {
  position: absolute; top: var(--y);
  width: 50%;
  cursor: pointer; outline: none;
  opacity: 0; filter: blur(8px);
  transition: opacity .25s, filter .25s, transform .25s;
}
.ov-row.l { right: 50%; padding-right: 34px; text-align: right; transform: translateX(14px); }
.ov-row.r { left: 50%; padding-left: 34px; transform: translateX(-14px); }
.overview.is-open .ov-row {
  opacity: 1; filter: blur(0); transform: none;
  transition: opacity .8s var(--ease), filter .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(.2s + var(--i) * 45ms);
}
.overview.is-settled .ov-row { transition-delay: 0s; }
.ov-node {
  position: absolute; top: 7px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 4px var(--bg);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.ov-row.l .ov-node { right: -4.5px; }
.ov-row.r .ov-node { left: -4.5px; }
.ov-row::before { content: ""; position: absolute; top: 11px; width: 18px; height: 1px; background: var(--ink-4); transition: background .3s; }
.ov-row.l::before { right: 9px; }
.ov-row.r::before { left: 9px; }
.ov-row.k-origin .ov-node, .ov-row.k-now .ov-node { background: var(--accent); }
.ov-row.is-ahead .ov-node { background: var(--bg); box-shadow: 0 0 0 4px var(--bg), inset 0 0 0 1px var(--ink-3); }
.ov-row.is-here .ov-node { box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--ink); }

.ov-date { display: block; font: 500 12px/22px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ov-date span { margin-left: 12px; opacity: .7; }
.ov-row.l .ov-date span { margin: 0 0 0 12px; }
.ov-t {
  margin: 4px 0 0;
  font: 400 clamp(1.25rem, 1.55vw, 1.5rem)/1.22 var(--serif); letter-spacing: -.008em;
  color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-wrap: balance;
  transition: color .2s;
}
.ov-sum { display: none; }
.ov-row:hover .ov-t, .ov-row:focus-visible .ov-t, .ov-row.is-shown .ov-t { color: var(--ink); }
.ov-row:hover .ov-node, .ov-row.is-shown .ov-node { transform: scale(1.45); }
.ov-row.is-shown::before { background: var(--ink-3); }

/* the full account, large, off to the right */
.ov-panel {
  position: sticky; top: calc(96px + env(safe-area-inset-top, 0px));
  align-self: start;
  height: calc(100dvh - 140px);
  display: grid;
  border-left: 1px solid var(--ink-5);
}
.ov-slot {
  grid-area: 1 / 1; align-self: center;
  max-height: 100%; overflow-y: auto; scrollbar-width: none;
  padding: 0 0 0 40px;
  pointer-events: none;
}
.ov-slot::-webkit-scrollbar { display: none; }
.ov-slot.is-on { pointer-events: auto; }
.ov-slot.is-clipped {
  align-self: start;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 56px), transparent);
  padding-bottom: 40px;
}
.ov-panel .d-title { font-size: clamp(2rem, 2.8vw, 2.9rem); }
.ov-panel .d-detail { font-size: 1.14rem; line-height: 1.7; }
.ov-hint {
  margin: 34px 0 0;
  font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
  opacity: 0; transition: opacity .3s;
}
.ov-slot.is-on .ov-hint { opacity: 1; transition: opacity .8s var(--ease) .6s; }

@media (max-width: 1099px) {
  .ov-layout { grid-template-columns: minmax(0, 1fr); }
  .ov-panel { display: none; }
  .ov-head { text-align: left; }
  .ov-map { height: auto; padding-bottom: 60px; }
  .ov-spine { left: 6px; bottom: 0; }
  .ov-row, .ov-row.r { position: relative; top: auto; left: 0; width: 100%; padding-left: 36px; margin-top: var(--gap); }
  .ov-spine + .ov-row { margin-top: 0; }
  .ov-row.r .ov-node { left: 1.5px; }
  .ov-row.r::before { left: 14px; width: 14px; }
  .ov-sum { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 8px 0 0; font: 300 .98rem/1.6 var(--sans); color: var(--ink-3); }
}

/* ---------------------------------------------------------------- footer */

.foot {
  position: relative; z-index: 1;
  padding: 6vh var(--pad) calc(80px + env(safe-area-inset-bottom, 0px));
}
.foot-in { padding-left: calc(var(--when) + var(--gut)); max-width: calc(var(--when) + var(--gut) + 40rem); }
.foot-h { margin: 0; font: 400 1.6rem/1.2 var(--serif); letter-spacing: -.01em; }
.outlets { margin: 16px 0 0; font: 300 .98rem/1.85 var(--sans); color: var(--ink-2); }
.fine { margin: 26px 0 0; font: 300 .9rem/1.65 var(--sans); color: var(--ink-3); max-width: 52ch; }
.keys {
  margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px;
  font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.keys span { display: inline-flex; align-items: center; gap: 8px; }
kbd {
  display: inline-block; min-width: 22px; padding: 5px 7px; text-align: center;
  font: 500 11px/1 var(--mono); color: var(--ink-2);
  border: 1px solid var(--ink-4); border-radius: 6px;
}
.back { display: inline-block; margin-top: 30px; font: 500 14px/1 var(--sans); text-underline-offset: 4px; }

/* ---------------------------------------------------------------- index of stories */

.index { min-height: 100dvh; padding: 22vh var(--pad) 14vh; }
.index-in { padding-left: calc(var(--when) + var(--gut)); }
.index-list { list-style: none; margin: 8vh 0 0; padding: 0; max-width: 56rem; }
.index-list li {
  opacity: 0; filter: blur(10px); transform: translateY(14px);
  transition: opacity 1s var(--ease), filter 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(900ms + var(--i) * 120ms);
}
.is-lit .index-list li { opacity: 1; filter: blur(0); transform: none; }
.story-link { display: grid; gap: 10px; padding: 30px 0; text-decoration: none; border-top: 1px solid var(--ink-5); transition: opacity .4s; }
.index-list:hover .story-link:not(:hover) { opacity: .35; }
.s-when { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.s-title { font: 300 clamp(2rem, 4.4vw, 3.6rem)/1.04 var(--serif); letter-spacing: -.02em; }
.s-dek { font: 300 1rem/1.6 var(--sans); color: var(--ink-2); max-width: 52ch; }
.empty code { font: 400 .95rem/1.6 var(--mono); color: var(--ink); }

.noscript { padding: 40vh var(--pad); text-align: center; color: var(--ink-2); }

/* ---------------------------------------------------------------- narrow layout */

@media (max-width: 720px) {
  :root { --when: 0px; --gut: 34px; --what-w: 1fr; }
  .event { grid-template-columns: var(--gut) minmax(0, 1fr); --mt: 0px; }
  .when {
    grid-column: 2; grid-row: 1;
    flex-direction: row; align-items: baseline; gap: 12px;
    margin-bottom: 8px;
  }
  .what { grid-column: 2; grid-row: 2; }
  .node { top: 10px; }
  .gap-label { left: calc(var(--pad) + var(--gut)); width: auto; text-align: left; }
  .hero-in, .foot-in, .index-in { padding-left: var(--gut); }
  .h1 { max-width: 11ch; }
}

/* ---------------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  .w, .x, .when, .tag, .more, .gap-label, .eyebrow, .cta, .num, .index-list li, .ov-row {
    opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important;
  }
  .node, .node::after, .connector::before, .stage::before { animation: none !important; transition: none !important; }
}
