/* Elle the Engineer: layout and components. Direction A, "the table" (approved 11 Nov 2026).
   Values come from brand.css; no one-off colours here. */

/* ── Header ─────────────────────────────────────────── */
.site-header { position: fixed; inset: 0 0 auto; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 14px 28px; transition: background-color .3s, box-shadow .3s; }
.site-header .home { display: flex; align-items: center; min-height: 44px; text-decoration: none; transition: opacity .3s, visibility .3s; }
.site-header .home .logo { width: 76px; }
/* The mark in the header (v29): the starburst E, 34 px (30 on phones). */
.site-header .home .mark { display: block; width: 34px; }
.mark-img { display: block; width: 100%; height: auto; }
.site-header nav { display: flex; align-items: center; gap: 4px; }
.site-header nav a { text-decoration: none; font-weight: 500; font-size: 16px; padding: 12px 12px; border-radius: 999px; }
.site-header nav a:hover { background: var(--paper-2); }
/* The sound switch (v16): films and button pops. Three bars that move while sound is on. */
.site-header .sound { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; font: 500 16px/1 var(--text); color: var(--ink); background: none; border: 0; border-radius: 999px; cursor: pointer; }
.site-header .sound:hover { background: var(--paper-2); }
.sound-icon { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound-icon i { width: 3px; height: 4px; border-radius: 2px; background: var(--peri); transition: height .3s var(--spring); }
.sound[aria-pressed="true"] .sound-icon i { animation: eq 1s ease-in-out infinite alternate; }
.sound[aria-pressed="true"] .sound-icon i:nth-child(2) { animation-delay: -.35s; animation-duration: .8s; }
.sound[aria-pressed="true"] .sound-icon i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.15s; }
@keyframes eq { from { height: 4px; } to { height: 14px; } }
.sound[aria-pressed="false"] .sound-icon i { background: var(--ink-2); }
.site-header nav a.cta { background: var(--coral-deep); color: #fff; padding: 12px 18px; margin-left: 8px; }
.site-header nav a.cta:hover { background: var(--ink); }
.is-home .site-header .home { opacity: 0; visibility: hidden; } /* hidden from keyboard too until it shows */
.is-scrolled .site-header, .is-case .site-header { background: rgb(255 255 255 / .96); box-shadow: 0 1px 0 var(--line); }
/* Frosted glass once scrolled (v15, after the Liquid Glass guide: glass only on the floating layer). A light blur with a
   little added colour, a hairline edge and an inner highlight. Solid white where blur isn't supported or less
   transparency is asked for. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .is-scrolled .site-header, .is-case .site-header { background: rgb(255 255 255 / .72); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), 0 1px 0 rgb(23 28 32 / .07), 0 8px 24px rgb(23 28 32 / .05); }
}
@media (prefers-reduced-transparency: reduce) {
  .is-scrolled .site-header, .is-case .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.is-past-hero .site-header .home { opacity: 1; visibility: visible; }
.is-case .site-header { position: sticky; }

/* ── First section (Ela, 12 Nov; refs/hero-motion-and-type-spec.md) ──
   Nicole Roberts' staged entrance: a greeting alone, then it rises and one big line arrives under it, then the corners.
   The big line rotates through approved sentences (one cycle, then rests; pause/replay control). Chaachie's sentence
   style in our type: Space Grotesk, key words coloured periwinkle and coral (upright: we hold no italic). */
.poster { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; position: relative; padding: 104px 24px 132px; }
.hero-centre { display: flex; flex-direction: column; align-items: center; text-align: center; width: min(1040px, 100%); }
.greet { margin: 0; font: 400 clamp(17px, 1.4vw, 20px)/1.3 var(--text); color: var(--ink-2); }
.greet .spark { color: var(--peri); margin-left: .2em; }
/* All lines share one grid cell, so the block is as tall as the longest line and nothing below it jumps. */
.lines { position: relative; display: grid; margin-top: clamp(14px, 1.6vw, 22px); width: 100%; }
/* The title's pixel entrance (home.js, v20): the real title waits, hidden but keeping its space, under a canvas of
   dithered pixels; then it takes over and the canvas fades. */
.key.title.veiled, .key.title.veiled .ch { visibility: hidden; }
.title-in { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 1; transition: opacity .25s ease; }
.title-in.out { opacity: 0; }
.line { grid-area: 1 / 1; margin: 0; align-self: center; font: 500 clamp(34px, 5.2vw, 76px)/1.08 var(--display); letter-spacing: -.025em; color: var(--ink); text-wrap: balance; opacity: 0; translate: 0 14px; transition: opacity .5s ease, translate .6s var(--spring); }
.line.is-on { opacity: 1; translate: none; }
.line.is-off { opacity: 0; translate: 0 -14px; transition: opacity .35s ease-in, translate .35s ease-in; }
.key.noun { color: var(--peri); }    /* nouns: what I am and what I make */
.key.verb { color: var(--coral); }   /* verbs: what I do. Large text only: 3.3:1 passes at this size */
/* The title: a smooth periwinkle-to-coral gradient (Ela, 12 Nov). When it wraps, the sweep runs on across the lines. */
.key.title { color: var(--peri); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .key.title { background: linear-gradient(90deg, var(--peri) 0%, var(--coral) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .08em; }
}
/* The page's own dither (home.js, v24): one fixed, screen-sized canvas behind everything; the page's sections sit above. */
.page-dither { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; z-index: 0; pointer-events: none; }
main > section, .site-footer { position: relative; z-index: 1; }
/* The breeze (breeze.js, v16): the big line is split into letters that can move; words stay whole. The gradient
   title is painted letter by letter, each with its slice of one sweep (--gw the title's width, --gx the letter's place). */
.has-breeze .hero .line .bw { white-space: nowrap; }
.has-breeze .hero .line .ch { display: inline-block; }
.has-breeze .greet-text, .has-breeze .greet .spark { display: inline-block; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .has-breeze .hero .key.title { background: none; }
  .has-breeze .hero .key.title .ch { background: linear-gradient(90deg, var(--peri) 0%, var(--coral) 100%) no-repeat; background-size: var(--gw, 100%) 100%; background-position: calc(var(--gx, 0px) * -1) 0; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .08em; }
}
/* The background: a fine, light pixel dither (ordered 8 x 8 Bayer) in periwinkle that drifts slowly, leans toward the
   cursor and dissolves gradually into the next section (Ela, 12 Nov). Drawn by home.js. */
.hero { overflow: visible; }
/* The canvas runs 160 px past the section, so the dissolve finishes inside the next one (the work sits above it). */
.hero .dither { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% + 160px); z-index: 0; pointer-events: none; }
.work { position: relative; z-index: 1; }
.hero-centre { position: relative; z-index: 1; }
.corner { z-index: 1; }
/* Section 1 is shorter than the screen, so the top of the work peeks in below it (Ela, 12 Nov). */
.hero { min-height: calc(100svh - clamp(134px, 16vh + 24px, 214px)); }   /* 24 px less (v30), so the peek holds with the first row's extra room */
/* The section tags: bubbles under the line, the same filters that sort the work below (Ela, 12 Nov). */
.hero .filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 12px; margin: clamp(26px, 3.2vw, 44px) 0 0; padding: 0; max-width: 760px; }
.hero .filters[hidden] { display: none; }
/* Each unchosen bubble is a lens: home.js draws the dither under it magnified and bent toward its edge (v15). The
   pill is part-clear so the lens shows; a top highlight and a faint lower rim make it read as glass. */
