/* Brine kit v2. Hidden states require html.js. Reduced motion and no-script pages show their content. */

/* Match the fallback to Inter Tight so loading the font does not shift the page. */
@font-face { font-family: 'Inter Tight Fallback'; src: local('Arial'), local('Helvetica'); size-adjust: 95.5%; ascent-override: 101.5%; descent-override: 25.2%; line-gap-override: 0%; }
@property --bg { syntax: '<color>'; inherits: true; initial-value: #f3f1ec; }
@property --fg { syntax: '<color>'; inherits: true; initial-value: #141414; }
@property --muted { syntax: '<color>'; inherits: true; initial-value: #5c5a55; }

:root {
  --paper: #f3f1ec; --stone: #e4e0d8; --ink: #141414; --on-ink: #f3f1ec;
  --muted-paper: #5c5a55; --muted-ink: #a9a6a0;
  --accent: #1f6fd1;                    /* the one colour: set from the logo per site */
  --accent-on-ink: #6fb2ff;
  --accent-paper: var(--accent);        /* the site's own, for what stays paper on an ink page (Let's talk) */
  --font: 'Inter Tight', 'Inter Tight Fallback', system-ui, sans-serif;
  --gutter: clamp(16px, 2.6vw, 44px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-in-out: cubic-bezier(.7, 0, .2, 1);
  --bg: var(--paper); --fg: var(--ink); --muted: var(--muted-paper);
  --logo-h: clamp(52px, 4.4vw, 64px);          /* the header once past the hero */
  --logo-h-top: clamp(64px, 8.4vw, 150px);     /* over the hero: as big as a header can carry (James: "a lot larger"); 150 so it holds its own on a 2560 screen */
}
:root[data-tone='stone'] { --bg: var(--stone); }
:root[data-tone='ink'] { --bg: var(--ink); --fg: var(--on-ink); --muted: var(--muted-ink); }
:root[data-tone='ink'] body { --accent: var(--accent-on-ink); }
:root.is-mid body { --accent: var(--fg); }   /* mid-blend the accent sits on its own shade (focus 1.01:1, a hovered question 2.0:1, reviews 15 Oct): it goes black or white with the text */
/* Mid-blend, pure black or white keeps the text readable and muted words use the same colour. */
:root.is-mid { --fg: #000; --muted: var(--fg); }
:root.is-mid[data-tone='ink'] { --fg: #fff; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--logo-h) + 36px); }   /* the header's room, kept whenever the page scrolls something into view: a link within the page (kit2.js reads it too, 14 Oct) and keyboard focus */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }   /* the text turns over at once, where both colours read the same: any easing passes through the ground's own colour (1.1:1 for .6 s, review 14 Oct) */
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 clamp(16px, 1.05vw, 18px)/1.55 var(--font); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, video, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
h1, h2, h3 { font-weight: inherit; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.b-skip { position: absolute; left: var(--gutter); top: -60px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 14px; }
.b-skip:focus { top: 10px; }
[tabindex='-1']:focus { outline: none; }   /* a section focused by a link within the page (kit2.js), not something to press */
.b-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Type: one family, big against small */
.b-huge { font-size: clamp(52px, 9.2vw, 168px); line-height: .9; letter-spacing: -0.055em; font-weight: 400; }
.b-big { font-size: clamp(30px, 4.1vw, 72px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 400; }
.b-say { font-size: clamp(24px, 2.75vw, 46px); line-height: 1.14; letter-spacing: -0.03em; font-weight: 400; text-wrap: pretty; }
.b-say.b-say--long { font-size: clamp(20px, 2.2vw, 36px); line-height: 1.18; }   /* over 220 letters a size down: Gulf's architect ran 12 lines, a whole phone screen (21 Oct) */
.b-label { font-size: 13px; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.b-small { font-size: 14px; line-height: 1.45; }
@media (min-width: 900px) { .b-small { font-size: 15px; } }   /* the rating's note and the service lines on a big screen */
p, li, figcaption, blockquote, .b-small { text-wrap: pretty; }   /* no lone last word (James 11 Oct, on Paint Crew; round 4 found them at every width) */
@media (max-width: 599px) { .b-small { font-size: 16px; } .b-label { font-size: 14px; } }   /* nothing under 14px on a phone (audit, 13 Oct night) */
.b-muted { color: var(--muted); }
.b-num { font-variant-numeric: tabular-nums; }
.b-huge.b-num { font-variant-numeric: normal; }
.b-fig { container-type: inline-size; width: 100%; }   /* width: sized by its container, it shrank to nothing in a site's flex-column review head and its note wrapped a word to a line on a phone (Vindustries, 22 Nov). A no-op in the kit's grid and block heads */
.b-fig > .b-huge { font-size: min(clamp(52px, 9.2vw, 168px), 31cqi); }   /* the figure in its own wrapper: a container round the label scoped the ledger's section counter */   /* a figure in the label column fits the column, whatever the face (journal 99.6% ran 2px into the quote, review 15 Oct) */   /* a big figure (99.6%) reads as one word: some faces' tabular full stop is a figure wide (Schibsted, 15 Oct) */

/* Links: a line that draws in, an arrow that nudges */
.b-link { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; text-decoration: none; position: relative; }
.b-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: calc(50% - .78em); height: 1px; background: currentColor; transform-origin: left; transition: transform .5s var(--ease); }
.b-link:hover::after { transform: scaleX(0); transform-origin: right; }
.b-link.is-wrapped { text-decoration: underline 1px; text-underline-offset: .25em; }   /* over two lines the drawn line (one line's place) crossed the last word: kit2.js marks it */
.b-link.is-wrapped::after { display: none; }
.b-arrow { display: inline-block; transition: transform .45s var(--ease); }
a:hover > .b-arrow, button:hover > .b-arrow { transform: translate(3px, -3px); }
.b-btn { display: inline-flex; align-items: center; gap: .6em; min-height: 52px; padding: 0 26px; background: var(--fg); color: var(--bg); text-decoration: none;
  font-weight: 500; border-radius: 0; transition: background-color .3s, color .3s; }
.b-btn:hover { background: var(--accent); color: #fff; }
:root[data-tone='ink'] .b-btn:hover { color: var(--ink); }

.b-wrap { padding-inline: var(--gutter); }
.b-section { padding-block: clamp(52px, 5.6vw, 100px); background: var(--bg); color: var(--fg); position: relative; z-index: 1; }
/* Each section overlaps the one before by 2px. Their edges fall on part pixels (1176.52), and where the page is drawn scaled (the
   CRM's review frame, browser zoom, a 125% screen) the part-covered row let the sticky hero photo under them show through as a
   1px line (James 4 Nov, One & Done and Aquasmart: "wow I am seeing it in a lot of places"). */
.b-section + .b-section, .b-section + .b-footer { margin-top: -2px; }
.b-row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); }
.b-row > .b-label { grid-column: 1 / span 3; padding-top: .7em; }
.b-row > .b-body { grid-column: 4 / -1; }
@media (max-width: 899px) { .b-row > .b-label, .b-row > .b-body { grid-column: 1 / -1; } .b-row > .b-label { padding: 0 0 18px; } }

/* Header: logo left, two words right. Over the hero it's light, after that it takes the page's colours and hides going down. */
.b-header { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px var(--gutter); color: var(--fg); transition: transform .5s var(--ease), background-color .5s; }   /* no color: it lagged the page's text by .5 s, Menu vanished */
.b-header.is-over { color: #fff; }
.b-panel:focus-visible { outline-color: #fff; }
/* The header's and the hero's rings are their own words' colour, so a ring reads wherever the words do: white over the photo, the
   site's ink on a light header band. A fixed white ring was 1.00 to 1.02:1 on a header band set to paper or white (tone, 22 Nov:
   BlueGrass, Matterhorn, Craig Read, Farm Force's ledger banner at desktop widths, Steel Electrical). */
.b-header :focus-visible, .b-hero :focus-visible { outline-color: currentColor; }
/* Its edge, either side of the ring, is the opposite of the words' colour: dark under a white ring (the logo's ring was 1.5:1 on pale
   sky, the accent blue vanished against sky), pale under an ink ring on a light band (the fixed dark edge half hid it there). The
   same pair at the bleed and under-band heroes below. A browser without relative colours keeps the dark edge. */
.b-header.is-over :focus-visible, .b-hero :focus-visible { box-shadow: 0 0 0 7px rgb(0 0 0 / .5); box-shadow: 0 0 0 7px rgb(from currentColor calc(255 - r) calc(255 - g) calc(255 - b) / calc(alpha * .5)); }
/* The header floats over a veil of the page colour. Its strong upper shade keeps scrolling text behind the logo (James 21 Oct). */
.b-header::before { content: ''; position: absolute; inset: 0 0 -36px; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 95%, transparent) 0, color-mix(in srgb, var(--bg) 90%, transparent) 58%, color-mix(in srgb, var(--bg) 45%, transparent) 80%, transparent 100%); }
.b-header.is-stuck:not(.is-over)::before { opacity: 1; }
/* A dark band past the hero, the logo and words white the whole way down (site.json "header": "dark"; James 30 Oct, APM: the white logo
   turned black and teal a moment into the scroll, "I think we just have darker background, and the text be white") */
/* From the first bit of scroll, over the photo too: the ledger family's pale veil from is-stuck was what turned the header over (html
   prefix: the family files load after this one) */
.b-header.is-stuck:not(.is-over) nav { text-shadow: 0 0 12px var(--bg), 0 0 4px var(--bg), 0 0 2px var(--bg); }   /* a halo of the ground, so words that scroll under stay behind Menu */
html .b-header.b-header--dark.is-stuck, html .b-header.b-header--dark:not(.is-over) { color: var(--on-ink); background-color: var(--ink); }   /* the header's own colour, as Deverell's band: motion's focus check reads it there */
html .b-header.b-header--dark.is-stuck::before, html .b-header.b-header--dark:not(.is-over)::before { opacity: 0; }
html .b-header.b-header--dark.is-stuck nav, html .b-header.b-header--dark:not(.is-over) nav { color: var(--on-ink); text-shadow: none; }
html .b-header.b-header--dark.is-stuck :focus-visible, html .b-header.b-header--dark:not(.is-over) :focus-visible { outline-color: currentColor; box-shadow: none; }   /* the ring in the words' own colour, which reads on the header's ground: var(--on-ink) stayed white where a site set its stuck header on paper with ink words (Villaworx, 1.01:1, 27 Nov) */
/* Only a dark logo (.b-logo--dark: measured from its pixels, or "dark": true) turns white on the band. Every logo did until 1 Dec, so a
   two-colour logo came out plain white: 17 of the 26 sites with a dark header, and four of six test builds, undid it in their own CSS.
   A logo with a "night" twin shows the twin on the band (build_site_make.py). */
html .b-header.b-header--dark .b-logo--dark img { filter: brightness(0) invert(1); }
.b-logo { flex: none; }
.b-logo--text { display: inline-flex; align-items: center; min-height: var(--logo-h); font-size: clamp(19px, 1.6vw, 24px); font-weight: 500; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }   /* a business with no logo file: its name, set in the site's face */
.b-logo img { height: var(--logo-h); width: auto; transition: filter .6s var(--ease); }   /* filter: a logo that changes colour (white over a photo) fades over, never snaps (James 20 Oct) */
.b-header .b-logo img { height: var(--logo-h-top); }
@media (max-height: 520px) { .b-header .b-logo img { max-height: 56px; } }   /* a short window (200% zoom, a phone on its side): a site's bigger logo kept the header over a quarter of the screen (Paint Crew, 18 Oct) */
.b-header.is-over .b-logo img { filter: drop-shadow(0 1px 10px rgb(0 0 0 / .28)); }   /* a lift off a bright sky */
.b-header nav { display: flex; gap: clamp(18px, 2.4vw, 40px); align-items: center; font-weight: 500; }
.b-header nav a, .b-header nav button { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: .4em; }
.b-menu-btn i { display: inline-grid; gap: 5px; width: 22px; }
.b-menu-btn i::before, .b-menu-btn i::after { content: ''; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.b-header .b-call { display: none; padding: 0 10px; margin: 0 -10px; min-width: 44px; justify-content: center; }   /* a 44 px target, the word where it was: "Call" in a narrow font is 22 px, so 42 with its padding (ARC and S&I, 26 Oct) */
@media (max-width: 599px) { .b-header .b-hide-phone { display: none; } .b-header .b-call { display: inline-flex; } }   /* phones: Call in the header, one tap to the number (James, 15 Oct) */
/* A wide screen: the page's own links and the phone number in the header, no Menu (James 10 Nov, improvement 18). The number from
   900, the links from 1100 where a long logo still leaves them room. Below that, Call or Let's talk and Menu as before. */
.b-header .b-nav-links, .b-header .b-nav-phone { display: none; }
@media (min-width: 900px) { .b-header .b-nav-phone { display: inline-flex; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .01em; white-space: nowrap; } }
@media (min-width: 1100px) {
  .b-header .b-nav-links { display: flex; gap: clamp(16px, 1.9vw, 30px); align-items: center; }
  .b-header .b-nav-links a { white-space: nowrap; position: relative; }
  .b-header .b-nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 9px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
  .b-header .b-nav-links a:hover::after, .b-header .b-nav-links a:focus-visible::after { transform: scaleX(1); }
  .b-header .b-menu-btn { display: none; }
  html .b-header .b-logo img { max-width: min(30vw, 440px); }
}
@media (prefers-reduced-motion: reduce) { .b-header .b-nav-links a::after { transition: none; } }

/* Menu: full screen, links big, sliding in one after another */
.b-menu { position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--on-ink); --fg: var(--on-ink); --muted: var(--muted-ink); --accent: var(--accent-on-ink); display: grid; grid-template-rows: auto 1fr auto;
  padding: 14px var(--gutter) clamp(24px, 4vw, 48px); overflow-y: auto; overscroll-behavior: contain; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s var(--ease-in-out), visibility 0s .7s; }
.b-menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease-in-out), visibility 0s; }
.b-menu__top { display: flex; justify-content: space-between; align-items: center; min-height: var(--logo-h); }
.b-menu__links { align-self: center; display: grid; gap: .1em; font-size: min(clamp(44px, 8vw, 128px), calc((100svh - 250px) / var(--n, 5) / 1.12)); line-height: 1; letter-spacing: -0.05em; }   /* --n links (build_site sets it): seven at full size ran past the window and cut the contact rings off (REB trial, 15 Oct) */
.b-menu__links a { text-decoration: none; display: inline-flex; gap: .3em; align-items: baseline; width: fit-content; }
.b-menu__links a:hover { color: var(--accent-on-ink); }
.b-menu__links li { overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }   /* room for descenders: IBM Plex's g was sliced */
.b-menu__links a:focus-visible { outline-offset: -2px; }   /* inside the link: the line's overflow (for the slide-in) cut the ring to a sliver */
.b-menu__links li > a { transform: translateY(105%); transition: transform .8s var(--ease); transition-delay: calc(.12s + var(--i, 0) * .06s); }
.b-menu.is-open .b-menu__links li > a { transform: none; }
@media (max-height: 520px) { .b-menu__links { font-size: clamp(30px, 11vh, 56px); } }   /* 200% zoom on a laptop: the contact row was below the window */
.b-menu-close { min-width: 44px; min-height: 44px; }
.b-menu__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; }
html:not(.js) .b-menu { display: none; }
html:not(.js) .b-header { position: absolute; }   /* without a script it can't change colour as the page scrolls, so it stays on the hero photo */

/* Hero: the photo fills the screen and stays put while the page slides over it */
.b-hero { position: relative; top: 0; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; color: #fff; z-index: 0; background: var(--ink); }   /* dark under the photo: the words read before it loads */
.b-hero picture, .b-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-pos, 50% 50%); }
.b-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .28) 0, transparent 22%, transparent 45%, rgb(0 0 0 / .55) 100%); }
.b-hero__words { position: absolute; inset: auto 0 0; z-index: 1; padding: 0 var(--gutter) clamp(18px, 2.4vw, 34px); display: grid; gap: clamp(22px, 3vw, 44px); }
.b-hero__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; border-top: 1px solid rgb(255 255 255 / .45); padding-top: 14px; }
.b-hero__base > * { flex: 1 1 0; min-width: 9rem; }   /* rem, not ch: ch is the font's own 0, so the facts wrapped one way in the stand-in font and another once theirs loaded, and McIntyre's hero moved 0.136 on a phone (26 Oct) */
.b-hero__base > :last-child { text-align: right; }
.b-hero__base .b-phone-only { display: none; }
/* The hero's call line (.b-hero__call, build_site_hero.py) shows at every width: on a wide screen it sits with the facts at a size the
   eye lands on, not only as the menu's number (judges 19 Nov). It was phones only until 1 Dec, so 126 of 252 built sites and every
   build since 19 Nov added this by hand, and the quick check failed a page without it. A site's own rule on .b-phone-only still wins. */
