@layer tokens, base, entrance, layout, components, client;
@layer tokens {
  /* given swatches · theme modern · Sofia Sans Extra Condensed + Sofia Sans */
  :root {
    /* colour */
    --c-primary: #2F3E4E;
    --c-dark: #10161B;
    --c-mid: #1F2833;
    --c-accent: #E4680F;
    --c-accent-hover: #C2490D;
    --c-highlight: #C9D2DB;
    --c-bg: #FFFFFF;
    --c-alt: #F4F4F5;
    --c-alt-2: #FBFBFB;
    --c-card: #FFFFFF;
    --c-border: #E0E0E0;
    --c-ink: #0C1015;
    --c-muted: #5B6671;
    --c-caption: #5B6671;
    --c-primary-rgb: 47, 62, 78;
    --c-dark-rgb: 16, 22, 27;
    /* placement */
    --c-on-accent: #0C1015;
    --c-on-primary: #FFFFFF;
    --c-bar: #1F2833;
    --c-accent-outline: transparent;
    --c-field-edge: #1F2833;
    --c-link: #2F3E4E;
    --c-label: #2F3E4E;
    --c-label-dark: #C9D2DB;
    /* on-dark */
    --w-90: rgba(255,255,255,.90);
    --w-60: rgba(255,255,255,.60);
    --w-42: rgba(255,255,255,.42);
    --w-12: rgba(255,255,255,.12);
    --w-07: rgba(255,255,255,.07);
    /* type-face */
    --f-display: 'Sofia Sans Extra Condensed', 'Arial Narrow', Arial, sans-serif;
    --f-body: 'Sofia Sans', 'Segoe UI', system-ui, sans-serif;
    --f-voice: Georgia, serif;
    /* type-weight */
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-strong: 800;
    --fw-card: 800;
    /* type-scale */
    --t-caption: 12px;
    --t-body-sm: 14px;
    --t-body: 16px;
    --t-card: 20px;
    --t-sm-heading: 32px;
    --t-section: clamp(40px, 3.6vw, 52px);
    --t-hero: clamp(40px, 5.2vw, 64px);
    --t-numeral: 52px;
    /* type-rhythm */
    --tr-hero: -0.03em;
    --tr-section: -0.02em;
    --tr-card: -0.01em;
    --lh-hero: 1.04;
    --lh-section: 1.12;
    --lh-card: 1.25;
    --lh-body: 1.8;
    --lh-caption: 1.4;
    /* space */
    --space-4: 4px;
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-24: 24px;
    --space-32: 32px;
    --space-48: 48px;
    --space-64: 64px;
    --space-96: 96px;
    --space-112: 112px;
    --space-144: 144px;
    --content-max: 1600px;
    --content-max-text: 768px;
    --pad-x: 24px;
    --sec-y: 80px;
    --grid-gap: 24px;
    --hd-h: 64px;
    /* shape */
    --r-xs: 4px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 20px;
    --r-pill: 999px;
    --r-control: var(--r-md);
    --r-surface: var(--r-lg);
    --r-corner: var(--r-lg);
    --r-band: 0;
    --shadow-subtle: 0 4px 16px rgba(var(--c-primary-rgb), 0.10);
    --shadow-standard: 0 12px 32px rgba(var(--c-primary-rgb), 0.14);
    --shadow-emphatic: 0 20px 48px rgba(var(--c-primary-rgb), 0.18);
    --shadow-deep: 0 32px 64px rgba(var(--c-primary-rgb), 0.22);
    --focus-ring: 0 0 0 3px rgba(var(--c-primary-rgb), 0.15);
    /* pointer */
    --hover-fast: 200ms;
    --hover-move: 300ms;
    --hover-slow: 500ms;
    --hover-ease: ease-out;
    --lift-btn: -1px;
    --lift-sm: -2px;
    --lift-card: -4px;
    --zoom-img: 1.05;
    /* motion */
    --m-in: 500ms;
    --m-unmask: 900ms;
    --m-draw: 700ms;
    --m-step: 60ms;
    --m-ease: cubic-bezier(.22, .61, .36, 1);
    /* theme */
    --photo-weight: 0.65;
    /* private: what .on-light puts back */
    --_ink: #0C1015;
    --_muted: #5B6671;
    --_caption: #5B6671;
    --_label: #2F3E4E;
    --_link: #2F3E4E;
    --_border: #E0E0E0;
    --_field-edge: #1F2833;
  }
  .on-dark {
    --c-ink: #FFFFFF; --c-muted: var(--w-90); --c-caption: var(--c-highlight); --c-label: var(--c-label-dark);
    --c-link: #FFFFFF; --c-border: var(--w-12); --c-field-edge: var(--w-42);
  }
  .on-light {
    --c-ink: var(--_ink); --c-muted: var(--_muted); --c-caption: var(--_caption); --c-label: var(--_label);
    --c-link: var(--_link); --c-border: var(--_border); --c-field-edge: var(--_field-edge);
  }
  @media (min-width: 720px) { :root { --pad-x: 32px; --sec-y: 144px; } }
  @media (min-width: 1080px) { :root { --pad-x: 56px; --sec-y: 144px; --hd-h: 72px; } }
  @media (min-width: 1440px) { :root { --pad-x: clamp(56px, 4.2vw, 80px); } }
}

/* ==========================================================================
   kit/base.css — reset, the page, type roles, containers, band surfaces.
   Layer: base. Reads only contract tokens (tokens/contract.json).

   Harvested from AAA's stylesheet (the newest build) and rebuilt on the canonical names. One
   change of mechanism: AAA repeated `.band--dark .lead, .bleed .lead, .on-dark .lead …` for every
   text role. Here a dark band adds .on-dark, which re-maps the seven role tokens (tokens layer),
   so a role is written once, as var(--c-muted), and flips by itself.

   Zero ALL-CAPS roles and no letter-spaced small text: generated-look-audit.md's ceiling is 10%
   of text elements and every build that passed shipped at 0%.
   ========================================================================== */
