/* ==========================================================================
   AAA — homepage stylesheet.

   Every value here comes from one of the four skills, not from eye:
     colour     .claude/skills/palette-expansion  (Navy & Red, --classic)
     type       .claude/skills/typography-pairing (Space Grotesk / Public Sans / Aleo)
     structure  .claude/skills/layout-system      (containers, spacing, radius)
     pointer    .claude/skills/hover-effects      (durations, lifts, shadows)
   plus design-reference/output-calibration.md, which is the house standard:
   soft corners, things that arrive and answer, round social nodes.

   Two contrast failures the expansion reported are fixed BY PLACEMENT here —
   where a colour is allowed to go — and not by changing a value (brief 3):

     1. --c-caption (#778AA1) is 3.5:1 on white. That clears 3:1 for large text
        and fails 4.5:1 for small. So it is never used below 24px: all small
        print takes --c-muted (6.2:1). It survives on the big numerals only.
     2. --c-border (#E0E0E0) is 1.3:1 on white — decorative, and nowhere near
        the 3:1 a control's edge needs. So a form field's edge takes
        --c-field-edge, which is the mid-dark: exactly the swap
        Archive/prospects/design-questionnaire-web-v2/lib/placement.js makes. No colour
        was altered to achieve either.
   ========================================================================== */

@import url("assets/fonts/fonts.css");

:root {
  /* ---- colour: palette-expansion, Navy & Red, classic ------------------- */
  --c-primary: #23538E;
  --c-dark: #0C1D32;          /* the primary, 65% to black */
  --c-mid: #17365C;           /* the primary, 35% to black */
  --c-accent: #D9253E;
  --c-accent-hover: #B81F42;  /* the accent, 15% darker, 5 degrees cooler */
  --c-highlight: #C6D4E6;
  --c-bg: #FFFFFF;            /* classic: the ground stays neutral */
  --c-alt: #F5F5F5;
  --c-card: #FFFFFF;
  --c-border: #E0E0E0;        /* DECORATIVE ONLY — 1.3:1, never a control's edge */
  --c-field-edge: #17365C;    /* the placement fix: a field edge you can see */
  --c-ink: #0C1016;
  --c-muted: #4A6382;         /* 6.2:1 — every piece of small print */
  --c-caption: #778AA1;       /* 3.5:1 — 24px and up only */
  --c-on-accent: #FFFFFF;     /* 4.9:1 */
  /* the white-on-dark ladder — these exact steps, no others */
  --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: typography-pairing ----------------------------------------- */
  --f-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Public Sans', 'Segoe UI', system-ui, sans-serif;
  --f-voice: 'Aleo', Georgia, serif;   /* italic only, and never a headline */

  /* ---- structure: layout-system ----------------------------------------- */
  --content-max: 1600px;   /* 1,440px of content inside 80px padding at 1920 (was 1,168) */
  --content-max-text: 768px;
  --pad-x: 24px;
  --sec-y: 72px;
  --join-f: .25;   /* each side of a band keeps a quarter of --sec-y (demo3's tight joins, 2026-09-29) */
  --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;
  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-pill: 999px;
  --grid-gap: 24px;

  /* ---- pointer: hover-effects ------------------------------------------- */
  --hover-fast: 200ms;
  --hover-move: 300ms;
  --hover-slow: 500ms;
  --hover-ease: ease-out;
  --c-primary-rgb: 35, 83, 142;
  --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);

  /* ---- motion: patterns/motion-kit.md ----------------------------------- */
  --m-in: 500ms;
  --m-unmask: 900ms;
  --m-step: 60ms;
  --m-ease: cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 720px)  { :root { --pad-x: 32px; --sec-y: 112px; } }
@media (min-width: 1080px) { :root { --pad-x: 56px; --sec-y: 144px; } }
/* side padding keeps growing past 1440 so a big monitor gets a margin, not a strip */
@media (min-width: 1440px) { :root { --pad-x: clamp(56px, 4.2vw, 80px); } }

/* ==========================================================================
   1. 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: 400 16px/1.8 var(--f-body);
  -webkit-font-smoothing: antialiased;
}

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

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

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

.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-sm); 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, so an anchor jump has to clear it or it lands with the
   heading already under the bar */
.band, .bleed, .hero, .foot { scroll-margin-top: 76px; }

