/* The Sentence V4 · Option 02 · The Cinematic Sentence.
   One deck of full screen shots inside a single scroller ([data-scroller]). Every shot is exactly one screen
   (100svh). A scene is a sticky stage plus one snap slot per shot: inside a scene the camera holds and the
   frame changes (cuts, the dive through the letters, subtitles); between scenes the next stage slides up over
   the last. Phone first: mandatory snapping, one shot per flick. Desktop: proximity snapping. */

:root {
  color-scheme: dark;
  --shot: 100svh;
  --pad: var(--margin);
  --mast: calc(var(--mast-h) + var(--safe-top));
  --foot: calc(18px + var(--safe-bottom));
  --dim: #8F887F;                 /* an unlit phrase: 5.6:1 on night, 3.4:1 on the darkest the grade allows */
  --scrim: rgba(14, 13, 12, .9);
  --t-sub: clamp(1.375rem, 1.1vw + 1.05rem, 2.125rem);        /* a subtitle: 22px on a phone */
  --t-credit: clamp(1.75rem, 2vw + 1.2rem, 3.25rem);          /* a name in the credits */
  --t-card: clamp(2.5rem, 7vw + 1rem, 7.5rem);                /* a title card line */
}

html, body { height: 100%; background: var(--night); color: var(--chalk); }
html { overflow: hidden; }
body { overflow: hidden; overscroll-behavior: none; }
::selection { background: var(--chalk); color: var(--night); }
:focus-visible { outline-color: var(--stop-dark); }

/* ---------- the deck ---------- */
.deck {
  position: relative; height: 100svh; overflow-x: hidden; overflow-y: auto;
  scroll-snap-type: y mandatory; overscroll-behavior-y: contain; outline: none;
  scrollbar-width: none;
}
.deck::-webkit-scrollbar { display: none; }
.deck:focus-visible { outline: none; }
/* desktop snaps every screen too (it was proximity, which let a wheel or a trackpad rest between screens or sail past
   one; Adam, 3 and 4 Nov 2026). film.js moves one screen a wheel or trackpad gesture; this keeps the keys and the
   scrollbar on the screens as well. */
@media (min-width: 900px) and (pointer: fine) {
  .deck { scroll-snap-type: y mandatory; }
}
html.no-snap .deck { scroll-snap-type: none; }
/* a slow step on desktop: film.js scrolls the page itself, so the snapping waits until it lands */
html.stepping .deck { scroll-snap-type: none; }
/* gliding outside Safari's engine: no snapping at all (film.js) */
html.glide-free .deck { scroll-snap-type: none; }

.scene { position: relative; }
.scene[data-tail] + .scene { margin-top: calc(-1 * var(--shot)); }
.stage {
  position: sticky; top: 0; height: var(--shot); margin-bottom: calc(-1 * var(--shot));
  overflow: clip; isolation: isolate; background: var(--night);
}
/* until film.js has laid the film out (html.film-ready), only the opening shows: before the slots exist every stage
   sits at the top of the deck, and the last one (the end credits) would paint over the rest on a slow load */
html:not(.film-ready) .scene ~ .scene > .stage { visibility: hidden; opacity: 0; }
.slot { height: var(--shot); scroll-snap-align: start; scroll-snap-stop: always; pointer-events: none; }
.tail { height: var(--shot); pointer-events: none; }

/* layers fill the frame */
.layer { position: absolute; inset: 0; }
.fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media { background: var(--night); }
.media > img, .media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* scroll instead of video: a frame sequence on a canvas, or the whole mobile page as a strip that moves with the scroll */
.media > canvas.scrub { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.media > .strip { position: absolute; inset: 0; overflow: hidden; background: var(--night); }
.strip-in { width: 100%; will-change: transform; }
.strip-in img { display: block; width: 100%; height: auto; }
@media (min-aspect-ratio: 1/1) { .strip-in { width: min(430px, 34vw); margin: 0 auto; } }
.media[data-pos="top"] > img, .media[data-pos="top"] > video { object-position: 50% 0; }

/* a layer that belongs to a shot fades with the shot (--e in, --x out, both 0..1, written by film.js) */
[data-shot] { --e: 0; --x: 0; }
.fx { opacity: calc(var(--e) * (1 - var(--x))); }
.fx[data-hold] { opacity: var(--e); }
[data-shot].is-off { visibility: hidden; }
[data-fade="cut"] { opacity: calc(var(--e) * (1 - var(--x))); }

/* lines that rise from behind their own baseline */
.ln { display: block; overflow: clip; padding-block: .16em; margin-block: -.16em; }
.ln > span { display: block; transform: translateY(calc((1 - clamp(0, (var(--e) * (1 + var(--i, 0) * .09) - var(--i, 0) * .09) / .72, 1)) * 140% - var(--x) * 140%)); }
.ln.inl { display: inline-block; vertical-align: top; }

/* grades: a ground for type over footage */
.grade-b { background: linear-gradient(to top, rgba(14,13,12,.94) 0, rgba(14,13,12,.86) 22%, rgba(14,13,12,.45) 42%, rgba(14,13,12,0) 60%); }
.grade-all { background: linear-gradient(to bottom, rgba(14,13,12,.78) 0, rgba(14,13,12,.84) 34%, rgba(14,13,12,.95) 54%, rgba(14,13,12,.96) 100%); }
.grade-all.over-light { background: linear-gradient(to bottom, rgba(14,13,12,.84) 0, rgba(14,13,12,.9) 34%, rgba(14,13,12,.975) 54%, rgba(14,13,12,.98) 100%); }
.grade-deep { background: rgba(14, 13, 12, .9); }

/* ---------- type ---------- */
.lab { font-weight: 400; font-family: var(--font-mono); font-size: var(--t-label); line-height: 1.45; letter-spacing: var(--tr-label); text-transform: uppercase; }
.dim { color: var(--chalk-2); }
.sub {
  position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--foot) + 64px);
  font-family: var(--font-display); font-weight: 500; font-size: var(--t-sub); line-height: 1.2; letter-spacing: -.012em;
  text-align: center; text-wrap: balance; max-width: 22em; margin-inline: auto;
}
.sub .lab { display: block; color: var(--chalk-2); font-size: var(--t-label); letter-spacing: var(--tr-label); }
.sub .ln + .ln { margin-top: 10px; }
.card {
  position: absolute; inset: var(--mast) var(--pad) calc(var(--foot) + 56px); display: flex; flex-direction: column; justify-content: center;
  text-align: center; align-items: center;
}
.card-fig {
  font-family: var(--font-display); font-weight: 500; font-size: var(--t-figure); line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: lining-nums; text-wrap: balance;
}
.card-fig.words { font-size: var(--t-card); letter-spacing: -.03em; line-height: 1; }
.card-cap { margin-top: 22px; font-size: var(--t-small); line-height: 1.45; color: var(--chalk-2); max-width: 22em; text-wrap: balance; }
.card-cap.lab { font-size: var(--t-label); }
em, i { font-style: italic; }
h1, h2, h3 { font-weight: 500; }
.knock .vh, h2.vh { font-family: var(--font-display); }
.mark, .mast-btn, .credits dt, .lab, .mark b { font-weight: 400; }
b, strong { font-weight: 500; }
.nw { white-space: nowrap; }
.stopd { color: var(--stop-dark); }

