/* Kazbo, direction B "Blackout". Tokens and rules: DESIGN.md. Body + accent faces: fonts.css (loaded first). */
/* Display: Bigger Display (Igor Marsicevic / Thunder Studio), self-hosted. One weight, so it answers to any. */
@font-face { font-family: "Bigger Display"; src: url("/assets/fonts/BiggerDisplay.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: block; }
:root {
  --night: #0E0E0E;
  --ink-2: #161616;
  --line: #2A2A2A;
  --bone: #EDEEE5;
  --muted: #8A8780;
  --accent: #EDEEE5; /* Kaz 2026-11-09: monochrome, black + off-white only */
  --gutter: clamp(16px, 2.2vw, 40px);
  --small: clamp(10px, 1vh, 12px);   /* the opening screen's small type (round 10, the mock) */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Bigger Display", Impact, sans-serif;
  /* --text, --ivy-display, --ivy-w, --ivy-w-light: fonts.css */
  /* All text is one ink laid on with an exclusion blend (Kaz, 2026-11-10): light over the black page, near-black over
     the off-white, colour-inverted over photos and video. The blend is set on the text's own layer (.xb list below) so
     it reaches whatever is really behind it. THE TEXT COLOUR KNOB (round 11, Kaz: "a more off-white feel"): was pure
     white (#F1F1F1 on the black page); #FBFCF2 lands exactly on the off-white surface #EDEEE5 there (16.5:1) and on
     rgb(21, 20, 36) over the off-white page (15.5:1). home-gl.js reads it too. #EDEEE5 itself = a greyer #E1E2DA. */
  --ink: #FBFCF2;
  --hair: rgba(255, 255, 255, .18);   /* hairlines inside a blended text layer (exclusion turns them light/dark) */
  color-scheme: dark;
}
/* the light palette: the two colours swapped (class set before the first paint by THEME_BOOT, layout.ts).
   The raised surface and hairline are mirrored the same way (text is white + exclusion in both). */
.theme-invert {
  --night: #EDEEE5;
  --bone: #0E0E0E;
  --accent: #0E0E0E;
  --ink-2: #E5E6DD;
  --line: #D1D2C9;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--ink); font: 400 17px/1.5 var(--text); -webkit-font-smoothing: antialiased; text-transform: uppercase; }
/* Kaz: everything uppercase. Long reading text stays in sentence case for legibility. */
.case-lede, .case-text p, .fact p, .fact li, .contact-line, .contact-mail { text-transform: none; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--night); }
/* the exclusion layers: every block of text sits in one of these (see --ink) */
.mono > svg, .menu-list, .menu-foot, .hint, .hero-top, .hero-side, .foot, .works-label, .works-list, .wm-contact > span, .poster b,
.open-title, .open-sub, .open-ink, .open-label, .case-intro, .case-text, .blk-fig figcaption, .next-label, .next-text, .lost, .about-head, .about-body, .about-next { mix-blend-mode: exclusion; }
/* Ivy Presto italic, mixed into words with _markers_ (src/mix.ts). Keeps the case it was typed in. */
.ivy { font-family: var(--ivy-display); font-style: italic; font-weight: var(--ivy-w); text-transform: none; }
.ivy.ivy-b { font-weight: var(--ivy-w-bold); }    /* __a__ (src/mix.ts, round 11) */
.ivy.ivy-l { font-weight: var(--ivy-w-light); }   /* ~a~ */
.hv { font-family: var(--text); font-style: italic; }   /* Helvetica Neue italics (src/mix.ts, 2026-11-12): *a* 400, ^a^ 300 */
.hv.hv-i { font-weight: 400; }
.hv.hv-l { font-weight: 300; }
.arw { display: inline-block; width: .95em; height: .8em; vertical-align: -.04em; overflow: visible; }
/* the liquid text reveal (site.js REVEAL, after bleibtgleich.dev): text with data-reveal stays hidden until site.js
   has split it into lines and put the blur on (or, if the script never runs, shows after 3 s) */
html.rv [data-reveal]:not([data-rv]) { visibility: hidden; animation: rv-failsafe 0s 3s forwards; }
@keyframes rv-failsafe { to { visibility: visible; } }
html.rv-js [data-reveal]:not([data-rv]) { animation: none; }   /* the script runs: it shows them itself */
.rv-lines { display: block; }
.rv-line { display: block; position: relative; }
.rv-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #000; mix-blend-mode: exclusion; padding: 10px 14px; font-weight: 700; text-decoration: none; border-radius: 3px; }
.skip:focus { top: 12px; }

.label { font: 700 12px/1.2 var(--text); text-transform: uppercase; letter-spacing: .04em; }
.idx { font: 600 11px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Lenis smooth scroll (from lenis.css 1.3.27) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- placeholder posters (projects without a cover yet): one solid colour each ---------- */
.poster { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; container-type: inline-size; }
.poster b { font: 700 clamp(20px, 8cqi, 150px)/.92 var(--text); color: var(--ink); letter-spacing: -.03em; text-align: center; padding: 0 6%; text-wrap: balance; }
/* Kaz 2026-11-09: two colours only. Every stand-in poster is off-white with black type. */
.poster-1, .poster-2, .poster-3, .poster-4, .poster-5 { background: var(--bone); color: var(--night); }

/* ---------- top bar ---------- */
.topbar { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); pointer-events: none; }
.topbar > * { pointer-events: auto; }
.is-404 .topbar, .is-about .topbar { background: linear-gradient(var(--night) 55%, transparent); }
.past-hero .topbar { background: linear-gradient(var(--night) 55%, transparent); }
/* Kaz's wide mark keeps the page-colour backing: crisp over media in either palette, with no new artwork. */
.mono { display: grid; place-items: center; width: auto; height: 40px; padding: 4px; border-radius: 3px; background: var(--night); color: var(--ink); text-decoration: none; transition: transform .2s var(--ease); }
.mono > svg { display: block; width: auto; height: 32px; }
.mono:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; box-shadow: 0 0 0 5px var(--night); }
.mono:hover { transform: scale(1.06); }
@media (max-width: 760px) { .mono > svg { height: 24px; } }
.burger { width: 46px; height: 32px; border: 0; border-radius: 3px; background: var(--accent); display: grid; place-content: center; gap: 5px; cursor: pointer; transition: transform .2s var(--ease); }
.burger:active { transform: scale(.94); }
/* the palette switch (look C, Kaz's pick 2026-11-13; site.js THEME): one word, the palette it switches to, in Helvetica
   Neue Bold caps with a small ring that fills from the bottom on hover / focus (the pour, in miniature). No visible box
   on the page: like the K it keeps a page-colour backing, which only shows over media (the fixed top bar can't blend
   with the page behind it); the word itself is white with the exclusion blend. In the top bar on desktop, in the menu
   footer at every size (on phone only there: the top bar keeps just the K and the burger). The accessible name is the
   visible word with a hidden "Switch to" in front ("Switch to Light"), so voice control's "click Light" finds it; the
   word that doesn't apply is display:none, so the name follows the palette with no script. */
.topbar-end { display: flex; align-items: center; gap: 8px; }
.theme { --sw-ring: var(--bone); position: relative; display: inline-grid; place-items: center; height: 32px; padding: 0 12px; border: 0; border-radius: 3px; background: var(--night); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .2s var(--ease); }
/* 40 px tall hit area around the 32 px button (the burger sits 8 px away, so only 2 px of that sideways) */
.theme::before { content: ""; position: absolute; inset: -4px -2px; }
.theme:active { transform: scale(.94); }
/* the K's double ring: off-white line + a page-colour halo, so it reads over video and both pages */
.theme:focus-visible { outline: 2px solid var(--sw-ring); outline-offset: 3px; box-shadow: 0 0 0 5px var(--night); }
.theme-menu { --sw-ring: var(--ink); background: none; padding: 0; }
.theme-menu:focus-visible { box-shadow: none; }
.sw-word { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); mix-blend-mode: exclusion; font: 700 11px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
/* the menu footer is one exclusion layer already */
.theme-menu .sw-word { mix-blend-mode: normal; font-size: 12px; }
.sw-to-d, .theme-invert .sw-to-l { display: none; }
.theme-invert .sw-to-d { display: inline; }
.sw-vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sw-mark { position: relative; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; overflow: hidden; }
.sw-mark::after { content: ""; position: absolute; inset: 0; background: currentColor; transform: translateY(100%); transition: transform .45s var(--ease); }
@media (hover: hover) { .theme:hover .sw-mark::after { transform: translateY(0); } }
.theme:focus-visible .sw-mark::after { transform: translateY(0); }
@media (hover: hover) { .theme:hover :is(.sw-to-l, .sw-to-d) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; } }
@media (max-width: 760px) { .theme-top { display: none; } }
@media (prefers-reduced-motion: reduce) { .sw-mark::after { transition: none !important; } }
/* going from page to page (2026-11-11, site.js ARRIVE): a cross-document view transition. The page that is left
   fades out over the new one, whose opening screen has already put the cover where the card was (so the two
   match); the new page then grows it. Browsers without it navigate as usual; reduced motion: no transition. */