/* Every join on this page is a colour change (white and --c-alt alternate, and the two photo
   bands sit between them), so each side keeps a quarter of --sec-y: 72px of empty page between
   two bands on desktop, 36px on a phone. demo3's tight joins, carried here 2026-09-29. */
.band { padding-block: calc(var(--sec-y) * var(--join-f)); }
.band--alt { background-color: var(--c-alt); }
.band--dark { background-color: var(--c-dark); color: var(--w-90); }

/* ---- type roles. Zero ALL-CAPS roles on this page: the audit's ceiling is
   10% of text elements, and the two builds that passed it shipped at 0%. ---- */

.h1, .h2, .h3, .h4 { font-family: var(--f-display); margin: 0; }
.h1 { font-weight: 700; font-size: clamp(36px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -0.03em; }
.h2 { font-weight: 700; font-size: clamp(32px, 3.4vw, 52px); line-height: 1.12; letter-spacing: -0.02em; }
.h3 { font-weight: 500; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.h4 { font-weight: 500; font-size: 16px; line-height: 1.3; letter-spacing: -0.01em; }

.lead {
  margin: var(--space-12) 0 0;
  font-size: 20px; line-height: 1.6; color: var(--c-muted);
  max-width: 62ch;
}
.band--dark .lead, .bleed .lead, .on-dark .lead, .tile--wide .lead { color: var(--w-90); }

p { margin: var(--space-16) 0 0; }

/* the second voice — Aleo, italic, never a headline (register-guide 4) */
.voice {
  font-family: var(--f-voice); font-style: italic; font-weight: 400;
  color: var(--c-muted);
}
.band--dark .voice, .bleed .voice, .on-dark .voice, .tile--wide .voice { color: var(--w-90); }

/* a big decorative numeral: 52px, so --c-caption's 3.5:1 clears the 3:1 floor */
.numeral {
  display: block;
  font-family: var(--f-display); font-weight: 700; font-size: 52px;
  line-height: 1; letter-spacing: -0.03em; color: var(--c-caption);
}
.band--dark .numeral, .bleed .numeral, .on-dark .numeral, .tile--wide .numeral { color: var(--c-highlight); }

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

/* ==========================================================================
   2. Buttons and links
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8);
  padding: 14px var(--space-24);
  min-height: 48px;
  border: 0; border-radius: var(--r-sm);
  background-color: var(--c-accent); color: var(--c-on-accent);
  font: 600 14px/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(-1px); }
}

.btn--ghost {
  background-color: transparent;
  color: var(--c-primary);
  box-shadow: inset 0 0 0 2px var(--c-primary);
  transition: background-color var(--hover-fast) var(--hover-ease),
              color var(--hover-fast) var(--hover-ease);
}
@media (hover: hover) {
  .btn--ghost:hover { background-color: var(--c-primary); color: #FFFFFF; }
}
.band--dark .btn--ghost, .on-dark .btn--ghost, .bleed .btn--ghost, .hero__words .btn--ghost {
  color: #FFFFFF; box-shadow: inset 0 0 0 2px var(--w-42);
}
@media (hover: hover) {
  .band--dark .btn--ghost:hover, .on-dark .btn--ghost:hover, .bleed .btn--ghost:hover,
  .hero__words .btn--ghost:hover {
    background-color: #FFFFFF; color: var(--c-dark);
  }
}

.tl {
  color: var(--c-primary); font-weight: 600;
  text-underline-offset: 3px;
  transition: color var(--hover-fast) var(--hover-ease);
}
@media (hover: hover) { .tl:hover { color: var(--c-accent); } }

/* ==========================================================================
   3. Header
   ========================================================================== */

.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: 64px;
}
.hd__logo { display: block; margin-right: auto; flex: 0 1 104px; min-width: 56px; }
.hd__logo img { width: 100%; height: auto; }
/* on a phone the logo, the button and the menu icon share one row, and the row never wraps: the icon
   keeps its 44px, the button keeps one line and trades some padding, and the logo gives way first */
.hd .btn { white-space: nowrap; padding-inline: var(--space-16); min-height: 44px; flex: none; }
.menu { flex: none; }
@media (max-width: 359px) { .hd__in { gap: var(--space-8); padding-inline: var(--space-16); } }

.hd__nav { display: none; gap: var(--space-24); }
.hd__nav a {
  color: var(--c-muted); font-weight: 500; font-size: 14px; 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: 600; font-size: 14px; text-decoration: none;
  transition: color var(--hover-fast) var(--hover-ease);
}
@media (hover: hover) { .hd__call:hover { color: var(--c-primary); } }

@media (min-width: 960px) {
  .hd__nav { display: flex; }
  .hd__call { display: inline-flex; }
  .menu { display: none; }
  /* the menu sits beside the name; the phone and the button keep the right-hand corner */
  .hd__logo { margin-right: var(--space-32); }
  .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-sm);
  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-primary); } }