/* the phrase as an end credit title */
.phrase { font-family: var(--font-display); font-weight: 500; letter-spacing: -.02em; line-height: 1.02; }

/* links and the one button */
.go {
  display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: 0 2px;
  font-family: var(--font-text); font-weight: 500; font-size: 1rem; color: var(--chalk);
  text-decoration: none; /* no underline (Adam): the arrow says it's a link, and it nudges on hover */
  transition: opacity var(--d-touch) var(--ease);
}
.go:active { opacity: .6; }
.go .ar { text-decoration: none; display: inline-block; transition: transform var(--d-1) var(--ease); }
@media (hover: hover) { .go:hover .ar { transform: translateX(4px); } }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: 0 28px;
  background: var(--chalk); color: var(--night); border-radius: 2px;
  font-family: var(--font-text); font-weight: 500; font-size: 1rem; text-decoration: none;
  transition: transform var(--d-touch) var(--ease), opacity var(--d-touch) var(--ease);
}
.btn:active { transform: translateY(1px); opacity: .85; }

/* ---------- masthead ---------- */
.mast {
  position: fixed; inset: 0 0 auto; z-index: var(--z-mast); height: var(--mast); padding: var(--safe-top) calc(var(--pad) - 10px) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none;
  transition: opacity var(--d-2) var(--ease);
}
.mast::before {
  content: ""; position: absolute; inset: 0 0 -64px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(14,13,12,.74), rgba(14,13,12,.5) 40%, rgba(14,13,12,.18) 72%, rgba(14,13,12,0));
}
.mast > * { pointer-events: auto; }
.mast-home {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  font-family: var(--font-display); font-weight: 500; font-size: 1.375rem; letter-spacing: -.02em; text-decoration: none; color: var(--chalk);
}
.mast-r { display: flex; align-items: center; gap: 2px; }
.mark { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--chalk-2); padding: 0 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mark b { font-weight: 400; color: var(--chalk); }
.mast-btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--chalk);
  transition: opacity var(--d-touch) var(--ease);
}
.mast-btn:active { opacity: .55; }
.pp { position: relative; width: 44px; padding: 0; }
.pp i { position: absolute; top: 50%; left: 50%; width: 11px; height: 12px; transform: translate(-50%, -50%); }
.pp i::before, .pp i::after { content: ""; position: absolute; top: 0; bottom: 0; width: 3px; background: currentColor; transition: all var(--d-1) var(--ease); }
.pp i::before { left: 1px; } .pp i::after { right: 1px; }
.pp[aria-pressed="false"] i::before { left: 1px; width: 0; height: 0; top: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; background: none; }
.pp[aria-pressed="false"] i::after { opacity: 0; }
html.cold .mast { opacity: 0; }
html.cold .mast:focus-within { opacity: 1; }
.mast.no-film .pp { visibility: hidden; }

/* ---------- the cut (a quick dip to night between distant shots) ---------- */
.dip { position: fixed; inset: 0; z-index: 70; background: var(--night); opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease-io); }
.dip.on { opacity: 1; }

/* ---------- the index: the sentence as end credits ---------- */
.index {
  position: fixed; inset: 0; z-index: var(--z-menu); background: var(--night); color: var(--chalk);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--mast) + 4px) var(--pad) calc(28px + var(--safe-bottom));
  visibility: hidden; opacity: 0; transition: opacity var(--d-2) var(--ease), visibility 0s linear var(--d-2);
}
.index.open { visibility: visible; opacity: 1; transition: opacity var(--d-2) var(--ease), visibility 0s; }
.index-bar { position: fixed; inset: 0 0 auto; height: var(--mast); padding: var(--safe-top) calc(var(--pad) - 10px) 0; display: flex; align-items: center; justify-content: space-between; background: var(--night); z-index: 2; }
/* the Index fits one screen: scenes.js sizes --ix (the phrase size) to the screen; every gap is a share of it */
.index-roll { --ix: 26px; margin: auto 0; display: grid; justify-items: center; text-align: center; gap: 0; padding-block: 4px 8px; }
.index .lab.top { color: var(--chalk-2); margin-bottom: calc(var(--ix) * .5); }
.index ol { display: grid; gap: calc(var(--ix) * .42); justify-items: center; }
.index li { display: grid; justify-items: center; }
.index li a { text-decoration: none; display: block; padding: 2px 4px; }
.index li a .phrase, .index li a .who { display: block; }
.index .lead a { text-decoration: none; }
.index .phrase { font-size: var(--ix); line-height: 1.04; text-wrap: balance; max-width: 15em; }
.index .who { margin-top: calc(var(--ix) * .16); color: var(--chalk-2); }
.index .lead { font-family: var(--font-display); font-size: var(--ix); letter-spacing: -.02em; margin-bottom: calc(var(--ix) * .3); }
.index-end { margin-top: calc(var(--ix) * .8); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: center; align-items: center; }
.index .mail { margin-top: 18px; }
.index-roll > * { transform: translateY(24px); opacity: 0; transition: transform 900ms var(--ease), opacity 600ms var(--ease); }
.index.open .index-roll > * { transform: none; opacity: 1; }
.index.open .index-roll > *:nth-child(2) { transition-delay: 60ms; }
.index.open .index-roll > *:nth-child(3) { transition-delay: 120ms; }
.index.open .index-roll > *:nth-child(4) { transition-delay: 180ms; }
/* the Index: no underline; each phrase takes its colour from the sentence on hover, keyboard focus and tap */
.index li:nth-child(1) { --hc: var(--ph-1); } .index li:nth-child(2) { --hc: var(--ph-2); } .index li:nth-child(3) { --hc: var(--ph-3); }
.index li:nth-child(4) { --hc: var(--ph-4); } .index li:nth-child(5) { --hc: var(--ph-5); }
.index .phrase { transition: color var(--d-2) var(--ease); }
@media (hover: hover) { .index li a:hover .phrase { color: var(--hc); } }
.index li a:focus-visible .phrase, .index li a:active .phrase { color: var(--hc); }

/* ---------- the knockout: the work through the letters ---------- */
.knock-cv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* a knockout title is night until its canvas first draws: when the engine came in after the fonts (a slow phone), the
   work under ClearMile's title showed bright, uncovered, for a frame before the title was drawn over it */