@view-transition { navigation: auto; types: kz-nav; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
html:active-view-transition-type(kz-nav)::view-transition-old(root) { animation: kz-vt-out var(--vt-out, 340ms) cubic-bezier(.4, 0, .2, 1) both; }
html:active-view-transition-type(kz-nav)::view-transition-new(root) { animation: none; }
@keyframes kz-vt-out { to { opacity: 0; } }
/* the pour: a view transition whose new picture is revealed by an animated clip-path (no default cross-fade) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-group(root) { animation: none; }
.burger span { display: block; width: 20px; height: 1.5px; background: var(--night); transition: transform .3s var(--ease); }
.menu-open .burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- menu ---------- */
.menu { position: fixed; inset: 0; z-index: 30; background: var(--night); display: grid; grid-template-rows: 1fr auto; padding: 84px var(--gutter) 24px; opacity: 0; transition: opacity .3s var(--ease); }
.menu[hidden] { display: none; }
.menu.is-in { opacity: 1; }
.menu-media { position: absolute; inset: 0; pointer-events: none; }
.menu-cover { position: absolute; inset: 0; opacity: 0; transition: opacity .35s var(--ease); }
.menu-cover.on { opacity: .32; }
.menu-list { position: relative; display: flex; flex-direction: column; justify-content: center; gap: clamp(4px, 1vh, 10px); }
/* 2026-11-10: the items liquid-reveal when the menu opens (site.js); text stays white, so hover nudges the item
   instead of greying the others */
.menu-list a { display: flex; align-items: baseline; gap: 16px; width: fit-content; text-decoration: none; font: 400 clamp(39px, 8.1vh, 92px)/.94 var(--display); text-transform: uppercase; transition: transform .25s var(--ease); }
.menu-list a:hover, .menu-list a:focus-visible { transform: translateX(.12em); }
.menu-home + .menu-home { margin-top: -8px; }   /* About sits under Home (2026-11-11) */
.menu-home { text-transform: uppercase; font-size: clamp(18px, 2.6vh, 24px) !important; font-family: var(--text) !important; font-weight: 700 !important; letter-spacing: .04em; margin-bottom: 10px; }
.menu-foot { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; font: 700 12px/1 var(--text); text-transform: uppercase; letter-spacing: .04em; }
body.menu-open { overflow: hidden; }

/* ---------- shared link rows ---------- */
.links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font: 700 12px/1 var(--text); text-transform: uppercase; letter-spacing: .04em; }
.links a, .links .copy { text-decoration: none; color: inherit; background: none; border: 0; padding: 4px 0; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; text-underline-offset: 3px; }
.links a:hover, .links .copy:hover { text-decoration: underline; }
.copy.copied::after { content: " · copied"; }

/* ---------- home hero ---------- */
.hero { height: calc(200svh + var(--hero-extra, 0px)); }   /* --hero-extra: site.js HERO_EXTRA_NOTCHES */
.stage { position: sticky; top: 0; height: 100svh; min-height: 460px; overflow: hidden;
  /* the multiply mask makes its black a touch darker than the page; lighten keeps the page's black exactly,
     so the hero's edge never shows against the work section */
  mix-blend-mode: lighten; }
