/* ==========================================================================
   AA Webworks — main stylesheet (Round 5: sleeker redesign)
   One file for the whole site. Change colours, fonts and spacing here first.
   Look: light pages, a floating navigation bar, pill buttons, soft rounded
   panels, and the job sheet as the one bold thing.
   ========================================================================== */

/* --- Font: Archivo (variable, self-hosted, Latin characters only) --- */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var.woff2") format("woff2-variations"),
       url("/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

/* --- Design tokens --- */
:root {
  /* Brand colours (slate and stone from the logo, hi-vis from site workwear) */
  --slate: #333c45;
  --deep-slate: #262d34;
  --muted: #4b5560;         /* secondary text on light backgrounds (6.7:1 on paper) */
  --stone: #d9d9d7;
  --line: #e2e4e7;          /* hairlines and panel borders */
  --paper: #f5f5f3;         /* page background */
  --mist: #eceef0;          /* subtle fills */
  --white: #ffffff;
  --hivis: #f2b600;
  --rule: #e4e4e1;          /* faint ruled lines on the job sheet */
  --wire: #b9c0c8;          /* connecting lines in the £40 a month diagram */

  /* Type */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --text-base: 1.125rem;    /* 18px body text */
  --text-small: 1rem;
  --text-h1: clamp(2.6rem, 1.2rem + 5.4vw, 5.25rem);
  --text-h2: clamp(2rem, 1.35rem + 2.4vw, 3.1rem);
  --text-h3: 1.3rem;
  --measure: 65ch;          /* longest comfortable line of text */

  /* Shape */
  --radius: 24px;           /* panels */
  --radius-s: 14px;         /* inputs, screenshots */
  --pill: 999px;            /* buttons, navigation */
  --shadow: 0 1px 2px rgba(38, 45, 52, 0.06), 0 14px 34px -14px rgba(38, 45, 52, 0.22);
  --shadow-lift: 0 2px 4px rgba(38, 45, 52, 0.08), 0 24px 48px -18px rgba(38, 45, 52, 0.3);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --max-width: 74rem;

  /* Height of the fixed call bar on phones (64px, plus the iPhone home-bar space) */
  --quickbar-height: 4rem;
}
/* Phones: a little less space between sections, so pages are shorter to scroll */
@media (max-width: 37.5rem) {
  :root { --space-xl: 2.5rem; }
}

/* --- Reset and base --- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--slate);
  background: var(--paper);
  /* iPhones with a notch, turned sideways: keep everything clear of it.
     (The pages use viewport-fit=cover so the call bar can sit above the home bar;
     these are 0 on every other screen, so nothing changes there.) */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

img, svg { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; } /* hidden always wins over display rules */

h1, h2, h3 {
  margin: 0 0 var(--space-s);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); letter-spacing: -0.01em; }

p, ul, ol, dl { margin: 0 0 var(--space-s); }
p, li, dd { max-width: var(--measure); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
@media (hover: hover) { a:hover { text-decoration-thickness: 2px; } }

strong { font-weight: 700; }

/* Keyboard focus: hi-vis ring with a slate edge, so it shows on light and dark */
:focus-visible {
  outline: 3px solid var(--hivis);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--slate);
}

/* Keep focused items clear of the fixed call bar on phones */
html { scroll-padding-bottom: calc(var(--quickbar-height) + env(safe-area-inset-bottom) + 1rem); }

/* --- Helpers --- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-xl); }
.section--paper { background: transparent; } /* one continuous light page now */

/* Section headings and intros are centred; everything inside them stays left-aligned */
.section > .container:not(.prose) > h2,
.section > .container:not(.prose) > h2 + p {
  text-align: center;
  margin-inline: auto;
}
.section > .container:not(.prose) > h2 + p { color: var(--muted); max-width: 40rem; }
.section > .container > .btn-row { justify-content: center; }

.lead { font-size: 1.25rem; color: var(--muted); }

/* Skip link: hidden until it gets keyboard focus */
.skip-link {
  position: absolute;
  left: var(--space-s);
  top: -10rem;
  z-index: 100;
  padding: var(--space-xs) var(--space-s);
  border-radius: var(--pill);
  background: var(--slate);
  color: var(--white);
  font-weight: 700;
}
.skip-link:focus { top: var(--space-s); }

/* --- Buttons: pills --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--pill);
  font-weight: 700;
  font-size: var(--text-base);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

/* Hover styles sit inside @media (hover: hover) throughout this file, so they only
   apply with a mouse or trackpad. On phones a tapped button would otherwise stay in
   its hover colour after the tap. */

/* Hi-vis: the main call to action. Only ever used for "Get a free quote" (links to the
   quote form, and the form's own send button), so yellow always means the same thing.
   Every other button, tab and control is slate, white or an outline. */
.btn--hivis { background: var(--hivis); border-color: var(--hivis); color: var(--slate); }
@media (hover: hover) { .btn--hivis:hover { background: var(--deep-slate); border-color: var(--deep-slate); color: var(--hivis); } }

/* Outline button on dark panels */
.btn--ghost { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
@media (hover: hover) { .btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--slate); } }

/* Outline button on light backgrounds */
.btn--line { border-color: var(--slate); color: var(--slate); background: var(--white); }
@media (hover: hover) { .btn--line:hover { background: var(--slate); color: var(--white); } }

/* Solid slate: the navigation Call button */
.btn--slate { background: var(--slate); border-color: var(--slate); color: var(--white); }
@media (hover: hover) { .btn--slate:hover { background: var(--deep-slate); border-color: var(--deep-slate); } }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-top: var(--space-m);
}
.note + .btn-row { margin-top: var(--space-l); }

/* Home: "What £40 a month covers" closes the How it works section */
.monthly { max-width: 40rem; margin: var(--space-l) auto 0; text-align: center; }
.monthly h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.monthly p { margin-inline: auto; color: var(--muted); }
.monthly .note { color: var(--slate); }
.monthly .btn-row { justify-content: center; margin-top: var(--space-m); }

/* Phones: buttons on their own or in pairs are full width (up to 22rem), the same
   size, and stacked. Centred sections keep them centred; the hero keeps them left. */
@media (max-width: 37.5rem) {
  .btn-row { flex-direction: column; align-items: center; }
  .btn-row .btn,
  .form .btn,
  .meet .btn { width: 100%; max-width: 22rem; }
  .hero__intro .btn-row { align-items: flex-start; }
  .form .btn { justify-self: stretch; }
}

/* Buttons lift a little on hover and press in on click */
@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: background-color 0.2s ease-out, color 0.2s ease-out,
                border-color 0.2s ease-out, transform 0.2s ease-out;
  }
  @media (hover: hover) { .btn:hover { transform: translateY(-2px); } }
  .btn:active { transform: translateY(1px); transition-duration: 0.05s; }
}

/* --- Header: a floating rounded bar --- */
.site-header { padding-top: 0.75rem; }

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem var(--space-m);
  padding: 0.6rem 0.6rem 0.6rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

/* Tablet and up: the bar stays at the top as you scroll and gains a deeper shadow.
   (Phones keep just the four links at the top: see "Phones" below.) */
@media (min-width: 48rem) {
  .site-header { position: sticky; top: 0; z-index: 40; }
  .site-header__inner { border-radius: var(--pill); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  html { scroll-padding-top: 6rem; } /* keeps focused items clear of the bar */
}
.site-header.is-scrolled .site-header__inner { box-shadow: var(--shadow-lift); }
@media (prefers-reduced-motion: no-preference) {
  .site-header__inner { transition: box-shadow 0.25s ease-out; }
}

/* The logo link is 44px tall so it's easy to tap. The negative margin cancels the extra
   padding, so the header stays the same size. */
.brand { display: inline-block; padding-block: 0.55rem; margin-block: -0.25rem; }
.brand img { width: 14rem; } /* the lockup got wider with the new name; these widths keep its height the same */

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.9rem;
  border-radius: var(--pill);
  color: var(--slate);
  font-weight: 600;
  text-decoration: none;
}
@media (hover: hover) { .site-nav a:not(.btn):hover { background: var(--mist); } }
.site-nav a[aria-current="page"] { background: var(--mist); box-shadow: inset 0 -3px 0 var(--hivis); }

.site-nav .btn { margin-left: var(--space-xs); }
.site-nav .btn--line { border-color: var(--line); } /* WhatsApp: quieter than Call beside it */
@media (hover: hover) { .site-nav .btn--line:hover { border-color: var(--slate); } }
.site-nav .btn .number { display: none; }

/* Phones: the logo sits on its own row and scrolls away with the page. The four links are
   a floating pill that stays at the top of the screen, so every page is one tap away
   however far down you've scrolled.
   How it sticks (CSS only, no script): the whole header is "sticky", but pulled up by
   exactly the height of the logo row (--logo-row), so the logo slides off the top and
   the links stop 0.5rem below it. The pill sits a little closer to the screen edges and
   the links share the width equally, so all four fit on one row at 320px. */