.layer.knock:not(.drawn) { background: var(--night); }
.knock-cv.done, .knock-cv.off { visibility: hidden; }

/* display type never sets tighter than line-height 1: below that, Tiempos descenders (the p in ships) meet the
   ascenders on the line below (the t in built) */
/* ---------- the phrase colours: one per project, shared by the hero sentence and the Index (all 6:1 or more on night) ---------- */
:root {
  --ph-1: var(--bt-pink);   /* Better Totes: the fluro pink print */
  --ph-2: var(--hu-lavender); /* Hushero: its lavender night */
  --ph-3: var(--md-amber);  /* Mandinga: the amber sun */
  --ph-4: var(--cm-cyan);   /* ClearMile: its cyan */
  --ph-5: var(--stop-dark); /* the close: Adam's green */
}

/* ---------- arrival ---------- */
.arrive { --band: var(--mast); }
.reel-win { position: absolute; left: 0; right: 0; top: var(--mast); height: calc(var(--band) - var(--mast)); background: #000; overflow: clip; }
/* the hero holds stills: each crossfades in, then drifts very slightly closer while it holds (transform only) */
.reel-win .still { position: absolute; inset: 0; opacity: 0; transition: opacity 700ms var(--ease-io); }
.reel-win .still.on { opacity: 1; }
.reel-win.night .still { opacity: 0; }
.reel-win .still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform 0s linear 800ms; }
.reel-win .still.on img { transform: scale(1); transition: transform 4800ms cubic-bezier(.25, .1, .25, 1); }
.arrive .band { position: absolute; left: 0; right: 0; top: var(--band); bottom: 0; background: var(--night); }
.sentence-box { position: absolute; left: var(--pad); right: var(--pad); top: calc(var(--band) + 20px); bottom: calc(var(--foot) + 58px); display: flex; align-items: flex-end; }
.sentence {
  font-family: var(--font-display); font-weight: 500; line-height: 1; letter-spacing: -.03em; color: var(--dim);
  width: 100%; font-size: 40px; text-wrap: pretty;
}
.sentence a { color: inherit; text-decoration: none; transition: color var(--d-2) var(--ease); }
.sentence a.lit, .sentence .lead { color: var(--chalk); }
.sentence .end { color: var(--chalk); }
.sentence:not([data-fitted]) { visibility: hidden; }
.cue { position: absolute; left: var(--pad); right: var(--pad); bottom: var(--foot); display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; color: var(--chalk-2); }
.cue .rule { flex: 1; height: 1px; background: var(--rule-dark); position: relative; overflow: hidden; }
.cue .rule i { position: absolute; inset: 0; background: var(--chalk-2); transform-origin: 0 50%; transform: scaleX(0); }
.cue .rule.run i { animation: hero-hold 4000ms linear forwards; }
@keyframes hero-hold { from { transform: scaleX(0); } to { transform: scaleX(1); } }
html.all-lit .sentence { color: var(--chalk); }
/* the hero sentence flows freely: no phrase is held together on one line */
.sentence .nw { white-space: normal; }
/* each phrase takes its project's own colour on hover, keyboard focus and tap (all at least 6:1 on night) */
.sentence a[data-ch="1"] { --hc: var(--ph-1); }
.sentence a[data-ch="2"] { --hc: var(--ph-2); }
.sentence a[data-ch="3"] { --hc: var(--ph-3); }
.sentence a[data-ch="4"] { --hc: var(--ph-4); }
.sentence a[data-ch="5"] { --hc: var(--ph-5); }
@media (hover: hover) { .sentence a:hover { color: var(--hc); } }
.sentence a:focus-visible, .sentence a:active { color: var(--hc); }

/* ---------- a homepage chapter ---------- */
.credit { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--foot) + 18px); top: var(--mast); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; }
.credit .phrase { font-size: clamp(1.875rem, 3vw + 1rem, 3.75rem); max-width: 11em; text-wrap: balance; }
.credit .who { margin-top: 26px; }
.credit .name { font-family: var(--font-display); font-weight: 500; font-size: var(--t-credit); letter-spacing: -.02em; line-height: 1.05; margin-top: 6px; }
.credit .role { margin-top: 10px; font-size: var(--t-small); color: var(--chalk-2); max-width: 24em; text-wrap: balance; }
.credit .fact { margin-top: 22px; font-family: var(--font-display); font-weight: 500; font-size: var(--t-lede); letter-spacing: -.01em; line-height: 1.2; text-wrap: balance; max-width: 16em; }
.credit .go { margin-top: 22px; }

/* the colour engine (Better Totes) */
.engine { --bg: #F6FBFC; --cv: #141920; background: var(--bg); transition: background-color 0s; overflow: clip; }
.engine .flood { position: absolute; inset: 0; background: var(--nbg, transparent); clip-path: circle(0 at var(--fx, 50%) var(--fy, 70%)); }
.engine .flood.go { clip-path: circle(150% at var(--fx, 50%) var(--fy, 70%)); transition: clip-path 900ms var(--ease-io); }
.engine .bag { position: absolute; left: 50%; top: 46%; width: min(86vw, 62svh); aspect-ratio: 1; transform: translate(-50%, -50%); }
.engine .bag img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity var(--d-2) var(--ease); }
.engine .tap { position: absolute; inset: 0; z-index: 2; cursor: pointer; }

/* video controls inside a shot (reduced motion and ended clips) */
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; display: none; }
html.reduced .play, .play.show { display: inline-flex; }

/* the masthead over light footage: ink, no grade */
html[data-tone="light"] .mast-home, html[data-tone="light"] .mast-btn { color: var(--ink); }
/* the wordmark's green full stop, as on adamships.com: Adam. (the darker green on light grounds) */
.mast-home .mast-stop { color: var(--stop-dark); }
html[data-tone="light"] .mast-home .mast-stop { color: var(--stop); }
html[data-tone="light"] .mark { color: var(--ink-2); }
html[data-tone="light"] .mark b { color: var(--ink); }
.mast::before { transition: opacity var(--d-2) var(--ease); }
html[data-tone="light"] .mast::before, html[data-tone="site"] .mast::before { opacity: 0; }
.mast-home, .mast-btn, .mark, .mark b { transition: color var(--d-2) var(--ease), opacity var(--d-touch) var(--ease); }

/* a real site or app capture sits under the masthead, at its real size */
.layer.site { top: var(--mast); }
.layer.site > img, .layer.site > video { object-position: 50% 0; }
/* dark footage is lifted while it is seen through the letters */
.lift > img, .lift > video, .lift > canvas { filter: brightness(calc(1 + var(--lift, .6) * (1 - clamp(0, (var(--s, 0) - var(--z0, 0)) / (var(--dz, .85) - var(--z0, 0)), 1)))); }
/* the Big Bondi waits for the dive: through the letters, only the flood colours */
.engine .bag { opacity: clamp(0, calc(var(--s, 0) * 1.6 - .5), 1); }

