:root {
  --ink: #1a1714; --paper: #f5f2ee; --paper-mid: #ede9e3; --stone: #d4cfc9;
  --navy: #2b4a6f; --gold: #e8b75a; --ink-rule: rgba(26,23,20,0.45);
  --serif: Fraunces, Georgia, serif;
  --sans: "Source Sans 3", Helvetica, Arial, sans-serif;
  --gutter: clamp(1rem, 5vw, 4rem);
  --focus: #1a1714;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.5; overflow-wrap: break-word; }
h1, h2, h3, p, ol { margin: 0; padding: 0; font-weight: 400; }
ol { list-style: none; }
a { color: inherit; }
main:focus { outline: none; }
.dark { --focus: #f5f2ee; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.inner { width: 100%; max-width: 1320px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: 1rem; top: -6rem; z-index: 20; background: var(--paper); color: var(--ink); padding: 0.75rem 1rem; font-weight: 600; }
.skip:focus { top: 1rem; }
.h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.5rem, 7.4vw, 6.25rem); line-height: 1.03; letter-spacing: -0.025em; }
.h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.25rem, 5.4vw, 4.5rem); line-height: 1.05; letter-spacing: -0.025em; max-width: 60rem; }
.pad { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.label { display: block; margin-bottom: 1.25rem; font-weight: 600; font-size: 1.0625rem; }
.lead { max-width: 44rem; margin-top: 1.25rem; font-size: clamp(1.125rem, 1.8vw, 1.375rem); line-height: 1.4; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.625rem; color: var(--paper); font-weight: 600; text-decoration: none; }
.nav-link:hover, .nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0.625rem 1.75rem; font-size: 1.0625rem; font-weight: 600; text-decoration: none; border: 2px solid transparent; }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: var(--paper); border-color: var(--paper); }
.btn-line { color: var(--paper); border-color: var(--paper); }
.btn-line:hover { background: var(--paper); color: var(--ink); }

/* The 100 passengers. Without scroll-linked animation it is one still picture: 67 lit, all three statements showing. */
.frame { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(2rem, 6vw, 6rem); align-items: center; width: 100%; max-width: 1320px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) var(--gutter); }
.fig { display: grid; gap: 2rem; }
.fig-n { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(5rem, 15vw, 13rem); line-height: 0.95; letter-spacing: -0.04em; color: var(--gold); }
.fig-c { display: block; max-width: 24rem; font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.3; color: var(--paper); }
.waffle { display: grid; grid-template-columns: repeat(10, 1fr); gap: clamp(5px, 1vw, 12px); width: 100%; max-width: min(100%, 34rem, 55vh); justify-self: center; }
.w { display: block; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(245,242,238,0.55); }
.w-on { background: var(--gold); border-color: var(--gold); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.step { position: relative; padding: 3rem 1.5rem 0 0; font-family: var(--serif); font-weight: 300; font-size: clamp(1.375rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -0.01em; }
.step::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--ink); }
.step::after { content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); }
.step-broken::before { background: repeating-linear-gradient(to right, var(--ink) 0 8px, transparent 8px 16px); }
.step-open::before { display: none; }
.step-open::after { background: var(--gold); border: 2px solid var(--ink); }

.wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: clamp(2rem, 5vw, 3.5rem); background: rgba(245,242,238,0.3); border: 1px solid rgba(245,242,238,0.3); }
.tile { display: flex; flex-direction: column; gap: 0.5rem; min-height: 13rem; padding: 1.5rem; background: var(--ink); color: var(--paper); text-decoration: none; }
a.tile:focus-visible { outline-offset: -6px; }
.tile-n { font-family: var(--serif); font-weight: 300; font-size: clamp(2.75rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -0.025em; color: var(--gold); }
.tile-c { flex-grow: 1; }
.tile-s { font-size: 0.9375rem; font-weight: 600; color: rgba(245,242,238,0.82); }
a.tile:hover { background: var(--gold); color: var(--ink); }
a.tile:hover .tile-n, a.tile:hover .tile-s { color: var(--ink); }
a.tile:hover:focus-visible { outline-color: var(--ink); }

/* The two statements share one grid, so the dots, then the words, line up exactly. */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; column-gap: clamp(2rem, 6vw, 5rem); row-gap: 1.75rem; margin-top: clamp(2rem, 5vw, 3.5rem); }
.crowd { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(4px, 0.8vw, 10px); width: 100%; max-width: 26rem; }
.c { display: block; aspect-ratio: 1; border-radius: 50%; background: var(--stone); }
.c-all { background: var(--ink); }
.c-gold { background: #c9973a; }
.pair-t { font-family: var(--serif); font-weight: 300; font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; }

.path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.way { display: flex; flex-direction: column; gap: 0.875rem; padding-top: 1.25rem; border-top: 2px solid rgba(245,242,238,0.75); }
.way-t { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; }
.way-c { flex-grow: 1; color: rgba(245,242,238,0.92); }
.way .btn { align-self: flex-start; }

.source { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 clamp(1.5rem, 4vw, 3rem); align-items: center; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 1.5rem; border-top: 1px solid rgba(245,242,238,0.45); color: rgba(245,242,238,0.92); }
.struck { font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; text-decoration: line-through; text-decoration-thickness: 3px; color: rgba(245,242,238,0.85); }

.detail { border-top: 1px solid var(--ink-rule); }
.detail:last-of-type { border-bottom: 1px solid var(--ink-rule); }
.detail > summary { display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 1rem; align-items: center; min-height: 60px; padding: 0.75rem 0; font-size: 1.125rem; font-weight: 600; line-height: 1.3; cursor: pointer; list-style: none; }
.detail > summary::-webkit-details-marker { display: none; }
.detail > summary:hover { color: var(--navy); }
.detail-mark { width: 20px; height: 20px; }
.detail[open] .detail-mark { transform: rotate(45deg); }
.detail-body { max-width: 46rem; padding: 0 0 1.5rem; color: #3d3935; }
.inside { margin-top: 1rem; }
.inside li { padding: 0.5rem 0; border-top: 1px solid var(--stone); }
.group-t { margin: clamp(2.5rem, 5vw, 3.5rem) 0 1rem; font-family: var(--serif); font-weight: 300; font-size: clamp(1.625rem, 3vw, 2.25rem); line-height: 1.1; letter-spacing: -0.015em; }

.foot-link { display: inline-flex; align-items: center; min-height: 44px; padding-right: 1.25rem; color: rgba(245,242,238,0.85); text-decoration: none; }
.foot-link:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 0.25em; }

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .step { padding: 0 0 2.25rem 2.5rem; }
  .step::before { top: 0; bottom: 0; left: 9px; right: auto; width: 2px; height: auto; }
  .step-broken::before { background: repeating-linear-gradient(to bottom, var(--ink) 0 8px, transparent 8px 16px); }
  .step-open { padding-bottom: 0; }
  .wall, .path { grid-template-columns: 1fr; }
  .tile { min-height: 0; padding: 1.25rem; }
  .tile-c { flex-grow: 0; }
  .pair { grid-template-columns: 1fr; grid-template-rows: none; }
  .pair > :nth-child(1) { order: 1; } .pair > :nth-child(3) { order: 2; margin-bottom: 1.5rem; }
  .pair > :nth-child(2) { order: 3; } .pair > :nth-child(4) { order: 4; }
  .source { grid-template-columns: 1fr; gap: 0.75rem; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn, a.tile { transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
  .detail-mark { transition: transform 0.25s ease; }
  @supports (animation-timeline: view()) { @media (min-height: 640px) {
    .stage { height: min(320vh, 288rem); view-timeline: --figs block; }
    .stage-quick { height: min(200vh, 180rem); }
    .pin { position: sticky; top: 0; display: flex; align-items: center; height: min(100vh, 90rem); background: var(--ink); overflow: hidden; }
    .fig { grid-template-areas: "f"; }
    .fig > * { grid-area: f; }
    .fig-a { animation: fa linear both; animation-timeline: --figs; animation-range: contain 0% contain 100%; }
    .fig-b { animation: fb linear both; animation-timeline: --figs; animation-range: contain 0% contain 100%; }
    .fig-c3 { animation: fc linear both; animation-timeline: --figs; animation-range: contain 0% contain 100%; }
    .k1 { animation: k1 linear both; animation-timeline: --figs; animation-range: contain 0% contain 100%; }
    .k2 { animation: k2 linear both; animation-timeline: --figs; animation-range: contain 0% contain 100%; }
    .k3 { animation: k3 linear both; animation-timeline: --figs; animation-range: contain 0% contain 100%; }
    .k4 { animation: k4 linear both; animation-timeline: --figs; animation-range: contain 0% contain 100%; }
    .k5 { animation: k5 linear both; animation-timeline: --figs; animation-range: contain 0% contain 100%; }
    .k6 { animation: k6 linear both; animation-timeline: --figs; animation-range: contain 0% contain 100%; }
  } }
}
@keyframes fa { 0%, 10% { opacity: 1; } 17%, 100% { opacity: 0; } }
.stage-quick .fig-a { animation-name: qa; } .stage-quick .fig-b { animation-name: qb; } .stage-quick .fig-c3 { animation-name: qc; }
@keyframes qa { 0%, 27% { opacity: 1; } 33%, 100% { opacity: 0; } }
@keyframes qb { 0%, 27% { opacity: 0; } 33%, 60% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes qc { 0%, 60% { opacity: 0; } 66%, 100% { opacity: 1; } }
@keyframes fb { 0%, 17% { opacity: 0; } 24%, 54% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes fc { 0%, 60% { opacity: 0; } 67%, 100% { opacity: 1; } }
@keyframes k1 { 0%, 12% { background: var(--gold); border-color: var(--gold); } 24%, 100% { background: transparent; border-color: rgba(245,242,238,0.55); } }
@keyframes k2 { 0%, 54% { background: var(--gold); border-color: var(--gold); } 66%, 100% { background: transparent; border-color: rgba(245,242,238,0.55); } }
@keyframes k3 { 0%, 12% { background: var(--gold); border-color: var(--gold); } 24%, 54% { background: transparent; border-color: rgba(245,242,238,0.55); } 66%, 100% { background: var(--gold); border-color: var(--gold); } }
@keyframes k4 { 0%, 54% { background: transparent; border-color: rgba(245,242,238,0.55); } 66%, 100% { background: var(--gold); border-color: var(--gold); } }
@keyframes k5 { 0%, 12% { background: transparent; border-color: rgba(245,242,238,0.55); } 24%, 100% { background: var(--gold); border-color: var(--gold); } }
@keyframes k6 { 0%, 12% { background: transparent; border-color: rgba(245,242,238,0.55); } 24%, 54% { background: var(--gold); border-color: var(--gold); } 66%, 100% { background: transparent; border-color: rgba(245,242,238,0.55); } }
.fig-long .fig-n { font-size: clamp(3.5rem, 8.5vw, 7.5rem); line-height: 1; letter-spacing: -0.03em; }
.source-plain { grid-template-columns: 1fr; }
.frame-solo { grid-template-columns: 1fr; }
@media (min-width: 900px) { .steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .steps-5 .step { font-size: clamp(1.25rem, 1.9vw, 1.625rem); } }
@media (forced-colors: active) {
  .w-on, .c, .step::after { forced-color-adjust: none; }
}