.hero .filters button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; font: 500 15px/1 var(--text); color: var(--ink); background: rgb(255 255 255 / .4); border: 1px solid rgb(255 255 255 / .9); border-radius: 999px; box-shadow: inset 0 1.5px 0 rgb(255 255 255 / .95), inset 0 -1px 3px rgb(91 95 199 / .14), 0 0 0 1px rgb(23 28 32 / .07), 0 8px 20px rgb(23 28 32 / .08); rotate: var(--r, 0deg); cursor: pointer; transition: rotate .4s var(--spring), translate .4s var(--spring), background-color .2s, color .2s, border-color .2s; }
.hero .filters button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--peri); margin-right: 8px; }
.hero .filters button:nth-child(even) { translate: 0 6px; }
.hero .filters button:hover { rotate: 0deg; translate: 0 -3px; }
.hero .filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), 0 8px 20px rgb(23 28 32 / .16); }
.hero .filters button[aria-pressed="true"]::before { background: var(--coral); }
.hero .filters button sup { font: 500 12px/1 var(--text); vertical-align: top; margin-left: 5px; color: var(--ink-2); }
.hero .filters button[aria-pressed="true"] sup { color: rgb(255 255 255 / .75); }
.corner { position: absolute; bottom: 28px; margin: 0; font: 400 14px/1.5 var(--text); color: var(--ink-2); }
.corner.left { left: 28px; }
.corner.right { right: 28px; display: flex; align-items: center; gap: 8px; }
.corner p { margin: 0; }
.corner-label { font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: var(--ink-2); }
.corner a { color: var(--ink); text-decoration: none; display: inline-block; padding: 10px 0; }
.corner a:hover { text-decoration: underline; text-underline-offset: 3px; }
.corner .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--peri); }
/* The entrance, only when the script has started it (body.intro); without JavaScript everything simply shows. */
.intro .greet { animation: greet-in .6s ease both, greet-rise .7s var(--spring) 1.2s both; }
@keyframes greet-in { from { opacity: 0; } }
@keyframes greet-rise { from { translate: 0 calc(var(--lift, 60px)); } }
.intro .greet { --lift: 60px; }
.intro .lines, .intro .filters { animation: rise-in 1s var(--spring) 1.25s both; }
.intro .filters { animation-delay: 1.6s; }
.intro .corner { animation: rise-in .9s var(--spring) 2.75s both; }
@keyframes rise-in { from { opacity: 0; translate: 0 16px; } }
/* Safety: if animations don't run (a hidden tab, a print), the final state shows after 4 s. */
.intro-done .greet, .intro-done .lines, .intro-done .filters, .intro-done .corner { animation: none; }