@media (min-width: 600px) { .b-hero__base .b-hero__call { display: block; font-size: clamp(18px, 1.45vw, 24px); } }   /* its size only: a weight the site does not load would be faked (the first Fable build, 1 Dec) */
/* Phones keep the first fact, the proof (.b-proof: a rating, reviews, years, a licence) and a verified trade body or licence
   (.b-member, which build_site.py sets from facts.json), and drop a spare second or third line. James 23 Nov: a verified
   membership shows on the first screen on a phone too (Steel Electrical's Master Electricians line was hidden). The Call line is
   never a spare fact: with one or two facts it was the second or third child and went too (the quote hero had its own fix). */
@media (max-width: 599px) { .b-hero__base > :nth-child(2):not(.b-proof):not(.b-member):not(.b-phone-only), .b-hero__base > :nth-child(3):not(.b-proof):not(.b-member):not(.b-phone-only) { display: none; } .b-hero__base .b-phone-only { display: block; } }
@media (min-height: 500px) { .b-hero { position: sticky; } }
/* Photos that take turns (James, 13 Oct night: "have very good ones, rotate between them"). The next one fades in over the last, which
   stays until it's covered, so the screen never dips. Without JS, or with reduced motion, only the first shows. */
.b-hero__slides { position: absolute; inset: 0; z-index: 0; }
.b-hero__slides > picture { opacity: 0; transition: opacity 1.8s ease; }
.b-hero__slides > picture.is-on { opacity: 1; z-index: 2; }
.b-hero__slides > picture.was-on { opacity: 1; z-index: 1; transition: none; }
.b-hero__slides > picture > img { object-position: var(--pos, var(--hero-pos, 50% 50%)); }
/* a turning hero's photo can say what it is, "cap" on the slide, on a chip in its lower left corner, the header's empty middle
   when it scrolls under on a desktop: a fitout client wants to know which store (Gulf, 21 Oct). ::after is the shade, so ::before. A pair, row or wipe hero shows its captions its own way */
.b-hero:not(.b-hero--pair):not(.b-hero--row):not(.b-hero--wipe) .b-hero__slides > picture[data-cap]::before { content: attr(data-cap); position: absolute; z-index: 1;
  left: 12px; bottom: 12px; padding: 5px 11px; background: rgb(10 10 10 / .7); color: #fff; font-size: 14px; line-height: 1.25; pointer-events: none; }
.b-hero:not(.b-hero--pair):not(.b-hero--row):not(.b-hero--wipe) .b-hero__slides > picture:not(.is-on)[data-cap]::before { visibility: hidden; }   /* every photo but the current one hides its caption, so two never show one over the other while the photos cross (Harper Homes review, 28 Oct) */
@media (max-width: 899px) { .b-hero__slides > picture > img { object-position: var(--pos-phone, var(--pos, var(--hero-pos, 50% 50%))); } }   /* a phone shows a narrow slice: each photo can say which */
/* a bright photo carries its own extra shade under the words (--shade on its <picture>, 0 to 1): it fades in and out with the photo */
.b-hero__slides > picture::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / var(--shade-top, 0)), transparent 24%), linear-gradient(180deg, transparent var(--shade-from, 35%), rgb(0 0 0 / var(--shade, 0)) 100%); }   /* --shade-from: higher for a heading over bright sky. --shade-top: a bright sky under the menu (Gulf's Santa, 21 Oct: Menu read 3.69:1) */
/* Each turning photo zooms out slowly and evenly from the moment it shows until it has gone (kit2.js starts it once the photo is
   drawn, the first when the cover lifts). It was ease-out over 9 s on top of a 2.6 s settle that ran before the photo had loaded:
   most of the zoom was over or skipped by the time it showed, then it sat still (James 26 Oct, Full Property Cleanup and others) */
@media (prefers-reduced-motion: no-preference) {
  .b-hero:not(.b-hero--pair):not(.b-hero--row):not(.b-hero--wipe) .b-hero__slides > picture > img { transform: scale(1.08); will-change: transform; }   /* its own layer before the zoom starts: made at the zoom's first frame, the photo hitched as the cover lifted (James 4 Nov, One & Done "a slight stutter in the hero image") */
  .b-hero:not(.b-hero--pair):not(.b-hero--row):not(.b-hero--wipe) .b-hero__slides > picture { overflow: clip; }   /* the zoom stays inside its photo: a hero that starts under the header showed the photo's top edge moving behind it (James 29 Oct, Summit) */
  .b-hero .b-hero__slides > picture > img.drift { animation: b-drift 10.5s linear both; } }
@keyframes b-drift { from { transform: scale(1.08); } to { transform: scale(1); } }
/* the hairline over the hero's small print fills while each photo is on, like Storey's bar passing through its photos (James: "loading
   each page with a loading bar over it and passing through each photo") */
.b-hero.has-turns .b-hero__base { position: relative; }
.b-hero.has-turns .b-hero__base::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: #fff; transform-origin: left; transform: scaleX(0); }
.b-hero.is-timing .b-hero__base::before { animation: b-timer var(--turn, 6.5s) linear forwards; }
@keyframes b-timer { to { transform: scaleX(1); } }   /* the page slides over it; not on short screens or at 200% zoom */
.b-hero h1 { text-wrap: balance; max-width: 19ch; font-size: clamp(56px, 7.4vw, 136px); text-shadow: 0 1px 30px rgb(0 0 0 / .18); }   /* James 10 Nov, improvement 19: at 11vw the words covered the bottom half of the house (Precision). The photo is the proof, the words sit under it in about a third less */

/* Pictures side by side, edge to edge, no gaps */
.b-edge { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.b-edge > figure { position: relative; overflow: hidden; aspect-ratio: var(--edge-ar, 4 / 3.1); }   /* --edge-ar: build_site "ar" (upright pairs, 20 Oct) */
.b-edge picture { height: 100%; }
.b-edge img { width: 100%; height: 100%; object-fit: cover; }
.b-edge figcaption { position: absolute; z-index: 1; left: var(--gutter); bottom: 16px; color: #fff; text-shadow: 0 1px 12px rgb(0 0 0 / .5); }
.b-edge > figure::after { content: ''; position: absolute; inset: auto 0 0; height: min(140px, 40%); background: linear-gradient(transparent, rgb(0 0 0 / .7)); pointer-events: none; }   /* .7: IMC's "The top landing" was 4.0:1 at .55. "After" over a pale sky was 1.6:1 (photo_text, Heartwood trial 15 Oct) */
@media (max-width: 699px) { .b-edge { grid-auto-flow: row; } }

/* Tall panels: one per kind of work, the words on the photo, the photo easing in on hover */
.b-panels { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); }
/* four kinds of work: four across, two by two on a tablet, never three and one left alone on a row (Gulf, 21 Oct: "Selected homes" by itself) */
.b-panels:has(> :nth-child(4):last-child) { --n: 4; }
@media (max-width: 1099px) { .b-panels:has(> :nth-child(4):last-child) { --n: 2; } }
.b-panel { position: relative; height: min(84vh, 820px); overflow: hidden; color: #fff; text-decoration: none; }
.b-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.b-panel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgb(0 0 0 / .3) 55%, rgb(0 0 0 / .74)); }   /* deep enough for white words over a pale roof */
.b-panel__words { position: absolute; inset: auto 0 0; z-index: 1; padding: 0 clamp(18px, 2.2vw, 36px) clamp(22px, 2.6vw, 40px); display: grid; gap: 10px; }
.b-panel__words p { max-width: 34ch; opacity: .9; }
.b-panel:hover img { transform: scale(1.045); }
.b-panel:focus-visible { outline: none; }
.b-panel:focus-visible::before { content: ''; position: absolute; inset: 4px; z-index: 2; pointer-events: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgb(0 0 0 / .55); }   /* over the photo and its shade, white with a dark edge for sky and roof alike: the outline drew under them */
@media (max-width: 699px) { .b-panels { grid-template-columns: 1fr; } .b-panel { height: 78svh; } }   /* tablets keep them side by side (stacked, three near-full screens, 13 Oct) */
@media (min-width: 700px) and (max-width: 1099px) { .b-panel { height: min(70vh, 640px); } .b-panel__words .b-big { font-size: clamp(26px, 3.6vw, 40px); } }

/* A plain list in columns, hairlines between, no boxes */
.b-list { columns: 2 22ch; column-gap: var(--gutter); }
.b-list li { break-inside: avoid; padding: 14px 0; border-top: 1px solid color-mix(in srgb, var(--fg) 18%, transparent); }

.b-panel:focus-visible, .b-edge figure:focus-visible { outline-offset: -4px; }

/* Gallery: rows of photos edge to edge, each at its own shape (James: keep the photos' shapes, nothing cut off). A photo's share of its
   row is its width over height (--ar), so every photo in a row comes out the same height. Phones: two columns, each photo whole. */
