/* =========================================================
   BERNS: core styles (v9, Nov 2026, rebuild from scratch)
   Shared by every rebuilt page: top bar (name, live date and
   time, battery, MENU), full-screen blue menu, pixel cursor.
   Page-specific sections follow below.
   ========================================================= */
:root{
  --blue:#080CDF; --ink:#1A1A1A; --white:#FFFFFF;
  --f-scale:'scale-variable','Arial Black','Helvetica Neue',Arial,sans-serif;
  --f-head:'neue-haas-grotesk-display','Helvetica Neue',Helvetica,Arial,sans-serif;
  --f-body:'neue-haas-grotesk-text','Helvetica Neue',Helvetica,Arial,sans-serif;
  --f-mono:'Space Mono',ui-monospace,Menlo,Consolas,monospace;
  /* 1 design pixel: the layout is drawn at 1600 x 900 and scales to fit the screen */
  --u:min(calc(100vw / 1600), calc(100svh / 900));
  --hx:calc(80 * var(--u));
  --out:cubic-bezier(.22,1,.36,1);
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;overflow-x:clip}
body{overflow-x:clip}
body{background:var(--ink);color:var(--white);transition:background-color .6s var(--out),color .6s var(--out);font-family:var(--f-body);font-size:17px;line-height:1.45;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
::selection{background:var(--blue);color:var(--white)}
:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Shared type */
.scale{font-family:var(--f-scale);font-weight:900;font-variation-settings:'wdth' 125,'wght' 900;text-transform:uppercase;letter-spacing:0}
.mono{font-family:var(--f-mono);font-weight:700;text-transform:uppercase;letter-spacing:0}

/* ---------- Top bar ---------- */
.bar{position:relative;z-index:60;display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding:calc(48 * var(--u)) var(--hx) 0}
.bar-name{font-size:calc(27 * var(--u));line-height:1;white-space:nowrap}
.bar-name br{display:none}
.bar-name a{position:relative;display:block}
.bar-name .scale{display:block}
/* (ALSO KNOWN AS 'BERNS') slides in under the name on hover; on touch screens a first tap shows it (see core.js) */
.aka{position:absolute;left:0;top:100%;margin-top:calc(10 * var(--u));font-size:calc(14 * var(--u));line-height:1;white-space:nowrap;
  opacity:0;transform:translateY(calc(-6 * var(--u)));transition:opacity .2s var(--out),transform .2s var(--out)}
.bar-name a:hover .aka,.bar-name a:focus-visible .aka,.bar-name a.show .aka{opacity:1;transform:none}
@media (hover:none){.bar-name a:hover .aka,.bar-name a:focus-visible .aka{opacity:0}.bar-name a.show .aka{opacity:1;transform:none}}
.bar-right{display:flex;align-items:center;gap:calc(26 * var(--u));padding-top:0}
.bar-clock{font-size:calc(21 * var(--u));line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums}
.bar-batt{display:block;width:calc(34 * var(--u));height:calc(17 * var(--u))}
.bar-batt[hidden]{display:none}
.bar-batt svg{display:block;width:100%;height:100%;overflow:visible}
.bar-batt .bolt{display:none}
.bar-batt.charging .bolt{display:block}
/* MENU sits one step up from the clock: same cap line, a touch bigger, Scale against mono */
.bar-menu{display:flex;align-items:center;gap:.4em;font-size:calc(27 * var(--u));line-height:1;padding:0}
/* Plus that turns into a minus when the menu opens: two bars, the upright one turns flat */
.pm{position:relative;display:block;width:.66em;height:.66em;flex:none}
.pm::before,.pm::after{content:'';position:absolute;left:0;top:50%;width:100%;height:max(2px,.18em);transform:translateY(-50%);background:currentColor}
.pm::after{transform:translateY(-50%) rotate(90deg);transition:transform .2s var(--out)}
html.menu-open .pm::after{transform:translateY(-50%) rotate(0deg)}

/* ---------- Full-screen menu ---------- */
.menu{position:fixed;inset:0;z-index:50;background:var(--blue);color:var(--white);display:flex;align-items:flex-end;
  padding:0 var(--hx) calc(56 * var(--u));visibility:hidden;clip-path:inset(0 0 100% 0);
  transition:clip-path .25s var(--out),visibility 0s linear .25s}
html.menu-open .menu{visibility:visible;clip-path:inset(0);transition:clip-path .25s var(--out)}
html.menu-open,html.menu-open body{overflow:hidden}
.menu ol{list-style:none;width:100%}
.menu li{opacity:0;transform:translateY(14px);transition:opacity .2s var(--out),transform .2s var(--out)}
html.menu-open .menu li{opacity:1;transform:none}
html.menu-open .menu li:nth-child(2){transition-delay:.03s}
html.menu-open .menu li:nth-child(3){transition-delay:.06s}
html.menu-open .menu li:nth-child(4){transition-delay:.09s}
html.menu-open .menu li:nth-child(5){transition-delay:.12s}
.menu a{display:flex;align-items:flex-start;gap:calc(18 * var(--u));font-size:min(calc(68 * var(--u)),8vw);line-height:.92;padding:.04em 0}
.menu .t{text-decoration-line:underline;text-decoration-color:transparent;text-decoration-thickness:.07em;text-underline-offset:.08em;transition:text-decoration-color .15s var(--out)}
.menu a:hover .t,.menu a:focus-visible .t,.menu a[aria-current] .t{text-decoration-color:currentColor}
.menu .n{font-size:max(11px,calc(18 * var(--u)));line-height:1;padding-top:.3em}

/* ---------- Pixel cursor (classic set, 75% of the old size) ---------- */
.cur{position:fixed;left:0;top:0;z-index:100;pointer-events:none;opacity:0;will-change:transform}
html.cur-on .cur{opacity:1}
.cur img{position:absolute;display:none;max-width:none;image-rendering:pixelated}
.cur[data-k="arrow"] .cur-arrow,.cur[data-k="pointer"] .cur-pointer,.cur[data-k="wait"] .cur-wait{display:block}
html.cur-hide-native,html.cur-hide-native *{cursor:none!important}

/* =========================================================
   Home
   ========================================================= */
body.home{min-height:100vh;min-height:100svh;display:grid;grid-template-rows:auto 1fr auto}
.home-photo{display:grid;place-items:center;padding:calc(24 * var(--u)) 0}
.photo{--a:0deg;--x:0px;--y:0px;position:relative;z-index:10;width:calc(272 * var(--u));aspect-ratio:272/316;background:var(--white);padding:calc(7 * var(--u));
  transform:translate(var(--x),var(--y)) rotate(var(--a));touch-action:none;user-select:none;-webkit-user-select:none}
.photo.settle{transition:transform .25s var(--out)}
.photo img{width:100%;height:100%;object-fit:cover;object-position:50% 30%;pointer-events:none;-webkit-user-drag:none}
.home-foot{padding:0 var(--hx) calc(48 * var(--u))}
.home-line{font-family:var(--f-head);font-weight:700;font-size:calc(76 * var(--u));line-height:.88;letter-spacing:-.022em}
.home-line .br-m{display:none}
/* Typewriter role: the box keeps the tallest the line ever gets, text sits at its foot so nothing jumps */
.home-say{display:flex;align-items:flex-end}
.hl-type{white-space:nowrap}
.caret{display:inline-block;width:.06em;height:.78em;margin-left:.05em;vertical-align:-.04em;background:currentColor;animation:caret 1s steps(1) infinite}
.hl-type.typing .caret{animation:none}
@keyframes caret{50%{opacity:0}}
.hl{background:var(--blue);padding:0 .06em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.home-more{display:inline-block;margin-top:calc(34 * var(--u));font-size:calc(28 * var(--u));line-height:1;
  text-decoration:underline;text-decoration-thickness:.09em;text-underline-offset:.16em;transition:background-color .15s var(--out)}
.home-more:hover,.home-more:focus-visible{background:var(--blue)}

/* Phones and narrow screens: name gets its own row, sizes follow the width */
@media (max-width:760px){
  :root{--u:calc(100vw / 600);--hx:20px}
  /* One row: name on the left, time, battery and MENU on the right */
  /* Phones, every page: name on one line at MENU's size, both on the same top line */
  .bar,body.scroll .bar{align-items:flex-start;gap:10px;padding:18px 20px 14px}
  .bar-right{gap:9px;padding:0}
  .bar-clock{font-size:min(2.7vw,12px);line-height:1}
  .bar-batt{width:19px;height:10px}
  .bar-menu,body.scroll .bar-menu{font-size:min(3.2vw,15px);line-height:1;padding:0;gap:.35em}
  .bar-name,body.scroll .bar-name{font-size:min(3.2vw,15px);line-height:1;white-space:nowrap}
  .bar-name br{display:none}
  .aka{font-size:10px;margin-top:8px}
  .clock-date{display:none}
  .photo{width:min(56vw,34svh)}
  /* "A designer and presenter" fills the first line on its own, so the two highlights never stack */
  .home-line{font-size:calc((100vw - 40px) / 12.9);line-height:1.14}
  .home-line .br-d{display:none}
  .home-line .br-m{display:inline}
  .home-foot{padding-bottom:28px}
  .home-more{font-size:15px;margin-top:20px}
  .menu{padding-bottom:28px}
  .menu a{font-size:9.5vw}
  .menu .n{font-size:11px}
}

@media (prefers-reduced-motion:reduce){
  .menu,html.menu-open .menu,.menu li,.photo.settle,.pm::after{transition:none}
  .caret{display:none}
  .hosted{animation:none;flex-wrap:wrap;width:auto;row-gap:24px}
  .hosted [aria-hidden="true"]{display:none}
  .menu li{transform:none}
}

/* =========================================================
   Scrolling pages (About): grounds, reveals, chapters
   Each chapter sets data-ground (ink or white; About is black and white only). As it takes the
   middle of the screen, the whole page eases to that colour.
   ========================================================= */
html{--ground:var(--ink)}
html[data-ground="white"]{--ground:var(--white)}
html[data-ground="blue"]{--ground:var(--blue)}
html[data-ground="white"] body{background:var(--white);color:var(--ink)}
html[data-ground="blue"] body{background:var(--blue);color:var(--white)}
html.menu-open .bar,html.menu-open .bar-right{color:var(--white)}
html[data-ground="white"] .hl{color:var(--white)}

/* Long pages: the whole bar stays with you (name, clock, battery, MENU). The name drops to one line at
   MENU's size and both sit on the same top line. Once you scroll it gets a solid band in the page colour. */
body.scroll .bar{position:fixed;top:0;left:0;right:0;padding:calc(48 * var(--u)) var(--hx) calc(22 * var(--u));background:transparent;transition:background-color .6s var(--out)}
html.scrolled body.scroll .bar{background:var(--ground)}
html.menu-open body.scroll .bar{background:transparent}
body.scroll .bar-name{font-size:calc(27 * var(--u));line-height:1;white-space:nowrap}
body.scroll .bar-name br{display:none}
body.scroll .bar-right{padding-top:0}
body.scroll .bar-menu{line-height:1;padding:0}

/* Menu open: the name drops to the same one-line size it has in the header on every other page */
html.menu-open .bar-name{font-size:calc(27 * var(--u));line-height:1;white-space:nowrap}
html.menu-open .bar-name br,html.menu-open .aka{display:none}
html.menu-open .bar-right{padding-top:0}

/* Fade up into place as it comes on screen */
[data-reveal]{opacity:0;transform:translateY(28px);transition:opacity .9s var(--out),transform .9s var(--out)}
[data-reveal].in{opacity:1;transform:none}
[data-reveal="2"]{transition-delay:.12s}
[data-reveal="3"]{transition-delay:.24s}
[data-reveal="4"]{transition-delay:.36s}

/* Opening scene: pinned while you scroll. The greeting fades in, then gives way to the one-line bio, word by word. */
.hello{position:relative;height:280vh;height:280svh}
.hello-pin{position:sticky;top:0;height:100vh;height:100svh;display:grid;place-items:center;padding:0 var(--hx);overflow:hidden}
.hello-greet,.hello-say{grid-area:1/1;text-align:center}
.hello-greet{transform:scale(calc(1 - var(--g, 0) * .08));opacity:calc(1 - var(--g, 0))}
.hello-greet span{display:block;opacity:0;transform:translateY(24px);animation:rise .9s var(--out) forwards}
.hello-greet .g1{font-family:var(--f-head);font-weight:700;font-size:calc(64 * var(--u));line-height:1;letter-spacing:-.02em;animation-delay:.25s}
.hello-greet .g2{font-size:calc(150 * var(--u));line-height:.9;margin-top:calc(18 * var(--u));animation-delay:.85s}
.hello-say{max-width:21ch;font-family:var(--f-head);font-weight:700;font-size:calc(70 * var(--u));line-height:1;letter-spacing:-.022em}
.hello-say .w{opacity:0;transition:opacity .35s var(--out)}
.hello-say .w.on{opacity:1}
.hello-cue{position:absolute;left:50%;bottom:calc(44 * var(--u));transform:translateX(-50%);font-size:calc(16 * var(--u));opacity:0;animation:cue .9s var(--out) 1.6s forwards}
.hello.past .hello-cue{visibility:hidden}
@keyframes rise{to{opacity:1;transform:none}}
@keyframes cue{to{opacity:1}}

/* Chapters */
.chap{position:relative;min-height:100vh;min-height:100svh;padding:calc(180 * var(--u)) var(--hx) calc(200 * var(--u))}
.chap-n{display:block;font-size:calc(18 * var(--u));line-height:1;margin-bottom:calc(28 * var(--u))}
.chap-title{font-size:min(8.4vw,calc(160 * var(--u)));line-height:.86}
.chap-title[data-reveal]{transform:translateY(40px) scale(.94);transform-origin:0 100%}
.chap-title[data-reveal].in{transform:none}
.chap-lede{max-width:24ch;margin-top:calc(56 * var(--u));font-family:var(--f-head);font-weight:700;font-size:calc(52 * var(--u));line-height:1.02;letter-spacing:-.02em}
.chap-body{max-width:46ch;margin-top:calc(32 * var(--u));font-size:calc(21 * var(--u));line-height:1.5}

/* Design: The Guardian and Berns Studios, logos only, no boxes */
.marks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:calc(48 * var(--u));max-width:calc(900 * var(--u));margin-top:calc(96 * var(--u))}
.mark{display:flex;flex-direction:column;gap:calc(10 * var(--u))}
.mark-logo{height:calc(64 * var(--u));display:flex;align-items:flex-end;margin-bottom:calc(22 * var(--u))}
.mark-logo svg{display:block;height:100%;width:auto;max-width:100%}
.mark-logo--bs .wm{font-size:calc(33 * var(--u))}
.mark-role{font-family:var(--f-head);font-weight:700;font-size:calc(34 * var(--u));line-height:1;letter-spacing:-.02em}
.mark-meta{font-size:calc(16 * var(--u));line-height:1.3}
a.mark .mark-role{text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:.06em;text-underline-offset:.14em;transition:text-decoration-color .2s var(--out)}
a.mark:hover .mark-role,a.mark:focus-visible .mark-role{text-decoration-color:currentColor}
.go{display:inline-flex;align-items:center;gap:.5em}
.go::after{content:'\2192';font-family:var(--f-body);font-weight:700;transition:transform .2s var(--out)}
a:hover .go::after,a.go:hover::after{transform:translateX(4px)}

/* Presenting: a strip of the logos he has hosted for, as proof without a list */
.hosted-n{margin-top:calc(96 * var(--u));font-size:calc(16 * var(--u));line-height:1}
/* Logos run past in a slow, endless line (the set is doubled in core.js and slides by half). Hover pauses it. */
.hosted-wrap{margin-top:calc(32 * var(--u));padding-top:calc(32 * var(--u));border-top:1px solid currentColor;overflow:hidden}
.hosted{list-style:none;display:flex;flex-wrap:nowrap;align-items:center;width:max-content;animation:marquee var(--dur,28s) linear infinite}
.hosted-wrap:hover .hosted{animation-play-state:paused}
.hosted li{display:flex;flex:none;padding-right:calc(96 * var(--u))}
@keyframes marquee{to{transform:translateX(-50%)}}
.hosted li .mono{font-size:calc(13 * var(--u));line-height:1}
.hosted-logo{display:flex;align-items:flex-end;height:calc(64 * var(--u))}
.hosted-logo svg{display:block;height:100%;width:auto}
.hosted-logo--sq svg{height:calc(72 * var(--u))}
.hosted-logo--wide svg{height:calc(28 * var(--u))}
.hosted-logo--va svg{height:calc(96 * var(--u));margin:calc(-16 * var(--u)) 0}

/* Logo slots: dashed box with the name until the real artwork lands. Swap the inner text for an inline SVG. */
.slot{display:inline-flex;align-items:center;justify-content:center;height:100%;min-width:calc(170 * var(--u));padding:0 calc(16 * var(--u));
  border:1px dashed currentColor;border-radius:8px;font-size:calc(13 * var(--u));line-height:1.2;text-align:center}

.btns{display:flex;flex-wrap:wrap;gap:calc(14 * var(--u));margin-top:calc(56 * var(--u))}
.btn{display:inline-flex;align-items:center;gap:.5em;padding:calc(18 * var(--u)) calc(28 * var(--u));border:1px solid currentColor;border-radius:999px;
  font-size:calc(17 * var(--u));line-height:1;transition:background-color .2s var(--out),color .2s var(--out),border-color .2s var(--out)}
.btn:hover,.btn:focus-visible{background:var(--white);color:var(--ink);border-color:var(--white)}
html[data-ground="white"] .btn:hover,html[data-ground="white"] .btn:focus-visible{background:var(--ink);color:var(--white);border-color:var(--ink)}

/* Community: one row each. Logo in a fixed column (so all three line up), then role, line and link beside it.
   The logos carry the names (aria-label), so there are no titles. */
.groups{list-style:none;margin-top:calc(96 * var(--u));border-top:1px solid currentColor}
.groups li{border-bottom:1px solid currentColor}
.group{display:grid;grid-template-columns:calc(196 * var(--u)) minmax(0,1fr);align-items:center;gap:calc(48 * var(--u));padding:calc(32 * var(--u)) 0}
/* logos share one centre line, so the narrow Track + Play mark sits under the middle of BULLY THE ROADS */
.group-logo{display:flex;align-items:center;justify-content:center;height:calc(96 * var(--u))}
.group-logo svg{display:block;height:100%;width:auto;max-width:100%}
.group-logo--btr svg{height:calc(84 * var(--u))}
.group-logo--rot svg{height:auto;width:100%}
.group-text{display:flex;flex-direction:column;align-items:flex-start;gap:calc(8 * var(--u))}
.group-role{font-size:calc(15 * var(--u));line-height:1}
.group-line{font-family:var(--f-head);font-weight:700;font-size:calc(30 * var(--u));line-height:1.1;letter-spacing:-.015em}
.group .go{font-size:calc(14 * var(--u));line-height:1;margin-top:calc(6 * var(--u))}
.group:hover .group-line,.group:focus-visible .group-line{text-decoration:underline;text-decoration-thickness:.06em;text-underline-offset:.14em}

/* Prints open every chapter: picture first, then you read into it.
   Berns's portrait stays a portrait; the other photos keep their own shape. No rotation anywhere. */
.prints{display:flex;flex-wrap:wrap;align-items:flex-end;gap:calc(32 * var(--u));margin-bottom:calc(96 * var(--u))}
.chap .photo{position:relative}
.chap .photo--portrait{width:calc(340 * var(--u))}
.chap .photo--host{width:calc(720 * var(--u));aspect-ratio:1400/935}
.chap .photo--btr{width:calc(520 * var(--u));aspect-ratio:1400/1120}
.chap .photo--tp{width:calc(554 * var(--u));aspect-ratio:1400/1050}
.chap .photo img{object-position:50% 40%}

/* Desktop (Berns's call, Nov 2026): the same journey as phones. Picture first, then everything under it,
   centred on one axis. Every picture is shown whole at its own shape, inside one shared box
   (760 wide, 58% of the screen tall), so portrait and landscape carry the same weight. */
@media (min-width:761px){
  .chap{text-align:center}
  .chap-title[data-reveal]{transform-origin:50% 100%}
  .prints{justify-content:center;margin-bottom:calc(88 * var(--u))}
  .chap > .prints .photo{--r:272/316;height:auto;aspect-ratio:var(--r);width:min(calc(760 * var(--u)), calc(58vh * var(--r)))}
  .chap > .prints .photo--host{--r:1400/935}
  .chap > .prints .photo--btr{--r:1400/1120}
  .chap > .prints .photo--tp{--r:1400/1050}
  .chap > .prints .photo img{object-position:50% 50%}
  .chap-lede{margin-left:auto;margin-right:auto;max-width:22ch}
  .chap-body{margin-left:auto;margin-right:auto}
  .marks{margin-left:auto;margin-right:auto;max-width:calc(820 * var(--u))}
  .mark{align-items:center}
  .mark-logo{justify-content:center}
  .btns{justify-content:center}
  .groups{max-width:calc(900 * var(--u));margin-left:auto;margin-right:auto;text-align:left}
  .close{align-items:center;text-align:center}
  .close-title{margin:0 auto}
  .chap.close .close-mail{align-self:center}
  .chap.close{align-items:center}
}
.photo .ph{display:grid;place-items:center;width:100%;height:100%;background:#F1F2F3;color:var(--ink);font-size:calc(13 * var(--u));text-align:center;padding:12px}
/* Print frame follows its chapter: black on white pages, white on ink */
.chap[data-ground="white"] .photo{background:var(--ink)}

/* Close */
.close{display:flex;flex-direction:column;justify-content:center}
.close-title{font-size:min(8.6vw,calc(150 * var(--u)));line-height:.88;max-width:12ch}
.close-mail{display:inline-block;margin-top:calc(56 * var(--u));font-family:var(--f-head);font-weight:700;font-size:calc(52 * var(--u));line-height:1;letter-spacing:-.02em;
  text-decoration:underline;text-decoration-thickness:.06em;text-underline-offset:.14em;align-self:flex-start;transition:background-color .15s var(--out)}
.close-mail:hover,.close-mail:focus-visible{background:var(--blue)}
.foot{display:flex;justify-content:space-between;gap:16px;padding:0 var(--hx) calc(40 * var(--u));font-size:calc(14 * var(--u))}

/* =========================================================
   Shared controls: chips, mono switches, captions, round arrows
   (Work, Shop, Print page, Surprise)
   ========================================================= */
.chip{display:inline-flex;align-items:center;gap:.6em;font-size:calc(14 * var(--u));line-height:1;padding:.7em 1.1em;border:1px solid currentColor;border-radius:999px}
.chip:hover{background:var(--white);color:var(--ink)}
.chip[hidden]{display:none}
.views{display:flex;align-items:center;gap:calc(22 * var(--u));font-size:calc(15 * var(--u));line-height:1}
.views button{padding:4px 0;border-bottom:1px solid transparent}
.views button[aria-pressed="true"]{border-bottom-color:currentColor}
.views .chip{padding:.7em 1.1em;border:1px solid currentColor}
.stage{position:relative;min-height:0;perspective:calc(1800 * var(--u));touch-action:pan-y;user-select:none;-webkit-user-select:none}
.empty{position:absolute;inset:0;display:grid;place-items:center;font-size:14px}
.cap-name{font-family:var(--f-head);font-weight:700;font-size:calc(36 * var(--u));line-height:1;letter-spacing:-.02em}
.cap-meta{margin-top:calc(10 * var(--u));font-size:calc(14 * var(--u));line-height:1.2}
.cap-side{display:flex;flex-direction:column;align-items:flex-end;gap:calc(10 * var(--u));font-size:calc(14 * var(--u));line-height:1}
.cap-link:hover{text-decoration:underline}
.nav-arrow{width:calc(56 * var(--u));height:calc(56 * var(--u));border:1px solid currentColor;border-radius:50%;font-size:calc(18 * var(--u));line-height:1;
  transition:background-color .2s var(--out),color .2s var(--out)}
.nav-arrow:hover{background:var(--white);color:var(--ink)}
@media (max-width:760px){
  .chip{font-size:11px;flex:none}
  .views{font-size:11px;gap:16px}
  .cap-name{font-size:22px}
  .cap-meta{font-size:11px;margin-top:8px}
  .cap-side{font-size:11px;gap:8px}
}

/* =========================================================
   Work: the file stack (Nov 2026, after Berns's "Hello / Recent files" reference).
   Every project is a file in its own colour, newest first. Each title peeks out above the
   next file; one file is open (the work, one line, Read the case study). On desktop a file
   lifts out of the pile as you hover it; tap pulls a file open; tap again reads it.
   Sizes: --peek is how much of each file shows, --tail how much the next file covers.
   ========================================================= */
.wk{padding:calc(172 * var(--u)) var(--hx) calc(120 * var(--u))}
.wk-title{font-size:min(19vw,calc(236 * var(--u)));line-height:.8;margin-left:-.03em}
.wk-head{padding-bottom:calc(40 * var(--u));border-bottom:1px solid currentColor}
.wk-label{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:calc(36 * var(--u)) 0 calc(30 * var(--u))}
.wk-tools{flex:none;white-space:nowrap;display:flex;align-items:center;gap:calc(28 * var(--u));font-size:calc(14 * var(--u));line-height:1}
/* Filter: one button, a dropdown with both groups. White sheet on ink, no shadow. */
.flt{position:relative}
.flt-btn{display:inline-flex;align-items:center;gap:.7em;padding:calc(14 * var(--u)) calc(20 * var(--u));border:1px solid currentColor;border-radius:999px;transition:background-color .2s var(--out),color .2s var(--out)}
.flt-btn:hover,.flt.on .flt-btn{background:var(--white);color:var(--ink)}
.flt-btn .pm{width:.8em;height:.8em}
.flt-btn .pm::before,.flt-btn .pm::after{height:1px}
.flt.on .pm::after{transform:translateY(-50%) rotate(0deg)}
.flt-panel{position:absolute;right:0;top:calc(100% + 10px);z-index:20;width:max(280px,calc(340 * var(--u)));padding:calc(10 * var(--u)) calc(24 * var(--u)) calc(20 * var(--u));background:var(--white);color:var(--ink);border-radius:16px;
  animation:flt-in .25s var(--out)}
.flt-panel[hidden]{display:none}
@keyframes flt-in{from{opacity:0;transform:translateY(-6px)}}
.flt-g{display:flex;flex-direction:column;padding:calc(14 * var(--u)) 0}
.flt-g + .flt-g{border-top:1px solid #E8E9EA}
.flt-clear:not([hidden]){display:inline-block;border-top:0}
.flt-l{font-size:calc(12 * var(--u));line-height:1;margin-bottom:calc(10 * var(--u))}
.flt-o{display:flex;align-items:center;gap:12px;width:100%;padding:9px 0;text-align:left;font-family:var(--f-head);font-weight:700;font-size:calc(24 * var(--u));line-height:1.1;letter-spacing:-.015em;text-transform:none}
.flt-box{flex:none;width:14px;height:14px;border:1px solid currentColor;border-radius:4px;transition:background-color .15s var(--out),border-color .15s var(--out)}
.flt-o:hover .flt-box{background:#E8E9EA}
.flt-o[aria-pressed="true"] .flt-box{background:var(--blue);border-color:var(--blue)}
.flt-clear{margin-top:calc(16 * var(--u));padding:.3em 0;border-bottom:1px solid currentColor}
.flt-clear[hidden]{display:none}
.wk-h{font-family:var(--f-head);font-weight:700;font-size:calc(40 * var(--u));line-height:1;letter-spacing:-.02em}
.wk-count{font-weight:400}
.wk-all{font-size:calc(14 * var(--u));line-height:1;padding:.3em 0;border-bottom:1px solid currentColor;transition:background-color .15s var(--out)}
.wk-all:hover,.wk-all:focus-visible{background:var(--blue);color:var(--white)}
.wk-empty{display:flex;flex-wrap:wrap;align-items:baseline;gap:12px 24px;padding:calc(64 * var(--u)) 0;font-family:var(--f-head);font-weight:700;font-size:calc(36 * var(--u));line-height:1;letter-spacing:-.02em}
.wk-empty[hidden]{display:none}
.wk-empty button{font-size:calc(14 * var(--u));line-height:1;padding:.3em 0;border-bottom:1px solid currentColor}

.stack:not(.wm){--peek:calc(128 * var(--u));--tail:calc(64 * var(--u));--pad:calc(36 * var(--u));--rad:24px;list-style:none;position:relative;padding-bottom:calc(48 * var(--u))}
.file{position:relative}
.file + .file{margin-top:calc(-1 * var(--tail))}
.file-a{position:relative;display:flex;flex-direction:column;background:var(--bg);color:var(--fg);border-radius:var(--rad);
  transition:transform .55s var(--out);-webkit-user-drag:none;-webkit-tap-highlight-color:transparent}
.file-a:focus-visible{outline-offset:-6px}
.file-head{display:flex;align-items:flex-start;justify-content:space-between;gap:calc(32 * var(--u));height:var(--peek);padding:calc(28 * var(--u)) var(--pad) 0}
.file-title{min-width:0;font-family:var(--f-head);font-weight:700;font-size:calc(78 * var(--u));line-height:.92;letter-spacing:-.03em}
.file-side{flex:none;display:flex;gap:calc(28 * var(--u));padding-top:calc(10 * var(--u));font-size:calc(13 * var(--u));line-height:1;white-space:nowrap}
/* open and close: the file's body grows from nothing to its full height */
.file-body{display:grid;grid-template-rows:0fr;transition:grid-template-rows .75s var(--out)}
.file.open .file-body{grid-template-rows:1fr}
.file-in{min-height:0;overflow:hidden}
.file-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:calc(48 * var(--u));padding:calc(4 * var(--u)) var(--pad) calc(40 * var(--u));
  opacity:0;transform:translateY(calc(28 * var(--u)));transition:opacity .3s var(--out),transform .75s var(--out)}
.file.open .file-grid{opacity:1;transform:none;transition:opacity .7s var(--out) .12s,transform .8s var(--out)}
.file-media{grid-column:2;grid-row:1;position:relative;display:block;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:rgba(26,26,26,.2)}
.file-media img,.file-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;transition:transform .9s var(--out)}
.file-text{grid-column:1;grid-row:1;display:flex;flex-direction:column;justify-content:space-between;gap:calc(32 * var(--u))}
.file-sum{font-family:var(--f-head);font-weight:700;font-size:calc(34 * var(--u));line-height:1.06;letter-spacing:-.018em;max-width:20ch}
.file-foot{display:flex;flex-direction:column;align-items:flex-start;gap:calc(16 * var(--u))}
.file-meta{font-size:calc(13 * var(--u));line-height:1.3}
.file-go{display:inline-block;font-size:calc(14 * var(--u));line-height:1;padding:calc(16 * var(--u)) calc(24 * var(--u));border:1px solid currentColor;border-radius:999px;
  transition:background-color .2s var(--out),color .2s var(--out)}
.file.open .file-a:hover .file-go{background:var(--fg);color:var(--bg)}
.file.open .file-a:hover .file-media img,.file.open .file-a:hover .file-media video{transform:scale(1.03)}
.file-tail{display:block;height:var(--tail);padding:0 var(--pad);overflow:hidden}
.file-peek{display:block;padding-top:calc(4 * var(--u));max-width:70ch;font-size:calc(13 * var(--u));line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  opacity:0;transition:opacity .3s var(--out)}
.file:last-child:not(.open) .file-peek{opacity:1}
.stack.all .file-peek{display:none}
/* Desktop: hover lifts a file out of the pile and the files in front step down, showing its line */
@media (hover:hover) and (pointer:fine){
  .file:not(.open):hover .file-a{transform:translateY(calc(-12 * var(--u)))}
  .file:not(.open):hover ~ .file .file-a{transform:translateY(calc(44 * var(--u)))}
  .file:not(.open):hover .file-peek{opacity:1;transition-delay:.1s}
}
/* Phones: a file lifts a touch under your finger */
@media (hover:none),(pointer:coarse){
  .file:not(.open) .file-a:active{transform:translateY(-6px)}
}
/* Arrival: the files sweep up into the pile one after another */
.stack.in .file{animation:file-in .9s var(--out) both;animation-delay:calc(var(--i) * 55ms + 60ms)}
@keyframes file-in{from{opacity:0;transform:translateY(calc(80 * var(--u)))}}

@media (max-width:760px){
  .wk{padding:96px 20px 56px}
  .wk-title{font-size:19.5vw}
  .wk-head{padding-bottom:20px}
  .wk-label{margin:20px 0 16px}
  .wk-tools{gap:14px;font-size:11px}
  .wk-h{min-width:0;white-space:nowrap}
  .flt{position:static}
  .wk-label{position:relative}
  .flt-btn{padding:10px 14px}
  .flt-panel{left:0;right:0;width:auto;padding:6px 20px 16px}
  .flt-l{font-size:11px}
  .flt-o{font-size:20px}
  .wk-h{font-size:22px}
  .wk-all{font-size:11px}
  .wk-empty{font-size:22px;padding:40px 0}
  .wk-empty button{font-size:11px}
  .stack:not(.wm){--peek:62px;--tail:40px;--pad:18px;--rad:16px;padding-bottom:24px}
  .file-head{padding-top:17px;gap:12px}
  .file-title{font-size:30px;line-height:.95}
  .file-side{padding-top:3px;font-size:10px}
  .file-disc{display:none}
  .file-grid{grid-template-columns:minmax(0,1fr);gap:16px;padding:2px var(--pad) 22px}
  .file-media,.file-text{grid-column:1;grid-row:auto}
  .file-media{border-radius:10px}
  .file-text{gap:18px}
  .file-sum{font-size:20px;line-height:1.1}
  .file-foot{flex-direction:row;justify-content:space-between;align-items:center;gap:12px}
  .file-meta{font-size:10px}
  .file-go{font-size:11px;padding:12px 16px;flex:none}
  .file-peek{display:none}
}

/* Phones: one clear type scale, everything centred.
   Label 12 mono / title (Scale) / lede 24 / body 16 / item name 22 / meta 11 mono */
@media (max-width:760px){
  body.scroll .bar{padding:18px 20px 14px}
  body.scroll .bar-name,body.scroll .bar-menu{font-size:min(3.2vw,15px)}
  .hello-greet .g1{font-size:24px}
  .hello-greet .g2{font-size:15vw}
  .hello-say{font-size:24px;line-height:1.12;max-width:16ch}
  .hello-cue{font-size:11px;bottom:28px}
  .chap{padding:96px 20px 104px;text-align:center}
  .chap-n{font-size:12px;margin-bottom:14px}
  .chap-title{font-size:9.3vw;transform-origin:50% 100%}
  .chap-lede{font-size:24px;line-height:1.12;margin:24px auto 0;max-width:17ch}
  .chap-body{font-size:16px;line-height:1.5;margin:16px auto 0;max-width:32ch}
  .marks{grid-template-columns:minmax(0,1fr);gap:48px;margin-top:56px;max-width:none}
  .mark{align-items:center;gap:6px}
  .mark-logo{height:44px;margin-bottom:14px;justify-content:center}
  .mark-logo--bs .wm{font-size:25px}
  .mark-role{font-size:22px}
  .mark-meta,.hosted li .mono,.hosted-n{font-size:11px}
  .groups{margin-top:48px;text-align:left}
  .group{grid-template-columns:96px minmax(0,1fr);gap:20px;padding:22px 0}
  .group-logo{height:56px}
  .group-logo--btr svg{height:44px}
  .group-logo--rot svg{height:auto;width:100%}
  .group-role,.group .go{font-size:11px}
  .group-line{font-size:18px}
  .hosted-n{margin-top:56px}
  .hosted-wrap{margin-top:16px;padding-top:28px}
  .hosted li{padding-right:56px}
  .hosted-logo{height:40px}
  .hosted-logo--sq svg{height:46px}
  .hosted-logo--wide svg{height:18px}
  .hosted-logo--va svg{height:62px;margin:-10px 0}
  .btns{justify-content:center;gap:10px;margin-top:36px}
  .btn{font-size:12px;padding:14px 20px}
  .prints{flex-direction:column;align-items:center;gap:16px;margin-bottom:48px}
  .chap .photo--portrait{width:min(66vw,260px)}
  .chap .photo--host,.chap .photo--btr{width:100%}
  .chap .photo{transform:none;touch-action:auto}
  .photo .ph{font-size:11px}
  .close{align-items:center}
  .close-title{font-size:11vw;margin:0 auto}
  .close-mail{font-size:22px;margin-top:32px;align-self:center}
  .foot{font-size:11px;padding-bottom:24px}
}

@media (prefers-reduced-motion:reduce){
  body{transition:none}
  [data-reveal],.chap-title[data-reveal]{opacity:1;transform:none;transition:none}
  .hello{height:auto}
  .hello-pin{position:relative;height:auto;min-height:100svh;gap:48px;padding-top:120px;padding-bottom:120px}
  .hello-greet,.hello-say{grid-area:auto}
  .hello-greet{opacity:1;transform:none}
  .hello-greet span,.hello-cue{animation:none;opacity:1;transform:none}
  .hello-say .w{opacity:1}
  .hello-cue{display:none}
}

/* ---------- Shop (v9): double-sided prints on a curved rack, tilted on a diagonal ---------- */
body.shop{height:100vh;height:100svh;overflow:hidden}
.shop-main{position:relative;height:100%;overflow:hidden}
.crate-stage{position:absolute;inset:0;--w:calc(290 * var(--u));--h:calc(var(--w) * 1.414);touch-action:none}
.crate{position:absolute;left:50%;top:calc(50% - 30 * var(--u));width:var(--w);height:var(--h);margin:calc(var(--h) / -2) 0 0 calc(var(--w) / -2);perspective:calc(var(--w) * 4.6);perspective-origin:50% 50%}
.rig{position:absolute;inset:0;transform-style:preserve-3d;transform:rotateX(12deg) rotateY(-14deg)}
.crate .book{position:absolute;inset:0;display:block;transform-style:preserve-3d;will-change:transform}
.slab{--t:max(2px,calc(3 * var(--u)));position:relative;display:block;height:100%;transform-style:preserve-3d}
.slab .f{position:absolute;display:block;backface-visibility:hidden;-webkit-backface-visibility:hidden;background-color:var(--ink)}
.slab .f::after{content:'';position:absolute;inset:0;background:var(--ink);opacity:var(--dim,0);pointer-events:none}
.f-front{inset:0;border-radius:2px;overflow:hidden;transform:translateZ(calc(var(--t) / 2))}
.slab .f-back{inset:0;border-radius:2px;overflow:hidden;transform:rotateY(180deg) translateZ(calc(var(--t) / 2))}
.f-front img,.f-back img{width:100%;height:100%;object-fit:cover;pointer-events:none}
.slab .e{backface-visibility:visible;-webkit-backface-visibility:visible;background-color:#2B2B2B}
.e-t,.e-b{left:0;right:0;height:var(--t)}
.e-t{top:0;transform:translateY(-50%) rotateX(90deg)}
.e-b{top:100%;transform:translateY(-50%) rotateX(90deg)}
.e-l,.e-r{top:0;bottom:0;width:var(--t)}
.e-l{left:0;transform:translateX(-50%) rotateY(90deg)}
.e-r{left:100%;transform:translateX(-50%) rotateY(90deg)}
.stage.dragging .book{cursor:grabbing}
.shop-cap{position:absolute;left:var(--hx);right:var(--hx);bottom:calc(40 * var(--u));z-index:5;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:calc(32 * var(--u));pointer-events:none}
.shop-cap a{pointer-events:auto}
.shop-cap .cap-link{font-size:calc(14 * var(--u))}
.shop-cap .cap-side{display:flex;flex-direction:row;align-items:center;gap:calc(16 * var(--u));pointer-events:auto}
.shop-cap .cap-side .cap-link{margin-left:calc(16 * var(--u))}
.shop-cap .nav-arrow{pointer-events:auto}
@media (max-width:760px){
  .crate-stage{--w:min(52vw,24svh)}
  .crate{top:calc(50% - 24px)}
  .rig{transform:rotateX(10deg) rotateY(-12deg)}
  .shop-cap{left:20px;right:20px;bottom:22px;gap:10px}
  .shop-cap .nav-arrow{width:38px;height:38px;font-size:13px}.shop-cap .cap-side{gap:10px}.shop-cap .cap-side .cap-link{margin-left:6px}
  .shop-cap .cap-name{font-size:20px}.shop-cap .cap-meta{font-size:11px}.shop-cap .cap-link{font-size:11px}
}

/* ---------- Print page (v9): the print, big, with its details beside it ---------- */
.pdp{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);column-gap:calc(96 * var(--u));align-items:start;padding:calc(148 * var(--u)) var(--hx) calc(120 * var(--u))}
.pdp-view{position:sticky;top:calc(112 * var(--u));display:flex;flex-direction:column;align-items:center;gap:calc(22 * var(--u))}
.stage-3d{position:relative;width:100%;height:calc(100vh - 112 * var(--u) - 130 * var(--u));height:calc(100svh - 112 * var(--u) - 130 * var(--u));min-height:300px;border-radius:16px;overflow:hidden;touch-action:pan-y}
.stage-3d canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;cursor:grab}
.flat{position:absolute;inset:0}
.flat[hidden]{display:none}
.flat img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;animation:lift .9s var(--out) both}
@keyframes lift{from{opacity:0;transform:translateY(calc(40 * var(--u))) scale(.94)}to{opacity:1;transform:none}}
.hint{position:absolute;left:0;right:0;bottom:calc(20 * var(--u));text-align:center;font-size:calc(13 * var(--u));line-height:1;color:var(--ink);pointer-events:none}
.stage-3d[data-mode="free"] .hint{color:var(--white)}
.seg{gap:calc(30 * var(--u))}
.seg button{font-size:calc(15 * var(--u))}

