/* The case page (every project since 2026-11-14; src/views/project-auge.ts, motion in case-auge.js), the Maison Auge
   layout. Every number is the reference's own (its stylesheet + a measured scroll recording, .reanimate/maison/spec.md):
   12 columns, gap 1.0417vw, gutter 2.0833vw, type .8333 / 1.25 / 1.979 / 3.5417 / 12.5vw, 160 px above and below
   each block; under 1024 px: 4 columns, 10 px gap, 20 px gutter, 40 px. Fonts and the two colours are Kaz's; a page
   or a row can take its own background (DESIGN.md "Colours": --sf-bg / --sf-fg, set in a <style> per page). */
.is-auge {
  --ax-gap: max(10px, 1.04167vw);
  --ax-gut: max(20px, 2.08333vw);
  --ax-xs: 12px; --ax-sm: 16px; --ax-md: 18px; --ax-lg: 24px; --ax-xl: 64px;
  --ax-y: 40px;
  /* Bigger Display next to the reference's face: the size that gives the same cap height, and the same line pitch */
  --ax-k: .9;
}
@media (min-width: 1024px) {
  .is-auge { --ax-xs: max(12px, .833333vw); --ax-sm: clamp(16px, 1.25vw, 24px); --ax-md: max(18px, 1.97917vw); --ax-lg: max(24px, 3.54167vw);
    --ax-xl: min(10vw + 100px, max(58px, 12.5vw)); --ax-y: 160px; }
}
.ax { text-transform: none; }
.ax-xs { font: 400 var(--ax-xs)/1.3 var(--text); text-transform: uppercase; }
.ax-sm { font: 400 var(--ax-sm)/1.25 var(--text); }

/* 1. the opening is site.css "case page" (site.js startCase). The page surface follows it; its colours are the
   palette's, or the page's own (--sf-bg / --sf-fg). overflow-x: clip keeps a Fit-to-width word's side bearing from
   ever making the page scroll sideways. */
body.is-auge { background: var(--sf-bg, var(--night)); }
.ax-surface { position: relative; z-index: 1; background: var(--sf-bg, var(--night)); color: var(--sf-fg, var(--bone)); overflow-anchor: none; overflow-x: clip; padding-bottom: 1px; }

/* the grid */
.ax-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ax-pad { padding-inline: 20px; }
.ax-grid > * { grid-column: 1 / -1; min-width: 0; }

.ax-pill { display: inline-block; padding: 8px 24px; border-radius: 3px; background: var(--sf-fg, var(--bone)); color: var(--sf-bg, var(--night)); text-decoration: none; white-space: nowrap; }
.ax-list { margin-top: 40px; }

/* media. Equal rows of see-through product shots: case-auge.js scales each picture (--fit, around the product's centre
   --fo) so the products match in size (Kaz: "same size") */
.ax-fig[data-ax-fit] .ax-frame > img { scale: var(--fit, 1); transform-origin: var(--fo, 50% 50%); }
.ax-media { align-items: start; padding: var(--ax-y) 20px; }
.ax-frame { display: block; position: relative; isolation: isolate; overflow: hidden; }
.ax-frame > img, .ax-frame > video { display: block; width: 100%; height: auto; }
/* a cropped picture (admin: Crop + focus point): the frame takes the ratio, the picture covers it around the focus */
.ax-fig.is-crop .ax-frame { aspect-ratio: var(--ar); }
.ax-fig.is-crop .ax-frame > img, .ax-fig.is-crop .ax-frame > video { height: 100%; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); }
/* a picture's caption, when Kaz shows it (build 3, admin: Picture → Show caption on the page; off by default): the
   page's small label style, under the picture, the grid gap apart */
.ax-cap { display: block; margin-top: 10px; }
@media (min-width: 1024px) { .ax-cap { margin-top: var(--ax-gap); } }

/* Before / after (2026-11-14, Kaz: "I NEED THIS ON THE SITE"; DESIGN.md "Before / after"). Ported from beui.dev's
   before-after-slider (MIT, (c) 2026 Saurabh Chauhan, github.com/starc007/ui-components): the after picture under the
   before one, which is cut at the divider (clip-path, so both stay aligned pixel for pixel); the line bends like a rope
   when the divider moves fast (case-auge.js); a round handle with two chevrons that part on hover / drag; labels in the
   top corners that fade as the divider reaches them. In the site's own type and colours, square like every picture
   on the page (the reference's frame is rounded). --at = the divider's place (0-100), written by case-auge.js; the
   values here are the resting state, so the page is right before the script runs. */
.ax-ba { position: relative; min-width: 0; margin: 0; --ba-ink: #fbfcf2; }
.ax-ba-frame { display: block; position: relative; isolation: isolate; overflow: hidden; background: var(--ink-2, #161616);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: ew-resize; }
.ax-ba-y .ax-ba-frame { touch-action: pan-x; cursor: ns-resize; }
.ax-ba.is-drag .ax-ba-frame { cursor: grabbing; }
.ax-ba-side { position: absolute; inset: 0; display: block; }
.ax-ba-side > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); pointer-events: none; }
.ax-ba-a { z-index: 1; clip-path: inset(0 calc(100% - var(--at, 50) * 1%) 0 0); }
.ax-ba-y .ax-ba-a { clip-path: inset(0 0 calc(100% - var(--at, 50) * 1%) 0); }
.ax-ba-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; }
.ax-ba-a .ax-ba-empty { padding-right: calc((100 - var(--at, 50)) * 1%); }
.ax-ba-b .ax-ba-empty { padding-left: calc(var(--at, 50) * 1%); }
.ax-ba-y .ax-ba-a .ax-ba-empty { padding: 0 0 calc((100 - var(--at, 50)) * 1%); }
.ax-ba-y .ax-ba-b .ax-ba-empty { padding: calc(var(--at, 50) * 1%) 0 0; }
/* labels: the site's small label style on a soft dark chip (the reference: 12 px from the corners, a pill, black 45 %
   with a blur); top to bottom: Before top left, After bottom left */
