/* ==========================================================================
   Marketing site — the C. Auto Aesthetics website.

   "Shine, Shield, Style, Sustain & All in one roof."

   The last surface of the ecosystem redesign, after CAA Console and the link page,
   and drawn in their language rather than a third one: a warm near-black
   ground, off-white ink, Archivo (bold) for what is said, Instrument Serif italic for its closing words and Montserrat for everything else. The
   reference is an editorial page, not a showroom — the photographs carry the
   cars, and nothing around them competes.

   The rules, which tools/a11y.test.mjs holds this file to:

   · Colour means something. Ink for text and the primary button; the one
     warm accent for a headline's closing words; WhatsApp green for WhatsApp;
     danger for errors. No pillar colours, no champagne capitals.
   · Motion comes in two tiers. Interactions — a colour at 120 ms, a card
     lifting under the pointer, a page leaving and
     arriving — are no longer than 400 ms. Scenes — the home page's intro,
     the reveals, the scroll-driven scrub, parallax and curtains, the menu's
     choreography — may run up to --t-intro (1600 ms) and are keyframes of
     opacity and a transform only, guarded where scroll timelines may be
     missing, pinned only on a desk with a mouse. Nothing animates a size or
     a position the layout notices, and all of it is off under reduced
     motion. No gradients but masks, one blur (the open menu's), and one light
     across a photograph: the inspection lamp on the home page. See "Motion"
     and "V2 motion: scenes" further down.
   · Light and dark both, decided by the device, from the same token values
     CAA Console and the link page use.
   · One border, one radius family (6px controls, 8px everything else), and a
     shadow only on things that float over the page.

   core.css is shared by every surface. So, as console.css does, this file
   re-points the shared names at the theme and overrides the shared primitives
   here, scoped by being linked only from public/index.html.
   ========================================================================== */

/* --- Type ------------------------------------------------------------------
   Phase 1 type, the designer's pairing set in free stand-ins until the real
   faces are licensed (SIL OFL 1.1; the licences sit beside the files):
   · Montserrat, the platform's own face, for all running text (--font).
   · Archivo, bold, for headings and subheadings (--font-display); it stands
     in for Akzidenz-Grotesk.
   · Instrument Serif italic for the italic words of a headline
     (--font-accent); it stands in for Times New Roman Condensed.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Theme tokens ----------------------------------------------------------
   The site is dark only (docs/DESIGN-SYSTEM.md § 4). Its --console-* names
   are CAA Console's default theme — core.css's roles, value for value, by
   var() — so a role edited in core.css moves the site with it, and
   tools/a11y.test.mjs fails the build if one points anywhere else, and checks
   every text/ground pair below against WCAG AA.

   Three are the site's own:
   · --site-accent, a warm bronze for the closing words of a headline — the
     old champagne, lifted until it reads as text on the dark ground.
   · --site-invert-*, the one band a page may carry that steps off the page
     (the closing call to action), and the inks and accent on it.
   · --on-whatsapp, the ink on WhatsApp's own green.
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  --console-bg: var(--bg-0);
  --console-surface: var(--bg-1);
  --console-subtle: var(--bg-2);
  --console-selected: var(--bg-selected);
  --console-border: var(--border);
  --console-border-strong: var(--border-strong);
  --console-border-input: var(--border-input);
  --console-ink: var(--ink);
  --console-ink-2: var(--ink-2);
  --console-ink-3: var(--ink-3);
  /* Graphite, as on CAA Console: the red stays for the brand mark. */
  --console-primary: var(--ink);
  --console-primary-hover: #ffffff;
  --console-on-primary: var(--ink-inverse);
  --console-focus: var(--focus);
  --console-ok: var(--ok);
  --console-warn: var(--warn);
  --console-danger: var(--danger);
  --console-info: var(--info);
  --console-scrim: var(--scrim);
  --console-shadow-pop: var(--shadow-pop);
  /* The logos are white artwork made for a dark ground. */
  --console-logo-filter: none;

  --site-accent: #d9ad7c;
  --site-invert-bg: #2c2b28;
  --site-invert-ink: #eceae5;
  --site-invert-ink-2: #a8a6a0;
  --site-invert-accent: #d9ad7c;

  --on-whatsapp: #0b2e17;
}

/* The shared names core.css is written against, pointed at the
   theme — the same re-pointing console.css does, so a shared rule this file does
   not override still reads on either theme. */
:root {
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-accent: "Instrument Serif", Georgia, "Times New Roman", serif;
  /* Headings are bold, as Akzidenz-Grotesk is in the designer's pairing. */
  --fw-display: 700;
  --font-num: var(--font);

  --black: var(--console-bg);
  --carbon: var(--console-surface);
  --gunmetal: var(--console-border);
  --hairline: var(--console-border);
  --white: var(--console-ink);
  --light: var(--console-ink);
  --grey: var(--console-ink-2);
  --dim: var(--console-ink-3);
  --champagne: var(--console-ink);
  --crimson-text: var(--console-danger);
  --blue-text: var(--console-info);
  --amber: var(--console-warn);

  /* Colour means something here, and a pillar is not a status. */
  --pillar-ppf: var(--console-ink-2);
  --pillar-coating: var(--console-ink-2);
  --pillar-correction: var(--console-ink-2);
  --pillar-wrap: var(--console-ink-2);
  --pillar-detailing: var(--console-ink-2);

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 8px;
  --r-pill: 999px;

  --pad: 20px;
  --maxw: 1200px;
  --maxw-prose: 760px;
  --maxw-narrow: 680px;

  /* No bar along the foot of the page any more. The consent banner and the
     support launcher still measure from these, so they sit on the edge. */
  --bar-h: 0px;
  --bar-inset: env(safe-area-inset-bottom, 0px);
  --above-bar: 0px;
  --header-h: 64px;

  --fs-hero: clamp(40px, 7.4vw, 84px);
  --fs-h1: clamp(36px, 5.6vw, 60px);
  --fs-h2: clamp(28px, 3.8vw, 44px);
  --fs-h3: clamp(22px, 2.6vw, 30px);
  --fs-deck: clamp(17px, 1.8vw, 20px);

  --ease: ease;
  --t-fast: 0.12s;
  --t-base: 0.12s;

  /* The motion scale. --t-fast is feedback (a colour under the pointer);
     these two are movement: a lift, a reveal, a page arriving. Nothing on
     the site moves for longer than --motion, and tools/a11y.test.mjs reads
     these values to hold every transition to 400 ms. */
  --motion-fast: 0.18s;
  --motion: 0.32s;
  /* One breath of the Sound toggle's waves while sound plays (V2 sound). A loop,
     not a transition, so it sits outside the 400 ms scale above. */
  --t-breathe: 2.4s;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* The scene tier (see "Motion" below): longer, and only ever keyframes of
     opacity and a transform. The home page's opening has its own schedule and
     its own ceiling, --t-film (core.css; site.css "The opening"). */
  --t-reveal: 700ms;          /* a section rising into view */
  --t-settle: 1400ms;         /* a photograph settling into its frame */
  --t-panel: 650ms;           /* the menu opening */
  --t-close: 220ms;           /* the menu closing (site/menu.js waits as long) */
  --stagger: 70ms;            /* between the cards of a group */
  --stagger-line: 90ms;       /* between a headline's lines */
  --stagger-menu: 55ms;       /* between the menu's places */

  /* A grain for the dark grounds the statement and the menu stand on: a
     tiled SVG noise, white at 4 %, which reads as texture on --bg-0 and as
     nothing on a photograph. Under 2 KB, and a data URI (the CSP's img-src
     admits data:), so it costs no request. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");

  /* The site's own spacing scale, from before the design system: five steps,
     so two sections cannot end up 36 and 40 pixels apart for no reason
     anybody can name. Named --site-sp-N because --sp-N is core.css's scale
     (4 to 96px, docs/DESIGN-SYSTEM.md), which the section kit and everything
     built since reads; the same name here used to shadow it with these. */
  --site-sp-1: 8px;
  --site-sp-2: 16px;
  --site-sp-3: 24px;
  --site-sp-4: 40px;
  --site-sp-5: 64px;

  --shadow-float: var(--console-shadow-pop);
  --shadow-panel: none;
  --blur-glass: none;
  /* No glow: core.css's primary hover draws the accent's halo, and the
     primary here is graphite. A zero shadow rather than none, so the focus
     ring core.css lists it with still draws. */
  --glow-accent: 0 0 0 0 transparent;
  /* Under a card that has lifted. Softer than the pop shadow a panel floats
     on: the card is still on the page, just nearer. */
  --shadow-lift: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 24px rgba(0, 0, 0, 0.35);
}

@media (min-width: 760px) {
  :root {
    --pad: 32px;
  }
}

/* --- Core primitives, at the site's own spacing ------------------------------
   core.css writes its primitives (buttons, cards, chips, fields, the empty
   state, toasts, dialogs, menus, tables, tabs) in its --sp-1…5 steps: 4, 8, 12,
   16 and 24px. This site used to redefine those names as 8, 16, 24, 40 and
   64px, so every one of them was drawn at that size here. The names are core's
   again (see --site-sp-1 above), and this block restates each declaration that
   read them with the site's scale, so nothing outside the section kit changes
   size. Written first so the site's own rules below still win, as before.
   -------------------------------------------------------------------------- */
.btn {
  gap: var(--site-sp-2);
  padding-inline: var(--site-sp-5);
}

.btn--sm {
  padding-inline: var(--site-sp-4);
}

.btn--md {
  padding-inline: var(--site-sp-5);
}

.panel {
  padding: var(--sp-6) var(--site-sp-5);
}

.card {
  padding: var(--site-sp-5);
}

.card__body {
  padding: var(--site-sp-4) var(--site-sp-5) var(--site-sp-5);
}

.chip-row {
  gap: var(--site-sp-2);
  padding-bottom: var(--site-sp-1);
}

.chip {
  padding-inline: var(--site-sp-4);
}

textarea.field {
  padding: var(--site-sp-3) var(--site-sp-4);
}

.input,
.textarea,
.select {
  padding: 0 var(--site-sp-3);
}

.textarea {
  padding: var(--site-sp-3);
}

.field:is(div,
label,
fieldset,
p) {
  gap: var(--site-sp-1);
}

.field__error {
  gap: var(--site-sp-1);
}

label.check,
label.radio,
label.switch {
  gap: var(--site-sp-2);
}

.choice {
  padding: var(--site-sp-4) 18px;
}

.empty {
  gap: var(--site-sp-2);
  padding: var(--sp-7) var(--site-sp-5);
}

.error-state {
  gap: var(--site-sp-2);
  padding: var(--site-sp-5);
}

.error-state__retry {
  margin-top: var(--site-sp-2);
}

.toast-host {
  bottom: calc(var(--site-sp-4) + env(safe-area-inset-bottom));
  gap: var(--site-sp-2);
  width: min(420px, calc(100vw - 2 * var(--site-sp-3)));
}

.toast {
  gap: var(--site-sp-3);
  padding: var(--site-sp-3) var(--site-sp-3);
}

.toast__action {
  padding: 0 var(--site-sp-2);
}

.table th {
  padding: var(--site-sp-3) var(--site-sp-4);
}

.table td {
  padding: var(--site-sp-3) var(--site-sp-4);
}

.table--dense th,
.table--dense td {
  padding: var(--site-sp-2) var(--site-sp-3);
}

.dialog {
  width: min(520px, calc(100vw - 2 * var(--site-sp-4)));
}

.dialog__head {
  gap: var(--site-sp-3);
  padding: var(--site-sp-4) var(--site-sp-5);
}

.dialog__close {
  margin-right: calc(-1 * var(--site-sp-2));
}

.dialog__body {
  padding: var(--site-sp-5);
}

.dialog__foot {
  gap: var(--site-sp-2);
  padding: var(--site-sp-4) var(--site-sp-5);
}

.menu {
  max-width: min(320px, calc(100vw - 2 * var(--site-sp-3)));
  padding: var(--site-sp-1);
}

.menu__item {
  gap: var(--site-sp-2);
  padding: var(--site-sp-2) var(--site-sp-3);
}

.menu__sep {
  margin: var(--site-sp-1) calc(-1 * var(--site-sp-1));
}

.menu__label {
  padding: var(--site-sp-2) var(--site-sp-3) var(--site-sp-1);
}

.segmented__item {
  padding: 0 var(--site-sp-3);
}

.tabs {
  gap: var(--site-sp-5);
}

.tabs__panel {
  padding-top: var(--site-sp-5);
}

/* --- Ground ---------------------------------------------------------------- */
html {
  background: var(--console-bg);
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  background: var(--console-bg);
  color: var(--console-ink);
  font-family: var(--font);
  line-height: 1.6;
}

body[data-locked] {
  overflow: hidden;
}

a {
  color: var(--console-ink);
  text-decoration: underline;
  text-decoration-color: var(--console-border-strong);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--console-ink);
  text-decoration-color: var(--console-ink);
}

::selection {
  background: var(--console-selected);
  color: var(--console-ink);
}

:focus-visible {
  outline: 2px solid var(--console-focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

input[type="search"]::-webkit-search-cancel-button {
  filter: none;
}

.skip-link {
  background: var(--console-primary);
  color: var(--console-on-primary);
  border-radius: var(--r-sm);
  letter-spacing: 0;
  text-transform: none;
  font-size: var(--fs-sm);
  transition: none;
}

.skip-link:focus {
  color: var(--console-on-primary);
}

/* --- The first paint ---------------------------------------------------------
   src/seo/body.js renders each page's words into #app as plain HTML, and
   app.js replaces them once its modules have loaded — about two seconds later
   on a phone over slow 4G. Unstyled, those two seconds were a raw document in
   the browser's default serif; this sets the same words in the site's type, on
   the site's column, so the swap reads as the page filling in.
   -------------------------------------------------------------------------- */
.ssr {
  max-width: var(--maxw-prose);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--pad);
  color: var(--console-ink-2);
}

.ssr h1,
.ssr h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--console-ink);
  text-wrap: balance;
}

.ssr h1 {
  font-size: var(--fs-h1);
  margin-bottom: 18px;
}

.ssr h2 {
  font-size: var(--fs-h3);
  margin: 48px 0 14px;
}

.ssr h3,
.ssr dt {
  font-weight: 600;
  color: var(--console-ink);
}

.ssr p,
.ssr li,
.ssr dd {
  font-size: 16px;
  line-height: 1.7;
}

.ssr p + p,
.ssr dd + dt {
  margin-top: 12px;
}

.ssr ul {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.ssr nav {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--console-border);
}

/* --- Layout ---------------------------------------------------------------- */
.band {
  padding-block: clamp(56px, 8vw, 104px);
}

.band--tight {
  padding-block: clamp(40px, 5vw, 64px);
}

.band--carbon,
.band--subtle {
  background: var(--console-subtle);
  border-top: 0;
}

/* The one band a page may carry that steps off the page's ground. */
.band--ink {
  background: var(--site-invert-bg);
  color: var(--site-invert-ink);
}

.band--ink .lede,
.band--ink .deck {
  color: var(--site-invert-ink-2);
}

.band--ink .display,
.band--ink a:not(.btn) {
  color: var(--site-invert-ink);
}

.band--ink .display .accent {
  color: var(--site-invert-accent);
}

.band--ink .btn--primary {
  background: var(--site-invert-ink);
  border-color: var(--site-invert-ink);
  color: var(--site-invert-bg);
}

.band--ink .btn--primary:hover:not(:disabled):not([aria-disabled="true"]) {
  background: var(--site-invert-ink-2);
  border-color: var(--site-invert-ink-2);
  color: var(--site-invert-bg);
}

.band--ink .btn--ghost {
  border-color: var(--site-invert-ink-2);
  color: var(--site-invert-ink);
}

.band--ink .btn--ghost:hover:where(:not(:disabled, [aria-disabled="true"])) {
  border-color: var(--site-invert-ink);
  color: var(--site-invert-ink);
}

/* Every section opens the same way: eyebrow, headline and, at the right on a
   desk, the link to the rest. The gap under it is the one gap between a
   heading and what it introduces, everywhere. */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-head .textlink {
  margin-bottom: 6px;
}

.section-lede {
  margin-top: 16px;
}

/* A label over a block, with the one gap it needs under it. These replace
   inline margins set from the page modules. */
.label--head {
  margin-bottom: 14px;
}

.label--head-sm {
  margin-bottom: 12px;
}

/* --- Type ------------------------------------------------------------------ */
.eyebrow,
.label {
  display: block;
  margin-bottom: 14px;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--console-ink-2);
  line-height: 1.4;
}

.eyebrow::before {
  content: none;
}

.label {
  margin-bottom: 0;
  font-size: 13px;
}

.label--crimson {
  color: var(--console-danger);
}

.label--grey {
  color: var(--console-ink-2);
}

.display {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-transform: none;
  text-wrap: balance;
  color: var(--console-ink);
}

.display--hero {
  font-size: var(--fs-hero);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 16em;
}

.display--1 {
  font-size: var(--fs-h1);
}

.display--2 {
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.display--3 {
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* The closing words of a headline: the same face in italic, in the accent. */
.display .accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--site-accent);
}

/* A measure of sixty characters, the deck's and the lede's: a line longer
   than that is where the eye loses its place coming back. */