@media (max-width: 47.99rem) {
  .site-header {
    --logo-row: 3rem;                  /* the logo link (2.75rem) plus the gap under it (0.25rem) */
    position: sticky;
    top: calc(-1 * var(--logo-row));
    z-index: 40;
    padding-top: 0.5rem;
  }
  .site-header > .container { padding-inline: 0.625rem; }
  /* the white card moves from the whole header to just the links */
  .site-header__inner,
  .site-header.is-scrolled .site-header__inner { display: block; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .brand { display: flex; align-items: center; width: fit-content; height: 2.75rem; margin: 0 0 0.25rem 0.5rem; padding: 0; }
  .site-nav {
    width: 100%;
    padding: 0.25rem;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .site-header.is-scrolled .site-nav { box-shadow: var(--shadow-lift); }
  .site-nav ul { gap: 0; }
  .site-nav li { flex: 1 1 auto; }
  .site-nav a:not(.btn) { justify-content: center; width: 100%; padding-inline: 0.25rem; }
  .site-nav__call { display: none; } /* Call moves to the bottom bar; WhatsApp is in the footer */
  html { scroll-padding-top: 4.75rem; } /* keeps focused items and jump links clear of the links */
}
@media (max-width: 47.99rem) and (prefers-reduced-motion: no-preference) {
  .site-nav { transition: box-shadow 0.25s ease-out; }
}
/* Under 360px (and 320px screens with a scrollbar): slightly smaller menu text, so the
   four links still fit on one row. 360px and up is unchanged. */
@media (max-width: 22.49rem) {
  .site-nav a:not(.btn) { padding-inline: 0.2rem; font-size: 1rem; }
}

/* Tablets: slightly tighter links, so the logo, four links and Call button share one row */
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .site-header__inner { gap: 0.25rem var(--space-s); }
  .site-nav a:not(.btn) { padding-inline: 0.65rem; }
}
/* Tablets and small laptops: no room for the WhatsApp button beside Call on one row,
   so it's left to the footer and CTA boxes. It shows from 1216px up. */
@media (min-width: 48rem) and (max-width: 75.99rem) {
  .site-nav__call:has(.btn--line) { display: none; }
}

@media (min-width: 64rem) {
  .brand img { width: 15.75rem; }
  .site-nav .btn .number { display: inline; }
}

/* --- Home hero: centred headline, then the job sheet framed by 3D tiles --- */
.hero { padding-block: clamp(3rem, 2rem + 5vw, 6rem) var(--space-l); }

.hero__intro { text-align: center; }
.hero__intro h1 {
  max-width: 15ch;
  margin-inline: auto;
  /* Same as --text-h1, except on the smallest screens, where the size also stays small
     enough for "built in 7 days." to fit on one line (the phrase is about 7 times the
     font size wide). Nothing changes from about 400px up. */
  font-size: clamp(min(2.6rem, (100vw - 3rem) / 7), 1.2rem + 5.4vw, 5.25rem);
}
.hero__intro .lead { max-width: 42rem; margin-inline: auto; text-wrap: pretty; } /* pretty: no single word left on the last line */
.hero__intro .btn-row { justify-content: center; }
/* WhatsApp link under the two buttons: a plain link (no script), 44px tall to tap */
.hero__whatsapp { margin: var(--space-xs) auto 0; }
.hero__whatsapp a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; }
/* Small reassurance line under the buttons */
.hero__note { margin: var(--space-s) auto 0; font-size: var(--text-small); color: var(--muted); }
.hero__whatsapp + .hero__note { margin-top: 0.25rem; }
/* Phones: left-aligned, because long centred lines are harder to read */
@media (max-width: 39.99rem) {
  .hero__intro { text-align: left; }
  .hero__intro h1,
  .hero__intro .lead,
  .hero__intro .hero__whatsapp,
  .hero__intro .hero__note { margin-inline: 0; }
  .hero__intro .btn-row { justify-content: flex-start; }
}

/* Hi-vis highlighter behind "built in 7 days."
   The normal state is a solid highlight, so it's complete with reduced motion
   or if animations are paused. "clone" gives each wrapped line its own
   full highlight, with rounded ends. */
.hl {
  padding: 0 0.12em;
  border-radius: 0.14em;
  background: var(--hivis);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  white-space: nowrap; /* one line, so the highlight and its swipe are one block */
}

.hero__stage {
  position: relative;
  display: grid;
  justify-items: center;
  margin-top: var(--space-l);
}
.hero .job-sheet { position: relative; z-index: 1; width: 100%; }

/* The tiles are decoration: hidden from screen readers, and hidden on smaller screens */
.tiles { display: none; }
@media (min-width: 60rem) {
  .hero__stage { min-height: 33rem; align-content: center; }
  .tiles { display: block; position: absolute; inset: 0; pointer-events: none; }
  .tile { position: absolute; width: 10rem; }
  .tile svg { width: 100%; height: auto; }
  /* --depth: how far each tile drifts with the mouse (nearer tiles move more) */
  .hero .tile--1 { left: 3%;   top: 4%;  --depth: 30; }
  .hero .tile--2 { left: 15%;  top: 50%; --depth: 18; width: 8.5rem; }
  .hero .tile--3 { left: 1%;   top: 70%; --depth: 10; width: 7rem; }
  .hero .tile--4 { right: 4%;  top: 8%;  --depth: 28; }
  .hero .tile--5 { right: 16%; top: 54%; --depth: 18; width: 8.5rem; }
  .hero .tile--6 { right: 2%;  top: 74%; --depth: 10; width: 7rem; }
}
/* --d: the order the tiles arrive and hop in (set here, not in the HTML,
   because our security headers block style="" attributes) */
.tile--1 { --d: 1; }
.tile--2 { --d: 2; }
.tile--3 { --d: 3; }
.tile--4 { --d: 4; }
.tile--5 { --d: 5; }
.tile--6 { --d: 6; }
/* On page load: the tiles float in, then hop once in turn, like a Mexican wave.
   The highlighter swipes across "built in 7 days." Then everything is still,
   apart from a gentle drift as the mouse moves (js/main.js sets --mx and --my).
   All off for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .tile { animation: tile-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(0.1s + var(--d) * 0.08s); }
  .tile svg {
    animation: tile-hop 0.6s ease-in-out both;
    animation-delay: calc(1.1s + var(--d) * 0.12s);
    translate: calc(var(--mx, 0) * var(--depth, 16) * -1px) calc(var(--my, 0) * var(--depth, 16) * -1px);
    transition: translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  /* The swipe is CSS only, so it needs no JavaScript and finishes fully highlighted */
  .hero .hl {
    background: linear-gradient(var(--hivis), var(--hivis)) no-repeat 0 0 / 0% 100%;
    animation: hl-sweep 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.35s forwards;
  }
}
@keyframes tile-in {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
}
@keyframes tile-hop {
  40% { transform: translateY(-14px); }
}
@keyframes hl-sweep {
  to { background-size: 100% 100%; }
}

/* Page header on inner pages: light and centred */
.page-head {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) var(--space-s);
  text-align: center;
}
.page-head h1 { max-width: 18ch; margin: 0 auto var(--space-xs); font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); }
/* Keeps a short phrase on one line so a heading doesn't end on a single word.
   Only from 360px up: on the narrowest phones the phrase could be wider than the screen. */
@media (min-width: 22.5rem) {
  .keep-together { white-space: nowrap; }
}
.page-head p { max-width: 40rem; margin: 0 auto; color: var(--muted); font-size: 1.2rem; }

/* Services and Contact: four small tiles either side of the heading (wide screens only) */
.page-head--tiles { position: relative; }
@media (max-width: 63.99rem) {
  .tiles--head { display: none; }
}
@media (min-width: 64rem) {
  .page-head--tiles { padding-block: 5.5rem 4rem; }
  .tiles--head { max-width: calc(var(--max-width) + 6rem); margin-inline: auto; }
  .tiles--head .tile { width: 7.5rem; }
  .tiles--head .tile--1 { left: 3%;  top: 16%; --depth: 24; }
  .tiles--head .tile--2 { left: 13%; top: 52%; --depth: 14; width: 6rem; }
  .tiles--head .tile--3 { right: 13%; top: 12%; --depth: 14; width: 6rem; }
  .tiles--head .tile--4 { right: 3%; top: 46%; --depth: 24; }
}

/* --- The job sheet: the one bold element (a paper slip, so square corners) --- */
.job-sheet {
  background: var(--white);
  color: var(--slate);
  border: 2px solid var(--slate);
  padding: var(--space-m);
  max-width: 26rem;
  box-shadow: 0 2px 4px rgba(38, 45, 52, 0.08), 0 36px 60px -22px rgba(38, 45, 52, 0.4);
}
.job-sheet p { color: var(--slate); }

.job-sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-s);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--slate);
}

.job-sheet__title {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.job-sheet__no {
  font-size: var(--text-small);
  font-variant-numeric: tabular-nums;
  color: var(--slate);
}

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

.job-sheet__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-s);
  min-height: 2.9rem;
  border-bottom: 1px solid var(--rule);
  max-width: none;
}

.tick { flex: none; display: inline-flex; }
.tick svg { width: 1.4rem; height: 1.4rem; }

.job-sheet__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: var(--space-s) 0 0;
  padding-top: var(--space-xs);
  border-top: 3px double var(--slate);
  font-weight: 800;
  font-size: 1.5rem;
}
.job-sheet__total strong { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.02em; }

.job-sheet__monthly { margin: 0; text-align: right; font-weight: 600; }

/* Home page, once after the page loads: the ticks on the job sheet draw themselves
   one after another, then the total lands. The total is the only fade on the site
   (Round 7). Pure CSS, so it doesn't need JavaScript.
   The "hidden" starting points only exist inside the animations, so if animations
   don't run, or reduced motion is preferred, the ticks and total are simply there.
   Each tick's path has pathLength="1", so a dash of 1 is the whole tick; the
   offset starts just past 1 so no square line-end shows before it draws. */
@media (prefers-reduced-motion: no-preference) {
  .hero .tick path {
    stroke-dasharray: 1 2;
    animation: tick-draw 0.3s cubic-bezier(0.65, 0, 0.35, 1) both;
  }
  .hero .job-sheet__list li:nth-child(1) .tick path { animation-delay: 0.7s; }
  .hero .job-sheet__list li:nth-child(2) .tick path { animation-delay: 0.85s; }
  .hero .job-sheet__list li:nth-child(3) .tick path { animation-delay: 1s; }
  .hero .job-sheet__list li:nth-child(4) .tick path { animation-delay: 1.15s; }
  .hero .job-sheet__list li:nth-child(5) .tick path { animation-delay: 1.3s; }
  .hero .job-sheet__total,
  .hero .job-sheet__monthly {
    animation: total-in 0.5s ease-out 1.6s both;
  }
}
@keyframes tick-draw {
  from { stroke-dashoffset: 1.1; }
  to   { stroke-dashoffset: 0; }
}
@keyframes total-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Full job sheet on the Services page: each line has a short explanation */
.job-sheet--full { max-width: 44rem; margin-inline: auto; }
.job-sheet--full .job-sheet__list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  padding-block: var(--space-s);
}
.job-sheet--full .job-sheet__list h3 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.job-sheet--full .job-sheet__list p { margin: 0; }
.job-sheet--full .tick { grid-column: 2; grid-row: 1; margin-top: 0.1rem; }

/* --- Trades: pills in an even grid ---
   Phones: two equal columns (an odd one out at the end spans both).
   Home (six pills): three columns from 640px, so two even rows.
   Trades page (ten pills): five columns from 1024px, so two rows of five. */