.ax-ba-lab { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 5px 10px 4px; border-radius: 999px;
  font: 400 var(--ax-xs)/1.3 var(--text); text-transform: uppercase; letter-spacing: .02em; color: var(--ba-ink);
  background: rgb(14 14 14 / .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); pointer-events: none; white-space: nowrap; }
.ax-ba-lb { left: auto; right: 12px; }
.ax-ba-y .ax-ba-lb { right: auto; left: 12px; top: auto; bottom: 12px; }
/* the line: a 2 px stroke over a 4 px shadow, drawn in a 100 x 100 box stretched over the frame (its stroke keeps
   its pixel width); 3.5 / 5.5 px while dragging */
.ax-ba-line { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ax-ba-line path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: square; transition: stroke-width .26s var(--ax-soft, ease-out); }
.ax-ba-sh { stroke: rgb(0 0 0 / .14); stroke-width: 4px; }
.ax-ba-ln { stroke: var(--ba-ink); stroke-width: 2px; }
.ax-ba.is-drag .ax-ba-sh { stroke-width: 5.5px; } .ax-ba.is-drag .ax-ba-ln { stroke-width: 3.5px; }
/* the handle: full-frame bar moved by translate (a percent of the frame), the 40 px knob at its middle */
.ax-ba-bar { position: absolute; z-index: 4; inset: 0; pointer-events: none; translate: calc(var(--at, 50) * 1%) 0; }
.ax-ba-y .ax-ba-bar { translate: 0 calc(var(--at, 50) * 1%); }
.ax-ba.is-drag .ax-ba-bar { will-change: translate; }
.ax-ba-knob { position: absolute; left: 0; top: 50%; translate: -50% -50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--ba-ink); color: #0e0e0e; box-shadow: 0 0 0 1px rgb(0 0 0 / .12); pointer-events: auto; cursor: grab; outline: none;
  transition: scale .26s var(--ax-soft, ease-out), box-shadow .2s; touch-action: none; }
.ax-ba-y .ax-ba-knob { left: 50%; top: 0; rotate: 90deg; }
.ax-ba-knob::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; }   /* a bigger target for a finger */
.ax-ba-knob:focus-visible { box-shadow: 0 0 0 1px rgb(0 0 0 / .12), 0 0 0 4px rgb(14 14 14 / .35), 0 0 0 6px var(--ba-ink); }
.ax-ba-chev { display: flex; transition: translate .26s var(--ax-soft, ease-out); }
.ax-ba-chev svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ax-ba-cl { margin-right: -4px; } .ax-ba-cr { margin-left: -4px; }
@media (hover: hover) and (pointer: fine) {
  .ax-ba-knob:hover { scale: 1.04; }
  .ax-ba-knob:hover .ax-ba-cl { translate: -1.5px 0; } .ax-ba-knob:hover .ax-ba-cr { translate: 1.5px 0; }
}
.ax-ba.is-drag .ax-ba-knob { scale: 1.08; cursor: grabbing; }
.ax-ba.is-drag .ax-ba-cl { translate: -3px 0; } .ax-ba.is-drag .ax-ba-cr { translate: 3px 0; }
@media (prefers-reduced-motion: reduce) {
  .ax-ba-knob, .ax-ba-chev, .ax-ba-line path { transition: none; }
  .ax-ba.is-drag .ax-ba-knob, .ax-ba-knob:hover { scale: 1; }
  .ax-ba .ax-ba-chev { translate: none !important; }
  .ax-ba.is-drag .ax-ba-sh { stroke-width: 4px; } .ax-ba.is-drag .ax-ba-ln { stroke-width: 2px; }
}
/* no script: nothing to drag, so both pictures side by side (stacked on a narrow screen), each whole in its own frame
   with its label, and no handle (it would be a control that does nothing) */