.b-gallery__row { display: flex; }
.b-gallery figure { flex: var(--ar) 1 0; aspect-ratio: var(--ar); min-width: 0; position: relative; overflow: hidden; }
.b-gallery picture { height: 100%; }
.b-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.b-gallery figure:hover img { transform: scale(1.04); }
.b-gallery figcaption { position: absolute; z-index: 1; left: 14px; bottom: 12px; right: 14px; color: #fff; text-shadow: 0 1px 10px rgb(0 0 0 / .6); opacity: 0; transform: translateY(6px); transition: .5s var(--ease); }
.b-gallery figure:hover figcaption, .b-gallery figure:focus-within figcaption { opacity: 1; transform: none; }
/* a shade under the caption, there while it is (white over a pale lawn or wall was 1.1 to 2.9:1, review 14 Oct). Deeper and taller
   from 23 Nov: captions over pale photos still read faint (the quick-check lane, 22 Nov) */
.b-gallery figure::after { content: ''; position: absolute; inset: auto 0 0; height: min(170px, 75%); background: linear-gradient(transparent, rgb(0 0 0 / .55) 40%, rgb(0 0 0 / .86)); opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.b-gallery figure:hover::after, .b-gallery figure:focus-within::after { opacity: 1; }
.b-gallery:focus-visible figcaption, .b-gallery:focus-visible figure::after { opacity: 1; transform: none; }   /* the gallery takes one Tab stop: its captions show then */
/* Phones: one photo under the next, each whole at its own shape and the full width. No sideways swipe: the page only moves down
   (Victoria, 21 Oct: "just make them be like normal gallery images"; two masonry columns ended unevenly, 13 Oct) */
@media (max-width: 699px) {
  .b-gallery { display: grid; gap: 6px; }
  .b-gallery__row { display: contents; }
  .b-gallery figure { flex: none; width: 100%; aspect-ratio: var(--ar); }
  /* never wider than its file fills on a 2x phone (--fw, its widest file): Black Robin's 640 px photos went soft at the full width (21 Oct) */
  .b-gallery figure[style*='--fw'] { width: min(100%, calc(var(--fw) * 1px / 1.82)); }
  .b-gallery figcaption { opacity: 1; transform: none; font-size: 14px; }
  .b-gallery figure::after { opacity: 1; }
}
@media (hover: none) { .b-gallery figcaption, .b-gallery figure::after { opacity: 1; transform: none; } }

/* Reviews: one at a time, big, the words coming in line by line */
.b-quotes { display: grid; }
.b-quote { display: grid; gap: 28px; align-content: start; }
.b-quote blockquote { max-width: 30ch; }
.b-quote blockquote::before { content: '\201C'; } .b-quote blockquote::after { content: '\201D'; }
html.js .b-quotes > .b-quote { grid-area: 1 / 1; align-self: start; visibility: hidden; }   /* each its own height, so the box fits the one shown (James 24 Oct, Precision comment 42: a gap under a short review) */
html.js .b-quotes > .b-quote.is-on { visibility: visible; }
html.js .b-quotes:has(+ .b-quotes__nav) { transition: height .5s var(--ease); align-content: start; }
@media (prefers-reduced-motion: reduce) { html.js .b-quotes { transition: none; } }
.b-quotes__nav { display: none; gap: 28px; align-items: center; margin-top: clamp(24px, 2.6vw, 40px); }
html.js .b-quotes__nav { display: flex; }

/* A person: big portrait beside their words */
.b-person { align-items: end; }
.b-person > figure { grid-column: 1 / span 3; overflow: hidden; }   /* its reveal zooms the photo in from 1.14: keep that inside the frame */
.b-person > div { grid-column: 4 / span 6; }
.b-person img { width: 100%; aspect-ratio: var(--person-ar, 4 / 5); object-fit: cover; }   /* a site gives its own shape for a photo that mustn't be cropped */
.b-person--wide > figure { grid-column: 1 / span 6; } .b-person--wide > div { grid-column: 7 / span 5; }
.b-person--wide img { aspect-ratio: var(--person-ar, 3 / 2); }
@media (max-width: 899px) { .b-person > figure { grid-column: 1 / span 8; max-width: 360px; } .b-person > div { grid-column: 1 / -1; margin-top: 28px; }
  .b-person--wide > figure { grid-column: 1 / -1; max-width: none; } }

/* Contact: mobile, landline, email, one under the other at one size (James, 13 Oct night), sized so the email fits a phone */
.b-contact { display: grid; justify-items: start; row-gap: .12em; font-size: clamp(20px, 2.5vw, 42px); }
.b-contact a { overflow-wrap: anywhere; }
.b-menu__foot .b-contact { font-size: clamp(18px, 2vw, 24px); }   /* the menu's contact, one under the other like everywhere else (checklist 4b) */

/* Forms: lines, not boxes */
.b-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.b-form > *, .b-field, .b-file, .b-form__two > * { min-width: 0; } .b-file input { width: 100%; max-width: 100%; min-width: 0; }   /* the form fits a 320px panel */
.b-field { display: grid; gap: 4px; }
/* The form (James 10 Nov, improvement 24): labels that can be read, boxes a thumb can hit, a photo button that looks like one. Was 13px grey labels over hairlines. */
.b-field label { font-size: 15px; font-weight: 500; color: var(--fg); }
.b-field input, .b-field textarea { font: inherit; font-size: 18px; color: inherit; background: color-mix(in srgb, var(--fg) 5%, transparent); border: 1.5px solid color-mix(in srgb, var(--fg) 62%, transparent);   /* 3:1 or better, also on a mid-tone ink (PI blue, 26 Oct) */
  padding: 12px 14px; min-height: 52px; border-radius: 0; transition: border-color .3s, background-color .3s; width: 100%; }
.b-field input:focus, .b-field textarea:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 1.5px var(--fg); background: transparent; }   /* the page's own text colour, 3px of line: a 1px accent was lilac on navy (Kerry Dines review, 3 Nov) */
.b-field:focus-within label { color: var(--fg); }
.b-field textarea { resize: vertical; min-height: 96px; }
.b-field input::placeholder, .b-field textarea::placeholder, .b-form input::placeholder { color: var(--muted); opacity: 1; }   /* an example, not an answer: the muted grey, which reads (42% of the text was 2.6:1, review 15 Oct) */
.b-form__two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }
@media (max-width: 499px) { .b-form__two { grid-template-columns: 1fr; } }
.b-file { display: grid; gap: 6px; }
.b-file input { font: inherit; font-size: 14px; min-height: 44px; }   /* 'No file chosen' in the page's font, not the system's; a 44px target (in the page since 17 Oct, snap saw 40) */
.b-file label { font-size: 15px; font-weight: 500; color: var(--fg); }
.b-file input { color: var(--muted); }
.b-file input::file-selector-button { font: inherit; font-size: 16px; font-weight: 500; color: var(--fg); background: none; border: 1.5px solid currentColor; border-radius: 0; padding: 13px 20px; margin-right: 14px; cursor: pointer; }
.b-file input::file-selector-button:hover { background: var(--fg); color: var(--bg); }
/* The photo button in the site's own words (James 10 Nov, improvement 24, finished 11 Nov): "Choose Files, No file chosen" was the
   browser's, the one thing on the form no site could word. The real input lies over the button, unseen, so a click, a tap, the
   keyboard and a screen reader all still use it, and lead.js lists what was chosen. With scripts off the browser's own control shows. */