.pdp-info{display:flex;flex-direction:column;align-items:flex-start;padding-top:calc(8 * var(--u));opacity:0;transform:translateY(calc(24 * var(--u)));transition:opacity .9s var(--out) .15s,transform .9s var(--out) .15s}
.pdp-info.in{opacity:1;transform:none}
.pdp-crumb{font-size:calc(15 * var(--u));line-height:1}
.pdp-crumb a:hover,.pdp-crumb a:focus-visible{text-decoration:underline}
.pdp-name{margin-top:calc(28 * var(--u));font-family:var(--f-head);font-weight:700;font-size:calc(84 * var(--u));line-height:.94;letter-spacing:-.026em;text-wrap:balance}
.pdp-price{margin-top:calc(22 * var(--u));font-family:var(--f-head);font-weight:700;font-size:calc(36 * var(--u));line-height:1;letter-spacing:-.02em}
.opt{margin-top:calc(44 * var(--u));width:100%}
.opt-l{font-size:calc(14 * var(--u));line-height:1}
.opts{display:flex;flex-wrap:wrap;gap:calc(10 * var(--u));margin-top:calc(16 * var(--u))}
.opts button{display:inline-flex;align-items:center;gap:.6em;padding:calc(14 * var(--u)) calc(24 * var(--u));border:1px solid currentColor;border-radius:999px;font-size:calc(17 * var(--u));line-height:1;transition:background-color .2s var(--out),color .2s var(--out),border-color .2s var(--out)}
.opts button:hover,.opts button:focus-visible{background:var(--white);color:var(--ink);border-color:var(--white)}
.opts button[aria-pressed="true"]{background:var(--blue);border-color:var(--blue);color:var(--white)}
.opts .sw{width:.9em;height:.9em;border-radius:50%;border:1px solid currentColor;flex:none}
.buy{display:flex;flex-wrap:wrap;gap:calc(12 * var(--u));margin-top:calc(48 * var(--u))}
.btn-solid{background:var(--white);color:var(--ink);border-color:var(--white)}
.btn-solid:hover,.btn-solid:focus-visible{background:var(--blue);color:var(--white);border-color:var(--blue)}
.pdp-note{margin-top:calc(18 * var(--u));max-width:44ch;font-size:calc(12 * var(--u));line-height:1.5;text-transform:none}
.pdp-note[hidden],.ar-qr[hidden]{display:none}
.ar-qr{margin-top:calc(22 * var(--u))}
.ar-qr #qr{display:inline-block;padding:12px;background:var(--white);border-radius:16px}
.ar-qr #qr img,.ar-qr #qr canvas{width:calc(150 * var(--u));min-width:112px;height:auto}
.specs{list-style:none;width:100%;margin-top:calc(56 * var(--u));border-top:1px solid currentColor}
.specs li{display:grid;grid-template-columns:calc(130 * var(--u)) minmax(0,1fr);gap:calc(24 * var(--u));align-items:baseline;padding:calc(18 * var(--u)) 0;border-bottom:1px solid currentColor}
.specs .mono{font-size:calc(13 * var(--u));line-height:1.2}
.specs span:last-child{font-size:calc(18 * var(--u));line-height:1.35}