.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: 500; text-decoration: none;
  transition: color var(--hover-fast) var(--hover-ease);
}
@media (hover: hover) { .menu__panel a:hover { color: var(--c-primary); } }

/* ==========================================================================
   4. Hero — photograph as the ground, the quote form over it
   ========================================================================== */

/* One grid cell, three layers: the photograph, the drawn bay, the words and the
   form. The photograph is stretched by the cell rather than sizing it, so the
   hero is as tall as its content at every width and the form never has to be
   absolutely positioned over a picture it might outgrow. */
.hero { display: grid; background-color: var(--c-dark); }

.hero__ph { grid-area: 1 / 1; position: relative; min-height: 58vh; overflow: hidden; }
.hero__ph picture { display: block; height: 100%; }
.hero__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* the scrim is at full depth from the first frame. Fading it in over 900ms
   leaves the headline on the raw picture for most of a second, which passes a
   contrast audit and fails a human (motion-kit.md 2). */
/* Two gradients, not one: darkest at the bottom where the headline sits and
   along the left where it runs, and near-clear at the top right so the
   photograph is still a photograph. */
.hero__ph::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(12,29,50,.90) 0%, rgba(12,29,50,.56) 48%, rgba(12,29,50,.30) 100%),
    linear-gradient(to right, rgba(12,29,50,.60) 0%, rgba(12,29,50,.12) 60%, rgba(12,29,50,0) 100%);
}

/* the drawn device: a scaffold elevation over the photograph, once, large */
.hero__bay {
  grid-area: 1 / 1; z-index: 1;
  display: grid; place-items: start end;
  padding: var(--space-24) var(--pad-x);
  color: #FFFFFF; opacity: .16; pointer-events: none;
}
.hero__bay img { width: min(44vw, 440px); height: auto; }

.hero__in {
  grid-area: 1 / 1; z-index: 2; position: relative;
  display: grid; align-content: end; gap: var(--space-32);
  width: 100%; max-width: var(--content-max); margin-inline: auto;
  padding: var(--space-48) var(--pad-x);
}
.hero .h1 { color: #FFFFFF; max-width: 15ch; }
.hero__sub { margin-top: var(--space-16); color: var(--w-90); font-size: 18px; max-width: 46ch; }
.hero__foot { display: flex; flex-wrap: wrap; gap: var(--space-12); margin-top: var(--space-32); }

/* the quote card. layout-system 4a: --r-lg is for a card that hangs over an
   edge, which is what this does at 1080 and up. */
.quote {
  background-color: var(--c-card);
  border-radius: var(--r-lg);
  padding: var(--space-24);
  box-shadow: var(--shadow-deep);
}
.quote .h3 { margin-bottom: var(--space-4); }
.quote__note { margin-top: var(--space-4); font-size: 14px; color: var(--c-muted); }

/* Below 1080 the words sit in the middle of a tall hero rather than at its
   foot, so a bottom-weighted scrim leaves the headline on the sky — measured at
   2.30:1. The phone gets a flatter, deeper one. */
@media (max-width: 1079px) {
  .hero__ph::after {
    background: linear-gradient(to top,
      rgba(12,29,50,.95) 0%, rgba(12,29,50,.86) 46%, rgba(12,29,50,.74) 100%);
  }
}

@media (min-width: 1080px) {
  .hero__ph { min-height: 84vh; }
  .hero__in {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: var(--space-64);
    align-content: normal; align-items: end;
    padding-block: var(--space-64);
  }
  .hero__card { grid-column: 2; align-self: center; }
}

/* ---- the two routes. AAA serve homeowners AND trade, which pull opposite
   ways, so the page asks once rather than splitting the difference. ---- */
.routes {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8);
  margin-bottom: var(--space-16);
}
.routes button {
  min-height: 44px; padding: var(--space-8) var(--space-12);
  border: 0; border-radius: var(--r-pill);
  background-color: var(--c-alt); color: var(--c-muted);
  font: 600 14px/1.2 var(--f-body); cursor: pointer;
  transition: background-color var(--hover-fast) var(--hover-ease),
              color var(--hover-fast) var(--hover-ease);
}
.routes button[aria-pressed="true"] { background-color: var(--c-primary); color: #FFFFFF; }
@media (hover: hover) {
  .routes button:hover { color: var(--c-ink); }
  .routes button[aria-pressed="true"]:hover { background-color: var(--c-mid); color: #FFFFFF; }
}

.fields { display: grid; gap: var(--space-12); }
.fields--2 { grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: var(--space-4); align-content: start; }
.field > span { font-weight: 600; font-size: 12px; 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);   /* the placement fix — see the file header */
  border-radius: var(--r-sm);
  background-color: var(--c-card); color: var(--c-ink);
  font: 400 16px/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; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--c-primary); box-shadow: var(--focus-ring);
}
.field input::placeholder, .field textarea::placeholder { color: var(--c-muted); opacity: 1; }

