/* ==========================================================================
   Showcase: one long scroll, told as a story. An introduction, then five
   projects. Each project is a run of pinned scenes: one line of type at the
   top, and under it the thing it describes, moving with the scroll.
   ========================================================================== */

/* the type: Newsreader (with its optical sizes), Geist and Geist Mono, latin, served with the site */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("../assets/fonts/newsreader.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300 600; font-display: swap; src: url("../assets/fonts/newsreader-italic.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("../assets/fonts/geist.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../assets/fonts/geist-mono.woff2") format("woff2"); }

:root {
  --bg: #f1eee8;
  --fg: #151412;
  --fg-2: #5f5a52;
  --line: rgba(21, 20, 18, 0.14);
  --accent: #151412;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(20px, 4.4vw, 72px);
  --ease: cubic-bezier(0.2, 0.7, 0, 1);

  /* the scene grid: nav, then one line of type, then the stage */
  --nav-h: 70px;
  --say-size: clamp(32px, 3.8vw, 72px);
  --say-h: calc(var(--say-size) * 2.3);
  --stage-top: calc(var(--nav-h) + var(--say-h) + 4svh);
  --stage-h: calc(100svh - var(--stage-top) - 5svh);
}

/* Colours belong to each section: every section paints its own background, so the change from one
   chapter's colour to the next is a wipe as it scrolls in, with no per-frame work at all. */
