/* Special Delivery's site, in the game's own world: the white of its renders, the greys of its shading, near-black
   words, and one red that belongs to the men, the title, the store call and the active state, and nothing else.
   Everything here is served from this site. No cookies, no tracking. */

@font-face { font-family: "Roboto"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/Roboto-Regular.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 900; font-style: normal; font-display: swap; src: url("fonts/Roboto-Black.woff2") format("woff2"); }

:root {
  /* Sampled from a frame of 011 Airmail (Reel Studio pm-011, 26.6 s): the render's white ground and its paper,
     the world's mid grey, and the lit face of a red man. Ink is the game's interface ink (CampaignHud). */
  --white: #ffffff;
  --paper: #f4f6f5;
  --grey: #8c8c90;
  --ink: #252b30;
  --body: #3a4148;
  --muted: #5b636b;
  --red: #dc2539;
  --red-deep: #c51c2f;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--white); }
body { margin: 0; background: var(--white); color: var(--body); font: 400 1.0625rem/1.55 "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif; }
img, video { display: block; max-width: 100%; }
p { margin: 0; }
a { color: var(--ink); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 900; line-height: 1.02; letter-spacing: -.012em; text-transform: uppercase; }

/* A detail still to be filled in (the README's marker). Nothing is published while one of these is on a page. */
.todo { padding: 0 5px; outline: 2px dashed var(--red); outline-offset: 1px; background: #fff; color: var(--red-deep); font-weight: 400; letter-spacing: 0; text-transform: none; }

/* ---- The game's own card --------------------------------------------------------------------------------------
   Every box of words on the site wears the card the game itself uses for its menus, sheets and level cards (Liam, 23
   Nov 2026): its faceted paper panel (Assets/ui/faceted/panel-white.png), or its charcoal twin on dark ground, drawn as
   the game draws it, a nine-slice (StyleBoxTexture, margins 170 / 210 / 170 / 142 of the full art; here the art at
   half size, 85 / 105 / 85 / 71). --edge sets how large its chipped edges are drawn: a fraction of those margins, so the
   corners stay crisp at 2x. The box itself carries the padding that keeps its words inside the edges. */
.hero-deck::before, .js-run .rail::before, .route-text::before, .proof-calm::before, .qcard::before, .finish-deck::before,
.tile .tag::before, .tile .count::before, .locked .unlock::before, .words .short::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  border-style: solid; border-color: transparent;
  border-width: calc(105px * var(--edge, .3)) calc(85px * var(--edge, .3)) calc(71px * var(--edge, .3));
  border-image: url("img/panel-white.webp") 105 85 71 fill / calc(105px * var(--edge, .3)) calc(85px * var(--edge, .3)) calc(71px * var(--edge, .3)) stretch; }
.qcard::before, .finish-deck::before { border-image-source: url("img/panel-charcoal.webp"); }
.js-run .rail, .route-text, .proof-calm, .qcard, .finish-deck, .tile .tag, .tile .count, .locked .unlock, .words .short { isolation: isolate; }

/* ---- The first screen ----------------------------------------------------------------------------------------
   Full width on every screen: the game's replays with its own title set in the scene, the shards crossing in front of
   the letters (the title is in the film). The wide cut on a landscape screen, the tall one on an upright one, each
   rendered for its shape. The premise and the stores sit on a paper card in the bottom corner, as the game puts its own
   cards; the trailer label sits over the film. */
.hero { position: relative; overflow: hidden; height: 100vh; height: 100svh; min-height: 560px; max-height: 1440px; background: var(--paper); }
.hero-film { position: absolute; inset: 0; }
.film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--paper); }
.hero-wide { display: none; }
@media (min-aspect-ratio: 1/1) { .hero-wide { display: block; } .hero-tall { display: none; } }
/* A screen wider than 16:9 (a short laptop, an ultrawide) crops the wide cut's top and bottom: keep the crop mostly off
   the bottom, so the title, which sits high in every shot, stays whole (polish, 22 Nov: at 1470 x 700 it lost its top). */