.trade-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  max-width: 36rem;
  margin: var(--space-l) auto;
  padding: 0;
  list-style: none;
}
.trade-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 40rem) {
  .section .trade-list { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 44rem; }
}
@media (min-width: 64rem) {
  .trade-jump .trade-list { grid-template-columns: repeat(5, auto); justify-content: center; max-width: none; }
  .trade-jump .trade-list a { padding-right: 0.85rem; } /* keeps "Window and door fitters" on one line at 1024px */
}
.trade-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  max-width: none;
  padding: 0.45rem 1.1rem 0.45rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--white);
  font-weight: 600;
}
/* Small line icons in a slate circle (not hi-vis: these pills are links, and yellow is
   kept for the "Get a free quote" button) */
.trade-icon {
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0.3rem;
  border-radius: 50%;
  background: var(--slate);
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Trades with their own page: the whole pill is a link, with a slate edge and underline */
.trade-list li:has(> a) { align-items: stretch; padding: 0; border-color: var(--slate); } /* pills in a row share one height */
.trade-list a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.45rem 1.1rem 0.45rem 0.5rem;
  border-radius: inherit;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}
@media (hover: hover) { .trade-list a:hover { background: var(--mist); text-decoration-thickness: 2.5px; } }
/* Phones: slightly smaller pill text and padding, so every trade fits its half of the row */
@media (max-width: 37.5rem) {
  .trade-list { gap: 0.5rem; }
  .trade-list li, .trade-list a { font-size: var(--text-small); line-height: 1.25; }
  .trade-list a { gap: 0.45rem; padding: 0.4rem 0.75rem 0.4rem 0.4rem; }
  .trade-list .trade-icon { width: 1.75rem; height: 1.75rem; }
}
.trades-rebuild { max-width: 40rem; margin: var(--space-l) auto 0; text-align: center; color: var(--muted); }

/* --- Areas we cover: one short, centred sentence --- */
.areas p { max-width: 40rem; margin-inline: auto; text-align: center; font-size: 1.15rem; text-wrap: pretty; }
/* The towns as a ruled grid, each with a hi-vis pin dot: 3 across on phones, 6 on desktop */
.towns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 48rem;
  margin: var(--space-s) auto;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--stone);
}
.towns li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  max-width: none;
  min-height: 2.9rem;
  padding: 0.35rem 0.25rem;
  border-bottom: 1px solid var(--stone);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
.towns li::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--hivis);
  box-shadow: 0 0 0 1.5px var(--slate);
}
@media (max-width: 29.99rem) { .towns li { gap: 0.35rem; } } /* text stays 18px/16px or more: never under 16px on phones */
/* The narrowest phones (under 360px): 2 across, so "Todmorden" and "Elland" don't run off the screen */
@media (max-width: 22.49rem) { .towns { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .towns { grid-template-columns: repeat(6, 1fr); max-width: 62rem; } }

/* --- Home: before and after slider ---
   One made-up business: the old website on the left, the new one on the right, in a
   simple browser window. The divider is a native range input laid over the pictures,
   so it works with a keyboard, touch and screen readers; js/main.js (section 9) moves
   the divider (--pos) and gives one small nudge when it first scrolls into view.
   Without JavaScript the two pictures sit one above the other, each with its label.
   It shows the laptop-size screenshots on every screen, phones included. */
/* As big as the page allows, but never taller than the screen, so the whole picture
   fits on a laptop without scrolling (16:10 picture plus the window bar) */
.compare { max-width: min(70rem, calc((100vh - 8.5rem) * 1.6)); margin: var(--space-l) auto 0; }
@supports (height: 100svh) { .compare { max-width: min(70rem, calc((100svh - 8.5rem) * 1.6)); } }
.compare__window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 8px);
  background: var(--white);
  box-shadow: var(--shadow-lift);
}
.compare__bar { display: flex; align-items: center; gap: 6px; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); background: var(--mist); }
.compare__bar i { width: 10px; height: 10px; border-radius: 50%; background: #c3c9d0; }
.compare__bar span { flex: 0 1 18rem; height: 1.1rem; margin: 0 auto; border-radius: var(--pill); background: var(--white); }
/* With JavaScript the Before and After labels sit in the window's top bar, left and right,
   so they never cover the pictures. Without it, each picture keeps its own label. */
.compare__tab { display: none; }
.compare.is-enhanced .compare__tab { display: block; padding: 0.15rem 0.7rem; border-radius: var(--pill); background: var(--slate); color: var(--white); font-size: var(--text-small); line-height: 1.4; }
.compare.is-enhanced .compare__tab--before { margin-left: 0.6rem; }
.compare.is-enhanced .compare__tab--after { background: var(--white); color: var(--slate); box-shadow: inset 0 0 0 1.5px var(--slate); } /* outline, so it still reads as the opposite of Before */
.compare.is-enhanced .compare__label { display: none; }
.compare__stage { position: relative; }
.compare__layer { position: relative; margin: 0; }
.compare__layer img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--mist); }
.compare__label {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--pill);
  background: var(--slate);
  color: var(--white);
  font-size: var(--text-small);
  font-weight: 700;
  line-height: 1.4;
}
.compare__label--before { left: 0.75rem; }
.compare__label--after { right: 0.75rem; background: var(--white); color: var(--slate); box-shadow: 0 0 0 1.5px var(--slate); }
.compare__note { max-width: 40rem; margin: var(--space-s) auto 0; color: var(--muted); font-size: var(--text-small); text-align: center; }
/* without JavaScript: stacked, with a gap, and no divider */
.compare__range, .compare__handle { display: none; }
.compare:not(.is-enhanced) .compare__layer--before { order: -1; border-bottom: 1px solid var(--line); }
.compare:not(.is-enhanced) .compare__stage { display: flex; flex-direction: column; }

/* with JavaScript: the before picture sits on top, cut off at the divider */
.compare.is-enhanced .compare__stage { --pos: 50%; touch-action: pan-y; }
.compare.is-enhanced .compare__layer--before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare.is-enhanced .compare__range {
  display: block;
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0; /* invisible, but it's the real control: the handle below shows where it is */
  cursor: ew-resize;
  touch-action: pan-y;
}
/* The handle layer is as wide as the picture and slides with transform (so moving it
   never counts as a layout shift); the white line and the round grip sit on its left edge. */
.compare.is-enhanced .compare__handle {
  display: block;
  position: absolute;
  z-index: 3;
  inset: 0;
  transform: translateX(var(--pos));
  pointer-events: none;
}
.compare.is-enhanced .compare__handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1.5px;
  width: 3px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(38, 45, 52, 0.25);
}
.compare__handle svg {
  position: absolute;
  top: 50%;
  left: 0;
  width: 3rem;
  height: 3rem;
  padding: 0.8rem;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(38, 45, 52, 0.25), var(--shadow);
  color: var(--slate);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translate(-50%, -50%);
}
/* keyboard focus: the ring goes round the round handle */
.compare__range:focus-visible + .compare__handle svg { outline: 3px solid var(--slate); outline-offset: 3px; }
/* Phones: the window runs almost edge to edge, so the laptop screenshot is as big as it can be */
@media (max-width: 47.99rem) {
  .compare { margin-inline: calc(0.5rem - var(--gutter)); }
  .compare__window { border-radius: 14px; }
  .compare__bar { padding: 0.4rem 0.6rem; gap: 5px; }
  .compare__bar i { width: 8px; height: 8px; }
  .compare__bar span { display: none; }
  .compare.is-enhanced .compare__tab { font-size: 0.875rem; }
  .compare.is-enhanced .compare__tab--after { margin-left: auto; }
  .compare__label { top: 0.5rem; padding: 0.2rem 0.65rem; font-size: 0.875rem; }
  .compare__label--before { left: 0.5rem; }
  .compare__label--after { right: 0.5rem; }
  .compare__handle svg { width: 2.75rem; height: 2.75rem; padding: 0.7rem; }
  .compare__note { padding-inline: var(--gutter); }
}

/* --- How it works: the 7-day timeline ---
   Day 1 to Day 7 with the four stages ticked off in order, across the page on every
   screen. Phones get smaller circles and text so it takes less room. js/main.js
   (section 8) adds .timeline-ready (empty) and then .is-done when it scrolls into view,
   so the line fills and the ticks pop in one after another. Only transform and opacity
   move. Without JavaScript, or with reduced motion, it's simply shown complete. */
.timeline {
  --tick: 2rem;        /* circle size (2.5rem from tablets up) */
  --day-row: 1.25rem;  /* the "Day 1" / "Day 7" row above the circles */
  --row-gap: 0.5rem;
  position: relative;
  max-width: 62rem;
  margin: var(--space-l) auto 0;
}
.timeline__stops { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.timeline__stops li { display: grid; grid-template-rows: var(--day-row) var(--tick) auto; row-gap: var(--row-gap); justify-items: center; align-items: start; max-width: none; text-align: center; }
.timeline__day { color: var(--muted); font-size: 0.875rem; font-weight: 700; line-height: 1.2; }
.timeline__tick {
  width: var(--tick);
  height: var(--tick);
  border-radius: 50%;
  background: var(--hivis) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.5 12.5l4.2 4.2L18.5 8' fill='none' stroke='%23333c45' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / calc(var(--tick) * 0.56) no-repeat;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--slate);
}
.timeline__text { font-size: 0.875rem; font-weight: 700; line-height: 1.25; text-wrap: balance; }
/* the line: a grey track with a slate fill, through the middle of the circles */
.timeline__track { position: absolute; left: 12.5%; right: 12.5%; top: calc(var(--day-row) + var(--row-gap) + var(--tick) / 2 - 2px); height: 4px; border-radius: var(--pill); background: var(--line); overflow: hidden; }
.timeline__fill { display: block; width: 100%; height: 100%; background: var(--slate); transform-origin: left; }
@media (min-width: 48rem) {
  .timeline { --tick: 2.5rem; --day-row: 1.4rem; --row-gap: 0.6rem; }
  .timeline__stops { gap: var(--space-s); }
  .timeline__day { font-size: var(--text-small); }
  .timeline__tick { box-shadow: 0 0 0 4px var(--paper), 0 0 0 5.5px var(--slate); }
  .timeline__text { max-width: 13rem; font-size: var(--text-base); line-height: 1.3; }
}
@media (prefers-reduced-motion: no-preference) {
  /* .timeline-ready and .is-done are only added by the script */
  .timeline-ready .timeline__fill { transform: scaleX(0); }
  .timeline-ready .timeline__tick { opacity: 0; transform: scale(0.5); }
  .timeline-ready.is-done .timeline__fill { transform: none; transition: transform 1.2s cubic-bezier(0.45, 0, 0.25, 1); }
  .timeline-ready.is-done .timeline__tick { opacity: 1; transform: none; transition: opacity 0.25s ease-out, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
  .timeline-ready.is-done li:nth-child(2) .timeline__tick { transition-delay: 0.35s; }
  .timeline-ready.is-done li:nth-child(3) .timeline__tick { transition-delay: 0.7s; }
  .timeline-ready.is-done li:nth-child(4) .timeline__tick { transition-delay: 1.05s; }
}

/* --- How it works: three real steps, each with a little picture ---
   The pictures (.mock) are decoration, hidden from screen readers. They're
   always shown finished (Round 7 removed the play-once animation). */
.steps {
  display: grid;
  gap: var(--space-m);
  margin: var(--space-l) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  max-width: none;
  padding: var(--space-s) var(--space-s) var(--space-m);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.steps h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: var(--space-m) 0.5rem 0.5rem;
}
/* Step numbers in a hi-vis circle: this really is a sequence */
.steps h3::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--hivis);
  color: var(--slate);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}
