/* Hallmark · shape: colour-block poster · genre: editorial · theme: brand · redesign: full · copy: verbatim · job: hire
 * paper: #fbfaf8 · accent: #0b6bd9 · display: Bricolage Grotesque · body: Geist · hero: Poster, the headline is the picture, set left · nav: wordmark left, inline links, one button, no hairline (the brief locks its items) · footer: wordmark and one line beside four link columns (the brief names the four) · signature: sentence-case Bricolage at poster scale crossing edge-to-edge bands of paper, azure and ink
 * axes: light/grotesk-heavy/chromatic-blue · posture: committed · surface: absolute · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S3 R4 V4 · weakest: S, big type on colour bands could carry another agency; the three real client screenshots and the owner's own wording do the specific work, set large */
/* Hallmark · waive 7b · white is ink on the azure field and on the azure button only, never a paper surface; contrast 5.1:1 · the locked UGO brand sets a white label on the azure button and white type on azure bands */
/* Hallmark · dismissed 23 · the azure 01 02 03 numerals are the brief for the How we work staircase, three marks on one paper section under the committed posture */
/* Hallmark · dismissed 77 · the contact page is a hero, the form with phone, email and location, testimonials and the footer; it is the form people come for, so it stays four sections */
/* Hallmark · dismissed 29 · the owner asked for a more modern menu that stays on screen; one floating nav bar is translucent with a blur so it stays legible over paper, azure, ink and screenshots, and nothing else on the site uses glass */
/* Hallmark · dismissed 42 · the footer shape is named in the stamp and its four columns (Services, Company, Products, Location) are required by the brief */
/*
UGO MEDIA SITE STYLES: one stylesheet and one script for every page (ugo.css, ugo.js).
Pages link them relatively so the same file works at any depth: "ugo.css?v=..." from the homepage,
"../ugo.css?v=..." and "../ugo.js?v=..." (defer) from /services/, /ai/ and the rest.
Copy the <header class="nav">, the <footer class="footer"> and the <dialog class="contact-panel"> from
services/index.html unchanged; move aria-current="page" to the page's own nav link (desktop list and phone sheet).
Every page needs, straight after <meta charset>, the theme-color meta and the inline theme boot script.

RULES OF THE DESIGN
- Headings are Bricolage 800, sentence case, set left. Never centred, never all caps. Body is Geist 400/600.
- No boxed cards, no icons in tiles, no emoji, no tag chips, no small label above a heading.
- Colour comes from full-width bands. Never put two azure bands next to each other.
- Every colour and size is a token (see ":root" and the dark block). Do not write a hex value or a px gap in a page.

BLOCKS (class names)
  Page frame      .container (capped 1440, centred) inside every section
  Nav             A floating bar fixed to the top of the window (so the first section of a page needs top padding of
                  var(--nav-clear) plus breathing room; .hero and .page-hero already have it).
                  header.nav > .container.nav-inner > a.wordmark, nav.nav-desktop (ul.nav-links + a.btn.btn--primary.btn--nav),
                  button.theme-toggle (onclick="toggleTheme()"), details.nav-mobile (summary + nav.nav-sheet). Phone menu needs no script.
  Footer          footer.footer > .footer-grid > .footer-brand + four .footer-col (p.footer-head + ul), then p.footer-bottom
  Page hero       section.page-hero > .container.page-hero-inner > h1.page-title [+ .page-title--accent with two <span> lines,
                  the second turns azure] then div.page-hero-foot > p.page-lede [+ div.actions with buttons]
  Bands           section.band (paper) | .band.band--paper2 (alternate paper) | .band.band--field (azure, white text)
                  | .band.band--night (ink, light text). A band sets --fg, --sub, --line for everything inside it.
  Band heading    h2.band-head (two sentences: wrap each in <span>) ; p.band-sub ; div.head-split (heading left, sentence or
                  button right) ; .head-split--end pushes a button to the right edge ; div.band-foot for a button under a list
  Type rows       ul.type-rows > li > h3 + p            huge names with a sentence beside each (3 to 4 rows)
  Ledger rows     div.container.split > div.split-lead (h2.split-head, p.band-sub, button) + ul.split-list > li > h3 + p
                  [+ ul.plain-list of plain words]      heading pinned left, ruled rows right
  Ruled grid      ul.grid-rules > li > h3 + p           short items three across ; .grid-rules--2 / .grid-rules--4
  Staircase       ol.stairs > li > h3 + p               three numbered steps, numerals are drawn by CSS (do not type 01)
  Feature split   div.feature [.feature--flip] > div.feature-text (h2.feature-head, p.band-sub, ul.checklist, button)
                  + figure.feature-shot [.feature-shot--wide] > span.work-shot > picture/img [+ figcaption]
  Screenshot      span.work-shot wraps any image and gives it the frame ; .work-name and .work-kind caption it
  Checklist       ul.checklist > li                     tick is drawn by CSS, 5px between rows
  Figures         ul.figures > li > p.figure-num + p    real numbers only
  Statement       section.band.band--field.statement > h2.poster.poster--band + div.statement-row (p.band-sub + button)
  Closing CTA     section.band.band--night.cta > h2.poster.poster--band + div.statement-row (p.band-sub + a.btn.btn--primary[data-contact])
  Carousel        div.carousel[data-carousel] > div.carousel-track[tabindex=0] > figure.slide (svg.stars, blockquote, figcaption)
                  + div.container.carousel-bar (p.carousel-count > span[data-now], button[data-pause], [data-prev], [data-next])
  Buttons         a.btn.btn--primary (azure, white label) | a.btn.btn--outline (takes the band's text colour) ; .btn--nav is the
                  smaller nav size. On azure bands use .btn--outline only.
  Form fields     div.field > label + input | select | textarea ; div.field-row puts two side by side ; p.form-error
  Contact panel   dialog#contact-panel.contact-panel. Any <a href="/contact/" data-contact> opens it on a plain click and still
                  goes to /contact/ with scripting off or in a new tab.
  Prose           div.prose for long text (privacy)
  Work steps      div.work-steps > three a.work-item (figure > span.work-shot + figcaption)   tiles stepping down left to right
  Logo row        ul.logo-row > li > img.logo | svg.logo [.logo--short]   one colour, follows the theme and the band
  Detail rows     dl.detail-rows > div > dt + dd            label and value rows (phone, email, location)
  Contact split   div.container.contact-split > div.contact-split-lead + div.contact-form-wrap > form.contact-form
                  On the contact page the form sits on the page (section id="contact-form"), the dialog is left out, and
                  "Get in touch" links use href="#contact-form".
  Small helpers   .band--tight (shorter band) ; .band--flush (short top padding, sits under the page hero) ; p.feature-kind
                  (what we did, under a study's name) ; .band-head--gap (heading with nothing beside it)

MOTION (ugo.js adds these; do not add them by hand)
  html.js is set when reveals are on. Elements get .rv plus .rv--rise | .rv--soft | .rv--line | .rv--row | .rv--step | .rv--shot,
  then .is-in the first time they enter the screen. Already wired: band headings, .band-sub, .band-foot, .statement-row,
  .type-rows li, .work-item, .split-list > li, .stairs li, .carousel, .grid-rules > li, .figures > li, .feature-text, .feature-shot,
  .logo-row > li, .detail-rows > div.
  For anything else add data-reveal="rise" | "soft" | "line" | "shot" in the HTML. Nothing is hidden without the script,
  in print, or under reduced motion.

DARK THEME
  html[data-theme="dark"] swaps the colour tokens only. Use --color-accent-text for blue text (it lightens in dark) and
  --color-accent for filled buttons. Stored in localStorage as 'ugo-theme' by toggleTheme(), shared by every page.

Homepage-only rules are grouped at the end of this file.
*/