.quote .btn { width: 100%; margin-top: var(--space-16); }
.quote__ps { margin-top: var(--space-12); font-size: 13px; color: var(--c-muted); }

/* the honeypot: in the document for bots, out of sight and out of the tab order for people */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* a field's error: the message under it, and its edge in the accent. The accent
   is 4.9:1 on white, so it carries small text without a darker token. */
.field__err { min-height: 0; font-size: 12px; line-height: 1.4; color: var(--c-accent-hover); }
.field__err:empty { display: none; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--c-accent-hover);
}

.quote__msg { margin-top: var(--space-12); font-size: 14px; color: var(--c-accent-hover); }
.quote__msg:empty { display: none; }

.quote .btn:disabled { opacity: .65; cursor: progress; }
@media (hover: hover) { .quote .btn:disabled:hover { transform: none; background-color: var(--c-accent); } }

/* the confirmation that takes the form's place; focused on arrival so a screen
   reader lands on it */
.quote__done { padding: var(--space-16) 0; }
.quote__done:focus { outline: none; }
.quote__done p { color: var(--c-muted); font-size: 15px; }
.quote__local { font-family: var(--f-voice); font-style: italic; font-size: 14px; }

/* ==========================================================================
   5. Tiles — the layout: everything as a grid of boxes
   ========================================================================== */

.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); } }

.tile {
  padding: var(--space-32);
  background-color: var(--c-card);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-subtle);
}
.tile p { color: var(--c-muted); font-size: 15px; max-width: 64ch; }
.band--alt .tile { box-shadow: var(--shadow-standard); }

/* the featured box the grid layout is built around (layout type 6: "often one
   large featured box over smaller ones") */