@layer base {
  *, *::before, *::after { box-sizing: border-box; }

  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  body {
    margin: 0;
    background-color: var(--c-bg);
    color: var(--c-ink);
    font: var(--fw-regular) var(--t-body) / var(--lh-body) var(--f-body);
    -webkit-font-smoothing: antialiased;
  }

  img, svg { max-width: 100%; }
  img { display: block; height: auto; }

  a { color: var(--c-link); }

  :focus-visible { outline: 3px solid var(--c-link); outline-offset: 2px; }

  /* the two scopes. The token re-map is in the tokens layer; the text colour is here. */
  .on-dark { color: var(--w-90); }
  .on-light { color: var(--c-ink); }

  .skip {
    position: absolute; left: var(--space-8); top: -64px; z-index: 60;
    padding: var(--space-12) var(--space-16);
    background-color: var(--c-dark); color: var(--w-90);
    border-radius: var(--r-control); text-decoration: none;
    transition: top var(--hover-fast) var(--hover-ease);
  }
  .skip:focus { top: var(--space-8); }

  .wrap { max-width: var(--content-max); margin: 0 auto; padding-inline: var(--pad-x); }
  .wrap--text { max-width: var(--content-max-text); }

  /* the header is sticky: an anchor jump has to clear it or the heading lands under the bar */
  .band, .bleed, .hero { scroll-margin-top: calc(var(--hd-h) + var(--space-12)); }

  .band { padding-block: var(--sec-y); }
  /* two white bands in a row: the second one's top padding goes, so the gap is one --sec-y, the same as at a change of
     colour. Without this the two paddings stack into a strip of empty page (288px on desktop). Danny, 2026-09-29. */
  .band:not(.band--alt, .band--alt2, .band--dark, .hero) + .band:not(.band--alt, .band--alt2, .band--dark, .hero) { padding-top: 0; }
  .band--alt { background-color: var(--c-alt); }
  .band--alt2 { background-color: var(--c-alt-2); }
  .band--dark { background-color: var(--c-dark); }

  /* ---- type roles ---------------------------------------------------------------------------- */
  .h1, .h2, .h3, .h4 { font-family: var(--f-display); margin: 0; color: var(--c-ink); }
  .h1 { font-weight: var(--fw-strong); font-size: var(--t-hero); line-height: var(--lh-hero); letter-spacing: var(--tr-hero); }
  .h2 { font-weight: var(--fw-strong); font-size: var(--t-section); line-height: var(--lh-section); letter-spacing: var(--tr-section); }
  .h3 { font-weight: var(--fw-card); font-size: var(--t-card); line-height: var(--lh-card); letter-spacing: var(--tr-card); }
  .h4 { font-weight: var(--fw-card); font-size: var(--t-body); line-height: 1.3; letter-spacing: var(--tr-card); }

  .label {
    margin: 0 0 var(--space-8);
    font-weight: var(--fw-semibold); font-size: var(--t-caption); line-height: var(--lh-caption);
    color: var(--c-label);
  }
  .lead { margin: var(--space-12) 0 0; font-size: var(--t-card); line-height: 1.6; color: var(--c-muted); max-width: 62ch; }
  p { margin: var(--space-16) 0 0; }

  /* the second voice: italic, never a headline (register-guide §4) */
  .voice { font-family: var(--f-voice); font-style: italic; font-weight: var(--fw-regular); color: var(--c-muted); }

  /* a big decorative numeral. 52px, so --c-caption's 3:1 clears the floor for large text */
  .numeral {
    display: block; font-family: var(--f-display); font-weight: var(--fw-strong);
    font-size: var(--t-numeral); line-height: 1; letter-spacing: var(--tr-hero); color: var(--c-caption);
  }

  /* the one way anything unconfirmed is written on a page. Not a chip beside every line: the audit
     counted 31–35 of those per page across v2–v5 and named them the clearest generated tell. */
  .pend { font-family: var(--f-voice); font-style: italic; font-weight: var(--fw-regular); color: var(--c-muted); }

  .head { margin-bottom: var(--space-48); max-width: 68ch; }
  .head--mid { margin-bottom: var(--space-32); }

  /* a text link that is not in running text */
  .tl {
    color: var(--c-link); font-weight: var(--fw-semibold); text-underline-offset: 3px;
    transition: color var(--hover-fast) var(--hover-ease);
  }

  /* ---- layout primitives several bands share ---------------------------------------------------- */

  /* a grid of boxes: one column on a phone, two, then three; four when the list is long */
  .tiles { display: grid; gap: var(--grid-gap); grid-template-columns: 1fr; }
  @media (min-width: 640px)  { .tiles { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1080px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
  .tiles--dense { gap: var(--space-12); }
  @media (min-width: 1200px) { .tiles--dense { grid-template-columns: repeat(4, 1fr); } }
  .tile { padding: var(--space-32); background-color: var(--c-card); border-radius: var(--r-surface); box-shadow: var(--shadow-subtle); }
  .tiles--dense .tile { padding: var(--space-24); }
  .tile p { color: var(--c-muted); font-size: var(--t-body-sm); max-width: 64ch; }
  .band--alt .tile { box-shadow: var(--shadow-standard); }

  /* two columns that stack on a phone */
  .split { display: grid; gap: var(--space-48); align-items: center; }
  @media (min-width: 900px) {
    .split { grid-template-columns: 1fr 1fr; gap: var(--space-64); }
    .split--flip > :first-child { order: 2; }
  }

  /* the designed empty state for a photograph: a plain card that says what is missing. Never a
     dashed box, and never a stock photograph standing in for the client's own work. */
  .plate {
    display: grid; place-items: center; aspect-ratio: 4 / 3;
    padding: var(--space-16); text-align: center;
    border-radius: var(--r-surface); background-color: var(--c-card); box-shadow: var(--shadow-subtle);
  }

  /* a photograph as the ground words sit on (a hero, and later a band). The photograph fills the box; the scrim is the
     palette's own dark, heaviest at the bottom where the words are anchored, and never lighter than 62% below 1080px,
     because on a phone the words can fill the whole frame. The stops are set by the WORST case, not a typical one: the
     palette with the lightest dark (Winter's #534438) over a pure-white photograph needs 58% at a large headline and
     74% at body text, where a navy needs 44% and 56%. test/browser/scrim.mjs measures exactly that with a full hero.
     A recipe still, not a guarantee: verify.mjs measures every client's words over the rendered pixels. */
  .ground { position: relative; isolation: isolate; overflow: hidden; }
  .ground > picture, .ground > img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .ground img { width: 100%; height: 100%; object-fit: cover; }
  .ground::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(to top, rgba(var(--c-dark-rgb), .94) 0%, rgba(var(--c-dark-rgb), .88) 52%, rgba(var(--c-dark-rgb), .72) 82%, rgba(var(--c-dark-rgb), .62) 100%);
  }
  @media (min-width: 1080px) {
    .ground::after { background: linear-gradient(to top, rgba(var(--c-dark-rgb), .94) 0%, rgba(var(--c-dark-rgb), .8) 40%, rgba(var(--c-dark-rgb), .6) 66%, rgba(var(--c-dark-rgb), .3) 100%); }
  }
  .ground > :not(img):not(picture) { position: relative; z-index: 2; }
  /* a WIDE ground whose words sit at the left (the grid intro): the scrim also darkens from the left, so the words keep
     their contrast however tall they run, and the photograph stays clear on the right. A bottom-only scrim holds only the
     lower half of a short, wide frame, which a three-line headline outgrows. Measured, not assumed: see README 3c. */
  @media (min-width: 900px) {
    .ground--left::after {
      background:
        linear-gradient(to right, rgba(var(--c-dark-rgb), .9) 0%, rgba(var(--c-dark-rgb), .78) 45%, rgba(var(--c-dark-rgb), .64) 66%, rgba(var(--c-dark-rgb), 0) 100%),
        linear-gradient(to top, rgba(var(--c-dark-rgb), .9) 0%, rgba(var(--c-dark-rgb), .55) 30%, rgba(var(--c-dark-rgb), .1) 100%);
    }
  }

  /* a column of titled items, each a heading and a line: a safety commitment, what moves a price */
  .stack { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-24); }
  .stack p { margin-top: var(--space-4); color: var(--c-muted); font-size: var(--t-body-sm); }

  /* a solid block set back behind a framed photograph, so it reads as stepped off the page rather than flat on
     it — the device named in layout-ideas-figma-wix.md §5 ("one repeated device... a solid step offset behind
     each photograph") and again in its field evidence for the asymmetrical pattern ("offset / stepped blocks").
     Used by `zigzag` and `asym`; a plain .frame (bands, split, grid, fullphoto) has none. isolation keeps the
     accent block behind the photograph and nothing else on the page: a wrapper around a .frame, never the frame
     itself, because the frame's own overflow:hidden (for the hover zoom) would clip an offset sitting outside it. */
  .step { position: relative; isolation: isolate; }
  .step::before {
    content: ""; position: absolute; z-index: -1; top: var(--space-16); left: calc(-1 * var(--space-16));
    width: 100%; height: 100%; background-color: var(--c-accent); border-radius: var(--r-surface);
  }
}

/* ==========================================================================
   Shape `tag`, band rhythm (Danny, 2026-09-28). Only under data-shape="tag"; an `even` build never meets it.
   A coloured band carries ONE big corner, top-right (--r-band). When the band before it is coloured too, it rides
   up over that band by the corner's size, so the colour behind shows in the corner instead of the page's white;
   the earlier band's padding grows by the same amount so nothing is covered. The rider must paint ABOVE the band
   it rides over: a positioned element with a higher z-index than its neighbour. (The first version of the preview
   had the stacking backwards and hid the corner.) Beside a white band only the corner shows, white behind it.
   The footer is not a sibling of the last band (it follows <main>), so it is matched through main.
   The hero is left out: its own arrangement sets its padding.
   ========================================================================== */
@layer layout {
  [data-shape="tag"] :is(.band--alt, .band--alt2, .band--dark, .bleed, .foot):not(.hero) { border-top-right-radius: var(--r-band); }

  [data-shape="tag"] :is(.band--alt, .band--alt2, .band--dark, .bleed):not(.hero) + :is(.band--alt, .band--alt2, .band--dark, .bleed):not(.hero) {
    position: relative; z-index: 1; margin-top: calc(-1 * var(--r-band));
  }
  [data-shape="tag"] .band:is(.band--alt, .band--alt2, .band--dark):has(+ :is(.band--alt, .band--alt2, .band--dark, .bleed):not(.hero)),
  [data-shape="tag"] .bleed:has(+ :is(.band--alt, .band--alt2, .band--dark, .bleed):not(.hero)),
  [data-shape="tag"] main > .band:is(.band--alt, .band--alt2, .band--dark):last-child,
  [data-shape="tag"] main > .bleed:last-child {
    padding-bottom: calc(var(--sec-y) + var(--r-band));
  }
  [data-shape="tag"] main:has(> :is(.band--alt, .band--alt2, .band--dark, .bleed):not(.hero):last-child) + .foot {
    position: relative; z-index: 1; margin-top: calc(-1 * var(--r-band));
  }
}