.b-file__btn { display: none; }
html.js .b-file__pick { position: relative; display: inline-flex; justify-self: start; }
html.js .b-file__pick input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; cursor: pointer; }
html.js .b-file__pick input::file-selector-button { cursor: pointer; }
html.js .b-file__btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; font-size: 16px; font-weight: 500; color: var(--fg); border: 1.5px solid currentColor; }
html.js .b-file__pick:hover .b-file__btn { background: var(--fg); color: var(--bg); }
html.js .b-file__pick:has(input:focus-visible) .b-file__btn { outline: 2px solid var(--fg); outline-offset: 3px; }
.b-trap { position: absolute; left: -9999px; }
.field-error { color: var(--error, #b3261e); font-size: 14px; }
/* on a dark ground the red goes light: #b3261e was 2.0:1 on Gulf's navy, where most sites' forms sit (21 Oct, snap presses Send) */
:root[data-tone='ink'] { --error: #ffdad4; }   /* 4.8:1 on a mid blue ink (PI, 26 Oct), 13:1 on the dark ones */
.form-status:empty { display: none; }
.form-status { padding-top: 6px; font-weight: 500; }
.form-status.err { color: var(--error, #b3261e); }

/* Footer: short, so the close and the footer make one last window (James, 14 Oct, on Brine). The index in two columns (.b-index),
   any other lists beside it, the small print to the right; no second logo, no second copy of the contact details. */
.b-footer { background: var(--ink); color: var(--on-ink); --fg: var(--on-ink); --muted: var(--muted-ink); --accent: var(--accent-on-ink); position: relative; z-index: 1;
  padding: clamp(36px, 4vw, 60px) var(--gutter) 22px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 26px; }
.b-footer__cols { display: flex; flex-wrap: wrap; gap: 30px clamp(40px, 8vw, 140px); }
.b-footer__creds { grid-column: 1 / -1; display: grid; gap: 18px; padding-bottom: clamp(26px, 3vw, 44px); border-bottom: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); }   /* registrations at the foot (Gulf B, 22 Oct) */
/* on a phone the foot stays short enough that, scrolled to the bottom, the form's send button is still above it (keys): smaller logos,
   tighter gaps, and the index's links side by side */
@media (max-width: 599px) { .b-footer:has(.b-footer__creds) { padding-top: 24px; row-gap: 18px; } .b-footer__creds { gap: 12px; padding-bottom: 18px; } .b-footer__creds .b-creds { gap: 12px; }
  .b-footer__creds .b-creds__item { grid-template-columns: 56px 1fr; gap: 14px; min-height: 56px; } .b-footer__creds .b-creds__logo { width: 56px; height: 56px; padding: 6px; } .b-footer__creds .b-creds__logo--doc { width: 48px; height: 68px; padding: 0; }
  .b-footer:has(.b-footer__creds) .b-index { display: flex; flex-wrap: wrap; column-gap: 24px; margin-top: 4px; } }
.b-footer__cols ul { display: grid; margin-top: 10px; }
.b-footer__cols a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; overflow-wrap: anywhere; }   /* min-width too: a short name ("Pete") was 40 px wide (19 Oct, Deverell) */
.b-footer__cols li { overflow-wrap: anywhere; }
.b-footer__cols a:hover { color: var(--accent); }
.b-index { grid-template-rows: repeat(3, auto); grid-auto-flow: column; grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: clamp(24px, 8vw, 140px); }
.b-index:has(> li:nth-child(7)) { grid-template-rows: repeat(4, auto); }   /* seven or eight stay two columns, so Find us still fits beside them (17 Oct: a seventh item made a third column, Find us wrapped under and the close went under the header) */
.b-index:has(> li:nth-child(4)):not(:has(> li:nth-child(5))) { grid-template-rows: repeat(2, auto); }   /* four run two and two, not three and one (22 Nov: two polishers fixed it site by site) */
.b-footer__mark { display: none; }   /* a family can set the name huge across the foot (heritage: Allpress, Mejuma) */
.b-footer__base { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 8px; max-width: 36ch; color: var(--muted); }   /* the footer's own tone (it follows the last section, 17 Oct) */
.b-footer__base p { text-wrap: balance; }
@media (max-width: 699px) { .b-footer { grid-template-columns: 1fr; } .b-footer__base { align-items: flex-start; text-align: left; } }
@media (max-width: 599px) { /* phones: every list two across, the small print and Back to the top on one line, so the last window still fits */
  .b-footer { padding-top: 28px; gap: 14px; }
  .b-footer__cols { gap: 20px; }
  .b-footer__cols ul { margin-top: 4px; }
  .b-footer__cols ul:not(.b-index) { display: flex; flex-wrap: wrap; column-gap: 24px; }
  .b-footer__base { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: baseline; max-width: none; gap: 4px 20px; }
}

/* The last screen (.b-last on the closing section): scrolled to the very bottom, its heading sits at the top of the window and the rest
   settles just above the footer, the two together one window (kit2.js measures the footer into --foot-h; 70svh without JS) */
.b-last { min-height: calc(100svh - var(--foot-h, 30svh)); display: flex; flex-direction: column; justify-content: space-between; gap: clamp(36px, 4.5vw, 70px);
  padding-block: clamp(96px, 8vw, 124px) clamp(36px, 4vw, 60px); }
.b-last .b-body { display: grid; gap: clamp(18px, 1.8vw, 26px); }
@media (max-width: 599px) { .b-last { gap: 16px; padding-block: 80px 20px; } .b-last .b-body { gap: 14px; } }
@media (min-width: 600px) and (max-height: 820px) { .b-last { gap: 20px; padding-block: 88px 14px; } .b-last .b-body { gap: 16px; } }   /* a short laptop screen (1280 x 720) */
@media (min-width: 600px) and (min-height: 821px) { .b-last { gap: min(clamp(36px, 4.5vw, 70px), 4svh); padding-bottom: min(clamp(36px, 4vw, 60px), 3svh); } }   /* the gaps are minimums: capped so a long close still lands under the header */
@media (min-width: 600px) and (orientation: portrait) { .b-last { justify-content: flex-start; } }   /* a tall tablet: the contact stays under its heading, not 340px below it */

/* Pointer: a fine trail that follows like a string (Nabil Issa; James preferred it to a ring). The real pointer stays. */
.b-trail { position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 90; pointer-events: none; mix-blend-mode: difference; }

/* Motion. Hidden states only with JS, and only without reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
  html.js [data-reveal].in { opacity: 1; transform: none; }
  html.js [data-reveal='img'] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease); transition-delay: var(--d, 0s); }
  html.js [data-reveal='img'] img { transform: scale(1.14); transition: transform 1.8s var(--ease); transition-delay: var(--d, 0s); }
  html.js [data-reveal='img'].in { clip-path: inset(-12px); }   /* room for an outside focus ring once it's in */
  html.js [data-reveal='img'].in img { transform: none; }
  html.js [data-lines] .w { display: inline-block; vertical-align: top; clip-path: inset(-0.5em -0.3em -0.28em -0.3em); }
  html.js [data-lines] .wi { display: inline-block; transform: translateY(calc(100% + .45em)); transition: transform 1.1s var(--ease); transition-delay: calc(var(--d, 0s) + var(--l, 0) * .085s); }   /* past the mask's bottom room: at 105% a tight serif's tops showed as dots */
  html.js [data-lines].in .wi { transform: none; }
  /* each word's mask opens out the moment its rise ends: it cut the hero heading's own shadow, a hard edge in the glow over a dark
     photo (Precision's roses, audit 21 Oct). Taking .in away (a quote carousel) closes it at once */
  html.js [data-lines].in .w { clip-path: inset(-1em -0.6em); transition: clip-path 0s linear calc(var(--d, 0s) + var(--l, 0) * .085s + 1.1s); }
  html.js .b-quote blockquote[data-lines]::before, html.js .b-quote blockquote[data-lines]::after { opacity: 0; transition: opacity .6s var(--ease) calc(var(--d, 0s) + .35s); }   /* the quote marks come with the words, not before them */
  html.js .b-quote blockquote[data-lines].in::before, html.js .b-quote blockquote[data-lines].in::after { opacity: 1; }
}

/* Reduced motion: the menu and Let's talk are simply there and gone, no wipe or slide */
@media (prefers-reduced-motion: reduce) {
  .b-menu, .b-menu.is-open, .b-menu__links li > a { transition: none !important; }
  .b-panel img, .b-gallery img { transition: none !important; transform: none !important; }   /* the hover zoom too */
}

/* First visit: the logo is simply there, in the colour it will land in, on the colour of the page's top, then it travels to the
   header and the cover fades (James 26 Oct: no rise, no paint stroke, no sweep, "just have the logo present, and then it moves to the
   top left". McIntyre's dark mark on the dark cover turned white as it landed, Tilecraft's dark cover sat over a cream page).
   kit2.js copies the header logo's filter onto the mark and the hero's ground onto the cover (--intro-bg). CSS completes the
   sequence if the script fails. Reduced motion skips it. */
.b-intro, .b-intro__mark { display: none; }
html.intro { --intro: 2.95s; --k: 1.9; --glide: cubic-bezier(.65, 0, .35, 1); --pace: .6; }   /* James 10 Nov, improvement 22: about 1.8 s, first visit only (was 1.1, about 3.2 s) */   /* --pace: kit2.js applies it. 1.4 after James's "rushed" (17 Oct), 1.1 after every outside review asked for shorter (5 to 6 s on a phone), his "go with the consensus" (29 Oct): about 4 s, and a tap, key or scroll ends it */
@media (max-width: 599px) { html.intro { --k: 1.6; } }
@media (max-width: 399px) { html.intro { --k: 1.4; } }
html.intro .b-intro { display: block; position: fixed; inset: 0; z-index: 200; background: var(--intro-bg, var(--ink)); pointer-events: none; animation: b-gone .7s var(--glide) 2.9s forwards; }   /* the cover goes once the logo has landed (dock 1.6 to 2.75 s), never before (motion.py) */
html.intro .b-header .b-logo { opacity: 0; animation: b-show .01s linear 2.75s forwards; }
html.intro .b-header nav { opacity: 0; animation: b-show .8s ease 2.75s forwards; }
html.intro .b-intro__mark { display: block; position: fixed; z-index: 202; pointer-events: none; transform-origin: 0 0;
  /* never wider than the screen: a one-line name (Gulf, 10.8 wide to 1 tall, 21 Oct) ran off both sides; kit2.js measures the landing (--dock) */
  --iw: min(calc(var(--logo-h-top) * var(--k) * var(--logo-ar, 2.5)), 88vw, var(--logo-w, 100vw));   /* --logo-w: the file's own width, so never soft (TC, ARC 26 Oct) */ --ih: calc(var(--iw) / var(--logo-ar, 2.5));
  width: var(--iw); height: var(--ih); left: calc(50vw - var(--iw) / 2); top: calc(50vh - var(--ih) / 2);
  animation: b-fade-in .95s ease .15s both, b-dock 1.15s var(--glide) 1.6s forwards, b-gone .1s linear 2.75s forwards; }
html.intro .b-intro__mark :is(.b-intro__letters, .b-intro__splash, .b-intro__logo) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: none; -webkit-mask: none; mask: none; }   /* only the logo's own layers: a family's other marks keep their size (Parquet's wordmark was 0 x 0, round 2) */
/* Every picture in the mark, whatever a site calls it: no rise, sweep or brush (James 26 Oct, all sites). Deverell's, Good Guys' and
   Parquet's wordmarks still rose in on their own class after the morning's fix (26 Oct pm) */
html.intro .b-intro__mark img { animation: none !important; -webkit-mask: none !important; mask: none !important; clip-path: none !important; }
@keyframes b-fade-in { from { opacity: 0; } }
@keyframes b-dock { to { transform: var(--dock, translate(calc(var(--gutter) - 50vw + var(--logo-h-top) * var(--k) * var(--logo-ar, 2.5) / 2), calc(14px - 50vh + var(--logo-h-top) * var(--k) / 2)) scale(calc(1 / var(--k)))); } }   /* --dock: kit2.js measures the real logo */
@keyframes b-gone { to { opacity: 0; visibility: hidden; } }
@keyframes b-show { to { opacity: 1; } }
@keyframes b-rise-in { from { clip-path: inset(100% 0 0 0); transform: translateY(8%); } to { clip-path: inset(-6%); } }   /* a family's name set in type (field's text load-in) */

/* The closing line set big, under the hero's size (the H1 leads). Capped under the smallest hero H1 the families set (a row or ledger
   hero at 1440 is 74 to 92 px): at 6.6vw it reached 95 px and outgrew REB's, Parquet's and Paint Crew's headlines (17 Oct review) */
.b-close { font-size: clamp(30px, 5vw, 72px); line-height: .95; letter-spacing: -0.05em; font-weight: 400; }

/* Dark ground under every photo that carries white words (they read while it loads), and a soft shade behind the header over the hero */
.b-panel, .b-edge > figure, .b-gallery figure { background: var(--ink); }
.b-header.is-over { background-image: radial-gradient(ellipse 34% 100% at 100% 0, rgb(0 0 0 / .64), transparent), linear-gradient(rgb(0 0 0 / .3), transparent); }   /* deeper where Menu sits, white over a bright sky was 2.2:1 */
.b-header.is-over nav { text-shadow: 0 0 14px rgb(0 0 0 / .5), 0 1px 3px rgb(0 0 0 / .4); }
@media (max-width: 899px) { .b-header.is-over { background-image: radial-gradient(ellipse 72% 100% at 100% 0, rgb(0 0 0 / .68), transparent), linear-gradient(rgb(0 0 0 / .36), transparent); }
  .b-header.is-over nav { text-shadow: 0 0 10px rgb(0 0 0 / .65), 0 0 3px rgb(0 0 0 / .55); } }   /* phones and tablets: wide enough for Call beside Menu (3.2:1 over a pale cloud, round 4) and Get a price at 613 */
.b-logo:has(.b-logo__label) { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.b-logo__label { font-weight: 500; font-size: clamp(16px, calc(var(--logo-h-top) * .26), 34px); line-height: 1.05; letter-spacing: -0.01em; white-space: nowrap; }   /* sized with the logo it stands beside (James 26 Oct: Multi Maintenance's name with its house mark) */   /* a badge logo too small to read gets its name beside it (REB, review 15 Oct) */
/* A dark logo (build_site.py marks it .b-logo--dark from its pixels) turns light on a dark tone and in the dark menu: the walnut
   wordmark vanished on Reviews, the close and the footer (Parquet review, 15 Oct) */
:root[data-tone='ink'] .b-header:not(.is-over) .b-logo--dark img, .b-menu .b-logo--dark img { filter: brightness(0) invert(1); }
/* A long wordmark keeps Call and Menu on a phone (Parquet's 231px wordmark pushed Menu off at 320 to 375) */
@media (max-width: 599px) { .b-header .b-logo img { max-width: calc(100vw - 2 * var(--gutter) - 150px); object-fit: contain; object-position: left center; } }
.b-nowrap { white-space: nowrap; }
.b-panel__ask { display: none; }
/* Reviews all shown, as a list (journal and ledger: build_site.py leaves out the nav, so kit2.js runs no carousel) */
html.js .b-quotes--list > .b-quote { grid-area: auto; visibility: visible; }
.b-quotes--list { gap: clamp(36px, 4.5vw, 72px); }
/* round 2 (Parquet, Source): the hero's Call link takes its own line on phones (it split at 390 to 430); the logo link is a 44px target */
@media (max-width: 599px) { .b-hero__base .b-phone-only { flex-basis: 100%; text-align: left; } }
.b-logo { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }   /* min-width: a square logo drew 32 px wide on a phone, under the tap target (Buildmate, 26 Oct) */
.b-menu__top .b-logo { min-width: 0; flex: 0 1 auto; } .b-menu__top .b-logo img { max-width: calc(100vw - 2 * var(--gutter) - 110px); object-fit: contain; object-position: left center; }   /* Close stays on screen beside a long wordmark */
@media (min-width: 600px) { .b-header .b-logo img { max-width: min(42vw, 560px); object-fit: contain; object-position: left center; } }   /* a long wordmark at the big header size stays a logo, not a banner (Source, round 2). Not on a phone: it overrode the phone rule above, and Gulf's one-line name shrank to 164 px, its letters 9 px (21 Oct) */
@media (min-width: 600px) { .b-footer__cols ul:not(.b-index):has(> li:nth-child(4)) { grid-template-columns: repeat(2, auto); column-gap: clamp(28px, 3vw, 48px); } }   /* four or more profiles two across, so the last screen still fits */
.b-hero img:not(picture > img) { position: static; inset: auto; animation: none; }   /* a mark in hero.extra keeps its place: the photos' rule pinned Black Robin's robin over the logo */
/* .b-hero--pair (a site picks it, any family): the slides side by side, each named under it from its cap, so the result is seen without waiting for a turn, with reduced motion and without a script too. kit2.js doesn't turn them; .b-hero.b-hero--pair so a family's own hero rules (loaded after the kit) don't undo it; build_site.py loads them all and leaves them all readable. */
.b-hero.b-hero--pair .b-hero__slides { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: clamp(10px, 1.4vw, 22px); aspect-ratio: auto; overflow: visible; background: none; max-height: none; padding-bottom: 2.4em; }
.b-hero.b-hero--pair .b-hero__slides > picture { position: relative; inset: auto; height: auto; aspect-ratio: var(--hero-ar, 3 / 2); opacity: 1 !important; background: var(--stone); }
.b-hero.b-hero--pair .b-hero__slides > picture::after { content: attr(data-cap); inset: calc(100% + 8px) 0 auto 0; background: none; color: var(--fg); font: italic 400 clamp(16px, 1.2vw, 20px)/1.2 var(--note, var(--font)); white-space: normal; text-wrap: balance; }
/* Each caption wraps inside its own photo's width: three across on a phone, "2. Filled and primed" ran into "3. Finished" (Good
   Guys, 17 Oct). Two lines need the room below. keys.py fails a caption wider than its photo. */
@media (max-width: 599px) { .b-hero.b-hero--pair .b-hero__slides { padding-bottom: 3.6em; } }
/* three or more on a phone: a sideways strip of near full-width frames, the next one peeking (first look 17 Oct, F34: Good Guys' stages
   were 110 px thumbnails, the story unreadable) */
@media (max-width: 599px) {
  .b-hero.b-hero--pair:not(.b-hero--wipe) .b-hero__slides:has(> picture:nth-of-type(3)) { grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-bottom: 2.6em; }
  .b-hero.b-hero--pair .b-hero__slides:has(> picture:nth-of-type(3)) > picture { scroll-snap-align: start; }
}
.b-panel > picture > img { object-position: var(--pos, 50% 50%); }   /* a panel photo can say where its subject is */
@media (max-width: 380px) { .b-header .b-logo { min-width: 44px; flex: 0 1 auto; }   /* it may shrink beside Call and Menu, never under the 44 px tap target: a tall logo's link drew 42 px at 320 (Exclusive Electrical, 27 Nov) */ .b-header .b-logo__label { white-space: normal; font-size: 14px; line-height: 1.15; } .b-header nav { flex: none; gap: 16px; } }   /* a mark and a name beside Call and Menu at 320 */
/* and the gaps closed up a little where a name sits beside the mark: Coastal Curtain Cleaning's ran into Call at 320 until its polisher
   set a 10 px gap (23 Nov) */
@media (max-width: 380px) { .b-header:has(.b-logo__label) { gap: 12px; } .b-header:has(.b-logo__label) nav { gap: 10px; } }
/* .b-hero--row (a site picks it, any family): the hero's photos side by side at their own shapes, nothing cropped, all loaded and read
   out, the row as tall as the window allows with the heading and facts still on the first screen (James 16 Oct, Paint Crew: "the image of
   the house doesnt display the full height", "multiple hero images"). build_site.py gives each picture --ar and the section --row-ar.
   Phones: a strip to swipe, the next photo peeking. */
.b-hero.b-hero--row .b-hero__slides { display: flex; justify-content: center; gap: clamp(6px, .7vw, 12px); overflow: visible; background: none; aspect-ratio: auto; width: auto; max-height: none;
  height: min(var(--row-h, 46svh), calc((100vw - 2 * var(--gutter)) / var(--row-ar, 3))); }
.b-hero.b-hero--row .b-hero__slides > picture { position: relative; inset: auto; flex: none; height: 100%; width: auto; aspect-ratio: var(--ar, 3 / 2); opacity: 1 !important; overflow: hidden; background: var(--stone); }
.b-hero.b-hero--row .b-hero__slides img { width: 100%; height: 100%; object-fit: cover; }
.b-hero.b-hero--row h1 { font-size: min(clamp(40px, 6.4vw, 124px), 8.2svh); }
@media (max-width: 899px) {
  .b-hero.b-hero--row .b-hero__slides { justify-content: flex-start; height: 64vw; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .b-hero.b-hero--row .b-hero__slides::-webkit-scrollbar { display: none; }
  .b-hero.b-hero--row .b-hero__slides > picture { scroll-snap-align: start; }
  .b-hero.b-hero--row h1 { font-size: clamp(36px, 10.4vw, 72px); }
}
@media (max-width: 899px) and (max-height: 600px) { .b-hero.b-hero--row .b-hero__slides { height: 46svh; } }   /* sideways phones: the heading on the first screen */

/* A review shelf (reviews layout 'shelf'): the figure and the buttons in a row, the cards side by side under it, a swipe or the
   buttons to move along, every card readable without them */
.b-shelf__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: end; margin-bottom: clamp(28px, 3.5vw, 56px); }
.b-shelf__head > .b-label { grid-column: 1 / span 3; align-self: start; }
.b-shelf__head > .b-fig { grid-column: 4 / span 5; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.b-shelf__head > .b-fig .b-huge { text-transform: none; letter-spacing: -0.05em; line-height: .9; }
.b-shelf__head > .b-shelf__nav { grid-column: 9 / -1; display: flex; gap: 24px; justify-content: flex-end; flex-wrap: wrap; }
.b-shelf__nav button:disabled { opacity: .35; cursor: default; }
.b-shelf__nav > .b-link { min-width: 44px; justify-content: center; }   /* a 44 px target however short the word */
html:not(.js) .b-shelf__nav button { display: none; }
.b-shelf { display: flex; gap: clamp(12px, 1.4vw, 22px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter); }
.b-shelf::-webkit-scrollbar { display: none; }
.b-shelf:focus-visible, .b-hero__slides:focus-visible { outline-offset: -4px; }
.b-shelf > .b-card { flex: none; width: min(420px, 82vw); scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: clamp(22px, 2vw, 32px); background: color-mix(in srgb, var(--fg) 7%, var(--bg)); margin: 0; }   /* a shade off the ground it sits on, light or dark (first look 17 Oct: pale cards on FPC's green hid their words) */
:root.is-mid .b-shelf > .b-card { background: var(--bg); outline: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); outline-offset: -1px; }   /* mid-blend the words go pure black or white against the page, so a card tinted from them dropped to 4.07:1 (outside review, FPC, 26 Oct): no tint then, a hairline keeps its edge */
.b-shelf > .b-card blockquote { font-size: clamp(19px, 1.45vw, 24px); line-height: 1.3; letter-spacing: -0.01em; }
.b-shelf > .b-card blockquote::before { content: '\201C'; } .b-shelf > .b-card blockquote::after { content: '\201D'; }
@media (max-width: 899px) { .b-shelf__head > .b-label, .b-shelf__head > .b-fig, .b-shelf__head > .b-shelf__nav { grid-column: 1 / -1; justify-content: flex-start; } .b-shelf__head { row-gap: 18px; } }

/* The person block as a split (James 16 Oct, Paint Crew: a small photo and two loose lines at its foot read "a bit off"): the photo
   larger, the words beside it in the middle, promises as a ruled list */
.b-person:not(.b-person--wide) { align-items: center; }
.b-person:not(.b-person--wide) > figure { grid-column: 1 / span 5; }
.b-person:not(.b-person--wide) > div { grid-column: 7 / span 5; font-size: clamp(17px, 1.2vw, 20px); }
.b-points { list-style: none; margin: 0; padding: 0; display: grid; }
.b-points li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); }
.b-points li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); }
.b-points b { font-weight: 500; }
@media (max-width: 899px) { .b-person:not(.b-person--wide) > figure { grid-column: 1 / -1; max-width: 520px; } .b-person:not(.b-person--wide) > div { grid-column: 1 / -1; } }
/* a tablet keeps the split, half and half: stacked, a 520 px photo left a hole as wide beside it (Gulf's escalators at 820, 21 Oct) */
@media (min-width: 640px) and (max-width: 899px) { .b-person:not(.b-person--wide) > figure { grid-column: 1 / span 6; max-width: none; } .b-person:not(.b-person--wide) > div { grid-column: 7 / -1; margin-top: 0; } }
.b-person .b-person__lead { font-size: clamp(26px, 2.4vw, 42px); line-height: 1.1; letter-spacing: -0.03em; }   /* the split's lead beside the photo (James 16 Oct) */
@media (max-width: 599px) { .b-index { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; } }
@media (max-width: 599px) { .b-index:has(> li:nth-child(9)) { grid-template-rows: none; grid-auto-flow: row; } }   /* nine or more (a site with second pages) stay two across on a phone: four rows made a third column and broke "Graduates" mid-word at 320 px (Kerry Dines review r2, 1 Nov) */   /* phones: two even columns, so one long item doesn't squeeze the other onto two lines (16 Oct: Good Guys' footer grew and pushed the close under the header) */