.steps p { margin: 0 0.5rem; color: var(--muted); }

@media (min-width: 48rem) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
/* Phones: the little pictures are hidden, so the three steps are shorter to scroll past */
@media (max-width: 47.99rem) {
  .steps .mock { display: none; }
  .steps h3 { margin-top: var(--space-xs); }
}

.mock {
  display: grid;
  align-content: center;
  gap: 0.5rem;
  height: 12rem;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--paper);
  color: var(--slate);
  font-size: 0.85rem;
  line-height: 1.3;
}

/* 1. Have a chat: a message, the "typing" dots, then our reply */
.bubble {
  max-width: 85%;
  padding: 0.55rem 0.8rem;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.bubble--in { justify-self: start; border-bottom-left-radius: 4px; transform-origin: bottom left; }
.bubble--typing,
.bubble--out { grid-area: 2 / 1; justify-self: end; border-bottom-right-radius: 4px; transform-origin: bottom right; }
.bubble--out { background: var(--hivis); font-weight: 600; }
.bubble--typing { display: flex; gap: 4px; align-self: end; opacity: 0; }
.bubble--typing b { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }

/* 2. We build it: a small website builds itself while the 7 days fill up */
.mock--build { gap: 0.75rem; }
.mock__window {
  display: grid;
  gap: 0.4rem;
  padding: 0 0.7rem 0.7rem;
  overflow: hidden;
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.mock__chrome { display: flex; gap: 4px; margin: 0 -0.7rem 0.1rem; padding: 0.4rem 0.7rem; background: var(--mist); }
.mock__chrome i { width: 7px; height: 7px; border-radius: 50%; background: #c3c9d0; }
.mb { display: block; height: 7px; border-radius: 4px; background: var(--mist); }
.mb--nav { width: 45%; }
.mb--title { width: 80%; height: 13px; background: var(--slate); }
.mb--text { width: 60%; }
.mb--btn { width: 34%; height: 13px; border-radius: var(--pill); background: var(--hivis); }
.mb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; }
.mb--photo { height: 1.6rem; background: var(--stone); }

/* 3. You go live: three switches flick on */
.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-weight: 600;
}
.toggle b { position: relative; flex: none; width: 32px; height: 18px; border-radius: var(--pill); background: var(--hivis); }
.toggle b::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 16px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(38, 45, 52, 0.3);
}

/* Home, "You go live": the three switches flip on one after another as the card
   scrolls up the screen. Pure CSS: the animation follows the scroll (scroll back
   and they switch off again), so it only moves when you do. Browsers without
   scroll-driven animations (Firefox for now), and reduced motion, just show them
   switched on. The picture is hidden on phones, so this is tablet and desktop only. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .mock--live { view-timeline: --go-live block; }
    /* The grey "off" track is a layer over the hi-vis one that fades out,
       so only opacity and position change (smooth, no repainting) */
    .mock--live .toggle b::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background: var(--wire);
      opacity: 0;
    }
    .mock--live .toggle b::before,
    .mock--live .toggle b::after {
      animation-duration: auto;
      animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
      animation-fill-mode: both;
      animation-timeline: --go-live;
    }
    .mock--live .toggle b::before { animation-name: switch-track; }
    .mock--live .toggle b::after { animation-name: switch-knob; }
    .mock--live .toggle:nth-child(1) b::before,
    .mock--live .toggle:nth-child(1) b::after { animation-range: cover 12% cover 22%; }
    .mock--live .toggle:nth-child(2) b::before,
    .mock--live .toggle:nth-child(2) b::after { animation-range: cover 20% cover 30%; }
    .mock--live .toggle:nth-child(3) b::before,
    .mock--live .toggle:nth-child(3) b::after { animation-range: cover 28% cover 38%; }
  }
}
@keyframes switch-track { from { opacity: 1; } }
@keyframes switch-knob  { from { translate: -14px 0; } }

/* --- Monthly plan: a diagram, "Your website" joined by lines to what's covered ---
   On phones the cards stack with short lines between them. On wide screens the
   lines branch out to four cards in a row. */
.flow {
  --flow-gap: var(--space-m);
  --stem: 2rem;
  max-width: 34rem;
  margin: var(--space-l) auto;
}
.flow__hub {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: max-content;
  max-width: none;
  margin: 0 auto var(--stem);
  padding: 0.8rem 1.4rem;
  border-radius: var(--pill);
  background: var(--slate);
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: var(--shadow-lift);
}
.flow__dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--hivis); }
.flow__hub::after,
.flow__nodes li + li::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--wire);
  transform-origin: top;
}
.flow__hub::after { top: 100%; height: var(--stem); }
.flow__nodes li + li::before { bottom: 100%; height: var(--flow-gap); }
.flow__nodes {
  position: relative;
  display: grid;
  gap: var(--flow-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.flow__nodes li {
  position: relative;
  max-width: none;
  padding: var(--space-m);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.flow__nodes h3 { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.35rem; }
.flow__nodes h3::before { content: ""; flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--hivis); }
.flow__nodes p { margin: 0; color: var(--muted); }

@media (min-width: 60rem) {
  .flow { max-width: none; }
  .flow__nodes { grid-template-columns: repeat(4, 1fr); padding-top: var(--stem); }
  /* The branch line runs from the middle of the first card to the middle of the last */
  .flow__nodes::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc((100% - 3 * var(--flow-gap)) / 8);
    right: calc((100% - 3 * var(--flow-gap)) / 8);
    height: 2px;
    background: var(--wire);
  }
  .flow__nodes li::before,
  .flow__nodes li + li::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 2px;
    height: var(--stem);
    margin-left: -1px;
    background: var(--wire);
    transform-origin: top;
  }
}

.note {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
  font-weight: 700;
}
.note--plain { font-weight: 400; color: var(--muted); }
/* Services: "No long contract" and "After 12 months" as a ruled pair (stacked on phones) */
.terms-pair {
  display: grid;
  gap: var(--space-s);
  max-width: 48rem;
  margin: var(--space-l) auto 0;
  padding-top: var(--space-m);
  border-top: 1px solid var(--stone);
}
.terms-pair .note { margin: 0; }
@media (min-width: 48rem) {
  .terms-pair { grid-template-columns: 1fr 1fr; gap: var(--space-l); }
}
.centred { max-width: 40rem; margin-inline: auto; text-align: center; }
/* 404 page: the suggested links, centred under their heading */
.link-list { padding: 0; list-style: none; text-align: center; }
.link-list li { max-width: none; }
.link-list a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; }

/* --- Two-column layouts --- */
.split {
  display: grid;
  gap: var(--space-l);
}
@media (min-width: 60rem) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .split--wide-left { grid-template-columns: 1.4fr 1fr; gap: var(--space-l); }
}
/* Quote sections: the form sits on a white panel */
.split--wide-left > div:first-child {
  padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.split--wide-left > div:last-child { padding-top: clamp(0rem, 2vw, 2.5rem); }

/* "What happens next" under the contact details: a real sequence, so numbered */
.next-title { margin-top: var(--space-l); font-size: 1.2rem; }
/* Thank-you page: the same three steps, centred as a block */
.thanks-next { max-width: 28rem; margin: 0 auto var(--space-l); }
.thanks-next .next-title { margin-top: 0; }
.next-steps { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; counter-reset: next; }
.next-steps li { counter-increment: next; display: flex; align-items: flex-start; gap: 0.75rem; }
.next-steps li::before {
  content: counter(next);
  flex: none;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--hivis);
  color: var(--slate);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

/* --- Websites for trades page (/websites-for-trades/) --- */
.page-head--trades .btn-row { justify-content: center; }

/* --- Tape measure under the trades headline ---
   A hi-vis tape with marks and numbers, drawn as an inline SVG in the page. It's as wide
   as the headline at every screen size. When the page loads it pulls out from the left
   once (about 1.2 seconds), overshoots a touch, snaps back and stays put as the underline.
   Only transform is animated. The headline, price line and buttons never move or wait.
   With reduced motion (or if the animation can't run) it's simply there, fully extended. */
.tape-head {
  width: fit-content;       /* as wide as the headline, so the tape matches it */
  max-width: 100%;
  margin: 0 auto var(--space-s);
}
.tape-head h1 { margin-bottom: 0; }
/* Phones: the tape adds a little height, so the hero starts slightly higher. That keeps
   both buttons clear of the call bar at the bottom of a small phone screen. */
@media (max-width: 47.99rem) {
  .page-head--trades { padding-top: 1.5rem; }
  .tape-head { margin-bottom: 0.75rem; }
}
.tape {
  position: relative;
  height: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem); /* space is kept from the start: nothing shifts */
  margin-top: 0.5rem;
  /* hides the tape before it's pulled out; the right side has room for the small overshoot */
  clip-path: inset(-2px -1.5rem -2px 0);
}
.tape__blade {
  position: absolute;
  top: 0;
  left: -10%;               /* a little spare tape on the left, so the snap never shows a gap */
  width: 110%;
  max-width: none;          /* the site-wide rule caps images at 100%; this needs the extra 10% */
  height: 100%;
}
.tape__body { fill: var(--hivis); stroke: var(--slate); stroke-width: 1.5; }
.tape__marks { fill: none; stroke: var(--slate); stroke-width: 1.2; }
.tape__numbers { fill: var(--slate); font: 700 10px var(--font); text-anchor: middle; }
.tape__hook { fill: var(--slate); }
@media (prefers-reduced-motion: no-preference) {
  .tape__blade { animation: tape-pull 1.1s 0.1s both; }
}
@keyframes tape-pull {
  0%   { transform: translateX(-100%); animation-timing-function: cubic-bezier(0.25, 0.6, 0.3, 1); } /* fast pull, slowing */
  72%  { transform: translateX(1.6%); animation-timing-function: ease-in-out; }                      /* just past the end */
  86%  { transform: translateX(-0.5%); animation-timing-function: ease-out; }                        /* snaps back */
  100% { transform: translateX(0); }                                                                 /* locked */
}