/* ===== tokens ===== */
:root {
  --space-3xs: 2px; --space-check: 5px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-btn: 0.9375rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms; --dur-reveal: 600ms; --dur-draw: 700ms; --dur-settle: 1100ms;
  --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150);
  --nav-h: 3.5rem; --nav-top: 12px; --nav-clear: calc(var(--nav-top) + var(--nav-h)); --radius-bar: 16px; --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --color-paper: #fbfaf8; --color-paper-2: #f5f3ef; --color-paper-3: #ebe8e1;
  --color-ink: #111214; --color-ink-2: #34363c; --color-muted: #63656c;
  --color-rule: #d9d5cc; --color-field: #0b6bd9; --color-field-ink: #ffffff; --color-field-rule: #5c9ce6; --color-tint: #e1eefb; --color-star: #fbbf24; --color-night: #111214; --color-night-ink: #fbfaf8; --color-night-muted: #b4b6bd; --color-night-rule: #34363c;
  --color-accent: #0b6bd9; --color-accent-ink: #ffffff; --color-accent-press: #0957b3; --color-accent-down: #084a99; --color-accent-text: #0b6bd9; --color-focus: #0b6bd9;
  --color-shot-rule: #d9d5cc; --color-scrim: rgb(17 18 20 / 0.55);
  --color-bar: rgb(251 250 248 / 0.82); --color-bar-scrolled: rgb(251 250 248 / 0.94); --color-bar-solid: rgb(251 250 248 / 0.97); --color-bar-edge: rgb(17 18 20 / 0.14); --color-bar-chip: rgb(17 18 20 / 0.07); --color-bar-shadow: rgb(17 18 20 / 0.14);
  --logo-filter: brightness(0);
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif; --font-body: "Geist", ui-sans-serif, system-ui, sans-serif; --font-outlier: var(--font-body);
  --radius-card: 0px; --radius-button: 10px; --radius-pill: 999px; --rule-hair: 1px; --shadow-card: none;
  --tracking-display: -0.035em; --display-weight: 800;
  --text-hero: clamp(4rem, 13.5vw, 12.125rem); --text-poster: clamp(4.5rem, 15vw, 13.5rem); --text-band: clamp(2.75rem, 8.2vw, 7.375rem); --text-statement: clamp(2.75rem, 9.2vw, 8.25rem); --text-row: clamp(2.5rem, 8vw, 7.25rem); --text-numeral: clamp(6rem, 13vw, 12rem);
}
/* Dark theme. Opt-in only: html[data-theme="dark"], stored in localStorage under 'ugo-theme' (the same switch the rest of the site uses). */
html[data-theme="dark"] {
  color-scheme: dark;
  --color-paper: #0a0a0a; --color-paper-2: #111214; --color-paper-3: #1b1d21;
  --color-ink: #f5f4f1; --color-ink-2: #c9cbd1; --color-muted: #9a9ca4;
  --color-rule: #2e3036; --color-shot-rule: #3d4047;
  --color-night: #1d1f24; --color-night-ink: #f5f4f1; --color-night-muted: #b9bbc2; --color-night-rule: #3d4047;
  --color-accent-text: #4d9dff; --color-focus: #4d9dff;
  --color-error: oklch(74% 0.15 27); --color-success: oklch(76% 0.13 150);
  --color-scrim: rgb(0 0 0 / 0.7);
  --color-bar: rgb(22 23 27 / 0.8); --color-bar-scrolled: rgb(22 23 27 / 0.93); --color-bar-solid: rgb(22 23 27 / 0.97); --color-bar-edge: rgb(255 255 255 / 0.16); --color-bar-chip: rgb(255 255 255 / 0.1); --color-bar-shadow: rgb(0 0 0 / 0.5);
  --logo-filter: brightness(0) invert(1); --logo-knock: var(--color-paper);
}