/* ==========================================================================
   kit/mechanics.css — how things arrive and how they answer a pointer.
   Layers: entrance, then components. Standing rule 7; patterns/motion-kit.md.

   THE ORDER OF THE TWO LAYERS IS THE POINT. The settled entrance state
   (`.js [data-in="stagger"].is-in > *`, specificity 0,3,0) used to out-weigh
   `.tile:hover` (0,2,0) and silently kill the hover lift; it passed every lint and only a
   browser showed it (AAA, 2026-09-20). Cascade layers make it impossible: `entrance` is
   declared below `components` in the layer order, so a component's :hover wins whatever its
   specificity. If that order line is ever wrong, verify.mjs reports the dead hover.

   Every hidden state is behind `.js`, which the <head> sets on its first line. With the script
   blocked nothing on the page is ever invisible.
   ========================================================================== */

@layer entrance {
  .js [data-in] { opacity: 0; }
  .js [data-in].is-in { opacity: 1; }

  /* rise: a band, or a block of text */
  .js [data-in="rise"] {
    transform: translateY(16px);
    transition: opacity var(--m-in) var(--m-ease), transform var(--m-in) var(--m-ease);
  }
  .js [data-in="rise"].is-in { transform: none; }

  /* stagger: a row of cards, each a step behind the last */
  .js [data-in="stagger"] { opacity: 1; }
  .js [data-in="stagger"] > * {
    opacity: 0; transform: translateY(16px);
    transition: opacity var(--m-in) var(--m-ease), transform var(--m-in) var(--m-ease);
  }
  .js [data-in="stagger"].is-in > * { opacity: 1; transform: none; }
  .js [data-in="stagger"].is-in > :nth-child(2) { transition-delay: calc(var(--m-step) * 1); }
  .js [data-in="stagger"].is-in > :nth-child(3) { transition-delay: calc(var(--m-step) * 2); }
  .js [data-in="stagger"].is-in > :nth-child(4) { transition-delay: calc(var(--m-step) * 3); }
  .js [data-in="stagger"].is-in > :nth-child(5) { transition-delay: calc(var(--m-step) * 4); }
  .js [data-in="stagger"].is-in > :nth-child(6) { transition-delay: calc(var(--m-step) * 5); }
  /* past six they arrive together: a seventh delay is a queue, not a stagger */

  /* unmask: a photograph settling. The FRAME is observed, never the image: an element clipped to
     zero area by its own transform is invisible to an IntersectionObserver (found in v9). */
  .js [data-in="unmask"] { opacity: 1; }
  .js [data-in="unmask"] img { transform: scale(1.06); transition: transform var(--m-unmask) var(--m-ease); }
  .js [data-in="unmask"].is-in img { transform: none; }

  /* draw: a line growing from its left edge */
  .js [data-in="draw"] { opacity: 1; transform: scaleX(0); transform-origin: left center; transition: transform var(--m-draw) var(--m-ease); }
  .js [data-in="draw"].is-in { transform: none; }

  @media (prefers-reduced-motion: reduce) {
    .js [data-in], .js [data-in] > *, .js [data-in] img {
      opacity: 1 !important; transform: none !important; transition: none !important;
    }
  }
}

@layer components {
  /* a photograph in a frame: the photograph zooms, the frame does not */
  .frame { overflow: hidden; border-radius: var(--r-surface); }
  .frame img { width: 100%; transition: transform var(--hover-slow) var(--hover-ease); }
  @media (hover: hover) { .frame:hover img { transform: scale(var(--zoom-img)); } }

  /* a card that IS a link lifts. A card that is not a link does nothing and gets no pointer cursor. */
  .card-link {
    display: block; color: inherit; text-decoration: none; border-radius: var(--r-surface);
    transition: transform var(--hover-move) var(--hover-ease), box-shadow var(--hover-move) var(--hover-ease);
  }
  @media (hover: hover) {
    .card-link:hover { transform: translateY(var(--lift-card)); box-shadow: var(--shadow-emphatic); }
  }

  /* a rail: scrolls by hand always; mechanics.js drifts it, and stops for every reason to stop */
  .rail-wrap { position: relative; }
  .rail {
    display: flex; gap: var(--grid-gap);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding-block: var(--space-8);
    scrollbar-width: thin;
  }
  .rail > * { flex: 0 0 min(82%, 320px); scroll-snap-align: start; }
  /* A rail in a band starts in line with the heading and runs out to the band's right edge, which is the
     screen's: a card is cut by the screen, not by an invisible line, and the row reads as "there's more"
     (approved on the demo, tasks/2026-09-27-demo-full-width). 100cqw is the band's width without the
     scrollbar (100vw would include it and scroll sideways). A browser without container units drops these
     and keeps the boxed rail. Cards are sized from the column, so about 3⅓ show on a desktop and 2⅓ on a
     tablet whatever the screen: the last one visible is always cut by the edge, and the row always scrolls
     (at the old min(82%, 320px) four cards fitted side by side on a wide screen and the row stopped).
     No overflow-x: clip on the band: a clip hides the cards past the screen edge from lazy loading, so
     their photographs never load and every tool that waits for images (verify, contrast-audit, shot)
     hangs (found in the dry run: the contrast audit went from 42s to over ten minutes). The rail ends
     exactly at the band's edge, so nothing overflows without it. The band is found by :has(), not by
     name: test/layouts.test.mjs guards that no stylesheet addresses the reviews band by name. */
  .band:has(.rail) { container-type: inline-size; }
  .band .rail {
    --bleed: calc(max(0px, (100cqw - var(--content-max)) / 2) + var(--pad-x));
    margin-right: calc(-1 * var(--bleed));
    padding-right: var(--bleed);
    scroll-padding-inline-end: var(--bleed);
  }
  @media (min-width: 641px) {
    .band .rail > * { flex-basis: calc((min(100cqw, var(--content-max)) - 2 * var(--pad-x) - 2 * var(--grid-gap)) / 2.3); }
  }
  @media (min-width: 1080px) {
    .band .rail > * { flex-basis: calc((min(100cqw, var(--content-max)) - 2 * var(--pad-x) - 2 * var(--grid-gap)) / 3.3); }
  }
  .rail__ctl { display: flex; gap: var(--space-8); margin-top: var(--space-16); }
  /* round arrow buttons: a ghost button that is round, so they lift and answer like every other button */
  .rail__btn {
    display: grid; place-items: center; width: 44px; height: 44px;
    border: 0; border-radius: var(--r-pill);
    background-color: transparent; color: var(--c-link); box-shadow: inset 0 0 0 2px var(--c-link); cursor: pointer;
    transition: background-color var(--hover-fast) var(--hover-ease), color var(--hover-fast) var(--hover-ease), transform var(--hover-fast) var(--hover-ease);
  }
  .rail__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
  @media (hover: hover) {
    .rail__btn:hover { background-color: var(--c-link); color: var(--c-bg); transform: translateY(var(--lift-btn)); }
  }

  @media (prefers-reduced-motion: reduce) {
    .btn:hover, .card-link:hover, .node:hover, .rail__btn:hover { transform: none; }
    .frame:hover img { transform: none; }
    .rail { scroll-behavior: auto; }
  }
}

/* ==========================================================================
   Tight joins (opt-in: content.json `joins: "tight"`, which puts data-joins="tight" on <html>).
   Where a band meets a band of another colour, each side keeps a quarter of --sec-y, not all of it, so the empty page between
   content is 72px on desktop and 40px on a phone, not 288 and 160. (A white band after a white band already has one --sec-y:
   base.css.) Under the tag shape a coloured band that meets another coloured band, or the footer, keeps the corner's size on
   top, as it does there. Danny chose one quarter from a four-way mock (a quarter, a half, three quarters, all), 2026-09-29.
   Written after the tag block in base.css, in the same layer, so it wins on equal specificity. The bleed quote band and the hero
   set their own padding and are left alone.
   ========================================================================== */