@media (scripting: none) {
  .ax-ba-frame { display: grid; grid-template-columns: 1fr 1fr; gap: var(--rg-s, 5px); aspect-ratio: auto !important; overflow: visible; background: none; cursor: auto; }
  .ax-ba .ax-ba-frame .ax-ba-side { position: relative; inset: auto; grid-row: 1; aspect-ratio: var(--ar0); overflow: hidden; clip-path: none; background: var(--ink-2, #161616); }
  .ax-ba-a { grid-column: 1; } .ax-ba-b { grid-column: 2; }
  .ax-ba-lab { grid-row: 1; align-self: start; justify-self: start; position: relative; inset: auto; margin: 12px; }
  .ax-ba-la { grid-column: 1; } .ax-ba-lb { grid-column: 2; }
  .ax-ba-y .ax-ba-lb { margin: 12px; inset: auto; }
  .ax-ba-line, .ax-ba-bar { display: none; }
}
@media (scripting: none) and (max-width: 600px) {
  .ax-ba-frame { grid-template-columns: 1fr; }
  .ax-ba .ax-ba-frame .ax-ba-b, .ax-ba .ax-ba-frame .ax-ba-lb { grid-column: 1; grid-row: 2; }
}

/* 3. next project */
.ax-next { align-items: center; padding-block: var(--ax-y); }
.ax-next-label { text-align: center; }
.ax-next-link { display: block; margin-top: 20px; }
.ax-next-frame { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--ink-2); }
.ax-next-in { position: absolute; left: 0; right: 0; top: -5%; height: 110%; display: block; }
.ax-next-in .poster { position: absolute; inset: 0; }
.ax-next-text { margin-top: 20px; text-align: center; font: 400 calc(var(--ax-k) * var(--ax-md))/calc(1 / var(--ax-k)) var(--display); text-transform: uppercase; }
.ax-next-kind { margin-top: 4px; font: 400 var(--ax-xs)/1.3 var(--text); }
.ax-clip { display: block; overflow: hidden; }
.ax-clip > [data-ax-line] { display: block; }

/* the fixed line at the bottom (desktop only, as on the reference); it takes over from the opening's footer row as
   that fades (case-auge.js), so the two never show together. Phone: the footer row again at the page's end. */
.ax-foot { display: none; }
.ax-page-foot { position: relative; z-index: 1; background: var(--sf-bg, var(--night)); }

/* 2. the rows (project-auge.ts; model public/assets/rows.js; the admin's canvas is this page itself and reads these
   sizes from it, so this is the only place they live). A section is the page's 12-column grid; each .ax-row-in is one row's blocks on --n
   equal tracks (equal rows: one per block; set widths: the row's 10 or 12 columns, each block at --c). A row set to
   hang under the one before it ('join') is a second .ax-row-in in that section: the grid gap apart.
     Gap          none 0 | small max(5px, .5208vw) | normal = the grid gap, max(10px, 1.0417vw) | large max(20px, 3.125vw)
                  (1440: 0 / 7.5 / 15 / 45 px; phone 0 / 5 / 10 / 20 px; stacked on phone: twice that, top to bottom)
     Space above / below   none 0 | tight 60 | normal 160 | large 300 px (phone 0 / 20 / 40 / 80)
     Width        inset = page columns 2 to 11 | wide = edge to gutter | full = edge to edge (phone: inset = wide) */
.is-auge { --ax-y-t: 20px; --ax-y-l: 80px; --rg-s: 5px; --rg-n: 10px; --rg-l: 20px; }
.ax-media.ax-row { padding: var(--ra, var(--ax-y)) 0 var(--rb, var(--ax-y)); gap: 10px; }
.ra-none { --ra: 0px; } .ra-tight { --ra: var(--ax-y-t); } .ra-large { --ra: var(--ax-y-l); }
.rb-none { --rb: 0px; } .rb-tight { --rb: var(--ax-y-t); } .rb-large { --rb: var(--ax-y-l); }
.rg-none { --rg: 0px; } .rg-small { --rg: var(--rg-s); } .rg-normal { --rg: var(--rg-n); } .rg-large { --rg: var(--rg-l); }
.ax-row-in { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); column-gap: var(--rg); row-gap: var(--rg); align-items: start; margin-inline: 20px; }
.ax-row-in.al-center { align-items: center; } .ax-row-in.al-bottom { align-items: end; }
.ax-row-in.w-full { margin-inline: 0; }
.ax-row-in > * { grid-column: auto; min-width: 0; }
/* phone: one per line (twice the gap between), two per line, or as on desktop */
.ax-row-in.ph-stack { grid-template-columns: minmax(0, 1fr); row-gap: calc(2 * var(--rg)); }
.ax-row-in.ph-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ax-row-in.ph-keep > * { grid-column: var(--c, auto); }
/* same height: every frame cropped to the row's shortest (case-auge.js sets --rh when the blocks sit side by side) */
.ax-row-in.h-same .ax-frame { height: var(--rh, auto); }
.ax-row-in.h-same .ax-frame > img, .ax-row-in.h-same .ax-frame > video { height: 100%; object-fit: cover; }
/* a band of colour behind a row, edge to edge (the row's own text colour, automatic unless set) */
.ax-row.has-band { background: var(--band); color: var(--band-fg); --sf-bg: var(--band); --sf-fg: var(--band-fg); }

/* blocks of words (project-auge.ts inner()): his own text and the project's fields. Defaults reproduce the page as it
   was: Description = Helvetica Neue L, label 20 px above; Features = S lines, label 40 px above; Challenge / Solution =
   S, label beside on desktop when the block is 4+ columns wide, 40 px (phone 20) below whatever is above it. */
.ax-b { min-width: 0; }
.ax-b.ta-center { text-align: center; } .ax-b.ta-right { text-align: right; }
.ax-b-description.has-label > .ax-tx { margin-top: 20px; }
.ax-b-features:not(.has-label) .ax-list { margin-top: 0; }
.ax-b-link { display: flex; justify-content: flex-start; }
.ax-b-link.ta-center { justify-content: center; } .ax-b-link.ta-right { justify-content: flex-end; }
.ax-b-challenge, .ax-b-solution { margin-top: 20px; }
.ax-b-challenge.has-label > .ax-tx, .ax-b-solution.has-label > .ax-tx { margin-top: 30px; }
/* a text block with a label of Kaz's own (build 2): the label as on Challenge / Solution, the words 30 px under it */
.ax-b-text.has-label > .ax-tx { margin-top: 30px; }
.ax-b-text.has-label > .ax-fit { margin-top: 20px; }
.ax-tx p + p { margin-top: 1em; }
.ax-tx p { text-wrap: pretty; }
/* the faces (rows.js TYPE.font) */
.ax-tx { line-height: var(--lh, 1.25); }
.tf-roman { font-family: var(--text); font-weight: 400; font-style: normal; }
.tf-bold { font-family: var(--text); font-weight: 700; font-style: normal; }
.tf-italic { font-family: var(--text); font-weight: 400; font-style: italic; }
.tf-light-italic { font-family: var(--text); font-weight: 300; font-style: italic; }
.tf-ivy-light { font-family: var(--ivy-display); font-weight: var(--ivy-w-light); font-style: italic; }
.tf-ivy { font-family: var(--ivy-display); font-weight: var(--ivy-w); font-style: italic; }
.tf-ivy-bold { font-family: var(--ivy-display); font-weight: var(--ivy-w-bold); font-style: italic; }
.tf-display { font-family: var(--display); font-weight: 400; font-style: normal; text-transform: uppercase; }
/* sizes: the page's type scale (S = the body's 18 px at 1440, L = the description's 51 px, XL = 180 px) */
.ts-xs { font-size: var(--ax-xs); --lh: 1.3; }
.ts-s { font-size: var(--ax-sm); --lh: 1.5; }
.ts-m { font-size: var(--ax-md); --lh: 1.3; }
.ts-l { font-size: var(--ax-lg); --lh: 1; }
/* audit fix 2026-11-15: L reads as a paragraph under 1024 px (24 px over several lines), so it gets air there only */
@media (max-width: 1023px) { .ts-l { --lh: 1.2; } }
.ts-xl { font-size: var(--ax-xl); --lh: .9; }
.tl-tight { line-height: calc(var(--lh, 1.25) * .84); } .tl-loose { line-height: calc(var(--lh, 1.25) * 1.3); }
.tt-tight { letter-spacing: -.03em; } .tt-wide { letter-spacing: .12em; }
.tc-upper { text-transform: uppercase; }
.tk-muted { color: color-mix(in srgb, currentColor 58%, transparent); }
/* max width (paragraphs): centred or right-aligned blocks keep the column on their side */
.tm-narrow { max-width: 26em; } .tm-normal { max-width: 38em; } .tm-wide { max-width: 56em; }
.ta-center > .tm-narrow, .ta-center > .tm-normal, .ta-center > .tm-wide { margin-inline: auto; }
.ta-right > .tm-narrow, .ta-right > .tm-normal, .ta-right > .tm-wide { margin-left: auto; }
/* Fit to width (rows.js CAN_FIT): one line, its ink exactly the block's width. --fw = the line's ink width and --fl the
   distance from its start to the ink, in ems, measured in the admin with the real fonts (case-auge.js re-measures on
   the page once the fonts are in); 100cqw = the block's width, so it holds at any screen size with no script and no
   jump. Tight line height trims to the capitals where the browser can (text-box). */
