/* The night valley on his two paintings: the valley and its meadow above, the arches and the dusk below; soft green
   shadows under the type; the serif in two voices. Shared with supporting/. See README.md. */

/* the two faces cut to the letters our five languages use (README § The weight); the Cyrillic cut is asked for only by Russian */
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/CormorantGaramond-wght-lat.woff2") format("woff2"); font-weight: 300 700; font-display: block; }
@font-face { font-family: "EB Garamond"; src: url("fonts/EBGaramond-wght-lat.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: block; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/CormorantGaramond-wght-cyr.woff2") format("woff2"); font-weight: 300 700; font-display: block; unicode-range: U+0400-045F, U+0490-0491, U+2116; }
@font-face { font-family: "EB Garamond"; src: url("fonts/EBGaramond-wght-cyr.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: block; unicode-range: U+0400-045F, U+0490-0491, U+2116; }
@font-face { font-family: "EB Garamond"; src: url("fonts/EBGaramond-Italic-wght-lat.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: block; }
@font-face { font-family: "EB Garamond"; src: url("fonts/EBGaramond-Italic-wght-cyr.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: block; unicode-range: U+0400-045F, U+0490-0491, U+2116; }

:root {
  --g0: #111c17;                 /* the ground between the paintings: his meadows' own dark green */
  --night: #131f28;              /* the night between his arches: the lower painting's sky */
  --deep: #0d1713;               /* under everything */
  --eve: #111b27;                /* the night his words stand on between two skies, a little darker than both */
  --eve-low: #141a2a;            /* the same night nearer the camp: turning toward the dusk's indigo */
  --shade: 17 30 23;             /* the green of the shadows under the type: the meadows' darkest quarter (#141d1a), a touch richer */
  --shade-sky: 19 32 40;         /* the same, high in the sky: the paintings' dark blue-green (#132028) */
  --ink: #f0e7d3;                /* cream */
  --ink-2: rgba(240, 231, 211, .8);
  --ink-3: rgba(240, 231, 211, .58);
  --gold: #c9a66b;
  --gold-hi: #e4c78f;
  --hair: rgba(201, 166, 107, .5);
  --red: #9d3a25;
  --red-hi: #b64a2f;
  --fact: #e9dcc0;
  --season: 226 170 104;         /* the one seasonal colour: lamplight */

  --display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --serif: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --vh: 100vh;
  --k: 1;                        /* the fog's scale: smaller tiles on a phone */
  --gut: clamp(16px, 5vw, 72px);
  color-scheme: dark;
}
@supports (height: 100svh) { :root { --vh: 100svh; } }

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
/* an iPhone lays a page out to its widest piece before the clip above applies: the mists and torches are cut by the column too */
main { overflow-x: clip; }   /* the close, outside main, clips itself */
/* behind the page: what shows past either end, and under Safari's bar at the page's foot. Safari takes one flat colour for it,
   the body's own (never a gradient), so that colour follows the reader: the first screen's night blue while he is in the page's
   upper half, the foot's dark green from there (html.low, app.js). The owner, 12-03, at the page's end on his phone: "there's
   blue. Why our page doesn't sit flush at the bottom?" */
html { background: linear-gradient(#101722, #101722) 0 0 / 100% 100vh no-repeat, var(--deep); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-wrap: break-word; background: linear-gradient(var(--deep), var(--deep)) 0 100vh / 100% calc(100% - 100vh) no-repeat, #101722; color: var(--ink); font: 400 19px/1.6 var(--serif); -webkit-font-smoothing: antialiased; font-kerning: normal; text-rendering: optimizeLegibility; }
html.low body { background-color: var(--deep); }
/* italic only where it is chosen, never by default, and never a slant the browser makes up (the owner, 12-04: "We shouldn't ban
   cursive. There should be like very intentional use of it"; it replaces 12-01's "no cursive anywhere"): EB Garamond's own
   italic is here for that, and the browser's italics stay upright */
body { font-synthesis: none; }
em, i, cite, dfn, var, address { font-style: normal; }

img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-color: var(--hair); text-underline-offset: .22em; text-decoration-thickness: 1px; transition: color .25s, text-decoration-color .25s; }
a:hover { text-decoration-color: var(--gold-hi); }
:focus-visible { outline: 1px solid var(--gold-hi); outline-offset: 4px; }
::selection { background: rgb(var(--season) / .35); }
h1 { margin: 0; }
h2 { font: 500 clamp(40px, 4.6vw, 62px)/1.05 var(--display); margin: 0 0 .3em; color: var(--ink); text-wrap: balance; }

/* the two voices (the owner, 12-01: no cursive): his narration a touch larger and warmer, the plain facts smaller and cooler, both upright */
.voice p, p.voice { color: var(--ink-2); text-wrap: pretty; }
.voice p.first, .lede { color: var(--ink); font-size: 22px; line-height: 1.5; }
.facts p { font: 400 19px/1.5 var(--serif); color: var(--fact); margin: 0 0 .35em; }

/* the labels: spaced capitals in the same serif */
.top-nav a, .btn, .film-ctl, .banner-name, .viewer-close, .invite, .foot nav {
  font-family: var(--serif); font-weight: 500; text-transform: uppercase; letter-spacing: .2em;
}
.top-nav { position: absolute; z-index: 20; top: 0; right: 0; display: flex; gap: 34px; padding: 26px var(--gut); }
.top-nav a { position: relative; color: var(--ink); text-decoration: none; font-size: 14px; text-shadow: 0 1px 12px rgb(0 0 0 / .8); padding: 6px 0; }
.top-nav a::after { content: ""; position: absolute; left: 0; right: .2em; bottom: 0; height: 1px; background: var(--gold-hi); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.top-nav a:hover { color: var(--gold-hi); }
.top-nav a:hover::after { transform: scaleX(1); }

/* the other languages (lang.js): the English a line replaces is not shown while its words are put in place */
html.t-wait [data-t] { visibility: hidden; }
/* the language switch at the nav's end: the language's short name, and the others under it by their own names */
.lang { position: relative; display: block; }
.lang-now { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--ink);
  font: 500 14px var(--serif); letter-spacing: .2em; text-shadow: 0 1px 12px rgb(0 0 0 / .8); transition: color .25s; -webkit-tap-highlight-color: transparent; }
.lang-now::after { content: ""; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; rotate: 45deg; translate: 0 -2px; opacity: .8; }
.lang-now:hover, .lang-now[aria-expanded="true"] { color: var(--gold-hi); }
.lang-now:focus-visible { outline: 1px solid var(--gold-hi); outline-offset: 4px; }
/* the languages hang as one of his banners (the owner, 12-04: "this generic pop-up ... its rounded borders" and, of a first
   haze behind the names, "like an egg"): his painted banner (scene/banner.webp, as painted) on a short length of his rod,
   its window a cloth of the page's own night, the names written down it, the chosen one in gold, the page's star in its
   point. It unrolls from the rod when opened and sways as the hall's banners do. The rod's right tip stands 16px in from
   the window's edge at every width; --lw is the banner's width */
.lang { --lw: 176px; --rh: calc(var(--lw) * .146); --spear: calc(var(--rh) * 340 / 152); }
.lang-list { position: absolute; z-index: 30; top: calc(100% + 14px); right: clamp(-24px, calc(var(--spear) - 6px + 16px - var(--gut)), var(--spear));
  width: var(--lw); aspect-ratio: 768 / 1712; box-sizing: border-box; margin: 0; padding: calc(var(--lw) * .2) 10% 0; list-style: none; text-align: center;
  display: flex; flex-direction: column; align-items: center; transform-origin: 50% 2%;
  filter: drop-shadow(0 18px 16px rgb(0 0 0 / .55)); animation: lang-unroll .7s var(--ease) both; }
.lang-list[hidden] { display: none; }
.lang-list::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: url("scene/banner.webp") 0 0 / 100% 100% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cpath d='M0-11 2.6-6.3 7.8-7.8 6.3-2.6 11 0 6.3 2.6 7.8 7.8 2.6 6.3 0 11-2.6 6.3-7.8 7.8-6.3 2.6-11 0-6.3-2.6-7.8-7.8-2.6-6.3Z' fill='none' stroke='%23c9a66b' stroke-width='1.3' stroke-linejoin='round'/%3E%3Ccircle r='2.4' fill='%23c9a66b'/%3E%3C/svg%3E") 50% 80.5% / calc(var(--lw) * .1) auto no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3ClinearGradient id='g' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23192a36'/%3E%3Cstop offset='.55' stop-color='%23142230'/%3E%3Cstop offset='1' stop-color='%230e1820'/%3E%3C/linearGradient%3E%3ClinearGradient id='s' x2='1'%3E%3Cstop offset='0' stop-color='%23000' stop-opacity='.35'/%3E%3Cstop offset='.18' stop-color='%23000' stop-opacity='0'/%3E%3Cstop offset='.5' stop-color='%23fff' stop-opacity='.035'/%3E%3Cstop offset='.82' stop-color='%23000' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='.35'/%3E%3C/linearGradient%3E%3Cpath d='M0 0H100V79.5L50 100L0 79.5Z' fill='url%28%23g%29'/%3E%3Cpath d='M0 0H100V79.5L50 100L0 79.5Z' fill='url%28%23s%29'/%3E%3C/svg%3E") 50% 33.9% / 90% 87.9% no-repeat; }
.lang-list::after { content: ""; position: absolute; z-index: -2; pointer-events: none; height: var(--rh); top: calc(var(--lw) * .047 - var(--rh) / 2);
  left: calc(6px - var(--spear)); right: calc(6px - var(--spear));
  background: url("scene/rod-left.webp") 0 0 / auto 100% no-repeat, url("scene/rod-right.webp") 100% 0 / auto 100% no-repeat,
    url("scene/rod-mid.webp") 50% 0 / calc(100% - var(--spear) * 2 + 12px) 100% no-repeat; }
@keyframes lang-unroll { from { clip-path: inset(-40px -90px calc(100% - var(--lw) * .09) -90px); } to { clip-path: inset(-40px -90px -60px -90px); } }
@media (prefers-reduced-motion: no-preference) {
  .lang-list:not([hidden]) { animation: lang-unroll .7s var(--ease) both, sway 9s ease-in-out .7s infinite alternate; }
}
.lang-list li { display: block; width: 100%; }
.lang-list li + li::before { content: ""; display: block; height: 1px; width: 46%; margin: 0 auto; background: linear-gradient(90deg, transparent, rgb(201 166 107 / .38), transparent); }
.top-nav .lang-list a { display: block; padding: calc(var(--lw) * .064) 0; font: 400 calc(var(--lw) * .108)/1.15 var(--serif); letter-spacing: .02em; text-transform: none;
  color: var(--ink-2, #d9ceb6); text-shadow: 0 1px 6px rgb(0 0 0 / .6); white-space: nowrap; transition: color .25s, text-shadow .25s; }
.top-nav .lang-list a::after { display: none; }
.top-nav .lang-list a:hover, .top-nav .lang-list a:focus-visible { color: var(--gold-hi); text-shadow: 0 0 14px rgb(var(--season) / .45); outline: none; }
.top-nav .lang-list a[aria-current] { color: var(--gold-hi); }
/* the chosen one between two small gold stars, so it reads as chosen and not as touched */
.top-nav .lang-list a[aria-current]::before, .top-nav .lang-list a[aria-current]::after { content: "✦"; display: inline; position: static; margin: 0 .55em; font-size: .42em; vertical-align: .55em; color: var(--gold); background: none; transform: none; }
@media (max-width: 600px) { .lang { --lw: 152px; } }

/* the star and the ornament rule: a small gold eight-pointed star between two hairlines */
.star { width: 22px; height: 22px; color: var(--gold); display: block; overflow: visible; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 0 18px; }
.ornament::before, .ornament::after { content: ""; width: min(96px, 22vw); height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { transform: scaleX(-1); }
.ornament-left { justify-content: flex-start; }
.ornament-left::before { display: none; }
.ornament-left::after { order: -1; width: 64px; transform: none; background: linear-gradient(90deg, var(--gold), rgba(201,166,107,.2)); }
.ruled { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 26px); }
.ruled::before, .ruled::after { content: ""; flex: 1 1 0; max-width: 110px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }   /* the rules take the room that is left: they give way before the words break */
.ruled::after { transform: scaleX(-1); }

/* the button: a red plaque with pointed ends and a gold edge; the quiet ones are gold outlines */
.btn {
  --c: 15px;
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 1px 46px 0; color: #fbecd6; text-decoration: none; font-size: 15px; line-height: 1; letter-spacing: .2em;
  filter: drop-shadow(0 10px 14px rgb(0 0 0 / .5)); transition: transform .3s var(--ease), filter .3s; -webkit-tap-highlight-color: transparent; cursor: pointer;
}
.btn::before, .btn::after { content: ""; position: absolute; z-index: -1; inset: 0;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% 50%, calc(100% - var(--c)) 100%, var(--c) 100%, 0 50%); }
.btn::before { background: linear-gradient(#f6e2b4, #c39d5c 42%, #7d6135); }
.btn::after { inset: 1.5px;
  background:
    linear-gradient(105deg, transparent 38%, rgb(255 232 196 / .28) 50%, transparent 62%) 130% 0 / 260% 100% no-repeat,
    linear-gradient(rgb(255 226 190 / .16), transparent 45%),
    radial-gradient(120% 150% at 50% 0%, #c9603f, var(--red) 58%, #7b2a19);
  box-shadow: inset 0 0 0 2.5px rgb(34 10 4 / .32);
  transition: background-position .9s var(--ease); }
.btn:hover { transform: translateY(-1px); filter: drop-shadow(0 14px 18px rgb(0 0 0 / .55)) drop-shadow(0 0 14px rgb(var(--season) / .28)); }
.btn:hover::after { background-position: -30% 0, 0 0, 0 0; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn:focus-visible { outline-offset: 6px; }
.act { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 28px 0 0; }
.act::before, .act::after { content: ""; width: 7px; height: 7px; rotate: 45deg; background: var(--gold); box-shadow: 0 0 8px rgb(var(--season) / .6); }
.btn-quiet { min-height: 46px; padding: 1px 26px 0; border-radius: 999px; color: var(--ink); background: rgb(12 20 18 / .35);
  box-shadow: inset 0 0 0 1px var(--gold); filter: none; transition: background-color .3s, color .3s, box-shadow .3s, transform .3s var(--ease); }
.btn-quiet::before, .btn-quiet::after { display: none; }
.btn-quiet:hover { background: rgba(201, 166, 107, .14); color: #fff6e2; box-shadow: inset 0 0 0 1px var(--gold-hi), 0 0 22px -4px rgb(var(--season) / .4); filter: none; }
.btn-quiet { color: var(--gold-hi); text-transform: none; letter-spacing: .02em; font-size: 19px; box-shadow: inset 0 0 0 1px var(--hair); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; flex: none; }

/* things rise into place as they come on screen (app.js sets .rise on the page, then .in on each); only when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  html.rise .rv { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
  html.rise .rv.in { opacity: 1; transform: none; }
}

/* ═════ 1 · the scene: his night valley ═════
   A wide window: the valley as one plate (the top painting's x 25–100 %, y 0–60 %), set 1.34 windows wide so the name has
   sky, the sentence has mist and the bridge shows under it; over it the painting's own left edge, the tree and the lantern,
   pinned to the window's left at 1.3 windows wide with a soft inner edge. A tall window has its own crops (below).
   Glows sit on a layer by percent. Everything is cropping, scaling and feathered masks. The scene is a window and a tail tall,
   and on a wide, short window tall enough that the facts stand under the bridge and the river's bend, never on them. */
.scene { --pb: clamp(84px, calc(var(--vh) * .22), 230px);   /* the room under his sentence, to the first window's foot */
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: max(calc(var(--vh) + max(300px, var(--vh) * .42)), calc(62vw + 320px)); overflow: hidden; isolation: isolate; container-type: inline-size; margin-bottom: -2px;
  background: linear-gradient(#161c26, #1f2731 11cqw, #1f2731 34cqw, var(--g0) 78cqw); }
.layers { position: absolute; inset: 0; pointer-events: none; }
.ly { position: absolute; will-change: transform; }
.ly picture { display: contents; }
.ly img { display: block; width: 100%; height: 100%; max-width: none; }
/* mist bands across the scene */
.band { position: absolute; left: 0; right: 0; overflow: hidden; will-change: transform;
  -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent); mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent); }

/* ── a wide window ── */
.ly-valley { right: -.5cqw; top: 10.6cqw; width: 101cqw; aspect-ratio: 5 / 4;
  /* the plate's own lower left corner melts away: there the painting's cliff would stand a second time, lower, under the pinned tree's ledge */
  -webkit-mask-image: linear-gradient(transparent, #000 8%, #000 68%, transparent 87%), radial-gradient(46% 56% at 0% 92%, transparent 60%, #000 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(transparent, #000 8%, #000 68%, transparent 87%), radial-gradient(46% 56% at 0% 92%, transparent 60%, #000 100%); mask-composite: intersect; }
/* and mist lies in the drop under the ledge (the owner, 12-02: "cover it with the fog") */
.layers::after { content: ""; position: absolute; left: -9cqw; top: 54cqw; width: 50cqw; height: 30cqw; pointer-events: none;
  background: var(--fog, none) 30% 40% / 62cqw 24cqw repeat, radial-gradient(closest-side, rgb(206 204 220 / .2), rgb(206 204 220 / .07) 60%, transparent);
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent);
  opacity: .8; animation: pool 19s ease-in-out infinite alternate; will-change: opacity; }
@keyframes pool { from { opacity: .5; } to { opacity: .9; } }
.ly-tree { left: 0; top: 0; width: 31.2cqw; aspect-ratio: 24 / 46;
  -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent 98%), linear-gradient(#000 82%, transparent 99%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, #000 60%, transparent 98%), linear-gradient(#000 82%, transparent 99%); mask-composite: intersect; }
.band-far    { top: 30cqw; height: 22cqw; }
.band-valley { top: 40cqw; height: 26cqw; }
.band-near   { top: 66cqw; height: 26cqw; }
.moon    { left: 74.05%; top: 13.08%; width: 21%; }
.lantern { left: 61.4%; top: 74.4%; width: 86%; }
.lantern-2 { width: 34%; }
.flies   { left: 30%; top: 58%; width: 90%; height: 36%; }
.stars   { left: 12%; top: 1%; width: 58%; height: 15%; }

/* ── a window taller than wide: his tall painting of the same valley, whole across the window, from its dark sky to the
   cliff's edge, at every width. Everything in it is set by the window's width; only where it hangs follows the window's
   height (--pt, its top): it stands so that his sentence, at the first window's foot, lies in the mist under the lantern's
   ledge (the painting's 89 %). On a squat window its dark upper sky runs off the top; on a long one the name stands in the
   night above it. The scene is then the first window and the facts' row, nothing more. ── */
@media (max-aspect-ratio: 1/1) {
  /* his sentence stands low, near the window's foot, as it did on his phone before the rebuild (the owner, 12-03: "now the
     text at the bottom has moved too much up. You see how it was previously?"): 13.5 % of the window under it */
  .scene { --pb: clamp(72px, calc(var(--vh) * .135), 170px); --pt: clamp(-22vw, calc(var(--vh) - var(--pb) - 60px - 115.5vw), 60vw); min-height: 0;
    background: linear-gradient(#101722, #101722 var(--pt), #17212a calc(var(--pt) + 96vw), var(--g0) calc(var(--pt) + 124vw)); }
  .ly-tree img, .layers::after { display: none; }
  .ly-valley { left: 0; right: auto; top: var(--pt); width: 100cqw; aspect-ratio: 2272 / 2949;
    -webkit-mask-image: linear-gradient(transparent, #000 7%, #000 81%, transparent 97%); mask-image: linear-gradient(transparent, #000 7%, #000 81%, transparent 97%); }
  .ly-tree { left: 0; top: var(--pt); width: 100cqw; aspect-ratio: 2272 / 2949; -webkit-mask-image: none; mask-image: none; }   /* the painting has its own tree: this box holds the lantern's glow and the fireflies */
  .moon    { left: 80.6%; top: 56.2%; width: 30%; }
  .stars   { left: 44%; top: 3%; width: 52%; height: 44%; }
  .lantern { left: 14.9%; top: 77.4%; width: 34%; }
  .lantern-2 { width: 13%; }
  .flies   { left: 4%; top: 66%; width: 40%; height: 20%; }
  .band-far    { top: calc(var(--pt) + 84cqw); height: 20cqw; }
  .band-valley { top: calc(var(--pt) + 96cqw); height: 30cqw; }
  .band-near   { top: calc(var(--pt) + 112cqw); height: 40cqw; }
  .first-line::before { --by: -40%; }
}

/* the moon's light breathes; the lantern flickers */
.moon {
  position: absolute; aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(closest-side, rgb(255 226 170 / .42), rgb(255 210 150 / .14) 45%, transparent);
  mix-blend-mode: screen; animation: moon 11s ease-in-out infinite alternate; will-change: opacity, transform;
}
@keyframes moon { from { opacity: .55; transform: scale(.94); } to { opacity: 1; transform: scale(1.05); } }
.lantern {
  position: absolute; aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(closest-side, rgb(var(--season) / .55), rgb(var(--season) / .16) 40%, transparent);
  mix-blend-mode: screen; animation: flicker 3.1s steps(1, end) infinite; will-change: opacity;
}
.lantern-2 { background: radial-gradient(closest-side, rgb(255 214 150 / .6), transparent); animation: flicker2 1.7s ease-in-out infinite alternate; }
@keyframes flicker { 0% { opacity: .85; } 9% { opacity: .7; } 17% { opacity: .95; } 31% { opacity: .78; } 44% { opacity: 1; } 52% { opacity: .74; } 66% { opacity: .9; } 79% { opacity: .68; } 88% { opacity: .96; } }
@keyframes flicker2 { from { opacity: .55; } 40% { opacity: .9; } to { opacity: .7; } }

/* a few stars that twinkle, and fireflies by the lamps: small lights, each on its own slow clock */
.stars, .flies { position: absolute; display: block; pointer-events: none; }
.stars b { position: absolute; width: 2.5px; height: 2.5px; border-radius: 50%; background: #fff3d6; box-shadow: 0 0 6px 1px rgb(255 236 196 / .7); opacity: .2; animation: twinkle 5.3s ease-in-out infinite; }
.stars b:nth-child(1) { left: 6%;  top: 18%; animation-duration: 4.6s; }
.stars b:nth-child(2) { left: 21%; top: 46%; animation-delay: -2.1s; width: 2px; height: 2px; }
.stars b:nth-child(3) { left: 37%; top: 12%; animation-duration: 6.4s; animation-delay: -1.2s; }
.stars b:nth-child(4) { left: 55%; top: 30%; animation-delay: -3.4s; width: 2px; height: 2px; }
.stars b:nth-child(5) { left: 69%; top: 9%;  animation-duration: 7.1s; animation-delay: -.6s; }
.stars b:nth-child(6) { left: 84%; top: 40%; animation-duration: 4.1s; animation-delay: -2.8s; }
.stars b:nth-child(7) { left: 93%; top: 78%; animation-delay: -4.4s; width: 2px; height: 2px; }
.stars b:nth-child(8) { left: 12%; top: 84%; animation-duration: 6.9s; animation-delay: -5.2s; }
.stars b:nth-child(9) { left: 46%; top: 3%;  animation-duration: 5.8s; animation-delay: -3.9s; width: 2px; height: 2px; }
@keyframes twinkle { 0%, 100% { opacity: .12; transform: scale(.8); } 50% { opacity: .95; transform: scale(1.15); } }
.flies b { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #ffe6a8; box-shadow: 0 0 8px 2px rgb(255 206 120 / .75); opacity: 0;
  animation: fly 17s ease-in-out infinite, glow 4.3s ease-in-out infinite; will-change: transform, opacity; }
.flies b:nth-child(1) { left: 30%; top: 62%; }
.flies b:nth-child(2) { left: 52%; top: 38%; animation-duration: 21s, 5.1s; animation-delay: -6s, -1.3s; }
.flies b:nth-child(3) { left: 71%; top: 70%; animation-duration: 14s, 3.7s; animation-delay: -3s, -2.2s; width: 3px; height: 3px; }
.flies b:nth-child(4) { left: 15%; top: 26%; animation-duration: 24s, 6.2s; animation-delay: -11s, -.4s; width: 3px; height: 3px; }
.flies b:nth-child(5) { left: 86%; top: 46%; animation-duration: 19s, 4.8s; animation-delay: -8s, -3.1s; }
@keyframes fly { 0%, 100% { transform: translate(0, 0); } 22% { transform: translate(26px, -18px); } 47% { transform: translate(-12px, -40px); } 71% { transform: translate(-34px, -8px); } }
@keyframes glow { 0%, 100% { opacity: 0; } 35%, 60% { opacity: .9; } }

/* the fog: one soft noise texture made once in app.js (--fog), stretched wide and slid sideways.
   Each layer is one tile wider than its box and moves exactly one tile, so the loop never shows. */
.fog {
  --tw: calc(1400px * var(--k)); --th: calc(560px * var(--k)); --dur: 140s; --op: .4;
  position: absolute; left: 0; top: 0; height: 100%; width: calc(100% + var(--tw));
  background-image: var(--fog, none); background-size: var(--tw) var(--th); background-repeat: repeat;
  opacity: var(--op); pointer-events: none;
  animation: drift var(--dur) linear infinite; will-change: transform;
}
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(-1 * var(--tw)), 0, 0); } }
.breath { position: absolute; inset: 0; animation: breathe 21s ease-in-out infinite alternate; will-change: opacity; }
@keyframes breathe { 0% { opacity: .35; } 55% { opacity: 1; } 100% { opacity: .6; } }
.f-far { --tw: calc(1500px * var(--k)); --th: calc(420px * var(--k)); --dur: 200s; --op: .3; }
.f-valley { --tw: calc(1200px * var(--k)); --th: calc(380px * var(--k)); --dur: 130s; --op: .34; animation-direction: reverse; }
.f-valley2 { --tw: calc(1700px * var(--k)); --th: calc(520px * var(--k)); --dur: 230s; --op: .2; background-position: 500px 0; }
.f-near { --tw: calc(1100px * var(--k)); --th: calc(300px * var(--k)); --dur: 110s; --op: .14; }

/* grading over the art, never in it: the sky's top darkens under the nav, the corners close in */
.shade { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(rgb(10 12 22 / .36), transparent 12%),
  radial-gradient(125% 85% at 50% 38%, transparent 64%, rgb(8 12 14 / .3)); }

/* the type in the sky: the name, the date between gold rules, the star (the owner's layout, 12-01) */
/* The scene's words are rows in its column (the owner, 12-03: "one div per section, and it will be flexbox ... inside that 2
   divs. One div will be the higher row, and then another div will be the bottom row ... the container section div has
   padding ... justify the content space between"). .window is the first window: the name's row at its head, his sentence's
   row at its foot, the room between them, a padding above and below. The facts' row closes the scene. No row has a place
   of its own: a longer text, a larger type or a shorter window makes its row and the scene taller, and nothing meets. */
.window { flex: none; display: flex; flex-direction: column; justify-content: space-between; min-height: var(--vh);
  padding: clamp(96px, calc(var(--vh) * .145 + 1.6vw), 210px) 0 var(--pb); }
.sky-type, .low-type, .first-line { position: relative; z-index: 10; isolation: isolate; text-align: center; padding-inline: var(--gut); }
.first-line { margin-top: 28px; }   /* the least room between the two rows, on a window too short for both */
/* the soft green shadows under the type (the owner, 12-02): several uneven pools of the meadow's own dark green, strong under
   the words and gone at the edges, their surface broken by a fine grain (app.js makes it once, --grain) so they read as paint.
   Never a box, never black. High in the sky the pool is the sky's dark blue-green and lighter. */
.sky-type::before, .first-line::before, .low-type::before, .points::before, .spread-words::before, .film-under::before,
.hall-head::before, .hall-row::before, .banners::after, .foot::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: var(--by, -34%) var(--bxr, var(--bx, -16%)) var(--by, -34%) var(--bx, -16%);
  /* every pool lies wholly inside the box (centre ± radius), so no edge of the box ever shows */
  background:
    radial-gradient(31% 45% at 32% 46%, rgb(var(--bk, var(--shade)) / calc(.7 * var(--ba, 1))) 0 26%, rgb(var(--bk, var(--shade)) / calc(.3 * var(--ba, 1))) 64%, transparent 100%),
    radial-gradient(32% 43% at 67% 56%, rgb(var(--bk, var(--shade)) / calc(.66 * var(--ba, 1))) 0 24%, rgb(var(--bk, var(--shade)) / calc(.28 * var(--ba, 1))) 62%, transparent 100%),
    radial-gradient(27% 49% at 50% 50%, rgb(var(--bk, var(--shade)) / calc(.62 * var(--ba, 1))) 0 30%, rgb(var(--bk, var(--shade)) / calc(.26 * var(--ba, 1))) 66%, transparent 100%),
    radial-gradient(41% 39% at 42% 60%, rgb(var(--bk, var(--shade)) / calc(.44 * var(--ba, 1))) 0 10%, transparent 100%),
    radial-gradient(39% 38% at 60% 39%, rgb(var(--bk, var(--shade)) / calc(.4 * var(--ba, 1))) 0 10%, transparent 100%),
    radial-gradient(40% 24% at 44% 25%, rgb(var(--bk, var(--shade)) / calc(.5 * var(--ba, 1))) 0 30%, transparent 100%),
    radial-gradient(40% 24% at 57% 76%, rgb(var(--bk, var(--shade)) / calc(.5 * var(--ba, 1))) 0 30%, transparent 100%);
  -webkit-mask-image: var(--grain, none); mask-image: var(--grain, none); -webkit-mask-size: 180px 180px; mask-size: 180px 180px;
}
.sky-type::before { --bk: var(--shade-sky); --ba: .6; --by: -34%; --bx: max(2%, calc(50% - 21rem)); }
.mark { margin: 0; font: 500 clamp(76px, 9.4vw, 136px)/.95 var(--display); letter-spacing: .005em; color: var(--ink); text-shadow: 0 2px 30px rgb(10 12 20 / .6), 0 0 80px rgb(255 226 170 / .12); }
.mark-small { font-size: 36px; color: var(--ink-2); margin: 0 0 20px; text-shadow: none; }
.invite { display: flex; align-items: center; justify-content: center; gap: 22px; margin: clamp(26px, 3.4vh, 40px) 0 14px; font-size: 15px; color: var(--ink); letter-spacing: .3em; text-shadow: 0 1px 10px rgb(10 12 20 / .8); }
.invite span { padding-left: .3em; }
.invite::before, .invite::after { content: ""; width: clamp(48px, 7vw, 92px); height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.invite::after { transform: scaleX(-1); }
.sky-type .star { margin: 6px auto 0; width: 20px; height: 20px; filter: drop-shadow(0 0 6px rgb(var(--season) / .5)); }

/* his sentence in the mist, a little above the first screen's foot */
.first-line::before { --by: -105%; --bx: max(0%, calc(50% - 36rem)); }
.first-line .lede { position: relative; max-width: 50rem; margin: 0 auto; font-size: clamp(20px, 1.75vw, 25px); text-shadow: 0 1px 14px rgb(10 12 20 / .9), 0 0 2px rgb(10 12 20 / .6); text-wrap: balance; }

/* the facts and the button, low in the scene above the stroke: they come with the first scroll */
.low-type { flex: none; padding-top: 44px; padding-bottom: calc(var(--rise) + 30px); }  /* clear of the ridges where they cross the middle */
.low-type::before { --by: -46%; --bx: max(0%, calc(50% - 31rem)); }
.low-type .ornament { margin-bottom: 14px; }
.facts { max-width: 34rem; margin: 0 auto; text-shadow: 0 1px 12px rgb(10 14 12 / .95); }
.facts p { margin: 0; text-wrap: wrap; }

/* ═════ his painted border strokes, as ridges (the owner, 12-02). Each is one of the four strokes he painted on one sheet,
   lifted off its black and never recoloured (ridge-N.webp: tools/ridges.py), shown whole or larger than the window. Under a
   stroke may lie a shade of the ground's green, cut along the stroke's own lower edge (ridge-N-ground.webp: solid just under
   the paint, then melting away), so the stroke is the lit rim of a dark ridge and whatever is behind it shows above.
   A ridge is placed by its width (--w), its left (--x) and how far its strip's foot stands above its line (--y), all in
   window widths, so a composition holds at every size. An .edge is the window-wide box a composition lives in: it cuts
   off what runs past the window's sides, so a stroke wider than the window never widens the page. ═════ */
.edge { position: absolute; left: 0; right: 0; overflow: hidden; pointer-events: none; }
.ridge { position: absolute; left: var(--x, 0vw); bottom: calc(var(--line, 0vw) + var(--y, 0vw)); width: var(--w, 100vw); aspect-ratio: 1792 / 176; }
.ridge img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.ridge.grounded::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 300%; background: var(--rg, var(--g0));
  -webkit-mask: var(--rm) 0 0 / 100% 100% no-repeat, linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-composite: source-in;
  mask: var(--rm) 0 0 / 100% 100% no-repeat, linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-composite: intersect; }   /* a shade's two ends melt away, so one that ends inside the window shows no edge */

/* the scene's edge: where the valley ends and Ways to play begins. Two strokes, "composing them to make it look like a small
   mountain": the near ridge across the whole window, its grasses at the window's sides, and behind it a smaller, farther one
   whose two crests stand between the near one's and whose ends are tucked behind them; both dip in the middle, under the
   button. It hangs from the top of Ways to play (its line, --line above the box's foot), over the meadow's plate, and --rise
   is how high it stands above that line in the middle: the facts and the button keep clear of it. */
:root { --rise: 6.4vw; }
.ridge-far  { --w: 62vw; --x: 18.6vw; --y: .9vw; --rm: url("scene/ridge-2-ground.webp"); --rg: #16241f; }   /* a ridge farther off: its ground a little paler */

/* now and then a glint of light runs along the near ridge's gold, through the stroke's own shape */
.glint { position: absolute; inset: 0; -webkit-mask: url("scene/ridge-1.webp") center / 100% 100% no-repeat; mask: url("scene/ridge-1.webp") center / 100% 100% no-repeat;
  background: linear-gradient(100deg, transparent 20%, rgb(255 238 186 / .34) 50%, transparent 80%) -60% 0 / 26% 100% no-repeat;
  mix-blend-mode: screen; animation: glint 13s ease-in-out infinite; }
@keyframes glint { 0%, 55% { background-position: -60% 0; } 95%, 100% { background-position: 160% 0; } }

/* ═════ the ground between the paintings: the meadows' own dark green, where the valley above has faded and the meadow below
   has not yet begun. A plate is a crop of one of his paintings laid behind a section, its edges feathered away. ═════ */
.ground { position: relative; z-index: 1; isolation: isolate; background: var(--g0); }
.plate { position: absolute; z-index: -1; inset: 0; margin: 0; overflow: hidden; pointer-events: none; }
.plate img { display: block; max-width: none; }

/* the four points: icon, title and a line each, a hairline between them (their place in Ways to play is at this file's end) */
.strip { position: relative; z-index: 1; padding: clamp(78px, 8.6vw, 124px) var(--gut) 0; text-align: center; }
.strip::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 8%; width: min(1100px, 96%); height: 80%; translate: -50% 0; pointer-events: none;
  background: radial-gradient(closest-side, rgb(38 58 46 / .3), transparent); }
.points { position: relative; isolation: isolate; }
.points::before { --by: -50%; --bx: -8%; --ba: 1; }
.points { list-style: none; margin: 0 auto; padding: 0; max-width: 1140px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.points li { position: relative; padding: 6px clamp(14px, 2.4vw, 36px) 10px; }
.points li + li::before { content: ""; position: absolute; left: 0; top: 10%; bottom: 6%; width: 1px; background: linear-gradient(transparent, var(--hair) 25%, var(--hair) 75%, transparent); }
.points li + li::after { content: ""; position: absolute; left: -3px; top: 50%; width: 7px; height: 7px; rotate: 45deg; background: var(--g0); box-shadow: inset 0 0 0 1px var(--gold); }
.icon { display: block; width: 48px; height: 40px; margin: 0 auto 18px; fill: none; stroke: var(--gold-hi); stroke-width: 1.35; stroke-linejoin: round; stroke-linecap: round; overflow: visible; filter: drop-shadow(0 0 8px rgb(var(--season) / .4)); }
.points h3 { margin: 0 0 8px; font: 600 clamp(22px, 1.95vw, 27px)/1.15 var(--display); letter-spacing: .01em; color: var(--ink); }
.points p { margin: 0 auto; max-width: 15.5em; font-size: 16.5px; line-height: 1.45; color: var(--ink-2); text-wrap: balance; }

/* ═════ the spread: the page's one section piece (the owner, 12-03: "this could be like our one section template, and we can
   flip it left and right ... so we have some a bit structure or a bit cohesiveness"). Ways to play is one; Come and try it
   is one flipped. What a spread is:
   · the section above it ends on the ground's dark green (the scene's foot, the hall's);
   · his near border stroke lies on that green with its own ground under it, hung from the spread's top (.spread-edge,
     .ridge-near), and his words begin close under it;
   · on a wide window his words stand in a column at one side, 5 of the measure's 12 (.spread-words), and the painting, the
     section's plate (.spread-art), comes up from under the stroke on the other side, feathered all round; over the painting
     behind his words lies a pool of the ground's own dark green (--pool, laid by each section's plate with whatever else
     lies on it). .flip puts his words at the right;
   · on a narrower window his words run across the page on the plain ground, and each section lays its own picture after them.
   A section keeps what is its own: its painting's crop and feather, its measures, what follows his words. ═════ */
.spread { position: relative; z-index: 1; isolation: isolate; padding-top: clamp(18px, 1.6vw, 30px); }
.spread-edge { z-index: 0; top: -16vw; height: 40vw; --line: 24vw; }   /* its line, --line above the box's foot, is the spread's top */
:root { --near-w: 104vw; --near-x: -2vw; --near-y: -2.3vw; }   /* on :root, so the close's night can follow the stroke's edge */
.ridge-near { --w: var(--near-w); --x: var(--near-x); --y: var(--near-y); --rm: url("scene/ridge-1-ground.webp"); }
.flip .glint { animation-delay: -6s; }   /* not in step with the scene's */
.spread-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.spread-words { position: relative; z-index: 1; isolation: isolate; display: flow-root; max-width: 33rem; }
.spread-words::before { --by: -38%; --bx: -42%; --ba: .5; }
@media (min-width: 900px) {
  .spread-art { top: clamp(-150px, -9vw, -60px); clip-path: inset(clamp(60px, 9vw, 150px) 0 0 0);   /* it begins under the stroke, never above it */
    --pool: radial-gradient(ellipse 39vw var(--pool-h, 45vw) at var(--pool-x, 8vw) var(--pool-y, 19vw), rgb(var(--shade) / .97) 0 60%, rgb(var(--shade) / .6) 80%, transparent 100%); }   /* the owner, 12-02: "very dark green, almost nothing is visible" */
  .spread-words { width: min(33rem, 100% * 5 / 12); }
  .flip .spread-art { --pool-x: calc(100% - 8vw); }
  .flip .spread-words { margin-left: auto; }
}
@media (max-width: 899px) {
  .spread-words::before { display: none; }   /* his words stand on the plain ground here */
  /* and a spread's title stands in the middle with its star under it, a rule at either side; what follows is each section's own:
     Ways to play's words centred, the close's at the left as a letter's (the owner, 12-03, of the close on his phone: "Can we
     make the title of it centered and this symbol underneath the title and just leave the text left aligned? I want to see
     how that would look"). */
  .spread-words h2 { text-align: center; }
  .spread-words .ornament-left { justify-content: center; }
  /* the close's title and star stand under the crest of the stroke above them, not the window's middle (the owner, 12-03:
     "It kinda should like respect the curvature of the line above it ... It should in the center of that thing") */
  .close .spread-words h2, .close .spread-words .ornament-left { translate: calc(var(--crest, 50vw) - 50vw) 0; }   /* a tablet's stroke dips in the middle: there it stays centred */
  .spread-words .ornament-left::before { display: block; }
  .spread-words .ornament-left::after { order: 0; width: min(96px, 22vw); transform: scaleX(-1); background: linear-gradient(90deg, transparent, var(--gold)); }
}

/* ═════ 2 · Ways to play: his words on the cliff's rock, the riders beside them, then the game itself in his gold frame on the
   meadow. Behind all of it the top painting's lower half (y 44–100 %), 1.82 windows wide, the riders kept to the right. ═════ */
.ways { padding-inline: var(--gut); padding-bottom: clamp(36px, 4vw, 56px); }
.plate-meadow img { position: absolute; left: 0; top: 0; height: 101.9vw; width: auto; aspect-ratio: 2560 / 1434; transform: translateX(-25%);
  -webkit-mask-image: linear-gradient(transparent, #000 15%, #000 76%, transparent); mask-image: linear-gradient(transparent, #000 15%, #000 76%, transparent); }
/* over the plate, the ground's own dark green (the owner, 12-02: "very dark green, almost nothing is visible", as in his concept):
   one pool behind his words at the left, one behind the four points and the film; the riders stay clear at the right, and the
   meadow's grasses and flowers show only at the window's sides */
.plate-meadow { --pool-h: 40%; --pool-y: 17%; }   /* the pool behind his words keeps this plate's own measure, down toward the four points */
.plate-meadow::after { background: var(--pool), radial-gradient(ellipse 54% 42% at 50% 72%, rgb(var(--shade) / .95) 0 72%, transparent 100%); }
.ways-top { max-width: 1320px; margin: 0 auto; min-height: clamp(400px, 40vw, 580px); }   /* the measure his words' column is a part of; room for the riders beside them */
.ways-words h2 { margin-bottom: .25em; }
/* in the narrow layout Ways to play's words are centred like the parts above them, the star between two rules, at every width
   of it (the owner, 12-03: "it should always stay the center ... when it's in the phone mode"; they stood at the left from 641
   up, which read as a third layout). The ending's are not: they stay at the left, "almost like this is the letter" */
@media (max-width: 899px) {
  .ways-words { margin: 0 auto; text-align: center; }
}
.riders { display: none; }

.ways-film { position: relative; z-index: 2; max-width: 1000px; margin: clamp(64px, 8vw, 120px) auto 0; scroll-margin-top: max(24px, calc((100vh - min(1000px, 100vw) * .44) / 2 - 20px)); }   /* above the four points and their shade */
/* the film in his gold frame (his second, heavier one, 12-02): the film fills the frame's window, a shadow and a little lamplight lie
   behind. The frame and the film stand over every shade of the type round them (the owner, 12-02): nothing dims the gold. */
.frame { position: relative; isolation: isolate; aspect-ratio: 1792 / 786; }
.frame-glow { position: absolute; left: 5%; right: 5%; top: 10%; bottom: 10%; border-radius: 8px; pointer-events: none;
  box-shadow: 0 0 0 10px rgb(var(--shade) / .5), 0 0 70px 40px rgb(var(--shade) / .78), 0 30px 150px 90px rgb(var(--shade) / .5), 0 46px 80px -18px rgb(6 12 9 / .8), 0 0 150px 24px rgb(var(--season) / .1); }
.frame-art { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.film { position: absolute; z-index: 1; left: 5%; top: 9%; width: 90%; height: 83.4%; background: #0c1210; overflow: hidden; }
.film video { width: 100%; height: 100%; object-fit: cover; background: #0c1210; cursor: pointer; }
.film::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .55), inset 0 0 46px rgb(0 0 0 / .35); }
.film-play { all: unset; box-sizing: border-box; position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; width: clamp(60px, 8vw, 92px); aspect-ratio: 1; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff3d8; background: radial-gradient(closest-side, rgb(18 20 16 / .78) 78%, rgb(18 20 16 / .5));
  box-shadow: 0 0 0 1.5px var(--gold-hi), 0 0 0 6px rgb(16 22 18 / .45), 0 0 0 7px var(--hair), 0 14px 40px rgb(0 0 0 / .6), 0 0 44px rgb(var(--season) / .35);
  transition: transform .35s var(--ease), box-shadow .35s; }
.film-play[hidden] { display: none; }
.film-play svg { width: 42%; height: 42%; fill: currentColor; translate: 4% 0; }
.film-play:hover { transform: scale(1.06); }
.film-play:focus-visible { outline: 1px solid var(--gold-hi); outline-offset: 10px; }
.film-under { position: relative; padding: 14px 0 0; text-align: center; }   /* no layer of its own: its shade lies under the frame, its words over the frame's shadow */
.film-under::before { --by: -60%; --bx: -4%; }
.film-ctl { margin: 0; display: flex; gap: 18px; align-items: center; justify-content: center; font-size: 13px; }
.film-ctl .dot { width: 12px; height: 12px; color: var(--gold); }
.film-ctl a, .film-toggle { color: var(--gold-hi); text-decoration: none; padding: 8px 2px; transition: color .25s; }
.film-toggle { all: unset; cursor: pointer; color: var(--ink-3); padding: 8px 2px; transition: color .25s; }
.film-ctl a:hover, .film-toggle:hover { color: #fff3d8; }
.film-toggle:focus-visible { outline: 1px solid var(--gold-hi); outline-offset: 4px; }

/* ═════ 3 · The characters: the bottom painting's night sky behind (its x 18–79 %, y 0–62 %, covering the hall), and its two
   arches (x 0–24 % and 76–100 %, y 0–64 %) pinned to the window's sides at 1.45 windows wide, their crowns rising beside the
   film's foot, their pennants beside the title, their torches beside the rod; the banners between. ═════ */
:root { --arch: min(34.8vw, 500px); }   /* an arch's width: the hall's own, and what the film's line keeps clear of */
.hall {
  position: relative; z-index: 1; isolation: isolate; clip-path: inset(-600px 0 -1px 0);
  --side: max(var(--gut), calc(var(--arch) * .39));
  padding: clamp(130px, 13vw, 190px) var(--side) clamp(96px, 9.4vw, 150px);
  background: linear-gradient(var(--night) 70%, var(--g0));   /* it ends on the ground's green, as the valley does: the ending's stroke lies on that green */
}
.plate-hall { z-index: 0; top: clamp(-140px, -8vw, -60px);
  -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 78%, transparent 97%); mask-image: linear-gradient(transparent, #000 16%, #000 78%, transparent 97%); }
.plate-hall img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
/* the ground runs into the night at the top */
.hall::before { content: ""; position: absolute; z-index: 0; left: 0; right: 0; top: -1px; height: clamp(90px, 10vw, 150px); pointer-events: none; background: linear-gradient(var(--g0), transparent); }
.hall > :not(.arch):not(.fog):not(.plate):not(.edge) { position: relative; z-index: 2; }
.arch { position: absolute; z-index: 1; top: calc(var(--arch) * -.488); width: var(--arch); aspect-ratio: 760 / 2026; pointer-events: none; }
.arch-l { left: 0; } .arch-r { right: 0; }
.arch img { display: block; width: 100%; height: 100%; max-width: none; }
.arch-l img { -webkit-mask-image: linear-gradient(90deg, #000 46%, transparent 96%), linear-gradient(transparent, #000 9%, #000 86%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, #000 46%, transparent 96%), linear-gradient(transparent, #000 9%, #000 86%, transparent); mask-composite: intersect; }
.arch-r img { -webkit-mask-image: linear-gradient(-90deg, #000 46%, transparent 96%), linear-gradient(transparent, #000 9%, #000 86%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(-90deg, #000 46%, transparent 96%), linear-gradient(transparent, #000 9%, #000 86%, transparent); mask-composite: intersect; }
.torch { position: absolute; width: 70%; aspect-ratio: 1; translate: -50% -50%; mix-blend-mode: screen; pointer-events: none;
  background: radial-gradient(closest-side, rgb(255 190 110 / .5), rgb(var(--season) / .14) 45%, transparent); animation: flicker 2.7s steps(1, end) infinite; }
.arch-l .torch { left: 15.4%; top: 78.6%; }
.arch-r .torch { left: 84.6%; top: 79%; animation-delay: -1.3s; }
/* sparks rise from each torch and go out */
.sparks { position: absolute; top: 77.6%; width: 0; height: 0; display: block; }
.arch-l .sparks { left: 15.4%; } .arch-r .sparks { left: 84.6%; }
.sparks b { position: absolute; left: 0; top: 0; width: 3px; height: 3px; border-radius: 50%; background: #ffd58a; box-shadow: 0 0 6px 1px rgb(255 170 80 / .8); opacity: 0;
  animation: spark 3.6s ease-out infinite; will-change: transform, opacity; }
.sparks b:nth-child(1) { --dx: -14px; }
.sparks b:nth-child(2) { --dx: 9px;  animation-delay: -1.1s; animation-duration: 4.4s; }
.sparks b:nth-child(3) { --dx: 20px; animation-delay: -2.3s; animation-duration: 3.1s; width: 2px; height: 2px; }
.sparks b:nth-child(4) { --dx: -5px; animation-delay: -3s;   animation-duration: 5s; width: 2px; height: 2px; }
@keyframes spark { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: .95; } 70% { opacity: .5; } 100% { transform: translate(var(--dx), -96px); opacity: 0; } }
.f-haze { --tw: calc(1700px * var(--k)); --th: calc(800px * var(--k)); --dur: 260s; --op: .1; top: 34%; height: 66%;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }

/* one of his strokes over the hall, in front of the arches: it rises out of the grass on each arch's crown, its ends melting
   into it, and swings down to the middle above the title. A line only: no ground under it. */
.edge-hall { z-index: 2; top: 0; height: 16vw; }
.ridge-hall { --w: 110vw; --x: -5vw; bottom: auto; top: clamp(4px, 1.2vw, 24px);
  -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 25%, #000 75%, transparent 90%); mask-image: linear-gradient(90deg, transparent 10%, #000 25%, #000 75%, transparent 90%); }
/* under his words the rod hangs clear of the pennants' tips: on a wide window the tips reach lower than his words, so the gap grows with the arches */
.hall-head { max-width: 680px; margin: 0 auto calc(clamp(48px, 5.6vw, 76px) + clamp(0px, 20.3vw - 223px, 70px)); text-align: center; isolation: isolate; }
.hall-head::before { --bk: var(--shade-sky); --ba: .7; --by: -24%; --bx: -22%; }
/* on a wide window his words stand midway between the stroke above them and the rod below (the owner, 12-02): the block is set
   down by half of what the gap under it has over the gap above it, as measured at 1100, 1180, 1333, 1440 and 1920 */
@media (min-width: 900px) { .hall-head { top: calc(clamp(20px, 10.6vw - 92px, 62px) + clamp(0px, 4.6vw - 66px, 24px)); } }
/* under 1100, in either layout, his words fill the room between the arches: they keep clear of the two pennants */
@media (max-width: 1099px) { .hall-head { padding: 0 calc(var(--arch) * .1); } }
.hall-head h2 { margin-bottom: .32em; }
.hall-head .ornament { margin-bottom: 26px; }
.hall-head .ornament::before, .hall-head .ornament::after { width: 0; }
.hall-words p:last-child { margin-bottom: 0; }

/* the row under the banners (the owner, 12-02): every ready hero drifting slowly, the wiki at its right end; it keeps between the arches */
.hall-row { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); max-width: min(1100px, 100vw - var(--arch)); margin: clamp(40px, 4.6vw, 68px) auto 0; isolation: isolate; }
.hall-row::before { --bk: var(--shade-sky); --ba: .7; --by: -26%; --bx: -8%; }
.faces { flex: 1; min-width: 0; display: flex; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 10px 0 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.faces::-webkit-scrollbar { display: none; }
.faces-track { display: flex; flex: none; list-style: none; margin: 0; padding: 0; }
.faces-track li { flex: none; width: 98px; margin-right: 10px; }
.face { all: unset; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; cursor: zoom-in; text-align: center; -webkit-tap-highlight-color: transparent; }
.face img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 4px var(--night), 0 0 0 5px var(--hair), 0 8px 18px -6px rgb(0 0 0 / .7); transition: box-shadow .35s, transform .35s var(--ease); }
.face span { font-size: 14px; line-height: 1.2; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; transition: color .3s; }
.face:hover span, .face:focus-visible span { color: var(--gold-hi); }
.face:hover img, .face:focus-visible img { transform: translateY(-3px) scale(1.05); box-shadow: 0 0 0 1.5px var(--gold-hi), 0 0 0 4px var(--night), 0 0 0 5px var(--gold), 0 12px 24px -6px rgb(var(--season) / .55); }
.hall-row .wiki { flex: none; margin: 0; }

/* the banners: each hangs from his gold rod by its two rings, in his painted edge and fringe, and sways a little */
.banners {
  --bw: clamp(100px, 11.6vw, 184px); --g: clamp(4px, .7vw, 12px);   /* 11.6vw keeps six between the arches down to 900 wide */
  list-style: none; margin: 0 auto; padding: 8px 0 0; max-width: 1240px; position: relative; isolation: isolate;
  display: flex; justify-content: center; gap: var(--g);
}
.banners::after { --bk: var(--shade-sky); --ba: 1; inset: auto -12% -62px -12%; height: 170px; }
.banners li { position: relative; flex: none; width: var(--bw); }
/* his painted rod (the owner, 12-02): its shaft runs behind every banner, a length a banner, and its two spearheads close the row.
   --rh is the rod pieces' height, --ry where the rod's middle lies: through the banner's two rings */
.banners { --rh: calc(var(--bw) * .146); --ry: calc(var(--bw) * .047); }
.banners li::before { content: ""; position: absolute; z-index: 0; top: calc(var(--ry) - var(--rh) / 2); height: var(--rh); left: calc(var(--g) / -2 - 1px); right: calc(var(--g) / -2 - 1px);
  background: url("scene/rod-mid.webp") center / 100% 100% no-repeat; filter: drop-shadow(0 6px 6px rgb(0 0 0 / .6)); }
.banners li:first-child::after, .banners li:last-child::after { content: ""; position: absolute; z-index: 0; top: calc(var(--ry) - var(--rh) / 2); height: var(--rh); aspect-ratio: 340 / 152;
  background: url("scene/rod-left.webp") center / 100% 100% no-repeat; filter: drop-shadow(0 6px 6px rgb(0 0 0 / .6)); }
/* the rod bends under the banners' weight (the owner, 12-02), as in his concept: each banner hangs a little lower toward the
   middle, and its length of rod leans along the curve. --sag is how far the middle hangs below the ends. */
.banners { --sag: calc(var(--bw) * .14); }
.banners li { translate: 0 calc(var(--sag) * var(--d, 0)); }
.banners li::before { rotate: var(--r, 0deg); }
.banners li:nth-child(1) { --d: .306; --r: 4.2deg; } .banners li:nth-child(2) { --d: .75; --r: 2.5deg; } .banners li:nth-child(3) { --d: .972; --r: .85deg; }
.banners li:nth-child(4) { --d: .972; --r: -.85deg; } .banners li:nth-child(5) { --d: .75; --r: -2.5deg; } .banners li:nth-child(6) { --d: .306; --r: -4.2deg; }
.banners li:first-child::after { translate: 0 calc(var(--sag) * -.3); rotate: 5deg; transform-origin: 100% 50%; }
.banners li:last-child::after { translate: 0 calc(var(--sag) * -.3); rotate: -5deg; transform-origin: 0 50%; }
.banners li:first-child::after { right: calc(100% + var(--g) / 2 - 2px); }
.banners li:last-child::after { left: calc(100% + var(--g) / 2 - 2px); background-image: url("scene/rod-right.webp"); }
.hang { position: relative; z-index: 1; transform-origin: 50% var(--ry); rotate: 0deg; transition: transform .9s var(--ease); filter: drop-shadow(0 18px 16px rgb(0 0 0 / .5)); }
.cord { display: none; }
/* his painted banner: a gold cord edge, two rings, a pointed foot with a thick fringe and a tassel at each corner (banner.webp,
   768 x 1712). The hero's painting fills its window, cut to the same point; the edge lies over it. */
.banner { position: relative; display: block; width: 100%; aspect-ratio: 768 / 1712; padding: 0; border: 0; background: none; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.banner img, .banner::after { position: absolute; left: 5%; top: 4.1%; width: 90%; height: 87.9%; clip-path: polygon(0 0, 100% 0, 100% 79.5%, 50% 100%, 0 79.5%); }
.banner img { max-width: none; object-fit: cover; object-position: var(--x) 50%; }
.banner::before { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: url("scene/banner.webp") center / 100% 100% no-repeat; }
/* light crossing the cloth as a hand comes near: a layer over the painting, never a change to it */
.banner::after { content: ""; z-index: 1; pointer-events: none;
  background: linear-gradient(112deg, transparent 36%, rgb(255 240 205 / .26) 50%, transparent 64%) 135% 0 / 280% 100% no-repeat, linear-gradient(rgb(10 12 16 / .34), transparent 16%);
  transition: background-position 1.1s var(--ease); }
.banners li:hover .banner::after, .banner:focus-visible::after { background-position: -35% 0, 0 0; }
.banner-name { display: block; margin: 6px -10px 0; text-align: center; white-space: nowrap; color: var(--ink-3); font-size: clamp(10px, 1.06vw, 13.5px); letter-spacing: .13em; text-indent: .13em; transition: color .3s; }
.banners li:hover .banner-name, .banners li:focus-within .banner-name { color: var(--gold-hi); }
.banner:focus-visible { outline: none; }
.banner:focus-visible img { outline: 2px solid var(--gold-hi); outline-offset: -5px; }
@media (prefers-reduced-motion: no-preference) {
  .hang { animation: sway 9s ease-in-out infinite alternate; }
  .banners li:nth-child(2) .hang { animation-duration: 11s; animation-delay: -4s; }
  .banners li:nth-child(3) .hang { animation-duration: 8s; animation-delay: -6s; }
  .banners li:nth-child(4) .hang { animation-duration: 12s; animation-delay: -2s; }
  .banners li:nth-child(5) .hang { animation-duration: 10s; animation-delay: -7s; }
  .banners li:nth-child(6) .hang { animation-duration: 8.5s; animation-delay: -3s; }
  .banners li:nth-child(odd):hover .hang, .banners li:nth-child(odd):focus-within .hang { transform: rotate(-1.3deg); }
  .banners li:nth-child(even):hover .hang, .banners li:nth-child(even):focus-within .hang { transform: rotate(1.3deg); }
}
@keyframes sway { from { rotate: -.55deg; } to { rotate: .55deg; } }

/* ═════ 4 · Come and try it: the page's one section recipe again (the owner, 12-03: "our one section template, and we can
   flip it left and right"), as Ways to play has it. The characters above end on the ground's green; the scene's own near
   stroke lies on that green with its ground under it (its rules stand with the scene's edge); his words begin close under
   the stroke, on green; the painting, the bottom painting's dusk and its camp, comes up out of that green and runs on
   under the foot. On a wide window the painting stands at the left and his words at the right, Ways to play mirrored; on
   a narrower one his words come first and the camp is the page's last painting. ═════ */
.close {
  --pad: max(var(--gut), calc((100% - 1320px) / 2));
  display: flex; flex-direction: column; justify-content: space-between;   /* no clip of its own: its stroke hangs above it, and what
     runs past the window's sides is cut by its .edge and its .plate (Safari cut the stroke with overflow-x: clip, 12-03) */
  background: linear-gradient(var(--g0), var(--deep) 70%);
}
/* the close is a column of rows: his words, the camp (a row of its own on a narrow window, the block's backdrop on a wide one),
   the foot. The foot is in the block its painting belongs to, so no script measures it and no padding is worked out from it. */
.close > .letter-body { margin: 0 var(--pad) clamp(36px, 3.6vw, 56px); }
/* the foot's own dark comes up over the grass from a little above it */
.close > .foot::after, .hs-foot::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; pointer-events: none; }
.plate-dusk .dusk { position: absolute; width: auto; aspect-ratio: 2560 / 1432; }
.tent { position: absolute; left: 0; aspect-ratio: 1300 / 1988; }   /* the painting's own left edge (its x 0–36.56 %), the tent and its lamp */
.tent img { display: block; width: 100%; height: 100%; }
.tent .tent-lamp { left: 72.4%; top: 51.2%; width: 52%; }
.tent .flies { left: 46%; top: 40%; width: 60%; height: 34%; }
.letter-body { position: relative; isolation: isolate; max-width: 34rem; font-size: 21px; line-height: 1.65; }   /* his letter's own type and measure, here and on the Supporting page */
.close h2 { margin-bottom: .3em; }
.close .letter-body p { color: var(--ink); }
/* the ways on are his own words (the owner, 12-03: "make them all visible that they are the buttons and we don't need extra
   buttons"): each link of the letter in the lamp's gold with a gold line under it, here and on the Supporting page */
.letter-body a { color: var(--gold-hi); text-decoration-color: var(--gold); text-underline-offset: .24em; }
.letter-body a:hover { color: #fff3d8; text-decoration-color: var(--gold-hi); }

/* on a wide window: Ways to play the other way round (the owner, 12-03: "Come and try should be exactly like this ... just
   flipped the other way around"). The dusk painting, one picture held to the left so its tent stays, begins under the
   stroke, and the ground's dark green covers it behind his words at the right. */
@media (min-width: 900px) {
  .close { min-height: calc(66vw - 40px); }   /* room for the whole painting; the foot stands at its end */
  .close > .letter-body { width: min(33rem, (100% - 2 * var(--pad)) * 5 / 12); margin-left: auto; }
  /* the painting, 1.18 windows wide, so the tent, its lamp and the chest fill the left */
  .plate-dusk .dusk, .plate-dusk .tent { left: 0; top: 0; height: 66vw; }
  .plate-dusk .dusk { -webkit-mask-image: linear-gradient(transparent 11%, #000 25%, #000 76%, transparent); mask-image: linear-gradient(transparent 11%, #000 25%, #000 76%, transparent); }   /* it comes up out of the stroke's ground: no edge where it begins */
  .tent img { display: none; }   /* the dusk painting holds the tent itself here; its box stays for the lamp's glow and the fireflies */
  /* and the foot's dark comes up over the meadow (the owner, 12-02: "bring that darker footer up there and cover the grass a bit") */
  .plate-dusk::after { background: var(--pool); }
  /* the same frosted veil as a narrow window's, in a neutral night (the owner, 12-03: "Desktop footer is still green. I want
     to see this there too") */
  .close > .foot::after, .hs-foot::after { top: -9vw; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
    -webkit-mask-image: linear-gradient(transparent, #000 10vw); mask-image: linear-gradient(transparent, #000 10vw);
    background: linear-gradient(rgb(12 13 16 / .1), rgb(12 13 16 / .4) 12vw, rgb(12 13 16 / .65) calc(100% - 40px)); }
  .foot::before { --bk: 12 13 16; --ba: .7; }
}

/* ═════ the foot: the name between gold rules, the links in a row ═════ */
.foot { position: relative; z-index: 2; isolation: isolate; padding: clamp(34px, 4vw, 56px) var(--gut) 44px; text-align: center; }
.foot::before { --by: -22%; --bx: max(0%, calc(50% - 40rem)); bottom: 0; }   /* it ends with the foot: a shade that hung below it made the page longer than its content */
.foot-star { margin: 0 auto 10px; width: 16px; height: 16px; opacity: .9; }
.foot .mark-small.ruled { margin: 0 0 22px; }
.foot .mark-small.ruled::before, .foot .mark-small.ruled::after { max-width: 220px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; font-size: 14px; letter-spacing: .14em; }
.foot nav a { color: var(--ink-2); text-decoration: none; padding: 4px 0; }
.foot nav a:hover { color: var(--gold-hi); }
.foot .small { margin: 22px 0 0; display: flex; justify-content: center; gap: 24px; font-size: 14px; }
.foot .small a { color: var(--ink-3); text-decoration: none; }
.foot .small a:hover { color: var(--ink); }
.foot .legal { margin: 14px 0 0; font-size: 12.5px; letter-spacing: .03em; color: var(--ink-3); text-wrap: balance; }

/* Supporting in the foot is his café ticket, the coffee's red, his campfire after a gold line: the one mark of supporting, wherever
   it stands (the owner, 12-04: "like we have buy me a coffee button ... the identifier of the donation ... put to the footer") */
.foot .foot-pay { --tk: #b8502f; --tk-2: #8f3520; --tk-hi: #c65b37; --tk-hi-2: #9d3c24; --tk-lo: #a6462a; --tk-lo-2: #82301d; --tk-ink: #fbecd6;
  --tk-top: rgb(255 255 255 / .16); --tk-rim: #f1d595; --tk-rim-2: #b6873f; --tk-line: rgb(232 196 120 / .85); --tk-cut: 8px; --tk-h: 46px;
  margin: 24px 0 4px; }
.foot .foot-pay a { position: relative; isolation: isolate; display: inline-flex; align-items: center; height: var(--tk-h); padding: 0; color: var(--tk-ink); text-decoration: none;
  font: 500 18px/1 var(--serif, inherit); letter-spacing: .01em; text-transform: none; white-space: nowrap; background: linear-gradient(var(--tk-rim), var(--tk-rim-2));
  filter: drop-shadow(0 10px 12px rgb(0 0 0 / .35)); -webkit-tap-highlight-color: transparent;
  -webkit-mask: radial-gradient(circle calc(var(--tk-cut) + 0px) at -0px -0px, #0000 calc(100% - .6px), #000 100%) 0 0 / 51% 51% no-repeat, radial-gradient(circle calc(var(--tk-cut) + 0px) at calc(100% + 0px) -0px, #0000 calc(100% - .6px), #000 100%) 100% 0 / 51% 51% no-repeat, radial-gradient(circle calc(var(--tk-cut) + 0px) at -0px calc(100% + 0px), #0000 calc(100% - .6px), #000 100%) 0 100% / 51% 51% no-repeat, radial-gradient(circle calc(var(--tk-cut) + 0px) at calc(100% + 0px) calc(100% + 0px), #0000 calc(100% - .6px), #000 100%) 100% 100% / 51% 51% no-repeat;
          mask: radial-gradient(circle calc(var(--tk-cut) + 0px) at -0px -0px, #0000 calc(100% - .6px), #000 100%) 0 0 / 51% 51% no-repeat, radial-gradient(circle calc(var(--tk-cut) + 0px) at calc(100% + 0px) -0px, #0000 calc(100% - .6px), #000 100%) 100% 0 / 51% 51% no-repeat, radial-gradient(circle calc(var(--tk-cut) + 0px) at -0px calc(100% + 0px), #0000 calc(100% - .6px), #000 100%) 0 100% / 51% 51% no-repeat, radial-gradient(circle calc(var(--tk-cut) + 0px) at calc(100% + 0px) calc(100% + 0px), #0000 calc(100% - .6px), #000 100%) 100% 100% / 51% 51% no-repeat; }
.foot .foot-pay a::before { content: ""; position: absolute; z-index: -1; inset: 2px; background: linear-gradient(var(--tk), var(--tk-2)); box-shadow: inset 0 1px 0 var(--tk-top); transition: background .25s;
  -webkit-mask: radial-gradient(circle calc(var(--tk-cut) + 2px) at -2px -2px, #0000 calc(100% - .6px), #000 100%) 0 0 / 51% 51% no-repeat, radial-gradient(circle calc(var(--tk-cut) + 2px) at calc(100% + 2px) -2px, #0000 calc(100% - .6px), #000 100%) 100% 0 / 51% 51% no-repeat, radial-gradient(circle calc(var(--tk-cut) + 2px) at -2px calc(100% + 2px), #0000 calc(100% - .6px), #000 100%) 0 100% / 51% 51% no-repeat, radial-gradient(circle calc(var(--tk-cut) + 2px) at calc(100% + 2px) calc(100% + 2px), #0000 calc(100% - .6px), #000 100%) 100% 100% / 51% 51% no-repeat;
          mask: radial-gradient(circle calc(var(--tk-cut) + 2px) at -2px -2px, #0000 calc(100% - .6px), #000 100%) 0 0 / 51% 51% no-repeat, radial-gradient(circle calc(var(--tk-cut) + 2px) at calc(100% + 2px) -2px, #0000 calc(100% - .6px), #000 100%) 100% 0 / 51% 51% no-repeat, radial-gradient(circle calc(var(--tk-cut) + 2px) at -2px calc(100% + 2px), #0000 calc(100% - .6px), #000 100%) 0 100% / 51% 51% no-repeat, radial-gradient(circle calc(var(--tk-cut) + 2px) at calc(100% + 2px) calc(100% + 2px), #0000 calc(100% - .6px), #000 100%) 100% 100% / 51% 51% no-repeat; }
.foot .foot-pay a:hover::before { background: linear-gradient(var(--tk-hi), var(--tk-hi-2)); }
.foot .foot-pay a:active::before { background: linear-gradient(var(--tk-lo), var(--tk-lo-2)); }
.foot .foot-pay a:focus-visible { outline: none; }
.foot .foot-pay:has(a:focus-visible) { outline: 2px solid var(--tk-rim); outline-offset: 4px; width: fit-content; margin-inline: auto; }
.foot .foot-pay span { padding: 0 16px 0 24px; }
.foot .foot-pay i { align-self: stretch; display: grid; place-items: center; box-sizing: content-box; width: 26px; padding: 0 18px 0 15px; background: linear-gradient(var(--tk-line), var(--tk-line)) 0 50% / 1px 56% no-repeat; }
.foot .foot-pay i::before { content: ""; width: 100%; height: 26px; background: currentColor;
  -webkit-mask: url("supporting/icon-fire.webp") center / contain no-repeat; mask: url("supporting/icon-fire.webp") center / contain no-repeat; }

/* the viewer: a tapped banner or face opens its whole painting, in a thin gold edge */
html.viewing { overflow: hidden; }   /* the page behind an open painting holds still (app.js) */
.viewer { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: min(1200px, 94vw); width: 100%; overflow: visible; overscroll-behavior: contain; }
.viewer::backdrop { background: rgb(9 13 16 / .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.viewer-art { padding: 3px; background: linear-gradient(#f3dcab, #b9965a 40%, #7a5f34); border-radius: 3px; box-shadow: 0 40px 90px -20px rgb(0 0 0 / .9), 0 0 120px -10px rgb(var(--season) / .22); width: fit-content; max-width: 100%; margin: 0 auto; }
.viewer-art img { max-width: 100%; max-height: 78vh; width: auto; height: auto; object-fit: contain; border-radius: 1px; }
.viewer figcaption { margin-top: 16px; font: 500 30px/1.2 var(--display); text-align: center; }
.viewer-close { position: absolute; top: 12px; right: 12px; border: 0; padding: 9px 13px 8px; border-radius: 999px; background: rgb(14 18 16 / .78); color: var(--ink); cursor: pointer; font-size: 12px; box-shadow: inset 0 0 0 1px var(--hair); transition: color .25s, box-shadow .25s; }
.viewer-close:hover { color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold-hi); }
@media (prefers-reduced-motion: no-preference) {
  .viewer[open] { animation: viewer-in .5s var(--ease); }
  .viewer[open]::backdrop { animation: fade-in .4s ease-out; }
}
@keyframes viewer-in { from { opacity: 0; transform: translateY(14px) scale(.975); } }
@keyframes fade-in { from { opacity: 0; } }


/* ═════ iPad portrait and small laptops ═════ */
@media (max-width: 899px) {
  /* Ways to play on a narrow window: the words on the ground's green, then the riders as their own crop, then the film on the meadow */
  /* his first line, then the riders, then his other two (the owner, 12-03: "keep the first paragraph and then move the 2
     paragraphs after the artwork"): the words' column opens into the row, so the riders can stand between its lines */
  .ways-top { min-height: 0; display: flex; flex-direction: column; }
  .ways-words { display: contents; }
  .ways-words > * { position: relative; z-index: 2; width: 100%; max-width: 33rem; margin-inline: auto; }   /* above the stroke's ground and the four points' shade, which reaches up under his last line */
  .ways-words > p:not(.first):not(.ornament) { order: 2; }
  .ways-words > p:not(.first):not(.ornament):nth-last-child(2) { margin-top: 22px; }
  .riders { order: 1; }
  .plate-meadow::after { background: radial-gradient(ellipse 72% 58% at 50% 54%, rgb(var(--shade) / .95) 0 72%, transparent 100%); }
  /* the meadow comes up from behind the riders' grass, so his two lines after them stand on the painting with a pool of shade
     only behind them, not on a band of plain green the window's width (the owner, 12-03, a ring drawn round them: "can it not
     have full width? ... just be behind this text") */
  .plate-meadow { top: auto; height: min(100%, 1100px); clip-path: none; }
  .ways-words > p:not(.first):not(.ornament):nth-last-child(2) { position: relative; }
  .ways-words > p:not(.first):not(.ornament):nth-last-child(2)::before { content: ""; position: absolute; z-index: -1; pointer-events: none;
    left: -14%; right: -14%; top: -70px; height: calc(100% + 190px);
    background: radial-gradient(closest-side, rgb(var(--shade) / .92) 0 50%, rgb(var(--shade) / .55) 75%, transparent); }
  .plate-meadow img { position: static; width: 100%; height: 100%; object-fit: cover; object-position: 30% 100%; transform: none; aspect-ratio: auto;   /* its own crop: the flowered meadow alone, the riders being the picture above */
    -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 88%, transparent); }
  .riders { display: block; margin: 10px calc(-1 * var(--gut)) 0; }
  .riders img { display: block; width: 100%; aspect-ratio: 390 / 262; object-fit: cover; object-position: 50% 40%;
    -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 20%, #000 78%, transparent); }
  /* the ending on a narrow window (the owner, 12-03: "I want the campfire to be the last artwork before the footer ... we don't
     need to open up with the artwork again ... write our text there, and then let it dissolve into this camp, and then let
     the camp nicely connect to the footer"; and for an upright iPad he picked "like the phone"). His words stand on the plain
     ground under the stroke; then the green dissolves into the camp (--camp: its height), the tent at the left and the dusk
     valley beside it, and the foot comes up onto the camp's own grass (--under: how much of the camp lies under the foot). */
  /* between two skies (the owner, 12-03: "green doesn't fit here because both above and below this thing is blue sky ... it
     should almost like blend in those skies, maybe a bit darker"): his words stand on the night itself, the hall's blue above
     turning toward the dusk's indigo below, and the green begins only with the camp's grass. The hall ends on that night, and
     it is the ground under the ending's stroke. */
  .hall { background: linear-gradient(var(--night) 70%, var(--eve)); }
  /* the hall's sky runs on down to the close's stroke under the night, which lets 75 % of it through (the owner, 12-03, on his
     phone: "can you make this dark blue thing in the background to be like 75% transparent?") */
  .plate-hall { -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 80%, rgb(0 0 0 / .75)); mask-image: linear-gradient(transparent, #000 16%, #000 80%, rgb(0 0 0 / .75)); }
  /* the hall's last row in the narrow layout: the heroes' faces drift across the whole window and the wiki's button stands under
     them, in the middle. Beside the button, between the arches' measures, the row had room for two faces on a tablet. */
  .hall-row { flex-direction: column; align-items: stretch; gap: 20px; max-width: none; margin-inline: calc(-1 * var(--side)); }
  .hall-row .wiki { text-align: center; padding: 0 20px; }
  .hall-row::before { --by: -14%; }   /* its shade stays under the row, off the banners' names above */
  .close { --camp: 83.2vw; --under: 21vw; --rg: var(--eve); background: var(--eve-low); }
  /* his words stand on the night at 60 % (40 % of the clouds show, the owner 12-03), the hall's clouds running on behind it (the owner, 12-03: "make this whole solid
     background to be 25% visible? I want to see the artwork behind, but I want this dark thing to like give weight to our
     text"). No painting has more sky above the camp, so the sky behind his words is the hall's own, feathered into the camp. */
  /* it begins at the stroke's own lower edge, the stroke's ground in its place (ridge-1-fill.webp: that ground, solid from
     under the paint all the way down), so no band of a second dark ends under the stroke (the owner, 12-03: "this weird thing
     here, this line happening ... so that this all looks like very nice and seamless"). Its top is the stroke's top. */
  .close { --gh: calc(var(--near-w) * 264 / 896); }   /* the ground's box: the stroke's width, three strokes tall, from its top */
  .close .ridge.grounded::before { display: none; }
  /* it ends with the close (bottom: 0), its own 178vw drawn by its stops, not its box: a box 178vw tall hung below the foot on
     a window 700 to 899 wide, and the page ran on past the foot into the hall's sky */
  .close::before { content: ""; position: absolute; z-index: -2; left: 0; right: 0; top: calc(-1 * var(--near-y) - var(--near-w) * 176 / 1792); bottom: 0; pointer-events: none;
    background: linear-gradient(rgb(17 27 39 / .6) 34vw, rgb(20 26 42 / .6)) 0 0 / 100% 178vw no-repeat, url("scene/hall-1000.webp") 50% 0 / 170vw auto no-repeat;
    -webkit-mask: linear-gradient(#000 calc(178vw * .8), transparent 178vw), url("scene/ridge-1-fill.webp") var(--near-x) 0 / var(--near-w) var(--gh) no-repeat, linear-gradient(#000 0 0) 0 var(--gh) / 100% 100% no-repeat;
    -webkit-mask-composite: source-in, source-over;
    mask: linear-gradient(#000 calc(178vw * .8), transparent 178vw), url("scene/ridge-1-fill.webp") var(--near-x) 0 / var(--near-w) var(--gh) no-repeat, linear-gradient(#000 0 0) 0 var(--gh) / 100% 100% no-repeat;
    mask-composite: intersect, add; }
  .close > .letter-body { width: min(34rem, 100% - 2 * var(--pad)); margin: 0 auto; }   /* his letter's column in the middle of the window, under its title */
  /* the camp is a row of the column, as tall as the camp; it begins behind his last lines, and the foot stands on its last grass */
  .plate-dusk { position: relative; inset: auto; flex: none; height: var(--camp); margin-top: -6vw; }
  .plate-dusk .dusk, .tent { bottom: 0; }
  .close > .foot { margin-top: calc(-1 * var(--under)); }
  /* the night lies over the camp's upper sky, down to just above the tree and the tent's top, and the camp comes up through a
     short feather from there (the owner, 12-03, a line drawn on a screenshot: "too much of the artwork ... is visible. Like the
     blue should go over it more. I sent how much it should cover and then should blur"). Covered, that sky is no room the page
     needs: the camp stands 9vw higher, behind his last lines. */
  .plate-dusk .dusk { right: 0; height: var(--camp); --veil: linear-gradient(transparent 16%, rgb(0 0 0 / .1) 19.5%, rgb(0 0 0 / .4) 23.5%, rgb(0 0 0 / .78) 28%, #000 34%, #000 80%, transparent);
    -webkit-mask-image: var(--veil); mask-image: var(--veil); }
  .tent { width: 54vw; }
  .tent img { --veil: linear-gradient(transparent 16%, rgb(0 0 0 / .1) 19.5%, rgb(0 0 0 / .4) 23.5%, rgb(0 0 0 / .78) 28%, #000 34%, #000 80%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent 98%), var(--veil); -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, #000 70%, transparent 98%), var(--veil); mask-composite: intersect; }
  /* the foot's dark is a frosted veil, the camp blurred under it in a neutral night (the owner, 12-03, of six fades: "E is
     cool!"): the meadows' green-black clashed with the warm camp and the blue night above, and made the grass look muddy */
  .close > .foot::after, .hs-foot::after { top: -4vw; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
    -webkit-mask-image: linear-gradient(transparent, #000 22vw); mask-image: linear-gradient(transparent, #000 22vw);
    background: linear-gradient(rgb(12 13 16 / .1), rgb(12 13 16 / .4) 30vw, rgb(12 13 16 / .65)); }   /* 65 % at its darkest (the owner, 12-03) */
  .foot::before { --bk: 12 13 16; --ba: .7; }
  /* the banners on a narrow window (the owner, 12-03: "we need completely different way to represent this ... champions on
     mobile"; the row to swipe moved freely under the finger, over a second row to swipe). Nothing scrolls here: two of his
     rods, three banners on each, all six in view, each rod with its own bend and its two spearheads; a tap opens the painting. */
  .banners { --bw: clamp(118px, 17.5vw, 168px); --g: 16px; --sag: calc(var(--bw) * .06);
    display: grid; grid-template-columns: repeat(3, var(--bw)); justify-content: center; row-gap: clamp(28px, 4vw, 40px); padding: 14px 0 0; }
  .banners::after { display: none; }
  .banners li:nth-child(3n+1) { --d: .556; --r: 3deg; } .banners li:nth-child(3n+2) { --d: 1; --r: 0deg; } .banners li:nth-child(3n) { --d: .556; --r: -3deg; }
  .banners li:nth-child(3)::after, .banners li:nth-child(4)::after { content: ""; position: absolute; z-index: 0; top: calc(var(--ry) - var(--rh) / 2); height: var(--rh); aspect-ratio: 340 / 152;
    background: url("scene/rod-left.webp") center / 100% 100% no-repeat; filter: drop-shadow(0 6px 6px rgb(0 0 0 / .6)); translate: 0 calc(var(--sag) * -.3); }
  .banners li:nth-child(4)::after { right: calc(100% + var(--g) / 2 - 2px); rotate: 5deg; transform-origin: 100% 50%; }
  .banners li:nth-child(3)::after { left: calc(100% + var(--g) / 2 - 2px); rotate: -5deg; transform-origin: 0 50%; background-image: url("scene/rod-right.webp"); }
  .banner-name { white-space: normal; text-wrap: balance; line-height: 1.3; margin: 8px -4px 0; }
}

/* ═════ the phone ═════ */
@media (max-width: 699px) {
  :root { --k: .6; }
  body { font-size: 18px; }
  .voice p.first { font-size: 20px; }
  .facts p { font-size: 17.5px; }
  .top-nav { padding: 14px 16px; gap: 24px; }
  .top-nav a { font-size: 12.5px; }
  .lang-now { font-size: 12.5px; }
  .mark { font-size: 72px; }
  .mark-small { font-size: 34px; }
  .invite { font-size: 13px; gap: 16px; }
  .btn { padding: 1px 34px 0; }
  .btn-quiet { padding: 1px 22px 0; }
  .act { margin-top: 22px; gap: 14px; }
  .f-valley2 { display: none; }

  /* the phone's edge: the strokes larger, or they thin to hairlines. The near ridge shows its left half, its grasses at the window's
     left and its crest a third of the way across; the far one rises behind it to a crest on the right and ends in its own grasses at
     the window's right */
  :root { --rise: 11vw; }
  :root { --near-w: 200vw; --near-x: -4vw; --near-y: -5vw; }
  .ridge-far  { --w: 120vw; --x: -21.6vw; --y: 1vw; --rg: #131f1a; }
  .edge-hall { height: 34vw; }
  .ridge-hall { --w: 190vw; --x: -37vw; top: 26px;
    -webkit-mask-image: linear-gradient(90deg, transparent 21%, #000 31%, #000 66%, transparent 76%); mask-image: linear-gradient(90deg, transparent 21%, #000 31%, #000 66%, transparent 76%); }

  .strip { padding-top: 70px; }
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .points li { padding: 0 12px; }
  .points li + li::before, .points li + li::after { display: none; }
  .points li:nth-child(even)::before { content: ""; display: block; position: absolute; left: 0; top: 8%; bottom: 4%; width: 1px; background: linear-gradient(transparent, var(--hair) 25%, var(--hair) 75%, transparent); }
  .points h3 { font-size: 21px; }
  .points p { font-size: 15.5px; }

  .ways { padding: 30px 20px 96px; }
  .riders { margin: 10px -20px 0; }
  .ways-film { margin: 30px -8px 0; }
  .film-under { padding-top: 14px; }

  /* the phone's hall: only the arches' pillars, crowns and pennants, beside the title */
  :root { --arch: 46vw; }
  .hall { --side: 20px; padding: 150px var(--side) 96px; }   /* room between the wiki's button and the ending's stroke (the owner, 12-03) */
  .hall-head { margin-bottom: 40px; padding: 0; }
  .hall-head h2.ruled { font-size: 38px; }
  .hall-head h2.ruled::before, .hall-head h2.ruled::after { display: none; }
  .hall-head .ornament { margin: 30px 0 34px; }
  .arch { top: -16vw; }
  .arch-l img { -webkit-mask-image: linear-gradient(90deg, #000 44%, transparent 60%), linear-gradient(transparent, #000 12%, #000 56%, transparent 70%);
    mask-image: linear-gradient(90deg, #000 44%, transparent 60%), linear-gradient(transparent, #000 12%, #000 56%, transparent 70%); }
  .arch-r img { -webkit-mask-image: linear-gradient(-90deg, #000 44%, transparent 60%), linear-gradient(transparent, #000 12%, #000 56%, transparent 70%);
    mask-image: linear-gradient(-90deg, #000 44%, transparent 60%), linear-gradient(transparent, #000 12%, #000 56%, transparent 70%); }
  .arch .torch, .arch .sparks { display: none; }
  .hall-row { margin-top: 34px; }
  .faces-track li { width: 86px; margin-right: 6px; }
  .face img { width: 60px; height: 60px; }
  .face span { font-size: 13px; }
  /* a phone's two rods: three banners and both spearheads inside the window */
  .banners { --g: 2.2vw; --bw: min(calc((100vw - 16px - 3 * var(--g)) / 3.66), 150px); row-gap: 26px; margin: 0 -20px; }
  .banner-name { font-size: clamp(10px, 2.7vw, 12px); letter-spacing: .08em; text-indent: .08em; }

  /* the phone's camp: the tent alone, whole across the window, from under its torch to its last grass (--camp: that height
     at the window's width, 136.3 of the painting's 152.9); the dusk valley is not drawn */
  .close { --camp: 136.3vw; --under: 34vw; --pad: 20px; padding-top: 30px; --crest: 40vw; }   /* the phone's stroke crests a third across */
  .plate-dusk { margin-top: 3vw; }
  .plate-dusk .dusk { display: none; }
  .tent { width: 100%; height: var(--camp); aspect-ratio: auto; }
  .tent img { object-fit: cover; object-position: 0 100%;
    -webkit-mask-image: linear-gradient(transparent, #000 19%, #000 80%, transparent); -webkit-mask-composite: source-over; mask-image: linear-gradient(transparent, #000 19%, #000 80%, transparent); mask-composite: add; }
  .tent .tent-lamp { left: 72.4%; top: 39.7%; width: 44%; }
  .tent .flies { top: 30.5%; height: 26%; }
  .letter-body { font-size: 19px; }
  .foot nav { gap: 8px 22px; }
  .foot .mark-small.ruled::before, .foot .mark-small.ruled::after { max-width: 70px; }
  .viewer figcaption { font-size: 26px; }
}

/* reduced motion: the scene holds still, the mist at a set point, the lights at a set glow */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fog { animation: none; transform: translate3d(calc(var(--tw) * -.3), 0, 0); }
  .breath { animation: none; opacity: .7; }
  .layers::after { animation: none; opacity: .7; }
  .moon { animation: none; opacity: .8; }
  .lantern, .lantern-2, .torch { animation: none; opacity: .85; }
  .stars b { animation: none; opacity: .55; }
  .flies, .sparks, .glint { display: none; }
  .btn, .btn::after, .hang, .face img, .banner::after, .top-nav a::after { transition: none; }
}

/* the four points now sit inside Ways to play, between his words and the film (the owner, 12-02) */
.strip.strip-in-ways { padding: clamp(56px, 6vw, 96px) 0 0; }
.strip.strip-in-ways::before { top: 0; height: 100%; }
/* decoration rests out of sight (app.js marks it .dz-off): the owner, 12-04, the iPad froze with the page open */
.dz-off, .dz-off::before, .dz-off::after { animation-play-state: paused !important; }

/* a quick second tap is a second tap, never a zoom (the owner, 12-04: "I just keep accidentally zooming in when I just fast
   double click on the language selector"); two fingers still zoom */
html, a, button, [role="button"], label, summary { touch-action: manipulation; }