@layer layout {
  [data-joins="tight"] { --join-f: 0.25; }
  [data-joins="tight"] :is(.band--alt, .band--alt2, .band--dark):not(.hero) { padding-block: calc(var(--sec-y) * var(--join-f)); }
  [data-joins="tight"] .band:not(.band--alt, .band--alt2, .band--dark, .hero):has(+ :is(.band--alt, .band--alt2, .band--dark):not(.hero)) { padding-bottom: calc(var(--sec-y) * var(--join-f)); }
  [data-joins="tight"] :is(.band--alt, .band--alt2, .band--dark):not(.hero) + .band:not(.band--alt, .band--alt2, .band--dark, .hero) { padding-top: calc(var(--sec-y) * var(--join-f)); }
  [data-joins="tight"] .band:is(.band--alt, .band--alt2, .band--dark):has(+ :is(.band--alt, .band--alt2, .band--dark, .bleed):not(.hero)),
  [data-joins="tight"] main > .band:is(.band--alt, .band--alt2, .band--dark):last-child {
    padding-bottom: calc(var(--sec-y) * var(--join-f) + var(--r-band));
  }
}

/* button — filled, ghost and pending. Layer: components.
   Rule 7: a button changes colour AND lifts 1px. The ghost lifts too. On a dark band the role
   tokens re-map (.on-dark), so a ghost turns white without a rule of its own. */
@layer components {
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8);
    padding: var(--space-12) var(--space-24); min-height: 48px;
    border: 0; border-radius: var(--r-control);
    background-color: var(--c-accent); color: var(--c-on-accent);
    box-shadow: inset 0 0 0 2px var(--c-accent-outline);
    font: var(--fw-semibold) var(--t-body-sm) / 1.2 var(--f-body);
    text-align: center; text-decoration: none; cursor: pointer;
    transition: background-color var(--hover-fast) var(--hover-ease),
                transform var(--hover-fast) var(--hover-ease);
  }
  @media (hover: hover) {
    .btn:hover { background-color: var(--c-accent-hover); transform: translateY(var(--lift-btn)); }
  }
  .btn--block { width: 100%; }

  .btn--ghost {
    background-color: transparent; color: var(--c-link);
    box-shadow: inset 0 0 0 2px var(--c-link);
    transition: background-color var(--hover-fast) var(--hover-ease),
                color var(--hover-fast) var(--hover-ease),
                transform var(--hover-fast) var(--hover-ease);
  }
  @media (hover: hover) {
    .btn--ghost:hover { background-color: var(--c-link); color: var(--c-bg); transform: translateY(var(--lift-btn)); }
  }

  /* light: white, for a dark band or a photograph, where the accent would compete. It changes colour and lifts 1px like the rest. */
  .btn--light { background-color: #FFFFFF; color: var(--c-dark); box-shadow: none; }
  @media (hover: hover) {
    .btn--light:hover { background-color: var(--c-alt); color: var(--c-dark); transform: translateY(var(--lift-btn)); }
  }

  /* a control whose destination the client has not given yet. It is not a link, does not pretend
     to be one, and says what it is waiting for. */
  .btn--pending {
    --_edge: var(--c-border);
    background-color: transparent; color: var(--c-muted);
    box-shadow: inset 0 0 0 2px var(--_edge);
    cursor: not-allowed;
  }
  .btn--pending .pend { font-size: var(--t-caption); }
  .on-dark .btn--pending { --_edge: var(--w-42); }
}

/* header — sticky, wordmark or logo, navigation built from the page's own bands, tap-to-call, the
   one call to action, and a native <details> menu for small screens. Layer: components. */