/* Views (.b-views, 17 Oct, one bespoke feature per site): real photos of one job or place, picked with buttons beside them (a
   switch when there are two). Without the script every view shows in order and the buttons stay hidden (kit2.js shows them). */
.b-views__box { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 22px; align-items: start; }
.b-views__pick { grid-column: 1 / span 3; display: grid; align-content: start; border-top: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); counter-reset: view; }
.b-views__pick[hidden] { display: none !important; }   /* the phone and switch rules set display and won over [hidden]: without JavaScript six buttons showed that did nothing (18 Oct) */
@media (min-width: 900px) { .b-views__pick { position: sticky; top: calc(var(--logo-h, 64px) + 40px); } }   /* the list stays beside a tall photo as it scrolls */
.b-views__pick button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 2.4em 1fr; align-items: baseline; gap: 10px;
  min-height: 56px; padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); position: relative;
  font: 400 clamp(18px, 1.5vw, 24px)/1.2 var(--font); color: var(--muted); transition: color .3s var(--ease); }   /* the muted colour, held to 4.5:1 per site: a mix of the ink failed whenever the ink was lighter (74% of Parquet's green read 3.4:1, 18 Oct); the pressed one stands out by its underline and full ink */
.b-views__pick button::before { content: counter(view, decimal-leading-zero); counter-increment: view; font-size: max(14px, .62em); letter-spacing: .04em; }
.b-views__pick button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.b-views__pick button[aria-pressed="true"] { color: var(--fg); -webkit-text-stroke: .04em currentColor; }   /* heavier without reflowing: where muted falls back to the text colour (a mid-blend ground) colour alone can't say which is chosen (R29, 18 Oct) */
@media (hover: hover) { .b-views__pick button:hover { color: var(--fg); } }   /* not on touch: a tapped button kept its hover, and two read as chosen */
.b-views__pick button[aria-pressed="true"]::after { transform: none; }
.b-views__pick button:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
.b-views__stage { grid-column: 4 / -1; display: grid; gap: clamp(28px, 4vw, 56px); }
.b-views__box:not(.is-on) .b-views__stage { grid-column: 1 / -1; }
.b-views__fig { margin: 0; display: grid; gap: 12px; align-content: start; }
.b-views__fig picture { display: block; aspect-ratio: var(--views-ar, 4 / 3); overflow: hidden; background: var(--stone); }
.b-views__fig img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); display: block; }
.b-views__fig figcaption b { font-weight: 500; margin-right: .4em; }
.is-on .b-views__fig { grid-area: 1 / 1; transition: opacity .5s var(--ease), visibility .5s; }
.is-on .b-views__fig:not(.is-shown) { opacity: 0; visibility: hidden; }
.is-on .b-views__fig.is-shown img { animation: b-views-in 1.1s var(--ease) both; }
@keyframes b-views-in { from { transform: scale(1.04); } to { transform: none; } }
/* two views: a switch, the dark part sliding to the one that is on (REB, day and night) */
.b-views--switch .b-views__pick { grid-column: 1 / span 3; justify-self: start; align-self: start; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--fg); border-radius: 0; padding: 4px; position: relative; isolation: isolate; }   /* square cells: no pills (taste 4b; review 17 Oct, R68) */
.b-views--switch .b-views__pick::before { content: ""; position: absolute; inset: 4px auto 4px 4px; width: calc(50% - 4px); background: var(--fg); z-index: -1; transform: translateX(calc(var(--at, 0) * 100%)); transition: transform .45s var(--ease); }
.b-views--switch .b-views__pick button { grid-template-columns: none; min-height: 44px; padding: 8px 26px; border: 0; justify-items: center; font-size: 17px; }
.b-views--switch .b-views__pick button::before, .b-views--switch .b-views__pick button::after { display: none; }
.b-views--switch .b-views__pick button[aria-pressed="true"] { color: var(--bg); }
.b-views--switch .b-views__pick button:focus-visible { outline-offset: -5px; }   /* inside the cell: at 4 px out it sat on the border and the two merged (R68) */
.b-views--switch .b-views__pick button[aria-pressed="true"]:focus-visible { outline-color: var(--bg); }   /* the chosen cell is filled with the text colour */
.b-views--switch .b-views__stage, .b-views--narrow .b-views__stage { grid-column: 4 / span 5; }   /* a switch's two views are usually upright photos, narrow: upright or small photos. Columns as .b-row: label 1 to 3, the body from 4 */
.b-views__said { grid-column: 9 / -1; align-self: end; margin: 0; display: grid; gap: 22px; }   /* a narrow view's quote, in the columns beside the photo */
.b-views__box:not(.is-on) > .b-views__said { grid-column: 1 / -1; }
@media (max-width: 899px) {
  .b-views__box > .b-views__pick, .b-views__box > .b-views__stage, .b-views__box > .b-views__said { grid-column: 1 / -1; }   /* as specific as the switch and upright rules above, so phones win (17 Oct: REB's Night sat under its photo) */
  .b-views__box:not(.b-views--switch) .b-views__pick { display: flex; flex-wrap: wrap; border-top: 0; column-gap: 22px; }   /* every view on screen, rows not a sideways strip: two of Parquet's four sat off the edge behind a cut word */
  .b-views__box:not(.b-views--switch) .b-views__pick button { border-bottom-color: transparent; min-height: 48px; font-size: 18px; grid-template-columns: auto 1fr; }
}
/* A client's own mark (.b-mark, Gulf 21 Oct: "show the logos of the brands"): its one-colour logo as a mask, drawn in the text colour so it
   sits on any ground; the builder sizes it by its shape (--mark-h), so a tall mark and a long one carry the same weight. */
.b-mark { display: block; height: var(--mark-h, 30px); width: min(100%, calc(var(--mark-h, 30px) * var(--mark-ar, 4))); max-height: var(--mark-h, 30px);
  background: currentColor; -webkit-mask: var(--mark) left center / contain no-repeat; mask: var(--mark) left center / contain no-repeat; }
figcaption > .b-mark { --mark-h: 22px; margin-bottom: 8px; }
/* Views picked by brand (.b-views--logos): each button is the brand's mark with the place under it, muted until chosen */
.b-views--logos .b-views__pick button { grid-template-columns: 1fr; gap: 8px; padding: 18px 0 16px; align-items: start; }
.b-views--logos .b-views__pick button::before { content: none; }
.b-views--logos .b-views__where { font-size: 14px; letter-spacing: .01em; }
.b-views--logos .b-views__brand { font-size: 20px; font-weight: 500; }
.b-views--logos .b-views__pick button[aria-pressed="true"] { -webkit-text-stroke: 0; }
/* the chosen store comes in from the side as a soft wipe, then its caption (James 21 Oct: "a slight cool load-in") */
.is-on.b-views--logos .b-views__fig.is-shown picture { animation: b-views-wipe .9s var(--ease) both; }
.is-on.b-views--logos .b-views__fig.is-shown figcaption { animation: b-views-cap .7s var(--ease) .25s both; }
@keyframes b-views-wipe { from { clip-path: inset(0 0 0 18%); opacity: .2; } to { clip-path: inset(0); opacity: 1; } }
@keyframes b-views-cap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 899px) {
  .b-views__box.b-views--logos .b-views__pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }   /* two brands a row, each a 48 px target */
  .b-views__box.b-views--logos .b-views__pick button { border-bottom-color: color-mix(in srgb, var(--fg) 22%, transparent); padding: 14px 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .is-on .b-views__fig, .b-views__pick button::after, .b-views--switch .b-views__pick::before { transition: none; } .is-on .b-views__fig.is-shown img, .is-on.b-views--logos .b-views__fig.is-shown picture, .is-on.b-views--logos .b-views__fig.is-shown figcaption { animation: none; } }
/* Feature "hover-views" (James 21 Oct from MetaLab): on a computer the photo follows the pointer down the list (kit2.js), the new one
   wiping in over the last, its caption rising. Touch stays a tap. The last photo stays under the wipe, its caption goes at once. */
@media (prefers-reduced-motion: no-preference) {
  html[data-features~="hover-views"] .is-on .b-views__fig.is-shown { z-index: 1; transition: none; }
  html[data-features~="hover-views"] .is-on .b-views__fig:not(.is-shown) { transition-delay: .6s; }
  html[data-features~="hover-views"] .is-on .b-views__fig:not(.is-shown) figcaption { opacity: 0; }
  html[data-features~="hover-views"] .is-on .b-views__fig.is-shown picture { animation: b-views-wipe .65s cubic-bezier(.65, 0, .35, 1) both; }
  html[data-features~="hover-views"] .is-on .b-views__fig.is-shown figcaption { animation: b-views-cap .5s var(--ease) .2s both; }
}
@keyframes b-views-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes b-views-cap { from { opacity: 0; transform: translateY(10px); } }

/* Brands hero (.b-hero--brands, Gulf B, James 22 Oct, from Instrument's client roster and MetaLab's hover): the clients' own marks
   on the left, their photos turning on the right, a brand's photos and then the next brand's (kit2.js). A mark grows a touch under a
   resting pointer and shows its brand. The page's ground is its own: no photo under the header, so the header needs no shade. */
.b-hero.b-hero--brands { position: relative !important; display: block; height: auto; min-height: 100svh; overflow: visible; background: var(--ink); color: var(--on-ink);
  --fg: var(--on-ink); --muted: var(--muted-ink); padding: calc(var(--logo-h-top) + 28px) 0 clamp(40px, 6vw, 96px); }   /* the photo starts at the header's rule (the logo plus 28 px) */
@media (min-width: 900px) { .b-hero.b-hero--brands { min-height: 0; } }   /* as tall as the photo and its line: a full screen left a band of empty blue under it */
.b-hero.b-hero--brands::after { display: none; }
html:has(.b-hero--brands) .b-header.is-over { background-image: none; }
html:has(.b-hero--brands) .b-header.is-over nav { color: var(--on-ink); text-shadow: none; }
html:has(.b-hero--brands) .b-header.is-over .b-logo img { filter: none; }
/* a computer: the photo the full width, from under the header to the foot of the screen, with the H1 and the marks laid over its left
   side on the page's blue fading into the photo, and the brand's line over its foot (James 23 Oct: "the logos be an overlay on top of
   the pictures", then the caption and the H1 over it too) */
.b-brands { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start;
  --shot-h: max(420px, calc(100svh - var(--logo-h-top) - 28px)); --side-w: calc(var(--gutter) + clamp(240px, 22vw, 340px)); }
.b-brands__side { grid-area: 1 / 1; z-index: 3; align-self: start; box-sizing: border-box; width: var(--side-w); height: var(--shot-h); display: flex; flex-direction: column;
  padding: clamp(18px, 2vw, 28px) clamp(36px, 4vw, 64px) 16px var(--gutter);
  background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 94%, transparent) 0, color-mix(in srgb, var(--ink) 90%, transparent) 52%,
    color-mix(in srgb, var(--ink) 70%, transparent) 70%, color-mix(in srgb, var(--ink) 34%, transparent) 86%, transparent); }   /* eased, so no edge shows */
.b-hero.b-hero--brands .b-brands__h1 { margin: 0 0 clamp(12px, 1.4vw, 20px); font: 500 clamp(19px, 1.6vw, 26px)/1.2 var(--font); letter-spacing: 0; max-width: none; text-wrap: balance; text-shadow: none; color: var(--on-ink); }
/* one column of marks, an equal share of what's left of the photo's height each, so all of them show (James 22 Oct: "a single column of the logos") */
.b-brands__pick { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(0, 1fr);
  border-top: 1px solid color-mix(in srgb, var(--on-ink) 22%, transparent); }
html:not(.js) .b-brands__pick { visibility: hidden; }   /* buttons that do nothing without the script, but their room kept: shown late they moved the page 0.15 (speed, 22 Oct) */
.b-brands__pick button { all: unset; box-sizing: border-box; position: relative; cursor: pointer; display: flex; align-items: center; min-height: 32px; padding: 4px 6px 4px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--on-ink) 22%, transparent); color: var(--on-ink); opacity: .5; transition: opacity .35s var(--ease); }
.b-brands__pick button[aria-pressed="true"] { opacity: 1; }
/* every mark at four fifths of its shape-balanced size, so the column fits: a flat cap shrank the squarer marks most (Shaver Shop 72 px wide) */
.b-brands__pick .b-mark { transform-origin: left center; transition: transform .4s var(--ease); --mark-k: .8; height: calc(var(--mark-h) * var(--mark-k)); max-height: none;
  width: min(100%, calc(var(--mark-h) * var(--mark-k) * var(--mark-ar))); }