/* the colour engine's controls take the canvas colour's side: ink on light, chalk on dark */
.engine-ui { color: var(--ink); }
.scene[data-tone="dark"] .engine-ui { color: var(--chalk); }
.engine-ui .tap { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; cursor: pointer; }
.engine-ui .sub, .engine-ui .hint { pointer-events: none; z-index: 1; }
.engine-ui .lab { color: inherit; }
.engine-ui .hint { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--foot) + 14px); text-align: center; }

/* the orb on the real screen */
.app { background: #241531; }
.app .screen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--d-2) var(--ease); }
.app .screen.after { opacity: 0; }
.app.in-bed .screen.after { opacity: 1; }
.orb-hit { position: absolute; z-index: 2; border-radius: 50%; }
.orb-hit:active { background: rgba(255, 255, 255, .06); }
.orb-ui .tag { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--foot) + 10px); text-align: center; color: var(--chalk); }

/* a slow push on a still, while its shot is on */
.lamp img { object-position: 38% 50%; transform-origin: 55% 11%;
  --k: calc(1 - clamp(0, (var(--s, 0) - var(--z0, 0)) / (var(--dz, .92) - var(--z0, 0)), 1));
  transform: translate(calc(-5% * var(--k)), calc(36% * var(--k))) scale(calc(1 + 2.2 * var(--k))); }
.push { transform: scale(1); }
.scene.is-on .push { animation: push 14s var(--ease) both; }
@keyframes push { from { transform: scale(1); } to { transform: scale(1.09); } }
.record { background: #F6F8FA; }
.record img { object-fit: cover; object-position: 50% 0; }
.portrait { object-position: 50% 0; }
@media (min-aspect-ratio: 1/1) { .portrait { object-position: 50% 100%; } }
/* a short phone (iPhone SE) gives the studio's words more of the screen: the face rises with them, clear of the title */
@media (max-aspect-ratio: 1/1) and (max-height: 720px) { .portrait { transform: translateY(-8%); } }
.media > img.harbour { object-position: 50% 62%; }

/* the dates */
.dates { position: absolute; left: var(--pad); right: var(--pad); top: var(--mast); bottom: calc(var(--foot) + 16px); display: flex; flex-direction: column; justify-content: center; }
.dates ol { display: grid; gap: 22px; margin-top: 20px; }
.dates .d { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.625rem, 2.2vw + 1rem, 3.25rem); letter-spacing: -.02em; line-height: 1.04; }
.dates li .lab { display: block; margin-top: 8px; color: var(--chalk); }
.dates .n { display: block; margin-top: 2px; font-size: var(--t-small); color: var(--chalk-2); }

/* end titles */
.titles { position: absolute; left: var(--pad); right: var(--pad); top: var(--mast); bottom: calc(var(--foot) + 22px); display: flex; flex-direction: column; justify-content: flex-end; }
.titles .line { margin-top: 12px; max-width: 13em; font-family: var(--font-display); font-weight: 500; font-size: var(--t-headline); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
.titles .body { margin-top: 16px; max-width: 30em; font-size: var(--t-body); line-height: 1.5; }
.offers { justify-content: center; }
.offer { margin-top: 28px; max-width: 26em; color: var(--chalk-2); }
.offer b { display: block; margin: 8px 0 6px; font-family: var(--font-display); font-weight: 500; font-size: var(--t-headline); line-height: 1.04; letter-spacing: -.02em; color: var(--chalk); }
.offer .lab { color: var(--chalk-2); }
.offers .go { margin-top: 22px; }
.hello { justify-content: center; }
.say { font-family: var(--font-display); font-weight: 500; font-size: var(--t-poster); line-height: 1; letter-spacing: -.032em; }
.hello .body { color: var(--chalk-2); }
.hello .acts > span { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.hello .foot { margin-top: 44px; }
.hello .foot a { min-height: 44px; display: inline-flex; align-items: center; }


/* ---------- case studies: the film ---------- */
@view-transition { navigation: auto; }
.vt-title { view-transition-name: phrase; }
.vt-film { view-transition-name: film; }
/* "The studio" lands on the studio's profile (studio.html#studio), past the dates (Adam, 5 Nov 2026: the homepage
   already shows them): the homepage's portrait carries into this same portrait, and the dates carry nothing */
#land ~ #studio:target .layer.media { view-transition-name: film; }
html:has(#studio:target) #land .vt-film, html:has(#studio:target) #land .vt-title { view-transition-name: none; }
::view-transition-group(*) { animation-duration: 640ms; animation-timing-function: cubic-bezier(.2, .7, .1, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 420ms; }
/* into a case study the credit's picture has nothing to land on, and Safari captured the page blank (white) with the
   live Better Totes hero in it, so the picture is captured on its own (film.js names it film-out, or film-out-light
   under the darker grade) and shown as dim as it sat under the credits (the grade's own steps, as a mask), fading
   with the page (Adam, 4 Nov 2026: the white flash in his recording) */
::view-transition-old(film-out), ::view-transition-old(film-out-light) { animation: vt-film-out 420ms ease both; }
::view-transition-old(film-out) {
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.22) 0, rgba(0,0,0,.16) 34%, rgba(0,0,0,.05) 54%, rgba(0,0,0,.04) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.22) 0, rgba(0,0,0,.16) 34%, rgba(0,0,0,.05) 54%, rgba(0,0,0,.04) 100%);
}
::view-transition-old(film-out-light) {
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.16) 0, rgba(0,0,0,.1) 34%, rgba(0,0,0,.025) 54%, rgba(0,0,0,.02) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.16) 0, rgba(0,0,0,.1) 34%, rgba(0,0,0,.025) 54%, rgba(0,0,0,.02) 100%);
}
@keyframes vt-film-out { from { opacity: 1; } to { opacity: 0; } }

/* the title card that rises after the cold open */
.title-card { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--foot) + 26px); }
.title-card .phrase { font-size: var(--t-poster); line-height: 1; letter-spacing: -.032em; max-width: 9.5em; text-wrap: balance; }
.title-card .lab { margin-top: 18px; color: var(--chalk); }
.title-card .lab .dim { color: var(--chalk-2); }

/* subtitles that carry a small act label above them */
.sub .act { display: block; color: var(--chalk-2); }
.sub.ink { color: var(--ink); }
.sub.ink .lab, .sub.ink .act { color: var(--ink-2); }
.grade-plum { background: linear-gradient(to top, rgba(28,12,39,.96) 0, rgba(28,12,39,.88) 18%, rgba(28,12,39,.4) 32%, rgba(28,12,39,0) 44%); }
.grade-paper { background: linear-gradient(to top, rgba(251,248,242,.96) 0, rgba(251,248,242,.85) 20%, rgba(251,248,242,0) 40%); }