@layer components {
  .hd {
    position: sticky; top: 0; z-index: 40;
    background-color: var(--c-bg);
    transition: box-shadow var(--hover-fast) var(--hover-ease);
  }
  .hd.is-stuck { box-shadow: var(--shadow-standard); }

  .hd__in {
    display: flex; align-items: center; gap: var(--space-16);
    max-width: none;
    padding: var(--space-12) var(--pad-x);
    min-height: var(--hd-h);
  }
  /* the call to action never wraps: on a phone it sits beside a two-line wordmark and the menu, and a
     button that breaks its label in two looks broken (found by looking at the showcase at 390px) */
  .hd .btn { white-space: nowrap; padding-inline: var(--space-16); min-height: 44px; }
  .hd__logo { display: block; margin-right: auto; text-decoration: none; }
  .hd__logo img { width: 104px; }
  .hd__word {
    font-family: var(--f-display); font-weight: var(--fw-strong); font-size: var(--t-card);
    letter-spacing: var(--tr-card); line-height: 1.1; color: var(--c-ink);
  }

  .hd__nav { display: none; gap: var(--space-24); }
  .hd__nav a {
    color: var(--c-muted); font-weight: var(--fw-medium); font-size: var(--t-body-sm); text-decoration: none;
    transition: color var(--hover-fast) var(--hover-ease);
  }
  @media (hover: hover) { .hd__nav a:hover { color: var(--c-ink); } }

  .hd__call {
    display: none; align-items: center; gap: var(--space-8);
    color: var(--c-ink); font-weight: var(--fw-semibold); font-size: var(--t-body-sm); text-decoration: none;
    transition: color var(--hover-fast) var(--hover-ease);
  }
  .hd__call .pend { font-size: var(--t-caption); }
  @media (hover: hover) { .hd__call:hover { color: var(--c-link); } }

  @media (min-width: 960px) {
    .hd__nav { display: flex; }
    .hd__call { display: inline-flex; }
    .menu { display: none; }
    .hd--menu-only .hd__nav, .hd--menu-only .hd__call { display: none; }
    .hd--menu-only .menu { display: block; }
    /* beside-logo: the links sit next to the name; the phone and the button keep the right */
    .hd--beside .hd__logo { margin-right: var(--space-32); }
    .hd--beside .hd__nav { margin-right: auto; }
  }

  /* the three-line icon: a 44px tap target with nothing drawn round it. The span is the middle line, its ::before and
     ::after the top and bottom (22 x 2.5px, a 7.5px pitch). Open, the middle fades and the outer two cross. */
  .menu > summary {
    list-style: none; cursor: pointer;
    position: relative; display: block; flex: none;
    width: 44px; height: 44px; padding: 0;
    border-radius: var(--r-control);
    color: var(--c-ink);
    transition: color var(--hover-fast) var(--hover-ease);
  }
  .menu > summary::-webkit-details-marker { display: none; }
  @media (hover: hover) { .menu > summary:hover { color: var(--c-link); } }
  .menu__bars, .menu__bars::before, .menu__bars::after {
    display: block; flex: none; width: 22px; height: 2.5px; border-radius: var(--r-xs); background-color: currentColor;
    transition: transform var(--hover-fast) var(--hover-ease), opacity var(--hover-fast) var(--hover-ease);
  }
  .menu__bars { position: absolute; left: 11px; top: calc(50% - 1.25px); }
  .menu__bars::before, .menu__bars::after { content: ""; position: absolute; left: 0; }
  .menu__bars::before { top: -7.5px; }
  .menu__bars::after { top: 7.5px; }
  .menu[open] > summary .menu__bars { background-color: transparent; }
  .menu[open] > summary .menu__bars::before { transform: translateY(7.5px) rotate(45deg); }
  .menu[open] > summary .menu__bars::after { transform: translateY(-7.5px) rotate(-45deg); }
  @media (prefers-reduced-motion: reduce) {
    .menu__bars, .menu__bars::before, .menu__bars::after { transition: none; }
  }
  .menu__panel {
    position: absolute; left: 0; right: 0;
    display: grid; gap: var(--space-4);
    padding: var(--space-16) var(--pad-x) var(--space-24);
    background-color: var(--c-bg);
    box-shadow: var(--shadow-standard);
  }
  .menu__panel a {
    padding: var(--space-12) 0; color: var(--c-ink);
    font-weight: var(--fw-medium); text-decoration: none;
    transition: color var(--hover-fast) var(--hover-ease);
  }
  @media (hover: hover) { .menu__panel a:hover { color: var(--c-link); } }

  /* ---- variant bar: twotier ------------------------------------------------------------------------------
     A thin strip on the dark above the bar. The strip scrolls away and the bar stays: the header is sticky with a
     top edge one strip height ABOVE the screen, so once the strip has gone by the bar meets the top. (A sticky child
     inside a header could not do this: it sticks only within its parent.) The bar carries the background, so the
     header itself is clear, and the strip's height is fixed so the two agree. */
  .hd--two { --strip-h: 40px; top: calc(-1 * var(--strip-h)); background-color: transparent; }
  .hd--two.is-stuck { box-shadow: none; }
  .hd--two .hd__in { background-color: var(--c-bg); }
  .hd--two.is-stuck .hd__in { box-shadow: var(--shadow-standard); }
  .hd__strip { height: var(--strip-h); overflow: hidden; background-color: var(--c-dark); color: var(--w-90); font-size: var(--t-body-sm); }
  .hd__strip-in { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-24); height: 100%; padding-inline: var(--pad-x); }
  .hd__strap { margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hd__strip a {
    display: inline-flex; align-items: center; gap: var(--space-8); white-space: nowrap;
    color: var(--w-90); text-decoration: none;
    transition: color var(--hover-fast) var(--hover-ease);
  }
  .hd__strip svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
  @media (hover: hover) { .hd__strip a:hover { color: #FFFFFF; } }
  @media (max-width: 639px) {
    .hd__strap, .hd__strip .hd__mail { display: none; }
    .hd__strip-in { justify-content: space-between; }
  }
  /* the links grow an underline from the left: colour and background-size only */
  .hd--two .hd__nav a {
    padding-block: var(--space-4);
    background: linear-gradient(var(--c-accent), var(--c-accent)) 0 100% / 0 2px no-repeat;
    transition: background-size var(--hover-fast) var(--hover-ease), color var(--hover-fast) var(--hover-ease);
  }
  @media (hover: hover) { .hd--two .hd__nav a:hover { background-size: 100% 2px; } }
  /* the small-screen menu until 1080, not 960: six links and a button need the room */
  @media (min-width: 960px) and (max-width: 1079px) {
    .hd--two .hd__nav { display: none; }
    .hd--two .menu { display: block; }
  }
  /* shape tag: the bar carries the one big corner, and the hero slides up under it so the photograph shows in the corner */
  [data-shape="tag"] .hd--two .hd__in { border-bottom-right-radius: var(--r-corner); box-shadow: var(--shadow-standard); }
  [data-shape="tag"] .hd--two + main > .hero:first-child { margin-top: calc(-1 * var(--r-corner)); }
}

/* hero — what a hero is made of: the words, the action row and the photograph's look. Where they sit (the
   columns, the gaps, the height) is the layout's, in the layout layer. Layer: components. */
@layer components {
  .hero__words { max-width: var(--content-max-text); }
  .hero__sub { margin-top: var(--space-16); max-width: 46ch; }
  .hero__said { margin-top: var(--space-16); max-width: 46ch; color: var(--c-muted); font-size: var(--t-body); }
  .hero__act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12); margin-top: var(--space-32); }

  .hero__ph { margin: 0; }
  .hero__ph img { width: 100%; height: 100%; object-fit: cover; }

  /* ---- variant words: low ----------------------------------------------------------------------------------
     The words sit low-left over the photograph's left half (the scrim is the kit's .ground plus .ground--left, set by
     the render). The hero gets more air above them, and below: room for the slideshow's controls and the straddle
     panel, which the words must clear by at least 24px. */
  .hero--low .hero__in { padding-top: var(--space-144); }
  .hero--panel .hero__in, .hero--slides .hero__in {
    padding-bottom: max(calc(var(--panel-overlap, 0px) + var(--space-48)), calc(var(--ctl-b) + 44px + var(--space-24)));
  }
  /* with a panel to hang below it, the hero is a little shorter than the screen, so the panel and its buttons are on the
     first screen rather than half below the fold */
  .hero--panel { min-height: min(calc(100dvh - var(--hd-h) - var(--space-144)), 820px); }
  /* on a phone the panel is full width, so the slideshow's controls lift above it; from 900 it is at the right */
  @media (max-width: 899px) { .hero.hero--panel { --ctl-b: calc(var(--panel-overlap) + var(--space-24)); } }

  /* ---- variant panel: straddle ------------------------------------------------------------------------------ */
  .hero--panel, .hero__straddle { --panel-overlap: 64px; }
  @media (min-width: 900px) { .hero--panel, .hero__straddle { --panel-overlap: 84px; } }
  .hero__straddle { position: relative; z-index: 5; margin-top: calc(-1 * var(--panel-overlap)); pointer-events: none; }
  .hero__straddle .wrap { display: flex; justify-content: flex-end; }
  .hero__panel {
    pointer-events: auto; width: 100%;
    display: grid; align-items: center; gap: var(--space-16) var(--space-24);
    padding: var(--space-24);
    background-color: var(--c-bg); color: var(--c-ink);
    border-radius: var(--r-surface); box-shadow: var(--shadow-deep);
  }
  .hero__panel .btn { width: 100%; }
  .hero__panel-k { grid-column: 1 / -1; margin: 0; font-size: var(--t-body-sm); font-weight: var(--fw-semibold); color: var(--c-muted); }
  .hero__call {
    display: flex; align-items: center; gap: var(--space-12);
    color: var(--c-ink); text-decoration: none;
    font-family: var(--f-display); font-weight: var(--fw-card); font-size: var(--t-card); line-height: 1.1;
  }
  .hero__call small { display: block; margin-bottom: var(--space-4); font-family: var(--f-body); font-weight: var(--fw-medium); font-size: var(--t-caption); color: var(--c-muted); }
  .hero__node {
    display: grid; place-items: center; flex: none; width: 48px; height: 48px;
    border-radius: var(--r-pill); background-color: var(--c-accent); color: var(--c-on-accent);
    box-shadow: inset 0 0 0 2px var(--c-accent-outline);
    transition: background-color var(--hover-fast) var(--hover-ease), transform var(--hover-fast) var(--hover-ease);
  }
  .hero__node svg { width: 22px; height: 22px; fill: currentColor; }
  @media (hover: hover) { .hero__call:hover .hero__node { background-color: var(--c-accent-hover); transform: translateY(var(--lift-sm)); } }
  @media (min-width: 900px) {
    .hero__panel { width: auto; max-width: 640px; grid-template-columns: auto auto; padding: var(--space-24) var(--space-32); }
    .hero__panel .btn { width: auto; }
  }
  @media (prefers-reduced-motion: reduce) { .hero__call:hover .hero__node { transform: none; } }
}

/* footer — dark, three columns, links, small print. Layer: components.
   It carries .on-dark, so every role token flips without a rule of its own. */