.deck {
  font-size: var(--fs-deck);
  line-height: 1.55;
  color: var(--console-ink-2);
  max-width: 60ch;
}

.lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--console-ink-2);
  max-width: 60ch;
}

.quote {
  font-size: 20px;
  line-height: 1.45;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--console-ink);
}

.card__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--console-ink-2);
}

/* --- Buttons --------------------------------------------------------------- */
.btn {
  height: 48px;
  gap: 8px;
  padding-inline: 22px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  color: var(--console-ink);
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

.btn--sm {
  height: 40px;
  padding-inline: 16px;
  font-size: 14px;
}

.btn--md {
  height: 44px;
  padding-inline: 18px;
  font-size: 15px;
}

.btn--primary {
  background: var(--console-primary);
  border-color: var(--console-primary);
  color: var(--console-on-primary);
}

/* core.css's hover is .btn--primary:hover (its disabled guards sit in
   :where(), so they add no specificity), which beats the base rule above and
   would turn the graphite button the brand red. This repeats the hover in
   graphite; the :not()s only keep a disabled button from reacting. */
.btn--primary:hover:not(:disabled):not([aria-disabled="true"]) {
  background: var(--console-primary-hover);
  border-color: var(--console-primary-hover);
  color: var(--console-on-primary);
}

.btn--ghost {
  background: transparent;
  border-color: var(--console-border-strong);
  color: var(--console-ink);
}

.btn--ghost:hover:where(:not(:disabled, [aria-disabled="true"])) {
  border-color: var(--console-ink);
  color: var(--console-ink);
}

.btn svg {
  flex: 0 0 auto;
}

.btn:disabled {
  opacity: 0.4;
}

.textlink {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--console-ink);
  text-decoration: underline;
  text-decoration-color: var(--console-border-strong);
  text-underline-offset: 4px;
}

.textlink:hover {
  text-decoration-color: var(--console-ink);
}

.underlink {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--console-ink);
  border-bottom: 0;
  padding-bottom: 0;
  text-decoration: underline;
  text-decoration-color: var(--console-border-strong);
  text-underline-offset: 4px;
}

.underlink:hover {
  text-decoration-color: var(--console-ink);
}

/* --- Surfaces ----------------------------------------------------------------
   One card: the surface, one hairline, the 8px radius. Every boxed thing on
   the site — a spec card, a review, a brief service, the company card — is
   this and nothing else, so the page reads as one set of objects.
   -------------------------------------------------------------------------- */
.panel,
.card {
  background: var(--console-surface);
  border: 1px solid var(--console-border);
  border-radius: var(--r-md);
  padding: 24px;
}

.card--accent {
  border-left: 1px solid var(--console-border);
}

a.card,
button.card {
  color: var(--console-ink);
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

a.card:hover,
button.card:hover {
  background: var(--console-surface);
  border-color: var(--console-border-strong);
  color: var(--console-ink);
}

.specs {
  border-top: 1px solid var(--console-border);
}

.specs__row {
  border-bottom: 1px solid var(--console-border);
}

.specs__k {
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--console-ink-2);
}

.specs__v {
  font-size: 14px;
  font-weight: 500;
  color: var(--console-ink);
}

/* The register of what the studio still owes stays in CAA Console and the docs.
   Where a page still draws one, it is a quiet note rather than a red box. */
.owed {
  border: 1px solid var(--console-border);
  background: var(--console-subtle);
  border-radius: var(--r-md);
  padding: 16px 18px;
}

.owed__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--console-ink);
}

.owed__body {
  color: var(--console-ink-2);
}

.empty {
  border: 1px dashed var(--console-border-strong);
  color: var(--console-ink-2);
}

/* --- Chips and fields ------------------------------------------------------ */
.chip {
  height: 38px;
  padding-inline: 14px;
  border: 1px solid var(--console-border-strong);
  background: var(--console-surface);
  color: var(--console-ink);
  font-size: 14px;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}

.chip:hover {
  border-color: var(--console-ink);
}

.chip--filter {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.chip[aria-pressed="true"] {
  background: var(--console-primary);
  border-color: var(--console-primary);
  color: var(--console-on-primary);
}

/* A set of choices as one pill: the names side by side, the chosen one
   filled. The pill is as wide as its names; on a phone the row around it
   (.work__filters) scrolls sideways, so the pill moves whole rather than
   being cut at the edge of the screen. */
.segmented {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 4px;
  border: 1px solid var(--console-border-strong);
  border-radius: var(--r-pill);
  background: var(--console-surface);
}

.segmented__item {
  flex: 0 0 auto;
  height: 36px;
  padding-inline: 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--console-ink-2);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.segmented__item:hover {
  color: var(--console-ink);
  background: var(--console-subtle);
}

.segmented__item[aria-pressed="true"] {
  background: var(--console-primary);
  color: var(--console-on-primary);
}

.segmented__item:focus-visible {
  outline-offset: -2px;
}

.field {
  height: 48px;
  padding-inline: 14px;
  background: var(--console-surface);
  border: 1px solid var(--console-border-strong);
  border-radius: var(--r-sm);
  color: var(--console-ink);
}

.field::placeholder {
  color: var(--console-ink-3);
}

.field:focus {
  border-color: var(--console-focus);
}

.field:focus-visible {
  outline: 2px solid var(--console-focus);
  outline-offset: 0;
}

.field[aria-invalid="true"] {
  border-color: var(--console-danger);
}

.field--boxy {
  height: 48px;
  border-radius: var(--r-sm);
  font-size: 16px;
}

/* A radio or checkbox drawn as a selectable row. The input stays real. */
.choice {
  min-height: 0;
  padding: 16px 18px;
  background: var(--console-surface);
  border: 1px solid var(--console-border);
  border-radius: var(--r-md);
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.choice:hover {
  background: var(--console-surface);
  border-color: var(--console-border-strong);
}

.choice input:focus-visible ~ .choice__top {
  outline: 2px solid var(--console-focus);
  outline-offset: 4px;
}

.choice__label {
  font-weight: 500;
  font-size: 16px;
  color: var(--console-ink);
}

.choice__price {
  font-size: 14px;
  color: var(--console-ink-2);
}

.choice__spec {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--console-ink-2);
}

.choice:has(input:checked) {
  background: var(--console-surface);
  border-color: var(--console-ink);
  box-shadow: inset 0 0 0 1px var(--console-ink);
}

.choice:has(input:checked) .choice__label {
  color: var(--console-ink);
}

/* core.css's glass is a dark translucent pill; here it is a plain surface. */
.glass {
  background: var(--console-surface);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid var(--console-border);
  box-shadow: var(--console-shadow-pop);
}

.badge {
  border-color: var(--console-border-strong);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--console-ink-2);
}

.toast {
  background: var(--console-surface);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid var(--console-border);
  border-left: 3px solid var(--console-ink);
  box-shadow: var(--console-shadow-pop);
  color: var(--console-ink);
  animation: none;
}

.toast[data-leaving="true"] {
  transform: none;
  transition: opacity var(--t-fast) var(--ease);
}

.toast__icon {
  background: var(--console-subtle);
  color: var(--console-ink);
}

.toast--ok {
  border-left-color: var(--console-ok);
}

.toast--ok .toast__icon {
  background: var(--console-subtle);
  color: var(--console-ok);
}

.toast--danger {
  border-left-color: var(--console-danger);
}

.toast--danger .toast__icon {
  background: var(--console-subtle);
  color: var(--console-danger);
}

.toast--warn {
  border-left-color: var(--console-warn);
}

.toast--warn .toast__icon {
  background: var(--console-subtle);
  color: var(--console-warn);
}

/* --- Image slot ------------------------------------------------------------ */
image-slot {
  display: block;
  position: relative;
  aspect-ratio: var(--ratio, 4 / 5);
  overflow: hidden;
  background: var(--console-subtle);
}

image-slot[ratio="auto"] {
  aspect-ratio: auto;
  height: 100%;
}

/* The <picture> around a resized photograph only chooses the file; the <img>
   inside it is still what fills the frame. */
image-slot picture {
  display: contents;
}

/* A photograph the component is still fetching is held back and fades in;
   one the edge sent with the page (no data-state yet) is simply painted as it
   arrives, and the priority photograph never fades: a transparent image is
   not counted as the page's largest paint until it is opaque. */
.image-slot__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal, center);
  transition: opacity var(--t-fast) var(--ease);
}

image-slot[data-state="loading"]:not([priority]) .image-slot__img {
  opacity: 0;
}

.image-slot__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 20px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: var(--console-ink-2);
}

.frame {
  border-radius: var(--r-md);
  overflow: hidden;
}

/* --- Masthead -------------------------------------------------------------
   One slim bar along the top, at every width: the logo, four places, and the
   one thing the whole site points at. Everything else is in the menu and the
   footer.
   -------------------------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 55;
  background: var(--console-bg);
  border-bottom: 1px solid var(--console-border);
}

/* The logo in the middle of every page: the call to action on one side, the
   rest on the other, each side the same width so the middle is the true middle.
   Each item names its column, so the logo stays put on /quote, which hides the
   call to action. */
.masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.masthead__cta {
  grid-column: 1;
  justify-self: start;
}

.masthead__logo {
  grid-column: 2;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 40px;
  text-decoration: none;
}

.masthead__logo img {
  height: 18px;
  width: auto;
  filter: var(--console-logo-filter);
}

.masthead__actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

/* "Get a quote" is short enough for a phone, but the two spans stay so the
   bar can carry a longer wording on a desk again without a markup change. The link has no aria-label: its name is whichever
   span is displayed (display:none text is left out of the name), so it always
   matches what the visitor sees and can say. */
.masthead__cta-full {
  display: none;
}

@media (min-width: 600px) {
  .masthead__cta-full {
    display: inline;
  }

  .masthead__cta-short {
    display: none;
  }
}

.masthead__menu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding-inline: 12px;
  border: 1px solid var(--console-border-strong);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--console-ink);
  font-size: 14px;
  text-decoration: none;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.masthead__menu:hover {
  border-color: var(--console-ink);
  color: var(--console-ink);
}

.masthead__menu svg {
  display: block;
}

/* --- The menu ---------------------------------------------------------------
   Every page, as a list. A dialog over the page, from the top.
   -------------------------------------------------------------------------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--console-scrim);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 8px;
}

.sheet__panel {
  width: 100%;
  max-width: 400px;
  max-height: calc(100svh - 16px);
  overflow-y: auto;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--console-surface);
  border: 1px solid var(--console-border);
  box-shadow: var(--console-shadow-pop);
}

.sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 4px 12px 8px;
}

.sheet__close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--console-ink-2);
  font-size: 22px;
  line-height: 1;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.sheet__close:hover {
  background: var(--console-subtle);
  color: var(--console-ink);
}

.sheet__list {
  display: grid;
}

.sheet__item {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  color: var(--console-ink);
  font-size: 16px;
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease);
}

.sheet__item:hover {
  background: var(--console-subtle);
  color: var(--console-ink);
}

.sheet__item[aria-current="page"] {
  background: var(--console-selected);
  font-weight: 500;
}

/* The foot of the menu: one quiet way to ask, and the number as a line. */
.sheet__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 4px 4px;
  border-top: 1px solid var(--console-border);
}

.sheet__phone {
  font-size: 15px;
  color: var(--console-ink-2);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: color var(--t-fast) var(--ease);
}

.sheet__phone:hover {
  color: var(--console-ink);
}

/* --- Page head --------------------------------------------------------------- */
.page-head__deck {
  margin-top: 18px;
}

/* A page's opening block is followed by its first section, and two tight
   bands' padding stacked into a gap of 130 px between a heading and the
   thing it introduces. */
.page-head {
  padding-bottom: clamp(24px, 3vw, 36px);
}

/* The link under the home photograph's caption ("See the job"), written by
   home.js and by homeSections() in src/seo/body.js. */
.hero__caption-link {
  color: var(--console-ink);
  font-weight: 500;
  white-space: nowrap;
}

/* --- Home: services ---------------------------------------------------------
   The eight as a list: number, name, line, arrow. Two columns on a desk,
   numbered down the first column and then the second.
   -------------------------------------------------------------------------- */
.service-list {
  border-top: 1px solid var(--console-border);
}

@media (min-width: 900px) {
  .service-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    column-gap: 48px;
  }
}

.service-row {
  display: grid;
  grid-template-columns: 2.5ch minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  height: 100%;
  padding: 18px 4px;
  border-bottom: 1px solid var(--console-border);
  color: var(--console-ink);
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease);
}

.service-row:hover {
  background: var(--console-selected);
  color: var(--console-ink);
}

.service-row__n {
  font-size: 13px;
  color: var(--console-ink-3);
  font-variant-numeric: tabular-nums;
}

.service-row__text {
  display: grid;
  gap: 4px;
}

.service-row__title {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: clamp(21px, 2.2vw, 24px);
  line-height: 1.2;
}

.service-row__line {
  font-size: 15px;
  line-height: 1.5;
  color: var(--console-ink-2);
}

.service-row__arrow {
  color: var(--console-ink-2);
}

.service-row:hover .service-row__arrow {
  color: var(--console-ink);
}

/* --- Home: work -------------------------------------------------------------
   Three across on a desk; on a phone, a row that scrolls sideways with the
   next card showing at the edge, so it reads as more to see.
   -------------------------------------------------------------------------- */
.work-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 16px;
  margin-inline: calc(var(--pad) * -1);
  padding-inline: var(--pad);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  scrollbar-width: none;
}

.work-rail::-webkit-scrollbar {
  display: none;
}

.work-rail > * {
  scroll-snap-align: start;
}

@media (min-width: 760px) {
  .work-rail {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 20px;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
}

/* --- Home: how it works ---------------------------------------------------- */
.process {
  display: grid;
  gap: 0 32px;
}

@media (min-width: 640px) {
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .process {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.process__step {
  padding: 22px 0 26px;
  border-top: 1px solid var(--console-ink);
}

.process__n {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: 24px;
  line-height: 1;
  color: var(--console-ink-3);
  font-variant-numeric: tabular-nums;
}

.process__title {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.process__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--console-ink-2);
  text-wrap: pretty;
}

/* --- Home: the studio ------------------------------------------------------ */
.studio-strip__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.studio-strip__media {
  border-radius: var(--r-md);
  overflow: hidden;
}

.studio-strip__media image-slot {
  aspect-ratio: 4 / 3;
}

.studio-strip__reach {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--console-ink-2);
}

.studio-strip__facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 24px;
  margin-top: 28px;
  border-top: 1px solid var(--console-border);
}

.studio-strip__fact {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--console-border);
}

.studio-strip__fact dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--console-ink);
}

.studio-strip__fact dd {
  font-size: 15px;
  line-height: 1.6;
  color: var(--console-ink-2);
}

@media (min-width: 520px) {
  .studio-strip__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.studio-strip__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 28px;
}

@media (min-width: 900px) {
  .studio-strip__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: 64px;
  }

  .studio-strip__media image-slot {
    aspect-ratio: 1 / 1;
  }
}

/* --- Home: reviews, and the close ------------------------------------------ */
.closing {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.closing .review-wall__grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cta-band {
  text-align: left;
}

.cta-band__inner {
  display: grid;
  gap: 28px;
  align-items: end;
}

.cta-band__title {
  max-width: 18ch;
}

.cta-band__body {
  margin-top: 16px;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

@media (min-width: 900px) {
  .cta-band__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 48px;
  }
}

/* --- Breadcrumb ------------------------------------------------------------
   Above a page that sits under another: Home › Services › Ceramic coating. */
.crumbs {
  padding-top: 20px;
}

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--console-ink-2);
}

.crumbs__list li + li::before {
  content: "›";
  margin-right: 6px;
}

.crumbs__list a {
  color: inherit;
}

.crumbs__list [aria-current] {
  color: var(--console-ink);
}


/* --- Work ------------------------------------------------------------------ */
.work__filters {
  display: flex;
  padding-bottom: 28px;
  /* To the edges on a phone, so the pill can scroll out from under the
     page's padding rather than being cut by it. */
  margin-inline: calc(var(--pad) * -1);
  padding-inline: var(--pad);
  overflow-x: auto;
  scrollbar-width: none;
}

.work__filters::-webkit-scrollbar {
  display: none;
}

/* The way back from /work?make=: sits under the chips, quiet, and keeps the
   browser's own focus ring. */
.work__clear {
  margin: -12px 0 24px;
  font-size: 14px;
}

.work__clear a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fine-print {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--console-ink-2);
}

.next-job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label arrow"
    "car arrow"
    "tag arrow";
  align-items: center;
  gap: 2px 16px;
  padding: 24px 0;
  border-top: 1px solid var(--console-border);
  border-bottom: 1px solid var(--console-border);
  color: var(--console-ink);
  text-decoration: none;
}

.next-job:hover {
  color: var(--console-ink);
  background: var(--console-subtle);
  transition: background-color var(--t-fast) var(--ease);
}

.next-job__label {
  grid-area: label;
  font-size: 13px;
  color: var(--console-ink-2);
}

.next-job__car {
  grid-area: car;
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: var(--fs-h3);
  line-height: 1.2;
}

.next-job__tag {
  grid-area: tag;
  font-size: 14px;
  color: var(--console-ink-2);
}

