/* 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?v=0b9b8be868") 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(12px, 1vh, 13px);   /* 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. */
.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, .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, .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; }
/* The type mix, every face (2026-11-16; src/mix.ts, public/assets/mixer.js spanOpen; DESIGN.md "The type mix: every
   face"). Every mix span is class ivy / hv / hx + mx, with data-w (the weight) and data-i (italic). These come last and
   weigh more than a contextual rule (.hero-nav .ivy), so a span is always the face its marker names. */
.hx { font-family: var(--text-ext); }
span.mx { font-style: normal; }
span.mx[data-i] { font-style: italic; }
span.mx[data-w="100"] { font-weight: 100; } span.mx[data-w="200"] { font-weight: 200; } span.mx[data-w="300"] { font-weight: 300; }
span.mx[data-w="400"] { font-weight: 400; } span.mx[data-w="500"] { font-weight: 500; } span.mx[data-w="600"] { font-weight: 600; }
span.mx[data-w="700"] { font-weight: 700; } span.mx[data-w="800"] { font-weight: 800; } span.mx[data-w="900"] { font-weight: 900; }
.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; }
/* focus ring and selection on the blended text layers (audit fix 2026-11-15): the same white ink as the text, not the
   palette's accent, so exclusion turns it dark over the light page and light over the dark one (the accent #0E0E0E
   excluded to a faint grey on light). Same in both palettes. Not here: the K (its ring is .mono-ring), the palette
   switch (.theme, its own ring, declared later so it wins) and the timeline cards (not blended). */
