/* ==========================================================================
   35 Years of HIV in Kenya
   The line, and what Kenya did about it

   Desktop: charts left, card right, one pinned frame.
   Below 900px: charts on top, card underneath.
   Without JavaScript the milestones read as a plain list.

   Copyright Willow Health Media 2026
   ========================================================================== */

:root {
  --bg: #06add0;           /* Willow blue ground, 13 Nov 2026; dark text on it */
  --panel: rgba(255, 255, 255, .24);
  --ink: #0c0e11;          /* 7.2:1 on the ground */
  --ink-2: #0f2c35;        /* 5.3:1 */
  --ink-3: #163a44;        /* 4.6:1, small labels */
  --rule: rgba(12, 14, 17, .24);
  --red: #6e0b0e;          /* the prevalence line, deep red: 4.6:1 so red labels read */
  --teal: #063a2a;         /* the evidence series, deep teal: 4.8:1 */
  --teal-2: #0d5c47;
  --gold: #0b2545;         /* milestones, now navy: 5.8:1 */
  --rule-2: rgba(12, 14, 17, .14);   /* section dividers */
  --gutter: clamp(16px, 4vw, 48px);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink-2); text-underline-offset: 2px; }
a:hover { color: var(--ink); }

/* ---- hero ---------------------------------------------------------------- */

/* the horizon is 1440 by 340, so 23.6vw tall, capped at 28% of the screen
   height so the whole curve shows on the first screen; the copy clears it */
.tl-hero {
  --hz: min(23.6vw, 28vh);
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  border-bottom: 1px solid var(--rule-2);
  box-sizing: border-box;
  padding-bottom: calc(var(--hz) + 1.5rem);
}

.tl-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 7rem) var(--gutter) 0;
  display: flex;
  flex-wrap: wrap;
  gap: 3.5rem;
  align-items: flex-start;
}

.tl-hero__main { flex: 999 1 36rem; min-width: 0; }

.tl-kicker {
  font: 600 12px/1.3 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1.75rem;
}

/* two lines: the question's second half in italic ribbon red */
.tl-hero__h {
  font: 400 clamp(3.2rem, min(8.4vw, 12vh), 8.25rem)/.96 var(--serif);
  letter-spacing: -.025em;
  margin: 0 0 1.5rem;
}

.tl-hero__h span, .tl-hero__h em { display: block; }
.tl-hero__h em { color: var(--red); }
/* the rest of the title, smaller, so the question still leads */
.tl-hero__h .tl-hero__sub {
  margin-top: .45em;
  font-size: clamp(1.6rem, min(3.1vw, 4.6vh), 3rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink);
}

.tl-hero__dek {
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 1.75rem;
  max-width: 44rem;
}

.tl-hero__cue {
  display: flex;
  align-items: center;
  gap: .9rem;
  font: 500 11px/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}

.tl-hero__cue-line {
  display: block;
  width: 1px;
  height: 36px;
  background: var(--rule);
  overflow: hidden;
}

.tl-hero__cue-line span {
  display: block;
  height: 100%;
  background: var(--red);
  transform-origin: top;
  animation: tl-cue 2.2s ease-in-out infinite;
}

@keyframes tl-cue {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

.tl-hero__stats {
  flex: 1 1 16rem;
  max-width: 20rem;
  margin: .5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.tl-hero__stats div { border-top: 1px solid var(--rule); padding-top: .75rem; }
.tl-hero__stats dt { font: 500 12px/1.4 var(--sans); color: var(--ink-3); }
.tl-hero__stats dd {
  margin: .25rem 0 0;
  font: 400 2.5rem/1.1 var(--serif);
  font-variant-numeric: tabular-nums;
}
.tl-hero__stats dd.is-red { color: var(--red); }

.tl-hero__horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--hz);
}

.tl-hero__horizon svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.tl-hero__line {
  fill: none;
  stroke: var(--red);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.tl-hero__area { fill: var(--red); opacity: 0; }

.tl-hero__tag {
  position: absolute;
  margin: -2.1rem 0 0 -2.5rem;
  font: 600 12px/1 var(--sans);
  letter-spacing: .1em;
  white-space: nowrap;
  color: var(--red);
  opacity: 0;
}

.tl-hero__tag--end { left: auto; right: var(--gutter); margin: -1.9rem 0 0; color: var(--ink-2); }

.tl-hero.is-drawn .tl-hero__line {
  transition: stroke-dashoffset 3.4s cubic-bezier(.22, 1, .36, 1) .2s;
  stroke-dashoffset: 0;
}

.tl-hero.is-drawn .tl-hero__area { transition: opacity 1.2s ease 2.2s; opacity: .07; }
.tl-hero.is-drawn .tl-hero__tag { transition: opacity 1s ease 2.6s; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .tl-hero__cue-line span { animation: none; }
  .tl-hero.is-drawn .tl-hero__line,
  .tl-hero.is-drawn .tl-hero__area,
  .tl-hero.is-drawn .tl-hero__tag { transition: none; }
}

/* ---- prologue: the 1985 headlines -------------------------------------- */

.pr {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10rem var(--gutter) 9rem;
  box-sizing: border-box;
  /* text on the left, the 1985 front page pinned up on the right */
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(280px, 30vw, 440px);
  column-gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
}
.pr > * { grid-column: 1; }

.pr__kicker {
  font: 600 12px/1.3 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.25rem;
}

.pr__h { font: 400 clamp(2.25rem, 4.4vw, 3.75rem)/1.08 var(--serif); margin: 0 0 4.5rem; }

.pr__quotes { margin: 0 0 5rem; }

.pr__q {
  margin: 0;
  font: italic 400 clamp(2.4rem, 5.4vw, 4.9rem)/1 var(--serif);
  letter-spacing: -.02em;
  text-wrap: balance;
}

.pr__q--2 { font-size: clamp(1.8rem, 3.6vw, 3.25rem); color: var(--ink-3); padding-left: clamp(0px, 7vw, 7rem); }

.pr__cite {
  margin: .5rem 0 3rem;
  font: 500 12px/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.pr__cite--2 { margin-bottom: 0; padding-left: clamp(0px, 7vw, 7rem); }

.pr__body { display: flex; flex-wrap: wrap; gap: 2.5rem; max-width: 62rem; }
.pr__body p { flex: 1 1 18rem; margin: 0; font-size: 1.25rem; color: var(--ink-2); }
.pr__src { margin: 2rem 0 0; font: 13px/1.5 var(--sans); color: var(--ink-3); }

/* the front page: full strength, part of the story, never faded */
.pr__page {
  grid-column: 2;
  grid-row: 1 / span 6;
  margin: 1.5rem 0 0;
  transform: rotate(2deg);
  transform-origin: 50% 0;
}
.pr__page img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 36px rgba(4, 50, 62, .45));
}
.pr__page figcaption {
  margin: 1rem 0 0;
  font: 12px/1.45 var(--sans);
  color: var(--ink-3);
  transform: rotate(-2deg);
}

@media (max-width: 899px) {
  .pr { display: block; padding-top: 6rem; }
  .pr__h { margin-bottom: 2.25rem; }
  .pr__page { width: calc(100% - 1.5rem); max-width: 420px; margin: 0 auto 3.5rem; transform: rotate(1.5deg); }
  .pr__page figcaption { transform: rotate(-1.5deg); }
}

/* ---- scene --------------------------------------------------------------- */

.tl { position: relative; }

.wh-js .tl { height: 900vh; }          /* timeline.js sets the exact height */

.wh-js .tl__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1.25rem 2.5rem;
  padding: 3vh 3vw 4vh;
  overflow: hidden;
  isolation: isolate;
}

/* red glow behind the stage, its strength set by timeline.js from
   prevalence: full at the 1996 peak, under a third by 2024 */
.wh-js .tl__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(60% 55% at 30% 45%, rgba(110, 11, 14, .16), rgba(110, 11, 14, 0) 72%);
  opacity: var(--glow, .5);
  transition: opacity .4s ease;
}

/* the current year, huge and faint, behind the charts */
.tl__ghost {
  position: absolute;
  right: 1vw;
  top: -2vh;
  z-index: -1;
  margin: 0;
  font: 400 clamp(10rem, 19vw, 17rem)/1 var(--serif);
  letter-spacing: -.05em;
  color: rgba(12, 14, 17, .07);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.tl__charts {
  display: grid;
  grid-template-rows: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.5rem;
  min-height: 0;
}

/* numbers above the prevalence chart, moving with the line head */
.tl__readout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .5rem 2.25rem;
  margin-bottom: 1rem;
}