.next-job__arrow {
  grid-area: arrow;
  font-size: 24px;
  color: var(--console-ink-2);
}

.next-job:hover .next-job__arrow {
  color: var(--console-ink);
}

.case__actions {
  display: flex;
  align-items: center;
  gap: 12px 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* --- Visit -----------------------------------------------------------------
   The details on the left, the map on the right and held in view on a desk;
   on a phone, the buttons, the move, the map, then hours and parking.
   -------------------------------------------------------------------------- */
.visit__grid {
  display: grid;
  gap: 28px;
}

.visit__info {
  display: grid;
  gap: 20px;
  align-content: start;
}

@media (min-width: 960px) {
  .visit__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 48px;
    align-items: start;
  }

  .visit__mapcol {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

.moved {
  border: 1px solid var(--console-border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--console-surface);
}

.moved__banner {
  padding: 10px 16px;
  background: var(--console-subtle);
  border-bottom: 1px solid var(--console-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--console-ink);
}

.moved__body {
  padding: 14px 16px 16px;
}

.moved__old {
  font-size: 14px;
  line-height: 1.6;
  color: var(--console-ink-2);
  text-decoration: line-through;
  margin-bottom: 6px;
}

.moved__note {
  font-size: 14px;
  line-height: 1.65;
  color: var(--console-ink-2);
}

.visit__cards {
  display: grid;
  gap: 16px;
}

.visit__map {
  display: block;
  border: 1px solid var(--console-border);
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--console-subtle);
}

@media (min-width: 960px) {
  .visit__map {
    aspect-ratio: 4 / 5;
    max-height: calc(100svh - var(--header-h) - 48px);
    width: 100%;
  }
}

.visit__map__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.visit__map__button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: 24px;
  border: 0;
  background: transparent;
  color: var(--console-ink);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.visit__map__button__title {
  font-size: 16px;
  font-weight: 600;
}

.visit__map__button__note {
  max-width: 32ch;
  font-size: 13px;
  color: var(--console-ink-2);
}

.visit__hour {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--console-border);
  font-size: 15px;
  color: var(--console-ink-2);
}

.visit__hour[data-today="true"] {
  color: var(--console-ink);
  font-weight: 600;
}

.visit__hour dd {
  font-variant-numeric: tabular-nums;
}

.visit__warning {
  margin-top: 14px;
  font-size: 13px;
  color: var(--console-danger);
}

/* --- Google record --------------------------------------------------------- */
google-record {
  display: contents;
}

.record__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.record__number {
  display: inline-block;
  font-size: 20px;
  font-weight: 600;
  color: var(--console-ink);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.record__note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--console-ink-2);
}

.record__note--ok {
  color: var(--console-ok);
}

.record__closures {
  margin: 14px 0 0;
  padding: 12px 14px;
  list-style: none;
  display: grid;
  gap: 8px;
  background: var(--console-subtle);
  border: 1px solid var(--console-border);
  border-radius: var(--r-sm);
}

.record__closure {
  display: grid;
  gap: 1px;
}

.record__closure-when {
  font-size: 13px;
  font-weight: 600;
  color: var(--console-ink);
}

.record__closure-what {
  font-size: 13px;
  line-height: 1.5;
  color: var(--console-ink-2);
}

/* --- Materials ------------------------------------------------------------- */

.brands__item {
  appearance: none;
  flex: 1 1 auto;
  min-height: 64px;
  background: none;
  border: 0;
  border-radius: 0;
  font-family: var(--font-display);
  cursor: pointer;
  text-align: center;
  padding: 16px 20px;
  font-size: 22px;
  font-weight: var(--fw-display);
  letter-spacing: 0;
  text-transform: none;
  color: var(--console-ink);
  transition: background-color var(--t-fast) var(--ease);
}

.brands__item:hover,
.brands__item:focus-visible {
  background: var(--console-subtle);
  color: var(--console-ink);
}

/* A name lifts a touch under the pointer, as a card does — it opens
   something, and the row of plain words otherwise gives no sign of it. */
@media (hover: hover) {
  .brands__item {
    transition: background-color var(--t-fast) var(--ease), transform var(--motion-fast) var(--ease-out);
  }

  .brands__item:hover {
    transform: translateY(-2px);
  }
}

.brand-modal {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--console-border);
  border-radius: var(--r-md);
  background: var(--console-surface);
  color: var(--console-ink);
  box-shadow: var(--console-shadow-pop);
}

.brand-modal::backdrop {
  background: var(--console-scrim);
}

.brand-modal__inner {
  position: relative;
  padding: 28px 24px 24px;
}

.brand-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  appearance: none;
  background: none;
  border: 0;
  border-radius: var(--r-sm);
  color: var(--console-ink-2);
  font-size: 24px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.brand-modal__close:hover,
.brand-modal__close:focus-visible {
  color: var(--console-ink);
  background: var(--console-subtle);
}

.brand-modal__name {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: var(--fw-display);
  letter-spacing: 0;
  text-transform: none;
  color: var(--console-ink);
}

.brand-modal__role,
.brand-modal__blurb {
  margin: 12px 0 0;
  color: var(--console-ink-2);
}

.brand-modal__out {
  margin-top: 22px;
}

.brand-modal__foot {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--console-ink-2);
}

/* --- Written sections: warranty and About ---------------------------------- */
.warranty__list,
.warranty__steps {
  margin: 0 0 18px;
  padding-left: 1.3em;
  color: var(--console-ink);
  line-height: 1.8;
}

.warranty__list li,
.warranty__steps li {
  margin-bottom: 6px;
}

.warranty__list {
  list-style: disc;
}

.warranty__steps {
  list-style: decimal;
}

/* --- The configurator -------------------------------------------------------
   One question at a time. A count and a bar say how far along it is, what is
   already chosen sits above as a trail to step back along, and the total
   stays in view: beside the question on a desk, along the foot on a phone.
   -------------------------------------------------------------------------- */
/* Not `.quote` — that is core.css's italic pull-quote, and the whole
   configurator used to inherit it. */
.configurator {
  padding-bottom: 96px;
}

.quote__layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 960px) {
  .configurator {
    padding-bottom: 48px;
  }

  .quote__layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 56px;
  }
}

.quote__main {
  min-width: 0;
}

.quote__progress {
  margin-bottom: 20px;
}

.quote__count {
  font-size: 14px;
  color: var(--console-ink-2);
  font-variant-numeric: tabular-nums;
}

.quote__bar {
  height: 4px;
  margin-top: 10px;
  border-radius: var(--r-pill);
  background: var(--console-border);
  overflow: hidden;
}

.quote__bar span {
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: var(--console-ink);
  transition: background-color var(--t-fast) var(--ease);
}

.quote__trail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.quote__crumb {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--console-border);
  border-radius: var(--r-pill);
  background: var(--console-surface);
  color: var(--console-ink);
  font-size: 14px;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.quote__crumb:hover {
  border-color: var(--console-ink);
}

.quote__crumb-k {
  color: var(--console-ink-2);
}

.quote__step {
  margin: 0;
  padding: 0;
  border: none;
  /* A fieldset will not shrink below its widest child by default, so the
     day picker's scrolling row would scroll the whole page sideways. */
  min-width: 0;
}

.quote__legend {
  padding: 0;
  margin-bottom: 20px;
}

.quote__title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: var(--fw-display);
  line-height: 1.15;
  color: var(--console-ink);
}

.quote__title:focus {
  outline: none;
}

.quote__title:focus-visible {
  outline: 2px solid var(--console-focus);
  outline-offset: 4px;
}

.quote__sub {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--console-ink-2);
}

.quote__options {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.quote__more {
  margin-top: 16px;
}

.quote__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--console-border);
}

.quote__nav .quote__next,
.quote__nav .quote__send {
  margin-left: auto;
}

.quote__back {
  border: 0;
  padding: 8px 0;
  background: none;
  color: var(--console-ink-2);
  font-size: 15px;
  text-decoration: underline;
  text-decoration-color: var(--console-border-strong);
  text-underline-offset: 4px;
  transition: color var(--t-fast) var(--ease);
}

.quote__back:hover {
  color: var(--console-ink);
}

.quote__error {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--console-danger);
  border-radius: var(--r-sm);
  color: var(--console-danger);
  font-size: 15px;
}

.quote__total {
  font-weight: 600;
  color: var(--console-ink);
}

.quote__tax {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  color: var(--console-ink-2);
}

.quote__caveat {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--console-warn);
}

.quote__field {
  display: grid;
  align-content: start;
  gap: 6px;
}

.quote__label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--console-ink);
}

.quote__optional {
  font-weight: 400;
  color: var(--console-ink-2);
}

.quote__hint {
  font-size: 13px;
  line-height: 1.5;
  color: var(--console-ink-2);
}

.quote__hint--warn {
  color: var(--console-danger);
}

.quote__rule {
  margin: 32px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--console-border);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--console-ink);
}

.quote__note {
  margin: -4px 0 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--console-ink-2);
}

.quote__fields {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}

/* Your car: Brand → Model → Year. */
.quote__car {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 14px;
}

.quote__car-note {
  margin: 14px 0 0;
}

.quote__car-switch {
  justify-self: start;
  margin-top: 16px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--console-ink);
  font-size: 15px;
  text-decoration: underline;
  text-decoration-color: var(--console-border-strong);
  text-underline-offset: 4px;
  cursor: pointer;
}

.quote__car-switch:hover {
  text-decoration-color: var(--console-ink);
}

/* The slot picker. Days scroll sideways so the times stay on a phone screen. */
.quote__days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.quote__day {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: grid;
  gap: 2px;
  min-width: 104px;
  padding: 10px 14px;
  background: var(--console-surface);
  border: 1px solid var(--console-border);
  border-radius: var(--r-md);
  color: var(--console-ink);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.quote__day:hover {
  border-color: var(--console-border-strong);
}

.quote__day[data-chosen="true"] {
  border-color: var(--console-ink);
  box-shadow: inset 0 0 0 1px var(--console-ink);
}

.quote__day--closed {
  cursor: not-allowed;
  background: var(--console-subtle);
  color: var(--console-ink-2);
}

.quote__day-name {
  font-size: 14px;
  font-weight: 600;
}

.quote__day-sub {
  font-size: 12px;
  color: var(--console-ink-2);
}

.quote__slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quote__slot {
  padding: 8px 14px;
  background: var(--console-surface);
  border: 1px solid var(--console-border);
  border-radius: var(--r-pill);
  color: var(--console-ink);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}

.quote__slot:hover {
  border-color: var(--console-border-strong);
}

.quote__slot[data-chosen="true"] {
  background: var(--console-primary);
  border-color: var(--console-primary);
  color: var(--console-on-primary);
  font-weight: 600;
}

.quote__turnstile {
  margin-top: 20px;
  min-height: 65px;
}

.quote__consent {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--console-ink-2);
  max-width: 62ch;
}

.quote__consent a,
.quote__consent-link {
  color: inherit;
  text-decoration: underline;
}

.quote__consent-link {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  text-underline-offset: 2px;
  cursor: pointer;
}

.quote__consent-link:hover {
  color: var(--console-ink);
}

.quote__consent-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  max-width: 62ch;
  font-size: 13px;
  line-height: 1.6;
  color: var(--console-ink-2);
  cursor: pointer;
}

.quote__consent-check input {
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--console-ink);
}

/* The review: what was chosen, and what it costs. */
.quote__review .specs {
  margin-top: 4px;
}

.quote__change {
  margin-left: 12px;
  padding: 0;
  font-size: 14px;
}

.quote__review > .specs {
  border-top: 0;
}

.quote__review-wa {
  margin-top: 16px;
  font-size: 15px;
  color: var(--console-ink-2);
}

/* After sending. */
.quote__done {
  padding: clamp(24px, 4vw, 40px);
}

.quote__done-lede {
  margin-top: 12px;
}

/* The thank-you is the one configurator screen with the "Ask us" launcher
   on it; on a phone it sits over the end of the lines at the foot of the
   first screen. The words keep clear of its column, as the hero's do. */
@media (max-width: 599px) {
  .quote__done .lede,
  .quote__done .quote__next-steps {
    padding-right: 48px;
  }
}

.quote__ref {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  background: var(--console-subtle);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.quote__next-steps {
  margin-top: 24px;
  padding-left: 1.2em;
  list-style: decimal;
  color: var(--console-ink-2);
  line-height: 1.8;
}

/* The running total. A card beside the question on a desk; a plain bar along
   the foot of a phone, where it is the only fixed thing on the screen. */
.estimate {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 56;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--console-surface);
  border-top: 1px solid var(--console-border);
}

.estimate__label {
  font-size: 13px;
  color: var(--console-ink-2);
}

.estimate__tax {
  font-weight: 400;
}

.estimate__value {
  font-weight: 600;
  font-size: 20px;
  color: var(--console-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.estimate__specs,
.estimate__heading {
  display: none;
}

.estimate__step {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--console-ink-2);
  text-align: right;
  white-space: nowrap;
}

@media (min-width: 960px) {
  .estimate {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    display: block;
    padding: 24px;
    border: 1px solid var(--console-border);
    border-radius: var(--r-md);
  }

  .estimate__heading {
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-display);
  font-weight: var(--fw-display);
    font-size: 22px;
  }

  .estimate__specs {
    display: block;
    margin-bottom: 18px;
  }

  .estimate__step {
    display: none;
  }

  .estimate__value {
    font-size: 28px;
  }
}

/* --- Footer ---------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--console-border);
  background: var(--console-bg);
  padding: 56px 0 32px;
  font-size: 15px;
}

.footer__grid {
  display: grid;
  gap: var(--sp-6) var(--sp-5);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 700px) {
  .footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.footer__tagline {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: 20px;
  line-height: 1.3;
  color: var(--console-ink);
  max-width: 18em;
  text-wrap: balance;
}

.footer__address {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--console-ink-2);
}

.footer__heading {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--console-ink);
}

.footer__links {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--console-ink-2);
}

.footer__links a,
.footer__prefs {
  color: var(--console-ink-2);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

.footer__links a:hover,
.footer__prefs:hover {
  color: var(--console-ink);
}

.footer__prefs {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.footer__base {
  margin-top: 48px;
  font-size: 13px;
  color: var(--console-ink-2);
}

/* The rule above the copyright line, inside the wrap's padding rather than
   across it, so it starts and ends where the columns above do. */
.footer__base::before {
  content: "";
  display: block;
  margin-bottom: 20px;
  border-top: 1px solid var(--console-border);
}

/* --- Support (Ask Des) ------------------------------------------------------ */
.support {
  --t-des-breathe: 4s;             /* one breath of the launcher's halo: slow on purpose */
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  /* The host is a box the size of the pill and the panel together, and in the
     compact state a larger one than the mark that is drawn. It takes no taps:
     only the launcher (clipped to what is drawn) and the open panel do, so a
     link under the empty part of it is still a link. */
  pointer-events: none;
}

/* Over the consent notice (90) while the panel is open, so a sheet on a phone
   is not half under it; under a toast (120). */
.support[data-open="true"] {
  z-index: 95;
}

.support__launcher,
.support__panel {
  pointer-events: auto;
}

/* Off the configurator's steps (site/app.js), where it sat on the step nav's
   button and the running total along the foot of a phone. */
.support[hidden] {
  display: none;
}

/* The one contact affordance on every page: Des's "C." mark and his name on
   the floating surface. The studio's button, not WhatsApp's — the panel it
   opens ends with WhatsApp and the phone.

   The pill and the lone disc are two painted layers that cross-fade, and the
   label fades and slides; the button itself is the size of what is drawn (132px,
   then 48px past the first screen), so it takes taps only there. It is fixed to
   the screen, so the change moves nothing in the page. Only opacity, transform
   and clip-path are ever transitioned. */
.support__launcher {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  width: 132px;
  height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  /* The reach beyond the box is for the shadow and the halo. */
  clip-path: inset(-60px);
  transition: clip-path var(--motion) var(--ease), transform var(--t-fast) var(--ease);
}

.support__pill,
.support__disc {
  position: absolute;
  border: 1px solid var(--border-strong);
  background: var(--bg-3);
  box-shadow: var(--shadow-pop);
  pointer-events: none;
  transition: opacity var(--motion) var(--ease), border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}

/* Anchored to the right edge at its own width, not to the button's box: when
   the button narrows to the mark the pill is left hanging out of it, fading. */
.support__pill {
  top: 0;
  right: 0;
  bottom: 0;
  width: 132px;
  border-radius: var(--r-pill);
}

.support__disc {
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  opacity: 0;
}

.support__launcher:hover .support__pill,
.support__launcher:hover .support__disc {
  border-color: var(--ink-3);
}

.support__launcher:focus-visible {
  outline: 2px solid transparent; /* forced-colors still draws it */
}

.support__launcher:focus-visible .support__pill,
.support__launcher:focus-visible .support__disc {
  box-shadow: var(--ring), var(--shadow-pop);
}

@media (hover: hover) {
  .support__launcher:hover {
    transform: translateY(-1px);
  }
}