/* ===== base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: calc(var(--nav-clear) + var(--space-md)); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* ===== shared blocks ===== */
/* ---------- shared ---------- */
body { font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
h1, h2, h3 { max-width: none; }

.wordmark { display: inline-flex; font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: -0.02em; line-height: 1; text-decoration: none; }
.wordmark-ugo { color: var(--color-ink); }
.wordmark-media { color: var(--color-accent-text); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: var(--space-xs) calc(var(--space-md) + var(--space-2xs)); border: 1.5px solid transparent; border-radius: var(--radius-button); font-family: var(--font-body); font-weight: 600; font-size: var(--text-btn); line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-press); border-color: var(--color-accent-press); }
.btn--primary:active { background: var(--color-accent-down); border-color: var(--color-accent-down); }
.btn--outline { background: transparent; border-color: var(--fg, var(--color-ink)); color: var(--fg, var(--color-ink)); }
.btn--outline:hover { background: var(--fg, var(--color-ink)); color: var(--bg, var(--color-paper)); }
.btn--outline:active { background: var(--fg, var(--color-ink)); color: var(--bg, var(--color-paper)); border-color: var(--line, var(--color-rule)); }

/* ---------- nav ---------- */
/* A floating bar: fixed to the top of the window on every page, inset, rounded, translucent with a blur behind it.
   It stays put while the page scrolls; ugo.js adds .is-scrolled once the page has moved (a touch more solid, a soft shadow, 4px closer to the top). */
