/* The case study modules, as Adam chose them in the module lab (_lab/modules, 3 Nov 2026): the opening and the brief,
   how I approached it, the work, what I did, a detail, working together, what it shows, the credits and the ask, and the
   next case study's opening. Loaded by the case studies only: the homepage never loads this file. The film's own parts
   (.ln, .roll, .credits, .knock, .btn) are in film.css. Nothing here is driven by the scroll except the film's own
   rise of each line as its shot comes in. */

/* which screens a block belongs to: a phone and a wide screen sometimes show the same section differently */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) { .only-phone { display: none !important; } }
@media not all and (min-width: 900px) and (min-aspect-ratio: 1/1) { .only-wide { display: none !important; } }

/* ---------- the opening: under the title, what the project was and the facts, so a reader knows in seconds ---------- */
.cs-intro { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--foot) + 20px); }
.cs-intro .cs-line { display: block; font-family: var(--font-display); font-weight: 500; font-size: min(var(--t-lede), 3.1svh); line-height: 1.25; letter-spacing: -.008em; max-width: 21em; text-wrap: pretty; }
.cs-facts { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin-top: 14px; }
.cs-facts dt, .cs-facts .dt { font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--chalk-2); line-height: 1.75; }
.cs-facts dd, .cs-facts .dd { margin: 0; font-size: var(--t-small); line-height: 1.45; color: var(--chalk); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .cs-intro { left: 8vw; right: auto; width: min(40rem, 50vw); bottom: calc(var(--foot) + 40px); }
  .cs-intro .cs-line { font-size: var(--t-lede); }
}

/* the brief on a wide screen: once the dive has landed, the portrait settles into the right half, so the brief reads on
   night at the left and never over a face (a tall portrait on a wide screen leaves no other room) */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .layer.media.dock-right > img { --dk: clamp(0, calc((var(--s, 0) - .5) / .45), 1); left: calc(var(--dk) * 50%); width: calc(100% - var(--dk) * 50%); }
  /* the brief is a screen of its own now (.cs-brief, after the title): its picture simply sits in the right half */
  .cs-brief .layer.media.dock-right > img { --dk: 1; }
  .layer.media.dock-right ~ .layer.grade-deep { display: none; }
  .layer.media.dock-right ~ .sub.long { width: min(34rem, 40vw); bottom: auto; top: 50%; transform: translateY(-50%); }
}

/* ---------- the voice: one strong sentence, as the homepage's hero speaks (Tiempos, tight, italic for the point) ---------- */
:root { --t-cs: min(clamp(2.125rem, 5.4vw + 1rem, 5.25rem), 7svh); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) { :root { --t-cs: min(5.4vw, 9.4svh); } }
.cs-sen { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: var(--t-cs); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.cs-sen em { font-style: italic; }
.cs-sen.s { --t-cs: min(clamp(1.75rem, 3.2vw + 1.05rem, 3.75rem), 5.4svh); line-height: 1.06; letter-spacing: -.024em; }
.cs-sen.xs { --t-cs: min(clamp(1.375rem, 1.4vw + 1rem, 2.25rem), 4svh); line-height: 1.1; letter-spacing: -.016em; }
.cs-txt { margin: 0; font-family: var(--font-text); font-size: min(1.0625rem, 2.5svh); line-height: 1.5; max-width: 31rem; text-wrap: pretty; color: var(--chalk-2); }
.stage .lab { color: var(--chalk-2); }

/* ---------- a photograph toned in the project's colour, under the words ---------- */
.cs-toned { overflow: hidden; background: var(--night); }
.cs-toned > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.08); }
.cs-toned .tone { position: absolute; inset: 0; background: #A8622B; mix-blend-mode: multiply; }
.cs-toned .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,13,12,.95) 0, rgba(14,13,12,.86) 34%, rgba(14,13,12,.3) 62%, rgba(14,13,12,.05) 100%); }
/* on a phone, a toned picture can take the top of the screen and fade into night behind the words below it */
.cs-toned.top { bottom: 40%; }
.cs-toned.top > img { object-position: 50% 58%; }
.cs-toned.top .shade { background: linear-gradient(to top, var(--night) 0, rgba(14,13,12,.82) 22%, rgba(14,13,12,.25) 60%, rgba(14,13,12,.1) 100%); }
.cs-words { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); top: calc(var(--mast) + 28px); bottom: calc(var(--foot) + 18px); display: flex; flex-direction: column; justify-content: flex-end; }
.cs-words .lab { margin: 0 0 min(16px, 2.2svh); }
.cs-words > .cs-txt, .cs-words > div + .cs-txt { margin-top: min(20px, 2.8svh); }
.cs-words.low .cs-sen + .cs-txt { margin-top: min(14px, 2svh); }
.cs-slate { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 6px 12px; margin-top: min(18px, 2.4svh); border-top: 1px solid rgba(243,239,231,.24); padding-top: 14px; }
.cs-slate .lab { display: block; margin: 0; }
.cs-slate b { display: block; white-space: nowrap; font-family: var(--font-display); font-weight: 500; font-size: min(1.375rem, 3.2svh); letter-spacing: -.02em; color: var(--chalk); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .cs-toned .shade { background: linear-gradient(to right, rgba(14,13,12,.95) 0, rgba(14,13,12,.82) 42%, rgba(14,13,12,.15) 78%); }
  .cs-toned.top { bottom: 0; left: 34vw; }
  .cs-toned.top > img { object-position: 50% 50%; }
  .cs-toned.top .shade { background: linear-gradient(to right, rgba(14,13,12,.96) 0, rgba(14,13,12,.86) 40%, rgba(14,13,12,.2) 76%, rgba(14,13,12,.05) 100%); }
  .cs-words { left: 8vw; right: auto; width: min(58rem, 64vw); justify-content: center; }
  .cs-words.low { width: min(44rem, 50vw); justify-content: flex-end; bottom: 7vh; }
  .cs-slate { justify-content: start; gap: 4vw; }
}

/* ---------- the work, screen by screen: a row your thumb moves sideways (nothing moves on its own); the last card
   opens the live page full screen ---------- */
.cs-rowwrap { display: flex; flex-direction: column; justify-content: center; gap: min(22px, 3svh); padding: calc(var(--mast) + 16px) 0 calc(var(--foot) + 10px); }
.cs-rowhead { display: grid; justify-items: center; gap: min(10px, 1.4svh); padding-inline: var(--pad); text-align: center; }
.cs-car { display: grid; gap: min(14px, 2svh); justify-items: center; }
.cs-track { --cw: calc(min(54svh, 560px) * 780 / 1688); position: relative; display: flex; gap: 14px; width: 100vw; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding-inline: calc(50vw - var(--cw) / 2); outline: none; }
.cs-track::-webkit-scrollbar { display: none; }
.cs-card { flex: none; width: var(--cw); margin: 0; scroll-snap-align: center; display: grid; gap: 10px; justify-items: center; }
.cs-shot { position: relative; width: 100%; aspect-ratio: 780 / 1688; overflow: hidden; border-radius: 18px; background: #000; box-shadow: 0 0 0 1px rgba(243,239,231,.12), 0 20px 50px rgba(0,0,0,.45); }
.cs-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.cs-card figcaption { color: var(--chalk-2); text-align: center; }
/* the last screen of the row is the live one: framed like the others, warmed by her bronze, the whole card opens it */
.cs-live { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 18px; border: 0; color: var(--chalk); text-align: center; cursor: pointer; font: inherit;
  background: radial-gradient(90% 60% at 50% 42%, rgba(168,98,43,.5) 0, rgba(107,52,16,.28) 50%, rgba(14,13,12,0) 85%), var(--night-2); }
.cs-live .cs-sen { max-width: 7em; }
.cs-live .go { min-height: 0; white-space: nowrap; font-size: .9375rem; }
@media (hover: hover) { .cs-live:hover .ar { transform: translateX(4px); } }
.cs-ctl { display: flex; align-items: center; gap: 6px; }
.cs-ctl button { width: 44px; height: 44px; border: 0; background: none; color: var(--chalk); font-size: 1.125rem; cursor: pointer; }
.cs-ctl button:disabled { opacity: .3; }
.cs-ctl .lab { min-width: 5.5em; text-align: center; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .cs-track { --cw: min(60vw, 96svh); }
  .cs-shot { aspect-ratio: 16 / 10; border-radius: 10px; }
}

/* ---------- what I did: the page fills the screen and the sentence is its subtitle ---------- */
.cs-full > img { object-position: 50% 0; }
/* a still whose words sit low on the page: show its lower part, so its words clear the subtitle's grade */
.cs-full > img.cs-low { object-position: 50% 100%; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .cs-full > img.cs-low { inset: auto 0 18% 0; height: 100%; }
  .cs-subt-grade.low { background: linear-gradient(to top, rgba(14,13,12,.97) 0, rgba(14,13,12,.95) 20%, rgba(14,13,12,.5) 30%, rgba(14,13,12,0) 42%); }
}
.cs-subt-grade { background: linear-gradient(to top, rgba(14,13,12,.97) 0, rgba(14,13,12,.95) 30%, rgba(14,13,12,.6) 46%, rgba(14,13,12,0) 64%); }
.cs-subt { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--foot) + 40px); display: grid; justify-items: center; gap: 12px; text-align: center; }
.cs-subt .lab, .cs-subt .cs-sen { margin: 0; }
.cs-subt .cs-sen { max-width: 15em; }
/* a wide still carries more of the page's own words; the grade rises higher so only the subtitle reads */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) { .cs-subt-grade { background: linear-gradient(to top, rgba(14,13,12,.97) 0, rgba(14,13,12,.95) 34%, rgba(14,13,12,.72) 54%, rgba(14,13,12,0) 74%); } }