/* Optional: a faint blueprint grid behind the trades hero. Switched on by the class
   "page-head--blueprint" in the HTML. Lines are 6% slate and fade out towards the edges,
   so the text contrast barely changes. */
.page-head--blueprint { position: relative; isolation: isolate; }
.page-head--blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(51, 60, 69, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 60, 69, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 85% at 50% 40%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 85% at 50% 40%, #000 35%, transparent 100%);
  pointer-events: none;
}
.trade-jump .trade-list { margin: var(--space-m) auto 0; }

/* One card per trade: flat panels with a thin edge, so nine in a row don't feel heavy */
.trade-grid {
  display: grid;
  gap: var(--space-s);
  margin-top: var(--space-l);
}
@media (min-width: 48rem) {
  .trade-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Nine cards in two columns would leave the last one on its own, so it spans both */
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .trade-card:last-child { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .trade-grid { grid-template-columns: repeat(3, 1fr); }
}
.trade-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-s) var(--space-m) 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: var(--text-small);
  /* Jump links land with the heading in view (the sticky header adds its own
     6rem of room on tablets and computers, via scroll-padding-top on <html>) */
  scroll-margin-top: 1rem;
}
/* --- Spirit level on each trade card ---
   A small level vial sits on the card's top edge (drawn with ::before and ::after, so
   there's nothing extra in the HTML). With JavaScript and normal motion settings, a card
   that hasn't been scrolled to yet sits a degree or so off level with its bubble to the
   high side; when it scrolls into view (js/main.js adds .is-level) it settles level and
   the bubble slides to the middle. Only transform is animated. The text is never hidden.
   Without JavaScript, or with reduced motion, every card is simply level from the start. */
.trade-card { position: relative; }
.trade-card::before,
.trade-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
/* the vial: a hi-vis tube with two marks either side of the middle */
.trade-card::before {
  top: -0.4rem;
  left: calc(50% - 1.5rem);
  width: 3rem;
  height: 0.8rem;
  border: 1.5px solid var(--slate);
  border-radius: var(--pill);
  background:
    linear-gradient(var(--slate), var(--slate)) calc(50% - 0.45rem) 0 / 1.5px 100% no-repeat,
    linear-gradient(var(--slate), var(--slate)) calc(50% + 0.45rem) 0 / 1.5px 100% no-repeat,
    var(--hivis);
}
/* the bubble */
.trade-card::after {
  top: calc(-0.4rem + 0.17rem);
  left: calc(50% - 0.23rem);
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--slate);
}
@media (prefers-reduced-motion: no-preference) {
  /* .level-ready is only added by the script, so these never apply without it */
  .level-ready .trade-card {
    --tilt: -1.8deg;
    --bubble: 0.8rem; /* a bubble runs to the high side: a negative tilt lifts the right edge */
  }
  /* the move is only animated on the way to level, so nothing wobbles as the page loads */
  .level-ready .trade-card.is-level { transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.05s; }
  .level-ready .trade-card:nth-child(even) { --tilt: 1.6deg; --bubble: -0.8rem; }
  .level-ready .trade-card:nth-child(3n) { --tilt: 2deg; --bubble: -0.8rem; }
  .level-ready .trade-card:nth-child(4n) { --tilt: -1.4deg; --bubble: 0.8rem; }
  /* the bubble overshoots the middle a touch before it comes to rest, like a real one */
  .level-ready .trade-card.is-level::after { transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s; }
  /* not reached yet: off level, bubble to one side */
  .level-ready .trade-card:not(.is-level) { transform: rotate(var(--tilt)); }
  .level-ready .trade-card:not(.is-level)::after { transform: translateX(var(--bubble)); }
  /* a card that's being used is always level, even if the scroll check hasn't caught up */
  .level-ready .trade-card:focus-within,
  .level-ready .trade-card:target { transform: none; }
  .level-ready .trade-card:focus-within::after,
  .level-ready .trade-card:target::after { transform: none; }
  /* cards in the same row settle one after another, left to right */
  @media (min-width: 48rem) and (max-width: 63.99rem) {
    .level-ready .trade-card.is-level:nth-child(even) { transition-delay: 0.15s; }
  }
  @media (min-width: 64rem) {
    .level-ready .trade-card.is-level:nth-child(3n + 2) { transition-delay: 0.15s; }
    .level-ready .trade-card.is-level:nth-child(3n) { transition-delay: 0.25s; }
  }
}
.trade-card h3 { display: flex; align-items: center; gap: 0.6rem; margin: 0; font-size: 1.2rem; }
.trade-card .trade-icon { background: var(--mist); stroke: var(--slate); } /* quieter than the pills above */
.trade-card .point-list { gap: 0.45rem; margin: 0.75rem 0 0.25rem; line-height: 1.45; }
.trade-card .point-list li::before { top: 0.45em; }
.trade-card__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 2.75rem;
  margin: auto 0 0 -0.4rem;
  padding-inline: 0.4rem; /* gives the focus ring room around the words */
  border-radius: 8px;
  font-weight: 700;
}
.other-note {
  max-width: 40rem;
  margin: var(--space-l) auto 0;
  text-align: center;
  color: var(--muted);
  scroll-margin-top: 1rem;
}


/* Ruled checklist in the job sheet's style: one hairline per row, the same tick on the right.
   Two columns on phones; the --wide version is three from tablets up. */
.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--space-m);
  max-width: 30rem;
  margin: var(--space-s) auto 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--stone);
  text-align: left;
}
.checklist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  max-width: none;
  min-height: 2.75rem;
  padding-block: 0.3rem;
  border-bottom: 1px solid var(--stone);
  color: var(--slate);
  font-weight: 600;
  line-height: 1.3;
}
.checklist .tick svg { width: 1.2rem; height: 1.2rem; }
@media (max-width: 29.99rem) {
  .checklist { column-gap: var(--space-s); }
  .checklist li { font-size: 1rem; }
}
.checklist--wide { max-width: 48rem; margin-top: var(--space-m); }
@media (min-width: 48rem) {
  .checklist--wide { grid-template-columns: repeat(3, 1fr); column-gap: var(--space-l); }
}
/* A link on its own line: 44px+ tap area, cancelled out so the spacing stays the same */
.more-link a { display: inline-block; padding-block: 0.75rem; margin-block: -0.75rem; font-weight: 700; }
.monthly .checklist { margin-bottom: var(--space-s); }
.monthly p:has(+ .checklist) { margin-bottom: 0; }

/* Pricing sits on a white panel, like the quote forms */
.price-panel {
  max-width: 46rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.price-panel > p:first-of-type { color: var(--muted); }
.price-panel__more { margin: var(--space-m) 0 0; font-weight: 700; }
/* An extra 12px of tap area above and below the link (at least 44px tall in total),
   cancelled out by negative margins so nothing around it moves */
.price-panel__more a { display: inline-block; padding-block: 0.75rem; margin-block: -0.75rem; }

/* Simple bullet list: a small hi-vis square beside each point */
.point-list { display: grid; gap: 0.9rem; margin: var(--space-m) 0 0; padding: 0; list-style: none; }
.point-list li { position: relative; padding-left: 1.6rem; }
.point-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
  background: var(--hivis);
  box-shadow: 0 0 0 1.5px var(--slate);
}
.point-list.point-list--narrow { max-width: 44rem; margin-inline: auto; }
.work-card.work-card--solo { max-width: 45rem; margin: var(--space-l) auto 0; }
.point-list + .note { margin-top: var(--space-l); }

/* --- About page banner: the Calderdale illustration. The heading sits in the open sky, top left, on wide screens; on smaller
   screens it sits above the picture, and phones get a tighter crop (see <picture>). */
.about-head { padding-block: var(--space-m) 0; }
.about-banner { position: relative; }
.about-banner__text { margin-bottom: var(--space-m); }
.about-banner__text h1 { margin-bottom: 0.4rem; }
.about-banner__text p { margin: 0; font-size: 1.25rem; color: var(--muted); }
.about-banner img { width: 100%; height: auto; } /* no frame: the sky is the page colour, so it blends in */

/* The birds fly across the sky, beating their wings, then fade out at the right edge and
   start again (24 seconds a pass). CSS only. With reduced motion they sit still where the drawing had them. */
.about-banner__art { position: relative; }
.birds {
  --from: -18%;            /* phones: in from the left edge */
  --to: 100%;
  --top: 9%;
  position: absolute;
  inset: 0;
  overflow: hidden;        /* clips them at the banner's edges, so the page never scrolls sideways */
  pointer-events: none;
}
.birds__flock { position: absolute; top: var(--top); left: 0; width: 100%; }
.birds svg {
  display: block;
  width: 17%;
  height: auto;
  overflow: visible;
  transform: translateX(70%); /* resting place: clear sky left of the sun */
}
.birds path {
  fill: none;
  stroke: #5e7184;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: 0 0; /* the body: each wing swings from there */
}
@media (min-width: 48rem) {
  /* wide banner: they set off from where the drawing had them, just right of the heading */
  .birds { --from: 29.1%; --top: 21.4%; }
  .birds svg { width: 9.4%; transform: translateX(309%); } /* 29.1% of the banner */
}
@media (prefers-reduced-motion: no-preference) {
  /* One flight across the sky when the page opens, then they've gone, so nothing keeps
     moving for good. "both" keeps them hidden before and after the flight. */
  .birds__flock { animation: birds-fly 24s linear both; }
  .birds svg { transform: none; }
  /* wings beat up and down from the body; each bird keeps its own time, and the
     number of beats makes them stop as the flight ends (about 24 seconds each) */
  .birds .wing-l { animation: wing-l 0.42s ease-in-out 58 alternate; }
  .birds .wing-r { animation: wing-r 0.42s ease-in-out 58 alternate; }
  .birds g:nth-child(2) path { animation-duration: 0.36s; animation-delay: -0.15s; animation-iteration-count: 68; }
  .birds g:nth-child(3) path { animation-duration: 0.48s; animation-delay: -0.3s; animation-iteration-count: 50; }
}
@keyframes birds-fly {
  0% { transform: translate(var(--from), 0); opacity: 0; }
  5% { opacity: 1; }
  50% { transform: translate(calc((var(--from) + var(--to)) / 2), -30%); }
  92% { opacity: 1; }
  100% { transform: translate(var(--to), 10%); opacity: 0; }
}
@keyframes wing-l {
  from { transform: rotate(26deg); }   /* wing up */
  to { transform: rotate(-34deg); }    /* wing down */
}
@keyframes wing-r {
  from { transform: rotate(-26deg); }
  to { transform: rotate(34deg); }
}
@media (min-width: 60rem) {
  .about-banner__text {
    position: absolute;
    z-index: 1; /* above the picture and the birds */
    left: var(--space-l);
    top: var(--space-l);
    margin: 0;
  }
  .about-banner__text p { max-width: 16rem; } /* wraps before the birds */
}