/* title cards: one figure per shot */
.card .lab.top { margin-bottom: 22px; color: var(--chalk-2); }
.card .btn { margin-top: 30px; }

/* the credits roll up as they arrive */
.roll { position: absolute; left: var(--pad); right: var(--pad); top: var(--mast); bottom: calc(var(--foot) + 8px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  transform: translateY(calc(max(0, -1 * var(--s, 0)) * 34svh)); }
.roll .phrase { font-size: clamp(1.625rem, 2.4vw + 1rem, 3rem); max-width: 12em; text-wrap: balance; margin: 8px 0 22px; }
.credits { display: grid; gap: 9px; width: 100%; max-width: 34rem; }
.credits > div { display: grid; grid-template-columns: 1fr 1.55fr; gap: 14px; align-items: baseline; text-align: left; }
.credits dt { font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--chalk-2); text-align: right; line-height: 1.5; }
.credits dd { margin: 0; font-size: .9375rem; line-height: 1.38; color: var(--chalk); }
.credits dd a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; }
.roll .go { margin-top: 18px; }

/* the trailer card: the next phrase, its footage through the letters */
.trailer { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-decoration: none; color: var(--chalk);
  padding: calc(var(--mast) + 10px) var(--pad) calc(var(--foot) + 14px); }
.trailer .lab { color: var(--chalk-2); }
.trailer .go { pointer-events: none; }