.ax-b.is-fit { container-type: inline-size; }
.ax-fit { white-space: nowrap; font-size: calc(100cqw / var(--fw)); margin-left: calc(var(--fl) * 1em); width: max-content; --lh: 1; }
.ax-fit.tl-tight { line-height: 1; text-box: trim-both cap alphabetic; }
.ax-fit.tl-loose { line-height: 1.2; }

@media (min-width: 1024px) {
  .ax-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--ax-gap); }
  .ax-pad { padding-inline: var(--ax-gut); }
  .ax-surface { padding-top: 100px; }   /* the page body's first breathing room under the opening */
  .ax-b-features li > span { white-space: nowrap; }   /* each feature on one line from 1024 up */
  .ax-b-challenge, .ax-b-solution { margin-top: 40px; }
  .ax-b.cs-side { display: grid; grid-template-columns: subgrid; align-items: start; }
  .ax-b.cs-side > .ax-xs { grid-column: 1 / span 2; }
  .ax-b.cs-side > .ax-tx { grid-column: 3 / -1; margin-top: 0; }

  .ax-media { padding-inline: 0; gap: var(--ax-gap); }
  .ax-media.is-first { margin: 20px; }
  .ax-media.is-first.has-band { margin: 0; padding: calc(var(--ra, var(--ax-y)) + 20px) 20px calc(var(--rb, var(--ax-y)) + 20px); }
  /* a first row set to Full stays edge to edge like every Full row (2026-11-25, OMiT Controller: the deck's slides stack
     with no gaps from the first one) */
  .ax-media.is-first:has(> .ax-row-in.w-full:only-child):not(.has-band) { margin: 0; }

  .ax-next-label { grid-column: 3 / span 2; text-align: right; }
  .ax-next-link { grid-column: 5 / span 4; margin-top: 0; }
  .ax-next-text { grid-column: 9 / span 2; margin-top: 0; text-align: left; }

  .ax-page-foot { display: none; }
  html:not(.ax-js) .is-auge .open .foot { display: none; }   /* no JS: only the fixed line, never both */
  .ax-foot { position: fixed; z-index: 30; left: var(--ax-gut); right: var(--ax-gut); bottom: var(--ax-gut); display: flex; justify-content: space-between; align-items: center;
    font: 700 var(--ax-xs)/1.5 var(--text); text-transform: uppercase; letter-spacing: 0; color: var(--ink); mix-blend-mode: exclusion; pointer-events: none; }
  .ax-foot nav { display: flex; align-items: center; gap: 8px; pointer-events: auto; font: inherit; letter-spacing: 0; }
  .ax-foot a, .ax-foot .copy { padding: 8px; text-decoration: none; color: inherit; font: inherit; }
  .ax-foot a:hover, .ax-foot .copy:hover { text-decoration: underline; }

  .is-auge { --ax-y-t: 60px; --ax-y-l: 300px; --rg-s: max(5px, .52083vw); --rg-n: var(--ax-gap); --rg-l: max(20px, 3.125vw); }
  .ax-media.ax-row { gap: var(--ax-gap); }
  .ax-row-in, .ax-row-in.ph-stack, .ax-row-in.ph-two { grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); row-gap: var(--rg); margin-inline: 0; }
  .ax-row-in.w-inset { grid-column: 2 / span 10; }
  .ax-row-in.w-wide { margin-inline: var(--ax-gut); }
  .ax-row-in > *, .ax-row-in.ph-keep > * { grid-column: var(--c, auto); }
}

/* ---------- Motion (build 2, 2026-11-14; DESIGN.md "Motion"; engine case-auge.js, attributes project-auge.ts) ----------
   html.rv = motion allowed and the script will run (set in <head>); html.ax-armed = the engine is watching. Content is
   only ever hidden under BOTH, so with no script, reduced motion, a failure (rv-fail) or before the engine is ready,
   everything is simply there. Only transform / translate / scale / opacity / clip-path move. --d = the block's place in
   its row's stagger, --tk = time × (row Speed × page Motion), --rk = distance × (page Motion). */
.ax { --ax-out: cubic-bezier(.16, 1, .3, 1); --ax-io: cubic-bezier(.65, 0, .35, 1); --ax-soft: cubic-bezier(.23, 1, .32, 1); }