/* --- About page ---
   Three short columns with thin dividers (stacked on phones), then
   the two of us on one rounded white panel with the orbit inside. */
.about-head + .section { padding-top: 0; } /* the columns hang from the rule under the banner */
.story-cols { display: grid; padding-top: var(--space-m); border-top: 2px solid var(--slate); }
.story-cols > div { padding-block: var(--space-m); }
.story-cols > div:first-child { padding-top: 0; }
.story-cols > div:last-child { padding-bottom: 0; }
.story-cols > div + div { border-top: 1px solid var(--stone); }
.story-cols h2 { margin-bottom: 0.6rem; font-size: 1.3rem; letter-spacing: -0.01em; }
/* a short hi-vis bar above each heading */
.story-cols h2::before { content: ""; display: block; width: 2rem; height: 4px; margin-bottom: 0.9rem; background: var(--hivis); }
.story-cols p { margin: 0; color: var(--slate); font-size: 1.0625rem; line-height: 1.6; } /* 17px, 11:1 on the page colour */
@media (min-width: 48rem) {
  .story-cols { grid-template-columns: repeat(3, 1fr); padding-top: var(--space-l); }
  .story-cols > div { padding-block: 0; padding-inline: var(--space-m); }
  .story-cols > div:first-child { padding-left: 0; }
  .story-cols > div:last-child { padding-right: 0; }
  .story-cols > div + div { border-top: 0; border-left: 1px solid var(--stone); }
}
/* Meet the team: one rounded white panel (same corners as the CTA box), with the two of
   us on ruled rows and the orbit inside the same panel */
.about-team { padding-block: var(--space-l); }
.team-sheet {
  display: grid;
  gap: var(--space-m);
  align-items: center;
  padding: clamp(1.25rem, 0.9rem + 2vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: var(--white);
  box-shadow: var(--shadow);
}
@media (min-width: 60rem) {
  .team-sheet { grid-template-columns: 1.1fr 1fr; gap: var(--space-l); }
}
.team-sheet__title {
  margin: 0;
  padding-bottom: var(--space-s);
  border-bottom: 2px solid var(--slate);
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
}
.team-list { margin: 0; padding: 0; list-style: none; }
.team-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-m);
  align-items: start;
  max-width: none;
  padding-block: var(--space-m);
  border-bottom: 1px solid var(--rule);
}
.team-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.badge {
  display: grid;
  place-items: center;
  width: clamp(4.5rem, 3.6rem + 4vw, 6rem);
  aspect-ratio: 1;
  border-radius: var(--radius-s);
  background: var(--hivis);
  color: var(--slate);
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem);
  font-weight: 800;
  line-height: 1;
}
.team-list h3 { margin: 0 0 0.15rem; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); }
.team-list p { margin: 0; color: var(--muted); }
.team-list .team-list__bio { margin-top: 0.5rem; color: var(--slate); font-size: 1.0625rem; line-height: 1.6; } /* two lines about each of us */

/* Phones: the bio runs the full width under the badge and name, not squeezed beside the badge */
@media (max-width: 35.99rem) {
  .team-list li { gap: 0 var(--space-s); align-items: center; }
  .team-list li > div { display: contents; }
  .team-list .badge { grid-row: 1 / span 2; }
  .team-list h3 { align-self: end; }
  .team-list h3 + p { align-self: start; }
  .team-list .team-list__bio { grid-column: 1 / -1; margin-top: var(--space-s); }
}

/* Recent work (switched off in the HTML until there's real work to show): equal cards
   with a screenshot, name, one line and a link, then one review */
.work-cards { display: grid; gap: var(--space-m); margin: var(--space-m) 0 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .work-cards { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); } }
.work-cards li { display: flex; flex-direction: column; max-width: none; padding: var(--space-s) var(--space-s) var(--space-m); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.work-cards img { width: 100%; height: auto; margin-bottom: var(--space-s); border-radius: var(--radius-s); }
.work-cards h3 { margin-bottom: 0.3rem; }
.work-cards p { color: var(--slate); }
.work-cards a { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: auto; font-weight: 600; }
.work-quote { margin: var(--space-l) 0 0; padding: var(--space-m); border-left: 4px solid var(--hivis); border-radius: 0 var(--radius-s) var(--radius-s) 0; background: var(--white); }
.work-quote blockquote { margin: 0; font-size: 1.25rem; }
.work-quote figcaption { margin-top: var(--space-xs); color: var(--muted); }
.team-sheet .orbit { --size: min(22rem, 66vw); } /* a little smaller, to sit inside the panel */
/* this page is short, so its sections sit closer together than the full-size gap */
.about-head + .section { padding-bottom: var(--space-l); }
.about-team + .cta-band { padding-top: var(--space-l); }

/* --- About: the logo in the middle of orbit rings, with Alex and Alfie's initials
   and trade icons going round. It turns a little as the page scrolls (js/main.js
   sets --spin). Decoration only; still for reduced motion. */
.orbit {
  --size: min(26rem, 80vw);
  --r1: calc(var(--size) * 0.25);
  --r2: calc(var(--size) * 0.37);
  --r3: calc(var(--size) * 0.49);
  position: relative;
  width: var(--size);
  aspect-ratio: 1;
  margin-inline: auto;
}
.orbit__ring,
.orbit__core { position: absolute; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%; }
.orbit__ring { border: 1.5px solid var(--line); }
.orbit__ring--1 { width: calc(var(--r1) * 2); height: calc(var(--r1) * 2); background: var(--white); }
.orbit__ring--2 { width: calc(var(--r2) * 2); height: calc(var(--r2) * 2); }
.orbit__ring--3 { width: calc(var(--r3) * 2); height: calc(var(--r3) * 2); border-style: dashed; }
.orbit__core {
  display: grid;
  place-items: center;
  width: calc(var(--size) * 0.28);
  height: calc(var(--size) * 0.28);
  background: var(--white);
  box-shadow: var(--shadow-lift);
}
.orbit__core img { width: 58%; height: auto; }
.orbit__arm { position: absolute; left: 50%; top: 50%; rotate: calc(var(--a) + var(--spin, 0deg)); }
/* Where each circle sits: its angle (--a) and which ring it's on (--r) */
.orbit__arm--1 { --a: -40deg; --r: var(--r3); }
.orbit__arm--2 { --a: 140deg; --r: var(--r3); }
.orbit__arm--3 { --a: 60deg;  --r: var(--r2); }
.orbit__arm--4 { --a: 230deg; --r: var(--r2); }
.orbit__arm--5 { --a: 315deg; --r: var(--r1); }
.orbit__sat {
  position: absolute;
  left: var(--r);
  top: 0;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  translate: -50% -50%;
  rotate: calc(-1 * (var(--a) + var(--spin, 0deg)));
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--slate);
  font-size: 1.15rem;
  font-weight: 800;
}
.orbit__sat--hivis { background: var(--hivis); }
.orbit__sat--small { width: 2.6rem; height: 2.6rem; }
.orbit__sat .trade-icon { background: none; stroke: var(--slate); width: 1.8rem; height: 1.8rem; padding: 0; }
/* --- Contact details --- */
.contact-list {
  margin: 0 0 var(--space-m);
  padding: 0;
  list-style: none;
}
.contact-list li { padding-block: var(--space-s); border-bottom: 1px solid var(--line); }
.contact-list .label { display: block; font-size: var(--text-small); font-weight: 600; color: var(--muted); }
/* Phone and email links: 44px+ tall to tap; the negative margin keeps the spacing as it was */
.contact-list a { display: inline-block; padding-block: 0.45rem; margin-block: -0.25rem; font-size: 1.3rem; font-weight: 700; overflow-wrap: anywhere; }

/* --- Form --- */
.form { display: grid; gap: var(--space-m); max-width: 40rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 700; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.65rem 0.9rem;
  font: inherit;
  color: var(--slate);
  background: var(--paper);
  border: 1.5px solid #b9bfc6;
  border-radius: var(--radius-s);
}
@media (hover: hover) { .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--slate); } }
/* Dropdowns: the same box as the other fields, with a slate arrow */
.field select {
  appearance: none;
  padding-right: 2.6rem;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23333c45' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 1rem center / 0.75rem;
  cursor: pointer;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline-offset: 0; background-color: var(--white); }
.form .btn { justify-self: start; }
.form-row { display: grid; gap: var(--space-m); }
@media (min-width: 40rem) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.hp-field { display: none; } /* honeypot: hidden from people, filled in by spam bots */

/* Trade chips: tap one instead of typing. Each chip is a real radio button with its label,
   so it works with a keyboard (Tab to the group, arrow keys to move), a screen reader and
   with JavaScript off. The radio itself is stretched invisibly over the chip. */
.chips { min-width: 0; margin: 0; padding: 0; border: 0; }
.chips legend { margin-bottom: 0.5rem; padding: 0; font-weight: 700; }
.chips legend .optional { font-weight: 400; color: var(--muted); }
.chips__list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;           /* 44px: easy to tap */
  padding: 0.4rem 1rem;
  border: 1.5px solid #b9bfc6;   /* same edge as the text boxes */
  border-radius: var(--pill);
  background: var(--paper);
  font-weight: 600;
  line-height: 1.2;
}
@media (hover: hover) { .chip:hover span { border-color: var(--slate); } }
.chip input:checked + span { border-color: var(--slate); background: var(--slate); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--hivis); outline-offset: 2px; box-shadow: 0 0 0 2px var(--slate); }
@media (prefers-reduced-motion: no-preference) {
  .chip span { transition: background-color 0.15s ease-out, color 0.15s ease-out, border-color 0.15s ease-out; }
}