.reel { position: absolute; inset: 0; background: var(--night); }
.reel-item { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease); }
.reel-item.on { opacity: 1; }
.reel .poster { grid-template-rows: 50% 50%; }
.reel .poster b { font-size: clamp(56px, 12vw, 200px); }
/* black layer with the wordmark cut out: multiply keeps black black and lets white show the reel */
.mask { position: absolute; left: 0; right: 0; bottom: 0; top: 50%; background: var(--night); mix-blend-mode: multiply; display: grid; place-items: center; will-change: top; }
/* act two: JS slices the word into horizontal bands; bands near the top edge stretch and smear */
.word { position: relative; }
.word-base { display: block; }
.word.is-sliced .word-base { visibility: hidden; }
.band { visibility: hidden; }
.word.is-sliced .band { visibility: visible; }
.band { position: absolute; left: 0; top: 0; width: 100%; display: block; white-space: nowrap; will-change: transform; pointer-events: none; }
.word { white-space: nowrap; font: 400 min(27vw, 40vh)/.8 var(--display); text-transform: uppercase; color: #fff; letter-spacing: .01em; will-change: transform; user-select: none; transform-origin: 50% 50%; }
.seam { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--accent); display: none; }   /* removed (Kaz, 2026-11-09); SEAM in site.js brings it back */
.hint { position: absolute; left: 50%; top: 88%; transform: translate(-50%, -50%); font: 700 var(--small) / 1 var(--text); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
/* ---- the opening screen per Kaz's mock (2026-11-10): "Creative Director", the about / contact / work row, a small
   SCROLL under the name. Proportions measured on the mock (2000x986): title centre 31 % down, cap height ~5.6 % of
   the height; the row's baseline 45 % down, centres at 27 / 50 / 73 % of the width; SCROLL centred 88 % down. */
.hero-top { position: absolute; inset: 0 0 50%; pointer-events: none; --ht: min(7.6vh, 7.3vw); }
.hero-title { position: absolute; left: 50%; top: 62%; transform: translate(-50%, -50%); margin: 0; white-space: nowrap;
  font: 400 var(--ht)/1 var(--text); letter-spacing: -.04em; text-transform: none; }
/* 2026-11-13 (Kaz's markup: "one line small"): the admin's tagline, one small line centred under "Creative Director",
   in the side columns' text style and size; it hangs from the title's line box (--ht), clear of the row of links */
.hero-sub { position: absolute; left: 50%; top: calc(62% + var(--sub-y, .66) * var(--ht)); transform: translateX(-50%); margin: 0;
  max-width: calc(100% - 2 * var(--gutter)); white-space: nowrap; text-align: center;
  font: 400 clamp(13px, 1.6vh, 18px)/1.3 var(--text); text-transform: uppercase; letter-spacing: .01em; }
/* round 10 (weights measured on the mock, DESIGN.md "Type weights"): the title's serif letters are the default weight (.ivy, Ivy Presto Regular since 2026-11-12), the
   big links are Light */
.hero-nav .ivy { font-weight: var(--ivy-w-light); letter-spacing: .05em; }
.hero-nav { position: absolute; left: 15%; right: 15%; bottom: max(26px, 7.2%); display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; align-items: baseline; }
.hero-nav a { pointer-events: auto; text-decoration: none; text-transform: none; font: 400 min(5.7vh, 5.4vw)/1 var(--text); letter-spacing: 0; padding: 4px 6px; }
.hero-nav a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
/* ---- the two columns beside KAZBO (Kaz, 2026-11-11: "fill white space"; words in src/content/hero-side.ts). site.js
   placeSide() sets each column's box from the wordmark's resting place: .is-beside = beside the name, from just under
   the seam down to its baseline, mirrored (left column set flush right against the K, right column flush left against
   the O), at most 280 px wide; .is-under = a compact pair under the name (narrow windows, phone). data-fit drops
   lines when a column runs out of height: 1 = the [data-drop="1"] ones (tagline, work link), 2 = the optional names too. The CSS boxes below are only the no-script guess. */
.hero-side { position: absolute; inset: 0; pointer-events: none; font: 400 var(--side) / 1.3 var(--text); text-transform: uppercase; letter-spacing: .01em; --side: clamp(10px, 1.2vh, 13px); }
.side { position: absolute; top: 54%; height: 24%; width: min(14%, 280px); display: flex; flex-direction: column; justify-content: space-between; gap: 1.2em; }
.side-l { right: calc(82% + 24px); text-align: right; align-items: flex-end; }
.side-r { left: calc(82% + 24px); }
.side-label { font: inherit; font-weight: 700; letter-spacing: .02em; margin-bottom: .55em; }
.side .ivy { letter-spacing: .02em; }
.side-link { pointer-events: auto; align-self: flex-start; font-weight: 700; text-decoration: none; padding: 2px 0; }
.side-link:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.side-link .arw { margin-left: .15em; }
.side[hidden], .side[data-fit="1"] [data-drop="1"], .side[data-fit="2"] [data-drop] { display: none; }
/* compact, under the name: the names run on in one wrapped line, separated by a thin slash; no tagline, no link */
.is-under .side { justify-content: flex-start; height: auto; }
.is-under .side-l { text-align: left; align-items: flex-start; }
.is-under .side-link { display: none; }
.is-under .side-list { display: flex; flex-wrap: wrap; }
.is-under .side-list li:not(:last-child)::after { content: "/"; padding: 0 .4em; font-weight: 400; }
.is-under .side[data-fit="2"] .side-list li:nth-last-child(1 of :not([data-drop]))::after { content: none; }
/* the opening screen's small type (small SCROLL, footer row): the mock's ~10 px at 986 px tall */
.hero .foot .links { font-size: var(--small); letter-spacing: 0; }
.foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; padding: 0 var(--gutter) max(clamp(14px, 2vh, 26px), env(safe-area-inset-bottom)); }

/* ---------- works drum (after auge-xp /works, made ours) ----------
   Without JS (or with reduced motion) this is a plain list. site.js adds .is-drum, pins the stage and
   places every name on a turning drum around the centre, with the active cover in the middle. */
.works { position: relative; background: var(--night); border-top: 2px solid var(--accent); }
.works-stage { position: relative; padding: clamp(64px, 10vh, 120px) var(--gutter); }
.works-label { margin-bottom: 28px; }
.works-media, .works-rail { display: none; }
.works-list { display: grid; }
.wi { border-bottom: 1px solid var(--hair); }
.wi > a, .wi-static { display: grid; grid-template-columns: 1fr; gap: 4px 16px; align-items: baseline; padding: 16px 0; text-decoration: none; }
.wi-name { font: 400 clamp(39px, 6.5vw, 105px)/.83 var(--display); text-transform: uppercase; transition: color .2s; }
.wi-meta { grid-column: 1; font: 700 12px/1.3 var(--text); letter-spacing: .04em; }
.wi-mail { text-transform: none; font-size: 14px; }
.wi-links { padding: 0 0 18px; }

