/* ==========================================================================
   The secret venture page. Night to morning, like the film.

   THE RULES OF THE LOOK (the reasons are in ../../README.md)
   1. Two grounds only: night (near black teal) and morning (bright cream).
      One sunlit panel, pale gold, for "how this page was made". Nothing else.
   2. Gold is the human, one thing at a time: the button, the lamp, the sun, a
      yes. Aquamarine is AI's light: every drawn line, every label, and everything
      else you can press. Cream and ink are the words. There is no brown: Adam
      disliked it in the film's first cut (18 Nov 2026).
   3. Cormorant Garamond says things. Inter labels, counts and explains.
      Big numerals are Inter at its thinnest, as in the film.
   4. Motion is off until the page is told it may move: html[data-motion="full"].
      Everything is readable and usable with it off, and with no script at all.
   The palette is the film's second cut: video/src/ai-onboarding/theme.js.
   ========================================================================== */

@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant.woff2?v=bee3ec5a4a") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-italic.woff2?v=bee3ec5a4a") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2?v=bee3ec5a4a") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* The film's second cut palette (video/src/ai-onboarding/theme.js). No brown anywhere. */
  --night: #071A22;               /* the deepest ground: near black teal */
  --char: #0B232D;
  --char-lift: #18303A;           /* the brand's ink, for panels on the night ground */
  --marine: #134251;
  --cream: #FFFAF0;
  --cream-soft: #B4C6CB;          /* quieter words at night: cool, 10 to 1 on the night ground */
  --moon: #D7E8EE;
  --gold: #C9A227;                /* a gold line on cream: decoration only, never words */
  --sun: #F2C24B;                 /* the human: the buttons, the lamp, the sun, a yes */
  --sun-hi: #F8D06A;
  --aqua: #1FB5BF;                /* AI's light: every drawn line at night */
  --aqua-pale: #A3E8EB;           /* small words and labels at night */
  --aqua-deep: #0A7682;           /* everything you can press, by day */
  --aqua-deep-hi: #0B7F8B;        /* the hover: brighter, and still 4.5 to 1 under white */
  --aqua-ink: #086A75;            /* small labels by day: 5 to 1 even on the deepest cream */
  --morning: #F6EAD3;             /* the deepest cream: the foot of the page */
  --morning-hi: #FFFAF0;          /* Morning Light: the day ground */
  --paper: #FFFFFF;
  --ink: #18303A;
  --ink-soft: #46616C;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --bar: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 1rem); }
html[data-motion="full"] { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--cream); background: var(--night); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, video, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.defs { position: absolute; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }
.day :focus-visible, .bar[data-ground="day"] :focus-visible { outline-color: var(--aqua-deep); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 80; background: var(--sun); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; }
/* For screen readers only. */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ------------------------------------------------------------------ type */
.display { font-family: var(--serif); font-weight: 500; line-height: 1.07; letter-spacing: -.012em; text-wrap: balance; }
.display--xl { font-size: clamp(2.5rem, 6.6vw, 5.9rem); }
.display--l { font-size: clamp(2rem, 4.3vw, 3.7rem); }
.eyebrow { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--aqua-ink); margin-bottom: 1.1rem; }
.eyebrow--night { color: var(--aqua-pale); }
.lede { font-size: clamp(1.05rem, 1.22vw, 1.2rem); line-height: 1.68; max-width: 36em; color: var(--cream-soft); margin-top: 1.15rem; }
.day .lede { color: var(--ink-soft); }
.lede--strong { color: var(--cream); font-family: var(--serif); font-size: clamp(1.45rem, 2.1vw, 1.9rem); line-height: 1.3; }
.day .lede--strong { color: var(--ink); }
.fine { font-size: .86rem; color: var(--cream-soft); margin-top: 1rem; }
.fine--ink { color: var(--ink-soft); }
.num { font-family: var(--sans); font-weight: 200; font-size: clamp(3.4rem, 8.4vw, 6.6rem); line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: var(--cream); }
.num--lit { color: var(--aqua-pale); }
.num--ink { color: var(--ink); font-size: clamp(2.7rem, 5.2vw, 4.3rem); }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .95rem 1.55rem; border-radius: 999px; border: 0; font-family: var(--sans); font-weight: 600; font-size: .98rem; line-height: 1.1; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background-color .25s, box-shadow .25s; -webkit-tap-highlight-color: transparent; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--gold { background: var(--sun); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(201, 162, 39, .95), 0 14px 34px -16px rgba(242, 194, 75, .75); }
.btn--gold:hover { background: var(--sun-hi); transform: scale(1.04); box-shadow: inset 0 0 0 1px rgba(201, 162, 39, .95), 0 18px 40px -14px rgba(242, 194, 75, .95); }
.btn--aqua { background: var(--aqua-deep); color: #fff; }
.btn--aqua:hover { background: var(--aqua-deep-hi); transform: scale(1.04); }
.btn--line { background: rgba(255, 255, 255, .6); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(24, 48, 58, .45); }
.btn--line:hover { background: var(--paper); transform: scale(1.04); }
.btn--small { padding: .62rem 1.05rem; font-size: .86rem; }
.btn--big { padding: 1.15rem 1.9rem; font-size: 1.06rem; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }

/* ------------------------------------------------------------------ the line of light, and the bar */
.lightline { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 70; pointer-events: none; }
.lightline i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--aqua-deep), var(--aqua)); box-shadow: 0 0 12px rgba(31, 181, 191, .7); }