.tile--wide { background-color: var(--c-dark); }
.tile--wide .h3 { color: #FFFFFF; }
/* a dark tile is a dark context: its copy, its form labels and its output line
   all move onto the white ladder, or they sit at 1.5:1 on navy */
.tile--wide p,
.tile--wide .field > span,
.tile--wide .check__out { color: var(--w-90); }
.tile--wide .field input { border-color: var(--w-42); }
@media (min-width: 1080px) { .tile--wide { grid-column: span 2; } }

/* Why pick us: six points, a line icon, a heading and one sentence (after Coventry Scaffolding,
   British Gas and Brown & Root). Icon beside the words on a phone, above them from 1080. No card
   and no badge behind the icon, so the element audit doesn't count them as badges. */
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-24) var(--space-32); }
@media (min-width: 640px) { .points { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .points { grid-template-columns: repeat(3, 1fr); gap: var(--space-48) var(--space-64); } }
.point { display: grid; grid-template-columns: 40px 1fr; column-gap: var(--space-16); align-content: start; }
.point__i {
  grid-row: span 2; width: 36px; height: 36px;
  fill: none; stroke: var(--c-primary); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.point .h3 { font-size: 18px; align-self: center; }
.point p { grid-column: 2; margin-top: var(--space-4); color: var(--c-muted); font-size: 15px; line-height: 1.6; }
@media (min-width: 1080px) {
  .point { grid-template-columns: 1fr; }
  .point__i { grid-row: auto; width: 44px; height: 44px; margin-bottom: var(--space-16); }
  .point p { grid-column: 1; }
}

/* the services grid — denser, so every job is findable without a category */
/* Eight photo cards, title only. Each whole card is a link, so it lifts and its
   photograph zooms inside the frame (output-calibration §2; hover-effects: a card
   lifts only when the whole card is a link). The hover sits on the <a>, not the
   <li>: the stagger entrance sets transform on the <li> and would out-specify it
   (the dead .tile--link:hover bug, FILES.md). */
.svc-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--grid-gap); grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) { .svc-grid { grid-template-columns: repeat(4, 1fr); } }
.svc-card {
  display: block; height: 100%;
  background-color: var(--c-card); color: var(--c-ink); text-decoration: none;
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--hover-move) var(--hover-ease),
              box-shadow var(--hover-move) var(--hover-ease);
}
.band--alt .svc-card { box-shadow: var(--shadow-standard); }
.svc-card__ph { display: block; aspect-ratio: 4 / 3; overflow: hidden; background-color: var(--c-dark); }
.svc-card__ph picture { display: block; height: 100%; }
.svc-card__ph img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--hover-slow) var(--hover-ease);
}
.svc-card__t {
  display: block; padding: var(--space-16) var(--space-16) 0;
  font-family: var(--f-display); font-weight: 600; font-size: 16px; line-height: 1.3;
}
.svc-card__t:last-child { padding-bottom: var(--space-16); }
.svc-card__sub {
  display: block; padding: var(--space-4) var(--space-16) var(--space-16);
  font-size: 14px; color: var(--c-muted);
}
@media (hover: hover) {
  .svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-emphatic); }
  .svc-card:hover img { transform: scale(1.05); }
}
.svc__also { margin-top: var(--space-32); max-width: 68ch; color: var(--c-muted); }
.svc__also + .svc__after { margin-top: var(--space-12); }
.svc__after { margin-top: var(--space-32); }

/* ==========================================================================
   6. Work — a rail of named jobs. Free-licence stock photographs since 2026-09-29
   (Danny's call); the page is labelled fictional and credits.md names every source.
   ========================================================================== */

.rail {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 30%);
  gap: var(--grid-gap);
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: var(--space-16);
  /* thinned, not hidden: the buttons are the manual control the calibration
     asks for, and dragging the bar is the other one. Taking it away would
     leave a touch user guessing whether the row moves at all. */
  scrollbar-width: thin;
  scrollbar-color: var(--c-border) transparent;
}
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-track { background: transparent; }
.rail::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: var(--r-pill); }
@media (prefers-reduced-motion: reduce) { .rail { scroll-behavior: auto; } }
@media (max-width: 640px) { .rail { grid-auto-columns: minmax(230px, 76%); } }

.job { scroll-snap-align: start; margin: 0; }
.job__ph {
  aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--r-md);
  background-color: var(--c-dark);
  box-shadow: var(--shadow-subtle);
}
.job__ph picture { display: block; height: 100%; }
.job__ph img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--hover-slow) var(--hover-ease);
}
/* a photograph zooms inside its frame, and the card doesn't lift: it isn't a link (output-calibration §2) */
@media (hover: hover) { .job__ph:hover img { transform: scale(1.05); } }
.job__cap { padding-top: var(--space-12); }
.job__meta { margin-top: var(--space-4); font-size: 13px; color: var(--c-muted); }

.rail__ctl { display: flex; gap: var(--space-8); margin-top: var(--space-16); }
.rail__ctl button {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 0; border-radius: var(--r-pill);
  background-color: var(--c-primary); color: #FFFFFF; cursor: pointer;
  transition: background-color var(--hover-fast) var(--hover-ease),
              transform var(--hover-fast) var(--hover-ease);
}
/* -1px, not the -2px a round social node takes: check.mjs reads these as
   buttons, and they are — the same filled control as every other button on the
   page, only round. Consistency beats the shape argument. */