/* settle: the picture inside its frame 1.2 → 1 (the page's original move, Maison Auge's), and the next project's cover */
html.rv [data-in="settle"] > .ax-frame > :is(img, video), html.rv .ax-ba[data-in="settle"] .ax-ba-side > img, html.rv .ax-next-frame .ax-next-in { transform: scale(1.2); transition: transform calc(.9s * var(--tk, 1)) var(--ax-io) var(--d, 0ms); }
html.rv [data-in="settle"].is-in > .ax-frame > :is(img, video), html.rv .ax-ba[data-in="settle"].is-in .ax-ba-side > img { transform: none; }
html.rv .ax-next-frame.is-in .ax-next-in { transform: translateY(var(--drift, 0%)); transition: transform .9s var(--ax-io); }
html.rv .ax-next-frame.is-set .ax-next-in { transition: none; }
/* the list lines that were always there (Features, the next project's name) rise out of their clips */
html.rv :is([data-in="lines"], .ax-next) [data-ax-line] { transform: translateY(105%); transition: transform calc(.8s * var(--tk, 1)) var(--ax-out); transition-delay: calc(var(--d, 0ms) + var(--i, 0) * 50ms * var(--tk, 1)); }
html.rv :is([data-in="lines"], .ax-next) [data-ax-line].is-in { transform: none; }

/* fade / rise */
html.rv [data-in="fade"], html.rv [data-in="rise"] { transition: opacity calc(.75s * var(--tk, 1)) var(--ax-soft) var(--d, 0ms), transform calc(.95s * var(--tk, 1)) var(--ax-out) var(--d, 0ms); }
html.rv.ax-armed :is([data-in="fade"], [data-in="rise"], [data-in="lines"], [data-in="letters"]):not(.is-in) { opacity: 0; }
html.rv.ax-armed [data-in="rise"]:not(.is-in) { transform: translateY(calc(28px * var(--rk, 1))); }
/* lines / letters that couldn't split (fonts still loading, too long): the block fades and rises as one piece */
html.rv [data-in="lines"]:not(.is-split), html.rv [data-in="letters"]:not(.is-letters) { transition: opacity calc(.7s * var(--tk, 1)) var(--ax-soft) var(--d, 0ms); }
html.rv [data-in="lines"]:has([data-ax-line]) { transition: none; }

/* wipe: uncovered by a straight edge (up = from the bottom up). The end state reaches 10 % past the block so italic
   overhangs aren't cut; once landed the clip comes off (is-done). */
html.rv [data-in="wipe"] { transition: clip-path calc(1s * var(--tk, 1)) var(--ax-io) var(--d, 0ms); }
html.rv.ax-armed [data-in="wipe"]:not(.is-in) { clip-path: inset(100% -10% -10% -10%); }
html.rv.ax-armed [data-in="wipe"][data-dir="down"]:not(.is-in) { clip-path: inset(-10% -10% 100% -10%); }
html.rv.ax-armed [data-in="wipe"][data-dir="left"]:not(.is-in) { clip-path: inset(-10% -10% -10% 100%); }
html.rv.ax-armed [data-in="wipe"][data-dir="right"]:not(.is-in) { clip-path: inset(-10% 100% -10% -10%); }
html.rv [data-in="wipe"].is-in { clip-path: inset(-10%); }
html.rv [data-in="wipe"].is-done { clip-path: none; transition: none; }

/* lines: each word in a clip of its own (span.axw), the word rising in it (span.axwi), line by line */
[data-in="lines"].is-split { opacity: 1; transition: none; }
.is-split .axw { clip-path: inset(-.4em -.3em 0 -.3em); }
.is-split .axwi { display: inline-block; transform: translateY(112%); }
.is-split.is-go .axwi { transform: none; transition: transform calc(.85s * var(--tk, 1)) var(--ax-out); transition-delay: calc(var(--d, 0ms) + min(calc(var(--li, 0) * 70ms), 420ms) * var(--tk, 1)); }

/* letters: copies of the letters laid over the line at their own places (the real line hidden until they land) */
.ax-b.is-letters, .ax-fig.is-letters { position: relative; }
[data-in="letters"].is-letters { opacity: 1; transition: none; }
[data-ltr], [data-ltr] * { color: transparent !important; -webkit-text-fill-color: transparent !important; }
.ax-letters { position: absolute; inset: 0; pointer-events: none; }
.ax-letters > i { position: absolute; display: block; clip-path: inset(-60% -20% 0 -20%); font-style: normal; }
.ax-letters > i > span { position: absolute; top: 0; white-space: pre; letter-spacing: 0; text-transform: none; transform: translateY(135%); }
.is-letters.is-go .ax-letters > i > span { transform: none; transition: transform calc(.8s * var(--tk, 1)) var(--ax-out); transition-delay: calc(var(--d, 0ms) + min(calc(var(--li, 0) * 30ms), 540ms) * var(--tk, 1)); }

/* will-change only while something is on its way in */
html.rv [data-in].is-in:not(.is-done, [data-in="settle"]) { will-change: opacity, transform; }
html.rv [data-in="settle"].is-in:not(.is-done) > .ax-frame > :is(img, video), html.rv .ax-ba[data-in="settle"].is-in:not(.is-done) .ax-ba-side > img { will-change: transform; }

/* ---- following the scroll: drift (moves a little slower than the page), scale (grows to full size as it comes up),
   slide (a Fit-to-width word slides sideways across the screen). CSS scroll timelines where the browser has them
   (they run off the main thread); else case-auge.js writes the same properties in the page's one shared frame.
   Strengths S / M / L; on a phone half the distance. */