.b-brands__name { font-size: 18px; font-weight: 500; }
.b-brands__pick button:focus-visible { outline: 2px solid var(--on-ink); outline-offset: 2px; box-shadow: none; }
/* a bar for each of the pressed brand's photos (James 23 Oct: "multiple of those loading bars ... so you can tell if there are more
   coming"): the ones shown are full, the one showing fills over its turn, the ones to come are faint */
.b-brands__bars { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; display: flex; gap: 5px; opacity: 0; transition: opacity .35s var(--ease); }
.b-brands__pick button[aria-pressed="true"] .b-brands__bars { opacity: 1; }
.b-brands__bars i { position: relative; flex: 1; overflow: hidden; background: color-mix(in srgb, var(--on-ink) 30%, transparent); }
.b-brands__bars i::after { content: ''; position: absolute; inset: 0; background: var(--on-ink); transform-origin: left; transform: scaleX(0); }
.b-brands__bars i.is-done::after, .b-brands__bars i.is-now::after { transform: scaleX(1); }
.b-brands.is-timing .b-brands__pick button[aria-pressed="true"] .b-brands__bars i.is-now::after { transform: scaleX(0); animation: b-timer var(--turn, 4.5s) linear forwards; }
@media (hover: hover) and (pointer: fine) { .b-brands__pick button:hover { opacity: 1; } .b-brands__pick button:hover .b-mark { transform: scale(1.06); } }
.b-brands__stage { grid-area: 1 / 1; display: grid; scroll-margin-top: calc(var(--logo-h, 64px) + 24px); }
.b-brands__set { grid-area: 1 / 1; position: relative; min-width: 0; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s .7s; }
.b-brands__set.is-shown { opacity: 1; visibility: visible; transition: opacity .7s var(--ease); }
.b-brands__shots { position: relative; width: 100%; height: var(--shot-h); overflow: hidden; background: color-mix(in srgb, var(--on-ink) 8%, var(--ink)); }
/* the brand's line sits on the photo's foot, on the page's blue rising into it */
.b-brands__shots::after { content: ''; position: absolute; z-index: 3; inset: auto 0 0; height: min(36%, 230px); pointer-events: none;
  background: linear-gradient(0deg, color-mix(in srgb, var(--ink) 92%, transparent) 0, color-mix(in srgb, var(--ink) 80%, transparent) 40%, color-mix(in srgb, var(--ink) 30%, transparent) 75%, transparent); }
.b-brands__shot { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.b-brands__shot.is-on { opacity: 1; z-index: 2; }
.b-brands__shot.was-on { opacity: 1; z-index: 1; transition: none; }
.b-brands__set:not(.is-shown) figcaption, .b-brands__shot:not(.is-on) figcaption { visibility: hidden; }   /* only the arriving photo's caption: the leaving one showed through it as it faded in, two captions in one spot for 1.3 s each turn (snap, 25 Oct) */
.b-hero .b-brands__shot img { object-position: var(--pos, 50% 50%); animation: none; }   /* its own zoom only: the hero's settle restarted on the photo going under (motion: +0.1 in a frame) */
.b-brands__shot figcaption { position: absolute; z-index: 1; right: var(--gutter); top: 16px; padding: 5px 11px; background: rgb(10 10 10 / .7); color: #fff; font-size: 14px; line-height: 1.25; }
.b-brands__cap { position: absolute; z-index: 4; left: var(--side-w); bottom: 0; box-sizing: border-box; width: min(46em, calc(100% - var(--side-w) - var(--gutter)));
  margin: 0; padding-bottom: clamp(18px, 2.4vw, 34px); color: var(--muted); font-size: clamp(16px, 1.15vw, 18px); line-height: 1.45; }
.b-brands__cap b { color: var(--on-ink); font-weight: 500; }
.b-brands__pause { all: unset; box-sizing: border-box; grid-area: 1 / 1; align-self: end; justify-self: end; z-index: 3; cursor: pointer; min-height: 44px; padding: 10px 0 0 12px;
  color: var(--on-ink); text-decoration: underline; text-underline-offset: 4px; }
.b-brands__stage:has(.b-brands__pause) .b-brands__cap { max-width: min(46em, calc(100% - 8.5em)); }   /* room for Pause, where a site has it */
.b-brands__pause:focus-visible { outline: 2px solid var(--on-ink); outline-offset: 2px; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .b-brands__set.is-shown .b-brands__shot.is-on img { animation: b-brands-in 1.6s var(--ease) both; }
  @keyframes b-brands-in { from { transform: scale(1.05); } }
}
@media (prefers-reduced-motion: reduce) { .b-brands__set, .b-brands__shot, .b-brands__pick button, .b-brands__pick .b-mark { transition: none !important; } }
/* a phone: the photo from the header's rule, the H1 over its foot on a short fade (its head is where the subject is: Santa's face),
   the place small at its head, the brand's line under it, then the marks three a row (James 23 Oct: the H1 sat wedged under the
   header's rule, edge to edge, and five lines of caption over a phone's photo hid it) */
@media (max-width: 899px) {
  .b-hero.b-hero--brands { min-height: 0; padding: calc(var(--logo-h, 64px) + 32px) var(--gutter) 34px; }   /* the header is the logo plus 32 px */
  .b-brands { row-gap: 20px; --ph: max(min(340px, calc(100svh - var(--logo-h, 64px) - 32px - 24px)), min(110vw, calc(100svh - var(--logo-h, 64px) - 32px - 200px))); }   /* a phone on its side: the H1 still on the first screen (keys) */
  .b-brands__side { display: contents; }
  .b-hero.b-hero--brands .b-brands__h1 { grid-area: 1 / 1; z-index: 4; position: relative; align-self: start; margin: calc(var(--ph) - 18px) 0 0; transform: translateY(-100%);
    max-width: 15em; font-size: 20px; line-height: 1.22; }   /* its foot 18 px above the photo's */
  .b-brands__stage { grid-area: 1 / 1; margin: 0 calc(-1 * var(--gutter)); }
  .b-brands__shots { height: var(--ph); }
  .b-brands__shots::after { height: min(42%, 170px); }
  .b-brands__shot figcaption { right: auto; bottom: auto; left: var(--gutter); top: 12px; font-size: 14px; }
  .b-brands__cap { position: static; width: auto; max-width: none; margin: 14px var(--gutter) 0; padding: 0; font-size: 16px; min-height: 2.9em; }
  .b-brands__pause { margin-inline: var(--gutter); }
  .b-brands__stage:has(.b-brands__pause) .b-brands__cap { max-width: calc(100% - 2 * var(--gutter) - 7.5em); }
  .b-brands__pick { grid-area: 2 / 1; grid-auto-rows: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 14px; }
  .b-brands__pick button { min-height: 60px; padding-block: 6px; }
  .b-brands__pick .b-mark { --mark-k: .62; }   /* three a row: the mask keeps its shape (contain), only smaller */
}
@media (min-width: 600px) and (max-width: 899px) { .b-brands { --ph: max(min(340px, calc(100svh - var(--logo-h, 64px) - 32px - 24px)), min(66vw, calc(100svh - var(--logo-h, 64px) - 32px - 200px))); } }   /* a tablet: 3:2, not a tall strip */

/* Questions (.b-asks, 17 Oct): a homeowner's question opens onto a dated account in the customer's words. Native details, so it
   works with no script, by keyboard and with a screen reader. Opens smoothly where the browser can size to auto. */
.b-asks { list-style: none; margin: 0; padding: 0; border-top: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); }
.b-asks details { border-bottom: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); }
.b-asks summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 22px 0; min-height: 56px;
  font: 400 clamp(22px, 2vw, 34px)/1.15 var(--font); letter-spacing: -0.02em; }