.support__mark {
  position: relative;
  grid-column: 2;
  justify-self: center;
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.support__launcher-label {
  position: absolute;
  top: 0;
  right: 48px;
  bottom: 0;
  display: flex;
  align-items: center;
  padding-left: 18px;
  /* Nothing hanging out of the button takes a tap. */
  pointer-events: none;
  white-space: nowrap;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0;
  text-transform: none;
  transition: opacity var(--t-base) var(--ease), transform var(--motion) var(--ease);
}

/* The halo: a ring that swells and fades, for a pointer that can hover. It
   is a pseudo-element moved with transform and opacity, so it costs the page
   no layout. A phone and reduced motion get none. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .support:not([data-open="true"]) .support__pill::after,
  .support:not([data-open="true"]) .support__disc::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent);
    animation: support-breathe var(--t-des-breathe) var(--ease-in-out) infinite;
  }
}

@keyframes support-breathe {
  0%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08, 1.28);
  }
}

/* Past the first screen of scrolling it keeps to the mark alone. The button
   itself narrows to the mark (it is fixed to the screen, so nothing in the page
   moves), because a box wider than what is drawn has its centre, where a
   switch or voice control presses, over nothing. */
.support[data-compact="true"]:not([data-open="true"]) .support__launcher {
  width: 48px;
}

.support[data-compact="true"]:not([data-open="true"]) .support__pill {
  opacity: 0;
}

.support[data-compact="true"]:not([data-open="true"]) .support__disc {
  opacity: 1;
}

.support[data-compact="true"]:not([data-open="true"]) .support__launcher-label {
  opacity: 0;
  transform: translateX(12px);
}

/* A phone's panel is a sheet that covers the launcher's corner, so the
   launcher steps aside while it is open; closing brings it back before focus
   returns to it. */
@media (max-width: 599px) {
  .support[data-open="true"] .support__launcher {
    display: none;
  }
}

.support__panel {
  position: relative;
  width: min(400px, calc(100vw - 32px));
  max-height: min(78svh, 640px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  border-radius: var(--r-lg);
  /* Opaque first: where backdrop-filter is missing the card must still hold
     its contrast, so the glass is only ever an addition. */
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-float);
  display: grid;
  gap: 14px;
  animation: support-in var(--motion) var(--ease) both;
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .support__panel {
    background: color-mix(in srgb, var(--bg-3) 92%, transparent);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
}

@keyframes support-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* A sheet from the bottom on a phone, to the edges. --support-kb is how much
   of the screen the on-screen keyboard covers (support.js, from visualViewport),
   so the input is never under it. */
@media (max-width: 599px) {
  .support__panel {
    position: fixed;
    inset: auto 0 var(--support-kb, 0px) 0;
    width: auto;
    max-height: min(86svh, calc(100svh - var(--support-kb, 0px)));
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    border-bottom: 0;
    animation-name: support-sheet;
  }
}

@keyframes support-sheet {
  from {
    transform: translateY(100%);
  }
}

.support__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.support__close {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -10px -10px -10px 0;
  background: none;
  border: none;
  border-radius: var(--r-pill);
  color: var(--ink-2);
}

.support__close:hover {
  color: var(--ink);
}

.support__close:focus-visible,
.support__mic:focus-visible,
.support__listen:focus-visible {
  outline: 2px solid transparent; /* forced-colors still draws it */
  box-shadow: var(--ring);
}

.support__intro {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-2);
}

/* The three quick questions: wrapped, not scrolled, so none hides off the edge. */
.support__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.support__results {
  display: grid;
  gap: 8px;
}

.support__result {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 12px 14px;
}

.support__result summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: var(--fw-medium);
  color: var(--ink);
  list-style: none;
}

.support__result summary::-webkit-details-marker {
  display: none;
}

.support__result p {
  margin-top: 8px;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--ink-2);
}

.support__miss,
.support__voice {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--ink-2);
}

/* The assistant's conversation. The customer's turns sit right on the
   raised surface; the assistant's sit left on the panel, under a label that
   says it is AI every time it speaks. */
.support__thread {
  display: grid;
  gap: 10px;
}

.support__msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.support__msg--me {
  justify-self: end;
  border-bottom-right-radius: var(--r-xs);
  background: var(--bg-selected);
  color: var(--ink);
}

.support__msg--ai {
  justify-self: start;
  border: 1px solid var(--border-strong);
  border-bottom-left-radius: var(--r-xs);
  color: var(--ink);
}

.support__text {
  display: grid;
  gap: 0.5em;
  white-space: normal;
}

/* A reply that has just arrived rises line by line: opacity and translate only,
   each line one --t-base, the next a beat behind. support.js caps the step at
   the third line, so the last line is in by 260 ms: the interaction tier ends
   by 400 (tools/a11y.test.mjs). A redraw later is still. */
.support__msg.is-new {
  animation: support-line var(--t-base) var(--ease) both;
}

.support__msg.is-new .support__line {
  animation: support-line var(--t-base) var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes support-line {
  from {
    opacity: 0;
    translate: 0 8px;
  }
}

/* Three dots while Des is writing. */
.support__typing {
  display: flex;
  gap: 5px;
  padding-block: 6px;
}

.support__typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-2);
  animation: support-dot calc(var(--motion) * 4) var(--ease-in-out) infinite;
}

.support__typing i:nth-of-type(2) {
  animation-delay: var(--t-fast);
}

.support__typing i:nth-of-type(3) {
  animation-delay: calc(var(--t-fast) * 2);
}

@keyframes support-dot {
  0%,
  60%,
  100% {
    opacity: 0.35;
    translate: 0 0;
  }
  30% {
    opacity: 1;
    translate: 0 -3px;
  }
}

.support__who {
  margin-bottom: 4px;
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Read this reply aloud: a quiet text button under it. */
.support__listen {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  margin-top: 6px;
  padding: 4px 10px 4px 6px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: var(--fs-xs);
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.support__listen:hover {
  color: var(--ink);
  background: var(--bg-2);
}

.support__listen[aria-pressed="true"] {
  color: var(--ink);
  background: var(--accent-tint);
  border-color: var(--accent-text);
}

.support__quote {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-strong);
}

.support__quote-total {
  font-size: 20px;
  font-weight: var(--fw-medium);
  font-variant-numeric: tabular-nums;
}

.support__quote-total span {
  font-size: 13px;
  font-weight: var(--fw-regular);
  color: var(--ink-2);
}

.support__ask {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.support__ask--voice {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.support__input {
  height: 44px;
  background: var(--bg-1);
  border-color: var(--border-input-raised); /* the control sits on --bg-3 here */
}

.support__send {
  height: 44px;
  padding-inline: 16px;
}

/* The microphone: a round button in the input row. Pressed it carries the
   accent wash and a ring that swells while it listens; the ring swells further
   when the browser reports speech (data-hearing on the host). */
.support__mic {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--bg-1);
  border: 1px solid var(--border-input-raised);
  border-radius: 50%;
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.support__mic:hover:not(:disabled) {
  border-color: var(--ink-3);
}

.support__mic:disabled {
  opacity: 0.5;
}

.support__mic[aria-pressed="true"] {
  background: var(--accent-tint);
  border-color: var(--accent-text);
}

.support__mic[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--accent-text);
  pointer-events: none;
  animation: support-listen calc(var(--motion) * 4) var(--ease-in-out) infinite;
}

.support[data-hearing="true"] .support__mic[aria-pressed="true"]::after {
  animation-name: support-hear;
  animation-duration: calc(var(--motion) * 2);
}

@keyframes support-listen {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.12);
  }
}

@keyframes support-hear {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

/* The ways to the studio, kept quiet under the conversation. */
.support__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.support__actions .btn {
  height: 44px;
  padding-inline: 16px;
}

/* --- Review wall ----------------------------------------------------------- */
review-wall {
  display: block;
}

.review-wall__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--console-border);
}

.review-wall__score {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.review-wall__figure {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: var(--fw-display);
  line-height: 1;
  color: var(--console-ink);
  font-variant-numeric: tabular-nums;
}

.review-wall__stars {
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--console-ink);
}

.review-wall__count {
  font-size: 15px;
  color: var(--console-ink-2);
}

.review-wall__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.review-wall__foot {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--console-ink-2);
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  background: var(--console-surface);
  border: 1px solid var(--console-border);
  border-radius: var(--r-md);
  padding: 22px 20px;
}

.review-card__stars {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--console-ink);
  line-height: 1;
}

.review-card__body {
  flex: 1;
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: 18px;
  line-height: 1.5;
  color: var(--console-ink);
  display: -webkit-box;
  -webkit-line-clamp: 8;
  line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card__by {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--console-border);
}

.review-card__monogram {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: var(--r-pill);
  background: var(--console-subtle);
  font-size: 13px;
  font-weight: 600;
  color: var(--console-ink);
}

.review-card__author {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--console-ink);
}

.review-card__when {
  display: block;
  font-size: 13px;
  color: var(--console-ink-2);
  margin-top: 2px;
}

.review-card__link {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--console-ink-2);
}

.review-card__link:hover {
  color: var(--console-ink);
}

/* Held space while the reviews are on their way. Still, not shimmering. */
.review-card--skeleton {
  gap: 14px;
  min-height: 220px;
}

.skeleton-line {
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--console-subtle);
}

.skeleton-line--short {
  width: 45%;
}

/* --- The combobox ---------------------------------------------------------- */
.combo {
  position: relative;
  min-width: 0;
}

.combo__list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 300px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  background: var(--console-surface);
  border: 1px solid var(--console-border);
  border-radius: var(--r-md);
  box-shadow: var(--console-shadow-pop);
  scroll-margin-bottom: 96px;
}

.combo__list[hidden] {
  display: none;
}

.combo__option {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: var(--console-ink);
  font-size: 15px;
  cursor: pointer;
}

.combo__option:hover,
.combo__option[aria-selected="true"] {
  background: var(--console-subtle);
}

.combo__option[data-chosen="true"] .combo__label {
  font-weight: 600;
}

.combo__hint {
  font-size: 13px;
  color: var(--console-ink-2);
  text-align: right;
}

.combo__empty,
.combo__more {
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--console-ink-2);
}

.combo__input:disabled {
  opacity: 0.5;
}

/* ===== V2 kit =====
   The header, the overlay menu and the section kit of public/assets/js/site/
   parts.js (and its string twins in src/seo/parts.js). Written on the role
   tokens of core.css — no hex, no new duration — and every selector here is
   one the kit emits. The older rules above keep working until each page has
   moved over; where this block restates one, it says so.
   ========================================================================== */

/* Stopping smooth scrolling (a dialog opens) sets overflow: clip on the root
   and takes a desktop scrollbar away. Holding its width keeps the page from
   shifting sideways when that happens. */
html {
  scrollbar-gutter: stable;
}

/* One section of the kit: 64px above and below on a phone, 96px from a tablet.
   Pages put it on the <section> that holds a sectionHead, steps, a tile grid. */
.section {
  padding-block: var(--sp-8);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--sp-9);
  }
}

/* How we work runs straight on into the services: one gap between them, not two. */
#how {
  padding-bottom: var(--sp-7);
}

#how + #services {
  padding-top: 0;
}

/* --- Masthead ---------------------------------------------------------------
   Logo, the one call to action, WhatsApp and Menu — at every width. The places
   themselves are in the menu. */
.masthead__wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-input);
  border-radius: var(--r-md);
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

@media (hover: hover) {
  .masthead__wa:hover {
    border-color: var(--ink);
  }
}

.masthead__wa svg,
.masthead__menu svg {
  display: block;
  flex: none;
}

/* Logo, call to action, WhatsApp and Menu on a 360px phone: close the gaps,
   and let Menu be its icon alone (its button carries aria-label="Menu"). */
@media (max-width: 599px) {
  .masthead__inner {
    gap: var(--sp-3);
  }

  .masthead__actions {
    gap: var(--sp-2);
  }
}

@media (max-width: 399px) {
  .masthead__cta {
    padding-inline: 10px;
  }

  .masthead__logo img {
    height: 16px;
  }
}

/* On the smallest phones the call to action is wider than its half of the bar,
   which pushes the logo off centre. */
@media (max-width: 374px) {
  .masthead__inner {
    gap: var(--sp-2);
  }

  .masthead__cta {
    padding-inline: 6px;
  }
}

@media (max-width: 339px) {
  .masthead__inner {
    padding-inline: 12px;
  }
}

@media (max-width: 479px) {
  .masthead__menu {
    width: 40px;
    padding-inline: 0;
    justify-content: center;
  }

  .masthead__menu-label {
    display: none;
  }
}

/* --- The menu ---------------------------------------------------------------
   A full-screen <dialog> (site/menu.js). The browser traps focus in it and
   closes it on Escape; the page behind is inert while it is open. */
.site-menu {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg-0);
  color: var(--ink);
  overflow-y: auto;
}

.site-menu::backdrop {
  background: var(--scrim);
}

.site-menu__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  min-height: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--sp-4) var(--pad) calc(var(--sp-5) + env(safe-area-inset-bottom, 0px));
}

/* The same three columns as the masthead, so the logo stays where it was when
   the menu opens. */
.site-menu__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

.site-menu__logo {
  grid-column: 2;
}

.site-menu__logo img {
  display: block;
  height: 18px;
  width: auto;
}

.site-menu__close {
  grid-column: 3;
  justify-self: end;
  gap: var(--sp-2);
}

/* The word is too wide for a phone's half of the bar: the icon alone, the size
   of the Menu button it replaces. The button keeps its aria-label. */
@media (max-width: 479px) {
  .site-menu__close {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding-inline: 0;
    justify-content: center;
  }

  .site-menu__close-label {
    display: none;
  }
}

@media (max-width: 399px) {
  .site-menu__logo img {
    height: 16px;
  }
}

.site-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-menu__primary {
  display: grid;
}

.site-menu__link {
  display: block;
  padding-block: var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

.site-menu__link--cta {
  color: var(--accent-text);
}

.site-menu__link[aria-current="page"] {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
}

@media (hover: hover) {
  .site-menu__link:hover {
    color: var(--accent-text);
  }
}

.site-menu__secondary,
.site-menu__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--sp-5);
}

.site-menu__foot {
  margin-top: auto;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}

.site-menu__small {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-body);
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

/* The maker's credit under the foot row: quieter than the links, and a link to
   the maker's site all the same. The inner column's gap is wide for the big
   groups; the credit belongs to the foot, so it pulls back to half of it. */
.site-menu__credit {
  margin: calc(var(--sp-4) * -1) 0 0;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

/* core.css paints every link champagne and lights it on hover. The credit's
   link takes the colour of the line it sits in, and goes to ink on hover as
   the foot links do. :where() keeps its guard out of the specificity, so the
   hover still beats core.css's a:hover. */
.site-menu__credit a {
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) {
  .site-menu__credit a:hover:where(:not([aria-disabled="true"])) {
    color: var(--ink);
  }
}

.site-menu__small[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 6px;
}

@media (hover: hover) {
  .site-menu__small:hover {
    color: var(--ink);
  }
}

/* --- Eyebrow, restated ------------------------------------------------------
   A short accent rule, then the words in small tracked capitals. Restates the
   older .eyebrow above, so every page that already draws one takes it. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  line-height: var(--lh-base);
  color: var(--ink-2);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 24px;
  height: 2px;
  background: var(--accent);
}

/* --- Section head ---------------------------------------------------------- */
.section-head__text {
  flex: 1 1 22rem;
  min-width: 0;
}

.section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

.section-head__lead {
  margin: var(--sp-4) 0 0;
  max-width: 48ch;
  font-size: var(--fs-lead);
  line-height: var(--lh-base);
  color: var(--ink-2);
}

/* --- Statement ------------------------------------------------------------- */
.statement {
  padding-block: var(--sp-8);
}

@media (min-width: 768px) {
  .statement {
    padding-block: var(--sp-9);
  }
}

.statement__text {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-statement);
  font-weight: var(--fw-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
  overflow-wrap: break-word;
}

.statement__accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--site-accent);
}

/* --- Marquee ----------------------------------------------------------------
   The makes of the published work, each a link to /work?make=. Once the script
   has marked it live it is a row that scrolls sideways (a swipe, a wheel, a
   mouse drag) and that site/motion.js `marquees()` moves along by itself while
   it is on screen. The list is there twice so the loop has no seam. Without
   the script it is a still, wrapped list; under reduced motion the same (see
   the rule at the foot of the file). */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-5);
  border-block: 1px solid var(--border);
}

.marquee__track {
  display: flex;
  width: max-content;
}

/* The home page's strip while its marks are fetched (a visitor arriving at /
   from another page): the height of one row of marks, so nothing below moves
   when they arrive. */
.marquee--pending::before {
  content: "";
  display: block;
  height: 30px;
}

@media (max-width: 599px) {
  .marquee--pending::before {
    height: 24px;
  }
}

.marquee__list {
  display: flex;
  flex: none;
  gap: var(--sp-8);
  margin: 0;
  padding: 0 var(--sp-8) 0 0;
  list-style: none;
}

.marquee__item {
  display: flex;
  color: var(--ink-2);
  transition: color var(--t-base) var(--ease);
}

/* The symbols every mark draws (core/brand-marks.js): there to be referenced,
   out of the flow and not painted. Not display:none, which some browsers
   take to mean a mask inside it has nothing to draw. */
.marquee__sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* The link is the mark's own box, with a little more height to put a finger on. */
.marquee__link {
  display: flex;
  padding-block: var(--sp-2);
  color: inherit;
  text-decoration: none;
  border-radius: var(--r-sm);
}