[data-amt="s"] { --sc-y: calc(18px * var(--rk, 1)); --sc-s: .96; --sc-x: 3%; }
[data-amt="m"] { --sc-y: calc(40px * var(--rk, 1)); --sc-s: .92; --sc-x: 7%; }
[data-amt="l"] { --sc-y: calc(80px * var(--rk, 1)); --sc-s: .85; --sc-x: 14%; }
@media (max-width: 1023px) { [data-amt] { --sc-y: calc(14px * var(--rk, 1)); --sc-x: 4%; } }
@keyframes ax-drift { from { translate: 0 var(--sc-y); } to { translate: 0 calc(-1 * var(--sc-y)); } }
@keyframes ax-scale { from { scale: var(--sc-s); } to { scale: 1; } }
@keyframes ax-slide { from { translate: var(--sc-x) 0; } to { translate: calc(-1 * var(--sc-x)) 0; } }
@supports (animation-timeline: view()) {
  html.rv [data-sc] { animation-duration: 1ms; animation-timing-function: linear; animation-fill-mode: both; animation-timeline: view(); }
  html.rv [data-sc="drift"] { animation-name: ax-drift; animation-range: cover 0% cover 100%; }
  html.rv [data-sc="scale"] { animation-name: ax-scale; animation-range: entry 0% cover 45%; transform-origin: 50% 100%; }
  html.rv [data-sc="slide"] { animation-name: ax-slide; animation-range: cover 0% cover 100%; }
}

/* ---- a band's colour fades in as it arrives (row "Band motion": Fade in), so the page's colour changes smoothly
   between it and the rows around it instead of at a hard edge. --bk 0 → 1 over the band's entry; text follows. */
@property --bk { syntax: '<number>'; inherits: true; initial-value: 1; }
.ax-surface { --pg-bg: var(--sf-bg, var(--night)); --pg-fg: var(--sf-fg, var(--bone)); }
html.rv .ax-row.has-band[data-bandfx] { background: color-mix(in srgb, var(--band) calc(var(--bk) * 100%), var(--pg-bg)); color: color-mix(in srgb, var(--band-fg) calc(var(--bk) * 100%), var(--pg-fg)); }
@keyframes ax-band { from { --bk: 0; } to { --bk: 1; } }
@supports (animation-timeline: view()) {
  html.rv .ax-row.has-band[data-bandfx] { animation: ax-band 1ms linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
}

/* ---- pin (desktop): the row holds in place (sticky) while the next section slides up over it for S / M / L of a screen.
   The page keeps its length: the pinned section grows by that much and the next one starts that much higher. */
@media (min-width: 1024px) {
  html.rv :is(.ax-row[data-pin="s"], .ax-row[data-pin="s"] + *) { --pin-d: 50vh; }
  html.rv :is(.ax-row[data-pin="m"], .ax-row[data-pin="m"] + *) { --pin-d: 100vh; }
  html.rv :is(.ax-row[data-pin="l"], .ax-row[data-pin="l"] + *) { --pin-d: 150vh; }
  /* (a sticky grid item can only travel inside its own grid area, so a pinned section is a plain block: the row, then a
     spacer of --pin-d it travels over; Inset keeps its place on the page's columns 2 to 11 as a margin) */
  html.rv .ax-row[data-pin] { display: block; }
  html.rv .ax-row[data-pin]::after { content: ''; display: block; height: var(--pin-d); }
  html.rv .ax-row[data-pin] > .ax-row-in { position: sticky; top: var(--pin-top, 12vh); }
  html.rv .ax-row[data-pin] > .ax-row-in.w-inset { margin-inline: calc((100% - 11 * var(--ax-gap)) / 12 + var(--ax-gap)); }
  html.rv .ax-row[data-pin] + :is(.ax-row, .ax-next) { margin-top: calc(-1 * var(--pin-d)); }
  /* everything after it is on the page's colour and above it, so once covered it stays covered */
  html.rv .ax-row[data-pin] ~ :is(.ax-row, .ax-next) { position: relative; z-index: 1; background: var(--sf-bg, var(--night)); }
  html.rv .ax-row[data-pin] ~ .ax-row.has-band:not([data-bandfx]) { background: var(--band); }
  html.rv .ax-row[data-pin] ~ .ax-row.has-band[data-bandfx] { background: color-mix(in srgb, var(--band) calc(var(--bk) * 100%), var(--pg-bg)); }
}

/* ---------- Sheet (2026-11-20; DESIGN.md "Sheet look"; markup project-auge.ts sheetBody, scroll + swell case-auge.js
   "Sheet"). Kaz: "I want an option to make a project look SIMILAR to this [6g-studio.com project page]", then "make it our
   own so it matches our site", "I want the scrolling to be the same". One sheet over the blurred cover, framed by the
   site's fixed chrome (the K, the switch and menu, the bottom line): words pinned on the left, pictures in a reel on the
   right. Everything is sized in one unit, u = the viewport's width / 1770 (the reference's). The site's own design wins
   over the reference's: 3 px corners, square pictures, the page's own colours, a hairline, no glass. */
.is-sheet { --u: calc(100vw / 1770); }
body.is-sheet { overflow: hidden; }   /* the reel is what moves; the page itself never scrolls */
.sheet { --sh-out: cubic-bezier(.16, 1, .3, 1); --sh-iy: max(calc(70 * var(--u)), 64px); --sh-ix: calc(66 * var(--u)); --sh-ol: calc(64 * var(--u));
  color: var(--sf-fg, var(--bone)); }
/* the project's cover, blurred and dimmed behind the sheet (light: brighter, under a 35 % veil of the page colour) */
.sh-back { position: fixed; inset: -6%; z-index: 0; overflow: hidden; background: var(--night); }
.sh-back img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: blur(calc(34 * var(--u))) brightness(.38) saturate(.9); }
.theme-invert .sh-back img { filter: blur(calc(34 * var(--u))) brightness(1.1) saturate(.7); }
.theme-invert .sh-back::after { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--night) 35%, transparent); }
/* the sheet: the page colour with a 1 px hairline, the site's 3 px corners; the box holds the two columns */
.sh-surface, .sh-box { position: fixed; z-index: 1; inset: var(--sh-iy) var(--sh-ix); border-radius: 3px; }
.sh-surface { display: block; background: var(--sf-bg, var(--night)); box-shadow: 0 0 0 1px var(--line); }
.sh-box { z-index: 2; display: grid; grid-template-columns: calc(662 * var(--u)) minmax(0, 1fr); overflow: hidden; }
/* the footer row sits in the middle of the margin under the sheet, not against its edge (Kaz, 2026-11-20: "fix the footer") */
@media (min-width: 901px) and (min-aspect-ratio: 1/1) { .sheet .ax-foot { bottom: 0; height: var(--sh-iy); } }

