/*
  Communion '27 · America: the story. The styles of the home page's thirteen beats and the chrome around them.

  Why this file stands alone. The story must read with the 3D off, on a phone, in print and under either look
  (Bridal Dawn, and Jasper and Gold), and it is built at the same time as the rest of the site. So it depends on nothing but the look's tokens
  (tokens.css), and it names no colour and no typeface of its own, except as the fallback of a token, used only
  if tokens.css is missing. It never leans on site.css, and site.css may be rewritten without touching it.

  Three ways the story is laid out, set by the html element's data-story (assets/js/story/main.js):
    (none) or "static"   No 3D. Each beat is an ordinary full-height section: its drawn picture and its words, on a
                         sky made from the act's colours. This is also what a browser without JavaScript shows.
    "live"               The film. The beats become tall, empty stretches of scroll; the words are pinned to the
                         screen and fade in and out as each stretch is scrolled through; the 3D plays behind.
    "still"              Reduced motion. Laid out like the film, but each beat is one unmoving picture.

  Names. Classes here start with beat-, story-, stage- or chapters, so they cannot collide with the practical
  sections' classes. The private variables start with c27 (a token with its fallback) or b (this beat's colours).
*/

/* ------------------------------------------------------------------------------------------------------------
   1. Tokens, each with its fallback. The fallbacks are the Bridal Dawn look, copied from tokens.css, so the page
      is whole even if that file has not arrived (tools/check_site.py says so if the two drift apart). Everything below uses these c27 names and never a raw colour.
      The 3D reads the c27-fx names from here too (world.js), so the film and the page cannot disagree.
   ------------------------------------------------------------------------------------------------------------ */