.works.is-drum { height: calc(100svh + (var(--n) - 1) * var(--step, 62svh)); background: transparent; border-top: 0; }
/* margin-top is set from site.js so the stage rises into the name. The stage is transparent and blends in
   difference mode: where it crosses the letters the colours invert; over the plain black page it looks normal. */
.is-drum .works-stage { mix-blend-mode: difference; }
.is-drum .works-stage { position: sticky; top: 0; height: 100svh; min-height: 520px; padding: 0; overflow: hidden; }
.is-drum .works-label { position: absolute; left: var(--gutter); bottom: 26px; margin: 0; z-index: 3; }
.is-drum .works-media { display: block; position: absolute; left: 50%; top: 50%; width: min(44vw, 72svh * 1.4, 700px); aspect-ratio: 16 / 10; transform: translate(-58%, -50%);
  /* soft drum curve on the frame, top and bottom edges bow outward */
  border-radius: 50% / 7%; overflow: hidden; background: var(--night); z-index: 1; }
.wm { position: absolute; inset: 0; overflow: hidden; clip-path: inset(100% 0 0 0); will-change: clip-path; }
.wm > *, .wm .fill { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.wm .poster b { font-size: clamp(26px, 4.2vw, 76px); }
.wm-contact { background: var(--accent); color: var(--ink); display: grid; align-content: center; justify-items: start; gap: 12px; padding: 0 8%; }
.wm-contact > * { position: static; inset: auto; width: auto; height: auto; }
.wm-contact-h { font: 400 clamp(61px, 9.8vw, 163px)/.83 var(--display); text-transform: uppercase; }
.wm-contact-line { font: 700 clamp(13px, 1.1vw, 16px)/1.35 var(--text); max-width: 34ch; text-transform: none; }

.is-drum .works-list { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.is-drum .wi { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 50%; }
.is-drum .wi > a, .is-drum .wi-static { display: grid; grid-template-columns: auto; gap: 12px; padding: 0; white-space: nowrap; pointer-events: auto; }
.is-drum .wi .idx { grid-row: 1; align-self: start; padding-top: .3em; transition: color .2s; }
/* laid out at the centred (largest) size and scaled down by site.js, so the centred name is pixel-sharp */
/* Bigger Display: caps are 0.79 em, ascent 0.8, descent 0.2. Line-height .6 + padding-top .19em makes the box hug
   the caps exactly, so the name texture (rasterised at the box size) never clips and the caps sit on the box centre. */
.is-drum .wi-name { font-size: calc(clamp(22px, 2.3vw, 36px) * 2.83); line-height: .6; padding-top: .19em; }
.is-drum .wi-meta, .is-drum .wi-links { grid-column: 1; opacity: 0; transition: opacity .25s; font-size: 22px; }
.is-drum .wi-mail { font-size: 26px; }
.is-drum .wi-links { padding: 10px 0 0; font-size: 22px; gap: 14px; pointer-events: none; }
.is-drum .wi.on .wi-meta, .is-drum .wi.on .wi-links { opacity: 1; }
.is-drum .wi.on .wi-links { pointer-events: auto; }
.is-drum .wi-contact > a { grid-template-columns: auto; }

.is-drum .works-rail { display: flex; position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 3; flex-direction: column; align-items: center; gap: 14px; }
.wr-count { font: 600 11px/1 ui-monospace, Consolas, monospace; writing-mode: vertical-rl; letter-spacing: .1em; mix-blend-mode: exclusion; }
.wr-count b { font-weight: 600; }
.wr-track { position: relative; width: 2px; height: 28svh; background: var(--line); }
.wr-track i { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 0)); }

.site-foot { position: relative; height: 72px; border-top: 1px solid var(--line); }

/* ---------- WebGL home (home-gl.js) ----------
   <html class="gl"> is set in <head> when WebGL2 is there and motion is allowed. The canvas draws everything;
   the page is fixed (scroll is virtual) and the list rows stay as transparent hit areas that follow the
   drawn names, so links, hover, focus and screen readers work. Media elements shrink to a hidden box so they
   still load and play as texture sources. */