/* ── Work: filters and the table ───────────────────── */
.work { padding: 64px 28px 120px; scroll-margin-top: 64px; overflow-x: clip; } /* tilted tiles never cause a sideways scroll */

/* Rows 80 px apart: each tag sits 44 px above its picture, so this leaves it 36 px clear of the title above (v30, review v28). */
.table { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 80px 48px; max-width: 1320px; margin: 0 auto; padding: 0; list-style: none; }
.tile { --w: 300px; width: var(--w); }
.tile[data-size="xl"] { --w: 560px; } .tile[data-size="l"] { --w: 400px; } .tile[data-size="s"] { --w: 240px; }
.tile[hidden] { display: none; }
.tile > a, .tile > div { display: block; text-decoration: none; color: inherit; border-radius: var(--r-tile); }
.thing { position: relative; aspect-ratio: var(--ratio, 1); border-radius: var(--r-tile); overflow: hidden; background: var(--field); box-shadow: var(--shadow); rotate: var(--r, 0deg); transition: rotate var(--t-hover) var(--spring), translate var(--t-hover) var(--spring), box-shadow var(--t-hover); }
/* On the table, the tilt and lift belong to the object (picture + its context tag), so the tag stays tied to the
   picture's own top edge at every tilt and never covers it. */
.tile .obj { position: relative; rotate: var(--r, 0deg); transition: rotate var(--t-hover) var(--spring), translate var(--t-hover) var(--spring); }
.tile .thing { rotate: none; }
/* The gap between a project's tag and its picture belongs to the project (v20): without this bridge the cursor there
   fell off the link, so the picture lifted and dropped again and again. */
/* Hover starts 12 px before the edge (v21), so the lift can't move the picture out from under a cursor resting on
   its edge (it lifted, lost the cursor, dropped, found it again). Projects sit 48 px or more apart: no overlap. */