/* --- FAQ on the Services page (details/summary) --- */
.faq {
  max-width: 48rem;
  margin: var(--space-l) auto 0;
  padding: 0.25rem var(--space-m);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-s);
  min-height: 3.75rem;
  padding-block: var(--space-xs);
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { padding-bottom: var(--space-s); color: var(--muted); }

/* --- Example websites: a card with a screenshot --- */
.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: none;
  padding: var(--space-s) var(--space-s) var(--space-xs);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
/* Screenshot area, drawn as a simple browser window */
.work-card__shot {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  margin-bottom: var(--space-s);
  padding-top: 1.1rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--paper);
  font-size: var(--text-small);
  font-weight: 600;
}
.work-card__shot::before {
  content: "";
  z-index: 1;
  position: absolute;
  inset: 0 0 auto 0;
  height: 1.1rem;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.work-card__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* The roofer screenshot is the whole page: hover (or tab to the card) and it scrolls down */
.work-card__shot--scroll img { position: absolute; top: 1.1rem; left: 0; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .work-card__shot--scroll img { transition: top 1.2s ease-in-out, transform 1.2s ease-in-out; }
  .work-card:has(a:focus-visible) .work-card__shot--scroll img { top: 100%; transform: translateY(-100%); transition-duration: 7s; }
  @media (hover: hover) {
    .work-card:hover .work-card__shot--scroll img { top: 100%; transform: translateY(-100%); transition-duration: 7s; }
  }
}

.work-card h3 { margin: 0 0.4rem 0.35rem; }
.work-card p { margin: 0 0.4rem var(--space-s); color: var(--muted); }
.work-card__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin: auto 0.4rem 0;
  font-weight: 700;
}
/* Makes the whole card clickable, not just the link text */
.work-card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
/* Linked cards lift on hover and press in on click */
@media (prefers-reduced-motion: no-preference) {
  .work-card { transition: transform 0.2s ease-out, box-shadow 0.2s ease-out; }
  .work-card:has(a:focus-visible) { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
  @media (hover: hover) { .work-card:has(a):hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); } }
  .work-card:has(a):active { transform: translateY(1px); transition-duration: 0.05s; }
}

/* --- "See how it works in about a minute" video ---
   Without JavaScript it's the browser's own player. With it, a white Play button
   sits over the poster until pressed, then the normal controls take over. Never autoplays. */
.video {
  position: relative;
  max-width: 60rem;
  margin: var(--space-l) auto 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-lift);
}
.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end;          /* bottom-right, clear of the poster's headline */
  width: 100%;
  padding: clamp(0.75rem, 4%, 2.5rem);
  border: 0;
  background: transparent;
  cursor: pointer;
}
.video__play-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--pill);
  background: var(--white);
  color: var(--slate);
  font: 800 1.2rem/1 var(--font);
  box-shadow: 0 0 0 1px rgba(38, 45, 52, 0.18), var(--shadow);
}
@media (max-width: 40rem) {
  .video__play-label { padding: 0.6rem 1rem; font-size: 1rem; }  /* smaller on phones */
}
/* Play triangle drawn in CSS */
.video__play-label::before {
  content: "";
  border-style: solid;
  border-width: 0.5em 0 0.5em 0.85em;
  border-color: transparent transparent transparent currentColor;
}
@media (hover: hover) { .video__play:hover .video__play-label { background: var(--deep-slate); color: var(--white); } }
.video__play:focus-visible { outline-offset: -6px; border-radius: var(--radius); }
@media (prefers-reduced-motion: no-preference) {
  .video__play-label { transition: background-color 0.2s ease-out, color 0.2s ease-out, transform 0.2s ease-out; }
  @media (hover: hover) { .video__play:hover .video__play-label { transform: translateY(-2px); } }
}

/* --- Dark panels (Meet us, call to action): soft shapes in two corners ---
   Decoration only. */
.meet__grid,
.cta-band__inner { position: relative; isolation: isolate; overflow: hidden; }
.meet__grid::before,
.meet__grid::after,
.cta-band__inner::before,
.cta-band__inner::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(7rem, 5rem + 8vw, 12rem);
  aspect-ratio: 1;
  background: no-repeat center / contain;
  pointer-events: none;
}
.meet__grid::before,
.cta-band__inner::before { top: -3.25rem; left: -3.25rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%233e4852'%3E%3Ccircle cx='50' cy='27' r='23'/%3E%3Ccircle cx='73' cy='50' r='23'/%3E%3Ccircle cx='50' cy='73' r='23'/%3E%3Ccircle cx='27' cy='50' r='23'/%3E%3Crect x='27' y='27' width='46' height='46'/%3E%3C/g%3E%3Ccircle cx='72' cy='70' r='2.6' fill='%23f2b600'/%3E%3C/svg%3E"); }
.meet__grid::after,
.cta-band__inner::after { bottom: -3.25rem; right: -3.25rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%233e4852'%3E%3Ccircle cx='50' cy='27' r='23'/%3E%3Ccircle cx='73' cy='50' r='23'/%3E%3Ccircle cx='50' cy='73' r='23'/%3E%3Ccircle cx='27' cy='50' r='23'/%3E%3Crect x='27' y='27' width='46' height='46'/%3E%3C/g%3E%3Ccircle cx='28' cy='30' r='2.6' fill='%23f2b600'/%3E%3C/svg%3E"); }
/* --- Meet us: a dark rounded panel with initials badges (no photos) --- */
.section--slate.meet { background: transparent; color: inherit; }
.meet__grid {
  display: grid;
  gap: var(--space-l);
  align-items: center;
  padding: clamp(1.75rem, 1rem + 4vw, 4rem);
  border-radius: calc(var(--radius) + 8px);
  background: var(--slate);
  color: var(--white);
}
@media (min-width: 60rem) {
  .meet__grid { grid-template-columns: 1.2fr 1fr; gap: var(--space-xl); }
}
.meet .lead { color: var(--stone); }
.founders {
  display: grid;
  gap: var(--space-m);
  margin: 0;
  padding: 0;
  list-style: none;
}
.founders li {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  max-width: none;
}
.initials {
  flex: none;
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--hivis);
  color: var(--slate);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}
.founders h3 { margin-bottom: 0.2rem; }
.founders p { margin: 0; color: var(--stone); }

/* --- FAQ accordion (home page) ---
   Without JavaScript: plain questions with the answers shown underneath.
   With JavaScript (.is-enhanced): buttons, one answer open at a time. */
.accordion {
  max-width: 48rem;
  margin: var(--space-l) auto 0;
  padding: 0.25rem var(--space-m);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.accordion__item + .accordion__item { border-top: 1px solid var(--line); }
.accordion__heading { margin: 0; padding-top: var(--space-s); font-size: 1.2rem; }
.accordion__inner p { margin: 0; padding-block: var(--space-xs) var(--space-m); color: var(--muted); }

.accordion.is-enhanced .accordion__heading { padding: 0; }
.accordion__trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-s);
  width: 100%;
  min-height: 3.5rem;
  padding: 0.75rem 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
@media (hover: hover) { .accordion__trigger:hover > span:first-child { text-decoration: underline; text-underline-offset: 0.18em; } }

/* A plus sign drawn with two bars; it turns 45° into a cross when open */
.accordion__icon { position: relative; flex: none; width: 1.25rem; height: 1.25rem; }
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  margin-top: -1.5px;
  background: currentColor;
}
.accordion__icon::after { transform: rotate(90deg); }
.is-open .accordion__icon { transform: rotate(45deg); }

/* Closed answers fold to zero height and are hidden from screen readers and the Tab key */
.accordion.is-enhanced .accordion__panel { display: grid; grid-template-rows: 0fr; }
.accordion.is-enhanced .accordion__inner { min-height: 0; overflow: hidden; visibility: hidden; }
.accordion.is-enhanced .is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion.is-enhanced .is-open .accordion__inner { visibility: visible; }

@media (prefers-reduced-motion: no-preference) {
  .accordion__icon { transition: transform 0.3s ease-out; }
  .accordion.is-enhanced .accordion__panel { transition: grid-template-rows 0.3s ease-out; }
  /* Stay visible while closing, then hide */
  .accordion.is-enhanced .accordion__inner { transition: visibility 0s linear 0.3s; }
  .accordion.is-enhanced .is-open .accordion__inner { transition-delay: 0s; }
}

/* --- Prose (legal pages): text on a white panel --- */
.prose {
  max-width: 50rem;
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.section > .prose { margin-inline: auto; } /* keeps the panel centred */
.prose h2 { font-size: 1.6rem; margin-top: var(--space-l); }
.prose h3 { margin-top: var(--space-m); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.35rem; }
.updated { font-size: var(--text-small); color: var(--muted); }

/* --- Call-to-action: a dark rounded panel --- */
.section--slate.cta-band { background: transparent; color: inherit; }
.cta-band__inner {
  padding: clamp(1.75rem, 1rem + 4vw, 4rem);
  border-radius: calc(var(--radius) + 8px);
  background: var(--slate);
  color: var(--white);
  text-align: center;
}
.cta-band h2 { margin-bottom: var(--space-xs); }
.cta-band p { max-width: 40rem; margin-inline: auto; color: var(--stone); }
.cta-band .btn-row { justify-content: center; }

/* --- Leave us a review: a slim band above the footer on every page ---
   A quiet white panel: heading and one line on the left, one button on the right
   (stacked on phones). When it scrolls into view a hi-vis highlighter stroke sweeps
   in behind the heading (js/main.js, section 7). The words are never hidden: without
   JavaScript, or with reduced motion, the stroke is simply there. */
.review-band { padding-block: 0 var(--space-m); }
.review-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s) var(--space-m);
  padding: var(--space-m) clamp(1.25rem, 0.9rem + 2vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.review-band h2 { margin: 0 0 0.25rem; font-size: 1.4rem; letter-spacing: -0.01em; isolation: isolate; }
.review-band p { margin: 0; color: var(--muted); }
/* the highlighter stroke sits behind the lower half of the heading */
.review-band__mark { position: relative; display: inline-block; }
.review-band__mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.15em;
  right: -0.15em;
  bottom: 0.08em;
  height: 0.45em;
  border-radius: 0.14em;
  background: var(--hivis);
  transform-origin: left center;
}
@media (max-width: 35.99rem) {
  .review-band__inner .btn { width: 100%; } /* a full-width, easy-to-tap button on phones */
}
@media (prefers-reduced-motion: no-preference) {
  /* .review-ready and .is-seen are only added by the script */
  .review-ready .review-band__mark::before { transform: scaleX(0); }
  .review-ready.is-seen .review-band__mark::before {
    transform: none;
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.15s; /* same sweep as the home page highlighter */
  }
}