.gl-canvas { display: none; }
.gl .gl-canvas { display: block; position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
/* 2026-11-10: the page is pinned here, not <main>: a fixed, z-indexed <main> was its own stacking context, so the
   exclusion blend of the text inside it could not reach the canvas. Now the fixed text layers (hint, footer row,
   label, top bar) sit straight in the root stacking context, next to the canvas. */
html.gl, .gl body.is-home { height: 100%; overflow: hidden; overscroll-behavior: none; }
.gl body.is-home { touch-action: none; }
.gl .is-home .hero { height: auto; }
.gl .is-home .stage { position: static; height: auto; min-height: 0; overflow: visible; mix-blend-mode: normal; }
.gl .is-home .reel, .gl .is-home .is-drum .works-media { display: block; position: fixed; left: 0; top: 0; width: 4px; height: 4px; opacity: 0; overflow: hidden; pointer-events: none; transform: none; border-radius: 0; }
.gl .is-home .reel-item { opacity: 1; transition: none; }
.gl .is-home .is-drum .wm { clip-path: none; }
.gl .is-home .mask, .gl .is-home .seam, .gl .is-home .works-rail, .gl .is-home .site-foot { display: none; }
.gl .is-home .hint, .gl .is-home .hero-top, .gl .is-home .hero-side { position: fixed; }
/* The fallback shows the whole name; lift it a little to leave the same lower-layer SCROLL clear beneath it. */
@media (min-width: 761px) { html:not(.gl) .is-home .mask { padding-bottom: 8svh; } }
.gl .is-home .hero .foot { position: fixed; z-index: 2; }
.gl .is-home .works.is-drum { position: static; height: auto; }
.gl .is-home .is-drum .works-stage { position: static; height: auto; min-height: 0; overflow: visible; mix-blend-mode: normal; }
.gl .is-home .is-drum .works-label { position: fixed; opacity: 0; }
.gl .is-home .is-drum .works-list { position: fixed; inset: 0; mix-blend-mode: normal; }
.gl .is-home .is-drum .wi { transform-origin: 0 0; visibility: hidden; }
.gl .is-home .is-drum .wi, .gl .is-home .is-drum .wi * { color: transparent !important; text-shadow: none !important; }
.gl .is-home .is-drum .wi > a { cursor: pointer; }
/* round 4: the centred project's body text, drawn by home-gl.js beside the frame; this is its transparent DOM twin
   (sizes set from JS so it lands on the drawn text). Outside the WebGL home it stays hidden (the link's
   aria-describedby still reads it). */
.works-bodies { display: none; }
.gl .is-home .works-bodies { display: block; position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.gl .is-home .wb { position: absolute; left: 0; top: 0; visibility: hidden; color: transparent; pointer-events: auto; font-family: var(--text); cursor: pointer; }
/* round 6: every line is placed (top, size, line height, width) by home-gl.js on its drawn copy */
.gl .is-home .wb p { position: absolute; left: 0; margin: 0; }
.gl .is-home .wb-title, .gl .is-home .wb-meta, .gl .is-home .wb-cue { text-transform: uppercase; }
.gl .is-home .wb-sum { text-transform: none; }
/* no darkening band under the top bar on the WebGL home: the top edge is where the stretch and blur play */
.gl .is-home.past-hero .topbar { background: none; }

/* ---------- loading screen (home-gl.js draws it; A2) ----------
   Shown only for the WebGL home (html.gl). Starts as a plain off-white screen so the first paint is already
   the loader; the canvas takes over as soon as the script runs. If no script ever removes it, it hides itself. */
.loader { display: none; }
.gl .loader { display: block; position: fixed; inset: 0; z-index: 60; background: var(--bone); animation: ld-failsafe .3s 12s forwards; }
.gl .loader.is-live { background: none; }
.gl .loader.is-done { display: none; }
.ld-top .loader { pointer-events: none; }
.loader-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes ld-failsafe { to { opacity: 0; visibility: hidden; } }
/* what the loader covered fades in as it hands over (an animation overrides the inline opacity the scroll sets,
   and with no fill it gives the property back when it ends) */
.ld-top .topbar { animation: ld-in .6s var(--ease) backwards; }
.ld-done .is-home .hero .foot { animation: ld-in .7s var(--ease) backwards; }
@keyframes ld-in { from { opacity: 0; } }

/* ---------- liquid menu curtain (site.js LIQUID.menu) ---------- */
.goo-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.goo { display: none; position: fixed; inset: 0; z-index: 35; pointer-events: none; filter: url(#kz-goo); overflow: hidden; }
.goo.on { display: block; }
.goo i { position: absolute; top: -14%; height: 128%; width: calc(100% / 7 + 2px); background: var(--bone); border-radius: 0 0 50% 50% / 0 0 22% 22%;
  transform: translateY(-104%); transition: transform .4s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.goo.down i { transform: translateY(0); }
.goo i:nth-child(2n) { height: 136%; }
.goo i:nth-child(3n) { height: 122%; }

/* ---------- case page (2026-11-11, after auge-xp.com's project pages; DESIGN.md "Case page") ----------
   The opening screen: the cover fills the stage, clipped to the top --seam of it; the name sits under it. With JS
   (html.kz-cut, site.js CASE) the name moves onto the seam and the clip becomes an SVG clipPath: the band above the
   seam plus the name's letters, so below the seam the letters are windows onto the cover (KAZBO on the home hero).
   Without JS, or with reduced motion, it stays like this: the name whole, under the cover. */
.case { --seam: 46%; }
.open { position: relative; height: calc(100svh + var(--pin, 0px)); min-height: 520px; }
/* sticky makes the stage its own stacking context, so the white-exclusion text inside needs the page colour under it
   here (without it the footer row reads white on the off-white palette) */
.open-stage { position: sticky; top: 0; height: 100svh; min-height: 520px; overflow: hidden; background: var(--night); }
.open-media { position: absolute; inset: 0; clip-path: inset(0 0 calc(100% - var(--seam)) 0); background: var(--ink-2); }
.open-media.is-poster { background: none; }
.open-in { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }
.open-in .fill { object-position: 50% var(--open-y, 40%); }
.open-in .poster b { display: none; }   /* the name is already there, huge */
/* the old-TV look (crt.js, DESIGN.md "Old TV"): a canvas laid over the cover draws it curved; the <video>/<img> stays
   under it as the source and the fallback */
.open-in .crt { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.open-title { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--seam) + 3svh); margin: 0; text-align: center;
  font: 400 var(--name, clamp(64px, 13vw, 30svh))/.84 var(--display); text-transform: uppercase; letter-spacing: .01em; padding-top: .1em; text-wrap: balance; }
.kz-cut .open-title { color: transparent; mix-blend-mode: normal; }   /* the SVG letters show it; this stays for selection and screen readers */
.kz-cut .open-title.is-one { white-space: nowrap; }
.open-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* the second line (DESIGN.md "Case page", OPEN.sub* in site.js): the title again in the hero's mix, centred under the
   name on the page colour; site.js sizes it and puts it under the name's baseline. Without JS: above the label. */
.open-sub { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 11svh; margin: 0; text-align: center; white-space: nowrap;
  font: 700 min(7.8vh, 9.2vw)/1.1 var(--text); letter-spacing: -.04em; text-transform: none; pointer-events: none; }   /* 2026-11-12: Helvetica Neue 75 Bold, bigger */
/* the see-through name's outline / veil (OPEN.outline, OPEN.lift) */
.open-ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; color: var(--ink); }
.open-label { position: absolute; left: 50%; bottom: max(clamp(14px, 2vh, 26px), env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0; padding: 4px 0;
  font-size: var(--small); letter-spacing: .02em; white-space: nowrap; }
.open .foot .links { font-size: var(--small); letter-spacing: 0; }
/* round 11 (Kaz: "follow all the way down"): with JS the second line leaves the stage and follows the reader: fixed,
   placed and scaled by site.js (OPEN.follow: rides up with the opening, shrinks, rests between the K and the controls
   to the end of the page). It replaced the small docked name. Under the menu (z 30) and the top bar (z 40). */
.open-sub.is-follow { position: fixed; z-index: 29; left: 0; top: 0; right: auto; bottom: auto; width: max-content; transform-origin: 50% 0; will-change: transform; }

/* arriving from a project link (site.js ARRIVE, layout.ts ARRIVE_BOOT): the first frame shows the cover where the card
   was; the failsafe hands everything back after 3 s if the script never runs */
.kz-arrive .open-media { clip-path: inset(var(--a-t) var(--a-r) var(--a-b) var(--a-l) round var(--a-rad)); }
.kz-arrive .open-in { transform: translate(var(--a-tx), var(--a-ty)) scale(var(--a-s)); }
.kz-arrive-rise .open-media { clip-path: inset(0); }
.kz-arrive-rise .open-in { transform: none; }
.kz-arrive .open-title, .kz-arrive .open-label, .kz-arrive .open .foot, .kz-arrive .topbar { opacity: 0; }
.kz-arrive .open-media, .kz-arrive .open-in, .kz-arrive .open-title, .kz-arrive .open-label, .kz-arrive .open .foot, .kz-arrive .topbar { animation: kz-arrive-fs 0s 3s forwards; }
@keyframes kz-arrive-fs { to { clip-path: inset(0 0 calc(100% - var(--seam)) 0); transform: none; opacity: 1; } }

/* the intro: the summary big, then small columns (year + link, client, deliverables) */
.case-intro, .case-text { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 28px); padding: clamp(72px, 15vh, 170px) var(--gutter) clamp(40px, 8vh, 100px); }
.case-intro > .label { grid-column: 2 / -1; margin-bottom: 16px; }
.case-lede { grid-column: 2 / span 10; font: 400 clamp(24px, 3.5vw, 64px)/1.1 var(--text);   /* auge: 3.5vw over 80vw */ letter-spacing: -.02em; text-wrap: pretty; }
.case-lede .ivy { letter-spacing: 0; }
.case-facts { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 36px clamp(32px, 6vw, 110px); margin-top: clamp(48px, 10vh, 120px); }
.fact { display: grid; gap: 10px; align-content: start; justify-items: start; min-width: 140px; }
.fact p, .fact li { font: 400 15px/1.4 var(--text); }
.case-text { padding-top: 0; padding-bottom: clamp(48px, 15vh, 170px); }
.blk + .case-text { margin-top: calc(6vh - var(--blk-y)); }   /* auge: the text sits ~6vh under the media before it */
.case-text > .label { grid-column: 4 / span 2; padding-top: .35em; }   /* auge: label at ~25vw, body at 42vw, 32.6vw wide */
.case-text-body { grid-column: 6 / span 5; max-width: max(32.6vw, 24em); font: 400 clamp(16px, .45vw + 12px, 20px)/1.55 var(--text); }
.case-text-body p { max-width: 36em; text-wrap: pretty; }
.case-text-body p + p { margin-top: 1em; }
.pill { display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; font: 700 12px/1 var(--text); text-transform: uppercase; letter-spacing: .04em; transition: background .15s, color .15s, border-color .15s; }
.pill:hover { background: var(--ink); color: #000; }

/* the gallery blocks (media.layout; DESIGN.md "Case page blocks") */
/* Sizes measured on auge-xp.com's project pages (Maison Auge, Viru, Don Molinico at 1440x900, 2026-11-11; evidence
   .reanimate/auge-case/, table in DESIGN.md "Case page blocks"): media sit inside --case-m side margins (8.4vw), square
   corners, ~35vh of page between blocks; on phone every item is one column, 89.7vw wide. */
.case { --case-m: 8.4vw; --case-gap: 1vw; --blk-y: clamp(56px, 17.5vh, 200px); }
.blk { position: relative; padding: var(--blk-y) var(--case-m); }
.blk-fig { position: relative; margin: 0; }
.blk-frame { position: relative; overflow: hidden; background: var(--ink-2); border-radius: 50% / var(--bend, 0%); }
.blk-in { position: absolute; inset: 0; }
.blk-fig figcaption { margin-top: 12px; }
.blk-full { padding-inline: 0; }
.blk-full figcaption { padding-inline: var(--gutter); }
/* wide = auge's centred single: 66.3vw */
.blk-wide .blk-fig { width: min(100%, 66.3vw, calc(88svh * var(--ar, 1.5))); margin-inline: auto; }
/* tall = a portrait on its own: the width of auge's large pair frame (41.1vw), held to the screen height */
.blk-tall .blk-fig { width: min(100%, 41.1vw, calc(88svh * var(--ar, .75))); margin-inline: auto; }
/* pair = auge's staggered pair: a small frame (24.2vw) on one margin and a large one (41.1vw) on the other, tops
   level; the next pair swaps sides. A very tall picture is held to ~the screen height. */
.blk-pair { display: flex; justify-content: space-between; align-items: flex-start; }
.blk-pair .blk-fig { flex: none; }
.blk-pair .is-a, .blk-pair.is-flip .is-b { width: min(24.2vw, calc(70svh * var(--ar, 1))); }
.blk-pair .is-b, .blk-pair.is-flip .is-a { width: min(41.1vw, calc(92svh * var(--ar, 1))); }
.blk-pair.is-one { justify-content: center; }
.blk-pair.is-one .is-a { width: min(41.1vw, calc(92svh * var(--ar, 1))); }
/* set = equal frames in a row inside the margins with auge's 1vw gap: two of them are auge's two-up (41.1vw each) */
.blk-set { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: var(--case-gap); align-items: start; }
.blk-set[data-n="1"] { --cols: 1; } .blk-set[data-n="2"] { --cols: 2; } .blk-set[data-n="3"] { --cols: 3; }
.blk-set[data-n="1"] .blk-fig { width: min(100%, 41.1vw); margin-inline: auto; }
.blk-set .blk-frame { background: none; }   /* product shots on transparent backgrounds sit straight on the page */
/* the motion (site.js CASE): media wipe up into their frame as they arrive (the home card's wipe), settling from a
   slight zoom; while the page scrolls fast the frames bow (--bend, auge's bend) and pairs drift (parallax) */
.kz-blk .blk-frame { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1); }
.kz-blk .blk-in { transform: scale(1.2); transform-origin: 50% 100%; transition: transform 1.6s cubic-bezier(.2, .8, .2, 1); }
.kz-blk .is-in .blk-frame { clip-path: inset(0 0 0 0); }
.kz-blk .is-in .blk-in { transform: none; }

/* next project: label, its cover, its name + type (auge's ending) */
.next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 31.3vw) minmax(0, 1fr); align-items: center; column-gap: clamp(16px, 2vw, 36px);
  padding: clamp(90px, 20vh, 220px) var(--gutter) clamp(110px, 24vh, 260px); text-decoration: none; }
.next-label { justify-self: end; }
.next-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-2); }
.next-media .poster b { font-size: clamp(22px, 3vw, 54px); }
.next-media > * { transition: transform .9s var(--ease); }
.next:hover .next-media > *, .next:focus-visible .next-media > * { transform: scale(1.04); }
.next-text { display: grid; justify-items: start; gap: 10px; }
.next-title { font: 400 clamp(38px, 4.4vw, 82px)/.84 var(--display); text-transform: uppercase; padding-top: .1em; text-wrap: balance; }
.case-title { font: 400 clamp(61px, 10.9vw, 196px)/.86 var(--display); text-transform: uppercase; padding-top: .1em; text-wrap: balance; }
.page-foot { position: relative; height: 72px; }
.lost { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: var(--gutter); }
.lost a { color: inherit; text-underline-offset: 3px; }

