/* Concord: The school on the ridge */

:root {
  --ink: #0f1719;
  --paper: #ffffff;
  --cream: #efeae0;
  --gold: #c9a063;
  --teal: #356870;
  --teal-d: #234955;
  --blue: #7a99ba;
  --terra: #c17f65;
  --muted: #6d7577;
  --video-bg: #fdf9df;

  --rail: 56px;
  --m: clamp(20px, 5vw, 88px);
  --gap: clamp(12px, 1.6vw, 28px);

  --serif: "Crimson Pro", Georgia, "Times New Roman", serif;
  --display: "Gloock", "Crimson Pro", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.15, .5, .05, 1);
  --ease-io: cubic-bezier(.4, 0, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

main { margin-left: var(--rail); overflow-x: clip; background: var(--paper); }

/* ---------- planes and the visible grid ---------- */
.plane {
  position: relative;
  --line: rgba(53, 104, 112, .2);
  background-color: var(--bg);
  color: var(--fg);
}
/* column hairlines: drawn only behind blocks that set text in three columns */
.intro__body, .chapter__body, .colophon__grid {
  background-image:
    linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line)),
    linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line));
  background-size: 1px 100%;
  background-repeat: no-repeat;
  background-position:
    var(--m) 0,
    calc(var(--m) + (100% - 2 * var(--m)) / 3) 0,
    calc(var(--m) + (100% - 2 * var(--m)) * 2 / 3) 0,
    calc(100% - var(--m)) 0;
  padding-bottom: clamp(28px, 3.4vw, 56px);
}
.chapter__body--media { background-image: none; }
.light { --bg: var(--paper); --fg: var(--ink); }
.cream { --bg: var(--cream); --fg: var(--ink); }
.dark  { --bg: var(--ink); --fg: #fff; --line: rgba(201, 160, 99, .28); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-inline: var(--m);
}

.rule {
  display: block; border: 0; height: 1px; margin: 0 var(--m);
  background: currentColor; transform-origin: left center;
}
.rule--soft { opacity: .28; margin-block: clamp(48px, 6vw, 96px); }
.rule--gold { background: var(--gold); }

/* ---------- type ---------- */
.display {
  font: 400 clamp(46px, 8.4vw, 140px)/.94 var(--serif);
  letter-spacing: -.022em;
  text-wrap: balance;
}
.display--xl { font-size: clamp(48px, 9.4vw, 160px); }
.display--l  { font-size: clamp(40px, 5.4vw, 88px); }
.display--m  { font-size: clamp(34px, 4.2vw, 66px); line-height: 1; }
.display--s  { font-size: clamp(26px, 2.8vw, 42px); line-height: 1.05; }

.sub {
  font: italic 500 clamp(20px, 2.1vw, 32px)/1.2 var(--serif);
  color: var(--teal);
  margin-top: .6em;
}
.sub--up { font-style: normal; font-weight: 400; max-width: 30em; }
.sub--s { font-size: clamp(17px, 1.4vw, 21px); font-style: normal; font-weight: 400; }

.kicker {
  font: 400 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
  color: var(--muted);
  margin-bottom: clamp(18px, 2vw, 32px);
}
.kicker i { font-style: normal; color: var(--fg); }
.kicker--gold { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; }
.badge {
  display: inline-block; background: var(--ink); color: #fff;
  font: 500 13px/1 var(--mono); letter-spacing: 0; padding: 7px 8px;
}

.prose p { font-size: clamp(17px, 1.28vw, 20px); line-height: 1.52; hanging-punctuation: first; }
.prose p + p { margin-top: .85em; }
.prose h3 { font: 700 clamp(18px, 1.35vw, 21px)/1.3 var(--serif); margin-bottom: .25em; }
.prose > div + div { margin-top: clamp(28px, 3vw, 44px); }
.prose .lede, .prose--lede p { font-size: clamp(22px, 1.95vw, 31px); line-height: 1.24; letter-spacing: -.005em; }
.prose em { font-style: italic; }

.cap { font: 400 13px/1.45 var(--serif); margin-top: 10px; max-width: 46em; }
.cap b { font: 400 10.5px/1.45 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.note { font: 400 10px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.pill {
  position: absolute; z-index: 2; top: 12px; left: 12px;
  background: var(--ink); color: #fff;
  font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 11px; border-radius: 99px;
}

.tag {
  display: inline-block; background: var(--gold); color: var(--ink);
  font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; padding: 7px 12px;
}
.dek { font: 400 clamp(15px, 1.15vw, 17px)/1.45 var(--sans); }

.endmark {
  display: inline-block; width: .68em; aspect-ratio: 949 / 1000; margin-left: .4em; vertical-align: -.02em;
  background: url(assets/figures/emblem-ink.png) center / contain no-repeat;
}
.fig { display: block; height: auto; }

/* ---------- figures (images) ---------- */
.ph { position: relative; overflow: hidden; background: var(--cream); }
.ph--plain { background: transparent; }
.ph img { width: 100%; height: auto; }
.ph img[data-parallax] { transform: translate3d(0, var(--py, 0px), 0) scale(1.14); will-change: transform; }

/* ---------- reveal system (only when JS is running) ---------- */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 26px, 0);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="words"] { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.w > span {
  display: inline-block; transform: translate3d(0, 108%, 0);
  transition: transform .8s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--d, 0s));
}
.in .w > span { transform: none; }
.js .rule[data-reveal] { opacity: 1; transform: scaleX(0); transition: transform 1.2s var(--ease-io); }
.js .rule[data-reveal].in { transform: scaleX(1); }
.js [data-reveal="img"] { opacity: 1; transform: none; }
.js [data-reveal="img"] .ph { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-io); transition-delay: var(--d, 0s); }
.js [data-reveal="img"].in .ph { clip-path: inset(0 0 0 0); }
.js [data-reveal="img"] figcaption { opacity: 0; transition: opacity .8s .5s; }
.js [data-reveal="img"].in figcaption { opacity: 1; }

/* ---------- pinned sections ---------- */
.pin { height: calc(var(--len, 2) * 100vh); }
.pin__stick { position: sticky; top: 0; height: 100vh; overflow: hidden; }

/* =====================================================
   RAIL
   ===================================================== */