:is(.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, .lost, .about-head, .about-body, .about-next, .ax-foot) :focus-visible:not(.theme) { outline-color: #FBFCF2; }
:is(.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, .lost, .about-head, .about-body, .about-next, .ax-foot) ::selection,
:is(.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, .lost, .about-head, .about-body, .about-next, .ax-foot)::selection { background: #FBFCF2; color: #0E0E0E; }

.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 ---------- */
/* The masthead (<header>) is a plain, zero-height box: it only groups the K and the bar. Each of them is its own fixed
   layer straight in the root stacking context (2026-11-15), because a fixed box isolates blending: inside the fixed bar
   the K could only blend with the bar itself, which is why it used to sit on a page-colour tile. */
.topbar { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; justify-content: flex-end; align-items: center; min-height: 72px; 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 mark (Kaz, 2026-11-15: "remove the white background on my logo. Make it white and use the layer style we have
   been"): no tile, the site's white ink with the exclusion blend, like all the text. The link itself is the blended
   fixed layer, so it reaches the video, the WebGL canvas, the menu and both page colours behind it (DESIGN.md "The K
   without its tile"). It sits where the bar's first item used to (16 px down, the gutter in), 40 px tall. */
.masthead { --mono-h: 32px; }   /* the mark's height: the K and its ring both read it */
.mono { position: fixed; z-index: 41; left: var(--gutter); top: 16px; display: grid; place-items: center; width: auto; height: 40px; padding: 4px;
  color: var(--ink); mix-blend-mode: exclusion; text-decoration: none; transition: transform .2s var(--ease); }
.mono > svg { display: block; width: auto; height: var(--mono-h); }
/* the focus ring can't be on the link: anything inside a blended layer is blended too, and an exclusion ring vanishes
   over mid-tones. So a sibling draws it, unblended: the off-white line + page-colour halo the K always had. */
.mono:focus-visible { outline: none; }
.mono-ring { display: none; position: fixed; z-index: 41; left: var(--gutter); top: 16px; height: 40px; width: calc(var(--mono-h) * 2.2661 + 8px);
  pointer-events: none; border-radius: 3px; outline: 2px solid var(--bone); outline-offset: 3px; box-shadow: 0 0 0 5px var(--night); }
.mono:focus-visible + .mono-ring { display: block; }
@media (hover: hover) and (pointer: fine) { .mono:hover { transform: scale(1.06); } }   /* no sticky hover on touch (motion audit #16) */
@media (max-width: 760px) { .masthead { --mono-h: 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: it keeps a page-colour backing, which only shows over media (the fixed top bar can't blend with the
   page behind it; the K had one too until 2026-11-15, when it became its own blended layer); 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 12px/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, .menu-list .menu-soon { 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); }
/* Coming soon (2026-11-16, DESIGN.md "Coming soon"): the name is plain text, not a link (no nudge, default cursor); the
   words sit beside it in the menu's Home / About size, Ivy Presto italic from the markers; under it when there's no room */
.menu-list .menu-soon { flex-wrap: wrap; row-gap: 4px; cursor: default; }
.menu-soon-cue { font: 700 clamp(18px, 2.6vh, 24px)/1 var(--text); letter-spacing: .04em; }
@media (hover: hover) and (pointer: fine) { .menu-list a:hover { transform: translateX(.12em); } }
.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; }
/* taller tap targets on the phone, same look (audit fix 2026-11-15): an invisible box around each link, at least 44 px
   tall. Footer rows only 4 px sideways so neighbours (10 px gaps, pipes between) never overlap; the menu's Home / About
   stack sits 10 px apart, so their boxes meet between them instead of stealing each other's taps. */
.menu-home, .links a, .links .copy { position: relative; }
.links a::before, .links .copy::before { content: ""; position: absolute; inset: -14px -4px; }
.menu-foot .links a::before, .menu-foot .links .copy::before { inset: -14px -8px; }
.menu-home::before { content: ""; position: absolute; inset: -12px -8px; }
.menu-home:has(+ .menu-home)::before { top: -26px; bottom: 0; }      /* Home: the room is above it */
.menu-home + .menu-home::before { top: -9px; bottom: -15px; }        /* About: the gap above it, and ~15 px before the first project */
.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; pointer-events: none; }
.word.is-sliced .band { will-change: transform; }   /* layers only while the stretch runs (motion audit #11) */
.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 12px/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; }
/* Coming soon: nothing to open, so no pointer over its text block or its row (DESIGN.md "Coming soon") */
.gl .is-home .wb-soon, .wi-soon .wi-static { cursor: default; }
/* 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; } }
/* already on the site (2026-11-16, layout.ts SEEN_BOOT, html.kz-seen): no loading screen. The .loader is only a plain
   cover in the page colour, under the K and the top bar, until home-gl.js has drawn the opening with its media; then it
   fades out in .22 s (no counter, no liquid, no reveal). The opening's text is there from the first paint (no liquid
   reveal); on the DOM version too. */
.gl.kz-seen .loader { z-index: 39; background: var(--night); pointer-events: none; transition: opacity .22s var(--ease);
  animation: ld-failsafe .22s 4s forwards; }
.gl.kz-seen .loader.is-out { opacity: 0; }
.gl.kz-seen .loader-canvas { display: none; }
html.kz-seen .is-home .hero [data-reveal]:not([data-rv]) { visibility: visible; animation: none; }
/* 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 :is(.topbar, .mono) { 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%); will-change: transform; }   /* site.js curtain() moves them (build 2: turns round mid-pour) */
.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 client's logo, one, in the middle of the cover's band above the seam (Kaz, 2026-11-15; project.ts openLogo).
   White + exclusion like all the text; it is inside the cover's clip, so it blends with the footage and the rising
   surface cuts it with the cover. --ol: the size every logo is weighed against (--lh / --lw from its box). */
.open-logo { --ol: clamp(72px, 12vh, 150px); position: absolute; left: 50%; top: calc(var(--seam, 46%) / 2); transform: translate(-50%, -50%);
  color: var(--ink); mix-blend-mode: exclusion; pointer-events: none; transition: opacity .5s var(--ease); }
.open-logo svg { display: block; height: calc(var(--ol) * var(--lh)); width: calc(var(--ol) * var(--lw)); }
@media (max-width: 760px) { .open-logo { --ol: clamp(56px, 11vh, 96px); } }
/* arriving from a card the cover grows out of the card's rect: the logo waits for the full frame (site.js ARRIVE) */
.kz-arrive .open-logo { opacity: 0; transition: none; animation: kz-arrive-fo 0s 3s forwards; }
/* 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, .kz-arrive .mono { 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; }
.kz-arrive .mono { animation: kz-arrive-fo 0s 3s forwards; }   /* opacity only: the K keeps its own transform (hover) */
@keyframes kz-arrive-fo { to { opacity: 1; } }
@keyframes kz-arrive-fs { to { clip-path: inset(0 0 calc(100% - var(--seam)) 0); transform: none; opacity: 1; } }

.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; }

/* ---------- the About timeline (2026-11-14, Kaz: "I want a timeline view at the top of the about page"; DESIGN.md
   "About timeline"; src/views/about.ts, site.js "Timeline"). After beui.dev's timeline (MIT, (c) 2026 Saurabh Chauhan,
   github.com/starc007/ui-components): a stage, the focused entry centred at full size, its neighbours at 72 % under a
   45 % veil of the stage colour, one gap between every two cards, a playhead line down the middle, cables from the top
   and bottom centre to the three nearest cards, the years drifting behind at half speed, five ticks in every gap.
   The resting layout is calc() from each card's --o (its place from the focused one), so the first paint is already
   right; site.js then writes the same properties as it moves. In the site's type and both palettes; square cards like
   every frame on the site (--tl-r: the reference's 24 px rounding is one value away). */
.tl { --tl-h: clamp(460px, 64svh, 600px); --tl-r: 0px; --tl-ease: cubic-bezier(.16, 1, .3, 1); padding-top: clamp(72px, 10vh, 100px); color: var(--bone); }
.tl-stage { position: relative; height: var(--tl-h); container-type: inline-size; clip-path: inset(0); overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  touch-action: pan-y; overscroll-behavior-x: contain; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.tl-stage.is-drag { cursor: grabbing; }
.tl-stage > * { --cw: min(340px, 36cqw); --gap: clamp(40px, calc(var(--cw) * .22), 72px); --step: calc(var(--cw) * .72 + var(--gap)); }
@container (max-width: 639px) { .tl-stage > * { --cw: 58cqw; } }
.tl-list { position: absolute; inset: 0; }
.tl-item { position: absolute; left: 50%; top: 50%; width: var(--cw); margin-left: calc(var(--cw) / -2); z-index: calc(100 - var(--ad, 0) * 10);
  translate: calc(var(--o) * var(--step) + var(--sg) * .14 * var(--cw)) 0; }
.tl-item.is-side { scale: .72; }
.tl-c { position: relative; translate: 0 -50%; }
.tl-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--tl-r); background: var(--ink-2); padding: 12px 14px 14px; text-transform: none; }
.tl-date { font: 400 12px/1.3 var(--text); letter-spacing: .02em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-title { margin-top: 5px; font: 700 15px/1.2 var(--text); letter-spacing: -.005em; text-transform: uppercase; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.tl-detail { margin-top: 6px; font: 400 16px/1.45 var(--text); color: color-mix(in srgb, var(--bone) 72%, transparent); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.tl-pic { display: block; margin: 12px -6px 0; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); border-radius: calc(var(--tl-r) * .66); background: var(--night); }
.tl-pic img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.tl-link { position: relative; z-index: 2; display: inline-flex; align-items: baseline; gap: .35em; margin-top: 12px; font: 400 12px/1.3 var(--text); letter-spacing: .02em; text-transform: uppercase; color: var(--bone); text-decoration: none; }
.tl-link:hover, .tl-link:focus-visible { text-decoration: underline; text-underline-offset: .2em; }
.tl-link .arw { width: .9em; height: .75em; }
/* taller hit area, same look (audit fix 2026-11-15): 17 px above and below the 16 px line = about 50 px (the card's own
   overflow clips the part below its edge); it sits over the card's .tl-hit, which on the focused card does nothing a
   tap there needs, and drags still start anywhere on the stage */
.tl-link::before { content: ""; position: absolute; inset: -17px -8px; }
.tl-item:not([data-active]) .tl-link { pointer-events: none; }
.tl-veil { position: absolute; inset: 0; z-index: 3; background: var(--night); opacity: 0; pointer-events: none; }
.tl-item.is-side .tl-veil { opacity: .45; }
.tl-hit { position: absolute; inset: 0; z-index: 1; width: 100%; border: 0; padding: 0; background: none; border-radius: var(--tl-r); cursor: pointer; }
.tl-hit:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
.tl-play { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; translate: -50% 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent, currentColor 6%, currentColor 94%, transparent); color: color-mix(in srgb, var(--bone) 80%, transparent); }
.tl-years { position: absolute; inset: 0; pointer-events: none; }
.tl-year { position: absolute; left: 50%; top: calc(var(--tl-h) * .06); translate: calc(var(--yp) * var(--step) * .5 - 50%) 0;
  font: 700 calc(var(--tl-h) * .2)/.85 "Bigger Display", var(--text); letter-spacing: .01em; color: color-mix(in srgb, var(--bone) 7%, transparent); white-space: nowrap; }
/* ^ audit fix 2026-11-15: Bigger Display has no ’, so the year mark's apostrophe fell to Impact; now it falls to Helvetica
   Neue Bold (700; Bigger Display answers to every weight, so the digits stay in it). Undo: font: 400 ... var(--display). */
.tl-ticks { position: absolute; inset: 0; pointer-events: none; }
.tl-tick { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: calc(var(--gap) * .7 / 4 - 1px);
  translate: calc(var(--ta) * var(--step) + var(--tb) * var(--cw) + var(--tc) * var(--gap) - 50%) -50%; }
.tl-tick > * { display: block; width: 1px; height: calc(var(--cw) * .13); background: color-mix(in srgb, var(--bone) 25%, transparent); }
.tl-tick > b { height: calc(var(--cw) * .2); background: color-mix(in srgb, var(--bone) 45%, transparent); }
.tl-cables { position: absolute; inset: 0; pointer-events: none; overflow: hidden; --cab: color-mix(in srgb, var(--bone) 14%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent); }
@media (max-width: 639px) { .tl { --tl-h: 430px; } }
/* no card has a picture: a lower stage (the cards are short) */
.tl.no-pics { --tl-h: clamp(380px, 48svh, 460px); }
@media (max-width: 639px) { .tl.no-pics { --tl-h: 360px; } }
/* the opening (motion allowed, html.rv): the playhead draws out from the middle, the focused card rises, its
   neighbours unfold out of it, the years and the ruler fade in; about 1.4 s. Pure CSS that ends where the page rests,
   so nothing can be left hidden; none of it with reduced motion. */
.tl-cg { position: absolute; inset: 0; }
.tl-cg > i { position: absolute; left: 50%; top: 0; width: 1px; height: 100px; margin-left: -.5px; background: var(--cab); transform-origin: 50% 0; }
.tl-cg > i.up { top: auto; bottom: 0; transform-origin: 50% 100%; }
@keyframes tl-draw { from { scale: 1 0; } }
@keyframes tl-rise { from { opacity: 0; transform: translateY(32px); } }
@keyframes tl-unfold { from { opacity: 0; transform: translateX(calc(var(--sg) * -64px)); } }
@keyframes tl-fade { from { opacity: 0; } }
html.rv .tl-play { animation: tl-draw 1.2s var(--tl-ease) .05s both; }
/* backwards, not both (audit fix 2026-11-15): a fill that outlives the entrance keeps a transform on the card, which made
   it a stacking context and trapped the Open link (z-index 2) under the card's .tl-hit (z-index 1): taps never reached it.
   Looks the same: the last keyframe is the card's own resting state. */
html.rv .tl-item .tl-card { animation: tl-rise .9s var(--tl-ease) .3s backwards; }
html.rv .tl-item.is-side .tl-card { animation: tl-unfold 1s var(--tl-ease) calc(.45s + var(--ad) * 90ms) backwards; }
html.rv .tl-years { animation: tl-fade 1.6s ease .2s both; }
html.rv .tl-ticks, html.rv .tl-cables { animation: tl-fade .8s ease .85s both; }
/* no script: nothing to drag, so a plain row of cards that scrolls sideways (snapping), every one at full size */
@media (scripting: none) {
  .tl-stage { height: auto; overflow-x: auto; clip-path: none; -webkit-mask-image: none; mask-image: none; cursor: auto; user-select: auto; -webkit-user-select: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
  .tl-list { position: static; display: flex; gap: 16px; padding: 0 var(--gutter) 8px; }
  .tl-stage .tl-item, .tl-stage .tl-item.is-side { position: static; translate: none; scale: none; margin: 0; flex: 0 0 var(--cw); scroll-snap-align: start; }
  .tl-c { translate: none; }
  .tl-veil, .tl-hit, .tl-play, .tl-years, .tl-ticks { display: none; }
  .tl-item:not([data-active]) .tl-link { pointer-events: auto; }
}

/* ---------- 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; }
  .open-label { bottom: 64px; }   /* the footer row stacks on phone */
  .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(12px, 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 span.mx.ivy, .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; }
}

/* ---------- phone controls, bottom right (Kaz, 2026-11-13: "put menu controls bottom right") ----------
   Under 761 px the palette switch and the menu button leave the top bar for the bottom-right corner, in thumb
   reach, on every page. --ctl-b keeps them off the home indicator / Safari's bottom bar (viewport-fit=cover, so
   env() reports it); both are 44 px tall tap targets. The top bar keeps only the K. The menu's own switch is hidden
   there (the one in the corner stays on top of the open menu, next to the close button) and the menu's footer row
   keeps clear of the corner. The home's project count sits at the same height on the left (site.js / home-gl.js). */
:root { --ctl-b: max(16px, calc(env(safe-area-inset-bottom) + 10px)); --ctl-h: 44px; }
@media (max-width: 760px) {
  .topbar-end { position: fixed; right: var(--gutter); bottom: var(--ctl-b); gap: 8px; }
  .theme-top { display: inline-grid; height: var(--ctl-h); padding: 0 14px; }
  .theme-top::before { inset: 0; }
  .burger { position: relative; width: 52px; height: var(--ctl-h); }
  .menu { padding-bottom: calc(var(--ctl-b) + var(--ctl-h) + 24px); }
  .menu .theme-menu { display: none; }
  /* scrolling pages end clear of the corner */
  body:not(.is-home), html:not(.gl) body.is-home { padding-bottom: calc(var(--ctl-b) + var(--ctl-h) + 8px); }
  /* the home's work section: the count (01 / 05) bottom left, level with the controls; SELECTED WORK makes way */
  /* the opening screen's footer row, logo strip and SCROLL line sit above the controls */
  .hero { --fb: calc(var(--ctl-b) + var(--ctl-h) + 14px); }
  /* the case opening: its footer row would sit under the controls and there is no room above them (the big second
     line is there), so on phone it goes; the same row closes every page. The client · type · year line stays clear. */
  .open .foot { display: none; }
  .open-label { bottom: max(64px, calc(var(--ctl-b) + var(--ctl-h) + 4px)); }
  .is-drum .works-label, .gl .is-home .is-drum .works-label { display: none; }
  .is-drum .works-rail { left: var(--gutter); right: auto; bottom: calc(var(--ctl-b) + var(--ctl-h) / 2 - 6px); }
  .is-drum .wr-track { display: none; }
  .is-drum.is-pinned .works-stage { touch-action: none; }   /* site.js PHONE_SWIPE: swipes in the pinned drum are ours */
  .gl .is-home .is-drum .works-rail { display: flex; position: fixed; z-index: 3; opacity: 0; transition: opacity .3s var(--ease); pointer-events: none; }
  .gl .is-home.in-work .is-drum .works-rail { opacity: 1; }
  .is-drum .wr-count { color: var(--bone); mix-blend-mode: normal; }
}