/* ---------- about (/about, Kaz's story, 2026-11-11; DESIGN.md "About") ----------
   A reading page: ABOUT across the width in Bigger Display, one of his sentences large under it (in the reading
   column), then the story in Helvetica Neue in one column of ~65 characters, a sticky label beside it, and the way on
   (work / contact) in the opening screen's big mixed type. Sentence case: the uppercase rule is for short text. */
.about-head, .about-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(24px, 4vw, 72px); padding-inline: var(--gutter); }
.about-head { row-gap: clamp(28px, 5vh, 64px); padding-top: clamp(88px, 13vh, 132px); padding-bottom: clamp(48px, 9vh, 112px); }
/* wide screens: ABOUT (as big as the height allows) with his sentence beside it, sitting on the same baseline */
.about-title { grid-column: 1 / -1; font: 400 min(30vw, 46svh)/.8 var(--display); text-transform: uppercase; letter-spacing: .01em; padding-top: .1em; margin-left: -.035em; }
.about-quote { grid-column: 2; max-width: 21em; font: 400 clamp(22px, 2.3vw, 40px)/1.14 var(--text); letter-spacing: -.02em; text-transform: none; text-wrap: balance; }
@media (min-width: 1100px) {
  .about-head { grid-template-columns: auto minmax(0, 1fr); }
  .about-title { grid-column: 1; }
  .about-quote { grid-column: 2; align-self: end; justify-self: end; max-width: 17em;
    /* last baseline on ABOUT's baseline: the title's box ends .1 of its size below its baseline, ours ~.3em */
    margin-bottom: calc(min(30vw, 46svh) * .1 - .3em); font-size: clamp(26px, 2.15vw, 44px); }
}
.about-quote .ivy { letter-spacing: 0; }
.about-body { padding-bottom: clamp(72px, 14vh, 160px); }
.about-label { grid-column: 1; align-self: start; position: sticky; top: 88px; padding-top: .45em; }
.about-text { grid-column: 2; max-width: 31em; font: 400 clamp(17px, .35vw + 14px, 20px)/1.62 var(--text); text-transform: none; }
.about-text p { text-wrap: pretty; hanging-punctuation: first; }
.about-text p + p { margin-top: 1.2em; }
.about-text .ivy { font-size: 1.08em; line-height: 1; }   /* Ivy Presto's x-height is smaller than Helvetica's */
.about-next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--hair); }
.about-next a { display: flex; align-items: baseline; gap: .25em; padding: clamp(36px, 8vh, 96px) var(--gutter); text-decoration: none; text-transform: none;
  font: 400 clamp(44px, 7.4vw, 132px)/1 var(--text); letter-spacing: -.02em; }