.nav { position: fixed; inset: var(--nav-top) 0 auto 0; z-index: var(--z-sticky-nav); padding-inline: max(var(--space-xs), calc(var(--gutter) - var(--space-lg))); color: var(--color-ink); pointer-events: none; }
.nav-inner { position: relative; display: flex; align-items: center; gap: var(--space-md); min-height: var(--nav-h); max-width: calc(var(--container) - 2 * var(--gutter) + 2 * var(--space-lg)); padding-inline: var(--space-lg) var(--space-xs); border: 1px solid var(--color-bar-edge); border-radius: var(--radius-bar); background: var(--color-bar-solid); pointer-events: auto; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.nav-inner::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: 0 8px 24px -8px var(--color-bar-shadow); opacity: 0; pointer-events: none; transition: opacity var(--dur-short) var(--ease-out); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-inner { background: var(--color-bar); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); }
  .nav.is-scrolled .nav-inner { background: var(--color-bar-scrolled); }
}
.nav.is-scrolled .nav-inner { transform: translate3d(0, calc(var(--space-2xs) * -1), 0); }
.nav.is-scrolled .nav-inner::after { opacity: 1; }
.nav-inner > .wordmark { margin-right: auto; }
.nav-desktop { display: flex; align-items: center; gap: var(--space-md); }
.nav-links { display: flex; align-items: center; gap: var(--space-2xs); }
.nav-links a { display: inline-flex; align-items: center; min-height: 36px; padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-button); font-size: var(--text-btn); font-weight: 400; color: var(--color-ink-2); text-decoration: none; white-space: nowrap; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.nav-links a:hover { background: var(--color-bar-chip); color: var(--color-ink); }
.nav-links a:active { color: var(--color-accent-text); }
.nav-links a[aria-current="page"] { background: var(--color-bar-chip); color: var(--color-ink); font-weight: 600; }
.btn--nav { min-height: 40px; }
.nav-mobile { display: none; }
.nav-mobile summary { list-style: none; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-sheet { position: absolute; inset-inline: 0; top: calc(100% + var(--space-xs)); max-height: calc(100svh - var(--nav-clear) - var(--space-lg)); overflow-y: auto; overscroll-behavior: contain; padding: var(--space-sm) var(--space-lg) var(--space-md); border: 1px solid var(--color-bar-edge); border-radius: var(--radius-bar); background: var(--color-paper); color: var(--color-ink); pointer-events: auto; }
.nav-sheet a { display: block; padding-block: var(--space-sm); font-family: var(--font-display); font-weight: 800; font-size: var(--text-2xl); letter-spacing: var(--tracking-display); line-height: 1.1; text-decoration: none; white-space: nowrap; }
.nav-sheet a[aria-current="page"] { color: var(--color-accent-text); }

/* theme toggle: the same switch as the rest of the site (toggleTheme, 'ugo-theme') */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; inline-size: 40px; block-size: 40px; padding: 0; border: 1.5px solid var(--color-bar-edge); border-radius: var(--radius-button); background: transparent; color: var(--color-ink); cursor: pointer; transition: border-color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out); }
.theme-toggle:hover { border-color: var(--color-ink); }
.theme-toggle:active { background: var(--color-bar-chip); }
.theme-toggle:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }
.theme-toggle svg { inline-size: 18px; block-size: 18px; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.poster { font-size: var(--text-hero); line-height: 0.88; letter-spacing: -0.04em; text-wrap: wrap; }
.poster span { display: block; }
/* owner, 24 November: one line of the headline carries the accent */
.poster--accent span:last-child { color: var(--color-accent-text); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* ---------- bands ---------- */
.band { --bg: var(--color-paper); --fg: var(--color-ink); --sub: var(--color-ink-2); --line: var(--color-rule); background: var(--bg); color: var(--fg); padding-block: var(--section-gap); }
.band--paper2 { --bg: var(--color-paper-2); }
.band--field { --bg: var(--color-field); --fg: var(--color-field-ink); --sub: var(--color-field-ink); --line: var(--color-field-rule); --color-focus: var(--color-field-ink); }
.band--night { --bg: var(--color-night); --fg: var(--color-night-ink); --sub: var(--color-night-muted); --line: var(--color-night-rule); --color-focus: var(--color-night-ink); }
.band ::selection { background: var(--fg); color: var(--bg); }

.band-head { font-size: var(--text-band); line-height: 0.95; letter-spacing: -0.04em; max-width: 12ch; }
.band-head span { display: block; }
.band-sub { font-size: var(--text-lead); line-height: 1.45; color: var(--sub); max-width: 34ch; }
.head-split { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-3xl); }
.head-split--end > .btn { justify-self: end; }
.band-foot { margin-top: var(--space-2xl); }

/* services: type rows */
.type-rows li { position: relative; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--gap-columns); align-items: end; padding-block: var(--space-xl); }
.type-rows li::before { content: ""; position: absolute; inset: 0 0 auto 0; border-top: 1px solid var(--line); transform-origin: left center; }
.type-rows { border-bottom: 1px solid var(--line); }
.type-rows h3 { font-size: var(--text-row); line-height: 0.95; letter-spacing: -0.04em; }
.type-rows p { font-size: var(--text-lg); line-height: 1.45; max-width: 45ch; padding-bottom: var(--space-sm); }

/* work */
.work-item { display: block; color: inherit; text-decoration: none; }
.work-shot { display: block; overflow: clip; border: 1px solid var(--color-shot-rule); background: var(--color-paper-3); }
.work-shot picture { display: contents; }
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.work-item figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); padding-top: var(--space-md); }
.work-name { font-family: var(--font-display); font-weight: 800; font-size: var(--text-3xl); letter-spacing: var(--tracking-display); line-height: 1; }
.work-kind { font-size: var(--text-sm); color: var(--color-muted); text-align: right; }
.work-item:hover .work-name { color: var(--color-accent-text); }
.work-item:focus-visible { outline-offset: var(--space-xs); }

/* ai: split */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap-columns); align-items: start; }
.split-lead { position: sticky; top: var(--space-xl); display: grid; gap: var(--space-xl); justify-items: start; }
.split-head { font-size: clamp(2.75rem, 5.8vw, 5.25rem); line-height: 0.95; letter-spacing: -0.04em; max-width: 12ch; }
.split-list > li { padding-block: var(--space-xl); border-top: 1px solid var(--line); display: grid; gap: var(--space-md); }
.split-list > li:first-child { padding-top: 0; border-top: 0; }
.split-list > li:last-child { padding-bottom: 0; }
.split-list h3 { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1; letter-spacing: -0.035em; }
.split-list p { font-size: var(--text-lead); line-height: 1.45; color: var(--sub); max-width: 45ch; }
.plain-list { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); font-size: var(--text-sm); font-weight: 600; color: var(--fg); }
.plain-list li + li { padding-left: var(--space-md); border-left: 1px solid var(--line); }

/* how we work: staircase with oversized numerals */
.stairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); counter-reset: step; }
.stairs li { position: relative; counter-increment: step; display: grid; gap: var(--space-md); align-content: start; padding-top: var(--space-lg); }
.stairs li::after { content: ""; position: absolute; inset: 0 0 auto 0; border-top: 2px solid var(--color-ink); transform-origin: left center; }
.stairs li:nth-child(2) { margin-top: var(--space-3xl); }
.stairs li:nth-child(3) { margin-top: calc(var(--space-3xl) * 2); }
.stairs li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; font-size: var(--text-numeral); line-height: 0.82; letter-spacing: -0.05em; color: var(--color-accent-text); font-variant-numeric: tabular-nums; margin-bottom: var(--space-md); }
.stairs h3 { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1; letter-spacing: -0.035em; }
.stairs p { font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); max-width: 45ch; }

