/* ==========================================================================
   Kasper Ljungstrøm Skov — v7 direction. One system for every page.

   The whole brand is in the first block: white page, ink type, ink stages.
   Colour is never decoration: a stage takes the colour of the project on it
   (Maersk navy, Valid8 teal), and green means "solved" inside illustrations.
   Three rules carry it everywhere:
     1. Work stands on a stage (a rounded field): ink by default, mist for
        light screens, a project's own colour for that project.
     2. Text never moves. Stages open once, the work lands once, then it is still.
     3. A stage answers the mouse with a soft light. That is the only playful detail.
   ========================================================================== */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("assets/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #0d1016;
  --muted: #5b6170;
  --mist: #eef0f4;
  --line: #dfe2e8;
  --navy: #0b2540;
  --teal: #00b9a7;
  --pop: #10a877;
  --on-navy-soft: #a9bdd0;
  --on-ink-soft: #a9afbf;

  --gutter: clamp(16px, 3.4vw, 48px);
  --nav-h: 72px;
  --r-stage: clamp(18px, 2vw, 28px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-land: cubic-bezier(.3, 1.45, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  margin: 0;
  background: var(--ink);            /* what shows behind the page when the footer is revealed */
  color: var(--ink);
  font-family: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.stage.navy :focus-visible, .stage.ink :focus-visible, .band :focus-visible, footer :focus-visible { outline-color: #fff; }

img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }

/* ---------- type ---------- */
.display, h1 {
  font-size: clamp(42px, 6.2vw, 92px);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 650;
  text-wrap: balance;
}
h2 {
  font-size: clamp(32px, 4.2vw, 62px);
  line-height: 1.02;
  letter-spacing: -.032em;
  font-weight: 650;
  text-wrap: balance;
}
h3 {
  font-size: clamp(28px, 3.1vw, 46px);
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 650;
}
.lead { font-size: clamp(19px, 1.55vw, 23px); line-height: 1.38; font-weight: 450; letter-spacing: -.01em; }
.small { font-size: 15px; line-height: 1.45; }
.soft { color: var(--muted); }
.stage.navy .soft, .band.navy .soft { color: var(--on-navy-soft); }
.stage.teal .soft { color: #0a3f3a; }
.stage.ink .soft, .band.ink .soft, footer .soft { color: var(--on-ink-soft); }

/* ---------- page frame ---------- */
.page {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border-radius: 0 0 var(--r-stage) var(--r-stage);
}
.wrap { width: min(100% - 2 * var(--gutter), 1360px); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.7vw, 24px); }
.section { padding-block: clamp(72px, 11vw, 150px) 0; }
.section-head { margin-bottom: clamp(28px, 4vw, 56px); row-gap: 12px; align-items: end; }
.section-head.grid h2 { grid-column: 1 / span 6; }
.section-head.grid p { grid-column: 8 / span 5; padding-bottom: .3em; }
.span-8 { grid-column: 1 / span 8; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-weight: 650; font-size: 19px; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.nav ul { list-style: none; display: flex; gap: clamp(18px, 2.4vw, 36px); margin: 0; padding: 0; }
.nav li a { text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -.01em; padding: 10px 0; display: inline-block; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 6px) / 0 2px no-repeat; transition: background-size .35s var(--ease-out); }
.nav li a:hover, .nav li a:focus-visible { background-size: 100% 2px; }

/* ==========================================================================
   THE STAGE
   ========================================================================== */
.stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-stage);
  background: var(--stage-bg);
  --light: rgba(255, 255, 255, .9);
}
.stage.ink  { --stage-bg: var(--ink);  --light: rgba(120, 132, 160, .42); color: #fff; }
.stage.navy { --stage-bg: var(--navy); --light: rgba(66, 176, 213, .38); color: #fff; }
.stage.teal { --stage-bg: var(--teal); --light: rgba(255, 255, 255, .5); }
.stage.mist { --stage-bg: var(--mist); --light: rgba(255, 255, 255, .95); }

/* the mouse light */
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(min(46vw, 620px) circle at var(--mx, 50%) var(--my, 0%), var(--light), transparent 72%);
  opacity: 0; transition: opacity .5s ease;
}
.stage.lit::before { opacity: 1; }

/* ---- tones: a soft, grainy field of blended colours behind the work.
   Same recipe and palette as K Lab (AI Hunt/site/src/components/backdrop.tsx),
   plus one tone per client. The colours drift slowly while the mouse is on the stage. ---- */
[data-tone="maersk"] { --t0: #0b2540; --t1: #3fa9d1; --t2: #14467a; --t3: #050d18; }
[data-tone="valid8"] { --t0: #00b9a7; --t1: #b9f1e1; --t2: #0a8496; --t3: #ead9a2; }
[data-tone="apple"]  { --t0: #a6c5ea; --t1: #f3f5fb; --t2: #6f8fe0; --t3: #e3b0d6; }
[data-tone="jf"]     { --t0: #14503d; --t1: #43c491; --t2: #1c4f93; --t3: #5a3da8; }
[data-tone="lagoon"] { --t0: #2f8f9a; --t1: #a9e2d1; --t2: #1b4f7a; --t3: #ead9a2; }
[data-tone="plum"]   { --t0: #6b4aa8; --t1: #c9a7f0; --t2: #2a2360; --t3: #f08a8a; }
[data-tone="amber"]  { --t0: #e39a45; --t1: #f7d596; --t2: #b3472b; --t3: #5a2a2c; }
[data-tone="rose"]   { --t0: #eea49d; --t1: #f9dccb; --t2: #d6608a; --t3: #7b3c6c; }
[data-tone="sand"]   { --t0: #d8c5a5; --t1: #f4ebd9; --t2: #b98a5a; --t3: #8a9a7a; }
[data-tone="v8sand"] { --t0: #efe9dc; --t1: #f8f4ea; --t2: #dfd5bf; --t3: #bfe6da; }
[data-tone="inkt"]   { --t0: #2b303a; --t1: #5c6e8f; --t2: #a26b4b; --t3: #101418; }
.stage[data-tone] { --stage-bg: var(--t0); --light: rgba(255, 255, 255, .2); color: #fff; }
.stage[data-tone="valid8"], .stage[data-tone="apple"], .stage[data-tone="lagoon"], .stage[data-tone="sand"], .stage[data-tone="rose"], .stage[data-tone="amber"], .stage[data-tone="v8sand"] { color: var(--ink); --light: rgba(255, 255, 255, .45); }
.stage[data-tone] .soft { color: color-mix(in srgb, currentColor 74%, transparent); }
.stage[data-tone] .go { background: #fff; color: var(--ink); }
.stage[data-tone="valid8"] .go, .stage[data-tone="apple"] .go, .stage[data-tone="lagoon"] .go, .stage[data-tone="sand"] .go, .stage[data-tone="rose"] .go, .stage[data-tone="amber"] .go { background: var(--ink); color: #fff; }
.bd { position: absolute; inset: 0; z-index: -2; overflow: hidden; border-radius: inherit; pointer-events: none; background: var(--t0); }
/* the weather: kls.js paints a swirled field of the four colours and puts it here; the gradients are what shows without it */
.bd > i { position: absolute; inset: -14%; filter: blur(12px) saturate(1.06);
  background: center / cover no-repeat;
  background-image:
    radial-gradient(34% 30% at 74% 28%, var(--t1) 0%, transparent 72%),
    radial-gradient(34% 44% at 38% 40%, var(--t2) 0%, transparent 70%),
    radial-gradient(46% 34% at 60% 80%, var(--t3) 0%, transparent 72%),
    radial-gradient(28% 24% at 80% 70%, var(--t1) 0%, transparent 70%);
  animation: drift 18s ease-in-out infinite alternate paused; }
/* quieter where the words are */
.bd > u { position: absolute; inset: 0; background: linear-gradient(100deg, color-mix(in srgb, var(--t0) 86%, transparent) 0%, color-mix(in srgb, var(--t0) 52%, transparent) 30%, transparent 62%); }
.bd > b { position: absolute; inset: 0; opacity: .6; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.stage:hover > .bd > i, .bd.on > i, .case-hero > .bd > i, .band.lit > .bd > i { animation-play-state: running; }
@keyframes drift { to { transform: translate(3.2%, -2.6%) scale(1.09) rotate(2.2deg); } }
/* fine lines over a field (the coloured band): they light up under the mouse */
.bd > svg { position: absolute; inset: 0; width: 100%; height: 100%; color: #fff; opacity: .2; }
.bd > svg.hot { opacity: 0; transition: opacity .5s ease; -webkit-mask-image: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), #000, transparent 100%); mask-image: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), #000, transparent 100%); }
.lit > .bd > svg.hot { opacity: .85; }
[data-tone="valid8"] > .bd > svg, [data-tone="apple"] > .bd > svg, [data-tone="v8sand"] > .bd > svg { color: var(--ink); opacity: .14; }

/* stages open once */
.js .stage[data-open] { clip-path: inset(7% 4% 7% 4% round var(--r-stage)); transition: clip-path 1s var(--ease-out); }
.js .stage[data-open].is-open { clip-path: inset(0 0 0 0 round var(--r-stage)); }

/* the work lands once, then stands still */
.js .land { transform: translateY(var(--from, 72px)); transition: transform .95s var(--ease-land) var(--d, 0s); }
.js .is-open .land, .js .is-open.land { transform: none; }

/* mockup-only marker for pictures that are not real work yet */
.standin {
  position: absolute; z-index: 5; top: clamp(12px, 1.6vw, 22px); right: clamp(12px, 1.6vw, 22px);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 9px; border-radius: 999px;
  background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 600; letter-spacing: -.005em; line-height: 1;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .45);
}
.standin::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: repeating-linear-gradient(135deg, var(--ink) 0 2px, #fff 2px 4px); border: 1.5px solid var(--ink); }

/* ==========================================================================
   DEVICES — plain frames, sized by one variable (--w)
   ========================================================================== */
.device { position: relative; width: var(--w); flex: none; filter: drop-shadow(0 calc(var(--w) * .05) calc(var(--w) * .06) rgba(4, 8, 40, .32)); }
.screen { position: relative; overflow: hidden; background: #fff; container-type: size; }
/* media is drawn one pixel past its frame, so no hairline of the frame shows at an edge */
.screen > img, .screen > video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: top center; }

.laptop .body { margin-inline: 6%; background: #0a0c10; padding: calc(var(--w) * .016) calc(var(--w) * .016) calc(var(--w) * .02); border-radius: calc(var(--w) * .02) calc(var(--w) * .02) 0 0; }
.laptop .screen { aspect-ratio: 1218 / 758; border-radius: calc(var(--w) * .005); }
.laptop .base { height: calc(var(--w) * .021); background: linear-gradient(#e6e8ee, #b3b8c3); border-radius: calc(var(--w) * .004) calc(var(--w) * .004) calc(var(--w) * .03) calc(var(--w) * .03); position: relative; }
.laptop .base::after { content: ""; position: absolute; left: 50%; top: 0; width: 14%; height: 34%; transform: translateX(-50%); background: #9da3af; border-radius: 0 0 99px 99px; }

.tablet { background: #0a0c10; padding: calc(var(--w) * .035); border-radius: calc(var(--w) * .07); }
.tablet .screen { aspect-ratio: 3 / 4; border-radius: calc(var(--w) * .035); }

.phone { background: #0a0c10; padding: calc(var(--w) * .04); border-radius: calc(var(--w) * .16); }
.phone .screen { aspect-ratio: 664 / 1444; border-radius: calc(var(--w) * .12); background: #000; }

.browser { background: #fff; border-radius: calc(var(--w) * .016); overflow: hidden; }
.browser .chrome { height: calc(var(--w) * .042); display: flex; align-items: center; gap: calc(var(--w) * .009); padding-inline: calc(var(--w) * .018); background: #f3f4f7; border-bottom: 1px solid var(--line); }
.browser .chrome i { width: calc(var(--w) * .012); height: calc(var(--w) * .012); border-radius: 50%; background: #c9cdd6; }
.browser .screen { aspect-ratio: 1000 / 640; }

/* a long page that reads itself, slowly, only while its piece is playing */
.screen > img.pagescroll { height: auto; inset: -1px -1px auto -1px; object-fit: fill; animation: pagescroll var(--dur, 30s) linear infinite alternate paused; }
.playing .screen > img.pagescroll { animation-play-state: running; }
@keyframes pagescroll { to { transform: translateY(calc(-100% + 100cqh)); } }

/* a set of real screens shown one after another */
.slides > img { opacity: 0; z-index: 0; transition: opacity .7s ease; }
.slides > img.was { opacity: 1; z-index: 1; transition: none; }
.slides > img.on { opacity: 1; z-index: 2; }

/* ==========================================================================
   HOME — the black layer. Everything else on the site is a white page with
   round corners lying on top of it; it shows again at the very end (the footer).
   First the intro (the whole form, neutral, with the name), then What I do as
   the hero (the form rises behind the current skill and takes its colour).
   ========================================================================== */
.home .nav { position: fixed; inset: 0 0 auto 0; transition: opacity .35s ease, background-color .35s ease, color .35s ease; }
.home .nav.hide { opacity: 0; pointer-events: none; }
/* over the black layer the bar is dark glass: invisible on black, and words scrolling under it blur away */
.home .nav.on-dark { background: color-mix(in srgb, var(--ink) 62%, transparent); color: #fff; }
.home .nav.on-dark :focus-visible { outline-color: #fff; }
.home .page { border-radius: var(--r-stage); }
.wrap.wide { width: min(100% - 2 * var(--gutter), 2200px); }

.top { position: relative; z-index: 1; background: var(--ink); color: #fff; }
.top > .do-shape { position: sticky; top: 0; display: block; width: 100%; height: 100svh; margin: 0 0 -100svh; pointer-events: none; }
.top :focus-visible { outline-color: #fff; }

.entry { position: relative; z-index: 1; min-height: 100svh; display: grid; align-content: center; justify-items: center; gap: clamp(16px, 2.4vh, 30px); padding: var(--nav-h) var(--gutter); text-align: center; cursor: pointer; }
.entry h1 { font-size: clamp(44px, 7.6vw, 168px); line-height: .95; letter-spacing: -.045em; }
.entry .lead { max-width: 37ch; color: rgba(255, 255, 255, .8); text-wrap: balance; }
.enter {
  all: unset; box-sizing: border-box; cursor: pointer; position: absolute; left: 50%; bottom: clamp(24px, 5svh, 56px); translate: -50% 0;
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: #fff; color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: -.01em;
  transition: scale .35s var(--ease-out);
}
.enter:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
/* with a mouse, the button rides on the pointer anywhere on the intro */
.entry.follow { cursor: none; }
.entry.follow .enter { position: fixed; left: 0; top: 0; bottom: auto; translate: none; margin: -46px 0 0 -46px; pointer-events: none; scale: 0; }
.entry.follow.near .enter { scale: 1; }

.hero-do { position: relative; z-index: 1; min-height: 100svh; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding-top: calc(var(--nav-h) + 5svh); scroll-margin-top: calc(-1 * (var(--nav-h) + 12px)); }
.do-titles { display: grid; justify-items: center; align-self: start; padding-inline: var(--gutter); }
.do-titles span { grid-area: 1 / 1; font-size: clamp(44px, 8.8vw, 190px); line-height: .95; letter-spacing: -.045em; font-weight: 650; text-align: center; white-space: nowrap; opacity: 0; transition: opacity .5s ease; }
.do-titles span.on { opacity: 1; }
/* the six skills stand on a strip of dark glass: the form's colour comes through it */
.do-glass { background: rgba(13, 16, 22, .34); backdrop-filter: blur(28px) saturate(1.35); -webkit-backdrop-filter: blur(28px) saturate(1.35); border-top: 1px solid rgba(255, 255, 255, .16); }
.do-cols { list-style: none; margin-block: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.do-cols li { border-left: 1px solid rgba(255, 255, 255, .14); }
.do-cols li:first-child { border-left: 0; }
.do-cols button { all: unset; cursor: pointer; display: block; box-sizing: border-box; width: 100%; height: 100%; padding: 0 clamp(12px, 1.4vw, 24px) clamp(26px, 3.4vw, 48px); opacity: .7; transition: opacity .3s ease; }
.do-cols .tline { margin: -1px clamp(-24px, -1.4vw, -12px) clamp(20px, 2.4vw, 34px); background: transparent; }
.do-cols button:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.do-cols li.on button, .do-cols button:hover { opacity: 1; }
.do-cols b { display: block; font-size: clamp(17px, 1.45vw, 22px); font-weight: 650; letter-spacing: -.015em; line-height: 1.4; }
.do-cols span.t { display: block; margin-top: 8px; font-size: 15.5px; line-height: 1.42; color: rgba(255, 255, 255, .78); max-width: 30ch; }

/* a line that shows the time left for the thing whose turn it is */
.tline { display: block; height: 2px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.tline::after { content: ""; display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.on > .tline::after, .on .tline::after { animation: fill var(--turn, 6s) linear forwards; }
.held .tline::after { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

/* ==========================================================================
   HOME — selected work: a stack you scroll through
   ========================================================================== */
.work-stack { display: grid; gap: 18svh; }
.work-card {
  position: sticky;
  top: calc(var(--nav-h) + 14px + var(--i, 0) * 12px);
  height: min(720px, 100svh - var(--nav-h) - 96px);
  min-height: 520px;
}
.work-card > a, .work-card > .work-inner {
  height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.7vw, 24px);
  padding: clamp(24px, 3.4vw, 48px); text-decoration: none; color: inherit;
}
[data-soon] { cursor: default; }
.work-text { grid-column: 1 / span 4; display: flex; flex-direction: column; min-width: 0; }
.work-text h3 span { display: block; opacity: .62; }
.work-text .lead { margin-top: clamp(14px, 1.6vw, 22px); max-width: 26ch; }
.facts { margin-top: auto; padding-top: 24px; font-size: 16px; line-height: 1.4; font-weight: 600; }
.facts span { display: block; }
.go {
  position: absolute; left: clamp(24px, 3.4vw, 48px); bottom: clamp(24px, 3.4vw, 48px);
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--ink);
  transition: transform .45s var(--ease-land);
}
.stage.mist .go, .stage.teal .go { background: var(--ink); color: #fff; }
.go svg { width: 22px; height: 22px; }
a:hover > .go, a:focus-visible > .go { transform: translateX(8px); }
.work-card:has(.go) .facts { padding-bottom: 80px; }

.work-media { grid-column: 5 / -1; position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.6vw, 40px); min-width: 0; }
.work-media .laptop  { --w: min(52vw, 760px, 88svh); }
.work-media .browser.film { --w: min(52vw, 780px, 96svh); }
.browser.film .screen { aspect-ratio: 16 / 9; background: #f2f3f5; }
.browser.film .screen.demo { aspect-ratio: 16 / 10; background: #0b2540; }
.screen > .bdemo { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo { display: block; align-self: flex-start; justify-self: start; height: clamp(40px, 4.6vw, 68px); width: auto; }
.logo.wide { height: clamp(22px, 2.4vw, 34px); }
.work-text .logo { height: clamp(34px, 3.4vw, 50px); margin-bottom: clamp(14px, 1.6vw, 22px); }
.work-text .logo.wide { height: clamp(20px, 2vw, 28px); }
.film-stage { aspect-ratio: 16 / 9; }
.film-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.logo.to-ink { filter: brightness(0); }
.work-media .browser { --w: min(48vw, 720px, 86svh); }
.work-media .tablet  { --w: min(18vw, 268px, 34svh); }
.work-media .tablet.main { --w: min(21vw, 310px, 40svh); }
.work-media .phone   { --w: min(16vw, 236px, 26svh); }
.work-media .jf-card { height: min(34vw, 500px, 56svh); width: auto; }

/* ==========================================================================
   HOME — personal projects, what I do, about
   ========================================================================== */
.text-link { white-space: nowrap; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.lab { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.7vw, 24px); }
.lab-card { background: var(--mist); border-radius: var(--r-stage); overflow: hidden; display: flex; flex-direction: column; }
.lab-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.lab-card div { padding: clamp(18px, 1.8vw, 26px) clamp(18px, 2vw, 28px) clamp(22px, 2.2vw, 30px); }
.lab-card b { display: block; font-size: clamp(21px, 1.8vw, 26px); font-weight: 650; letter-spacing: -.022em; line-height: 1.2; }
.lab-card span { display: block; color: var(--muted); margin-top: 4px; line-height: 1.4; }

/* a full-width band: the page changes colour here */
.band { margin-top: clamp(72px, 11vw, 150px); padding-block: clamp(64px, 9vw, 130px); }
.band.ink { background: var(--ink); color: #fff; }
.band.navy { background: var(--navy); color: #fff; }
.band[data-tone] { position: relative; isolation: isolate; overflow: hidden; background: var(--t0); color: #fff; }
.band[data-tone="valid8"], .band[data-tone="apple"], .band[data-tone="v8sand"] { color: var(--ink); }
.band[data-tone] .soft { color: color-mix(in srgb, currentColor 76%, transparent); }
.band[data-tone] > .bd > u { background: color-mix(in srgb, var(--t0) 46%, transparent); }

.about { align-items: stretch; }
/* The portrait, three ways (?about=lines | big | plain in the address):
   lines  the photo drawn as lines, in the manner of the other line drawings; the real photo shows under the mouse
   big    one wide dark stage, the photo large and fading into it, the words on top
   plain  the photo in colour on a light field                                                    */
.portrait { grid-column: 1 / span 5; aspect-ratio: 5 / 6; }
.portrait .bd > u { display: none; }
.portrait img { position: absolute; left: 2%; bottom: 0; width: 96%; height: auto; }
.portrait canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
[data-about="lines"] .portrait .col {
  -webkit-mask-image: radial-gradient(circle clamp(90px, 9vw, 140px) at var(--mx, -999px) var(--my, -999px), #000 30%, transparent 100%);
          mask-image: radial-gradient(circle clamp(90px, 9vw, 140px) at var(--mx, -999px) var(--my, -999px), #000 30%, transparent 100%);
}
[data-about="plain"] .portrait canvas, [data-about="big"] .portrait canvas { display: none; }
[data-about="big"] .portrait { grid-column: 1 / -1; grid-row: 1; aspect-ratio: auto; min-height: clamp(540px, 52vw, 780px); }
[data-about="big"] .portrait img { left: auto; right: -2%; width: min(66%, 860px); filter: saturate(.82) contrast(1.02);
  -webkit-mask-image: linear-gradient(90deg, transparent 2%, #000 46%), linear-gradient(0deg, transparent 0%, #000 34%); -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 2%, #000 46%), linear-gradient(0deg, transparent 0%, #000 34%); mask-composite: intersect; }
[data-about="big"] .about-text { grid-column: 1 / span 7; grid-row: 1; position: relative; z-index: 2; color: #fff; justify-content: flex-end; padding: clamp(24px, 3.4vw, 48px); pointer-events: none; }
[data-about="big"] .about-text > * { pointer-events: auto; }
[data-about="big"] .about-text .soft { color: var(--on-ink-soft); }
[data-about="big"] .btn { background: #fff; color: var(--ink); }
[data-about="big"] .btn:hover { background: #dfe2e8; color: var(--ink); }
.about-text { grid-column: 7 / span 6; display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 2vw, 28px); }
.about-text .big { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.38; letter-spacing: -.025em; font-weight: 600; text-wrap: pretty; }
.about-text .lead { max-width: 46ch; }
.btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -.01em; transition: background-color .25s ease; }
.btn:hover { background: #2b3242; }
.page-end { height: clamp(72px, 11vw, 150px); }

/* ==========================================================================
   FOOTER — sits still behind the page and is uncovered by it
   ========================================================================== */
footer {
  position: sticky; bottom: 0; z-index: 0;
  background: var(--ink); color: #fff;
  padding: clamp(56px, 8vw, 110px) 0 clamp(24px, 3vw, 40px);
}
footer h2 { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.015em; font-weight: 600; color: var(--on-ink-soft); }
.mail { display: block; margin-top: clamp(8px, 1vw, 14px); font-size: clamp(34px, 8.6vw, 132px); line-height: 1; letter-spacing: -.045em; font-weight: 650; text-decoration: none; overflow-wrap: anywhere; background: linear-gradient(#fff, #fff) 0 100% / 0 .07em no-repeat; transition: background-size .5s var(--ease-out); padding-bottom: .08em; }
.mail:hover, .mail:focus-visible { background-size: 100% .07em; }
.foot-row { margin-top: clamp(40px, 6vw, 90px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 17px; }
.foot-row a { text-decoration: none; }
.foot-row a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================================
   CASE STUDY
   ========================================================================== */
.case-head { padding-block: clamp(28px, 5vw, 72px) clamp(28px, 4vw, 56px); row-gap: clamp(20px, 2.6vw, 36px); align-items: start; }
.case-head h1 { grid-column: 1 / -1; }
.case-head h1 span { display: block; color: var(--muted); }
.case-head .lead { grid-column: 1 / span 7; max-width: 34ch; }
.case-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.7vw, 24px); border-top: 1px solid var(--line); padding-top: 18px; }
.case-facts div { grid-column: span 3; }
.case-facts dt { color: var(--muted); font-size: 15px; }
.case-facts dd { font-weight: 600; font-size: 18px; letter-spacing: -.01em; line-height: 1.35; }

.case-top {
  margin-top: 6px; padding: clamp(22px, 3.4vw, 52px); padding-bottom: 0;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(18px, 2.6vw, 36px) clamp(16px, 2vw, 32px);
  min-height: min(calc(100svh - var(--nav-h) - var(--gutter)), 800px);
}
.case-top .title { grid-column: 1 / -1; display: grid; justify-items: start; gap: clamp(16px, 2.2vw, 30px); }
.case-top h1 { font-size: clamp(38px, 5.6vw, 86px); max-width: 13em; }
.case-top .intro { grid-column: 1; display: grid; justify-items: start; align-content: start; gap: 14px; }
.case-top .lead { max-width: 30ch; }
.case-top .logo.wide { height: clamp(28px, 3vw, 44px); }
.case-top .text-link { color: inherit; }
.case-top .work-media { grid-column: 2; grid-row: 2 / span 2; align-self: end; justify-content: flex-end; align-items: flex-end; container-type: inline-size; }
.case-top .work-media .laptop { --w: min(100cqw, 760px); }
.case-top .work-media .browser { --w: min(100cqw, 760px); border-radius: calc(var(--w) * .016) calc(var(--w) * .016) 0 0; }
.case-top .work-media .tablet { --w: min(54cqw, 380px); border-radius: calc(var(--w) * .07) calc(var(--w) * .07) 0 0; padding-bottom: 0; }
.case-top .work-media .tablet .screen { border-radius: calc(var(--w) * .035) calc(var(--w) * .035) 0 0; }
.case-top .work-media .phone { --w: min(40cqw, 300px); border-radius: calc(var(--w) * .16) calc(var(--w) * .16) 0 0; padding-bottom: 0; }
.case-top .work-media .phone .screen { aspect-ratio: 664 / 1250; border-radius: calc(var(--w) * .12) calc(var(--w) * .12) 0 0; }
.case-top .case-facts { grid-column: 1; align-self: end; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent); padding-block: 16px clamp(22px, 3.4vw, 52px); }
.case-top .case-facts div { grid-column: auto; }
.case-top .case-facts dt { color: color-mix(in srgb, currentColor 70%, transparent); }


/* ---- the top of a case: calm and full width. The project's colour, its logo, its name, one line.
        The facts and the film come after it, on the page. ---- */
.nav.fixed { position: fixed; inset: 0 0 auto 0; transition: background-color .35s ease, color .35s ease; }
.nav.fixed.over { background: transparent; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav.fixed.over.light { color: #fff; }
.nav.fixed.over.light :focus-visible { outline-color: #fff; }
.case-hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(82svh, 980px); display: grid; align-content: space-between; row-gap: clamp(40px, 8svh, 120px); padding: calc(var(--nav-h) + clamp(20px, 4svh, 56px)) 0 clamp(28px, 4.4vw, 72px); background: var(--t0); color: #fff; border-radius: 0 0 var(--r-stage) var(--r-stage); }
.case-hero[data-tone="valid8"], .case-hero[data-tone="apple"] { color: var(--ink); }
.case-hero > .bd > u { background: linear-gradient(0deg, color-mix(in srgb, var(--t0) 70%, transparent) 0%, transparent 62%); }
.case-hero .logo { height: clamp(34px, 3.6vw, 60px); width: auto; align-self: start; justify-self: start; }
.case-hero .logo.wide { height: clamp(26px, 2.6vw, 42px); }
.case-hero h1 { font-size: clamp(44px, 7.8vw, 168px); line-height: .94; letter-spacing: -.045em; max-width: 11em; }
.case-hero .lead { margin-top: clamp(16px, 2vw, 30px); max-width: 34ch; font-size: clamp(20px, 1.9vw, 30px); line-height: 1.3; color: color-mix(in srgb, currentColor 84%, transparent); }
/* the facts: one quiet row under the top */
.case-row { padding-top: clamp(22px, 2.6vw, 40px); }
.case-row dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(12px, 1.7vw, 24px); row-gap: 16px; }
.case-row dt { font-size: 15px; line-height: 1.4; color: var(--muted); }
.case-row dd { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
/* the film: the first thing after the top, as large as the window allows, with no device around it */
.film-row { padding-top: clamp(28px, 3.4vw, 56px); }
.film-row .stage { width: min(100%, (100svh - var(--nav-h) - 40px) * var(--ar, 1.6)); margin-inline: auto; aspect-ratio: var(--ar, 1.6); }
.film-row .stage > video, .film-row .stage > .bdemo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* a set of pages that take turns: one large, their names under it, a timing line on the current one */
.film-row .stage.turns { width: 100%; aspect-ratio: auto; }
.turns { display: grid; justify-items: center; padding: clamp(24px, 4vw, 64px) clamp(16px, 4vw, 64px) 0; }
.turns .views { position: relative; width: min(100%, 1040px, (100svh - var(--nav-h) - 230px) * 1.2); aspect-ratio: 1.2; border-radius: clamp(10px, 1.2vw, 18px); overflow: hidden; background: #fff; box-shadow: 0 30px 60px -34px rgba(13, 16, 22, .5); }
.turns .view { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.turns .view.on { opacity: 1; }
.turns .view:not(.on) img.pagescroll { animation: none; }
.turns-tabs { list-style: none; margin: clamp(22px, 2.6vw, 40px) 0 0; padding: 0; width: min(100%, 1040px, (100svh - var(--nav-h) - 230px) * 1.2); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(12px, 1.7vw, 24px); }
.turns-tabs button { all: unset; cursor: pointer; display: block; box-sizing: border-box; width: 100%; padding-bottom: clamp(22px, 2.8vw, 40px); opacity: .58; transition: opacity .3s ease; }
.turns-tabs li.on button, .turns-tabs button:hover { opacity: 1; }
.turns-tabs button:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
.turns-tabs b { display: block; margin-top: 14px; font-size: clamp(17px, 1.45vw, 21px); font-weight: 650; letter-spacing: -.015em; line-height: 1.25; }
.stage.mist .tline { background: rgba(13, 16, 22, .14); }
.stage.mist .tline::after { background: var(--ink); }

/* a part of a case: its own title and one line of facts */
.part { padding-top: clamp(72px, 10vw, 140px); row-gap: 10px; align-items: end; }
.part h2 { grid-column: 1 / span 6; font-size: clamp(34px, 4.5vw, 66px); line-height: 1; letter-spacing: -.035em; }
.part p { grid-column: 7 / span 6; padding-bottom: .35em; }
.part + .chapter { padding-top: clamp(36px, 5vw, 64px); }

/* a decision and what was done about it, side by side on the page grid */
.pairs { display: grid; }
.pairs > div { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.7vw, 24px); padding-block: clamp(18px, 2.2vw, 28px); border-top: 1px solid var(--line); }
.pairs > div:last-child { border-bottom: 1px solid var(--line); }
.pairs p:first-child { grid-column: 1 / span 5; color: var(--muted); }
.pairs p:last-child { grid-column: 7 / span 6; font-weight: 600; }
.pairs p { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.4; letter-spacing: -.008em; }
.numbers.three div { grid-column: span 4; }

.chapter { padding-top: clamp(64px, 9vw, 130px); }
.chapter-head { row-gap: 16px; margin-bottom: clamp(24px, 3.2vw, 44px); align-items: start; }
.chapter-head h2 { grid-column: 1 / span 5; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.04; }
.chapter-head .say { grid-column: 7 / span 6; display: grid; gap: .75em; padding-top: .25em; font-size: clamp(19px, 1.55vw, 23px); line-height: 1.38; font-weight: 450; letter-spacing: -.01em; max-width: 34em; }
.chapter-head .say .small { font-size: 15px; line-height: 1.45; font-weight: 450; letter-spacing: 0; }
.chapter .stage { min-height: clamp(420px, 44vw, 620px); }
.chapter .stage.short { min-height: clamp(360px, 35vw, 500px); }

.numbers { row-gap: clamp(28px, 4vw, 48px); }
.numbers div { grid-column: span 3; border-top: 2px solid currentColor; padding-top: 14px; }
.numbers b { display: block; font-size: clamp(48px, 7.3vw, 110px); line-height: .95; letter-spacing: -.05em; font-weight: 650; }
.numbers span { display: block; margin-top: 10px; font-size: 18px; font-weight: 600; }
.numbers + .small { margin-top: 20px; }
.band p.lead { grid-column: 1 / span 6; margin-bottom: clamp(28px, 4vw, 56px); }

.closing { grid-column: 1 / span 10; font-size: clamp(28px, 3.6vw, 54px); line-height: 1.12; letter-spacing: -.03em; font-weight: 650; text-wrap: balance; }
.note { grid-column: 1 / span 7; margin-top: clamp(28px, 4vw, 48px); }

.next { margin-top: clamp(72px, 10vw, 140px); }
.next a { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; padding: clamp(24px, 3.4vw, 48px); padding-bottom: 0; text-decoration: none; min-height: 420px; }
.next .work-text { align-self: start; }
.next .work-media { align-self: end; }
.next .work-media .laptop { --w: min(56vw, 720px); margin-bottom: calc(var(--w) * -.12); }

/* ---------- the illustration language: simplified UI, one live colour ---------- */
.ill { position: absolute; inset: 0; display: grid; padding: clamp(20px, 4vw, 60px); padding-top: clamp(56px, 6vw, 76px); }
.win { background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 22px 44px -22px rgba(3, 8, 50, .55); }
.stage.mist .win, .stage.mist .chip { box-shadow: 0 1px 0 rgba(13, 16, 22, .04), 0 24px 48px -28px rgba(13, 16, 22, .35); }
.win-top { display: flex; align-items: center; gap: 8px; height: 34px; padding-inline: 14px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 650; letter-spacing: -.005em; white-space: nowrap; }
.win-top::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pop); flex: none; }
.bar { display: block; height: 8px; border-radius: 4px; background: #d9dde6; }
.bar.s { width: 34%; } .bar.m { width: 58%; } .bar.l { width: 88%; }
.bar.ink { background: var(--ink); }
.who { width: 22px; height: 22px; border-radius: 50%; background: #c4c9d6; flex: none; }
.tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c4c9d6; display: grid; place-items: center; flex: none; transition: background-color .3s, border-color .3s; }
.tick svg { width: 12px; height: 12px; stroke: #fff; opacity: 0; transition: opacity .2s; }
.done .tick { background: var(--ink); border-color: var(--ink); }
.done .tick svg { opacity: 1; }

/* things inside an illustration appear in order while it plays, then hold */
.js .ill [data-s] { opacity: 0; transform: translateY(10px) scale(.97); }
.js .play .ill [data-s] { animation: pop .5s var(--ease-out) var(--at, 0s) forwards; }
@keyframes pop { to { opacity: 1; transform: none; } }

.replay { position: absolute; z-index: 5; right: clamp(12px, 1.6vw, 22px); bottom: clamp(12px, 1.6vw, 22px); width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(255, 255, 255, .16); color: #fff; transition: background-color .2s; }
.replay:hover { background: rgba(255, 255, 255, .3); }
.stage.mist .replay { background: rgba(13, 16, 22, .08); color: var(--ink); }
.stage.mist .replay:hover { background: rgba(13, 16, 22, .16); }
.replay svg { width: 18px; height: 18px; }

/* A — before: thirty inboxes, six months */
.ill-before { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(16px, 3vw, 48px); align-items: center; }
.count b { display: block; font-size: clamp(54px, 8.4vw, 128px); line-height: .92; letter-spacing: -.05em; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.count span { display: block; margin-top: 12px; font-size: clamp(17px, 1.5vw, 21px); color: var(--on-ink-soft); }
.crowd { display: grid; grid-template-columns: repeat(10, 14px); gap: 8px; margin-top: clamp(20px, 3vw, 40px); }
.crowd i { width: 14px; height: 14px; border-radius: 50%; background: #343a4a; transition: background-color .35s; }
.crowd i.on { background: #fff; }
.pile { position: relative; height: 100%; min-height: 320px; }
.pile .win { position: absolute; width: 38%; left: calc(var(--x) * var(--k, 1)); top: var(--y); }
.pile .win .in { padding: 12px 14px 14px; display: grid; gap: 8px; }
.pile .row { display: flex; align-items: center; gap: 8px; }
.pile .row .bar { flex: 1; }
.cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.cells i { height: 9px; border-radius: 2px; background: #e3e6ed; }
.cells i:nth-child(7n+2), .cells i:nth-child(5n) { background: #c4c9d6; }
.bubble { height: 16px; border-radius: 8px; background: #e3e6ed; width: 62%; }
.bubble.me { margin-left: auto; background: #c4c9d6; width: 48%; }

/* B — after: one orchestrator */
.ill-orch { grid-template-columns: auto auto minmax(0, 1fr) auto auto; gap: 0; align-items: center; }
.chip { background: #fff; color: var(--ink); border-radius: 12px; padding: 14px 16px; font-size: 15px; font-weight: 650; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; display: flex; align-items: center; gap: 10px; box-shadow: 0 22px 44px -22px rgba(3, 8, 50, .55); }
.link { width: clamp(16px, 3.4vw, 54px); height: 2px; background: currentColor; opacity: .28; }
.orch { display: grid; }
.orch .rail { position: relative; height: 3px; margin: 18px 20px 4px; background: var(--line); border-radius: 3px; }
.orch .rail::after { content: ""; position: absolute; inset: 0; background: var(--pop); border-radius: 3px; transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .7s var(--ease-out); }
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 14px 20px 20px; }
.step { border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 10px; align-content: start; transition: border-color .3s, box-shadow .3s; }
.step b { font-size: 14px; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; min-height: 2.6em; }
.step .row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.chapter .step { padding: clamp(12px, 1.2vw, 18px); min-height: clamp(130px, 13vw, 190px); }
.chapter .step b { font-size: clamp(14px, 1.15vw, 16px); }
.chapter .step .row { margin-top: auto; }
.step.now { border-color: var(--pop); box-shadow: 0 0 0 3px rgba(16, 168, 119, .16); }
.chip .tick { border-color: #c4c9d6; }

/* C — a customer's spreadsheet becomes a quote */
.ill-sheet { grid-template-columns: minmax(0, 6fr) auto minmax(0, 5fr); align-items: center; }
.sheet { position: relative; overflow: hidden; }
.sheet .grid14 { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; padding: 12px 14px 14px; }
.sheet .grid14 i { height: 10px; border-radius: 2px; background: #e3e6ed; transition: background-color .28s ease, transform .28s ease; }
.sheet .grid14 i.scan { background: var(--pop) !important; transform: scale(1.12); }
.sheet .grid14 i.read { background: #c9ecdf; }
.sheet .grid14 i.read.a, .sheet .grid14 i.read.c { background: #7fd3b6; }
.sheet .grid14 i.a { background: #c4c9d6; } .sheet .grid14 i.b { background: #f1f2f6; } .sheet .grid14 i.c { background: #aeb4c4; }
.sheet .scan { display: none; position: absolute; left: 0; right: 0; top: 34px; height: 26px; background: rgba(31, 51, 242, .16); border-block: 2px solid var(--pop); transform: translateY(0); opacity: 0; }
.js .play .sheet .scan { animation: scan 3.6s cubic-bezier(.45, 0, .55, 1) .4s forwards; }
@keyframes scan { 0% { opacity: 1; transform: translateY(0); } 92% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--travel, 260px)); } }
.quote .rows { display: grid; gap: 0; padding: 6px 16px 14px; }
.quote .qrow { display: grid; grid-template-columns: 22px 3fr 2fr 2fr; gap: 12px; align-items: center; padding-block: 11px; border-bottom: 1px solid var(--line); }
.quote .qrow:last-child { border-bottom: 0; }
.quote .qrow .tick { width: 18px; height: 18px; background: var(--pop); border-color: var(--pop); }
.quote .qrow .tick svg { opacity: 1; width: 10px; height: 10px; }

/* compact orchestrator on the home card */
.work-media .ill { position: relative; inset: auto; width: 100%; padding: 0; }
.work-media .ill-orch { grid-template-columns: minmax(0, 1fr); }
.work-media .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ==========================================================================
   SMALLER SCREENS
   ========================================================================== */
@media (max-width: 1000px) {
  .do-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .do-cols li:nth-child(4) { border-left: 0; }
  .do-cols li:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, .14); }
  .part h2, .part p { grid-column: 1 / -1; }
  .case-top { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; min-height: 0; }
  .case-top .title, .case-top .intro, .case-top .case-facts, .case-top .work-media { grid-column: 1; grid-row: auto; }
  .case-top .case-facts { padding-bottom: 8px; }
  .pairs p:first-child, .pairs p:last-child { grid-column: 1 / -1; }
  .pairs p:last-child { margin-top: 8px; }
  .lab { grid-template-columns: minmax(0, 1fr); }
  .case-head h1, .case-head .lead, .band p.lead { grid-column: 1 / -1; }
  .chapter-head h2, .chapter-head .say { grid-column: 1 / -1; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .section-head.grid h2, .section-head.grid p, .span-8 { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ill-orch { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .ill-orch .link { width: 2px; height: 18px; margin-left: 28px; }
  .chapter .stage, .chapter .stage.short { min-height: 560px; }
  .closing, .note { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav li.wide { display: none; }
  .do-titles span { white-space: normal; }
  .hero-do { padding-top: calc(var(--nav-h) + 3svh); grid-template-rows: auto auto; row-gap: 46svh; }
  .enter { width: 76px; height: 76px; font-size: 16px; }
  .do-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-row dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .turns-tabs b { font-size: 15px; }
  .case-hero { min-height: 68svh; }
  .do-cols li:nth-child(n) { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
  .do-cols li:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .14); }
  .numbers.three div { grid-column: span 6; }

  .work-stack { gap: 16px; }
  .work-card { position: relative; top: auto; height: auto; min-height: 0; }
  .work-card > a, .work-card > .work-inner { display: flex; flex-direction: column; gap: 28px; padding: 24px 20px 28px; }
  .work-text .lead { max-width: none; }
  .facts { padding-top: 18px; }
  .work-card:has(.go) .facts { padding-bottom: 0; }
  .go { position: static; margin-top: 4px; width: 48px; height: 48px; order: 3; }
  .work-media { min-height: 0; padding-block: 6px 4px; }
  .work-media .laptop  { --w: calc(100vw - 2 * var(--gutter) - 40px); }
  .work-media .browser { --w: calc(100vw - 2 * var(--gutter) - 40px); }
  .work-media .tablet  { --w: 25vw; }
  .work-media .tablet.main { --w: 30vw; }
  .work-media .phone   { --w: 34vw; }
  .work-media .jf-card { height: 62vw; }
  .work-media .browser.film { --w: calc(100vw - 2 * var(--gutter) - 40px); }

  .portrait, .about-text, [data-about="big"] .about-text { grid-column: 1 / -1; }
  /* small screens: the big portrait stands alone on its stage, the words follow under it */
  [data-about="big"] .portrait { min-height: 0; aspect-ratio: 5 / 6; }
  [data-about="big"] .portrait img { width: 100%; right: 0; -webkit-mask-image: none; mask-image: none; }
  [data-about="big"] .about-text { grid-row: auto; color: var(--ink); padding: 0; }
  [data-about="big"] .about-text .soft { color: var(--muted); }
  [data-about="big"] .btn { background: var(--ink); color: #fff; }
  .about-text { margin-top: 28px; }

  .case-facts div { grid-column: span 6; margin-bottom: 14px; }
  .numbers div { grid-column: span 6; }
  .chapter .stage, .chapter .stage.short { min-height: 0; }
  .ill { position: relative; inset: auto; padding: 60px 16px 64px; }
  .ill-before { grid-template-columns: minmax(0, 1fr); }
  .pile { min-height: 300px; }
  .pile { --k: .7; }
  .pile .win { width: 56%; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 12px 14px; }
  .orch .rail { margin-inline: 12px; }
  .ill-sheet { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
  .ill-sheet .link { width: 2px; height: 18px; margin: 0 auto; }
  .next a { display: flex; flex-direction: column; gap: 28px; min-height: 0; padding: 24px 20px 0; }
  .next .work-media .laptop { --w: calc(100vw - 2 * var(--gutter) - 40px); }
}

@media (prefers-reduced-motion: reduce) {
  .js .stage[data-open] { clip-path: none; transition: none; }
  .js .land { transform: none; transition: none; }
  .js .ill [data-s] { opacity: 1; transform: none; animation: none !important; }
  .screen > img.pagescroll { animation: none; }
  .bd > i { animation: none; }
  .bd > svg.hot { display: none; }
  .tline::after { animation: none !important; transform: scaleX(1); }
  .stage::before { display: none; }
}

/* ==========================================================================
   ROUND 5 — from the 26 Nov 11:40 recording
   ========================================================================== */

/* ---- tones: Maersk nearer its own blue; Just Football light and clear like the other cards ---- */
[data-tone="maersk"] { --t0: #0c355c; --t1: #42b0d5; --t2: #1a6ba6; --t3: #051f38; }

/* ---- the fine lines in a band: barely there until the mouse comes ---- */
.bd > svg { opacity: .07; }
[data-tone="valid8"] > .bd > svg, [data-tone="apple"] > .bd > svg, [data-tone="v8sand"] > .bd > svg { opacity: .06; }
.lit > .bd > svg.hot { opacity: .8; }

/* ---- case top: it stands still and the white page slides up over it.
        Logo, name and one line sit together at the bottom left, on the page's own grid;
        the organic form from the home page stands on the right in the project's colours. ---- */
.case-hero { position: sticky; top: 0; z-index: 0; align-content: end; row-gap: 0; border-radius: 0; min-height: min(86svh, 980px);
  padding-bottom: calc(clamp(32px, 4.4vw, 72px) + var(--r-stage)); }
.case-body { position: relative; z-index: 1; background: var(--paper); border-radius: var(--r-stage) var(--r-stage) 0 0; margin-top: calc(-1 * var(--r-stage)); }
.case-hero .logo { height: clamp(30px, 2.8vw, 46px); margin-bottom: clamp(18px, 2vw, 30px); }
.case-hero .logo.wide { height: clamp(24px, 2.2vw, 36px); }
.case-hero h1 { font-size: clamp(40px, 5.6vw, 104px); line-height: .98; letter-spacing: -.04em; max-width: 10em; }
.case-hero .lead { margin-top: clamp(14px, 1.6vw, 24px); font-size: clamp(18px, 1.5vw, 24px); max-width: 36ch; }
.case-shape { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
.case-shape.on { opacity: 1; }
.case-hero > .bd > i { inset: -24%; animation: drift-top 13s ease-in-out infinite alternate; }
@keyframes drift-top { to { transform: translate(6%, -5%) scale(1.16) rotate(5deg); } }
.case-hero > .bd > u { background: linear-gradient(90deg, color-mix(in srgb, var(--t0) 62%, transparent) 0%, transparent 58%); }
/* the form: rim light, body tint, what shows in its shade, how solid its body is */
.case-hero[data-tone="maersk"] { --s-a: #b4e4f6; --s-b: #2f8fc4; --s-base: #07284a; --s-body: .9; --s-alpha: .66; }
.case-hero[data-tone="valid8"] { --s-a: #ffffff; --s-b: #7fe3d2; --s-base: #0a9ea2; --s-body: 1; --s-alpha: .36; }
.case-hero[data-tone="apple"]  { --s-a: #ffffff; --s-b: #c3d0f7; --s-base: #7f9be6; --s-body: 1; --s-alpha: .32; }

/* ---- home: the Maersk card shows one real screen; the three iPads keep clear of the card's edge ---- */
.browser.film .screen.wide16 { aspect-ratio: 2560 / 1593; background: #fff; }
@media (min-width: 761px) {
  .work-media.trio { gap: clamp(10px, 1.5vw, 22px); padding-right: clamp(10px, 2vw, 32px); }
  .work-media.trio .tablet { --w: min(16.2vw, 244px, 32svh); }
  .work-media.trio .tablet.main { --w: min(19.2vw, 288px, 38svh); }
}

/* ---- about: room above the head ---- */
@media (min-width: 761px) {
  [data-about="big"] .portrait img { width: auto; height: 86%; right: 2%; }
}

/* ---- Maersk: one stage tells both halves. The knot builds under "6 months", clears,
        and the same people then reach one place. Only the words change; nothing moves. ---- */
.story .count { grid-area: 1 / 1; transition: opacity .8s ease; }
.story .count.after { opacity: 0; }
.story.solved .count.before { opacity: 0; }
.story.solved .count.after { opacity: 1; }
.story .count.after b { font-size: clamp(38px, 4.9vw, 74px); line-height: .96; white-space: normal; letter-spacing: -.045em; }
.chapter-head.after-stage { margin-top: clamp(28px, 3.6vw, 52px); margin-bottom: 0; }

/* ---- a reel: real screens take turns; each one draws near its detail once and then stands still ---- */
.chapter .stage.reel { min-height: 0; margin-top: clamp(8px, 1vw, 16px); }
.reel .views, .reel .turns-tabs { width: min(100%, 1120px, (100svh - var(--nav-h) - 205px) * 1.607); }
.reel .views { aspect-ratio: 2560 / 1593; }
.turns-tabs.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.turns-tabs span { display: block; margin-top: 8px; font-size: 16px; line-height: 1.42; color: color-mix(in srgb, var(--ink) 84%, transparent); max-width: 30ch; }
.reel .turns-tabs button { opacity: .7; }
.reel .turns-tabs li.on button, .reel .turns-tabs button:hover { opacity: 1; }
.view img.zoom { transform-origin: var(--zo, 50% 50%); transition: transform 0s .6s; }
.js .view.on img.zoom { transform: scale(var(--zs, 1.25)); transition: transform 1.9s cubic-bezier(.3, 0, .1, 1) .9s; }

@media (max-width: 760px) {
  .case-hero { min-height: 74svh; }
  .turns-tabs.four { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 4px; }
  .turns-tabs span { font-size: 15px; }
  .story .count.after b { font-size: 40px; }
  /* phone: words at the top, the globe low, so neither sits on the other */
  .chapter .stage.story { min-height: 500px; }
  .story .ill { position: absolute; inset: 0; padding: 28px 20px; align-content: start; }
}
@media (prefers-reduced-motion: reduce) {
  .case-hero > .bd > i { animation: none; }
  .js .view.on img.zoom { transition: none; }
}

/* ==========================================================================
   ROUND 6 — from the 26 Nov 12:53 recording
   ========================================================================== */

/* ---- Just Football: one deep pitch green with a little teal in it, white text ---- */
[data-tone="jf"] { --t0: #0c6a45; --t1: #46d893; --t2: #12918a; --t3: #053a2a; }
.case-hero[data-tone="jf"] { --s-a: #d6ffe8; --s-b: #2fcf88; --s-base: #063f2b; --s-body: .9; --s-alpha: .66; }

/* ---- home top: the round button also rides on the pointer over the hero, where it says Continue ---- */
.hero-do .enter { display: none; }
.hero-do.follow { cursor: none; }
.hero-do.follow .do-glass { cursor: auto; }
.hero-do.follow .enter { display: grid; position: fixed; left: 0; top: 0; bottom: auto; translate: none; margin: -46px 0 0 -46px; pointer-events: none; scale: 0; z-index: 3; font-size: 16px; }
.hero-do.follow.near .enter { scale: 1; }
/* the skill's name stands nearer the middle of the screen, on the form */
.hero-do { padding-top: max(calc(var(--nav-h) + 5svh), 27svh); }

/* ---- about: the words stand in the middle of the card, not at its foot ---- */
[data-about="big"] .about-text { justify-content: center; }

/* ---- case top: half as tall. The form is twice as big and rises from the bottom edge, as on the home hero,
        and the project's logo lies inside it. ---- */
.case-hero { min-height: clamp(380px, 56svh, 640px); }
.case-hero h1 { font-size: clamp(38px, 4.6vw, 84px); max-width: 11em; }
.case-hero .lead { max-width: 34ch; }
.case-shape.on ~ .wrap .logo { position: absolute; width: 1px; height: 1px; margin: 0; clip-path: inset(50%); }

/* ---- Maersk: the stage shows the answer from the start ---- */
.story .count b { font-size: clamp(38px, 4.9vw, 74px); line-height: .96; white-space: normal; letter-spacing: -.045em; }
.story .count span { margin-top: 14px; max-width: 20ch; line-height: 1.35; }
.chapter-head.second { margin-top: clamp(44px, 6vw, 84px); }

/* ---- a new part of a case opens on black, across the whole page ---- */
.part-band { margin-top: clamp(72px, 11vw, 150px); padding-block: clamp(72px, 10vw, 150px); background: var(--ink); color: #fff; }
.part-band .grid { align-items: end; row-gap: 12px; }
.part-band h2 { grid-column: 1 / span 8; font-size: clamp(44px, 7vw, 120px); line-height: .95; letter-spacing: -.045em; }
.part-band p { grid-column: 9 / span 4; padding-bottom: .5em; color: var(--on-ink-soft); }
.part-band + .chapter { padding-top: clamp(56px, 7vw, 100px); }

/* ---- Just Football: the table says what its two columns are; two numbers under "On the pitch" ---- */
.sheet.pairs > .pairs-head { padding-block: clamp(14px, 1.6vw, 20px) clamp(10px, 1.2vw, 14px); }
.sheet.pairs > .pairs-head p { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.numbers.tested { margin-bottom: clamp(24px, 3.2vw, 44px); }
.numbers.tested div { grid-column: span 3; }
.numbers.tested div:first-child { grid-column: 7 / span 3; }
.numbers.tested b { font-size: clamp(40px, 5vw, 72px); }

/* ---- a long page inside a screen can be scrolled by the visitor ---- */
.turns .view:not(.on) { pointer-events: none; }
.turns .view.on { z-index: 1; }
.screen.scrolls { overflow-y: auto; scrollbar-width: none; }
.screen.scrolls::-webkit-scrollbar { display: none; }
.screen.scrolls:focus-visible { outline: 3px solid var(--pop); outline-offset: 3px; }
.screen.scrolls > img.pagescroll { position: relative; inset: auto; display: block; width: 100%; height: auto; animation: none; }

/* ---- the next case: its screen stands whole inside the card ---- */
.next a { padding-bottom: clamp(24px, 3.4vw, 48px); }
.next .work-media { align-self: center; }
.next .work-media .laptop { margin-bottom: 0; }

@media (max-width: 760px) {
  .hero-do { padding-top: calc(var(--nav-h) + 3svh); }
  .case-hero { min-height: 66svh; }
  .story .count b { font-size: 40px; }
  .part-band h2, .part-band p { grid-column: 1 / -1; }
  .sheet.pairs > .pairs-head { display: none; }
  .numbers.tested div, .numbers.tested div:first-child { grid-column: span 6; }
  .next a { padding-bottom: 24px; }
}

/* ==========================================================================
   ROUND 7 — from the 26 Nov 14:16 recording
   Colour is used sparingly again: white (or mist) under the work, and one form in the
   project's colours standing behind the picture.  ?work=cards shows the round-5 cards.
   ========================================================================== */
.work > .wk { display: none; }
.work[data-work="scenes"] > .wk-scenes, .work[data-work="cards"] > .wk-cards { display: block; }

/* the line under the name */
.entry .lead.tag { max-width: 30ch; font-size: clamp(19px, 1.7vw, 28px); line-height: 1.4; font-weight: 500; letter-spacing: -.015em; color: rgba(255, 255, 255, .86); }

/* ---- the form's colours on a light ground: rim light, body tint, the colour in its shade, how solid it is ---- */
[data-form="maersk"] { --s-a: #d3f0fb; --s-b: #42b0d5; --s-base: #1668a8; --s-body: 1; --s-alpha: .88; }
[data-form="valid8"] { --s-a: #f3ffd6; --s-b: #86e6d6; --s-base: #0aa59a; --s-body: 1; --s-alpha: .84; }
[data-form="apple"]  { --s-a: #ffd6ee; --s-b: #c3d0f7; --s-base: #6f8fe0; --s-body: 1; --s-alpha: .84; }
[data-form="jf"]     { --s-a: #dccbff; --s-b: #4fdc98; --s-base: #159a5c; --s-body: 1; --s-alpha: .86; }

/* ---- the work in plain frames, sized from one height (--mh) ---- */
.wk-media { --mh: 420px; position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: calc(var(--mh) * .06); min-width: 0; }
.wk-media .browser { --w: min(100%, calc(var(--mh) * 1.607)); }
.wk-media .browser .screen.wide16 { aspect-ratio: 2560 / 1593; }
.wk-media .browser .screen.film169 { aspect-ratio: 16 / 9; background: #f2f3f5; }
.wk-media.m-valid8 .browser, .wk-media.m-jf .browser { --w: min(100%, calc(var(--mh) * 1.7778)); }
.wk-media .tablet { --w: calc(var(--mh) * .66); }
.wk-media .tablet.side { --w: calc(var(--mh) * .56); }
.wk-media .device { filter: drop-shadow(0 calc(var(--mh) * .05) calc(var(--mh) * .07) rgba(4, 8, 40, .26)); }
.arrow { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); transition: transform .45s var(--ease-land); }
.arrow svg { width: 20px; height: 20px; color: #fff; }
a:hover .arrow, a:focus-visible .arrow { transform: translateX(8px); }

/* ---- words on the left, the work on the right ---- */
.duo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.7vw, 24px); align-items: center; color: inherit; text-decoration: none; }
.duo-text { grid-column: 1 / span 4; display: grid; justify-items: start; row-gap: clamp(12px, 1.4vw, 20px); min-width: 0; }
.duo-text h3 { font-size: clamp(44px, 5.6vw, 100px); line-height: .95; letter-spacing: -.045em; font-weight: 650; }
.duo-text .lead { max-width: 22ch; }
.duo-text .facts { margin: 0; padding: 0; }
.duo > .wk-media { grid-column: 5 / -1; --mh: min(58svh, 35vw, 720px); }
.duo > .wk-media.m-apple { --mh: min(56svh, 31vw, 660px); }

/* ---- home: selected work. The form stays in place behind the work while the four scenes pass in front of it ---- */
.wk-scenes { position: relative; }
/* the canvas sticks inside a holder that is exactly as tall as the section, so the form ends where the section ends */
.wk-scenes > .duo-hold { position: absolute; inset: 0; pointer-events: none; }
.duo-hold > .duo-shape { position: sticky; top: 0; display: block; width: 100%; height: 100svh; opacity: 0; transition: opacity 1.2s ease; }
.duo-hold > .duo-shape.on { opacity: 1; }
.wk-scenes > .wrap { position: relative; z-index: 1; width: min(100% - 2 * var(--gutter), 1720px); padding-top: clamp(72px, 11vw, 150px); }
.wk-scenes .section-head { margin-bottom: 0; }
.wk-scenes .duo { min-height: 92svh; }

/* ---- case top: the same picture as that project's scene, on mist. It stands still and the white page slides over it ---- */
.case-hero.light { display: grid; align-content: center; min-height: min(100svh, 920px); padding: calc(var(--nav-h) + 8px) 0 calc(clamp(20px, 3vw, 44px) + var(--r-stage)); background: var(--mist); color: var(--ink); }
.case-hero.light .duo-text { row-gap: 0; }
.case-hero.light h1 { font-size: clamp(34px, 3.7vw, 66px); max-width: 11em; }
.case-hero.light .duo-text { grid-column: 1 / span 5; }
.case-hero.light .duo > .wk-media { grid-column: 6 / -1; }
.case-hero.light .lead { max-width: 26ch; color: var(--ink); }
.case-hero.light .duo > .wk-media { --mh: min(56svh, 35vw, 600px); }
.case-hero.light .duo > .wk-media.m-apple { --mh: min(50svh, 27vw, 480px); }

/* ---- the facts row: the logo, small, in front of the role ---- */
.case-row .has-logo { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(12px, 1.3vw, 18px); align-items: center; }
.fact-logo { grid-row: 1 / span 2; height: 42px; width: auto; }
.fact-logo.wide { height: 26px; }
.fact-logo.to-ink { filter: brightness(0); }

/* ---- Maersk: problem and solution side by side ---- */
.chapter.first { padding-top: clamp(48px, 6vw, 88px); }
.ps { row-gap: 36px; margin-bottom: clamp(24px, 3.2vw, 44px); }
.ps > div { grid-column: span 6; padding-right: clamp(0px, 3vw, 56px); }
.ps h2 { font-size: clamp(28px, 3vw, 44px); line-height: 1.06; }
.ps h2 span { display: block; color: var(--muted); }
.ps p { margin-top: clamp(12px, 1.3vw, 18px); font-size: clamp(19px, 1.55vw, 23px); line-height: 1.38; font-weight: 450; letter-spacing: -.01em; max-width: 30em; }
.story .count span { max-width: 22ch; }

/* ---- Maersk: Online Booking, the whole part, stands on black ---- */
.dark-part { margin-top: clamp(72px, 11vw, 150px); padding-bottom: clamp(72px, 10vw, 140px); background: var(--ink); color: #fff; border-radius: var(--r-stage); }
.dark-part .part-band { margin-top: 0; padding-bottom: 0; background: none; }
.dark-part .soft { color: var(--on-ink-soft); }
.dark-part :focus-visible { outline-color: #fff; }
.dark-part .pairs > div, .dark-part .pairs > div:last-child { border-color: rgba(255, 255, 255, .16); }
.dark-part .pairs p:first-child { color: var(--on-ink-soft); }
.dark-part .stage.mist { --stage-bg: #171b24; --light: rgba(120, 132, 160, .3); color: #fff; }
.dark-part .turns-tabs span { color: rgba(255, 255, 255, .78); }
.dark-part + .next { margin-top: clamp(56px, 8vw, 110px); }
/* a screen that stands whole in its stage */
.stage.whole { display: grid; place-items: center; padding: clamp(24px, 4vw, 64px) clamp(16px, 4vw, 64px); }
.chapter .stage.whole { min-height: 0; }

/* ---- a long page inside a screen shows its scroll bar ---- */
.screen.scrolls { scrollbar-width: auto; }
.screen.scrolls::-webkit-scrollbar { display: block; width: 12px; background: transparent; }
.screen.scrolls::-webkit-scrollbar-thumb { background: rgba(13, 16, 22, .46); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
.screen.scrolls::-webkit-scrollbar-thumb:hover { background-color: rgba(13, 16, 22, .7); }

@media (max-width: 760px) {
  .duo { display: block; }
  .duo > .wk-media, .duo > .wk-media.m-apple, .case-hero.light .duo > .wk-media, .case-hero.light .duo > .wk-media.m-apple { --mh: 52vw; margin-top: 28px; }
  .wk-media .tablet { --w: 34vw; } .wk-media .tablet.side { --w: 25vw; }
  .wk-media { gap: 3vw; }
  .wk-scenes .duo { min-height: 0; padding-block: 44px 28px; }
  .case-hero.light { min-height: 0; padding-top: calc(var(--nav-h) + 28px); }
  .ps > div { grid-column: 1 / -1; padding-right: 0; }
}

/* ==========================================================================
   ROUND 8 — the North Star walkthrough (ns-film.js): real stills, a drawn pointer, a camera
   ========================================================================== */
.nsf-screen { cursor: default; background: #fff; }
.nsf-world { position: absolute; left: 0; top: 0; width: 100%; transform-origin: 0 0; will-change: transform; }
.nsf-still { position: absolute; left: 0; top: 0; width: 100%; height: auto; opacity: 0; user-select: none; -webkit-user-drag: none; }
.nsf-still:first-child { opacity: 1; }
.nsf-cursor { position: absolute; left: 0; top: 0; width: 30px; height: 30px; margin: -3px 0 0 -6px; z-index: 4; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(4, 8, 40, .35)); will-change: transform; }
.nsf-cursor svg { display: block; width: 100%; height: 100%; }
.nsf-ring { position: absolute; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 2px solid rgba(66, 176, 213, .95); background: rgba(66, 176, 213, .2); opacity: 0; z-index: 3; pointer-events: none; }
.nsfilm .turns-tabs button { opacity: .7; }
.nsfilm .turns-tabs li.on button, .nsfilm .turns-tabs button:hover { opacity: 1; }

/* ==========================================================================
   ROUND 9 — from the 26 Nov 15:26 recording
   Each project stands on a large glass card, so words and work belong together and the form shows
   through, blurred. Two versions: ?card=glass (shown without an option) and ?card=tint, where the
   card takes a little of the project's colour, and so does the top of its case page.
   ========================================================================== */
.wk-scenes > .wrap { width: min(100% - 2 * var(--gutter), 1560px); padding-bottom: clamp(24px, 4vw, 64px); }
.wk-scenes .section-head { margin-bottom: clamp(28px, 4vw, 56px); }
.wk-scenes .duo { min-height: 0; margin-bottom: clamp(20px, 2.6vw, 40px); padding: clamp(28px, 4.2vw, 72px) clamp(24px, 3.6vw, 64px); border-radius: var(--r-stage);
  background: rgba(255, 255, 255, .58); -webkit-backdrop-filter: blur(34px) saturate(1.5); backdrop-filter: blur(34px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 1px 0 rgba(13, 16, 22, .04), 0 30px 70px -44px rgba(13, 16, 22, .38); }
.wk-scenes .duo-text { grid-column: 1 / span 4; }
.wk-scenes .duo > .wk-media { grid-column: 5 / -1; justify-content: flex-end; --mh: min(58svh, 33vw, 640px); }
.wk-scenes .duo > .wk-media.m-apple { --mh: min(54svh, 28vw, 560px); }
:root[data-card="tint"] .wk-scenes .duo { background: color-mix(in srgb, var(--s-b) 20%, rgba(255, 255, 255, .56)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--s-b) 26%, rgba(255, 255, 255, .7)), 0 30px 70px -44px rgba(13, 16, 22, .38); }
:root[data-card="tint"] .case-hero.light { background: color-mix(in srgb, var(--s-b) 17%, var(--mist)); }

/* ---- the facts row: the logo in a place of its own, and a line under the row ---- */
.case-row dl { grid-template-columns: auto repeat(4, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 40px); align-items: center; padding-bottom: clamp(20px, 2.4vw, 34px); border-bottom: 1px solid var(--line); }
.case-row .brand { padding-right: clamp(4px, 1.6vw, 28px); }
.case-row .brand .fact-logo { display: block; grid-row: auto; height: 44px; }
.case-row .brand .fact-logo.wide { height: 28px; }

@media (max-width: 760px) {
  .wk-scenes .duo { padding: 26px 20px 24px; }
  .wk-scenes .duo > .wk-media, .wk-scenes .duo > .wk-media.m-apple { --mh: 48vw; justify-content: center; }
  .case-row dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-row .brand { grid-column: 1 / -1; }
}

/* ==========================================================================
   ROUND 10 — two more ways to draw the project cards (he did not love glass or tint)
   ?card=frost   a smaller pane of clear frosted glass: the form is plainly there behind it and around it
   ?card=dark    selected work stands on black like the top of the page; smoked-glass cards, the form glows through
   ========================================================================== */
:root[data-card="frost"] .wk-scenes > .wrap { width: min(100% - 2 * var(--gutter), 1240px); }
:root[data-card="frost"] .wk-scenes .duo { margin-bottom: clamp(36px, 7svh, 90px); padding: clamp(22px, 2.6vw, 40px) clamp(22px, 2.8vw, 44px);
  background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(18px) saturate(1.8); backdrop-filter: blur(18px) saturate(1.8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), inset 0 1px 0 #fff, 0 1px 0 rgba(13, 16, 22, .05), 0 26px 60px -34px rgba(13, 16, 22, .42); }
:root[data-card="frost"] .wk-scenes .duo-text h3 { font-size: clamp(40px, 4.6vw, 80px); }
:root[data-card="frost"] .wk-scenes .duo > .wk-media { --mh: min(50svh, 28vw, 480px); }
:root[data-card="frost"] .wk-scenes .duo > .wk-media.m-apple { --mh: min(48svh, 24vw, 440px); }

:root[data-card="dark"] .wk-scenes { background: var(--ink); color: #fff; border-radius: 0 0 var(--r-stage) var(--r-stage); padding-bottom: clamp(24px, 4vw, 64px); }
:root[data-card="dark"] .wk-scenes :focus-visible { outline-color: #fff; }
:root[data-card="dark"] .wk-scenes .duo { background: rgba(13, 16, 22, .36); -webkit-backdrop-filter: blur(30px) saturate(1.4); backdrop-filter: blur(30px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 70px -40px rgba(0, 0, 0, .7); }
:root[data-card="dark"] .wk-scenes .duo .soft { color: var(--on-ink-soft); }
:root[data-card="dark"] .wk-scenes .arrow { background: #fff; }
:root[data-card="dark"] .wk-scenes .arrow svg { color: var(--ink); }
/* the form on black: a dark body with a bright rim, as on the top of the page */
:root[data-card="dark"] .wk-scenes [data-form="maersk"] { --s-a: #b4e4f6; --s-b: #2f8fc4; --s-base: #07284a; --s-body: .9; --s-alpha: 1; }
:root[data-card="dark"] .wk-scenes [data-form="valid8"] { --s-a: #c8fff2; --s-b: #19c3b1; --s-base: #06403f; --s-body: .9; --s-alpha: 1; }
:root[data-card="dark"] .wk-scenes [data-form="apple"]  { --s-a: #ffffff; --s-b: #9db4f0; --s-base: #232a4a; --s-body: .9; --s-alpha: 1; }
:root[data-card="dark"] .wk-scenes [data-form="jf"]     { --s-a: #d6ffe8; --s-b: #2fcf88; --s-base: #063f2b; --s-body: .9; --s-alpha: 1; }
:root[data-card="dark"] #personal { padding-top: clamp(64px, 9vw, 120px); }

/* ==========================================================================
   ROUND 11 — back to big scenes: one project a screen, full width, four ways (?scene=)
   In all four the name is plain to read and the line, role and years stay beside it for as long
   as the scene is on screen. The cards of rounds 9 and 10 are not on the page any more.
     night   black, like the top of the page: name on top, the work in front of the form, a glass row at the foot
     paper   white: name and words in a row on top, the work very large under them, in front of the form
     wash    the whole screen takes a pale wash of the project's colour; words left, work right
     stage   one rounded colour field fills the screen (the round-5 card, grown), words top left, work large
   ========================================================================== */
.scn-title { margin: 0; padding: clamp(56px, 8vw, 110px) max(var(--gutter), (100% - 1720px) / 2) 0; }
.scn { position: relative; display: grid; min-height: 100svh; padding: calc(var(--nav-h) + 8px) max(var(--gutter), (100% - 1720px) / 2) clamp(24px, 4svh, 48px); color: inherit; text-decoration: none;
  background: none; border-radius: 0; overflow: visible; isolation: auto; }
.scn::before, .scn > .bd { display: none; }
:root[data-scene] .scn { color: inherit; }                     /* the colour field's own text colour applies only in the stage version */
.scn-name { margin: 0; font-weight: 650; letter-spacing: -.045em; line-height: .92; }
.scn-line { margin: 0; font-size: clamp(19px, 1.7vw, 28px); line-height: 1.4; font-weight: 600; letter-spacing: -.02em; }
.scn-meta { margin: 0; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.4; font-weight: 600; letter-spacing: -.01em; }
.scn-meta span { display: block; }
.scn-meta span + span { font-weight: 450; opacity: .72; }
.scn .wk-media { min-width: 0; }
.scn .arrow { background: var(--ink); }
.scn .arrow svg { color: #fff; }

/* ---- night ---- */
:root[data-scene="night"] .wk-scenes { background: var(--ink); color: #fff; border-radius: 0 0 var(--r-stage) var(--r-stage); }
:root[data-scene="night"] .scn-title { display: none; }
:root[data-scene="night"] .scn { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto auto; grid-template-rows: auto minmax(0, 1fr) auto; column-gap: clamp(16px, 2.4vw, 40px); align-items: center;
  padding-inline: 0; padding-bottom: 0; }
:root[data-scene="night"] .scn-name { grid-area: 1 / 1 / 2 / -1; justify-self: center; text-align: center; font-size: clamp(44px, 8.8vw, 190px); line-height: .95; padding-top: 3svh; }
:root[data-scene="night"] .scn .wk-media { grid-area: 2 / 1 / 3 / -1; --mh: calc(100svh - var(--nav-h) - clamp(44px, 8.8vw, 190px) - clamp(190px, 26svh, 270px)); padding-block: 4svh 2svh; }
:root[data-scene="night"] .scn::after { content: ""; grid-area: 3 / 1 / 4 / -1; align-self: stretch; z-index: 0; background: rgba(13, 16, 22, .34); -webkit-backdrop-filter: blur(28px) saturate(1.35); backdrop-filter: blur(28px) saturate(1.35); border-top: 1px solid rgba(255, 255, 255, .16); }
:root[data-scene="night"] .scn-line, :root[data-scene="night"] .scn-meta, :root[data-scene="night"] .scn .arrow { grid-row: 3; position: relative; z-index: 1; margin-block: clamp(18px, 2.2vw, 30px); }
:root[data-scene="night"] .scn-line { grid-column: 1; margin-left: max(var(--gutter), (100vw - 2200px) / 2); }
:root[data-scene="night"] .scn-meta { grid-column: 2 / span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 40px); }
:root[data-scene="night"] .scn-meta span + span { font-weight: 600; opacity: 1; color: var(--on-ink-soft); }
:root[data-scene="night"] .scn .arrow { grid-column: 4; margin-right: max(var(--gutter), (100vw - 2200px) / 2); background: #fff; }
:root[data-scene="night"] .scn .arrow svg { color: var(--ink); }
:root[data-scene="night"] .wk-scenes [data-form="maersk"] { --s-a: #b4e4f6; --s-b: #2f8fc4; --s-base: #07284a; --s-body: .9; --s-alpha: 1; }
:root[data-scene="night"] .wk-scenes [data-form="valid8"] { --s-a: #c8fff2; --s-b: #19c3b1; --s-base: #06403f; --s-body: .9; --s-alpha: 1; }
:root[data-scene="night"] .wk-scenes [data-form="apple"]  { --s-a: #ffffff; --s-b: #9db4f0; --s-base: #232a4a; --s-body: .9; --s-alpha: 1; }
:root[data-scene="night"] .wk-scenes [data-form="jf"]     { --s-a: #d6ffe8; --s-b: #2fcf88; --s-base: #063f2b; --s-body: .9; --s-alpha: 1; }
:root[data-scene="night"] #personal { padding-top: clamp(64px, 9vw, 120px); }

/* ---- paper ---- */
:root[data-scene="paper"] .scn { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: auto minmax(0, 1fr); column-gap: clamp(20px, 3vw, 56px); row-gap: clamp(16px, 3svh, 40px); align-items: end; }
:root[data-scene="paper"] .scn-name { grid-area: 1 / 1; font-size: clamp(52px, 8vw, 160px); white-space: nowrap; }
:root[data-scene="paper"] .scn-line { grid-area: 1 / 2; max-width: 22ch; padding-bottom: .35em; }
:root[data-scene="paper"] .scn-meta { grid-area: 1 / 3; padding-bottom: .5em; display: grid; grid-template-columns: auto auto; column-gap: 20px; align-items: end; }
:root[data-scene="paper"] .scn-meta span:first-child { grid-column: 1; }
:root[data-scene="paper"] .scn-meta span + span { grid-column: 1; }
:root[data-scene="paper"] .scn .arrow { grid-area: 1 / 3; justify-self: end; align-self: end; margin-bottom: .5em; }
:root[data-scene="paper"] .scn-meta { padding-right: 68px; }
:root[data-scene="paper"] .scn .wk-media { grid-area: 2 / 1 / 3 / -1; align-self: center; --mh: calc(100svh - var(--nav-h) - clamp(52px, 8vw, 160px) - clamp(100px, 15svh, 160px)); }

/* ---- wash ---- */
:root[data-scene="wash"] .wk-scenes { transition: background-color .9s ease; background: #fff; }
:root[data-scene="wash"] .wk-scenes[data-at="maersk"] { background: #e3f1f8; }
:root[data-scene="wash"] .wk-scenes[data-at="valid8"] { background: #e2f6f1; }
:root[data-scene="wash"] .wk-scenes[data-at="apple"]  { background: #ebeefb; }
:root[data-scene="wash"] .wk-scenes[data-at="jf"]     { background: #e3f6ea; }
:root[data-scene="wash"] .scn { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr auto auto auto auto 1fr; column-gap: clamp(12px, 1.7vw, 24px); align-items: start; }
:root[data-scene="wash"] .scn-name { grid-area: 2 / 1 / 3 / span 4; font-size: clamp(48px, 6.6vw, 124px); }
:root[data-scene="wash"] .scn-line { grid-area: 3 / 1 / 4 / span 4; margin-top: clamp(14px, 1.6vw, 24px); max-width: 20ch; }
:root[data-scene="wash"] .scn-meta { grid-area: 4 / 1 / 5 / span 4; margin-top: clamp(14px, 1.6vw, 24px); }
:root[data-scene="wash"] .scn .arrow { grid-area: 5 / 1; margin-top: clamp(18px, 2vw, 30px); }
:root[data-scene="wash"] .scn .wk-media { grid-area: 1 / 5 / 7 / -1; align-self: center; justify-content: flex-end; --mh: min(66svh, 38vw, 760px); }
:root[data-scene="wash"] .scn .wk-media.m-apple { --mh: min(60svh, 31vw, 660px); }

/* ---- stage ---- */
:root[data-scene="stage"] .duo-hold { display: none; }
:root[data-scene="stage"] .wk-scenes { padding-bottom: clamp(16px, 2vw, 28px); }
:root[data-scene="stage"] .scn { min-height: 0; height: calc(100svh - var(--nav-h) - clamp(16px, 2vw, 28px)); margin: 0 clamp(12px, 1.6vw, 28px) clamp(12px, 1.6vw, 28px); padding: clamp(28px, 3.6vw, 64px);
  grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto auto 1fr; column-gap: clamp(12px, 1.7vw, 24px); align-items: start;
  isolation: isolate; overflow: hidden; border-radius: var(--r-stage); background: var(--t0); position: sticky; top: calc(var(--nav-h) + 4px); }
:root[data-scene="stage"] .scn-title { padding-bottom: clamp(20px, 3vw, 44px); }
:root[data-scene="stage"] .scn[data-tone="maersk"], :root[data-scene="stage"] .scn[data-tone="jf"] { color: #fff; }
:root[data-scene="stage"] .scn[data-tone="valid8"], :root[data-scene="stage"] .scn[data-tone="apple"] { color: var(--ink); }
:root[data-scene="stage"] .scn > .bd { display: block; }
:root[data-scene="stage"] .scn::before { display: block; }
:root[data-scene="stage"] .scn-name { grid-area: 1 / 1 / 2 / span 4; font-size: clamp(48px, 6.6vw, 124px); }
:root[data-scene="stage"] .scn-line { grid-area: 2 / 1 / 3 / span 4; margin-top: clamp(14px, 1.6vw, 24px); max-width: 20ch; }
:root[data-scene="stage"] .scn-meta { grid-area: 3 / 1 / 4 / span 4; margin-top: clamp(14px, 1.6vw, 24px); }
:root[data-scene="stage"] .scn .arrow { grid-area: 4 / 1; align-self: end; background: currentColor; }
:root[data-scene="stage"] .scn[data-tone="maersk"] .arrow svg, :root[data-scene="stage"] .scn[data-tone="jf"] .arrow svg { color: var(--ink); }
:root[data-scene="stage"] .scn .wk-media { grid-area: 1 / 5 / 5 / -1; align-self: center; justify-content: flex-end; --mh: min(100svh - var(--nav-h) - 200px, 40vw, 780px); }
:root[data-scene="stage"] .scn .wk-media.m-apple { --mh: min(100svh - var(--nav-h) - 220px, 32vw, 680px); }

@media (max-width: 760px) {
  :root[data-scene] .scn { display: block; min-height: 0; height: auto; position: relative; top: auto; padding: 40px var(--gutter) 34px; }
  :root[data-scene="stage"] .scn { margin: 0 12px 12px; padding: 28px 20px; }
  :root[data-scene] .scn-name { font-size: 13vw; padding-top: 0; text-align: left; }
  :root[data-scene] .scn-line { margin: 12px 0 0; max-width: none; }
  :root[data-scene] .scn-meta { display: block; margin: 12px 0 0; padding: 0; }
  :root[data-scene] .scn .arrow { margin: 16px 0 0; }
  :root[data-scene] .scn .wk-media, :root[data-scene] .scn .wk-media.m-apple { --mh: 50vw; margin-top: 26px; padding: 0; justify-content: center; }
  :root[data-scene="night"] .scn::after { display: none; }
}

/* ==========================================================================
   ROUND 12 — from the 26 Nov 19:35 recording. His favourite is the wash (the ground takes a pale tint of the
   current project). What was missing: a lock-up, "making the text and the visual elements fit better together".
     ?scene=lock   a header row sits on the picture and is exactly as wide as it: name, line, role, years, arrow
     ?scene=side   the words stand at the picture's left side, locked to its top and bottom edges
   Both keep the wash and the form behind the picture. Every picture is one rectangle of the same width
   (the three iPads stand together on one plate). The name is a heading, not a poster.
   ========================================================================== */
:root[data-scene="lock"] .wk-scenes, :root[data-scene="side"] .wk-scenes { transition: background-color .9s ease; background: #fff; }
:root[data-scene="lock"] .wk-scenes[data-at="maersk"], :root[data-scene="side"] .wk-scenes[data-at="maersk"] { background: #e3f1f8; }
:root[data-scene="lock"] .wk-scenes[data-at="valid8"], :root[data-scene="side"] .wk-scenes[data-at="valid8"] { background: #e2f6f1; }
:root[data-scene="lock"] .wk-scenes[data-at="apple"],  :root[data-scene="side"] .wk-scenes[data-at="apple"]  { background: #ebeefb; }
:root[data-scene="lock"] .wk-scenes[data-at="jf"],     :root[data-scene="side"] .wk-scenes[data-at="jf"]     { background: #e3f6ea; }

/* the picture: one rectangle, --lw wide, for every project */
:root[data-scene="lock"] .scn, :root[data-scene="side"] .scn { --lw: min(calc(100vw - 2 * var(--gutter)), 1400px, calc((100svh - var(--nav-h) - 216px) * 1.62)); }
:root[data-scene="side"] .scn { --lw: min(calc(100vw - 2 * var(--gutter) - 380px), 1280px, calc((100svh - var(--nav-h) - 150px) * 1.62)); }
:root[data-scene="lock"] .scn .wk-media, :root[data-scene="side"] .scn .wk-media { width: var(--lw); --mh: calc(var(--lw) / 1.62 * .8); }
:root[data-scene="lock"] .scn .wk-media .browser, :root[data-scene="side"] .scn .wk-media .browser { --w: var(--lw); }
:root[data-scene="lock"] .scn .wk-media.m-apple, :root[data-scene="side"] .scn .wk-media.m-apple { aspect-ratio: 1.62; border-radius: calc(var(--lw) * .016); background: rgba(255, 255, 255, .62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 calc(var(--lw) * .04) calc(var(--lw) * .06) calc(var(--lw) * -.035) rgba(13, 16, 22, .34); }

/* ---- lock: a header on the picture, exactly as wide as it. Name and line at the left, role, years and arrow at the right ---- */
:root[data-scene="lock"] .scn { width: var(--lw); margin-inline: auto; padding-inline: 0; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: auto auto auto; align-content: center; align-items: end;
  column-gap: clamp(14px, 1.7vw, 28px); }
:root[data-scene="lock"] .scn-name { grid-area: 1 / 1; font-size: clamp(30px, 3.1vw, 52px); letter-spacing: -.035em; line-height: 1; }
:root[data-scene="lock"] .scn-line { grid-area: 2 / 1; margin-top: clamp(6px, .7vw, 10px); font-size: clamp(17px, 1.35vw, 22px); font-weight: 450; letter-spacing: -.01em; color: color-mix(in srgb, var(--ink) 78%, transparent); }
:root[data-scene="lock"] .scn-meta { grid-area: 1 / 2 / 3 / 3; display: flex; gap: clamp(14px, 1.7vw, 28px); white-space: nowrap; padding-bottom: .2em; }
:root[data-scene="lock"] .scn-meta span + span { opacity: .7; }
:root[data-scene="lock"] .scn .arrow { grid-area: 1 / 3 / 3 / 4; width: 44px; height: 44px; }
:root[data-scene="lock"] .scn .wk-media { grid-area: 3 / 1 / 4 / -1; margin-top: clamp(16px, 1.8vw, 26px); }

/* ---- side: the words at the picture's side, their first line level with its top, their last with its foot ---- */
:root[data-scene="side"] .scn { width: fit-content; max-width: calc(100vw - 2 * var(--gutter)); margin-inline: auto; padding-inline: 0; grid-template-columns: minmax(0, 300px) auto; grid-template-rows: auto auto 1fr auto; align-content: center; align-items: start;
  column-gap: clamp(28px, 3.2vw, 60px); }
:root[data-scene="side"] .scn-name { grid-area: 1 / 1; font-size: clamp(32px, 3.4vw, 58px); letter-spacing: -.035em; line-height: 1; margin-top: -.08em; }
:root[data-scene="side"] .scn-line { grid-area: 2 / 1; margin-top: clamp(12px, 1.3vw, 18px); font-size: clamp(17px, 1.35vw, 22px); font-weight: 450; letter-spacing: -.01em; color: color-mix(in srgb, var(--ink) 78%, transparent); }
:root[data-scene="side"] .scn-meta { grid-area: 4 / 1; align-self: end; padding-right: 60px; }
:root[data-scene="side"] .scn .arrow { grid-area: 4 / 1; align-self: end; justify-self: end; width: 44px; height: 44px; }
:root[data-scene="side"] .scn .wk-media { grid-area: 1 / 2 / 5 / 3; }

@media (max-width: 900px) {
  :root[data-scene="side"] .scn { --lw: calc(100vw - 2 * var(--gutter)); grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto auto; width: var(--lw); row-gap: 0; }
  :root[data-scene="side"] .scn-name, :root[data-scene="side"] .scn-line { grid-column: 1 / -1; }
  :root[data-scene="side"] .scn-meta { grid-area: 3 / 1; margin-top: 12px; padding: 0; }
  :root[data-scene="side"] .scn .arrow { grid-area: 3 / 2; }
  :root[data-scene="side"] .scn .wk-media { grid-area: 4 / 1 / 5 / -1; margin-top: 20px; }
  :root[data-scene="lock"] .scn { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto auto; }
  :root[data-scene="lock"] .scn-name { grid-area: 1 / 1 / 2 / -1; }
  :root[data-scene="lock"] .scn-line { grid-area: 2 / 1 / 3 / -1; }
  :root[data-scene="lock"] .scn-meta { grid-area: 3 / 1; margin-top: 10px; padding: 0; }
  :root[data-scene="lock"] .scn .arrow { grid-area: 3 / 2; }
  :root[data-scene="lock"] .scn .wk-media { grid-area: 4 / 1 / 5 / -1; }
}
@media (max-width: 760px) {
  :root[data-scene="lock"] .scn, :root[data-scene="side"] .scn { display: grid; width: auto; margin-inline: 0; padding: 40px var(--gutter) 34px; --lw: calc(100vw - 2 * var(--gutter)); }
  :root[data-scene="lock"] .scn-name, :root[data-scene="side"] .scn-name { font-size: 9vw; }
  :root[data-scene="lock"] .scn-line, :root[data-scene="side"] .scn-line { margin: 0; }
  :root[data-scene="lock"] .scn-meta, :root[data-scene="side"] .scn-meta { margin: 6px 0 0; display: block; white-space: normal; }
  :root[data-scene="lock"] .scn .arrow, :root[data-scene="side"] .scn .arrow { margin: 0; align-self: end; }
  :root[data-scene="lock"] .scn .wk-media, :root[data-scene="side"] .scn .wk-media { margin-top: 16px; --mh: calc(var(--lw) / 1.62 * .8); }
}

/* ==========================================================================
   ROUND 13 — from the 26 Nov 20:10 recording. The header-on-the-picture version is the one.
   Five scenes: Maersk is two again (Enterprise Platform leads, on a dark ground, with the globe; then Online Booking).
   Just Football is gold. "Selected work" stands in the middle like everything under it.
   ========================================================================== */
.scn-title { text-align: center; transition: color .9s ease; }
:root[data-scene="lock"] .wk-scenes[data-at="ep"], :root[data-scene="side"] .wk-scenes[data-at="ep"] { background: #0d1016; }
:root[data-scene="lock"] .wk-scenes[data-at="jf"], :root[data-scene="side"] .wk-scenes[data-at="jf"] { background: #fbf0d8; }
[data-form="jf"] { --s-a: #fff4cf; --s-b: #ffc65a; --s-base: #e8901c; --s-body: 1; --s-alpha: .88; }
/* the dark scene: white words, and they stay white while it leaves */
/* a plate: one rectangle as wide as every other picture, for work that is not a screen in a frame */
.scn .wk-media .plate { position: relative; width: var(--lw); aspect-ratio: 1.62; border-radius: calc(var(--lw) * .016); overflow: hidden; }
.scn .wk-media .stage.plate { min-height: 0; background: #0a0d13; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 calc(var(--lw) * .04) calc(var(--lw) * .06) calc(var(--lw) * -.035) rgba(0, 0, 0, .6); }
.scn .wk-media .stage.plate .ill { padding: calc(var(--lw) * .05); }
.scn .wk-media .stage.plate .count b { font-size: calc(var(--lw) * .062); line-height: .96; letter-spacing: -.045em; white-space: normal; }
.scn .wk-media .stage.plate .count span { font-size: calc(var(--lw) * .019); margin-top: calc(var(--lw) * .014); max-width: 16em; line-height: 1.35; }
/* Online Booking, two pictures: on the page's own grey with a computer, or a photograph of a desk */
.scn .wk-media .ob-desk { display: grid; place-items: center; background: #e9ebf0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.scn .wk-media .ob-desk .laptop { --w: calc(var(--lw) * .74); margin-top: calc(var(--lw) * .012); }
.scn .wk-media .ob-room img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
:root[data-ob="desk"] .ob-room, :root[data-ob="room"] .ob-desk { display: none; }
.wk-media .browser .screen.shot156 { aspect-ratio: 1920 / 1231; }

/* ---- a film in a frame: the screen itself is clipped (Safari did not round a video's corners inside a rounded parent),
        and nothing light shows through at its edge ---- */
.wk-media .browser:has(video) { background: #0d1016; }
.wk-media .browser .screen { border-radius: inherit; transform: translateZ(0); }
.wk-media .browser.has-bar .screen { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
/* the small player under a film */
.vbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 14px; padding: 9px 16px 9px 10px; background: #fff; color: var(--ink); }
.vplay { all: unset; box-sizing: border-box; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; }
.vplay:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.vplay svg { width: 16px; height: 16px; fill: currentColor; }
.vplay .i-play, .vplay.is-paused .i-pause { display: none; }
.vplay.is-paused .i-play { display: block; }
.vseek { -webkit-appearance: none; appearance: none; width: 100%; height: 20px; margin: 0; background: transparent; cursor: pointer; }
.vseek::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--ink) var(--p, 0%), #dfe2e8 var(--p, 0%)); }
.vseek::-moz-range-track { height: 4px; border-radius: 4px; background: #dfe2e8; }
.vseek::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--ink); }
.vseek::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--ink); border: 0; }
.vseek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 0; }
.vseek:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.vtime { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0; white-space: nowrap; }

/* ---- the names of the stories stand above the screen, where they are seen ---- */
.turns.tabs-top { display: flex; flex-direction: column; align-items: center; }
.turns.tabs-top .turns-tabs { order: -1; margin: 0 0 clamp(18px, 2.2vw, 30px); width: min(100%, 1040px); column-gap: clamp(16px, 2vw, 32px); }
.turns.tabs-top .turns-tabs button { padding-bottom: 0; }

/* ---- Just Football is gold: on its own page too (dark words on the gold) ---- */
[data-tone="jf"] { --t0: #f0a530; --t1: #ffe08f; --t2: #f6bd4f; --t3: #e07f1a; }
.stage[data-tone="jf"], .band[data-tone="jf"] { color: var(--ink); }
.stage[data-tone="jf"] { --light: rgba(255, 255, 255, .34); }
.stage[data-tone="jf"] .go { background: var(--ink); color: #fff; }
.stage[data-tone="jf"] .survey .r i { background: var(--ink); }
[data-tone="jf"] > .bd > svg { color: var(--ink); }

/* ---- the next case: a pale tint of that project, as on the home page (the layout he liked is kept) ---- */
.next .stage[data-tone] { color: var(--ink); background: #eef0f4; }
.next .stage[data-tone] > .bd { display: none; }
.next .stage[data-tone="maersk"] { background: #e3f1f8; }
.next .stage[data-tone="valid8"] { background: #e2f6f1; }
.next .stage[data-tone="apple"] { background: #ebeefb; }
.next .stage[data-tone="jf"] { background: #fbf0d8; }
.next .stage[data-tone] .soft, .next .stage[data-tone] h3 span { color: color-mix(in srgb, var(--ink) 62%, transparent); opacity: 1; }

/* ==========================================================================
   ROUND 14 — from the 26 Nov 20:45 recording
   ONE FORM FOR THE WHOLE HOME PAGE. It starts whole behind the name, sinks behind the six skills, comes down behind
   each project's picture in that project's colours, passes behind the About card, and is its first self again in the
   footer. There are three canvases (the black top, the page, the footer), because the page lies on top of the other
   two; each is fixed to the screen and seen through its own layer, and all three draw the form in the same place at
   the same moment (the director in kls.js), so it reads as one thing passing through the layers.
   ========================================================================== */
.form-win { position: absolute; inset: 0; z-index: 0; pointer-events: none; clip-path: inset(0); }
.form-win > canvas { position: fixed; left: 0; top: 0; width: 100vw; height: 100svh; display: block; opacity: 0; transition: opacity 1.2s ease; }
.form-win > canvas.on { opacity: 1; }
.home .page > .form-win { clip-path: inset(0 round var(--r-stage)); }
.home .page > main { position: relative; z-index: 1; }
footer > .wrap { position: relative; z-index: 1; }

/* the ground under selected work is the page itself now (the form lies between the ground and the work) */
:root[data-scene="lock"] .wk-scenes, :root[data-scene="lock"] .wk-scenes[data-at] { background: transparent; }
.home .page { transition: background-color .9s ease; }
.home .page[data-at="ep"]     { background: #eceef2; }
.home .page[data-at="maersk"] { background: #e3f1f8; }
.home .page[data-at="valid8"] { background: #e2f6f1; }
.home .page[data-at="apple"]  { background: #ebeefb; }
.home .page[data-at="jf"]     { background: #fbf0d8; }
/* the first project: a light ground like the rest, and the form dark grey */
[data-form="ep"] { --s-a: #d3d8e2; --s-b: #5b6271; --s-base: #12151b; --s-body: .9; --s-alpha: .96; }

/* keywords in place of a title: plain words with a hairline between them, as in the row under the six skills */
.scn-line.keys { display: flex; flex-wrap: wrap; column-gap: 1.7em; row-gap: 4px; overflow: hidden; }
/* every word has a hairline to its left; the one that starts a row has it outside the row, where it is cut off */
.scn-line.keys span { position: relative; }
.scn-line.keys span::before { content: ""; position: absolute; left: -.85em; top: .22em; bottom: .22em; width: 1px; background: color-mix(in srgb, currentColor 34%, transparent); }

/* Apple: two pictures to choose from */
.scn .wk-media .ap-verse { display: grid; place-items: center; background: rgba(255, 255, 255, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 calc(var(--lw) * .04) calc(var(--lw) * .06) calc(var(--lw) * -.035) rgba(13, 16, 22, .3); }
.scn .wk-media .ap-verse img { width: 92%; height: auto; display: block; }
.scn .wk-media .ap-shot { background: #fff; box-shadow: 0 calc(var(--lw) * .04) calc(var(--lw) * .06) calc(var(--lw) * -.035) rgba(13, 16, 22, .3); }
.scn .wk-media .ap-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
:root[data-apple="verse"] .ap-shot, :root[data-apple="shot"] .ap-verse { display: none; }
.scn .wk-media.m-apple { aspect-ratio: auto; background: none; box-shadow: none; border-radius: 0; }
.case-hero .wk-media.m-apple img.verse { width: min(100%, calc(var(--mh) * 2.0)); height: auto; display: block; }
.stage.white { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.stage.shot-lockup { min-height: 0; display: grid; place-items: center; padding: clamp(20px, 4vw, 64px); margin-top: clamp(24px, 3.2vw, 44px); }
.chapter .stage.shot-lockup { min-height: 0; }
.stage.shot-lockup img { width: min(100%, 1080px); height: auto; display: block; }

/* Personal projects: hidden for now (his word) */
#personal { display: none; }
/* on a phone the projects are taller than the screen, so words pass over the form: it is drawn thinner there */
@media (max-width: 760px) { .home .page > .form-win > canvas.on { opacity: .5; } }

/* ==========================================================================
   ROUND 15 — from the 26 Nov 21:25 recording
   ========================================================================== */
/* the round button on the pointer: place and size are one transform, set in kls.js */
.entry.follow .enter, .entry.follow.near .enter, .hero-do.follow .enter, .hero-do.follow.near .enter { scale: none; transition: none; transform: scale(0); }

/* a project's header: the name, then one small line (the role first, in bold, then the keywords). No year.
   The arrow stands alone on the right, level with the middle of the two lines: it belongs to the project, not to the role. */
:root[data-scene="lock"] .scn-line.keys { font-size: clamp(14px, 1.05vw, 16px); font-weight: 450; letter-spacing: 0; margin-top: clamp(7px, .8vw, 12px); }
.scn-line.keys .role { font-weight: 650; color: var(--ink); }
:root[data-scene="lock"] .scn .arrow { align-self: center; }

/* Maersk is blue, both times (the dark grey form read as an oil spill) */
[data-form="ep"] { --s-a: #d3f0fb; --s-b: #42b0d5; --s-base: #1668a8; --s-body: 1; --s-alpha: .88; }
.home .page[data-at="ep"] { background: #e3f1f8; }
/* ?ep=logo: the logo on the plate in place of the words */
.ep-logo { display: none; width: calc(var(--lw) * .27); height: auto; }
:root[data-ep="logo"] .scn .plate .count { display: none; }
:root[data-ep="logo"] .scn .plate .ep-logo { display: block; }

/* Online Booking, two pictures: his real MacBook mock-up, or the picture in a plain window. Both on a soft pale ground. */
.scn .wk-media .ob-mac, .scn .wk-media .ob-win { display: grid; place-items: center; background: linear-gradient(168deg, #fbfdfe 0%, #e9f3f9 46%, #cfe5f2 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 calc(var(--lw) * .04) calc(var(--lw) * .06) calc(var(--lw) * -.035) rgba(13, 16, 22, .3); }
.scn .wk-media .ob-mac img { width: 86%; height: auto; display: block; margin-top: calc(var(--lw) * .012); }
.scn .wk-media .ob-win .win { width: 82%; border-radius: calc(var(--lw) * .011); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(13, 16, 22, .07), 0 calc(var(--lw) * .034) calc(var(--lw) * .06) calc(var(--lw) * -.024) rgba(13, 16, 22, .34); }
.win-bar { display: flex; align-items: center; gap: calc(var(--lw) * .006); height: calc(var(--lw) * .03); padding-inline: calc(var(--lw) * .012); background: #f4f6f9; border-bottom: 1px solid rgba(13, 16, 22, .07); }
.win-bar i { width: calc(var(--lw) * .0085); height: calc(var(--lw) * .0085); border-radius: 50%; background: #d3d8e0; }
.win-bar b { flex: 0 1 38%; height: 54%; margin-inline: auto; border-radius: 99px; background: #e6e9ee; }
.scn .wk-media .ob-win .win img { display: block; width: 100%; height: auto; }
:root[data-ob="mac"] .ob-win, :root[data-ob="win"] .ob-mac { display: none; }

/* a film fills its frame with a pixel to spare on every side, so no line of the frame shows at its edge;
   the frame behind a light film is light */
.wk-media .browser .screen:has(> video) { position: relative; overflow: hidden; }
.wk-media .browser .screen > video { position: absolute; left: -1px; top: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.wk-media.m-valid8 .browser:has(video) { background: #f5f6f3; }

/* the top of a case page stands on the project's pale ground, as its scene does on the home page (?card=plain: the grey one) */
:root:not([data-card="plain"]) .case-hero.light[data-form="maersk"] { background: #e3f1f8; }
:root:not([data-card="plain"]) .case-hero.light[data-form="valid8"] { background: #e2f6f1; }
:root:not([data-card="plain"]) .case-hero.light[data-form="apple"]  { background: #ebeefb; }
:root:not([data-card="plain"]) .case-hero.light[data-form="jf"]     { background: #fbf0d8; }

/* the footer row: name, place, year */
.foot-row > :nth-child(2) { text-align: center; }

/* ?about=open — no card. The words stand on the page; he stands in front of the form, which comes to him and stays with him. */
#about[data-about="open"] { min-height: 100svh; display: grid; align-content: center; }
[data-about="open"] .about { align-items: center; }
[data-about="open"] .portrait { grid-column: 7 / -1; grid-row: 1; aspect-ratio: auto; min-height: 0; background: none; box-shadow: none; border-radius: 0; overflow: visible; display: grid; place-items: center; }
[data-about="open"] .portrait > :not(img) { display: none; }
[data-about="open"] .portrait img { position: static; inset: auto; width: auto; height: min(66svh, 46vw); max-width: 100%; object-fit: contain; filter: none;
  -webkit-mask-image: linear-gradient(#000 70%, transparent 99%); mask-image: linear-gradient(#000 70%, transparent 99%); }
[data-about="open"] .about-text { grid-column: 1 / span 6; grid-row: 1; color: var(--ink); padding: 0; justify-content: center; pointer-events: auto; }
[data-about="open"] .about-text .soft { color: var(--muted); }
[data-about="open"] .btn { background: var(--ink); color: #fff; }
[data-about="open"] .btn:hover { background: #2a2f3a; color: #fff; }
@media (max-width: 900px) {
  #about[data-about="open"] { min-height: 0; }
  [data-about="open"] .portrait, [data-about="open"] .about-text { grid-column: 1 / -1; grid-row: auto; }
  [data-about="open"] .portrait img { height: auto; width: min(78%, 420px); }
}
/* narrow screens: the arrow stands beside the name and the line, not on a row of its own */
@media (max-width: 1100px) {
  :root[data-scene="lock"] .scn-name { grid-area: 1 / 1 / 2 / 2; }
  :root[data-scene="lock"] .scn-line { grid-area: 2 / 1 / 3 / 2; }
  :root[data-scene="lock"] .scn .arrow { grid-area: 1 / 2 / 3 / 3; align-self: center; }
  :root[data-scene="lock"] .scn .wk-media { grid-area: 3 / 1 / 4 / -1; }
}

/* ==========================================================================
   ROUND 16 — from the 26 Nov 22:01 recording
   ========================================================================== */
/* the dots that travel on the Maersk globe are Maersk's blue */
canvas.globe[data-globe="one"], canvas.globe[data-globe="story"] { --ok: #42b0d5; }

/* ?logos=1: a logo before each project's name */
.scn-logo { display: none; }
:root[data-logos] .scn-name { display: flex; align-items: center; column-gap: .34em; }
:root[data-logos] .scn-logo { display: block; height: .86em; width: auto; flex: none; }
:root[data-logos] .scn-logo.icon { border-radius: 22%; }
.scn-logo.to-ink { filter: brightness(0); }

/* ---- a plate (one rounded rectangle, 1.62 wide to 1 tall) outside the home page: the top of a case page, a next-case card ---- */
.wk-media.m-ep, .wk-media.m-ob, .next .work-media { container-type: inline-size; }
.case-hero .wk-media .plate, .lead-media .wk-media .plate { --lw: min(100cqw, calc(var(--mh) * 1.62)); }
.next-pic { --lw: min(100cqw, 640px); }
.case-hero .wk-media .plate, .lead-media .wk-media .plate, .next-pic { position: relative; width: var(--lw); aspect-ratio: 1.62; border-radius: calc(var(--lw) * .016); overflow: hidden; }
.wk-media .stage.plate, .next-pic.dark { min-height: 0; margin: 0; background: #0a0d13; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 calc(var(--lw) * .04) calc(var(--lw) * .06) calc(var(--lw) * -.035) rgba(13, 16, 22, .5); }
.wk-media .stage.plate .ill, .next-pic.dark .ill { padding: calc(var(--lw) * .05); }
.wk-media .stage.plate .count b, .next-pic.dark .count b { font-size: calc(var(--lw) * .062); line-height: .96; letter-spacing: -.045em; white-space: normal; }
.wk-media .stage.plate .count span, .next-pic.dark .count span { font-size: calc(var(--lw) * .019); margin-top: calc(var(--lw) * .014); max-width: 16em; line-height: 1.35; }
/* Online Booking at the top of its own page: his MacBook mock-up */
.wk-media.m-ob img.mac { display: block; width: min(100%, calc(var(--mh) * 1.6)); height: auto; }

/* ---- the next case: the picture that project has on the home page, whole, with its form behind it ---- */
.next > .stage[data-form] { color: var(--ink); background: #eef0f4; }
.next > .stage[data-form="ep"], .next > .stage[data-form="maersk"] { background: #e3f1f8; }
.next > .stage[data-form="valid8"] { background: #e2f6f1; }
.next > .stage[data-form="apple"] { background: #ebeefb; }
.next > .stage[data-form="jf"] { background: #fbf0d8; }
.next > .stage[data-form] > .bd { display: none; }
.next > .stage[data-form] .soft, .next > .stage[data-form] h3 span { color: color-mix(in srgb, var(--ink) 62%, transparent); opacity: 1; }
.next h3 .sub { display: block; opacity: 1; color: inherit; }
.next > .stage[data-form] > a { position: relative; z-index: 1; padding-bottom: clamp(24px, 3.4vw, 48px); }
.next > .stage[data-form] .work-text { align-self: center; }
.next > .stage[data-form] .work-media { align-self: center; justify-content: flex-end; }
.next-shape { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.next-shape.on { opacity: 1; }
.next-pic { box-shadow: 0 calc(var(--lw) * .04) calc(var(--lw) * .06) calc(var(--lw) * -.035) rgba(13, 16, 22, .32); }
.next-pic.film { aspect-ratio: 16 / 9; background: #0d1016; }
.next-pic.film video { position: absolute; left: -1px; top: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.next-pic.white { background: #fff; }
.next-pic.white img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.next-pic.soft { display: grid; place-items: center; background: linear-gradient(168deg, #fbfdfe 0%, #e9f3f9 46%, #cfe5f2 100%); }
.next-pic.soft img { width: 86%; height: auto; display: block; margin-top: calc(var(--lw) * .012); }
@media (max-width: 860px) {
  .next > .stage[data-form] > a { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
  .next > .stage[data-form] .work-text, .next > .stage[data-form] .work-media { grid-column: 1 / -1; }
  .next > .stage[data-form] .work-media { justify-content: center; }
}

/* ---- About, open (now what is shown). The form is drawn by a canvas of About's own while it is fully with him;
        that canvas scrolls with the page, so the form cannot lag behind him. ---- */
#about[data-about="open"] { position: relative; }
.me-win { display: none; }
[data-about="open"] .me-win { display: block; position: absolute; left: 50%; top: 50%; width: 100vw; height: 100svh; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; }
.me-shape { display: block; width: 100%; height: 100%; opacity: 0; }
:root[data-glued] .me-shape { opacity: 1; }
:root[data-glued] .home .page > .form-win > canvas.page-shape { opacity: 0; }
[data-about="open"] .about { position: relative; z-index: 1; }
/* nothing lights up behind him under the pointer */
[data-about="open"] .portrait { pointer-events: none; clip-path: none; transition: none; }
[data-about="open"] .portrait::before, [data-about="open"] .portrait::after { content: none; }
@media (max-width: 760px) { :root[data-glued] .me-shape { opacity: .5; } }

/* ---- ?top=slim: a short top without a picture. Name, one line, and the facts on a frosted bar; the form is bigger. ---- */
:root[data-top="slim"] .case-hero.light { min-height: clamp(440px, 62svh, 640px); grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; padding-bottom: var(--r-stage); }
:root[data-top="slim"] .case-hero.light .duo { align-self: center; padding-block: clamp(24px, 4svh, 56px); }
:root[data-top="slim"] .case-hero.light .duo-text { grid-column: 1 / span 7; }
:root[data-top="slim"] .case-hero.light h1 { font-size: clamp(40px, 5.2vw, 88px); max-width: none; }
:root[data-top="slim"] .case-hero.light .lead { max-width: 34ch; }
.hero-facts { position: relative; z-index: 1; background: rgba(255, 255, 255, .44); -webkit-backdrop-filter: blur(28px) saturate(1.5); backdrop-filter: blur(28px) saturate(1.5); border-top: 1px solid rgba(255, 255, 255, .75); }
.hero-facts dl { display: grid; grid-template-columns: auto repeat(4, minmax(0, 1fr)); align-items: stretch; margin: 0; }
.hero-facts dl > div { padding: clamp(16px, 1.7vw, 26px) clamp(14px, 1.7vw, 28px); border-left: 1px solid rgba(13, 16, 22, .09); }
.hero-facts dl > div:first-child { border-left: 0; padding-left: 0; display: grid; align-items: center; }
.hero-facts dt { font-size: 15px; line-height: 1.4; color: color-mix(in srgb, var(--ink) 62%, transparent); }
.hero-facts dd { margin: 2px 0 0; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.38; font-weight: 600; letter-spacing: -.01em; }
.hero-facts .fact-logo { display: block; height: 40px; width: auto; }
.hero-facts .fact-logo.wide { height: 26px; }
/* the picture or film that stood in the top: the first big thing in the page */
.lead-media { padding-top: clamp(28px, 4vw, 64px); }
.lead-media .wk-media { --mh: min(76svh, 50vw, 760px); width: 100%; }
.lead-media .wk-media.m-apple img.verse { width: min(100%, calc(var(--mh) * 2.0)); height: auto; display: block; }
:root[data-top="slim"] .chapter.first { padding-top: clamp(40px, 5vw, 80px); }
@media (max-width: 860px) {
  .hero-facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts dl > div { border-left: 0; padding: 12px 0; }
  .hero-facts dl > div:first-child { grid-column: 1 / -1; }
  :root[data-top="slim"] .case-hero.light .duo-text { grid-column: 1 / -1; }
  :root[data-top="slim"] .case-hero.light { min-height: 0; }
}

.next > .stage[data-form] .work-media { width: 100%; }
.next > .stage[data-form] h3 span.sub { color: inherit; }

/* ==========================================================================
   ROUND 17 — the opening (?intro=styles | rubber | merge): the name and the line wait for the form
   ========================================================================== */
:root[data-intro] .entry h1, :root[data-intro] .entry .tag, :root[data-intro] .entry .enter { opacity: 0; }
:root[data-intro-text] .entry h1, :root[data-intro-text] .entry .tag { opacity: 1; }
:root[data-intro-text="fade"] .entry h1 { animation: intro-in .55s ease both; }
:root[data-intro-text] .entry .tag { animation: intro-in .6s .28s ease both; }
@keyframes intro-in { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   ROUND 23 — from the 27 Nov 10:34 recording and his notes
   ========================================================================== */
/* About: the words keep to five columns, so the form behind him (always centred on him) has room beside them */
@media (min-width: 901px) { [data-about="open"] .about-text { grid-column: 1 / span 5; } }

/* ==========================================================================
   ROUND 24 — from the three 27 Nov recordings (10:29, 10:34, 10:53)
   ========================================================================== */
/* the button on the pointer: a pill that says where the click goes */
.enter { width: auto; height: 54px; padding: 0 26px; border-radius: 999px; white-space: nowrap; font-size: 16px; }
.entry.follow .enter, .hero-do.follow .enter { margin: 0; }

/* ---- ?alt=1, home page: every project's picture is a card with a few words on the left and a still on the right
        (the Enterprise Platform card, which he likes, is the model). No film. The still may run off the card's right edge. ---- */
.scn .wk-media .plate.split { display: none; }
:root[data-alt] .scn .wk-media .plate.split { display: block; box-shadow: 0 calc(var(--lw) * .04) calc(var(--lw) * .06) calc(var(--lw) * -.035) rgba(13, 16, 22, .3); }
:root[data-alt] .scn .wk-media > :not(.split):not(.stage) { display: none; }
.plate.split .say { position: absolute; z-index: 1; left: calc(var(--lw) * .05); top: 50%; translate: 0 -50%; width: 36%; margin: 0; font-size: calc(var(--lw) * .062); line-height: .96; letter-spacing: -.045em; font-weight: 650; }
.plate.split .pic { position: absolute; top: 50%; translate: 0 -50%; display: block; height: auto; max-width: none; }
.plate.split.ob { background: linear-gradient(168deg, #fbfdfe 0%, #e9f3f9 46%, #cfe5f2 100%); color: var(--ink); }
.plate.split.ob .pic { left: 42%; width: 82%; }
.plate.split.v8 { background: #f1eee8; color: var(--ink); }
.plate.split.v8 .pic { left: 42%; width: 100%; border-radius: calc(var(--lw) * .012); box-shadow: 0 0 0 1px rgba(13, 16, 22, .05), 0 calc(var(--lw) * .03) calc(var(--lw) * .05) calc(var(--lw) * -.025) rgba(13, 16, 22, .3); }
.plate.split.ap { background: #fff; color: var(--ink); }
.plate.split.ap .pic { left: 40%; width: 74%; }
.plate.split.jf { background: #0a0d13; color: #fff; }
.plate.split.jf .pic { left: auto; right: 7%; height: 90%; width: auto; }

/* ============================== ROUND 26 (27 Nov, the 12:19 recording) ==============================
   He chose the alternative ("we're going to move forward with this version"), so kls.js sets data-alt unless ?alt=0. */
/* the line under his name: one line */
@media (min-width: 701px) { .entry .lead.tag { max-width: none; white-space: nowrap; } }
/* five skills (the sixth is gone) */
.do-cols { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.do-cols button { display: flex; flex-direction: column; justify-content: flex-start; }      /* every skill starts at the same height, whatever its length */
@media (max-width: 1100px) { .do-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .do-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Just Football's card: a night-stadium navy in place of flat black, and "a digital game" on one line */
.plate.split.jf, .next-pic.jf { background: radial-gradient(110% 130% at 74% 46%, #212d7c 0%, #171e58 32%, #0f143c 64%, #0a0d2a 100%); color: #fff; }
.plate.split.jf .say { width: 47%; }
.plate.split.jf .pic { right: 4.5%; height: 86%; }
/* Apple's card: the lock-up made again from his two originals, phone whole, the laptop running off the right edge */
.plate.split.ap .pic { left: 41%; width: 88%; }
/* the next case shows what that project's card shows on the home page: a still, no film */
.next-pic.v8 { background: #f1eee8; }
.next-pic.v8 img { position: absolute; left: 8%; top: 50%; translate: 0 -50%; width: 122%; max-width: none; height: auto; border-radius: calc(var(--lw) * .012); box-shadow: 0 0 0 1px rgba(13, 16, 22, .05), 0 calc(var(--lw) * .03) calc(var(--lw) * .05) calc(var(--lw) * -.025) rgba(13, 16, 22, .3); }
.next-pic.jf img { position: absolute; left: 50%; top: 50%; translate: -50% -50%; height: 88%; width: auto; max-width: none; }
.next-pic.ap { overflow: visible; border-radius: 0; box-shadow: none; display: grid; place-items: center; }
.next-pic.ap img { display: block; width: 100%; height: auto; }
/* the short top: the white page meets the facts bar square, so no tinted corner shows under the bar */
:root[data-top="slim"] .case-hero.light { padding-bottom: 0; }
:root[data-top="slim"] .case-body { border-radius: 0; margin-top: 0; }
/* Enterprise Platform: the globe card as wide as the text column under it (the type keeps its size) */
.lead-media .wk-media.m-ep .plate { width: 100%; aspect-ratio: auto; height: calc(var(--lw) / 1.62); }
/* Apple: the story pages shown wider, and the Shot on iPhone lock-up without a box, nearly as wide as the column */
.turns.tabs-top.broad .views { width: min(100%, 1120px, (100svh - var(--nav-h) - 170px) * 1.6); aspect-ratio: 1.6; }
.turns.tabs-top.broad .turns-tabs { width: min(100%, 1120px); }
.stage.shot-lockup.bare { background: none; box-shadow: none; padding: 0; overflow: visible; }
.stage.shot-lockup.bare img { width: min(96%, 1240px); }

/* ============================== ROUND 27 (27 Nov, the 12:54 recording) ============================== */
/* next case: the laptop and the comparison card float on the form, with no card behind them */
.next-pic.bare { overflow: visible; border-radius: 0; box-shadow: none; background: none; display: grid; place-items: center; }
.next-pic.bare img { display: block; width: 100%; height: auto; }
/* the comparison card has its own clear corners now: one radius, no second box */
.plate.split.v8 .pic { border-radius: 0; box-shadow: none; }
/* Apple: more air between the text and the lock-up */
.stage.shot-lockup.bare { margin-top: clamp(56px, 7.5vw, 112px); }

/* ============================== ROUND 29 (27 Nov): no shadow is cut off in Safari ==============================
   Safari draws a drop-shadow filter on a picture only inside the picture's own box. The soft shadows of the Apple lock-up and of
   the comparison card are now part of the pictures (with clear room all round), so every browser shows the same. The sizes below
   allow for that clear room: the lock-up fills 88.8% of its picture's width, the card 87.4%. */
/* Apple on the home page: the whole lock-up inside the card, nothing cut at the card's edge */
.plate.split.ap .pic { left: 35.5%; width: 65%; }
/* Apple page: the lock-up as wide as before */
.stage.shot-lockup.bare img { width: min(108%, 1400px); max-width: none; margin: -4% -4% -7%; }
.stage.shot-lockup.bare { margin-top: clamp(40px, 5vw, 72px); }
/* next case: Apple and Valid8 */
.next-pic.ap img, .next-pic.bare img[src*="apple-shot-duo"], .next-pic.bare img[src*="valid8-compare-clean"] { width: 114%; max-width: none; margin: 0 -7%; }
/* Valid8 on the home page: the card starts where it did */
.plate.split.v8 .pic { left: 36%; width: 114%; }


/* ==========================================================================
   ROUND 32 — two numbers in a row (Online Booking), a link in the footer row
   ========================================================================== */
.numbers.half div { grid-column: span 6; }   /* was .two: that name was already on Just Football's research numbers and pushed them apart (my fault, found 28 Nov) */
/* the footer row: four items with the same gap between each (his word, 27 Nov: "more even") */
@media (max-width: 760px) { .foot-row { flex-direction: column; } }
.foot-row > :nth-child(2) { text-align: left; }

/* ==========================================================================
   ROUND 33 — ?ep=dark|blue|milk: three colours to compare for the Enterprise form.
   Dark never goes below #0a233b and blue is #225383 (both read from his screenshot of the booking tiles).
   ========================================================================== */
/* he chose the dark one (27 Nov): it is the Enterprise colour with no option. ?ep=light shows the earlier light blue. */
:is([data-form="ep"], [data-ep]) { --s-a: #b4cfec; --s-b: #4a7cb8; --s-base: #0a233b; --s-body: 1; --s-alpha: .96; --s-light: -0.95 0.5 0.22; }   /* lit from the upper left, where the headline crosses it */
:root[data-ep="light"] :is([data-form="ep"], [data-ep]) { --s-a: #d3f0fb; --s-b: #42b0d5; --s-base: #1668a8; --s-body: 1; --s-alpha: .88; }
:root[data-ep="blue"] :is([data-form="ep"], [data-ep]) { --s-a: #cfe1f4; --s-b: #3f7cb8; --s-base: #225383; --s-body: 1; --s-alpha: .92; }
:root[data-ep="milk"] :is([data-form="ep"], [data-ep]) { --s-a: #ffffff; --s-b: #f3f5f9; --s-base: #bcc6d4; --s-body: 1; --s-alpha: .94; }

/* ==========================================================================
   ROUND 34 — the Apple lock-up's shadow was cut in a straight line: the opening effect (a clip that widens) also clips whatever
   reaches outside the stage, and this picture reaches outside it on purpose. It now opens by fading up a short way instead.
   ========================================================================== */
.js .stage.shot-lockup.bare[data-open], .js .stage.shot-lockup.bare[data-open].is-open { clip-path: none; }
.js .stage.shot-lockup.bare[data-open] { opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity .7s ease, transform .9s var(--ease-out); }
.js .stage.shot-lockup.bare[data-open].is-open { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .stage.shot-lockup.bare[data-open] { opacity: 1; transform: none; transition: none; } }

/* a word that must not break at its hyphen (also on the home page, which does not load cases.css) */
.nowrap { white-space: nowrap; }
.about-text .big { text-wrap: pretty; }   /* full-width lines, no short last line where the browser can avoid it */

/* ==========================================================================
   ROUND 36 — four numbers in a row: the widest one ("500K+") filled its column and touched its neighbour (his screenshot, 28 Nov).
   A row of four now sets its numbers a step smaller, so the widest leaves about a fifth of its column free. Rows of two or
   three keep the large size.
   ========================================================================== */
.numbers:not(.three):not(.half):not(.tested) b { font-size: clamp(44px, 5.9vw, 88px); }


/* ==========================================================================
   ROUND 37 — Contact goes to the very end; a footer taller than the window is not pinned
   ========================================================================== */
footer.tall { position: relative; }


/* ==========================================================================
   ROUND 39 — the footer: big words on the left, a short form on the right (his pick, 30 Nov).
   No address is written on the site any more. A field is a label and a line to write on.
   ========================================================================== */
footer ::selection { background: #fff; color: var(--ink); }
.ft { --rule: rgba(255, 255, 255, .3); }
.ft-big { margin: 0; font-weight: 650; letter-spacing: -.04em; line-height: .94; color: #fff; }
.ft input, .ft textarea {
  font: inherit; color: #fff; caret-color: #fff; background: transparent; border: 0; border-radius: 0; outline: 0;
  border-bottom: 1px solid var(--rule); padding: 0 0 .32em; margin: 0; width: 100%; min-width: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ft input:hover, .ft textarea:hover { border-bottom-color: rgba(255, 255, 255, .6); }
.ft input:focus-visible, .ft textarea:focus-visible { border-bottom-color: #fff; box-shadow: 0 1px 0 #fff; outline: 0; }
.ft [aria-invalid="true"] { border-bottom-color: #ff9a7b; box-shadow: 0 1px 0 #ff9a7b; }
.ft input:-webkit-autofill, .ft textarea:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 99999s; }
.ft-send {
  display: inline-flex; align-items: center; font: inherit; font-size: 18px; font-weight: 600; letter-spacing: -.01em;
  padding: 16px 28px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer;
  transition: background-color .25s ease;
}
.ft-send:hover { background: #d9dde6; }
.ft-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.ft-note { margin: 0; font-size: 17px; line-height: 1.3; color: var(--on-ink-soft); }
.ft-note.bad { color: #ff9a7b; }
.ft-note:empty { display: none; }

.ft1 { align-items: start; row-gap: clamp(28px, 5vw, 44px); }
.ft1 .ft-big { grid-column: 1 / span 6; justify-self: start; font-size: clamp(56px, 10.4vw, 164px); }   /* as wide as its words: the form behind it is placed from this box */
.ft1 .ft-big span { display: block; }
.ft1 form { grid-column: 8 / span 5; display: grid; gap: clamp(20px, 2vw, 28px); padding-top: clamp(4px, .9vw, 14px); font-size: clamp(19px, 1.55vw, 23px); letter-spacing: -.01em; }
.ft1 label { display: grid; gap: 8px; }
.ft1 label > span { font-size: 16px; letter-spacing: 0; color: var(--on-ink-soft); }
.ft1 textarea { resize: none; line-height: 1.35; height: calc(2 * 1.35em + .32em); }
.ft1 .ft-end { margin-top: 6px; }
@media (max-width: 1000px) {
  .ft1 .ft-big, .ft1 form { grid-column: 1 / -1; }
  .ft1 .ft-big span { display: inline; }
}


/* ==========================================================================
   ROUND 40 — launch: the form's trap field for robots, a skip link, a taller name in the menu
   ========================================================================== */
.ft-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ft-send:disabled { opacity: .6; cursor: default; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 200; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; transform: translateY(-200%); }
.skip:focus-visible { transform: none; outline: 2px solid #fff; outline-offset: 2px; }
main:focus { outline: 0; }
.wordmark { padding-block: 12px; }