/* the live site, full screen */
.takeover { position: fixed; inset: 0; z-index: var(--z-takeover); display: flex; flex-direction: column; background: var(--night); opacity: 0; transform: translateY(24px); transition: opacity var(--d-2) var(--ease), transform var(--d-2) var(--ease); }
.takeover.on { opacity: 1; transform: none; }
.takeover-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: var(--mast); padding: var(--safe-top) calc(var(--pad) - 10px) 0 var(--pad); color: var(--chalk); }
.takeover-bar .lab { color: var(--chalk-2); }
.takeover iframe { flex: 1; width: 100%; border: 0; background: #fff; }

/* two sizes, at true relative scale, on a white plate */
.plate { background: #FFFFFF; color: var(--ink); }
.pair { position: absolute; left: var(--pad); right: var(--pad); top: calc(var(--mast) + 2svh); bottom: calc(var(--foot) + 150px); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.pair figure { display: grid; justify-items: center; align-content: end; }
.pair img { width: 100%; height: auto; }
.pair .little img { width: 97.8%; } /* the prints match: the two photos scaled so the wordmark is the same size on both */
.pair figcaption { margin-top: 8px; text-align: center; font-size: var(--t-small); line-height: 1.35; color: var(--ink); }
.pair figcaption b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; letter-spacing: -.01em; }
.pair figcaption .lab { display: block; color: var(--ink-2); margin-top: 2px; }

/* the eight directions */
.flipbook { background: #F2E8D5; }
.flip { position: absolute; left: var(--pad); right: var(--pad); top: var(--mast); bottom: calc(var(--foot) + 150px); }
.flip figure { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity 160ms linear; }
.flip figure.on { opacity: 1; }
.flip img { max-width: 86%; max-height: 46%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.flip-n { position: absolute; left: var(--pad); right: var(--pad); top: calc(var(--mast) + 8px); text-align: center; color: #1B2A41; }
.flip.landed + .flip-n, .flip-n.landed { color: #1B2A41; }
.sub.navy { color: #1B2A41; }
.sub.navy .lab { color: #4A5568; }
.again { position: absolute; right: calc(var(--pad) - 10px); bottom: calc(var(--foot) + 8px); z-index: 2; color: #1B2A41; }

/* Spotted in the wild: a run of shots on a phone, one panning shot on desktop */
.wild figure { position: absolute; inset: 0; margin: 0; }
.wild img { width: 100%; height: 100%; object-fit: cover; }
.wild figcaption { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--foot) + 64px); text-align: center; }

/* the hello form: the sentence you send */
.hello-form { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.375rem, 1.6vw + 1rem, 2.5rem); line-height: 1.5; letter-spacing: -.012em; max-width: 21em; }
.hello-form label { display: inline; }
.hello-form input, .hello-form textarea { font: inherit; color: var(--chalk); background: transparent; border: 0; border-bottom: 1px solid var(--chalk-2); border-radius: 0; padding: 0 2px; min-height: 44px; width: 9em; max-width: 100%; vertical-align: baseline; }
.hello-form input:focus { outline: none; border-bottom-color: var(--stop-dark); }
.hello-form input:focus-visible { outline: 2px solid var(--stop-dark); outline-offset: 2px; }
.hello-form input::placeholder { color: #8F887F; opacity: 1; }
.hello-form .wide { width: 100%; }
.hello-form .ln + .ln { margin-top: 2px; }
.lanes { display: inline; border: 0; padding: 0; margin: 0; min-width: 0; }
.lanes label { cursor: pointer; white-space: nowrap; padding: 6px 0; }
.lanes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lanes span { color: var(--chalk-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; text-decoration-color: rgba(169,161,150,.5); }
.lanes input:checked + span { color: var(--chalk); font-style: italic; text-decoration-color: var(--chalk); }
.lanes input:focus-visible + span { outline: 2px solid var(--stop-dark); outline-offset: 2px; }
.hello-form .send { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-family: var(--font-text); font-size: var(--t-small); line-height: 1.4; color: var(--chalk-2); }
.sent { font-family: var(--font-display); font-weight: 500; }
.sent:focus { outline: none; }
.sent .big { font-size: var(--t-poster); line-height: 1; letter-spacing: -.03em; }
.sent p + p { margin-top: 16px; font-size: var(--t-lede); line-height: 1.3; max-width: 18em; }

/* stills that move a little while their shot is on */
.scene.is-on .night-push > img, .scene.is-on .push-on > img { animation: push 16s var(--ease) both; }
.cover-left > img { object-position: 28% 50%; }
.contain-navy { background: #1B2A41; }
.contain-navy > img { object-fit: contain; transform: scale(.86); }
.helm { background: #0E1A1D; }
.helm > img { object-fit: contain; object-position: 50% 36%; }
.card-fig.words.small { font-size: clamp(2.125rem, 4.4vw + 1rem, 5.5rem); max-width: 10em; }
.pair-sub { bottom: calc(var(--foot) + 40px); }

/* plates: an object on white, whole */
.plate > img { object-fit: contain; transform: scale(.92); }
.pair { overflow: visible; }
.pair figure { overflow: visible; }
.pair img { width: 152%; max-width: none; margin: 0 -26% -6%; mix-blend-mode: multiply; }
.pair .little img { width: calc(152% * .978); margin: 0 calc(-26% * .978) -6%; }
.sub .btn { margin-top: 18px; }
.sub.with-act .ln:last-child > span { display: flex; justify-content: center; }

/* the studio */
.dates.opening .phrase { font-size: clamp(2rem, 3.4vw + 1.1rem, 4.25rem); line-height: 1; letter-spacing: -.028em; max-width: 11em; text-wrap: balance; }
.dates.opening ol { margin-top: 26px; gap: 16px; }
.dates.opening .d { font-size: clamp(1.375rem, 1.4vw + 1rem, 2.25rem); }
.titles.plain { justify-content: center; }
.titles .line.big { font-size: var(--t-poster); line-height: 1; letter-spacing: -.03em; }
.titles .body.dim { color: var(--chalk-2); }
.titles .lab.dim + .line, .titles .lab.dim + .card-fig { margin-top: 14px; }
.kept { display: grid; gap: 14px; margin-top: 22px; max-width: 30em; color: var(--chalk-2); }
.kept b { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; letter-spacing: -.01em; color: var(--chalk); display: block; line-height: 1.15; margin-bottom: 2px; }
.audit .kept { gap: 8px; color: var(--chalk); }
.audit .kept li .ln > span { padding-left: 18px; position: relative; }
.audit .kept li .ln > span::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 1px; background: var(--chalk-2); }
.audit .card-fig { line-height: 1; }
.audit > .lab:not(.dim) { margin-top: 10px; }
.steps { display: grid; gap: 18px; margin-top: 20px; }
.steps b { display: block; margin-top: 4px; font-family: var(--font-display); font-weight: 500; font-size: var(--t-headline); line-height: 1.04; letter-spacing: -.02em; }
.steps .lab { color: var(--chalk-2); }
.credits.left { margin-top: 22px; max-width: 34rem; }
.credits.left > div { grid-template-columns: 6.5rem 1fr; }
.credits.left dt { text-align: left; }
.credits.left dd b { font-weight: 500; }
.titles .credits.left + .body { margin-top: 22px; }
.brands { display: grid; gap: 4px; margin: 18px 0 20px; }
.brands li { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.75rem, 2.6vw + 1rem, 3.5rem); line-height: 1.08; letter-spacing: -.02em; }
.quote { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.75rem, 2.8vw + 1rem, 3.75rem); line-height: 1.12; letter-spacing: -.02em; max-width: 15em; text-wrap: balance; }
.hello-shot .say { margin-bottom: 22px; }
.endroll .phrase { margin-bottom: 26px; }

/* desktop: Spotted in the wild, one photograph a screen (Adam, 2 Nov 2026), each shown whole at a size the photos hold
   (customers' own pictures, 700 to 1080 wide), with its place below it. Phones get the store's polaroid stack
   (bt-spotted.css). */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  [data-wild] .wild-shot { inset: calc(var(--mast) + 3svh) var(--pad) calc(var(--foot) + 92px); }
  [data-wild] .wild-shot img { object-fit: contain; border-radius: 2px; }
  [data-wild] .wild-shot .grade-b { display: none; }
  [data-wild] .wild-shot figcaption { left: 0; right: 0; top: auto; bottom: -72px; text-align: center; }
}

/* ---------- a case study beat (BEAT-SHEETS.md; Adam, 3 Nov 2026: "lets just do it") ----------
   One beat a screen, in one of two layouts.
   Over: a photograph full bleed, the words over its shaded foot (.sub as on the homepage; .sub.long for three
   sentences or more, set left in Tiempos at the reading size over a deeper shade, .grade-deep).
   Split: a capture of a site or an app, or a photograph that must not be covered, with the words below it on night
   (.read-pic and .read). On a wide screen the picture takes the left half and the words the right. */
.grade-deep { background: linear-gradient(to top, rgba(14,13,12,.96) 0, rgba(14,13,12,.9) 34%, rgba(14,13,12,.55) 52%, rgba(14,13,12,0) 72%); }
.sub.long { left: var(--pad); right: var(--pad); max-width: 24em; margin-inline: 0; text-align: left; text-wrap: pretty;
  font-size: min(var(--t-lede), 3.4svh); line-height: 1.28; letter-spacing: -.008em; bottom: calc(var(--foot) + 40px); }
.sub.long .ln + .ln { margin-top: .5em; }
.layer.read-pic { inset: var(--mast) 0 auto; height: 50svh; overflow: hidden; }
.layer.read-pic > img { object-position: 50% 0; }
.layer.read-pic.foot > img { object-position: 50% 100%; }
.layer.read-pic .two { position: absolute; inset: 14px var(--pad) 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.layer.read-pic .two img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; border-radius: 10px; }
.read { position: absolute; left: var(--pad); right: var(--pad); top: calc(var(--mast) + 50svh + 22px); bottom: calc(var(--foot) + 16px); }
.read p { font-family: var(--font-display); font-weight: 500; font-size: min(var(--t-lede), 3.4svh); line-height: 1.28; letter-spacing: -.008em; max-width: 24em; text-wrap: pretty; }
.read .ln + .ln { margin-top: .5em; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .sub.long { left: 8vw; right: auto; width: min(36rem, 42vw); bottom: calc(var(--foot) + 56px); font-size: var(--t-lede); }
  /* a wide screen shows the site's own desktop capture, whole, never a phone capture (Adam: "desktop shows mobile
     version as well. bad design") */
  .layer.read-pic { inset: calc(var(--mast) + 5vh) 50% 5vh 5vw; height: auto; }
  .layer.read-pic > img { object-fit: contain; object-position: 50% 50%; }
  .layer.read-pic.foot > img { object-position: 50% 50%; }
  .layer.read-pic .two { inset: 0; grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; gap: 3vh; }
  .layer.read-pic .two img { object-fit: contain; border-radius: 6px; }
  /* a small portrait photograph, whole on night rather than stretched across a wide screen */
  .layer.media.fit-wide > img { object-fit: contain; padding: calc(var(--mast) + 4vh) 0 5vh; }
  .read { left: calc(50% + 5vw); right: 7vw; top: var(--mast); bottom: var(--foot); display: flex; flex-direction: column; justify-content: center; }
  .read p { font-size: var(--t-lede); }
}

/* ---------- desktop: the same film, wider shots ---------- */
@media (min-width: 900px) {
  .title-card .phrase { font-size: clamp(3.5rem, 6.4vw, 7.5rem); max-width: 11em; }
  .titles.plain, .titles.offers, .titles.hello { left: 50%; right: auto; width: min(66rem, calc(100vw - 2 * var(--pad))); transform: translateX(-50%); }
  .offers { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-content: center; }
  .offers > .lab, .offers > p:last-child { grid-column: 1 / -1; }
  .titles .line { font-size: clamp(2.5rem, 3.4vw + 1rem, 4.5rem); max-width: 16em; }
  .titles .line.big { font-size: clamp(4rem, 6vw + 1rem, 8.5rem); }
  .titles .body { font-size: 1.1875rem; max-width: 36em; }
  .kept { grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: none; margin-top: 40px; }
  .audit .kept { grid-template-columns: none; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 28px; }
  .credits.left { max-width: 52rem; }
  .credits.left > div { grid-template-columns: 9rem 1fr; }
  .credits dd { font-size: 1.0625rem; }
  .credits { max-width: 44rem; gap: 12px; }
  .roll .phrase { font-size: clamp(2.5rem, 3vw + 1rem, 4rem); }
  .pair { left: 50%; right: auto; width: min(50vw, 80svh); transform: translateX(-50%); top: calc(var(--mast) + 15svh); bottom: 5svh; }
  .pair-sub { bottom: auto; top: calc(var(--mast) + 2svh); }
  .card-cap { font-size: 1.0625rem; }
  .hello-shot { width: min(60rem, calc(100vw - 2 * var(--pad))); }
}

/* ---------- fix round: reading sections ---------- */
/* a flow scene is read, not cut: it scrolls in normal flow, at least one screen tall, and the deck relaxes to
   proximity while it is on screen (the studio page, the credits, the form) */
html.free .deck, .reading .deck { scroll-snap-type: none; }
.scene.flow > .stage { position: relative; height: auto; min-height: var(--shot); margin-bottom: 0; }
/* snap points exist only once film.js has laid out the slots, so the first layout never snaps to a reading section */
html.film-ready .scene.flow > .stage { scroll-snap-align: start; }
html.film-ready .scene[data-free] > .stage, html.film-ready #credits > .stage { scroll-snap-stop: always; }
.scene.flow .roll, .scene.flow .titles { position: relative; inset: auto; left: auto; right: auto; transform: none; width: auto; min-height: var(--shot);
  padding: calc(var(--mast) + 28px) var(--pad) calc(var(--foot) + 40px); }
.scene.flow .titles.plain { margin-inline: auto; max-width: 66rem; }
.scene.flow .titles.centre { text-align: center; align-items: center; }
.scene.flow .titles.centre .body { margin-inline: auto; }
.scene.flow .roll { transform: none; }
/* a case study's credits fit one screen on a phone, so they take one flick in and one out like every other screen,
   and the deck never switches its snapping off for them (it did, with data-free, and that made a phone jump):
   narrow labels on the left so the values don't wrap, and on the smallest phones scenes.js scales the roll (--cr,
   down to .85 at most) */
@media (max-width: 899px) {
  #credits .roll { --cr: 1; }
  #credits .roll .phrase { font-size: calc(1.5rem * var(--cr)); margin: calc(6px * var(--cr)) 0 calc(16px * var(--cr)); }
  #credits .credits { gap: calc(8px * var(--cr)); }
  #credits .credits > div { grid-template-columns: 5.6rem 1fr; gap: 10px; }
  #credits .credits dt { text-align: left; font-size: calc(10px * var(--cr)); }
  #credits .credits dd { font-size: calc(.875rem * var(--cr)); line-height: 1.32; }
}
/* a paper sheet for the long copy */
[data-sheet] > .stage { background: var(--paper); color: var(--ink); }
[data-sheet] .lab.dim, [data-sheet] .lab, [data-sheet] dt { color: var(--ink-2); }

[data-sheet] .audit .kept li .ln > span::before, [data-sheet] .kept li .ln > span::before { background: var(--ink-2); }
[data-sheet] :focus-visible { outline-color: var(--stop); }
/* 17 px and more for anything you read */
.credits { gap: 14px; }
.credits dt { font-size: .75rem; }
.credits dd { font-size: 1.0625rem; line-height: 1.42; }
.roll .phrase { font-size: clamp(1.875rem, 3vw + 1rem, 4rem); }
.card-cap { font-size: 1.0625rem; line-height: 1.45; }
.dates .n { font-size: 1.0625rem; }
.credit .role { font-size: 1.0625rem; }
.kept { color: var(--chalk); font-size: 1.0625rem; }
.kept b { font-size: 1.375rem; }
.titles .body, .titles .body.dim { font-size: 1.0625rem; color: var(--chalk); }
.brands li { font-size: clamp(1.875rem, 2.8vw + 1rem, 3.75rem); }
.audit .kept { font-size: 1.1875rem; }
.helm > img { object-fit: contain; object-position: 50% 42%; transform: scale(.94); }
[data-sheet] .titles .kept, [data-sheet] .titles .body, [data-sheet] .titles dd, [data-sheet] .titles .kept b { color: var(--ink); }

/* ---------- reduced motion: nothing moves, nothing snaps ---------- */
html.reduced .deck { scroll-snap-type: none; }
html.reduced .ln > span { transform: none; }
html.reduced [data-shot]:not([data-fade="cut"]) { opacity: calc(var(--e) * (1 - var(--x))); }
html.reduced [data-wild] .wild-shot { transition: none; }
html.reduced .pp { width: auto; padding: 0 10px 0 30px; }
html.reduced .pp i { left: 16px; }
html.reduced .pp::after { content: "Play"; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
html.reduced .roll { transform: none; }
html.reduced .lamp img { transform: none; }

/* ---------- wider screens ---------- */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  /* desktop: the sentence on night at the left, the reel at full strength in a tall window at the right */
  .reel-win { left: auto; right: 0; bottom: 0; height: auto; width: 40vw; }
  .arrive .band { display: none; }
  .sentence-box { top: calc(var(--mast) + 5svh); right: var(--pad); bottom: calc(var(--foot) + 64px); }
  .arrive .cue { right: var(--pad); }
  /* the lamp's shade, brought under the left aligned title on a wide frame */
  .lamp img { transform-origin: 43% 9.4%; transform: translate(calc(-13% * var(--k)), calc(40% * var(--k))) scale(calc(1 + 4.4 * var(--k))); }
}
@media (min-width: 900px) {
  :root { --foot: calc(28px + var(--safe-bottom)); }

    /* the app at its true phone proportions, centred in the frame */
  .app .screen { object-fit: contain; object-position: 50% 50%; }
  .layer.app.site { top: calc(var(--mast) + 8px); bottom: 12px; }
  .sub { bottom: calc(var(--foot) + 72px); }
  .credit { bottom: calc(var(--foot) + 40px); }
}

/* the hero stills under reduced motion: the first still, no crossfade, no drift, no progress */
@media (prefers-reduced-motion: reduce) {
  .reel-win .still, .reel-win .still img { transition: none; transform: none; }
  .cue .rule.run i { animation: none; }
}

/* Mandinga on the homepage: the eight logo directions, full bleed on its own sand (two across on a phone, four on desktop) */
.logos8 { position: absolute; inset: 0; background: var(--md-sand); display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 1fr);
  gap: 10px 14px; padding: calc(var(--mast) + 18px) calc(var(--pad) + 4px) calc(var(--foot) + 22px); align-items: center; justify-items: center; }
.logos8 img { width: auto; height: auto; max-width: 88%; max-height: 72%; object-fit: contain; }
@media (min-aspect-ratio: 1/1) { .logos8 { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 4vh 4vw; padding: calc(var(--mast) + 12vh) 8vw 14vh; } }

/* every title reads like Hushero's: while the phrase is on screen, its image is zoomed into a bright patch (--px --py),
   brought under the letters (--cx --cy). It holds there while the camera dives, so the letters keep their colour all the
   way in, and eases back to the whole picture from --z0 to --dz, once the letter fills the screen
   (same curve as the lamp) */
.zoomin > img, .zoomin > canvas, .zoomin > .logos8, .zoomin > .cmrec {
  --k: calc(1 - clamp(0, (var(--s, 0) - var(--z0, 0)) / (var(--dz, .92) - var(--z0, 0)), 1));
  transform-origin: var(--px) var(--py);
  transform: translate(calc((var(--cx, 50%) - var(--px)) * var(--k)), calc((var(--cy, 46%) - var(--py)) * var(--k))) scale(calc(1 + var(--zs, 2.4) * var(--k)));
}
html.reduced .zoomin > img, html.reduced .zoomin > canvas, html.reduced .zoomin > .logos8, html.reduced .zoomin > .cmrec { transform: none; }
/* ClearMile's title is zoomed into the empty page of the portal's own screen, clear of every word and line all the way
   down the dive: on a phone beside "Hello, Jordan" (the capture is scaled to the screen's width and hangs from the top,
   so the patch is placed in vw and holds on any phone's height); on a wide screen in the page's margin */
#portals .zoomin { --px: 83.8%; --py: 31vw; --zs: 5; }
@media (min-aspect-ratio: 1/1) { #portals .zoomin { --px: 14%; --py: 50%; --zs: 4; } }

/* a case study's title doesn't dive (Adam, 5 Nov 2026: "maybe we lose the zoom in to transition on case studies. its a
   lot to have on both homepage and case study pages", then "it should slide up and have same transition as the rest of
   the modules"). It is a screen of its own (data-lift) that holds still, its picture zoomed under the letters as before
   and at its full lift, and the brief, the next screen, slides up over it as every screen does */
[data-lift] .zoomin > * { --k: 1; }
[data-lift] .layer.media.zoomin.lift > img { filter: brightness(calc(1 + var(--lift, .6))); }

/* the close: the title dives like every other, through the hole of a letter (data-aim="counter"), then each project is
   named in its colour from the sentence. Chalk shows through the letters until the hole fills the screen with night
   (--z0 to --dz, just before the dive ends), and the dates wait until the camera is through */
.land-field > i { position: absolute; inset: 0; background: var(--chalk);
  opacity: calc(1 - clamp(0, (var(--s, 0) - var(--z0, 0)) / (var(--dz, .92) - var(--z0, 0)), 1)); }
.dates .nm { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 6.2vw, 3rem); line-height: 1; letter-spacing: -.02em; color: var(--hc, var(--chalk)); }
#land .dates { opacity: clamp(0, calc((var(--s, 0) - .6) / .16), 1); }
#land .dates ol { margin-top: 0; gap: 20px; }
#land .dates li .lab { margin-top: 8px; color: var(--chalk-2); }
/* Mandinga's title reads on a single colour, its sand, as ClearMile's and Better Totes' do: the logos stay out of the
   letters and arrive as the dive opens (the same --k as the zoom, at twice its pace, so all eight are in early) */
.zoomin > .logos8 img { opacity: clamp(0, calc((1 - var(--k, 0)) * 2), 1); }

/* a dive (data-dive=".62", its length): one flick from the title carries the page to the work, and the
   dive plays in full on the way (Adam, 2 Nov 2026: "one flick everywhere"). The free runs that let a dive follow the
   thumb are gone: a flick came to rest inside them, so a module took two or three flicks to cross. */

/* =========================================================================================================
   The end of the page (lab 6B, Adam, 4 Nov 2026): end credits, on paper, in ink, as the live site's footer. After a
   page's last screen, the whole sentence as the film's end credits, the story just seen ticked, each phrase going to
   its page; then Start a brief and the legal line. Every page has them, the homepage too (Adam, 4 Nov 2026: "i think
   we need the footer on homepage also"), so they live here, not in case.css. The greys, and Adam's green a shade
   deeper on the paper, read at 4.5:1 or better.
   ========================================================================================================= */
.cs-ec-stage { background: #EFEBE3; color: #1A1818; }
.cs-ec { position: absolute; inset: 0; display: flex; flex-direction: column; padding: calc(var(--mast) + min(18px, 2svh)) var(--pad) calc(var(--foot) + 4px); }
.stage .cs-ec .lab { margin: 0 0 min(10px, 1.2svh); color: rgba(26,24,24,.7); }
.cs-ec-lead { margin: 0 0 min(8px, 1svh); font-family: var(--font-display); font-weight: 500; font-size: min(1.5rem, 3.6svh); color: rgba(26,24,24,.6); }
.cs-ec-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: min(10px, 1.2svh); }
.cs-ec-list a { display: block; text-decoration: none; color: #1A1818; }
.cs-ec-list .ph { display: block; font-family: var(--font-display); font-weight: 500; font-size: min(1.375rem, 3.1svh); line-height: 1.14; letter-spacing: -.012em; }
.cs-ec-list .ph em { font-style: italic; }
.cs-ec-list .who { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: rgba(26,24,24,.72); }
.cs-ec-list .seen .who { color: #19683F; }
.cs-ec-list .seen .ph { color: rgba(26,24,24,.68); }
@media (hover: hover) { .cs-ec-list a:hover .ph { color: #1A1818; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; } }
.cs-ec-contact { margin-top: min(20px, 2.4svh); padding-top: min(16px, 2svh); border-top: 1px solid rgba(26,24,22,.14); display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; }
.cs-ec-brief { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-text); font-weight: 500; font-size: 1.1rem; color: #19683F; text-decoration: none; }
.cs-ec-mail { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .02em; color: rgba(26,24,24,.72); text-decoration: none; }
.cs-ec-legal { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; padding-top: min(18px, 2svh); border-top: 1px solid rgba(26,24,22,.14); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; color: rgba(26,24,24,.7); }
.cs-ec-legal a { color: inherit; }
@media (max-height: 640px) { .cs-ec-list .ph { font-size: min(1.25rem, 3svh); } .cs-ec-list { gap: .9svh; } }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .cs-ec { padding: calc(var(--mast) + 6vh) 8vw 5vh; }
  .cs-ec-list { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: 2.4vh 6vw; margin-top: 2vh; }
  .cs-ec-list .ph { font-size: min(1.75rem, 3.4svh); }
  .cs-ec-lead { font-size: 1.75rem; }
}