.marquee__link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* A brand mark (core/brand-marks.js): one colour, in the item's ink. The
   height is fixed and the width follows the viewBox's ratio from the
   attributes, so the strip's width is known before anything paints. */
.marquee__item svg {
  display: block;
  flex: none;
  width: auto;
  height: 30px;
}

@media (hover: hover) and (pointer: fine) {
  .marquee__item:hover,
  .marquee__item:focus-within {
    color: var(--ink);
  }
}

@media (max-width: 599px) {
  .marquee__item svg {
    height: 24px;
  }
}

.marquee:not([data-live]) .marquee__track {
  width: auto;
}

.marquee:not([data-live]) .marquee__list {
  /* May shrink to the strip, or the wrap has no edge to wrap at. */
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-7);
  padding: 0 var(--pad);
}

.marquee:not([data-live]) .marquee__list[aria-hidden],
.marquee:not([data-live]) .marquee__item--repeat {
  display: none;
}

/* The row that scrolls. The scrollbar is hidden (the strip is a picture of the
   studio's work that happens to move, not a list to measure), and the gesture
   is the visitor's: a swipe across it moves it, a swipe up or down is the page's. */
.marquee[data-live] {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}

.marquee[data-live]::-webkit-scrollbar {
  display: none;
}

.marquee.is-dragging {
  cursor: grabbing;
  user-select: none;
}

/* --- Steps ------------------------------------------------------------------
   A slider on a phone — the browser's own scroll snapping, one step per view
   — and three columns from 1024px, where nothing slides.

   Scoped to `div.steps` and to the items inside its track. */
div.steps {
  display: grid;
  gap: var(--sp-4);
}

.steps__track {
  position: relative;
  display: flex;
  gap: var(--sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.steps__track::-webkit-scrollbar {
  display: none;
}

div.steps .steps__track .steps__item {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  align-content: start;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-1);
}

div.steps .steps__track .steps__n {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: var(--fs-h3);
  line-height: 1;
  color: var(--accent-text);
}

div.steps .steps__track .steps__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-display);
  line-height: var(--lh-tight);
}

div.steps .steps__track .steps__body {
  margin: 0;
  max-width: 48ch;
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--ink-2);
  text-wrap: pretty;
}

.steps__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.steps__count {
  margin: 0;
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-wide);
  color: var(--ink-2);
}

@media (min-width: 1024px) {
  .steps__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    overflow: visible;
    scroll-snap-type: none;
  }

  .steps__nav,
  .steps__count {
    display: none;
  }
}

/* --- Tiles and rows ---------------------------------------------------------
   `.tile-grid` and `.work-row` hold the tiles; pages put them around the kit's
   output. */
.tile-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .tile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Five pieces of work on the home page: a row to swipe on a phone, five across
   from 1024px, each card smaller than the work page's. */
.work-row {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  /* Said outright: overflow-x alone makes overflow-y compute to auto, and a
     row that is a scroller both ways with a snap takes an upward swipe that
     starts on it and keeps every touch scroll after it (Chromium on touch;
     tools/qa/site-motion.mjs swipes on the row). Hidden, the swipe is the
     page's. */
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  /* Room inside the clip for a tile's focus ring, given back outside. */
  padding: 4px;
  margin: -4px;
  scroll-padding-inline: 4px;
  scrollbar-width: none;
}

.work-row::-webkit-scrollbar {
  display: none;
}

.work-row > * {
  flex: 0 0 min(78%, 320px);
  scroll-snap-align: start;
}

@media (min-width: 1024px) {
  .work-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--sp-3);
    overflow: visible;
  }

  .work-row .work-tile__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
  }

  .work-row .work-tile__car {
    font-size: var(--fs-body);
  }
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-1);
  transition: border-color var(--t-fast) var(--ease);
}

@media (hover: hover) {
  .tile:hover {
    border-color: var(--border-strong);
  }
}

.tile:focus-within {
  box-shadow: var(--ring);
}

.tile__body {
  display: grid;
  flex: 1;
  align-content: start;
  gap: var(--sp-2);
  padding: var(--sp-5);
}

.tile__label {
  margin: 0;
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-2);
}

.tile__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-display);
  line-height: var(--lh-tight);
}

.tile__text {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.tile__cta {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 4px;
}

/* The whole tile is the link: this stretches the one anchor over it. */
.tile__cta::after {
  content: "";
  position: absolute;
  inset: 0;
}

.tile__cta:focus-visible {
  outline: none;
}

.work-tile {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.work-tile__media {
  overflow: hidden;
  border-radius: var(--r-md);
}

.work-tile__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-1) 0;
}

.work-tile__car {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: var(--fs-lead);
  line-height: var(--lh-tight);
}

.work-tile__chip {
  flex: none;
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  color: var(--ink-2);
}

/* --- Trust strip ----------------------------------------------------------- */
.trust {
  padding-block: var(--sp-8);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

@media (min-width: 768px) {
  .trust {
    padding-block: var(--sp-9);
  }
}

/* Reviews are the page's one centred section: the heading over the middle,
   the wall under it. */
.trust .section-head {
  justify-content: center;
  text-align: center;
}

.trust .section-head__text {
  flex: 0 1 auto;
}

/* --- Credentials -----------------------------------------------------------
   Two names on the page's own surface, lead-aligned: no cards, no shadows. A
   logo, when the brand's file is there, stands above its name; until then the
   name is the mark, set large. */
.credentials {
  padding-block: var(--sp-8);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

@media (min-width: 768px) {
  .credentials {
    padding-block: var(--sp-9);
  }
}

.credentials__list {
  display: grid;
  gap: var(--sp-7) var(--sp-8);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .credentials__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.credentials__item {
  display: grid;
  align-content: start;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border-strong);
}

.credentials__logo {
  display: block;
  width: auto;
  height: 48px;
  max-width: 100%;
  margin-bottom: var(--sp-2);
}

.credentials__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

/* With a logo above it the name is a caption, not a headline. */
.credentials__item--logo .credentials__name {
  font-size: var(--fs-lead);
}

.credentials__name a {
  color: inherit;
  text-decoration: none;
}

.credentials__name a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.credentials__note {
  margin: 0;
  max-width: 36ch;
  font-size: var(--fs-lead);
  line-height: var(--lh-base);
  color: var(--ink-2);
  text-wrap: pretty;
}

/* --- What you can expect ---------------------------------------------------
   Plainly: a heading and a list. Where the page can scrub (below), the points
   come on one at a time as it scrolls, the way the tagline used to. */
.expect {
  padding-block: var(--sp-8);
}

@media (min-width: 768px) {
  .expect {
    padding-block: var(--sp-9);
  }
}

.expect__inner {
  display: grid;
  gap: var(--sp-7) var(--sp-9);
  align-items: start;
}

.expect__inner .section-head {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .expect__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

.expect__list {
  display: grid;
  gap: var(--sp-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.expect__point {
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.expect__title {
  margin: 0 0 var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  font-weight: var(--fw-display);
  line-height: var(--lh-tight);
}

.expect__body {
  margin: 0;
  max-width: 48ch;
  line-height: var(--lh-base);
  color: var(--ink-2);
  text-wrap: pretty;
}

/* --- Start now -------------------------------------------------------------- */
.start {
  display: flex;
  justify-content: center;
  margin: var(--sp-7) 0 0;
}

/* --- Closing call to action ------------------------------------------------ */
.cta-band--v2 {
  padding-block: var(--sp-8);
  border-top: 1px solid var(--border);
  text-align: center;
}

@media (min-width: 768px) {
  .cta-band--v2 {
    padding-block: var(--sp-9);
  }
}

.cta-band--v2 .cta-band__inner {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: start;
  gap: var(--sp-5);
}

.cta-band--v2 .cta-band__title {
  max-width: 18ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

.cta-band__lead {
  margin: 0;
  max-width: 48ch;
  font-size: var(--fs-lead);
  line-height: var(--lh-base);
  color: var(--ink-2);
}

.cta-band--v2 .cta-band__actions {
  justify-content: center;
  gap: var(--sp-4) var(--sp-5);
}

/* --- Footer, the rest of it ------------------------------------------------- */
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-7);
}

.footer__top .footer__tagline {
  margin: 0;
}

.footer__totop {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  text-underline-offset: 4px;
}

.footer__totop:hover {
  color: var(--ink);
}

/* Ask Des sits fixed at the foot of the screen, bottom right (the pill is 132px
   wide, 16px in). The link keeps clear of that column, so it is never under the
   launcher when the page is scrolled to its end. */
@media (min-width: 1024px) {
  .footer__totop {
    margin-right: 152px;
  }
}

.footer__group {
  min-width: 0;
}

/* On a phone the address and the contact lines are too long for half a row. */
@media (max-width: 699px) {
  .footer__group:nth-last-child(-n + 2) {
    grid-column: 1 / -1;
  }
}

.footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__address {
  margin: 0 0 var(--sp-3);
}

.footer__legal {
  margin: 0;
  line-height: var(--lh-loose);
}

.footer__fine {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin: var(--sp-4) 0 0;
  padding: 0;
  list-style: none;
}

.footer__fine a,
.footer__fine .footer__prefs {
  color: var(--ink-2);
  font-size: var(--fs-sm);
}

@media (hover: hover) {
  .footer__fine a:hover,
  .footer__fine .footer__prefs:hover {
    color: var(--ink);
  }
}

/* The server's list of pages, under a page that is not in the reading column. */
.edge-pages {
  padding-block: var(--sp-6);
}

.edge-pages nav {
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.edge-pages ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

/* ===== end V2 kit ===== */

/* --- Motion ------------------------------------------------------------------
   Two tiers, both held by "motion is restrained" in tools/a11y.test.mjs and
   docs/DESIGN-SYSTEM.md "Motion":

   · Interactions — a colour, a lift, a page
     leaving and arriving — are transitions or short keyframes of no more
     than 400 ms.
   · Scenes — the home page's intro, the reveals, the scroll-driven scrub,
     parallax and curtains, the menu's choreography — are keyframes only
     (intro-, reveal-, scene-, menu-), move nothing but opacity and a
     transform, and run no longer than --t-intro (1600 ms); the scroll-driven
     ones have no duration at all, the scroll is their clock.

   Both are off under reduced motion (the rule at the end of this block): the
   site is then simply still, every reveal visible, nothing pinned. Nothing
   here animates a size or a position the layout notices, so nothing shifts.

   · The reveal. An element carrying data-reveal is drawn transparent and,
     when components/reveal.js sees it reach the screen and adds .is-in,
     rises 24 px into place over --t-reveal. data-reveal="group" does the same
     to each child in turn, --stagger apart, five steps at most. `translate`,
     not `transform`, so a card that also lifts under the pointer can: the two
     compose, where a second transform would replace the first. A photograph
     in a revealed card settles from a little large (reveal-image).
   · The page. A page reached by a link leaves (fades, drifts up 16 px, 180 ms)
     and the next arrives (rises 16 px, fades in, 320 ms); site/motion.js runs
     the two around the router's draw.
   -------------------------------------------------------------------------- */
@keyframes reveal-rise {
  from {
    opacity: 0;
    translate: 0 24px;
  }
}

@keyframes reveal-image {
  from {
    scale: 1.15;
  }
}

@keyframes page-enter {
  from {
    opacity: 0;
    translate: 0 16px;
  }
}

@keyframes page-leave {
  to {
    opacity: 0;
    translate: 0 -16px;
  }
}

[data-reveal]:not(.is-in):not([data-reveal="group"]),
[data-reveal="group"]:not(.is-in) > * {
  opacity: 0;
}

[data-reveal].is-in:not([data-reveal="group"]),
[data-reveal="group"].is-in > * {
  animation: reveal-rise var(--t-reveal) var(--ease-expo) backwards;
  animation-delay: min(calc(var(--i, 0) * var(--stagger)), calc(4 * var(--stagger)));
}

/* The photograph in a card that has just risen settles inside its frame. */
.tile.is-in:not(.is-settled) .image-slot__img,
.work-tile.is-in:not(.is-settled) .image-slot__img {
  animation: reveal-image var(--t-settle) var(--ease-expo) backwards;
}

/* A redraw of the page already on screen, and the edge's first paint: what
   is already in view is simply there (reveal.js adds both classes before the
   first paint of the nodes). */
[data-reveal].is-settled:not([data-reveal="group"]),
[data-reveal="group"].is-settled > * {
  animation: none;
}

.page--enter {
  animation: page-enter var(--motion) var(--ease-expo) backwards;
}

.page--leave {
  animation: page-leave var(--motion-fast) var(--ease-quart) forwards;
  pointer-events: none;
}

/* --- Hover ---------------------------------------------------------------------
   Pointer only, and calm: a text link's underline draws from the left, a
   photograph in a card eases a little closer, a button lifts (core.css). No
   custom cursor. */
@media (hover: hover) and (pointer: fine) {
  .textlink {
    position: relative;
  }

  .textlink::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform var(--motion) var(--ease-expo);
  }

  .textlink:hover {
    text-decoration-color: transparent;
  }

  .textlink:hover::after {
    transform: scaleX(1);
  }

  .tile .image-slot__img,
  .work-tile .image-slot__img {
    transition: opacity var(--t-fast) var(--ease), transform var(--motion) var(--ease-expo);
  }

  .tile:hover .image-slot__img,
  .work-tile:not(.work-tile--compare):hover .image-slot__img {
    transform: scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation: none !important;
  }

  /* The lifts and the rises, named: the hover lifts above, the reveal, the
     intro, the scenes and the configurator's step. Not `*` — a transform that
     positions something (rather than moves it) must survive this. */
  [data-reveal],
  [data-reveal="group"] > *,
  .brands__item:hover,
  .support__launcher:hover,
  .quote__step--enter,
  .masthead,
  .image-slot__img,
  .line__inner {
    transform: none !important;
    translate: none !important;
    scale: none !important;
  }

  [data-reveal],
  [data-reveal="group"] > * {
    opacity: 1 !important;
  }

  /* The menu opens and closes at once: its panel, its places and its scrim
     (a ::backdrop, which the * rule above does not reach). */
  .site-menu[open],
  .site-menu[open]::backdrop,
  .site-menu[open] .site-menu__primary > li,
  .site-menu.is-closing,
  .site-menu.is-closing::backdrop {
    animation: none !important;
  }

  /* The marquee does not move: a still, wrapped list of the marks, once, and
     not a row to scroll. */
  .marquee[data-live] {
    overflow: hidden;
    cursor: auto;
  }

  .marquee__list[aria-hidden],
  .marquee__item--repeat {
    display: none;
  }

  .marquee__track {
    width: auto;
  }

  .marquee__list {
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: var(--sp-3) var(--sp-7);
    padding: 0 var(--pad);
  }
}

/* === Configurator: entry, guide, packages, add-on groups, step motion === */
/* Appended as one block: the gate /quote opens on, the four-question guide
   and its answer, the add-ons step in its three groups, the /packages page,
   and the one motion the configurator has — a step sliding in as it arrives.
   Tokens only, so both themes come for free; transitions stay on colour and
   opacity; the keyframes are quote-* and reduced motion switches them off
   through the rule above. */

/* No running total beside the gate or the guide: nothing is priced yet. */
@media (min-width: 960px) {
  .quote__layout--solo {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- The gate: two doors ---------------------------------------------------- */
.quote__gate {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.gate-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label go"
    "spec go";
  gap: 6px 16px;
  align-items: center;
  min-height: 44px;
  padding: 24px;
  text-align: left;
  background: var(--console-surface);
  border: 1px solid var(--console-border);
  border-radius: var(--r-md);
  color: var(--console-ink);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.gate-card:hover {
  border-color: var(--console-ink);
}

.gate-card:focus-visible {
  outline: 2px solid var(--console-focus);
  outline-offset: 2px;
}

.gate-card__label {
  grid-area: label;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: var(--fw-display);
  line-height: 1.2;
}

.gate-card__spec {
  grid-area: spec;
  font-size: 15px;
  line-height: 1.55;
  color: var(--console-ink-2);
}

.gate-card__go {
  grid-area: go;
  font-size: 22px;
  line-height: 1;
  color: var(--console-ink-2);
}

.quote__gate-aside {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--console-ink-2);
}

.quote__gate-aside a {
  color: var(--console-ink);
  text-decoration: underline;
  text-decoration-color: var(--console-border-strong);
  text-underline-offset: 4px;
}

/* --- Groups inside a step: the guide's questions, the add-ons' three ------- */
.quote__group + .quote__group {
  margin-top: 28px;
}

.quote__group-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--console-ink);
}

.quote__group-sub {
  margin: -6px 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--console-ink-2);
}

/* An add-on the package already covers: shown ticked, not a choice. */
.choice--included {
  background: var(--console-subtle);
  cursor: default;
}

.choice--included:hover {
  border-color: var(--console-border);
}

.choice--included .choice__price {
  color: var(--console-ink);
  font-weight: 500;
}

/* An add-on priced after inspection: the words go under the name, not beside it. */
.choice--quoted .choice__top {
  flex-wrap: wrap;
}

.choice--quoted .choice__price {
  flex-basis: 100%;
}

/* Under a figure with a line still to come. */
.quote__partial {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--console-ink-2);
}

/* The guide's answer: why, and what is worth knowing. */
.quote__recommend .quote__group-title + .quote__reasons {
  margin-bottom: 20px;
}

.quote__reasons {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--console-ink-2);
}

.quote__reasons li + li {
  margin-top: 8px;
}

.quote__facts li::marker {
  color: var(--console-ink-3);
}

/* --- The step that arrives ------------------------------------------------- */
@keyframes quote-step {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.quote__step--enter {
  animation: quote-step 180ms var(--ease) both;
}

/* ===== V2 pages B =====
   /faq, /aftercare, /warranty, /materials, /about, /packages and /privacy on
   the section kit. Drawn by site/pages/*.js and by src/seo/pages-b.js, which
   write the same classes; tokens only. ===================================== */

/* --- The head of every lean page, and what follows it ------------------------ */
.page-head--v2 {
  padding-top: var(--sp-7);
  padding-bottom: var(--sp-4);
}

.page-head--v2 .display--1 {
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

.page-head--v2 .page-head__deck {
  max-width: 48ch;
  margin-top: var(--sp-4);
  font-size: var(--fs-lead);
  line-height: var(--lh-base);
  color: var(--ink-2);
}

/* The first section is tied to its head, not a full rhythm away from it. */
.page-head--v2 + .section {
  padding-top: var(--sp-6);
}

/* An anchor (/faq#slug, /visit#story, /services#materials, /privacy#cookies)
   lands below the masthead. */
.section :is(h2, h3, details)[id],
.section[id],
.packages__family[id] {
  scroll-margin-top: calc(var(--header-h) + var(--sp-4));
}

/* The reading text of every written block on these pages. */
.faq__a,
.aftercare__body,
.warranty__section :is(p, li),
.warranty__record,
.about__written :is(p, li),
.about__story .about__copy :is(p, li),
.privacy__section p,
.privacy__contact {
  max-width: 60ch;
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  color: var(--ink-2);
  text-wrap: pretty;
}

/* A heading inside a written block: the display face at the third size. */
.warranty__section h2,
.warranty__group-title,
.privacy__section h2,
.about__company,
.packages__facts-title {
  margin: 0 0 var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  text-wrap: balance;
}

/* --- /faq ------------------------------------------------------------------- */
.faq__search {
  padding-bottom: 0;
}

.faq__chips {
  padding-top: var(--sp-4);
}

.faq__results {
  margin-top: var(--sp-5);
}

.faq__results:empty {
  margin-top: 0;
}

.faq__stack {
  --gap: var(--sp-3);
}

.faq__result-cat {
  margin-bottom: var(--sp-2);
}

.faq__result-q {
  margin-bottom: var(--sp-2);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-base);
}

.faq__result-a {
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  color: var(--ink-2);
}

.faq__miss {
  display: grid;
  gap: var(--sp-4);
  justify-items: center;
  text-align: center;
}

.faq__cat + .faq__cat {
  margin-top: var(--sp-7);
}

.faq__cat-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-strong);
}

.faq__cat-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

.faq__cat-meta {
  flex: none;
  font-size: var(--fs-sm);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* The second and later groups of a category that runs past seven. */
.faq__sub {
  margin: var(--sp-5) 0 0;
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--ink-2);
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 44px;
  padding: var(--sp-4) 0;
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: var(--lh-base);
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__plus {
  flex: none;
  color: var(--ink-2);
  transition: transform var(--t-fast) var(--ease);
}

.faq__item[open] .faq__plus {
  transform: rotate(45deg);
  color: var(--ink);
}

.faq__a {
  margin: 0;
  padding-bottom: var(--sp-5);
}

/* --- /aftercare ------------------------------------------------------------- */
.aftercare__list {
  border-top: 1px solid var(--border);
}

.aftercare__item {
  display: flex;
  gap: var(--sp-5);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--border);
}

.aftercare__n {
  flex: none;
  min-width: 2ch;
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: var(--fs-h3);
  line-height: var(--lh-tight);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.aftercare__title {
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-lead);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-base);
  color: var(--ink);
}