.b-asks summary::-webkit-details-marker { display: none; }
.b-asks summary::after { content: ""; width: 18px; height: 18px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: transform .4s var(--ease); }
.b-asks details[open] summary::after { transform: rotate(135deg); }
.b-asks summary:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
.b-asks .b-asks__a { display: grid; gap: 14px; padding: 12px 0 28px; max-width: 62ch; }   /* room under the question's focus ring: it ran across the answer's first line */
.b-asks .b-asks__a blockquote { margin: 0; font-size: clamp(18px, 1.3vw, 21px); line-height: 1.45; }
@supports (interpolate-size: allow-keywords) {
  .b-asks { interpolate-size: allow-keywords; }
  .b-asks details::details-content { block-size: 0; overflow: clip; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
  .b-asks details[open]::details-content { block-size: auto; }
}
@media (prefers-reduced-motion: reduce) { .b-asks summary::after, .b-asks details::details-content { transition: none; } }

/* Let's talk in the page, at the foot (James 17 Oct): the form under the contact lines, reached by every Let's talk link */
.b-talk-in { scroll-margin-top: calc(var(--logo-h, 64px) + 28px); }
.b-talk-in .b-body { max-width: 640px; display: grid; gap: clamp(18px, 2vw, 28px); }
.b-last:has(.b-talk-in) { min-height: 0; justify-content: flex-start; }   /* the form makes the close longer than a window: it starts under its heading */
/* Wide screens: the heading and the contact on the left, the form beside them on the right, the close and the footer one window where
   it fits (first look 17 Oct, F56: the form ran nearly two screens down a narrow column, wide empty margins either side) */
@media (min-width: 1100px) {
  .b-last:has(> .b-talk-in) { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: clamp(28px, 3vw, 48px); grid-template-rows: auto 1fr; align-content: start; align-items: start; min-height: calc(100svh - var(--foot-h, 30svh)); }   /* the form's height goes to the second row, so the heading keeps its own */
  .b-last:has(> .b-talk-in) > .b-close { grid-column: 1 / span 6; grid-row: 1; }
  .b-last:has(> .b-talk-in) > .b-row { display: flex; flex-direction: column; gap: 18px; }
  .b-last:has(> .b-talk-in) > .b-row > .b-label { padding: 0; }
  .b-last:has(> .b-talk-in) > .b-row:not(.b-talk-in) { grid-column: 1 / span 6; grid-row: 2; container-type: inline-size; }
  .b-last > .b-row.b-talk-in { grid-column: 7 / -1; grid-row: 1 / span 2; }
  .b-last:has(> .b-talk-in) > .b-row > .b-body > .b-contact { font-size: min(clamp(28px, 3vw, 48px), calc(100cqi / 14.5)); }   /* the longest email in its column */
}
/* Let's talk, the contact, the form and the footer in one window (James 24 Oct on Paint Crew, Deverell and Source, "all in the same view,
   so wouldnt need to scroll down more ... for all sites"): on a wide screen the close is packed (three fields in a row, a short message
   box, the photos and Send each on one line) and the footer runs in rows, so the two fit 1280 x 640. keys.py measures it. */
@media (min-width: 1100px) and (min-height: 560px) {
  .b-last:has(> .b-talk-in) { padding-block: calc(var(--logo-h, 64px) + 30px) 16px; row-gap: 12px; }
  .b-last:has(> .b-talk-in) > .b-close { font-size: min(clamp(40px, 4.6vw, 76px), 9svh); }
  .b-last:has(> .b-talk-in) > .b-row, .b-last:has(> .b-talk-in) > .b-row > .b-body { gap: 10px; }
  .b-last:has(> .b-talk-in) > .b-row > .b-body > .b-contact { font-size: min(clamp(24px, 2.6vw, 40px), calc(100cqi / 14.5), 5.4svh); }
  .b-last .b-talk-in .b-body { max-width: none; }
  .b-talk-in .b-form { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 22px; align-items: end; }
  .b-talk-in .b-form > * { grid-column: 1 / -1; }
  .b-talk-in .b-form > .b-field:has(+ .b-form__two) { grid-column: 1; }
  .b-talk-in .b-form > .b-form__two { grid-column: 2 / -1; gap: 22px; }
  .b-talk-in .b-field textarea { min-height: 0; height: calc(3 * 1.5em + 18px); }
  .b-talk-in .b-file { grid-template-columns: max-content minmax(0, 1fr); align-items: center; column-gap: 18px; row-gap: 4px; }
  .b-talk-in .b-file > label { grid-column: 1 / -1; }
  .b-talk-in .b-file input { width: auto; }
  .b-talk-in .b-file > p { font-size: 13px; }
  .b-talk-in .b-form > #f-privacy { grid-column: 1 / span 2; align-self: center; text-wrap: balance; }   /* 22 Nov: beside Send it left "to you." alone on a line on three sites of three */
  .b-talk-in .b-form > #f-privacy + div { grid-column: 3; justify-self: end; }
  body:has(.b-last > .b-talk-in) .b-footer { padding-block: 14px 12px; row-gap: 0; align-items: center; }
  body:has(.b-last > .b-talk-in) .b-footer__cols { display: grid; gap: 0; }
  body:has(.b-last > .b-talk-in) .b-footer__cols > div { display: flex; flex-wrap: wrap; align-items: center; column-gap: 22px; }
  body:has(.b-last > .b-talk-in) .b-footer__cols .b-label { min-width: 5.5em; }
  body:has(.b-last > .b-talk-in) .b-footer__cols ul { display: flex; flex-wrap: wrap; column-gap: 22px; margin-top: 0; flex: 1 1 0; min-width: 0; }
  body:has(.b-last > .b-talk-in) .b-footer__cols a { column-gap: .3em; }
  body:has(.b-last > .b-talk-in) .b-footer__base { flex-direction: row; align-items: center; gap: 22px; max-width: none; }
}
/* a tall screen (1440x900): the close and the form centred in the last window, not 300 px of nothing in one band under the form
   (snap, 24 Oct: Gulf and Parquet, after the tighter sections) */
@media (min-width: 1100px) and (min-height: 821px) { .b-last:has(> .b-talk-in) { grid-template-rows: auto auto; align-content: center; }
  .b-last:has(> .b-talk-in) > .b-close { align-self: end; }   /* the heading sits on its contact lines, the pair level with the form's foot */
  .b-talk-in .b-field textarea { height: max(calc(3 * 1.5em + 18px), min(calc(100svh - 680px), 30svh)); } }   /* a taller window gives the message box most of its extra height, so centring leaves no band over the close as wide as a section gap (snap, Good Guys) */

/* Trade credentials link the licence and holder to the public register. */
.b-creds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(18px, 2vw, 32px); }
.b-creds__item { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: center; min-height: 76px; color: inherit; text-decoration: none; }
.b-creds__logo { width: 76px; height: 76px; object-fit: contain; background: #fff; border-radius: 6px; padding: 8px; box-sizing: border-box; }
.b-creds__logo--dark { background: #16181b; }   /* a body's white-only mark (Master Electricians, a member's own white file): on the white tile it showed as an empty box (two test builds, 30 Nov). The hero mark's dark plate */
.b-creds__badge { width: 76px; height: 76px; display: grid; place-items: center; text-align: center; border-radius: 6px;   /* a filled plate, not a lettered box that read as a placeholder; a site sets --badge-bg and --badge-fg to its own colours */
  background: var(--badge-bg, var(--fg)); color: var(--badge-fg, var(--bg)); font-size: 14px; line-height: 1.1; font-weight: 700; letter-spacing: .04em; padding: 6px; box-sizing: border-box; }
.b-creds__words { display: grid; gap: 3px; }
.b-creds__logo--doc { width: 64px; height: 90px; padding: 0; object-fit: cover; object-position: top; border-radius: 2px; box-shadow: 0 1px 2px rgb(0 0 0 / .18), 0 6px 18px rgb(0 0 0 / .12); justify-self: center; }   /* a certificate shows as the page it is (Gulf's Qualify365, 21 Oct) */
.b-creds__item:has(.b-creds__logo--doc) { min-height: 96px; }
.b-creds__item:hover b, .b-creds__item:focus-visible b { text-decoration: underline 1px; text-underline-offset: .2em; }
.b-creds__item:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
/* A creds part's label (build_site's .b-creds__label) stays a label in the rows structure, centred with the marks beside it, in the
   section's own text colour: a site's ".b-section h2" display size, the label's capitals, heritage's small capitals and field's accent
   (pale gold on white) all came through on the membership part (27 Nov: Love Agricultural, Villaworx and Sunshine Housing, by hand).
   Under the stack and bands structures it is the section's heading like the others (their rules are more specific). */
.b-section .b-row > h2.b-creds__label { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.3; letter-spacing: 0; text-transform: none; font-variant-caps: normal;
  font-weight: 500; color: inherit; padding-top: 0; margin: 0; max-width: none; align-self: center; }
.b-row:has(> .b-creds__label) { align-items: center; }

/* The footer on the closing section's ground (build_site sets the class), over any family's own footer colour (first look 17 Oct) */
.b-footer.b-footer--ink { background: var(--ink); color: var(--on-ink); --fg: var(--on-ink); --muted: var(--muted-ink); --accent: var(--accent-on-ink); }
.b-footer.b-footer--paper { background: var(--paper); color: var(--ink); --fg: var(--ink); --muted: var(--muted-paper); --accent: var(--accent-paper); }
/* The dark run the page ends on (the contact band and every ink section after the last light one) carries its own ground and light
   words, as the footer does, so its words never depend on where the scroll blend is. Where a site's on-ink was its paper, snap's
   full-page shot saw the contact words vanish ("three blank bands at 390"), and the polishers wrote this rule by hand on nearly every
   site on 22 and 23 Nov (#area, #contact, #reviews). A section earlier in the page keeps the blend. */
main > .b-section[data-tone='ink']:not(:has(~ .b-section:not([data-tone='ink']))) { --bg: var(--ink); --fg: var(--on-ink); --muted: var(--muted-ink); --accent: var(--accent-on-ink); --error: #ffdad4;
  background: var(--ink); color: var(--fg); }

/* A native range controls the before-and-after wipe with keys or touch. Without script it rests at the middle. */
@property --cut { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
:is(.b-hero.b-hero--wipe .b-hero__slides, .b-wipe-frame) { display: block; position: relative; padding-bottom: 0; overflow: hidden; aspect-ratio: var(--wipe-ar, var(--hero-ar, 3 / 2)); touch-action: pan-y; background: var(--ink); }
:is(.b-hero.b-hero--wipe .b-hero__slides, .b-wipe-frame) > picture { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; opacity: 1; }
:is(.b-hero.b-hero--wipe .b-hero__slides, .b-wipe-frame) > picture img { width: 100%; height: 100%; object-fit: cover; }
:is(.b-hero.b-hero--wipe .b-hero__slides, .b-wipe-frame) > picture:nth-of-type(2) { clip-path: inset(0 0 0 var(--cut)); z-index: 3; }   /* above the hero's .is-on (z 2), or the before covered it (18 Oct) */
:is(.b-hero.b-hero--wipe .b-hero__slides, .b-wipe-frame) > picture::after { content: attr(data-cap); position: absolute; inset: 12px auto auto 12px; padding: 4px 10px; border-radius: 999px;
  background: rgb(0 0 0 / .55); color: #fff; font: 400 clamp(14px, 1vw, 17px)/1.3 var(--font); white-space: nowrap; }
:is(.b-hero.b-hero--wipe .b-hero__slides, .b-wipe-frame) > picture:nth-of-type(2)::after { left: auto; right: 12px; }
.b-wipe__line { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .25); z-index: 2; pointer-events: none; }
.b-wipe__line::after { content: '\2194'; position: absolute; top: 50%; left: 50%; translate: -50% -50%; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: #111; font: 400 22px/1 system-ui, sans-serif; box-shadow: 0 2px 10px rgb(0 0 0 / .3); }
.b-wipe { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
:has(> .b-wipe:focus-visible) > .b-wipe__line::after { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  html.js .b-hero--wipe .b-hero__slides { animation: b-wipe-in 1.8s cubic-bezier(.6, 0, .25, 1) calc(var(--intro, 0s) + .5s) backwards; }
  html.js .b-wipe-frame.in { animation: b-wipe-in 1.8s cubic-bezier(.6, 0, .25, 1) .2s backwards; }   /* data-reveal adds .in as it comes into view */
  html.js .b-wipe-frame[data-reveal]:not(.in) { --cut: 97%; }
}
@keyframes b-wipe-in { from { --cut: 97%; } }

/* An Also list with a picture each (.b-also, James 21 Oct, Gulf: "have pictures for each of them"): three across, one a row on a phone */
.b-also { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(22px, 2.4vw, 40px); }
.b-also__item { display: grid; gap: 14px; align-content: start; }
.b-also__item picture { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--stone); }
.b-also__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b-also__words { margin: 0; display: grid; gap: 10px; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.35; }

/* No numbers (site.json "numbers": false; James 21 Oct, Gulf: "Don't need to number them out"): every family's counters go, and the
   columns kept for them close up */
:root[data-numbers='off'] .b-section h2.b-label::before, :root[data-numbers='off'] .b-section > .b-row:first-child > p.b-label:first-child::before,
:root[data-numbers='off'] .b-gallery figcaption::before, :root[data-numbers='off'] .b-views__pick button::before,
:root[data-numbers='off'] .b-plates .b-panel__words .b-big::before { content: none; }
:root[data-numbers='off'] .b-list li::before, :root[data-numbers='off'] .b-quotes--list > .b-quote::before { content: none; display: none; }
:root[data-numbers='off'] .b-list li, :root[data-numbers='off'] .b-quotes--list > .b-quote, :root[data-numbers='off'] .b-views__pick button { grid-template-columns: 1fr; }
/* One logo size from the load-in to the foot of the page, the same in every family (James 26 Oct: "lets not have it reduce in size
   as you scroll down", and S&I, Intact, ARC and Summit's were too small to read). A site scales it with logo.scale (--logo-k). */
html:root:root { --logo-h-top: calc(clamp(60px, 8vw, 132px) * var(--logo-k, 1)); --logo-h: var(--logo-h-top); }

/* .b-hero--bleed in any family: the photo fills the first screen and the words sit over it (James 26 Oct: "the precision and quality
   paint style with the large hero image that occupies the whole page", for every site; ledger and field split it beside or above a
   plain field). build_site.py gives it to journal, ledger and field heroes with no cls. */
.b-hero.b-hero--bleed { display: block; height: 100vh; height: 100svh; min-height: 520px; padding: 0; overflow: hidden; color: #fff; background: var(--ink); }
/* The shade a bleed hero's slide is drawn with: its own --shade, or 0.4 where it has none (26 Oct). build_site.py writes --shade
   only for a shade above 0, so "shade": 0 in site.json draws 0.4 too: hide the layer in the site's css for none. audit.py and
   autofix.py read the shade as drawn here (DRAWN_SHADE, 23 Nov, Claffey Contracting), so keep the default in step with them. */
.b-hero.b-hero--bleed .b-hero__slides > picture::after { background: linear-gradient(180deg, rgb(0 0 0 / var(--shade-top, 0)), transparent 24%), linear-gradient(180deg, transparent var(--shade-from, 35%), rgb(0 0 0 / var(--shade, .4)) 100%); }
.b-hero.b-hero--bleed::after { display: block; content: ''; position: absolute; inset: 0; height: auto; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgb(0 0 0 / .3) 0, transparent 22%, transparent 42%, rgb(0 0 0 / .6) 100%); }
.b-hero.b-hero--bleed .b-hero__slides { position: absolute; inset: 0; height: auto; min-height: 0; margin: 0; aspect-ratio: auto; width: auto; max-height: none; background: var(--ink); }
.b-hero.b-hero--bleed .b-hero__words { display: grid; position: absolute; inset: auto 0 0; z-index: 3; height: auto; padding: 0 var(--gutter) clamp(18px, 2.4vw, 34px); gap: clamp(18px, 2.4vw, 36px); color: #fff; justify-content: stretch; }   /* the ledger family's space-between left the grid one column as wide as its words, so the base and its timer line stopped short of the right gutter on a wide screen (Otis, James 8 Nov) */
.b-hero.b-hero--bleed h1 { color: var(--hero-h1, #fff); text-shadow: 0 1px 30px rgb(0 0 0 / .3); max-width: 19ch; margin: 0; font-size: clamp(46px, 5.8vw, 108px); line-height: .98; }   /* 10 Nov, improvement 19: was 8vw to 150px, over the work */
.b-hero.b-hero--bleed .b-hero__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px clamp(18px, 2.4vw, 36px); margin: 0; padding: 12px 0 0; color: #fff; border: 0; border-top: 1px solid rgb(255 255 255 / .5); }
/* The fact lines over the photo carry a shadow of their own. Decon Services' licence line sat over a bright window on a desktop (judge,
   23 Nov), and Steel Electrical, T M Electrical, Viking Homes and Copland Building each added one by hand, all from 650 to 900 px up.
   From 900 px a dark one, as theirs (the words are over the photo there on every site but field, whose words sit on its own colour,
   and photo_text's measure counts it). Under 900, and on field,
   where a site may set its words in ink on paper under the photo, the shadow is the opposite of the words' colour: dark under white, a
   pale halo that does not show under ink, and none at all where a check sets the words transparent to read the photo behind them. A
   browser without relative colours drops that line and draws the words as before. */
.b-hero.b-hero--bleed .b-hero__base { text-shadow: 0 1px 2px rgb(from currentColor calc(255 - r) calc(255 - g) calc(255 - b) / calc(alpha * .5)), 0 1px 10px rgb(from currentColor calc(255 - r) calc(255 - g) calc(255 - b) / calc(alpha * .55)); }
@media (min-width: 900px) { :root:not([data-family='field']) .b-hero.b-hero--bleed .b-hero__base { text-shadow: 0 1px 2px rgb(0 0 0 / .5), 0 1px 12px rgb(0 0 0 / .6); } }
.b-hero.b-hero--bleed .b-hero__base > * { flex: 0 1 auto; max-width: 40ch; border: 0; padding: 0; margin: 0; font: inherit; text-align: left !important; }   /* spread edge to edge: a hidden phone line was the last child, so the last fact never sat right */
@media (min-width: 600px) { .b-hero.b-hero--bleed .b-hero__base > :where(.b-hero__call) { font-size: clamp(18px, 1.45vw, 24px); } }   /* the call line's own size back after "font: inherit" above. :where keeps it no stronger than that rule, so a site's own rule still wins */
.b-hero.b-hero--bleed.has-turns .b-hero__base::before { display: block; background: #fff; }
@media (max-width: 599px) { .b-hero.b-hero--bleed .b-hero__base { display: grid; } .b-hero.b-hero--bleed .b-hero__base > :last-child { text-align: left !important; } }
@media (max-height: 600px) { .b-hero.b-hero--bleed, .b-hero:not(.b-hero--brands) { min-height: 320px; } }   /* a phone on its side still sees the heading, in the gallery family too (Harper Homes, 28 Oct) */
/* A phone on its side or a laptop at 200% (844x390, 640x360): the spare fact lines go, as on a phone held upright, so the heading and
   the proof fit under the header. Each line stacked under the photo's words ran them under the clear header (keys, 14 of 47 first gate
   runs 18 to 22 Nov, Viking Homes' polisher hid its third line by hand on 23 Nov). Specific enough to beat a site's own "show the
   third line" rule, which is written for the upright phone. */
@media (max-width: 899px) and (max-height: 500px) { html .b-hero .b-hero__base > :nth-child(n+2):not(.b-proof):not(.b-member):not(.b-phone-only) { display: none; } }
/* A verified trade body's own mark on the first screen (James 27 Nov, from Elite Builders Northland's badge drawn by hand): build_site.py
   puts at most two at the start of the first .b-member line, before its words, as most polishers drew it, each at about the same
   area and no taller than about two lines, so only that line can grow (marks held beside the whole base narrowed every line of a
   ledger's facts and put Farm Force's call under the fold). --mw comes from the build, with width and height on each img, so nothing
   moves as it loads. A phone draws it at .85. The plate follows the words' colour, as the polishers drew it: none where the words are
   dark (the mark sits on the paper, as Elite Builders' and Top Gunn's), white under a dark mark where the words are light (over a
   photo, on ink), and the other way for a white-only mark (--dark, Master Electricians): dark under it where the words are dark. A
   browser without relative colours draws the plate always. */
:root .b-hero .b-hero__base > .b-member:has(> .b-hero__marks) { display: flex; align-items: center; }
:root .b-hero .b-hero__base:has(> .b-member > .b-hero__marks) { align-items: center; }   /* a row of facts sits level with the marked line's words (T M's own css set baseline, and the mark's foot became the line's baseline) */
.b-hero .b-hero__marks { float: left; margin-right: 10px; display: flex; flex: none; align-items: center; gap: 6px; }   /* a float where a site's css keeps the line a block (Farm Force: display:block !important) */
.b-hero .b-hero__base > .b-member:has(> .b-hero__marks)::after { content: ''; display: table; clear: both; }
.b-hero .b-hero__said { min-width: 0; }
.b-hero .b-hero__mark { position: static; inset: auto; display: block; box-sizing: content-box; width: calc(var(--mw) * var(--mark-k, 1)); height: auto; max-width: none;
  padding: 4px; object-fit: contain; border-radius: 3px; transform: none; animation: none; opacity: 1; filter: none;
  background: #fff; background: rgb(from currentColor 255 255 255 / clamp(0, calc((r * .2126 + g * .7152 + b * .0722 - 127.5) / 8), 1)); }
.b-hero .b-hero__mark--dark { background: #16181b; background: rgb(from currentColor 22 24 27 / clamp(0, calc((127.5 - r * .2126 - g * .7152 - b * .0722) / 8), 1)); }
@media (max-width: 599px) { .b-hero { --mark-k: .85; } }
.b-header.is-over:has(~ main .b-hero--bleed), .b-header.is-over:has(~ main .b-hero--bleed) nav { color: #fff; }
.b-header.is-over:has(~ main .b-hero--bleed) .b-logo--dark img { filter: brightness(0) invert(1) drop-shadow(0 1px 10px rgb(0 0 0 / .28)); }   /* a dark logo goes white over the photo, a coloured badge keeps its colours */
.b-header.is-over:has(~ main .b-hero--bleed) :focus-visible { outline-color: currentColor; box-shadow: 0 0 0 7px rgb(0 0 0 / .5); box-shadow: 0 0 0 7px rgb(from currentColor calc(255 - r) calc(255 - g) calc(255 - b) / calc(alpha * .5)); }   /* currentColor: white over the photo, the site's own colour where it sets the band light (23 Nov) */
/* .b-hero--under: the same photo under a band of the page's own colour that the header sits on, for a logo that only reads on a
   light ground (James 26 Oct, Summit's navy roundel: "it needs to be on a lighter background") */
.b-hero.b-hero--bleed.b-hero--under { background: var(--bg); }
.b-hero.b-hero--under .b-hero__slides, .b-hero.b-hero--under::after { inset: calc(var(--logo-h-top) + 28px) 0 0; }
.b-header.is-over:has(~ main .b-hero--under) { color: var(--fg); background-image: none; }
.b-header.is-over:has(~ main .b-hero--under) nav { color: var(--fg); text-shadow: none; }
.b-header.is-over:has(~ main .b-hero--under) .b-logo img, .b-header.is-over:has(~ main .b-hero--under) .b-logo--dark img { filter: none; }
/* The ring on the band is the words' own colour with the opposite edge, as everywhere in the header. It was var(--fg) with no edge,
   and a site that set its band dark with white words (db-cleaning, hauraki-property-services, 28 Nov) drew a bare white ring that
   keys.py fails: each polisher added a dark edge by hand. */
.b-header.is-over:has(~ main .b-hero--under) :focus-visible { outline-color: currentColor; box-shadow: 0 0 0 7px rgb(0 0 0 / .5); box-shadow: 0 0 0 7px rgb(from currentColor calc(255 - r) calc(255 - g) calc(255 - b) / calc(alpha * .5)); }

/* Photos all at once in a grid to the page's edges, each named in its lower left corner (James 26 Oct: no click-through pickers) */
.b-tiles { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: clamp(4px, .45vw, 8px); }
.b-tiles > figure { position: relative; overflow: hidden; margin: 0; aspect-ratio: var(--tile-ar, 4 / 3); background: var(--ink); }
.b-tiles--5 > figure { grid-column: span 2; } .b-tiles--5 > figure:nth-child(-n+2) { grid-column: span 3; }
.b-tiles picture, .b-tiles img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.b-tiles figcaption { position: absolute; left: clamp(10px, 1vw, 16px); bottom: clamp(10px, 1vw, 16px); z-index: 1; padding: 5px 11px; background: rgb(10 10 10 / .72); color: #fff; font-size: 15px; line-height: 1.25; letter-spacing: 0; text-transform: none; }
@media (max-width: 699px) { .b-tiles { grid-template-columns: 1fr; } .b-tiles > figure, .b-tiles--5 > figure, .b-tiles--5 > figure:nth-child(-n+2) { grid-column: auto; } }

/* Reviews as a wall of cards in columns, all on the page (James 26 Oct: no Next buttons, no shelf running off one side) */
.b-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(12px, 1.4vw, 22px); align-items: start; padding: 0 var(--gutter); }
.b-wall > .b-card { display: grid; gap: 22px; margin: 0; padding: clamp(22px, 2vw, 32px); background: color-mix(in srgb, var(--fg) 7%, var(--bg)); }
:root.is-mid .b-wall > .b-card { background: var(--bg); outline: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); outline-offset: -1px; }
.b-wall > .b-card .b-muted { color: color-mix(in srgb, var(--muted) 60%, var(--fg)); }   /* the tint lightens an ink card: dates 4.27:1 on PI blue (26 Oct) */
.b-wall > .b-card blockquote { max-width: none; font-size: clamp(18px, 1.3vw, 22px); line-height: 1.35; letter-spacing: -0.01em; font-style: normal; }
.b-wall > .b-card blockquote::before { content: '\201C'; } .b-wall > .b-card blockquote::after { content: '\201D'; }
/* A run of reviews ("layout": "run"): all of them, back to back in two columns, each under a thin rule, no card ground (James 4 Nov, KAL) */
.b-wall--run { display: block; columns: 2 420px; column-gap: clamp(32px, 5vw, 96px); padding-inline: var(--gutter); }
.b-wall--run > .b-card { break-inside: avoid; background: none; padding: clamp(20px, 2vw, 30px) 0; border-top: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); gap: 14px; }
:root.is-mid .b-wall--run > .b-card { background: none; outline: 0; }
/* a customer's words under a block: a size under the section's own heading (James 26 Oct, Tilecraft's Anna took a whole screen) */
.b-say.b-say--quote { font-size: clamp(20px, 1.8vw, 30px); line-height: 1.25; max-width: 44ch; }

/* The call bar (James 10 Nov, improvement 23): on a phone, once the first screen has gone by, Call, Text and a quote sit at the thumb
   until the contact section itself is on screen. Words only, no number (one visible number per glance). kit2.js shows and hides it. */
.b-bar { display: none; }
@media (max-width: 599px) {
  .b-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; inset: auto 0 0; z-index: 45; background: var(--ink); color: var(--on-ink);
    padding-bottom: env(safe-area-inset-bottom); transform: translateY(105%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; box-shadow: 0 -1px 0 rgb(255 255 255 / .14); }
  .b-bar.is-on { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
  .b-bar a { display: flex; align-items: center; justify-content: center; min-height: 56px; font-weight: 600; font-size: 16px; text-decoration: none; color: inherit; }
  .b-bar a + a { border-left: 1px solid rgb(255 255 255 / .18); }
  .b-bar a:focus-visible { outline: 2px solid var(--on-ink); outline-offset: -4px; }
  body:has(.b-bar) .b-footer { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .b-bar, .b-bar.is-on { transition: none; } }
@media print { .b-bar { display: none; } }

/* Structures (James 10 Nov, improvement 17): every site had the same bones, a small label in a left column with the body beside it.
   "structure" in site.json picks another skeleton for the whole page. The hero, the kit's blocks and the families all still apply.
   rows   the label column (the default, nothing set)
   stack  each section opens on a full-width heading, the body under it at full measure, no arrows
   bands  each section centred on a short heading with a rule, bodies held to a reading column, sections on alternating grounds */
html[data-structure='stack'] .b-section:not(.b-last) .b-row, html[data-structure='bands'] .b-section:not(.b-last) .b-row { display: block; }
/* a person's photo stays beside their words: as a block it filled the page's width, and LandTech's upright collage of planter boxes
   ran two screens tall (11 Nov, seen before the gate) */
html[data-structure='stack'] .b-section:not(.b-last) .b-row.b-person, html[data-structure='bands'] .b-section:not(.b-last) .b-row.b-person { display: grid; }
html[data-structure='stack'] .b-section:not(.b-last) .b-row > .b-label, html[data-structure='bands'] .b-section:not(.b-last) .b-row > .b-label, html[data-structure='stack'] .b-section:not(.b-last) > .b-label, html[data-structure='bands'] .b-section:not(.b-last) > .b-label {
  font-family: var(--font); font-size: clamp(30px, 3.5vw, 54px); line-height: 1.04; letter-spacing: -0.035em; text-transform: none; font-weight: 500; padding-top: 0;
  margin: 0 0 clamp(20px, 2.4vw, 38px); max-width: 24ch; color: var(--fg); text-wrap: balance; }
html[data-structure='stack'] .b-section:not(.b-last) .b-row > .b-label::before, html[data-structure='bands'] .b-section:not(.b-last) .b-row > .b-label::before { content: none !important; }
html[data-structure='stack'] .b-section:not(.b-last) .b-row > .b-body { max-width: 1180px; }
html[data-structure='stack'] .b-arrow, html[data-structure='bands'] .b-arrow { display: none; }
html[data-structure='stack'] .b-section { padding-block: clamp(60px, 6.4vw, 116px); }
html[data-structure='stack'] .b-section > .b-row:first-child > .b-label { border-top: 1.5px solid currentColor; padding-top: clamp(16px, 1.6vw, 24px); max-width: none; }
html[data-structure='bands'] .b-section:not(.b-last) .b-row > .b-label, html[data-structure='bands'] .b-section:not(.b-last) > .b-label { margin-inline: auto; text-align: center; max-width: 20ch; }
html[data-structure='bands'] .b-section:not(.b-last) .b-row > .b-label::after, html[data-structure='bands'] .b-section:not(.b-last) > .b-label::after { content: ''; display: block; width: 44px; height: 3px; background: var(--accent); margin: clamp(14px, 1.4vw, 22px) auto 0; }
html[data-structure='bands'] .b-section:not(.b-last) .b-row > .b-body { max-width: 860px; margin-inline: auto; }
html[data-structure='bands'] .b-section:not(.b-last) .b-row > .b-body > .b-say:first-child { text-align: center; }
html[data-structure='bands'] main > .b-section:nth-of-type(even):not([data-tone='ink']) { background: color-mix(in srgb, var(--fg) 5%, var(--bg)); }
@media (max-width: 599px) { html[data-structure='stack'] .b-section:not(.b-last) .b-row > .b-label, html[data-structure='bands'] .b-section:not(.b-last) .b-row > .b-label { font-size: 30px; }  }

/* the reviews' head in a structure: its label is the section's heading like the rest, and in bands the figure, the links and the lead review centre under it */
html[data-structure='stack'] .b-shelf__head > .b-label, html[data-structure='bands'] .b-shelf__head > .b-label { font-family: var(--font); font-size: clamp(30px, 3.5vw, 54px); line-height: 1.04; letter-spacing: -0.035em;
  text-transform: none; font-weight: 500; color: var(--fg); text-wrap: balance; }
html[data-structure='stack'] .b-shelf__head > .b-label::before, html[data-structure='bands'] .b-shelf__head > .b-label::before { content: none !important; }
html[data-structure='bands'] .b-shelf__head { display: block; text-align: center; }
html[data-structure='bands'] .b-shelf__head > .b-label::after { content: ''; display: block; width: 44px; height: 3px; background: var(--accent); margin: clamp(14px, 1.4vw, 22px) auto clamp(20px, 2.4vw, 36px); }
html[data-structure='bands'] .b-shelf__head .b-fig { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 16px; text-align: center; }
html[data-structure='bands'] .b-shelf__nav { justify-content: center; margin-top: 14px; }
html[data-structure='bands'] .b-wall--lead > .b-quote:first-child { margin-inline: auto; text-align: center; max-width: 32ch; }
@media (max-width: 599px) { html[data-structure='stack'] .b-shelf__head > .b-label, html[data-structure='bands'] .b-shelf__head > .b-label { font-size: 30px; } }

/* Reviews with a lead (James 10 Nov, improvement 25): "layout": "lead" sets the first review large across the page, two short ones under it. */
.b-wall.b-wall--lead { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 24px); padding-inline: var(--gutter); }
.b-wall--lead > .b-quote:first-child { grid-column: 1 / -1; background: none; border: 0; box-shadow: none; padding: 0 0 clamp(10px, 1.4vw, 22px); max-width: 30ch; font-size: clamp(26px, 3.3vw, 52px); }
:root.is-mid .b-wall--lead > .b-quote:first-child { background: none; outline: 0; }   /* the large lead quote has no card ground or padding, so the mid-blend hairline boxed its words edge to edge (judge, Cozy Tiling, 17 Nov) */
.b-wall--lead > .b-quote:first-child blockquote { font-size: 1em; line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; margin: 0 0 .5em; }
.b-wall--lead > .b-quote:first-child figcaption { font-size: 16px; letter-spacing: 0; }
@media (max-width: 699px) { .b-wall.b-wall--lead { grid-template-columns: 1fr; } }

/* A logo on a plate (James 10 Nov, improvement 21): "logo": {"plate": true}. Over the hero photo the logo sits on a chip of the page's
   paper, in its own colours, so a mark the photo would swallow (a blue logo on a blue sky) is read. Past the hero the chip is the page. */
.b-logo--plate { position: relative; }
.b-header.is-over .b-logo--plate::before { content: ''; position: absolute; inset: -8px -12px; z-index: -1; background: var(--paper, #f4f4f1); box-shadow: 0 1px 14px rgb(0 0 0 / .18); }   /* behind the logo, so the logo's own box never changes size as the header leaves the photo (motion.py caught a 24 px jump with padding, 10 Nov) */
.b-header.is-over .b-logo.b-logo--plate.b-logo--plate img { filter: none; opacity: 1; }   /* the class twice on purpose: a plated logo that is also dark must beat every "dark logo goes white over the photo" rule, here and in the families (LandTech went white on its white plate once its letter holes were cut clear, 11 Nov, caught by snap) */