/* --- Footer --- */
.site-footer {
  margin-top: var(--space-l);
  padding-block: var(--space-xl) var(--space-l);
  border-radius: calc(var(--radius) + 8px) calc(var(--radius) + 8px) 0 0;
  background: var(--deep-slate);
  color: var(--stone);
  font-size: var(--text-small);
}
/* Links are at least 44px tall and wide, so they're easy to tap (short ones like "About" too) */
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding-block: 0.25rem;
  color: var(--white);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.site-footer li:not(:has(a)) { padding-block: 0.6rem; line-height: 1.35; } /* plain text lines up with the links */
/* Logo and blurb on their own row, then the four link columns:
   2 x 2 on phones and small tablets, four equal columns from tablet width up */
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-m) var(--space-s);
}
.site-footer__grid > :first-child { grid-column: 1 / -1; max-width: 26rem; }
.site-footer__grid > :first-child p { margin: 0; }
.site-footer img { width: 15.75rem; margin-bottom: var(--space-s); }
.site-footer h2 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer__base {
  max-width: none;
  margin-top: var(--space-l);
  padding-top: var(--space-s);
  border-top: 1px solid #46505a;
}
@media (max-width: 47.99rem) {
  .site-footer { padding-block: var(--space-l) var(--space-m); }
  .site-footer__base { margin-top: var(--space-m); }
}
@media (min-width: 48rem) {
  .site-footer__grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-l); }
}

/* --- Fixed call bar on phones --- */
.quickbar { display: none; }

@media (max-width: 47.99rem) {
  .quickbar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 0.6fr 1.4fr; /* Call, Get a free quote */
    gap: var(--space-xs);
    padding: 0.5rem var(--gutter);
    /* Clear of the iPhone home bar at the bottom, and of the notch when sideways */
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
    background: var(--deep-slate);
    border-top: 1px solid #46505a;
  }
  .quickbar .btn { width: 100%; padding-inline: 0.4rem; font-size: 1rem; white-space: nowrap; }
  /* With JavaScript (js/main.js, section 10) the bar steps aside while the hero buttons or
     the quote form are on screen, so the same buttons are never shown twice, and slides
     back once they've scrolled away. "visibility" also takes its links out of the Tab order
     while it's away. Without JavaScript the bar is simply always there. */
  .quickbar.is-away { visibility: hidden; transform: translateY(100%); }
  /* Room at the bottom so the bar never covers the footer: the footer runs on
     under the bar, so there's no light strip between them */
  .site-footer { padding-bottom: calc(var(--space-m) + var(--quickbar-height) + env(safe-area-inset-bottom)); }
}
/* The slide (.is-live is added by the script once the first position is set, so nothing
   moves as the page loads). Leaving is a little quicker than arriving. Reduced motion: no slide. */
@media (max-width: 47.99rem) and (prefers-reduced-motion: no-preference) {
  .quickbar.is-live { transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s; }
  .quickbar.is-live.is-away { transition: transform 0.2s ease-in, visibility 0s 0.2s; }
}

/* ==========================================================================
   Black Friday 2026 (remove after the offer ends on Tue 1 December 2026)
   Every offer element is in the HTML with "hidden" and data-offer. js/offer.js
   adds .offer-live to <html> before the page is drawn, only before the deadline,
   and then removes "hidden". So an expired offer never shows, even without
   JavaScript. Colours: hi-vis on deep slate is 7.6:1, paper on deep slate 13:1.
   ========================================================================== */
/* Shown from the first paint (beats the [hidden] rule near the top of this file) */
.offer-live [data-offer][hidden] { display: block !important; }

/* Banner at the top of every page */
.offer-banner { background: var(--deep-slate); color: var(--paper); }
.offer-banner p {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.55rem var(--gutter);
  font-size: 1rem;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}
.offer-banner strong { color: var(--hivis); }
.offer-banner a {
  display: inline-block;
  padding-block: 0.3rem;           /* a taller tap target, without a taller banner */
  margin-block: -0.3rem;
  color: var(--hivis);
  font-weight: 700;
  white-space: nowrap;
  text-decoration: underline;
}
/* The site's focus ring is hi-vis, which would vanish on this bar: paper instead */
.offer-banner a:focus-visible { outline-color: var(--paper); box-shadow: none; }

/* Home hero: a badge just above the main buttons */
.offer-badge {
  width: fit-content;
  margin: var(--space-m) auto 0;
  padding: 0.45rem 1.1rem;
  border-radius: var(--pill);
  background: var(--deep-slate);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.offer-badge strong { color: var(--hivis); text-transform: uppercase; letter-spacing: 0.04em; }
.price-swap { white-space: nowrap; } /* £499 and £399 stay together on one line */
.offer-badge { text-wrap: balance; font-size: 1.125rem; padding: 0.55rem 1.25rem; box-shadow: 0 0 0 3px var(--hivis); } /* bolder: a hi-vis ring */
@media (max-width: 39.99rem) {
  .offer-badge { margin-inline: 0; }
  .offer-badge[data-offer] { font-size: 1rem; padding-inline: 1rem; } /* one line at 375px */
}

/* Next to the £499 price (the normal price always stays visible) */
.offer-note {
  display: block;
  width: fit-content;
  margin-top: 0.4rem;
  padding: 0.2rem 0.8rem;
  border-radius: var(--pill);
  background: var(--deep-slate);
  color: var(--hivis);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}
.offer-note[data-offer] { width: fit-content; color: var(--hivis); font-size: 1rem; line-height: 1.45; } /* beats the text styles set on p in .job-sheet and .page-head */
.job-sheet .offer-note { margin: 0.5rem 0 0 auto; } /* lines up on the right, under the total */
.page-head--trades .offer-note[data-offer] { margin: 0.75rem auto 0; }
.point-list .offer-note { border-radius: 0.8rem; padding: 0.4rem 0.8rem; } /* a longer note that wraps: softer corners than a pill */
@media (prefers-reduced-motion: no-preference) {
  .hero .job-sheet .offer-note { animation: total-in 0.5s ease-out 1.6s both; } /* lands with the total */
}

/* --- Black Friday price swap: £499 gets crossed out with two quick hi-vis brush strokes
   (an X, like a tradesperson marking something off), then £399 lands on the site's
   hi-vis highlighter.
   Markup: .price-swap > .price-swap__old (£499) + .price-swap__new (£399, hidden + data-offer).
   Without the offer (expired, or no JavaScript) only £499 shows, exactly as before.
   The animation plays once, when each price scrolls into view (js/offer.js adds .is-seen).
   .offer-anim is only set when motion is allowed, so reduced motion just sees the end state.
   Nothing changes size while it plays, so there's no layout shift. */
.offer-live .price-swap__new[data-offer][hidden] { display: inline-block !important; } /* inline, not block */
.price-swap__new {
  display: inline-block;
  margin-left: 0.28em;
  padding: 0 0.14em;
  border-radius: 0.14em;
  background: var(--hivis);             /* the same highlighter as "built in 7 days." */
  color: var(--deep-slate);
  font-weight: 800;
  line-height: 1.12;
}
.offer-live .price-swap__old {
  position: relative;
  display: inline-block;
  color: var(--muted);
  font-weight: 600;
}
/* On the job sheets the old price steps back so £399 is the hero */
.offer-live .job-sheet__total .price-swap__old { font-size: 0.62em; }
/* The X: two brush strokes, thin at the start and full at the end, with a soft shadow */
.offer-live .price-swap__old::before,
.offer-live .price-swap__old::after {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  top: 50%;
  height: 0.17em;
  margin-top: -0.085em;
  border-radius: 0.1em;
  background: var(--hivis);
  clip-path: polygon(0 38%, 100% 0, 100% 100%, 0 62%); /* thin start, full end, like a brush flick */
  filter: drop-shadow(0 0.035em 0 rgba(38, 45, 52, 0.6));
}
.offer-live .price-swap__old::before { transform: rotate(24deg); }
.offer-live .price-swap__old::after { transform: rotate(-24deg); }
/* Start state, only while waiting to be seen */
.offer-anim .price-swap:not(.is-seen) .price-swap__old { color: inherit; }
/* Each stroke "paints" from its left end: the clip shape starts as a line at the left edge */
.offer-anim .price-swap:not(.is-seen) .price-swap__old::before,
.offer-anim .price-swap:not(.is-seen) .price-swap__old::after { clip-path: polygon(0 38%, 0 38%, 0 62%, 0 62%); }
.offer-anim .price-swap:not(.is-seen) .price-swap__new { opacity: 0; transform: translateY(-0.35em) scale(1.35) rotate(-5deg); }
/* Then: first stroke (0.28s), second stroke (0.28s), and £399 lands with one small settle */
.offer-anim .price-swap.is-seen .price-swap__old { transition: color 0.35s ease-out var(--swap-delay, 0.2s); }
.offer-anim .price-swap.is-seen .price-swap__old::before { transition: clip-path 0.28s cubic-bezier(0.55, 0, 0.3, 1) var(--swap-delay, 0.2s); }
.offer-anim .price-swap.is-seen .price-swap__old::after { transition: clip-path 0.28s cubic-bezier(0.55, 0, 0.3, 1) calc(var(--swap-delay, 0.2s) + 0.3s); }
.offer-anim .price-swap.is-seen .price-swap__new {
  transition: opacity 0.15s ease-out calc(var(--swap-delay, 0.2s) + 0.62s),
              transform 0.5s cubic-bezier(0.3, 1.5, 0.55, 1) calc(var(--swap-delay, 0.2s) + 0.62s);
}
/* Home hero: wait until the job sheet total has landed */
.hero .job-sheet .price-swap { --swap-delay: 2.1s; }
