/* The page as a carousel of pages. play.js puts .pg on <html> on a wide and tall window that allows motion.
   One scroll gesture then carries the reader from one section to the next, however hard it was (pager.js: the inertia of the last
   gesture is ignored): every section is a page, a snap point. A section taller than the window has a page for each window of it.
   The sections that are one screen on their own (the stage sections) are exactly the window under the header, which is --bar-h tall (hero.css). */
html.pg { scroll-padding-top: var(--bar-h); }
/* Where no script runs the browser snaps; pager.js (html.pg-js) moves the page itself, one page to a gesture, and the browser's snapping would fight it. */
html.pg:not(.pg-js) { scroll-snap-type: y mandatory; }
.pg .hero, .pg .band { scroll-snap-align: start; scroll-snap-stop: always; }
.pg .foot { scroll-snap-align: end; }
/* THE STAGE. Where the sections are one frame that stays (html.stg: reel.js puts it on a window that is wide and tall and allows motion) the bands are its slides, on top of each other in
   a frame as tall as the window under the header, which sticks under the header while the page goes by; the track is a window under the header for each slide, and how far the page has gone
   along it is the transition from one slide to the next (reel.js draws that). The first slide comes into frame as a page does, the track being under the hero. */
/* The hero stays where it is while the page goes through the first window of the track, and the first slide comes in over it (reel.js draws that: the hero's words fade, the map goes still and
   dims, the slide's ground crosses it). The track starts a window above the first slide's stop, so it is a window longer than its slides and begins under the hero. */
html.stg .hero { position: sticky; top: 0; }
html.stg .reel { height: calc((var(--stg-n, 8) + 1) * (100vh - var(--bar-h))); margin-top: calc(var(--bar-h) - 100vh); pointer-events: none; }
/* A slide is shown only once the stage has drawn it (reel.js sets its visibility): while its section is still being mounted it would stand over the hero, since the track now begins there. */
html.stg .reel-stage > .band { pointer-events: auto; visibility: hidden; }
html.stg .hero .hero-copy, html.stg .hero > :not(.hero-top-row) { opacity: calc(1 - var(--hero-out, 0)); }
/* the map goes out of focus as the first slide comes in, until only its colours show (and a little larger, so that the blur does not fade at its edges) */
html.stg .hero .hero-art { opacity: calc(1 - .1 * var(--hero-dim, 0)); filter: blur(calc(var(--hero-dim, 0) * 44px)) saturate(calc(1 + .8 * var(--hero-dim, 0))); transform: scale(calc(1 + .14 * var(--hero-dim, 0))); }
html.stg .reel-stage { position: sticky; top: var(--bar-h); height: calc(100vh - var(--bar-h)); overflow: hidden; }
html.stg .reel-stage > .band { position: absolute; inset: 0; min-height: 0; border-top: 0; background: none; scroll-snap-align: none; }
@supports (height: 100svh) {
  html.stg .reel { height: calc((var(--stg-n, 8) + 1) * (100svh - var(--bar-h))); margin-top: calc(var(--bar-h) - 100svh); }
  html.stg .reel-stage { height: calc(100svh - var(--bar-h)); }
}
/* The letters of the eyebrow, the heading and the line on the stage (reel.js): a cell to a letter, each a reel (a strip of letters in a window as tall as a line) that turns to the letter of the next
   section's text, over a line of its own that stands where the sections' own stand. The sections' are in the page and unseen. */
.reel-board { position: absolute; inset: 0; z-index: 20; pointer-events: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; transition: opacity .35s ease; }
.reel-row { position: absolute; display: flex; white-space: pre; }
.rc { display: block; position: relative; flex: none; height: 100%; clip-path: inset(0 -1em); }
.rs { display: block; will-change: transform; }
.rg { display: block; white-space: pre; }
/* a page that shows its elements one at a time (reveal.js): each is there, unseen, until its gesture comes */
.rv-on .rv-item { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1); }
.rv-on .rv-item.rv-shown { opacity: 1; transform: none; }