/* statement and cta */
.poster--band { font-size: var(--text-statement); line-height: 0.92; }
.cta .poster--band { font-size: var(--text-poster); text-wrap: balance; }
.statement-row { display: flex; align-items: end; justify-content: space-between; gap: var(--space-xl); margin-top: var(--space-3xl); padding-top: var(--space-lg); border-top: 1px solid var(--line); }

/* testimonials: carousel */
.carousel { --edge: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); }
.carousel-track { display: flex; gap: var(--gap-columns); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); padding-inline: var(--edge); padding-block: var(--space-2xs) var(--space-lg); scrollbar-width: thin; }
.carousel[data-ready] .carousel-track { scrollbar-width: none; padding-bottom: var(--space-2xs); }
.carousel[data-ready] .carousel-track::-webkit-scrollbar { display: none; }
.carousel.is-dragging .carousel-track { scroll-snap-type: none; user-select: none; }
.slide { flex: 0 0 min(34rem, 82%); scroll-snap-align: start; display: grid; gap: var(--space-md); align-content: start; padding-top: var(--space-md); border-top: 2px solid var(--fg, var(--color-ink)); }
.slide blockquote { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.375rem, 2.1vw, 1.875rem); line-height: 1.15; letter-spacing: -0.03em; }
.slide figcaption { font-weight: 600; }
.stars { fill: var(--color-star); }
.carousel-bar { display: none; align-items: center; justify-content: space-between; gap: var(--space-lg); margin-top: var(--space-xl); }
.carousel[data-ready] .carousel-bar { display: flex; }
.carousel-count { font-weight: 600; font-variant-numeric: tabular-nums; max-width: none; }
.carousel-btns { display: flex; align-items: center; gap: var(--space-sm); }
.carousel-pause { min-height: 44px; padding: var(--space-xs) var(--space-sm); border: 0; background: transparent; color: var(--sub, var(--color-ink-2)); font-size: var(--text-btn); font-weight: 600; text-decoration: underline; text-underline-offset: 0.25em; cursor: pointer; }
.carousel-pause:hover { color: var(--fg, var(--color-ink)); }
.carousel-pause:active { color: var(--color-accent-text); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; background: transparent; color: var(--fg, var(--color-ink)); }

