/* 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-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 (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; }
.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-talk { --accent: var(--accent-paper); }   /* the panel is paper whatever the page: the ink accent on it was 2.4:1 */
:root[data-tone='ink'] .b-talk .b-btn:hover { color: #fff; }   /* the accent on ink is the light one: white on it was 2.7:1 */

.b-wrap { padding-inline: var(--gutter); }
.b-section { padding-block: clamp(72px, 8.5vw, 150px); background: var(--bg); color: var(--fg); position: relative; z-index: 1; }
.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-header.is-over :focus-visible, .b-hero :focus-visible, .b-panel:focus-visible { outline-color: #fff; }
.b-header.is-over :focus-visible, .b-hero :focus-visible { box-shadow: 0 0 0 7px rgb(0 0 0 / .5); }   /* dark either side of the white ring: the logo's ring was 1.5:1 on pale sky */   /* the accent blue vanished against sky */
.b-header.is-stuck:not(.is-over) { background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); }
.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: height .6s var(--ease); }
.b-header.is-over .b-logo img { height: var(--logo-h-top); }
.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; }   /* a 44 px target, the word where it was */
@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) */

/* 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: 16ch; }
.b-hero__base > :last-child { text-align: right; }
.b-hero__base .b-phone-only { display: none; }
@media (max-width: 599px) { .b-hero__base > :nth-child(2), .b-hero__base > :nth-child(3) { 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%)); }
@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, transparent var(--shade-from, 35%), rgb(0 0 0 / var(--shade, 0)) 100%); }   /* --shade-from: higher for a heading over bright sky */
.b-hero img.drift { animation: b-drift 9s ease-out both; }
@keyframes b-drift { from { transform: scale(1.07); } }
/* 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: 17ch; font-size: clamp(56px, 11vw, 200px); text-shadow: 0 1px 30px rgb(0 0 0 / .18); }

/* 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: 4 / 3.1; }
.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 / .55)); pointer-events: none; }   /* "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); }
.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) */
.b-gallery figure::after { content: ''; position: absolute; inset: auto 0 0; height: min(150px, 70%); background: linear-gradient(transparent, rgb(0 0 0 / .45) 45%, rgb(0 0 0 / .78)); 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 sideways swipe, every photo whole at the same height (two masonry columns ended unevenly, 13 Oct) */
@media (max-width: 699px) {
  .b-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .b-gallery::-webkit-scrollbar { display: none; }
  .b-gallery__row { display: contents; }
  .b-gallery figure { flex: none; height: 64vw; aspect-ratio: var(--ar); scroll-snap-align: start; }
  .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; visibility: hidden; }
html.js .b-quotes > .b-quote.is-on { visibility: visible; }
.b-quotes__nav { display: none; gap: 28px; align-items: center; margin-top: 48px; }
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: 4 / 5; object-fit: cover; }
.b-person--wide > figure { grid-column: 1 / span 6; } .b-person--wide > div { grid-column: 7 / span 5; }
.b-person--wide img { aspect-ratio: 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; } }

/* Let's talk: a panel that slides in from the right (works without JS through :target; with JS only .is-open opens it: :target outlived
   the script clearing the address, so a page loaded at #talk couldn't be closed, round 6) */
.b-talk { position: fixed; inset: 0 0 0 auto; width: min(640px, 100%); z-index: 70; background: var(--paper); color: var(--ink); overflow-y: auto;
  padding: 18px clamp(20px, 3vw, 48px) 40px; transform: translateX(102%); visibility: hidden; transition: transform .75s var(--ease-in-out), visibility 0s .75s;
  --fg: var(--ink); --bg: var(--paper); --muted: var(--muted-paper); }
html:not(.js) .b-talk:target, .b-talk.is-open { transform: none; visibility: visible; transition: transform .75s var(--ease-in-out), visibility 0s; }
.b-talk__top { display: flex; justify-content: space-between; align-items: center; min-height: 52px; margin-bottom: clamp(20px, 4vh, 48px); }
.b-scrim { position: fixed; inset: 0; z-index: 65; background: rgb(0 0 0 / .45); opacity: 0; visibility: hidden; transition: opacity .6s, visibility 0s .6s; }
html:not(.js) .b-talk:target ~ .b-scrim, .b-scrim.is-open { opacity: 1; visibility: visible; transition: opacity .6s; }
.b-talk > * { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .8s var(--ease); }
html:not(.js) .b-talk:target > *, .b-talk.is-open > * { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i, 0) * .07s); }

/* 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) */
.b-contact--panel { font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.02em; margin: 22px 0 34px; }

/* Forms: lines, not boxes */
.b-form { display: grid; gap: 26px; }
.b-field { display: grid; gap: 4px; }
.b-field label { font-size: 13px; letter-spacing: .02em; color: var(--muted); }
@media (max-width: 599px) { .b-field label { font-size: 14px; } }   /* nothing under 14px on a phone */
.b-field input, .b-field textarea { font: inherit; font-size: 18px; color: inherit; background: transparent; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--fg) 52%, transparent);   /* 3:1 or better, the field's only edge */
  padding: 8px 0 10px; border-radius: 0; transition: border-color .3s; width: 100%; }