/* ---------- a detail: a product, rebuilt from the real page's own pieces (lid, letters, jar, the open jar), so it opens
   at its own pace when you tap it. --p runs 0 (closed) to 1 (open), as on her page. ---------- */
.stage { --p: 0; }
.jar { --jw: min(56vw, 30svh, 360px);
  --tw: clamp(0, calc(var(--p) / .92), 1); --l: clamp(0, calc((var(--p) - .03) / .9), 1);
  position: relative; flex: none; width: var(--jw); aspect-ratio: 1; margin-top: calc(var(--jw) * .5); }
.jar img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; user-select: none; -webkit-user-drag: none; }
.jar .j-open { left: calc(-100% * 24 / 528); width: calc(100% * 576 / 528); opacity: clamp(0, calc(var(--l) * 50), 1); }
.jar .j-base { opacity: calc(1 - clamp(0, calc((var(--l) - .02) / .15), 1)); }
.j-lid, .j-letters { position: absolute; inset: 0; }
.j-lid { transform: translate(calc(var(--l) * -4%), calc(var(--l) * -50%)) rotate(calc(var(--l) * -7deg)); }
.j-letters { -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 24%, #000 74%, transparent 92%); mask-image: linear-gradient(90deg, transparent 4%, #000 24%, #000 74%, transparent 92%); }
.j-letters img { --out: clamp(0, calc(var(--tw) * 2), 1); --back: clamp(0, calc(var(--tw) * 2 - 1), 1); --jump: clamp(0, calc((var(--tw) - .5) * 1000), 1);
  transform: translateX(calc(var(--out) * 75% + var(--back) * 75% - var(--jump) * 150%)); }
.j-shadow { position: absolute; left: 10%; right: 10%; bottom: -5%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(14,14,14,.24), transparent); }
.jar[role="button"] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.jar:focus-visible { outline: 2px solid var(--stop-dark); outline-offset: 10px; border-radius: 50%; }
.stage.cs-glow { background: radial-gradient(72% 40% at 50% 38%, rgba(168,98,43,.44) 0, rgba(107,52,16,.2) 46%, rgba(14,13,12,0) 76%), var(--night); }
.cs-jarwrap { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: min(18px, 2.4svh); padding: calc(var(--mast) + 22px) var(--pad) calc(var(--foot) + 18px); text-align: center; }
.cs-jarstage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.cs-jarwrap .jar { --jw: min(66vw, 33svh, 400px); }
.cs-jarwrap .j-shadow { background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); }
.cs-jarwords { display: grid; justify-items: center; gap: min(12px, 1.6svh); max-width: 30rem; }
.cs-jarwords .lab, .cs-jarwords .cs-sen, .cs-jarwords .cs-txt { margin: 0; }
.cs-cue { margin: 0; color: var(--chalk-2); }
.cs-cue .c, .stage.open .cs-cue .o { display: none; }
.stage.open .cs-cue .c { display: inline; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .stage.cs-glow { background: radial-gradient(34% 56% at 33% 50%, rgba(168,98,43,.42) 0, rgba(107,52,16,.18) 48%, rgba(14,13,12,0) 78%), var(--night); }
  .cs-jarwrap { flex-direction: row; justify-content: center; gap: 6vw; padding-inline: 8vw; text-align: left; }
  .cs-jarwords { justify-items: start; }
  .cs-jarwrap .jar { --jw: min(28vw, 44svh, 440px); }
}

/* ---------- what it shows: one point a shot over her own photography, in its own colours, the words low ---------- */
.cs-shows-shade { background: linear-gradient(to top, rgba(14,13,12,.94) 0, rgba(14,13,12,.84) 30%, rgba(14,13,12,.2) 56%, rgba(14,13,12,0) 72%); }
.cs-point { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--foot) + 22px); display: grid; gap: min(12px, 1.6svh); }
.cs-point .lab, .cs-point .cs-sen, .cs-point .cs-txt { margin: 0; }
.cs-point .cs-txt { color: rgba(243,239,231,.82); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .cs-shows-shade { background: linear-gradient(to right, rgba(14,13,12,.9) 0, rgba(14,13,12,.6) 40%, rgba(14,13,12,0) 70%), linear-gradient(to top, rgba(14,13,12,.6), rgba(14,13,12,0) 40%); }
  .cs-point { left: 8vw; right: auto; width: min(36rem, 40vw); bottom: 10vh; }
}