.aftercare__body {
  margin: 0;
}

.aftercare__wash,
.aftercare__more {
  margin-top: var(--sp-7);
}

/* --- /warranty -------------------------------------------------------------- */
.warranty__group + .warranty__group,
.warranty__group + .warranty__section,
.warranty__section + .warranty__section,
.warranty__section + .warranty__record {
  margin-top: var(--sp-7);
}

.warranty__group .fine-print {
  max-width: 60ch;
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.warranty__section :is(p, ul, ol) {
  margin: 0 0 var(--sp-3);
}

.warranty__section :is(ul, ol) {
  padding-left: var(--sp-5);
}

.warranty__links,
.about__more {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  margin: var(--sp-5) 0 0;
}

/* A spec list inside a card: the card's own edge is its top rule. */
.warranty__group .card > .specs,
.spec-card > .specs,
.about__side .card > .specs {
  border-top: 0;
}

/* --- /materials ------------------------------------------------------------- */
.materials__group + .materials__group {
  margin-top: var(--sp-7);
}

.materials__group-title {
  margin: 0 0 var(--sp-4);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

.materials__sub {
  margin: var(--sp-5) 0 var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--ink-2);
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* The edge's brands are links to the brand's own page; the browser's are buttons. */
.brand-row a {
  text-decoration: none;
}

.brand-roles {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.brand-roles strong {
  color: var(--ink);
}

.spec-grid {
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 760px) {
  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.spec-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.spec-card__series {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  font-weight: var(--fw-display);
}

.spec-card__type {
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

/* --- /about ----------------------------------------------------------------- */
.about__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-7);
}

@media (min-width: 900px) {
  .about__photos {
    max-width: 44rem;
    gap: var(--sp-5);
  }
}

.about__media {
  border-radius: var(--r-md);
  overflow: hidden;
}

.about__grid {
  display: grid;
  gap: var(--sp-7);
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--sp-9);
    align-items: start;
  }
}

.about__copy :is(h2, h3) {
  margin: 0 0 var(--sp-4);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

.about__written {
  margin-bottom: var(--sp-7);
}

.about__written :is(p, ul, ol) {
  margin: 0 0 var(--sp-3);
}

.about__list {
  display: block;
}

.about__side {
  display: grid;
  gap: var(--sp-5);
}

.about__story-figure {
  margin: 0;
}

.about__story-figure figcaption {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

/* --- /packages -------------------------------------------------------------- */
.packages__pick {
  margin-bottom: var(--sp-6);
}

.packages__pick-title {
  margin: var(--sp-2) 0 0;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-display);
  line-height: var(--lh-tight);
}

.packages__pick-body {
  max-width: 60ch;
  margin-top: var(--sp-3);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--ink-2);
}

.packages__sizes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-7);
}

.packages__sizes-label {
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.packages__sizes .chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.packages__family + .packages__family {
  margin-top: var(--sp-8);
}

.packages__family .section-head {
  margin-bottom: var(--sp-5);
}

.packages__grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.package {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.package__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  font-weight: var(--fw-display);
  line-height: var(--lh-tight);
  color: var(--ink);
}

.package__coverage {
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  color: var(--ink-2);
}

.package__facts {
  flex: 1;
  margin: var(--sp-3) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  color: var(--ink-2);
}

.package__facts li + li {
  margin-top: var(--sp-2);
}

.package__facts li::before {
  content: "— ";
  color: var(--ink-3);
}

.package__price {
  margin: var(--sp-4) 0 0;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  font-size: var(--fs-body);
  color: var(--ink-2);
}

.package__price strong {
  font-size: var(--fs-lead);
  font-weight: var(--fw-medium);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.package__film,
.package__size {
  font-size: var(--fs-sm);
}

.package__choose {
  align-self: flex-start;
  margin-top: var(--sp-4);
}

.packages__facts {
  max-width: var(--maxw-prose);
  margin-top: var(--sp-8);
}

.packages__fact-list {
  display: grid;
  gap: var(--sp-3);
  padding: 0;
  list-style: none;
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--ink-2);
}

/* --- /privacy --------------------------------------------------------------- */
.privacy__section + .privacy__section {
  margin-top: var(--sp-6);
}

.privacy__section p {
  margin: 0 0 var(--sp-3);
}

.privacy__section p.privacy__muted {
  color: var(--ink-3);
}

.privacy__contact {
  margin: var(--sp-6) 0 0;
}

/* ===== end V2 pages B ===== */

/* ===== V2 pages A =====
   /services, /services/<pillar>, /work, /work/<slug>, /studio and /visit on
   the section kit. Role tokens only. The pages are drawn twice, by
   site/pages/*.js and by src/seo/pages.js, with the same classes, so every
   selector here styles both.
   ========================================================================== */

/* --- Blocks -----------------------------------------------------------------
   Sections space themselves from above only, so two in a row are 64px apart
   (96px from a tablet) rather than 128px. */
.block,
.services-group,
.work-index,
.case-gallery,
.case-story,
.case__next,
.visit {
  padding-block: var(--sp-8) 0;
}

.visit {
  padding-bottom: var(--sp-8);
}

@media (min-width: 768px) {
  .block,
  .services-group,
  .work-index,
  .case-gallery,
  .case-story,
  .case__next,
  .visit {
    padding-top: var(--sp-9);
  }

  .visit {
    padding-bottom: var(--sp-9);
  }
}

/* The page head is followed by a photograph or the first section, and the
   head's own bottom padding is the gap between them. */
.work-index,
.visit {
  padding-top: var(--sp-5);
}

@media (min-width: 768px) {
  .work-index,
  .visit {
    padding-top: var(--sp-6);
  }
}

/* The closing band follows the last section with room above its rule. */
:is(.block, .work-index, .case-gallery, .case-story, .case__next, .visit) + .cta-band--v2 {
  margin-top: var(--sp-8);
}

@media (min-width: 768px) {
  :is(.block, .work-index, .case-gallery, .case-story, .case__next, .visit) + .cta-band--v2 {
    margin-top: var(--sp-9);
  }
}

.block__text {
  margin: 0;
  max-width: 60ch;
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  color: var(--ink-2);
}

.block__text + .block__text {
  margin-top: var(--sp-4);
}

.block__label {
  margin: var(--sp-5) 0 var(--sp-3);
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-2);
}

.block__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4) var(--sp-5);
  margin-top: var(--sp-6);
}

.block__where {
  margin: var(--sp-6) 0 0;
  max-width: 60ch;
  font-size: var(--fs-sm);
  line-height: var(--lh-loose);
  color: var(--ink-3);
}

/* --- The opening photograph --------------------------------------------------
   Edge to edge: 4:5 on a phone, 16:9 on a desk and no taller than the screen.
   The caption sits on the page's own column. */
.opening {
  margin: 0;
}

.opening image-slot {
  border-radius: 0;
}

@media (min-width: 1024px) {
  .opening image-slot {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 80vh;
  }
}

.opening__caption {
  padding-block: var(--sp-3) 0;
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  color: var(--ink-3);
}

/* --- Tags: what a service covers, the packages it sells -------------------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag {
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  color: var(--ink);
}

/* --- The two or three signatures under "The work" --------------------------- */
.signatures {
  display: grid;
  gap: var(--sp-5);
  margin: var(--sp-6) 0 0;
  padding: 0;
  list-style: none;
}

.signature {
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.signature__kicker {
  margin: 0;
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-2);
}

.signature__title {
  margin: var(--sp-2) 0 0;
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  font-weight: var(--fw-display);
  line-height: var(--lh-tight);
}

.signature__text {
  margin: var(--sp-2) 0 0;
  max-width: 60ch;
  font-size: var(--fs-sm);
  line-height: var(--lh-loose);
  color: var(--ink-2);
}

@media (min-width: 768px) {
  .signatures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-6);
  }
}

/* --- Pointers to other pages ------------------------------------------------ */
.pointers {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.pointer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-1) var(--sp-4);
  min-height: 44px;
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

.pointer:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

@media (hover: hover) {
  .pointer:hover .pointer__label {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 6px;
  }
}

.pointer__label {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: var(--fs-lead);
  line-height: var(--lh-tight);
}

.pointer__note {
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

/* --- A few questions --------------------------------------------------------- */
.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 44px;
  padding-block: var(--sp-4);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: var(--lh-base);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item__q::-webkit-details-marker {
  display: none;
}

.faq-item__q::after {
  content: "+";
  flex: none;
  font-size: var(--fs-lead);
  color: var(--ink-2);
}

.faq-item[open] > .faq-item__q::after {
  content: "\2212";
}

.faq-item__q:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.faq-item__a {
  margin: 0 0 var(--sp-5);
  max-width: 60ch;
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  color: var(--ink-2);
}

/* --- /services ---------------------------------------------------------------- */
.tile-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile-grid__item {
  display: flex;
  scroll-margin-top: calc(var(--header-h) + var(--sp-3));
}

.tile-grid__item > .tile {
  flex: 1;
}

/* Each group is four, so a row of three would leave one alone. */
@media (min-width: 1100px) {
  .services-group .tile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* A service the studio has written about in CAA Console: its words and its
   photograph, below the groups. */
.written {
  display: grid;
  gap: var(--sp-5);
  padding-block: var(--sp-6);
  border-top: 1px solid var(--border);
}

.written__title {
  margin: 0 0 var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-display);
  line-height: var(--lh-tight);
}

.written__list {
  margin: var(--sp-3) 0 0;
  padding-left: var(--sp-5);
  list-style: revert;
  color: var(--ink-2);
}

.written__media {
  border-radius: var(--r-md);
  overflow: hidden;
}

@media (min-width: 900px) {
  .written {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--sp-7);
    align-items: start;
  }
}

/* --- /work --------------------------------------------------------------------
   The filters are links now; the pill is the one /work always had. */
.work__filters {
  margin-block: 0;
}

a.segmented__item {
  display: inline-flex;
  align-items: center;
  height: 44px;
  text-decoration: none;
}

.segmented__item[aria-current="true"] {
  background: var(--accent);
  color: var(--on-accent);
}

@media (hover: hover) {
  a.segmented__item:hover {
    background: var(--bg-2);
    color: var(--ink);
  }

  a.segmented__item[aria-current="true"]:hover {
    background: var(--accent-hover);
    color: var(--on-accent);
  }
}

/* --- /work/<slug> ---------------------------------------------------------------- */
.gallery {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  /* Said outright: overflow-x alone makes overflow-y compute to auto, and a
     row that is a scroller both ways with a snap takes an upward swipe that
     starts on it and keeps every touch scroll after it (Chromium on touch;
     tools/qa/site-motion.mjs swipes on the row). Hidden, the swipe is the
     page's. */
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.gallery__frame {
  flex: 0 0 min(78%, 320px);
  scroll-snap-align: start;
  border-radius: var(--r-md);
  overflow: hidden;
}

@media (min-width: 768px) {
  .gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .gallery__frame {
    flex: none;
  }

  .gallery:has(> :only-child) {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }
}

.case-story__title {
  margin: var(--sp-6) 0 var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-display);
  line-height: var(--lh-tight);
}

.case-story__title:first-child {
  margin-top: 0;
}

/* --- /studio ---------------------------------------------------------------------
   The four things the bay offers, two by two. */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5) var(--sp-4);
  margin: 0;
}

.feature {
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.feature__k {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: var(--fs-lead);
  line-height: var(--lh-tight);
  color: var(--ink);
}

.feature__v {
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-sm);
  line-height: var(--lh-loose);
  color: var(--ink-2);
}

@media (min-width: 768px) {
  .features {
    gap: var(--sp-6) var(--sp-7);
  }
}

/* --- /visit --------------------------------------------------------------------- */
.visit__info {
  gap: var(--sp-6);
}

.visit__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Google Maps leads, across the whole row; Waze and Apple Maps share the next. */
.visit__links > li:first-child {
  grid-column: 1 / -1;
}

.visit__reach {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin: 0;
}

.visit__reach .textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.visit__section {
  display: grid;
  gap: var(--sp-4);
}

.visit__heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

.visit__text {
  margin: 0;
  max-width: 60ch;
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  color: var(--ink-2);
}

/* ===== end V2 pages A ===== */

/* ===== V2 home =====
   What the home page adds to the kit: its opening, the full-bleed close-up and
   the captions under both. The sections between them (steps, tiles, work,
   trust, call to action) are the kit's own. Tokens only, no motion of its own:
   the close-up rises through data-reveal like every other block. The markup is
   public/assets/js/site/pages/home.js and, as a string, homeSections() in
   src/seo/body.js. */

/* ===== end V2 home ===== */

/* ===== V2 sound =====
   The masthead's Sound toggle and its one-time note (site/sound.js). The button
   is in index.html; its state is data-state: off, waiting (on, but the browser
   wants a tap before it will play) or playing. */
.masthead__sound-wrap {
  position: relative;
  display: inline-flex;
}

.btn.btn--icon.masthead__sound {
  border-color: var(--border-input);
  border-radius: var(--r-md);
  color: var(--ink-2);
}

.btn.btn--icon.masthead__sound[aria-pressed="true"] {
  border-color: var(--ink-3);
  color: var(--ink);
}

/* No script: present so the bar keeps its width, but plainly not available. */
.btn.btn--icon.masthead__sound:disabled {
  opacity: 0.5;
  cursor: default;
}

.masthead__sound svg {
  display: block;
  flex: none;
  overflow: visible;
}