[data-theme="paper"] { --bg: #f1eee8; --fg: #151412; --fg-2: #5f5a52; --line: rgba(21,20,18,0.14); --accent: #151412; }
[data-theme="night"] { --bg: #0c0d0d; --fg: #eeebe5; --fg-2: #99958c; --line: rgba(238,235,229,0.14); --accent: #e0263a; }
[data-theme="opal"]  { --bg: #22020a; --fg: #f5e8dc; --fg-2: #c9a792; --line: rgba(245,232,220,0.16); --accent: #d8b36a; }
[data-theme="cream"] { --bg: #f3ebe1; --fg: #2a1c17; --fg-2: #7b6558; --line: rgba(42,28,23,0.15); --accent: #8a2533; }
[data-theme="ember"] { --bg: #0b0908; --fg: #efe7da; --fg-2: #a49784; --line: rgba(239,231,218,0.12); --accent: #e0a64b; }
[data-theme="navy"]  { --bg: #0a1020; --fg: #eaf0fb; --fg-2: #8b9aba; --line: rgba(234,240,251,0.12); --accent: #3b82f6; }
main > [data-theme] { background: var(--bg); color: var(--fg); }
main { position: relative; }


*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--fg); color: var(--bg); }

/* Split text: every word rides in its own mask. The mask gets headroom above and below the
   line box, so tall serif capitals, accents and italic overhangs are never clipped. */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.16em 0.04em 0.1em; margin: -0.16em -0.04em -0.1em; }
.w__i { display: inline-block; will-change: transform; }
.c { display: inline-block; will-change: transform; }

/* ---------------------------------------------------------------- nav */
/* a soft band of the page colour behind the nav, so passing text never collides with it. Its colour is set on
   the band itself (showcase.js): set on the page root, a colour change would restyle the whole page, the live
   films' pages included. */
/* (its colour eases from one chapter's to the next, so a crossfade between scenes never shows a band snapping) */
@property --veil { syntax: '<color>'; inherits: true; initial-value: #f1eee8; }
.veil {
  position: fixed; inset: 0 0 auto; height: 88px; z-index: 49; pointer-events: none;
  background: linear-gradient(var(--veil) 30%, transparent); transition: --veil 0.7s ease;
}
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gutter);
  color: #fff; mix-blend-mode: difference; pointer-events: none;
}
.nav a { pointer-events: auto; }
.nav a:focus-visible, .deck__card:focus-visible, .outro a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; border-radius: 3px; }
/* how far through the story you are: a hairline across the top, in the nav's own colour */
/* the lift: the five floors down the right-hand edge, the one you're on lit and named, its cabin moving with you */
.floors { position: fixed; z-index: 50; right: calc(var(--gutter) - 6px); top: 50%; translate: 0 -50%; color: #fff; mix-blend-mode: difference; opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s; }
.floors.is-in { opacity: 1; visibility: visible; transition: opacity 0.6s var(--ease); }
.note-r .floors.is-in { opacity: 0; }
.floors ol { position: relative; display: grid; gap: 22px; margin: 0; padding: 0 16px 0 0; list-style: none; }
.floors ol::before { content: ""; position: absolute; right: 0; top: -6px; bottom: -6px; width: 1px; background: currentColor; opacity: 0.22; }
.floors a { position: relative; display: block; padding: 2px 0; color: inherit; text-align: right; text-decoration: none; opacity: 0.38; transition: opacity 0.4s var(--ease); }
.floors b { display: block; font: 500 11px/1 var(--mono); letter-spacing: 0.14em; }
/* the floor's name, out to the left of its number: shown for the floor you're on, and for all of them on hover */
.floors span { position: absolute; right: calc(100% + 12px); top: 50%; font: 400 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; opacity: 0; translate: 6px -50%; transition: opacity 0.35s var(--ease), translate 0.45s var(--ease); }
.floors li.is-on a { opacity: 1; }
.floors.is-fresh li.is-on span, .floors:hover span, .floors a:focus-visible span { opacity: 1; translate: 0 -50%; }
.floors:hover a { opacity: 0.7; }
.floors:hover li.is-on a, .floors a:hover, .floors a:focus-visible { opacity: 1; }
.floors a:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.floors__car { position: absolute; right: -1px; top: 0; width: 3px; height: 16px; border-radius: 2px; background: currentColor; transform: translateY(var(--y, 0px)); }
@media (max-width: 899px) { .floors { display: none; } }
.floors__dip { position: fixed; inset: 0; z-index: 48; pointer-events: none; opacity: 0; }
/* notes on the films: a dot, a hairline out to the margin, a few words there (placed by showcase.js) */
.notes { position: fixed; inset: 0; z-index: 47; pointer-events: none; }
.notes__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.notes__g path { fill: none; stroke-width: 1.2; }
.notes__g--dark path { stroke: rgba(255, 255, 255, 0.62); }
.notes__g--dark circle { fill: #fff; stroke: rgba(255, 255, 255, 0.22); stroke-width: 7; }
.notes__g--light path { stroke: rgba(21, 20, 18, 0.55); }
.notes__g--light circle { fill: #151412; stroke: rgba(21, 20, 18, 0.16); stroke-width: 7; }
.note { position: absolute; left: 0; top: 0; padding: 8px 14px; border-radius: 999px; white-space: nowrap; font-size: clamp(13px, 0.95vw, 15px); font-weight: 500; letter-spacing: 0.005em; opacity: 0; will-change: transform, opacity; }
.note--dark { background: rgba(18, 18, 20, 0.82); color: #f1eee8; border: 1px solid rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.note--light { background: rgba(255, 255, 255, 0.86); color: #151412; border: 1px solid rgba(21, 20, 18, 0.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@media (max-width: 899px) { .notes { display: none; } }
.progress { position: fixed; z-index: 51; left: 0; top: 0; width: 100%; height: 2px; background: #fff; mix-blend-mode: difference; transform: scaleX(var(--p, 0)); transform-origin: 0 50%; pointer-events: none; opacity: 0.55; }
.nav__name { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 1.95vw, 30px); line-height: 1.1; letter-spacing: -0.01em; }
.nav__where { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; overflow: hidden; height: 1.4em; line-height: 1.4em; }
.nav__where-i { display: block; }
.nav__talk { justify-self: end; font-size: clamp(15px, 1.15vw, 18px); letter-spacing: 0.01em; }
.nav__talk span { display: inline-block; transition: transform 0.4s var(--ease); }
.nav__talk:hover span { transform: translate(2px, -2px); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto; row-gap: 24px;
  padding: calc(88px + 2vh) var(--gutter) clamp(24px, 4vh, 44px);
}
.hero__kicker { display: flex; gap: 18px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); }
.hero__kicker span + span::before { content: ""; display: inline-block; width: 22px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 18px; }
.hero__title {
  align-self: end;
  font-family: var(--serif); font-weight: 300; font-optical-sizing: auto;
  font-size: clamp(58px, min(11.2vw, 21svh), 210px); line-height: 0.9; letter-spacing: -0.045em;
}
.hero__line { display: block; }
.hero__line + .hero__line { padding-left: 0.9em; }
.hero__title em { font-style: italic; font-weight: 300; letter-spacing: -0.03em; }
.hero__foot { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero__foot p { max-width: 36ch; color: var(--fg-2); font-size: 16px; }
.hero__cue { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); }
.hero__cue i { position: relative; width: 1px; height: 38px; background: var(--line); overflow: hidden; }
.hero__cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--fg); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* the five projects, stacked like floors in the empty corner of the hero */
.deck {
  position: absolute; z-index: 1; right: var(--gutter); top: 64px;
  width: min(47vw, 840px); height: min(46vh, 500px); perspective: 2000px;
}
.deck__card {
  position: absolute; left: 0; top: 0; width: 58%; display: block; color: var(--fg);
  transform: translate3d(calc(var(--i) * 8%), calc(var(--i) * 15%), 0) rotateX(54deg) rotateZ(-24deg);
  transform-origin: 50% 50%; transform-style: preserve-3d;
}
/* each card's float carries it away on the scroll; the screen inside lifts on its own as the lift passes its floor */
.deck__float { position: relative; display: block; transform-style: preserve-3d; will-change: transform; }
.deck__screen { will-change: transform, opacity; }
.deck__screen {
  display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #111;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 40px 60px -30px rgba(20,16,12,.5), 0 0 0 1px rgba(20,16,12,.12);
  transition: box-shadow 0.6s var(--ease);
}
.deck__screen video { width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; margin: -1px; object-fit: cover; }
.deck__label {
  position: absolute; left: 113%; top: 50%; white-space: nowrap;
  display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--fg-2);
  transform: translateY(-50%) rotateZ(24deg) rotateX(-52deg); transform-origin: 0 50%;
  transition: color 0.4s var(--ease), translate 0.9s cubic-bezier(0.645, 0.045, 0.355, 1);
}
/* the lit floor's name steps out a little, clear of its raised screen */
.deck__label.is-on { translate: clamp(12px, 1.1vw, 22px) 0; }
.deck__label b { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.14em; }
.deck__card:hover .deck__screen, .deck__card:focus-visible .deck__screen { transform: translateZ(40px); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 70px 80px -30px rgba(20,16,12,.55), 0 0 0 1px rgba(20,16,12,.12); }
.deck__card:hover .deck__label, .deck__card:focus-visible .deck__label, .deck__label.is-on { color: var(--fg); }
.hero__floor { display: none; }
.hero__title, .hero__foot { position: relative; z-index: 2; }

/* ---------------------------------------------------------------- statement */
/* held in the middle of the screen while it fills in, word by word, as you read it */
.statement { position: relative; height: 215svh; padding: 0 var(--gutter); }
.statement__pin { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; padding-top: var(--nav-h); }
.statement__text {
  max-width: 21ch; margin: 0 auto;
  font-family: var(--serif); font-weight: 350; font-size: clamp(36px, min(5.9vw, 9.4svh), 100px); line-height: 1.08; letter-spacing: -0.028em;
  text-wrap: pretty;
}
.statement__text em { font-style: italic; }
.statement__text .w { overflow: visible; }
/* a picture never ends a line apart from its word */
.nb { white-space: nowrap; }
.pill {
  display: inline-block; width: 1.75em; height: 0.84em; margin: 0 0.06em; vertical-align: -0.06em;
  border-radius: 999px; overflow: hidden; background: #d9d4cb;
}
.pill img { width: 100%; height: 100%; object-fit: cover; }
.pill--px { background: #2c2520; }
.pill--px img { object-fit: contain; image-rendering: pixelated; transform: scale(1.5) translateY(4%); }

/* ---------------------------------------------------------------- chapter titles */
.title {
  min-height: 100svh; display: grid; align-content: center; justify-items: center; text-align: center;
  gap: 18px; padding: 16vh var(--gutter);
}
.title__no { display: flex; align-items: center; gap: 18px; color: var(--fg-2); }
.title__no i { width: clamp(36px, 7vw, 130px); height: 1px; background: currentColor; opacity: 0.5; }
.title__no > span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; }
.title__no b { display: inline-flex; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(34px, 3.6vw, 62px); line-height: 1; letter-spacing: -0.02em; color: var(--fg); }
.odo { display: inline-block; height: 1em; overflow: hidden; }
.odo__col { display: flex; flex-direction: column; }
.odo__col span { display: block; height: 1em; font: inherit; letter-spacing: 0; text-transform: none; }
.title__name {
  font-family: var(--serif); font-weight: 300; font-size: clamp(76px, 15vw, 290px); line-height: 0.9; letter-spacing: -0.05em;
}
.title__name em { font-style: italic; }
/* the client's own colour on the second half of the name, as on its logo */
.title__brand { color: var(--brand, inherit); }
.title__lede { max-width: 26ch; font-family: var(--serif); font-style: italic; font-weight: 350; font-size: clamp(24px, 2.8vw, 46px); line-height: 1.15; color: var(--fg-2); }

/* ---------------------------------------------------------------- scenes */
/* A scene is pinned for --len screens of scroll (times --pace: how quickly its story runs; its timeline is
   written in --len, so the pace changes the scrolling it takes and nothing else). Its line of type sits at the
   top, centred; the stage fills the rest. */
.scene { position: relative; height: calc(var(--len) * var(--pace, 0.8) * 100svh + 100svh); }
/* a scene joined to the one before overlaps it by --o screens (on a computer): it starts clear, its paper fading up
   behind it as its window takes over from the last one's, in the same place */
@media (min-width: 900px) {
  .scene--join { --o: 0.5; margin-top: calc(-100svh - var(--o) * 100svh); background: transparent !important; }
  .pin__bg { position: absolute; inset: 0; z-index: 0; background: var(--bg); pointer-events: none; }
}
.pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.say {
  position: absolute; z-index: 8; left: var(--gutter); right: var(--gutter);
  top: calc(var(--nav-h) + 2svh); height: var(--say-h); pointer-events: none;
}
.say__l {
  position: absolute; left: 0; right: 0; top: 0; margin: 0 auto; max-width: 21ch;
  text-align: center; visibility: hidden;
  font-family: var(--serif); font-weight: 350; font-size: var(--say-size); line-height: 1.08; letter-spacing: -0.024em;
  text-wrap: balance;
}
.say__l em { font-style: italic; }
.say__l.is-on { visibility: visible; }
html:not(.js) .say__l:first-child { visibility: visible; }

.set {
  position: absolute; left: 0; right: 0; top: var(--stage-top); height: var(--stage-h);
  z-index: 2; display: grid; place-items: center; perspective: 1600px;
}
.set > * { grid-area: 1 / 1; }
video { background: #000; }
.fx { position: absolute; inset: 0; z-index: 7; width: 100%; height: 100%; pointer-events: none; }
.fx--glass { z-index: 9; }
.glass { position: fixed; inset: 0; z-index: 45; width: 100vw; height: 100vh; pointer-events: none; }
.air { position: fixed; inset: 0; z-index: 44; width: 100vw; height: 100vh; pointer-events: none; }
/* ZenFast's ring rides a sticky screen-sized box on a track laid over the title and the timer scene (placed by
   showcase.js). Until the box sticks it scrolls with the page, so the browser itself carries the ring with the
   title, frame for frame, on phones as well; it sticks exactly as the title reaches the middle, and from there
   it shares the timer scene's frame (both stuck to the top). The name sits above it, so its letters pass in
   front of the ring; the phone sits below it. */
.zring { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 4; pointer-events: none; }
.zring:not(.is-placed) { display: none; }
.zring__box { position: sticky; top: 0; height: 100svh; }
.zring__c { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
#ch-zenfast .title__name { position: relative; z-index: 5; }

/* ---- a browser window round a recording */
.browser {
  position: relative; z-index: 2;
  width: min(84vw, calc((var(--stage-h) - 34px) * 1.7778));
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 50px 100px -40px rgba(20, 16, 12, 0.45), 0 0 0 1px rgba(20, 16, 12, 0.08);
  transform-origin: 50% 100%; will-change: transform;
}
.browser__bar { position: relative; display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #ece9e3; }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4cfc6; }
.browser__url {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 3px 16px; border-radius: 999px; background: rgba(0,0,0,.05);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em; color: #6d685f; white-space: nowrap;
}
.browser__screen { position: relative; aspect-ratio: 16 / 9; background: #0c0c0c; overflow: hidden; }
/* every recording runs a pixel past its frame's clip on each side: while a frame scales with the scroll its edge
   lands between pixels, and a video flush with the clip lets the dark backing flicker through there */
.browser__screen video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.browser__screen video + video { opacity: 0; }
.browser__screen video.is-on { opacity: 1; }
.browser--dark { background: #111; box-shadow: 0 60px 120px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08); }
/* the screen's light on the page round it: a soft glow in the site's own colour (set by showcase.js from its still) */
@media (min-width: 900px) {
  .browser { box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 50px 100px -40px rgba(20, 16, 12, 0.45), 0 0 0 1px rgba(20, 16, 12, 0.08), 0 30px 170px -10px var(--glow, rgba(0,0,0,0)); }
  .browser--dark { box-shadow: 0 60px 120px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08), 0 30px 170px -10px var(--glow, rgba(0,0,0,0)); }
}
.browser--dark .browser__bar { background: #1b1b1d; }
.browser--dark .browser__bar i { background: #3a3a3e; }
.browser--dark .browser__url { background: rgba(255,255,255,.06); color: #8f8c86; }
.browser--game {
  width: min(86vw, calc(var(--stage-h) * 1.7778)); border-radius: 12px; background: #000;
  box-shadow: 0 70px 160px -50px rgba(0,0,0,.95), 0 0 0 1px rgba(224,166,75,.22);
  transform-origin: 50% 50%;
}

/* ---- a phone round a recording: sized from its screen, so a 390x844 capture fills it exactly */
.handset {
  position: relative; z-index: 3; height: min(var(--stage-h), 640px); padding: 9px; display: flex;
  border-radius: 46px; background: linear-gradient(145deg, #2a2d34, #0d0e11 40%, #1d1f25);
  box-shadow: 0 0 0 1.5px #3b3f48 inset, 0 60px 110px -40px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.05);
  will-change: transform;
}
/* The screen: an iPhone status bar (time, the island, signal and battery) over the recording, so the top
   of the app sits below the island as it does on a phone, never under it. The bar takes the colour of
   the app's own header (--status, set on each phone; light headers add .handset--light). */
.handset__screen {
  position: relative; height: 100%; aspect-ratio: 390 / 898; border-radius: 38px; overflow: hidden; background: #0f172a;
  display: grid; grid-template-rows: 54fr 844fr; grid-template-columns: 100%; container-type: inline-size;
}
.handset__screen::before {
  content: "9:41"; grid-area: 1 / 1; display: flex; align-items: center; padding: 0 0 0 11%;
  font: 600 3.6cqw/1 -apple-system, "SF Pro Text", "Geist", sans-serif; letter-spacing: 0.02em; color: #fff;
  background: var(--status, #0b0b0c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 12'%3E%3Cg fill='%23ffffff'%3E%3Crect x='0' y='7' width='3' height='5' rx='1'/%3E%3Crect x='5' y='5' width='3' height='7' rx='1'/%3E%3Crect x='10' y='2' width='3' height='10' rx='1'/%3E%3Crect x='15' y='0' width='3' height='12' rx='1'/%3E%3Crect x='22' y='1' width='20' height='10' rx='3' fill='none' stroke='%23ffffff' stroke-opacity='.5'/%3E%3Crect x='24' y='3' width='14' height='6' rx='1.5'/%3E%3Crect x='43' y='4' width='2' height='4' rx='1' opacity='.5'/%3E%3C/g%3E%3C/svg%3E") no-repeat right 8% center / 12.5% auto;
}
.handset__screen::after { content: ""; grid-area: 1 / 1; z-index: 2; align-self: center; justify-self: center; width: 31%; height: 62%; border-radius: 999px; background: #000; }
.handset--light .handset__screen::before { color: #15120f; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 12'%3E%3Cg fill='%2315120f'%3E%3Crect x='0' y='7' width='3' height='5' rx='1'/%3E%3Crect x='5' y='5' width='3' height='7' rx='1'/%3E%3Crect x='10' y='2' width='3' height='10' rx='1'/%3E%3Crect x='15' y='0' width='3' height='12' rx='1'/%3E%3Crect x='22' y='1' width='20' height='10' rx='3' fill='none' stroke='%2315120f' stroke-opacity='.5'/%3E%3Crect x='24' y='3' width='14' height='6' rx='1.5'/%3E%3Crect x='43' y='4' width='2' height='4' rx='1' opacity='.5'/%3E%3C/g%3E%3C/svg%3E"); }
.handset__screen > video, .handset__screen > img { grid-area: 2 / 1; width: calc(100% + 2px); height: calc(100% + 1px); max-width: none; margin: 0 -1px -1px; min-height: 0; object-fit: cover; object-position: top center; }
.duo { position: relative; display: grid; place-items: center; }
.duo .handset { position: absolute; right: -5%; bottom: -7%; height: 92%; }
/* the showroom's phone is the window, narrowed: it sits where the window was, in its middle */
.scene[data-scene="devices"] .duo .handset { right: auto; bottom: auto; left: 50%; top: 50%; height: 96%; opacity: 0; }
/* a window dimmed behind something lifted out of it */
.browser__screen > .scrim { position: absolute; inset: 0; z-index: 3; background: #000; opacity: 0; pointer-events: none; }
.scene[data-scene="opal"] .duo { visibility: hidden; }
.handset--big { height: min(var(--stage-h), 760px); }
/* the shop on three phones at once: side by side on a big screen, fanned out on a phone */
.trio { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3.2vw, 60px); height: 100%; }
.handset--trio { height: min(var(--stage-h), 600px); }
/* A desktop site on a phone-sized screen is too small to read, so on phones each scene shows the site's
   own phone version instead: the same moment, recorded on a phone. Only the version on show is loaded. */
@media (min-width: 900px) { .only-m { display: none !important; } }
@media (max-width: 899px) { .only-d { display: none !important; } }
.handset__screen video + video { opacity: 0; }
.handset .live { position: static; inset: auto; }
.handset .live__badge { top: 8.5%; right: 50%; translate: 50% 0; padding: 5px 11px 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.35); }
.handset .ring { border-radius: 8px; }
.handset--live { opacity: 0; }
.scene[data-scene="opal"] .handset--m .handset__screen { background: #1a0207; -webkit-mask-image: -webkit-radial-gradient(white, black); }
/* the opal's circle opens on a wrapper, never on the video itself: iOS Safari won't reliably clip a playing
   video with clip-path, and lets a scaled video escape its parent's rounded corners (the mask above holds it) */
.handset__screen > .handset__view { grid-area: 2 / 1; position: relative; min-height: 0; overflow: hidden; will-change: transform, clip-path; }
.handset__view > video { width: calc(100% + 2px); height: calc(100% + 1px); max-width: none; margin: 0 -1px -1px; object-fit: cover; object-position: top center; }

/* ---- recordings that open out of the page: a large window under the line of type, exactly 16:9,
   so the footage is never cropped or stretched and never sits under the text */
.bleed {
  position: absolute; z-index: 1; left: 50%; top: var(--stage-top); translate: -50% 0;
  width: min(88vw, calc(var(--stage-h) * 1.7778)); aspect-ratio: 16 / 9;
  border-radius: 18px; overflow: hidden; background: #000;
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.07);
}
.bleed video { width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; margin: -1px; object-fit: cover; }
.bleed__shade { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,0) 38%), rgba(0,0,0,var(--shade, 0)); pointer-events: none; }

/* ---- the Spyder Cap: frameless, the page and the site share one black */
.cinema {
  width: min(94vw, calc(var(--stage-h) * 1.7778 * 1.08)); aspect-ratio: 16 / 9;
  -webkit-mask-image: radial-gradient(135% 130% at 50% 50%, #000 80%, transparent 100%);
          mask-image: radial-gradient(135% 130% at 50% 50%, #000 80%, transparent 100%);
}
.cinema video { width: 100%; height: 100%; object-fit: cover; background: transparent; }

/* ---- emails */
.set { --sheet-w: min(450px, 64vw); --sheet-h: min(var(--stage-h), 700px); }
.stars i { opacity: 0; }
/* the order's journey: three emails set out in depth; the scroll carries you along it */
.set--depth { perspective: 1100px; }
.journey { position: absolute; inset: 0; perspective: 1100px; perspective-origin: 50% 40%; }
.leg { position: absolute; left: 50%; top: 0; width: var(--sheet-w); margin-left: calc(var(--sheet-w) / -2); will-change: transform, opacity; opacity: 0; }
.leg figcaption { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.6vw, 26px); color: var(--fg-2); }
.leg figcaption b { font-family: var(--mono); font-style: normal; font-weight: 500; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg); padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; }
.leg__sheet { max-height: calc(var(--sheet-h) - 44px); overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 40px 80px -30px rgba(20, 16, 12, 0.45), 0 0 0 1px rgba(20, 16, 12, 0.07); }
.leg__sheet img { width: 100%; height: auto; }
.coupon {
  position: absolute; z-index: 5; left: calc(50% + var(--sheet-w) / 2 - 40px); top: 30%; opacity: 0;
  display: grid; gap: 4px; padding: 22px 34px 20px 30px; border-radius: 14px; color: #1b150c;
  background: linear-gradient(135deg, #f3d68e, #d8a23c 55%, #b9832a);
  box-shadow: 0 30px 60px -20px rgba(120, 80, 20, .55), 0 0 0 1px rgba(255,255,255,.35) inset;
  -webkit-mask: radial-gradient(circle 11px at 0 50%, transparent 98%, #000 100%) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 50%, transparent 98%, #000 100%) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 11px at 0 50%, transparent 98%, #000 100%) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 50%, transparent 98%, #000 100%) right / 51% 100% no-repeat;
}
.coupon span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.75; }
.coupon strong { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.4vw, 76px); line-height: 0.95; letter-spacing: -0.03em; }
.coupon code { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; padding-top: 8px; border-top: 1px dashed rgba(27, 21, 12, .35); }
.sheet {
  position: absolute; inset: 0 0 auto; border-radius: 14px; background: #fff;
  box-shadow: 0 40px 80px -30px rgba(20, 16, 12, 0.45), 0 0 0 1px rgba(20, 16, 12, 0.07);
  will-change: transform;
}
.sheet__win { position: relative; max-height: var(--sheet-h); border-radius: inherit; overflow: hidden; }
.sheet__win img { width: 100%; height: auto; }
.sheet__slot { position: absolute; z-index: 2; left: -7%; right: -7%; top: -12px; height: 12px; border-radius: 999px; background: #1b1a18; box-shadow: 0 10px 20px -8px rgba(0,0,0,.4); }
.stars { position: absolute; z-index: 5; display: flex; gap: clamp(6px, 0.8vw, 14px); top: 16%; right: calc(50% + var(--sheet-w) / 2 - 36px); }
.stars i {
  flex: none; width: clamp(26px, 3.2vw, 58px); aspect-ratio: 1; background: #d8a23c;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3.1 6.6 7.2.9-5.3 5 1.4 7.1L12 17.9l-6.4 3.5L7 14.3l-5.3-5 7.2-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3.1 6.6 7.2.9-5.3 5 1.4 7.1L12 17.9l-6.4 3.5L7 14.3l-5.3-5 7.2-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sheet--tall { inset: 0 7vw auto auto; z-index: 3; width: min(340px, 40vw); }
.sheet--tall .sheet__win { max-height: var(--stage-h); }
.sheet--pop { inset: 50% auto auto 50%; z-index: 4; height: auto; /* centred by xPercent/yPercent in showcase.js */
  /* the customer's email, front and centre: as large as the stage allows without cropping it (720 x 953) */
  width: min(600px, 46vw, calc(var(--stage-h) * 0.755)); }
.sheet--pop .sheet__win { max-height: var(--stage-h); }
.sheet--pop .sheet__win img { display: block; }
.mark { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border-radius: 3px; background: rgba(255, 214, 90, 0.6); mix-blend-mode: multiply; transform: scaleX(0); transform-origin: 0 50%; }
.browser__screen--cam video { transform-origin: 50% 50%; will-change: transform; }
/* Live films (live.js) stand exactly where their recordings stood. No will-change on them: their text is
   drawn again at each size it's shown at, so it stays sharp while the camera leans in. */
.film { display: block; background: #000 top center / cover no-repeat; }
.browser__screen > .film { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); }
.browser__screen > :is(video, .film) + .film { opacity: 0; }
.browser__screen > .film.is-on { opacity: 1; }
.browser__screen--cam .film { transform-origin: 50% 50%; }
.handset__screen > .film { position: relative; grid-area: 2 / 1; width: calc(100% + 2px); height: calc(100% + 1px); margin: 0 -1px -1px; min-height: 0; }
.handset__screen > :is(video, .film) + .film { opacity: 0; }
.cinema > .film { width: 100%; height: 100%; background-color: transparent; }
.handset__view > .film { position: relative; width: calc(100% + 2px); height: calc(100% + 1px); margin: 0 -1px -1px; }
.sent { position: absolute; z-index: 9; left: 0; right: 0; bottom: 8svh; text-align: center; pointer-events: none; opacity: 0; }
.sent span { font-family: var(--serif); font-size: clamp(20px, 1.8vw, 30px); color: var(--fg-2); }
.sent em { color: #86efac; }


/* ---- Wash Shots: the site's own bottles, caps and pumps articulated */
.shots { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: center; gap: clamp(4px, 1.1vw, 22px); height: 100%; padding-bottom: 1svh; }
.shots { gap: clamp(10px, 5vw, 110px); }
/* each bottle on its own layer, painted once (shadow and all) before it moves, not mid-animation */
.shots li { position: relative; height: min(var(--stage-h), 600px, calc((100vw - 2 * var(--gutter)) / 3 * 2.25 - 30px)); aspect-ratio: 320 / 720; will-change: transform, opacity; }
.shots li > img, .shots li > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.shots li[data-spray] { height: min(calc(var(--stage-h) + 3svh), 680px, calc((100vw - 2 * var(--gutter)) / 3 * 2.25)); }
/* no blurred drop-shadow: black on the night background barely showed, and blurring three large
   bottles cost a 100 ms frame the first time they were painted */
.shots svg { width: 100%; height: 100%; overflow: visible; }
.shots [data-shot-part="cap"] { transform-box: fill-box; transform-origin: 50% 70%; }

/* ---- the game */
.sprites { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
/* the end of the game's chapter: both heroes' elements behind everything in the scene (drawn by showcase.js) */
.mix { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.sprite { position: absolute; left: 0; top: 0; width: calc(80px * var(--s, 4)); height: calc(64px * var(--s, 4)); opacity: 0; will-change: transform; }
.sprite[data-sprite="evoker"] { width: calc(64px * var(--s, 4)); }
.sprite__body, .sprite__ghost { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; image-rendering: pixelated; }
.sprite__body { filter: drop-shadow(0 12px 16px rgba(0,0,0,.6)); }
.sprite__ghost { opacity: 0; filter: brightness(1.6) saturate(0.6); }
.sprite__fx { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 32%); max-width: none; image-rendering: pixelated; opacity: 0; }
.sprite__floor { position: absolute; left: 50%; bottom: 2%; width: 70%; height: 12%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); }

/* ---- the review wall: customers' photographs pinned beside the window, like prints */
.set { --bw: min(84vw, calc((var(--stage-h) - 34px) * 1.7778)); --prw: clamp(150px, 12.5vw, 250px); }
.prints { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.print {
  position: absolute; width: var(--prw); padding: 9px 9px 0; background: #f7f5f0; border-radius: 3px;
  box-shadow: 0 30px 50px -18px rgba(0,0,0,.75), 0 0 0 1px rgba(0,0,0,.08); opacity: 0;
}
.print[data-side="l"] { left: calc(50% - var(--bw) / 2 - var(--prw) * 0.62); }
.print[data-side="r"] { left: calc(50% + var(--bw) / 2 - var(--prw) * 0.38); }
.print[data-row="0"] { top: 2%; }
.print[data-row="1"] { top: 46%; }
.print img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 1px; }
.print figcaption { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 2px 11px; font-family: var(--serif); font-style: italic; font-size: 15px; color: #2a2622; }
.print figcaption span { font-style: normal; font-size: 11px; letter-spacing: 1px; color: #d8a23c; }

/* ---- Opal: the dashboard, and beside it the live website */
.browser--admin { z-index: 3; }
.browser--live { position: absolute; z-index: 4; width: min(52vw, calc(var(--stage-h) * 0.9 * 1.7778)); opacity: 0; }
.live { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.live[data-live="fees-before"] { opacity: 1; }
.ring { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); translate: 0 -50%; border-radius: 10px; border: 2px solid #c8922e; box-shadow: 0 0 0 6px rgba(200, 146, 46, 0.18); opacity: 0; }
.live__badge {
  position: absolute; right: 14px; top: 7px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #15803d;
}
.live__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2); }

/* ---- ZenFast */
/* the hour, big and plain, on one side of the phone; the stages of a fast on the other */
.set { --pw: calc(min(var(--stage-h), 760px) * 0.4343 + 18px); }
.clock { position: absolute; z-index: 2; top: 50%; right: calc(50% + var(--pw) / 2 + 4.5vw); translate: 0 -50%; text-align: right; }
.clock__h { display: grid; justify-items: end; gap: 12px; }
.clock__h b { font-family: var(--serif); font-weight: 300; font-size: clamp(90px, 10vw, 190px); line-height: 0.8; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.clock__h b::after { content: "h"; font-size: 0.42em; letter-spacing: 0; color: var(--fg-2); margin-left: 0.06em; }
.clock__h span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-2); line-height: 1.6; }
.stages { position: absolute; z-index: 2; top: 50%; left: calc(50% + var(--pw) / 2 + 4.5vw); translate: 0 -50%; display: grid; gap: 30px; padding-left: 26px; border-left: 1px solid var(--line); }
.stages::before { content: ""; position: absolute; left: -1px; top: 0; width: 2px; height: calc(var(--p, 0) * 100%); background: linear-gradient(#3b82f6, #22d3ee, #34d399); }
.stages li { position: relative; display: grid; gap: 3px; font-family: var(--serif); font-size: clamp(22px, 1.9vw, 32px); line-height: 1.1; color: var(--fg-2); transition: color 0.5s var(--ease); }
.stages li b { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.16em; color: var(--fg-2); }
.stages li span { font-family: var(--sans); font-size: 14px; color: var(--fg-2); opacity: 0.8; }
.stages li::before { content: ""; position: absolute; left: -32px; top: 22px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--fg-2); transition: background 0.5s var(--ease), border-color 0.5s var(--ease); }
.stages li.is-on { color: var(--fg); }
.stages li.is-on::before { background: #22d3ee; border-color: #22d3ee; box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.18); }
.plate {
  position: absolute; z-index: 4; left: 50%; top: 50%;
  height: min(var(--stage-h), 700px); aspect-ratio: 3 / 4; translate: -50% -50%;
  border-radius: 22px;
}
.plate img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; box-shadow: 0 50px 110px -40px rgba(0,0,0,.9); }
.plate__scan {
  position: absolute; left: -2%; right: -2%; top: 0; height: 2px; opacity: 0; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #7dd3fc 18%, #e0f2fe 50%, #7dd3fc 82%, transparent);
  box-shadow: 0 0 22px 6px rgba(125, 211, 252, 0.5);
}
.plate__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.plate__lines path { fill: none; stroke: rgba(125, 211, 252, 0.8); stroke-width: 1.3; }
.plate__lines circle { fill: #7dd3fc; stroke: rgba(125, 211, 252, 0.3); stroke-width: 8; }
/* (centred on its line by yPercent in showcase.js: GSAP owns its transform) */
.tag {
  position: absolute; top: var(--ly);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(10, 16, 32, 0.8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16); color: #eaf0fb;
  font-size: clamp(14px, 1.05vw, 17px); font-weight: 500; letter-spacing: 0.005em; opacity: 0;
}
.tag[data-side="r"] { left: calc(100% + 44px); }
.tag[data-side="l"] { right: calc(100% + 44px); }
.tag i { display: none; width: 8px; height: 8px; border-radius: 50%; background: #7dd3fc; box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.25); }
.tag b { color: #7dd3fc; font-weight: 600; }
.total {
  position: absolute; left: 50%; bottom: 7%; translate: -50% 0; opacity: 0; white-space: nowrap;
  padding: 10px 24px; border-radius: 999px; background: #fff; color: #0a1020;
  font-family: var(--serif); font-size: clamp(26px, 2.8vw, 46px); letter-spacing: -0.02em;
  box-shadow: 0 20px 50px -16px rgba(0,0,0,.7);
}

/* ---------------------------------------------------------------- outro */
/* laid out like the opening, so the story ends where it began: the stack in the top corner, now six floors
   high, the line under it, and beneath a rule the ways to reach me */
.outro { position: relative; }
.outro__in {
  position: relative; min-height: 100svh; overflow: clip;
  display: grid; grid-template-rows: auto 1fr auto auto auto; row-gap: 24px;
  padding: calc(88px + 2vh) var(--gutter) 22px;
}
/* where a link to the end lands: the last screen of it, however long the section runs */
.outro__at { position: absolute; left: 0; bottom: 0; width: 1px; height: 100svh; pointer-events: none; }
/* on a computer the end is a set piece on the scroll: the section runs on while its screen holds still and the
   stack is built (see showcase.js) */
@media (min-width: 900px) {
  .outro.is-run { height: 285svh; margin-top: -150svh; background: transparent; }
  .outro.is-run .outro__in { position: sticky; top: 0; height: 100svh; }
}
/* its paper, coming up over ZenFast's last moment */
.outro__bg { position: absolute; inset: 0; z-index: -1; background: var(--bg); pointer-events: none; }
.outro__kicker { display: flex; gap: 18px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); }
.outro__kicker span + span::before { content: ""; display: inline-block; width: 22px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 18px; }
.deck--end { top: 96px; }
.outro__title {
  grid-row: 3; align-self: end; position: relative; z-index: 2;
  font-family: var(--serif); font-weight: 300; font-optical-sizing: auto;
  font-size: clamp(58px, min(11.2vw, 21svh), 210px); line-height: 0.9; letter-spacing: -0.045em;
}
.outro__title em { font-style: italic; letter-spacing: -0.03em; }
.outro__foot { grid-row: 4; display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-top: 22px; border-top: 1px solid var(--line); position: relative; z-index: 2; }
.outro__lede { max-width: 30ch; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.6vw, 26px); line-height: 1.3; color: var(--fg-2); }
.outro__reach { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.outro__start {
  display: inline-flex; align-items: center; gap: 18px; padding: 16px 16px 16px 30px; border-radius: 999px;
  background: var(--fg); color: var(--bg); font-family: var(--serif); font-size: clamp(22px, 1.9vw, 30px); line-height: 1; letter-spacing: -0.01em;
  box-shadow: 0 22px 44px -22px rgba(20, 16, 12, 0.6); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.outro__start-i { display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 0.62em; transition: transform 0.5s var(--ease); }
.outro__start:hover { transform: translateY(-2px); box-shadow: 0 30px 54px -24px rgba(20, 16, 12, 0.65); }
.outro__start:hover .outro__start-i { transform: translateX(4px); }
.outro__start:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
.outro__or { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg-2); }
.outro__or .outro__mail { font: inherit; color: var(--fg); padding-bottom: 2px; }
.outro__mail {
  font-family: var(--serif); font-size: clamp(24px, 2.7vw, 46px); line-height: 1.2; letter-spacing: -0.02em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 4px;
  transition: background-size 0.6s var(--ease);
}
.outro__mail:hover { background-size: 0 1px; background-position: 100% 100%; }
.outro__copy {
  flex: none; font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2);
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px 7px; cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.outro__copy:hover, .outro__copy.is-done { color: var(--fg); border-color: currentColor; }
.outro__copy:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.outro__end { grid-row: 5; display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--fg-2); }
.outro__end a { transition: color 0.3s var(--ease); }
.outro__end a:hover { color: var(--fg); }
/* the sixth floor: not built yet, a drawing on squared paper with the cursor waiting */
.deck__card--new .deck__screen {
  display: grid; place-items: center; background-color: #f8f6f1;
  background-image: linear-gradient(rgba(21,20,18,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(21,20,18,0.07) 1px, transparent 1px);
  background-size: 6.25% 11.111%; background-position: -1px -1px;
  box-shadow: 0 0 0 1px rgba(21,20,18,0.2), 0 40px 60px -30px rgba(20,16,12,0.4);
}
.deck__caret { display: block; width: 2px; height: 26%; background: var(--fg); animation: caret 1.06s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
/* once you have reached it, the nav's own "get in touch" has nothing left to point at */
.nav__talk { transition: opacity 0.4s var(--ease); }
.at-end .nav__talk { opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------------- the brief */
/* A sheet of squared paper over the whole page (the sixth floor's, drawn up), one question at a time. */
.brief {
  --bg: #f1eee8; --fg: #151412; --fg-2: #5f5a52; --line: rgba(21, 20, 18, 0.16); --bad: #a3361f;
  position: fixed; inset: 0; z-index: 70; display: grid; grid-template-rows: auto auto minmax(0, 1fr);
  background-color: var(--bg); color: var(--fg);
  background-image: linear-gradient(rgba(21, 20, 18, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 20, 18, 0.045) 1px, transparent 1px);
  background-size: 48px 48px; background-position: 50% -1px;
}
.brief[hidden] { display: none; }
html.brief-open { overflow: hidden; }
.brief-cover main, .brief-cover .nav, .brief-cover .progress, .brief-cover .air, .brief-cover .glass { visibility: hidden; }
.brief__top { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 22px; padding: 18px var(--gutter); }
.brief__brand { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); }
.brief__brand i { width: 22px; height: 1px; background: currentColor; }
.brief__count { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--fg-2); }
.brief__count b { font-weight: 500; color: var(--fg); }
.brief__close { position: relative; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: border-color 0.3s var(--ease), transform 0.5s var(--ease); }
.brief__close span::before, .brief__close span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; margin: -0.75px 0 0 -8px; background: var(--fg); transform: rotate(45deg); }
.brief__close span::after { transform: rotate(-45deg); }
.brief__close:hover { border-color: var(--fg); transform: rotate(90deg); }
.brief__close:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.brief__bar { position: relative; height: 1px; margin: 0 var(--gutter); background: var(--line); }
.brief__bar i { position: absolute; inset: -0.5px 0; background: var(--fg); transform: scaleX(var(--p, 0.2)); transform-origin: 0 50%; transition: transform 0.8s var(--ease); }
.brief__form { position: relative; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gutter); }
.brief__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.brief__step { width: min(100%, 860px); min-width: 0; margin: 0 auto; padding: clamp(36px, 9vh, 110px) 0 36px; border: 0; }
.brief__step[hidden] { display: none; }
/* a legend normally sits on its fieldset's top edge; floated, it lays out like any heading */
.brief__q { display: block; float: left; width: 100%; padding: 0; margin: 0 0 14px; font-family: var(--serif); font-weight: 300; font-size: clamp(42px, 5.6vw, 88px); line-height: 0.98; letter-spacing: -0.035em; }
.brief__q em { font-style: italic; }
.brief__hint { clear: both; max-width: 48ch; margin: 0 0 30px; font-size: 16px; line-height: 1.5; color: var(--fg-2); }
.brief__sub { margin: 36px 0 14px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); }
.brief__sub small, .field__l small { font-family: var(--sans); font-size: 12px; letter-spacing: 0; text-transform: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 11px; padding: 13px 20px 13px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.6); font-size: 16px; line-height: 1.2; color: var(--fg);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
/* a ring that fills when chosen: square-ish for "pick any", round for "pick one" */
.chip span::before { content: ""; flex: none; width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: 3px; opacity: 0.4; transition: background-color 0.25s var(--ease), opacity 0.25s var(--ease); }
.chip input[type="radio"] + span::before { border-radius: 50%; }
.chip:hover span { border-color: var(--fg); }
.chip input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip input:checked + span::before { background: currentColor; opacity: 1; }
.chip input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 3px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.field { display: block; margin: 26px 0 0; }
.field[hidden] { display: none; }
.field__l { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); }
.field input, .field textarea {
  display: block; width: 100%; padding: 8px 0 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: none;
  background: transparent; color: var(--fg); font: 400 clamp(18px, 1.5vw, 22px)/1.4 var(--sans); transition: border-color 0.3s var(--ease);
}
.field textarea { min-height: 150px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.6); resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--fg); }
.field input::placeholder, .field textarea::placeholder { color: rgba(21, 20, 18, 0.32); }
.field.is-bad input { border-color: var(--bad); }
.field__e, .brief__err { display: block; margin: 8px 0 0; font-size: 13.5px; color: var(--bad); }
.field__e:empty, .brief__err:empty { display: none; }
.brief__nav {
  /* the full width of the sheet (the buttons kept to the questions' column), on the paper, fading in just above, so
     an answer scrolling under the buttons is never half hidden behind one */
  position: sticky; bottom: 0; display: flex; align-items: center; gap: 16px; margin: auto calc(-1 * var(--gutter)) 0;
  padding: 18px max(var(--gutter), calc((100% + 2 * var(--gutter) - 860px) / 2)) calc(22px + env(safe-area-inset-bottom)); background: var(--bg);
}
.brief__nav::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 44px; background: linear-gradient(rgba(241, 238, 232, 0), var(--bg)); pointer-events: none; }
.brief__nav[hidden] { display: none; }
.brief__btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 22px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.6); color: var(--fg); font: 500 15px/1 var(--sans); cursor: pointer; transition: border-color 0.3s var(--ease), transform 0.4s var(--ease), opacity 0.3s var(--ease); }
.brief__btn:hover { border-color: var(--fg); }
.brief__btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.brief__btn--ink { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.brief__btn[disabled] { opacity: 0.45; cursor: default; }
.brief__back[disabled] { visibility: hidden; }
.brief__next { flex: none; padding: 16px 18px 16px 26px; font-size: 16px; }
.brief__next-i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); color: var(--fg); font-size: 13px; transition: transform 0.4s var(--ease); }
.brief__next:hover .brief__next-i { transform: translateX(3px); }
.brief__status { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; color: var(--fg-2); }
.brief__status a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.brief__status.is-bad { color: var(--bad); }
.brief__key { flex: none; font-size: 12.5px; color: var(--fg-2); }
.brief__key kbd { display: inline-block; margin-left: 4px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px; font: 500 11px/1.2 var(--mono); }
/* the step you're on, named beside the brand, and the promise under the send button */
.brief__name { color: var(--fg); }
.brief__sub[hidden] { display: none; }
.brief__nav { flex-wrap: wrap; row-gap: 10px; }
.brief__promise { flex: 1 0 100%; margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--fg-2); text-align: right; }
.brief__promise[hidden] { display: none; }
.brief__promise a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.follow > .brief__sub:first-of-type { margin-top: 4px; }
.follow .brief__sub { margin-top: 22px; }
/* follow-up questions: they open under the answer that asked for them */
.follow { margin: 26px 0 0; padding: 18px 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.45); }
.follow[hidden], .chips[hidden] { display: none; }
.follow__t { margin: 0 0 14px; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.2; color: var(--fg); }
.follow .chips + .chips, .follow .chips + .field, .follow .field + .chips { margin-top: 14px; }
.follow .field { margin-top: 18px; }
.brief__step > .chips + .chips { margin-top: 12px; }
/* files: a quiet button, and the chosen files listed under it */
.files__pick { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px dashed rgba(21, 20, 18, 0.35); border-radius: 999px; background: rgba(255, 255, 255, 0.6); font-size: 15px; cursor: pointer; transition: border-color 0.25s var(--ease); }
.files__pick::before { content: "+"; font-size: 18px; line-height: 1; }
.files__pick:hover { border-color: var(--fg); }
.files__pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.files__pick:focus-within { outline: 2px solid var(--fg); outline-offset: 3px; }
.files__list { display: grid; gap: 6px; margin: 12px 0 0; }
.files__list li { display: flex; align-items: center; gap: 12px; padding: 8px 6px 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.6); font-size: 14px; }
.files__list li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files__list li small { color: var(--fg-2); }
.files__list button { padding: 6px 10px; border: 0; border-radius: 999px; background: none; color: var(--fg-2); font: inherit; font-size: 13px; cursor: pointer; }
.files__list button:hover { color: var(--fg); background: rgba(21, 20, 18, 0.06); }
/* once it's sent, the counter just says "Yours" */
.brief__count.is-done { font-size: 0; }
.brief__count.is-done b { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.brief__kick { display: flex; align-items: baseline; gap: 12px; margin: 0 0 18px; font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--fg-2); }
.brief__kick b { font-family: var(--mono); font-style: normal; font-weight: 500; font-size: 12px; letter-spacing: 0.14em; color: var(--fg); }
.brief__done .brief__hint { margin-bottom: 36px; }
.brief__step:focus { outline: none; }
.fields[hidden], .prompts[hidden], .prompts button[hidden], .brief__resume[hidden] { display: none; }
/* back after a break */
.brief__resume { width: min(100%, 860px); margin: 18px auto 0; font-size: 13.5px; line-height: 1.5; color: var(--fg-2); }
.brief__resume button, .field__hint button, .glance button { padding: 0; border: 0; background: none; color: var(--fg); font: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.brief__resume button:focus-visible, .field__hint button:focus-visible, .glance button:focus-visible, .prompts button:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }
/* the brief so far, on the last step: a line a step, and a way back to change it */
.glance { margin: 4px 0 6px; padding: 16px 20px 6px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.45); }
.glance:empty { display: none; }
.glance__t { margin: 0 0 6px; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.2; }
.glance ul { margin: 0; padding: 0; list-style: none; }
.glance li { display: grid; grid-template-columns: 11em minmax(0, 1fr) auto; align-items: baseline; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.glance li:first-child { border-top: 0; }
.glance__k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); }
.glance__v { font-size: 15px; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.glance__v.is-empty { color: var(--fg-2); font-style: italic; }
.glance button { font-size: 13.5px; color: var(--fg-2); }
.glance button:hover { color: var(--fg); }
/* a likely typo in the email, offered back */
.field__hint { display: block; margin: 8px 0 0; font-size: 14px; color: var(--fg-2); }
.field__hint:empty { display: none; }
/* lines to start the project's description from */
.prompts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.prompts__l { margin-right: 4px; font-size: 13.5px; color: var(--fg-2); }
.prompts button { padding: 7px 13px; border: 1px dashed rgba(21, 20, 18, 0.32); border-radius: 999px; background: transparent; color: var(--fg); font: 400 13.5px/1.2 var(--sans); cursor: pointer; transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease); }
.prompts button::before { content: "+ "; color: var(--fg-2); }
.prompts button:hover { border-color: var(--fg); background: rgba(255, 255, 255, 0.6); }
/* the call: a number, and when */
.field--chips .chips { margin-top: 4px; }
.chips--small { gap: 8px; }
.chips--small .chip span { padding: 10px 15px 10px 13px; font-size: 14.5px; }
/* files dragged over the sheet */
.field--files { border-radius: 16px; transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.field--files.is-drop { background: rgba(255, 255, 255, 0.7); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.7), 0 0 0 11px rgba(21, 20, 18, 0.35); }

/* ---------------------------------------------------------------- phones and small tablets */
@media (max-width: 899px) {
  /* (the line's size follows the height too, so a phone on its side keeps a stage worth the name) */
  :root { --nav-h: 60px; --say-size: clamp(26px, min(7.2vw, 5.4svh), 44px); --say-h: calc(var(--say-size) * 3.3); }
  .nav { grid-template-columns: 1fr auto; padding: 16px var(--gutter); }
  .nav__where { display: none; }
  /* the hero on a phone: the stack of five floors large across the top, the lit floor named under it,
     then the title, as big as the width allows */
  .hero { display: flex; flex-direction: column; row-gap: 0; padding: calc(var(--nav-h) + 10px) var(--gutter) 22px; }
  .hero__kicker { gap: 12px; font-size: 10.5px; }
  .hero__kicker span + span::before { width: 16px; margin-right: 12px; }
  .hero__title { align-self: stretch; padding-top: 16px; font-size: min(19.2vw, 9.1svh); line-height: 0.88; }
  .hero__line + .hero__line { padding-left: 0.5em; }
  .hero__foot { flex-direction: row; align-items: end; gap: 18px; margin-top: 22px; padding-top: 16px; }
  .hero__foot p { font-size: 15px; line-height: 1.45; }
  .hero__cue { flex: none; }
  .hero__floor {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    padding: 12px 0 0; border-top: 1px solid var(--line); position: relative; z-index: 2;
  }
  .hero__floor-m { overflow: hidden; padding: 0.1em 0; margin: -0.1em 0; }
  .hero__floor-name { display: block; font-family: var(--serif); font-style: italic; font-size: 23px; line-height: 1.1; letter-spacing: -0.01em; }
  .hero__floor-n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--fg-2); }
  .hero__floor-n b { display: inline-block; font-weight: 500; color: var(--fg); }
  .statement__text { font-size: clamp(36px, 9.8vw, 46px); max-width: none; }
  .scene { height: calc(var(--len) * 85svh + 100svh); }
  .say__l { max-width: 17ch; }

  /* the width of the column, unless the stage is short (a phone on its side): then as wide as its height allows */
  .browser { width: min(calc(100vw - 2 * var(--gutter)), calc((var(--stage-h) - 26px) * 1.7778)); border-radius: 10px; }
  .browser__bar { height: 26px; }
  .browser__bar i { width: 7px; height: 7px; }
  .browser__url { font-size: 10px; padding: 2px 10px; }
  .browser--game { width: min(calc(100vw - 2 * var(--gutter)), calc(var(--stage-h) * 0.92 * 1.7778)); }
  .duo .handset { right: 0; bottom: -96%; height: 166%; }
  .handset { padding: 6px; border-radius: 30px; }
  .handset__screen { border-radius: 25px; }
  .trio { width: 100%; }
  /* fanned: the middle phone in front, the other two behind it, tilted (placed by showcase.js) */
  .handset--trio { position: absolute; left: 50%; top: 50%; height: calc(var(--stage-h) * 0.62); }
  .handset--trio:nth-child(2) { z-index: 4; height: calc(var(--stage-h) * 0.82); }
  .cinema { width: 100vw; }
  .bleed { width: calc(100vw - 2 * var(--gutter)); border-radius: 12px; top: calc(var(--stage-top) + (var(--stage-h) - (100vw - 2 * var(--gutter)) * 0.5625) / 2); }

  .set { --sheet-w: min(330px, 72vw); }
  .coupon { left: 50%; translate: -50% 0; top: auto; bottom: 1svh; padding: 16px 24px; }
  /* the rating, given just under the review email, where the thank-you's coupon lands later */
  .stars { left: 50%; right: auto; translate: -50% 0; top: auto; bottom: 10svh; }
  .stars i { width: 40px; }
  /* the stack takes whatever height the title leaves, centred on its middle floor */
  .deck { position: relative; left: auto; right: auto; top: auto; width: 100%; height: auto; flex: 1 1 auto; min-height: min(56vw, 29svh); }
  /* as wide as the column allows (--cw), unless the stack would outgrow its height: showcase.js narrows it then */
  .deck__card {
    left: 50%; top: 50%; width: var(--cw, 70%); margin: calc(var(--cw, 70%) * -0.28125) 0 0 calc(var(--cw, 70%) / -2);
    transform: translate3d(calc((var(--i) - 2) * 7%), calc((var(--i) - 2) * 14%), 0) rotateX(54deg) rotateZ(-24deg);
  }
  .deck__label { display: none; }
  /* the brief on a phone: the same sheet, the questions smaller, one field to a row */
  .brief__top { padding: 14px var(--gutter); gap: 14px; }
  .brief__brand i { display: none; }
  .brief__q { font-size: clamp(34px, 9.6vw, 48px); }
  .brief__step { padding-top: 30px; }
  .brief__hint { font-size: 15px; margin-bottom: 22px; }
  .brief__sub { margin-top: 28px; }
  .chips { gap: 8px; }
  .chip span { padding: 12px 16px 12px 14px; font-size: 15.5px; }
  .fields { grid-template-columns: 1fr; }
  .field input, .field textarea { font-size: 18px; }
  .brief__key { display: none; }
  .brief__label, .brief__brand i { display: none; }
  .brief__status:empty { display: none; }
  .brief__nav { gap: 10px; }
  .brief__nav .brief__next { margin-left: auto; }
  .brief__promise { text-align: left; }
  .follow { padding: 16px 14px 18px; border-radius: 16px; }
  .brief__next { padding: 15px 16px 15px 22px; font-size: 15px; }
  .glance { padding: 14px 14px 4px; border-radius: 16px; }
  .glance li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k b" "v v"; row-gap: 4px; }
  .glance__k { grid-area: k; } .glance__v { grid-area: v; font-size: 14.5px; } .glance li button { grid-area: b; }
  .prompts__l { flex: 1 0 100%; }
  /* the end on a phone: like the opening, the stack across the top, the floor named under it, then the line */
  .outro__in { display: flex; flex-direction: column; row-gap: 0; padding: calc(var(--nav-h) + 10px) var(--gutter) 18px; }
  .outro__kicker { gap: 12px; font-size: 10.5px; }
  .outro__kicker span + span::before { width: 16px; margin-right: 12px; }
  .deck--end { top: auto; min-height: min(62vw, 30svh); }
  .deck--end .deck__card { transform: translate3d(calc((var(--i) - 2.5) * 7%), calc((var(--i) - 2.5) * 14%), 0) rotateX(54deg) rotateZ(-24deg); }
  .outro__title { align-self: stretch; padding-top: 14px; font-size: min(19.2vw, 9.1svh); line-height: 0.88; }
  .outro__foot { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 22px; padding-top: 16px; }
  .outro__lede { font-size: 19px; }
  .outro__reach { align-items: stretch; gap: 12px; }
  .outro__start { justify-content: space-between; padding: 14px 14px 14px 24px; font-size: 24px; }
  .outro__or { justify-content: space-between; flex-wrap: wrap; }
  .outro__end { margin-top: 26px; font-size: 12px; }
  .clock, .stages { display: none; }
  .handset--m { height: min(var(--stage-h), 820px); }
  /* the wall's phone sits a little smaller, high on the stage, so the prints can line up beneath it */
  .scene[data-scene="wall"] .handset--m { height: calc(var(--stage-h) * 0.76); align-self: start; }
  /* the four prints in a row under the phone, overlapping a little, their tilted corners clear of the screen's edges */
  .set { --prw: 25vw; }
  .print[data-side] { left: auto; top: auto; bottom: 0; padding: 6px 6px 0; }
  .print:nth-child(1) { left: 2.5vw; } .print:nth-child(2) { left: 25.5vw; } .print:nth-child(3) { left: 48.5vw; } .print:nth-child(4) { left: 72vw; }
  .print figcaption { font-size: 11px; padding: 6px 1px 7px; }
  .print figcaption span { display: none; }
  .browser--live { width: calc(100vw - 2 * var(--gutter)); }
  /* (centred by xPercent in showcase.js: a CSS translate would be folded into GSAP's transform and lost) */
  .sheet--tall { inset: 0 auto auto 50%; translate: none; width: min(290px, 66vw); }
  .sheet--pop { width: min(330px, 84vw, calc(var(--stage-h) * 0.755)); }

  .shots { gap: 2px; }
  .shots { gap: 8px; }
  .shots li, .shots li[data-spray] { height: min(var(--stage-h), 420px, calc((100vw - 2 * var(--gutter)) / 3 * 2.25 - 20px)); }
  .scene[data-scene="game"] .set { place-items: start center; }

  /* on its food, kept whole on the plate and clear of the others (--cx, --cy: from showcase.js); on a phone on its
     side, beside the plate on their lines, as on a computer (.is-beside) */
  .plate:not(.is-beside) .plate__lines { display: none; }
  .plate:not(.is-beside) .tag { left: var(--cx, var(--x)); right: auto; top: var(--cy, var(--y)); padding: 6px 10px 6px 8px; font-size: 11.5px; gap: 6px; }
  .plate:not(.is-beside) .tag i { display: block; width: 6px; height: 6px; }
  .plate.is-beside .tag { padding: 6px 12px 6px 10px; font-size: 12.5px; }
  .plate { height: min(var(--stage-h), calc((100vw - 2 * var(--gutter)) * 4 / 3)); }
}

/* the narrowest phones: the brief's Back and Next stay on one row, under the questions rather than over them */
@media (max-width: 360px) {
  .brief__nav { gap: 8px; }
  .brief__btn { padding: 13px 16px; font-size: 14px; }
  .brief__next { padding: 13px 12px 13px 16px; font-size: 14px; gap: 8px; }
  .brief__next-i { width: 24px; height: 24px; }
}

/* a phone on its side: the page runs edge to edge (viewport-fit=cover), so the bar keeps clear of the notch */
.nav { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

@media (prefers-reduced-motion: reduce) {
  .hero__cue i::after { animation: none; }
  .deck__caret { animation: none; }
}