.more{padding:0 var(--hx) calc(120 * var(--u))}
.more-l{font-size:calc(15 * var(--u));line-height:1}
/* carousel */
.more-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:calc(28 * var(--u));border-bottom:1px solid currentColor}
.more-btns{display:flex;gap:calc(12 * var(--u))}
.more-grid{display:flex;gap:calc(40 * var(--u));margin-top:calc(48 * var(--u));overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;cursor:grab;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.more-grid::-webkit-scrollbar{display:none}
.more-grid.drag{cursor:grabbing;scroll-snap-type:none}
.more-item{flex:none;width:calc(300 * var(--u));scroll-snap-align:start;display:flex;flex-direction:column;gap:calc(8 * var(--u))}
.more-img{display:block;aspect-ratio:1000/1414;overflow:hidden;border-radius:2px;margin-bottom:calc(14 * var(--u))}
.more-img img{width:100%;height:100%;object-fit:cover;transition:transform .9s var(--out)}
.more-item:hover .more-img img,.more-item:focus-visible .more-img img{transform:scale(1.03)}
.more-name{font-family:var(--f-head);font-weight:700;font-size:calc(26 * var(--u));line-height:1.05;letter-spacing:-.02em}
.more-meta{font-size:calc(13 * var(--u));line-height:1}
.pdp-close{padding:0 var(--hx) calc(120 * var(--u))}

@media (max-width:760px){
  .pdp{grid-template-columns:minmax(0,1fr);padding:84px 20px 72px;row-gap:28px}
  .pdp-view{position:relative;top:auto;gap:16px}
  .stage-3d{height:min(64svh,128vw);min-height:0}
  .seg{gap:20px}.seg button{font-size:11px}
  .pdp-info{align-items:center;text-align:center;padding-top:0}
  .pdp-crumb{font-size:12px}
  .pdp-name{font-size:9.3vw;margin-top:14px}
  .pdp-price{font-size:24px;margin-top:12px}
  .opt{margin-top:28px}.opt-l{font-size:12px}
  .opts{justify-content:center;gap:8px;margin-top:12px}
  .opts button{padding:12px 18px;font-size:14px}
  .buy{justify-content:center;gap:10px;margin-top:32px}
  .buy .btn{font-size:14px;padding:16px 22px}
  .pdp-note{font-size:11px;margin-top:14px}
  .specs{margin-top:36px;text-align:left}
  .specs li{grid-template-columns:84px minmax(0,1fr);gap:14px;padding:14px 0}
  .specs .mono{font-size:11px}.specs span:last-child{font-size:14px}
  .more{padding:0 20px 72px}
  .more-l{font-size:12px}
  .more-head{padding-bottom:18px}
  .more-btns .nav-arrow{width:38px;height:38px;font-size:13px}
  .more-grid{gap:16px;margin:28px -20px 0;padding:0 20px;scroll-padding-left:20px}
  .more-item{width:min(52vw,230px)}
  .more-name{font-size:17px}.more-meta{font-size:10px}
  .pdp-close{padding:0 20px 56px;text-align:center}
  .pdp-close .close-title{font-size:11vw;margin:0 auto}
  .pdp-close .close-mail{font-size:22px;margin-top:28px}
}
@media (prefers-reduced-motion:reduce){
  .flat img{animation:none}
  .pdp-info{opacity:1;transform:none;transition:none}
  .more-img img{transition:none}
}

/* ---------- Surprise (v9): five small games ---------- */
body.sur{height:100vh;height:100svh;overflow:hidden}
.sur-main{height:100%;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;padding:calc(132 * var(--u)) var(--hx) calc(40 * var(--u))}
.sur-top{min-height:calc(15 * var(--u))}
.sur-count{font-size:calc(15 * var(--u));line-height:1}
.sur-btns{display:flex;gap:calc(12 * var(--u))}
.sur-intro{display:flex;flex-direction:column;align-items:center;text-align:center;gap:calc(28 * var(--u))}
.sur-h{font-size:min(9vw,calc(170 * var(--u)));line-height:.9}
.sur-p{max-width:26ch;font-family:var(--f-head);font-weight:700;font-size:calc(34 * var(--u));line-height:1.08;letter-spacing:-.02em}
.sur-intro .btn{margin-top:calc(12 * var(--u))}
.sur-score{font-size:calc(15 * var(--u));line-height:1;white-space:nowrap}
.sur-stage{position:relative;min-height:0;container-type:size;display:grid;place-items:center;margin:calc(20 * var(--u)) 0}
.sur-foot{display:flex;justify-content:space-between;align-items:flex-end;gap:24px}
.sur-msg{font-family:var(--f-head);font-weight:700;font-size:calc(36 * var(--u));line-height:1.05;letter-spacing:-.02em;min-height:1.05em}
.sur-hint{margin-top:calc(10 * var(--u));font-size:calc(14 * var(--u));line-height:1.2}
.sur-right{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:calc(14 * var(--u))}
.g{margin:auto}
.g button{cursor:pointer}

/* Noughts and crosses */
.g-ttt{--s:min(100cqw,100cqh,calc(520 * var(--u)));width:var(--s);height:var(--s);display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);container-type:size}
.ttt-c{font-family:var(--f-scale);font-weight:900;font-variation-settings:'wdth' 125,'wght' 900;font-size:30cqw;line-height:1;display:grid;place-items:center;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transition:background-color .2s var(--out),color .2s var(--out)}
.ttt-c:nth-child(3n){border-right:0}.ttt-c:nth-child(n+7){border-bottom:0}
.ttt-c:not(:disabled):hover,.ttt-c:not(:disabled):focus-visible{background:var(--white);color:var(--ink)}
.ttt-c:disabled{cursor:default;color:var(--white)}
.ttt-c.hit{background:var(--blue)}