/* The button is 40 px; a finger needs 44. The extra two pixels a side are a
   pseudo-element, so the bar's layout does not move. */
.masthead__sound {
  position: relative;
}

.masthead__sound::after {
  content: "";
  position: absolute;
  inset: calc((44px - 40px) / -2);
}

/* Off shows the cross; on shows the two waves, steady while it waits for a
   tap and breathing while it plays. */
.masthead__sound[data-state="off"] .masthead__sound-wave,
.masthead__sound:not([data-state="off"]) .masthead__sound-off {
  display: none;
}

.masthead__sound[data-state="waiting"] .masthead__sound-wave {
  opacity: 0.55;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .masthead__sound[data-state="playing"] .masthead__sound-wave {
    animation: sound-wave var(--t-breathe) var(--ease-in-out) infinite;
  }

  .masthead__sound[data-state="playing"] .masthead__sound-wave--far {
    animation-delay: calc(var(--t-breathe) / 6);
  }
}

@keyframes sound-wave {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

/* A 360 px phone has no room for logo, call to action, WhatsApp, Sound and
   Menu in one bar (it measured 387 px wide). WhatsApp is the one that steps
   aside, because it is also in the menu's foot, the hero and the footer, and
   Sound is in no other place. */
@media (max-width: 479px) {
  .masthead__wa {
    display: none;
  }
}

/* "Press to resume" hangs under the toggle instead of sitting in the bar, which
   on a phone has no room for it, so it moves nothing when it comes or goes. */
.masthead__sound-note {
  position: absolute;
  top: calc(100% + var(--sp-2));
  right: 0;
  z-index: 1;
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--bg-3);
  box-shadow: var(--shadow-pop);
  color: var(--ink);
  font-size: var(--fs-sm);
  white-space: nowrap;
}

.masthead__sound-note[hidden] {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .masthead__sound-note:not([hidden]),
  .sound-invite:not([hidden]) {
    animation: sound-hint var(--t-slow) var(--ease) backwards;
  }
}

@keyframes sound-hint {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* The invitation to hear the site (site/sound-invite.js): the consent
   banner's card, in the same corner and above the Ask Des launcher, one at a
   time with it. A bottom sheet's width on a phone, a small card from 720 px. */
.sound-invite {
  position: fixed;
  left: var(--sp-3);
  right: var(--sp-3);
  bottom: calc(var(--bar-inset, 0px) + var(--sp-7) + var(--sp-5));
  z-index: 89;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  border-top-color: var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-float);
  color: var(--ink);
}

.sound-invite[hidden] {
  display: none;
}

body:has(.estimate) .sound-invite {
  bottom: calc(var(--bar-inset, 0px) + var(--sp-7) + var(--sp-5) + var(--sp-4));
}

@media (min-width: 720px) {
  .sound-invite {
    left: auto;
    right: var(--sp-5);
    width: min(360px, calc(100vw - 2 * var(--sp-5)));
    padding: var(--sp-5);
  }
}

.sound-invite__title {
  margin: 0 0 var(--sp-1);
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  font-weight: var(--fw-display);
  line-height: var(--lh-tight);
}

.sound-invite__text {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
}

.sound-invite__actions {
  display: flex;
  gap: var(--sp-3);
}
/* ===== end V2 sound ===== */
/* ===== V2 motion: scenes =====
   The scene tier of "Motion" above: the intro, the scroll hairline, the
   masthead on scroll, the hero's scrub, the curtains, the word-by-word
   statement, parallax, the service scenes, the closing scene, the footer's
   lift and the menu's choreography. site/motion.js does the little that
   needs a script; the rest is the browser's own scroll timelines, which cost
   the main thread nothing.

   Where it runs: the scroll-driven parts only where the browser has
   `animation-timeline` (@supports; without it the reveals carry the page),
   and the pins, curtains and parallax on a desk with a mouse (1024px and a
   fine pointer) and on every screen under 1024px. A phone keeps the
   browser's own scrolling — a pin there is `position: sticky`, never a
   script — and its photographs come forward by no more than 1.04. The
   footer's lift is a desk's only: a phone's footer is taller than its
   screen. Reduced motion is a still site: none of it. Every scene is
   complete in the edge's HTML; this only moves it. */

/* --- The scroll hairline ----------------------------------------------------- */
.scroll-progress {
  display: none;
}

@keyframes scene-progress {
  to {
    transform: scaleX(1);
  }
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-progress {
      display: block;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 60;
      height: 1px;
      background: var(--accent);
      transform: scaleX(0);
      transform-origin: 0 50%;
      pointer-events: none;
      animation: scene-progress linear both;
      animation-timeline: scroll(root);
    }
  }
}

html.is-intro .scroll-progress {
  visibility: hidden;
}

/* --- Grounds ----------------------------------------------------------------- */
.statement {
  background: var(--grain), var(--console-bg);
}

/* --- The word brighten --------------------------------------------------------
   The statement's words come up from dim to full as their line rises from
   the foot of the screen to its middle: each word's own view timeline, so a
   line brightens together and the lines one after another. Opacity, so it is
   the compositor's work. With no scroll timeline, or less motion, the words
   are simply full. */
/* From 0.6, about --ink-3 on the ground: dim, never under 3:1 for type this size. */
@keyframes scene-word {
  from {
    opacity: 0.6;
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .statement__text .word {
      animation: scene-word linear both;
      animation-timeline: view();
      animation-range: entry 100% cover 50%;
    }
  }
}

/* --- Photographs that are scenes --------------------------------------------
   Edge to edge behind words: the pillar pages' opening, the home page's
   services and its closing call to action. The photograph sits
   behind a wash of the page's own black at 62 %, which holds the words on it
   to AA whatever the photograph; the frame's size is the section's, never the
   photograph's, so nothing moves when it arrives. */
.scene,
.cta-band--scene {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.scene__media,
.cta-band__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
}

.scene__media image-slot,
.cta-band__media image-slot {
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}

.scene__media::after,
.cta-band__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-0);
  opacity: 0.62;
  pointer-events: none;
}

/* A pillar page's opening. */
.scene--service {
  display: grid;
  align-items: end;
  min-height: calc(100svh - var(--header-h) - var(--sp-9));
}

.scene__body {
  display: grid;
  justify-items: start;
  gap: var(--sp-4);
  padding-block: var(--sp-9) var(--sp-8);
}

.scene__body .eyebrow {
  margin: 0;
}

.scene__title {
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}

.scene__deck {
  margin: 0;
  max-width: 48ch;
  color: var(--ink);
}

.scene__actions {
  margin-top: var(--sp-2);
}

.scene__caption {
  position: absolute;
  right: var(--pad);
  bottom: var(--sp-3);
  z-index: 1;
  max-width: 40ch;
  font-size: var(--fs-xs);
  line-height: var(--lh-base);
  color: var(--ink);
  text-align: right;
}

@media (min-width: 1024px) {
  .scene--service {
    min-height: calc(100svh - var(--header-h));
  }
}

/* The closing call to action, on the night forecourt. */
.cta-band--scene {
  display: grid;
  align-items: center;
  min-height: 80svh;
  border-top: 0;
}

.cta-band--scene .cta-band__lead {
  color: var(--ink);
}

/* The home page's services, as scenes at every width: each service edge to
   edge, the photograph behind its name, its line and its link under the
   page's black wash. Under 1024px one column, each card 56 % of the screen
   high; from 1024px two rows of three, each 70 % of the screen high. With
   motion welcome each card (a desk's row) holds at the top while the next
   slides over it (the pins below). The markup is the tile grid's, unchanged:
   the same six nodes the edge sends, restyled. */
.tile-grid--scenes {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  /* A pinned card never paints outside its own grid. Clipped, so a card's
     focus ring is drawn inside it. */
  overflow: clip;
}

#services {
  overflow-x: clip;
}

.tile-grid--scenes > .tile:focus-within {
  box-shadow: inset 0 0 0 2px var(--bg-0), inset 0 0 0 4px var(--focus);
}

.tile-grid--scenes > .tile {
  display: grid;
  align-content: end;
  min-height: 56svh;
  isolation: isolate;
  overflow: clip;
  border: 0;
  border-radius: 0;
  background: var(--bg-0);
}

.tile-grid--scenes .tile__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.tile-grid--scenes .tile__media image-slot {
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}

.tile-grid--scenes .tile__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-0);
  opacity: 0.62;
  pointer-events: none;
}

.tile-grid--scenes .tile__body {
  padding: var(--sp-8) var(--pad) var(--sp-7);
  gap: var(--sp-3);
}

/* A step under the section's own heading, never level with it. */
.tile-grid--scenes .tile__title {
  max-width: 14ch;
  font-size: var(--fs-h3);
}

.tile-grid--scenes .tile__text {
  max-width: 36ch;
  color: var(--ink);
}

.tile-grid--scenes .tile:hover .image-slot__img {
  transform: none;
}

@media (min-width: 1024px) {
  .tile-grid--scenes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tile-grid--scenes > .tile {
    min-height: 52svh;
  }

  .tile-grid--scenes .tile__title {
    font-size: clamp(1.5rem, 2.2vw, 2rem);
  }
}

/* --- Pins, curtains, parallax, the footer's lift -----------------------------
   Motion welcome, and either a desk with a mouse (1024px and a fine pointer)
   or a screen under 1024px — a phone, a tablet upright, a narrow window. A
   tablet on its side (1024px or more with a finger) keeps the desk's layout
   unpinned, as before. A phone keeps the browser's own scrolling (no Lenis on
   touch, site/scroll.js): a pin is `position: sticky`, which the browser
   holds in place itself, and every scrub is a scroll timeline, which runs on
   the compositor. Nothing here changes a box the layout notices once the page
   is drawn, so nothing shifts. */
@keyframes scene-hero-words {
  to {
    opacity: 0;
    translate: 0 -6%;
  }
}

/* A phone's photograph is the width of the screen: it comes forward by
   less, or it reads as a zoom (tools/a11y.test.mjs holds touch to 1.04). */
@keyframes scene-dim {
  to {
    opacity: 0.45;
  }
}

@keyframes scene-dim-touch {
  to {
    opacity: 0.35;
  }
}

@keyframes scene-parallax {
  from {
    translate: 0 -5%;
  }

  to {
    translate: 0 5%;
  }
}

@keyframes scene-parallax-touch {
  from {
    translate: 0 -4%;
  }

  to {
    translate: 0 4%;
  }
}

/* A phone's opening: the photograph and what is under it come up into the
   room the fading words leave, by the words' height (--lift-h). */
/* A card's words, rising into place as the card reaches the top; its link
   only fades, because a translate would make the link the box its
   stretched ::after fills, and the card would stop being the link. */
@keyframes scene-rise {
  from {
    opacity: 0;
    translate: 0 40px;
  }
}

@keyframes scene-fade {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @media (min-width: 1024px) and (hover: hover) and (pointer: fine), (max-width: 1023.98px) {
    /* The curtains. The statement stands still at the top of the screen and
       what follows slides over it; on the home page the opening does the
       same, after a stretch of its own scrub. Later sections are opaque and
       stacked above earlier ones, so each covers the one before. The
       statement and the service cards hold only on a screen at least 500px
       tall: on a phone on its side either is taller than the screen, and
       what follows would cover its foot before it was ever seen. */
    @media (min-height: 500px) {
      .statement {
        position: sticky;
        top: 0;
        z-index: 1;
        display: grid;
        align-content: center;
        min-height: 100svh;
      }

      .statement ~ * {
        position: relative;
        z-index: 2;
        background-color: var(--console-bg);
      }

      /* The services: each card holds at the top and the next slides over it
         (a desk's row of three stick together). Opaque, and later cards
         paint over earlier ones in the page's order. */
      .tile-grid--scenes > .tile {
        position: sticky;
        top: 0;
      }
    }

    .home-hero ~ * {
      position: relative;
      z-index: 1;
      background-color: var(--console-bg);
    }

  }
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  /* Parallax: the photograph drifts inside its frame as the frame crosses
     the screen, never more than 5 % either way of a picture drawn 12 % taller
     than the frame, so no edge ever shows. */
  @supports (animation-timeline: view()) {
    .opening image-slot,
    .scene__media image-slot,
    .cta-band__media image-slot {
      view-timeline: --frame block;
    }

    .opening .image-slot__img,
    .scene__media .image-slot__img,
    .cta-band__media .image-slot__img {
      position: absolute;
      top: -6%;
      left: 0;
      height: 112%;
      animation: scene-parallax linear both;
      animation-timeline: --frame;
      animation-range: cover;
    }

  }
}

/* Under 1024px. A phone's home opening is the words above the photograph,
   taller than the screen (about 1,180px at 390 wide). It holds at the top
   once the reader scrolls, and as the words fade the photograph, its caption
   and where the studio is rise into their place, by the words' height
   (--lift-h) and at the scroll's own pace — so the photograph travels as if
   the page were scrolling, stops under the top of the screen, and the
   close-up arrives beneath it with no empty ground between, then slides over
   it. What is held is the opening less its words: `top` is the screen less
   that, never more than 0 (an opening still taller than the screen holds by
   its foot, as does every opening where the browser has no scroll
   timelines). site/motion.js measures --pin-h, --lift-h and where the
   opening starts (--pin-at) once a page and on a resize, never on scroll;
   until it has, the fallback is far above the screen, which is no pin. A
   pillar page's opening scene, a screen high, holds at the top for 30 % of a
   screen before what follows covers it. */
@media (max-width: 1023.98px) and (prefers-reduced-motion: no-preference) {
  .scene--service {
    position: sticky;
    top: min(0px, calc(100svh - var(--pin-h, 1000svh)));
    z-index: 0;
  }

  /* The pillar's scene is a screen high by design, so it holds at the top
     before it is measured too — and a page without its script has no empty
     stretch under it for the hold. */
  .scene--service {
    top: min(0px, calc(100svh - var(--pin-h, 0px)));
  }

  .scene--service + * {
    margin-top: 30svh;
  }

  .scene--service ~ * {
    position: relative;
    z-index: 1;
    background-color: var(--console-bg);
  }

  .scene--service:focus-within .scene__body {
    animation: none;
  }

  /* A card with focus has its words, whatever the scroll. */
  .tile-grid--scenes > .tile:focus-within .tile__body > * {
    animation: none;
  }

  @supports (animation-timeline: view()) {
    /* Parallax, by less than a desk's: 4 % either way of a picture drawn
       10 % taller than its frame. A translate, the compositor's work. */
    .opening image-slot,
    .scene__media image-slot,
    .cta-band__media image-slot,
    .tile-grid--scenes .tile__media image-slot {
      view-timeline: --frame block;
    }

    .opening .image-slot__img,
    .scene__media .image-slot__img,
    .cta-band__media .image-slot__img,
    .tile-grid--scenes > .tile[data-reveal] .image-slot__img {
      position: absolute;
      top: -5%;
      left: 0;
      height: 110%;
      animation: scene-parallax-touch linear both;
      animation-timeline: --frame;
      animation-range: cover;
    }

    /* The opening's scrub. The words drift up and fade as the reader leaves
       them (on the home page they are scrolling off the top as they go; a
       pillar page's, held in place, are given longer); the photograph comes
       forward a little and darkens from the first scroll until what follows
       has covered it. */
    .scene--service .scene__body {
      animation: scene-hero-words linear both;
      animation-timeline: scroll(root);
      animation-range: 0 70svh;
    }

    .scene--service .scene__media image-slot::after {
      content: "";
      position: absolute;
      inset: 0;
      background: var(--bg-0);
      opacity: 0;
      pointer-events: none;
      animation: scene-dim-touch linear both;
      animation-timeline: scroll(root);
      animation-range: 0 calc(var(--pin-h, 100svh) + 30svh);
    }

    /* The services: each card's words rise as it comes up to the top. The
       card is drawn at once (its scroll reveal would only hide it until a
       script ran), and the words carry the arrival instead. Without scroll
       timelines the reveal stays (site.css "Motion"). */
    .tile-grid--scenes > .tile {
      view-timeline: --card block;
    }

    .tile-grid--scenes > .tile[data-reveal] {
      opacity: 1;
      animation: none;
    }

    .tile-grid--scenes > .tile .tile__body > :not(.tile__cta) {
      animation: scene-rise linear both;
      animation-timeline: --card;
      animation-range: entry 55% entry 100%;
    }

    .tile-grid--scenes > .tile .tile__text {
      animation-range: entry 62% entry 100%;
    }

    .tile-grid--scenes > .tile .tile__cta {
      animation: scene-fade linear both;
      animation-timeline: --card;
      animation-range: entry 70% entry 100%;
    }
  }
}

/* The footer's lift: the page slides up off a footer that waits behind it
   (site/motion.js sets .has-lift where it fits: a desk, a mouse, a footer no
   taller than most of the screen). Sticky keeps the footer's place in the
   flow, so nothing shifts when the class arrives. */
html.has-lift #app {
  position: relative;
  z-index: 1;
  background-color: var(--console-bg);
}

html.has-lift body > .footer {
  position: sticky;
  bottom: 0;
  z-index: 0;
}

/* --- The menu's choreography ------------------------------------------------
   Opening: the scrim fades, the panel comes up over a blur of the page on a
   grained ground washed with the accent, and the places rise one after
   another. Closing (site/menu.js holds the dialog open for it): the whole
   panel fades in 220 ms. The blur is the one place the site uses one: the
   menu is a sheet over the page, and the blur is what says so. */