@media (min-aspect-ratio: 16/9) { .hero-wide { object-position: 50% 5%; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* The page links, top right. */
.top { position: absolute; z-index: 3; top: 0; right: 0; display: flex; gap: 18px; padding: 16px var(--gutter); }
.top a { color: var(--ink); font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.top a:hover { color: var(--red-deep); }

/* The card, cut at the corners like the game's plates. */
.hero-deck { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 10px; isolation: isolate; padding: 16px 16px 15px; color: var(--body); }
.hero-deck { --edge: .22; }
.hero h1 { font-size: clamp(1.375rem, 6.4vw, 1.75rem); }
.get { margin-top: 12px; }
.when { color: var(--muted); font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
/* The two official badges at one height. Google's file carries clear space of 41 of its 250 pixels on every side:
   the picture is drawn larger and pulled in by that much, so the badge itself is as tall as Apple's. */
.badges { --h: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 9px; }
.badges a { display: block; }
.badge-apple img { height: var(--h); width: auto; }
.badge-google { margin: calc(var(--h) * -41 / 168); }
.badge-google img { height: calc(var(--h) * 250 / 168); width: auto; }
.todo-note { margin-top: 6px; font-size: .75rem; }
.deal { margin-top: 9px; color: var(--ink); font-size: .9375rem; line-height: 1.4; }

@media (min-width: 761px) {
  .hero-deck { left: var(--gutter); right: auto; bottom: clamp(20px, 5vh, 56px); width: min(500px, 42vw); padding: 26px 28px 24px; }
  .hero-deck { --edge: .3; }
  .hero h1 { font-size: clamp(1.75rem, 2.6vw, 2.75rem); }
  .get { margin-top: 18px; }
  .badges { --h: 48px; gap: 14px; margin-top: 10px; }
  .deal { font-size: 1rem; }
  .top { padding-top: 20px; }
}

/* ---- The flight ------------------------------------------------------------------------------------------------
   One contract, 004 Special Handling, scrubbed frame by frame on ordinary scroll. The rail lists the three men and
   strikes each one through in red as the scroll reaches him. Without scripts, or with reduced motion asked for, the
   section is three stills and the rail. */
.flight { position: relative; padding: 56px var(--gutter) 48px; background: var(--white); }
.flight-frame { display: none; }
.rail { max-width: 660px; }
.flight h2 { margin-top: 0; font-size: clamp(1.75rem, 7vw, 3.75rem); }
.list { margin: 18px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(37, 43, 48, .14); }
.list li { position: relative; padding: 9px 0 8px; border-bottom: 1px solid rgba(37, 43, 48, .14); color: var(--ink); font-weight: 900; letter-spacing: .06em; text-transform: uppercase; font-size: .875rem; }
.list b { display: inline-block; width: 2.4em; color: var(--muted); }
/* The strike: a red line drawn across the row when he is delivered. */
.list li::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s cubic-bezier(.32, .72, 0, 1); }
.list li.done { color: var(--muted); }
.list li.done::after { transform: scaleX(1); }
.left { margin-top: 10px; color: var(--muted); font-size: .8125rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.stills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.stills img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
/* With no pin, everything has been reached: the rail shows them all struck. */
html:not(.js-run) .list li::after { transform: scaleX(1); }
html:not(.js-run) .list li { color: var(--muted); }

/* With the pin on: one stage, the hero over the flight, for four screens of scroll. */
.js-run .run { height: 500vh; height: 500svh; }
.js-run .stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }
/* The pinned stages fill the large viewport, the screen with the browser's bars tucked away (iPhone Safari hides its
   bar as you scroll; a stage the height of the small viewport left a white strip under it, polish 22 Nov). The words on
   them keep clear of the bar when it shows: --bar is the height it takes (0 where there is no bar). */
:root { --bar: 0px; }
@supports (height: 100lvh) { :root { --bar: calc(100lvh - 100svh); } }
.js-run .hero { position: absolute; inset: 0; z-index: 2; min-height: 0; max-height: none; height: 100%; transform-origin: 50% 30%; will-change: transform, opacity; }
.js-run .hero-deck { bottom: calc(10px + var(--bar)); }
.js-run .flight { position: absolute; inset: 0; z-index: 1; padding: 0; }
.js-run .stills { display: none; }
.js-run .flight-frame { display: block; position: absolute; inset: 0; overflow: hidden; background: var(--paper); }
.flight-poster, .flight-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The exit: the lens zooms through the hatch (sd.js sets the zoom and its origin), and the route's room grows in out of it. */
.js-run .rail { --edge: .16; position: absolute; z-index: 2; top: 12px; left: 10px; width: min(62vw, 250px); padding: 14px 14px 12px; }
.js-run .flight h2 { margin-top: 0; font-size: 1.125rem; }
.js-run .list { margin-top: 8px; }
.js-run .list li { padding: 5px 0 4px; font-size: .75rem; }
.js-run .left { margin-top: 6px; font-size: .6875rem; }

@media (min-width: 761px) {
  .flight { display: grid; grid-template-columns: minmax(0, 740px) auto; justify-content: center; align-items: center; gap: clamp(32px, 6vw, 112px); }
  .stills { grid-column: 2; width: min(60vw, 720px); }
  /* On a desktop the flight fills the screen, edge to edge (Liam, 19 Nov). The curtain starts the frame exactly
     where the hero's frame sits and grows it to the edges (sd.js sets the clip as it goes). */
  .js-run .flight { display: block; padding: 0; }
  .js-run .flight-frame { position: absolute; inset: 0; }
  /* The rail is a paper ticket in the left margin, clear of the men and the hatch, who keep to the middle. */
  .js-run .hero-deck { bottom: calc(clamp(20px, 5vh, 56px) + var(--bar)); }
  .js-run .hero-acts { bottom: calc(clamp(20px, 5vh, 56px) + var(--bar)); }
  .js-run .rail { --edge: .22; top: 40px; left: var(--gutter); width: 330px; padding: 22px 24px 18px; }
  .js-run .flight h2 { margin-top: 0; font-size: 1.75rem; }
  .js-run .list { margin-top: 14px; }
  .js-run .list li { padding: 8px 0 7px; font-size: .8125rem; }
  .js-run .left { margin-top: 10px; font-size: .75rem; }
}

/* The sections after the run: plain white, set apart by space and their pictures, no seam (Liam, 22 Nov). Positioned so
   the route's pin can stack over the flight's. */
.route, .modes, .contracts { position: relative; background: var(--white); }

/* ---- The route ------------------------------------------------------------------------------------------------
   005 Fragile's own line replay in the game's X-ray look (Reel Studio's wall scan, Liam, 22 Nov): as the section settles
   a scan line sweeps the room from plain to X-ray, square brackets snap onto each man on the list with a tag (his number
   in hit order and his distance in metres, from the game), and the headline comes up; then scroll plays the flyover,
   the brackets riding on the men from the game's per-frame record, each tag struck through in red as the trail reaches
   him. One picture, framed like the hero's (cut corners, a soft shadow); 16:9 on desktops, 4:5 on phones. */
.route { padding: 56px var(--gutter) 64px; }
.route-text { --edge: .2; position: relative; max-width: 1280px; margin: 0 auto; padding: 18px 18px 16px; }
.route h2 { font-size: clamp(1.5rem, 7vw, 3.75rem); }
.route-text p { max-width: 34em; margin-top: 12px; font-size: 1.0625rem; }
.route-map { --cut: 14px; position: relative; max-width: 1280px; margin: 26px auto 0; filter: drop-shadow(0 16px 26px rgba(37, 43, 48, .16)); }
.route-map picture, .route-map img.route-poster { display: block; width: 100%; height: auto; }
.route-map img.route-poster, .route-canvas { clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); }
.route-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.js-route .route-canvas { display: block; }
.marks { position: absolute; inset: 0; pointer-events: none; }
/* A man on the list: white corner brackets round his outline (never smaller than a finger's width) and his tag, white
   with a red edge: number and metres. Red, and struck through as the flight's list is, once the trail reaches him. */
.mark { --cx: var(--tcx); --cy: var(--tcy); --bw: var(--tbw); --bh: var(--tbh); --c: #fff;
  position: absolute; left: calc(var(--cx) * 100%); top: calc(var(--cy) * 100%);
  width: max(22px, calc(var(--bw) * 100% + 10px)); height: max(30px, calc(var(--bh) * 100% + 10px)); transform: translate(-50%, -50%); }
.mark i { position: absolute; inset: 0;
  background: linear-gradient(var(--c), var(--c)) 0 0 / 8px 3px, linear-gradient(var(--c), var(--c)) 0 0 / 3px 8px,
    linear-gradient(var(--c), var(--c)) 100% 0 / 8px 3px, linear-gradient(var(--c), var(--c)) 100% 0 / 3px 8px,
    linear-gradient(var(--c), var(--c)) 0 100% / 8px 3px, linear-gradient(var(--c), var(--c)) 0 100% / 3px 8px,
    linear-gradient(var(--c), var(--c)) 100% 100% / 8px 3px, linear-gradient(var(--c), var(--c)) 100% 100% / 3px 8px;
  background-repeat: no-repeat; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .55)); }
