/* Archivo, served from the site itself (1 Oct): one fewer stop at Google before the page can draw.
   Open Font Licence; files in assets/fonts/. */
@font-face{font-family:"Archivo";font-style:italic;font-weight:100 900;font-stretch:62% 125%;font-display:swap;src:url(../assets/fonts/archivo-italic-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Archivo";font-style:italic;font-weight:100 900;font-stretch:62% 125%;font-display:swap;src:url(../assets/fonts/archivo-italic-latin.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Archivo";font-style:normal;font-weight:100 900;font-stretch:62% 125%;font-display:swap;src:url(../assets/fonts/archivo-normal-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Archivo";font-style:normal;font-weight:100 900;font-stretch:62% 125%;font-display:swap;src:url(../assets/fonts/archivo-normal-latin.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* ============================================================
   STEVEN EDWARDS — portfolio
   Colour: the four from Analogue's Fresh Forward V4 trend report
   (wink pink, chartreuse, clay, vanilla) and black type. Nothing else.
   Typographic-first. Kinetic, never gimmicky.
   ============================================================ */

:root{
  /* The four trend colours. Each position of the colour dial uses three:
     a is the page, b is the band, c is the odd one for small moments. */
  --wink:#f2b3ec;--chartreuse:#d5e157;--clay:#ac6e55;--vanilla:#f1e5b3;
  --pal-a:var(--chartreuse);--pal-b:var(--wink);--pal-c:var(--clay);
  /* The flyer's inks are this position's two other colours, never the page's
     (Steven, 3 Oct: "part of the current colour palette but not the same as
     the hero colour"): headline, its off-register second ink, body, highlights. */
  --fly-1:var(--pal-b);--fly-2:var(--pal-c);--fly-ink:var(--pal-b);--fly-hi:var(--pal-c);
  /* The lozenges on the Studio story's board sit on the band. Small type on
     clay, or in clay, doesn't read (Steven, 3 Oct: "brown on black"), so
     they never use it: one filled with a light colour, one outlined, one
     black with light type. */
  --loz-1:var(--pal-a);--loz-2:transparent;--loz-ink:var(--pal-b);
  /* The jobs. The names are from the old teal-and-gold palette and are in
     every rule, so they stay; what they hold is below. */
  --paper:var(--pal-a);
  --ink:#000;
  --teal:#000;                  /* links and labels: no trend colour is dark enough to read as small type on another */
  --gold:var(--pal-c);          /* small graphic moments, the game's tiles */
  --gold-bright:var(--pal-b);   /* highlight fills that carry black type: play buttons, switches */
  --deep:var(--pal-b);          /* the band */
  --on-deep:#000;               /* type on the band, in both themes */
  --on-gold:#000;               /* type on a --gold or --gold-bright fill, in both themes */
  --rule:1px solid var(--ink);
  --ctl:1.5rem;                 /* the masthead's four round buttons: fun, sound, night and day, colour (Steven, 3 Oct: the same size as each other) */

  /* layout tokens (--page, --section, --edge, the scale) are in THE GRID, at the end */

  --body:"Archivo", "Helvetica Neue", Arial, sans-serif;

  --h-huge:clamp(3.2rem, 11.4vw, 12rem);
  --h1:clamp(2.9rem, 7.8vw, 8rem);
  --h2:clamp(2rem, 4.6vw, 4.6rem);
  --h3:clamp(1.35rem, 2.2vw, 2.1rem);
  --dek:clamp(1.25rem, 2vw, 2.05rem);
  --text:clamp(1.02rem, 1.15vw, 1.28rem);
  --small:clamp(.82rem, .88vw, .95rem);

  --ease:cubic-bezier(.22,.9,.24,1);
  /* everything drawn in his hand reveals on this one curve */
  --hand-ease:cubic-bezier(.3,.6,.3,1);
  --ease-snap:cubic-bezier(.6,0,.1,1);
}

/* ---------- the colour dial ----------
   Steven, 3 Oct: "totally ignore my current colour settings and only use the
   direction from the trends report" - full strength, trend colours only. So
   the cream-teal-gold house palette and the three Sanzo Wada combinations
   that briefly replaced the dial's other positions are both gone. Each
   position is one trend colour as the page, a second as the band, and black
   type on both:
     1  chartreuse page, wink pink band, clay   (the site opens on this one)
     2  wink pink page, chartreuse band, clay   (and the front door is always this one)
     3  clay page, vanilla band, chartreuse
     4  vanilla page, clay band, wink pink
   Dark mode (further down) turns the page black and sets the type in the
   page's colour; the band stays as it is.
   Black on clay is 5.1:1, the least crisp of the four (the others are 12:1
   and up), so text that is set faint elsewhere is set solid on clay.
   Every pairing is measured, light and dark: python3 tools/test/palette-contrast.py */
[data-pal="2"]{--pal-a:var(--wink);--pal-b:var(--chartreuse);--pal-c:var(--clay)}
[data-pal="3"]{--pal-a:var(--clay);--pal-b:var(--vanilla);--pal-c:var(--chartreuse);--fly-1:var(--pal-c);--fly-2:var(--pal-b);--fly-hi:var(--pal-c);--loz-1:var(--pal-c)}
[data-pal="4"]{--pal-a:var(--vanilla);--pal-b:var(--clay);--pal-c:var(--wink);--fly-1:var(--pal-c);--fly-2:var(--pal-b);--fly-ink:var(--pal-c);--fly-hi:var(--pal-b);--loz-2:var(--pal-c);--loz-ink:var(--pal-a)}
.pal-toggle{
  width:var(--ctl);height:var(--ctl);padding:0;
  border:2px solid var(--ink);border-radius:50%;
  background:conic-gradient(var(--pal-b) 0 50%, var(--pal-c) 0 75%, var(--ink) 0);   /* this position's band, its odd colour, its type */
  cursor:pointer;
  transition:transform .4s var(--ease-snap), background .3s;
}
.pal-toggle:hover{transform:rotate(120deg)}
.pal-toggle:active{transform:scale(.85)}

/* ---------- dark mode: the page goes black and the type takes the page's colour ----------
   Links and labels take the band's colour. The band itself doesn't change. */
[data-theme="dark"]{--paper:#000;--ink:var(--pal-a);--teal:var(--pal-b)}
/* Vanilla at night: its band is clay, so a link in the band's colour would be clay on black
   (5.1:1, the "brown on black" Steven flagged on 3 Oct). Its links take the page's colour
   instead, as every link does by day. */
[data-pal="4"][data-theme="dark"]{--teal:var(--pal-a)}
[data-theme="dark"] .hero::after{mix-blend-mode:screen;opacity:.06}
[data-theme="dark"] .drop{box-shadow:0 14px 34px rgba(0,0,0,.5)}
[data-theme="dark"] .portrait img,
[data-theme="dark"] .cutout-frame > img{filter:grayscale(1) contrast(1.06) brightness(.92)}
/* dark mode: secondary text needs more presence to stay WCAG AA */
[data-theme="dark"] .soft{opacity:.92 !important}
[data-theme="dark"] .stat > span{opacity:1}
[data-theme="dark"] .foot-row{opacity:.92}
[data-theme="dark"] .strip-note{opacity:.95}
[data-theme="dark"] .portrait figcaption{opacity:.82}
[data-theme="dark"] .work-result{color:var(--teal)}
/* Clay. Black on clay, and clay on black, is 5.1:1 with nothing to spare, so
   nothing on it is set faint: the clay page (position 3, both themes) and the
   clay band (position 4). */
[data-pal="3"] :is(.soft,.logo-place,.stat > span,.strip-note,figcaption,figcaption > span,.reel-tab,.foot-row,.foot-row span,.snap-stats span),
[data-pal="4"] .dark :is(.soft,.stat > span,.strip-note,figcaption,figcaption > span,.foot-row,.foot-row span,.reel-tab,.story-step > div){opacity:1 !important}
[data-pal="4"] .story{--st-soft:var(--on-deep)}   /* the Studio story sits on the band: its soft ink was 4.2:1 on clay */

.theme-toggle{
  width:var(--ctl);height:var(--ctl);
  padding:0;border:2px solid var(--ink);border-radius:50%;
  background:linear-gradient(to right, var(--ink) 50%, transparent 50%);
  cursor:pointer;
  transition:transform .4s var(--ease-snap), background .3s;
}
.theme-toggle:hover{transform:rotate(180deg)}
/* motion: two bars while things move (press to stop them), a triangle once
   they're still (press to let them go). One for the whole site: main.js. */
.motion-toggle{
  width:var(--ctl);height:var(--ctl);
  padding:0;border:2px solid var(--ink);border-radius:50%;
  display:grid;place-items:center;background:none;cursor:pointer;
  transition:transform .4s var(--ease-snap);
}
.motion-toggle::before{content:"";width:38%;height:44%;
  background:linear-gradient(to right, var(--ink) 34%, transparent 34% 66%, var(--ink) 66%)}
[data-motion="off"] .motion-toggle::before{width:40%;height:48%;margin-left:10%;background:var(--ink);clip-path:polygon(0 0,100% 50%,0 100%)}
.motion-toggle:hover{transform:scale(1.12)}
.motion-toggle:active{transform:scale(.85)}



/* the travelling companion & the final full stop it becomes */
.companion{
  position:fixed;left:max(1.2rem,3vw);bottom:2.2rem;z-index:56;
  width:16px;height:16px;border-radius:50%;
  background:radial-gradient(circle at 32% 30%, #ecd27c, var(--gold) 62%);
  opacity:0;pointer-events:none;
  transition:opacity .5s var(--ease);
}
.companion.show{opacity:1}

/* ---------- the game (found via the gold dot) ---------- */
.game-veil{
  position:fixed;inset:0;z-index:10001;
  background:color-mix(in srgb, var(--deep) 86%, transparent);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  display:flex;align-items:center;justify-content:center;
  padding:1.2rem;
}
.game{
  background:var(--paper);color:var(--ink);
  width:min(680px,100%);max-height:92svh;overflow:auto;
  padding:clamp(1.4rem,3.5vw,2.6rem);
  border:1px solid var(--ink);
  position:relative;
}
.game h2{font-size:clamp(1.8rem,4vw,3rem);margin-bottom:.4rem}
.game .mono{display:block;margin-bottom:1.4rem}
.game-close{
  position:absolute;top:1rem;right:1rem;
  background:none;border:none;font-size:1.6rem;line-height:1;
  cursor:pointer;color:var(--ink);padding:.2em;
}
.game-close:hover{color:var(--teal)}
.game-bar{
  height:6px;background:color-mix(in srgb, var(--ink) 14%, transparent);
  margin-bottom:1.2rem;overflow:hidden;
}
.game-bar i{display:block;height:100%;background:var(--gold);transition:width .25s linear}
.rack{display:flex;flex-wrap:wrap;gap:.45rem;margin-bottom:1.1rem}
.tile{
  width:2.4em;height:2.4em;
  display:flex;align-items:center;justify-content:center;
  background:var(--gold);color:var(--on-gold);
  font-variation-settings:"wght" 860, "wdth" 105;
  font-size:1.05rem;text-transform:uppercase;
  border:none;cursor:pointer;position:relative;
  transition:transform .15s var(--ease-snap), opacity .2s;
}
.tile small{position:absolute;right:.18em;bottom:.08em;font-size:.5em;font-weight:700}
.tile:hover{transform:translateY(-3px)}
.tile.used{opacity:.25;transform:none;cursor:default}
.game-input-row{display:flex;gap:.6rem;margin-bottom:1.1rem}
.game-input{
  flex:1;padding:.6em .8em;font:inherit;
  font-variation-settings:"wght" 700, "wdth" 100;
  text-transform:uppercase;letter-spacing:.06em;
  background:transparent;border:2px solid var(--ink);color:var(--ink);
}
.game-input:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
.game-submit{
  padding:.6em 1.2em;font:inherit;cursor:pointer;
  background:var(--ink);color:var(--paper);border:2px solid var(--ink);
  font-variation-settings:"wght" 760, "wdth" 100;text-transform:uppercase;
}
.game-submit:hover{background:var(--teal);border-color:var(--teal)}
.game-msg{min-height:1.4em;font-size:var(--small);color:var(--teal);margin-bottom:.6rem}
.game-msg.bad{font-variation-settings:"wght" 760, "wdth" 98}   /* heavier, not a warning colour */
.game-found{display:flex;flex-wrap:wrap;gap:.4rem .9rem;margin:0 0 1rem;padding:0;list-style:none;font-size:var(--small)}
.game-found li b{color:var(--teal);font-weight:700}
.game-score-row{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;flex-wrap:wrap;border-top:var(--rule);padding-top:1rem}
.game-score{font-size:clamp(1.6rem,3vw,2.4rem);font-variation-settings:"wght" 880, "wdth" 110}
.game.shake{animation:gshake .3s}
@keyframes gshake{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
[id]{scroll-margin-top:5rem}

a,button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
:focus-visible{outline:3px solid var(--teal);outline-offset:3px}

.skip-link{
  position:absolute;left:1rem;top:-100%;z-index:10002;
  padding:.7em 1.1em;
  background:var(--ink);color:var(--paper);
  font-size:var(--small);
  text-decoration:none;
}
.skip-link:focus{top:1rem}

/* read aloud, never drawn — the cycling role line needs a stable text
   equivalent, since a screen reader should hear all five at once rather
   than one every few seconds */
.sr-only{
  position:absolute;width:1px;height:1px;
  margin:-1px;padding:0;border:0;overflow:hidden;
  clip-path:inset(50%);white-space:nowrap;
}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--body);
  font-size:var(--text);
  font-variation-settings:"wght" 430, "wdth" 96;
  line-height:1.45;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
::selection{background:var(--pal-b);color:var(--on-deep)}   /* the second colour, like a highlighter */
a{color:inherit}
img{display:block;max-width:100%;height:auto}
p{margin:0 0 1.1em;max-width:62ch}

/* ---------- type scale ---------- */
h1,h2,h3,.display{
  font-family:var(--body);
  font-variation-settings:"wght" 860, "wdth" 118;
  letter-spacing:-.028em;
  line-height:.92;
  margin:0;
  text-wrap:balance;
  text-transform:uppercase;
}
h1{font-size:var(--h1)}
h2{font-size:var(--h2);margin-bottom:clamp(1.6rem,3.5vw,3rem)}
h3{font-size:var(--h3);line-height:1.05;margin-bottom:.8rem;letter-spacing:-.015em}

/* ---------- Steven's own hand ----------
   Kept here rather than in handwriting.css because every page needs the
   face — the masthead writes "wanna play?" in it — while only three pages
   need the drawn-line machinery that file exists for. */
@font-face{
  font-family:"Steven Hand";
  src:url("../assets/Hand-respaced.woff2") format("woff2"),url("../assets/Hand-respaced.otf") format("opentype");
  font-weight:400; font-style:normal; font-display:swap;
}
.hand{
  font-family:"Steven Hand","Bradley Hand","Segoe Script",cursive;
  font-variation-settings:normal; font-weight:400;
  text-transform:none; letter-spacing:0;
}

/* editorial label — replaces the old mono style */
.mono{
  font-family:var(--body);
  font-size:var(--small);
  font-variation-settings:"wght" 660, "wdth" 98;
  letter-spacing:.015em;
  color:var(--teal);
}
.dark .mono{color:var(--gold-bright)}

.dek{
  font-size:var(--dek);
  font-variation-settings:"wght" 560, "wdth" 100;
  line-height:1.22;
  letter-spacing:-.012em;
  max-width:34ch;
}
.accent{color:var(--teal)}

/* ---------- the masthead ----------
   The header used to cycle job titles where the name should be, which meant
   the one fixed thing on every page kept changing. The titles have moved to
   the hero, where they have room; up here it just says who and where.

   The roundel is big enough to read — STEVEN * EDWARDS * LONDON runs twice
   around its rim, and at header size that lettering is the whole point of
   having the mark there at all. Which is also why the name stacks: two short
   lines sit level with a large disc where one long line would not. */
.brand{
  display:flex;align-items:center;
  gap:clamp(.6rem,1.1vw,.95rem);
  text-decoration:none;
}

.brand-mark{
  position:relative;flex:none;display:block;
  width:clamp(3.4rem,5vw,4.6rem);aspect-ratio:1/1;
}
.brand-mark img,
.brand-mark svg{position:absolute;inset:0;width:100%;height:100%;display:block}

/* The rim is live type, not outlines — which is what lets it take the page's
   own ink and band colours instead of being stuck black-on-white. Override
   either variable to pin it. */
.mk-band{fill:var(--mark-band, var(--paper))}
.mk-key{stroke:var(--mark-ink, var(--ink))}
.mk-ink{fill:var(--mark-ink, var(--ink))}
.brand-ring text{
  font-family:"Archivo","Helvetica Neue",Arial,sans-serif;
  font-variation-settings:"wght" 800, "wdth" 88;
  letter-spacing:0;
}
/* Only the rim turns. The face has to stay level or it stops reading as a
   face, which is the whole reason the master was split in two.
   Slow enough to read the words as they go past — this is a badge idling,
   not a spinner. */
.brand-ring{animation:markSpin 48s linear infinite}
@keyframes markSpin{to{transform:rotate(360deg)}}
.brand-face{transition:transform .5s cubic-bezier(.34,1.56,.64,1)}
.brand:hover .brand-face{transform:scale(1.07)}

.logo-name{display:block}
.logo-place{
  display:block;
  margin-top:.12em;
  font-size:.58em;opacity:.6;letter-spacing:.14em;
  font-variation-settings:"wght" 700, "wdth" 104;
}

/* ---------- header ---------- */
.site-header{
  position:sticky;top:0;z-index:10000;
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  border-bottom:var(--rule);
  /* Opaque, not frosted. The mark and the name were being read against
     whatever scrolled underneath them — worst over the case-page banners,
     where a blurred smear of headline sat directly behind the roundel. */
  background:var(--paper);
}
.logo{
  font-variation-settings:"wght" 900, "wdth" 122;
  font-size:clamp(1.2rem,1.8vw,1.65rem);
  line-height:.94;
  letter-spacing:-.02em;
  text-transform:uppercase;
  text-decoration:none;
  white-space:nowrap;
}

.nav{display:flex;align-items:center;gap:clamp(1rem,2.4vw,2.6rem)}
.nav a{
  font-size:var(--small);
  font-variation-settings:"wght" 640, "wdth" 98;
  text-decoration:none;
  position:relative;
  padding:.45em 0;
}
.nav > a::after,
.nav-item > a::after{
  content:"";position:absolute;left:-3%;right:-3%;bottom:-.02em;
  height:.34em;
  background:url("../assets/hand/underline.png") no-repeat center / 100% 100%;
  clip-path:inset(-30% 100% -30% 0);
  transition:clip-path .3s var(--ease);
}
[data-theme="dark"] .nav > a::after,
[data-theme="dark"] .nav-item > a::after{background-image:url("../assets/hand/underline-light.png")}
.nav > a:hover::after,.nav > a[aria-current="page"]::after,
.nav-item > a:hover::after,.nav-item:focus-within > a::after{clip-path:inset(-30% 0% -30% 0)}
.nav a[aria-current="page"]{color:var(--teal)}

/* work dropdown */
.nav-item{position:relative}
.drop{
  position:absolute;top:100%;left:-1rem;
  min-width:19rem;
  margin:.55rem 0 0;padding:.45rem 0;
  list-style:none;
  background:var(--paper);
  border:1px solid var(--ink);
  box-shadow:0 14px 34px rgba(27,25,20,.13);
  opacity:0;visibility:hidden;transform:translateY(8px);
  transition:opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index:70;
}
@media (hover:hover){
  .nav-item:hover .drop,
  .nav-item:focus-within .drop{opacity:1;visibility:visible;transform:translateY(0)}
}
.nav-item.open .drop{opacity:1;visibility:visible;transform:translateY(0)}
.nav-item > a .chev{font-size:.8em;opacity:.7}
.drop a{
  display:flex;gap:.8em;align-items:baseline;
  padding:.6em 1.1em;
  text-decoration:none;
  font-size:.95rem;
  font-variation-settings:"wght" 560, "wdth" 98;
}
.drop a:hover{background:var(--pal-b);color:var(--on-deep)}

main{margin-inline:auto}
.section{border-bottom:var(--rule)}

/* ---------- hero ---------- */
.hero{
  min-height:calc(100svh - 62px);
  display:flex;flex-direction:column;justify-content:space-between;
  border-bottom:var(--rule);
  position:relative;
  overflow:hidden;
}
.hero > *{position:relative;z-index:2}
/* a whisper of grain — print texture, not effect */
.hero::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  opacity:.045;mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-meta{
  display:flex;flex-wrap:wrap;justify-content:space-between;gap:.6rem 2rem;
  font-size:var(--small);
  font-variation-settings:"wght" 560, "wdth" 98;
}
.hero-meta .mono{font-size:inherit}

.hero-type{margin-block:auto;padding-block:clamp(1.5rem,4vh,3rem)}

/* the breeze hero: letters are touchable, the dot is a character */
.kinetic{-webkit-user-select:none;user-select:none}
/* no raw-text flash before the split + fit runs. Only while scripts are
   running (js-anim, set in each page's head): with scripts off, blocked or
   broken this left every page without its headline (11 Oct). :where() adds
   no weight, so every rule that overrode this still does. Only headlines
   the script splits ([data-kinetic]) are ever made ready: the CV's plain
   one was hidden for good until 4 Nov. */
:where(.js-anim) .kinetic[data-kinetic]:not(.ready){opacity:0}
[data-breeze] .ch:not(.space){cursor:pointer}

/* ============ THE BALL ============
   Acid house yellow, rendered at 240px inside .ball and scaled down --
   inflating stays razor sharp. A big invisible .hit area rides along
   with it so it's easy to catch; hovering pauses the roll and inflates
   it like a balloon (bouncy bezier), revealing the smiley, then the CTA. */
:root{
  /* drop in a custom acid-house smiley any time:
     --smiley-svg:url("../assets/smiley.svg") */
  /* the face is Steven's own smiley — one file, used everywhere */
  --smiley-svg:url("../assets/joy/happy.webp");
  /* matte vinyl, one definition for every smiley surface */
  /* the master artwork's yellow — every smiley surface on the site uses it */
  --smiley:#F2D447;
  --vinyl:radial-gradient(circle at 36% 30%, #f8e48a 0%, #f5dc63 30%, #F2D447 58%, #e2c43c 82%, #ceb033 100%);
  --vinyl-shadow:inset -10px -16px 30px rgba(125,95,0,.15),
    inset 8px 12px 28px rgba(255,255,255,.24),
    inset -3px -4px 8px -4px rgba(255,252,228,.55);
}
[data-breeze] .dot{background:none;box-shadow:none;position:relative;overflow:visible;z-index:9999;transition:none}
/* the generous hitbox -- invisible, moves with the ball */
[data-breeze] .dot .hit{
  position:absolute;left:50%;top:50%;
  width:calc(100% + 56px);height:calc(100% + 56px);
  transform:translate(-50%,-50%);
  border-radius:50%;
  cursor:pointer;
  pointer-events:auto;
}
[data-breeze] .dot .ball{
  position:absolute;left:50%;top:50%;
  width:240px;height:240px;margin:-120px 0 0 -120px;
  border-radius:50%;
  background:var(--vinyl);
  box-shadow:var(--vinyl-shadow);
  transform:scale(var(--bs,.1));
  transition:transform .6s cubic-bezier(0.68,-0.55,0.26,1.55), box-shadow .4s;
  will-change:transform;
  pointer-events:none;
}
/* while the physics loop drives it (rolling, jumping) transitions are off */
[data-breeze] .dot:not(.grow) .ball{transition:none}
/* hover: organic 3D inflation */
[data-breeze] .dot.grow .ball{
  transform:scale(calc(var(--bs,.1) * 6));
  box-shadow:inset -16px -24px 44px rgba(125,95,0,.18), inset 10px 16px 34px rgba(255,255,255,.26),
             inset -4px -6px 12px -6px rgba(255,252,228,.6), 0 18px 44px rgba(27,25,20,.16);
}
[data-breeze] .dot .face{
  position:absolute;inset:0;
  opacity:1;transition:opacity .3s var(--ease);
  background-image:var(--smiley-svg);
  background-size:100% 100%;
}
/* fully grown: the face gives way to the invitation */
[data-breeze] .dot .cta-play{
  position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;
  text-align:center;line-height:.94;
  font-size:46px;letter-spacing:0;padding:0 14px;
  font-variation-settings:"wght" 880, "wdth" 104;
  color:#111;text-transform:lowercase;letter-spacing:-.01em;
  opacity:0;transform:scale(.5);
  transition:opacity .3s var(--ease), transform .45s cubic-bezier(0.68,-0.55,0.26,1.55);
  pointer-events:none;
}
[data-breeze] .dot.swap .face{opacity:0}
[data-breeze] .dot.swap .ball{
  background:url("../assets/joy/empty.webp") no-repeat center / 100% 100%, var(--smiley);
  box-shadow:0 18px 44px rgba(27,25,20,.16);
}
[data-breeze] .dot.swap .cta-play{opacity:1;transform:scale(1)}
.kinetic{
  font-size:var(--h-huge);
  line-height:.86;
  letter-spacing:-.03em;
  text-transform:uppercase;
  font-variation-settings:"wght" 860, "wdth" 118;
  cursor:default;
  user-select:none;
}
.kinetic .line{display:block;overflow:hidden;padding-bottom:.04em;white-space:nowrap}
.kinetic.tails .line{padding-bottom:.13em} /* a line ending in a comma: its tail hangs into the next line otherwise (case 07) */
.kinetic.settled .line{overflow:visible} /* entrance needs the mask; the ball needs the sky */
.kinetic .word{white-space:nowrap}
.kinetic .ch{
  display:inline-block;
  text-align:center; /* glyph stays centred in its locked slot */
  font-variation-settings:"wght" var(--w,860), "wdth" var(--d,118);
  transform:translateY(120%);
  will-change:font-variation-settings, transform;
}
/* entrance only starts once fonts are loaded and the headline is
   fitted to its container — prevents mid-animation reflow jumps */
.kinetic.ready .ch{
  animation:rise .9s var(--ease) forwards;
  animation-delay:calc(var(--i) * 28ms + 120ms);
}
.kinetic .ch.space{width:.28em}
@keyframes rise{to{transform:translateY(0)}}

/* The cycling headline does not fade between phrases — the ball flies across
   and knocks each letter out, then rolls back and springs the new ones up.
   All this rule does is soften the moment a letter is hit; the timing comes
   from where the ball actually is, so there is no stagger to declare here. */
.kinetic[data-cycle] .ch{transition:opacity .16s linear}
.kinetic .punct{color:var(--teal)}

/* the full stop is a golden ball that arrives late, drops in
   and bounces to rest — hover gives it a little boop */
.kinetic .dot{
  display:inline-block;
  width:.155em;height:.155em;
  margin-left:.07em;
  border-radius:50%;
  background-image:var(--smiley-svg), var(--vinyl);
  background-size:100% 100%;
  box-shadow:inset -2px -3px 5px rgba(125,95,0,.16), inset 1px 2px 4px rgba(255,255,255,.24);
  transform:translateY(-3em);
  opacity:0;
  cursor:pointer;
  transition:transform .18s var(--ease-snap);
  position:relative;z-index:9999;
}
.kinetic.ready .dot{
  animation:dotDrop .9s cubic-bezier(.34,1.56,.45,1) forwards;
  animation-delay:calc(var(--i) * 28ms + 480ms);
}
.kinetic .dot:hover{transform:scale(1.45)}
@keyframes dotDrop{
  0%{transform:translateY(-3em);opacity:0}
  45%{opacity:1}
  62%{transform:translateY(0) scaleY(1)}
  70%{transform:translateY(.02em) scale(1.25,.75)}
  82%{transform:translateY(-.28em) scale(1,1)}
  100%{transform:translateY(0);opacity:1}
}

.hero-foot{
  display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;
  gap:1.2rem 2.5rem;
}
.hero-foot p{
  font-size:clamp(1.1rem,1.5vw,1.5rem);
  font-variation-settings:"wght" 520, "wdth" 98;
  line-height:1.3;
  max-width:44ch;
  margin:0;
}
/* the hero's words can run to two paragraphs; they stay one item in the row */
.hero-lede p + p{margin-top:.7em}
.scroll-cue{
  font-size:var(--small);
  font-variation-settings:"wght" 660, "wdth" 98;
  color:var(--teal);
  display:inline-flex;align-items:center;gap:.6em;
  text-decoration:none;white-space:nowrap;
}
.scroll-cue .arrow{display:inline-block;animation:nudge 1.8s var(--ease) infinite}
/* in Steven's hand the cue is a spoken aside, so it wants more size than
   the wayfinding type around it */
.scroll-cue.hand{font-size:clamp(1.12rem,1.45vw,1.42rem);letter-spacing:0}
.scroll-cue .hand-arrow-down{animation:nudge 1.8s var(--ease) infinite}
@keyframes nudge{0%,100%{transform:translateY(0)}50%{transform:translateY(.35em)}}

/* ---------- reveals ---------- */
/* Out of sight only while scripts are running (js-anim): a reveal dresses up
   copy that is already there. Without main.js these blocks used to stay at
   opacity 0 for good, which was most of every page (11 Oct). */
.reveal{transition:opacity .8s var(--ease), transform .8s var(--ease)}
:where(.js-anim) .reveal{opacity:0;transform:translateY(28px)}
.reveal.is-in{opacity:1;transform:none}
.reveal-stagger > *{transition:opacity .7s var(--ease), transform .7s var(--ease)}
:where(.js-anim) .reveal-stagger > *{opacity:0;transform:translateY(24px)}
.reveal-stagger.is-in > *{opacity:1;transform:none}
.reveal-stagger.is-in > *:nth-child(1){transition-delay:.05s}
.reveal-stagger.is-in > *:nth-child(2){transition-delay:.14s}
.reveal-stagger.is-in > *:nth-child(3){transition-delay:.23s}
.reveal-stagger.is-in > *:nth-child(4){transition-delay:.32s}
.reveal-stagger.is-in > *:nth-child(5){transition-delay:.41s}
.reveal-stagger.is-in > *:nth-child(6){transition-delay:.5s}

/* ---------- intro / prose ---------- */
.intro-grid{display:grid;align-items:start}
.intro-grid .label{position:sticky;top:5.5rem}
.lede{
  font-size:clamp(1.5rem,2.7vw,2.7rem);
  font-variation-settings:"wght" 640, "wdth" 106;
  line-height:1.12;
  letter-spacing:-.018em;
  max-width:28ch;
  margin:0 0 1.2em;
}
.prose p{max-width:58ch}
.prose a{color:var(--teal);text-decoration-thickness:2px;text-underline-offset:.18em}
/* pull statements read as sentences — sentence case, generous size.
   CAPS are reserved for headings, titles and wayfinding only. */
.pull{
  font-size:clamp(1.5rem,2.9vw,2.9rem);
  font-variation-settings:"wght" 760, "wdth" 106;
  line-height:1.08;
  letter-spacing:-.018em;
  margin:clamp(2rem,4vw,3.5rem) 0 0;
  max-width:24ch;
}
.pull em{font-style:normal;color:var(--teal)}
.dark .pull em{color:var(--gold-bright)}

/* ---------- the band ----------
   (The class is still .dark: it was a dark band until 3 Oct.) A block of the
   position's second colour with black type, the same in both themes. Inside
   it the ink, the accent, the highlight and the rules are all the band's own
   type colour, so nothing in it can inherit the page's ink, which is a
   colour in dark mode. */
.dark{background:var(--deep);color:var(--on-deep);
  --ink:var(--on-deep);--teal:var(--on-deep);--gold-bright:var(--on-deep);--rule:1px solid var(--on-deep)}
.dark ::selection{background:var(--on-deep);color:var(--deep)}
.dark .game-input,.dark .game-close{color:var(--on-deep)}
.dark:focus-visible,.dark :focus-visible{outline-color:var(--on-deep)}
/* a highlight fill inside the band turns over: black, with the band showing through as its type */
.dark .play-btn,.dark .hear.is-on{background:var(--on-deep);color:var(--deep);border-color:var(--on-deep)}

/* ---------- proof / stats ---------- */
.stat{display:block;text-decoration:none}
.stat b{
  display:block;
}
.stat b span{font-size:inherit}
.stat b{
  font-variant-numeric:tabular-nums;
  /* 5.8vw set "1,000+" wider than its own column, 20px off the next
     number where every other pair had 44-70 */
  font-size:clamp(2.6rem,4.9vw,4.9rem);
  white-space:nowrap;
  font-variation-settings:"wght" 880, "wdth" 112;
  letter-spacing:-.025em;
  line-height:1;
  font-weight:normal;
  color:var(--teal);
  transition:font-variation-settings .5s var(--ease);
}
.stat > span{
  display:block;margin-top:.6em;
  font-size:var(--small);
  font-variation-settings:"wght" 540, "wdth" 98;
  line-height:1.35;
  opacity:.85;
  max-width:24ch;
}
a.stat:hover b{font-variation-settings:"wght" 900, "wdth" 112}   /* heavier, not a different colour */
a.stat > span::after{content:" →"}

/* stats on paper (case pages top strip) */
/* Flex, not an auto-fit grid. The full-width note held open a fifth, empty
   grid track, so four stats got 228px columns at 1440 — and once the numbers
   stopped wrapping, "7,000 hrs" ran straight into "4.1m" on the Telly page.
   Here each stat starts at its own width and they share out what is left
   equally, so every number gets the same breathing room after it. */
.stat-strip{align-items:start;border-bottom:var(--rule)}
.stat-strip .stat b{font-size:clamp(2rem,4.2vw,4rem);color:var(--teal);white-space:nowrap}
.stat-strip .stat > span{opacity:.75;color:var(--ink)}
.strip-note{margin:.5rem 0 0;font-size:var(--small);opacity:.8}   /* always its own row, and the 60ch measure (THE GRID) */

/* ---------- capabilities ---------- */
.cap-list{list-style:none;margin:0;padding:0;counter-reset:cap}
.cap-list li{
  border-top:1px solid color-mix(in srgb, currentColor 25%, transparent);
  padding:var(--s4) 0;
  display:grid;
}
.cap-list li:last-child{border-bottom:1px solid color-mix(in srgb, currentColor 25%, transparent)}
/* No hover state. These are statements, not links, and a heading that
   slides and turns teal under the cursor promises somewhere to go. */
.cap-list h3{
  margin:0;
  font-variation-settings:"wght" 800, "wdth" 96;
}
.cap-list p{margin:0;max-width:52ch}

/* ---------- work index ---------- */
.work-head{display:flex;align-items:baseline;justify-content:space-between;gap:2rem;flex-wrap:wrap}
.work-list{list-style:none;margin:0;padding:0}
/* No rules between rows. The hover wash — the project's own hero image
   under a gradient mask — is what separates them, and the spacing does
   the rest at rest. Row padding went up to hold them apart without one. */
.work-link{
  display:grid;
  align-items:center;
  row-gap:var(--s3);
  text-decoration:none;
  position:relative;
}
/* hover states never change text metrics — colour and transform only,
   so titles can't reflow onto a second line mid-hover */
.work-title{
  display:inline-block;
  font-size:clamp(1.7rem,4.2vw,4.2rem);
  text-transform:uppercase;
  line-height:.95;
  letter-spacing:-.022em;
  font-variation-settings:"wght" 840, "wdth" 88;
  transition:transform .4s var(--ease), color .25s;
}
.work-link:hover .work-title,
.work-link:focus-visible .work-title{
  transform:translateX(.14em);
  color:var(--teal);
}
.work-dek{
  font-size:clamp(.95rem,1.1vw,1.15rem);
  font-variation-settings:"wght" 460, "wdth" 96;
  line-height:1.3;
  max-width:34ch;
}
.work-result{
  display:block;margin-top:.65em;
  font-size:var(--small);
  font-variation-settings:"wght" 700, "wdth" 100;
  color:var(--teal);
}
.work-arrow{
  font-size:clamp(1.4rem,2.4vw,2.4rem);
  transition:transform .4s var(--ease-snap);
}
.work-link:hover .work-arrow{transform:translateX(.35em);color:var(--teal)}
.work-arrow .hand-arrow-right{margin:0;vertical-align:middle}
.work-link{position:relative;isolation:isolate}
.work-bg{
  position:absolute;inset:0 0 0 calc(var(--page) * -.5);z-index:-1;
  background-size:cover;background-position:left center;
  opacity:0;transition:opacity .5s var(--ease);
  pointer-events:none;
  /* The wash belongs behind the TITLE and nowhere else. The dek column starts
     at 68% of the row, so the image is fully gone by 66% — it used to still be
     fading until 80%, which put a half-strength picture directly under 15px
     body copy. Four stops rather than two, so the ramp itself cannot band. */
  --work-fade:linear-gradient(to right,
      rgba(0,0,0,.96) 0%, rgba(0,0,0,.78) 26%,
      rgba(0,0,0,.34) 48%, rgba(0,0,0,.08) 60%, transparent 66%);
  -webkit-mask-image:var(--work-fade);
  mask-image:var(--work-fade);
}
.work-item:hover .work-bg,.work-link:focus-visible .work-bg{opacity:.45}
[data-theme="dark"] .work-item:hover .work-bg{opacity:.34}
@media (prefers-reduced-motion: reduce){.work-bg{transition:none}}

/* ---------- case pages ---------- */
.case-hero{border-bottom:var(--rule)}
.case-hero h1{margin-bottom:clamp(1.2rem,2.5vw,2rem)}
.case-hero .dek{max-width:44ch}
.case-meta{
  border-bottom:var(--rule);
  font-size:var(--small);
  font-variation-settings:"wght" 540, "wdth" 98;
}
.case-meta b{font-weight:700;color:var(--teal);margin-right:.7em}
.case-media{border-bottom:var(--rule);margin:0}
.case-media img{width:100%;max-height:78vh;object-fit:cover}
.case-media figcaption{
  padding:.8rem var(--edge);
  font-size:var(--small);
}
/* What a picture or a film is called sits on a label in the position's second
   colour, with black type (Steven, 3 Oct: "when it's chartreuse then labels
   for videos and images should be pink"). Inside the label the ink and the
   highlight are black, as they are on the band; on the band the label takes
   the page's colour instead. */
.case-media figcaption,.telly-film figcaption,.vg-item figcaption,.snap figcaption,.gl-grid figcaption,.said figcaption{
  display:table;width:auto;max-width:min(64ch,calc(100% - 2 * var(--edge)));
  margin:.7rem 0 0 var(--edge);padding:.4em .75em .45em;
  background:var(--pal-b);color:var(--on-deep);opacity:1;
  --ink:var(--on-deep);--teal:var(--on-deep);--gold-bright:var(--on-deep)}
.telly-film figcaption,.vg-item figcaption,.snap figcaption,.gl-grid figcaption,.said figcaption{margin-left:0;max-width:min(52ch,100%)}
.said figcaption{margin-top:1rem;font-size:var(--small)}
.dark :is(.case-media,.telly-film,.vg-item,.snap,.gl-grid,.said) figcaption{background:var(--pal-a)}
figcaption .hear.is-on{background:var(--on-deep);color:var(--pal-b);border-color:var(--on-deep)}
.case-media video{width:100%;max-height:78vh;object-fit:cover;display:block}
/* A montage has no spare edges — every tile in it is the point, and the
   78vh band would crop the top and bottom rows off on a wide screen. This
   variant sizes to the picture's own aspect instead. */
.case-media.whole img{max-height:none;object-fit:contain;height:auto}

/* the telly years films (telly.html): wide and small in the text, each
   under the paragraph that names the shows in it. Off-air archive, so never
   full frame (Steven, 28 Sept), and never cropped: they keep their own shape. */
.telly-film{position:relative;margin:clamp(1.6rem,3vw,2.4rem) 0;width:min(100%,560px)}
.telly-film video{display:block;width:100%;height:auto;background:var(--ink);border-radius:4px}
.telly-film figcaption{margin-top:.6rem;font-size:var(--small)}

/* click-to-load video facade (YouTube) */
.video-facade{
  display:block;position:relative;width:100%;
  padding:0;margin:0;border:0;cursor:pointer;
  background:var(--ink);
  aspect-ratio:16/9;max-height:78vh;overflow:hidden;
}
.video-facade img{width:100%;height:100%;object-fit:cover;opacity:.92;transition:opacity .3s var(--ease), transform .6s var(--ease)}
.video-facade:hover img{opacity:1;transform:scale(1.015)}
.play-btn{
  position:absolute;inset:0;margin:auto;
  width:clamp(64px,7vw,92px);height:clamp(64px,7vw,92px);
  border-radius:50%;
  background:var(--gold-bright);color:var(--on-gold);
  display:flex;align-items:center;justify-content:center;
  transition:transform .3s var(--ease-snap);
}
.play-btn svg{margin-left:.2em;width:38%;height:38%}
.video-facade:hover .play-btn{transform:scale(1.12)}
.video-embed{position:relative;aspect-ratio:16/9;max-height:78vh}
.video-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.video-embed video{position:absolute;inset:0;width:100%;height:100%;background:#000}

/* framed video — sits inside the page grid rather than full bleed */
.case-media.framed{padding-bottom:0;border-bottom:var(--rule)}
.case-media.framed figcaption{margin-top:.7rem;margin-bottom:var(--gap-block)}

/* grids of supporting films */
.video-grid{display:grid}
.vg-item{margin:0}
.vg-item .video-facade{aspect-ratio:var(--ar,16/9);max-height:none}
.vg-item .video-embed{aspect-ratio:var(--ar,16/9)}
/* films of different shapes side by side at one height, none of them cropped
   (Unstoppable's parents' films are 4:3, the team leader's is square):
   each takes a share of the row in proportion to its width */
.video-grid.trio{display:flex;align-items:flex-start}
.video-grid.trio > .vg-item{flex:var(--ar,1.78) 1 0;min-width:0}
@media (max-width:639px){.video-grid.trio{flex-direction:column}.video-grid.trio > .vg-item{flex:none;width:100%}}

/* a loop with voices in it (experience.html): silent until asked */
/* the copy, then Sound on beneath it on a line of its own. Until 12 Oct the
   pill led the copy in a row; Steven moved it after, first on Zhoosh it up,
   then on all three levels. */
.case-media[data-hear] figcaption{display:flex;flex-direction:column;align-items:flex-start;gap:.65rem}
.case-media[data-hear] figcaption > span{flex:none}
.hear{display:inline-flex;align-items:center;gap:.45em;flex:none;
  padding:.35em .85em .35em .6em;border:2px solid currentColor;border-radius:999px;
  background:none;color:inherit;font:inherit;font-variation-settings:"wght" 640, "wdth" 98;cursor:pointer;
  transition:transform .3s var(--ease-snap), background .2s var(--ease)}
.hear svg{width:1.2em;height:1.2em}
.hear .snd-on{display:none}
.hear.is-on .snd-on{display:inline}.hear.is-on .snd-off{display:none}
.hear:hover{transform:scale(1.05)}
.hear.is-on{background:var(--gold-bright);color:var(--on-gold);border-color:var(--gold-bright)}   /* black type on the fill in both themes */
.vg-item .play-btn{width:clamp(48px,5vw,64px);height:clamp(48px,5vw,64px)}
.vg-item figcaption{font-size:var(--small)}

/* ---------- the reel — a run of films you move through, instead of four
   thumbnails all competing for the same glance. Scroll-snap carries the
   movement, so it still swipes with no JavaScript at all; the arrows and
   the phase names are enhancement on top of that. ---------- */
.reel{position:relative;max-width:1100px;margin-inline:auto;
  padding-bottom:clamp(2rem,4.5vw,4rem)}
.reel-stage{position:relative}
.reel-track{
  display:flex;gap:clamp(1.2rem,2.5vw,2rem);
  margin:0;padding:0;list-style:none;
  overflow-x:auto;overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;scroll-behavior:smooth;
  scrollbar-width:none;-ms-overflow-style:none;
}
.reel-track::-webkit-scrollbar{display:none}
/* one film has the floor; its neighbours sit back far enough to read as
   "there is more here" without asking to be watched themselves */
.reel-slide{
  flex:0 0 min(100%,720px);scroll-snap-align:center;margin:0;
  opacity:.38;transition:opacity .4s var(--ease);
}
.reel-slide.is-here{opacity:1}

.reel-arrow{
  position:absolute;top:38%;transform:translateY(-50%);
  width:clamp(38px,4vw,48px);height:clamp(38px,4vw,48px);
  display:grid;place-items:center;
  border:0;border-radius:50%;cursor:pointer;
  background:var(--paper);color:var(--ink);
  box-shadow:0 2px 16px rgba(0,0,0,.3);
  transition:transform .25s var(--ease), opacity .25s var(--ease);
}
.reel-arrow.prev{left:-4px}
.reel-arrow.next{right:-4px}
.reel-arrow .hand-arrow-right{margin:0}
.reel-arrow.prev .hand-arrow-right{transform:scaleX(-1)}
.reel-arrow:hover{transform:translateY(-50%) scale(1.09)}
.reel-arrow[disabled]{opacity:0;pointer-events:none}

.reel-tabs{display:flex;flex-wrap:wrap;justify-content:center;
  gap:.3rem 1.5rem;padding-top:1.2rem}
.reel-tab{
  border:0;background:none;padding:.2rem 0;cursor:pointer;
  font:inherit;font-size:var(--small);color:currentColor;opacity:.6;   /* was .5, 3.5:1 on pink. .6 is 4.7:1 at worst, pink at night (Steven's pick, 11 Oct) */
  border-bottom:2px solid transparent;
  transition:opacity .25s var(--ease), border-color .25s var(--ease);
}
.reel-tab:hover{opacity:.85}
.reel-tab[aria-current="true"]{opacity:1;background:var(--pal-b);color:var(--on-deep);padding-inline:.6em}   /* the film that's showing: a label in the second colour */
.dark .reel-tab[aria-current="true"]{background:var(--pal-a)}

@media (max-width:639px){
  .reel-slide{flex:0 0 88%}
  .reel-arrow{display:none}
}
@media (prefers-reduced-motion:reduce){
  .reel-track{scroll-behavior:auto}
  .reel-slide{opacity:1}
}

/* ---------- the story — how the studio was built, 2014 to 2019 ----------
   Six beats you scroll through. The steps on the left are the story, and
   they read on their own; the stage on the right sticks while they pass and
   turns each one into a picture: one designer, the flood of asks, the flood
   put in order, the count, the stair, the bills that never came. Scroll
   drives it both ways (motion rule 5) — nothing plays on its own.
   With no JavaScript the stage is hidden and the steps are a plain list. */
.story{
  --st-line:color-mix(in srgb,var(--on-deep) 26%,transparent);
  --st-soft:color-mix(in srgb,var(--on-deep) 78%,transparent);
  margin:0;border-bottom:var(--rule);
}
.story-label{
  display:flex;flex-wrap:wrap;gap:.2rem 1.2rem;align-items:baseline;
  margin:0;padding:var(--s3) var(--page);
  border-bottom:1px solid var(--st-line);
  font-size:var(--small);line-height:1.3;letter-spacing:.015em;
  font-variation-settings:"wght" 660, "wdth" 98;
  text-transform:none;
  color:var(--st-soft);
}
.story-label span{font-variation-settings:"wght" 520, "wdth" 98}
.story-grid{
  display:grid;
  grid-template-columns:minmax(0,.36fr) minmax(0,.64fr);
}
.story-steps{
  grid-column:1;grid-row:1;
  list-style:none;margin:0;
  padding:0 var(--gutter) 0 var(--page);
}
.story-step{
  min-height:calc((100vh - var(--hdr, 80px)) * .74);
  display:flex;flex-direction:column;justify-content:center;
  padding-block:2rem;
}
.story-step:first-child{min-height:calc((100vh - var(--hdr, 80px)) * .9)}
.story-step:last-child{min-height:calc(100vh - var(--hdr, 80px))}
/* The steps you're not on sit back at .6, not .26 (Steven's pick, 11 Oct):
   .26 was 1.8:1. Their copy is set solid while they wait, because the soft
   ink (78%) times the fade would be 3.2:1; together they are 4.8:1. */
.story-js .story-step > div{opacity:.6;transition:opacity .45s var(--ease)}
.story-js .story-step:not(.is-here) p{color:var(--on-deep)}
.story-js .story-step.is-here > div{opacity:1}
.story-when{
  display:block;margin-bottom:.8rem;
  font-size:var(--small);letter-spacing:.02em;
  font-variation-settings:"wght" 700, "wdth" 100;
  color:var(--gold-bright);
}
.story-step h3{
  font-size:clamp(1.7rem, 2.7vw, 2.8rem);
  line-height:.98;letter-spacing:-.02em;
  font-variation-settings:"wght" 860, "wdth" 100;
  margin:0 0 1rem;
  max-width:14ch;
}
.story-step p{margin:0;max-width:36ch;font-size:var(--text);line-height:1.45;color:var(--st-soft)}

.story-stage{
  grid-column:2;grid-row:1;align-self:start;
  position:sticky;top:var(--hdr, 80px);
  height:calc(100vh - var(--hdr, 80px));
  overflow:hidden;
  border-left:1px solid var(--st-line);
  display:none;
}
.story-js .story-stage{display:block}
/* on the grid: an edge-wide spacer, the steps up to the copy line, the stage from it,
   so the stage's edge is the same line every copy block hangs from */
@media (min-width:1024px){
  .story-grid{grid-template-columns:var(--edge) minmax(0,calc(var(--L) * ((100% - 2 * var(--edge) - 11 * var(--gutter)) / 12 + var(--gutter)))) minmax(0,1fr)}
  .story-steps{grid-column:2;padding:0 var(--gutter) 0 0}
  .story-stage{grid-column:3}
}
.st-words{position:absolute;inset:0}
/* the words are the work itself: set loose they're the flood, lined up
   they're the order. One writer, main.js 9c: transform, size and axes. */
.sw{
  position:absolute;left:0;top:0;
  white-space:nowrap;line-height:1;
  transform-origin:0 50%;
  color:var(--on-deep);
  will-change:transform;
}
.sw i{
  position:absolute;right:100%;top:.14em;margin-right:.7em;
  font-style:normal;font-size:.62em;letter-spacing:.04em;
  font-variation-settings:"wght" 500, "wdth" 96;
  font-variant-numeric:tabular-nums;
  color:var(--st-soft);
  opacity:var(--num, 0);
}
/* the start-up in his hand; the stroke width is set per word for weight */
.sw.is-hand{font-family:"Steven Hand","Bradley Hand",cursive;font-variation-settings:normal;letter-spacing:0;line-height:1.05}
.sw.is-hand i,.sw.is-hand .st-pill{font-family:var(--body)}
/* the board: each job's status, the way the schedule ran */
.sw .st-pill{
  position:absolute;left:var(--pillx, 100%);top:50%;translate:0 -50%;
  padding:.3em .75em;border-radius:1em;
  font-size:.56em;font-style:normal;font-variation-settings:"wght" 700, "wdth" 100;letter-spacing:.02em;line-height:1;
  color:var(--on-deep);white-space:nowrap;
  opacity:var(--num, 0);
}
/* the three statuses: filled with a light colour, outlined, and black with light type (--loz-*, with the palettes) */
.st-done{background:var(--loz-1)}
.st-doing{background:var(--loz-2);box-shadow:inset 0 0 0 1.5px var(--on-deep)}
.sw .st-pill.st-stuck{background:var(--on-deep);color:var(--loz-ink)}   /* .sw .st-pill sets the type black: this has to outrank it, or it's black on black */
.st-narrow .sw .st-pill{font-size:0;padding:0;width:.62em;height:.62em;border-radius:50%}
.st-board{position:absolute;inset:0;opacity:0;pointer-events:none}
/* ---- the Studio story's scraps (main.js 9c) ----
   Each ask is a note on a scrap in his hand: plain stock, a sticky note or a
   torn notebook page, cut ragged top and bottom, with a hard shadow that
   follows the tear. As each files onto the board the paper comes away and
   it's typed: analogue chaos into digital order (Steven, 29 Sept). */
/* --paper runs 1 to 0 as a scrap files onto the board: the paper comes
   away, and the ink goes back to the board's own colour, typed */
.st-scraps .sw{padding:calc(.3em * var(--paper,1)) calc(.5em * var(--paper,1)) calc(.36em * var(--paper,1));
  color:color-mix(in srgb,#1b1914 calc(var(--paper,1) * 100%),var(--on-deep))}
.st-scraps .sw::before,.st-scraps .sw::after{content:"";position:absolute;inset:0;clip-path:var(--cp);z-index:-1;pointer-events:none;
  opacity:var(--paper,1);scale:calc(.9 + var(--paper,1) * .1)}
.st-scraps .sw::before{background:url(../assets/story/scrap-paper.webp) center/cover,#f4efe3;background-blend-mode:multiply}
.st-scraps .sw::after{z-index:-2;background:rgba(0,0,0,.42);translate:2px 4px;opacity:calc(var(--paper,1) * .9)}
.st-scraps .sw.sc-post::before{background:url(../assets/story/scrap-paper.webp) center/cover,#f3d95c;background-blend-mode:multiply}
.st-scraps .sw.sc-lined::before{
  background:linear-gradient(90deg,transparent .32em,rgba(206,72,72,.6) .32em calc(.32em + 1px),transparent 0),
    repeating-linear-gradient(to bottom,transparent 0 .62em,rgba(70,120,190,.38) .62em calc(.62em + 1px)),
    url(../assets/story/scrap-paper.webp) center/cover,#f8f5ee;
  background-blend-mode:normal,normal,multiply}

/* All business, About: his face never goes (Steven, 29 Sept: "we should
   always see my face on this route"). The site's hover fades the cutout to
   show the smiley behind; here the circle has no face to show, so he stays
   and lifts a touch towards you while the circle pops and bobs behind him. */
.lay-business .cutout-frame:hover > img,.lay-business .cutout-frame.is-face > img{opacity:1;transform:translateY(-2%) scale(1.025)}
.st-bcol{
  position:absolute;top:var(--by);width:var(--bw);height:calc(var(--rh) * var(--rows));
  border-top:1px solid color-mix(in srgb,var(--on-deep) 40%,transparent);
  background:repeating-linear-gradient(to bottom, transparent 0 calc(var(--rh) - 1px), color-mix(in srgb,var(--on-deep) 16%,transparent) calc(var(--rh) - 1px) var(--rh));
}
.st-bcol:nth-child(1){left:var(--bx)}
.st-bcol:nth-child(2){left:calc(var(--bx) + var(--bw) + var(--bg))}
.st-bcol b{
  position:absolute;bottom:100%;margin-bottom:.55em;
  font-size:max(10px, calc(var(--bz) * .58));letter-spacing:.08em;text-transform:uppercase;
  font-variation-settings:"wght" 700, "wdth" 100;color:color-mix(in srgb,var(--on-deep) 78%,transparent);
}
.st-bcol b:nth-child(1){left:0}
.st-bcol b:nth-child(2){left:var(--numw)}
.st-bcol b:nth-child(3){right:0}
.st-narrow .st-bcol b:nth-child(3){display:none}
.st-one,.st-count,.st-stairs,.st-prices{position:absolute;opacity:0;pointer-events:none}
.st-one{left:6%;top:50%;transform:translateY(-54%)}
.st-one b{
  display:block;
  font-size:min(44vh, 34vw);line-height:.78;
  font-variation-settings:"wght" 900, "wdth" 62;
  color:var(--gold-bright);
}
.st-one span{display:block;margin-top:1rem;font-size:clamp(1rem,1.3vw,1.3rem);font-variation-settings:"wght" 660, "wdth" 100;color:var(--st-soft)}
.st-count{left:8%;right:8%;top:50%;transform:translateY(-50%)}
.st-count b{
  display:block;
  font-size:min(34vh, 24vw);line-height:.8;letter-spacing:-.04em;
  font-variation-settings:"wght" 900, "wdth" 112;
  font-variant-numeric:tabular-nums;
  color:var(--gold-bright);
}
.st-count span{display:block;margin-top:1.4rem;font-size:clamp(1.1rem,1.6vw,1.6rem);font-variation-settings:"wght" 700, "wdth" 100}
.st-count small{display:block;margin-top:.5rem;font-size:var(--small);color:var(--st-soft)}

/* the career route: four steps up, one line drawn in */
.st-stairs{
  left:7%;right:7%;top:14%;bottom:16%;
  display:grid;grid-template-columns:repeat(4,1fr);align-items:end;
}
.st-stairs{container-type:size}
/* the stair drawn in his marker (Steven, 28 Sept): each tread is his
   underline, each riser the same stroke stood on end */
.st-stair{
  position:relative;
  height:calc(var(--l) * 25%);
  padding:.9rem 0 0 1rem;
  opacity:var(--in, 0);
  transform:translateY(calc((1 - var(--in, 0)) * 18px));
}
.st-stair::before,.st-stair::after{
  content:"";position:absolute;background:var(--on-deep);
  -webkit-mask:url("../assets/hand/underline.png") center/100% 100% no-repeat;mask:url("../assets/hand/underline.png") center/100% 100% no-repeat;
}
.st-stair::before{left:-4%;right:-5%;top:-.42rem;height:.84rem}
.st-stair::after{left:-.2rem;top:-.1rem;width:calc(var(--l) * 25cqh + .2rem);height:.72rem;transform-origin:.36rem 50%;transform:rotate(90deg) translateY(-50%)}
.st-stair b{
  display:block;margin-bottom:.5rem;
  font-size:clamp(1rem,1.9vw,1.9rem);line-height:1;
  font-variation-settings:"wght" 860, "wdth" 104;
  text-transform:uppercase;letter-spacing:-.01em;
}
.st-stair span{display:block;font-size:clamp(.72rem,.95vw,.95rem);line-height:1.35;color:var(--st-soft)}
/* signed off at the top of the stair, not floating in the space beside it */
/* approved: his rubber stamp, in the site's gold, coming down hard once
   the stair's built (Steven, 28 Sept: "an approved stamp after the build") */
.st-stamp{
  position:absolute;left:-2%;top:-2%;width:min(52%, 380px);aspect-ratio:720/542;
  background:var(--gold-bright);
  -webkit-mask:url("../assets/studio-approved-stamp.webp") center/contain no-repeat;mask:url("../assets/studio-approved-stamp.webp") center/contain no-repeat;
  opacity:var(--in, 0);
  transform:rotate(8deg) scale(calc(2 - var(--in, 0)));
  pointer-events:none;
}

/* the bills that never came: each price struck through in his marker */
.st-prices{left:8%;right:6%;top:50%;transform:translateY(-50%);list-style:none;margin:0;padding:0}
.st-prices li{display:flex;align-items:baseline;flex-wrap:wrap;gap:.2rem 1.2rem;padding:.55rem 0;
  opacity:var(--in, 0);transform:translateY(calc((1 - var(--in, 0)) * 14px))}
.st-prices li + li{border-top:1px solid var(--st-line)}
.st-prices b{
  position:relative;
  font-size:min(9.5vh, 6.4vw);line-height:1;letter-spacing:-.03em;
  font-variation-settings:"wght" 860, "wdth" 108;
  font-variant-numeric:tabular-nums;
}
.st-prices b::after{
  content:"";position:absolute;left:-4%;right:-6%;top:28%;height:52%;
  background:var(--gold-bright);
  -webkit-mask:url("../assets/hand/underline.png") center/100% 100% no-repeat;mask:url("../assets/hand/underline.png") center/100% 100% no-repeat;
  clip-path:inset(-20% calc((1 - var(--cut, 0)) * 100%) -20% 0);
}
.st-prices span{font-size:var(--small);color:var(--st-soft)}

@media (max-width:1023px){
  .story-grid{display:block}
  .story-stage{
    position:sticky;z-index:2;
    height:52svh;
    border-left:0;border-bottom:1px solid var(--st-line);
    background:var(--deep);
  }
  .story-steps{padding:0 var(--page)}
  .story-step,.story-step:first-child{min-height:56svh;justify-content:flex-start;padding-top:2.2rem}
  .story-step:last-child{min-height:62svh}
  .story-step h3{font-size:clamp(1.5rem,6.4vw,2rem);max-width:none}
  .st-one b{font-size:36svh}
  .st-count b{font-size:min(22svh, 34vw)}
  .st-count span{font-size:1.05rem}
  .st-stairs{left:5%;right:5%;top:15%;bottom:9%}
  /* the labels sit well clear of the hand-drawn tread and riser (Steven, 1 Oct) */
  .st-stair{padding:1.2rem 0 0 1.1rem}
  .st-stair b{margin-bottom:.3rem}
  .st-stair b{font-size:.86rem}
  .st-stair span{font-size:.64rem}
  .st-prices b{font-size:min(6.4svh, 9vw)}
  .st-prices li{padding:.35rem 0}
}
@media (prefers-reduced-motion:reduce){
  .story-js .story-step > div{transition:none}
}

/* ---------- the marshmallow pitch (studio.html) ----------
   The lens playing beside the three numbers that matter, and the team's
   scan-me codes under them. The film is portrait, so it takes the narrow
   column and never runs taller than the numbers need. */
.snap{
  display:grid;grid-template-columns:minmax(0,1fr);
  gap:var(--s5) var(--gutter);align-items:start;
  margin:var(--s5) 0;
}
/* the block fills the eight copy columns, so eight columns inside it are the page's own:
   the portrait film takes three, the numbers and the codes the other five */
@media (min-width:640px){
  .snap{grid-template-columns:repeat(8,minmax(0,1fr))}
  .snap > .snap-film{grid-column:span 3}
  .snap > .snap-side{grid-column:span 5}
}
.snap figure{margin:0}
.snap-film video{display:block;width:100%;height:auto;aspect-ratio:9 / 16;object-fit:cover;border-radius:22px;background:var(--ink)}
.snap figcaption{font-size:var(--small)}
.snap-stats{list-style:none;margin:0;padding:0}
.snap-stats li{padding:1rem 0;border-top:var(--rule)}
.snap-stats li:last-child{border-bottom:var(--rule)}
.snap-stats b{
  display:block;
  font-size:clamp(2rem,3.6vw,3.4rem);line-height:.95;letter-spacing:-.03em;
  font-variation-settings:"wght" 860, "wdth" 108;
  color:var(--teal);white-space:nowrap;
}
.snap-stats span{display:block;margin-top:.4rem;font-size:var(--small);max-width:34ch;opacity:.8}
.snap .snap-codes{margin-top:var(--s4)}
.snap-codes > div{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--s2)}
.snap-codes img{display:block;width:100%;height:auto;border-radius:4px}
@media (max-width:639px){
  .snap-film{max-width:260px}
}

/* the brand guidelines: six pages, small, in the prose column */
.gl-grid{margin:var(--s5) 0}
.gl-grid > div{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--s2)}
@media (max-width:1023px){.gl-grid > div{grid-template-columns:repeat(3,1fr)}}
.gl-grid img{display:block;width:100%;height:auto;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.18)}
.gl-grid figcaption{font-size:var(--small)}
@media (max-width:639px){.gl-grid > div{grid-template-columns:repeat(2,1fr)}}

/* CV actions + print */
.cv-actions{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:clamp(1.2rem,2.5vw,2rem)}
.cv-btn{
  padding:.55em 1.1em;font:inherit;cursor:pointer;text-decoration:none;
  background:transparent;border:2px solid var(--ink);color:var(--ink);
  font-variation-settings:"wght" 700, "wdth" 100;font-size:var(--small);
  text-transform:uppercase;letter-spacing:.04em;
}
.cv-btn:hover{background:var(--ink);color:var(--paper)}

@media print{
  .hand-arrow-right{-webkit-print-color-adjust:exact;print-color-adjust:exact}   /* it is a painted mask, which print would drop */
  .site-header,.skip-link,.cv-actions,.cv-toggle,footer.contact,.theme-toggle,.motion-toggle,.sound-toggle{display:none !important}
  body{background:#fff;color:#000;font-size:10.5pt}
  .kinetic{font-size:26pt !important}
  .case-hero,.section{padding:0 0 1.2rem;border:none}
  .stat-strip{padding:0 0 1rem;border-bottom:1px solid #000}
  .stat b{font-size:16pt;color:#000}
  .cv-item summary{padding:.5rem 0}
  .cv-role{font-size:13pt}
  .cv-detail{max-width:none}
  .cv-detail a{color:#000;text-decoration:none}
  .cv-detail a::after{content:""}
  details.cv-item{border-top:1px solid #000}
  @page{size:A4;margin:16mm}
}



/* gold full stop for static headlines */

/* Case pages stack two .case-body blocks in a row, and each brought a full
   section of padding — so the space between them doubled to as much as 320px
   of nothing before the next heading, on top of the sections' own padding.
   Adjacent blocks share one gap instead. */
/* (the padding is in THE GRID) */
/* A film belongs to the paragraph above it. The full section padding under
   the prose plus the framed block's own top padding put up to 14rem between
   them, which read as a new chapter rather than the picture of this one. */
/* and the last section's own padding-block was the other 57px of it */
.case-body:has(+ .case-media) > .case-section:last-child{padding-bottom:0}
.case-section{display:grid}
.case-section + .case-section{border-top:var(--rule)}
.case-section > h2{
  font-size:clamp(1.5rem,2.6vw,2.6rem);
  margin:0;
  max-width:14ch;
  position:sticky;top:5.5rem;
  align-self:start;
}
.case-section .prose > p:first-child{
  font-size:clamp(1.25rem,1.8vw,1.8rem);
  font-variation-settings:"wght" 600, "wdth" 102;
  line-height:1.25;
  letter-spacing:-.012em;
  max-width:44ch;
}
.case-list{margin:0 0 1.1em;padding-left:1.1em}
.case-list li{margin-bottom:.35em;max-width:56ch}

/* someone else's words — hanging golden quote mark, no border. Only other
   people get the mark: a question or a line of his own is a .pull (Steven, 17 Nov) */
.quote{
  margin:1.8em 0;
  padding:0 0 0 1.15em;
  position:relative;
  border:none;
  font-size:clamp(1.45rem,2.4vw,2.4rem);
  font-variation-settings:"wght" 740, "wdth" 106;
  line-height:1.14;
  letter-spacing:-.015em;
  max-width:30ch;
}
.quote::before{
  content:"\201C";
  position:absolute;left:-.06em;top:-.08em;
  font-size:2em;line-height:1;
  color:var(--gold);
  font-variation-settings:"wght" 900, "wdth" 125;
}

/* what people say: someone else's words, with who said it on a caption slip
   like the pictures' (Steven, 4 Nov). In a case study it sits in the prose,
   quieter than a pull quote; on Home it gets a section of its own, the
   hiring line at headline size and the other two side by side. */
.said{margin:1.4em 0 0}
.said .quote{margin:0;font-size:clamp(1.15rem,1.6vw,1.45rem);line-height:1.25;max-width:44ch}
.said-hero{margin:0}
.said-hero .quote{font-size:clamp(2rem,4.6vw,4.4rem);line-height:1.02;max-width:21ch;
  font-variation-settings:"wght" 860,"wdth" 110;letter-spacing:-.02em}
.said-pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,24rem),1fr));
  gap:clamp(2rem,4vw,3rem) clamp(1.5rem,4vw,4rem);margin-top:clamp(2.5rem,6vw,4.5rem)}
.said-pair .said{margin:0}
.said-pair .quote{font-size:clamp(1.3rem,2.1vw,1.9rem);line-height:1.15;max-width:30ch}

.case-figs{display:grid;grid-template-columns:1fr 1fr;gap:2px;border-block:var(--rule)}
.case-figs figure{margin:0}
.case-figs img{width:100%;height:100%;object-fit:cover;aspect-ratio:4/3}
.case-figs.single{grid-template-columns:1fr}

/* next case footer */
.next-case{display:block;text-decoration:none;text-align:left}
.next-case .mono{display:block;margin-bottom:1rem}
.next-title{
  display:inline-block;
  font-size:clamp(2.4rem,7vw,7rem);
  text-transform:uppercase;
  line-height:.92;
  letter-spacing:-.025em;
  font-variation-settings:"wght" 840, "wdth" 86;
  transition:transform .45s var(--ease), color .25s;
}
.next-case:hover .next-title{transform:translateX(.12em);color:var(--gold-bright)}

/* ---------- about ---------- */
.about-grid{display:grid;align-items:start}
.portrait{position:sticky;top:5.5rem;margin:0}

/* the cutout stands in front of a giant golden full stop */
.cutout-frame{position:relative;overflow:hidden;aspect-ratio:1/1;cursor:pointer}
/* the smiley behind the portrait is Steven's own mark, drawn rather than
   photographed. Born small, it grows with the scroll and shrinks back on the
   way up. It arrives as a blank disc; the face only turns up when you do. */
.disc-face{
  position:absolute;left:50%;bottom:12%;
  width:74%;aspect-ratio:1/1;
  transform:translateX(-50%) translateY(var(--discY,0px)) scale(var(--discS,.06));
  opacity:1;z-index:0;
  pointer-events:none;
  will-change:transform;
  display:block;
}
.disc-face .sm-face{width:100%;height:100%;display:block}
.sm-features{opacity:0;transition:opacity .32s var(--ease)}
.disc-face.is-awake .sm-features{opacity:1}
/* fill-box keeps the squeeze centred on the eye itself, whatever the
   artwork's own rotation matrix happens to be — so a re-export cannot
   send the wink off to one side */
.sm-eye{transform-box:fill-box;transform-origin:center;transition:transform .12s ease}
.disc-face.is-wink .sm-eye-l{transform:scaleX(.1)}
.disc-face.is-glee .sm-eye{transform:scaleX(.1)}
/* The smiley is out while the pointer is over the portrait, or, on a touch
   screen, from a tap on it until a tap somewhere else (.is-face, main.js).
   The hover rules are for things that can hover: on a phone a tap left
   :hover stuck on while the script had already put the face away, so the
   smiley finished as a blank yellow disc (Steven, 4 Oct). */
.cutout-frame.is-face .disc-face{animation:facePop .55s cubic-bezier(.34,1.56,.64,1), discBob 2.8s 1.4s ease-in-out infinite}
@media (hover:hover){
  .cutout-frame:hover .disc-face{animation:facePop .55s cubic-bezier(.34,1.56,.64,1), discBob 2.8s 1.4s ease-in-out infinite}
}
@keyframes facePop{
  0%{transform:translateX(-50%) translateY(var(--discY,0px)) scale(calc(var(--discS,1) * .82)) rotate(-5deg)}
  100%{transform:translateX(-50%) translateY(var(--discY,0px)) scale(var(--discS,1)) rotate(0deg)}
}
/* my face and the smiley are never on screen together. Direct child only:
   anything layered onto the smiley itself lives inside .disc-face and must
   stay with it. (A stray brace used to sit here, which is why the rule above
   was written out twice — the parser was dropping the first copy.) */
.cutout-frame > img{transition:transform .55s var(--ease), opacity .5s var(--ease)}
.cutout-frame.is-face > img{opacity:0;transform:scale(.94) translateY(2.5%) rotate(-1.2deg)}
@media (hover:hover){
  .cutout-frame:hover > img{opacity:0;transform:scale(.94) translateY(2.5%) rotate(-1.2deg)}
}
@keyframes discBob{
  0%,100%{transform:translateX(-50%) translateY(var(--discY,0px)) scale(var(--discS,1))}
  50%{transform:translateX(-50%) translateY(calc(var(--discY,0px) - 7px)) scale(calc(var(--discS,1) * 1.02))}
}
.cutout-frame > img{
  position:relative;z-index:1;
  width:100%;aspect-ratio:1/1;object-fit:cover;
  filter:grayscale(1) contrast(1.06);
}
@media (prefers-reduced-motion: reduce){
  .disc-face{transform:translateX(-50%) scale(1)}
}
.portrait figcaption{
  margin-top:.7rem;font-size:var(--small);opacity:.6;
}

/* ---------- CV ---------- */
.cv-list{list-style:none;margin:0;padding:0}
.cv-item{border-top:var(--rule)}
.cv-item:last-child{border-bottom:var(--rule)}
.cv-item summary{
  display:grid;
  align-items:baseline;
  cursor:pointer;
  list-style:none;
}
.cv-item summary::-webkit-details-marker{display:none}
.cv-when{
  font-size:var(--small);
  font-variation-settings:"wght" 660, "wdth" 98;
  color:var(--teal);
  white-space:nowrap;
}
/* block, not inline-block: an inline-block's baseline is its last line, and
   Safari's grid then lined the summary up on a wrapped title's last line
   without making room above it, so the first line ran up over the rule
   (Steven, 24 Sept). As a block, the date and the + sit on its first line. */
.cv-role{
  display:block;
  font-size:clamp(1.5rem,3.4vw,3.4rem);
  text-transform:uppercase;
  line-height:.98;
  letter-spacing:-.02em;
  font-variation-settings:"wght" 840, "wdth" 88;
  transition:transform .4s var(--ease), color .25s;
}
.cv-item summary:hover .cv-role{transform:translateX(.12em);color:var(--teal)}
.cv-org{display:block;margin-top:.35em;font-size:var(--text);font-variation-settings:"wght" 500, "wdth" 98;text-transform:none;letter-spacing:0;line-height:1.3}
.cv-toggle{
  font-size:clamp(1.3rem,2.2vw,2.2rem);
  color:var(--teal);
  transition:transform .35s var(--ease-snap);
}
.cv-item[open] .cv-toggle{transform:rotate(45deg)}
.cv-detail{
  padding:0 0 clamp(1.8rem,3.5vw,3rem);
  max-width:64ch;
}
.cv-detail p{max-width:58ch}
.cv-detail .case-list{margin-top:.4em}
.cv-detail a{color:var(--teal);text-decoration-thickness:2px;text-underline-offset:.18em}

/* ---------- contact ---------- */
.contact .mono{display:block;margin-bottom:1.6rem}
.contact-line{
  font-size:clamp(1.9rem,4.6vw,4.6rem);
  text-transform:none;
  line-height:.95;
  letter-spacing:-.01em;
  font-variation-settings:normal;
  max-width:none;
  margin:0 0 clamp(2rem,4.5vw,4rem);
}
.cta-row{display:flex;flex-wrap:wrap;gap:1.2rem clamp(2rem,5vw,4.5rem)}
.cta{
  display:inline-block;
  font-size:clamp(1.5rem,3.2vw,3.2rem);
  text-transform:uppercase;
  letter-spacing:-.02em;
  line-height:1;
  font-variation-settings:"wght" 840, "wdth" 86;
  text-decoration:none;
  padding-bottom:.14em;
  position:relative;
  transition:font-variation-settings .5s var(--ease), color .25s;
}
.cta::after{
  content:"";position:absolute;left:0;right:0;bottom:-.04em;
  height:.17em;
  background:url("../assets/hand/underline.png") no-repeat left center / 100% 100%;
  clip-path:inset(-30% 66% -30% 0);
  transition:clip-path .4s var(--ease-snap);
}
.cta:hover{font-variation-settings:"wght" 900, "wdth" 86;color:var(--gold-bright)}
.cta:hover::after{clip-path:inset(-30% 0% -30% 0)}
.section:not(.dark) .cta:hover{color:var(--teal)}

.foot-row{
  display:flex;flex-wrap:wrap;justify-content:space-between;gap:1rem 2rem;
  margin-top:clamp(2.5rem,5vw,4.5rem);
  font-size:var(--small);
  font-variation-settings:"wght" 500, "wdth" 98;
  opacity:.75;
}
.foot-row a{text-decoration:none}
.foot-row a:hover{color:var(--gold-bright)}

/* ---------- responsive ---------- */
/* (the label | copy, work and CV layouts below 1024 are in THE GRID) */
@media (max-width:1023px){
  .case-figs{grid-template-columns:1fr}
}
@media (max-width:639px){
  /* the arrow used to be dropped here; it is the only thing telling a
     thumb that the row is a link, so it stays and simply gets smaller */
  .work-arrow{font-size:1.5rem;align-self:center}
  .site-header{flex-wrap:wrap;row-gap:.15rem}
  .nav{flex-wrap:wrap;gap:.4rem 1rem;width:100%}
  /* work menu opens on tap, mirroring desktop hover */
  .drop{left:0;min-width:15rem}
  .nav-item:not(.open):not(:focus-within) .drop{opacity:0;visibility:hidden}
  .nav-item.open .drop{opacity:1;visibility:visible;transform:translateY(0)}
  .kinetic{font-size:clamp(2.6rem,15vw,5rem)}
  .hero{min-height:auto;gap:2.2rem}
}
/* The name and the whole nav need about 700px on one line. Narrower than that the
   tablet masthead pushed the page sideways and cut the Motion switch off, so the nav
   takes its own row when it doesn't fit, as it does on a phone (16 Nov). */
@media (min-width:640px) and (max-width:1023px){
  .site-header{flex-wrap:wrap;row-gap:.15rem}
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .kinetic .ch,.kinetic.ready .ch{animation:none;transform:none}
  .kinetic .dot,.kinetic.ready .dot{animation:none;transform:none;opacity:1}
  .scroll-cue .arrow,.scroll-cue .hand-arrow-down{animation:none}
  .reveal,.reveal-stagger > *{opacity:1;transform:none;transition:none}
  /* the mark still answers the pointer, it just does not whirl: the blur
     and the invitation carry the whole message on their own */
  .brand-ring{animation:none !important}
  /* the roles still take turns; the ball just does not fetch them */
  .kinetic[data-cycle] .ch{transition:none}
  *{transition-duration:.01ms !important}
  /* ...but not the headlines: the fitters set a size and read it straight
     back, and mid-transition the read is the old size, so with motion off
     the fit never shrank (CREATIVE DIRECTION clipped on a phone, 4 Nov) */
  .kinetic,.kinetic *{transition:none !important}
}


/* ---------- Steven's hand: signature sign-off & doodles ---------- */
.signoff{margin:clamp(2rem,4vw,3.4rem) 0 clamp(1.5rem,3vw,2.5rem)}
.signoff img{
  width:clamp(180px,22vw,300px);height:auto;
  /* the signature was written rising 3.04deg to the right — measured off the
     centroid of its own ink, not eyeballed. Rotating by that much sets it
     level; a skew would have straightened the baseline by leaning every
     letter instead. */
  transform:rotate(3.04deg);
  transform-origin:left center;
  transition:clip-path 1.4s var(--hand-ease);
}
:where(.js-anim) .signoff img{clip-path:inset(0 100% 0 0)}   /* unsigned until it's reached, when there's a script to sign it */
.signoff.is-in img{clip-path:inset(0 0% 0 0)}
[data-theme="dark"] .doodle:not([src*="-light"]):not(.dark *){filter:invert(1) brightness(1.65)}   /* not on the band: its type stays black */
[data-theme="dark"] .section:not(.dark) .cta::after{background-image:url("../assets/hand/underline-light.png")}
.doodle{position:absolute;pointer-events:none;
  transition:opacity .12s var(--ease), clip-path .6s var(--hand-ease) .02s}
:where(.js-anim) .doodle{opacity:0;clip-path:inset(-25% 100% -25% 0)}   /* drawn in when reached; already drawn when there's no script */
.doodle.show{opacity:1;clip-path:inset(-25% 0% -25% 0)}
.u-hand{position:relative}
.stat{position:relative}
.pull em{position:relative}
.doodle-under{left:-4%;bottom:-.42em;width:108%;height:.5em}
/* a pull quote is set tight (1.08), so an underline on any line but the last
   ran down into the letters of the line below (Steven, 26 Sept: "believe"
   over "achieve"). It sits just under its word instead. */
.pull .doodle-under{bottom:-.14em;height:.36em}
/* THE MARK. Every section head carries the hand-drawn underline and
   nothing below one ever does — that is the whole rule. Set tighter than
   the pull-quote underline so the two never read as the same gesture. */
h2 .u-hand .doodle-under{left:-3%;bottom:-.34em;width:106%;height:.42em;max-width:none}


/* One drawn arrow across the site — Steven's own, painted from currentColor
   through a mask of the drawing rather than loaded as a black image, so it
   takes the colour of the line it sits on and needs no light/dark variant.
   Two cuts of the same hand: right for travel to another page, down for
   travel within this one. The rule (Steven, 17 Nov): every link that stays
   on the site takes the drawn arrow, sized to its line; every link that
   leaves it (LinkedIn, email, a call, a text) takes the typed ↗. */
.hand-arrow-right{
  display:inline-block;
  width:max(1.22em,20px);height:max(.46em,7.5px);   /* beside small type (the footer) it would be a 16px smudge */
  margin-left:.44em;vertical-align:.02em;
  background:currentColor;
  -webkit-mask-image:url("../assets/hand/arrow-right.png");mask-image:url("../assets/hand/arrow-right.png");
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:center;mask-position:center;
  -webkit-mask-size:contain;mask-size:contain;
  transition:transform .3s var(--ease);
}
.next-case:hover .hand-arrow-right{transform:translateX(7px)}

/* The down cut of the drawn arrow: movement within a page, on the jump to
   the work index. Painted from
   currentColor through a mask of the drawing rather than loaded as a black
   image, so it takes the colour of the line it sits on and follows every
   palette and dark mode with no filter. */
.hand-arrow-down{
  display:inline-block;flex:none;
  width:.452em;height:1.2em;
  background:currentColor;
  -webkit-mask-image:url("../assets/hand/arrow-down.png");mask-image:url("../assets/hand/arrow-down.png");
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:center;mask-position:center;
  -webkit-mask-size:contain;mask-size:contain;
  transition:transform .3s var(--ease);
}
.scroll-cue:hover .hand-arrow-down{transform:translateY(5px)}

/* the game wears the same face */
.game-face{display:inline-block;width:1.6em;height:1.6em;border-radius:50%;
  background-image:var(--smiley-svg), var(--vinyl);
  background-size:100% 100%;
  box-shadow:inset -3px -4px 7px rgba(125,95,0,.18), inset 2px 3px 5px rgba(255,255,255,.24);
  vertical-align:-.5em;margin-right:.55em}

/* the rotating role in the hero meta */
#roleWord{display:inline-block;transition:opacity .35s var(--ease), transform .35s var(--ease)}
#roleWord.out{opacity:0;transform:translateY(-7px)}


/* game controls — thumbs first */
.pad{display:none;user-select:none;-webkit-user-select:none;touch-action:manipulation}
@media (hover: none){
  .pad{display:grid;grid-template-columns:repeat(3,3.1rem);grid-auto-rows:3.1rem;
    justify-content:center;gap:.35rem;margin-top:1.1rem}
}
.pad button{font:inherit;font-size:1.05rem;background:var(--paper);border:2px solid var(--ink);
  color:var(--ink);border-radius:.6rem;cursor:pointer;padding:0}
.pad button:active{background:var(--gold);color:var(--on-gold);transform:scale(.92)}
.pad [data-d="up"]{grid-column:2;grid-row:1}
.pad [data-d="left"]{grid-column:1;grid-row:2}
.pad-face{grid-column:2;grid-row:2;border-radius:50%;
  background-image:var(--smiley-svg), var(--vinyl);
  background-size:100% 100%;
  box-shadow:inset -3px -4px 7px rgba(125,95,0,.18), inset 2px 3px 5px rgba(255,255,255,.24)}
.pad [data-d="right"]{grid-column:3;grid-row:2}
.pad [data-d="down"]{grid-column:2;grid-row:3}
.rotate-note{display:none}
@media (hover: none) and (orientation: portrait){.rotate-note{display:block;margin-top:.7rem}}
.game-score.pop{animation:scorePop .3s var(--ease)}
@keyframes scorePop{40%{transform:scale(1.22)}}


/* the full stop is always round — the same character as the ball */


/* ---------- FIND THE JOY: liquid glass over the site ---------- */
.joy-veil{
  background:color-mix(in srgb, var(--paper) 30%, transparent);
  backdrop-filter:blur(26px) saturate(1.5);-webkit-backdrop-filter:blur(26px) saturate(1.5);
  display:block;padding:0;
}
.joy-bar{position:absolute;top:0;left:0;right:0;z-index:20;
  display:flex;align-items:center;gap:1.2rem;
  padding:.9rem var(--page);
}
.joy-bar .mono:first-child{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.joy-count{font-size:1.05rem}
.joy-close{position:static;margin-left:.4rem}
.joy-thread{position:absolute;top:0;left:0;height:3px;background:var(--smiley);z-index:21;
  width:100%;box-shadow:0 0 8px rgba(255,230,0,.6)}
.joy-field{position:absolute;inset:0;overflow:hidden}
.joy-face{position:absolute;left:0;top:0;padding:0;border:none;background:none;cursor:pointer;
  will-change:transform;border-radius:50%;
  transition:filter .3s var(--ease);
}
.joy-face img,.joy-face svg{display:block;width:100%;height:100%;
  filter:drop-shadow(0 10px 22px rgba(27,25,20,.16));-webkit-user-drag:none}
.joy-face:hover{filter:none !important}
.joy-face.joy-found{transition:transform .7s cubic-bezier(.34,1.56,.64,1), opacity .7s;
  transform:scale(1.7) !important;opacity:0;pointer-events:none}
.joy-face.joy-wobble{animation:joyWobble .5s var(--ease)}
@keyframes joyWobble{25%{margin-left:-5px}50%{margin-left:5px}75%{margin-left:-3px}}
.joy-ring{position:absolute;width:14px;height:14px;margin:-7px;border-radius:50%;
  border:3px solid var(--smiley);pointer-events:none;z-index:15;
  animation:joyRing .85s cubic-bezier(.2,.7,.3,1) forwards}
@keyframes joyRing{to{transform:scale(14);opacity:0}}
.joy-tear{position:absolute;width:10px;height:14px;border-radius:50% 50% 50% 50% / 60% 60% 40% 40%;
  background:#8fb0d8;pointer-events:none;z-index:15;
  animation:joyTear 1.05s cubic-bezier(.4,0,.8,1) forwards}
@keyframes joyTear{to{transform:translateY(120px);opacity:0}}
.joy-end{position:absolute;inset:0;z-index:18;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:.9rem;text-align:center;
  background:color-mix(in srgb, var(--paper) 55%, transparent);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.joy-end b{font-size:clamp(2.6rem,7.5vw,5.4rem);text-transform:uppercase;letter-spacing:-.03em;
  line-height:.92;font-variation-settings:"wght" 900, "wdth" 116}



/* joy settings */
.joy-gear{background:none;border:1.5px solid color-mix(in srgb, var(--ink) 35%, transparent);
  border-radius:2em;padding:.3em .9em;cursor:pointer;color:var(--ink);font-size:var(--small)}
.joy-gear:hover{border-color:var(--ink)}
.joy-set{position:absolute;top:3.4rem;right:var(--page);z-index:25;
  display:none;flex-direction:column;gap:.5rem;min-width:15rem;
  padding:1rem 1.1rem;border:1px solid var(--ink);
  background:color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.joy-set.open{display:flex}
.joy-set > div{display:flex;gap:.35rem}
.joy-set button{flex:1;font:inherit;font-size:var(--small);text-transform:capitalize;
  padding:.4em .2em;border:1.5px solid color-mix(in srgb, var(--ink) 30%, transparent);
  background:none;color:var(--ink);cursor:pointer;border-radius:.4em}
.joy-set button.on{background:var(--smiley);border-color:var(--smiley);color:#131313;
  font-variation-settings:"wght" 740, "wdth" 100}
.joy-end-row{display:flex;gap:.7rem}
.joy-leave{background:transparent;color:var(--ink);border:2px solid var(--ink)}
.joy-leave:hover{background:var(--ink);color:var(--paper)}


/* ============================================================
   LINKS THAT ANNOUNCE THEMSELVES

   The rule: a link must be legible AS a link before anything is
   pointed at it. Most visits never hover — a phone cannot — so any
   affordance that only exists in :hover does not exist at all for
   the people it matters most to.

   Split by scale:
   - Body size and below carry a real underline at rest, thickening
     and going full-strength on hover and focus.
   - Display-scale links (work rows, CTAs, next-case, stats) are big
     enough to read as links from weight and position, so they keep
     their own gestures — but every hover-only reveal has a
     (hover:none) fallback that shows it at rest instead.
   - Coarse pointers get 44px of height to aim at.
   ============================================================ */

.foot-row a,
.prose a,
.cv-detail a,
.strip-note a,
.case-note a{
  text-decoration:underline;
  text-decoration-thickness:.085em;
  text-underline-offset:.19em;
  text-decoration-color:color-mix(in srgb, currentColor 50%, transparent);
  transition:text-decoration-color .2s var(--ease),
             text-decoration-thickness .2s var(--ease),
             color .2s var(--ease);
}
.foot-row a:hover,.foot-row a:focus-visible,
.prose a:hover,.prose a:focus-visible,
.cv-detail a:hover,.cv-detail a:focus-visible,
.strip-note a:hover,.strip-note a:focus-visible{
  text-decoration-color:currentColor;
  text-decoration-thickness:.14em;
}
.foot-row{opacity:1}
.foot-row span{opacity:.72}
.foot-row span span{opacity:1}   /* the year sits inside the line: it was being faded twice */
.foot-row a{opacity:1;color:var(--teal)}
.dark .foot-row a{color:var(--gold-bright)}
.foot-row a:hover{color:var(--gold-bright)}

/* the stat tiles are links; say so before they are touched */
a.stat > span{text-decoration:underline;
  text-decoration-thickness:.075em;text-underline-offset:.18em;
  text-decoration-color:color-mix(in srgb, currentColor 34%, transparent);
  transition:text-decoration-color .2s var(--ease)}
a.stat:hover > span,a.stat:focus-visible > span{text-decoration-color:currentColor}
a.stat > span::after{font-variation-settings:"wght" 800, "wdth" 100}

/* the nav's hand-drawn underline is a hover flourish — on a device that
   cannot hover, show a quiet rule at rest so the items still read as links */
@media (hover:none){
  .nav > a::after,.nav-item > a::after{clip-path:inset(-30% 0% -30% 0);opacity:.4}
  .cta::after{clip-path:inset(-30% 0% -30% 0)}
  .work-link .work-arrow{color:var(--teal)}
  .next-case .next-title{color:var(--gold-bright)}
}

/* room to aim */
@media (pointer:coarse){
  .nav > a,.nav-item > a,.foot-row a,.drop a{
    min-height:44px;display:inline-flex;align-items:center;
  }
  .cta{padding-block:.12em .22em}
}

/* the work rows and next-case are whole-block links: give the block
   itself a focus ring rather than a thin outline round the text */
.work-link:focus-visible,.next-case:focus-visible,a.stat:focus-visible{
  outline:3px solid var(--teal);outline-offset:6px;
}
.dark .work-link:focus-visible,.dark a.stat:focus-visible,
.next-case:focus-visible{outline-color:var(--gold-bright)}

/* ---------- About: stickers peek over their words ----------
   Hover, focus or tap a word and a sticker of it comes up from behind it,
   has a look, and ducks back down when you leave: Zhoosh and Axel over their
   names, and Axel with his teeth out over "feisty" (Steven's own stickers,
   27 Sept). Him as a kid with his radio, over "grew up in a small Welsh
   village", is the radio sticker below (3 Oct). The peek is at least as wide as
   the word, and cut only along the bottom — behind the word — so ears and
   tilted heads are never clipped at the top or sides. */
.peeker{position:relative;display:inline-block;cursor:pointer;outline:none;white-space:nowrap;
  background:linear-gradient(transparent 56%,var(--pal-b) 56%,var(--pal-b) 94%,transparent 94%)}   /* a highlighter in the band's colour */
.dark .peeker,.dark .camroll{background:linear-gradient(transparent 56%,var(--pal-a) 56%,var(--pal-a) 94%,transparent 94%)}   /* on the band, in the page's */
/* in the dark the type is a colour, so a block behind it would fight it: a dotted line instead */
[data-theme="dark"] .peeker:not(.dark *),[data-theme="dark"] .camroll:not(.dark *){background:none;
  text-decoration:underline dotted;text-decoration-thickness:2px;text-underline-offset:.22em;text-decoration-color:var(--pal-b)}
.peeker:focus-visible{text-decoration-style:solid;outline:3px solid var(--teal);outline-offset:3px}   /* the site's own ring: a firmer underline alone was too quiet to find (11 Oct) */
.peeker .peek{position:absolute;left:50%;width:max(112%,var(--pw,7em));translate:-50% 0;bottom:72%;z-index:5;height:16em;pointer-events:none;
  clip-path:inset(-60% -40% 0 -40%)}
.peeker .peek img{position:absolute;left:0;bottom:0;width:100%;height:auto;transform-origin:50% 100%;
  filter:drop-shadow(2px 4px 5px rgba(27,25,20,.28));
  transform:translateY(104%) rotate(var(--lean,-3deg));transition:transform .5s cubic-bezier(.2,1.45,.4,1)}
.peeker:hover .peek img,.peeker:focus .peek img{transform:translateY(var(--rise,2%)) rotate(var(--lean,-3deg))}
.peek-zhoosh{--pw:10em;--lean:-2deg}     /* hers is landscape, so it needs the width */
.peek-axel{--lean:3deg;--rise:6%}              /* paws over the edge of his name */
.peek-feisty{--pw:7em;--lean:5deg;--rise:6%}
/* lifted over the masthead when it comes up under it (js/peeks.js) — the
   same sticker, the same rise, laid over everything but the phone */
.peek-lift{position:fixed;z-index:10060;pointer-events:none;clip-path:inset(-60% -40% 0 -40%)}
.peek-lift img{position:absolute;left:0;bottom:0;width:100%;height:auto;transform-origin:50% 100%;
  filter:drop-shadow(2px 4px 5px rgba(27,25,20,.28));
  transform:translateY(104%) rotate(var(--lean,-3deg));transition:transform .5s cubic-bezier(.2,1.45,.4,1)}
.peek-lift.up img{transform:translateY(var(--rise,2%)) rotate(var(--lean,-3deg))}
@media (prefers-reduced-motion:reduce){.peeker .peek img,.peek-lift img{transition:none}}

/* ---------- About: the radio sticker (js/radio-sticker.js, 3 Oct) ----------
   Rises and ducks like the stickers above, but from a class the script sets
   (.up), so it can stay up while you move onto the radio and click it. Square,
   so it sits over a longer phrase. The overlays are the script's; their
   places and amounts are in its CONFIG. Without the script it still rises
   on hover, as a plain sticker. */
.peek-radio{--pw:15em;--lean:-2deg;--rise:2%}
.peeker.peek-radio .peek{width:var(--pw)}
.radio-sticker{position:absolute;left:0;bottom:0;width:100%;aspect-ratio:1;display:block;transform-origin:50% 100%;
  filter:drop-shadow(2px 4px 5px rgba(27,25,20,.28));
  transform:translateY(104%) rotate(var(--lean,-2deg));transition:transform .5s cubic-bezier(.2,1.45,.4,1)}
.radio-sticker.up,.peek-radio:not(.radio-ready):hover .radio-sticker,.peek-radio:not(.radio-ready):focus .radio-sticker{transform:translateY(var(--rise,2%)) rotate(var(--lean,-2deg))}
.radio-sticker.up{pointer-events:auto}
.peeker.peek-radio .peek img,.peeker.peek-radio:hover .peek img,.peeker.peek-radio:focus .peek img,.radio-lift img{
  position:absolute;left:0;top:0;bottom:auto;width:100%;height:100%;transform:none;transition:none;filter:none;max-width:none}
.radio-lift{position:fixed;z-index:10060;pointer-events:none;clip-path:inset(-60% -40% 0 -40%)}
.radio-layer{position:absolute;inset:0;pointer-events:none}
.radio-layer>span{position:absolute;display:block}
/* the needle: a thin red line on a full-size layer that slides along the dial */
.radio-track{inset:0}
.radio-needle{position:absolute;display:block;min-width:1.2px;translate:-50% -50%;border-radius:1px;opacity:0;filter:blur(.3px);transition:opacity .12s}
.radio-sticker.awake .radio-needle{opacity:.92}
.radio-cover{translate:-50% -50%;filter:blur(.6px);opacity:0}
.radio-sticker.tuned .radio-cover{opacity:1}
/* the reels: the cassette's own hubs, darkened in rather than drawn on */
.radio-reel{aspect-ratio:1;translate:-50% -50%;color:#2b2d2b;opacity:0;mix-blend-mode:multiply;filter:blur(.35px);transition:opacity .3s}
.radio-reel svg{display:block;width:100%;height:100%;animation:radio-reel 1.8s linear infinite;animation-play-state:paused}
.radio-sticker.reels-on .radio-reel{opacity:.55}
.radio-sticker.playing.reels-on .radio-reel svg{animation-play-state:running}
@keyframes radio-reel{to{transform:rotate(-360deg)}}
/* the speakers: each grille cut out of a copy of the picture, breathing */
.radio-cone{overflow:hidden;border-radius:50%;-webkit-mask-image:radial-gradient(closest-side,#000 82%,transparent 100%);mask-image:radial-gradient(closest-side,#000 82%,transparent 100%)}
.peeker.peek-radio .peek .radio-cone img,.radio-lift .radio-cone img{position:absolute;width:auto;height:auto;max-width:none}
.radio-sticker.playing.cones-on .radio-cone-left img{animation:radio-cone-a .53s linear infinite}
.radio-sticker.playing.cones-on .radio-cone-right img{animation:radio-cone-b .71s linear infinite}
@keyframes radio-cone-a{0%,100%{transform:scale(1)}13%{transform:scale(calc(1 + var(--cone) * .8))}21%{transform:scale(calc(1 + var(--cone) * .25))}
  37%{transform:scale(calc(1 + var(--cone)))}44%{transform:scale(calc(1 + var(--cone) * .35))}61%{transform:scale(calc(1 + var(--cone) * .9))}
  69%{transform:scale(calc(1 + var(--cone) * .15))}83%{transform:scale(calc(1 + var(--cone) * .7))}}
@keyframes radio-cone-b{0%,100%{transform:scale(1)}9%{transform:scale(calc(1 + var(--cone) * .55))}24%{transform:scale(calc(1 + var(--cone) * .2))}
  33%{transform:scale(calc(1 + var(--cone) * .95))}52%{transform:scale(calc(1 + var(--cone) * .3))}64%{transform:scale(calc(1 + var(--cone) * .75))}
  79%{transform:scale(calc(1 + var(--cone) * .1))}88%{transform:scale(calc(1 + var(--cone) * .6))}}
/* the radio is the switch */
.radio-button{position:absolute;padding:0;margin:0;border:0;background:none;cursor:pointer;border-radius:8% / 14%;-webkit-tap-highlight-color:transparent}
.radio-button:focus-visible{outline:3px dotted var(--teal);outline-offset:-4px}
@media (prefers-reduced-motion:reduce){
  .radio-sticker{transition:none}
  .radio-sticker .radio-cone img{animation:none!important}
  .radio-reel svg{animation:none}
}

/* ---------- About: the whole camera roll (js/camera-roll.js) ----------
   His phone — an iPhone 17 Pro, deep blue — open on Photos and far, far too
   long. Drawn, not photographed, so it can stretch: the aluminium edge, the
   black glass, the island, the buttons, and the Photos app's own furniture.
   Every size on the screen is in em, and 1em is 1% of the screen's width. */
.camroll{cursor:pointer;outline:none;white-space:nowrap;background:linear-gradient(transparent 56%,var(--pal-b) 56%,var(--pal-b) 94%,transparent 94%)}
.camroll:focus-visible{text-decoration-style:solid;outline:3px solid var(--teal);outline-offset:3px}
.camphone{position:fixed;top:0;z-index:10090;pointer-events:auto;will-change:transform,height;
  border-radius:calc(var(--pw) * .165);
  background:linear-gradient(90deg,#1b2436,#3d4d68 3%,#2a3750 9%,#2a3750 91%,#3d4d68 97%,#1b2436);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.1),0 2px 3px rgba(0,0,0,.3),6px 18px 34px rgba(0,0,0,.35)}
.camphone.still{transition:opacity .2s;animation:cp-fade .2s}
@keyframes cp-fade{from{opacity:0}}
.cp-glass{position:absolute;inset:calc(var(--pw) * .022);border-radius:calc(var(--pw) * .145);background:#050506;overflow:hidden}
.cp-screen{position:absolute;inset:calc(var(--pw) * .026);border-radius:calc(var(--pw) * .12);overflow:hidden;background:#fff;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif;color:#000;letter-spacing:normal;text-transform:none;
  /* SF Pro is a variable font too, so the page's own "wght" 430 / "wdth" 96
     reached it and set Library and Select at book weight (Steven, 27 Sept:
     "the font doesn't look right"). Axes back to the font's own, so the
     weights below are Apple's: a bold large title, semibold controls. */
  font-variation-settings:normal;font-optical-sizing:auto;-webkit-font-smoothing:subpixel-antialiased}
.cp-grid{position:absolute;left:0;width:100%;height:auto;display:block}
.cp-count{position:absolute;left:0;right:0;margin:0;padding-top:1.1em;text-align:center;font-size:6.4em;font-weight:600;color:#8e8e93;line-height:1}
.cp-head{position:absolute;left:0;right:0;top:0;height:31em;background:linear-gradient(#fff 82%,rgba(255,255,255,0))}
/* Sized as Apple sizes them (Steven, 26 Nov: "they don't look genuine Apple"). The screen is
   100em across and an iPhone 17 Pro is 402pt, so 1em is about 4pt: a 54pt status bar with the
   time (17pt semibold) and the icons each centred in the space either side of the island, a
   34pt bold large title, and Select a 15pt semibold capsule 30pt tall, both 16pt in from the
   edges. They had been half as big again, with Select jammed against the edge. */
.cp-status{display:grid;grid-template-columns:1fr 31.5em 1fr;align-items:center;height:14.6em}
.cp-status b{justify-self:center;font-size:4.25em;font-weight:600;letter-spacing:-.01em}
.cp-status svg{grid-column:3;justify-self:center;width:17.5em;height:auto;color:#000}
.cp-island{position:absolute;top:2.75em;left:50%;width:31.5em;height:9.3em;margin-left:-15.75em;border-radius:9em;background:#000}
.cp-title{display:flex;align-items:center;justify-content:space-between;height:12.5em;padding:0 4em}
.cp-title b{font-size:8.45em;font-weight:700;letter-spacing:.01em;line-height:1}
.cp-select{font-size:3.75em;font-weight:600;line-height:1.2;padding:.4em .8em;border-radius:99em;background:rgba(118,118,128,.12)}
.cp-tabs{position:absolute;left:5em;right:5em;bottom:6.5em;display:flex;gap:3em;align-items:center}
.cp-pill,.cp-search{background:rgba(255,255,255,.72);-webkit-backdrop-filter:blur(6px) saturate(1.6);backdrop-filter:blur(6px) saturate(1.6);
  box-shadow:0 1px 6px rgba(0,0,0,.14),inset 0 0 0 .5px rgba(0,0,0,.06)}
.cp-pill{flex:1;display:flex;justify-content:space-around;align-items:center;height:15em;border-radius:8em;padding:0 1.5em}
.cp-pill > *{font-size:5.4em;font-weight:600;color:#000}
.cp-pill b{color:#007aff;background:rgba(0,0,0,.06);padding:.55em 1.1em;border-radius:2em}
.cp-search{width:15em;height:15em;border-radius:50%;position:relative;flex:none}
.cp-search i{position:absolute;left:4.6em;top:4.2em;width:4.8em;height:4.8em;border:1.1em solid #000;border-radius:50%}
.cp-search i::after{content:"";position:absolute;left:3.6em;top:3.6em;width:1.1em;height:3em;background:#000;border-radius:1em;transform:rotate(-45deg)}
.cp-home{position:absolute;bottom:1.6em;left:50%;width:36em;height:1.5em;margin-left:-18em;border-radius:1em;background:#000}
/* the buttons stay where a phone has them: near the top, however long it gets */
.cp-btn{position:absolute;width:calc(var(--pw) * .018);border-radius:2px;background:linear-gradient(90deg,#2a3750,#4a5b78)}
.cp-action{left:calc(var(--pw) * -.012);top:calc(var(--h0) * .18);height:calc(var(--h0) * .05)}
.cp-vol1{left:calc(var(--pw) * -.012);top:calc(var(--h0) * .265);height:calc(var(--h0) * .085)}
.cp-vol2{left:calc(var(--pw) * -.012);top:calc(var(--h0) * .365);height:calc(var(--h0) * .085)}
.cp-side{right:calc(var(--pw) * -.012);top:calc(var(--h0) * .28);height:calc(var(--h0) * .13)}
.cp-cam{right:calc(var(--pw) * -.006);top:calc(var(--h0) * .6);height:calc(var(--h0) * .07);background:linear-gradient(90deg,#2a3750,#1a2130)}

/* arrows are type, not emoji: iOS drew the LinkedIn arrow as a blue emoji tile (Steven, 1 Oct) */
a,button{font-variant-emoji:text}

/* the roles that take turns in the hero aren't fitted line by line, so on a
   phone the size is set for the longest of them ("management.") */
@media (max-width:639px){ .kinetic[data-cycle]{font-size:clamp(2.1rem,11.4vw,5rem)} }

/* On a phone a long case headline is fitted down to its longest line and came
   out no bigger than the intro under it, which is bold (Steven, 1 Oct, the
   Telly Years: "hierarchy feels odd"). The intro steps down so the headline leads. */
@media (max-width:639px){ .case-hero .dek{font-size:1.02rem;line-height:1.45;font-weight:500} }
/* the smiley that ends the hero headline was a 6px speck on a phone (1 Oct) */
@media (max-width:639px){ .kinetic .dot{width:max(.155em,15px);height:max(.155em,15px)} }

/* footer on a phone: the two links sit together on one line under the
   copyright, not one left and one right on different lines (Steven, 1 Oct) */
@media (max-width:639px){ .foot-row{justify-content:flex-start;gap:.7rem 1.6rem} .foot-row > span{flex-basis:100%} }
/* (The band used to swap in his light underline. It is a light colour with
   black type now, so his ink underline is right on it as drawn.) */
/* body copy on a phone is 17px, the iPhone's own reading size (it was 16.3) */
@media (max-width:639px){ :root{--text:1.0625rem} }

/* The Studio story on a phone: the stage was pinned under the full two-line
   masthead, which then had to stay put for the whole story and left the copy
   a third of the screen (Steven, 1 Oct). The stage pins to the top of the
   screen instead and the menu bar comes and goes over it like anywhere else. */
@media (max-width:639px){ .story-stage{top:0} }

/* The Studio story on a phone (Steven, 1 Oct): each beat's words, then its own
   picture, nothing pinned. main.js moves the stage between .story-shot slots
   and adds html.story-slots once it has. */
@media (max-width:639px){
  html.story-slots .story-stage{position:relative;top:auto;height:56svh;border:0}
  html.story-slots .story-step,html.story-slots .story-step:first-child,html.story-slots .story-step:last-child{min-height:0;padding-top:2.6rem}
  html.story-slots .story-js .story-step > div,html.story-slots .story-step > div{opacity:1}
  html.story-slots .story-shot{position:relative;height:56svh;margin:1.4rem calc(-1 * var(--page)) 0;overflow:hidden}
  html.story-slots .story-shot.live > .is-shot{display:none}
  html.story-slots .story-step:last-child{padding-bottom:2rem}
}

/* a long first paragraph is ordinary copy, not a lead (main.js): same words, the section's own body type */
.case-section .prose > p.lead-long:first-child{font-size:inherit;font-variation-settings:inherit;line-height:inherit;letter-spacing:inherit;max-width:58ch}

/* pictures and films: no long-press "Save to Photos" sheet, no dragging them off the page (1 Oct; js/main.js blocks the right-click menu) */
img,video,picture{-webkit-touch-callout:none;-webkit-user-drag:none;user-select:none;-webkit-user-select:none}


/* =====================================================================
   THE GRID (8 Oct 2026, picked by Steven: root unit, 4 | 8, bleed)

   One root unit, u, drives the columns, the gutters, the margins and every gap
   (GRID.md has the reasoning). The idea is jem's (@sheherenow_): derive the
   horizontal grid and the baseline grid from the same root. A desktop row is
   58u with 2u gutters (58 + 2 = 60, which divides by 2, 3, 4, 5, 6, 10 and
   12), so a 12-column grid is columns of 3u (12 x 3 + 11 x 2 = 58) and halves,
   thirds, quarters and sixths come out in whole units at every screen size.

     phone   < 640     4 columns   u 16px           margin 1u  gutter 1u
     tablet  640-1023  8 columns   u 1/60 of screen  margin 3u  gutter 2u
     desktop 1024+     12 columns  u 1/64 of screen  margin 3u  gutter 2u
                                   (u stops growing at 1720)

   At 1024 u is 16px, so that is the eight-point scale: 4 8 16 24 32 48 64 96 128.
   Paragraph and heading spacing stays in em, so it follows the type.
   ===================================================================== */
:root{
  --u:16px;
  --cols:4; --margin:var(--u); --gutter:var(--u);
  --frame:calc(58 * var(--u));                       /* copy never runs wider than the row */

  /* the scale, in u */
  --s1:calc(var(--u) / 4);  --s2:calc(var(--u) / 2);  --s3:var(--u);            --s4:calc(var(--u) * 1.5);
  --s5:calc(var(--u) * 2);  --s6:calc(var(--u) * 3);  --s7:calc(var(--u) * 4);  --s8:calc(var(--u) * 6);
  --s9:calc(var(--u) * 8);

  /* what the steps are for */
  --sec:var(--s7);  --sec-tight:var(--s6);            /* a section's top and bottom */
  --hero-t:var(--s4); --hero-b:var(--s4);             /* the home hero */
  --case-t:var(--s6); --case-b:var(--s5);             /* a case hero */
  --row:var(--s5);                                    /* a label | copy row */
  --list:var(--s4);                                   /* a work or CV row */
  --gap-block:var(--s5);                              /* a block to the next */

  /* where the label ends and the copy starts: 4 columns | 8 */
  --L:4; --C:8; --C1:7;
}
@media (min-width:640px){
  :root{
    --u:calc(100vw / 60);                             /* 8 columns of 5u, gutters 2u, margins 3u: 60u */
    --cols:8; --margin:calc(var(--u) * 3); --gutter:calc(var(--u) * 2);
    --sec:var(--s8); --sec-tight:var(--s7);
    --hero-t:calc(var(--u) * 2); --hero-b:var(--s4);
    --case-t:var(--s7); --case-b:var(--s6);
    --row:var(--s6); --list:var(--s5); --gap-block:var(--s6);
  }
}
@media (min-width:1024px){
  :root{--u:calc(min(100vw, 1720px) / 64); --cols:12}  /* 12 columns of 3u, gutters 2u, margins 3u: 64u */
}
:root{
  --page:var(--margin); --section:var(--sec);         /* the old names */
  /* bands run edge to edge; the copy inside stops at the row and centres */
  --edge:max(var(--margin), calc((100% - var(--frame)) / 2));
  /* the copy line: where the copy starts, from the content edge */
  --line:calc(var(--L) * ((100% - 11 * var(--gutter)) / 12 + var(--gutter)));
}

.site-header,.hero,.section,.case-hero,.case-meta,.stat-strip,.case-body,
.case-media.framed,.contact,.next-case,.story-label{padding-inline:var(--edge)}

.section{padding-block:var(--sec)}
.section.tight{padding-block:var(--sec-tight)}
.hero{padding-block:var(--hero-t) var(--hero-b)}
.case-hero{padding-block:var(--case-t) var(--case-b)}
.case-body{padding-block:var(--sec)}
.case-body + .case-body{padding-top:0}
.case-body:has(+ .case-body){padding-bottom:0}
/* two blocks in a row read as one: the second's first section takes the same rule
   as every other section (2 Dec: The Studio had no line above Working with agencies) */
.case-body + .case-body > .case-section:first-child{border-top:var(--rule)}
.case-body:has(+ .case-media.framed){padding-bottom:var(--s5)}
.case-body:has(+ figure.case-media:not(.framed)){padding-bottom:var(--s7)}
.case-media + .case-body{padding-top:var(--s7)}
.case-media.framed{padding-top:var(--s7)}
.case-section{padding-block:var(--row)}
.contact,.next-case{padding-block:var(--sec)}
.stat-strip{padding-block:var(--gap-block)}
.case-meta{padding-block:var(--s4)}
.site-header{padding-block:var(--s2)}

/* ---- a label and its copy: the label takes 4 columns, the copy 8 ---- */
.case-section,.cap-list li,.intro-grid{column-gap:var(--gutter);row-gap:var(--s3)}
@media (min-width:1024px){
  .case-section,.cap-list li,.intro-grid{grid-template-columns:repeat(12,minmax(0,1fr))}
  .case-section > :first-child,.cap-list li > :first-child,.intro-grid > :first-child{grid-column:1 / span var(--L)}
  .case-section > :nth-child(n+2),.cap-list li > :nth-child(n+2),.intro-grid > :nth-child(n+2){grid-column:span var(--C)}

  /* About: copy | portrait, 7 and 5 */
  .about-grid{grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--gutter)}
  .about-grid > :first-child{grid-column:1 / span 7}
  .about-grid > :nth-child(n+2){grid-column:span 5}

  /* the work index: title | description | arrow */
  .work-link{grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--gutter);padding-block:var(--list)}
  .work-link > .work-title{grid-column:1 / span 7}
  .work-link > .work-dekwrap{grid-column:span 4}
  .work-link > .work-arrow{grid-column:span 1;justify-self:end}

  /* the CV: when | role | + */
  .cv-item summary{grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--gutter);padding-block:var(--list)}
  .cv-item summary > .cv-when{grid-column:1 / span var(--L)}
  .cv-item summary > .cv-rolewrap{grid-column:span var(--C1)}
  .cv-item summary > .cv-toggle{grid-column:span 1;justify-self:end}
  .cv-detail{margin-left:var(--line);max-width:64ch}

  /* About's headings are the biggest labels on the site, and "LEADERSHIP" is
     7.75em wide, so they are sized until the longest word fits the label. At
     7.6 it ran past the column and its underline dropped to an empty line (17 Nov) */
  .intro-grid{container-type:inline-size}
  /* (the cqw is multiplied by --cqz, which main.js sets when Safari is zoomed: there it counted the zoom twice, 26 Nov) */
  .intro-grid > h2{font-size:min(var(--h2), calc((var(--L) * (100cqw * var(--cqz,1) - 11 * var(--gutter)) / 12 + (var(--L) - 1) * var(--gutter)) / 7.9))}
}
/* below 1024 the label sits over its copy */
@media (max-width:1023px){
  .intro-grid,.about-grid,.case-section,.cap-list li{grid-template-columns:minmax(0,1fr)}
  .intro-grid .label,.case-section > h2,.portrait{position:static}
  .case-section > h2{margin-bottom:var(--s3)}
  .work-link{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:var(--gutter);padding-block:var(--list)}
  .work-link > .work-title{grid-column:1;grid-row:1}
  .work-link > .work-arrow{grid-column:2;grid-row:1;align-self:center}
  .work-link > .work-dekwrap{grid-column:1 / 3;grid-row:2}
  .cv-item summary{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:var(--gutter);padding-block:var(--list)}
  .cv-when{grid-row:1;grid-column:1}
  .cv-rolewrap{grid-column:1}
  .cv-toggle{grid-row:1 / 3;align-self:center}
}

/* ---- modules: quarters, thirds and halves of the same row ---- */
/* the facts under a case hero: four across, three columns each */
.case-meta{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));column-gap:var(--gutter);row-gap:var(--s2)}
.case-meta > span{grid-column:1 / -1}
@media (min-width:640px){.case-meta > span{grid-column:span 4}}
@media (min-width:1024px){.case-meta > span{grid-column:span 3}}
/* each fact hangs its value off its label, so a long value wraps under itself, not
   under the label; on a phone the labels share one column so the values line up (2 Dec) */
.case-meta > span{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:baseline}
@media (max-width:639.98px){
  .case-meta{grid-template-columns:max-content minmax(0,1fr);column-gap:0}
  .case-meta > span{grid-template-columns:subgrid}
}

/* the stats: four across, three columns each (three on Telly); two a row on a tablet, one on a phone */
.stats,.stat-strip{
  display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));
  column-gap:var(--gutter);row-gap:var(--s6);
}
.stats{margin-top:var(--s6)}
.stats > .stat,.stat-strip > .stat{grid-column:span 4;flex:none;min-width:0}
.stat-strip > .strip-note{grid-column:1 / -1;max-width:none;padding-right:max(0px,calc(100% - 60ch))}
@media (min-width:1024px){
  .stats > .stat,.stat-strip > .stat{grid-column:span 3}
  .stat-strip:has(> .stat:nth-of-type(3):last-of-type) > .stat{grid-column:span 4}
}
@media (max-width:639px){
  .stats > .stat,.stat-strip > .stat{grid-column:1 / -1}
}
/* big numerals are sized to their module: "£1.56m" is 4.6em wide, so it is
   set no bigger than three columns can hold */
@media (min-width:1024px){
  .stats,.stat-strip{container-type:inline-size}
  .stat-strip .stat b{font-size:min(clamp(2rem,4.2vw,4rem), calc((3 * (100cqw * var(--cqz,1) - 11 * var(--gutter)) / 12 + 2 * var(--gutter)) / 4.6))}
  .stats .stat b{font-size:min(clamp(2.6rem,4.9vw,4.9rem), calc((3 * (100cqw * var(--cqz,1) - 11 * var(--gutter)) / 12 + 2 * var(--gutter)) / 4.6))}
  .stat-strip:has(> .stat:nth-of-type(3):last-of-type) .stat b{font-size:min(clamp(2rem,4.2vw,4rem), calc((4 * (100cqw * var(--cqz,1) - 11 * var(--gutter)) / 12 + 3 * var(--gutter)) / 4.6))}
}

/* films: a pair takes six columns each; a single film takes eight, centred
   (columns 3 to 10), which is where a reel's slides sit too, on all three
   levels. Singles alternated sides down the page from 8 Oct; on the 9th
   Steven asked about centring them instead, and on 12 Oct he settled it. */
.video-grid{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));column-gap:var(--gutter);padding-bottom:var(--gap-block)}
.vg-item{grid-column:span 4}
.video-grid.one > .vg-item{grid-column:1 / -1}
@media (min-width:1024px){
  .vg-item{grid-column:span 6}
  .video-grid.one > .vg-item{grid-column:3 / span var(--C)}
}
@media (max-width:639px){
  .vg-item{grid-column:1 / -1}
  .video-grid{row-gap:var(--s5)}
}
.case-media.framed .video-facade,.case-media.framed .video-embed{max-width:none;margin-inline:0}
.case-media.framed figcaption{margin-inline:0}
.vg-item figcaption{margin-left:0}

/* the reel is a centred module of ten columns (2 to 11), its slides eight (3 to 10),
   so the next film peeks from a column of its own */
@media (min-width:1024px){
  .reel{max-width:calc(48 * var(--u))}
  .reel-slide{flex-basis:min(100%, calc(38 * var(--u)))}
}

/* nothing may drag the page sideways. Tape, the cat peeking in on About and the sheets'
   shadows run off the screen edge on purpose, and the page's width followed them. On a phone
   or tablet <main> is as wide as the screen, so clipping it there takes them out of the page's
   width and crops nothing you can see. (Never clip at anything narrower than the screen.) */
@media (max-width:1023px){ main{overflow-x:clip} }

/* An A to Z to get in my head (a-to-z.html, Steven, 4 Nov 2026). The face is a canvas
   drawn by js/a-to-z.js in the page's ink, with the band colour for the letter and the
   highlight; the index under it is the same list to read. His subhead is in his hand. */
.az-hero .dek.hand{font-size:clamp(1.6rem,2.9vw,2.7rem);line-height:1.15;max-width:none}
.az-face{max-width:1100px;margin-inline:auto}
.az-face canvas{display:block;width:100%;color:var(--ink);touch-action:pan-y;font-variation-settings:normal}  /* the site sets wdth and wght on body; canvas text would inherit them and ignore its own */
.az-index{column-width:15rem;column-gap:var(--gutter)}
.az-blk{break-inside:avoid;margin:0 0 1.8rem}
.az-blk h2{margin:0 0 .3rem;font-weight:900;font-size:clamp(3rem,4.6vw,4rem);line-height:.85;letter-spacing:-.03em}
.az-blk ul{list-style:none;margin:0;padding:0}   /* body text size and spacing, like the rest of the site */
.az-nope{padding:1.4rem 1.5rem 1.6rem}
/* On a phone (6 Nov): the index in two columns of slightly smaller type, and a bar of
   letters that stays at the top to jump to one. The bar is hidden on bigger screens,
   where the whole index fits in a few columns. */
.az-bar{display:none}
/* His photos, taped to the page beside their entries (js/a-to-z-photos.js, 10 Nov).
   An entry with photos takes the site's highlighter, as hover words do elsewhere. */
.az-ph{cursor:pointer;outline:none;background:linear-gradient(transparent 56%,var(--pal-b) 56%,var(--pal-b) 94%,transparent 94%)}
[data-theme="dark"] .az-ph{background:none;text-decoration:underline dotted;text-decoration-thickness:2px;text-underline-offset:.22em;text-decoration-color:var(--pal-b)}
.az-ph:focus-visible{outline:3px solid var(--teal);outline-offset:3px}
/* NOPE is a panel of the second colour, so its entries are marked in the page's own colour */
.az-nope .az-ph{background:linear-gradient(transparent 56%,var(--pal-a) 56%,var(--pal-a) 94%,transparent 94%)}
[data-theme="dark"] .az-nope .az-ph{background:none;text-decoration-color:var(--pal-a)}
/* entries that link out (his Links.txt, 10 Nov): the list's own ink, a thin underline
   and a small arrow, opening in a new tab */
.az-link,[data-theme="dark"] .az-link{background:none;color:inherit;text-decoration:underline;text-decoration-style:solid;text-decoration-thickness:1px;text-underline-offset:.2em}
.az-link::after,.out-arrow{content:"";display:inline-block;width:.62em;height:.62em;margin-left:.22em;vertical-align:.02em;background:currentColor;transition:transform .15s;   /* Archivo has no ↗, so it's drawn. Every link that leaves the site wears it (.out-arrow); links that stay take his drawn arrow (17 Nov) */
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 8 8 2M3.2 2H8v4.8' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 8 8 2M3.2 2H8v4.8' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat}
.az-link:hover{text-decoration-thickness:2px}
/* 26 Nov: the nudge is a nudge of position, not a transform, which in Steven's Safari hung the page between two scroll positions while the pointer sat on an outside link or a disc */
.az-link::after,.out-arrow{position:relative;transition:top .15s,left .15s;top:0;left:0}
.az-link:hover::after,a:hover > .out-arrow{left:.08em;top:-.08em}
@media print{.out-arrow{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
/* His photos (js/a-to-z-photos.js, 11 Nov): one at a time, as supplied - no tape and no
   shadow - in a layer of their own over the page's paper and print textures. (Shadows were
   tried on 12 Nov at his request; he found them awful and asked to lose them.) */
.az-photos{position:absolute;left:0;top:0;width:0;height:0;z-index:60;pointer-events:none}
.az-photo{position:absolute}
.az-photo>img{display:block;width:100%;height:auto}
.az-photo>video{display:block;width:100%;height:auto}
/* Koh Jum's words (Steven, 12 Nov): in his hand on a sticky note, stuck over the phone's top
   corner. Vanilla, the Post-it of the four colours; wink where the page is vanilla. */
.az-sticky{position:absolute;left:-26%;top:7%;width:50%;aspect-ratio:1;box-sizing:border-box;padding:.7em .75em;
  display:flex;align-items:center;justify-content:center;text-align:center;background:var(--vanilla);color:#111;transform:rotate(-5deg);
  font-family:"Steven Hand","Bradley Hand",cursive;font-variation-settings:normal;font-weight:400;
  font-size:clamp(14px,calc(var(--w,300px) * .07),30px);line-height:1.1;-webkit-text-stroke:.02em currentColor}
[data-pal="4"] .az-sticky{background:var(--wink)}
/* ...and the Tate card's (12 Nov): the same note, stuck over the card's bottom edge, its
   height following his words */
.az-sticky.under{position:relative;left:auto;top:auto;width:82%;aspect-ratio:auto;min-height:0;margin:-12% -6% 0 auto;
  padding:.75em .8em .85em;transform:rotate(3deg);font-size:clamp(16px,calc(var(--w,300px) * .072),26px);z-index:1}

/* His list on an entry (Podcasts, 12 Nov): a scrap of paper he's written his recs on - his
   white folded stock, torn top and bottom with his tear scans, tilted a touch - beside the entry.
   The names are printed links; what he says about each is in his hand (Steven, 12 Nov: "in my
   handwriting... on torn paper"), in graphite rather than black and not thickened, so five
   recs don't weigh the scrap down (17 Nov: "something a bit lighter in feeling"). */
.az-list{position:absolute;z-index:60;width:min(25rem,calc(100vw - 32px));box-sizing:border-box;padding:1.9rem 1.4rem 2rem;
  background:url(../lab/layers/tex/fold-white-46.webp) center/cover,#fbfaf6;color:#111;rotate:-1deg;
  -webkit-mask:url(../lab/layers/tex/tear-03-t.png) top/100% 18px no-repeat,linear-gradient(#000,#000) center/100% calc(100% - 34px) no-repeat,url(../lab/layers/tex/tear-06.png) bottom/100% 18px no-repeat;
  mask:url(../lab/layers/tex/tear-03-t.png) top/100% 18px no-repeat,linear-gradient(#000,#000) center/100% calc(100% - 34px) no-repeat,url(../lab/layers/tex/tear-06.png) bottom/100% 18px no-repeat}
.az-list ul{list-style:none;margin:0;padding:0}
.az-list li+li{margin-top:.9em}
.az-list .az-link{color:#111;font-variation-settings:"wght" 700,"wdth" 96}
.az-list span{display:block;margin-top:.2em;font-family:"Steven Hand","Bradley Hand",cursive;font-variation-settings:normal;font-weight:400;
  font-size:1.12em;line-height:1.15;color:#505055}
.az-list a:focus-visible{outline:3px solid currentColor;outline-offset:2px}
.az-all{position:fixed;inset:0;pointer-events:none;z-index:60}   /* a set, all at once, over the window */
.az-rise{position:fixed;bottom:0;top:auto}                      /* Zhoosh, up from the bottom of the window */
.az-peek{position:fixed;left:0;bottom:0;top:auto;transform-origin:0 100%}   /* Axel, in at the bottom-left corner */
.az-baby{position:fixed;top:0;height:auto;z-index:60;pointer-events:none;will-change:transform}
/* his note (Notes.txt): in his hand on the polaroid's white strip */
.az-note{position:absolute;left:8%;right:8%;bottom:3.5%;height:15%;display:flex;align-items:center;justify-content:center;text-align:center;
  font-family:"Steven Hand","Bradley Hand",cursive;font-size:calc(var(--w,200px) * .075);line-height:1;color:#111;overflow:hidden}
@media (max-width:599px){
  .az-index{column-width:auto;column-count:2;column-gap:1rem}
  .az-blk{margin-bottom:1.4rem;scroll-margin-top:7.6rem}   /* room for the bar, and the header if it slides back in */
  .az-blk h2{font-size:2.6rem}
  .az-nope{padding:1rem .9rem 1.1rem}
  .az-nope h2{font-size:2rem}
  .az-blk ul{font-size:.88rem;line-height:1.4}
  .az-bar{display:flex;position:sticky;top:0;z-index:5;overflow-x:auto;scrollbar-width:none;
    margin:0 calc(-1 * var(--gutter)) 1.4rem;padding:.35rem var(--gutter);
    background:var(--paper);border-bottom:var(--rule)}
  .az-bar::-webkit-scrollbar{display:none}
  .az-bar a{flex:0 0 auto;min-width:2.4rem;padding:.3rem 0;text-align:center;font-weight:900;font-size:1.5rem;line-height:1;color:var(--ink);text-decoration:none}
}

/* Case 07, Making This Site (5 Nov): three Font Tool grabs in a row, a box that
   writes in Steven Hand, and the Playground live in a frame (a still and a link
   on phones, where the Playground's menu doesn't fit). */
/* the early routes, small (a scrapbook, not a showcase), and the iPad-to-font steps */
.route-strip > div,.font-flow > div{grid-template-columns:repeat(3,1fr)}
@media (max-width:639px){.font-flow > div{grid-template-columns:1fr}}
.route-strip img,.font-flow img{aspect-ratio:16/10;object-fit:cover;object-position:top}
.font-flow img{background:#fff}
/* his other handwriting fonts, made in the Font Tool; only the one picked loads */
@font-face{font-family:"Myfont";src:url("../assets/fonts/myfont/myfont.woff2") format("woff2"),url("../assets/fonts/myfont/myfont.otf") format("opentype");font-display:block}
@font-face{font-family:"Myfont alternate";src:url("../assets/fonts/myfont/myfont-alternate.woff2") format("woff2"),url("../assets/fonts/myfont/myfont-alternate.otf") format("opentype");font-display:block}
@font-face{font-family:"Myfont 1";src:url("../assets/fonts/myfont/myfont-1.woff2") format("woff2"),url("../assets/fonts/myfont/myfont-1.otf") format("opentype");font-display:block}
@font-face{font-family:"Myfont 2";src:url("../assets/fonts/myfont/myfont-2.woff2") format("woff2"),url("../assets/fonts/myfont/myfont-2.otf") format("opentype");font-display:block}
@font-face{font-family:"Myfont 3";src:url("../assets/fonts/myfont/myfont-3.woff2") format("woff2"),url("../assets/fonts/myfont/myfont-3.otf") format("opentype");font-display:block}
@font-face{font-family:"Myfont Graffiti";src:url("../assets/fonts/myfont/myfont-graffiti.woff2") format("woff2"),url("../assets/fonts/myfont/myfont-graffiti.otf") format("opentype");font-display:block}
@font-face{font-family:"Myfont Ink edited";src:url("../assets/fonts/myfont/myfont-ink-edited.woff2") format("woff2"),url("../assets/fonts/myfont/myfont-ink-edited.otf") format("opentype");font-display:block}
@font-face{font-family:"Myfont Pen";src:url("../assets/fonts/myfont/myfont-pen.woff2") format("woff2"),url("../assets/fonts/myfont/myfont-pen.otf") format("opentype");font-display:block}
.font-pick{display:flex;flex-wrap:wrap;gap:var(--s1,.4rem);margin-top:var(--s2)}
.font-pick input{position:absolute;opacity:0;width:1px;height:1px}
.font-pick label{font-size:var(--small);padding:.35em .8em;border:var(--rule);cursor:pointer;border-radius:999px}
.font-pick input:checked + label{background:var(--pal-a,#d5e157);color:#000;border-color:var(--pal-a,#d5e157)}
.font-pick input:focus-visible + label{outline:2px solid currentColor;outline-offset:2px}
.try-hand textarea{transition:opacity .2s}
.try-hand textarea.is-loading{opacity:.25}
.font-status{min-height:1.4em;margin-top:var(--s2)}
.try-hand{margin:var(--s5) 0}
.try-hand label{display:block;margin-bottom:var(--s2)}
.try-hand textarea{display:block;width:100%;box-sizing:border-box;resize:vertical;
  font-size:clamp(2rem,5vw,3.6rem);line-height:1.15;padding:.3em .4em;
  color:inherit;background:transparent;border:var(--rule);border-radius:0}
.try-hand textarea::placeholder{color:inherit;opacity:.45}
.play-embed .play-still img{max-height:none;object-fit:contain}
.play-live{display:block;width:100%;height:min(86vh,820px);border:var(--rule);background:#fff}
.play-still{display:none}
.play-still img{display:block;width:100%;height:auto}
@media (max-width:899px){.play-live{display:none}.play-still{display:block}}
.play-embed figcaption{font-size:var(--small)}

/* A to Z: a little CD after each entry that has one of his mixes (19 Nov) */
.az-mix{display:inline-block;width:.78em;height:.78em;margin-left:.3em;vertical-align:-.04em;border-radius:50%;
  background:radial-gradient(circle,transparent 0 13%,#1b1914 14% 19%,transparent 20%),
    conic-gradient(from 20deg,#e9e9ee,#c9f1ef,#f3d1f0,#fff6c4,#d6d9e8,#c9f1ef,#e9e9ee);
  box-shadow:inset 0 0 0 1px rgba(27,25,20,.55);transition:box-shadow .2s;
  -webkit-mask:radial-gradient(circle,transparent 0 12%,#000 13%);mask:radial-gradient(circle,transparent 0 12%,#000 13%)}
a.az-mix:hover,a.az-mix:focus-visible{box-shadow:inset 0 0 0 1px rgba(27,25,20,.55),0 0 0 2px var(--pal-a,currentColor)}
.az-mix-key{margin-top:1.2em;font-size:12px;letter-spacing:.04em}
.az-mix-key a{color:inherit;text-decoration:underline;text-underline-offset:.2em}
@media (prefers-reduced-motion:reduce){a.az-mix{transition:none}}
/* Case 07's Side quests (20 Nov): a quiet header and a picture for each thing he built */
.side-quests .sq-h{margin:2.4em 0 .7em;font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;opacity:.7}
.side-quests .sq-h:first-of-type{margin-top:0}
.side-quests .sq-shot{margin:0 0 1em}
.side-quests .sq-shot img{display:block;width:100%;height:auto;border:1px solid currentColor}
/* no filter on the Grab window: a drop-shadow filter flickered in Safari on levels 1 and 2 (20 Nov) */
.side-quests .sq-app img{width:min(100%,420px);border:0}
.side-quests .sq-app{width:min(100%,420px)}