.bar { position: fixed; inset: 0 0 auto 0; height: var(--bar); z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 var(--gutter); color: var(--cream); background: linear-gradient(180deg, rgba(7, 26, 34, .78), rgba(7, 26, 34, 0)); transition: color .4s, background-color .4s; }
/* Once the page has moved, the bar gets a ground of its own, so no words slide under its words. */
.bar.is-scrolled { background: rgba(7, 26, 34, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(163, 232, 235, .1); }
.bar[data-ground="day"] { color: var(--ink); background: rgba(255, 250, 240, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(24, 48, 58, .16); }
.bar__name { display: flex; align-items: baseline; gap: .9rem; text-decoration: none; min-width: 0; }
.bar__who { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; white-space: nowrap; }
.bar__what { font-size: .66rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--aqua-pale); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar[data-ground="day"] .bar__what { color: var(--aqua-ink); }
.bar__tools { display: flex; align-items: center; gap: clamp(.5rem, 1.6vw, 1.25rem); flex: none; }

.switch { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .1rem; background: none; border: 0; cursor: pointer; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; -webkit-tap-highlight-color: transparent; }
.switch__track { position: relative; width: 34px; height: 18px; border-radius: 999px; background: rgba(255, 250, 240, .2); box-shadow: inset 0 0 0 1px rgba(255, 250, 240, .4); transition: background-color .25s; }
.switch__thumb { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: currentColor; transition: transform .25s var(--ease), background-color .25s; }
.switch[aria-checked="true"] .switch__track { background: var(--aqua-deep); box-shadow: inset 0 0 0 1px var(--aqua); }
.switch[aria-checked="true"] .switch__thumb { transform: translateX(16px); background: #fff; }
.bar[data-ground="day"] .switch__track { background: rgba(24, 48, 58, .1); box-shadow: inset 0 0 0 1px rgba(24, 48, 58, .45); }
.bar[data-ground="day"] .switch[aria-checked="true"] .switch__track { background: var(--aqua-deep); box-shadow: inset 0 0 0 1px var(--aqua-deep); }

/* ------------------------------------------------------------------ grounds */
.night { background: var(--night); color: var(--cream); }
.day { background: var(--morning-hi); color: var(--ink); }
section { position: relative; }
.adam, .film, .proof, .steps, .get, .yes, .wrong, .made { padding-block: clamp(4.5rem, 13vh, 9rem); }

/* ------------------------------------------------------------------ 1. the night opening */
.opening { background: var(--night); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; perspective: 1100px; perspective-origin: 50% 46%; }
.stage > * { position: absolute; inset: 0; }
.stage__sky { background: radial-gradient(60% 50% at 72% 30%, rgba(196, 224, 234, .12), rgba(196, 224, 234, 0) 70%), radial-gradient(120% 90% at 50% 110%, #0B232D, rgba(7, 26, 34, 0) 60%), var(--night); }
.stage__motes { width: 100%; height: 100%; opacity: .9; }
.stage__room { width: 100%; height: 100%; transform-origin: 50% 100%; overflow: visible; }
.stage__papers { transform-style: preserve-3d; }
.stage__light { pointer-events: none;
  background:
    radial-gradient(circle at var(--lx, 56%) var(--ly, 50%), rgba(242, 194, 75, .13) 0, rgba(242, 194, 75, .04) 16%, rgba(242, 194, 75, 0) 32%),
    radial-gradient(circle at var(--lx, 56%) var(--ly, 50%), rgba(7, 26, 34, 0) 14%, rgba(7, 26, 34, .46) 52%, rgba(7, 26, 34, .8) 100%); }
.stage__mail { inset: 15% 9% auto auto; width: clamp(40px, 5vw, 64px); color: var(--aqua-pale); opacity: 0; }
.stage__mail svg { width: 100%; height: auto; }
.stage__mail b { position: absolute; top: -34%; right: -30%; min-width: 1.9em; padding: .1em .3em; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: clamp(.68rem, 1vw, .85rem); font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }

.paper { position: absolute; left: 50%; top: 50%; width: var(--pw); height: calc(var(--pw) * 1.34); margin: calc(var(--pw) * -.67) 0 0 calc(var(--pw) * -.5); padding: calc(var(--pw) * .1); border-radius: 3px; background: linear-gradient(158deg, #FFFFFF, #E3EAED); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 22px 44px -20px rgba(0, 0, 0, .85); color: #5D727A; opacity: 0; will-change: transform, opacity; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: filter .7s; }
.stage { --pw: clamp(104px, 15.5vmin, 176px); }
/* Depth of field for the drifting sheets, on screens with the power for it: 28 blurred
   layers are too much for a mid range phone. */
@media (min-width: 700px) {
  .stage.is-swarm .paper[data-depth="far"] { filter: blur(2.5px); }
  .stage.is-swarm .paper[data-depth="near"] { filter: blur(1.2px); }
}
.paper b { display: block; font-size: calc(var(--pw) * .064); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 9%; }
.paper i { display: block; height: calc(var(--pw) * .024); margin-top: 7.5%; border-radius: 2px; background: #B8C5CA; }
.paper i:nth-of-type(1) { width: 78%; } .paper i:nth-of-type(2) { width: 62%; } .paper i:nth-of-type(3) { width: 84%; } .paper i:nth-of-type(4) { width: 48%; } .paper i:nth-of-type(5) { width: 70%; }
.paper em { position: absolute; right: 10%; bottom: 9%; font-style: normal; font-weight: 700; font-size: calc(var(--pw) * .076); letter-spacing: .02em; }
.paper--todo i { margin-left: 16%; position: relative; }
.paper--todo i::before { content: ""; position: absolute; left: -20%; top: -90%; width: calc(var(--pw) * .05); height: calc(var(--pw) * .05); border: 1px solid #5D727A; border-radius: 1px; }
.paper--roster u { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5%; text-decoration: none; margin-top: 4%; }
.paper--roster u s { display: block; aspect-ratio: 1.3; background: #D5DEE1; border-radius: 1px; }
.paper--roster u s:nth-child(3n) { background: #B8C5CA; }

.beats { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; pointer-events: none; }
.beats a { pointer-events: auto; }
.beat { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--bar) + 2rem) var(--gutter) 5rem; text-shadow: 0 2px 34px rgba(7, 26, 34, .95), 0 0 2px rgba(7, 26, 34, .6); }
.beat--1 .beat__copy { width: min(1160px, 100%); margin-inline: auto; }
.beat--2 { justify-items: center; text-align: center; }
/* A soft pool of dark behind the centred line, so drifting paper never fights the words. */
.beat--2 .display { padding: 2.2em 1.6em; background: radial-gradient(closest-side, rgba(7, 26, 34, .9) 0, rgba(7, 26, 34, .74) 45%, rgba(7, 26, 34, 0) 100%); }
.beat--3 { justify-items: center; text-align: center; align-items: start; padding-top: max(17vh, calc(var(--bar) + 3rem)); }
.clock { margin-top: 1.6rem; }
.clock span { display: inline-block; padding: .34rem .75rem; border-radius: 7px; background: rgba(7, 26, 34, .7); box-shadow: inset 0 0 0 1px rgba(163, 232, 235, .4); color: var(--moon); font-weight: 600; font-size: .95rem; letter-spacing: .05em; font-variant-numeric: tabular-nums; text-shadow: none; }
.scrollcue { position: absolute; left: 50%; bottom: 4.5vh; transform: translateX(-50%); display: grid; justify-items: center; gap: .5rem; color: var(--cream-soft); font-size: .66rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; text-shadow: none; }
.scrollcue svg { width: 22px; height: 22px; }
html[data-motion="full"] .scrollcue svg { animation: bob 2.2s var(--ease) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ------------------------------------------------------------------ 2. Adam */
.adam { background: linear-gradient(180deg, var(--night), var(--char) 60%, var(--night)); }
.adam__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.adam__photo { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(163, 232, 235, .16), 0 60px 110px -50px #000; }
.adam__photo img { width: 100%; height: auto; filter: saturate(.86) contrast(1.03) brightness(.9); }
.adam__photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 35%, rgba(7, 26, 34, 0) 45%, rgba(7, 26, 34, .62) 100%); }
/* No photograph (the default since 18 Nov 2026): the piano is the picture. The words keep the
   left column and the keys stand beside them, larger. */
.adam--nophoto .adam__grid { display: block; }
.adam--nophoto .adam__copy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.adam--nophoto .adam__copy > * { grid-column: 1; }
.adam--nophoto .keys { grid-column: 2; grid-row: 1 / span 6; align-self: center; margin-top: 0; display: grid; gap: 1.2rem; }
.adam--nophoto .keys__board { width: 100%; height: clamp(150px, 17vw, 210px); }
.keys { margin-top: 2.4rem; display: flex; align-items: flex-end; gap: 1.1rem; flex-wrap: wrap; }
.keys__board { position: relative; display: flex; width: min(100%, 392px); height: 118px; padding: 6px 6px 0; border-radius: 8px 8px 10px 10px; background: #18303A; box-shadow: inset 0 0 0 1px rgba(163, 232, 235, .2), 0 30px 50px -30px #000; touch-action: pan-y; }
.key { position: relative; flex: 1; margin: 0 1.5px; padding: 0; border: 0; border-radius: 0 0 5px 5px; background: linear-gradient(180deg, #EEF2F0, #FFFFFF 78%, #D3DDE1); cursor: pointer; transition: transform .08s, background-color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.key--black { position: absolute; top: 6px; z-index: 2; flex: none; width: 7.4%; height: 62%; margin: 0; border-radius: 0 0 4px 4px; background: linear-gradient(180deg, #18303A, #071A22); box-shadow: inset 0 -5px 0 rgba(255, 255, 255, .07), 0 4px 6px rgba(0, 0, 0, .5); }
.key.is-down { transform: translateY(2px); background: linear-gradient(180deg, #F2C24B, #F8D06A); box-shadow: 0 0 26px rgba(242, 194, 75, .6); }
.key--black.is-down { background: linear-gradient(180deg, #C9A227, #F2C24B); }
.keys__hint { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--cream-soft); padding-bottom: .3rem; }

/* ------------------------------------------------------------------ 3. the film */
.film { background: var(--night); text-align: center; }
.film .display { margin-inline: auto; }
.player { position: relative; margin-top: clamp(2rem, 5vw, 3.5rem); aspect-ratio: 1600 / 900; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(163, 232, 235, .22), 0 70px 120px -50px #000, 0 0 140px -30px rgba(31, 181, 191, .25); }
.player video { width: 100%; height: 100%; object-fit: cover; }
.player__play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem; border: 0; padding: 0; cursor: pointer; color: var(--cream); background: radial-gradient(circle at 50% 50%, rgba(7, 26, 34, .2), rgba(7, 26, 34, .58)); -webkit-tap-highlight-color: transparent; }
.player__disc { display: grid; place-items: center; width: clamp(64px, 8vw, 96px); aspect-ratio: 1; border-radius: 50%; background: var(--sun); color: var(--ink); box-shadow: 0 0 0 10px rgba(242, 194, 75, .16), 0 20px 50px -10px rgba(242, 194, 75, .6); transition: transform .3s var(--ease), background-color .3s; }
.player__disc svg { width: 42%; height: 42%; margin-left: 6%; }
.player__play:hover .player__disc { transform: scale(1.1); background: var(--sun-hi); }
.player__word { font-size: .74rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; text-shadow: 0 1px 12px #000; }
.player.is-playing .player__play { display: none; }
/* The button fills a frame that clips: a ring outside it would be cut away, so it sits inside. */
.player__play:focus-visible { outline-offset: -8px; border-radius: 12px; }

/* ------------------------------------------------------------------ 4. what changed */
.proof { background: linear-gradient(180deg, var(--night), var(--char) 50%, var(--night)); }
.run { margin-top: clamp(2rem, 5vw, 3.2rem); padding: clamp(1.1rem, 3vw, 2rem); border-radius: 18px; background: linear-gradient(180deg, #18303A, #0B232D); box-shadow: inset 0 0 0 1px rgba(163, 232, 235, .16), 0 50px 90px -60px #000; }
.run__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.run__stages { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.run__stages li { position: relative; padding-left: 1.05rem; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #8CA4AB; transition: color .3s; }
.run__stages li::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: currentColor; }
.run__stages li.is-on { color: var(--cream); }
.run__stages li.is-done { color: var(--aqua-pale); }
html[data-motion="full"] .run__stages li.is-on::before { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 250, 240, .22); } }
.run__desk { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.5rem, 1.4vw, 1rem); margin-block: clamp(1.1rem, 2.6vw, 1.8rem); }
.inv { position: relative; aspect-ratio: 3 / 3.9; padding: 9% 9% 8%; border-radius: 4px; background: linear-gradient(158deg, #FFFFFF, #E3EAED); color: #46616C; box-shadow: 0 16px 30px -18px #000; font-size: clamp(.5rem, .95vw, .72rem); line-height: 1.25; overflow: hidden; transition: transform .6s var(--ease), opacity .6s, box-shadow .3s; }
.inv b { display: block; font-size: .78em; letter-spacing: .18em; text-transform: uppercase; color: #5D727A; }
.inv strong { display: block; margin-top: .35em; font-family: var(--serif); font-size: 1.45em; font-weight: 600; line-height: 1.1; color: var(--ink); }
.inv i { display: block; height: 2px; margin-top: 9%; border-radius: 2px; background: #B8C5CA; }
.inv i + i { width: 70%; }
.inv__count, .inv__amt { position: absolute; left: 9%; right: 9%; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s var(--ease); }
.inv__count { bottom: 31%; font-weight: 500; }
.inv__amt { bottom: 9%; font-weight: 700; font-size: 1.3em; color: var(--ink); font-variant-numeric: tabular-nums; }
.inv.has-count .inv__count, .inv.has-price .inv__amt { opacity: 1; transform: none; }
.inv__tick { position: absolute; top: 7%; right: 8%; width: 1.7em; height: 1.7em; padding: .28em; border-radius: 50%; background: var(--aqua-deep); color: #fff; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s var(--ease); }
.inv.is-checked .inv__tick { opacity: 1; transform: none; }
.inv__pdf { position: absolute; right: 0; bottom: 31%; padding: .15em .5em .15em .6em; border-radius: 3px 0 0 3px; background: var(--ink); color: var(--cream); font-size: .74em; font-weight: 700; letter-spacing: .14em; opacity: 0; transform: translateX(100%); transition: opacity .3s, transform .4s var(--ease); }
.inv.is-pdf .inv__pdf { opacity: 1; transform: none; }
.inv.is-waiting { box-shadow: 0 0 0 2px var(--sun), 0 16px 30px -18px #000; }
.inv.is-sent { opacity: 0; transform: translateY(-46px) scale(.9) rotate(-3deg); }
/* Gone: the paper has left, and its place on the desk says so. */
.inv.is-gone { opacity: 1; transform: none; background: none; box-shadow: inset 0 0 0 1px rgba(163, 232, 235, .24); transition: opacity .6s; }
.inv.is-gone > * { visibility: hidden; }
.inv__sent { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: .5em; color: var(--cream-soft); font-size: .86em; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.inv__sent svg { width: 1.6em; height: 1.6em; color: var(--aqua-pale); }
.inv.is-gone > .inv__sent { display: grid; visibility: visible; }
.run__status { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.3; min-height: 2.6em; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 7vw, 6rem); margin-top: clamp(3.5rem, 9vw, 6.5rem); }
.stat__figure { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.6rem); }
.stat__curve { flex: 1; min-width: 0; height: clamp(60px, 8vw, 96px); overflow: visible; }
html[data-motion="full"] .stat__curve path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) .25s; }
html[data-motion="full"] .stat.is-in .stat__curve path { stroke-dashoffset: 0; }
.hours { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(15, 1fr); gap: 4px; align-items: end; height: clamp(60px, 8vw, 96px); }
.hours i { display: block; height: 100%; border-radius: 2px; background: var(--cream-soft); opacity: .5; transform-origin: 50% 100%; }
.hours i.is-new { background: var(--aqua-pale); opacity: 1; }
html[data-motion="full"] .hours i { transform: scaleY(.06); transition: transform .7s var(--ease); transition-delay: calc(var(--i) * 60ms + .25s); }
html[data-motion="full"] .stat.is-in .hours i { transform: none; }
.stat__labels { display: flex; justify-content: space-between; margin-top: .9rem; font-size: .7rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--cream-soft); }
.stat__labels span:last-child { color: var(--aqua-pale); }
.stat__words { margin-top: 1.3rem; font-family: var(--serif); font-size: clamp(1.3rem, 1.9vw, 1.65rem); line-height: 1.3; max-width: 22em; }

.built { margin-top: clamp(3.5rem, 9vw, 6.5rem); }
.built__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.built__list li { padding-top: 1.3rem; border-top: 1px solid rgba(163, 232, 235, .26); }
.built__list h3 { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; line-height: 1.15; }
.built__list p { margin-top: .5rem; color: var(--cream-soft); font-size: 1rem; }
.built__list a { display: inline-flex; align-items: center; gap: .35rem; margin-top: .8rem; color: var(--aqua-pale); font-weight: 600; font-size: .93rem; text-decoration: none; border-bottom: 1px solid rgba(163, 232, 235, .45); transition: color .2s, border-color .2s; }
.built__list a:hover { color: #FFFFFF; border-color: #FFFFFF; }
.built__list a svg { width: 1em; height: 1em; }

/* ------------------------------------------------------------------ 5. dawn */
.dawn { min-height: 128vh; min-height: 128svh; overflow: hidden; display: grid; align-items: start; justify-items: center; text-align: center; padding: 15vh var(--gutter) 0; color: var(--cream);
  background: linear-gradient(180deg, #071A22 0%, #0B232D 26%, #134251 43%, #1D5868 54%, #5C9BA4 64%, #A9D3D6 73%, #DCEDEC 84%, #FFFAF0 100%); }
.dawn__sky { position: absolute; inset: 0; pointer-events: none; }
.dawn__sky svg { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 30vh; }
.dawn__sky svg path:first-child { fill: #E6EFEA; }
.dawn__sky svg path:last-child { fill: var(--morning-hi); }
.dawn__sun { position: absolute; left: 50%; bottom: 16vh; width: 34vmin; aspect-ratio: 1; margin-left: -17vmin; border-radius: 50%; background: radial-gradient(circle, #FFFBEF 0, #FFE9B4 26%, rgba(255, 221, 150, .5) 46%, rgba(255, 221, 150, 0) 70%); transform: translateY(var(--sunrise, 0)); }
.dawn__line { position: relative; z-index: 2; text-shadow: 0 2px 40px rgba(7, 26, 34, .6); }

/* ------------------------------------------------------------------ 6. the five steps */
.steps { padding-top: clamp(3rem, 8vh, 6rem); }
.steps__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 6.5rem); align-items: start; margin-top: clamp(2rem, 5vw, 3.5rem); }
.steps__screen { position: sticky; top: calc(var(--bar) + 7vh); }
.screen { position: relative; isolation: isolate; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #0B232D; box-shadow: 0 0 0 1px rgba(24, 48, 58, .28), 0 50px 90px -50px rgba(19, 66, 81, .7), 0 0 0 10px rgba(255, 255, 255, .55); }
.screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.screen video.is-on { opacity: 1; }
/* While the step drawings are cut from the film's FIRST cut, which was gold on brown, this
   lays the new palette over them: the picture keeps its light and dark and takes
   aquamarine's colour, so every drawn line reads as AI's light. build.mjs adds the class
   only for that cut, so clips from a later cut are shown as they are. */
.screen--tint::after { content: ""; position: absolute; inset: 0; z-index: 2; background: #1A8E9B; mix-blend-mode: color; pointer-events: none; }
.rail { display: flex; gap: 7px; margin-top: 1.6rem; }
.rail i { flex: 1; height: 2px; border-radius: 2px; background: rgba(24, 48, 58, .16); transition: background-color .4s; }
.rail i.is-done { background: var(--ink-soft); }
.rail i.is-on { background: var(--aqua-deep); box-shadow: 0 0 10px rgba(10, 118, 130, .5); }
.step { min-height: 46vh; padding-block: 1.5rem; opacity: .34; transition: opacity .5s; }
.step:last-child { min-height: 38vh; }
.step.is-on { opacity: 1; }
html[data-motion="still"] .step { opacity: 1; }
.step__num { display: block; font-weight: 200; font-size: clamp(3.4rem, 6.4vw, 5.4rem); line-height: 1; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.step__name { margin-top: .9rem; font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--aqua-ink); }
.step p { margin-top: .7rem; font-family: var(--serif); font-size: clamp(1.45rem, 2.3vw, 2rem); line-height: 1.26; max-width: 19em; }
.step p.step__after { margin-top: 1.3rem; padding-left: 1rem; border-left: 2px solid var(--aqua-deep); font-family: var(--sans); font-size: .98rem; line-height: 1.6; color: var(--ink-soft); max-width: 30em; }

/* ------------------------------------------------------------------ 7. what you get */
.sheets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.8rem); margin-top: clamp(2rem, 5vw, 3.5rem); perspective: 1200px; }
.sheet { position: relative; padding: 1.5rem 1.6rem 1.9rem; border-radius: 6px; background: var(--paper); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(24, 48, 58, .13), 0 26px 46px -32px rgba(19, 66, 81, .6); transform: rotate(var(--tilt, 0deg)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0)); transition: transform .35s var(--ease), box-shadow .35s; }
.sheet:nth-child(odd) { --tilt: -.5deg; } .sheet:nth-child(even) { --tilt: .45deg; } .sheet:nth-child(3n) { --tilt: .7deg; }
.sheet:hover { --lift: -6px; box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(24, 48, 58, .2), 0 40px 60px -34px rgba(19, 66, 81, .75); }
.sheet__n { display: block; font-weight: 200; font-size: 2.7rem; line-height: 1; color: var(--aqua-ink); font-variant-numeric: tabular-nums; }
.sheet h3 { margin-top: .9rem; font-family: var(--serif); font-weight: 600; font-size: 1.55rem; line-height: 1.15; }
.sheet p { margin-top: .55rem; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }

/* ------------------------------------------------------------------ 8. the yes, and the doors */
.yes__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.doors__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.45rem, 1.3vw, 1rem); }
.door { position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer; text-align: center; -webkit-tap-highlight-color: transparent; }
/* The depth belongs on the frame: on the row it never reached the leaf, because the button between them is flat. */
.door__frame { position: relative; display: block; aspect-ratio: 1 / 2.25; border: 2px solid var(--ink); border-bottom-width: 0; background: linear-gradient(180deg, #FFF3C9, var(--sun) 70%, #F8D06A); perspective: 700px; }
.door__leaf { position: absolute; inset: 0; display: block; background: var(--morning-hi); box-shadow: inset 0 0 0 1px var(--ink); transform-origin: 0 50%; transition: transform .8s var(--ease), background-color .3s; }
html[data-motion="still"] .door__leaf { transition-duration: .01s; }
.door__leaf::before, .door__leaf::after { content: ""; position: absolute; left: 16%; right: 16%; border: 1.5px solid rgba(24, 48, 58, .6); }
.door__leaf::before { top: 7%; height: 36%; } .door__leaf::after { top: 50%; height: 42%; }
.door__knob { position: absolute; right: 9%; top: 47%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); }
.door:hover .door__leaf { background: var(--paper); }
.door[aria-pressed="true"] .door__leaf { transform: rotateY(-76deg); }
.door__floor { display: block; height: 1.6rem; margin-inline: -8%; border-top: 2px solid var(--ink); background: linear-gradient(180deg, rgba(242, 194, 75, .85), rgba(242, 194, 75, 0)); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); opacity: 0; transition: opacity .6s; }
.door[aria-pressed="true"] .door__floor { opacity: 1; }
.door__name { display: block; margin-top: .35rem; font-size: clamp(.58rem, .9vw, .72rem); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.door__icon { display: block; width: 1.25rem; height: 1.25rem; margin: .35rem auto 0; color: var(--ink-soft); }
.door[aria-pressed="true"] .door__icon { color: var(--aqua-deep); }
.doors__status { margin-top: 1.4rem; font-family: var(--serif); font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.3; min-height: 2.6em; }

/* ------------------------------------------------------------------ 9. what went wrong */
.wrong__wrap { max-width: 880px; }
.wrong__list { margin-top: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 2.2rem; }
.wrong__list li { padding-left: 1.5rem; border-left: 2px solid rgba(24, 48, 58, .22); }
.wrong__what { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.25; }
.wrong__now { margin-top: .5rem; color: var(--ink-soft); }
.wrong .lede--strong { margin-top: 2.6rem; max-width: 30em; }

/* ------------------------------------------------------------------ 10. how this page was made */
.made { padding-top: 0; }
.made__panel { position: relative; overflow: hidden; padding: clamp(2rem, 6vw, 5rem); border-radius: 28px; color: var(--ink);
  background: radial-gradient(70% 90% at 100% 0, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 60%), linear-gradient(135deg, #FCF3D0, #F7E3A3); box-shadow: 0 0 0 1px rgba(201, 162, 39, .35), 0 50px 90px -60px rgba(19, 66, 81, .5); }
.made__panel .lede { color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.5rem); margin-top: clamp(2rem, 5vw, 3.2rem); }
.facts div { padding-top: 1.1rem; border-top: 1px solid rgba(24, 48, 58, .3); }
.facts dd { margin-top: .6rem; font-size: .96rem; line-height: 1.45; color: var(--ink); }
.made__panel .fine { margin-top: 2rem; max-width: 46em; color: var(--ink); }

/* ------------------------------------------------------------------ 11. the question, the planner, the coffee */
.ask { overflow: hidden; padding-block: clamp(4.5rem, 12vh, 8rem) clamp(4rem, 10vh, 7rem); background: linear-gradient(180deg, var(--morning-hi) 0, #FDF4E3 55%, var(--morning) 100%); }
/* Morning light through the same window the night scene opened on, with the lamp's shadow.
   A fixed size box in the top corner: the section is tall, and a picture stretched over
   all of it turned the window into a wash and the shadow into a streak. */
.ask__light { position: absolute; top: 0; right: 0; width: min(78vw, 1000px); aspect-ratio: 3 / 2; pointer-events: none; }
.ask__light svg { width: 100%; height: 100%; overflow: visible; }
.ask .wrap { position: relative; }
.ask__q { text-align: center; }
.ask__lede { margin-inline: auto; text-align: center; }
.planner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.8rem, 5vw, 4.5rem); align-items: start; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.planner__h { display: flex; align-items: center; gap: .7rem; margin: 2.2rem 0 1rem; font-family: var(--sans); font-size: .98rem; font-weight: 600; }
.planner__h:first-child { margin-top: 0; }
.planner__n { display: grid; place-items: center; flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--aqua-ink); color: var(--aqua-ink); font-size: .82rem; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip { padding: .62rem 1.05rem; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(24, 48, 58, .4); font-size: .93rem; font-weight: 500; color: var(--ink); cursor: pointer; transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.chip:hover { background: var(--paper); transform: scale(1.05); }
.chip[aria-pressed="true"] { background: var(--aqua-deep); color: #fff; box-shadow: inset 0 0 0 1px var(--aqua-deep), 0 10px 20px -12px rgba(10, 118, 130, .9); }
.chip[disabled] { opacity: .5; cursor: default; transform: none; }
.other { display: flex; align-items: center; gap: .8rem; margin-top: .9rem; font-size: .93rem; font-weight: 500; }
.other[hidden] { display: none; }
.other input { flex: 1; min-width: 0; padding: .7rem .9rem; border: 0; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1px rgba(24, 48, 58, .4); font: inherit; color: var(--ink); }
.other input::placeholder { color: #5D727A; }
.sliders { display: grid; gap: 1rem; }
.sliders__empty { color: var(--ink-soft); font-size: .95rem; }
.slider { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 5.2rem; align-items: center; gap: 1rem; }
.slider label { font-size: .95rem; font-weight: 500; }
.slider output { font-weight: 300; font-size: 1.25rem; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.slider input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: none; cursor: pointer; accent-color: var(--aqua-deep); }
.slider input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--aqua-deep) var(--fill, 20%), rgba(24, 48, 58, .22) var(--fill, 20%)); }
.slider input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(24, 48, 58, .22); }
.slider input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--aqua-deep); }
.slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border: 3px solid #fff; border-radius: 50%; background: var(--aqua-deep); box-shadow: 0 4px 12px rgba(10, 80, 90, .45); transition: transform .15s; }
.slider input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 3px solid #fff; border-radius: 50%; background: var(--aqua-deep); box-shadow: 0 4px 12px rgba(10, 80, 90, .45); }
.slider input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.15); }
.share { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(24, 48, 58, .4); }
.share button { padding: .55rem 1.1rem; border: 0; border-radius: 999px; background: none; font-size: .92rem; font-weight: 500; color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s; -webkit-tap-highlight-color: transparent; }
.share button[aria-checked="true"] { background: var(--aqua-deep); color: #fff; }

.planner__paper { position: sticky; top: calc(var(--bar) + 4vh); }
.plan { position: relative; padding: clamp(1.4rem, 3vw, 2.1rem) clamp(1.3rem, 3vw, 2.1rem) 1.3rem; border-radius: 4px; background: var(--paper); color: var(--ink); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(24, 48, 58, .14), 0 40px 70px -40px rgba(19, 66, 81, .7); }
.plan::before, .plan::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 4px; background: #F1F4F3; box-shadow: 0 0 0 1px rgba(24, 48, 58, .12); }
.plan::before { transform: rotate(-1.6deg) translate(-4px, 5px); } .plan::after { transform: rotate(1.2deg) translate(5px, 8px); }
.planner__paper { isolation: isolate; }
.plan__head { display: flex; align-items: center; justify-content: space-between; }
.plan__kind { font-size: .7rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--aqua-ink); }
.plan__stamp { padding: .2rem .55rem; border: 1.5px solid var(--aqua-deep); border-radius: 4px; color: var(--aqua-deep); font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; transform: rotate(-4deg); }
.plan__title { margin-top: 1rem; font-family: var(--serif); font-weight: 600; font-size: 1.7rem; line-height: 1.15; }
.plan__jobs { margin-top: .6rem; counter-reset: job; }
.plan__jobs li { counter-increment: job; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed rgba(24, 48, 58, .3); font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.plan__jobs li::before { content: counter(job) "."; flex: none; width: 1.4rem; color: var(--aqua-ink); font-weight: 600; }
.plan__jobs li span:first-of-type { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.plan__jobs li span:last-of-type { flex: none; font-family: var(--sans); font-size: .88rem; font-weight: 500; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.plan__jobs li.plan__blank { color: #5D727A; font-style: italic; font-weight: 400; }
html[data-motion="full"] .plan__jobs li.is-new { animation: writein .6s var(--ease); }
@keyframes writein { from { opacity: 0; transform: translateX(-10px); } }
.plan__sums { margin-top: 1.1rem; display: grid; gap: .45rem; }
.plan__sums div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.plan__sums dt { font-size: .9rem; color: var(--ink-soft); }
.plan__sums dd { font-weight: 300; font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan__back { margin-top: .5rem; padding-top: .8rem; border-top: 1px solid rgba(24, 48, 58, .3); }
.plan__sums .plan__back dt { color: var(--ink); font-weight: 600; }
.plan__sums .plan__back dd { font-size: clamp(2.4rem, 4vw, 3.1rem); font-weight: 200; letter-spacing: -.03em; color: var(--aqua-deep); }
/* Until the visitor has made a guess there is no number here at all: the page never guesses for them. */
.plan__sums .plan__back dd.is-ask { font-size: .95rem; font-weight: 500; letter-spacing: 0; color: var(--ink-soft); }
.plan__note { margin-top: .9rem; font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1.35; color: var(--ink-soft); }
.plan__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; padding-top: .75rem; border-top: 1px solid var(--ink); font-size: .8rem; color: var(--ink-soft); }
.plan__sign { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ink); white-space: nowrap; }
.planner__send { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }

.coffee { margin-top: clamp(5rem, 15vh, 9.5rem); text-align: center; display: grid; justify-items: center; }
.coffee__cup { width: 58px; height: 58px; color: var(--gold); }
.coffee__name { margin-top: .6rem; font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 4vw, 3.1rem); line-height: 1.1; }
.coffee__what { margin: .7rem 0 0; }
.coffee__rule { width: 64px; height: 1px; margin: 1.5rem 0; background: var(--gold); }
.coffee__lede { text-align: center; margin-top: .9rem; }
.coffee__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 2.2rem; }

/* The coffee button that follows a phone down the page, once the opening is behind it. */
.fab { display: none; position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 55; white-space: nowrap; transform: translate(-50%, 160%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; }
/* Hidden, not only moved away: off the screen it could still be reached with Tab or a screen reader. */
.fab.is-up { transform: translate(-50%, 0); visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
.fab:focus-visible { outline-color: var(--ink); }
html[data-motion="still"] .fab, html[data-motion="still"] .fab.is-up { transition: none; }
.fab:hover { transform: translate(-50%, 0) scale(1.04); }

.foot { padding: 2.4rem 0 3rem; background: var(--morning); font-size: .88rem; color: var(--ink-soft); text-align: center; box-shadow: inset 0 1px 0 rgba(24, 48, 58, .2); }
.foot p + p { margin-top: .3rem; }

/* ------------------------------------------------------------------ arriving (motion on only) */
html[data-motion="full"] [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
html[data-motion="full"] [data-reveal].is-in { opacity: 1; transform: none; }
html[data-motion="full"] .sheet[data-reveal].is-in { transform: rotate(var(--tilt, 0deg)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0)); transition: opacity 1s var(--ease), transform .35s var(--ease), box-shadow .35s; }

/* ------------------------------------------------------------------ smaller screens */
@media (max-width: 900px) {
  .adam__grid, .yes__grid, .planner { grid-template-columns: minmax(0, 1fr); }
  .adam--nophoto .adam__copy { display: block; }
  .adam--nophoto .keys { margin-top: 2.4rem; }
  .adam--nophoto .keys__board { width: min(100%, 460px); height: 150px; }
  .adam__photo { max-width: 420px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .built__list { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .sheets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planner__paper { position: static; }
  .run__desk { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps__screen { top: var(--bar); z-index: 3; margin-inline: calc(var(--gutter) * -1); padding: .9rem var(--gutter) 1.9rem; background: linear-gradient(180deg, var(--morning-hi) calc(100% - 1.3rem), rgba(255, 250, 240, 0)); }
  .screen { width: min(100%, 44vh); margin-inline: auto; box-shadow: 0 0 0 1px rgba(24, 48, 58, .28), 0 30px 50px -36px rgba(19, 66, 81, .7); }
  .rail { width: min(100%, 44vh); margin: .8rem auto 0; }
  .step { min-height: 44vh; }
}
@media (max-width: 640px) {
  :root { --bar: 56px; }
  body { font-size: 1rem; }
  .bar__what { display: none; }
  .bar__who { font-size: 1.2rem; }
  .switch { font-size: .62rem; letter-spacing: .12em; gap: .4rem; padding: .6rem 0; }
  .bar__cta { display: none; }
  .fab { display: inline-flex; }
  .player { margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
  /* A phone's bar is solid: a blur laid over 28 moving sheets is work it cannot spare. */
  .bar.is-scrolled { background: var(--night); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .bar[data-ground="day"] { background: var(--morning-hi); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .run__desk { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inv { font-size: .58rem; }
  .sheets, .facts { grid-template-columns: minmax(0, 1fr); }
  .facts { gap: 1rem; }
  .slider { grid-template-columns: minmax(0, 1fr) 4.6rem; }
  .slider label { grid-column: 1 / -1; margin-bottom: -.5rem; }
  .stage { --pw: clamp(84px, 23vw, 118px); }
  .stage__room { transform: scale(.7); transform-origin: 100% 100%; }
  .beat--2 br, .beat--3 br { display: none; }
  .beat--2 .display { padding: 2.6em .6em; }
  .beat--1 { align-items: start; padding-top: max(13vh, calc(var(--bar) + 2rem)); }
  .dawn { min-height: 112vh; min-height: 112svh; }
  .coffee__btns .btn { width: 100%; }
  .planner__send .btn { flex: 1 1 auto; }
}

@media print {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .bar, .lightline, .stage, .scrollcue, .fab { display: none; }
  .beats { margin-top: 0; }
  .beat { min-height: 0; padding-block: 2rem; }
}