.mark b { position: absolute; left: calc(100% + 5px); top: 50%; display: block; padding: 3px 7px 3px 9px; border-left: 4px solid var(--red);
  background: #fff; color: var(--ink); white-space: nowrap; line-height: 1; transform: translateY(-50%); box-shadow: 0 3px 10px rgba(0, 0, 0, .3); }
.mark[data-tside="l"] b { left: auto; right: calc(100% + 5px); }
.mark b em { display: block; font-style: normal; font-weight: 900; font-size: 1rem; }
.mark b small { display: block; margin-top: 2px; font-weight: 900; font-size: .625rem; letter-spacing: .06em; text-transform: uppercase; }
.mark.hit { --c: var(--red); }
.mark.hit b { color: var(--red-deep); }
.mark.hit b em, .mark.hit b small { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 3px; }
.mark.hit b small { text-decoration-thickness: 2px; }
.mark.off { visibility: hidden; }
/* With the script, the brackets and tags snap on one by one after the scan (sd.js adds .on), and the headline after them. */
.js-route .mark { opacity: 0; }
.js-route .mark i { transform: scale(1.6); transition: transform .18s cubic-bezier(.32, .72, 0, 1); }
.js-route .mark b { transform: translateY(-50%) scale(.6); transition: transform .18s cubic-bezier(.32, .72, 0, 1), color .2s; }
.js-route .mark.on { opacity: 1; }
.js-route .mark.on i { transform: none; }
.js-route .mark.on b { transform: translateY(-50%); }
.route-head { position: absolute; left: 5%; bottom: 5%; width: min(62%, 300px); height: auto; pointer-events: none; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.js-route .route-head { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s cubic-bezier(.32, .72, 0, 1); }
.js-route .route-map.headed .route-head { opacity: 1; transform: none; }
@media (min-width: 761px) {
  .route { padding: 88px var(--gutter) 96px; }
  .route-map { --cut: 18px; margin-top: 34px; }
  .mark { --cx: var(--wcx); --cy: var(--wcy); --bw: var(--wbw); --bh: var(--wbh); }
  .mark[data-tside="l"] b { left: calc(100% + 5px); right: auto; }
  .mark[data-wside="l"] b { left: auto; right: calc(100% + 5px); }
  .mark b em { font-size: 1.25rem; }
  .mark b small { font-size: .6875rem; }
  .route-head { width: min(40%, 440px); }
}
@media (max-width: 760px) {
  /* On a phone the picture runs edge to edge. */
  .route-map { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); --cut: 0px; }
}

/* With the pin on (sd.js adds js-pinroute alongside the flight's pin): the route lies over the flight's last screen and a
   quarter, with nothing of its own showing until it pins, so it comes in over the flight's zoom through the hatch while
   the flight is still pinned beneath it: no white sheet rising, no white page between. Then it holds still while the
   flyover scrubs, and lets go. */
.js-pinroute .route { height: 250vh; height: 250svh; margin-top: -125vh; margin-top: -125svh; padding: 0; clip-path: none; z-index: 3; background: none; }
.js-pinroute .route-stage { position: sticky; top: 0; height: 100vh; height: 100lvh; display: flex; flex-direction: column; justify-content: center;
  padding: 16px var(--gutter) calc(16px + var(--bar)); background: var(--white); opacity: var(--in, 0); pointer-events: none; overflow: hidden; }
.js-pinroute .route-stage > * { transform: scale(var(--grow, 1)); }
.js-pinroute .route.on .route-stage { pointer-events: auto; }
.js-pinroute .route-text { width: 100%; }
.js-pinroute .route-text p { margin-top: 8px; font-size: .9375rem; line-height: 1.45; }
.js-pinroute .route-map { margin-top: 16px; }
@media (min-width: 761px) {
  /* Heading and line on one row above the picture; the picture as large as the screen's height allows. */
  .js-pinroute .route-text { display: flex; align-items: end; justify-content: space-between; gap: 32px; max-width: none; width: min(100%, calc((100vh - 200px) * 16 / 9)); width: min(100%, calc((100svh - 200px) * 16 / 9)); margin: 0 auto; }
  .js-pinroute .route-text p { max-width: 26em; margin: 0; text-align: right; }
  .js-pinroute .route h2 { font-size: clamp(2rem, 3.4vw, 3.25rem); }
  .js-pinroute .route-map { width: min(100%, calc((100vh - 200px) * 16 / 9)); width: min(100%, calc((100svh - 200px) * 16 / 9)); margin: 22px auto 0; }
}

/* ---- The modes ------------------------------------------------------------------------------------------------
   One screen: the heading, the game's own button plates in a row across the top (the picked one red), its line, then
   one clip filling the rest of the screen, edge to edge (wide on a landscape screen, tall on an upright one). Picking a
   mode cracks the clip and the next comes through (sd.js). Without scripts: the three clips side by side as stills. */
.modes { padding: 40px 0 0; background: var(--white); }
.modes-text { padding: 0 var(--gutter); text-align: center; }
.modes h2 { font-size: clamp(1.5rem, 7vw, 3rem); }
.pick { display: none; }
.lines { display: none; }
.modes-films { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; padding: 0 var(--gutter) 40px; }
.mode-film { position: relative; margin: 0; }
.mode-film video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: var(--paper); }
.mode-wide { display: none !important; }
.mode-film figcaption { margin-top: 8px; color: var(--ink); font-size: .8125rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.mode-crack { display: none; }
/* With the script: one screen. */
.js-modes .modes { display: flex; flex-direction: column; height: 100vh; height: 100svh; min-height: 560px; max-height: 1440px; padding: 22px 0 0; }
.js-modes .pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-width: 460px; margin: 14px auto 0; }
.pick button { position: relative; height: 52px; padding: 0 6px; border: 0; background: url("modes/plate-white.webp") center / 100% 100% no-repeat; color: var(--ink);
  font: 900 .875rem/1 "Roboto", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  filter: drop-shadow(0 3px 6px rgba(37, 43, 48, .14)); transition: transform .15s; }