@media (hover: hover) {
  .rail__ctl button:hover { background-color: var(--c-mid); transform: translateY(-1px); }
}
.rail__ctl svg { width: 18px; height: 18px; fill: currentColor; }

/* The rail starts in line with the heading and runs out to the screen's right edge, so a card
   is cut by the screen, not by an invisible line, and the row reads as "there's more".
   100cqw = the section's width without the scrollbar (100vw would include it and scroll sideways).
   Older browsers drop the cqw declarations and keep the old boxed rail. */
#work { container-type: inline-size; }
.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);
}
/* a card is sized from the column, so ~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 */
@media (min-width: 641px) {
  .rail { grid-auto-columns: calc((min(100cqw, var(--content-max)) - 2 * var(--pad-x) - 2 * var(--grid-gap)) / 2.3); }
}
@media (min-width: 1080px) {
  .rail { grid-auto-columns: calc((min(100cqw, var(--content-max)) - 2 * var(--pad-x) - 2 * var(--grid-gap)) / 3.3); }
}

/* ==========================================================================
   7. Split bands — Who we are; What it costs; Areas
   ========================================================================== */

.split { display: grid; gap: var(--space-48); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-64); }
}

/* the Who we are photograph: framed 7:8 on a phone */
.about__ph {
  position: relative; overflow: hidden;
  aspect-ratio: 7 / 8;
  border-radius: var(--r-md);
  background-color: var(--c-dark);
}
.about__ph picture { display: block; height: 100%; }
.about__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* From 900 up the photograph runs to the screen's left edge and the words stay in the column.
   Square on the screen side, soft on the inside: output-calibration §3, "a photograph that runs
   to the viewport edge is not a frame". Height follows the words (min 560), not a 7:8 ratio,
   which at 1920 would make it over 1,100px tall. Phones keep it framed at 7:8. */
#about { container-type: inline-size; }
@media (min-width: 900px) {
  .split > .about__ph {
    --bleed: calc(max(0px, (100cqw - var(--content-max)) / 2) + var(--pad-x));
    margin-left: calc(-1 * var(--bleed));
    aspect-ratio: auto; min-height: 560px; align-self: stretch;
    border-radius: 0 var(--r-md) var(--r-md) 0;
  }
}

/* costs: the heading across, then the sample price and the four factors side by side */
.costs-row { display: grid; gap: var(--space-24); }
.costs-row > .tile--wide { grid-column: auto; }
@media (min-width: 900px) { .costs-row { grid-template-columns: 5fr 7fr; gap: var(--space-48); align-items: center; } }
.costs { display: grid; gap: var(--space-24); }
@media (min-width: 640px) { .costs { grid-template-columns: 1fr 1fr; gap: var(--space-24) var(--space-32); } }
.costs .h4 { margin-bottom: var(--space-4); }
.costs p { margin-top: var(--space-4); font-size: 15px; color: var(--c-muted); }

/* areas: the heading and the postcode check on one row */
.areas-row { display: grid; gap: var(--space-16); }
@media (min-width: 900px) { .areas-row { grid-template-columns: 1fr 1fr; gap: var(--space-64); align-items: end; } }

/* ==========================================================================
   8. Safety — full-bleed photograph with the words on it
   ========================================================================== */

/* Same construction as the hero, and for the same reason: the photograph is
   stretched by the grid cell rather than sizing it, so the band is always as
   tall as its own words. Absolutely positioning the words over a fixed-height
   picture worked at 1440 and put them on the white page below it at 390 — the
   contrast audit measured that as white on white, 1:1. */