.b-field input:focus, .b-field textarea:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.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: 1fr 1fr; gap: 26px; }
@media (max-width: 499px) { .b-form__two { grid-template-columns: 1fr; } }
.b-file { display: grid; gap: 6px; }
.b-file input { font-size: 14px; }
.b-file input::file-selector-button { font: inherit; font-weight: 500; color: inherit; background: none; border: 1px solid currentColor; border-radius: 0; padding: 9px 16px; margin-right: 14px; cursor: pointer; }
.b-file input::file-selector-button:hover { background: var(--fg); color: var(--bg); }
.b-trap { position: absolute; left: -9999px; }
.field-error { color: #b3261e; font-size: 14px; }
.form-status:empty { display: none; }
.form-status { padding-top: 6px; font-weight: 500; }
.form-status.err { color: #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__cols ul { display: grid; margin-top: 10px; }
.b-footer__cols a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.b-footer__cols li { overflow-wrap: anywhere; }
.b-footer__cols a:hover { color: var(--accent-on-ink); }
.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-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-ink); }
.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: 20px; padding-block: 80px 28px; } .b-last .b-body { gap: 14px; } }
@media (min-width: 600px) and (max-height: 820px) { .b-last { gap: 28px; padding-block: 88px 32px; } .b-last .b-body { gap: 16px; } }   /* a short laptop screen (1280 x 720) */

/* 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(0); }
  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(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--d, 0s) + var(--l, 0) * .085s); }
  html.js [data-lines].in .wi { transform: none; }
  .b-hero img { animation: b-settle 2.6s var(--ease) both; animation-delay: var(--intro, 0s); }
  @keyframes b-settle { from { transform: scale(1.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, .b-talk, .b-talk:target, .b-talk.is-open, .b-talk > *, .b-scrim, .b-scrim.is-open { transition: none !important; }
  .b-panel img, .b-gallery img { transition: none !important; transform: none !important; }   /* the hover zoom too */
}

/* First visit: the logo rises, its splash paints in, then it docks before the cover clears. CSS completes the sequence if script fails. Reduced motion skips it. */
.b-intro, .b-intro__mark { display: none; }
html.intro { --intro: 2.3s; --k: 2.4; --glide: cubic-bezier(.65, 0, .35, 1); }
@media (max-width: 599px) { html.intro { --k: 2; } }
@media (max-width: 399px) { html.intro { --k: 1.7; } }
html.intro .b-intro { display: block; position: fixed; inset: 0; z-index: 200; background: var(--ink); pointer-events: none; animation: b-gone 1.1s var(--glide) 2.1s forwards; }
html.intro .b-header .b-logo { opacity: 0; animation: b-show .01s linear 3.2s forwards; }
html.intro .b-header nav { opacity: 0; animation: b-show .8s ease 2.9s forwards; }
html.intro .b-intro__mark { display: block; position: fixed; z-index: 202; pointer-events: none; transform-origin: 0 0;
  width: calc(var(--logo-h-top) * var(--k) * var(--logo-ar, 2.5)); height: calc(var(--logo-h-top) * var(--k));
  left: calc(50vw - var(--logo-h-top) * var(--k) * var(--logo-ar, 2.5) / 2); top: calc(50vh - var(--logo-h-top) * var(--k) / 2);
  animation: b-dock 1.15s var(--glide) 2.05s forwards, b-gone .1s linear 3.2s forwards; }
html.intro .b-intro__mark :is(.b-intro__letters, .b-intro__splash) { position: absolute; inset: 0; width: 100%; height: 100%; }   /* only the logo's own layers: a family's other marks keep their size (Parquet's wordmark was 0 x 0, round 2) */
html.intro .b-intro__letters { animation: b-rise-in .8s var(--ease) .25s both; }
html.intro .b-intro__splash { -webkit-mask-image: linear-gradient(100deg, #000 40%, rgb(0 0 0 / .6) 46%, transparent 52%); mask-image: linear-gradient(100deg, #000 40%, rgb(0 0 0 / .6) 46%, transparent 52%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; animation: b-brush 1s cubic-bezier(.55, .1, .3, 1) .85s both; }
@keyframes b-rise-in { from { clip-path: inset(100% 0 0 0); transform: translateY(8%); } to { clip-path: inset(-6%); } }
@keyframes b-brush { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 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; } }

/* The closing line set big, under the hero's size (the H1 leads) */
.b-close { font-size: clamp(34px, 6.6vw, 120px); 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(15px, 1.2vw, 18px); letter-spacing: -0.01em; white-space: nowrap; }   /* 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) */

.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; display: inline-flex; align-items: center; }
.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) */