.pick button:hover { transform: translateY(-1px); }
.pick button[aria-pressed="true"] { background-image: url("modes/plate-red.webp"); color: #fff; }
.pick button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.js-modes .lines { display: grid; max-width: 34em; margin: 10px auto 0; }
.lines .line { grid-area: 1 / 1; font-size: .9375rem; line-height: 1.4; opacity: 0; visibility: hidden; transition: opacity .25s; }
.lines .line.on { opacity: 1; visibility: visible; }
.lines b { color: var(--ink); font-weight: 900; }
.js-modes .modes-films { position: relative; display: block; flex: 1; min-height: 0; margin-top: 14px; padding: 0; overflow: hidden; background: var(--paper); }
.js-modes .mode-film { position: absolute; inset: 0; visibility: hidden; }
.js-modes .mode-film.on { visibility: visible; }
/* The upright clips keep their action in the lower part of the frame (the top was left clear for the words that used to be
   burned in), so a short stage crops mostly off the top. */
.js-modes .mode-film video { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 75%; }
.js-modes .mode-film figcaption { display: none; }
.js-modes .mode-crack { display: block; position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
@media (min-aspect-ratio: 1/1) {
  .js-modes .mode-wide { display: block !important; }
  .js-modes .mode-tall { display: none !important; }
  .js-modes .mode-film video { object-position: 50% 30%; }
}
/* The words: each mode's fact in the game's faceted lettering, its own pictures laid over the clip rather than burned into
   it, so the clip can crop to any screen's shape (a short laptop cuts its top and bottom) and the words stay whole, inside
   the part of it on show. Sized from the stage they sit in (container units), as large as the clip had them but never
   taller than their share of a short stage. sd.js shows each one at its moments in the clip (data-on); the markup marks
   the ones the poster carries, which is what shows before the clip plays, with reduced motion and without scripts. */
.mode-words { position: absolute; z-index: 1; left: 0; right: 0; top: 0; aspect-ratio: 9 / 16; container-type: size; pointer-events: none; }
.mode-words img { position: absolute; display: block; height: auto; max-width: none; visibility: hidden; }
.mode-words img.on { visibility: inherit; }
/* The fact (and the fail that takes its place) centred at the top; the hardcore count at the bottom right. Widths are the
   clip's own shares of the frame (tools/modes-build.py's old placements): upright first, then landscape below. */
.mode-words .w-fact, .mode-words .w-fail { left: 50%; top: 5%; transform: translateX(-50%); }
.mode-words .w-fact { --fw: 78; --fh: 12; width: 78%; }
.mode-words .w-fail { --fw: 70; --fh: 13; width: 70%; }
.mode-words .w-count { --fw: 20; --fh: 9; right: 5%; bottom: 4%; width: 20%; }
.mode-words .w-fact, .mode-words .w-fail, .mode-words .w-count { top: max(12px, 5cqh); width: min(calc(var(--fw) * 1cqw), calc(var(--fh) * 1cqh * var(--ar))); }
.mode-words .w-count { top: auto; right: max(12px, 4cqw); bottom: max(12px, 4cqh); }
.js-modes .mode-words { bottom: 0; aspect-ratio: auto; }
@media (min-aspect-ratio: 1/1) {
  .js-modes .mode-words .w-fact { --fw: 40; --fh: 15; }
  .js-modes .mode-words .w-fail { --fw: 36; --fh: 15; }
  .js-modes .mode-words .w-count { --fw: 8.5; --fh: 10; right: max(16px, 3cqw); bottom: max(16px, 5cqh); }
}
@media (min-width: 761px) {
  .modes { padding-top: 96px; }
  .js-modes .modes { padding-top: 40px; }
  .modes h2 { font-size: clamp(1.75rem, 2.6vw, 2.75rem); }
  .js-modes .pick { grid-template-columns: repeat(3, 200px); gap: 12px; max-width: none; margin: 16px auto 0; }
  .pick button { height: 64px; font-size: 1rem; }
  .js-modes .lines { margin-top: 12px; }
  .lines .line { font-size: 1rem; }
  .js-modes .modes-films { margin-top: 26px; }
}
@media (min-width: 1100px) {
  /* The heading on the left, the plates on the right with the line under them (below this width the heading has no
     room beside the plates, and sits above them). */
  .js-modes .modes-text { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 32px; max-width: 1440px; margin: 0 auto; text-align: left; width: 100%; box-sizing: border-box; }
  .js-modes .modes h2 { grid-column: 1; grid-row: 1 / 3; }
  .js-modes .pick { grid-column: 2; grid-row: 1; justify-self: end; margin: 0; }
  .js-modes .lines { grid-column: 2; grid-row: 2; margin: 0; width: 624px; max-width: 100%; justify-self: end; text-align: center; }
}

/* ---- The contracts ----------------------------------------------------------------------------------------------
   The five free contracts as tall tiles that play their delivery when picked, one at a time, and a sixth for the rest,
   greyed and looping while it is on screen, carrying the one purchase. */
.contracts { padding: 44px var(--gutter) 48px; }
.contracts-text { max-width: 1280px; margin: 0 auto; }
.contracts h2 { font-size: clamp(1.5rem, 7vw, 3.75rem); }
.contracts-text p { margin-top: 10px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 1280px; margin: 22px auto 0; padding: 0; list-style: none; }
.tile { --cut: 10px; position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; filter: drop-shadow(0 10px 18px rgba(37, 43, 48, .16)); }
.locked .tile { cursor: default; }
.tile video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: var(--paper);
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); }
.locked video { filter: grayscale(1) contrast(.9) brightness(1.04); }
/* The game's paper ticket for the level's name; the picked tile's turns red. */
.tile .tag { --edge: .1; position: absolute; left: 8px; top: 8px; right: 8px; padding: 8px 10px 7px; color: var(--ink); font-size: .6875rem; font-weight: 900; letter-spacing: .06em; line-height: 1.25; text-transform: uppercase; filter: drop-shadow(0 2px 3px rgba(37, 43, 48, .2)); }
.tile .tag b { display: block; color: var(--red-deep); }
.tile .tag i { display: block; color: var(--muted); font-style: normal; font-size: .625rem; }
.tile .count { position: absolute; left: 8px; bottom: 10px; --edge: .07; padding: 6px 9px 5px; filter: drop-shadow(0 1px 2px rgba(37, 43, 48, .18)); color: var(--ink); font-size: .625rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tile[aria-pressed="true"] .tag { color: #fff; }
/* The picked tile's ticket: the game's panel tinted red, as the game tints it (ModulateColor). */
.tile[aria-pressed="true"] .tag::before { border-image-source: url("img/panel-red.webp"); }
.tile[aria-pressed="true"] .tag b, .tile[aria-pressed="true"] .tag i { color: #fff; }
.locked .tag b { color: var(--muted); }
.locked .unlock { --edge: .1; position: absolute; left: 8px; right: 8px; bottom: 10px; padding: 9px 10px 8px; color: var(--ink); font-size: .75rem; line-height: 1.35; filter: drop-shadow(0 2px 3px rgba(37, 43, 48, .2)); }
.locked .unlock .todo { font-size: .6875rem; }
@media (min-width: 761px) {
  .contracts { padding: 96px var(--gutter); }
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
  .tile { --cut: 14px; }
  .tile .tag { font-size: .75rem; }
  .tile .tag i { font-size: .6875rem; }
}

/* ---- The finish -------------------------------------------------------------------------------------------------
   A closing frame, full screen on every screen: the last man falls in the game's slow motion and the picture holds, then
   the words come up over the held frame like a film's closing title card (sd.js adds .titled; reduced motion or no
   scripts, they are there from the start). Tall fall on phones, the same moment rendered wide on desktops. */
.finish { position: relative; overflow: hidden; height: 100vh; height: 100svh; min-height: 560px; max-height: 1080px; padding: 0; background: #1b1f22; }
.finish-film { position: absolute; inset: 0; }
.finish-film video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--paper); }
.fin-wide { display: none !important; }
.finish-film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 16, 18, .86) 0%, rgba(14, 16, 18, .55) 42%, rgba(14, 16, 18, .12) 75%); transition: opacity .6s; }
.finish-deck { --edge: .22; position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 20px; padding: 22px 20px 20px; color: #fff; }
.finish h2 { color: #fff; font-size: clamp(1.75rem, 8.4vw, 2.5rem); }
.finish-line { margin-top: 8px; color: #e9ecee; font-size: .9375rem; line-height: 1.45; }
.finish .get { margin-top: 14px; }
.finish .when { color: #c9ced2; }
.finish .deal { color: #e9ecee; }
.js-finish .finish-film::after, .js-finish .finish-deck { opacity: 0; }
.js-finish .finish-deck { transform: translateY(10px); transition: opacity .7s, transform .7s cubic-bezier(.32, .72, 0, 1); }
.js-finish .finish.titled .finish-film::after, .js-finish .finish.titled .finish-deck { opacity: 1; transform: none; }
@media (min-width: 761px) {
  .fin-tall { display: none !important; }
  .fin-wide { display: block !important; }
  .finish-film::after { background: linear-gradient(to right, rgba(14, 16, 18, .82) 0%, rgba(14, 16, 18, .6) 38%, rgba(14, 16, 18, .1) 70%); }
  .finish-deck { top: 50%; bottom: auto; left: max(var(--gutter), calc((100vw - 1180px) / 2)); right: auto; width: min(560px, 44vw); transform: translateY(-50%); }
  .js-finish .finish-deck { transform: translateY(calc(-50% + 10px)); }
  .js-finish .finish.titled .finish-deck { transform: translateY(-50%); }
  .finish h2 { font-size: clamp(2.5rem, 4.4vw, 4.25rem); }
  .finish-line { max-width: 26em; margin-top: 16px; font-size: 1.125rem; }
  .finish .get { margin-top: 30px; }
  .finish .badges { --h: 52px; gap: 14px; margin-top: 12px; }
}

/* ---- Inner pages: a bar with the title home and the links, then the page. ----------------------------------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); border-bottom: 1px solid rgba(37, 43, 48, .12); }
.bar-home img { width: 150px; height: auto; }
.bar nav { display: flex; gap: 18px; }
.bar nav a { color: var(--muted); font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--ink); }

/* ---- Press ------------------------------------------------------------------------------------------------------ */
.press { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter) 40px; }
.press-top { padding: 40px 0 8px; }
.press h1 { font-size: clamp(2.25rem, 9vw, 4.5rem); }
.press-top p { max-width: 40em; margin-top: 12px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 24px 0 0; border-top: 1px solid rgba(37, 43, 48, .14); }
.facts div { padding: 10px 12px 10px 0; border-bottom: 1px solid rgba(37, 43, 48, .14); }
.facts dt { color: var(--muted); font-size: .6875rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.facts dd { margin: 2px 0 0; color: var(--ink); font-size: .9375rem; }
.press-row { padding-top: 32px; }
.row-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.row-head h2 { font-size: clamp(1.375rem, 4vw, 2rem); }
.row-head h2 span { margin-left: .3em; color: var(--muted); font-size: .55em; vertical-align: middle; }
.all { display: inline-block; padding: 10px 14px 9px; background: var(--red); color: #fff; font-size: .8125rem; font-weight: 900; letter-spacing: .08em; text-decoration: none; text-transform: uppercase;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
.all:hover { background: var(--red-deep); color: #fff; }
.all span { font-weight: 400; letter-spacing: 0; text-transform: none; }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.item-pic { --cut: 8px; display: block; background: var(--paper); filter: drop-shadow(0 6px 12px rgba(37, 43, 48, .12)); }
.item-pic img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: var(--paper);
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); }
/* A trailer plays in place, in the same 16:9 box (a tall one sits inside it, on black). */
.item-pic video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #0e1012; }
.item-name { margin-top: 10px; color: var(--ink); font-size: .875rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
/* On a phone each file is its name, its size and the link; the line about it shows on wider screens. */
.item-desc { display: none; margin-top: 2px; font-size: .875rem; line-height: 1.4; }
.item-file { margin-top: 6px; font-size: .8125rem; }
.item-file a { font-weight: 900; }
.item-file span { color: var(--muted); }
@media (min-width: 761px) {
  .bar-home img { width: 190px; }
  .press-top { padding-top: 64px; }
  .items { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 22px; }
  .item-desc { display: block; }
}

/* ---- The pages of words (support, privacy) -------------------------------------------------------------------- */
.words { max-width: 47rem; margin: 0 auto; padding: clamp(22px, 6vw, 68px) var(--gutter) 16px; font-size: .9375rem; line-height: 1.45; }
.words h1 { font-size: clamp(2.25rem, 9vw, 4rem); }
.words h2 { margin: 1.5em 0 .45em; font-size: 1.0625rem; letter-spacing: .02em; }
.words h3 { margin: 1.1em 0 .35em; font-size: .875rem; letter-spacing: .04em; }
.words p + p, .words ul + p, .words p + ul { margin-top: .9em; }
.words ul { margin: 0; padding-left: 1.2em; }
.words li + li { margin-top: .45em; }
.words .updated { margin-top: 12px; color: var(--muted); }
/* The short answer at the top, on the game's paper with its cut corners. */
.words .short { --edge: .2; position: relative; margin-top: 20px; padding: 18px 20px 16px; color: var(--ink); font-size: 1.125rem; }
.words .both { display: grid; gap: 8px; margin-top: .7em; }
.words .both > div { padding: 9px 12px; border-left: 4px solid var(--ink); background: var(--paper); }
.words .both h3 { margin: 0 0 .25em; }
@media (min-width: 761px) { .words { font-size: 1.0625rem; line-height: 1.55; } .words h2 { margin-top: 1.8em; font-size: 1.125rem; } .words .both { grid-template-columns: 1fr 1fr; } }

/* ---- The opening (assets/intro.js) --------------------------------------------------------------------------- */
#intro { display: none; }
html.intro { overflow: hidden; }
html.intro #intro { display: block; position: fixed; inset: 0; z-index: 100; background: #edf0f2; cursor: pointer; }
html.intro #intro.broken { background: transparent; }
#intro canvas { display: block; width: 100%; height: 100%; }

/* ---- Odd screens: an upright tablet and a phone on its side ------------------------------------------------------
   On a phone on its side the hero's card is short and tight, so its call still sits on the first screen. */
@media (min-width: 761px) and (max-height: 520px) {
  .hero { min-height: 100vh; min-height: 100svh; }
  .hero-deck { bottom: 10px; width: min(420px, 50vw); padding: 12px 16px 12px; }
  .js-run .hero-deck { bottom: calc(10px + var(--bar)); }
  .hero h1 { font-size: 1.25rem; }
  .get { margin-top: 8px; }
  .when { font-size: .6875rem; }
  .badges { --h: 34px; margin-top: 6px; }
  .todo-note { margin-top: 4px; }
  .deal { margin-top: 6px; font-size: .8125rem; }
  .top { padding-top: 8px; }
}

/* ---- Footer ---------------------------------------------------------------------------------------------------- */
.foot { display: grid; gap: 8px; padding: 34px var(--gutter) 48px; color: var(--muted); font-size: .875rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 4px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: .8125rem; }
.foot .legal { max-width: 76ch; font-size: .75rem; }

/* ---- The story ---------------------------------------------------------------------------------------------------
   A film moment, edge to edge: the opening scene in a cinema letterbox, near black, the words as title cards in the bar
   under the picture, one at a time as it plays, the question last and largest. The only dark section, and the only one
   with no margins at its sides. */
.story { padding: 20px 0 22px; background: #0e1012; color: #fff; }
.cinema { position: relative; width: 100%; aspect-ratio: 2 / 1; overflow: hidden; background: #000; }
.story-film { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The end: the film's last frame again, sharp (rendered at twice the size), laid exactly over the film's own last frame
   (the same 2:1 picture, centred, cropped by the letterbox as the film is), then the camera pushes in until the parcel's
   label sits in the middle and reads: further on a narrow screen, where the picture is small. --lx and --ly are the
   label's place in the picture. Reduced motion or no scripts: the still, already pushed in. */
.story-end { --lx: 50.5%; --ly: 67.6%; --zoom: 5.2; position: absolute; left: 0; top: 50%; width: 100%; height: auto; max-width: none;
  transform-origin: 0 0; transform: translate(calc(50% - var(--zoom) * var(--lx)), calc(0% - var(--zoom) * var(--ly))) scale(var(--zoom)); }
@media (min-width: 481px) { .story-end { --zoom: 4; } }
@media (min-width: 761px) { .story-end { --zoom: 2.8; } }
@media (min-width: 1101px) { .story-end { --zoom: 2.1; } }
@media (min-width: 1700px) { .story-end { --zoom: 1.8; } }
.js-story .story-end { opacity: 0; transform: translate(0, -50%) scale(1); transition: none; }
.js-story .story.ended .story-end { opacity: 1; transform: translate(calc(50% - var(--zoom) * var(--lx)), calc(0% - var(--zoom) * var(--ly))) scale(var(--zoom));
  transition: opacity .35s linear, transform 3.2s cubic-bezier(.45, 0, .25, 1) .45s; }
/* Replay: a dark plate like the other controls, in the picture's top corner, clear of the label and the words. */
.replay { position: absolute; z-index: 2; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px 9px 11px; border: 0;
  background: rgba(14, 16, 18, .84); color: #fff; font: 900 .75rem/1 "Roboto", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
.replay[hidden] { display: none; }
.replay svg { width: 15px; height: 15px; color: var(--red); }
.replay:hover { background: var(--red); }
.replay:hover svg { color: #fff; }
.replay:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.cinema:focus { outline: none; }
@media (min-width: 761px) { .replay { top: 16px; right: 16px; padding: 13px 17px 12px 15px; font-size: .8125rem; } }
.cards { display: grid; place-items: center; min-height: 104px; padding: 18px var(--gutter) 0; text-align: center; }
.card { grid-area: 1 / 1; max-width: 22em; margin: 0; color: #e9ecee; font-size: 1.0625rem; font-weight: 900; line-height: 1.3; letter-spacing: .01em; }
.card.ask { color: #fff; font-size: clamp(1.5rem, 7vw, 3.5rem); line-height: 1.1; letter-spacing: -.01em; text-transform: none; }
/* Without the script, or with reduced motion, every line is there at once, in order. */
html:not(.js-story) .cards { gap: 8px; }
html:not(.js-story) .card { grid-area: auto; }
.js-story .card { opacity: 0; transform: translateY(6px); transition: opacity .45s, transform .45s cubic-bezier(.32, .72, 0, 1); }
.js-story .card.on { opacity: 1; transform: none; }
@media (min-width: 761px) {
  .story { padding: 4vh 0 5vh; }
  /* Edge to edge at 2.35:1, but never so tall that the picture and its title cards do not fit on one screen together. */
  .cinema { aspect-ratio: auto; height: min(calc(100vw / 2.35), calc(100vh - 300px)); height: min(calc(100vw / 2.35), calc(100svh - 300px)); }
  .cards { min-height: 150px; padding-top: 28px; }
  .card { font-size: 1.5rem; }
}

/* ---- Proof ------------------------------------------------------------------------------------------------------
   The reviews as the trailer's quote cards (Liam, 23 Nov): black plates cut at the corners like the game's, the quote
   big in white, the credit small in red, played straight. With the script they cut in one at a time as the scroll
   reaches them (a hard cut with a small punch-in), the facts come up word by word like the trailer's captions, and the
   last card breaks through a pane of the page's white. Reduced motion or no scripts: everything there, still. */
.proof { padding: 36px var(--gutter) 40px; background: var(--white); }
.proof-in { max-width: 1180px; margin: 0 auto; }
.proof .brand { text-transform: none; }  /* s&box is written in lower case, in capitals or not. */
.proof figure { margin: 0; }
.proof blockquote { margin: 0; }
.qcards { display: grid; gap: 10px; }
.qcard { --edge: .22; position: relative; display: flex; flex-direction: column; justify-content: center; padding: 26px 22px 22px; text-align: center; }
.qcard blockquote p { color: #f7f8fa; font-size: 1.375rem; font-weight: 900; line-height: 1.15; letter-spacing: -.01em; }
.qcard blockquote p::before { content: "\201C"; }
.qcard blockquote p::after { content: "\201D"; }
.qcard figcaption { margin-top: 10px; color: #f5616f; font-size: .8125rem; font-weight: 900; letter-spacing: .02em; }
.proof .qcard-last { margin-top: 24px; padding: 28px 20px 22px; }
.qcard-last blockquote p { font-size: 1.875rem; line-height: 1.08; }
.qcrack { display: none; }
.proof-calm { --edge: .22; position: relative; margin-top: 24px; padding: 22px 20px 20px; }
.proof h2 { font-size: clamp(1.125rem, 5vw, 1.75rem); line-height: 1.2; }
.proof-jam { margin-top: 10px; color: var(--ink); font-size: .9375rem; line-height: 1.55; }
/* Twigs and Sakentosh, the quieter two, where there is room for them (not on a phone: its page is at six screens). */
.review-more { display: none; }
.review blockquote p { color: var(--ink); font-size: .9375rem; line-height: 1.45; }
.review blockquote p::before { content: "\201C"; }
.review blockquote p::after { content: "\201D"; }
.review figcaption { margin-top: 8px; color: var(--muted); font-size: .8125rem; font-weight: 900; letter-spacing: .04em; }
.proof-date { margin-top: 20px; color: var(--muted); font-size: .75rem; }
@media (min-width: 761px) {
  .proof { padding: 72px var(--gutter) 104px; }
  .qcards { grid-template-columns: 1fr 1fr; gap: 16px; }
  .qcard { --edge: .3; min-height: 230px; padding: 44px 46px 38px; }
  .qcard blockquote p { font-size: clamp(1.5rem, 2.5vw, 2.375rem); }
  .qcard figcaption { margin-top: 16px; font-size: .9375rem; }
  .proof-calm { --edge: .3; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); margin-top: 56px; padding: 40px 46px 36px; }
  .proof-jam { margin-top: 0; font-size: 1.0625rem; }
  .proof .qcard-last { margin-top: 56px; min-height: 0; padding: 56px 44px 44px; }
  .qcard-last blockquote p { font-size: clamp(2.25rem, 5.2vw, 4.5rem); }
  .review-more { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); max-width: 860px; margin: 40px auto 0; text-align: center; }
  .proof-date { margin-top: 40px; text-align: center; }
}
/* The motion (sd.js adds js-proof, then .in as each part is reached). The cards are not there until they cut in: no
   fade, a cut, the quote a touch large for a moment, the credit a beat after. */
.js-proof .qcard:not(.in) { visibility: hidden; }
.js-proof .qcard.in blockquote { animation: qpunch .32s cubic-bezier(.2, .8, .2, 1) both; }
.js-proof .qcard.in figcaption { animation: qcredit .01s linear .22s both; }
@keyframes qpunch { from { transform: scale(1.07); } to { transform: none; } }
@keyframes qcredit { from { visibility: hidden; } to { visibility: visible; } }
/* The last card waits under a pane of white that cracks and falls away (the modes' crack, sd.js). */
.js-proof .qcard-last:not(.in) { visibility: visible; }
.js-proof .qcard-last .qcrack { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.js-proof .qcard-last:not(.in) .qcrack { background: var(--paper); }
/* The facts word by word: each word cuts in as the captions do. */
.js-proof [data-words] .w { visibility: hidden; }
.js-proof [data-words] .w.on { visibility: visible; }

/* ---- The top bar: Sound and Get the game ------------------------------------------------------------------------
   Two small plates at the top right, once the hero's badges are gone: tucked up out of sight while scrolling down,
   back on scrolling up, and only where they cover no words (sd.js). Never there without scripts. */
.sticky { position: fixed; z-index: 50; top: 10px; right: 10px; display: flex; gap: 6px;
  transform: translateY(-160%); transition: transform .25s cubic-bezier(.32, .72, 0, 1); }
.sticky.show, .sticky:focus-within { transform: none; }
.sticky.solo .sound { display: none; }
.sticky[hidden] { display: none; }
.sticky-get { display: block; padding: 9px 12px 8px; background: var(--red); color: #fff;
  font-size: .6875rem; font-weight: 900; letter-spacing: .1em; text-decoration: none; text-transform: uppercase;
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px); }
.sticky-get:hover { background: var(--red-deep); }
.sticky-get:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (min-width: 761px) { .sticky { top: 16px; right: var(--gutter); gap: 8px; } .sticky-get { padding: 11px 16px 10px; font-size: .75rem; } }
@media (prefers-reduced-motion: reduce) { .sticky { transition: none; } }

/* Sound: a dark plate like Watch the trailer, saying what it is now, Sound off (the speaker struck through) or Sound on
   (the speaker sounding, in red, the active state). */
.sound { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 9px 11px 8px 10px; border: 0; background: rgba(14, 16, 18, .84);
  color: #fff; font: 900 .6875rem/1 "Roboto", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; cursor: pointer;
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px); }
.sound[hidden] { display: none; }
.sound svg { width: 17px; height: 14px; flex: none; }
.sound .i-on, .sound[aria-pressed="true"] .i-off { display: none; }
.sound[aria-pressed="true"] .i-on { display: inline; color: var(--red); }
.sound:hover { background: var(--ink); }
.sound:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.sticky .sound { padding-top: 8px; padding-bottom: 7px; }
@media (min-width: 761px) { .sound { font-size: .75rem; padding: 11px 14px 10px 12px; } .sticky .sound { padding-top: 10px; padding-bottom: 9px; } }

/* ---- The trailer ---------------------------------------------------------------------------------------------------
   A label over the hero's clip opens it in a player over the page: dark, the film as large as the screen allows, the
   close button in the corner. Wide on a landscape screen, tall on an upright one (sd.js). */
/* The trailer's label and the Sound plate side by side over the hero's clip. */
.hero-acts { position: absolute; z-index: 3; left: 10px; top: 58px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hero-acts .sound { padding: 10px 12px 9px 11px; font-size: .75rem; }
.watch { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px 9px 12px;
  background: rgba(14, 16, 18, .84); color: #fff; font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-decoration: none; text-transform: uppercase;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
.watch i { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--red); }
.watch:hover { background: var(--red); }
.watch:hover i { border-left-color: #fff; }
.watch:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
@media (min-width: 761px) {
  .hero-acts { left: auto; right: var(--gutter); top: auto; bottom: clamp(20px, 5vh, 56px); flex-direction: row-reverse; }
  .watch { padding: 13px 18px 12px 16px; font-size: .8125rem; white-space: nowrap; }
  .hero-acts .sound { padding: 13px 15px 12px 13px; font-size: .8125rem; }
}
.trailer { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
.trailer[open] { display: grid; place-items: center; }
/* Opening it puts focus on the player itself (autofocus), not on the film, so Safari draws no ring round the film; Tab
   reaches the film's controls and the close button from there. */
.trailer:focus { outline: none; }
.trailer::backdrop { background: rgba(8, 9, 10, .94); }
.trailer-frame { position: static; width: min(94vw, calc((100dvh - 120px) * 16 / 9)); }
.trailer-frame.tall { width: min(94vw, calc((100dvh - 120px) * 9 / 16)); }
.trailer video { display: block; width: 100%; height: auto; background: #000; }
.trailer-close { position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; padding: 0; background: rgba(255, 255, 255, .12); cursor: pointer;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
.trailer-close::before, .trailer-close::after { content: ""; position: absolute; left: 12px; right: 12px; top: 21px; height: 3px; background: #fff; transform: rotate(45deg); }
.trailer-close::after { transform: rotate(-45deg); }
.trailer-close:hover { background: var(--red); }
.trailer-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* The facts card on a tablet: the heading over the jam line, not squeezed beside it. */
@media (min-width: 761px) and (max-width: 1099px) { .proof-calm { display: block; } .proof-jam { margin-top: 14px; } }