/* the side column: close + client logo, the title, Description, Features + Year, Link, the name on the bottom edge */
.sh-side { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: calc(50 * var(--u)) calc(60 * var(--u)) 0 calc(49 * var(--u)); }
.sh-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 32px; }
/* close = the menu button's own shape with the menu's open-state cross; a link to the work */
.sh-close { flex: none; display: grid; place-items: center; width: 46px; height: 32px; border-radius: 3px; background: var(--sf-fg, var(--bone)); color: var(--sf-bg, var(--night)); transition: transform .16s ease-out; }
.sh-close svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.5; }
.sh-close:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .sh-close:hover { transform: scale(1.04); } .sh-close:hover:active { transform: scale(.97); } }
/* the client's logo (src/content/hero-logos.ts, by project id), the opening's mark at equal visual weight, small */
.sh-client { display: block; color: currentColor; }
.sh-client svg { display: block; height: calc(var(--sh-ol) * var(--lh)); width: calc(var(--sh-ol) * var(--lw)); }
.sh-title { margin-top: calc(54 * var(--u)); font: 700 calc(58 * var(--u))/.96 var(--text); letter-spacing: -.02em; text-transform: none; }
.sh-lab { display: block; font: 700 12px/1.2 var(--text); letter-spacing: .04em; text-transform: uppercase; }
.sh-text { margin-top: calc(34 * var(--u)); }
.sh-desc { margin-top: calc(12 * var(--u)); max-width: calc(520 * var(--u)); font: 400 max(12px, calc(21 * var(--u)))/1.24 var(--text); letter-spacing: -.01em; color: color-mix(in srgb, currentColor 50%, transparent); text-wrap: pretty; }
.sh-meta { margin-top: calc(34 * var(--u)); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 0 20px; }
.sh-list { margin-top: calc(12 * var(--u)); font: 400 max(14px, calc(13.5 * var(--u)))/1.5 var(--text); color: color-mix(in srgb, currentColor 50%, transparent); }
.sh-year { grid-column: 2; font: 400 max(14px, calc(13.5 * var(--u)))/1.2 var(--text); }
.sh-act { margin-top: calc(28 * var(--u)); }
.sh-pill { font: 700 12px/1.3 var(--text); letter-spacing: .04em; text-transform: uppercase; }
/* the name in Bigger Display on the sheet's bottom edge, fitted to the column (case-auge.js "Sheet" after the fonts
   load). Its rise mask needs headroom: at line-height .74 the capitals stand .13 em above the line box, so the masking
   box has padding-top .17 em (Kaz marked the shaved top of the O in red, 2026-11-20) */
.sh-word { flex: none; margin: auto 0 calc(-6 * var(--u)) calc(-4 * var(--u)); padding-top: .17em; overflow: hidden; white-space: nowrap;
  font: 400 calc(214 * var(--u))/.74 var(--display); text-transform: uppercase; color: var(--sf-fg, var(--bone)); }
.sh-word > span { display: block; width: max-content; }
/* a line of words that rises out of its own clip (room above and below for the accents and descenders) */
.sh-line { display: block; overflow: hidden; padding: .2em 0 .12em; margin: -.2em 0 -.12em; }
.sh-line > span { display: block; }

/* the reel: rows in order, a long row split into lines of at most 3; each picture keeps its shape (flex by its ratio,
   --sr, so a line's pictures share one height); a single picture fills the reel, a portrait one at most 70 % of the
   screen's height. 40 u between rows, 8 u inside a row and under a joined row. Scrolls natively until case-auge.js
   takes it over (.sh-smooth: moved by transform). */
.sh-reel { position: relative; min-width: 0; min-height: 0; margin-right: calc(49 * var(--u)); overflow: hidden auto; overscroll-behavior: contain; scrollbar-width: none; }
.sh-reel::-webkit-scrollbar { display: none; }
.sheet.sh-smooth .sh-reel { overflow: hidden; }
.sheet.sh-smooth .sh-inner { will-change: transform; }
.sh-inner { position: relative; display: flex; flex-direction: column; gap: calc(40 * var(--u)); padding: calc(50 * var(--u)) 0; }
.sh-row { display: flex; align-items: flex-start; justify-content: center; gap: calc(8 * var(--u)); }
.sh-row.is-join { margin-top: calc(-32 * var(--u)); }
.sh-row > * { flex: var(--sr, 1) 1 0; min-width: 0; margin: 0; }
.sh-row.is-solo > * { flex: 0 1 auto; width: min(100%, calc(70vh * var(--sr))); }
.sh-row.is-words > * { flex: 1 1 0; }
/* next project: the case page's own row (label, cover, name) on three fixed tracks (fixed, so the label's scramble
   never resizes them) */
.sh-next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); align-items: center; gap: calc(20 * var(--u)); padding: calc(40 * var(--u)) 0 0; }
.sh-next > * { grid-column: auto; min-width: 0; margin: 0; }
.sh-next .ax-next-label { text-align: right; }
.sh-next .ax-next-text { text-align: left; }
/* the swell (case-auge.js): a WebGL copy of the pictures drawn over the reel while it moves; the pictures it draws
   (.is-gl) hide under it meanwhile, keeping their place */