/* ---------- footer ---------- */
.footer { background: var(--color-paper); color: var(--color-ink); padding-block: var(--space-3xl) var(--space-xl); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); gap: var(--space-xl) var(--gap-columns); }
.wordmark--foot { font-size: var(--text-3xl); }
.footer-brand p { margin-top: var(--space-md); max-width: 45ch; color: var(--color-ink-2); font-size: var(--text-sm); line-height: 1.6; }
.footer-head { font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--space-sm); }
.footer-col ul { display: grid; gap: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.footer-col a { text-decoration: none; white-space: nowrap; }
.footer-col a:hover { color: var(--color-accent-text); text-decoration: underline; }
.footer-bottom { margin-top: var(--space-2xl); padding-top: var(--space-md); border-top: 1px solid var(--color-rule); font-size: var(--text-xs); color: var(--color-muted); max-width: none; }

/* ---------- slide-out contact panel (a native dialog; without scripting the links go to /contact/) ---------- */
html.panel-open { overflow-y: hidden; }
.contact-panel { position: fixed; inset: 0 0 0 auto; margin: 0; inline-size: min(34rem, 100%); max-inline-size: none; block-size: 100%; max-block-size: none; padding: var(--space-xl) var(--space-xl) var(--space-2xl); border: 0; border-left: 1px solid var(--color-rule); background: var(--color-paper); color: var(--color-ink); overflow-y: auto; overscroll-behavior: contain; }
.contact-panel::backdrop { background: var(--color-scrim); }
.contact-panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.contact-panel-head h2 { font-size: var(--text-section); line-height: 1; letter-spacing: -0.04em; }
.contact-panel-lede { margin-top: var(--space-md); font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); max-width: 45ch; }
.contact-form { display: grid; gap: var(--space-md); margin-top: var(--space-xl); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.field { display: grid; gap: var(--space-2xs); }
.field label { font-size: var(--text-sm); font-weight: 600; }
.field input, .field select, .field textarea { inline-size: 100%; min-block-size: 44px; padding: var(--space-xs) var(--space-sm); border: 1px solid var(--color-muted); border-radius: var(--radius-button); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-md); line-height: 1.4; }
.field textarea { min-block-size: 9rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--color-ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.field ::placeholder { color: var(--color-muted); opacity: 1; }
.field-trap { position: absolute; left: -10000px; top: auto; inline-size: 1px; block-size: 1px; overflow: hidden; }
.form-foot { display: grid; gap: var(--space-sm); justify-items: start; margin-top: var(--space-xs); }
.form-error { min-block-size: 1lh; color: var(--color-error); font-size: var(--text-sm); font-weight: 600; max-width: none; }
.contact-thanks { margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 2px solid var(--color-ink); display: grid; gap: var(--space-sm); }
.contact-thanks h3 { font-size: var(--text-2xl); line-height: 1.05; }
.contact-thanks p { color: var(--color-ink-2); }
@keyframes panel-in { from { transform: translate3d(100%, 0, 0); } to { transform: none; } }
@keyframes panel-out { from { transform: none; } to { transform: translate3d(100%, 0, 0); } }
@keyframes scrim-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes scrim-out { from { opacity: 1; } to { opacity: 0; } }
@media screen and (prefers-reduced-motion: no-preference) {
  .contact-panel[open] { animation: panel-in var(--dur-long) var(--ease-out) both; }
  .contact-panel[open]::backdrop { animation: scrim-in var(--dur-short) var(--ease-out) both; }
  .contact-panel.is-closing { animation: panel-out var(--dur-short) var(--ease-in) both; }
  .contact-panel.is-closing::backdrop { animation: scrim-out var(--dur-short) var(--ease-in) both; }
}

@keyframes hero-rise { from { opacity: 0; transform: translate3d(0, 0.3em, 0); } to { opacity: 1; transform: none; } }
@keyframes hero-up { from { opacity: 0; transform: translate3d(0, 20px, 0); } to { opacity: 1; transform: none; } }
@keyframes hero-draw { from { transform: scaleX(0); } to { transform: none; } }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- scroll reveals (motion.js adds .js and .is-in; without it the page is at rest) ---------- */
@media screen and (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translate3d(0, var(--space-lg), 0); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .rv.is-in { opacity: 1; transform: none; }
  .js .rv--line { transform: translate3d(0, 0.35em, 0); }
  .js .rv--soft { transform: translate3d(0, var(--space-md), 0); }
  .js .word { display: inline-block; transition-delay: calc(var(--i, 0) * 70ms); }

  .js .rv--row, .js .rv--step { opacity: 1; transform: none; }
  .js .rv--row::before, .js .rv--step::after { transform: scaleX(0); transition: transform var(--dur-draw) var(--ease-out); transition-delay: calc(var(--i, 0) * 140ms); }
  .js .rv--row.is-in::before, .js .rv--step.is-in::after { transform: none; }
  .js .rv--row h3 { opacity: 0; transform: translate3d(calc(var(--space-xl) * -1), 0, 0); transition: opacity var(--dur-reveal) var(--ease-out) 120ms, transform var(--dur-reveal) var(--ease-out) 120ms; }
  .js .rv--row p { opacity: 0; transform: translate3d(0, var(--space-md), 0); transition: opacity var(--dur-reveal) var(--ease-out) 260ms, transform var(--dur-reveal) var(--ease-out) 260ms; }
  .js .rv--row.is-in h3, .js .rv--row.is-in p { opacity: 1; transform: none; }

  .js .rv--step::before { opacity: 0; transform: translate3d(0, var(--space-xl), 0); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * 140ms + 100ms); }
  .js .rv--step h3, .js .rv--step p { opacity: 0; transform: translate3d(0, var(--space-md), 0); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * 140ms + 240ms); }
  .js .rv--step.is-in::before, .js .rv--step.is-in h3, .js .rv--step.is-in p { opacity: 1; transform: none; }

  .js .rv--shot { transform: translate3d(0, var(--space-xl), 0); }
  .js .rv--shot img { transform: scale(1.06); transition: transform var(--dur-settle) var(--ease-out); }
  .js .rv--shot.is-in img { transform: none; }
}