.tl__year {
  margin: 0;
  font: 400 clamp(3rem, 5.4vw, 4.75rem)/.9 var(--serif);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.tl__rl {
  margin: 0;
  font: 500 11px/1.3 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.tl__rv {
  margin: .15rem 0 0;
  font: 400 1.85rem/1.1 var(--serif);
  font-variant-numeric: tabular-nums;
}

.tl__rv--red { color: var(--red); }

/* the year rail: one button per milestone, across the foot of the stage */
.tl__rail {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tl__rail button {
  flex: 0 0 auto;
  min-width: 58px;
  min-height: 44px;
  padding: 0 .65rem;
  border: 1px solid rgba(12, 14, 17, .38);
  border-radius: 3px;
  background: var(--bg);
  color: var(--ink);
  font: 600 13px/1 var(--sans);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.tl__rail button:hover { border-color: var(--gold); color: var(--ink); }
.tl__rail button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.tl__rail button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.tl__main, .tl__ev {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* archive image behind the prevalence chart, one milestone only */
.tl__main > :not(.tl__bg) { position: relative; z-index: 1; }

.tl__bg {
  position: absolute;
  inset: -2vh -1vw 0 -1vw;
  margin: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}

.tl__bg.is-on { opacity: 1; }

.tl__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(1) contrast(1.05);
  opacity: .2;
  /* fade into the page so the chart stays the subject */
  -webkit-mask-image: radial-gradient(ellipse at 40% 35%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse at 40% 35%, #000 30%, transparent 78%);
}

.tl__bg img:not([src]), .tl__bg img[src=""] { display: none; }

/* credit for a licensed archive image, once one is cleared */
.tl__bg-credit {
  position: absolute;
  left: calc(4% + 3rem);
  bottom: 13%;
  font-style: italic;
  font: 11px/1.3 var(--sans);
  color: var(--ink-3);
}

/* ?draft only: shows where the licensed scan will sit */
.tl__bg.is-placeholder {
  border: 1px dashed rgba(12, 14, 17, .35);
  background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(12, 14, 17, .14) calc(25% - 1px) 25%);
}

.tl__bg.is-placeholder .tl__bg-credit { color: var(--gold); left: 1vw; right: auto; top: .5rem; bottom: auto; }

.tl__ev {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}

.tl__label {
  font: 600 12px/1.3 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 .5rem;
}

.tl__label--ev { color: var(--teal); min-height: 1.3em; }

.tl__ev-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .25rem 1.25rem;
}

.tl__ev-head .tl__label { margin-bottom: .5rem; }

.tl__ev-sum {
  margin: 0 0 .5rem;
  font: 400 14px/1.3 var(--sans);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.tl__svg {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: block;
  overflow: visible;
}

/* svg text and marks */
.tl__svg text { font-family: var(--sans); fill: var(--ink-3); font-size: 11px; }
.tl__svg .ax line, .tl__svg .grid { stroke: var(--rule); stroke-width: 1; }
.tl__svg .line-prev { fill: none; stroke: var(--red); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.tl__svg .line-ghost { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 4; opacity: .5; }
.tl__svg .area-ev { fill: var(--teal); opacity: .14; }
.tl__svg .line-ev { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linejoin: round; }
.tl__svg .line-ev2 { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 5 4; }
.tl__svg .head { fill: var(--red); }
.tl__svg .head-ring { fill: none; stroke: var(--red); stroke-width: 1.5; opacity: .45; }
.tl__svg .ms { fill: var(--bg); stroke: var(--ink-3); stroke-width: 1.5; }
.tl__svg .ms.is-past { stroke: var(--gold); }
.tl__svg .ms.is-on { fill: var(--gold); stroke: var(--gold); }
.tl__svg .ms-rule { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 3; opacity: .7; }
.tl__svg .ms-lab { fill: var(--gold); font-weight: 600; }
.tl__svg .win { fill: var(--teal); opacity: .07; }
.tl__svg .pt { fill: var(--teal); stroke: var(--bg); stroke-width: 2; }
.tl__svg .pt-lab { fill: var(--ink); font-size: 12px; font-weight: 600; }
.tl__svg .pt-lab--2 { fill: var(--gold); }
.tl__svg .ev-key { font-size: 11px; }

.tl__ev svg g.ev-layer { transition: opacity .35s ease; }

/* ---- cards --------------------------------------------------------------- */

.tl__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wh-js .tl__list {
  position: relative;
  align-self: center;
  min-height: 0;
  height: 100%;
}

.tl-item {
  max-width: 30rem;
  font-size: 17px;
}

.wh-js .tl-item {
  position: absolute;
  inset: 50% 0 auto 0;
  box-sizing: border-box;
  padding: 1.6rem 1.6rem 1.35rem;
  background: var(--panel);
  border: 1px solid rgba(12, 14, 17, .22);
  border-radius: 6px;
  transform: translateY(-46%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, transform .4s ease, visibility 0s linear .4s;
}

.wh-js .tl-item.is-on {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
  transition: opacity .4s ease, transform .4s ease, visibility 0s;
}

/* no JavaScript: the list is the story */
.wh-no-js .tl__charts, .wh-no-js .tl__grade { display: none; }
.wh-no-js .tl__stage { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }
.wh-no-js .tl-item { padding: 2rem 0; border-top: 1px solid var(--rule); }

.tl-item__when {
  font: 600 12px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .75rem;
}

.tl-item__h {
  font: 400 1.75rem/1.2 var(--serif);
  margin: 0 0 1rem;
  text-wrap: balance;
}

.tl-item p { margin: 0 0 .9rem; }

.tl-item__note {
  color: var(--ink-2);
  font-style: italic;
  border-left: 2px solid var(--rule);
  padding-left: .9rem;
}

.tl-item__src {
  font: 12px/1.5 var(--sans);
  color: var(--ink-3);
  margin-top: 1.25rem !important;
}

.tl-item__src a { color: var(--ink-3); }

/* the evidence grade chip, injected into each card */
.tl-chip {
  display: inline-block;
  font: 600 11px/1 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4rem .6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  margin-bottom: .9rem;
  color: var(--bg);
}

/* filled pills, dark text: each clears 4.5:1 on its fill */
.tl-chip--trial  { background: var(--teal); }
.tl-chip--timing { background: var(--gold); }
.tl-chip--none   { background: transparent; border-color: var(--ink-3); color: var(--ink); }
.tl-chip--data   { background: var(--red); }

/* progress ticks, bottom of the stage */
.tl__grade {
  position: absolute;
  left: 3vw;
  right: 3vw;
  bottom: 1.5vh;
  height: 2px;
  background: var(--rule);
}

.tl__grade span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
}

/* no JavaScript: no rail or ghost exist, the readout sits in the hidden charts */

/* ---- close: strides against standstill ----------------------------------- */

.ep {
  max-width: 1440px;
  margin: 0 auto;
  padding: 9rem var(--gutter);
  box-sizing: border-box;
  border-top: 1px solid var(--rule-2);
}

.ep__kicker {
  font: 600 12px/1.3 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.25rem;
}

.ep__h {
  font: 400 clamp(2.5rem, 5.2vw, 4.75rem)/1.02 var(--serif);
  letter-spacing: -.02em;
  margin: 0 0 4rem;
}

.ep__h em { color: var(--red); }

.ep__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 3.5rem 4.5rem;
}

.ep__col h3 {
  margin: 0 0 .5rem;
  padding-bottom: .9rem;
  font: 600 13px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  border-bottom: 2px solid currentColor;
}

.ep__col--strides h3 { color: var(--teal); }
.ep__col--still h3 { color: var(--red); }

.ep__col dl { margin: 0; }

.ep__col dl div {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule-2);
}

.ep__col dl div:last-child { border-bottom: 0; }

.ep__col dt {
  font: 400 3.25rem/1 var(--serif);
  font-variant-numeric: tabular-nums;
}

.ep__col dd { margin: 0; font-size: 17px; color: var(--ink-2); }

.ep__end {
  margin: 4.5rem 0 0;
  max-width: 52rem;
  font: italic 400 clamp(1.35rem, 2.2vw, 1.9rem)/1.35 var(--serif);
}

/* ---- notes --------------------------------------------------------------- */

.tl-notes {
  max-width: 46rem;
  margin: 0 auto;
  padding: 6rem 1.25rem 5rem;
  color: var(--ink-2);
}

.tl-notes h2 {
  font: 400 1.75rem/1.2 var(--serif);
  color: var(--ink);
  margin: 0 0 1.5rem;
}

.tl-key { margin: 0 0 2rem; }
.tl-key div { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--rule); }
.tl-key dt { margin: 0; }
.tl-key dd { margin: 0; font-size: 16px; }
.tl-key .tl-chip { margin: 0; }

.tl-notes__src { font: 13px/1.5 var(--sans); color: var(--ink-3); }
.tl-copy { font: 12px/1 var(--sans); color: var(--ink-3); margin-top: 3rem; }

/* ---- narrow screens ------------------------------------------------------ */

@media (max-width: 899px) {
  body { font-size: 17px; }

  .wh-js .tl__stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1.1fr) minmax(0, 1fr) auto;
    gap: .75rem;
    padding: 2vh 16px 3vh;
  }

  /* the readout names the measure, so the chart's own label gives its room back */
  .tl__ghost, .tl__readout-deaths, .tl__main > .tl__label { display: none; }
  .tl__readout { flex-wrap: nowrap; gap: 1.1rem; margin-bottom: .4rem; }
  .tl__year { font-size: 2.4rem; }
  .tl__rv { font-size: 1.35rem; }
  .tl__rl { font-size: 10px; }
  .tl__ev-sum { font-size: 12px; }
  .tl__rail { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .wh-js .tl-item { padding: 1rem 1rem .9rem; }

  .tl-hero__stats { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
  .tl-hero__stats dd { font-size: 1.9rem; }
  /* keep the whole curve on the first phone screen */
  .tl-hero__inner { gap: 2rem; }
  .tl-hero__dek { font-size: 1.12rem; margin-bottom: 1.25rem; }
  .ep__col dl div { grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; }
  .ep__col dt { font-size: 2.4rem; }

  .tl__charts { gap: .75rem; }
  .tl__ev { padding-top: .6rem; }
  .tl-item { font-size: 15px; max-width: none; }
  .tl-item__h { font-size: 1.3rem; margin-bottom: .6rem; }
  .tl-item p { margin-bottom: .6rem; }
  .tl-item__note { display: none; }
  .wh-js .tl-item { inset: 0 0 auto 0; transform: translateY(8px); line-height: 1.5; padding: .85rem .95rem .8rem; }
  /* the grade chip shares the date line, saving a row */
  .wh-js .tl-item .tl-chip { float: right; margin: -.2rem 0 0 .6rem; }
  .wh-js .tl-item__when { margin-bottom: .6rem; line-height: 1.2; }
  .wh-js .tl-item__src { margin-top: .6rem !important; }
  /* very short phones: the lower chart keeps its title and summary line, drops the plot */
  .wh-js .tl__stage.is-tight .tl__svg--ev { display: none; }
  .wh-js .tl__stage.is-tight .tl__ev { flex: 0 0 auto; }
  .wh-js .tl-item.is-on { transform: none; }
  .tl-key div { grid-template-columns: 1fr; gap: .4rem; }

  .tl__bg-credit { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wh-js .tl-item, .wh-js .tl-item.is-on, .tl__ev svg g.ev-layer { transition: none; transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) and (max-width: 899px) {
  .wh-js .tl-item, .wh-js .tl-item.is-on { transform: none; }
}

/* ---- one timeline: intro, era headings, entries between turning points --- */

.tl-intro {
  max-width: 1440px;
  margin: 0 auto;
  padding: 8rem var(--gutter) 3.5rem;
  box-sizing: border-box;
  border-top: 1px solid var(--rule-2);
}
.tl-intro__kicker {
  margin: 0 0 1.25rem;
  font: 600 12px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
}
.tl-intro__h { max-width: 52rem; margin: 0 0 1.25rem; font: 400 clamp(2rem, 3.6vw, 3.25rem)/1.1 var(--serif); text-wrap: balance; }
.tl-intro__dek { max-width: 52rem; margin: 0; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.tl-intro__filters { margin-top: 2.25rem; }
.tl-intro__filters[hidden] { display: none; }
.tl-intro__filters > p { margin: 0 0 .75rem; font: 500 13px/1.4 var(--sans); color: var(--ink-3); }
.tl-intro__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.tl-filter {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(12, 14, 17, .38);
  background: transparent;
  color: var(--ink-2);
  font: 500 14px/1 var(--sans);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.tl-filter span { font-size: 12px; font-weight: 600; opacity: .7; font-variant-numeric: tabular-nums; }
.tl-filter:hover { border-color: var(--ink-3); color: var(--ink); }
.tl-filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tl-filter:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* hidden entries never show, whatever the card rules say */
.tl-item[hidden] { display: none !important; }

/* turning points: a gold dot before the date marks them in the list */
.tl-item--major .tl-item__when::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: .55rem;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: 1px;
}

/* era headings: no panel, a red rule, the era's numbers */
.tl-item--era .tl-item__when { color: var(--red); letter-spacing: .12em; }
.tl-item--era .tl-item__h { font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1.05; margin-bottom: .9rem; }
.tl-era__stats { font: 14px/1.5 var(--sans); color: var(--ink-2); }
.tl-item .tl-era__count { margin: 0; font: 500 12px/1.4 var(--sans); letter-spacing: .04em; color: var(--ink-3); }
.wh-js .tl-item--era { background: transparent; border: 0; border-top: 2px solid var(--red); border-radius: 0; padding: 1.1rem 0 0; }
.wh-no-js .tl-item--era { border-top: 2px solid var(--red); padding-top: 2.5rem; margin-top: 2rem; }

/* the entries between turning points: lighter, a gold edge, no grade */
.tl-item--minor .tl-item__when span { color: var(--ink-3); letter-spacing: .08em; font-weight: 500; }
.tl-item--minor .tl-item__h { font: 500 1.4rem/1.2 var(--serif); margin-bottom: .6rem; }
.tl-item--minor p:not([class]) { font-size: 16px; color: var(--ink-2); }
.wh-js .tl-item--minor { background: rgba(255, 255, 255, .22); border: 0; border-left: 2px solid var(--gold); border-radius: 0 6px 6px 0; padding: 1.15rem 1.4rem 1rem; }
.wh-no-js .tl-item--minor { padding-left: 1rem; border-left: 2px solid var(--gold); }

/* ticks under the stage axis: every entry that is not a turning point */
.tl__svg .hx-tick { stroke: var(--rule); stroke-width: 1.5; transition: stroke .3s ease; }
.tl__svg .hx-tick.is-past { stroke: var(--ink-3); }
.tl__svg .hx-tick.is-on { stroke: var(--gold); stroke-width: 2.5; }

@media (max-width: 899px) {
  .tl-intro { padding-top: 5.5rem; padding-bottom: 2.5rem; }
  .tl-intro__dek { font-size: 17px; }
  .tl-item--era .tl-item__h { font-size: 1.7rem; }
  .tl-item--minor .tl-item__h { font-size: 1.2rem; }
  .tl-item--minor p:not([class]) { font-size: 15px; }
  .wh-js .tl-item--minor { padding: .9rem 1rem .8rem; }
}

/* ---- archive scans on the stage, and the glass card that sits over them -- */

/* the card column is placed by name, so a scan can share its cell */
.wh-js .tl__charts { grid-column: 1; grid-row: 1; }
.wh-js .tl__list { grid-column: 2; grid-row: 1; position: relative; z-index: 1; }
.wh-no-js .tl__doc { display: none; }

/* shown at full strength: the document is part of the story. It fills the
   whole card column, from the graph's edge to the stage's, and never covers
   the graph. timeline.js draws torn edges on all four sides as clip paths
   (--tear-rim, --tear-page) from the panel's real size, so the teeth stay
   the same size on any screen. */
.wh-js .tl__doc {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  justify-self: stretch;
  position: relative;
  z-index: 0;
  margin: 0;
  min-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  filter: drop-shadow(0 20px 34px rgba(4, 50, 62, .45));
  transition: opacity .6s ease, transform .9s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .6s;
  pointer-events: none;
}
.wh-js .tl__doc.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .6s ease, transform .9s cubic-bezier(.22, 1, .36, 1), visibility 0s;
}
/* the torn rim: the paper's pale core showing where it was ripped */
.wh-js .tl__doc::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #e9e4d8;
  clip-path: var(--tear-rim, none);
}
/* the page: torn, and on wide screens raised past the scan's blank top margin
   so the title clears the card; the strip that opens at the foot is plain
   paper, under the card */
.wh-js .tl__doc-page {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fbfbf8;
  clip-path: var(--tear-page, none);
}
.tl__doc img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}
@media (min-width: 900px) {
  .wh-js .tl__doc img { object-fit: contain; transform: translateY(-5%); }
}
.tl__doc figcaption {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: .6rem;
  font: 11px/1.4 var(--sans);
  color: var(--ink-3);
  text-align: center;
}

/* with a scan up, the card drops to the foot of the column and overlaps only
   the cover's lower edge, so the arms and the title stay in view */
.wh-js .tl__stage.has-doc .tl-item.has-doc.is-on { inset: auto 1.5rem 1.75rem 1.5rem; transform: none; }
.wh-js .tl__stage.has-doc .tl__doc figcaption { display: none; }

/* liquid glass on every card: translucent, so the scene glows through, with
   the dark text kept at 4.5:1 or better over scans, pictures, video and the blue */
.wh-js .tl-item,
.wh-js .df-step {
  border: 0;
  border-radius: 20px;
  padding: 1.35rem 1.6rem 1.2rem;
  /* translucent: the scene behind glows through, blurred and a little brighter */
  background:
    radial-gradient(120% 70% at 15% 0%, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, rgba(255, 255, 255, .40), rgba(220, 244, 250, .52));
  -webkit-backdrop-filter: blur(22px) saturate(185%) brightness(1.06);
  backdrop-filter: blur(22px) saturate(185%) brightness(1.06);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, .85),
    inset 0 -1px 0 rgba(255, 255, 255, .25),
    inset 1px 0 0 rgba(255, 255, 255, .35),
    inset 0 0 30px rgba(255, 255, 255, .22),
    0 1px 2px rgba(4, 50, 62, .12),
    0 24px 54px rgba(4, 50, 62, .32);
}
/* the specular sweep: a soft highlight across the top of the glass */
.wh-js .tl-item::after,
.wh-js .df-step::after {
  content: "";
  position: absolute;
  inset: 0 0 45% 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 70% 100% at 28% 0%, rgba(255, 255, 255, .42), rgba(255, 255, 255, .12) 45%, rgba(255, 255, 255, 0) 75%);
  pointer-events: none;
}
.wh-js .tl-item > *,
.wh-js .df-step > * { position: relative; z-index: 1; }
/* the bright rim: a 1px gradient ring, strongest at the top left like light on glass */
.wh-js .tl-item::before,
.wh-js .df-step::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(140deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .45) 28%, rgba(255, 255, 255, .12) 55%, rgba(255, 255, 255, .7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.wh-js .tl-item.has-doc p:not([class]) { color: var(--ink); }
@media (min-width: 900px) {
  .wh-js .tl-item.has-doc { padding: 1rem 1.3rem .9rem; }
  .wh-js .tl-item.has-doc .tl-item__when { margin-bottom: .5rem; }
  .wh-js .tl-item.has-doc .tl-item__h { font-size: 1.3rem; margin-bottom: .45rem; }
  .wh-js .tl-item.has-doc p:not([class]) { font-size: 15px; line-height: 1.5; margin-bottom: .4rem; }
  .wh-js .tl-item.has-doc .tl-item__src { margin-top: .5rem !important; }
}
.wh-js .tl-item.has-doc .tl-item__src,
.wh-js .tl-item.has-doc .tl-item__src a,
.wh-js .tl-item.has-doc .tl-item__when span { color: var(--ink-2); }

/* phones: no room in the card row, so the scan takes the chart area, which is
   empty before 1990 anyway, and the card keeps its own row */
@media (max-width: 899px) {
  .wh-js .tl__list { grid-column: 1; grid-row: 2; }
  /* below the year readout, which stays readable */
  .wh-js .tl__doc { grid-column: 1; grid-row: 1; align-self: end; height: calc(100% - 4.75rem); margin: 0 0 .25rem; z-index: 2; }
  .wh-js .tl__doc { justify-self: center; aspect-ratio: 693 / 1044; width: auto; }
  .tl__doc img { object-position: 50% 0; }
  .wh-js .tl__stage.has-doc .tl-item.has-doc.is-on { inset: 0 0 auto 0; }
  .wh-js .tl-item.has-doc { padding: 1rem 1.1rem .9rem; border-radius: 14px; }
}

/* ---- clean frames: illustrations, not documents ------------------------- */

/* no tear and no paper rim: a photograph-style frame filling the column */
.wh-js .tl__doc--clean::before { display: none; }
.wh-js .tl__doc--clean .tl__doc-page {
  border-radius: 10px;
  background: #111;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.wh-js .tl__doc--clean img,
.wh-js .tl__doc.tl__doc--clean img {
  object-fit: cover;
  object-position: var(--doc-pos, 50% 50%);
  transform: none;
}
/* a looping clip fills its frame like an image */
.tl__doc video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--doc-pos, 50% 50%); }