@media (hover: hover) { .tile .obj { isolation: isolate; } .tile .obj::after { content: ""; position: absolute; inset: -12px; z-index: -1; border-radius: calc(var(--r-tile) + 12px); } }
.ctx::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 24px; }   /* from the tag down to its picture */
.tile a:hover .obj, .tile a:focus-visible .obj { rotate: calc(var(--r, 0deg) * -1.5); translate: 0 -8px; }
.tile a:hover .thing, .tile a:focus-visible .thing { box-shadow: var(--shadow-up); }
/* Liquid glass over each project picture (home.js; v23, v25 clear glass, v27 smooth). At rest, clear glass like the
   filter bubbles: the frame a 30% white tint, the picture at 40%, a thin white tint and the bubbles' rim, with lens dots
   behind (drawn by the page's dither). On hover or focus everything fades together to the solid picture (0.45 s). */
.has-glass .thing { background-color: rgb(255 255 255 / .3); transition: background-color .45s ease, rotate var(--t-hover) var(--spring), translate var(--t-hover) var(--spring), box-shadow var(--t-hover); }
.has-glass .thing.is-clear { background-color: var(--field); }
.has-glass .thing > img, .has-glass .thing > video, .has-glass .thing > .mini-hero, .has-glass .thing > .code, .has-glass .thing > .logo { opacity: .4; transition: opacity .45s ease; }
/* The two projects whose pictures are words (Explain it back, this site) stay readable at rest (v30, review v28: 1.8:1 and 2.5:1). */
.has-glass .thing > .code, .has-glass .thing > .mini-hero { opacity: .9; }
.has-glass .thing > .code { opacity: 1; z-index: 5; }   /* full strength at rest, above the glass tint (v31, review v30) */
.has-glass .thing.is-clear > img, .has-glass .thing.is-clear > video, .has-glass .thing.is-clear > .mini-hero, .has-glass .thing.is-clear > .code, .has-glass .thing.is-clear > .logo { opacity: 1; }
.has-glass .thing .glass { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; transition: opacity .45s ease;
  background: linear-gradient(160deg, rgb(255 255 255 / .34), rgb(255 255 255 / .08) 46%, rgb(255 255 255 / .2)); }
.has-glass .thing .rim { position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit; transition: opacity .45s ease;
  box-shadow: inset 0 1.5px 0 rgb(255 255 255 / .95), inset 0 0 0 1px rgb(255 255 255 / .9), inset 0 -2px 6px rgb(91 95 199 / .14), 0 0 0 1px rgb(23 28 32 / .07); }