.rail {
  position: fixed; z-index: 60; inset: 0 auto 0 0; width: var(--rail);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 18px 0;
  background: var(--rb); color: var(--rf);
  border-right: 1px solid var(--rl);
  transition: background-color .5s, color .5s, border-color .5s;
}
.rail[data-theme="dark"]  { --rb: var(--ink); --rf: #fff; --rl: rgba(201, 160, 99, .28); }
.rail[data-theme="light"] { --rb: #fff; --rf: var(--ink); --rl: rgba(53, 104, 112, .25); }
.rail__title {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font: 500 12px/1 var(--sans); letter-spacing: .02em; white-space: nowrap;
}
.rail__title { max-height: 36vh; overflow: hidden; }
.rail__title span { display: inline-block; transition: opacity .3s, transform .3s; }
.rail__title.swap span { opacity: 0; transform: translateY(8px); }
.rail__next { width: var(--rail); height: 46px; display: grid; place-items: center; color: var(--gold); }
.rail__next svg { width: 14px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.4; overflow: visible; transition: transform .5s var(--ease); }
.rail__next:hover svg { transform: translateY(5px); }
.rail__next.up svg { transform: rotate(180deg); }
.rail__next.up:hover svg { transform: rotate(180deg) translateY(5px); }
.rail__progress { position: absolute; top: 0; bottom: 0; right: -1px; width: 3px; pointer-events: none; }
.rail__progress i { display: block; width: 100%; height: 100%; background: var(--gold); transform-origin: top; transform: scaleY(var(--sp, 0)); }
.rail__menu {
  position: absolute; left: 0; top: 50%; width: var(--rail); height: var(--rail); margin-top: calc(var(--rail) / -2);
  background: var(--gold); display: grid; place-content: center; gap: 5px;
  transition: background-color .25s;
}
.rail__menu:hover { background: #dbb47a; }
.rail__menu span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .45s var(--ease-io), opacity .2s; }
.menu-open .rail__menu span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .rail__menu span:nth-child(2) { opacity: 0; }
.menu-open .rail__menu span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   MENU (a plain contents list, after the strip on the cover)
   ===================================================== */
.menu {
  position: fixed; z-index: 50; inset: 0 0 0 var(--rail); overflow-y: auto;
  background: var(--ink); color: #fff;
  visibility: hidden; opacity: 0; transition: opacity .35s, visibility 0s .4s;
}
.menu-open .menu { visibility: visible; opacity: 1; transition: opacity .3s, visibility 0s; }
.menu__in {
  --pad: clamp(24px, 6vh, 64px);
  min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: var(--gap);
  padding: var(--pad) var(--m); align-items: start;
}
.menu__side { position: sticky; top: var(--pad); min-height: calc(100vh - 2 * var(--pad)); display: flex; flex-direction: column; align-items: flex-start; }
.menu__mast { font: 400 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.menu__word { font: 400 clamp(40px, 4.9vw, 80px)/.8 var(--display); letter-spacing: -.012em; margin: 18px 0 0 -.03em; padding-bottom: .06em; }
.menu__tag { font: 400 clamp(18px, 1.6vw, 25px)/1.15 var(--serif); margin-top: 14px; max-width: 13em; text-wrap: balance; }
.menu__foot { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 6px 26px; font: 700 14px/1.3 var(--sans); color: var(--gold); }
.menu__list { border-top: 1px solid var(--gold); }
.menu__list > li {
  border-bottom: 1px solid var(--gold); padding: clamp(10px, 1.9vh, 20px) 0;
  opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.menu-open .menu__list > li { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 55ms + .1s); }
.menu__h { display: flex; align-items: center; gap: 14px; font: 700 clamp(17px, 1.55vw, 23px)/1.1 var(--sans); color: var(--gold); transition: color .25s; }
.menu__h b { flex: none; display: grid; place-items: center; width: 34px; height: 34px; background: var(--gold); color: var(--ink); font: 400 21px/1 var(--sans); transition: transform .45s var(--ease); }
.menu__h:hover, .menu__h:focus-visible { color: #fff; }
.menu__h:hover b, .menu__h:focus-visible b { transform: translateX(6px); }
.menu__list ul { display: flex; flex-wrap: wrap; gap: 2px 24px; margin: 9px 0 0 48px; }
.menu__list ul a, .menu__foot a {
  font-size: clamp(16px, 1.3vw, 19px); line-height: 1.4; opacity: .88;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease), opacity .2s;
}
.menu__foot a { font-size: 14px; }
.menu__list ul a:hover, .menu__foot a:hover { background-size: 100% 1px; opacity: 1; }

/* =====================================================
   COVER / HERO
   ===================================================== */
.hero { --len: 2.3; }
.hero__stick { --fl: calc(var(--m) + (100% - 2 * var(--m)) / 3); padding: 0 var(--m); }
.hero__mast {
  display: flex; align-items: center; justify-content: center; gap: .8em;
  padding-top: clamp(16px, 3.4vh, 34px);
  font: 700 clamp(10px, .95vw, 13px)/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.hero__mast::before, .hero__mast::after { content: ""; flex: 1; height: 1px; background: var(--gold); opacity: .8; }
.hero__mast i { font-style: normal; color: var(--gold); }
.hero__word {
  font: 400 20vw/.8 var(--display);
  letter-spacing: -.012em; white-space: nowrap;
  margin: clamp(10px, 2vh, 22px) 0 0 -.035em; padding-bottom: .06em;
  width: max-content;
}
.hero__mast, .hero__word, .hero__side {
  opacity: calc(1 - var(--e, 0) * 1.8);
  transform: translate3d(0, calc(var(--e, 0) * -9vh), 0);
}
.hero__side {
  position: absolute; left: var(--m); top: var(--ft, 46vh); bottom: var(--m);
  width: calc((100% - 2 * var(--m)) / 3 - var(--gap));
  display: flex; flex-direction: column;
}
.hero__tag { font: 400 clamp(22px, 2.15vw, 34px)/1.12 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.hero__inside { margin-top: 12px; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.3; }
.hero__inside b { font: 700 .72em var(--serif); letter-spacing: .14em; text-transform: uppercase; }
.hero__inside em { font-weight: 600; }
.hero__toc { margin-top: auto; border-top: 1px solid var(--gold); }
.hero__toc > li { border-bottom: 1px solid var(--gold); padding: 9px 0; display: grid; grid-template-columns: 1fr; }
.hero__toc-h { display: flex; align-items: center; gap: 10px; font: 700 15px/1 var(--sans); color: var(--gold); }
.hero__toc-h b { display: grid; place-items: center; width: 26px; height: 26px; background: var(--gold); color: var(--ink); font: 400 17px/1 var(--sans); transition: transform .4s var(--ease); }
.hero__toc-h:hover b { transform: translateX(4px); }
.hero__toc ul { display: flex; flex-wrap: wrap; column-gap: 14px; margin: 6px 0 0 36px; }
.hero__toc ul a { font-size: 15px; line-height: 1.35; opacity: .86; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease), opacity .2s; }
.hero__toc ul a:hover { background-size: 100% 1px; opacity: 1; }

.hero__frame {
  position: absolute; overflow: hidden; background: var(--video-bg);
  container-type: size;
  left:   calc((1 - var(--e, 0)) * var(--fl));
  top:    calc((1 - var(--e, 0)) * var(--ft, 46vh));
  right:  calc((1 - var(--e, 0)) * var(--m));
  bottom: calc((1 - var(--e, 0)) * var(--m));
}
.hero__frame video {
  position: absolute; left: 50%; top: 50%;
  width: min(106cqw, 172cqh); height: auto; aspect-ratio: 1; max-width: none;
  transform: translate(-50%, -53%);
  transition: opacity .55s linear;
}
.hero__frame video.fade { opacity: 0; }
.hero__pause {
  position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(15, 23, 25, .82); display: grid; place-items: center;
  opacity: .0; transition: opacity .3s;
}
.hero__frame:hover .hero__pause, .hero__pause:focus-visible, .hero__pause[aria-pressed="true"] { opacity: 1; }
.vpause { position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%; background: rgba(15, 23, 25, .82); display: grid; place-items: center; opacity: 0; transition: opacity .3s; }
.film__frame:hover .vpause, .vpause:focus-visible, .vpause[aria-pressed="true"] { opacity: 1; }
.vpause i { width: 10px; height: 12px; border-inline: 3px solid #fff; }
.vpause[aria-pressed="true"] i { width: 0; height: 0; border: 7px solid transparent; border-left: 11px solid #fff; border-right: 0; margin-left: 3px; }
.hero__pause i { width: 10px; height: 12px; border-inline: 3px solid #fff; }
.hero__pause[aria-pressed="true"] i { width: 0; height: 0; border: 7px solid transparent; border-left: 11px solid #fff; border-right: 0; margin-left: 3px; }
.hero__cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  opacity: calc((var(--e, 0) - .8) * 5);
}
.hero__cue span::after { content: ""; display: block; width: 1px; height: 26px; margin: 8px auto 0; background: currentColor; animation: cue 1.8s var(--ease-io) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1) translateY(26px); opacity: 0; } }

/* =====================================================
   FILMS AND THE MOVE
   the map is a drawn motion graphic set into the page; only the climb takes the full screen
   ===================================================== */
.moveintro { padding: clamp(40px, 5vw, 80px) 0 clamp(64px, 8vw, 130px); }
.moveintro__grid { align-items: end; row-gap: 32px; }
.moveintro__copy { grid-column: 1 / span 4; }
.moveintro__map { grid-column: 5 / span 8; }
.moveintro__line { font: 400 clamp(30px, 3.5vw, 56px)/1.03 var(--serif); letter-spacing: -.015em; margin-top: 18px; text-wrap: balance; }
.mapg { display: block; width: 100%; height: auto; background: #d6e0dc; }
.mg-road { fill: none; stroke: #f3efe6; stroke-width: 5; stroke-linejoin: round; }
.mg-river { fill: none; stroke: #2a5560; stroke-width: 58; stroke-linecap: round; }
.mg-flow { fill: none; stroke: #6f98a0; stroke-width: 1.6; stroke-dasharray: 14 22; animation: mgflow 6s linear infinite; }
.mg-ghost { fill: none; stroke: #234955; stroke-opacity: .42; stroke-width: 1.5; stroke-dasharray: 2 7; }
.mg-bridge { fill: none; stroke: #f3efe6; stroke-width: 7; }
.mg-contour { fill: none; stroke: #234955; stroke-opacity: .42; stroke-width: 1.2; }
.mg-note { font: 500 11px var(--mono); letter-spacing: .28em; text-transform: uppercase; fill: #dfe9e6; }
.mg-note--d { fill: #234955; fill-opacity: .7; }
.mg-route { fill: none; stroke: var(--terra); stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: .1 11; }
.mg-pt circle { fill: #f3efe6; stroke: #17323b; stroke-width: 2.5; }
.mg-pt .pulse { fill: none; stroke: var(--terra); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: mgpulse 2.4s var(--ease) infinite; }
.mg-pt rect { fill: #17323b; }
.mg-pt text { font: 500 13px var(--mono); letter-spacing: .2em; text-transform: uppercase; fill: #fff; }
.mg-pt--b { transition: opacity .6s; }
.mapg:not(.arrived) .mg-pt--b { opacity: .35; }
.mapg:not(.arrived) .mg-pt--b .pulse { animation: none; opacity: 0; }
.mg-walker { fill: var(--terra); stroke: #fff; stroke-width: 2.5; }
@keyframes mgflow { to { stroke-dashoffset: -72; } }
@keyframes mgpulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }

.move { background-image: none; }
.move__stick { background: #0b1113; }
.move__stick video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.move__stick::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(11, 17, 19, .3) 0%, rgba(11, 17, 19, 0) 28%, rgba(11, 17, 19, 0) 50%, rgba(11, 17, 19, .86) 100%); }
.move__copy { position: absolute; z-index: 1; left: var(--m); right: var(--m); bottom: clamp(40px, 7vh, 72px); }
.move__line { font: 400 clamp(32px, 5.4vw, 96px)/.99 var(--serif); letter-spacing: -.02em; max-width: 15em; text-wrap: balance; margin: 18px 0 clamp(18px, 3vh, 34px); }
.move__copy .cap { margin: 0; color: rgba(255, 255, 255, .86); }
.move__bar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .12); }
.move__bar i { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(var(--p, 0)); }
/* stacked version: phones, upright tablets, reduced motion, and no JavaScript */
.move--static { height: auto; }
.move--static .move__stick { position: relative; height: auto; overflow: visible; padding-bottom: clamp(40px, 8vw, 80px); }
.move--static .move__stick::after { display: none; }
.move--static .move__stick video { position: static; height: auto; aspect-ratio: 16 / 9; }
.move--static .move__copy { position: static; padding: 26px var(--m) 0; }
.move--static .move__line { font-size: clamp(32px, 7.6vw, 72px); margin-bottom: 18px; }
.move--static .move__bar { display: none; }

/* chapter 2 opens as a spread: title on the left, the film as a plate on the right */
.chapter__head--film { align-items: end; row-gap: 36px; }
.chapter__head--film > .chapter__title { grid-column: 1 / span 5; }
.chapter__head--film > .film { grid-column: 6 / span 7; }
.film__frame { position: relative; background: #d8cdb8; box-shadow: 0 24px 44px -28px rgba(15, 23, 25, .5); }
.film video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* =====================================================
   INTRODUCTION
   ===================================================== */
.intro { padding-bottom: clamp(60px, 8vw, 120px); }
.intro__lead { padding: clamp(40px, 6vw, 96px) var(--m) 0; }
.intro__lead .ph { background: #fff; }
.intro__lead img { width: min(100%, 1180px); margin-inline: auto; }
.intro > .rule { margin-top: clamp(28px, 3vw, 48px); }
.intro__head { padding-top: clamp(24px, 3vw, 44px); }
.intro__head > * { grid-column: 1 / -1; }
.intro__body { margin-top: clamp(44px, 6vw, 96px); row-gap: 40px; align-items: start; }
.intro__body > .prose { grid-column: 5 / span 4; }
.intro__body > .prose--lede { grid-column: 1 / span 4; }
.intro__facade { grid-column: 9 / span 4; }
.intro__facade .ph { aspect-ratio: 4 / 5.6; }
.intro__facade img { height: 100%; object-fit: cover; }

.facts {
  margin: clamp(48px, 6vw, 96px) var(--m) 0; padding: clamp(18px, 2vw, 28px) clamp(18px, 2.2vw, 32px);
  background: var(--cream);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px var(--gap);
}
.facts dt { font: 400 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { font: 400 clamp(20px, 1.9vw, 28px)/1.2 var(--serif); margin-top: 4px; }

/* =====================================================
   FULL-BLEED PINNED PHOTOGRAPHS
   ===================================================== */
.bleed__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(calc(1.22 - var(--p, 0) * .22)); will-change: transform;
}
.bleed__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 23, 25, .15) 0%, rgba(15, 23, 25, 0) 35%, rgba(15, 23, 25, .82) 100%); }
.bleed__statement {
  position: absolute; left: var(--m); right: var(--m); bottom: clamp(84px, 13vh, 150px);
  font: 400 clamp(34px, 6vw, 104px)/.98 var(--serif); letter-spacing: -.02em; max-width: 13.5em; text-wrap: balance;
}
.bleed__cap { position: absolute; left: var(--m); bottom: clamp(22px, 4vh, 40px); right: var(--m); margin: 0; color: rgba(255, 255, 255, .86); }
.bleed__year {
  position: absolute; left: var(--m); bottom: clamp(60px, 9vh, 110px);
  font: 400 clamp(90px, 22vw, 380px)/.8 var(--display); color: #fff; letter-spacing: -.02em;
  transform: translate3d(0, calc((1 - var(--p, 0)) * 16vh), 0); opacity: calc(.25 + var(--p, 0) * .75);
  mix-blend-mode: soft-light;
}

/* =====================================================
   CHAPTERS
   ===================================================== */
.chapter { padding-bottom: clamp(70px, 9vw, 150px); }
.chapter__head { padding-top: clamp(80px, 11vw, 190px); padding-bottom: clamp(26px, 3vw, 48px); }
.chapter__head > * { grid-column: 1 / -1; }
.chapter--tight .chapter__head { padding-top: clamp(64px, 7vw, 120px); }
.chapter__body { padding-top: clamp(36px, 5vw, 80px); row-gap: 48px; align-items: start; }
.chapter__aside { grid-column: 1 / span 4; position: sticky; top: clamp(24px, 6vh, 64px); }
.chapter__text { grid-column: 5 / span 4; }
.chapter__side { grid-column: 9 / span 4; display: grid; gap: clamp(28px, 3vw, 48px); }
.chapter__body--two > .prose:nth-child(1) { grid-column: 5 / span 4; }
.chapter__body--two > .prose:nth-child(2) { grid-column: 9 / span 4; }
.chapter__body--media > figure { grid-column: 1 / span 4; }
.chapter__body--media > .prose { grid-column: 5 / span 6; }

.chapter__aside .fig { width: clamp(70px, 8vw, 124px); }
.quote { margin-top: clamp(18px, 2vw, 30px); }
.quote p { font: italic 500 clamp(24px, 2.5vw, 40px)/1.14 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.quote footer { margin-top: 14px; font: 400 13px/1.45 var(--serif); color: var(--muted); max-width: 28em; }

.spec { width: 100%; border-collapse: collapse; background: var(--cream); display: block; padding: clamp(16px, 1.6vw, 24px); }
.spec caption { display: block; text-align: left; font: 400 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 6px; }
.spec tbody { display: block; }
.spec tr { display: grid; grid-template-columns: 7.2em 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(15, 23, 25, .1); transition: background-color .25s, padding .3s var(--ease); }
.spec tr:last-child { border-bottom: 0; }
.spec tr:hover { background: rgba(255, 255, 255, .6); padding-inline: 8px; }
.spec th { font: 400 10.5px/1.7 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: left; }
.spec td { font: 400 15px/1.35 var(--serif); padding: 0; }

.wide { margin-top: clamp(56px, 7vw, 120px); padding-inline: var(--m); }
.wide--bleed { padding-inline: 0; }
.wide--bleed .ph { max-height: 92vh; }
.wide--bleed .cap { padding-inline: var(--m); }

.materials h4 { font: 700 13px/1 var(--sans); margin-bottom: 12px; }
.swatches { display: flex; gap: 6px; }
.swatches li {
  flex: 1; aspect-ratio: 1; background: var(--s); position: relative; cursor: default;
  outline: 1px solid rgba(15, 23, 25, .08); outline-offset: -1px;
  transition: flex .5s var(--ease), transform .5s var(--ease);
}
.swatches span {
  position: absolute; left: 6px; bottom: 6px; font: 600 10px/1.1 var(--sans); color: #fff; mix-blend-mode: difference;
  opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; white-space: nowrap;
}
.swatches li:hover, .swatches li:focus-visible { flex: 2.4; }
.swatches li:hover span, .swatches li:focus-visible span { opacity: 1; transform: none; }
.materials .note { margin-top: 8px; }

/* strips */
.strip {
  margin: clamp(48px, 6vw, 96px) var(--m) 0; padding: clamp(18px, 2.2vw, 30px) clamp(18px, 2.4vw, 36px);
  background: var(--cream); display: flex; align-items: center; gap: clamp(20px, 4vw, 64px);
}
.strip .fig { width: clamp(64px, 7vw, 104px); flex: none; }
.strip .cap { margin: 0; font-size: 15px; }
.strip--stats p { flex: 1; }
.strip--stats b { display: block; font: 500 clamp(34px, 4.2vw, 64px)/1 var(--serif); letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; }
.strip--stats span { display: block; font: 400 10.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-top: 8px; }

/* =====================================================
   HOTSPOTS (the retention drawing)
   ===================================================== */
.dot {
  position: absolute; left: var(--x); top: var(--y); width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 50%; background: #fff; border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  transition: transform .45s var(--ease), background-color .3s, border-color .3s, color .3s;
}
.dot i { font: 700 11px/1 var(--sans); font-style: normal; }
.dot::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid var(--terra); opacity: 0; }
.dot:hover { transform: scale(1.15); }
.dot.on { background: var(--terra); border-color: var(--terra); color: #fff; transform: scale(1.3); z-index: 2; }
.dot.on::after { animation: ping 1.6s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }

/* three schools */
.trio { padding: clamp(64px, 8vw, 130px) 0 clamp(70px, 9vw, 150px); }
.trio__head { align-items: baseline; }
.trio__head h3 { grid-column: 1 / span 8; }
.trio__head .note { grid-column: 9 / span 4; text-align: right; }
.trio__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); padding: clamp(22px, 3vw, 40px) var(--m) 0; }
.trio__row .ph { aspect-ratio: 4 / 5; }
.trio__row img { height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: grayscale(1) contrast(1.02); }
.trio__row figure:hover img { transform: scale(1.06); }
.trio__row figcaption { margin-top: 10px; }
.trio__row figcaption b { display: block; font: 700 14px/1.3 var(--sans); }
.trio__row figcaption span { font: 400 10.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.trio__cap { padding-inline: var(--m); margin-top: 18px; }

/* =====================================================
   ALL FOUR SIDES (the model)
   ===================================================== */
.model { padding: clamp(72px, 9vw, 150px) 0; }
.model__grid { align-items: center; row-gap: 36px; }
.model__copy { grid-column: 1 / span 4; }
.model__fig { grid-column: 5 / span 8; }
.model__dek { margin-top: 18px; max-width: 26em; color: rgba(255, 255, 255, .82); }
.model__controls { display: none; margin-top: clamp(18px, 2vw, 28px); border-top: 1px solid rgba(201, 160, 99, .45); }
/* the eight features, each tied to its place on the model */
.mfeat { margin-top: clamp(22px, 2.6vw, 38px); }
.mfeat__h { font: 400 10.5px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); max-width: 30em; }
.mfeat__list { margin-top: 12px; border-top: 1px solid rgba(201, 160, 99, .45); }
.mfeat__list li { border-bottom: 1px solid rgba(201, 160, 99, .22); }
.mfeat__list button { display: grid; grid-template-columns: 28px 1fr; width: 100%; text-align: left; padding: clamp(5px, .9vh, 9px) 0; align-items: start; color: #fff; opacity: .62; transition: opacity .3s; }
.mfeat__list b { font: 700 13px/1.5 var(--sans); color: var(--gold); transition: color .3s; }
.mfeat__list strong { display: block; font: 700 14px/1.5 var(--sans); }
.mfeat__list em { display: block; font: 400 15px/1.35 var(--serif); font-style: normal; color: rgba(255, 255, 255, .86); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s, padding .5s var(--ease); }
.mfeat__list button:hover, .mfeat__list button[aria-pressed="true"] { opacity: 1; }
.mfeat__list button[aria-pressed="true"] b { color: var(--terra); }
.mfeat__list button[aria-pressed="true"] em { max-height: 4.2em; opacity: 1; padding: 2px 0 4px; }
.model:not(.model--live) .mfeat__list button { opacity: 1; cursor: default; }   /* without the model, the list is simply read */
.model:not(.model--live) .mfeat__list em { max-height: none; opacity: 1; padding: 2px 0 4px; }
.model--live .model__controls { display: block; }
.mctl { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(201, 160, 99, .45); }
.mctl__l { font: 400 10.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.mseg { display: flex; gap: 6px; flex-wrap: wrap; }
.mseg button { min-width: 38px; padding: 9px 12px; border: 1px solid rgba(255, 255, 255, .3); color: #fff; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; transition: background-color .25s, color .25s, border-color .25s; }
.mseg button:hover { border-color: var(--gold); }
.mseg button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.mrange { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: transparent; cursor: ew-resize; }
.mrange::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold)) 0 0 / 100% 100%, transparent; }
.mrange::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7px; background: var(--gold); border: 0; border-radius: 0; }
.mrange::-moz-range-track { height: 2px; background: var(--gold); }
.mrange::-moz-range-thumb { width: 16px; height: 16px; background: var(--gold); border: 0; border-radius: 0; }

.model__stage { position: relative; aspect-ratio: 4 / 3; outline: 1px solid rgba(201, 160, 99, .3); background: radial-gradient(90% 80% at 50% 62%, #17272c 0%, var(--ink) 72%); }
/* edges overshoot the corners, like trim marks on a drawing sheet */
.model__stage::before { content: ""; position: absolute; inset: -1px -18px; border-block: 1px solid rgba(201, 160, 99, .3); pointer-events: none; }
.model__stage::after { content: ""; position: absolute; inset: -18px -1px; border-inline: 1px solid rgba(201, 160, 99, .3); pointer-events: none; }
.model__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; cursor: grab; touch-action: pan-y; outline-offset: -3px; }
.model__stage.is-dragging canvas { cursor: grabbing; }
.model--live canvas { display: block; }
.model__labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; display: none; }
.model--live .model__labels { display: block; }
.mtag { position: absolute; left: 0; top: 0; display: flex; margin: -30px 0 0 8px; white-space: nowrap; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.mtag::before { content: ""; position: absolute; left: -8px; bottom: -8px; width: 1px; height: 30px; background: var(--terra); }
.mtag b { font-weight: 500; background: var(--terra); color: #fff; padding: 5px 6px; }
.mtag i { font-style: normal; background: var(--cream); color: var(--ink); padding: 5px 8px; }
.mtag--hot i { background: var(--ink); color: #fff; outline: 1px solid rgba(255, 255, 255, .25); outline-offset: -1px; }
.mcompass { position: absolute; left: 0; top: 0; font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--gold); }
.model__read, .model__hint { position: absolute; bottom: 12px; margin: 0; display: none; font: 400 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.model--live .model__read, .model--live .model__hint { display: block; }
.model__read { left: 14px; color: rgba(255, 255, 255, .78); }
.model__hint { right: 14px; color: var(--gold); transition: opacity .5s; }
.model__stage.is-touched .model__hint { opacity: 0; }
.model__fallback { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; padding: 10px; }
.model--live .model__fallback { display: none; }
.model__fallback figure { position: relative; min-height: 0; }
.model__fallback img { width: 100%; height: 100%; object-fit: cover; }
.model__fallback figcaption { position: absolute; left: 8px; bottom: 8px; background: var(--ink); color: #fff; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 6px 8px; }
.model__fig .cap { color: rgba(255, 255, 255, .8); margin-top: 26px; }

/* =====================================================
   CONCORD IN FIGURES: A century on one hill
   ===================================================== */
.figures { --fg: var(--teal-d); padding-bottom: clamp(80px, 10vw, 160px); }
.figures__head { align-items: end; }
.figures__head > .display { grid-column: 1 / span 8; }
.figures__head > .dek { grid-column: 9 / span 4; padding-bottom: .7em; }
.figures > .rule:not(.rule--soft) { margin-bottom: clamp(40px, 5vw, 72px); }
.fblock { align-items: start; row-gap: 28px; }
.fblock__head { grid-column: 1 / span 4; position: sticky; top: clamp(24px, 6vh, 64px); }
.fblock__head h3, .river__copy h3 { font: 400 clamp(30px, 3.4vw, 52px)/1.02 var(--serif); letter-spacing: -.012em; }
.fblock__head .dek { margin-top: 14px; max-width: 26em; }
.fblock > :not(.fblock__head) { grid-column: 5 / span 8; }
.tri { align-items: start; row-gap: 40px; }
.tri > * { grid-column: span 4; }

/* students on the roll */
.roll { padding-inline: var(--m); }
.roll__scroll {
  margin-top: 0; overflow-x: auto;
  background:
    linear-gradient(rgba(35, 73, 85, .07) 1px, transparent 1px) 0 0 / 100% 14px,
    linear-gradient(90deg, rgba(35, 73, 85, .07) 1px, transparent 1px) 0 0 / 14px 100%,
    rgba(255, 255, 255, .38);
}
.roll .note { margin-top: 12px; }
#rollSvg { display: block; width: 100%; min-width: 720px; height: auto; overflow: visible; }
#rollSvg text { font-family: var(--mono); font-size: 9.5px; letter-spacing: .07em; fill: var(--teal-d); }
#rollSvg .num { font-family: var(--serif); font-weight: 500; font-size: 50px; letter-spacing: -.01em; }
#rollSvg .num--peak { font-size: 72px; fill: var(--terra); }
.rl-grid { stroke: rgba(35, 73, 85, .4); stroke-width: 1; stroke-dasharray: 1.5 4; }
.rl-axis { stroke: var(--teal-d); stroke-width: 1.2; }
.rl-drop { stroke: var(--teal-d); stroke-width: 1; stroke-dasharray: 3 3; }
.rl-band { fill: var(--gold); transform-box: fill-box; transform-origin: center bottom; transform: scaleY(0); transition: transform 1.2s var(--ease-io) 1.6s; }
.rl-port { fill: var(--blue); }
.rl-line {
  fill: none; stroke: var(--teal); stroke-width: 4.5; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease-io) .35s;
}
.rl-bldg { opacity: 0; transform: translateY(16px); transition: opacity 1s, transform 1.3s var(--ease); }
.roll.in .rl-line { stroke-dashoffset: 0; }
.roll.in .rl-band { transform: none; }
.roll.in .rl-bldg { opacity: 1; transform: none; }
.pt { opacity: 0; transition: opacity .6s var(--pd, 0s); outline: none; cursor: default; }
.roll.in .pt { opacity: 1; }
.pt .dot { fill: var(--teal-d); stroke: var(--cream); stroke-width: 2.5; }
.pt .ring { fill: none; stroke: var(--teal-d); stroke-width: 2; }
.pt--peak .dot { fill: var(--terra); }
.pt--peak .ring { stroke: var(--terra); }
.pt .thumb { transform-box: fill-box; transform-origin: center; transition: transform .6s var(--ease); }
.pt:hover .thumb, .pt:focus-visible .thumb { transform: scale(1.4); }
.pt:focus-visible .dot { stroke: var(--gold); }
#rollSvg:has(.pt:hover) .pt:not(:hover) { opacity: .25; transition: opacity .3s; }
/* upright drawing for narrow screens: the photographs and the event notes move out of the chart into a key beneath it */
.rl-ev { fill: var(--terra); stroke: #f5f2ec; stroke-width: 1.5; }
.roll__key, .roll__events { display: none; }
.roll--compact #rollSvg { min-width: 0; max-width: 560px; margin-inline: auto; }
.roll--compact #rollSvg .num { font-size: 31px; paint-order: stroke; stroke: #f5f2ec; stroke-width: 5px; stroke-linejoin: round; }
.roll--compact #rollSvg .num--peak { font-size: 46px; }
.roll--compact .rl-line { stroke-width: 3.5; }
.roll--compact .roll__key { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; margin-top: 22px; }
.roll__key li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 11px; align-items: center; }
.roll__key img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 2px var(--k); }
.roll__key b { display: block; font: 500 27px/1 var(--serif); color: var(--k); font-variant-numeric: lining-nums; }
.roll__key span { display: block; margin-top: 4px; font: 400 9.5px/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.roll--compact .roll__events { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(35, 73, 85, .3); font: 400 10px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.roll__events b { font-weight: 500; color: var(--terra); margin-right: 6px; }

/* the river moved */
.compare { position: relative; overflow: hidden; aspect-ratio: 554 / 618; background: var(--teal-d); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__bar { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--gold); pointer-events: none; }
.compare__bar::after {
  content: "\2194"; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px;
  border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center;
  font: 500 17px/1 var(--sans); box-shadow: 0 4px 16px rgba(0, 0, 0, .35); transition: transform .35s var(--ease);
}
.compare:hover .compare__bar::after { transform: scale(1.14); }
.compare .tag { position: absolute; top: 12px; z-index: 2; pointer-events: none; }
.compare__a { left: 12px; }
.compare__b { right: 12px; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.bignum { display: flex; align-items: flex-end; gap: 14px; margin: clamp(14px, 1.8vw, 26px) 0; }
.bignum b { font: 400 clamp(76px, 9vw, 144px)/.76 var(--serif); color: var(--teal); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.bignum span { font: 400 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding-bottom: 4px; }
.river__car img { width: 100%; height: auto; filter: drop-shadow(0 14px 18px rgba(15, 23, 25, .2)); transition: transform .9s var(--ease); }
.river__car:hover img { transform: rotate(-1.5deg) scale(1.02); }
.hall { margin-block: clamp(56px, 7vw, 110px); }
.hall .ph { max-height: 80vh; }

/* two languages */
.bar { margin-bottom: clamp(20px, 2.4vw, 34px); }
.bar__y, .bar__l, .bars__axis { display: block; font: 400 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.bar__y { margin-bottom: 7px; }
.bar__track {
  position: relative; height: clamp(46px, 5vw, 66px); border: 1.5px solid var(--teal-d);
  background: linear-gradient(90deg, var(--teal-d) 1px, transparent 1px) 0 100% / 10% 9px repeat-x, rgba(255, 255, 255, .55);
}
.bar__track i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); background: var(--c); transform-origin: left; transform: scaleX(0); transition: transform 1.5s var(--ease-io) .25s; }
.in .bar__track i { transform: none; }
.bar__track b { position: absolute; left: calc(var(--v) * 1% + 12px); top: 50%; transform: translateY(-52%); font: 400 clamp(36px, 4.6vw, 66px)/1 var(--serif); letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.bar__l { margin-top: 8px; padding-left: calc(var(--at) * 1% + 12px); }
.bars__axis { display: flex; justify-content: space-between; color: var(--muted); margin-top: 4px; }

/* buying the block */
.blockrow__copy .dek { margin: 18px 0 22px; max-width: 28em; }
.seg { display: inline-flex; border: 1px solid var(--teal-d); border-radius: 99px; padding: 3px; background: #fff; }
.seg button { font: 500 11px/1 var(--mono); letter-spacing: .08em; padding: 9px 16px; border-radius: 99px; color: var(--ink); transition: background-color .3s, color .3s; }
.seg button[aria-selected="true"] { background: var(--teal-d); color: #fff; }
.block__big { margin: 20px 0 16px; display: flex; align-items: baseline; gap: 10px; }
.block__big b { font: 500 clamp(60px, 7.4vw, 116px)/.85 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.block__big span { font: 400 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.squares { position: relative; aspect-ratio: 1; }
.sq { position: absolute; left: 0; bottom: 0; transform-origin: 0 100%; transition: opacity .7s, transform 1s var(--ease); }
.sq span { position: absolute; left: 8px; top: 8px; background: #fff; padding: 3px 8px 4px; white-space: nowrap; font: 400 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.sq span b { font: 500 19px/1 var(--serif); letter-spacing: 0; margin-right: 3px; font-variant-numeric: lining-nums; }
.sq--2000 { width: 100%; height: 100%; border: 1.5px dashed var(--terra); }
.sq--2000 span { background: none; color: var(--terra); top: 6px; }
.sq--1945 { width: 90.4%; height: 90.4%; background: #e3e9e6 url(assets/img/block-aerial.png) center / cover; }
.sq--1928 { width: 67.7%; height: 67.7%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(35, 73, 85, .55); background: #e3e9e6 url(assets/img/block-aerial.png) 0 100% / 133.5% auto no-repeat; background-origin: border-box; }
[data-year="1928"] .sq--1945 { opacity: 0; transform: scale(.749); }
[data-year="1928"] .sq--2000 { opacity: 0; transform: scale(.677); }
[data-year="1945"] .sq--2000 { opacity: 0; transform: scale(.904); }
.blockrow__card .ph { box-shadow: 0 18px 30px -18px rgba(15, 23, 25, .45); transition: transform .8s var(--ease); }
.blockrow__card:hover .ph { transform: rotate(1.2deg) scale(1.02); }

/* figure rows */
.statrow {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px var(--gap);
  margin: clamp(48px, 6vw, 96px) var(--m) 0; padding-top: clamp(20px, 2.4vw, 32px); border-top: 1px solid var(--teal-d);
}
.statrow b { display: block; font: 500 clamp(30px, 3.5vw, 52px)/1 var(--serif); color: var(--teal-d); letter-spacing: -.01em; font-variant-numeric: lining-nums; white-space: nowrap; }
.statrow b i { font-style: normal; font-weight: 400; font-size: .58em; }
.statrow p > span { display: block; font: 400 10.5px/1.45 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-top: 9px; }
.vote { display: block; height: 6px; width: min(100%, 200px); margin-top: 10px; background: var(--blue); }
.vote i { display: block; height: 100%; width: 83.8%; background: var(--terra); box-shadow: 2px 0 0 var(--cream); transform-origin: left; transform: scaleX(0); transition: transform 1.3s var(--ease-io) .3s; }
.in .vote i { transform: none; }
.statrow--in { margin: 0; border-top: 0; }

/* =====================================================
   CLASS PORTRAITS (horizontal reel)
   ===================================================== */
.reel { background-image: none; }
.reel__stick { display: flex; align-items: center; }
.reel__track { display: flex; align-items: center; gap: clamp(28px, 5vw, 90px); padding: 0 var(--m); will-change: transform; }
.reel__intro { flex: none; width: min(34vw, 420px); }
.reel__title { font: 400 clamp(50px, 6.6vw, 112px)/.9 var(--display); color: #fff; }
.reel__title span { color: var(--gold); }
.reel__hint { margin-top: 26px; font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.reel__hint i { display: inline-block; font-style: normal; animation: nudge 1.4s var(--ease-io) infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }
.reel__panel { flex: none; }
.reel__panel .ph { height: 64vh; background: #1b2629; }
.reel__panel img { height: 100%; width: auto; max-width: none; }
.reel__panel figcaption { display: flex; align-items: baseline; gap: 18px; margin-top: 14px; }
.reel__year { font: 400 clamp(34px, 3.6vw, 60px)/.9 var(--display); color: var(--gold); }
.reel__year small { font-size: .5em; }
.reel__panel .cap { margin: 0; color: rgba(255, 255, 255, .84); max-width: 34em; }

/* =====================================================
   THE 1938 BLACKBOARD
   ===================================================== */
.bb { padding: clamp(80px, 10vw, 170px) 0; --fg: var(--teal-d); }
.bb__grid { align-items: center; row-gap: 40px; }
.bb__copy { grid-column: 1 / span 5; }
.bb__copy .rule { margin: clamp(18px, 2vw, 28px) 0; }
.bb__stage { grid-column: 7 / span 6; }
.bb__stage .tag { display: table; }
.board { position: relative; background: #2c6170; padding: clamp(8px, 1vw, 14px); box-shadow: 0 30px 60px -30px rgba(15, 23, 25, .55); }
.board__in { background: radial-gradient(120% 100% at 50% 30%, #234e5c 0%, #1b404c 100%); padding: clamp(10px, 1.8vw, 26px) clamp(10px, 1.6vw, 22px); }
.board__in img { width: 100%; height: auto; }
.board__cover {
  position: absolute; inset: clamp(8px, 1vw, 14px); overflow: hidden;
  background: radial-gradient(120% 90% at 30% 20%, #3a4a4e 0%, #2a383c 60%, #222f33 100%);
  color: rgba(255, 255, 255, .86); display: grid; place-content: center; text-align: center;
  clip-path: inset(0 0 calc(var(--p, 0) * 100%) 0);
  box-shadow: inset 0 -10px 0 #8a9391;
}
.board__cover p { transform: translate3d(0, calc(var(--p, 0) * -40%), 0); }
.board__cover b { display: block; font: 400 clamp(80px, 12vw, 200px)/.8 var(--display); }
.board__cover span { display: block; margin-top: 12px; font: 500 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.board__cover em { display: block; margin-top: 10px; font: italic 400 18px var(--serif); color: var(--gold); }
.years { margin-top: 14px; color: var(--teal-d); }
.years__t, .years__ends { font: 400 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.years__t { text-align: center; }
.years__ticks {
  height: 10px; margin-top: 6px; border-bottom: 1px solid currentColor; border-right: 1px solid currentColor;
  background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px calc(100% / 52));
}
.years__bar { height: 7px; margin-top: 3px; background: rgba(193, 127, 101, .25); }
.years__bar i { display: block; height: 100%; background: var(--terra); transform-origin: left; transform: scaleX(var(--p, 0)); }
.years__ends { display: flex; justify-content: space-between; margin-top: 7px; }
.bb__stage .note { margin-top: 10px; }

/* =====================================================
   05 DRAWINGS
   ===================================================== */
.pan { margin-top: clamp(56px, 7vw, 110px); }
.pan__win { overflow: hidden; border-block: 1px solid rgba(15, 23, 25, .2); padding-block: clamp(16px, 2vw, 32px); background: #fff; }
.pan__win img { height: clamp(240px, 36vw, 520px); width: auto; max-width: none; will-change: transform; mix-blend-mode: multiply; }
.pan .cap { padding-inline: var(--m); }

.keep { margin-top: clamp(64px, 9vw, 150px); align-items: start; row-gap: 32px; }
.keep__copy { grid-column: 1 / span 4; }
.keep__art { grid-column: 5 / span 8; position: relative; }
.keep__art img { width: 100%; height: auto; mix-blend-mode: multiply; }
.keep__notes { margin: clamp(22px, 3vw, 40px) 0 16px; border-top: 1px solid var(--ink); }
.keep__notes li { font: 400 15px/1.4 var(--serif); padding: 12px 0; border-bottom: 1px solid rgba(15, 23, 25, .16); cursor: default; transition: padding .4s var(--ease), background-color .3s; }
.keep__notes li b { font: 700 12.5px var(--sans); }
.keep__notes li.on { padding-inline: 12px; background: var(--cream); }
.keep .dot { width: 24px; height: 24px; margin: -12px 0 0 -12px; opacity: 0; transform: scale(.2); pointer-events: none; transition: opacity .35s, transform .55s var(--ease), background-color .3s; }
.keep .dot.on { opacity: 1; transform: scale(1.2); }

/* =====================================================
   06 TODAY: Five figures
   ===================================================== */
.today { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; background-image: none; }
.today__photo { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.today__photo .ph { flex: 1; }
.today__photo img { height: 100%; object-fit: cover; object-position: 50% 60%; }
.today__photo .cap { padding: 10px 16px 14px; margin: 0; }
.today__copy { padding: clamp(80px, 11vw, 180px) var(--m) clamp(70px, 9vw, 140px) clamp(24px, 4vw, 72px); }
.today__copy .rule { margin: clamp(22px, 2.6vw, 40px) 0 clamp(28px, 3.4vw, 56px); }
.today__copy .prose { max-width: 34em; }

.key {
  display: grid; grid-template-columns: clamp(110px, 15vw, 230px) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start;
  margin-top: clamp(40px, 5vw, 80px);
}
.key__emblem { position: sticky; top: 16vh; }
.key__emblem .fig { width: 100%; transform: scale(var(--z, 1)); }
.key__list { border-top: 1px solid var(--teal-d); }
.key__list li {
  position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid rgba(15, 23, 25, .2); cursor: default;
  transition: background-color .45s var(--ease-io), color .45s, padding .5s var(--ease), opacity .9s var(--ease), transform .9s var(--ease);
}
.key__n { position: absolute; left: -9px; top: 9px; z-index: 1; width: 18px; height: 18px; border-radius: 50%; background: var(--terra); color: #fff; font: 700 10px/18px var(--sans); text-align: center; transition: left .5s var(--ease); }
.key__list .fig { width: 56px; height: 56px; object-fit: contain; margin-top: 2px; transition: transform .8s var(--ease), filter .45s; }
.key__list h3 { font: 500 clamp(22px, 2.1vw, 30px)/1.05 var(--serif); color: var(--teal-d); transition: color .45s; }
.key__list h3 span { font: 400 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-left: 8px; vertical-align: .25em; }
.key__list p { font: 400 14px/1.42 var(--sans); margin-top: 6px; max-width: 46em; }
.key__list li:hover, .key__list li:focus-visible { background: var(--k); color: var(--kt, #fff); padding-inline: 16px; }
.key__list li:hover h3, .key__list li:focus-visible h3 { color: var(--kt, #fff); }
.key__list li:hover .fig, .key__list li:focus-visible .fig { filter: var(--ff, brightness(0) invert(1)); transform: scale(1.18) rotate(-6deg); }
.key__list li:hover .key__n, .key__list li:focus-visible .key__n { left: 6px; }

.pledge {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start;
  margin-top: clamp(40px, 5vw, 72px); padding: clamp(22px, 2.6vw, 36px) 0; border-block: 1px solid var(--teal-d);
}
.pledge p { font: italic 500 clamp(22px, 2.3vw, 34px)/1.2 var(--serif); color: var(--teal-d); text-wrap: balance; }
.pledge footer { font: 400 10px/1.55 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--teal-d); }
.pledge footer b { display: block; font-weight: 400; }
.pledge footer b + b { margin-top: 1.2em; }
.today .statrow--in { padding-top: clamp(22px, 2.6vw, 36px); }

/* =====================================================
   CHRONOLOGY
   ===================================================== */
.chrono__dek { margin-top: clamp(20px, 2.4vw, 36px); }
.periods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); padding: clamp(28px, 3vw, 48px) var(--m) 0; }
.period { transition: opacity .4s; background: #fff; container-type: inline-size; }
.js .period[data-reveal] { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.periods:hover .period.in:not(:hover) { opacity: .42; }
.period header { background: var(--c); color: #fff; padding: 14px 16px 12px; }
.period header span { font: 400 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.period h3 { font: 500 clamp(20px, 11cqw, 34px)/1.05 var(--serif); margin-top: 8px; white-space: nowrap; }
.period__img { aspect-ratio: 1 / 1; overflow: hidden; }
.period__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.period:hover .period__img img { transform: scale(1.07); }
.period dl > div { display: grid; grid-template-columns: 4.2em 1fr; gap: 10px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid rgba(15, 23, 25, .2); }
.period dt { font: 400 clamp(22px, 2.1vw, 30px)/1 var(--serif); color: var(--c); font-variant-numeric: lining-nums; }
.period dd { font: 400 14.5px/1.35 var(--serif); }

/* =====================================================
   COLOPHON
   ===================================================== */
.colophon { padding: clamp(80px, 12vw, 200px) 0 clamp(36px, 4vw, 60px); overflow: hidden; }
.colophon__emblem { width: min(62vw, 70vh); margin: 0 auto clamp(70px, 9vw, 150px); transform: scale(var(--z, 1)); }
.colophon__grid { padding-top: clamp(22px, 2.6vw, 36px); row-gap: 28px; }
.colophon__grid > :nth-child(1) { grid-column: 1 / span 4; }
.colophon__grid > :nth-child(2) { grid-column: 5 / span 4; }
.colophon__grid > :nth-child(3) { grid-column: 9 / span 4; }
.colophon__word { font: 400 clamp(38px, 4.4vw, 66px)/.85 var(--display); }
.colophon__addr { font-size: 14px; line-height: 1.4; margin-top: 12px; }
.colophon__txt { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.colophon__txt b { color: var(--gold); }
.colophon__top { display: inline-block; margin: clamp(48px, 6vw, 90px) var(--m) 0; font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }

/* =====================================================
   SMALLER SCREENS
   ===================================================== */
@media (max-height: 760px) and (min-width: 901px) {
  .hero__toc ul { display: none; }
}

@media (max-width: 1250px) and (min-width: 901px) {
  .today .statrow--in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .chapter__text { grid-column: 5 / span 8; }
  .chapter__side { grid-column: 5 / span 8; }
  .chapter__body--two > .prose:nth-child(1), .chapter__body--two > .prose:nth-child(2) { grid-column: 5 / span 8; }
  .periods { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}

@media (max-width: 900px), (max-width: 1180px) and (orientation: portrait) {
  :root { --rail: 44px; }
  .pin { height: auto; }
  .pin__stick { position: relative; height: auto; overflow: visible; }
  .intro__body, .chapter__body, .colophon__grid { background-image: none; padding-bottom: 0; }

  .menu__in { --pad: 28px; grid-template-columns: 1fr; row-gap: 26px; }
  .menu__side { position: static; min-height: 0; }
  .menu__foot { margin-top: 0; padding-top: 18px; }
  .menu__list ul { margin-left: 48px; }

  /* cover as a page: masthead, wordmark, line, the film, then the contents */
  .hero__stick { display: flex; flex-direction: column; min-height: 100svh; padding-bottom: var(--m); }
  .hero__side { display: contents; }
  .hero__mast { order: 1; font-size: 9px; letter-spacing: .08em; gap: .5em; white-space: normal; text-align: center; }
  .hero__mast::before, .hero__mast::after { display: none; }
  .hero__mast, .hero__word { opacity: 1; transform: none; }
  .hero__word { order: 2; }
  .hero__tag { order: 3; margin-top: 14px; }
  .hero__frame { order: 4; position: relative; left: auto; top: auto; right: auto; bottom: auto; flex: none; aspect-ratio: 1 / 1; margin: 20px calc(var(--m) * -1) 0; }
  /* the frame's height comes from the layout here, so the film simply covers it (container units resolve to zero in this case) */
  .hero__frame video { left: 0; top: 0; width: 100%; height: 100%; transform: none; object-fit: cover; object-position: 50% 56%; }
  .hero__inside { order: 5; margin-top: 20px; }
  .hero__toc { order: 6; margin-top: 20px; }
  .hero__pause, .vpause { opacity: 1; }
  .hero__cue { display: none; }

  /* chapter openers get the scale of a printed opener on a tall page */
  .display { font-size: clamp(44px, 12.4vw, 112px); }
  .display--xl { font-size: clamp(46px, 13vw, 120px); }
  .display--l { font-size: clamp(42px, 11vw, 96px); }
  .display--m { font-size: clamp(34px, 8.4vw, 68px); }
  .chapter__head { padding-top: clamp(72px, 17vw, 150px); }
  .prose p { font-size: 18px; line-height: 1.56; }
  .prose .lede, .prose--lede p { font-size: clamp(23px, 4.4vw, 34px); line-height: 1.24; }

  .intro__body > .prose--lede, .intro__body > .prose, .intro__facade,
  .chapter__aside, .chapter__text, .chapter__side,
  .chapter__body--two > .prose:nth-child(1), .chapter__body--two > .prose:nth-child(2),
  .chapter__body--media > figure, .chapter__body--media > .prose,
  .fblock__head, .fblock > :not(.fblock__head),
  .bb__copy, .bb__stage, .keep__copy, .keep__art,
  .trio__head h3, .trio__head .note,
  .colophon__grid > :nth-child(n) { grid-column: 1 / -1; }
  .chapter__aside, .fblock__head { position: static; }
  .trio__head .note { text-align: left; margin-top: 8px; }
  .facts { grid-template-columns: 1fr 1fr; }

  .moveintro__copy, .moveintro__map, .chapter__head--film > .chapter__title, .chapter__head--film > .film { grid-column: 1 / -1; }
  .model__copy, .model__fig { grid-column: 1 / -1; }
  .model__grid { display: flex; flex-direction: column; align-items: stretch; row-gap: 18px; }
  .model__fig { margin-top: 10px; }
  .model__copy { display: contents; }
  .model__copy > .kicker { order: 1; margin-bottom: 0; }
  .model__copy > .display { order: 2; }
  .model__copy > .model__dek { order: 3; margin-top: 0; }
  .model__fig { order: 4; margin-inline: calc(var(--m) * -1); }
  .model__fig .cap { padding-inline: var(--m); }
  .model__stage { aspect-ratio: 1 / 1; outline: 0; }
  .model__stage::before, .model__stage::after { display: none; }
  .mfeat { order: 5; margin-top: 4px; }
  .model__controls { order: 6; margin-top: 0; }
  .mfeat__list button { padding-block: 10px; }
  .mfeat__list strong, .mfeat__list b { font-size: 15px; }
  .mfeat__list em { font-size: 16px; }
  /* the model stays in view while the list of features is read beneath it */
  .model__fig { position: sticky; top: var(--bar, 0px); z-index: 2; background: var(--ink); }

  /* photographs run edge to edge, captions keep the margin */
  .wide, .hall, .intro__lead { padding-inline: 0; }
  .wide .cap, .intro__lead .cap { padding-inline: var(--m); }

  /* full-page photographs: picture above, line below, on one dark page */
  .bleed .pin__stick { min-height: 100svh; display: flex; flex-direction: column; }
  .bleed__img { position: static; flex: none; height: 58svh; transform: none; }
  .bleed__shade { display: none; }
  .bleed__statement { position: static; padding: 30px var(--m) 0; font-size: clamp(34px, 8.8vw, 76px); }
  .bleed__year { position: static; padding: 22px var(--m) 0; transform: none; opacity: 1; mix-blend-mode: normal; color: var(--gold); font-size: clamp(96px, 30vw, 250px); }
  .bleed__cap { position: static; margin-top: auto; padding: 22px var(--m) 30px; }

  .trio__row { grid-template-columns: 1fr; }
  .figures__head > .display, .figures__head > .dek, .tri > * { grid-column: 1 / -1; }
  .figures__head > .dek { margin-top: 18px; padding-bottom: 0; }
  .statrow { grid-template-columns: 1fr 1fr; }
  .squares { max-width: 420px; }
  .key, .pledge { grid-template-columns: 1fr; }
  .key__emblem { position: static; width: 140px; }

  .reel__stick { display: block; padding: 64px 0; }
  .reel__track { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--m); transform: none !important; align-items: flex-start; padding-bottom: 10px; }
  .reel__intro { width: 70vw; scroll-snap-align: start; }
  .reel__panel { scroll-snap-align: center; max-width: 86vw; }
  .reel__panel .ph { height: auto; }
  .reel__panel img { width: 86vw; height: auto; }
  .reel__panel figcaption { flex-direction: column; gap: 8px; }

  .strip { flex-wrap: wrap; }
  .strip--stats p { flex: 1 1 40%; }
  .today { grid-template-columns: 1fr; }
  .today__photo { position: relative; height: 82svh; }
  .today__copy { padding-left: var(--m); }
  .periods { grid-template-columns: 1fr; row-gap: 40px; }
}

/* tablets held upright: the same pages, set in two columns like the printed spread */
@media (min-width: 601px) and (max-width: 900px), (min-width: 901px) and (max-width: 1180px) and (orientation: portrait) {
  /* the film sits directly under the wordmark, so the cover does not end on one illustration and the next page open on another */
  .hero__toc { order: 6; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); margin-top: 26px; border-bottom: 1px solid var(--gold); }
  .hero__toc > li { border-bottom: 0; align-content: start; }
  .hero__toc ul { display: block; }
  .hero__tag { order: 4; margin-top: 22px; text-align: center; font-size: clamp(26px, 4.2vw, 38px); }
  .hero__inside { order: 5; margin-top: 8px; text-align: center; }
  .hero__frame { order: 3; aspect-ratio: auto; flex: 1 1 auto; min-height: 46svh; margin-top: 18px; }

  .intro__body > .prose:not(.prose--lede), .chapter__text > div { columns: 2; column-gap: 34px; column-rule: 1px solid var(--line); }
  .chapter__text > div > .lede, .chapter__text > div > h3 { column-span: all; }
  .chapter__text > div > .lede { margin-bottom: .7em; }
  .chapter__body--two > .prose:nth-child(1) { grid-column: 1 / span 6; }
  .chapter__body--two > .prose:nth-child(2) { grid-column: 7 / span 6; }
  .chapter__body--media > figure { grid-column: 1 / span 5; }
  .chapter__body--media > .prose { grid-column: 6 / span 7; }
  .chapter__side { grid-template-columns: 1fr 1fr; align-items: start; }
  .intro__facade { grid-column: 3 / span 8; }
  .facts, .statrow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trio__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tri > * { grid-column: span 6; }
  .tri > :nth-child(3) { grid-column: 4 / span 6; }
  .bb__stage { grid-column: 2 / span 10; }
  .key { grid-template-columns: 150px minmax(0, 1fr); }
  .key__emblem { position: sticky; top: 28px; width: auto; }
  .pledge { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .today .statrow--in { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .periods { grid-template-columns: 1fr 1fr; }
  .reel__panel { max-width: 78vw; }
  .reel__panel img { width: 78vw; }
}

/* phones: the rail becomes a thin bar across the top, and the next-section arrow floats in the corner */
@media (max-width: 600px) {
  :root { --rail: 0px; --bar: 44px; }
  html { scroll-padding-top: var(--bar); }
  main { padding-top: var(--bar); }
  .rail {
    inset: 0 0 auto 0; width: auto; height: var(--bar);
    flex-direction: row; align-items: center; justify-content: space-between;
    padding: 0 0 0 var(--m); border-right: 0; border-bottom: 1px solid var(--rl);
  }
  .rail__title { display: block; flex: 1; min-width: 0; writing-mode: horizontal-tb; transform: none; max-height: none; text-overflow: ellipsis; font-size: 12.5px; line-height: var(--bar); }
  .rail__title.swap span { transform: translateY(4px); }
  .rail__progress { top: auto; left: 0; right: 0; bottom: -1px; width: auto; height: 2px; }
  .rail__progress i { transform-origin: left; transform: scaleX(var(--sp, 0)); }
  .rail__menu { position: static; flex: none; margin: 0; width: var(--bar); height: var(--bar); }
  .rail__next {
    position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 42px; height: 42px; border-radius: 50%;
    background: rgba(15, 23, 25, .5); border: 1px solid rgba(201, 160, 99, .45);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: opacity .3s;
  }
  .rail__next svg { width: 10px; height: 21px; }
  .menu-open .rail__next { opacity: 0; pointer-events: none; }
  .menu { inset: var(--bar) 0 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .w > span { opacity: 1 !important; transform: none !important; }
  .js [data-reveal="img"] .ph { clip-path: none !important; }
  .js .rule[data-reveal] { transform: none !important; }
  .ph img[data-parallax], .bleed__img { transform: none !important; }
}