/* ---------- narrower screens ---------- */
@media (max-width: 60rem) {
  .btn, .btn--nav { min-height: 44px; }
  .theme-toggle { inline-size: 44px; block-size: 44px; }
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
  :root { --nav-h: 3.75rem; --nav-top: 8px; }
  .nav-inner { padding-inline: var(--space-sm) var(--space-xs); }
  .head-split, .type-rows li, .split { grid-template-columns: minmax(0, 1fr); }
  .head-split { gap: var(--space-lg); margin-bottom: var(--space-2xl); }
  .head-split--end > .btn { justify-self: start; }
  .type-rows li { gap: var(--space-md); padding-block: var(--space-lg); }
  .split { gap: var(--space-2xl); }
  .split-lead { position: static; gap: var(--space-lg); }
  .stairs { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .stairs li:nth-child(n) { margin-top: 0; }
  .statement-row { flex-direction: column; align-items: flex-start; margin-top: var(--space-2xl); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .poster { font-size: clamp(3.375rem, 17vw, 5.375rem); }
  .poster--band, .cta .poster--band { font-size: clamp(2.75rem, 13.5vw, 4.5rem); }
  .band-head { font-size: clamp(2.75rem, 13.5vw, 4.5rem); }
  .contact-panel { padding: var(--space-lg) var(--gutter) var(--space-xl); border-left: 0; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .work-item figcaption { flex-direction: column; gap: var(--space-2xs); }
  .work-kind { text-align: left; }
}

/* ===== inner-page blocks ===== */
/* ---------- inner pages: page hero ---------- */
.page-hero { background: var(--color-paper); color: var(--color-ink); }
.page-hero-inner { padding-block: calc(var(--nav-clear) + var(--space-2xl)) var(--space-2xl); }
.page-title { font-size: var(--text-band); line-height: 0.92; letter-spacing: -0.04em; max-width: 14ch; text-wrap: balance; }
.page-title span { display: block; }
.page-title--accent span:last-child { color: var(--color-accent-text); }
.page-hero-foot { position: relative; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-lg) var(--space-xl); margin-top: var(--space-2xl); padding-top: var(--space-lg); }
.page-hero-foot::before { content: ""; position: absolute; inset: 0 0 auto 0; border-top: 2px solid var(--color-ink); transform-origin: left center; }
.page-lede { font-size: var(--text-xl); line-height: 1.3; max-width: 45ch; }

/* ---------- ruled grid: short items (a name and a sentence) under a rule, three across ---------- */
.grid-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); }
.grid-rules > li { display: grid; gap: var(--space-sm); align-content: start; padding-top: var(--space-md); border-top: 2px solid var(--fg, var(--color-ink)); }
.grid-rules h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.05; letter-spacing: -0.03em; }
.grid-rules p { color: var(--sub, var(--color-ink-2)); max-width: 45ch; }
.grid-rules--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-rules--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- feature split: text beside one large picture ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: center; }
.feature--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature--flip .feature-text { order: 2; }
.feature-text { display: grid; gap: var(--space-lg); justify-items: start; }
.feature-head { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 0.95; letter-spacing: -0.04em; }
.feature-shot .work-shot { aspect-ratio: 4 / 3; }
.feature-shot--wide .work-shot { aspect-ratio: 16 / 10; }
.feature-shot figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); padding-top: var(--space-sm); }

/* ---------- checklist (5px between rows) ---------- */
.checklist { display: grid; gap: var(--space-check); color: var(--sub, var(--color-ink-2)); }
.checklist li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-sm); align-items: start; }
.checklist li::before { content: ""; inline-size: 0.4em; block-size: 0.75em; margin: 0.25em 0.2em 0; border: solid var(--check, var(--color-accent-text)); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- figures: a few real numbers set large ---------- */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); }
.figures > li { display: grid; gap: var(--space-xs); align-content: start; padding-top: var(--space-md); border-top: 2px solid var(--fg, var(--color-ink)); }
.figure-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 6vw, 5.5rem); line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--num, var(--color-accent-text)); max-width: none; }
.figures p:not(.figure-num) { color: var(--sub, var(--color-ink-2)); max-width: 45ch; }

/* ---------- prose: long text (privacy, terms) ---------- */
.prose { display: grid; gap: var(--space-md); max-width: 54ch; }
.prose h2 { font-size: clamp(2rem, 2.2vw + 1rem, 2.75rem); line-height: 1.05; margin-top: var(--space-xl); }
.prose strong { font-weight: 600; }
.prose h3 { font-size: var(--text-lg); margin-top: var(--space-md); }
.prose p, .prose li { color: var(--color-ink-2); line-height: 1.65; }
.prose ul, .prose ol { display: grid; gap: var(--space-xs); padding-left: var(--space-lg); list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { color: var(--color-accent-text); }

/* band helpers for the blocks above */
.band--field { --check: var(--color-field-ink); --num: var(--color-field-ink); }

/* page hero entrance: once on load, CSS only */
@media screen and (prefers-reduced-motion: no-preference) {
  .page-title { animation: hero-rise var(--dur-draw) var(--ease-out) both; }
  .page-hero-foot::before { animation: hero-draw var(--dur-draw) var(--ease-out) 260ms both; }
  .page-hero-foot > * { animation: hero-up var(--dur-reveal) var(--ease-out) 360ms both; }
}

@media (max-width: 60rem) {
  .page-hero-inner { padding-block: calc(var(--nav-clear) + var(--space-xl)) var(--space-xl); }
  .page-hero-foot { margin-top: var(--space-xl); }
  .grid-rules, .grid-rules--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature--flip { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .feature--flip .feature-text { order: 0; }
}
@media (max-width: 40rem) {
  .page-title { font-size: clamp(2.75rem, 13.5vw, 4.5rem); }
  .grid-rules, .grid-rules--2, .grid-rules--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- work steps: three project tiles stepping down left to right ---------- */
.work-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); align-items: start; }
.work-steps > :nth-child(2) { margin-top: var(--space-2xl); }
.work-steps > :nth-child(3) { margin-top: calc(var(--space-2xl) * 2); }
.work-steps .work-shot { aspect-ratio: 16 / 10; }
.work-steps .work-name { font-size: var(--text-2xl); }
.work-steps figcaption { flex-direction: column; gap: var(--space-2xs); }
.work-steps .work-kind { text-align: left; }

/* ---------- logo row: client logos in one colour ---------- */
.logo-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); align-items: center; justify-items: center; }
.logo { display: block; block-size: clamp(2rem, 3.4vw, 3.25rem); inline-size: auto; max-inline-size: 100%; object-fit: contain; }
.logo--short { block-size: clamp(1.5rem, 2.4vw, 2.25rem); }
img.logo { filter: var(--logo-filter); }
svg.logo path, svg.logo polygon, svg.logo rect, svg.logo circle { fill: var(--logo-fill, var(--color-ink)); }
svg.logo .teg-cls-2 { fill: var(--logo-knock, var(--color-ink)); }
.band--field { --logo-filter: brightness(0) invert(1); --logo-fill: var(--color-field-ink); --logo-knock: var(--color-field); }
.band--night { --logo-filter: brightness(0) invert(1); --logo-fill: var(--color-night-ink); --logo-knock: var(--color-night); }