.has-glass .thing.is-clear .glass, .has-glass .thing.is-clear .rim { opacity: 0; }
/* Each project is drawn as one layer while it moves, so its rounded, tilted edges stay steady (v24: they flickered). */
.has-glass .tile .obj { will-change: transform; }
@media (prefers-reduced-transparency: reduce) { .has-glass .thing .glass, .has-glass .thing .rim { display: none; } .has-glass .thing > * { opacity: 1 !important; } .has-glass .thing { background-color: var(--field); } }
.thing video, .thing img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thing img.fit { object-fit: contain; padding: 12%; }
.mini-hero { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: radial-gradient(circle at 1px 1px, rgb(91 95 199 / .35) 1px, transparent 1.4px) 0 0 / 5px 5px, #fff; }
.mini-hero .mh-greet { font: 400 12px/1 var(--text); color: var(--ink-2); }
.mini-hero .mh-line { font: 500 clamp(18px, 2vw, 24px)/1.1 var(--display); letter-spacing: -.02em; color: var(--ink); }
.thing .logo { position: absolute; left: 50%; top: 50%; width: 70%; translate: -50% -50%; }
.thing .logo img { position: static; inset: auto; width: 125.63%; height: auto; object-fit: contain; } /* the logo crop, not the tile fill */
.thing .code { position: absolute; inset: 0; display: grid; place-items: center; font: 400 15px var(--mono); color: var(--peri); }
.cap { margin-top: 18px; text-align: center; }
.cap h3 { margin: 0; font: 700 18px/1.2 var(--display); }
.cap p { margin: 3px 0 0; font-size: 14px; color: var(--ink-2); }
/* Context tag: a label above the object, clear of the picture. */
.ctx { position: absolute; left: 14px; top: -44px; z-index: 2; font: 500 13px/1 var(--text); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; box-shadow: 0 2px 8px rgb(23 28 32 / .10); rotate: -2deg; /* sits fully above the picture, so it never covers the work */ }
.cap .soon { display: inline-block; margin-top: 8px; font: 500 12px/1 var(--text); color: var(--ink-2); border: 1px dashed #b9bcd8; border-radius: 999px; padding: 6px 10px; }
.tile.ph .thing { box-shadow: none; border: 2px dashed #b9bcd8; background: #fafafc; }
.tile.ph .thing span { position: absolute; inset: 0; display: grid; place-items: center; font: 500 14px var(--text); color: var(--ph-ink); }
.empty { margin: 8px auto 0; text-align: center; font: 400 18px/1.5 var(--text); color: var(--ink-2); }
.drop { animation: drop .5s var(--spring) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes drop { from { opacity: 0; translate: 0 18px; scale: .96; } }
.leave { animation: leave .18s ease-in both; pointer-events: none; }
@keyframes leave { to { opacity: 0; translate: 0 -10px; scale: .96; } }

/* ── About and contact ─────────────────────────────── */
.about { background: var(--peri-wash); border-radius: 32px; margin: 0 28px; padding: 80px 28px; display: grid; justify-items: center; text-align: center; scroll-margin-top: 80px; }
.about h2 { margin: 0 0 20px; font: 500 15px var(--text); color: var(--ink-2); }
.about p { max-width: 52ch; font-size: 22px; line-height: 1.5; margin: 0 0 16px; }
.about p.small { font-size: 17px; color: var(--ink-2); }
.about .skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 640px; margin: 12px 0 0; padding: 0; list-style: none; }
.about .skills li { display: flex; }
/* Each skill opens its part of the work (v19): a pill-shaped link, 44 px tall to tap. */
.about .skills a { display: inline-flex; align-items: center; min-height: 44px; font: 500 14px/1 var(--text); color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; transition: background-color .2s, color .2s, border-color .2s; }
.about .skills a::after { content: "↗"; margin-left: 6px; color: var(--peri); font-size: 12px; }
.about .skills a:hover, .about .skills a:focus-visible { background: var(--ink); color: #fff; border-color: var(--ink); }
.about .skills a:hover::after, .about .skills a:focus-visible::after { color: #fff; }
.contact { padding: 120px 28px; text-align: center; }
.contact h2 { font: 700 clamp(30px, 3.6vw, 52px)/1.1 var(--display); letter-spacing: -.02em; margin: 0 auto 28px; max-width: 22ch; text-wrap: balance; }
.contact ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.contact a { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font-weight: 500; text-decoration: none; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); } /* the long email wraps on the smallest phones */
.contact a.cta { background: var(--ink); color: #fff; border-color: var(--ink); }
.site-footer { padding: 28px; text-align: center; font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--line); }

/* ── Case study ────────────────────────────────────── */
.case main { overflow-x: clip; } /* tilted objects may poke past the edge on phones; never a sideways scroll */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.cs-intro { padding-block: 72px 48px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.cs-intro .back { grid-column: 1 / -1; font-size: 15px; text-decoration: none; color: var(--ink-2); justify-self: start; padding: 10px 0; }
.cs-intro .back:hover { color: var(--ink); }
.cs-intro h1 { grid-column: 1 / span 9; margin: 0; font: 700 clamp(48px, 8vw, 116px)/.95 var(--display); letter-spacing: -.03em; }
.cs-intro .stand { grid-column: 1 / span 7; margin: 12px 0 0; font-size: clamp(20px, 2vw, 26px); line-height: 1.35; color: var(--ink-2); }
.meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.meta li { font: 500 14px/1 var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; background: #fff; box-shadow: 0 6px 18px rgb(23 28 32 / .06); rotate: var(--r, 0deg); }
.meta li span { color: var(--ink-2); font-weight: 400; margin-right: 6px; }
.meta li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--peri)); margin-right: 8px; vertical-align: 1px; }

.object { position: relative; margin: 0; border-radius: var(--r-object); background: var(--field, var(--peri-wash)); padding: clamp(20px, 5vw, 72px); box-shadow: var(--shadow); }
.object video { width: 100%; max-width: var(--hero-w); margin: 0 auto; border-radius: 16px; background: var(--ink); }
.object video.on-phone { display: none; max-width: 520px; }   /* a hero's phone composition (build.mjs hero.phone), below 768 px only; capped so a 4:5 never towers */
@media (max-width: 767px) { .object video.on-wide { display: none; } .object video.on-phone { display: block; } }
.object figcaption, .fig figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-2); text-align: center; }

.pair { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding-block: 104px; align-items: start; }
.pair h2 { grid-column: 1 / span 5; margin: 0; font: 700 clamp(30px, 3.4vw, 46px)/1.05 var(--display); letter-spacing: -.02em; }
.pair .body { grid-column: 7 / span 6; }
.pair .body.wide { grid-column: 1 / -1; margin-top: 24px; }
.pair p { margin: 0 0 16px; max-width: 58ch; }
.made { margin: 24px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 16px; }
.made li::before { content: "— "; color: #9da1aa; }

.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 8px 0 24px; list-style: none; margin: 0; }
.numbers li { border-radius: 22px; padding: 28px 26px 30px; background: var(--field); rotate: var(--r); box-shadow: 0 12px 32px rgb(23 28 32 / .08); transition: rotate var(--t-hover) var(--spring), translate var(--t-hover) var(--spring); }
.numbers li:hover { rotate: 0deg; translate: 0 -6px; }
.numbers .k { font: 500 13px/1 var(--text); color: var(--ink-2); }
.numbers .u { display: block; margin-top: 6px; font: 500 14px/1 var(--text); letter-spacing: 0; color: var(--ink-2); }
.numbers .n { display: block; margin: 18px 0 12px; font: 700 clamp(44px, 5vw, 68px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.numbers p { margin: 0; font-size: 16px; line-height: 1.5; }

.figs { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, var(--fig-w))); justify-content: center; gap: 28px; }
.fig video { width: min(var(--fig-w), 100%); height: auto; margin: 0 auto; border-radius: 18px; box-shadow: 0 12px 32px rgb(23 28 32 / .10); rotate: var(--r, 0deg); background: var(--ink); }
.fig { margin: 0; }
.figs.wide { --fig-w: var(--hero-w); }   /* build.mjs figs.wide: a detail read at its own size */
.figs.space { margin-top: calc(28px * 2); }   /* build.mjs figs.space: two of the grid's own 28 px gaps above a figs section that follows another */
.fig img { width: min(var(--fig-w), 100%); margin: 0 auto; border-radius: 18px; box-shadow: 0 12px 32px rgb(23 28 32 / .10); rotate: var(--r, 0deg); }
.card-link { display: block; text-decoration: none; border-radius: 22px; padding: 26px; background: var(--peri-wash); font: 400 15px/1.5 var(--mono); color: var(--peri); box-shadow: 0 12px 32px rgb(23 28 32 / .08); rotate: -1.5deg; transition: rotate var(--t-hover) var(--spring), translate var(--t-hover) var(--spring); }
.card-link:hover, .card-link:focus-visible { rotate: 0deg; translate: 0 -6px; }
.card-link b { display: block; font: 700 22px/1.2 var(--display); color: var(--ink); margin-bottom: 10px; }
.card-link small { display: block; margin-top: 6px; font: 400 14px/1.4 var(--text); color: var(--ink-2); }
/* Exchange: what you type, what comes back. */
.exchange { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.turn { border-radius: 20px; padding: 18px 20px; max-width: 52ch; }
.turn p { margin: 0 0 8px; font-size: 16px; }
.turn p:last-child { margin: 0; }
.turn .who { display: block; font: 500 12px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.turn.you { background: var(--paper-2); justify-self: end; }
.turn.reply { background: var(--peri-wash); }
/* Live: the real site in a frame. */
.live-frame { width: 100%; max-width: 1040px; margin: 0 auto; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 1px 0 var(--line); }
.live-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Swatches: a palette with names, values and sources. */
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
.swatches li { display: grid; gap: 4px; font-size: 15px; }
.swatches .chip-c { display: block; aspect-ratio: 4 / 3; border-radius: 16px; box-shadow: inset 0 0 0 1px rgb(23 28 32 / .08); margin-bottom: 8px; }
.swatches code { font: 400 14px var(--mono); color: var(--ink-2); }
.swatches li > span:last-child { color: var(--ink-2); font-size: 14px; }
.credit { font-size: 16px; color: var(--ink-2); padding: 56px 28px; border-top: 1px solid var(--line); margin-top: 104px; }
.next { display: block; text-decoration: none; padding: 72px 28px 120px; text-align: center; }
.next .k { font-size: 15px; color: var(--ink-2); }
.next h2 { margin: 8px 0 32px; font: 700 clamp(40px, 6vw, 88px)/1 var(--display); letter-spacing: -.03em; }
.next .thing { width: min(520px, 100%); margin: 0 auto; --r: 2deg; }
.next:hover .thing, .next:focus-visible .thing { rotate: -1deg; translate: 0 -8px; box-shadow: var(--shadow-up); }

/* ── Tablet ───────────────────────────────────────── */
@media (min-width: 701px) and (max-width: 1100px) {
  .tile[data-size="xl"] { --w: 100%; }
  .tile, .tile[data-size="l"] { --w: calc(50% - 24px); }
}
/* ── Phone ────────────────────────────────────────── */
@media (max-width: 800px) {
  .site-header { padding: 12px 16px; }
  .site-header .home .logo { width: 68px; }
  .site-header .home .mark { width: 30px; }
  .site-header nav a:not(.cta) { display: none; }
  .site-header .sound-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* icon only on phones; still named */
  .wrap { padding-inline: 18px; }
  .cs-intro { padding-top: 40px; }
  .cs-intro h1, .cs-intro .stand, .pair h2, .pair .body { grid-column: 1 / -1; }
  .pair { padding-block: 64px; gap: 16px; }
  .numbers { grid-template-columns: 1fr; }
  .object { padding: 14px; }
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } /* two-up: each half the hero */
  .figs .fig img { width: 100%; }
  .figs.space { margin-top: calc(16px * 2); }   /* two of the phone grid's 16 px gaps */
  .figs.phone-one { grid-template-columns: 1fr; } /* one-up where the pixel detail must read (Framework, Ela 15 Nov) */
  .body.wide.figs { grid-template-columns: 1fr; }
  .body.wide.figs .fig img { width: min(var(--fig-w), calc(100% - 28px)); } /* never wider than the hero film (= the column less the panel's padding) */
  .object { border-radius: 20px; }
}
@media (max-width: 700px) {
  .poster { padding: 96px 20px 150px; }
  .corner { bottom: 18px; font-size: 13px; }
  .corner.left { left: 20px; right: 20px; text-align: center; bottom: 52px; }
  .corner.right { left: 0; right: 0; justify-content: center; bottom: 18px; }
  .work { padding: 80px 16px 80px; }   /* the first tag clear of the corner line above (review v28) */
  .hero .filters { gap: 12px 10px; }
  .hero .filters button { padding: 0 13px; font-size: 14px; }
  .hero .filters button:nth-child(even) { translate: none; }
  .tile, .tile[data-size] { --w: 100%; }
  .table { gap: 80px; }
  .about { margin: 0 12px; padding: 56px 20px; }
  .about p { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .sound[aria-pressed="true"] .sound-icon i { animation: none; height: 10px; }
  .drop, .leave, .intro .greet, .intro .lines, .intro .filters, .intro .corner { animation: none; }
  .line { transition: none; }
  .thing, .tile .obj, .numbers li, .card-link { transition: none; }
}
/* The smallest phones (320 px): tighter tag rows and top room so the whole hero, button included, fits the first screen. */