@layer components {
  .foot { background-color: var(--c-dark); padding-block: var(--space-64) var(--space-32); }
  .foot__top { display: grid; gap: var(--space-48); }
  @media (min-width: 900px) { .foot__top { grid-template-columns: 1.2fr 1fr 1fr; } }

  .foot__word {
    font-family: var(--f-display); font-weight: var(--fw-strong); font-size: var(--t-card);
    letter-spacing: var(--tr-card); line-height: 1.1; color: var(--c-ink);
  }
  .foot__h { margin: 0 0 var(--space-12); font-family: var(--f-display); font-weight: var(--fw-card); font-size: var(--t-body); color: var(--c-ink); }
  .foot p { color: var(--c-muted); font-size: var(--t-body-sm); }
  .foot a { color: var(--c-link); }
  .foot .btn { margin-top: var(--space-16); }

  .foot__links { display: flex; flex-wrap: wrap; gap: var(--space-24); margin-top: var(--space-48); }
  .foot__links a {
    color: var(--w-60); font-size: var(--t-body-sm); text-decoration: none;
    transition: color var(--hover-fast) var(--hover-ease);
  }
  @media (hover: hover) { .foot__links a:hover { color: var(--w-90); } }
  .foot__small { margin-top: var(--space-24); color: var(--w-60); font-size: var(--t-caption); }

  /* ---- style statement: a large wordmark beside a line, four columns, then the way back up ------------------------- */
  .foot--statement { padding-block: var(--space-96) var(--space-24); }
  .foot__hd { display: grid; gap: var(--space-24); padding-bottom: var(--space-48); border-bottom: 1px solid var(--w-12); }
  @media (min-width: 900px) { .foot__hd { grid-template-columns: 5fr 7fr; gap: var(--space-48); } }
  .foot p.foot__wordmark {
    margin: 0; font-family: var(--f-display); font-weight: var(--fw-strong); letter-spacing: var(--tr-hero); line-height: .95; color: var(--c-ink);
    font-size: clamp(44px, 6vw, 84px);
  }
  .foot__wordmark span { display: block; }
  .foot p.foot__line { margin: 0; align-self: end; max-width: 28ch; font-family: var(--f-display); font-weight: var(--fw-regular); font-size: clamp(20px, 2vw, 26px); line-height: 1.4; color: var(--c-ink); }
  .foot__cols { display: grid; gap: var(--space-32); grid-template-columns: 1fr 1fr; padding-block: var(--space-48); }
  @media (min-width: 900px) { .foot__cols { grid-template-columns: repeat(4, 1fr); } }
  @media (max-width: 479px) { .foot__cols { grid-template-columns: 1fr; } }
  .foot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-8); font-size: var(--t-body-sm); color: var(--c-muted); }
  .foot__list li { overflow-wrap: anywhere; }
  .foot .chip {
    display: inline-flex; align-items: center; gap: var(--space-8); padding: var(--space-12) var(--space-16) var(--space-12) var(--space-12);
    border-radius: var(--r-control); background-color: var(--w-12); color: #FFFFFF; font-weight: var(--fw-semibold); text-decoration: none;
    transition: background-color var(--hover-fast) var(--hover-ease);
  }
  .foot .chip svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
  /* a tag-shaped chip answers a pointer with its fill only (hover-effects: a tag pill does not move) */
  @media (hover: hover) { .foot .chip:hover { background-color: var(--w-42); } }
  .foot__base { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-24); padding-top: var(--space-24); border-top: 1px solid var(--w-12); }
  /* "Back to top" is a text link, like the footer's other links: a colour change, no lift (a button is for the page's actions; this
     one only moves you up). Danny, 2026-09-29, library-wide. */
  .foot a.foot__top { display: inline-flex; align-items: center; min-height: 44px; color: var(--w-60); font-size: var(--t-body-sm); text-decoration: none; transition: color var(--hover-fast) var(--hover-ease); }
  @media (hover: hover) { .foot a.foot__top:hover { color: var(--w-90); } }
  .foot__base .foot__small { margin: 0; max-width: 70ch; }
  @media (min-width: 900px) { .foot__base .foot__small { margin-left: auto; } }

  /* ---- style three: Talk to us · Hours · the mark with Find us (Coventry Scaffolding's footer, as an arrangement only) ---- */
  .foot--three { padding-block: var(--space-64) var(--space-24); }
  .foot--three .foot__cols { padding-top: 0; }
  @media (min-width: 900px) { .foot--three .foot__cols { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 899px) { .foot--three .foot__cols { grid-template-columns: 1fr; } }
  .foot__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-12); font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .88); }
  .foot__contact li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; overflow-wrap: anywhere; }
  .foot__contact svg { width: 18px; height: 18px; margin-top: 3px; fill: rgba(255, 255, 255, .7); }
  .foot__contact li.foot__contact-name { display: block; font-weight: var(--fw-semibold); color: #FFFFFF; }
  /* a plain line of text is a link by its weight and its white, and an underline once a pointer is on it */
  .foot .foot__contact a { color: #FFFFFF; font-weight: var(--fw-semibold); text-decoration: none; }
  @media (hover: hover) { .foot .foot__contact a:hover { text-decoration: underline; text-underline-offset: 3px; } }
  .foot__contact .pend { color: rgba(255, 255, 255, .7); }
  /* the mark at a normal size (the client's own mark comes from client.css, drawn before the name) */
  .foot p.foot__mark { margin: 0 0 var(--space-24); font-family: var(--f-display); font-weight: var(--fw-semibold); font-size: 24px; line-height: 1.1; color: #FFFFFF; }
  .foot__brand .socials__h { margin-top: 0; }
}

/* layouts/bands — where the hero's parts sit. Layer: layout, which is below the components, so this places
   things and never restyles them. Scoped by data-layout so every layout's CSS can sit on one page (the
   showcase) without meeting another's. */
@layer layout {
  [data-layout="bands"] {
    --hero-gap: var(--space-48);
    --hero-pad-y: var(--sec-y);
    --hero-ratio: 4 / 3;
  }

  [data-layout="bands"] .hero { padding-block: var(--hero-pad-y); }
  [data-layout="bands"] .hero__in { display: grid; gap: var(--hero-gap); align-items: center; }
  [data-layout="bands"] .hero__ph { aspect-ratio: var(--hero-ratio); }

  /* on a phone the words come first, so the action is above the fold; the photograph follows */
  @media (min-width: 900px) {
    [data-layout="bands"] .hero--photo .hero__in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
    [data-layout="bands"] .hero--left .hero__ph { order: -1; }
  }
}

/* sample-marker — the page's ONE prototype notice. Layer: components.
   Not a chip beside every unconfirmed line: generated-look-audit.md counted 31-35 of those per
   page across v2-v5 against a field median of 1, and named them the clearest generated tell. */
@layer components {
  .notice {
    margin: 0; padding: var(--space-12) var(--pad-x);
    background-color: var(--c-bar); color: var(--w-90);
    font-size: var(--t-body-sm); text-align: center;
  }
  .notice a { color: #FFFFFF; }
}

/* social — round nodes, one per network (output-calibration §1). Layer: components.
   Never a rectangle with the network's name in it. On a dark band they read as holes punched in
   it, and the contrast works without touching the palette. */
@layer components {
  .socials__h {
    margin: 0 0 var(--space-12);
    font-family: var(--f-display); font-weight: var(--fw-card); font-size: var(--t-body); color: var(--c-ink);
  }
  .socials__row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-12); }

  .node {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border: 0; border-radius: var(--r-pill);
    background-color: var(--c-accent); color: var(--c-on-accent);
    box-shadow: inset 0 0 0 2px var(--c-accent-outline);
    cursor: pointer;
    transition: background-color var(--hover-fast) var(--hover-ease),
                transform var(--hover-fast) var(--hover-ease);
  }
  .node svg { width: 20px; height: 20px; display: block; fill: currentColor; }
  @media (hover: hover) {
    .node:hover { background-color: var(--c-accent-hover); transform: translateY(var(--lift-sm)); }
  }

  .on-dark .node { background-color: var(--w-12); color: #FFFFFF; box-shadow: none; }
  @media (hover: hover) {
    .on-dark .node:hover { background-color: var(--w-42); transform: translateY(var(--lift-sm)); }
  }

  /* no address confirmed: drawn, not linked, and it says what it waits for */
  .node--pending { background-color: transparent; box-shadow: inset 0 0 0 2px var(--c-border); color: var(--c-muted); cursor: not-allowed; }
  .on-dark .node--pending { background-color: transparent; box-shadow: inset 0 0 0 2px var(--w-42); color: var(--w-90); }
  @media (hover: hover) {
    .node--pending:hover, .on-dark .node--pending:hover { background-color: transparent; transform: none; }
  }
  .socials__note { margin-top: var(--space-12); font-size: var(--t-caption); color: var(--c-muted); }
}

/* gallery — named jobs. The frame, the rail and the tiles are the kit's; this is the caption and the rows.
   Layer: components. */
@layer components {
  .gallery__card { margin: 0; scroll-snap-align: start; }
  .gallery__ph { aspect-ratio: 4 / 3; }
  .gallery__ph img { height: 100%; object-fit: cover; }
  .gallery__cap { padding-top: var(--space-12); }
  .gallery__meta { margin-top: var(--space-4); font-size: var(--t-caption); color: var(--c-muted); }
  .gallery__rows { display: grid; gap: var(--space-64); }
  .gallery__row { margin: 0; }
  /* layout feature: a lead job (seven parts) and two beside it (five), on the dark band. The words sit over the photograph, at
     its foot, on a gradient that is the palette's own dark. */
  .gallery__top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-24); margin-bottom: var(--space-48); }
  .gallery__top .head { margin-bottom: 0; }
  .gallery__go { margin-top: var(--space-48); }
  .jobs-feature { display: grid; gap: var(--space-24); }
  .jobs-feature__side { display: grid; gap: var(--space-24); }
  @media (min-width: 900px) { .jobs-feature { grid-template-columns: 7fr 5fr; } }
  .job { position: relative; margin: 0; color: #FFFFFF; transition: transform var(--hover-move) var(--hover-ease); }
  .job__ph { height: 100%; min-height: 260px; aspect-ratio: auto; }
  .job--lead .job__ph { min-height: 380px; }
  @media (min-width: 900px) { .job--lead .job__ph { min-height: 560px; } }
  .job__ph img { height: 100%; min-height: inherit; object-fit: cover; }
  .job__cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-64) var(--space-24) var(--space-24);
    background: linear-gradient(to top, rgba(var(--c-dark-rgb), .94) 0%, rgba(var(--c-dark-rgb), .8) 55%, rgba(var(--c-dark-rgb), 0) 100%);
    border-radius: 0 0 var(--r-xs) var(--r-xs); pointer-events: none;
  }
  .job__loc {
    display: inline-flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-12); padding: var(--space-8) var(--space-12) var(--space-8) var(--space-8);
    border-radius: var(--r-control); background-color: #FFFFFF; color: var(--c-dark); font-size: var(--t-caption); font-weight: var(--fw-semibold); line-height: 1;
  }
  .job__loc svg { width: 14px; height: 14px; fill: currentColor; }
  .job__loc .pend { color: var(--c-dark); }
  .job__what { margin: 0; max-width: 24ch; font-family: var(--f-display); font-weight: var(--fw-card); font-size: var(--t-card); line-height: var(--lh-card); letter-spacing: var(--tr-card); }
  .job--lead .job__what { font-size: var(--t-sm-heading); }
  @media (hover: hover) {
    .job:hover { transform: translateY(var(--lift-card)); }
    .job:hover .frame img { transform: scale(var(--zoom-img)); }
  }
  @media (prefers-reduced-motion: reduce) { .job:hover, .job:hover .frame img { transform: none; } }

  /* a job shown as a before and an after, or in stages, above the list of jobs */
  .gallery__feature + .gallery__feature, .gallery__feature + .rail-wrap, .gallery__feature + .gallery__grid, .gallery__feature + .gallery__rows { margin-top: var(--space-64); }
}