.about-next a + a { border-left: 1px solid var(--hair); }
.about-next .ivy { font-weight: var(--ivy-w-light); letter-spacing: .02em; }
.about-next .arw { width: .5em; height: .42em; transition: transform .25s var(--ease); }
.about-next a:hover .arw, .about-next a:focus-visible .arw { transform: translateX(.18em); }
.about-next a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .hero { height: calc(180svh + var(--hero-extra, 0px)); }
  /* phone: the three links spread to the gutters (left / centre / right) and everything scales with the width */
  .hero-top { --ht: min(6.2vh, 10.6vw); }
  /* phone: a touch smaller before it would wrap; wraps to two balanced lines only where even that can't fit */
  .hero-sub { font-size: clamp(11px, min(1.6vh, 3.3vw), 18px); white-space: normal; text-wrap: balance; width: max-content; }
  .hero-nav { left: var(--gutter); right: var(--gutter); }
  .hero-nav a { font-size: min(4.8vh, 8.1vw); }
  .hero-nav a:first-child { justify-self: start; }
  .hero-nav a:last-child { justify-self: end; }
  .foot { flex-direction: column; align-items: flex-start; }
  .is-drum .works-media { width: calc(100vw - 2 * var(--gutter)); transform: translate(-50%, -62%); }
  .is-drum .wi-name { font-size: calc(22px * 2.83); }
  .is-drum .works-rail { top: auto; bottom: 28px; transform: none; flex-direction: row; }
  .is-drum .wr-count { writing-mode: horizontal-tb; }
  .is-drum .wr-track { width: 22vw; height: 2px; }
  .wr-track i { transform-origin: left; transform: scaleX(var(--p, 0)); }
  .wi-links { padding-left: 0; }
  .case-intro > .label, .case-lede, .case-facts, .case-text > .label, .case-text-body { grid-column: 1 / -1; }
  .case-text > .label { margin-bottom: 14px; }
  .case-text-body { max-width: none; }
  .open-label { bottom: 64px; }   /* the footer row stacks on phone */
  /* phone (auge at 390 px): one column, every frame 89.7vw, ~2.4vh between the two of a pair, ~9.5vh between blocks */
  .case { --case-m: 5.1vw; --case-gap: 2.4svh; --blk-y: 4.75svh; }
  .blk-pair { flex-direction: column; gap: var(--case-gap); }
  .blk-pair .blk-fig, .blk-pair.is-flip .blk-fig, .blk-pair.is-one .is-a { width: min(100%, calc(80svh * var(--ar, 1))); }
  .blk-pair .is-b, .blk-pair.is-flip .is-b { align-self: flex-end; }
  .blk-wide .blk-fig, .blk-set[data-n="1"] .blk-fig { width: 100%; }
  .blk-tall .blk-fig { width: min(100%, calc(80svh * var(--ar, .75))); }
  .blk-set { --cols: 2 !important; gap: var(--case-gap) 2.6vw; }
  .blk-set[data-n="2"] { --cols: 1 !important; }
  .next { grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: 18px; text-align: center; }
  .next-label { justify-self: center; }
  .next-media { width: 100%; }
  .next-text { justify-items: center; }
  .menu-foot { flex-direction: column; align-items: flex-start; }
  .about-head, .about-body { grid-template-columns: minmax(0, 1fr); }
  .about-quote, .about-text, .about-label { grid-column: 1; }
  .about-title { font-size: min(49vw, 40svh); }   /* phone: ABOUT across the width */
  .about-label { position: static; margin-bottom: 20px; }
  .about-next { grid-template-columns: minmax(0, 1fr); }
  .about-next a + a { border-left: 0; border-top: 1px solid var(--hair); }
}