:root {
  --c27-bg: var(--bg, #FFFAF8);
  --c27-bg-2: var(--bg-2, #F7E5DE);
  --c27-ink: var(--ink, #3B0D1E);
  --c27-ink-2: var(--ink-2, #6C4150);
  --c27-line: var(--line, #E7CBC1);
  --c27-accent: var(--accent, #A63257);
  --c27-on-accent: var(--on-accent, #FFF8F3);
  --c27-focus: var(--focus, #C2456B);
  --c27-dark-bg: var(--dark-bg, #3B0D1E);
  --c27-on-dark: var(--on-dark, #FFFAF8);
  --c27-on-dark-2: var(--on-dark-2, #E6C9C3);
  --c27-font-display: var(--font-display, "Instrument Serif", "Didot", "Bodoni 72", "Times New Roman", serif);
  --c27-font-text: var(--font-text, "Figtree", "Segoe UI", system-ui, sans-serif);
  --c27-font-scripture: var(--font-scripture, "Instrument Serif", "Didot", Georgia, serif);
  --c27-display-weight: var(--display-weight, 400);
  --c27-display-stretch: var(--display-stretch, 100%);
  --c27-display-tracking: var(--display-tracking, 0em);
  --c27-display-transform: var(--display-transform, none);
  --c27-kicker-tracking: var(--kicker-tracking, 0.24em);
  --c27-radius: var(--radius, 3px);
  --c27-border-w: var(--border-w, 1px);

  --c27-story-pro-ink: var(--story-pro-ink, #FCF6F2);
  --c27-story-pro-ink-2: var(--story-pro-ink-2, #EBD5CE);
  --c27-story-pro-kicker: var(--story-pro-kicker, #F2C2AC);
  --c27-story-pro-scrim: var(--story-pro-scrim, rgba(18, 4, 12, 0.68));
  --c27-fx-pro-sky-top: var(--fx-pro-sky-top, #12040C);
  --c27-fx-pro-sky-mid: var(--fx-pro-sky-mid, #2A0A1E);
  --c27-fx-pro-sky-low: var(--fx-pro-sky-low, #4C1634);
  --c27-fx-pro-glow: var(--fx-pro-glow, #E8B4A0);
  --c27-fx-pro-light: var(--fx-pro-light, #FFF4EC);
  --c27-fx-pro-light-2: var(--fx-pro-light-2, #F0CFC4);
  --c27-fx-pro-accent: var(--fx-pro-accent, #E8A07E);
  --c27-fx-pro-form: var(--fx-pro-form, #F6DDD3);
  --c27-fx-pro-fog: var(--fx-pro-fog, #1A0612);

  --c27-story-fri-ink: var(--story-fri-ink, #FCF6F2);
  --c27-story-fri-ink-2: var(--story-fri-ink-2, #EDD6D0);
  --c27-story-fri-kicker: var(--story-fri-kicker, #F6B9B4);
  --c27-story-fri-scrim: var(--story-fri-scrim, rgba(20, 4, 14, 0.56));
  --c27-fx-fri-sky-top: var(--fx-fri-sky-top, #170513);
  --c27-fx-fri-sky-mid: var(--fx-fri-sky-mid, #3B0D2A);
  --c27-fx-fri-sky-low: var(--fx-fri-sky-low, #74204E);
  --c27-fx-fri-glow: var(--fx-fri-glow, #D2567E);
  --c27-fx-fri-light: var(--fx-fri-light, #FFF4EC);
  --c27-fx-fri-light-2: var(--fx-fri-light-2, #F0CFC4);
  --c27-fx-fri-accent: var(--fx-fri-accent, #F0647E);
  --c27-fx-fri-form: var(--fx-fri-form, #FBE6DC);
  --c27-fx-fri-fog: var(--fx-fri-fog, #230816);

  --c27-story-sat-ink: var(--story-sat-ink, #FFF8F3);
  --c27-story-sat-ink-2: var(--story-sat-ink-2, #F6E0DC);
  --c27-story-sat-kicker: var(--story-sat-kicker, #FFD0C4);
  --c27-story-sat-scrim: var(--story-sat-scrim, rgba(46, 12, 40, 0.66));
  --c27-fx-sat-sky-top: var(--fx-sat-sky-top, #3A1838);
  --c27-fx-sat-sky-mid: var(--fx-sat-sky-mid, #8E4A6E);
  --c27-fx-sat-sky-low: var(--fx-sat-sky-low, #E8A6A0);
  --c27-fx-sat-glow: var(--fx-sat-glow, #FFD2C0);
  --c27-fx-sat-light: var(--fx-sat-light, #FFFFFF);
  --c27-fx-sat-light-2: var(--fx-sat-light-2, #FFDCE0);
  --c27-fx-sat-accent: var(--fx-sat-accent, #FFC59E);
  --c27-fx-sat-form: var(--fx-sat-form, #FFF1E8);
  --c27-fx-sat-fog: var(--fx-sat-fog, #45203E);

  --c27-story-sun-ink: var(--story-sun-ink, #FFF8F3);
  --c27-story-sun-ink-2: var(--story-sun-ink-2, #F8E2DC);
  --c27-story-sun-kicker: var(--story-sun-kicker, #FFD8C4);
  --c27-story-sun-scrim: var(--story-sun-scrim, rgba(46, 12, 30, 0.68));
  --c27-fx-sun-sky-top: var(--fx-sun-sky-top, #5A1836);
  --c27-fx-sun-sky-mid: var(--fx-sun-sky-mid, #F08A72);
  --c27-fx-sun-sky-low: var(--fx-sun-sky-low, #FFE2BE);
  --c27-fx-sun-glow: var(--fx-sun-glow, #FFFFFF);
  --c27-fx-sun-light: var(--fx-sun-light, #FFFFFF);
  --c27-fx-sun-light-2: var(--fx-sun-light-2, #FFE9DC);
  --c27-fx-sun-accent: var(--fx-sun-accent, #FFD9A8);
  --c27-fx-sun-form: var(--fx-sun-form, #FFFFFF);
  --c27-fx-sun-fog: var(--fx-sun-fog, #4A1830);

  --c27-story-epi-ink: var(--story-epi-ink, #FFF8F3);
  --c27-story-epi-ink-2: var(--story-epi-ink-2, #F0DAD3);
  --c27-story-epi-kicker: var(--story-epi-kicker, #FFD0B0);
  --c27-story-epi-scrim: var(--story-epi-scrim, rgba(30, 6, 18, 0.66));
  --c27-fx-epi-sky-top: var(--fx-epi-sky-top, #2A0A18);
  --c27-fx-epi-sky-mid: var(--fx-epi-sky-mid, #6A1E38);
  --c27-fx-epi-sky-low: var(--fx-epi-sky-low, #C0705A);
  --c27-fx-epi-glow: var(--fx-epi-glow, #FFE3D0);
  --c27-fx-epi-light: var(--fx-epi-light, #FFFFFF);
  --c27-fx-epi-light-2: var(--fx-epi-light-2, #FFE2D0);
  --c27-fx-epi-accent: var(--fx-epi-accent, #FFC98A);
  --c27-fx-epi-form: var(--fx-epi-form, #FFF1E8);
  --c27-fx-epi-fog: var(--fx-epi-fog, #3A1020);

  /* The colour behind the chrome (the top bar, the tour's bar and Motion): the top of the sky of the chapter on screen. */
  --chrome-back: var(--c27-fx-pro-sky-top);
}
html[data-story-chapter="friday"] { --chrome-back: var(--c27-fx-fri-sky-top); }
html[data-story-chapter="saturday"] { --chrome-back: var(--c27-fx-sat-sky-top); }
html[data-story-chapter="sunday"] { --chrome-back: var(--c27-fx-sun-sky-top); }
html[data-story-chapter="epilogue"] { --chrome-back: var(--c27-fx-epi-sky-top); }

/* Each beat takes its act's colours under short names. The act is the start of the beat's id. */
.beat {
  --b-ink: var(--c27-story-pro-ink); --b-ink-2: var(--c27-story-pro-ink-2);
  --b-kicker: var(--c27-story-pro-kicker); --b-scrim: var(--c27-story-pro-scrim);
  --b-sky-top: var(--c27-fx-pro-sky-top); --b-sky-mid: var(--c27-fx-pro-sky-mid); --b-sky-low: var(--c27-fx-pro-sky-low);
  --b-light: var(--c27-fx-pro-light); --b-accent: var(--c27-fx-pro-accent); --b-form: var(--c27-fx-pro-form);
  --b-glow: var(--c27-fx-pro-glow); --b-fog: var(--c27-fx-pro-fog);
}
.beat[data-beat^="fri-"] {
  --b-ink: var(--c27-story-fri-ink); --b-ink-2: var(--c27-story-fri-ink-2);
  --b-kicker: var(--c27-story-fri-kicker); --b-scrim: var(--c27-story-fri-scrim);
  --b-sky-top: var(--c27-fx-fri-sky-top); --b-sky-mid: var(--c27-fx-fri-sky-mid); --b-sky-low: var(--c27-fx-fri-sky-low);
  --b-light: var(--c27-fx-fri-light); --b-accent: var(--c27-fx-fri-accent); --b-form: var(--c27-fx-fri-form);
  --b-glow: var(--c27-fx-fri-glow); --b-fog: var(--c27-fx-fri-fog);
}
.beat[data-beat^="sat-"] {
  --b-ink: var(--c27-story-sat-ink); --b-ink-2: var(--c27-story-sat-ink-2);
  --b-kicker: var(--c27-story-sat-kicker); --b-scrim: var(--c27-story-sat-scrim);
  --b-sky-top: var(--c27-fx-sat-sky-top); --b-sky-mid: var(--c27-fx-sat-sky-mid); --b-sky-low: var(--c27-fx-sat-sky-low);
  --b-light: var(--c27-fx-sat-light); --b-accent: var(--c27-fx-sat-accent); --b-form: var(--c27-fx-sat-form);
  --b-glow: var(--c27-fx-sat-glow); --b-fog: var(--c27-fx-sat-fog);
}
.beat[data-beat^="sun-"] {
  --b-ink: var(--c27-story-sun-ink); --b-ink-2: var(--c27-story-sun-ink-2);
  --b-kicker: var(--c27-story-sun-kicker); --b-scrim: var(--c27-story-sun-scrim);
  --b-sky-top: var(--c27-fx-sun-sky-top); --b-sky-mid: var(--c27-fx-sun-sky-mid); --b-sky-low: var(--c27-fx-sun-sky-low);
  --b-light: var(--c27-fx-sun-light); --b-accent: var(--c27-fx-sun-accent); --b-form: var(--c27-fx-sun-form);
  --b-glow: var(--c27-fx-sun-glow); --b-fog: var(--c27-fx-sun-fog);
}
.beat[data-beat^="epi-"] {
  --b-ink: var(--c27-story-epi-ink); --b-ink-2: var(--c27-story-epi-ink-2);
  --b-kicker: var(--c27-story-epi-kicker); --b-scrim: var(--c27-story-epi-scrim);
  --b-sky-top: var(--c27-fx-epi-sky-top); --b-sky-mid: var(--c27-fx-epi-sky-mid); --b-sky-low: var(--c27-fx-epi-sky-low);
  --b-light: var(--c27-fx-epi-light); --b-accent: var(--c27-fx-epi-accent); --b-form: var(--c27-fx-epi-form);
  --b-glow: var(--c27-fx-epi-glow); --b-fog: var(--c27-fx-epi-fog);
}

/* ------------------------------------------------------------------------------------------------------------
   2. Ground rules for the story's own elements.
   ------------------------------------------------------------------------------------------------------------ */
:where(html, body) { margin: 0; }
#story, #story *, #story *::before, #story *::after,
.story-top, .story-top *, .story-top *::before, .story-top *::after,
.story-controls, .story-controls *, .story-controls *::before, .stage-wrap, .stage-wrap * { box-sizing: border-box; }

#story {
  position: relative;
  z-index: 1;
  font-family: var(--c27-font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* One focus ring for everything the story owns. Two tones, because it lies over the film, which can be any
   colour: a light ring, and outside it a dark one. One of the two always stands out (the look's rose ring alone
   fell under 2 to 1 over Sunday's bright skies and over the rose buttons). The page's own ring (--focus, in
   the sections after the story) is left as it is. */
#story :focus-visible, .story-top :focus-visible, .story-controls :focus-visible {
  outline: 3px solid var(--c27-on-dark);
  outline-offset: 3px;
  box-shadow: 0 0 0 9px var(--c27-dark-bg);
}

/* Whatever comes after the story sits on a solid ground, above the fixed stage and the pinned words, so the
   film never shows through a practical section. :where() keeps this rule weightless: any background the site's
   own stylesheet gives a section wins. (While the first draft's stylesheet is still in place its paper colour
   is used, so those sections stay readable; once it is restyled on the tokens, the page colour takes over.) */
:where(#story ~ :not(.story-controls), main ~ footer) { position: relative; z-index: 4; }
:where(#story ~ section, main ~ footer) { background-color: var(--paper, var(--bg, Canvas)); }
/* The bar at the top stays on screen (and the story's controls at the foot while the film runs), so the page
   tells the browser to keep that much clear when it brings anything into view: a link to a section (#register),
   and a field or a link reached with Tab (which was hidden under the bar going backwards). The director's own
   moves are not affected. (A section's scroll-margin-top did the first of these; it would now add to this.) */
html[data-story] { scroll-padding-top: 76px; scroll-padding-bottom: 64px; }
@media (max-width: 1040px) { html[data-story] { scroll-padding-top: 112px; } }  /* the bar has two rows there */

:where(.skip) {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  padding: 10px 16px;
  background: var(--c27-accent); color: var(--c27-on-accent);
  font-family: var(--c27-font-text); font-weight: 600; text-decoration: none;
}
:where(.skip):focus { top: 12px; }

/* ------------------------------------------------------------------------------------------------------------
   3. The static story (the default): the film's stills. Each beat is an ordinary section, one screen tall or
      more, composed as its frame of the film is: the words on their side, the drawn picture in the room they
      leave (on an upright phone the picture above the words), and behind both one sky and one land, made from
      the act's own colours, running from edge to edge of the section. This is what a browser without 3D shows,
      and what the page is with scripts off.

      THE FRAME. A drawing is composed in a 4 by 3 rectangle (assets/img/story-art.svg). Four numbers place that
      rectangle in the section: art-x and art-y (its top left corner) and art-w and art-h (its size). The sky is
      painted by the section itself and must meet the drawing exactly (a horizon is half sky and half
      drawing), so both are worked out from the same four numbers: hy is where the drawing's horizon falls in
      the section, lx and ly where its light is, and u is a hundredth of its width, the unit a glow is sized in.
      Change a layout by changing the four numbers and everything follows.
      A drawing may run on past its frame (its overflow shows): a horizon, the land, a few far lights. The
      section cuts it off at its own edges.
   ------------------------------------------------------------------------------------------------------------ */
.beat {
  --span: 1;
  --vh: 1vh;                    /* a hundredth of the screen's height (below: the height with a phone's bars showing) */
  --room: 56vw;                 /* words at one side: the picture has this much of the width */
  --art-w: var(--room);
  --art-h: calc(var(--art-w) * 0.75);
  --art-x: calc(100% - var(--room) / 2 - var(--art-w) / 2);
  --art-y: calc(50% - var(--art-h) / 2 + 22px);    /* centered in the height left under the bar */
  --hz: 9;                      /* the horizon's place in the frame: 0 its top, 1 its foot. 9: this picture has none */
  --air: 0;                     /* how much of the frame's height is empty above the drawing, and again below it */
  --gx: 0.5; --gy: 0.5;         /* where the picture's light is, in the frame */
  --hy: calc(var(--art-y) + var(--art-h) * var(--hz));
  --lx: calc(var(--art-x) + var(--art-w) * var(--gx));
  --ly: calc(var(--art-y) + var(--art-h) * var(--gy));
  --u: calc(var(--art-w) / 100);
  --glows: linear-gradient(transparent, transparent);
  --mist: linear-gradient(transparent, transparent);
  --sky: linear-gradient(180deg, var(--b-sky-top), var(--b-fog));
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: clamp(84px, 12vh, 120px) clamp(20px, 5.5vw, 88px) clamp(40px, 7vh, 80px);
  color: var(--b-ink);
  /* Four layers, the first on top: the light (it falls on the land too), the mist on the horizon behind the
     words (below), the land below the horizon, the sky.
     A glow is the act's glow colour fading to nothing; its first stop stands before the start of the gradient
     (a negative place), which is how its strength at the center is set: at -100% the center is half strength. */
  background: var(--glows), var(--mist), linear-gradient(180deg, transparent var(--hy), var(--b-fog) var(--hy)), var(--sky);
}
.beat[data-span="1.5"] { --span: 1.5; }
.beat[data-span="2"] { --span: 2; }
.beat[data-span="2.5"] { --span: 2.5; }
.beat[data-span="3"] { --span: 3; }
/* The frame is never taller than the screen can show under the bar. (A browser too old for min() keeps the
   line above: the frame as wide as its room.) */
@supports (width: min(1px, 2px)) {
  .beat { --art-w: min(var(--room), calc((100 * var(--vh) - 108px) * 1.3333)); }
}
@supports (height: 1svh) { .beat { --vh: 1svh; } }
.beat[data-side="right"] { --art-x: calc(var(--room) / 2 - var(--art-w) / 2); }
/* THE HORIZON BEHIND THE WORDS. The land meets the sky in a crisp line, right for the drawing, which stands on
   it; but the line runs the whole width of the section, and where the words stand it cut through a headline
   as a hard edge, bright sky above and dark land below, even under the veil. So on the words' side the
   horizon lies in mist: a low, long bank of the land's own colour, solid along the horizon at the section's
   edge and thinning both upward into the sky and sideways toward the drawing, where it is gone a little way
   into the frame. Nothing marks where it ends, and beside the drawing the horizon is as crisp as before.
   (Its length is written from the screen's width, not the section's: a browser of the Chromium family refuses
   an ellipse whose radius mixes a percentage with a length, and with it the whole background.)
   Only where the words stand beside the picture: a screen wider than it is tall. An exactly square screen is
   laid out as a phone is (section 8), picture above words, so this starts a hair wider than square. */
@media (min-aspect-ratio: 1001/1000) {
  .beat[data-side="left"], .beat[data-side="right"] {
    --mist-w: calc(100vw - var(--room) / 2 - var(--art-w) * 0.3);   /* from the screen's edge to a fifth of the way into the frame */
    --mist: radial-gradient(ellipse var(--mist-w) calc(var(--u) * 8.5) at 0 var(--hy), var(--b-fog) 0, var(--b-fog) 44%, transparent 100%);
  }
  .beat[data-side="right"] {
    --mist: radial-gradient(ellipse var(--mist-w) calc(var(--u) * 8.5) at 100% var(--hy), var(--b-fog) 0, var(--b-fog) 44%, transparent 100%);
  }
}
/* Words in the middle, or along the bottom: the picture is a band across the top, band high, and the words
   stand under it. Where a drawing leaves air at the top and the foot of its frame (the map is twice as wide
   as it is tall), the frame is moved up by that much and the words come up to meet the drawing. */
.beat[data-side="center"], .beat[data-side="bottom"] {
  --band: calc(34 * var(--vh));
  --art-w: calc(var(--band) * 1.3333);
  --art-x: calc(50% - var(--art-w) / 2);
  --art-y: calc(62px - var(--art-h) * var(--air));
  padding-top: calc(var(--art-y) + var(--art-h) * (1 - var(--air)) + clamp(6px, 1.6vh, 18px));
}
.beat[data-side="bottom"] { align-items: end; }
/* A band is never so low that its picture cannot be read (a phone held on its side). */
@supports (width: max(1px, 2px)) {
  .beat[data-side="center"], .beat[data-side="bottom"] { --art-w: max(232px, calc(var(--band) * 1.3333)); }
}

/* The drawn pictures are held in a noscript in each beat (the page's head puts them in when a page needs them).
   With scripts off the noscript itself is shown, and must not take a cell of the beat's grid. */
@media (scripting: none) { .beat-art-ns { display: contents; } }
.beat-art {
  position: absolute;
  z-index: 0;
  left: var(--art-x); top: var(--art-y);
  width: var(--art-w); height: var(--art-h);
  overflow: visible;
  pointer-events: none;
  /* The drawing's tones. It names no colour of its own: its lines take this colour, and the rest are these. */
  color: var(--b-light);
  --art-accent: var(--b-accent);
  --art-form: var(--b-form);
  --art-glow: var(--b-glow);
  --art-shade: var(--b-fog);    /* solid forms that hide what is behind them: the same colour as the land */
}
/* The words lie over the picture's layer, and their block is as wide as the section allows: the lines
   inside it are what is narrowed and placed (a block that shrank to its longest line would never wrap). */
.beat-copy { position: relative; z-index: 1; min-width: 0; width: 100%; }
.beat[data-side="left"] .beat-copy-inner, .beat[data-side="right"] .beat-copy-inner { max-width: min(38vw, 600px); }
.beat[data-side="right"] .beat-copy-inner { margin-left: auto; }
.beat[data-side="center"] .beat-copy-inner { text-align: center; margin-inline: auto; }
.beat[data-side="bottom"] .beat-copy-inner { margin-inline: auto; }

/* Each picture's own numbers: its horizon, its light, and its sky. The sky's stops are places down the
   section, so they are written from the frame (art-y, art-h) or from the horizon (hy): the same sky then sits
   right on a desktop, where the horizon is half way down the screen, and on a phone, where it is a quarter. */
.beat[data-beat="pro-seed"] {
  --band: calc(27 * var(--vh));
  --air: 0.13;   /* the star's long upright rays may reach under the bar; the title comes up close beneath it */
  --glows:
    radial-gradient(circle calc(var(--u) * 30) at var(--lx) var(--ly), var(--b-glow) -90%, transparent 100%),
    radial-gradient(ellipse calc(var(--u) * 150) calc(var(--u) * 52) at var(--lx) var(--ly), var(--b-sky-low) -30%, transparent 100%);
  --sky: linear-gradient(180deg, var(--b-sky-top) 0, var(--b-sky-mid) var(--ly), var(--b-fog) calc(var(--ly) + var(--art-h) * 1.3), var(--b-fog) 100%);
}
.beat[data-beat="pro-three"] {
  --band: calc(40 * var(--vh));
  --air: 0.12;
  --hz: 1; --gy: 0.24;   /* the earth's curved edge is drawn; the land below the frame is the earth going on */
  --glows: radial-gradient(ellipse calc(var(--u) * 170) calc(var(--u) * 24) at var(--lx) var(--ly), var(--b-glow) -45%, transparent 100%);
  --sky: linear-gradient(180deg, var(--b-sky-top) 0, var(--b-sky-mid) calc(var(--ly) * 0.55), var(--b-sky-low) var(--ly), var(--b-fog) var(--hy), var(--b-fog) 100%);
}
.beat[data-beat="fri-cross"] {
  --hz: 1; --gx: 0.59; --gy: 0.42;   /* the hill is drawn; below the frame it is all hill */
  --glows: radial-gradient(circle calc(var(--u) * 34) at var(--lx) var(--ly), var(--b-glow) -330%, transparent 100%);
  --sky: linear-gradient(180deg, var(--b-sky-top) 0, var(--b-sky-top) calc(var(--art-y) + var(--art-h) * 0.1), var(--b-sky-mid) calc(var(--art-y) + var(--art-h) * 0.55), var(--b-sky-low) calc(var(--art-y) + var(--art-h) * 1.2));
}
.beat[data-beat="fri-table"] {
  --gx: 0.485; --gy: 0.56;
  --glows: radial-gradient(ellipse calc(var(--u) * 48) calc(var(--u) * 25) at var(--lx) var(--ly), var(--b-glow) -330%, transparent 100%);
}
.beat[data-beat="fri-bride"] {
  --hz: 0.5; --gx: 0.625; --gy: 0.31;
  --glows:
    radial-gradient(circle calc(var(--u) * 13) at var(--lx) var(--ly), var(--b-form) -160%, transparent 100%),
    radial-gradient(circle calc(var(--u) * 36) at var(--lx) var(--ly), var(--b-glow) -150%, transparent 100%);
  --sky: linear-gradient(180deg, var(--b-sky-top) 0, var(--b-sky-mid) calc(var(--hy) * 0.6), var(--b-sky-low) var(--hy));
}
.beat[data-beat="fri-wave"] {
  --band: calc(70 * var(--vh));
  --air: 0.14;
  --glows: radial-gradient(ellipse calc(var(--u) * 62) calc(var(--u) * 30) at var(--lx) var(--ly), var(--b-glow) -800%, transparent 100%);
}
.beat[data-beat="sat-sent"] {
  --hz: 0.4267; --gx: 0.595; --gy: 0.4;
  --glows:
    radial-gradient(circle calc(var(--u) * 32) at var(--lx) var(--ly), var(--b-glow) -70%, transparent 100%),
    radial-gradient(ellipse calc(var(--u) * 120) calc(var(--u) * 12) at var(--lx) var(--hy), var(--b-glow) -110%, transparent 100%);
  --sky: linear-gradient(180deg, var(--b-sky-top) 0, var(--b-sky-mid) calc(var(--hy) * 0.5), var(--b-sky-low) var(--hy));
}
.beat[data-beat="sat-streets"] {
  --hz: 0.5933; --gx: 0.43; --gy: 0.585;
  --glows: radial-gradient(circle calc(var(--u) * 26) at var(--lx) var(--ly), var(--b-glow) -40%, transparent 100%);
  --sky: linear-gradient(180deg, var(--b-sky-top) 0, var(--b-sky-mid) calc(var(--hy) * 0.45), var(--b-sky-low) calc(var(--hy) * 0.96));
}
.beat[data-beat="sat-city"] {
  --gx: 0.54; --gy: 0.573;
  --glows: radial-gradient(circle calc(var(--u) * 38) at var(--lx) var(--ly), var(--b-glow) -260%, transparent 100%);
}
.beat[data-beat="sun-tomb"] {
  --hz: 0.62; --gx: 0.365; --gy: 0.523;
  --glows:
    radial-gradient(circle calc(var(--u) * 30) at var(--lx) var(--ly), var(--b-glow) -15%, transparent 100%),
    radial-gradient(ellipse calc(var(--u) * 85) calc(var(--u) * 11) at var(--lx) calc(var(--hy) + var(--u) * 3), var(--b-glow) -60%, transparent 100%);
  --sky: linear-gradient(180deg, var(--b-sky-top) 0, var(--b-sky-mid) calc(var(--hy) * 0.85), var(--b-sky-low) calc(var(--hy) * 1.5));
}
.beat[data-beat="sun-army"] {
  --hz: 0.3067; --gx: 0.805; --gy: 0.253;
  --glows:
    radial-gradient(circle calc(var(--u) * 9) at calc(var(--art-x) + var(--art-w) * 0.565) calc(var(--art-y) + var(--art-h) * 0.32), var(--b-glow) -60%, transparent 100%),
    radial-gradient(circle calc(var(--u) * 15) at var(--lx) var(--ly), var(--b-glow) -40%, transparent 100%);
  --sky: linear-gradient(180deg, var(--b-sky-top) 0, var(--b-sky-mid) calc(var(--hy) * 0.5), var(--b-sky-low) var(--hy));
}
.beat[data-beat="sun-doors"] {
  --hz: 0.32; --gx: 0.225; --gy: 0.16;
  --glows: radial-gradient(circle calc(var(--u) * 20) at var(--lx) var(--ly), var(--b-glow) -20%, transparent 100%);
  --sky: linear-gradient(180deg, var(--b-sky-top) 0, var(--b-sky-mid) calc(var(--hy) * 0.35), var(--b-sky-low) calc(var(--hy) * 0.92));
}
/* The church doors and the light on their paths are drawn in the picture's warm tone, the accent. But a look's
   accent may be cool (Jasper and Gold's Sunday accent is a mint green), and a door must glow warm in every
   look. So this picture takes its warm tone from the low sky of the sunrise, as the film's doors do
   (acts/sunday.js colours them with the same token, for the same reason). */
.beat[data-beat="sun-doors"] .beat-art { --art-accent: var(--b-sky-low); }
.beat[data-beat="epi-come"] {
  --band: calc(36 * var(--vh));
  --gy: 0.533;
  --glows: radial-gradient(ellipse calc(var(--u) * 46) calc(var(--u) * 30) at var(--lx) var(--ly), var(--b-glow) -320%, transparent 100%);
  --sky: linear-gradient(180deg, var(--b-sky-top) 0, var(--b-sky-mid) 75%, var(--b-sky-low) 140%);
}

/* ------------------------------------------------------------------------------------------------------------
   4. The words. Few and large. Every size is fluid; the headline and the title are also fitted to their column
      by the director (it sets head-size and title-size), because the two looks set type very differently.
   ------------------------------------------------------------------------------------------------------------ */
.beat-copy-inner {
  --feather: clamp(120px, 26vmin, 260px);  /* how far the veil rises above words that stand under their picture */
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  max-width: 640px;
}
.beat[data-side="center"] .beat-copy-inner { max-width: 820px; }
.beat[data-beat="pro-seed"] .beat-copy-inner { max-width: 1100px; }
.beat[data-side="bottom"] .beat-copy-inner { max-width: 1180px; }
.beat[data-beat="epi-come"] .beat-copy-inner { max-width: 680px; }  /* narrow enough to sit inside the ring */

/* THE VEIL: the act's scrim colour behind the words. It is what keeps the text readable over any sky, in
   either look (tools/check_looks.py proves the words against the scrim laid over the brightest sky), so it is
   at full strength under every word. And it must read as shade, never as a box or a card laid on the picture.
   Three things make it shade:
     it has ONE soft edge, toward the picture. On every other side it runs off the screen (or the section): a
       veil with four soft edges is a card, however soft. (One veil cannot do this, the one behind words that
       stand in the middle of the picture: that one is an oval pool, with no straight side at all.)
     the edge is long;
     and it falls away in an S-shaped curve, not a straight ramp. A straight ramp from full to nothing shows a
       line where it starts and another where it stops; the curve has no place the eye can find.
   The curve is written once, as the stops of a gradient running from solid to clear: --veil-s. Each veil sets
   two lengths along its gradient: --v0, where it starts to fall, and --vf, how far the fall is. (In a mask only
   how solid a colour is counts, so these blacks are not colours: they say "this much of the veil".) */
.beat-copy::before, .beat-copy-inner::before, .story-jesus::before {
  --veil-s:
    rgba(0, 0, 0, 1) var(--v0),
    rgba(0, 0, 0, 0.972) calc(var(--v0) + var(--vf) * 0.1),
    rgba(0, 0, 0, 0.896) calc(var(--v0) + var(--vf) * 0.2),
    rgba(0, 0, 0, 0.784) calc(var(--v0) + var(--vf) * 0.3),
    rgba(0, 0, 0, 0.648) calc(var(--v0) + var(--vf) * 0.4),
    rgba(0, 0, 0, 0.5) calc(var(--v0) + var(--vf) * 0.5),
    rgba(0, 0, 0, 0.352) calc(var(--v0) + var(--vf) * 0.6),
    rgba(0, 0, 0, 0.216) calc(var(--v0) + var(--vf) * 0.7),
    rgba(0, 0, 0, 0.104) calc(var(--v0) + var(--vf) * 0.8),
    rgba(0, 0, 0, 0.028) calc(var(--v0) + var(--vf) * 0.9),
    rgba(0, 0, 0, 0) calc(var(--v0) + var(--vf));
}
/* The static story: the words stand beside their picture (or under it), and the veil is the shade on their
   side of the section: from that edge of the section to past the words, falling away toward the picture.
   The section clips it (overflow: hidden), so the three far sides are simply the section's own edges.
   The fall is shorter than the film's: a drawing in fine lines is dimmed by shade far more than the 3D is,
   and its frame begins where the words' column ends. */
.beat-copy-inner::before {
  --side: clamp(110px, 22vw, 340px);  /* the fall toward a picture that stands beside the words */
  --v0: calc(100% - var(--side));
  --vf: var(--side);
  content: "";
  position: absolute;
  z-index: -1;
  inset: -200vh calc(var(--side) * -1) -200vh -100vw;
  background: var(--b-scrim);
  -webkit-mask-image: linear-gradient(90deg, var(--veil-s));
  mask-image: linear-gradient(90deg, var(--veil-s));
  pointer-events: none;
}
.beat[data-side="right"] .beat-copy-inner::before {
  inset: -200vh -100vw -200vh calc(var(--side) * -1);
  -webkit-mask-image: linear-gradient(270deg, var(--veil-s));
  mask-image: linear-gradient(270deg, var(--veil-s));
}
/* Words under their picture (centered, or along the bottom): the shade rises from the foot of the section. */
.beat:is([data-side="center"], [data-side="bottom"]) .beat-copy-inner::before {
  --v0: calc(100% - var(--feather));
  --vf: var(--feather);
  inset: calc(var(--feather) * -1) -100vw -200vh;
  -webkit-mask-image: linear-gradient(0deg, var(--veil-s));
  mask-image: linear-gradient(0deg, var(--veil-s));
}

/* On the static page the drawing stands directly above such words, so the shade is gentler there: a shorter
   rise, and it is at full strength only a little way below the top of the words, so that most of the fall
   lies under their first small line and not across the foot of the drawing. (The words stand on the dark
   land or the dark of the sky there in any case.) */
html:not([data-story="live"]):not([data-story="still"]) .beat-copy-inner::before { --feather: clamp(84px, 17vmin, 160px); }
html:not([data-story="live"]):not([data-story="still"]) .beat:is([data-side="center"], [data-side="bottom"]) .beat-copy-inner::before { top: calc(var(--feather) * -0.55); }

/* THE STATIC STORY FITS THE SCREEN'S HEIGHT, on a landscape screen at least 561 pixels high (a laptop, a
   desktop, a tablet on its side; a phone on its side is shorter and keeps the rules of section 8).
   The film fits its words to the screen with a script. The static page has only this stylesheet, and where
   scripts run the director still gives the title and the headlines the film's sizes, which were chosen for
   words laid over a picture, not stacked under one. Left alone, the title, the awakening and the invitation
   ran to a screen and a third on a common laptop (1366 by 650), and their buttons fell below the fold.
   So here everything that stacks down a beat is tied to the screen's height:
     type is the smaller of its usual size and a share of the height, and never under a readable floor;
     the gaps between the parts likewise;
     and the band a centered beat gives its picture is what the height can spare: a share of it less a fixed
       length, so the band gives way on a short screen, where the bar and the buttons (which do not shrink)
       are a larger part of the whole.
   The shares were found by measuring every beat, in both looks, from 1024 by 600 to 2560 by 1300: the three
   centered beats are one screen tall at each. A beat with its words at one side may still run a little over
   on a short screen in a look that sets wide type; it only grows, and nothing in it is an action.
   (A hair wider than square, like the mist above: a square screen has the phone's layout.) */
@media (min-aspect-ratio: 1001/1000) and (min-height: 561px) {
  html:not([data-story="live"]):not([data-story="still"]) :is(.beat-body, .story-line) {
    font-size: clamp(0.88rem, calc(2.7 * var(--vh)), clamp(1.02rem, 0.9rem + 0.45vw, 1.28rem));
  }
  html:not([data-story="live"]):not([data-story="still"]) .beat-copy .verse { margin-top: clamp(8px, calc(2.2 * var(--vh)), 30px); }
  html:not([data-story="live"]):not([data-story="still"]) .beat-copy .verse p {
    font-size: clamp(0.9rem, calc(2.95 * var(--vh)), clamp(1.05rem, 0.92rem + 0.5vw, 1.4rem));
  }
  html:not([data-story="live"]):not([data-story="still"]) .beat-head {
    font-size: min(var(--head-size, clamp(1.75rem, 1rem + 3.2vw, 4rem)), calc(11 * var(--vh)));
  }
  html:not([data-story="live"]):not([data-story="still"]) .beat-link { margin-top: clamp(8px, calc(2 * var(--vh)), 24px); }
  /* Words down one side: on a short screen they may come nearer the bar and the foot of the screen before the
     beat has to grow. (Where they fit, nothing moves: they stand in the middle of the same room as before.) */
  html:not([data-story="live"]):not([data-story="still"]) .beat:is([data-side="left"], [data-side="right"]) {
    padding-top: clamp(76px, calc(10 * var(--vh)), 120px);
    padding-bottom: clamp(24px, calc(5 * var(--vh)), 80px);
  }

  /* The three centered beats: the title, the awakening, the invitation. */
  html:not([data-story="live"]):not([data-story="still"]) .beat[data-side="center"] {
    --art-w: max(140px, calc(var(--band) * 1.3333));
    padding-bottom: clamp(16px, calc(6 * var(--vh) - 14px), 80px);
  }
  html:not([data-story="live"]):not([data-story="still"]) .beat[data-beat="pro-seed"] { --band: min(calc(27 * var(--vh)), calc(42 * var(--vh) - 148px)); }
  html:not([data-story="live"]):not([data-story="still"]) .beat[data-beat="pro-three"] { --band: min(calc(36 * var(--vh)), calc(60 * var(--vh) - 216px)); }
  html:not([data-story="live"]):not([data-story="still"]) .beat[data-beat="epi-come"] { --band: min(calc(36 * var(--vh)), calc(52 * var(--vh) - 154px)); }
  html:not([data-story="live"]):not([data-story="still"]) .beat[data-beat="fri-wave"] { --band: min(calc(70 * var(--vh)), calc(100 * var(--vh) - 215px)); }
  html:not([data-story="live"]):not([data-story="still"]) .beat[data-side="center"] .story-title {
    font-size: min(var(--title-size, clamp(1.9rem, 9.2vw, 7rem)), calc(16.5 * var(--vh)));
  }
  html:not([data-story="live"]):not([data-story="still"]) .beat[data-side="center"] .beat-head {
    font-size: min(var(--head-size, clamp(1.75rem, 1rem + 3.2vw, 4rem)), calc(7.6 * var(--vh)));
  }
  html:not([data-story="live"]):not([data-story="still"]) .beat[data-side="center"] .story-jesus {
    font-size: min(clamp(0.8rem, 0.5rem + 0.9vw, 1.2rem), calc(2.6 * var(--vh)));
  }
  html:not([data-story="live"]):not([data-story="still"]) .beat[data-side="center"] .story-actions { margin-top: clamp(12px, calc(3 * var(--vh)), 36px); }
  html:not([data-story="live"]):not([data-story="still"]) .beat[data-side="center"] .story-cue { margin-top: clamp(10px, calc(2.6 * var(--vh)), 40px); }
  html:not([data-story="live"]):not([data-story="still"]) .beat[data-side="center"] .story-markers { margin-top: clamp(12px, calc(3 * var(--vh)), 40px); }
  html:not([data-story="live"]):not([data-story="still"]) .story-markers .m-church {
    font-size: min(clamp(1.1rem, 0.8rem + 1.1vw, 1.8rem), calc(3.6 * var(--vh)));
  }
}
/* Under 1040 pixels of width the bar has two rows (section 8), so words down one side start below both. */
@media (min-aspect-ratio: 1001/1000) and (min-height: 561px) and (max-width: 1040px) {
  html:not([data-story="live"]):not([data-story="still"]) .beat:is([data-side="left"], [data-side="right"]) {
    padding-top: clamp(98px, calc(12 * var(--vh)), 120px);
  }
}
/* Below 840 pixels of height the cue under the title keeps its words and loses its moving line, and the
   buttons are a little lower (still 44 pixels, a finger's width). */
@media (min-aspect-ratio: 1001/1000) and (min-height: 561px) and (max-height: 839px) {
  html:not([data-story="live"]):not([data-story="still"]) .story-cue-line { display: none; }
  html:not([data-story="live"]):not([data-story="still"]) .story-btn { min-height: 44px; padding-block: 10px; }
}
/* The invitation wherever its ring cannot go round the words (the screen is under 1180 wide or under 820
   high: see the next rule): the ring stands above the words, and nothing holds the words to the ring's
   width, so they may run wider and take fewer lines. */
@media (min-aspect-ratio: 1001/1000) and (min-height: 561px) and (max-height: 819px), (min-aspect-ratio: 1001/1000) and (min-height: 561px) and (max-width: 1179px) {
  html:not([data-story="live"]):not([data-story="still"]) .beat[data-beat="epi-come"] .beat-copy-inner { max-width: 860px; }
  html:not([data-story="live"]):not([data-story="still"]) .beat[data-beat="epi-come"] :is(.beat-body, .verse) { max-width: 46em; }
}

/* THE INVITATION ON A WIDE, TALL SCREEN: as in the film, the ring goes round the words. The frame is made as
   large as the screen allows and the words are set at the ring's center (the drawing keeps the inside of the
   ring empty for them). So that they can never touch the ring, whatever the screen and whichever look, the
   width of the words and the size of their type are parts of the frame's width, not of the screen's. On any
   smaller screen, and on a phone, the ring stands above the words like every other centered picture. */
@supports (width: min(1px, 2px)) {
  @media (min-aspect-ratio: 1/1) and (min-width: 1180px) and (min-height: 820px) {
    html:not([data-story="live"]):not([data-story="still"]) .beat[data-beat="epi-come"] {
      --art-w: min(94vw, calc((100 * var(--vh) - 80px) * 1.3333));
      --art-y: calc(62px + (100 * var(--vh) - 62px - var(--art-h)) / 2);
      --gy: 0.547;
      align-items: center;
      /* The ring's center is a little below the frame's (the crown stands above it): this much. */
      padding-top: calc(var(--art-y) + var(--art-h) * 0.094);
      padding-bottom: calc((100 * var(--vh) - 62px - var(--art-h)) / 2);
    }
    html:not([data-story="live"]):not([data-story="still"]) .beat[data-beat="epi-come"] .beat-copy-inner { max-width: calc(var(--art-w) * 0.54); }
    html:not([data-story="live"]):not([data-story="still"]) .beat[data-beat="epi-come"] .beat-head { font-size: calc(var(--art-w) * 0.046); }
    html:not([data-story="live"]):not([data-story="still"]) .beat[data-beat="epi-come"] .beat-body { font-size: calc(var(--art-w) * 0.0158); }
    html:not([data-story="live"]):not([data-story="still"]) .beat[data-beat="epi-come"] .verse p { font-size: calc(var(--art-w) * 0.0166); }
    html:not([data-story="live"]):not([data-story="still"]) .beat[data-beat="epi-come"] .verse { margin-top: calc(var(--art-w) * 0.016); }
    html:not([data-story="live"]):not([data-story="still"]) .beat[data-beat="epi-come"] .story-actions { margin-top: calc(var(--art-w) * 0.02); }
    /* Their shade: a soft oval pool inside the ring, with no straight side (as the film's). */
    html:not([data-story="live"]):not([data-story="still"]) .beat[data-beat="epi-come"] .beat-copy-inner::before {
      --v0: 42%;
      --vf: 58%;
      inset: -18% -16%;
      -webkit-mask-image: radial-gradient(ellipse closest-side, var(--veil-s));
      mask-image: radial-gradient(ellipse closest-side, var(--veil-s));
    }
  }
}

.beat-kicker, .story-jesus {
  margin: 0;
  font-family: var(--c27-font-text);
  font-weight: 600;
  font-size: clamp(0.7rem, 0.5rem + 0.5vw, 0.86rem);
  line-height: 1.5;
  letter-spacing: var(--c27-kicker-tracking);
  text-transform: uppercase;
  color: var(--b-kicker);
}
.story-jesus { font-size: clamp(0.8rem, 0.5rem + 0.9vw, 1.2rem); }
/* The director makes a block a little smaller to fit a small screen (a zoom, written on the block as --z). The
   small capitals (a kicker, a verse's reference, the day over a marker) were then 9 or 10 pixels: they keep 11
   at least on the screen, whatever the zoom. (The rules for these sizes are further down; this only sets the
   floor, and only inside a zoomed block.) */
.beat-copy-inner[style*="--z"] .beat-kicker { font-size: max(clamp(0.7rem, 0.5rem + 0.5vw, 0.86rem), calc(11px / var(--z, 1))); }
.beat-copy-inner[style*="--z"] .verse cite { font-size: max(0.76rem, calc(11px / var(--z, 1))); }
.beat-copy-inner[style*="--z"] .story-markers .m-day { font-size: max(0.72rem, calc(11px / var(--z, 1))); }

.beat-head, .story-title {
  margin: 0;
  font-family: var(--c27-font-display);
  font-weight: var(--c27-display-weight);
  font-stretch: var(--c27-display-stretch);
  letter-spacing: var(--c27-display-tracking);
  text-transform: var(--c27-display-transform);
  color: var(--b-ink);
}
.beat-head {
  margin: 0.35em 0 0.5em;
  font-size: var(--head-size, clamp(1.75rem, 1rem + 3.2vw, 4rem));
  line-height: 1.04;
  text-wrap: balance;
}
.story-title {
  margin: 0.2em 0 0.28em;
  font-size: var(--title-size, clamp(1.9rem, 9.2vw, 7rem));
  line-height: 0.92;
  text-transform: uppercase;
}
/* An inline block, so its box is exactly as wide as the words: the director measures it to fit the title. */
.story-title .t-name { display: inline-block; white-space: nowrap; }
.story-title .t-place {
  display: block;
  margin-top: 0.7em;
  font-family: var(--c27-font-text);
  font-size: max(0.8rem, 0.2em);
  font-weight: 500;
  letter-spacing: 0.9em;
  line-height: 1;
  color: var(--b-kicker);
}
/* Letter spacing leaves a gap after the last letter; an equal indent keeps centered lines truly centered. */
.beat[data-side="center"] :is(.beat-head, .t-name) { text-indent: var(--c27-display-tracking); }
.beat[data-side="center"] :is(.beat-kicker, .story-jesus) { text-indent: var(--c27-kicker-tracking); }
.beat[data-side="center"] .t-place { text-indent: 0.9em; }

.story-line, .beat-body {
  margin: 0;
  font-family: var(--c27-font-text);
  font-weight: 400;
  font-size: clamp(1.02rem, 0.9rem + 0.45vw, 1.28rem);
  line-height: 1.5;
  color: var(--b-ink);
}
.beat-body { max-width: 34em; }
.beat[data-side="center"] .beat-body { margin-inline: auto; }
.story-line { letter-spacing: 0.06em; color: var(--b-ink-2); text-wrap: balance; }
/* Lines that are a list of phrases (the title's line, the kickers) break only between phrases: each phrase,
   with the dot after it, is a span.nowrap, so no word is left alone on a line and no line starts with a dot. */
#story .nowrap { white-space: nowrap; }
.beat-kicker { text-wrap: balance; }
/* A headline that must break in one place ("One table. / One body. One cup."): the part that stays whole. */
.beat-head .line { display: inline-block; }

.beat-copy .verse {
  margin: clamp(16px, 2.6vh, 30px) 0 0;
  padding: 0;
  border: 0;
  max-width: 34em;
}
.beat[data-side="center"] .verse { margin-inline: auto; }
.beat-copy .verse p {
  margin: 0;
  font-family: var(--c27-font-scripture);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 0.92rem + 0.5vw, 1.4rem);
  line-height: 1.42;
  color: var(--b-ink);
}
.beat-copy .verse cite {
  display: block;
  margin-top: 0.7em;
  font-family: var(--c27-font-text);
  font-style: normal;
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--b-kicker);
}

/* Buttons and links inside the story. The primary one is the look's accent, the others are drawn in the ink. */
.story-actions {
  display: flex; flex-wrap: wrap; gap: 10px 12px;
  margin: clamp(20px, 3.4vh, 36px) 0 0;
}
.beat[data-side="center"] .story-actions { justify-content: center; }
.story-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7em;
  min-height: 48px;
  padding: 12px 22px;
  border: var(--c27-border-w) solid currentColor;
  border-radius: var(--c27-radius);
  background: transparent;
  color: var(--b-ink);
  font-family: var(--c27-font-text);
  font-weight: 500;
  font-size: 0.84rem;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
/* An outlined button carries its own piece of the veil. The buttons are the widest thing in a block of centered
   words, so their ends lie nearest the edge of the oval pool, where it has begun to fall away: with the scrim
   as its own ground a button's words are as readable as any others, wherever the button stands. */
.story-btn:not(.is-primary) { background: var(--b-scrim); }
.story-btn.is-primary { background: var(--c27-accent); border-color: var(--c27-accent); color: var(--c27-on-accent); font-weight: 600; }
.story-btn:hover { text-decoration: underline; text-underline-offset: 0.3em; }
/* Watch the story needs the story's script. The page's head marks the html element (data-story-js) when that
   script can run and takes the mark away if it never arrives, so the button is never there and dead: not with
   scripts off, not in a browser too old for the script, not after a failed download. */
html:not([data-story-js]) [data-story-play] { display: none; }
/* And it needs the film. On the static page (no 3D here, or the visitor asked for the page without it) the
   script runs but there is nothing to play, and the button was the title's primary action and did nothing
   when pressed. So it is shown only where the film is: the page's head sets data-story to live before the
   first paint wherever the 3D can run, so a visitor of the film never sees it come and go. */
html:not([data-story="live"]):not([data-story="still"]) [data-story-play] { display: none; }
/* The play mark on Watch the story. */
.story-btn-icon {
  flex: none; width: 0; height: 0;
  border-left: 0.72em solid currentColor;
  border-top: 0.44em solid transparent;
  border-bottom: 0.44em solid transparent;
}
.story-link, .beat-link a {
  color: var(--b-ink);
  font-family: var(--c27-font-text);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--b-kicker);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}
.beat-link { margin: clamp(14px, 2.4vh, 24px) 0 0; }

/* The three markers of the weekend: three small columns, each a way into its act. */
.story-markers {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: clamp(20px, 3.4vh, 40px) 0 0; padding: 0;
  text-align: left;
}
.story-markers li { margin: 0; padding: 0 clamp(8px, 1.6vw, 22px); border-left: var(--c27-border-w) solid var(--b-ink-2); }
.story-markers a { display: block; padding: 4px 0; color: var(--b-ink); text-decoration: none; }
.story-markers a:hover .m-church { text-decoration: underline; text-underline-offset: 0.2em; }
.story-markers span { display: block; }
.story-markers .m-sep { display: none; }
.story-markers .m-day { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--b-kicker); }
.story-markers .m-church {
  margin: 0.25em 0 0.2em;
  font-family: var(--c27-font-display); font-weight: var(--c27-display-weight); font-stretch: var(--c27-display-stretch);
  text-transform: var(--c27-display-transform); letter-spacing: var(--c27-display-tracking);
  font-size: clamp(1.1rem, 0.8rem + 1.1vw, 1.8rem); line-height: 1.1;
}
.story-markers .m-word { font-size: 0.92rem; line-height: 1.35; color: var(--b-ink-2); }

/* The small line under the title. It has two readings and shows the one that is true of this visit:
     "The story plays by itself. Scroll any time to take over."   where the film is about to start by itself, or
                                                                  is playing (the html element's data-story-tour
                                                                  is auto or on: main.js keeps it);
     "Scroll to enter", a link to the next beat                   everywhere else: the static page, reduced
                                                                  motion, a visitor who has taken over.
   Both lie in the same place and the box is as tall as the taller, so nothing moves when one gives way to the
   other. The one not shown is hidden from everyone (a screen reader, the keyboard), not just from the eye. */
.story-cue {
  display: inline-grid; justify-items: center; row-gap: 10px;
  margin: clamp(18px, 3.6vh, 40px) 0 0;
  color: var(--b-ink-2);
  font-family: var(--c27-font-text); font-size: 0.72rem; font-weight: 500; line-height: 1.5; letter-spacing: 0.3em; text-transform: uppercase;
}
.story-cue > :is(.cue-auto, .cue-scroll) { grid-area: 1 / 1; color: inherit; text-decoration: none; text-wrap: balance; }
.story-cue > .cue-scroll:hover { text-decoration: underline; text-underline-offset: 0.35em; }
.story-cue > .cue-auto { visibility: hidden; }
html[data-story="live"]:is([data-story-tour="auto"], [data-story-tour="on"]) .story-cue > .cue-auto { visibility: visible; }
html[data-story="live"]:is([data-story-tour="auto"], [data-story-tour="on"]) .story-cue > .cue-scroll { visibility: hidden; }
/* Until the story's script has said which it is to be (a moment, on a first visit), show neither: better a
   blank line for a moment than the wrong promise. Without the script, the link is right and is shown. */
html[data-story-js]:not([data-story-tour]) .story-cue > .cue-scroll { visibility: hidden; }
.story-cue-line { grid-area: 2 / 1; width: 1px; height: 34px; background: currentColor; transform-origin: top; animation: story-cue 2.6s ease-in-out infinite; }
@keyframes story-cue { 0%, 100% { transform: scaleY(0.35); opacity: 0.5; } 50% { transform: scaleY(1); opacity: 1; } }

/* The wave beat sets its words in two columns along the bottom of a wide screen. */
.beat[data-side="bottom"] .beat-copy-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(24px, 5vw, 72px); align-items: end; text-align: left; }
.beat[data-side="bottom"] .beat-head { margin-bottom: 0; }

/* ------------------------------------------------------------------------------------------------------------
   5. The film (live) and the still mode: tall stretches of scroll, the words pinned to the screen.
      A beat is span x 120 small-viewport heights tall. The director writes two numbers on each beat's copy:
      in (0 to 1, the fade in) and out (0 to 1, the fade out). Nothing else moves the words.
   ------------------------------------------------------------------------------------------------------------ */
html:is([data-story="live"], [data-story="still"]) .beat {
  display: block;
  overflow: visible;
  isolation: auto;
  min-height: 0;
  height: calc(var(--span) * 120vh);
  height: calc(var(--span) * 120svh);
  padding: 0;
  background: none;
}
html:is([data-story="live"], [data-story="still"]) .beat-art { display: none; }
/* THE COVER (main.js and the page's head): the film is slow to arrive, so the drawing of the beat whose words
   are on screen stands where its picture will be, fixed to the screen like the film (its frame's four numbers
   are worked out from the screen when it is fixed), on the stage's own sky. When the film's first frame fades in,
   the drawing fades out under the words. */
html[data-story-cover]:is([data-story="live"], [data-story="still"]) .beat-art {
  display: block;
  position: fixed;
  opacity: 0;
  transition: opacity 0.5s ease;
}
html[data-story-cover][data-story-state="loading"] .beat.is-on .beat-art,
html[data-story-cover][data-story-state="loading"]:not([data-story-beat]) .beat:first-child .beat-art { opacity: 1; }
html[data-story-cover][data-story-state="ready"] .beat-art { transition-duration: 1.2s; }

html:is([data-story="live"], [data-story="still"]) .beat-copy {
  /* The room for the words is the screen less this padding: pt keeps them clear of the bar at the top, pb of
     the two controls at the bottom. The director measures the room and fits the words to it. */
  --pt: clamp(84px, 13vh, 130px);
  --pb: clamp(64px, 10vh, 104px);
  --edge: 16px;  /* the soft top and bottom edge of rolling words; EDGE in director.js is the same number */
  position: fixed;
  z-index: 3;
  inset: 0;
  display: grid;
  /* One column that may never grow wider than the screen, however long an unbreakable line (the title) is;
     and one row exactly as tall as the room, however tall the words are. */
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  padding: var(--pt) clamp(20px, 5.5vw, 88px) var(--pb);
  pointer-events: none;
  opacity: calc(var(--in, 0) * (1 - var(--out, 0)));
  transform: translate3d(0, calc((1 - var(--in, 0)) * 22px - var(--out, 0) * 22px), 0);
}
/* The title is on the screen when the page opens, before any script has run. */
html:is([data-story="live"], [data-story="still"]) .beat:first-child .beat-copy { --in: 1; }
html[data-story="still"] .beat-copy { transition: opacity 0.6s ease; transform: none; }
/* Warming up (main.js, "warm it up"): a beat's words are shown for two frames at a strength nobody can see,
   half arrived, so that the browser has drawn words over a veil of that kind once before they first fade in
   during a flight (the first time cost a fifth of a second, with the picture frozen). The title is on screen,
   so it is dimmed by a two-hundred-and-fiftieth instead, which makes the browser draw it as a fading thing. */
html[data-story="live"] .beat.is-priming:not(:first-child) .beat-copy { --in: 0.55 !important; --out: 0 !important; opacity: 0.004 !important; }
html[data-story="live"] .beat.is-priming:first-child .beat-copy { --out: 0.004 !important; }
/* Only the beat on screen can be clicked. */
html:is([data-story="live"], [data-story="still"]) .beat.is-on .beat-copy :is(a, button) { pointer-events: auto; }

html:is([data-story="live"], [data-story="still"]) .beat[data-side="left"] .beat-copy-inner { max-width: min(41vw, 640px); }
html:is([data-story="live"], [data-story="still"]) .beat[data-side="right"] .beat-copy { justify-items: end; }
html:is([data-story="live"], [data-story="still"]) .beat[data-side="right"] .beat-copy-inner { max-width: min(41vw, 640px); }
html:is([data-story="live"], [data-story="still"]) .beat[data-side="center"] .beat-copy { justify-items: center; }
html:is([data-story="live"], [data-story="still"]) .beat[data-side="bottom"] .beat-copy { align-items: end; justify-items: center; }

/* The veil in the film. Words down one side of a wide screen: shade from that edge of the screen, at full
   strength behind the whole column (--col: the widest the column can be, with its margin) and falling away
   toward the picture over a third of the screen. It is drawn by the pinned layer, which covers the screen, so
   it reaches the top and the bottom whatever the height of the words. */
html:is([data-story="live"], [data-story="still"]) .beat:is([data-side="left"], [data-side="right"]) .beat-copy::before {
  --col: calc(clamp(20px, 5.5vw, 88px) + min(41vw, 640px));
  --v0: var(--col);
  --vf: 36vw;
  content: "";
  position: absolute; z-index: -1;
  /* Past the top and the foot of the screen: the pinned layer slides 22 pixels as the words come and go, and a
     veil that ended at the screen's own edge left a bright strip of the picture along the foot as it left. */
  top: -26px; bottom: -26px; left: 0;
  width: calc(var(--col) + var(--vf));
  background: var(--b-scrim);
  -webkit-mask-image: linear-gradient(90deg, var(--veil-s));
  mask-image: linear-gradient(90deg, var(--veil-s));
  pointer-events: none;
}
html:is([data-story="live"], [data-story="still"]) .beat[data-side="right"] .beat-copy::before {
  left: auto; right: 0;
  -webkit-mask-image: linear-gradient(270deg, var(--veil-s));
  mask-image: linear-gradient(270deg, var(--veil-s));
}
html:is([data-story="live"], [data-story="still"]) .beat:is([data-side="left"], [data-side="right"]) .beat-copy-inner::before { display: none; }
/* SUNDAY'S VEIL. Sunday's skies are the brightest of the film (a coral and gold sunrise). The shade the other
   acts use, which runs the screen's whole height and reaches a third of the way across it beyond the words,
   laid the act's wine over the peach and turned the sky behind and beyond the words a flat grey-mauve; and a
   shorter version that still ran up off the top of the screen read as a dark box with one rounded corner
   (wave three). So on Sunday the shade is a closed pool that hugs the words: full under every line, and gone
   within about 130 pixels of the block above it, below it and toward the picture. It runs off the screen only
   at the words' own side, where the block nearly meets the edge. It cannot be an oval like the title's: the
   words fill a rectangle (long lines of Scripture down to the last line), and an oval full at every corner of
   it reaches half as far again above them. Its shape is two falls laid over one another, across and down, each
   on the same S-curve as every veil: where they meet, at the corners, they make a round soft corner, not an
   edge. Measured: no line under 4.5 to 1 at the 10th percentile, and the sky 100 pixels above the first line
   changed by under 10 levels in 255. The same in the film, the still mode and the static page (where the
   drawn sunrise is as bright). Words that roll keep the other shade: their block clips whatever lies outside
   it.
   Wave three's last test still saw that pool as a muddy box on the coral sky (a straight edge toward the
   picture, a top edge above the kicker), and the small lines at the tomb's brightest fell under 4.5 to 1. So
   the pool is fainter and its falls far longer (it fades over a quarter of the screen's width toward the
   picture and about a fifth of its height above and below), and more of the work is done by the halo round
   the letters themselves, which follows each line and draws no edge. The kicker and the reference, the two
   small lines, are set in the act's ink rather than its rose kicker colour on Sunday's bright skies. */
@media (min-aspect-ratio: 1001/1000) {
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat^="sun-"] .beat-copy:not(.is-rolling)::before { display: none; }
  html .beat[data-beat^="sun-"] .beat-copy:not(.is-rolling) .beat-copy-inner::before {
    --fx: clamp(240px, 25vw, 400px);   /* the fall toward the picture */
    --ft: clamp(150px, 22vh, 230px);   /* the fall above the words, to the sky */
    --fb: clamp(140px, 20vh, 210px);   /* and below them */
    --v0: calc(100% - var(--fx));
    --vf: var(--fx);
    --veil-y:
      rgba(0, 0, 0, 0) 0,
      rgba(0, 0, 0, 0.028) calc(var(--ft) * 0.1),
      rgba(0, 0, 0, 0.104) calc(var(--ft) * 0.2),
      rgba(0, 0, 0, 0.216) calc(var(--ft) * 0.3),
      rgba(0, 0, 0, 0.352) calc(var(--ft) * 0.4),
      rgba(0, 0, 0, 0.5) calc(var(--ft) * 0.5),
      rgba(0, 0, 0, 0.648) calc(var(--ft) * 0.6),
      rgba(0, 0, 0, 0.784) calc(var(--ft) * 0.7),
      rgba(0, 0, 0, 0.896) calc(var(--ft) * 0.8),
      rgba(0, 0, 0, 0.972) calc(var(--ft) * 0.9),
      rgba(0, 0, 0, 1) var(--ft),
      rgba(0, 0, 0, 1) calc(100% - var(--fb)),
      rgba(0, 0, 0, 0.972) calc(100% - var(--fb) * 0.9),
      rgba(0, 0, 0, 0.896) calc(100% - var(--fb) * 0.8),
      rgba(0, 0, 0, 0.784) calc(100% - var(--fb) * 0.7),
      rgba(0, 0, 0, 0.648) calc(100% - var(--fb) * 0.6),
      rgba(0, 0, 0, 0.5) calc(100% - var(--fb) * 0.5),
      rgba(0, 0, 0, 0.352) calc(100% - var(--fb) * 0.4),
      rgba(0, 0, 0, 0.216) calc(100% - var(--fb) * 0.3),
      rgba(0, 0, 0, 0.104) calc(100% - var(--fb) * 0.2),
      rgba(0, 0, 0, 0.028) calc(100% - var(--fb) * 0.1),
      rgba(0, 0, 0, 0) 100%;
    display: block;
    content: "";
    position: absolute; z-index: -1;
    inset: calc(var(--ft) * -1) calc(var(--fx) * -1) calc(var(--fb) * -1) -100vw;
    background: var(--b-scrim);
    -webkit-mask-image: linear-gradient(90deg, var(--veil-s)), linear-gradient(180deg, var(--veil-y));
    mask-image: linear-gradient(90deg, var(--veil-s)), linear-gradient(180deg, var(--veil-y));
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    opacity: 0.46;
    pointer-events: none;
  }
  /* The rest of the shade is held close to the letters themselves: a soft halo of the same colour round every
     line, which follows the ragged ends of the lines instead of squaring them off. */
  html .beat[data-beat^="sun-"] .beat-copy:not(.is-rolling) .beat-copy-inner {
    --b-kicker: var(--b-ink);
    text-shadow: 0 0 2px var(--b-scrim), 0 0 6px var(--b-scrim), 0 0 14px var(--b-scrim), 0 0 26px var(--b-scrim), 0 0 48px var(--b-scrim);
  }
  html .beat[data-beat^="sun-"][data-side="right"] .beat-copy:not(.is-rolling) .beat-copy-inner::before {
    inset: calc(var(--ft) * -1) -100vw calc(var(--fb) * -1) calc(var(--fx) * -1);
    -webkit-mask-image: linear-gradient(270deg, var(--veil-s)), linear-gradient(180deg, var(--veil-y));
    mask-image: linear-gradient(270deg, var(--veil-s)), linear-gradient(180deg, var(--veil-y));
  }
}
/* Centered words stand in the middle of the picture (the star above them, the ring round them), so their shade
   can reach no edge of the screen. It is a soft oval pool instead, with no straight side and no corner: full
   under the words' lines, falling away along the same curve. */
html:is([data-story="live"], [data-story="still"]) .beat[data-side="center"] .beat-copy-inner::before {
  --v0: 56%;
  --vf: 44%;
  inset: -30% -34%;  /* the oval is this much larger than the words, so its full strength reaches their first and last lines */
  -webkit-mask-image: radial-gradient(ellipse closest-side, var(--veil-s));
  mask-image: radial-gradient(ellipse closest-side, var(--veil-s));
}
/* The invitation stands inside the ring, so its pool is kept within the ring: a smaller oval with a shorter fall. */
html:is([data-story="live"], [data-story="still"]) .beat[data-beat="epi-come"] .beat-copy-inner::before { --v0: 66%; --vf: 34%; inset: -15% -15%; }

/* THE TITLE SCREEN ON A WIDE SCREEN (a laptop, a desktop, a tablet on its side; a phone on its side is too
   short for this and keeps the rules of section 8). The star needs a band of its own. The title's block used
   to stand in the middle of the whole screen, as large as the width allowed, and came up to within 20 to 60
   pixels of the bar: the star had only that gap, under the shade of the words, and on a laptop the first
   screen of the site had no picture at all. So here:
     the room for the words begins a fifth of the screen's height below the bar: that fifth is the star's band
       (the prologue's camera reads the gap between the bar and the first line and grows the star into it);
     the title is sized by the screen's height as well as its width (director.js, fitTitle), and the gaps
       between the parts of the block are tied to the height, so the block fits the room that is left;
     the moving line under the cue is kept only where there is height to spare;
     and the oval shade begins at the block's first line instead of a third of the block's height above it:
       a shorter oval, set lower. (The prologue's sky is dark everywhere, so the first small line needs none.) */
@media (min-aspect-ratio: 1001/1000) and (min-height: 561px) {
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="pro-seed"] .beat-copy {
    --pt: calc(62px + 19vh);
    --pb: clamp(24px, 5vh, 72px);
  }
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="pro-seed"] .story-title { margin: 0.12em 0 0.2em; }
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="pro-seed"] .story-title .t-place { margin-top: 0.55em; }
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="pro-seed"] .verse { margin-top: clamp(10px, 2vh, 26px); }
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="pro-seed"] .story-actions { margin-top: clamp(14px, 2.8vh, 32px); }
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="pro-seed"] .story-cue { margin-top: clamp(10px, 2.2vh, 30px); }
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="pro-seed"] .beat-copy-inner::before {
    --v0: 59%;
    --vf: 41%;
    inset: -8% -34% -9%;
  }
  /* The first line, JESUS · JESUS · JESUS, stands at the top edge of that oval, where it has begun to fall
     away, and just under the star: in the star's glow it fell under 4.5 to 1. So it has a small pool of the
     same shade of its own, wider than the line and soft all round, which the star's light above it never
     reaches at full strength. */
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="pro-seed"] .story-jesus { position: relative; isolation: isolate; width: fit-content; margin-inline: auto; }
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="pro-seed"] .story-jesus::before {
    /* Wide and slow, most of all upward, and a little short of the full shade at its heart: drawn tighter it
       read as a dark lozenge behind the line, and the star's glow above it stopped on its upper edge. */
    --v0: 12%;
    --vf: 88%;
    content: "";
    position: absolute; z-index: -1;
    inset: -3.6em -80% -1.8em;
    opacity: 0.82;
    background: var(--b-scrim);
    -webkit-mask-image: radial-gradient(ellipse closest-side, var(--veil-s));
    mask-image: radial-gradient(ellipse closest-side, var(--veil-s));
    pointer-events: none;
  }
}
@media (min-aspect-ratio: 1001/1000) and (min-height: 561px) and (max-height: 959px) {
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="pro-seed"] .story-cue-line { display: none; }
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="pro-seed"] .story-btn { min-height: 44px; padding-block: 10px; }
}
/* Under 1040 pixels of width the bar has two rows (section 8): the band starts below both. */
@media (min-aspect-ratio: 1001/1000) and (min-height: 561px) and (max-width: 1040px) {
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="pro-seed"] .beat-copy { --pt: calc(88px + 17vh); }
}

/* THE INVITATION ON A WIDE SCREEN: the ring must close round the words between the bar and the foot of the
   screen. The words' block was about 77% of the height of a laptop screen (its type sized by the width), and
   no ring fits round that: its crown went up behind the bar and its foot ran off the screen, leaving two side
   arcs. So here the type and the gaps of this one beat are tied to the screen's height, and the block comes to
   about three fifths of it at any height; the epilogue's own fit (acts/epilogue.js) then closes the ring. The
   headline's size is still the director's (head-size), with a ceiling from the height laid over it. */
@media (min-aspect-ratio: 1001/1000) and (min-height: 561px) {
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="epi-come"] .beat-head {
    margin: 0.28em 0 0.4em;
    font-size: min(var(--head-size, clamp(1.75rem, 1rem + 3.2vw, 4rem)), 9.2vh);
  }
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="epi-come"] .beat-body { font-size: clamp(0.94rem, 2.5vh, 1.28rem); }
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="epi-come"] .verse { margin-top: clamp(8px, 2vh, 30px); }
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="epi-come"] .verse p { font-size: clamp(0.98rem, 2.65vh, 1.4rem); }
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="epi-come"] .story-actions { margin-top: clamp(12px, 2.6vh, 36px); }
}
@media (min-aspect-ratio: 1001/1000) and (min-height: 561px) and (max-height: 839px) {
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="epi-come"] .story-btn { min-height: 44px; padding-block: 10px; }
}
/* Words along the bottom: the shade rises from the foot of the screen, across its whole width. */
html:is([data-story="live"], [data-story="still"]) .beat[data-side="bottom"] .beat-copy-inner::before { inset: calc(var(--feather) * -1) -100vw -40vh; }

/* The parts of a beat's copy arrive one after another as "in" rises: kicker, headline, body, verse. */
html[data-story="live"] .beat-copy-inner > * {
  opacity: clamp(0, calc(var(--in, 0) * 2.1 - var(--i, 0) * 0.22), 1);
}
html[data-story="live"] .beat-copy-inner > :nth-child(2) { --i: 1; }
html[data-story="live"] .beat-copy-inner > :nth-child(3) { --i: 2; }
html[data-story="live"] .beat-copy-inner > :nth-child(4) { --i: 3; }
html[data-story="live"] .beat-copy-inner > :nth-child(5) { --i: 4; }
html[data-story="live"] .beat-copy-inner > :nth-child(n + 6) { --i: 5; }

/* Words too tall for their room (a small phone, a phone on its side, the longest beats). They are first made a
   little smaller, never below 85%; if that is not enough the director marks the copy is-rolling, and the words
   keep their size and roll through the room as the beat is scrolled: the block becomes a window exactly as
   tall as the room, with soft top and bottom edges, and the director moves the words inside it. Nothing ever
   runs off the screen or under the bar. The veil cannot ride on a block that clips what is outside it, so
   while rolling it is drawn by the pinned layer instead. */
html:is([data-story="live"], [data-story="still"]) .beat-copy.is-rolling {
  padding-top: calc(var(--pt) - var(--edge));
  padding-bottom: calc(var(--pb) - var(--edge));
}
html:is([data-story="live"], [data-story="still"]) .beat-copy.is-rolling .beat-copy-inner {
  max-height: 100%;
  overflow: hidden;
  padding-block: var(--edge);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, currentColor var(--edge), currentColor calc(100% - var(--edge)), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, currentColor var(--edge), currentColor calc(100% - var(--edge)), transparent 100%);
}
html:is([data-story="live"], [data-story="still"]) .beat:is([data-side="center"], [data-side="bottom"]) .beat-copy.is-rolling .beat-copy-inner::before { display: none; }
html:is([data-story="live"], [data-story="still"]) .beat[data-side="center"] .beat-copy.is-rolling::before {
  --v0: 60%;
  --vf: 40%;
  content: "";
  position: absolute; z-index: -1;
  inset: 0 2%;
  background: var(--b-scrim);
  -webkit-mask-image: radial-gradient(ellipse closest-side, var(--veil-s));
  mask-image: radial-gradient(ellipse closest-side, var(--veil-s));
  pointer-events: none;
}
html:is([data-story="live"], [data-story="still"]) .beat[data-side="bottom"] .beat-copy.is-rolling::before {
  --v0: calc(100% - 110px);
  --vf: 110px;
  content: "";
  position: absolute; z-index: -1;
  left: 0; right: 0; bottom: 0;
  top: calc(var(--pt) - 110px);
  background: var(--b-scrim);
  -webkit-mask-image: linear-gradient(0deg, var(--veil-s));
  mask-image: linear-gradient(0deg, var(--veil-s));
  pointer-events: none;
}

/* ------------------------------------------------------------------------------------------------------------
   6. The stage: one canvas behind the story, on a sky from the tokens until the first frame is drawn.
      Sized to the large viewport so a phone's address bar sliding away never resizes the 3D.
   ------------------------------------------------------------------------------------------------------------ */
.stage-wrap {
  display: none;
  position: fixed;
  z-index: 0;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  background: linear-gradient(180deg, var(--c27-fx-pro-sky-top) 0%, var(--c27-fx-pro-sky-mid) 58%, var(--c27-fx-pro-sky-low) 100%);
}
html:is([data-story="live"], [data-story="still"]) .stage-wrap { display: block; }
#stage { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
html[data-story-state="ready"] #stage { opacity: 1; }
/* A far move is a cut (director.js): the picture and the words fade out where they are ("out"), the film goes
   to the new place unseen, and they fade in there ("in"). Flying through every beat in between would be a
   strobe of pictures and words. The fade is on only while a cut is under way: at any other time the words
   must follow the scroll exactly, with no lag. */
html[data-story-cut] :is(#stage, .beat-copy) { transition: opacity 0.25s ease; }
html[data-story-cut="out"] :is(#stage, .beat-copy) { opacity: 0 !important; }
/* The still mode's cross-fade: a copy of the last picture, laid over the stage and faded away. */
.stage-ghost { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.7s ease; pointer-events: none; }
.stage-overlay, .stage-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.stage-label {
  position: absolute; left: 0; top: 0;
  padding-bottom: 6px;
  color: var(--c27-on-dark);
  font-family: var(--c27-font-text); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  white-space: nowrap;
  will-change: transform, opacity;
}

/* ------------------------------------------------------------------------------------------------------------
   7. The chrome: the bar at the top with the chapter rail, and the two controls.
   ------------------------------------------------------------------------------------------------------------ */
.story-top {
  position: absolute;
  z-index: 20;
  top: 0; left: 0; right: 0;
  display: grid;
  /* The rail in the middle, the name and the links either side. The two sides are equal shares, so the rail
     is centered on the page, but neither may be narrower than what it holds: on a mid-sized screen the
     links (wider than the name) keep their width and the rail moves over, instead of sliding under them. */
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  gap: 8px 20px;
  padding: 12px clamp(16px, 3vw, 40px);
  color: var(--c27-on-dark);
  font-family: var(--c27-font-text);
}
html[data-story] .story-top { position: fixed; }
/* Its backing: the top of the current sky, fading down, so the bar's light text holds over any picture. */
.story-top::before {
  content: "";
  position: absolute; z-index: -1;
  inset: 0 0 -26px 0;
  background: linear-gradient(180deg, var(--chrome-back) 0%, var(--chrome-back) 45%, transparent 100%);
  opacity: 0.86;
  pointer-events: none;
}
html[data-story-zone="after"] .story-top { background: var(--c27-dark-bg); }
html[data-story-zone="after"] .story-top::before { display: none; }

.story-brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; color: inherit; text-decoration: none; }
.story-brand-mark { width: 14px; height: 20px; flex: none; fill: currentColor; }
.story-brand-name { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; white-space: nowrap; }

.chapters { position: relative; justify-self: center; }
.chapters ol { list-style: none; display: flex; gap: clamp(10px, 2.4vw, 36px); margin: 0; padding: 0; }
.chapters li { margin: 0; padding: 0; }
.chapters a {
  display: block;
  padding: 10px 2px 9px;
  border-bottom: 2px solid transparent;
  color: inherit;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  text-decoration: none;
  opacity: 0.66;
}
.chapters a:hover, .chapters a[aria-current] { opacity: 1; }
.chapters a[aria-current] { border-bottom-color: currentColor; font-weight: 600; }
/* A hairline under the rail fills from the left as the story is scrolled through. */
.chapters::before, .chapters::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: currentColor; }
.chapters::before { opacity: 0.2; }
.chapters::after { transform-origin: left center; transform: scaleX(var(--story-progress, 0)); opacity: 0.8; }

.story-nav { display: flex; align-items: center; gap: 4px; justify-self: end; }
.story-nav a {
  padding: 9px 10px;
  color: inherit;
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
}
.story-nav a:hover { text-decoration: underline; text-underline-offset: 0.35em; }
.story-nav .story-nav-cta { margin-left: 6px; padding: 8px 14px; border: var(--c27-border-w) solid currentColor; border-radius: var(--c27-radius); }
/* "The weekend" (the days, the times, the places, after the story) only where the bar has room for it on one
   row: on a narrower screen the bar has no space to give, and the weekend is the first section after the film. */
.story-nav .story-nav-wide { display: none; }
@media (min-width: 1200px) { .story-nav .story-nav-wide { display: inline; } }
/* Five links since the prayer page (27 Nov 2026). Between the two-row bar (1040 pixels and under) and a wide
   screen, the name, the rail and the links no longer fit one row at their full measure (the links ran off the
   right side), so here they sit closer: the links take the tracking they have on a narrower screen, and the
   name and the rail close up a little. Nothing is left out. */
@media (min-width: 1041px) and (max-width: 1359px) {
  .story-top { column-gap: 14px; padding-inline: 20px; }
  .story-brand-name { letter-spacing: 0.16em; }
  .chapters ol { gap: 14px; }
  .story-nav { gap: 2px; }
  .story-nav a { padding-inline: 7px; font-size: 0.7rem; letter-spacing: 0.14em; }
  .story-nav .story-nav-cta { margin-left: 4px; padding-inline: 11px; }
}

/* The story's controls, bottom left: the guided tour's bar and the Motion control. (The Looks drafting button
   keeps the bottom right.) They need the film, so they are shown only while it runs.
   The bar is one button (Pause, Play or Replay), then the name of the part of the film and a thin track that
   fills as the film goes. While the film is not playing the bar is the button alone (is-min). */
.story-controls {
  display: none;
  position: fixed;
  z-index: 20;
  left: 12px; left: max(12px, env(safe-area-inset-left));
  bottom: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  align-items: stretch;
  gap: 8px;
}
html:is([data-story="live"], [data-story="still"]) .story-controls { display: flex; }
html[data-story-zone="after"] .story-controls { display: none; }
.story-control, .tour-bar {
  min-height: 40px;
  border: var(--c27-border-w) solid var(--c27-on-dark-2);
  border-radius: var(--c27-radius);
  background: var(--chrome-back);
  color: var(--c27-on-dark);
  font-family: var(--c27-font-text); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
}
.story-control, .tour-btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 6px 13px;
  cursor: pointer;
}
.story-control:hover, .tour-bar:hover { border-color: var(--c27-on-dark); }
.tour-bar { display: inline-flex; align-items: stretch; }
/* The button fills the bar's height, so the whole of it can be pressed; the bar draws the border for both. */
.tour-btn {
  margin: 0;
  border: 0; border-radius: inherit;
  background: none;
  color: inherit;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  white-space: nowrap;
}
/* Its mark: a triangle to play, two bars to pause, a turning arrow to play again. */
.tour-icon { flex: none; width: 1.05em; height: 1.05em; fill: currentColor; }
.tour-icon > * { display: none; }
.tour-btn[data-state="paused"] .i-play, .tour-btn[data-state="playing"] .i-pause, .tour-btn[data-state="ended"] .i-replay { display: block; }
.tour-meta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 0 14px 0 12px;
  border-left: var(--c27-border-w) solid var(--c27-on-dark-2);
  white-space: nowrap;
}
.tour-track { position: relative; display: block; width: clamp(64px, 9vw, 132px); height: 2px; overflow: hidden; }
.tour-track::before { content: ""; position: absolute; inset: 0; background: currentColor; opacity: 0.3; }
.tour-track > i { position: absolute; inset: 0; background: currentColor; transform-origin: left center; transform: scaleX(var(--tour, 0)); }
.tour-where { order: 2; color: var(--c27-on-dark-2); }
.tour-bar.is-min .tour-meta { display: none; }
@media (pointer: coarse) { .story-control, .tour-bar { min-height: 44px; } }

/* The readout (?hud=1), for builders. */
.story-hud {
  position: fixed; z-index: 60; right: 10px; top: 64px;
  margin: 0; padding: 8px 10px;
  background: var(--c27-dark-bg); color: var(--c27-on-dark);
  font: 12px/1.4 monospace;
  white-space: pre;
  pointer-events: none;
}

/* ------------------------------------------------------------------------------------------------------------
   8. A portrait screen (a phone): the picture above, the words in the lower part. The world moves the 3D up to
      match, on exactly this test (world.js, size.portrait): keep the two the same. The rail drops to a second
      row of the bar.
   ------------------------------------------------------------------------------------------------------------ */
@media (max-aspect-ratio: 1/1) {
  /* The static story: the picture is a band across the top of every beat, as wide as the screen where the
     band's height allows, and the words stand under it (the frame's four numbers; see 3). */
  .beat, .beat[data-side] {
    --band: calc(34 * var(--vh));
    --art-w: calc(var(--band) * 1.3333);
    --art-x: calc(50% - var(--art-w) / 2);
    --art-y: calc(90px - var(--art-h) * var(--air));
    align-items: start;
    padding: calc(var(--art-y) + var(--art-h) * (1 - var(--air)) + 2px) 20px 56px;
  }
  @supports (width: min(1px, 2px)) {
    /* On a tall screen (an upright tablet) the band grows with the height to spare, up to 44% of the screen:
       a band of a third left the lower half of a tablet empty. A phone's band stays as it was: its picture
       is already as wide as the screen. */
    .beat, .beat[data-side] {
      --band: max(calc(34 * var(--vh)), min(calc(100 * var(--vh) - 620px), calc(44 * var(--vh))));
      --art-w: min(100vw, calc(var(--band) * 1.3333));
    }
  }
  .beat[data-beat="pro-seed"] { --band: calc(27 * var(--vh)); }
  /* The static page only (the film pins its words to the foot of the screen and fits them there). A beat is
     a screen tall, and short words left the foot of it empty: so the words stand a third of the way down the
     room under their picture, not hard against it, and on a wide upright screen their text is a step larger
     (a phone's is unchanged). */
  html:not([data-story="live"]):not([data-story="still"]) .beat { grid-template-rows: minmax(0, 1fr) auto minmax(0, 2fr); }
  html:not([data-story="live"]):not([data-story="still"]) .beat-copy { grid-row: 2; }
  html:not([data-story="live"]):not([data-story="still"]) :is(.beat-body, .story-line) { font-size: clamp(1rem, 0.75rem + 0.98vw, 1.3rem); }
  html:not([data-story="live"]):not([data-story="still"]) .beat-copy .verse p { font-size: clamp(1.04rem, 0.78rem + 1.05vw, 1.42rem); }
  .beat-copy-inner, .beat[data-side] .beat-copy-inner { max-width: 620px; margin-inline: auto; }
  /* The words are under their picture on every beat here, so every veil rises from the foot of the section. */
  .beat[data-side] .beat-copy-inner::before {
    --v0: calc(100% - var(--feather));
    --vf: var(--feather);
    inset: calc(var(--feather) * -1) -100vw -200vh;
    -webkit-mask-image: linear-gradient(0deg, var(--veil-s));
    mask-image: linear-gradient(0deg, var(--veil-s));
  }
  html:not([data-story="live"]):not([data-story="still"]) .beat[data-side] .beat-copy-inner::before { top: calc(var(--feather) * -0.55); }
  .beat-head { font-size: var(--head-size, clamp(1.7rem, 8.4vw, 2.9rem)); }
  .beat-copy .verse { margin-top: 14px; }
  .beat-copy .verse p { font-size: 1.04rem; line-height: 1.38; }
  .beat-body, .story-line { font-size: 1rem; line-height: 1.45; }
  .beat[data-side="bottom"] .beat-copy-inner { display: block; }
  .beat[data-side="bottom"] .beat-head { margin-bottom: 0.5em; }
  .story-actions { gap: 8px; }
  .story-btn { min-height: 46px; padding: 10px 14px; font-size: 0.76rem; letter-spacing: 0.12em; }
  .story-markers .m-word { font-size: 0.82rem; }
  .story-markers li { padding: 0 8px; }
  .story-cue { display: none; }

  /* The words stand at the bottom and never climb above a line 40% down the screen (cap), so the picture
     always has the band between the bar and that line to itself; the world puts it there (world.js, shiftOf).
     Words too long for the room below the line roll through it. Only the title screen may take the whole
     height (is-full, set by the director) when a very small phone could not show it whole otherwise. */
  html:is([data-story="live"], [data-story="still"]) .beat .beat-copy,
  html:is([data-story="live"], [data-story="still"]) .beat[data-side] .beat-copy {
    --cap: 40vh;
    --pt: max(108px, var(--cap));
    --pb: calc(70px + env(safe-area-inset-bottom));
    align-items: end;
    justify-items: center;
    padding: var(--pt) 20px var(--pb);
  }
  @supports (height: 1svh) {
    /* Measured on the screen with the browser's bars showing, so the line does not move as they slide away. */
    html:is([data-story="live"], [data-story="still"]) .beat[data-side] .beat-copy { --cap: 40svh; }
  }
  /* The title or the invitation taking the picture's band too (is-full: director.js, fitCopy): the director
     says how far down the room may start (--full-pt: the bar and the least band the star or the ring needs). */
  html:is([data-story="live"], [data-story="still"]) .beat[data-side] .beat-copy.is-full { --pt: min(max(108px, var(--cap)), var(--full-pt, 108px)); }
  html:is([data-story="live"], [data-story="still"]) .beat[data-side] .beat-copy.is-rolling {
    padding-top: calc(var(--pt) - var(--edge));
    padding-bottom: calc(var(--pb) - var(--edge));
  }
  html:is([data-story="live"], [data-story="still"]) .beat[data-side] .beat-copy-inner { max-width: 620px; }
  /* One veil for every side: it runs off the bottom and both sides of the screen, so only its top edge shows,
     and that edge is the long S-shaped fall (--phone-feather), reaching up into the picture's band as shade. */
  html:is([data-story="live"], [data-story="still"]) .beat[data-side] .beat-copy { --phone-feather: clamp(84px, 26vmin, 150px); }
  html:is([data-story="live"], [data-story="still"]) .beat[data-side] .beat-copy::before { display: none; }
  html:is([data-story="live"], [data-story="still"]) .beat[data-side] .beat-copy-inner { --feather: var(--phone-feather); }
  html:is([data-story="live"], [data-story="still"]) .beat[data-side] .beat-copy-inner::before {
    --v0: calc(100% - var(--feather));
    --vf: var(--feather);
    display: block;
    inset: calc(var(--feather) * -1) -60px -160px;
    -webkit-mask-image: linear-gradient(0deg, var(--veil-s));
    mask-image: linear-gradient(0deg, var(--veil-s));
  }
  /* Rolling words: the same veil, drawn by the pinned layer, from above the room to the bottom. */
  html:is([data-story="live"], [data-story="still"]) .beat[data-side] .beat-copy.is-rolling .beat-copy-inner::before { display: none; }
  html:is([data-story="live"], [data-story="still"]) .beat[data-side] .beat-copy.is-rolling::before {
    --v0: calc(100% - var(--phone-feather));
    --vf: var(--phone-feather);
    content: "";
    display: block;
    position: absolute; z-index: -1;
    inset: calc(var(--pt) - var(--phone-feather)) 0 0 0;
    width: auto;
    background: var(--b-scrim);
    -webkit-mask-image: linear-gradient(0deg, var(--veil-s));
    mask-image: linear-gradient(0deg, var(--veil-s));
    pointer-events: none;
  }

  .story-control, .tour-btn { padding: 6px 10px; }

  /* The bar has two rows here (the rail is the second), so its backing is solid behind both, and the rail's
     other links are brighter: over Saturday's and Sunday's bright skies they fell to 3.7 to 1. */
  .story-top::before { background: linear-gradient(180deg, var(--chrome-back) 0%, var(--chrome-back) 80%, transparent 100%); }
  .chapters a { opacity: 0.82; }
}
/* THE TITLE ON A SHORT PHONE (upright, under 700 pixels: most phones as first seen, with the browser's bars
   showing). Its words must leave the star a band under the bar, so they are set closer: the three buttons
   after Watch the story share one row (they took two), still 44 pixels high, and the gaps above the title and
   before the verse are tighter. */
@media (max-aspect-ratio: 1/1) and (max-height: 699px) {
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="pro-seed"] .story-title { margin: 0.1em 0 0.2em; }
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="pro-seed"] .story-title .t-place { margin-top: 0.5em; }
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="pro-seed"] .verse { margin-top: 8px; }
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="pro-seed"] .story-actions { margin-top: 12px; gap: 6px; }
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="pro-seed"] .story-btn.is-primary { flex: 1 0 100%; }
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="pro-seed"] .story-btn:not(.is-primary) {
    flex: 1 1 0; min-width: 0; min-height: 44px;
    padding: 6px 4px; letter-spacing: 0.04em; font-size: 0.7rem; line-height: 1.15; text-align: center;
  }
  /* The invitation, the frame the film rests on, likewise: its three buttons share one row, so that on the
     smallest phones (320 by 568) its headline stays in that frame (it rolled out of it in wave three). */
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="epi-come"] .story-actions { margin-top: 12px; gap: 6px; }
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="epi-come"] .story-btn {
    flex: 1 1 0; min-width: 0; min-height: 44px;
    padding: 6px 4px; letter-spacing: 0.04em; font-size: 0.7rem; line-height: 1.15; text-align: center;
  }
}
/* A narrow screen, upright or on its side: the bar cannot hold everything on one line (the name, the rail and
   the links need about 990 pixels), so the rail takes a second row. The words start a little lower to clear it. */
@media (max-width: 1040px) {
  html:is([data-story="live"], [data-story="still"]) .beat-copy { --pt: clamp(98px, 13vh, 130px); }
  .story-top { grid-template-columns: auto minmax(0, 1fr); padding: 10px 16px 8px; gap: 4px 12px; }
  .story-brand { grid-column: 1; grid-row: 1; }
  .story-nav { grid-column: 2; grid-row: 1; }
  .chapters { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  .chapters ol { justify-content: space-between; gap: 4px; }
  .chapters a { padding: 8px 0 7px; font-size: 0.66rem; letter-spacing: 0.2em; }
  .story-nav a { padding: 8px 7px; font-size: 0.68rem; letter-spacing: 0.14em; }
  .story-nav .story-nav-cta { padding: 7px 10px; }
}
/* Five links since the prayer page (27 Nov 2026). With the name beside them the bar needs about 590 pixels, so
   under 600 the name gives way to the cross alone: the same measures as the inner pages' bar (site.css). */
@media (max-width: 600px) {
  .story-brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* With the name hidden, the way home was a mark 14 pixels by 20: too small for a finger. Its box is grown to
     44 by 44 with padding and drawn back by the same margin, so nothing in the bar moves. */
  .story-brand { padding: 12px 15px; margin: -12px -15px; }
}
@media (max-width: 460px) {
  /* On a phone the five links sit closer, and "50 Cities" reads "Cities", so that nothing is cut off at
     the right. */
  .story-nav { gap: 2px; }
  .story-nav a { padding-inline: 5px; letter-spacing: 0.06em; }
  .story-nav .nav-fifty { display: none; }
  .story-nav .story-nav-cta { margin-left: 4px; padding-inline: 8px; }
}
@media (max-width: 389px) {
  .story-nav a { font-size: 0.66rem; letter-spacing: 0.03em; }
  .story-nav .story-nav-cta { margin-left: 2px; padding-inline: 7px; }
}
/* A phone's width. The bar, Motion and (while drafting) the Looks button share one row under the words, so the
   bar is made small: the day alone ("Friday", not "Friday · The Bride"), set over the track instead of beside
   it, and everything a little tighter. */
@media (max-width: 600px) {
  .story-controls { gap: 6px; }
  .story-control, .tour-bar { font-size: 0.7rem; letter-spacing: 0.1em; }
  .story-control, .tour-btn { padding: 6px 9px; }
  .tour-meta { flex-direction: column; align-items: stretch; justify-content: center; gap: 5px; padding: 0 9px 0 8px; }
  .tour-where { order: 0; font-size: 0.68rem; line-height: 1; }
  .tour-where-rest { display: none; }
  .tour-track { width: 62px; }
}
/* A short, wide screen (a phone on its side): keep the side-by-side layout but tighten everything. */
@media (min-aspect-ratio: 1/1) and (max-height: 560px) {
  html:is([data-story="live"], [data-story="still"]) .beat-copy { --pt: 82px; --pb: 44px; }
  .beat-head { margin: 0.2em 0 0.3em; }
  .story-title { margin: 0.1em 0 0.15em; }
  .story-title .t-place { margin-top: 0.4em; }
  .story-jesus { font-size: 0.72rem; }
  .beat-kicker { font-size: 0.72rem; letter-spacing: 0.18em; }
  .beat-copy .verse { margin-top: 8px; }
  .beat-copy .verse p { font-size: 0.9rem; line-height: 1.3; }
  .beat-copy .verse cite { margin-top: 0.3em; font-size: 0.72rem; }
  .beat-body, .story-line { font-size: 0.88rem; line-height: 1.35; }
  .story-actions { margin-top: 10px; gap: 6px 8px; }
  .story-btn { min-height: 36px; padding: 6px 12px; font-size: 0.7rem; }
  .story-markers { margin-top: 10px; }
  .story-cue { display: none; }
  .story-controls { bottom: 6px; }
  .story-control, .tour-bar { min-height: 30px; font-size: 0.7rem; }
  .story-control, .tour-btn { padding: 3px 9px; }

  /* E8. Words along the bottom (the wave) are set down the left side instead, as on a beat with its words at
     the left: along the bottom of a screen this short they lay across the middle of the map. The director
     tells the world (readLayout, side), and the picture moves to the right half. */
  html:is([data-story="live"], [data-story="still"]) .beat[data-side="bottom"] .beat-copy { align-items: center; justify-items: start; }
  html:is([data-story="live"], [data-story="still"]) .beat[data-side="bottom"] .beat-copy-inner { display: block; max-width: min(41vw, 640px); margin-inline: 0; }
  html:is([data-story="live"], [data-story="still"]) .beat[data-side="bottom"] .beat-copy-inner::before { display: none; }
  html:is([data-story="live"], [data-story="still"]) .beat[data-side="bottom"] .beat-copy::before,
  html:is([data-story="live"], [data-story="still"]) .beat[data-side="bottom"] .beat-copy.is-rolling::before {
    --col: calc(clamp(20px, 5.5vw, 88px) + min(41vw, 640px));
    --v0: var(--col);
    --vf: 36vw;
    content: "";
    position: absolute; z-index: -1;
    top: -26px; bottom: -26px; left: 0; right: auto;
    width: calc(var(--col) + var(--vf));
    background: var(--b-scrim);
    -webkit-mask-image: linear-gradient(90deg, var(--veil-s));
    mask-image: linear-gradient(90deg, var(--veil-s));
    pointer-events: none;
  }
  html:is([data-story="live"], [data-story="still"]) .beat[data-side="bottom"] .beat-head { margin-bottom: 0.3em; }

  /* The title too is set as a side beat here, its words in the left half: centered on a screen this short
     they filled it from the bar to the controls, and the star had a gap of 9 to 31 pixels above the first line
     (wave three). The director tells the world (readLayout, side) and the prologue (size.free), and the star
     has the right half of the screen to itself. */
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="pro-seed"] .beat-copy { align-items: center; justify-items: start; }
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="pro-seed"] .beat-copy-inner { max-width: min(60vw, 600px); margin-inline: 0; }
  /* Its four buttons keep one row in that half (on two rows the title rolled, and hid the last one); on the
     narrowest of these screens a long name takes two lines inside its button instead. */
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="pro-seed"] .story-actions { flex-wrap: nowrap; gap: 6px; }
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="pro-seed"] .story-btn {
    flex: 0 1 auto; min-width: 0; padding-inline: 8px; letter-spacing: 0.06em; line-height: 1.15; text-align: center;
  }
  /* Its pool is held close to the words: little above and below them, and little toward the right half, where
     the star stands (acts/prologue.js gives the star that whole half here). Reaching further, it lay over the
     star and greyed it (wave three's last test). It still runs off the screen at the left, behind the words. */
  html:is([data-story="live"], [data-story="still"]) .beat[data-beat="pro-seed"] .beat-copy-inner::before { --v0: 59%; --vf: 41%; inset: -6% -10% -10% -60%; }
}
/* And where that short, wide screen is too narrow for a one-row bar (most phones on their side), the words
   start below the bar's second row. The same width as the two-row bar above. */
@media (min-aspect-ratio: 1/1) and (max-height: 560px) and (max-width: 1040px) {
  html:is([data-story="live"], [data-story="still"]) .beat-copy { --pt: 98px; }
}

/* A very short screen (a page zoomed to 300 or 400 percent, a small phone on its side with the keyboard up):
   the bar and the controls took six tenths of it. The bar keeps one row (the chapters are in the footer, and
   the tour's bar names the part of the film), and the words' room starts just under it. */
@media (max-height: 340px) {
  .chapters { display: none; }
  .story-top { padding-block: 6px; }
  html:is([data-story="live"], [data-story="still"]) .beat-copy,
  html:is([data-story="live"], [data-story="still"]) .beat[data-side] .beat-copy { --pt: 58px; --pb: 40px; --cap: 58px; }
  .story-controls { bottom: 4px; gap: 4px; }
  .story-control, .tour-bar { min-height: 30px; }
}
/* A folding phone's cover screen (under 300 pixels): the name gives way to the mark alone, the rail scrolls
   sideways inside itself, and the three markers stand one under another. */
@media (max-width: 300px) {
  .story-brand-name { display: none; }
  .story-brand { flex: none; margin-right: 8px; }
  .story-nav { gap: 0; }
  .story-nav a { padding-inline: 4px; font-size: 0.64rem; letter-spacing: 0.01em; }
  .story-nav .story-nav-cta { margin-left: 2px; padding-inline: 6px; }
  .chapters { overflow-x: auto; scrollbar-width: none; }
  .chapters::-webkit-scrollbar { display: none; }
  .chapters ol { justify-content: flex-start; gap: 12px; }
  .story-markers { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
}
/* A finger's width, wherever the pointer is a finger. Last, so that no rule above for a short or narrow screen
   takes it away (a phone on its side had Play and Motion 30 pixels high). The words may be small; the place to
   press is not. The links in the bar keep their size and place: only the area that answers a press grows,
   above and below, never into its neighbours. */
@media (pointer: coarse) {
  .story-control, .tour-bar { min-height: 44px; }
  .chapters a, .story-nav a { position: relative; }
  .story-nav a::after { content: ""; position: absolute; inset: -9px -2px -2px; }
  .chapters a::after { content: ""; position: absolute; inset: -2px -2px -8px; }
}
@media (pointer: coarse) and (min-aspect-ratio: 1/1) and (max-height: 560px) {
  .story-btn { min-height: 44px; }
}

/* ------------------------------------------------------------------------------------------------------------
   9. Screenshots (?shot=1 hides the chrome unless ?chrome=1; ?clean=1 hides the words too), reduced motion,
      print.
   ------------------------------------------------------------------------------------------------------------ */
html[data-story-shot]:not([data-story-chrome]) :is(.story-controls, .story-cue, .skip) { display: none !important; }
/* The bar is hidden but keeps its size: the director measures it to tell the world where the picture may go,
   so a picture without the chrome is framed exactly as a visitor sees it. */
html[data-story-shot]:not([data-story-chrome]) .story-top { visibility: hidden !important; }
html[data-story-shot] #stage { transition: none; }
/* The same address must always give the same picture. In the still mode the words cross-fade when the beat
   changes, and a screenshot of any beat but the first begins with exactly that change (the title, on screen
   when the page opens, gives way to the beat asked for): a picture taken a moment sooner or later would catch
   the fade at a different point. So in a screenshot nothing fades: every word is where it will be at once. */
html[data-story-shot] :is(.beat-copy, .beat-copy-inner, .beat-copy-inner > *, .stage-ghost, .stage-label) { transition: none !important; animation: none !important; }
html[data-story-clean] .beat-copy { visibility: hidden; }
/* ?ghost=1: the words' letters drawn in no colour, everything else as it is: the ground the words stand on, for
   measuring their contrast (tools/shoot.py --ghost). */
html[data-story-ghost] :is(#story, .story-top, .story-controls) * { color: transparent !important; -webkit-text-fill-color: transparent !important; text-decoration-color: transparent !important; }
/* If anything went wrong while a screenshot was being taken, say so in the picture. */
html[data-story-shot][data-story-error]::after {
  content: "story: " attr(data-story-error);
  position: fixed; z-index: 99; left: 0; right: 0; bottom: 0;
  padding: 8px 12px;
  background: var(--c27-dark-bg); color: var(--c27-on-dark);
  font: 13px/1.4 monospace;
}
/* A screenshot of the static page shows the one beat it was asked for, at the top of the page. */
html[data-story-only] .beat:not(.is-shot) { display: none; }
/* And ?part=practical leaves the story out, so the sections after it start at the top of the page. */
html[data-story-only="practical"] :is(#story, .stage-wrap, .story-controls) { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .story-cue-line { animation: none; }
  #stage { transition: none; }
}
html[data-story="still"] .story-cue-line { animation: none; }
/* The track fills smoothly only where motion is welcome; in the still mode it steps from beat to beat. */
html[data-story="still"] .tour-track > i { transition: none; }

@media print {
  .stage-wrap, .story-controls, .story-hud, .story-cue, .beat-art, .chapters, .story-nav { display: none !important; }
  .story-top { position: static !important; color: CanvasText; }
  .story-top::before { display: none; }
  html .beat, html:is([data-story="live"], [data-story="still"]) .beat {
    display: block; height: auto; min-height: 0; padding: 0 0 18pt; background: none; color: CanvasText;
    --b-ink: CanvasText; --b-ink-2: CanvasText; --b-kicker: CanvasText; --b-scrim: transparent;
    break-inside: avoid;
  }
  html .beat-copy, html:is([data-story="live"], [data-story="still"]) .beat-copy {
    position: static; display: block; padding: 0; opacity: 1 !important; transform: none !important;
  }
  html .beat-copy-inner > * { opacity: 1 !important; }
  html .beat-copy-inner { zoom: 1 !important; max-height: none !important; overflow: visible !important; -webkit-mask-image: none !important; mask-image: none !important; }
  html .beat-copy::before { display: none !important; }
  .beat-copy-inner::before { display: none; }
  .story-btn { border: 0; padding: 0; min-height: 0; background: none !important; color: CanvasText !important; }
}

/* Give (Shane, 25 Nov 2026: on every page). Below 360px wide the top bar has no room for five links, so there
   Give is in the footer only (every page has it there). */
@media (max-width: 359px) { .story-nav .nav-give { display: none; } }

/* The line under the title, in Shane's words (26 Nov 2026): "Communion to unite the Bride". Set in the display
   face, a step above the date line beneath it. */
.story-purpose { font-family: var(--c27-font-display); color: var(--b-ink); letter-spacing: 0.01em;
  font-size: clamp(1.15rem, 0.95rem + 0.7vw, 1.6rem); margin-bottom: 0.2em; }