.bleed {
  display: grid; position: relative; overflow: hidden;
  background-color: var(--c-dark); color: var(--w-90);
}
.bleed > :first-child { grid-area: 1 / 1; position: relative; min-height: 460px; overflow: hidden; }
.bleed picture { display: block; height: 100%; }
.bleed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bleed::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right,
    rgba(12,29,50,.96) 0%, rgba(12,29,50,.92) 52%, rgba(12,29,50,.62) 100%);
}
.bleed__in {
  grid-area: 1 / 1; position: relative; z-index: 1;
  display: grid; align-content: center;
  width: 100%; max-width: var(--content-max); margin-inline: auto;
  padding: var(--space-64) var(--pad-x);
}
.bleed .h2, .bleed .h4 { color: #FFFFFF; }

/* the same band mirrored — gradient and words on the right. The audit's
   "vary how sections open": two full-bleed photographs that open the same way
   are one template used twice. */
.bleed--right::after {
  background: linear-gradient(to left,
    rgba(12,29,50,.96) 0%, rgba(12,29,50,.92) 52%, rgba(12,29,50,.62) 100%);
}
.bleed__in--narrow { justify-items: end; }
.bleed__in--narrow > div { max-width: 620px; }
@media (max-width: 899px) {
  .bleed::after, .bleed--right::after {
    background: linear-gradient(to top,
      rgba(12,29,50,.96) 0%, rgba(12,29,50,.92) 60%, rgba(12,29,50,.86) 100%);
  }
  .bleed__in--narrow { justify-items: stretch; }
}

/* Get a quote with the common questions beside it (MKR's FAQ beside the form, as on demo3). The
   questions sit over the photograph, so the shade is deep across the whole band, not only the words' side. */
.bleed--faq::after { background: linear-gradient(to right, rgba(12,29,50,.94) 0%, rgba(12,29,50,.86) 100%); }
.bleed--faq .bleed__in { padding-block: var(--space-48); }
.quote-row { display: grid; gap: var(--space-32); }
@media (min-width: 900px) { .quote-row { grid-template-columns: 5fr 7fr; gap: var(--space-64); align-items: start; } }
.faq__h { color: #FFFFFF; margin-bottom: var(--space-4); }
.bleed .qa { color: var(--c-ink); margin-top: var(--space-8); }
.faq .qa > summary { padding: var(--space-16) var(--space-24); font-size: 16px; }

.safety { display: grid; gap: var(--space-24); margin-top: var(--space-32); max-width: 760px; }
@media (min-width: 720px) { .safety { grid-template-columns: 1fr 1fr; gap: var(--space-32); } }
.safety p { margin-top: var(--space-4); color: var(--w-90); font-size: 15px; }

/* ==========================================================================
   9. Small parts — what customers say, hours, the postcode check, questions
   ========================================================================== */

.say {
  padding: var(--space-32);
  background-color: var(--c-card); border-radius: var(--r-md);
  box-shadow: var(--shadow-subtle);
}
.say__q {
  display: block;
  font-family: var(--f-display); font-weight: 700; font-size: 52px; line-height: .8;
  color: var(--c-caption);
}
.say__t {
  margin-top: var(--space-16); font-size: 17px; line-height: 1.6;
  font-family: var(--f-voice); font-style: italic; color: var(--c-ink);
}
.say__who { margin-top: var(--space-16); font-size: 13px; color: var(--c-muted); }

.hours { margin: var(--space-24) 0 0; display: grid; grid-template-columns: 1fr auto; gap: var(--space-12) var(--space-24); }
.hours dt { color: var(--c-muted); font-size: 15px; }
.hours dd { margin: 0; font-size: 15px; text-align: right; }

.check { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.check .field { flex: 1 1 220px; }
.check .btn { align-self: end; }
.check__out { margin-top: var(--space-16); font-size: 15px; color: var(--c-muted); }

.qa {
  border-radius: var(--r-md); background-color: var(--c-card);
  box-shadow: var(--shadow-subtle); margin-top: var(--space-12);
}
.qa > summary {
  list-style: none; cursor: pointer;
  padding: var(--space-24);
  font-family: var(--f-display); font-weight: 500; font-size: 18px;
  transition: color var(--hover-fast) var(--hover-ease);
}
.qa > summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .qa > summary:hover { color: var(--c-primary); } }
.qa__a { padding: 0 var(--space-24) var(--space-24); color: var(--c-muted); font-size: 15px; }
.qa__a p:first-child { margin-top: 0; }


/* ==========================================================================
   10. Social nodes — patterns/social-nodes.md
   ========================================================================== */

.socials__row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.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);
  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(-2px); }
}
/* on a dark band the nodes read as holes punched in it, and the contrast works
   without touching the palette */