.sh-fx { position: fixed; z-index: 3; left: 0; top: 0; pointer-events: none; visibility: hidden; }
.sheet.is-fx .sh-fx { visibility: visible; }
.sheet.is-fx .sh-reel .is-gl > :is(img, video) { visibility: hidden; }

/* arrival (motion only): the sheet rises from below (the site's surface rise), then the lines rise out of their clips
   64 ms apart, the close button pops, the first screen of pictures comes up, the name rises last. Fill 'backwards'
   only: once landed nothing stays applied (no lasting transform on the box). */
html.rv .sheet :is(.sh-surface, .sh-box) { animation: sh-up .9s var(--sh-out) backwards; }
@keyframes sh-up { from { transform: translateY(102vh); } }
html.rv .sh-line > span { animation: sh-rise 1.1s var(--sh-out) calc(.55s + var(--i, 0) * 64ms) backwards; }
@keyframes sh-rise { from { transform: translateY(115%); } }
html.rv .sh-close { animation: sh-pop .5s var(--sh-out) .55s backwards; }
@keyframes sh-pop { from { scale: 0; } }
html.rv .sh-client { animation: sh-fade .6s ease-out .6s backwards; }
html.rv .sh-act { animation: sh-shot .9s var(--sh-out) calc(.55s + var(--i, 0) * 64ms) backwards; }
html.rv .sh-fig.is-early { animation: sh-shot .9s var(--sh-out) calc(.7s + var(--i, 0) * 90ms) backwards; }
@keyframes sh-shot { from { opacity: 0; transform: translateY(calc(60 * var(--u))); } }
html.rv .sh-word > span { animation: sh-rise 1.2s var(--sh-out) .75s backwards; }
@keyframes sh-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet :is(.sh-surface, .sh-box) { animation: sh-fade .2s ease-out backwards; } }

/* phone (or any portrait screen): one column that scrolls as a whole (the side on top, then the pictures), the close
   button fixed at the bottom centre; u = 1 px. Nothing a reader needs under 12 px. */
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .is-sheet { --u: 1px; }
  .sheet { --sh-iy: 12px; --sh-ix: 12px; --sh-ol: 46px; }
  .sh-box { display: block; overflow: hidden auto; overscroll-behavior: contain; scrollbar-width: none; }
  .sh-box::-webkit-scrollbar { display: none; }
  .sh-side { padding: 64px 26px 0; }
  .sh-bar { justify-content: flex-end; }
  /* (bottom left, level with the site's own switch + menu in the bottom-right corner: the plan's bottom centre sat
     10 px from them on a 390 px screen) */
  .sh-close { position: fixed; z-index: 5; left: var(--gutter); bottom: var(--ctl-b); width: 52px; height: var(--ctl-h); box-shadow: 0 0 0 1px var(--line); }
  .sh-close::before { content: ''; position: absolute; inset: -4px; }
  .sh-title { margin-top: 26px; font-size: 40px; }
  .sh-desc { font-size: 17px; max-width: none; }
  .sh-word { margin: 32px 0 0 -2px; font-size: 120px; }
  .sh-reel { margin: 32px 0 0; padding: 0 12px 80px; overflow: visible; }
  .sh-inner { gap: 32px; padding: 0; }
  .sh-row { gap: 6px; }
  .sh-row.is-join { margin-top: -26px; }
  .sh-next { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sh-next .ax-next-label { text-align: left; }
}

/* failure / settle(): everything at rest, at once */
html.rv-fail :is(.ax-frame > *, .ax-ba-side > img, [data-ax-line], .ax-next-in, .axwi, .ax-letters span) { transform: none !important; transition: none !important; }
html.rv-fail [data-in] { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
html.rv-fail .ax-letters { display: none; }

/* ---------- Ticker (2026-11-25, Kaz: "can you make this part move left to right"; DESIGN.md "Ticker") ----------
   A band whose words run on a loop: the track holds two identical halves and moves by half its width (-50% to 0 =
   the words travel right; .tk-rtl the other way), so it loops with no seam. Sizes come from the band's own width
   (container units), its words exactly as typed (no forced capitals: Kaz wants a lowercase x in "OMIT x BATTLE BEAVER"): 12 px type in a 64 px band at 1920 wide, as on his deck; never under 9 px type (phones), the
   band then 2.4x the type. Pure transform; paused while off screen (case-auge.js "Ticker" sets .is-on), still when
   motion is off (no html.rv: reduced motion, or the canvas). Text runs off both edges; nothing is cut at the start. */
.ax-b-ticker { container-type: inline-size; min-width: 0; }
.ax-tk { --tk-fs: max(9px, .625cqw); position: relative; overflow: hidden; display: flex; align-items: center;
  height: max(3.3334cqw, calc(var(--tk-fs) * 2.4)); font: 400 var(--tk-fs)/1 var(--mono-tk); letter-spacing: .136em;
  text-transform: none; white-space: pre; font-variant-ligatures: none; background: var(--tk-bg); color: var(--tk-fg); }
.ax-tk.tk-light { --tk-bg: #f2f5fa; --tk-fg: #000; }
.ax-tk.tk-dark { --tk-bg: #1e1e21; --tk-fg: #dbdde8; }
.ax-tk.tk-black { --tk-bg: #000; --tk-fg: #dbdde8; }
.ax-tk-track { display: flex; flex: none; will-change: transform; transform: translateX(-50%); }
.ax-tk.tk-rtl .ax-tk-track { transform: none; }
.ax-tk-half { flex: none; }
html.rv .ax-tk-track { animation: ax-tk-ltr var(--tk-dur, 60s) linear infinite; animation-play-state: paused; }
html.rv .ax-tk.tk-rtl .ax-tk-track { animation-name: ax-tk-rtl; }
html.rv .ax-tk.is-on .ax-tk-track { animation-play-state: running; }
@keyframes ax-tk-ltr { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes ax-tk-rtl { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ax-tk-track { animation: none !important; } }