/* reviews — a customer's words on a card. The tiles and the rail are the kit's. Layer: components. */
@layer components {
  .say { margin: 0; padding: var(--space-32); background-color: var(--c-card); border-radius: var(--r-surface); box-shadow: var(--shadow-subtle); }
  .band--alt .say { box-shadow: var(--shadow-standard); }
  /* the big opening quote mark is decoration: 52px, so --c-caption's 3:1 clears the floor for large text */
  .say__q { display: block; font-family: var(--f-display); font-weight: var(--fw-strong); font-size: var(--t-numeral); line-height: .8; color: var(--c-caption); }
  .say__stars { display: block; margin-top: var(--space-8); font-size: var(--t-card); line-height: 1; color: var(--c-label); }
  .say blockquote { margin: var(--space-16) 0 0; font-size: var(--t-card); line-height: 1.55; }
  .say blockquote p { margin: 0; }
  .say__who { margin-top: var(--space-16); font-size: var(--t-body-sm); color: var(--c-muted); }

  /* a review that names its job: the job in a tag above the quote (the highlight, tinted, in the shape a button has), the quote in
     the display face, and the name at the foot in the link colour */
  .say__job {
    display: inline-block; padding: var(--space-8) var(--space-16) var(--space-8) var(--space-12);
    border-radius: var(--r-control); background-color: color-mix(in srgb, var(--c-highlight) 26%, var(--c-card));
    color: var(--c-ink); font-size: var(--t-caption); font-weight: var(--fw-semibold); line-height: 1;
  }
  .say--job { display: flex; flex-direction: column; }
  .say--job .say__job { align-self: flex-start; }
  .say--job blockquote { font-family: var(--f-display); font-weight: var(--fw-regular); }
  .say--job .say__who { margin-top: auto; padding-top: var(--space-16); color: var(--c-link); font-weight: var(--fw-semibold); }
  .say--job .say__stars { margin-top: var(--space-12); }

  .say-list { display: grid; gap: var(--space-24); max-width: var(--content-max-text); }
  .say--large { padding: var(--space-48); }

  .say__src, .say__rating { margin-top: var(--space-24); font-size: var(--t-body-sm); color: var(--c-muted); }
  .say__rating { margin-top: 0; margin-bottom: var(--space-24); font-weight: var(--fw-semibold); color: var(--c-ink); }

  /* ground: photo. A photograph behind the whole band, moving slower than the page (parallax.js), under a shade of the dark. The heading
     turns white through on-dark on the head alone; the cards stay white with dark text. overflow: hidden clips the photograph to the
     band's own corner (shape tag). --c-dark is the colour until the photograph loads. */
  .rv--ground { position: relative; overflow: hidden; isolation: isolate; background-color: var(--c-dark); }
  /* the rating and the source line sit on the band, not in a card: they turn white with the head */
  .rv--ground .say__rating { color: #FFFFFF; }
  .rv--ground .say__src { color: var(--w-90); }
  .rv--ground .say__src .tl { color: #FFFFFF; }
  .rv-ground { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
  .rv-ground::after { content: ""; position: absolute; inset: 0; background: rgba(var(--c-dark-rgb), .78); }
  /* the photograph is taller than the band by the distance it has to travel (--extra) and shifted by --y, both set by parallax.js;
     without them (reduced motion, no script) both are 0 and it sits still, filling the band */
  .rv-ground img {
    position: absolute; left: 0; width: 100%; max-width: none; object-fit: cover;
    top: calc(-1 * var(--extra, 0px) / 2); height: calc(100% + var(--extra, 0px));
    transform: translateY(var(--y, 0px)); will-change: transform;
  }
}

/* field — text, phone, email, message, select and file. Layer: components.
   A control's edge is --c-field-edge, a swatch that reaches 3:1 (placement), NOT --c-border,
   which is decorative and often 1.3:1. That swap is the difference between a form you can see
   and one you cannot. Nothing here needs JavaScript. */
@layer components {
  .fields { display: grid; gap: var(--space-12); }
  .fields--2 { grid-template-columns: 1fr 1fr; }
  .field { display: grid; gap: var(--space-4); }
  .field > span { font-weight: var(--fw-semibold); font-size: var(--t-caption); color: var(--c-muted); }

  .field input, .field select, .field textarea {
    width: 100%; min-height: 44px; padding: 10px var(--space-12);
    border: 1px solid var(--c-field-edge);
    border-radius: var(--r-control);
    background-color: var(--c-card); color: var(--c-ink);
    font: var(--fw-regular) var(--t-body) / 1.4 var(--f-body);
    transition: border-color var(--hover-fast) var(--hover-ease), box-shadow var(--hover-fast) var(--hover-ease);
  }
  .field textarea { min-height: 76px; resize: vertical; }
  /* shape tag: a button has one round end; a text box does not */
  [data-shape="tag"] .field input, [data-shape="tag"] .field select, [data-shape="tag"] .field textarea { border-radius: var(--r-sm); }
  .field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--c-link); box-shadow: var(--focus-ring);
  }
  .field input::placeholder, .field textarea::placeholder { color: var(--c-muted); opacity: 1; }
  .field input[type="file"] { padding: var(--space-8) var(--space-12); }
}

/* quote — the form card. The fields and buttons are their own components. Layer: components. */
@layer components {
  .quote { padding: var(--space-32); background-color: var(--c-card); border-radius: var(--r-surface); box-shadow: var(--shadow-standard); }
  .quote .h3 { margin-bottom: var(--space-16); }
  .quote__go { margin-top: var(--space-16); }
  .quote__ps { margin-top: var(--space-12); font-size: var(--t-caption); color: var(--c-muted); }
  .quote__reply { font-family: var(--f-display); font-weight: var(--fw-card); font-size: var(--t-card); letter-spacing: var(--tr-card); color: var(--c-ink); }
  /* inside the card (the hero puts it under the form's heading) the reply promise is a line, not a second heading */
  .quote .quote__reply { margin: var(--space-8) 0 0; font-family: var(--f-body); font-weight: var(--fw-medium); font-size: var(--t-body-sm); letter-spacing: 0; color: var(--c-muted); }
  /* placement bleed: the band is a photograph with the form in a panel on it */
  .bleed { padding-block: var(--sec-y); }
  .bleed__in { display: grid; gap: var(--space-48); align-items: center; }
  @media (min-width: 900px) { .bleed__in { grid-template-columns: 1fr minmax(0, 520px); gap: var(--space-64); } }
  /* On a phone the words sit at the top of a tall photograph, where the kit's bottom-up scrim is at its lightest, and the small label above
     the heading is the hardest text to hold. So under 900px the whole photograph takes a flat scrim (found by the showcase sweep: the label
     failed on two palettes). From 900 the words are at the left, where the left-hand gradient is heaviest. */
  @media (max-width: 899px) { .bleed.ground::after { background: rgba(var(--c-dark-rgb), .86); } }
  .bleed__ways { display: flex; flex-wrap: wrap; gap: var(--space-12); margin-top: var(--space-32); }
  .bleed .quote { box-shadow: var(--shadow-deep); }
  /* shape tag: the panel carries the band's own big corner */
  [data-shape="tag"] .bleed .quote { border-top-right-radius: var(--r-band); }

  /* under the card, in the hero: the honest other ways in */
  .quote__alt { display: grid; gap: var(--space-8); margin-top: var(--space-24); }
  .quote__alt p { margin: 0; font-size: var(--t-body-sm); color: var(--c-muted); }

  /* aside faq: five questions in the left column, the form on the right. The markup is in the phone's reading order (head, form,
     questions, buttons) and stays there: a phone reads it as it is, and from 900px grid areas put the questions and the buttons under
     the heading, beside the form, without reordering anything, so Tab always follows what the eye reads. */
  .bleed--faq .bleed__in { grid-template-areas: "head" "form" "faq" "ways"; row-gap: var(--space-32); }
  .bleed--faq .bleed__words { grid-area: head; }
  .bleed--faq .quote { grid-area: form; }
  .bleed--faq .bleed__faq { grid-area: faq; }
  .bleed--faq .bleed__ways { grid-area: ways; margin-top: 0; }
  @media (min-width: 900px) {
    .bleed--faq .bleed__in { grid-template-areas: "head form" "faq form" "ways form"; align-items: start; row-gap: var(--space-24); }
    .bleed--faq .quote { align-self: center; }
  }
  .bleed__faq-h { margin: 0 0 var(--space-16); font-family: var(--f-display); font-weight: var(--fw-medium); font-size: 20px; line-height: 1.3; color: #FFFFFF; }
  .bleed__faq-list { display: grid; gap: 10px; max-width: 36rem; }
  /* white cards on the dark band; .on-light on each puts the dark text back inside them */
  .bleed__faq .qa { margin-top: 0; background-color: #FFFFFF; box-shadow: var(--shadow-standard); border-radius: var(--r-surface); }
  .bleed__faq .qa > summary { display: grid; grid-template-columns: 1fr 22px; gap: var(--space-12); align-items: center; padding: 14px 18px; font-family: var(--f-display); font-size: 17px; line-height: 1.3; }
  .qa__chev { width: 22px; height: 22px; fill: var(--c-accent); transition: transform 200ms ease-out; }
  .qa[open] .qa__chev { transform: rotate(180deg); }
  .bleed__faq .qa__a { padding: 0 18px 16px; color: var(--c-muted); font-size: 15px; line-height: 1.55; }
  .bleed__faq .qa__a p { margin: 0; }
  .bleed__faq .qa__a p + p { margin-top: var(--space-8); }
  .bleed__faq .voice { margin: 0; }
  @media (prefers-reduced-motion: reduce) { .qa__chev { transition: none; } }
}

/* faq — a native details accordion. Layer: components. */
@layer components {
  .faq__col { max-width: var(--content-max-text); }
  .qa { margin-top: var(--space-12); border-radius: var(--r-surface); background-color: var(--c-card); box-shadow: var(--shadow-subtle); }
  .qa > summary {
    list-style: none; cursor: pointer;
    padding: var(--space-24);
    font-family: var(--f-display); font-weight: var(--fw-card); font-size: var(--t-body); letter-spacing: var(--tr-card);
    transition: color var(--hover-fast) var(--hover-ease);
  }
  .qa > summary::-webkit-details-marker { display: none; }
  @media (hover: hover) { .qa > summary:hover { color: var(--c-link); } }
  .qa__a { padding: 0 var(--space-24) var(--space-24); color: var(--c-muted); font-size: var(--t-body-sm); }
  .qa__a p:first-child { margin-top: 0; }
}

/* areas — the radius line, the list of places and the postcode check. Layer: components. */
@layer components {
  .areas__radius {
    margin: 0 0 var(--space-24);
    font-family: var(--f-display); font-weight: var(--fw-card); font-size: var(--t-card); line-height: var(--lh-card); letter-spacing: var(--tr-card);
  }
  .areas__wait { margin: 0; }
  .areas__split { align-items: start; }

  /* a list, not a row of chips: chips read as buttons, and these do nothing */
  .places { list-style: none; margin: 0; padding: 0; columns: 9rem 3; column-gap: var(--space-32); }
  .places li { break-inside: avoid; padding: var(--space-4) 0; }

  /* display marquee: one line of large type, drifting left, the list twice so the loop has no seam */
  .areas--marquee { padding-bottom: 0; }
  .areas--marquee .areas__check { margin-top: var(--space-32); }
  .marquee { --marquee-loop: 60s; margin-top: var(--space-32); overflow: hidden; border-block: 1px solid var(--c-border); padding-block: var(--space-32); background-color: var(--c-bg); }
  .marquee__track { display: flex; width: max-content; animation: marquee-drift var(--marquee-loop) linear infinite; }
  .marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
  .marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
  .marquee li {
    display: flex; align-items: center; padding-right: var(--space-32); white-space: nowrap;
    font-family: var(--f-display); font-weight: var(--fw-card); font-size: clamp(var(--t-sm-heading), 4.4vw, 56px); line-height: 1; letter-spacing: var(--tr-section); color: var(--c-ink);
  }
  /* between places, a small mark in the accent, in the shape a button has */
  .marquee li::after { content: ""; width: 22px; height: 14px; margin-left: var(--space-32); background-color: var(--c-accent); border-radius: var(--r-control); }
  @keyframes marquee-drift { to { transform: translateX(-50%); } }
  @media (prefers-reduced-motion: reduce) {
    .marquee { padding-inline: var(--pad-x); }
    .marquee__track { width: auto; animation: none; }
    .marquee ul { flex-wrap: wrap; row-gap: var(--space-16); }
    .marquee ul + ul { display: none; }
  }
  .areas__check .h3 { margin-bottom: var(--space-4); }
  .check__row { display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: end; margin-top: var(--space-16); }
  .check__row .field { flex: 1 1 12rem; }
  /* the live region stays in the page when empty, so a screen reader hears it change; it just takes no space */
  .check__out { margin: 0; font-size: var(--t-body-sm); color: var(--c-muted); }
  .check__out:not(:empty) { margin-top: var(--space-16); }
}

/* hours — a definition list as a two-column table. Layer: components. */
@layer components {
  .hours { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: var(--space-12) var(--space-24); }
  .hours dt { color: var(--c-muted); font-size: var(--t-body-sm); }
  .hours dd { margin: 0; font-size: var(--t-body-sm); font-weight: var(--fw-semibold); text-align: right; }
  .hours dd .pend { font-weight: var(--fw-regular); }
}

/* contact — a row of ways to reach them. Layer: components. */
@layer components {
  .ways { display: grid; gap: var(--space-32); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  /* each way is a column, so the buttons line up along the bottom whatever the description's length */
  .way { display: flex; flex-direction: column; align-items: flex-start; }
  .way p { flex: 1 0 auto; margin-top: var(--space-4); color: var(--c-muted); font-size: var(--t-body-sm); }
  .way .btn { margin-top: var(--space-16); max-width: 100%; overflow-wrap: anywhere; }
}

/* action-bar — fixed to the bottom of a phone screen. Hidden until the script says the hero has scrolled away; with the
   script blocked it is simply shown. Not drawn from 960px up, where the header has the number. Layer: components. */
@layer components {
  .ab, .ab-spacer { --_h: 64px; }                       /* 8px + a 48px button + 8px */
  .ab-spacer { height: calc(var(--_h) + env(safe-area-inset-bottom)); }

  .ab {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: flex; gap: var(--space-8);
    padding: var(--space-8) var(--pad-x) calc(var(--space-8) + env(safe-area-inset-bottom));
    background-color: var(--c-bg);
    box-shadow: 0 -12px 32px rgba(var(--c-primary-rgb), .14);
    /* hidden means hidden: not drawn, and not reachable by Tab, until it slides in. A visibility transition over the same
       duration is visible for the whole slide in either direction, so nothing has to be timed by hand. */
    transform: translateY(110%); visibility: hidden;
    transition: transform var(--hover-move) var(--hover-ease), visibility var(--hover-move) linear;
  }
  .ab .btn { flex: 1 1 0; min-width: 0; padding-inline: var(--space-8); }
  .ab.is-on:not(.is-typing), html:not(.js) .ab { transform: none; visibility: visible; }

  @media (min-width: 960px) { .ab, .ab-spacer { display: none; } }
  @media (prefers-reduced-motion: reduce) { .ab { transition: none; } }
}