/* the label rides on the image itself, so it can never be read as an archive photograph */
.tl__doc-label {
  position: absolute;
  top: .9rem;
  left: .9rem;
  z-index: 2;
  max-width: calc(100% - 1.8rem);
  margin: 0;
  padding: .45rem .7rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  font: 600 11px/1.35 var(--sans);
  letter-spacing: .03em;
  color: var(--ink);
}
/* phones: the only room is over the graph, which has data from 1990 on, so an
   illustration stays off phones rather than cover the numbers */
@media (max-width: 899px) {
  .wh-js .tl__doc--clean:not(.tl__doc--phone) { display: none; }
}

/* ---- the sentinel site map (1990): real sites, lit in order of first result -- */

.wh-js .tl__doc--map .tl__doc-page { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
/* the top of the column, so the glass card at the foot never covers the coast */
.tl-map { position: absolute; top: 0; left: 0; width: 100%; height: 62%; overflow: visible; }
.tl-map__land { fill: rgba(255, 255, 255, .24); stroke: rgba(12, 14, 17, .5); stroke-width: 2; stroke-linejoin: round; }
.tl-map__lake { fill: #0490b0; stroke: rgba(12, 14, 17, .3); stroke-width: 1.5; }
.tl-map__lead { stroke: var(--ink-3); stroke-width: 1.5; }
.tl-map__dot { fill: var(--gold); }
.tl-map__halo { fill: var(--gold); opacity: .2; }
.tl-map__site.is-rural .tl-map__dot { fill: var(--bg); stroke: var(--gold); stroke-width: 4; }
.tl-map__site.is-partner .tl-map__dot { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.tl-map__site.is-partner .tl-map__halo { fill: #fff; }
/* plain white labels, no outline (Stanley's call, 13 Nov 2026) */
.tl-map__site text {
  font: 600 23px var(--sans);
  fill: #fff;
}
.tl-map__year { font: 400 64px var(--serif); fill: var(--ink); font-variant-numeric: tabular-nums; }

/* dots arrive a year at a time (--d is set per site by the build), each with one pulse */
.wh-js .tl-map__site { opacity: 0; transition: opacity .45s ease; }
.wh-js .tl__doc--map.is-lit .tl-map__site { opacity: 1; transition-delay: var(--d, 0s); }
.tl-map__halo { transform-box: fill-box; transform-origin: center; }
.wh-js .tl__doc--map.is-lit .tl-map__halo { animation: wh-site-pulse 1.1s ease-out var(--d, 0s) both; }
@keyframes wh-site-pulse { 0% { transform: scale(.3); opacity: .7; } 60% { transform: scale(1.9); opacity: .15; } 100% { transform: scale(1); opacity: .2; } }

/* the key, in the empty strip west of the border */
.tl-map__key {
  position: absolute;
  top: .25rem;
  left: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .35rem;
  font: 600 11px/1.2 var(--sans);
  color: #fff;
}
.tl-map__key li { display: flex; align-items: center; gap: .45rem; }
.tl-map__key i { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; box-sizing: border-box; }
.tl-map__key .k-urban { background: var(--gold); }
.tl-map__key .k-rural { border: 2px solid var(--gold); }
.tl-map__key .k-partner { background: #fff; border: 2px solid var(--ink); }
.tl__doc--map figcaption { display: none; }

@media (prefers-reduced-motion: reduce) {
  .wh-js .tl-map__site, .wh-js .tl__doc--map.is-lit .tl-map__site { opacity: 1; transition: none; }
  .wh-js .tl__doc--map.is-lit .tl-map__halo { animation: none; }
}

/* over the moving red alarm the glass is milkier and its blur brighter, so the
   dark text keeps 4.5:1 even where the bell is darkest */
.wh-js .tl-item.has-doc[data-bg-key="alarm"] {
  background:
    radial-gradient(120% 70% at 15% 0%, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, rgba(255, 255, 255, .58), rgba(232, 248, 252, .68));
  -webkit-backdrop-filter: blur(24px) saturate(150%) brightness(1.22);
  backdrop-filter: blur(24px) saturate(150%) brightness(1.22);
}

.wh-js .df-step { border: 0; }

@media (max-width: 899px) {
  .wh-js .tl-item,
  .wh-js .df-step { padding: 1rem 1.1rem .9rem; border-radius: 16px; }
}

/* ---- data plates: a visual for every entry with no picture --------------- */

/* A plate shares the card column with its card, like a scan does. It sits in
   the space above the card (timeline.js measures the card into --card-h) and
   holds one thing: a headline figure, the plan's years on the line, a survey
   beside the model, or where a measure stood. Written by build_history.py. */
.wh-js .tl__doc--viz { filter: none; }
.tl-viz {
  position: absolute;
  inset: 0 0 calc(var(--card-h, 14rem) + 3rem) 0;
  display: grid;
  align-content: center;
  gap: .7rem;
  padding: 0 1.5rem;
  color: var(--ink);
  overflow: hidden;
}
.tl-viz p { margin: 0; }
.tl-viz__k {
  font: 600 12px/1.35 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.tl-viz__big {
  font: 400 clamp(3rem, 5.6vw, 5.75rem)/1 var(--serif);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  text-wrap: balance;
}
.tl-viz__small {
  max-width: 25rem;
  font: 400 1.05rem/1.45 var(--sans);
  color: var(--ink-2);
}
.tl-viz__note {
  max-width: 27rem;
  font: 400 12px/1.45 var(--sans);
  color: var(--ink-2);
}
.tl-viz__axis {
  display: flex;
  justify-content: space-between;
  font: 400 11px/1 var(--sans);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* the small line: the whole series faint, the years in question bold */
.tl-viz__spark { display: block; width: 100%; height: auto; overflow: visible; }
.tl-viz__spark .band { fill: rgba(255, 255, 255, .26); }
.tl-viz__spark .floor { stroke: var(--rule); stroke-width: 1; }
.tl-viz__spark .all { fill: none; stroke: rgba(12, 14, 17, .34); stroke-width: 1.5; stroke-linejoin: round; }
.tl-viz__spark .win { fill: none; stroke: var(--gold); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.tl-viz__spark .pt { fill: var(--gold); stroke: #fff; stroke-width: 2; }

/* plan and era plates: two measures, one above the other */
.tl-viz--span { gap: .55rem; }
.tl-viz__row { display: grid; gap: .15rem; }
.tl-viz__m { font: 600 12px/1.3 var(--sans); color: var(--ink-2); }
.tl-viz__v { font: 400 1rem/1.3 var(--sans); color: var(--ink); }
.tl-viz__v b { font: 400 1.7rem/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tl-viz__v span { display: inline-block; width: .9rem; }

/* a measure on the year of the entry */
.tl-viz--level .tl-viz__spark { margin-top: .4rem; }

/* survey beside the model: two bars on one scale, 0 to 11 percent */
.tl-viz--survey { gap: 1rem; }
.tl-viz__bar p { margin-bottom: .4rem; font: 400 .95rem/1.35 var(--sans); color: var(--ink-2); }
.tl-viz__bar b { display: block; font: 400 3rem/1 var(--serif); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tl-viz__bar i { display: block; width: var(--w); height: 14px; border-radius: 3px; background: var(--gold); transform-origin: 0 50%; }
.tl-viz__bar--model b { font-size: 2.1rem; }
.tl-viz__bar--model i { background: rgba(12, 14, 17, .45); }

/* each plate plays once as its card arrives: the line draws through its
   years, the bars grow, the dots land */
.wh-js .tl__doc--viz .win { stroke-dashoffset: 1; }
.wh-js .tl__doc--viz .pt, .wh-js .tl__doc--viz .band { opacity: 0; }
.wh-js .tl__doc--viz .tl-viz__bar i { transform: scaleX(0); }
.wh-js .tl__doc--viz.is-on .win { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s cubic-bezier(.65, 0, .35, 1) .3s; }
.wh-js .tl__doc--viz.is-on .band { opacity: 1; transition: opacity .5s ease .15s; }
.wh-js .tl__doc--viz.is-on .pt { opacity: 1; transition: opacity .3s ease 1.2s; }
.wh-js .tl__doc--viz.is-on .pt:first-of-type { transition-delay: .3s; }
.wh-js .tl__doc--viz.is-on .tl-viz__bar i { transform: none; transition: transform .9s cubic-bezier(.22, 1, .36, 1) .3s; }
.wh-js .tl__doc--viz.is-on .tl-viz__bar--model i { transition-delay: .55s; }

/* with a plate up the card keeps its usual size of type; only scans and
   pictures need the compact card */
@media (min-width: 900px) {
  .wh-js .tl-item--era.has-doc .tl-item__h { font-size: clamp(2rem, 3vw, 2.6rem); margin-bottom: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .wh-js .tl__doc--viz .win { stroke-dashoffset: 0; transition: none; }
  .wh-js .tl__doc--viz .pt, .wh-js .tl__doc--viz .band { opacity: 1; transition: none; }
  .wh-js .tl__doc--viz .tl-viz__bar i { transform: none; transition: none; }
}

/* the map key: white, as chosen, on a dark chip so it passes 4.5:1 */
.tl-map__key {
  padding: .5rem .7rem;
  border-radius: 8px;
  background: rgba(11, 37, 69, .78);
}
/* the swatches keep the map's own colours; a white ring lifts them off the chip */
.tl-map__key i { box-shadow: 0 0 0 2px rgba(255, 255, 255, .92); }
.tl-map__key .k-rural { background: var(--bg); }
.tl-map__key li { gap: .6rem; }

/* ---- entrances: the prologue and the close ------------------------------- */

/* the small line beside each closing figure, drawn by reveal.js */
.ep__spark { display: block; width: min(100%, 15rem); height: auto; margin-top: .7rem; overflow: visible; }
.ep__spark .floor { stroke: var(--rule); stroke-width: 1; }
.ep__spark .all { fill: none; stroke: rgba(12, 14, 17, .3); stroke-width: 1.2; stroke-linejoin: round; }
.ep__spark .win { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ep__spark text { font: 600 9px var(--sans); fill: var(--ink-2); }
.ep__col--strides .win { stroke: var(--teal); }
.ep__col--strides .pt { fill: var(--teal); }
.ep__col--still .win { stroke: var(--red); }
.ep__col--still .pt { fill: var(--red); }
.ep__col--still .win--2 { stroke: var(--ink); }
.ep__col--still .pt--2 { fill: var(--ink); }

/* Starting states sit under .wh-reveal, which reveal.js sets only when it
   runs and motion is allowed. Moves use translate and rotate, so the front
   page keeps its own tilt. The page itself is never faded once it lands. */
.wh-reveal .pr__kicker, .wh-reveal .pr__h, .wh-reveal .pr__q, .wh-reveal .pr__cite,
.wh-reveal .pr__body p, .wh-reveal .pr__src,
.wh-reveal .ep__kicker, .wh-reveal .ep__h, .wh-reveal .ep__col h3,
.wh-reveal .ep__col dl div, .wh-reveal .ep__end {
  opacity: 0;
  translate: 0 22px;
  transition: opacity .7s ease var(--d, 0s), translate .9s cubic-bezier(.22, 1, .36, 1) var(--d, 0s);
}
.wh-reveal .is-in .pr__kicker, .wh-reveal .is-in .pr__h, .wh-reveal .is-in .pr__q, .wh-reveal .is-in .pr__cite,
.wh-reveal .is-in .pr__body p, .wh-reveal .is-in .pr__src,
.wh-reveal .is-in .ep__kicker, .wh-reveal .is-in .ep__h, .wh-reveal .is-in .ep__col h3,
.wh-reveal .is-in .ep__col dl div, .wh-reveal .is-in .ep__end {
  opacity: 1;
  translate: 0 0;
}

/* prologue order: heading, the front page lands, first headline, second, the text */
.wh-reveal .pr__h { --d: .1s; }
.wh-reveal .pr__q { --d: .75s; }
.wh-reveal .pr__cite { --d: .95s; }
.wh-reveal .pr__q--2 { --d: 1.5s; }
.wh-reveal .pr__cite--2 { --d: 1.7s; }
.wh-reveal .pr__body p { --d: 2.1s; }
.wh-reveal .pr__body p + p { --d: 2.3s; }
.wh-reveal .pr__src { --d: 2.5s; }

/* the front page drops from above, turned, and settles onto its tilt */
.wh-reveal .pr__page { opacity: 0; translate: 0 -70px; rotate: -7deg; scale: 1.06; }
.wh-reveal .is-in .pr__page {
  opacity: 1;
  translate: 0 0;
  rotate: 0deg;
  scale: 1;
  transition: opacity .25s ease .3s, translate .95s cubic-bezier(.3, 1.35, .5, 1) .3s,
              rotate 1.05s cubic-bezier(.3, 1.35, .5, 1) .3s, scale .95s cubic-bezier(.22, 1, .36, 1) .3s;
}

/* close order: heading, then row by row (--i is set per row by reveal.js) */
.wh-reveal .ep__h { --d: .1s; }
.wh-reveal .ep__col h3 { --d: .25s; }
.wh-reveal .ep__col dl div { --d: calc(.35s + var(--i, 0) * .22s); }
.wh-reveal .ep__end { --d: 2s; }
.wh-reveal .ep__spark .win { stroke-dashoffset: 1; }
.wh-reveal .ep__spark .pt, .wh-reveal .ep__spark text { opacity: 0; }
.wh-reveal .is-in .ep__spark .win { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s cubic-bezier(.65, 0, .35, 1) calc(.6s + var(--i, 0) * .22s); }
.wh-reveal .is-in .ep__spark .pt, .wh-reveal .is-in .ep__spark text { opacity: 1; transition: opacity .3s ease calc(1.7s + var(--i, 0) * .22s); }

/* ---- the timeline chart's track ----------------------------------------- */

/* the whole 35 years as a faint track under the red line */
.tl__svg .line-ghost { fill: none; stroke: rgba(12, 14, 17, .32); stroke-width: 1.5; stroke-dasharray: none; stroke-linejoin: round; stroke-linecap: round; opacity: 1; }

/* html carries the page colour, so the body can let the travelling line show through */
body { background: transparent; }

/* ---- hero: the 35 years in 3D -------------------------------------------- */

/* The right of the hero: a looping render of the series as 35 slabs, with the
   four figures beneath it. The clip is rendered on the page's own blue and
   its edges are feathered, so it sits on the page with no visible frame. It
   runs past the gutter to the window's edge. */
.tl-hero__side { flex: 0 1 33rem; min-width: 0; }
.tl-hero__ridge { margin: 0 calc(var(--gutter) * -1) 1.25rem -2.5rem; }
/* the frame is the chart's own shape; the video inside it is twice as tall
   (picture over matte) and the filter turns the lower half into the upper
   half's transparency, so only the chart is left, on the page's own blue */
.tl-hero__ridge-frame { position: relative; aspect-ratio: 800 / 326; overflow: hidden; }
.tl-hero__ridge img { display: block; width: 100%; height: auto; }
.tl-hero__ridge video { position: absolute; top: 0; left: 0; width: 100%; height: 200%; filter: url(#wh-stack-alpha); opacity: 0; }
.tl-hero__ridge.is-playing video { opacity: 1; }
.tl-hero__ridge.is-playing img { visibility: hidden; }
.tl-hero__ridge-key { position: absolute; }
/* no picture until hero.js loads one, and no broken-image mark in the meantime */
.tl-hero__ridge img:not([src]) { visibility: hidden; }
.tl-hero__ridge figcaption {
  margin: -.4rem var(--gutter) 0 2.5rem;
  font: 11px/1.4 var(--sans);
  color: var(--ink-2);
}
/* the four figures, two by two under the clip */
.tl-hero__side .tl-hero__stats {
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.75rem;
}
.tl-hero__side .tl-hero__stats dd { font-size: 2.1rem; }

/* phones: the first screen keeps the title and the whole curve, so the clip stays off */
@media (max-width: 899px) {
  .tl-hero__ridge { display: none; }
  .tl-hero__side { flex-basis: 100%; max-width: none; }
}
/* short laptop screens: not enough height for the clip and the figures */
@media (min-width: 900px) and (max-height: 719px) {
  .tl-hero__ridge { display: none; }
}

/* the front page starts its drop a little oversized and turned: keep that from widening the page */
.wh-reveal .pr { overflow-x: clip; }

/* phones: a two-measure evidence chart shows one measure at a time, swapped by scroll */
.tl__svg .ev-panel { transition: opacity .3s ease; }

/* ---- hero: the red ribbon behind it -------------------------------------- */

/* The awareness ribbon stands in the middle of the hero: its loop in the gap
   between the text and the bar chart, its tail running out to the right
   under the figures and above the curve. Shown at full strength, behind the
   text. It is placed from the chart column's left edge (the column is 33rem
   wide), so the loop stays in the gap at any window width; the loop is 0.47
   of the ribbon's height across. */
.tl-hero__ribbon {
  --rib: 60svh;
  position: absolute;
  left: calc(100% - var(--gutter) - var(--side, 33rem) - var(--rib-gap, 68px) - var(--rib) * .47);
  top: 24svh;
  z-index: -1;
  height: var(--rib);
  width: auto;
  max-width: none;
  filter: drop-shadow(0 18px 26px rgba(4, 50, 62, .38));
  pointer-events: none;
}
/* the standfirst wraps short of the ribbon, so no words sit on the red */
@media (min-width: 900px) {
  .tl-hero__dek { max-width: 30rem; }
}

/* phones: the ribbon sits low on the right, behind the four figures, which
   go on glass there so they stay readable over it */
@media (max-width: 899px) {
  .tl-hero__ribbon { left: auto; top: auto; right: -30%; bottom: 3.25rem; width: 78vw; height: auto; }
  .tl-hero__side .tl-hero__stats {
    position: relative;
    padding: 1rem 1.1rem 1.1rem;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .5), rgba(220, 244, 250, .62));
    -webkit-backdrop-filter: blur(22px) saturate(185%) brightness(1.06);
    backdrop-filter: blur(22px) saturate(185%) brightness(1.06);
    box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .85), 0 18px 40px rgba(4, 50, 62, .26);
  }
  .tl-hero__side .tl-hero__stats div { border-top: 0; padding-top: 0; }
  .tl-hero__side .tl-hero__stats dt { color: var(--ink-2); }
}

/* hero: the subtitle, standfirst and scroll cue in white (Stanley's call,
   16 Nov 2026, for visibility beside the red ribbon; white on the page blue
   is about 2.7:1, so the standfirst is set a little heavier to help) */
.tl-hero__h .tl-hero__sub,
.tl-hero__dek,
.tl-hero__cue { color: #fff; }
.tl-hero__dek { font-weight: 500; }

/* hero title colour (Stanley's call, 16 Nov 2026): both lines of the question in one yellow */
.tl-hero__h, .tl-hero__h em { color: #fbe056; }

/* hero text colours (Stanley's call, 16 Nov 2026): everything that was dark
   is white, everything that was red is yellow. The curve itself stays red. */
.tl-hero__stats dt,
.tl-hero__stats dd,
.tl-hero__ridge figcaption,
.tl-hero__tag--end { color: #fff; }
.tl-hero__stats dd.is-red,
.tl-hero__tag--peak { color: #fbe056; }
.tl-hero__stats div { border-top-color: rgba(255, 255, 255, .5); }
.tl-hero__cue-line { background: rgba(255, 255, 255, .45); }
.tl-hero__cue-line span { background: #fbe056; }
/* phones: the figures sit on pale glass over the ribbon, where white would vanish */
@media (max-width: 899px) {
  .tl-hero__side .tl-hero__stats dt { color: var(--ink-2); }
  .tl-hero__side .tl-hero__stats dd { color: var(--ink); }
  .tl-hero__side .tl-hero__stats dd.is-red { color: var(--red); }
}

/* ==========================================================================
   White on blue (Stanley's call, 16 Nov 2026)

   Across the whole piece, text that sits on the blue is white, and text that
   was red is yellow. This is done by turning the ink tokens white for the
   page, then turning them dark again inside anything with its own pale
   surface: the glass cards, the label on the AI illustration, and the hero
   figures on a phone. Lines, dots and bars on the charts keep their own
   colours (the red line stays red); only words change.
   ========================================================================== */

:root {
  --ink: #fff;
  --ink-2: rgba(255, 255, 255, .94);
  --ink-3: rgba(255, 255, 255, .86);
  --rule: rgba(255, 255, 255, .42);
  --rule-2: rgba(255, 255, 255, .26);
  --yellow: #fbe056;
}

/* pale surfaces keep dark words */
.wh-js .tl-item,
.wh-js .df-step,
.tl__doc-label {
  --ink: #0c0e11;
  --ink-2: #0f2c35;
  --ink-3: #163a44;
  --rule: rgba(12, 14, 17, .24);
  --rule-2: rgba(12, 14, 17, .14);
  color: var(--ink);
}
.wh-js .tl-item a, .wh-js .df-step a { color: var(--ink-2); }
@media (max-width: 899px) {
  .tl-hero__side .tl-hero__stats {
    --ink: #0c0e11;
    --ink-2: #0f2c35;
    --ink-3: #163a44;
  }
}

/* words that were red, on the blue: yellow */
.tl__rv--red,
.ep__h em,
.ep__col--still h3,
.df__stats-red dt, .df__stats-red dd,
.wh-no-js .tl-item--era .tl-item__when { color: var(--yellow); }

/* words that were navy or deep green, on the blue: white */
.pr__kicker,
.ep__kicker,
.tl-intro__kicker,
.tl__label--ev,
.ep__col--strides h3,
.wh-no-js .tl-item__when,
.tl__bg.is-placeholder .tl__bg-credit { color: #fff; }
.tl__svg .ms-lab, .tl__svg .pt-lab--2, .tl__svg .ev-key { fill: #fff !important; }

/* the year rail and the filter chips: white words and outlines, navy when chosen */
.tl__rail button:hover { border-color: #fff; }
.tl__rail button[aria-pressed="true"] { color: #fff; }
.tl-filter { border-color: rgba(255, 255, 255, .6); }
.tl-filter[aria-pressed="true"] { background: #fff; border-color: #fff; color: #0b2545; }

/* the "not measured" chip has no fill of its own, so it follows the words around it */
.tl-notes .tl-chip--none { color: #fff; border-color: rgba(255, 255, 255, .8); }

/* small marks drawn in the old ink, now white so they still show */
.tl__ghost { color: rgba(255, 255, 255, .1); }
.tl-map__lead { stroke: rgba(255, 255, 255, .8); }
.df__swatch { box-shadow: none; }

/* ---- white glass cards (Stanley's call, 17 Nov 2026) ---------------------- */

/* The cards are white, not blue-tinted, and still liquid glass: mostly
   opaque white with a little of the scene showing through, blurred, plus the
   same bright rim, top highlight and soft shadow. Words on them are black. */
.wh-js .tl-item,
.wh-js .df-step,
.wh-js .tl-item.has-doc[data-bg-key="alarm"] {
  --ink: #0c0e11;
  --ink-2: #14181d;
  --ink-3: #2c333b;
  background:
    radial-gradient(120% 70% at 15% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .78));
  -webkit-backdrop-filter: blur(22px) saturate(140%) brightness(1.18);
  backdrop-filter: blur(22px) saturate(140%) brightness(1.18);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(255, 255, 255, .5),
    inset 1px 0 0 rgba(255, 255, 255, .6),
    inset 0 0 30px rgba(255, 255, 255, .35),
    0 1px 2px rgba(4, 50, 62, .14),
    0 24px 54px rgba(4, 50, 62, .34);
}
.wh-js .tl-item.has-doc .tl-item__src,
.wh-js .tl-item.has-doc .tl-item__src a,
.wh-js .tl-item.has-doc .tl-item__when span { color: var(--ink-3); }
@media (max-width: 899px) {
  .tl-hero__side .tl-hero__stats {
    background: linear-gradient(160deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .8));
  }
}

/* ---- hero: an erratic scroll cue (Stanley's call, 19 Nov 2026) ------------ */

/* The loader now opens the hero by itself, so this cue is the reader's only
   prompt to start. It no longer pulses evenly: the yellow stroke drops in
   uneven bursts and the words twitch on a different, uneven beat. The two
   loops are different lengths, so they drift apart and never settle into a
   rhythm. */
.tl-hero__cue-line { height: 44px; width: 2px; }
.tl-hero__cue-line span { animation: tl-cue-erratic 3.1s linear infinite; }
.tl-hero__cue-text { display: inline-block; animation: tl-cue-twitch 2.3s linear infinite; }

@keyframes tl-cue-erratic {
  0%   { transform: scaleY(0); opacity: 1; }
  7%   { transform: scaleY(.38); }
  11%  { transform: scaleY(.22); }
  19%  { transform: scaleY(.71); }
  23%  { transform: scaleY(.5); }
  31%  { transform: scaleY(1); opacity: 1; }
  36%  { opacity: .15; }
  39%  { opacity: 1; }
  44%  { transform: scaleY(1); opacity: 0; }
  45%  { transform: scaleY(0); opacity: 1; }
  52%  { transform: scaleY(.9); }
  56%  { transform: scaleY(.3); }
  61%  { transform: scaleY(1); }
  66%  { transform: scaleY(1); opacity: 0; }
  67%  { transform: scaleY(0); opacity: 1; }
  88%  { transform: scaleY(0); }
  94%  { transform: scaleY(.6); }
  100% { transform: scaleY(0); opacity: 1; }
}
@keyframes tl-cue-twitch {
  0%, 12%  { transform: translate(0, 0); opacity: 1; }
  14%      { transform: translate(0, 5px); }
  17%      { transform: translate(1px, -2px); }
  20%      { transform: translate(0, 3px); }
  23%, 55% { transform: translate(0, 0); }
  57%      { transform: translate(-1px, 6px); opacity: .55; }
  59%      { transform: translate(0, 0); opacity: 1; }
  61%      { transform: translate(1px, 4px); }
  64%, 86% { transform: translate(0, 0); }
  88%      { transform: translate(0, 8px); }
  91%      { transform: translate(0, -1px); }
  94%, 100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .tl-hero__cue-line span, .tl-hero__cue-text { animation: none; }
}

/* ---- the article's sections (Yvonne Kawira's text, 23 Nov 2026) ----------- */

/* Three places hold running prose from the article: the opening after the
   hero, "where things stand" inside the close, and the epilogue after the
   line ends. They share one reading measure and one entrance. */
.op, .af {
  max-width: 1440px;
  margin: 0 auto;
  padding: 9rem var(--gutter) 4rem;
  box-sizing: border-box;
}
.af { border-top: 1px solid var(--rule-2); padding-bottom: 8rem; }
.op__kicker, .af__kicker {
  margin: 0 0 1.25rem;
  font: 600 12px/1.3 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
}
.op__h, .af__h {
  margin: 0 0 3rem;
  max-width: 18ch;
  font: 400 clamp(2.25rem, 4.6vw, 4rem)/1.05 var(--serif);
  letter-spacing: -.02em;
  color: var(--yellow);
  text-wrap: balance;
}
.op__body, .af__body { max-width: 44rem; }
.op__body p, .af__body p { margin: 0 0 1.5rem; font-size: 1.3rem; line-height: 1.55; }
.op__body p:first-child { font-size: 1.55rem; line-height: 1.45; }
.op__by, .af__by { margin: 2rem 0 0; font: 500 13px/1.5 var(--sans); letter-spacing: .04em; color: var(--ink-3); }

/* a line from the article, set large */
.af__quote {
  margin: 0 0 3rem;
  max-width: 24ch;
  font: italic 400 clamp(1.9rem, 3.8vw, 3.25rem)/1.12 var(--serif);
  letter-spacing: -.015em;
  text-wrap: balance;
}
.af__quote--last { margin-top: 5rem; color: var(--yellow); }

/* where things stand: prose in two columns, with the cascade as bars */
.ep__now { margin-top: 5.5rem; padding-top: 2.5rem; border-top: 1px solid var(--rule-2); }
.ep__now-h {
  margin: 0 0 2.25rem;
  font: 600 13px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ep__now-cols { columns: 2 24rem; column-gap: 4.5rem; }
.ep__now-cols > * { break-inside: avoid; margin: 0 0 1.75rem; }
.ep__now-cols p { font-size: 1.15rem; line-height: 1.6; }
.ep__cascade { padding: 0; }
.ep__cascade figcaption { margin: 0 0 1rem; font: 500 13px/1.45 var(--sans); color: var(--ink-3); }
.ep__bar { margin: 0 0 .9rem; position: relative; }
.ep__bar p { margin: 0 0 .35rem; font: 400 1rem/1.3 var(--sans); }
.ep__bar b { font: 400 1.9rem/1 var(--serif); letter-spacing: -.02em; margin-right: .4rem; font-variant-numeric: tabular-nums; }
.ep__bar i { display: block; width: var(--w); height: 12px; border-radius: 3px; background: #fff; transform-origin: 0 50%; }
/* the 95 percent target, a yellow tick across each bar's track */
.ep__bar::after { content: ""; position: absolute; left: 95%; bottom: -3px; width: 2px; height: 18px; background: var(--yellow); }
.ep__cascade-kids { margin: 1rem 0 0; font: 400 1rem/1.5 var(--sans); color: var(--ink-2); }

/* entrance: each paragraph rises in after the one before */
.wh-reveal [data-reveal] > *,
.wh-reveal .op__body > p, .wh-reveal .af__body > p, .wh-reveal .ep__now-cols > * {
  opacity: 0;
  translate: 0 20px;
  transition: opacity .7s ease, translate .9s cubic-bezier(.22, 1, .36, 1);
}
.wh-reveal [data-reveal].is-in > *,
.wh-reveal [data-reveal].is-in .op__body > p, .wh-reveal [data-reveal].is-in .af__body > p,
.wh-reveal [data-reveal].is-in .ep__now-cols > * { opacity: 1; translate: 0 0; }
.wh-reveal [data-reveal].is-in > :nth-child(2) { transition-delay: .1s; }
.wh-reveal [data-reveal].is-in > :nth-child(3) { transition-delay: .2s; }
.wh-reveal [data-reveal].is-in > :nth-child(n+4) { transition-delay: .3s; }
.wh-reveal [data-reveal].is-in .op__body > p:nth-child(2), .wh-reveal [data-reveal].is-in .af__body > p:nth-child(2),
.wh-reveal [data-reveal].is-in .ep__now-cols > :nth-child(2) { transition-delay: .35s; }
.wh-reveal [data-reveal].is-in .op__body > p:nth-child(3), .wh-reveal [data-reveal].is-in .ep__now-cols > :nth-child(3) { transition-delay: .55s; }
.wh-reveal [data-reveal].is-in .ep__now-cols > :nth-child(n+4) { transition-delay: .75s; }
.wh-reveal .ep__bar i { transform: scaleX(0); }
.wh-reveal [data-reveal].is-in .ep__bar i { transform: none; transition: transform 1s cubic-bezier(.22, 1, .36, 1) .7s; }

@media (max-width: 899px) {
  .op, .af { padding-top: 5.5rem; padding-bottom: 3rem; }
  .op__body p, .af__body p { font-size: 1.1rem; }
  .op__body p:first-child { font-size: 1.25rem; }
  .ep__now-cols p { font-size: 1.05rem; }
}

/* the county line from the article, set large between "where things stand" and the last line of the close */
.ep__quote { margin: 4rem 0 0; max-width: 28ch; }
.wh-reveal blockquote[data-reveal] { opacity: 0; translate: 0 20px; transition: opacity .7s ease, translate .9s cubic-bezier(.22, 1, .36, 1); }
.wh-reveal blockquote[data-reveal].is-in { opacity: 1; translate: 0 0; }

/* hero title is now the article's headline (Stanley's call, 23 Nov 2026):
   "From National Disaster / to fragile progress", longer than the old one, so
   it is set smaller to keep each half on one line beside the ribbon */
.tl-hero__h { font-size: clamp(2.5rem, min(5vw, 8.5vh), 5.2rem); line-height: 1; }
.tl-hero__h .tl-hero__sub { font-size: clamp(1.4rem, min(2.5vw, 4vh), 2.4rem); }
/* the opening no longer repeats the headline, so its first paragraph leads */
.op__kicker { margin-bottom: 2rem; }

/* ==========================================================================
   Every viewport (23 Nov 2026)

   The piece was tuned at two sizes, a laptop and a tall phone. This block
   covers the sizes between and beyond them: short phones and phones on their
   side, tablets either way up, small laptops and very large monitors.
   ========================================================================== */

/* ---- timeline on short screens ------------------------------------------- */

/* a card taller than its row hangs from the row's foot and rises over the
   chart (timeline.js sets is-over and --card-max); if it is taller than the
   screen allows, the rest scrolls inside it */
@media (max-width: 899px) {
  .wh-js .tl-item.is-over {
    inset: auto 0 0 0 !important;
    max-height: var(--card-max, 80svh);
    overflow-y: auto;
  }
}

/* short phones: tighter cards, so fewer of them need to rise over the chart */
@media (max-width: 899px) and (max-height: 700px) {
  .tl-item { font-size: 14px; }
  .wh-js .tl-item { line-height: 1.42; padding: .7rem .85rem .65rem; }
  .tl-item__h { font-size: 1.15rem; margin-bottom: .4rem; }
  .tl-item--minor .tl-item__h { font-size: 1.08rem; }
  .tl-item--minor p:not([class]) { font-size: 14px; }
  .tl-item--era .tl-item__h { font-size: 1.45rem; }
  .tl-item p { margin-bottom: .45rem; }
  .wh-js .tl-item__when { margin-bottom: .4rem; }
  .wh-js .tl-item__src { margin-top: .4rem !important; }
  .tl__year { font-size: 2rem; }
}

/* a phone on its side: the year buttons give their row to the chart */
@media (max-width: 899px) and (max-height: 480px) {
  .tl__rail, .wh-js .tl__stage.is-tight .tl__ev { display: none; }
  .wh-js .tl__stage { padding-top: 1.5vh; padding-bottom: 2.5vh; gap: .5rem; }
}

/* ---- hero on phones and upright tablets ---------------------------------- */

/* the copy block fills the screen down to the curve, so the ribbon can be
   hung just above the curve, in the open space under the figures */
@media (max-width: 899px) and (orientation: portrait) {
  .tl-hero__inner {
    min-height: calc(100svh - var(--hz) - 1.5rem);
    box-sizing: border-box;
    align-content: flex-start;
  }
  .tl-hero__ribbon { right: -18%; bottom: .5rem; width: auto; height: min(34svh, 52vw); }
}

/* ---- hero between 900 and 1279 pixels wide ------------------------------- */

/* small laptops and tablets on their side: the chart column narrows and stays
   beside the title, where before it dropped under it and met the ribbon */
@media (min-width: 900px) and (max-width: 1279px) {
  .tl-hero__inner { flex-wrap: nowrap; gap: 2rem; --side: clamp(22rem, 41vw, 31rem); --rib-gap: 12px; }
  .tl-hero__main { flex: 1 1 0; }
  .tl-hero__side { flex: 0 0 var(--side); }
  .tl-hero__ridge { margin-left: -1rem; }
  .tl-hero__ridge figcaption { margin-left: 1rem; }
  .tl-hero__side .tl-hero__stats { gap: .9rem 1.25rem; }
  .tl-hero__side .tl-hero__stats dd { font-size: 1.75rem; }
  .tl-hero__ribbon { --rib: min(50svh, 40vw); top: 30svh; }
  .tl-hero__dek { font-size: 1.15rem; }
}

/* upright screens 900 pixels and wider: the ribbon is sized from the width and
   keeps its place beside the copy, which stays at the top of a tall screen */
@media (min-width: 900px) and (max-aspect-ratio: 1/1) {
  .tl-hero__ribbon { --rib: min(50svh, 44vw); top: min(30svh, 7svh + 15rem); }
}

/* ---- very large monitors ------------------------------------------------- */

/* the card column is wide there: the cards and their words grow to suit it */
@media (min-width: 1800px) and (min-height: 1000px) {
  .tl-item { font-size: 19px; max-width: 34rem; }
  .tl-item--minor p:not([class]) { font-size: 18px; }
  .tl-item--minor .tl-item__h { font-size: 1.6rem; }
}
@media (min-width: 2300px) and (min-height: 1250px) {
  .tl-item { font-size: 21px; max-width: 38rem; }
  .tl-item--minor p:not([class]) { font-size: 20px; }
  .tl-item--minor .tl-item__h { font-size: 1.8rem; }
  .tl-item__h { font-size: 2rem; }
  .tl-viz__small { font-size: 1.25rem; max-width: 30rem; }
}

/* when the lower chart folds to its title and summary, it takes only the room
   those need and the main chart has the rest */
@media (max-width: 899px) {
  .wh-js .tl__stage.is-tight .tl__charts { grid-template-rows: minmax(0, 1fr) auto; }
}

/* ---- epilogue: the Ministry of Health clipping (23 Nov 2026) -------------- */

/* The ministry's news page on the first lenacapavir shipment, torn out and
   laid beside the text it supports. Full strength, a little turned, like the
   1985 front page in the prologue. On wide screens it takes the empty right
   of the section; on narrow ones it sits between the pull line and the text. */
.af__clip { margin: 0 auto 3rem; max-width: 30rem; transform: rotate(1.5deg); }
.af__clip img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 36px rgba(4, 50, 62, .45));
}
.af__clip figcaption {
  margin: .9rem 0 0;
  font: 12px/1.45 var(--sans);
  color: var(--ink-3);
  transform: rotate(-1.5deg);
}
.af__clip figcaption a { color: inherit; }
@media (min-width: 900px) {
  .af { display: grid; grid-template-columns: minmax(0, 44rem) minmax(0, 1fr); column-gap: clamp(2rem, 5vw, 5rem); }
  .af > * { grid-column: 1; }
  .af > .af__clip {
    grid-column: 2;
    grid-row: 2 / span 3;
    align-self: center;
    justify-self: center;
    width: 100%;
    max-width: 38rem;
    margin: 0;
    transform: rotate(2deg);
  }
  .af__clip figcaption { transform: rotate(-2deg); }
  .af .af__body p:last-child { margin-bottom: 0; }
}

/* a data plate with too little room above its card stays off (timeline.js sets is-cramped) */
.wh-js .tl__doc--viz.is-cramped { opacity: 0 !important; visibility: hidden !important; }