.on-dark .node { background-color: var(--w-12); color: #FFFFFF; }
@media (hover: hover) {
  .on-dark .node:hover { background-color: rgba(255,255,255,.22); transform: translateY(-2px); }
}
.socials__note { margin-top: var(--space-12); font-size: 13px; color: var(--w-90); }

/* ==========================================================================
   11. Footer and the one example notice
   ========================================================================== */

.notice {
  margin: 0; padding: var(--space-12) var(--pad-x);
  background-color: var(--c-mid); color: var(--w-90);
  font-size: 14px; text-align: center;
}
.notice a { color: #FFFFFF; }

/* Three columns (after Coventry Scaffolding, as on demo3): Talk to us · Hours · the mark with Find
   us. It took over the old Contact and Opening hours bands, 2026-09-29. No address: the firm is fictional. */
.foot { background-color: var(--c-dark); color: var(--w-90); padding-block: var(--space-48) var(--space-24); }
.foot__top { display: grid; gap: var(--space-32); }
@media (min-width: 900px) { .foot__top { grid-template-columns: 1fr 1fr 1fr; } }
.foot__logo { margin-bottom: var(--space-16); }
.foot__logo img { width: 128px; }
.foot__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-8); font-size: 14px; }
.foot__lines li { display: flex; align-items: center; gap: var(--space-12); color: var(--w-90); }
.foot__lines strong { color: #FFFFFF; font-weight: 600; }
.foot__lines svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--c-highlight); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.foot__lines a, .foot__btn {
  padding: 0; border: 0; background: none; font: inherit; cursor: pointer;
  color: #FFFFFF; text-decoration: none;
  transition: color var(--hover-fast) var(--hover-ease);
}
@media (hover: hover) { .foot__lines a:hover, .foot__btn:hover { color: var(--c-highlight); } }
.foot .hours { margin: 0; max-width: 340px; gap: var(--space-8) var(--space-24); }
.foot .hours dt, .foot .hours dd { font-size: 14px; }
.foot .hours dt { color: var(--w-60); }
.foot .hours dd { color: var(--w-90); }
.foot__h { margin: 0 0 var(--space-12); font-family: var(--f-display); font-weight: 500; font-size: 16px; color: #FFFFFF; }
.foot p { color: var(--w-90); font-size: 14px; }
.foot p a { color: #FFFFFF; text-underline-offset: 3px; }
.foot__small { margin-top: var(--space-32); padding-top: var(--space-16); border-top: 1px solid var(--w-12); color: var(--w-60); font-size: 13px; }

/* ==========================================================================
   12. Entrance motion — patterns/motion-kit.md. Three behaviours on this page:
   rise, stagger, unmask. One per band, each once.

   Every hidden state is behind .js, which the <head> sets on the first line.
   With the script blocked nothing on this page is ever invisible.
   ========================================================================== */

.js [data-in] { opacity: 0; }
.js [data-in].is-in { opacity: 1; }

.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; }

.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); }
.js [data-in="stagger"].is-in > :nth-child(7) { transition-delay: calc(var(--m-step) * 6); }
.js [data-in="stagger"].is-in > :nth-child(8) { transition-delay: calc(var(--m-step) * 7); }
/* past six they arrive together — a seventh delay is a queue, not a stagger */

/* 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; }

@media (prefers-reduced-motion: reduce) {
  .js [data-in], .js [data-in] > *, .js [data-in] img {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .btn:hover, .node:hover,
  .rail__ctl button:hover { transform: none; }
}


/* The way back to webhatcher's homepage, in the sample-page notice bar (added for the webhatcher copy only).
   The bar stays with the reader: sticky, one fixed height, above the page's own header, which now sticks
   just below it. The full message shows only where it fits on one line; elsewhere a short one does. */
:root { --notice-h: 52px; }
.notice {
  position: sticky; top: 0; z-index: 60;
  box-sizing: border-box; height: var(--notice-h); padding-block: 0;
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.notice > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice__short { display: inline; }
.notice__full { display: none; }
@media (min-width: 1000px) { .notice__short { display: none; } .notice__full { display: inline; } }
.notice__home {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 16px 0 12px;
  border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 999px;
  color: #FFFFFF; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color 200ms ease-out;
}
.notice__home svg { width: 16px; height: 16px; fill: currentColor; }
.notice__home:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
@media (hover: hover) { .notice__home:hover { background-color: rgba(255, 255, 255, .16); } }
.hd { top: var(--notice-h); }
.band, .bleed, .hero, .foot { scroll-margin-top: calc(76px + var(--notice-h)); }