/* ---------- detail rows: a label and a value on each ruled row ---------- */
.detail-rows { display: grid; margin: 0; inline-size: 100%; border-bottom: 1px solid var(--line, var(--color-rule)); }
.detail-rows > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2xs) var(--space-lg); padding-block: var(--space-md); border-top: 1px solid var(--line, var(--color-rule)); }
.detail-rows dt { font-size: var(--text-sm); font-weight: 600; color: var(--sub, var(--color-ink-2)); }
.detail-rows dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: -0.02em; line-height: 1.1; }
.detail-rows a { text-decoration: none; }
.detail-rows a:hover { color: var(--color-accent-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

/* ---------- contact split: details beside the form on the contact page ---------- */
.contact-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl) var(--gap-columns); align-items: start; }
.contact-split-lead { display: grid; gap: var(--space-lg); justify-items: start; }
.contact-split .contact-form { margin-top: 0; }

/* small helpers */
.band--tight { padding-block: var(--space-3xl); }
.band--flush { padding-top: var(--space-2xl); }
.band-head--gap { margin-bottom: var(--space-3xl); }
.feature-kind { font-size: var(--text-sm); font-weight: 600; color: var(--sub, var(--color-ink-2)); max-width: none; }
section[id] { scroll-margin-top: var(--space-lg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

@media (max-width: 60rem) {
  .work-steps { grid-template-columns: minmax(0, 1fr); }
  .work-steps > :nth-child(n) { margin-top: 0; }
  .contact-split { grid-template-columns: minmax(0, 1fr); }
  .band--tight { padding-block: var(--space-2xl); }
  .band-head--gap { margin-bottom: var(--space-2xl); }
}
@media (max-width: 40rem) {
  .logo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--space-lg); }
}

/* ===== homepage only ===== */
/* ---------- hero ---------- */
.hero { background: var(--color-paper); color: var(--color-ink); }
.hero-inner { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-xl); min-height: 44rem; min-height: 100svh; padding-block: calc(var(--nav-clear) + var(--space-2xl)) var(--space-lg); }
.hero-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2fr); gap: var(--gap-columns); align-items: center; }
.hero-lede { font-size: var(--text-xl); line-height: 1.3; font-weight: 400; color: var(--color-ink); max-width: 28ch; }
.hero-est { justify-self: end; font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: -0.02em; white-space: nowrap; }
.hero-list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-xs) var(--space-lg); padding-top: var(--space-md); position: relative; font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-2); }
.hero-list::before { content: ""; position: absolute; inset: 0 0 auto 0; border-top: 2px solid var(--hx-rule, var(--color-ink)); transform-origin: left center; }
.work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); }
.work-item--lead { grid-column: 1 / -1; }
.work-item--a { grid-column: 1 / span 5; }
.work-item--b { grid-column: 6 / -1; margin-top: var(--space-3xl); }
.work-item--lead .work-shot { aspect-ratio: 2 / 1; }
.work-item--a .work-shot { aspect-ratio: 16 / 10; }
.work-item--b .work-shot { aspect-ratio: 16 / 9; }
.work-item--lead .work-name { font-size: var(--text-section); }
/* ---------- hero entrance: once on load, CSS only, so the hero shows with scripting off ---------- */
@media screen and (prefers-reduced-motion: no-preference) {
  .hero:not(.hx) .poster span { animation: hero-rise var(--dur-draw) var(--ease-out) both; }
  .hero:not(.hx) .poster span:nth-child(2) { animation-delay: 130ms; }
  .hero:not(.hx) .hero-lede { animation: hero-up var(--dur-reveal) var(--ease-out) 320ms both; }
  .hero:not(.hx) .actions { animation: hero-up var(--dur-reveal) var(--ease-out) 400ms both; }
  .hero:not(.hx) .hero-est { animation: hero-up var(--dur-reveal) var(--ease-out) 480ms both; }
  .hero:not(.hx) .hero-list::before { animation: hero-draw var(--dur-draw) var(--ease-out) 520ms both; }
  .hero:not(.hx) .hero-list li { animation: hero-fade var(--dur-reveal) var(--ease-out) 760ms both; }
}
@media (max-width: 60rem) {
  .hero-inner { gap: var(--space-2xl); padding-top: calc(var(--nav-clear) + var(--space-xl)); }
  .hero-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .hero-est { justify-self: start; }
  .hero-list { justify-content: flex-start; }
  .work { gap: var(--space-xl) var(--gap-columns); }
  .work-item--a, .work-item--b { grid-column: 1 / -1; margin-top: 0; }
  .work-item--lead .work-shot { aspect-ratio: 16 / 10; }
}