/* Connect 4 */
.g-c4{--w:min(100cqw,calc(100cqh * 7 / 6),calc(760 * var(--u)));width:var(--w);aspect-ratio:7/6}
.c4-board{width:100%;height:100%;display:grid;grid-template-columns:repeat(7,1fr);grid-template-rows:repeat(6,1fr);gap:1.4cqw;padding:1.4cqw;border:1px solid var(--white);border-radius:16px}
.c4-c{display:block;width:100%;aspect-ratio:1;border:1px solid var(--white);border-radius:50%;background:transparent;transition:background-color .15s var(--out)}
.c4-c.col{background:rgba(255,255,255,.1)}
.c4-c.ghost{background:rgba(255,255,255,.4)}
.c4-c.you{background:var(--white)}
.c4-c.me{background:var(--blue)}
.c4-c.hit{outline:3px solid var(--white);outline-offset:2px}
.c4-c.new{animation:c4drop .38s var(--out)}
@keyframes c4drop{from{transform:translateY(-260%);opacity:0}to{transform:none;opacity:1}}

/* Snake */
.g-snake{--s:min(100cqw,100cqh,calc(600 * var(--u)));width:var(--s);height:var(--s);display:block;touch-action:none}
.snake-cv{display:block}

/* Wordle */
.g-wordle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2.6cqh;width:100%;height:100%}
.wd-grid{display:grid;gap:.9cqh}
.wd-row{display:flex;gap:.9cqh}
.wd-t{--t:min(8.4cqh,13cqw);width:var(--t);height:var(--t);display:grid;place-items:center;border:1px solid var(--white);font-family:var(--f-head);font-weight:700;font-size:calc(var(--t) * .55);line-height:1;text-transform:uppercase}
.wd-t.f{border-width:2px}
.wd-t.rev{animation:wdflip .5s var(--out)}
.wd-t.c{background:var(--blue);border-color:var(--blue)}
.wd-t.p{background:var(--white);border-color:var(--white);color:var(--ink)}
.wd-t.x{background:#2B2B2B;border-color:#2B2B2B}
@keyframes wdflip{0%{transform:rotateX(0)}50%{transform:rotateX(90deg)}100%{transform:rotateX(0)}}
.wd-row.shake{animation:wdshake .3s}
@keyframes wdshake{0%,100%{transform:none}25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
.wd-kb{display:grid;gap:.9cqh;width:min(100cqw,calc(600 * var(--u)))}
.wd-krow{display:flex;gap:.6cqw;justify-content:center}
.wd-k{flex:1 1 0;min-width:0;height:min(6.4cqh,46px);border:1px solid var(--white);border-radius:6px;font-size:min(2.4cqh,14px);line-height:1;transition:background-color .15s var(--out),color .15s var(--out)}
.wd-wide{flex:1.7 1 0}
.wd-k:hover{background:var(--white);color:var(--ink)}
.wd-k[data-s="c"]{background:var(--blue);border-color:var(--blue);color:var(--white)}
.wd-k[data-s="p"]{background:var(--white);border-color:var(--white);color:var(--ink)}
.wd-k[data-s="x"]{background:#2B2B2B;border-color:#2B2B2B;color:var(--white)}

/* Word search */
.g-ws{display:flex;align-items:center;justify-content:center;gap:calc(48 * var(--u));width:100%;height:100%}
.ws-grid{--n:12;display:grid;grid-template-columns:repeat(var(--n),1fr);width:min(100cqh,60cqw);aspect-ratio:1;border:1px solid var(--white);touch-action:none;user-select:none;-webkit-user-select:none;container-type:inline-size;flex:none}
.ws-c{display:grid;place-items:center;font-family:var(--f-mono);font-weight:700;font-size:4.3cqw;line-height:1;cursor:pointer}
.ws-c.sel{background:var(--white);color:var(--ink)}
.ws-c.found{background:var(--blue);color:var(--white)}
.ws-list{list-style:none;display:grid;gap:calc(14 * var(--u));font-size:calc(18 * var(--u));line-height:1}
.ws-list li{text-decoration:line-through;text-decoration-color:transparent}
.ws-list li.done{text-decoration-color:currentColor;text-decoration-thickness:2px}
@container (max-width:760px){
  .g-ws{flex-direction:column;gap:14px}
  .ws-grid{width:min(100cqw,calc(100cqh - 96px))}
  .ws-list{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 16px;font-size:12px}
}

/* Coffee */
.g-coffee{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:calc(14 * var(--u));width:100%;height:100%;margin:0}
.cf-view{flex:1 1 0;min-height:0;width:100%;touch-action:none;user-select:none;-webkit-user-select:none}
.cf-cv{display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated;outline:0}
.cf-ticket{display:flex;justify-content:center;gap:max(4px,calc(6 * var(--u)));min-height:max(14px,calc(18 * var(--u)))}
.cf-t{--c:#fff;width:max(14px,calc(18 * var(--u)));height:max(14px,calc(18 * var(--u)));border:1px solid var(--white);display:grid;place-items:center;font:700 11px/1 var(--f-mono);font-style:normal;background:transparent}
.cf-t.on{background:var(--c)}
.cf-row{display:flex;flex-wrap:wrap;justify-content:center;gap:max(6px,calc(10 * var(--u)))}
.cf-row .chip{font-size:max(11px,calc(14 * var(--u)))}
.sw{display:inline-block;width:.75em;height:.75em;border:1px solid var(--white);flex:none}
.chip-solid{background:var(--white);color:var(--ink);border-color:var(--white)}
.chip-solid:hover,.chip-solid:focus-visible{background:var(--blue);color:var(--white);border-color:var(--blue)}

@media (max-width:760px){
  .sur-main{padding:64px 20px 22px}
  .sur-count{font-size:11px}
  .sur-p{font-size:20px}
  .sur-btns{gap:8px}
  .sur-score{font-size:10px}
  .sur-stage{margin:12px 0}
  .sur-msg{font-size:20px}
  .sur-hint{font-size:10px;margin-top:6px}
  .sur-foot .chip{font-size:11px}
}

/* =========================================================
   Case study (studios/project.html + assets/case.js), Nov 2026.
   Opens in the project's own colour (--p-bg / --p-fg, set in the page head): crumb, title,
   line, the work in a thin frame, a short summary. Scrolling through the pinned opener opens
   the frame up until the work fills the screen, then the write-up reads on white.
   Ends with the close and the next project waiting at the bottom as a file in its colour.
   ========================================================= */
html[data-ground="project"]{--ground:var(--p-bg)}
html[data-ground="project"] body{background:var(--p-bg);color:var(--p-fg)}
.cs-open{position:relative;height:230vh;height:230svh}
.cs-pin{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;display:flex;flex-direction:column;align-items:center;text-align:center;
  padding:calc(132 * var(--u)) var(--hx) calc(34 * var(--u))}
.cs-top,.cs-bot{display:flex;flex-direction:column;align-items:center;will-change:opacity,transform}
.cs-crumb{font-size:calc(14 * var(--u));line-height:1}
.cs-crumb a{text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:1px;text-underline-offset:.35em;transition:text-decoration-color .2s var(--out)}
.cs-crumb a:hover,.cs-crumb a:focus-visible{text-decoration-color:currentColor}
.cs-title{margin-top:calc(26 * var(--u));max-width:12ch;font-size:min(10.5vw,calc(124 * var(--u)));line-height:.86;text-wrap:balance}
.cs-by{margin-top:calc(22 * var(--u));font-size:calc(14 * var(--u));line-height:1.3}
.cs-slot{flex:1 1 0;min-height:72px;width:100%;margin:calc(34 * var(--u)) 0 calc(28 * var(--u))}
.cs-sum{max-width:30ch;font-family:var(--f-head);font-weight:700;font-size:calc(28 * var(--u));line-height:1.1;letter-spacing:-.015em;text-wrap:balance}
.cs-cue{margin-top:calc(24 * var(--u));font-size:calc(12 * var(--u));line-height:1}
/* the thin frame round the work, like a print, and the work itself (placed and grown by case.js) */
.cs-ring{position:absolute;left:0;top:0;border:var(--ring-w,3px) solid var(--ring,currentColor);pointer-events:none}
.cs-hero{position:absolute;left:0;top:0;margin:0;overflow:hidden;will-change:transform;background:rgba(26,26,26,.18)}
.cs-hero img,.cs-hero video{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none;-webkit-user-drag:none}
/* first arrival: the words rise in one after another and the work lifts into its frame */
.cs-rise{opacity:0;transform:translateY(24px);animation:rise .9s var(--out) forwards}
.cs-crumb.cs-rise{animation-delay:.1s}
.cs-title.cs-rise{animation-delay:.18s}
.cs-by.cs-rise{animation-delay:.3s}
.cs-sum.cs-rise{animation-delay:.42s}
.cs-cue.cs-rise{animation-delay:.9s}
.cs-hero > *{animation:lift-in 1.1s var(--out) .2s both}
@keyframes lift-in{from{opacity:0;transform:scale(1.08)}}

/* The read: white ground, ink text, the project's colour for the pull quote */
.cs-read{--accent:var(--ink);min-height:100vh;min-height:100svh;padding:calc(150 * var(--u)) var(--hx) calc(150 * var(--u))}
.cs-facts{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:calc(32 * var(--u));border-top:1px solid currentColor;border-bottom:1px solid currentColor}
.cs-facts li{display:flex;flex-direction:column;gap:calc(12 * var(--u));padding:calc(24 * var(--u)) 0}
.cs-facts .mono{font-size:calc(13 * var(--u));line-height:1}
.cs-facts span:last-child{font-size:calc(19 * var(--u));line-height:1.35}
.cs-sec{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);column-gap:calc(96 * var(--u));margin-top:calc(120 * var(--u))}
.cs-sec-h{align-self:start;position:sticky;top:calc(124 * var(--u));padding-top:calc(6 * var(--u))}
.cs-sec-n{font-size:calc(14 * var(--u));line-height:1}
.cs-sec-t{margin-top:calc(16 * var(--u));font-family:var(--f-head);font-weight:700;font-size:calc(40 * var(--u));line-height:1;letter-spacing:-.02em}
.cs-sec-body{max-width:36em}
.cs-sec-body p{font-size:calc(21 * var(--u));line-height:1.55}
.cs-sec-body p + p{margin-top:1em}
.cs-sec-body .lede{font-family:var(--f-head);font-weight:400;font-size:calc(36 * var(--u));line-height:1.2;letter-spacing:-.012em}
.cs-sec-body .lede + p{margin-top:calc(32 * var(--u))}
.cs-sec-body .cs-credit{margin-top:calc(40 * var(--u));font-size:calc(13 * var(--u));line-height:1.5}
.cs-quote{margin:calc(150 * var(--u)) auto 0;max-width:16ch;text-align:center;font-size:min(7.2vw,calc(98 * var(--u)));line-height:.9;color:var(--accent);text-wrap:balance}
.cs-fig{margin:calc(120 * var(--u)) 0 0;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:#F1F2F3}
.cs-fig img,.cs-fig video{display:block;width:100%;height:100%;object-fit:cover}
.cs .close{min-height:0;padding-top:calc(200 * var(--u));padding-bottom:calc(200 * var(--u))}

/* Next project: the next file waits at the bottom in its own colour and lifts as you reach for it */
.cs-end{overflow:hidden;padding-top:calc(40 * var(--u))}
.cs-next{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;min-height:64vh;min-height:64svh;margin-bottom:-48px;
  padding:calc(34 * var(--u)) var(--hx) calc(64 * var(--u) + 48px);background:var(--bg);color:var(--fg);border-radius:24px 24px 0 0;transition:transform .7s var(--out)}
.cs-next:hover,.cs-next:focus-visible{transform:translateY(calc(-32 * var(--u)))}
.cs-next:focus-visible{outline-offset:-8px}
.cs-next-l{align-self:stretch;display:flex;justify-content:space-between;font-size:calc(14 * var(--u));line-height:1}
.cs-next-t{margin-top:auto;padding-top:calc(48 * var(--u));max-width:12ch;font-size:min(10.5vw,calc(124 * var(--u)));line-height:.86;text-wrap:balance}
.cs-next-by{margin-top:calc(22 * var(--u));font-size:calc(14 * var(--u));line-height:1.3}
.cs-next-go{margin-top:calc(40 * var(--u));margin-bottom:auto;display:inline-block;font-size:calc(14 * var(--u));line-height:1;padding:calc(16 * var(--u)) calc(24 * var(--u));border:1px solid currentColor;border-radius:999px;transition:background-color .2s var(--out),color .2s var(--out)}
.cs-next:hover .cs-next-go{background:var(--fg);color:var(--bg)}

@media (max-width:760px){
  .cs-open{height:200vh;height:200svh}
  .cs-pin{padding:80px 20px 20px}
  .cs-crumb{font-size:11px}
  .cs-title{margin-top:14px;font-size:12vw}
  .cs-by{margin-top:12px;font-size:10px;max-width:34ch}
  .cs-slot{margin:22px 0 18px}
  .cs-sum{font-size:18px;max-width:24ch}
  .cs-cue{margin-top:14px;font-size:10px}
  .cs-read{padding:72px 20px 88px}
  .cs-facts{grid-template-columns:minmax(0,1fr);border-bottom:0}
  .cs-facts li{flex-direction:row;justify-content:space-between;align-items:baseline;gap:16px;padding:14px 0;border-bottom:1px solid currentColor;text-align:right}
  .cs-facts .mono{font-size:10px}
  .cs-facts span:last-child{font-size:15px}
  .cs-sec{grid-template-columns:minmax(0,1fr);row-gap:14px;margin-top:56px}
  .cs-sec-h{position:static;padding:0}
  .cs-sec-n{font-size:11px}
  .cs-sec-t{margin-top:10px;font-size:24px}
  .cs-sec-body p{font-size:16px;line-height:1.55}
  .cs-sec-body .lede{font-size:21px;line-height:1.22}
  .cs-sec-body .lede + p{margin-top:20px}
  .cs-sec-body .cs-credit{font-size:10px;margin-top:28px}
  .cs-quote{margin-top:72px;font-size:11.4vw}
  .cs-fig{margin-top:56px;border-radius:12px}
  .cs .close{padding:96px 20px}
  .cs-end{padding-top:16px}
  .cs-next{min-height:58svh;padding:20px 20px calc(32px + 48px);border-radius:16px 16px 0 0}
  .cs-next-l{font-size:10px}
  .cs-next-t{font-size:12vw;padding-top:32px}
  .cs-next-by{font-size:10px;margin-top:12px}
  .cs-next-go{font-size:11px;padding:12px 16px;margin-top:24px}
}

/* =========================================================
   Page to page (assets/motion.js). The browser's own cross-document view transitions:
   the old page fades, the new one lifts in, the bar holds still, and a project's file
   grows into its case study (view-transition-name "case", set only for that moment).
   ========================================================= */
@view-transition{navigation:auto}
.bar{view-transition-name:bar}
::view-transition-group(*){animation-duration:.7s;animation-timing-function:cubic-bezier(.22,1,.36,1)}
::view-transition-old(root){animation:vt-out .42s cubic-bezier(.22,1,.36,1) both}
::view-transition-new(root){animation:vt-in .75s cubic-bezier(.22,1,.36,1) .06s both}
::view-transition-group(case){overflow:clip;animation-duration:.85s}
::view-transition-old(case),::view-transition-new(case){animation-duration:.6s;animation-timing-function:cubic-bezier(.22,1,.36,1)}
@keyframes vt-out{to{opacity:0}}
@keyframes vt-in{from{opacity:0;transform:translateY(24px)}}
/* Browsers without it: the same feel, done by hand */
html.fade-in main,html.fade-in .foot{animation:vt-in .75s var(--out) both}
html.leaving main,html.leaving .foot{opacity:0;transform:translateY(-12px);transition:opacity .24s var(--out),transform .24s var(--out)}

@media (prefers-reduced-motion:reduce){
  @view-transition{navigation:none}
  .stack.in .file{animation:none}
  .file-a,.file-body,.file-grid,.file-peek,.file-media img,.file-media video,.cs-next,.cs-next-go{transition:none}
  .cs-open{height:auto}
  .cs-pin{position:relative;min-height:100svh}
  .cs-rise,.cs-hero > *{animation:none;opacity:1;transform:none}
}

/* Berns Studios wordmark (2026): live Scale, tracking 0. Ink or white only, never blue. */
.wm{display:inline-flex;align-items:baseline;line-height:1;white-space:nowrap;color:inherit;letter-spacing:0}
.wm .b,.wm .s{display:block;flex:none}
.wm .b{font-family:'scale-variable','Helvetica Neue',Helvetica,Arial,sans-serif;font-variation-settings:"wdth" 125,"wght" 900;font-weight:900;text-transform:uppercase}
.wm .s{font-family:'scale-variable','Helvetica Neue',Helvetica,Arial,sans-serif;font-variation-settings:"wdth" 125,"wght" 400;font-weight:400;text-transform:uppercase;margin-left:.3em}
.wm.stack{flex-direction:column;align-items:flex-start}
.wm.stack .s{font-size:.99em;margin-left:.022em;margin-top:-.101em;font-variation-settings:"wdth" 117,"wght" 400}
.foot .wm{font-size:1em;vertical-align:baseline}

/* =========================================================
   Case study, editorial chapters (Nov 2026): media rows at each piece's own shape.
   Cells grow by their ratio (--r = w / h) so a row of mixed shapes shares one height, no cropping.
   ========================================================= */
.cs-row{margin:calc(96 * var(--u)) 0 0}
.cs-sec + .cs-row{margin-top:calc(72 * var(--u))}
.cs-cells{display:flex;align-items:flex-start;gap:calc(24 * var(--u))}
.cs-cell{flex:var(--r) 1 0;min-width:0}
.cs-media{aspect-ratio:var(--r);border-radius:16px;overflow:hidden;background:var(--row-bg,#F1F2F3)}
.cs-media img,.cs-media video{display:block;width:100%;height:100%;object-fit:cover}
.cs-cap{display:flex;gap:1.2em;margin-top:calc(14 * var(--u));font-size:calc(12 * var(--u));line-height:1.4}
.cs-cap span{flex:none}
.r-full{margin-left:calc(-1 * var(--hx));margin-right:calc(-1 * var(--hx))}
.r-full .cs-cells{gap:0}
.r-full .cs-media{border-radius:0}
.r-full .cs-cap,.r-full > .cs-cap{padding:0 var(--hx)}
.r-offset .cs-cells{width:50%;margin-left:auto}
.r-offset .cs-cap{margin-left:0}
.r-offset > .cs-cap{width:50%;margin-left:auto}
/* Palette */
.cs-swatches{display:grid;grid-template-columns:repeat(var(--n,6),minmax(0,1fr));gap:calc(24 * var(--u))}
.cs-sw span{display:block;aspect-ratio:3/4;border-radius:16px}
.cs-sw span.light{border:1px solid #E8E9EA;box-sizing:border-box} /* a white swatch still reads on the white page */
.cs-sw p{margin-top:calc(14 * var(--u));font-size:calc(12 * var(--u));line-height:1.4}
.r-palette > .cs-cap{margin-top:calc(28 * var(--u))}
/* What I made and credits */
.cs-index-l{font-size:calc(13 * var(--u));line-height:1}
.cs-made{list-style:none;columns:2;column-gap:calc(48 * var(--u));margin-top:calc(20 * var(--u));border-top:1px solid currentColor}
.cs-made li{break-inside:avoid;display:flex;gap:1.2em;align-items:baseline;padding:calc(14 * var(--u)) 0;border-bottom:1px solid currentColor;font-size:calc(19 * var(--u));line-height:1.3}
.cs-made li .mono{font-size:calc(12 * var(--u))}
.cs-credits{margin-top:calc(64 * var(--u));border-top:1px solid currentColor}
.cs-credits div{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,7fr);gap:calc(24 * var(--u));padding:calc(18 * var(--u)) 0;border-bottom:1px solid currentColor}
.cs-credits dt{font-size:calc(13 * var(--u));line-height:1.5}
.cs-credits dd{font-size:calc(19 * var(--u));line-height:1.4}
.cs-index .cs-sec-body{max-width:none}

@media (max-width:760px){
  .cs-row{margin-top:44px}
  .cs-sec + .cs-row{margin-top:32px}
  .cs-cells{flex-direction:column;gap:12px}
  .cs-cell{flex:none;width:100%}
  .cs-media{border-radius:12px}
  .r-full .cs-media{border-radius:0}
  .r-pair.tall .cs-cells{flex-direction:row;gap:8px}
  .r-pair.tall .cs-cell{flex:var(--r) 1 0;width:auto}
  .r-trio .cs-cells,.r-quad .cs-cells{flex-direction:row;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;
    margin:0 -20px;padding:0 20px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .r-trio .cs-cells::-webkit-scrollbar,.r-quad .cs-cells::-webkit-scrollbar{display:none}
  .r-trio .cs-cell,.r-quad .cs-cell{flex:0 0 calc(68vw / var(--rmax,1) * var(--r));scroll-snap-align:center} /* one height across the set */
  .r-offset .cs-cells,.r-offset > .cs-cap{width:100%}
  .cs-cap{font-size:10px;margin-top:8px}
  .cs-swatches{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
  .cs-sw span{border-radius:12px;aspect-ratio:1}
  .cs-sw p{font-size:10px;margin-top:8px}
  .cs-index-l{font-size:10px}
  .cs-made{columns:1}
  .cs-made li{font-size:15px;padding:12px 0}
  .cs-made li .mono{font-size:10px}
  .cs-credits{margin-top:40px}
  .cs-credits div{grid-template-columns:minmax(0,1fr);gap:6px;padding:14px 0}
  .cs-credits dt{font-size:10px}
  .cs-credits dd{font-size:15px}
}
/* A row whose pieces carry their own captions: the row caption reads as the set's title, above the work */
.cs-row.set{display:flex;flex-direction:column-reverse}
.cs-row.set .cs-swipe{order:-1}
/* Swipe count and arrows under trios and quads, phones only */
.cs-swipe{display:none}
@media (max-width:760px){
  .cs-swipe{display:flex;align-items:center;justify-content:space-between;margin-top:14px}
  .cs-swipe-n{font-size:10px}
  .cs-swipe-b{display:flex;gap:8px}
  .cs-swipe .cs-car-b{min-width:36px;min-height:36px;width:36px;height:36px}
  .cs-swipe .cs-car-b:disabled{opacity:.3;pointer-events:none}
  .cs-row.set .cs-swipe + .cs-cap,.cs-row:not(.set) .cs-swipe + .cs-cap{margin-top:10px}
}
.cs-row.set > .cs-cap{margin:0 0 calc(14 * var(--u))}
@media (max-width:760px){.cs-row.set > .cs-cap{margin:0 0 8px}}

/* =========================================================
   Case study extras (Nov 2026, This Bed I Made pass 2)
   ========================================================= */
/* The quote in the record's own lettering: a pinned ink scene (like About). Scroll fades the lines up one after the other. */
.cs-mantra{--h:min(3.4vw,calc(52 * var(--u)));position:relative;height:280vh;height:280svh;margin:calc(150 * var(--u)) calc(-1 * var(--hx)) 0;background:var(--ink)}
.cs-mantra-pin{position:sticky;top:0;height:100vh;height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--h) * .37);padding:0 var(--hx);overflow:hidden}
.cs-mantra .ln{display:block;height:var(--h);width:calc(var(--h) * var(--r));max-width:100%;background:var(--gold);
  -webkit-mask:var(--m) center/contain no-repeat;mask:var(--m) center/contain no-repeat;opacity:0;will-change:opacity,transform}
.cs-mantra + .cs-sec{margin-top:calc(120 * var(--u))}

/* The coin: on the white page, centred, everywhere (Berns's call, Nov 2026: no ink band, no flat poster before the 3D) */
.r-coin > .cs-cap{justify-content:center}
.cs-coin{position:relative;width:min(100%,calc(720 * var(--u)));margin:0 auto;aspect-ratio:1;padding-bottom:calc(72 * var(--u));box-sizing:content-box;
  background:transparent;overflow:hidden;cursor:grab;touch-action:pan-y;outline-offset:-6px;user-select:none;-webkit-user-select:none}
.cs-coin.grab{cursor:grabbing}
.cs-coin-gl{position:absolute;left:0;top:0;width:100%;height:calc(100% - 72 * var(--u))!important;display:block;opacity:0;transition:opacity 1s var(--out)}
.cs-coin.ready .cs-coin-gl{opacity:1}
.cs-coin-flip{position:absolute;left:50%;bottom:0;transform:translateX(-50%);font-size:calc(13 * var(--u));line-height:1;color:var(--ink);
  background:transparent;border:1px solid currentColor;border-radius:999px;padding:calc(14 * var(--u)) calc(22 * var(--u));cursor:pointer;transition:background-color .2s var(--out),border-color .2s var(--out),color .2s var(--out)}
.cs-coin-flip:hover,.cs-coin-flip:focus-visible{background:var(--blue,#080CDF);border-color:var(--blue,#080CDF);color:var(--white)}

/* The system: the piece starts where the text starts */
.r-text{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);column-gap:calc(96 * var(--u))}
.r-text > *{grid-column:2}
.r-text .cs-cells{width:min(100%,calc(620 * var(--u)))}

/* The film: the title card with a play button, then YouTube in its place */
.cs-film{position:relative;aspect-ratio:var(--r,16/9);border-radius:16px;overflow:hidden;background:#000}
.cs-film iframe,.cs-film video{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000}
.cs-play{position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;border:0;background:#000;cursor:pointer;color:var(--ink)}
.cs-play img{display:block;width:100%;height:100%;object-fit:cover;transition:transform 1.2s var(--out)}
.cs-play:hover img{transform:scale(1.02)}
.cs-play-b{position:absolute;left:calc(32 * var(--u));bottom:calc(32 * var(--u));display:inline-flex;align-items:center;gap:.8em;font-size:calc(14 * var(--u));line-height:1;
  background:var(--white);border-radius:999px;padding:calc(16 * var(--u)) calc(24 * var(--u));transition:background-color .2s var(--out),color .2s var(--out)}
.cs-play-b svg{width:.8em;height:.9em}
.cs-play:hover .cs-play-b,.cs-play:focus-visible .cs-play-b{background:var(--blue,#080CDF);color:var(--white)}
.r-film .cs-cap .t{flex:1 1 auto}
/* a vertical film (r < 1): centred, never taller than the screen */
.r-film.tall{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);column-gap:calc(96 * var(--u))}
.r-film.tall > *{grid-column:2}
/* a vertical film sits on the text column, left edges lined up with the words, never taller than the screen */
.r-film.tall .cs-film,.r-film.tall > .cs-cap{width:min(100%,calc(82svh * var(--r)));margin:0}
@media (max-width:760px){.r-film.tall{display:block}.r-film.tall .cs-film,.r-film.tall > .cs-cap{width:100%}}
.r-film .cs-cap a{text-decoration:underline;text-underline-offset:.3em;margin-left:.6em;white-space:nowrap}

/* Stories: a phone you can tap through */
.r-stories .ig{display:flex;justify-content:center;padding:calc(72 * var(--u)) 0;background:#F1F2F3;border-radius:24px;outline-offset:6px}
.ig-phone{width:min(340px,76vw);padding:10px;background:var(--ink);border-radius:48px}
.ig-screen{position:relative;aspect-ratio:9/17.9;border-radius:38px;overflow:hidden;background:#000;color:#fff;-webkit-user-select:none;user-select:none}
.ig-slides{position:absolute;left:0;right:0;top:0;aspect-ratio:9/16;overflow:hidden;background:#111;border-radius:0 0 10px 10px}
.ig-slide{position:absolute;inset:0;opacity:0}
.ig-slide.on{opacity:1}
.ig-slide img,.ig-slide video{display:block;width:100%;height:100%;object-fit:cover}
.ig-top{position:absolute;left:0;right:0;top:0;padding:22px 18px 44px;background:linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,0));pointer-events:none}
.ig-bars{display:flex;gap:3px}
.ig-bars span{flex:1;height:2px;border-radius:2px;background:rgba(255,255,255,.4);overflow:hidden}
.ig-bars i{display:block;height:100%;background:#fff;transform:scaleX(0);transform-origin:0 50%}
.ig-head{display:flex;align-items:center;gap:8px;margin-top:10px;font-family:var(--f-body,'neue-haas-grotesk-text'),sans-serif;font-size:13px;line-height:1}
.ig-head img{width:28px;height:28px;border-radius:50%;object-fit:cover}
.ig-head b{font-weight:700}
.ig-ago{opacity:.75}
.ig-tap{position:absolute;top:0;bottom:10.6%;width:34%;padding:0;border:0;background:transparent;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ig-prev{left:0}
.ig-next{right:0;width:66%}
.ig-foot{position:absolute;left:0;right:0;bottom:0;height:10.6%;display:flex;align-items:center;gap:14px;padding:0 14px 6px;pointer-events:none;background:#000}
.ig-reply{flex:1;height:38px;display:flex;align-items:center;padding:0 16px;border:1px solid rgba(255,255,255,.55);border-radius:999px;font-family:var(--f-body,'neue-haas-grotesk-text'),sans-serif;font-size:13px}
.ig-foot svg{width:24px;height:24px;flex:none}
.r-stories > .cs-cap{justify-content:center}

@media (max-width:760px){
  .cs-mantra{--h:3.9vw;margin-top:72px;margin-left:-20px;margin-right:-20px;height:240svh}
  .cs-mantra-pin{padding:0 20px}
  /* phones: the coin fills the width */
  .cs-coin{width:100%;padding-bottom:48px}
  .cs-coin-gl{height:calc(100% - 48px)!important}
  .cs-coin-flip{font-size:11px;padding:12px 16px;bottom:4px}
  .r-text{display:block}
  .r-text .cs-cells{width:100%}
  .cs-film{border-radius:12px}
  .cs-play-b{font-size:11px;padding:10px 14px;left:12px;bottom:12px}
  .r-stories .ig{padding:32px 0;border-radius:16px;margin:0 -8px}
  .ig-phone{border-radius:42px;padding:8px}
  .ig-screen{border-radius:34px}
}
@media (prefers-reduced-motion:reduce){
  .cs-mantra{height:auto}
  .cs-mantra-pin{position:relative;height:70svh}
  .cs-mantra .ln{opacity:1!important;transform:none!important}
  .cs-play img{transition:none}
}

/* Scrubbable loop (the end credits): play/pause, a slim slider, the time */
.cs-scrub{display:flex;align-items:center;gap:calc(20 * var(--u));margin-top:calc(16 * var(--u))}
.cs-pp{flex:none;min-width:5.5em;font-size:calc(12 * var(--u));line-height:1;padding:calc(10 * var(--u)) calc(16 * var(--u));border:1px solid currentColor;border-radius:999px;background:transparent;color:inherit;cursor:pointer;transition:background-color .2s var(--out),color .2s var(--out),border-color .2s var(--out)}
.cs-pp:hover,.cs-pp:focus-visible{background:var(--blue);border-color:var(--blue);color:var(--white)}
.cs-scrub input{flex:1;min-width:0;height:24px;margin:0;background:transparent;-webkit-appearance:none;appearance:none;cursor:pointer;--p:0%}
.cs-scrub input::-webkit-slider-runnable-track{height:2px;background:linear-gradient(var(--ink),var(--ink)) 0 0/var(--p) 100% no-repeat,#E8E9EA}
.cs-scrub input::-moz-range-track{height:2px;background:#E8E9EA}
.cs-scrub input::-moz-range-progress{height:2px;background:var(--ink)}
.cs-scrub input::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;margin-top:-6px;border-radius:50%;background:var(--ink);border:0}
.cs-scrub input::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:var(--ink);border:0}
.cs-time{flex:none;font-size:calc(12 * var(--u));line-height:1;font-variant-numeric:tabular-nums;min-width:7.5em;text-align:right}
.r-text .cs-cells{width:min(100%,calc(var(--w,620) * var(--u)))}
@media (max-width:760px){
  .cs-scrub{gap:12px;margin-top:10px}
  .cs-pp,.cs-time{font-size:10px}
  .cs-pp{padding:9px 12px}
  .r-text .cs-cells{width:100%}
}

/* 3D sleeve in a cell: the cover until three.js is ready */
.cs-3d{position:relative;cursor:grab;touch-action:pan-y;background:#F1F2F3;outline-offset:4px;user-select:none;-webkit-user-select:none}
.cs-3d.grab{cursor:grabbing}
.cs-3d canvas{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity 1s var(--out)}
.cs-3d.ready canvas{opacity:1}
.cs-3d-poster{position:absolute;inset:16%;width:68%!important;height:68%!important;object-fit:cover;transition:opacity .8s var(--out);pointer-events:none}
.cs-3d.ready .cs-3d-poster{opacity:0}
.cs-3d-poster.tee{inset:9%;width:82%!important;height:82%!important;object-fit:contain}

/* Film fallback when YouTube won't play it here */
.cs-film-out{position:absolute;inset:0;display:block;color:var(--ink)}
.cs-film-out img{width:100%;height:100%;object-fit:cover}

/* Looping carousel (merch): three in view, a hint of the next */
.cs-car{overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;outline-offset:4px;cursor:grab}
.cs-car::-webkit-scrollbar{display:none}
.cs-car.drag{cursor:grabbing}
.cs-car.drag *{pointer-events:none}
.cs-car-track{display:flex;column-gap:calc(24 * var(--u))}
.cs-car .cs-cell{flex:0 0 calc((100% - 3 * 24 * var(--u)) / 3.25);scroll-snap-align:start}
.cs-car-nav{display:flex;justify-content:flex-end;gap:calc(10 * var(--u));margin-top:calc(20 * var(--u))}
.cs-car-b{width:calc(48 * var(--u));height:calc(48 * var(--u));min-width:40px;min-height:40px;display:grid;place-items:center;border:1px solid currentColor;border-radius:50%;background:transparent;color:inherit;cursor:pointer;transition:background-color .2s var(--out),color .2s var(--out),border-color .2s var(--out)}
.cs-car-b svg{width:40%;height:40%}
.cs-car-b:hover,.cs-car-b:focus-visible{background:var(--blue);border-color:var(--blue);color:var(--white)}
@media (max-width:760px){
  .cs-car-track{column-gap:10px}
  .cs-car .cs-cell{flex:0 0 calc((100% - 10px) / 1.3)}
  .cs-car-nav{margin-top:14px}
  .ig-top{padding:20px 16px 24px}
}

/* Case study: laptop with a live, clickable mock of the pages (row: 'laptop', Monzo, Nov 2026) */
.r-laptop{margin-left:auto;margin-right:auto;max-width:calc(1120 * var(--u))}
.lap{position:relative;padding:0 calc(60 * var(--u))}
.lap-lid{background:#1A1A1A;border-radius:calc(22 * var(--u)) calc(22 * var(--u)) 0 0;padding:calc(16 * var(--u)) calc(16 * var(--u)) calc(20 * var(--u))}
.lap-screen{position:relative;aspect-ratio:16/10;background:#fff;border-radius:6px;overflow:hidden;display:flex;flex-direction:column}
.lap-bar{flex:none;display:flex;align-items:center;gap:6px;height:calc(36 * var(--u));min-height:24px;padding:0 10px;background:#F1F2F3;border-bottom:1px solid #E8E9EA}
.lap-bar i{width:9px;height:9px;border-radius:50%;background:#E8E9EA;flex:none}
.lap-back{flex:none;border:0;background:none;font:inherit;font-size:15px;line-height:1;padding:2px 8px;color:#1A1A1A;border-radius:6px;margin-left:6px}
.lap-back:hover:not(:disabled){background:#E8E9EA}
.lap-back:disabled{opacity:.3}
.lap-back.on{background:#E8E9EA}
.lap-url{flex:1;min-width:0;background:#fff;border-radius:999px;padding:4px 12px;font-size:11px;line-height:1.3;color:#1A1A1A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lap-view{flex:1;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.lap-page{position:relative}
.lap-page img{display:block;width:100%;height:auto}
.lap-hot{position:absolute;border:0;padding:0;background:transparent;border-radius:6px;outline:2px solid transparent;outline-offset:2px;transition:outline-color .2s,background-color .2s}
.lap-hot:hover,.lap-hot:focus-visible,.lap-hot.on{outline-color:#080CDF;background:rgba(8,12,223,.08)}
.lap-cursor{position:absolute;left:0;top:0;width:18px;margin:-2px 0 0 -2px;image-rendering:pixelated;pointer-events:none;z-index:3;opacity:0;
  transform:translate(60%,60%);transition:transform .9s cubic-bezier(.3,.7,.2,1),opacity .3s}
.lap-cursor.click{animation:lap-click .38s ease-out}
@keyframes lap-click{40%{scale:.8}100%{scale:1}}
.lap-base{position:relative;height:calc(20 * var(--u));min-height:12px;margin:0 calc(-60 * var(--u));background:#2B2B2B;border-radius:0 0 calc(20 * var(--u)) calc(20 * var(--u))}
.lap-base::after{content:"";position:absolute;left:50%;top:0;width:16%;height:40%;translate:-50% 0;background:#1A1A1A;border-radius:0 0 10px 10px}
.lap-ui{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:calc(28 * var(--u));min-height:34px}
.lap-hint{font-size:calc(12 * var(--u));line-height:1.4;text-align:center}
.lap-tour{border:1px solid currentColor;border-radius:999px;background:none;color:inherit;font-size:calc(12 * var(--u));padding:8px 14px}
.lap-tour:hover{background:#080CDF;border-color:#080CDF;color:#fff}
.lap-tour[hidden]{display:none}
.r-laptop > .cs-cap{justify-content:center}
@media (max-width:760px){
  /* The same laptop as desktop, scaled down: 16:10 screen, slim bezel and bar */
  .lap{padding:0 5.4%}
  .lap-lid{border-radius:8px 8px 0 0;padding:5px 5px 6px}
  .lap-screen{border-radius:2px}
  .lap-bar{height:14px;min-height:0;gap:3px;padding:0 5px}
  .lap-bar i{width:4px;height:4px}
  .lap-back{font-size:9px;padding:0 3px;margin-left:2px;border-radius:3px}
  .lap-url{font-size:6px;padding:1px 6px}
  .lap-cursor{width:10px}
  .lap-hot{border-radius:3px;outline-width:1px;outline-offset:1px}
  .lap-base{height:7px;min-height:0;margin:0 -6%;border-radius:0 0 6px 6px}
  .lap-ui{flex-direction:column;gap:10px;margin-top:16px}
  .lap-hint,.lap-tour{font-size:11px}
}

/* About, Hosted for (Nov 2026, Berns's call): the logos sit still, centred as a set, no carousel */
.hosted:not([data-marquee]){animation:none;width:auto;flex-wrap:wrap;justify-content:center;gap:calc(40 * var(--u)) calc(88 * var(--u))}
.hosted:not([data-marquee]) li{padding-right:0}
.hosted-wrap:has(.hosted:not([data-marquee])){overflow:visible}
@media (max-width:760px){.hosted:not([data-marquee]){gap:28px 44px}}

/* (Also known as 'Berns') sits on its own patch of the page colour so it never runs into what's underneath */
.aka{background:var(--ground);padding:5px 10px 5px 0;z-index:2}

/* Offset rows line up with the text column (same grid as the chapters), Berns's note Nov 2026 */
.r-offset{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);column-gap:calc(96 * var(--u))}
.r-offset > *{grid-column:2}
.r-offset .cs-cells,.r-offset > .cs-cap{width:min(100%,calc(760 * var(--u)));margin-left:0}
@media (max-width:760px){.r-offset{display:block}.r-offset .cs-cells,.r-offset > .cs-cap{width:100%}}

/* Contact (v9, Nov 2026): one Berns Blue screen, the same bar as every page, the close centred */
.ct-main{min-height:100vh;min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;
  padding:calc(160 * var(--u)) var(--hx,40px) calc(80 * var(--u))}
.ct .close-title{margin:0 auto;max-width:none;font-size:min(7.4vw,calc(128 * var(--u)))}
/* three lines everywhere, never one word on a line: Time to bring / your ideas / to life. (Berns's call) */
.ct .close-title span{display:block;white-space:nowrap}
/* hovering the email slides in an envelope with a 1 badge (Berns's reference) */
.ct-mail{position:relative;display:inline-flex;align-items:center}
.ct-inbox{display:inline-grid;place-items:center;width:0;overflow:hidden;opacity:0;transition:width .35s var(--out),opacity .35s var(--out),margin .35s var(--out)}
.ct-inbox svg{width:1.1em;height:.88em;flex:none}
.ct-mail:hover .ct-inbox,.ct-mail:focus-visible .ct-inbox{width:1.1em;margin-right:.3em;opacity:1}
.ct .close-mail{align-self:center}
.ct .close-mail:hover,.ct .close-mail:focus-visible{background:none;color:var(--white)}
.ct-ig{display:grid;place-items:center;width:calc(56 * var(--u));height:calc(56 * var(--u));min-width:44px;min-height:44px;margin-top:calc(48 * var(--u));border-radius:50%;color:inherit;transition:background-color .2s var(--out),color .2s var(--out)}
.ct-ig svg{width:60%;height:60%}
.ct-ig:hover,.ct-ig:focus-visible{background:var(--white);color:var(--blue)}
@media (max-width:760px){
  .ct-main{padding:110px 20px 48px}
  .ct .close-title{font-size:8.2vw}
  .ct .close-mail{font-size:20px;margin-top:28px}
  .ct-ig{margin-top:28px}
}

/* Embedded social post (row: 'post') */
.cs-post{width:min(100%,504px);height:calc(var(--h) * 1px);border-radius:16px;overflow:hidden;background:#fff;border:1px solid var(--grey-2,#E8E9EA)}
.cs-post iframe{display:block;width:100%;height:100%;border:0}
@media (max-width:760px){.cs-post{margin:0 auto;border-radius:12px}.r-post .cs-cap{text-align:center;justify-content:center}}

/* ---------- Work intro (Nov 2026, Berns's call: no big WORK title, a welcome in his voice) ---------- */
.wk-intro{font-family:var(--f-head);font-weight:700;font-size:min(7.4vw,calc(84 * var(--u)));line-height:1;letter-spacing:-.03em;max-width:17ch}
.wk-sub{margin-top:calc(28 * var(--u));max-width:46ch;font-size:calc(19 * var(--u));line-height:1.45}
.wk-sub a{text-decoration:underline;text-underline-offset:.2em;text-decoration-thickness:1px}
.wk-sub a:hover{background:var(--blue);color:var(--white)}
@media (max-width:760px){ .wk-intro{font-size:9.6vw;max-width:none} .wk-sub{font-size:16px;margin-top:16px} }

/* ---------- Work: hide and seek. A piece of each project peeks out from behind its file on hover ---------- */
.file{isolation:isolate}
.file-pop{position:absolute;z-index:-1;top:0;left:var(--px);width:calc(var(--pw) * var(--u));opacity:0;pointer-events:none;
  transform:translateY(20%) rotate(0deg);transition:transform .55s cubic-bezier(.3,1.5,.6,1),opacity .2s var(--out)}
.file-pop img,.file-pop video{display:block;width:100%;height:auto;border-radius:var(--prad)}
.file-pop.vid video{aspect-ratio:16/9;object-fit:cover;border-radius:12px;background:#1A1A1A}
.file-pop.spin img{animation:pop-spin 5s linear infinite;animation-play-state:paused}
.file-pop.flag img{transform-origin:6% 100%;animation:pop-flag 2.6s ease-in-out infinite alternate;animation-play-state:paused}
@keyframes pop-flag{from{transform:rotate(-1.2deg) skewY(-.6deg)}to{transform:rotate(1.2deg) skewY(.6deg)}}
@keyframes pop-spin{to{transform:rotate(360deg)}}
@media (hover:hover){
  .file:not(.open):hover .file-pop{opacity:1;transform:translateY(-76%) rotate(var(--pr))}
  .file:not(.open):hover .file-pop.spin img,.file:not(.open):hover .file-pop.flag img{animation-play-state:running}
  .stack.all .file-pop{display:none}
}
@media (hover:none){ .file-pop{display:none} }
@media (prefers-reduced-motion:reduce){ .file-pop{transition:opacity .2s} .file-pop.spin img,.file-pop.flag img{animation:none} }

/* ---------- Shop lock (Nov 2026): greyed out with a padlock ---------- */
.lock-i{display:inline-block;width:.42em;height:.49em;margin-left:.3em;vertical-align:.08em}
a.locked{opacity:.42}
a.locked:hover,a.locked:focus-visible{opacity:.7}
html.shop-locked body > :not(.mx):not(.bar):not(.cur):not(script):not(#menu){visibility:hidden}

/* ---------- Pop-ups: the shop sign-up and the welcome ---------- */
.mx{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:20px;opacity:0;transition:opacity .3s var(--out)}
.mx.on{opacity:1}
.mx-back{position:absolute;inset:0;background:rgba(26,26,26,.72)}
.mx-card{position:relative;width:min(100%,520px);background:var(--white);color:var(--ink);border-radius:24px;padding:44px 40px 36px;
  transform:translateY(16px);transition:transform .5s var(--out)}
.mx.on .mx-card{transform:none}
.mx-x{position:absolute;top:20px;right:24px;font-size:12px;line-height:1;padding:.3em 0;border-bottom:1px solid currentColor}
.mx-x:hover{background:var(--blue);color:var(--white)}
.mx-lock{display:block;width:30px;margin-bottom:22px}
.mx-lock .lock-i{width:30px;height:35px;margin:0}
.mx-t{font-family:var(--f-head);font-weight:700;font-size:34px;line-height:1.02;letter-spacing:-.025em;max-width:14ch}
.mx-p{margin-top:14px;font-size:16px;line-height:1.5}
.mx-f{margin-top:26px;display:grid;gap:14px}
.mx-l{display:grid;gap:6px}
.mx-l span{font-size:11px;letter-spacing:.06em;text-transform:uppercase}
.mx-l input{font:inherit;font-size:16px;color:inherit;background:none;border:0;border-bottom:1px solid var(--ink);border-radius:0;padding:8px 0;outline:none}
.mx-l input:focus{border-bottom-width:2px;padding-bottom:7px}
.mx-b{justify-self:start;margin-top:8px;font-size:13px;line-height:1;padding:16px 26px;border-radius:999px;background:var(--ink);color:var(--white);transition:background-color .15s var(--out)}
.mx-b:hover,.mx-b:focus-visible{background:var(--blue)}
.mx-b:disabled{opacity:.5}
.mx-msg{font-size:13px;min-height:1em}
.mx-done{font-family:var(--f-head);font-weight:700;font-size:22px;line-height:1.15;letter-spacing:-.015em}
.mx-home{display:inline-block;margin-top:22px;font-size:12px;padding:.3em 0;border-bottom:1px solid currentColor}
/* the shop pages: the padlock on ink, like the reference, with the sign-up under it */
.mx.page{z-index:40}
.mx.page .mx-back{background:#1A1A1A}
.mx.page .mx-card{background:none;color:var(--white);text-align:center;display:grid;justify-items:center}
.mx.page .mx-lock{width:64px;margin-bottom:34px}
.mx.page .mx-lock .lock-i{width:64px;height:75px}
.mx.page .mx-t{max-width:none}
.mx.page .mx-f{width:100%;text-align:left}
.mx.page .mx-l input{border-color:var(--white)}
.mx.page .mx-b{justify-self:center;background:var(--white);color:var(--ink)}
.mx.page .mx-b:hover{background:var(--blue);color:var(--white)}
@media (max-width:760px){ .mx-card{padding:36px 24px 28px;border-radius:20px} .mx-t{font-size:28px} }
@media (prefers-reduced-motion:reduce){ .mx,.mx-card{transition:none} }