@keyframes menu-in {
  from {
    opacity: 0;
  }
}

@keyframes menu-rise {
  from {
    opacity: 0;
    translate: 0 24px;
  }
}

@keyframes menu-out {
  to {
    opacity: 0;
  }
}

.site-menu {
  background: var(--grain), color-mix(in srgb, var(--bg-0) 86%, transparent);
}

.site-menu[open] {
  backdrop-filter: blur(12px);
  animation: menu-in var(--t-panel) var(--ease-quart) both;
}

.site-menu::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--accent-tint);
  pointer-events: none;
}

.site-menu[open]::backdrop {
  animation: menu-in var(--motion) linear both;
}

.site-menu[open] .site-menu__primary > li {
  animation: menu-rise var(--t-reveal) var(--ease-expo) both;
  animation-delay: calc(var(--motion-fast) + var(--i, 0) * var(--stagger-menu));
}

.site-menu[open] .site-menu__secondary,
.site-menu[open] .site-menu__foot,
.site-menu[open] .site-menu__credit {
  animation: menu-in var(--motion) var(--ease-expo) both;
  animation-delay: calc(var(--motion-fast) + 5 * var(--stagger-menu));
}

.site-menu.is-closing,
.site-menu.is-closing::backdrop {
  animation: menu-out var(--t-close) var(--ease-quart) forwards;
}
/* ===== end V2 motion: scenes ===== */

/* --- The landing screen -------------------------------------------------------
   site/gate.js, on a first landing on the home page. html.is-gate is set before
   the first paint, so the page never shows and then goes black; the ::before is
   what holds it black until the screen has mounted. If the script never arrives
   it lifts by itself and the page is simply there. */
@keyframes hero-gate-lift {
  to {
    opacity: 0;
  }
}

@keyframes hero-gate-rise {
  from {
    opacity: 0;
    translate: 0 12px;
  }
}

html.is-gate::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  pointer-events: none;
  animation: hero-gate-lift var(--motion) linear 5s both;
}

html.is-gate-open {
  overflow: hidden;
}

.gate {
  position: fixed;
  inset: 0;
  display: none;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: var(--sp-6) var(--pad);
  border: 0;
  color: var(--ink);
  background: #000;
  transition: opacity var(--motion) var(--ease-quart);
}

.gate[open] {
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  text-align: center;
}

.gate::backdrop {
  background: #000;
  transition: opacity var(--motion) var(--ease-quart);
}

.gate--leaving,
.gate--leaving::backdrop {
  opacity: 0;
}

.gate__logo {
  width: auto;
  height: 20px;
  animation: hero-gate-rise var(--t-scene) var(--ease-expo) both;
}

.gate__middle {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: var(--sp-5);
  max-width: 32rem;
}

.gate__line {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: var(--fw-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  animation: hero-gate-rise var(--t-scene) var(--ease-expo) 200ms both;
}

.gate__text {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  color: var(--ink-3);
  text-wrap: pretty;
  animation: hero-gate-rise var(--t-scene) var(--ease-expo) 400ms both;
}

.gate__foot {
  display: grid;
  justify-items: center;
  gap: var(--sp-3);
  animation: hero-gate-rise var(--t-scene) var(--ease-expo) 600ms both;
}

.gate__answers {
  display: flex;
  gap: var(--sp-7);
}

/* Words, not buttons, and the same two words in every way. */
.gate__answer {
  min-width: 6rem;
  min-height: 44px;
  padding: 0 var(--sp-1);
  border: 0;
  border-bottom: 1px solid var(--ink-3);
  background: none;
  color: inherit;
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: 1.125rem;
  cursor: pointer;
}

.gate__answer:hover {
  border-bottom-color: var(--ink);
}

.gate__small {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.gate__sound {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  cursor: pointer;
}

.gate__check {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.gate__choose {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* --- The opening --------------------------------------------------------------
   One shot, on the home page's first screen and the scrolling that follows it.
   The bar goes clear over it. With less motion, or no scroll timelines, it is
   simply two screens: the cars with their line, then the hook on black.

   Where a tall window would crop the three cars down to one (a phone), the picture
   keeps its own shape and stands on the foot of the screen. */
.home-hero {
  position: relative;
  margin-top: calc((var(--header-h) + 1px) * -1);
  background: #040404;
}

.home-hero__grid {
  position: relative;
  display: grid;
  grid-template-rows: 100svh auto;
  width: 100%;
  max-width: none;
  padding: 0;
}

.home-hero__text,
.home-hero__media {
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 0;
}

.home-hero__text {
  position: relative;
  z-index: 3;
  pointer-events: none;
}

.home-hero__media {
  position: relative;
  margin: 0;
  overflow: clip;
}

.home-hero__media > image-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  background: #040404;
  transform-origin: 50% 66%;
}

/* A phone is too narrow for three cars: the Bolide whole, and part of the car on each
   side of it, so the picture is twice the screen and the screen holds its middle. */
@media (max-aspect-ratio: 1 / 1) {
  .home-hero__media > image-slot {
    inset: auto -50vw 20svh;
    width: 200vw;
    height: auto;
    aspect-ratio: 16 / 9;
    /* Not a box on a black page: the floor and the wall fade into it. */
    mask-image: linear-gradient(transparent, #000 16%, #000 80%, transparent);
  }
}

/* The room and each car, cut apart, moved whole with the pointer (site/car-layers.js).
   The curtains that open the film stay above it, on z-index 1. */
.car-layers {
  position: absolute;
  inset: 0;
  overflow: clip;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease-out;
}

.car-layers.is-on {
  opacity: 1;
}

.car-layers img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: translate;
}

.home-hero__body {
  display: grid;
  justify-items: center;
  padding: calc(var(--header-h) + 5svh) var(--pad) 0;
  text-align: center;
}

/* The search words: read by a crawler and a screen reader, not said over the cars.
   They are said aloud in the close, and the footer. */
.home-hero__body .eyebrow {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.home-hero__title {
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 6.75rem);
  font-weight: var(--fw-display);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}

.home-hero__title .word {
  display: inline-block;
}

/* The studio's line, under the cars (HOME_STORY.tagline; drawn only when
   there is one). It stands in the foot of the cell, above the grey line the
   scroll cue draws, and on a phone sits in the floor the picture fades into. */
.home-hero__tagline {
  position: absolute;
  inset-inline: 0;
  bottom: calc(var(--sp-5) + 44px + var(--sp-4));
  margin: 0;
  padding-inline: var(--pad);
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.2vw, 1.75rem);
  font-weight: var(--fw-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  text-align: center;
  text-wrap: balance;
  color: #fff;
}

/* While the film runs the bar is clear and holds the logo, the one call to action,
   the sound and the menu (site/motion.js sets at-opening). */
html.at-opening .masthead {
  border-color: transparent;
  background: transparent;
}

html.at-opening .masthead__wa,
html.at-opening .support__launcher {
  visibility: hidden;
}

html:has(.home-hero) .scroll-progress {
  top: auto;
  bottom: 0;
}

/* The lights. The picture is painted from the first frame, so it is still the
   page's largest paint: a dark veil lies over it. Black holds; the tube strikes,
   flickers and catches; the veil lifts evenly off all three cars; and only when
   they have had the screen does the line come into focus. Every part ends by
   --t-film (tools/a11y.test.mjs adds them up), and any scroll, tap or key ends the
   lot (site/motion.js). */
@keyframes film-lights {
  0% {
    opacity: 1;
  }

  4% {
    opacity: 0.78;
  }

  6% {
    opacity: 1;
  }

  13% {
    opacity: 0.7;
  }

  16% {
    opacity: 0.97;
  }

  29% {
    opacity: 0.92;
  }

  52% {
    opacity: 0.56;
  }

  76% {
    opacity: 0.14;
  }

  100% {
    opacity: 0;
  }
}

@keyframes film-focus {
  from {
    opacity: 0;
    filter: blur(12px);
    scale: 0.92;
  }
}

html.is-gate .home-hero__media > image-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #020202;
}

html.is-intro:not(.is-gate) .home-hero__media > image-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #020202;
  pointer-events: none;
  animation: film-lights 3000ms linear 1200ms both;
}

html.is-intro:not(.is-gate) .home-hero__title .word {
  animation: film-focus 1300ms var(--ease-expo) 4400ms both;
}

html.is-intro:not(.is-gate) .home-hero__title .word:nth-child(2) {
  animation: film-focus 1300ms var(--ease-expo) 4750ms both;
}

/* The studio's line comes into focus after "Welcome": the last thing the
   intro does, ending inside --t-film. */
html.is-intro:not(.is-gate) .home-hero__tagline {
  animation: film-focus 1300ms var(--ease-expo) 5100ms both;
}

/* The lamp the pointer carries (site/motion.js). */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .home-hero__media.has-lamp::after {
    content: "";
    position: absolute;
    top: -22vw;
    left: -22vw;
    z-index: 1;
    width: 44vw;
    height: 44vw;
    /* The light fades out well inside its square, so no edge can ever show, and with
       no blend the browser has no separate square to composite. */
    background: rgb(255 255 255 / 0.13);
    mask-image: radial-gradient(closest-side, #000, rgb(0 0 0 / 0.3) 52%, transparent 88%);
    translate: var(--lamp-x, 0) var(--lamp-y, 0);
    pointer-events: none;
  }
}

/* The shot. The opening holds while the scroll moves the camera: in on the centre
   car until the other two have left the frame, through its paint into the close-up, down into the
   dark, and the hook is said a word at a time. Then what follows slides over it.
   The opening is always the top of the page, so the page's own scroll is its
   clock: 360svh of it, the height below less the one screen it holds. */
/* A little closer, and no more: the shot leaves by fading, not by flying in. */
@keyframes scene-film-push {
  to {
    transform: scale(1.12);
  }
}

@keyframes scene-film-leave {
  to {
    opacity: 0;
  }
}

@keyframes hero-cue-off {
  to {
    scale: 1 0;
  }
}

@keyframes hero-cue {
  0% {
    opacity: 0;
    translate: 0 0;
  }

  25% {
    opacity: 1;
  }

  75% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    translate: 0 26px;
  }
}

@keyframes scene-film-out {
  to {
    opacity: 0;
    translate: 0 -40px;
  }
}

@media (prefers-reduced-motion: no-preference) and (min-height: 500px) {
  @supports (animation-timeline: view()) {
    /* The cars hold for a little over half a screen, then rise away with the page
       right under them, dissolving into its own colour as they go. There is never a
       moment with nothing on the screen. */
    .home-hero {
      height: 160svh;
      background: var(--console-bg);
    }

    .home-hero__grid {
      position: sticky;
      top: 0;
      height: 100svh;
      overflow: clip;
      grid-template-rows: 100svh;
    }

    .home-hero__media > image-slot {
      animation: scene-film-push linear both;
      animation-timeline: scroll(root);
      animation-range: 0svh 160svh;
    }

    .home-hero__media {
      /* Its own dark, so the page's colour only shows as the shot fades. */
      background: #040404;
      animation: scene-film-leave linear both;
      animation-timeline: scroll(root);
      animation-range: 30svh 130svh;
    }

    .home-hero__body,
    .home-hero__tagline {
      animation: scene-film-out linear both;
      animation-timeline: scroll(root);
      animation-range: 0svh 21.6svh;
    }

    /* The one mark that says there is more: a grey line under the Bolide with a
       light running down it, the way to go. It goes as soon as the reader does. */
    .home-hero__text::after {
      content: "";
      position: absolute;
      bottom: var(--sp-5);
      left: 50%;
      width: 1px;
      height: 44px;
      background: rgb(255 255 255 / 0.28);
      animation: scene-film-out linear both;
      animation-timeline: scroll(root);
      animation-range: 0svh 10.8svh;
    }

    .home-hero__text::before {
      content: "";
      position: absolute;
      bottom: calc(var(--sp-5) + 26px);
      left: 50%;
      width: 1px;
      height: 18px;
      background: #fff;
      /* Gone with the line, once the reader has moved. */
      animation:
        hero-cue 1600ms var(--ease-quart) infinite,
        hero-cue-off linear both;
      animation-timeline: auto, scroll(root);
      animation-range: normal, 0svh 10.8svh;
    }
  }
}

/* A point coming on out of the dark, used by What you can expect below. */
@keyframes scene-lit {
  from {
    opacity: 0.14;
  }
}

/* --- What you can expect: one point at a time -------------------------------
   The same device as the tagline above: the section holds the screen while the
   reader scrolls, and each point comes on in turn out of the dark and stays on.
   Only opacity moves. The heading stays; the list's box is the points', and the
   empty block after it is the length of the hold. Without scroll timelines, or
   with less motion, it is the plain list above. */
@media (prefers-reduced-motion: no-preference) and (min-height: 500px) {
  @supports (animation-timeline: view()) {
    .expect {
      position: relative;
      view-timeline: --expect block;
    }

    .expect::after {
      content: "";
      display: block;
      height: 120svh;
    }

    .expect > .wrap {
      position: sticky;
      top: calc(var(--header-h) + var(--sp-4));
      padding-block: var(--sp-4);
    }

    @media (min-width: 1024px) {
      .expect > .wrap {
        top: calc(var(--header-h) + var(--sp-6));
      }
    }

    .expect__point {
      animation: scene-lit linear both;
      animation-timeline: --expect;
    }

    .expect__point:nth-child(1) {
      animation-range: contain 4% contain 20%;
    }

    .expect__point:nth-child(2) {
      animation-range: contain 20% contain 36%;
    }

    .expect__point:nth-child(3) {
      animation-range: contain 36% contain 52%;
    }

    .expect__point:nth-child(4) {
      animation-range: contain 52% contain 68%;
    }

    .expect__point:nth-child(5) {
      animation-range: contain 68% contain 84%;
    }
  }
}

/* --- Before and after --------------------------------------------------------
   components/before-after.js. The frame is 4:5 whether or not the script has
   arrived, so nothing moves when it does. The "before" is the upper layer,
   cut with clip-path from the right at the slider's value (--pos, 0 to 100);
   the handle moves with a transform. The range input is laid over everything
   and is invisible: the browser's own slider does the dragging and the keys. */
before-after {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  --pos: 50;
}

before-after > .before-after__layer {
  position: absolute;
  inset: 0;
}

before-after .before-after__layer image-slot {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}

before-after .before-after__layer--before {
  clip-path: inset(0 calc((100 - var(--pos)) * 1%) 0 0);
}

.before-after__handle {
  position: absolute;
  inset: 0;
  width: 100%;
  pointer-events: none;
  transform: translateX(calc(var(--pos) * 1%));
}

.before-after__handle::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: -1px;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.35);
}

.before-after__knob {
  position: absolute;
  top: 50%;
  left: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  translate: -50% -50%;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  line-height: 1;
  white-space: nowrap;
}

before-after:has(.before-after__range:focus-visible) .before-after__knob {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.before-after__tag {
  position: absolute;
  top: var(--sp-3);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  background: rgb(0 0 0 / 0.72);
  color: #fff;
  font-size: var(--fs-xs);
  pointer-events: none;
}

.before-after__tag--before {
  left: var(--sp-3);
}

.before-after__tag--after {
  right: var(--sp-3);
}

.before-after__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  /* Sideways is the slider's, up and down the page's. */
  touch-action: pan-y;
}

/* Until the component has loaded (or with no script) the link to the "before"
   sits over the photograph's foot; once it has, the slider replaces it. */
.before-after__fallback {
  position: absolute;
  left: var(--sp-3);
  bottom: var(--sp-3);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  background: rgb(0 0 0 / 0.72);
  color: #fff;
  font-size: var(--fs-xs);
  text-decoration: none;
}

/* A card with a slider is not one link, so its name is the link, and the photograph does not zoom under a drag. */
.work-tile--compare {
  display: block;
}

.work-tile--compare .work-tile__meta {
  color: inherit;
  text-decoration: none;
}

.work-tile--compare .work-tile__meta:hover .work-tile__car {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.case-compare__frame {
  max-width: 480px;
  margin-inline: auto;
  border-radius: var(--r-md);
  overflow: hidden;
}

/* --- The close ------------------------------------------------------------------
   Black again, the line the film opened on answered, and the one ask of the page.
   Where the studio is, said as a searcher says it, stands quietly under it. */
.cta-band:has(.cta-band__note) {
  display: grid;
  align-content: center;
  min-height: 100svh;
  background: #000;
  text-align: center;
}

.cta-band:has(.cta-band__note) .cta-band__inner {
  justify-items: center;
}

.cta-band:has(.cta-band__note) .cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 6.75rem);
  font-weight: var(--fw-display);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}

.cta-band:has(.cta-band__note) .cta-band__actions {
  justify-content: center;
}

.cta-band__note {
  margin: var(--sp-6) 0 0;
  max-width: 60ch;
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  color: var(--ink-3);
  text-wrap: pretty;
}

/* --- Phase 1, leads only ----------------------------------------------------
   Ask Des is switched off (src/phase1.js), so no button offers it. site/app.js
   sets the attribute from the meta tag src/seo/head.js writes. */
[data-leads-only] [data-support-open] {
  display: none !important;
}