/* ---------- the close: the credits (film.css's roll), then the ask on its own ---------- */
.cs-ask { position: absolute; left: var(--pad); right: var(--pad); top: var(--mast); bottom: calc(var(--foot) + 20px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: min(22px, 3svh); }
.cs-ask > * { margin: 0; }
.cs-ask .cs-sen { max-width: 11em; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) { .cs-ask { left: 8vw; } }

/* ---------- next: the next case study's opening, as its page opens (its picture, its phrase cut out of night, its
   facts); tap it and its letters open onto its page ---------- */
.cs-next-pic > img { object-position: 50% 70%; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) { .cs-next-pic > img { object-position: 50% 32%; } }
.cs-arrive { position: absolute; inset: 0; z-index: 3; display: block; color: var(--chalk); text-decoration: none; -webkit-tap-highlight-color: transparent; }

/* =========================================================================================================
   Better Totes' own pieces (3 Nov 2026): its photographs in their own colours (the colourways are the point), the
   colour engine (lab 1B), the two sizes, a slate in rows, and Spotted in the wild as a story (lab 2B)
   ========================================================================================================= */
/* a photograph in its own colours: as the toned one, without the tone; when it's at the top, a soft shade under the
   masthead so the masthead reads on any picture */
.cs-toned.own > img { filter: none; }
.cs-toned.own.top .shade { background: linear-gradient(to bottom, rgba(14,13,12,.45) 0, rgba(14,13,12,0) 18%), linear-gradient(to top, var(--night) 0, rgba(14,13,12,.6) 14%, rgba(14,13,12,0) 38%); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .cs-toned.own.top .shade { background: linear-gradient(to bottom, rgba(14,13,12,.45) 0, rgba(14,13,12,0) 14%), linear-gradient(to right, var(--night) 0, rgba(14,13,12,.7) 22%, rgba(14,13,12,0) 50%); }
}
/* a slate whose facts are too long for three columns: one a row */
.cs-slate.rows { grid-template-columns: 1fr; gap: 7px; }
.cs-slate.rows .ln > span { display: flex; align-items: baseline; gap: 14px; }
.cs-slate.rows .lab { flex: none; width: 9.5em; }
.cs-slate.rows b { white-space: normal; font-size: min(1.1875rem, 2.9svh); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) { .cs-slate.rows { justify-content: stretch; gap: 8px; } }

/* what I did, the two sizes: the Big and the Little Bondi at one scale, on the white they were shot on (multiply, so
   where they overlap the white disappears) */
.cs-two { background: #FFF; }
.cs-two figure { position: absolute; margin: 0; display: grid; gap: 2px; justify-items: center; }
.cs-two figure:first-child { left: var(--pad); top: calc(var(--mast) + 1svh); width: min(72vw, 38svh); }
.cs-two figure:last-child { right: var(--pad); top: calc(var(--mast) + 1svh + min(72vw, 38svh) * .5); width: min(60vw, 32svh); }
.cs-two img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.cs-two figcaption { margin-top: -4%; color: rgba(26,24,24,.72) !important; }
.cs-two-grade { background: linear-gradient(to top, rgba(14,13,12,.97) 0, rgba(14,13,12,.95) 22%, rgba(14,13,12,.55) 33%, rgba(14,13,12,0) 44%); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .cs-two { display: flex; align-items: center; justify-content: center; gap: 2vw; padding: var(--mast) 8vw 24vh; }
  .cs-two figure { position: static; }
  .cs-two figure:first-child { width: min(36vw, 58svh); }
  .cs-two figure:last-child { width: min(31vw, 50svh); align-self: flex-end; }
  .cs-two-grade { background: linear-gradient(to top, rgba(14,13,12,.97) 0, rgba(14,13,12,.92) 16%, rgba(14,13,12,0) 30%); }
}
/* a capture of a site whose own header would sit under the masthead: lifted so its header is just off the screen
   (the store's header is 21.7% of the phone capture's width, 6.5% of the desktop's); the subtitle's grade covers
   the foot it leaves */
.cs-full.cs-nohead > img { inset: auto; left: 0; top: -21.7vw; width: 100%; height: auto; object-fit: initial; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) { .cs-full.cs-nohead > img { top: -6.5vw; } }
.cs-full.cs-nohead::after { content: ""; position: absolute; inset: 0 0 auto; height: calc(var(--mast) + 40px); background: linear-gradient(to bottom, rgba(14,13,12,.6), rgba(14,13,12,0)); pointer-events: none; }
/* the stall: Adam to the right of the square, so a phone keeps him in */
.cs-stall > img { object-position: 64% 50%; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) { .cs-stall > img { object-position: 50% 26%; } }

/* the work, the colour engine (lab 1B): the store's colourways fill the screen; a tap floods the next one out from
   the finger and the bag drops into it */
.cs-flood { --f: #FE60DC; --fg: #1A1818; background: var(--f); overflow: hidden; }
.cs-fl-base, .cs-fl-new { position: absolute; inset: 0; background: var(--f); }
.cs-fl-new { z-index: 2; visibility: hidden; clip-path: circle(0 at var(--fx, 50%) var(--fy, 50%)); }
.cs-fl-new.run { visibility: visible; clip-path: circle(var(--fr, 150%) at var(--fx, 50%) var(--fy, 50%)); transition: clip-path 760ms cubic-bezier(.6, 0, .3, 1); }
.cs-fl-bag { position: absolute; left: 50%; top: 57%; width: min(86vw, 50svh); height: auto; max-width: none; transform: translate(-50%, -50%); filter: drop-shadow(0 18px 26px rgba(0,0,0,.16)); }
.cs-fl-new.run .cs-fl-bag { animation: cs-fl-drop 980ms cubic-bezier(.2, .9, .3, 1.12) both; }
@keyframes cs-fl-drop { from { transform: translate(-50%, -62%) rotate(-8deg) scale(.92); } to { transform: translate(-50%, -50%) rotate(0) scale(1); } }
.cs-fl-hit { position: absolute; inset: 0; z-index: 3; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cs-fl-hit:focus-visible { outline: 2px solid var(--fg); outline-offset: -8px; }
.cs-fl-head { position: absolute; z-index: 4; left: var(--pad); right: var(--pad); top: calc(var(--mast) + 16px); pointer-events: none; }
.cs-fl-head .lab { margin: 0 0 min(10px, 1.4svh); }
.cs-fl-foot { position: absolute; z-index: 4; left: var(--pad); right: var(--pad); bottom: calc(var(--foot) + 4px); margin: 0; display: flex; justify-content: space-between; gap: 16px; pointer-events: none;
  font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: var(--tr-label); text-transform: uppercase; line-height: 1.45; }
.cs-fl-ink { color: var(--fg); transition: color 260ms ease 300ms; }
.stage .cs-fl-ink .lab { color: inherit; opacity: .86; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .cs-fl-bag { left: 66%; top: 52%; width: min(44vw, 76svh); }
  .cs-fl-head { left: 8vw; right: auto; width: min(30rem, 33vw); top: 50%; transform: translateY(-50%); }
  .cs-fl-foot { left: 8vw; right: auto; width: min(30rem, 33vw); bottom: 6vh; }
}

/* Spotted in the wild (lab 2B): one photo a screen, as it was sent; taps on either side go back and on, its place the
   subtitle. A wide screen frames the photo over a blur of itself. */
.cs-stories { background: #1A1714; overflow: hidden; }
.cs-sr-blur { display: none; }
.cs-sr-pics { position: absolute; inset: 0; overflow: hidden; }
.cs-sr-pics img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; transition: opacity 320ms ease; }
.cs-sr-pics img.on { opacity: 1; }
.cs-sr-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(14,13,12,.9) 0, rgba(14,13,12,.55) 24%, rgba(14,13,12,0) 48%), linear-gradient(to bottom, rgba(14,13,12,.6) 0, rgba(14,13,12,0) 20%); }
.cs-sr-ticks { position: absolute; z-index: 5; left: var(--pad); right: var(--pad); top: calc(var(--mast) + 2px); display: flex; gap: 4px; pointer-events: none; }
.cs-sr-ticks i { flex: 1; height: 2px; border-radius: 1px; background: rgba(243,239,231,.32); transition: background var(--d-1) ease; }
.cs-sr-ticks i.on, .cs-sr-ticks i.seen { background: var(--chalk); }
.cs-sr-back, .cs-sr-next { position: absolute; z-index: 4; top: 0; bottom: 0; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cs-sr-back { left: 0; width: 32%; cursor: w-resize; }
.cs-sr-next { left: 32%; right: 0; cursor: e-resize; }
.cs-sr-back:focus-visible, .cs-sr-next:focus-visible { outline: 2px solid var(--chalk); outline-offset: -6px; }
.cs-sr-words { position: absolute; z-index: 5; left: var(--pad); right: var(--pad); bottom: calc(var(--foot) + 18px); pointer-events: none; }
.cs-sr-words .lab { margin: 0 0 6px; }
.cs-sr-words .cs-txt { margin-top: min(10px, 1.4svh); color: rgba(243,239,231,.82); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .cs-sr-blur { display: block; position: absolute; inset: 0; overflow: hidden; }
  .cs-sr-blur img { position: absolute; inset: -10%; width: 120%; height: 120%; max-width: none; object-fit: cover; filter: blur(36px) saturate(1.2) brightness(.42); }
  .cs-sr-pics { inset: auto; right: 9vw; top: calc(var(--mast) + 3vh); height: calc(100% - var(--mast) - 9vh); aspect-ratio: 4 / 5; border-radius: 6px; box-shadow: 0 30px 70px rgba(0,0,0,.5); }
  .cs-sr-shade { display: none; }
  .cs-sr-ticks { left: auto; right: 9vw; top: calc(var(--mast) + 3vh - 12px); width: calc((100svh - var(--mast) - 9vh) * .8); }
  .cs-sr-words { left: 8vw; right: auto; width: min(30rem, 33vw); top: 50%; bottom: auto; transform: translateY(-50%); }
}

/* =========================================================================================================
   Hushero, Mandinga and ClearMile's pieces (3 Nov 2026): colour fields, an app's screens, the orb (lab 3A with 3B's
   stars), the turning card (lab 4F), the eight directions, a document, the windows that fold into one (lab 5D), and
   drawn panels. Each project's colours are its own (tokens.css).
   ========================================================================================================= */
/* a field of the project's colour, for the screens that have no photograph of their own */
.cs-field { background: var(--fc, var(--night)); }
.cs-field.plum { --fc: radial-gradient(110% 70% at 50% 40%, #2F1D3E 0, #241730 50%, #1C0C27 100%); background: var(--fc); }
.cs-field.apricot { background: radial-gradient(120% 80% at 70% 30%, #F4A67C 0, #EF8A5C 55%, #D9714A 100%); }
.cs-field.sand { background: #F2E8D5; }
.cs-field.navy-md { background: #1B2A41; }
.cs-field.amber { background: #D89A4A; }
.cs-field.navy { background: radial-gradient(120% 80% at 70% 30%, #0D2A44 0, #081C2E 60%, #06141F 100%); }
.cs-field.white { background: #FFF; }
.cs-field.green { background: #4FB37E; }
/* words set on a light field */
.cs-ink, .stage .cs-ink .lab { color: #1B2A41; }
.stage .cs-ink .lab { opacity: .78; }
.cs-ink .cs-txt { color: rgba(27,42,65,.82); }
.cs-plumink, .stage .cs-plumink .lab { color: #1C0C27; }
.stage .cs-plumink .lab { opacity: .78; }
.cs-plumink .cs-txt { color: rgba(28,12,39,.82); }
.cs-point.cs-plumink .cs-txt { color: rgba(28,12,39,.84); }
.cs-point.cs-ink .cs-txt { color: rgba(27,42,65,.84); }
/* a sub (the brief) on a light field */
.sub.cs-ink { color: #1B2A41; }
.sub.cs-ink .lab { color: rgba(27,42,65,.72); }

/* one strong sentence alone on a field (a detail, a quote), in the middle of the screen */
.cs-say { position: absolute; left: var(--pad); right: var(--pad); top: var(--mast); bottom: calc(var(--foot) + 20px); display: flex; flex-direction: column; justify-content: center; gap: min(18px, 2.4svh); }
.cs-say > * { margin: 0; }
.cs-say .cs-sen { max-width: 12em; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) { .cs-say { left: 8vw; right: 8vw; } }

/* a picture set on a field, whole (a mark, a document's cover), above the subtitle */
.cs-mark { display: flex; align-items: center; justify-content: center; padding: calc(var(--mast) + 2svh) var(--pad) 40%; }
.cs-mark img { display: block; width: auto; height: auto; max-width: min(78vw, 46svh); max-height: 100%; }
.cs-mark.doc img { max-width: min(70vw, 40svh); box-shadow: 0 24px 60px rgba(27,42,65,.28); border-radius: 4px; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .cs-mark { padding: calc(var(--mast) + 3vh) 8vw 26vh; }
  .cs-mark img { max-width: 40vw; }
  .cs-mark.doc img { max-width: 34vw; }
}
/* a subtitle on a light field: no grade, the words in the field's ink */
.cs-subt.cs-ink .cs-sen { color: #1B2A41; }

/* an app's screens: a phone fills the screen with it (its status bar lifted off under the masthead); a wide screen
   stands it whole, as a phone, over its own colour */
.cs-app { background: #1C0C27; overflow: hidden; }
.cs-app > img { position: absolute; left: 0; top: -8.6vw; width: 100%; height: auto; max-width: none; }
.cs-app::after { content: ""; position: absolute; inset: 0 0 auto; height: calc(var(--mast) + 30px); background: linear-gradient(to bottom, rgba(14,13,12,.55), rgba(14,13,12,0)); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .cs-app { background: radial-gradient(60% 60% at 50% 40%, #2F1D3E 0, #1C0C27 70%); }
  .cs-app > img { left: 50%; top: calc(var(--mast) + 3vh); width: auto; height: 66svh; transform: translateX(-50%); border-radius: 28px; box-shadow: 0 0 0 1px rgba(196,184,240,.18), 0 30px 80px rgba(0,0,0,.5); }
  .cs-app::after { display: none; }
  /* the phone stands whole above its subtitle, so nothing shades it */
  .cs-app + .cs-subt-grade { display: none; }
  .cs-app > img { height: 70svh; }
}
/* a capture of a site whose own header would sit under the masthead: --hd and --hdw are its header's height as a
   share of the phone and desktop captures' widths (Better Totes' by default) */
.cs-full.cs-nohead > img { top: calc(-1 * var(--hd, 21.7vw)); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) { .cs-full.cs-nohead > img { top: calc(-1 * var(--hdw, 6.5vw)); } }

/* ClearMile's portal: its own screens, whole, in its own dark mode, captured on test data (Adam, 6 Nov 2026: "dark").
   A phone fills with one over the portal's own colour (--bg), so no edge shows, the portal's header tucked under the
   masthead (--hd: its height as a share of the capture's width). A wide screen stands a driver's screen whole, as a
   phone, and a team screen (.win) whole, as a window. The wide rule follows the film's own test for the wide picture
   (any screen wider than tall), so the layout always matches the file loaded */
.cs-screen { background: var(--bg, #0E141E); overflow: hidden; }
.stage .cs-screen > img { position: absolute; inset: auto; left: 0; top: calc(var(--mast) - var(--hd, 14.62vw)); width: 100%; height: auto;
  max-width: none; object-fit: fill; clip-path: inset(var(--hd, 14.62vw) 0 0 0); }
.cs-subt .cs-cred, .sub .cs-cred { color: var(--chalk-2); }
/* a phone: the brief's words are long and start higher or lower with the phone, so their shade is theirs, solid from
   just above the first line to the foot, and the screen shows clean above it */
@media (max-aspect-ratio: 1/1) {
  #the-brief .cs-screen ~ .grade-deep { display: none; }
  #the-brief .cs-screen ~ .sub.long { z-index: 1; }
  #the-brief .cs-screen ~ .sub.long::before { content: ""; position: absolute; z-index: -1; left: calc(-1 * var(--pad)); width: 100vw;
    top: -72px; bottom: calc(-1 * (var(--foot) + 40px)); background: linear-gradient(to bottom, rgba(14, 13, 12, 0), #0E0D0C 60px); }
}
@media (min-aspect-ratio: 1/1) {
  /* --sh: the screen's height, as tall as the room above its subtitle allows (the subtitle, its label and the foot
     take up to 245px of a short laptop's screen) */
  .cs-screen { --sh: min(58svh, 100svh - var(--mast) - 3vh - 245px); background: radial-gradient(120% 80% at 50% 30%, #0D2A44 0, #081C2E 60%); }
  .stage .cs-screen > img { left: 50%; top: calc(var(--mast) + 3vh); width: auto; height: var(--sh); transform: translateX(-50%); clip-path: none;
    border-radius: 26px; box-shadow: 0 0 0 1px rgba(243, 239, 231, .16), 0 30px 80px rgba(0, 0, 0, .5); }
  .stage .cs-screen.win > img { width: min(84vw, var(--sh) * 1.6); height: auto; border-radius: 10px; }
  /* the screen stands whole above its subtitle, so nothing shades it */
  .cs-screen + .cs-subt-grade { display: none; }
  /* the brief: the phone stands in the right half, beside the brief's words, as the other briefs' pictures do; the
     words sit on the plain navy beside it, so nothing shades the phone */
  #the-brief .cs-screen ~ .grade-deep { display: none; }
  .cs-brief .stage .cs-screen > img { left: 75%; top: 50%; height: 76svh; transform: translate(-50%, -50%); }
}

/* ---------- Hushero, the work: the orb (lab 3A, with 3B's stars). Tap it: a ring goes out, the orb goes, and the
   five stars pop in one by one where it was, then the app's own line ---------- */
.cs-orb { background: radial-gradient(120% 80% at 50% 36%, #2A1938 0, #22152E 55%, #1C0C27 100%); }
.cs-orb-stage { position: absolute; left: 50%; top: calc(var(--mast) + 2svh); width: min(104vw, 58svh); aspect-ratio: 1; transform: translateX(-50%); }
.cs-orb-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; -webkit-mask-image: radial-gradient(closest-side, #000 80%, transparent 100%); mask-image: radial-gradient(closest-side, #000 80%, transparent 100%);
  transition: transform 600ms var(--ease), opacity 500ms ease; }
.cs-orb-stage:has(.cs-orb-hit:active) .cs-orb-img { transform: scale(.97); }
.cs-orb-ring { position: absolute; left: 50%; top: 50%; width: 40%; aspect-ratio: 1; border-radius: 50%; border: 2px solid #F4A67C; opacity: 0; transform: translate(-50%, -50%); pointer-events: none; }
.cs-orb-hit { position: absolute; left: 50%; top: 50%; width: 44%; aspect-ratio: 1; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transform: translate(-50%, -50%); -webkit-tap-highlight-color: transparent; }
.cs-orb-hit:focus-visible { outline: 2px solid var(--chalk); outline-offset: 6px; }
.cs-orb-win { position: absolute; left: 0; right: 0; top: 50%; display: flex; flex-direction: column; align-items: center; gap: min(20px, 2.6svh); transform: translateY(-50%); pointer-events: none; }
.cs-stars { display: flex; gap: min(12px, 1.6svh); }
.cs-stars i { display: block; width: min(46px, 5.8svh); aspect-ratio: 1; opacity: 0; background: #E8A93B; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.cs-stars i.lit { opacity: 1; animation: cs-pop 520ms cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes cs-pop { 0% { opacity: 0; transform: scale(.3); } 65% { transform: scale(1.22); } 100% { opacity: 1; transform: scale(1); } }
.cs-orb-win .cs-sen { text-align: center; opacity: 0; transform: translateY(10px); transition: opacity 500ms ease, transform 800ms var(--ease); }
.cs-orb.in-bed .cs-orb-img { opacity: 0; transform: scale(.82); transition-delay: 260ms; }
.cs-orb.in-bed .cs-orb-ring { animation: cs-ring 1100ms ease-out both; }
.cs-orb.in-bed .cs-orb-win .cs-sen { opacity: 1; transform: none; transition-delay: 1350ms; }
@keyframes cs-ring { from { opacity: .9; transform: translate(-50%, -50%) scale(1); } to { opacity: 0; transform: translate(-50%, -50%) scale(2.6); } }
.cs-orb-words { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: calc(var(--foot) + 14px); pointer-events: none; }
.cs-orb-words .lab { margin: 0 0 min(10px, 1.4svh); }
.cs-orb-words .cs-txt { margin-top: min(12px, 1.6svh); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .cs-orb-stage { left: 66%; top: 50%; width: min(48vw, 86svh); transform: translate(-50%, -50%); }
  .cs-orb-words { left: 8vw; right: auto; width: min(30rem, 33vw); top: 50%; bottom: auto; transform: translateY(-50%); }
}

/* ---------- Mandinga, the work: the shop as a card (lab 4F); a tap anywhere turns it over to her store ---------- */
.cs-flipwrap { background: #F2E8D5; cursor: pointer; }
.cs-flip-head { position: absolute; z-index: 4; left: var(--pad); right: var(--pad); top: calc(var(--mast) + 16px); pointer-events: none; }
.cs-flip-head .lab { margin: 0 0 min(10px, 1.4svh); }
.cs-flip { position: absolute; left: var(--pad); right: var(--pad); top: calc(var(--mast) + min(140px, 23svh)); bottom: calc(var(--foot) + 58px); perspective: 1600px; }
.cs-fp-lift { position: absolute; inset: 0; }
.cs-fp-lift.turning { animation: cs-fp-lift 1100ms cubic-bezier(.5, 0, .2, 1); }
@keyframes cs-fp-lift { 50% { transform: scale(.88); } }
.cs-fp-card { position: absolute; inset: 0; cursor: pointer; outline: none; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; transition: transform 1100ms cubic-bezier(.5, 0, .2, 1); }
.cs-fp-card.over { transform: rotateY(180deg); }
.cs-fp-face { position: absolute; inset: 0; overflow: hidden; border-radius: 14px; background: #FFF; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 22px 50px rgba(27,42,65,.18), 0 0 0 1px rgba(27,42,65,.08); }
.cs-fp-face img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0; user-select: none; -webkit-user-drag: none; }
.cs-fp-was img { object-position: 8% 0; }
.cs-fp-now { transform: rotateY(180deg); }
/* the faces also swap exactly halfway through the turn, when the card is edge on, so the back never shows mirrored
   even where a browser composites a face's picture on its own and lets it show through */
.cs-fp-now { opacity: 0; transition: opacity 0s linear 425ms; }
.cs-fp-was { opacity: 1; transition: opacity 0s linear 425ms; }
.cs-fp-card.over .cs-fp-now { opacity: 1; }
.cs-fp-card.over .cs-fp-was { opacity: 0; }
.cs-fp-card:focus-visible { outline: 2px solid #1B2A41; outline-offset: 4px; border-radius: 14px; }
.cs-flip-act { position: absolute; z-index: 4; left: var(--pad); right: var(--pad); bottom: calc(var(--foot) + 2px); }
.stage .cs-flip-act .go { color: #1B2A41; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .cs-flip-head { left: 8vw; right: auto; width: min(30rem, 30vw); top: 50%; transform: translateY(-50%); }
  .cs-flip { left: 42vw; right: 5vw; top: 50%; bottom: auto; aspect-ratio: 16 / 10; transform: translateY(-50%); }
  .cs-fp-was img { object-position: 50% 0; }
  .cs-flip-act { left: 8vw; right: auto; bottom: 6vh; }
}

/* ---------- Mandinga, what I did: the eight directions, Sun and Sea picked out (a phone: the logos two across; a
   wide screen: the deck's own slide) ---------- */
.cs-eight { background: #F2E8D5; padding: calc(var(--mast) + 2svh) var(--pad) 40%; display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 8px; }
.cs-eight img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: contain; border-radius: 8px; background: #FCF8F0; opacity: .5; }
.cs-eight img.chosen { opacity: 1; box-shadow: 0 0 0 2px #D89A4A, 0 12px 30px rgba(27,42,65,.18); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .cs-eight { grid-template-columns: repeat(4, 1fr); gap: 14px; padding: calc(var(--mast) + 6vh) 10vw 30vh; }
}

/* ---------- ClearMile, the work: the windows that fold into one (lab 5D); a tap anywhere joins them ---------- */
.cs-winwrap { background: #081C2E; cursor: pointer; }
.cs-wins { position: absolute; left: var(--pad); right: var(--pad); top: calc(var(--mast) + 40px); bottom: calc(var(--foot) + min(206px, 34svh)); container-type: size; }
.cs-win { --bh: min(34px, 9cqh); position: absolute; left: var(--x); top: var(--y); width: 58cqw; height: 26cqh; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(243,239,231,.5); border-radius: 10px; background: #0D2A44; box-shadow: 0 14px 30px rgba(0,0,0,.35); transform: rotate(var(--r));
  transition: left 900ms cubic-bezier(.6, 0, .25, 1), top 900ms cubic-bezier(.6, 0, .25, 1), width 900ms cubic-bezier(.6, 0, .25, 1), height 900ms cubic-bezier(.6, 0, .25, 1), transform 900ms cubic-bezier(.6, 0, .25, 1), border-color 500ms ease, box-shadow 600ms ease;
  transition-delay: calc(var(--n) * 80ms); }
.cs-win-bar { flex: none; display: flex; align-items: center; gap: 10px; height: var(--bh, min(34px, 9cqh)); padding: 0 12px; border-bottom: 1px solid rgba(243,239,231,.22); color: var(--chalk); font-family: var(--font-text); font-size: .875rem; white-space: nowrap; transition: border-color 400ms ease; }
.cs-win-k { flex: none; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(243,239,231,.6); transition: background 400ms ease, border-color 400ms ease; }
.cs-win-body { flex: 1; display: flex; flex-direction: column; gap: 7px; padding: 12px; transition: opacity 300ms ease; }
.cs-win-body i { display: block; height: 6px; border-radius: 3px; background: rgba(243,239,231,.16); }
.cs-win-body i:nth-child(2) { width: 72%; } .cs-win-body i:nth-child(3) { width: 48%; }
.cs-win-one { position: absolute; left: 0; top: 4cqh; width: 100cqw; height: 92cqh; border: 1.5px solid #3AACD9; border-radius: 12px; background: #0B2339; opacity: 0; transform: scale(.96); transition: opacity 500ms ease, transform 700ms var(--ease); }
.cs-win-one .cs-win-bar { border-bottom-color: rgba(58,172,217,.4); }
.stage .cs-win-one .cs-win-bar .lab { color: var(--chalk); }
.cs-wins.joined .cs-win-one { opacity: 1; transform: none; transition-delay: 500ms; }
/* a phone: the joined tools sit two to a row at the top (--c their column, --rr their row), so the team's worklist
   below them has the window's whole width and can be read */
.cs-wins.joined .cs-win { --bh: min(36px, 10cqh); left: calc(3cqw + var(--c, 0) * 48cqw); top: calc(4cqh + min(34px, 9cqh) + 3cqh + var(--rr, 0) * (min(36px, 10cqh) + 6px)); width: 46cqw; height: min(36px, 10cqh); transform: none; box-shadow: none; border-color: rgba(58,172,217,.35); transition-delay: calc(var(--n) * 80ms + 200ms); }
.cs-wins.joined .cs-win-body { opacity: 0; }
.cs-wins.joined .cs-win-bar { border-bottom-color: transparent; }
.cs-wins.joined .cs-win-k { background: #3AACD9; border-color: #3AACD9; transition-delay: calc(1200ms + var(--n) * 110ms); }
/* the team's side, beside the tools once they're joined: drawn from the brief */
.cs-win-side { position: absolute; left: 3cqw; right: 3cqw; top: calc(4cqh + min(34px, 9cqh) + 6cqh + 3 * (min(36px, 10cqh) + 6px)); bottom: 7cqh; display: flex; flex-direction: column; opacity: 0; transform: translateY(8px); transition: opacity 500ms ease, transform 700ms var(--ease); }
.stage .cs-win-side .lab { color: rgba(243,239,231,.6); margin: 0 0 6px; }
.cs-ws-h { margin: 0 0 10px; font-family: var(--font-text); font-weight: 500; font-size: .9375rem; line-height: 1.25; color: var(--chalk); }
.cs-ws-list, .cs-ws-work { margin: 0 0 min(16px, 3cqh); padding: 0; list-style: none; display: flex; flex-direction: column; gap: min(10px, 2cqh); }
.cs-ws-list li { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding-bottom: min(9px, 1.8cqh); border-bottom: 1px solid rgba(243,239,231,.12); }
.cs-ws-bar { display: block; width: 78%; height: 6px; border-radius: 3px; background: rgba(243,239,231,.2); }
.cs-ws-list li:nth-child(2) .cs-ws-bar { width: 62%; } .cs-ws-list li:nth-child(3) .cs-ws-bar { width: 70%; }
.cs-ws-chip { padding: 3px 7px; border-radius: 99px; font-family: var(--font-mono); font-size: .5625rem; letter-spacing: var(--tr-label); text-transform: uppercase; white-space: nowrap; }
.cs-ws-chip.ok { background: rgba(58,172,217,.18); color: #8FD3EE; }
.cs-ws-chip.held { border: 1px solid rgba(243,239,231,.45); color: var(--chalk); }
.cs-ws-work li { display: flex; align-items: center; gap: 8px; font-family: var(--font-text); font-size: .8125rem; color: rgba(243,239,231,.82); }
.cs-ws-work li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #3AACD9; }
.cs-wins.joined .cs-win-side { opacity: 1; transform: none; transition-delay: 1300ms; }
/* the team's side is the portal's real worklist, captured on test data and labelled so; the tools stay drawn, and the
   "drawing" note steps aside once the real screen is in the window */
.cs-win-real { align-items: center; }
.cs-win-real img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100% - 26px); min-height: 0; border-radius: 6px; box-shadow: 0 0 0 1px rgba(243,239,231,.14); }
.cs-drawn-note { transition: opacity 400ms ease; }
.cs-wins.joined ~ .cs-drawn-note { opacity: 0; }
@container (max-height: 340px) { .cs-ws-wl { display: none; } .cs-ws-list li { padding-bottom: 6px; } .cs-ws-list { gap: 6px; } }
.cs-win-words { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: calc(var(--foot) + 14px); }
.cs-win-words .lab { margin: 0 0 min(10px, 1.4svh); }
.stage .cs-win-words .go { margin-top: min(10px, 1.2svh); }
.cs-drawn-note { position: absolute; z-index: 4; right: var(--pad); top: calc(var(--mast) + 14px); margin: 0; pointer-events: none; }
.stage .cs-drawn-note { color: rgba(243,239,231,.5); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .cs-wins { left: 40vw; right: 4vw; top: calc(var(--mast) + 4vh); bottom: 6vh; }
  .cs-win { --bh: min(48px, 7cqh); width: 46cqw; height: 30cqh; }
  .cs-win-bar { font-size: 1.125rem; padding: 0 18px; gap: 12px; }
  .cs-win-k { width: 11px; height: 11px; }
  .cs-win-body { padding: 18px; gap: 11px; }
  .cs-win-body i { height: 8px; border-radius: 4px; }
  .cs-wins.joined .cs-win { --rh: min(88px, (84cqh - min(48px, 7cqh) - 48px) / 5); --bh: var(--rh); left: 3cqw; width: 40cqw; height: var(--rh); top: calc(4cqh + min(48px, 7cqh) + 4cqh + var(--n) * (var(--rh) + 12px)); }
  .cs-wins.joined .cs-win-bar { font-size: 1.25rem; gap: 14px; padding: 0 22px; }
  .cs-win-one .cs-win-bar { height: min(48px, 7cqh); }
  .cs-win-side { left: 48cqw; right: 5cqw; top: calc(4cqh + min(48px, 7cqh) + 4cqh); bottom: auto; }
  .cs-win-real { align-items: stretch; }
  .cs-win-real img { width: 100%; max-height: none; }
  .stage .cs-win-side .lab { margin-bottom: 10px; }
  .cs-ws-h { font-size: min(1.625rem, 4cqh); margin-bottom: min(22px, 3cqh); }
  .cs-ws-list li { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: min(22px, 3cqh); }
  .cs-ws-bar { width: 46%; height: 10px; border-radius: 5px; }
  .cs-ws-chip { font-size: .75rem; padding: 6px 12px; }
  .cs-ws-work li { font-size: min(1.125rem, 2.8cqh); gap: 12px; }
  .cs-ws-work li::before { width: 8px; height: 8px; }
  .cs-ws-list, .cs-ws-work { gap: min(22px, 3cqh); margin-bottom: min(40px, 5cqh); }
  .cs-win-words { left: 8vw; right: auto; width: min(26rem, 28vw); top: 50%; bottom: auto; transform: translateY(-50%); }
  .cs-drawn-note { right: 4vw; }
}

/* ---------- ClearMile, what I did: drawn panels (cm-story.css draws them) on navy, above the subtitle ---------- */
.cs-drawn { background: radial-gradient(120% 80% at 50% 30%, #0D2A44 0, #081C2E 60%); display: flex; align-items: center; justify-content: center; padding: calc(var(--mast) + 2svh) var(--pad) 38%; }
.cs-drawn figure { width: 100%; max-width: 380px; margin: 0; }
.cs-drawn .dg-cap { margin: 10px 0 0; text-align: center; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .cs-drawn { padding: calc(var(--mast) + 3vh) 8vw 26vh; }
  .cs-drawn figure { max-width: 560px; }
}
/* a prototype's capture, whole, on navy */
.cs-proto { background: radial-gradient(120% 80% at 50% 30%, #0D2A44 0, #081C2E 60%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: calc(var(--mast) + 2svh) var(--pad) 42%; }
.cs-proto img { display: block; width: 100%; height: auto; max-width: 100%; border-radius: 8px; box-shadow: 0 0 0 1px rgba(243,239,231,.12), 0 24px 60px rgba(0,0,0,.45); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) { .cs-proto { padding: calc(var(--mast) + 3vh) 14vw 28vh; } .cs-proto img { width: auto; max-height: 100%; } }
/* the portal's real screens, captured from its own code on test data (Adam, 5 Nov 2026), framed on navy like a
   prototype's capture, each as large as its screen allows: --a is the capture's width over its height, --aw the wide
   capture's. The pictures change with the screen's shape (film.js), so their sizes key on the same test */
.cs-real { background: radial-gradient(120% 80% at 50% 30%, #0D2A44 0, #081C2E 60%); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: calc(var(--mast) + 2svh) var(--pad) max(50%, 200px); }
.cs-real .shots { flex: 1 1 0; min-height: 0; width: 100%; container-type: size; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.cs-real img { display: block; flex: none; height: auto; width: min(100cqw, 100cqh * var(--a, 1)); border-radius: 8px; box-shadow: 0 0 0 1px rgba(243,239,231,.12), 0 24px 60px rgba(0,0,0,.45); }
.stage .cs-real > .lab { margin: 0; color: var(--chalk-2); }
/* a pair (the quote form and its readback): stacked on a phone at one width, side by side on a wide screen at one height
   (1.2737 is the sum of their heights over widths stacked; 2.5375 the sum of their widths over heights side by side) */
.cs-pair img { width: min(100cqw, (100cqh - 10px) / 1.2737); }
@media (min-aspect-ratio: 1/1) {
  .cs-real img { width: min(100cqw, 100cqh * var(--aw, var(--a, 1))); }
  .cs-pair .shots { flex-direction: row; }
  .cs-pair img { width: auto; height: min(100cqh, (100cqw - 10px) / 2.5375); }
}
@media (min-width: 900px) and (min-aspect-ratio: 1/1) { .cs-real { padding: calc(var(--mast) + 3vh) 8vw 28vh; } }
/* light fields: the brief, the subtitles and the slate in the field's ink; sand words on her navy */
.sub.cs-onfield { text-shadow: none; }
/* its lines carry the sand under them while it's on screen (--e, its shot's presence): invisible there, and it lets a
   contrast checker see what a reader sees; on the title, where --e is 0, they carry nothing */
.sub.cs-onfield .ln, .sub.cs-onfield .ln > span { background: rgba(242, 232, 213, var(--e, 0)); }
.cs-subt.cs-ink .lab { color: rgba(27,42,65,.72); }
.cs-ink .cs-slate { border-top-color: rgba(27,42,65,.28); }
.cs-ink .cs-slate b { color: #1B2A41; }
.cs-sandink, .cs-sandink .cs-sen { color: #F2E8D5; }
.stage .cs-sandink .lab { color: rgba(242,232,213,.7); }
/* Mandinga: the brand's sun, large, over the sand; her logo over the one What it shows screen */
.cs-sun { position: absolute; left: 50%; top: calc(var(--mast) + 4svh); width: min(80vw, 44svh); height: auto; transform: translateX(-50%); overflow: visible; }
.cs-logo > img { position: absolute; left: 50%; top: calc(var(--mast) + 6svh); width: min(84vw, 52svh); height: auto; transform: translateX(-50%); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .cs-sun { left: 72%; top: 50%; width: min(36vw, 60svh); transform: translate(-50%, -60%); }
  .cs-logo > img { left: 68%; top: 50%; width: min(44vw, 70svh); transform: translate(-50%, -50%); }
}
/* a light capture keeps its own header's ground; no shade under the masthead, and the subtitle sits on her sand */
.cs-full.cs-nohead.light::after { display: none; }
.cs-subt-grade.sandgrade { background: linear-gradient(to top, #F2E8D5 0, #F2E8D5 28%, rgba(242,232,213,.85) 38%, rgba(242,232,213,0) 54%); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) { .cs-subt-grade.sandgrade { background: linear-gradient(to top, #F2E8D5 0, #F2E8D5 22%, rgba(242,232,213,.85) 32%, rgba(242,232,213,0) 46%); } }
/* Hushero: the last plum field warmed by its apricot */
.cs-field.plum.cs-glow-apricot { background: radial-gradient(60% 40% at 50% 34%, rgba(239,138,92,.42) 0, rgba(239,138,92,0) 70%), radial-gradient(110% 70% at 50% 40%, #2F1D3E 0, #241730 50%, #1C0C27 100%); }
/* ClearMile: a route drawn across its navy, chalk where it wanders, cyan where it joins */
.cs-route-svg { position: absolute; left: 0; right: 0; top: calc(var(--mast) + 4svh); width: 100%; height: 44%; overflow: visible; }
.cs-route-svg path { fill: none; stroke: #3AACD9; stroke-width: 2; vector-effect: non-scaling-stroke; opacity: .8; }
.cs-route-svg path.b { stroke: rgba(243,239,231,.55); }
.cs-route-svg path.dash { stroke: rgba(243,239,231,.6); stroke-dasharray: 5 6; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) { .cs-route-svg { left: 40%; width: 60%; top: 20%; height: 60%; } }
.stage .cs-proto .lab { color: var(--chalk-2); }
html.reduced .cs-fp-card, html.reduced .cs-fp-face { transition: none; }
/* ClearMile's record: its green Settled chips a touch darker than the portal's, to read at 4.5:1 or better */
body.clearmile .cmrec .cm-rec.ok .cm-chip { color: #17703F; }

/* ---------- the hand over to the next case study: as its letters open, the opening's words go, the picture's lift
   (the glow under the letters) falls away, and on a phone the shade its brief opens under comes up, so the last frame
   here is the first frame there ---------- */
.cs-arrive .cs-intro { transition: opacity 260ms ease; }
.cs-arrive.leaving .cs-intro { opacity: 0; }
.cs-arrive-shade { opacity: 0; pointer-events: none; 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%); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) { .cs-arrive-shade { display: none; } }
/* the studio's card (ClearMile's Next): its shade is the studio profile screen's own (.cs-shows-shade), on every
   screen, so the page it opens is the same picture under the same shade */
.cs-arrive-shade.cs-shade-studio { background: linear-gradient(to top, rgba(14,13,12,.94) 0, rgba(14,13,12,.84) 30%, rgba(14,13,12,.2) 56%, rgba(14,13,12,0) 72%); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) { .cs-arrive-shade.cs-shade-studio { display: block; background: linear-gradient(to right, rgba(14,13,12,.9) 0, rgba(14,13,12,.6) 40%, rgba(14,13,12,0) 70%), linear-gradient(to top, rgba(14,13,12,.6), rgba(14,13,12,0) 40%); } }
/* and its letters hold a plain patch of the wall behind Adam, as every title does, then the tap pulls back to the
   portrait exactly as the studio's profile screen frames it, its shift on a short phone included (.portrait, film.css),
   so the page it opens is the same picture in the same place */
[data-lift] .zoomin.cs-studio-pic > img { --k: calc(1 - clamp(0, var(--s, 0) / .85, 1)); transform-origin: var(--px) var(--py);
  transform: translateY(var(--sh, 0%)) translate(calc((var(--cx, 50%) - var(--px)) * var(--k)), calc((var(--cy, 46%) - var(--py)) * var(--k))) scale(calc(1 + var(--zs) * var(--k))); }
.cs-studio-pic { --px: 13%; --py: 20%; --zs: 3; }
@media (max-aspect-ratio: 1/1) and (max-height: 720px) { .cs-studio-pic { --sh: -8%; } }
@media (min-aspect-ratio: 1/1) { .cs-studio-pic { --px: 15%; --py: 40%; } }
html.reduced [data-lift] .zoomin.cs-studio-pic > img { transform: translateY(var(--sh, 0%)); }

/* the last screen is one link, its whole screen: a plain cue at its foot says so */
.cs-arrive .cs-go { display: block; margin-top: min(18px, 2.4svh); }
.cs-arrive .cs-go .go { min-height: 0; color: var(--chalk); }
.cs-arrive .cs-intro > .lab { display: block; margin-bottom: 6px; color: var(--chalk-2); }
@media (hover: hover) { .cs-arrive:hover .cs-go .ar { transform: translateX(4px); } }

/* a bright picture under a long block of words (Better Totes' Abode): the shade comes up higher and deeper, so the words
   read on night rather than on the shop window */
.cs-toned.own.top.deep .shade { background: linear-gradient(to bottom, rgba(14,13,12,.45) 0, rgba(14,13,12,0) 18%), linear-gradient(to top, var(--night) 0, var(--night) 18%, rgba(14,13,12,.9) 40%, rgba(14,13,12,.45) 62%, rgba(14,13,12,0) 82%); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .cs-toned.own.top.deep .shade { background: linear-gradient(to bottom, rgba(14,13,12,.45) 0, rgba(14,13,12,0) 14%), linear-gradient(to right, var(--night) 0, rgba(14,13,12,.92) 34%, rgba(14,13,12,.55) 56%, rgba(14,13,12,0) 78%); }
}

/* the masthead is the logo and the index only (Adam, 4 Nov 2026): each screen's own label already says where you are,
   so the masthead doesn't repeat it */
.mast .mark { display: none; }

/* ---------- the studio (approved 4 Nov 2026): Adam's green for the screens that are his voice alone ---------- */
.cs-field.adam { background: radial-gradient(120% 80% at 28% 18%, #1F7A4C 0, #14532F 52%, #0B2E1C 100%); }
.cs-field.night { background: var(--night); }
.cs-say .cs-txt { margin-top: min(4px, .6svh); color: rgba(243,239,231,.84); }
/* Build: each kind goes to its proof */
.cs-kinds { margin: min(14px, 1.8svh) 0 0; border-top: 1px solid rgba(243,239,231,.18); }
.cs-kinds > div { display: flex; align-items: baseline; gap: 14px; padding: min(11px, 1.4svh) 0; border-bottom: 1px solid rgba(243,239,231,.12); }
.cs-kinds dt { flex: none; width: 8.5em; margin: 0; }
.cs-kinds dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.cs-kinds a { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 500; font-size: min(1.25rem, 3svh); color: var(--chalk); text-decoration: none; }
.cs-kinds a .ar { font-family: var(--font-text); font-size: .85em; transition: transform var(--d-1) var(--ease); }
@media (hover: hover) { .cs-kinds a:hover .ar { transform: translateX(4px); } }
.cs-say .cs-foot-txt { margin-top: min(14px, 1.8svh); font-size: min(.9375rem, 2.2svh); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) { .cs-kinds { max-width: 40rem; } .cs-kinds a { font-size: 1.5rem; } }
/* the studio's opening: the homepage's own #land rule (film.css: its dates wait for the dive) matched the studio's
   opening too, so its dates never showed; here they rise with the title card after the cold open, as written */
body.studio #land .dates { opacity: 1; }
/* a short phone: the opening's dates, the receipt and After the audit fit their screen */
@media (max-height: 640px) {
  body.studio #land .dates.opening .phrase { font-size: min(2rem, 6.4svh); }
  body.studio #land .dates.opening ol { gap: 1.6svh; margin-top: 2svh; }
  body.studio #land .dates.opening .d { font-size: min(1.375rem, 4svh); }
  body.studio #land .dates .n { font-size: .875rem; }
  body.studio .brands li { font-size: min(1.75rem, 4.8svh); }
  body.studio .brands { margin: 1.6svh 0 2svh; }
  body.studio #after .titles { justify-content: center; }
  body.studio #after .credits.left dd { font-size: .875rem; line-height: 1.4; }
  body.studio #after .credits.left > div { padding-block: .9svh; }
}
/* the studio's opening reads over its whole picture (the phrase sits on the sky): a deeper shade, top to bottom, and
   the gap under the phrase the homepage's #land rule takes away */
body.studio #land .grade-deep { background: linear-gradient(to bottom, rgba(14,13,12,.72) 0, rgba(14,13,12,.62) 40%, rgba(14,13,12,.9) 100%); }
body.studio #land .dates.opening ol { margin-top: min(26px, 3svh); }

/* ---------- the close (lab C, Adam, 4 Nov 2026): the credits roll over the project's last frame, faded down, as a
   film's do; the ask is on Adam's green; the end credits on paper, in ink, as the live site's footer (their styles are
   in film.css, shared with the homepage) ---------- */
.cs-lastframe > img { object-position: 50% 50%; }
.cs-lastframe-dim { background: rgba(14,13,12,.66); }
.cs-field.cs-lastframe + .cs-lastframe-dim { background: rgba(14,13,12,.35); }

/* the next case study's opening words, once the film is past them and the end credits lie over them (case.js) */
.scene.cs-past .cs-arrive { visibility: hidden; }
/* the credits' own picture (Adam: "the credits should be a new image not a repeat of the screen before"): one not
   used anywhere else in the case study; ClearMile's, a prototype, tinted into its navy and labelled */
.cs-lastframe-dim.navy { background: rgba(8,28,46,.86); }
.cs-proto-frame > img { object-position: 30% 50%; filter: grayscale(.3); }
/* a busy picture under the credits (a market, a prototype's own words, a store page): softened and faded further, so
   it's the place and its colours behind the credits, never something to read */
.cs-lastframe.soft > img { filter: blur(7px) saturate(1.05); transform: scale(1.06); }
.cs-proto-frame.soft > img { filter: blur(9px) grayscale(.3); }
.cs-lastframe-dim.deep { background: rgba(14,13,12,.74); }

/* the next page's first frame, under a plain coloured Next, waiting for the letters to open (case.js) */
.cs-arrive-img { opacity: 0; }

/* the studio's Say hello (Adam, 4 Nov 2026): on his green, as every case study's ask is; the button, then one short
   line under it, never wrapped round it */
body.studio #hello .hello-form .send .ln > span { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
body.studio #hello .send-note { font-family: var(--font-text); font-size: var(--t-small); color: rgba(243,239,231,.8); }
body.studio #hello .hello-form input { border-bottom-color: rgba(243,239,231,.55); }
body.studio #hello .hello-form input::placeholder { color: rgba(243,239,231,.62); }
body.studio #hello .lanes span { color: rgba(243,239,231,.74); text-decoration-color: rgba(243,239,231,.4); }
body.studio #hello .lanes input:checked + span { color: var(--chalk); text-decoration-color: var(--chalk); }
body.studio #hello .hello-form input:focus { border-bottom-color: var(--chalk); }
body.studio #hello .sent p + p { color: rgba(243,239,231,.86); }
@media (max-height: 640px) {
  body.studio #hello .say { font-size: min(3rem, 8.4svh); margin-bottom: 1.6svh; }
  body.studio #hello .hello-form { font-size: min(1.375rem, 3.7svh); line-height: 1.42; }
  body.studio #hello .hello-form input { min-height: 38px; }
  body.studio #hello .hello-form .send { margin-top: 1.8svh; }
}

/* ClearMile's own blue, lifted enough for its phrase to read on night; it deepens to its navy as the letters open */
.cs-cmblue { background: radial-gradient(120% 90% at 50% 40%, #3D82B4 0, #276393 50%, #17476E 100%); }
/* the studio's opening over the departures board: its big digits stay behind the dates, never among them */
body.studio #land .grade-deep { background: linear-gradient(to bottom, rgba(14,13,12,.84) 0, rgba(14,13,12,.8) 45%, rgba(14,13,12,.92) 100%); }

/* a project's picture toned in Adam's green (the studio: lab A, with his own projects' pictures) */
.cs-toned.green .tone { background: #2E8A5A; }
.cs-toned.green .shade { background: linear-gradient(to top, rgba(8,26,16,.96) 0, rgba(8,26,16,.88) 32%, rgba(8,26,16,.28) 62%, rgba(8,26,16,.06) 100%); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .cs-toned.green .shade { background: linear-gradient(to right, rgba(8,26,16,.95) 0, rgba(8,26,16,.82) 40%, rgba(8,26,16,.18) 76%); }
}
body.studio .cs-point .cs-txt { color: rgba(243,239,231,.84); }

/* the studio's form, if a send fails */
body.studio #hello .send-error { margin: 14px 0 0; font-family: var(--font-text); font-size: var(--t-small); color: var(--chalk); }
body.studio #hello .send-error a { color: inherit; }