/* the light palette (inverted colours) for the DOM fallback hero and drum: the black-layer-with-letters trick needs the
   opposite blends there, and the difference-blended drum would wash out on an off-white page */
.theme-invert .stage { mix-blend-mode: darken; }
.theme-invert .mask { mix-blend-mode: screen; }
.theme-invert .word { color: #000; }
/* the white text's exclusion layer needs something under it inside the pinned stage: the page colour; darken keeps
   the off-white stage from covering the hero where it rises into the name */
.theme-invert .is-drum .works-stage { background: var(--night); mix-blend-mode: darken; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .hero { height: auto; }
  .stage { position: relative; }
  .hint { display: none; }
}
/* the first block after the opening rides up over the held stage's empty lower part, so it is already arriving while
   the surface rises (no dead zone between the name and the content); round 11: anchored on .open (the docked name
   it hung on is gone; the following line is put right after .open by site.js, so it is skipped) */
.kz-cut .open + :not(.open-sub), .kz-cut .open + .open-sub + * { margin-top: calc(-1 * min(24svh, var(--pin-up, 24svh))); position: relative; }

/* ---------- the opening screen's bottom: the logo row, the line under KAZBO, the bigger side text ----------
   Layout C of the 2026-11-12 trials (Kaz: "Hero C is the winner"; A and B are in commit 81d3e21). No SCROLL word: a
   hairline hangs from the foot of KAZBO towards the bottom row (a short piece of ink runs down it); the logos run
   between the footer row's two ends; the column labels are Ivy Presto italic headings. --fb = the footer's bottom padding. */
.hero { --fb: max(clamp(18px, 2.8vh, 34px), env(safe-area-inset-bottom)); --util: clamp(11px, 1.2vh, 13px); --lm-h: clamp(26px, 4vh, 48px); }
.hero .foot { padding-bottom: var(--fb); }
.hero-side { --side: clamp(13px, 1.6vh, 18px); font-size: calc(var(--side) * var(--side-k, 1)); }   /* site.js steps --side-k down where a column would not fit */
.side p, .side li { text-wrap: balance; }
.side.is-nw .side-top p, .side.is-nw .side-list li { white-space: nowrap; }   /* site.js: each name on one line where the column has room */
.side.is-tight { justify-content: flex-start; }   /* site.js: a column that ran past the name's foot reads as one block */
.hero .foot .links, .hint { font-size: var(--util); }
.hero-side .side-label { font: var(--ivy-w) italic 2.1em/1 var(--ivy-display); text-transform: none; letter-spacing: 0; margin-bottom: .35em; }
.hero-side .side-label .ivy { font-size: inherit; }
.side-link .ivy { font-family: var(--text); font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: inherit; }

/* the line under KAZBO: from the letters' foot (--kz-b, site.js placeSide) down to just above the bottom row */
.hero .hint { top: calc(var(--kz-b, 78%) + var(--kz-hang, 2px)); bottom: calc(var(--fb) + var(--util) * 1.5 + max(16px, 2.2vh)); width: 1px;
  transform: translateX(-50%); font-size: 0; overflow: hidden; }
.hero .hint::before, .hero .hint::after { content: ""; position: absolute; left: 0; width: 1px; background: var(--ink); }
.hero .hint::before { inset-block: 0; opacity: .22; }
.hero .hint::after { top: 0; height: 32%; animation: kz-drop 2.6s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes kz-drop { from { transform: translateY(-100%); } 70%, to { transform: translateY(320%); } }
.hero-side.is-under ~ .hint { display: none; }

/* the logo row: one real list + aria-hidden copies (site.js LOGOS), moved by a CSS transform only. Its ends: a clear
   gap after the footer's links, then a short fade (--lm-fade, px) so no logo is half-there beside them */
.logos { position: absolute; left: var(--lm-l, 30%); right: var(--lm-r, 20%); height: calc(var(--lm-h) * 1.3);
  bottom: calc(var(--fb) + var(--util) * .75 - var(--lm-h) * .65);
  color: var(--ink); mix-blend-mode: exclusion; pointer-events: none; transition: opacity .3s linear; }
.gl .is-home .logos { position: fixed; z-index: 2; }
.ld-done .is-home .logos { animation: ld-in .7s var(--ease) backwards; }
.lm-view { height: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--lm-fade, 7%), #000 calc(100% - var(--lm-fade, 7%)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--lm-fade, 7%), #000 calc(100% - var(--lm-fade, 7%)), transparent); }
.logos.is-run .lm-view { justify-content: flex-start; }
.lm-track { display: flex; align-items: center; flex: none; }
.logos.is-run .lm-track { will-change: transform; animation: lm-run var(--lm-dur, 40s) linear infinite; }
.logos:hover .lm-track, .logos:focus-within .lm-track, .logos.is-off .lm-track { animation-play-state: paused; }
.logos.is-off { visibility: hidden; }
@keyframes lm-run { to { transform: translate3d(calc(-1 * var(--lm-period, 0px)), 0, 0); } }
.lm-set { display: flex; align-items: center; flex: none; }
.lm { flex: none; padding-right: calc(var(--lm-h) * 1.9); }
.lm > a, .lm > span { display: block; pointer-events: auto; }
.lm > a:focus-visible { outline-offset: 6px; }
.lm svg { display: block; height: calc(var(--lm-h) * var(--lh)); width: calc(var(--lm-h) * var(--lw)); }

@media (max-width: 760px) {
  /* phone: the footer row stays one line; the logo row sits above it, gutter to gutter */
  .hero .foot { flex-direction: row; align-items: center; }
  .hero { --lm-h: clamp(20px, 3vh, 30px); }
  .lm { padding-right: calc(var(--lm-h) * 1.5); }
  .logos { left: var(--gutter); right: var(--gutter); bottom: calc(var(--fb) + var(--util) * 1.5 + 8px); }
}
@media (prefers-reduced-motion: reduce) {
  .logos.is-run .lm-track, .hero .hint::after { animation: none; }
  .hero .hint { display: block; }
  .hero .hint::after { display: none; }
}
