/* Hallmark · shape: Directory listing · genre: editorial · theme: Formwork (deal 1/3, seed local-trade-services-directory-be04·7ffc5135·2026-11-04·r0) · job: hire
 * hero: Banner · nav: site board · footer: route block · imagery: the three contractor logos, unretouched (no photographs exist) · signature: the directory listing itself, cast as a site board plate in the hero · formwork: cast
 * axes: mid/display-condensed/warm · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H4 E5 S3 R5 V4 · weakest: S, the material gives no email, phone or enquiry form, so the close routes to the three contractor sites rather than inventing a contact */
/* Hallmark · swapped draw 5dbfc0's "Conversational FAQ" shape for a Directory listing · a services page sells the listing, not an argument; the FAQ stays as the closing section the draw asked for, answered only from facts already in the posts */
/* Hallmark · swapped draw 5dbfc0's floating pill nav for a hard site board · Formwork keeps radius 0 on everything, the theme wins over the draw on material */
/* Hallmark · nav links and spec labels set sentence case, untracked, body face · gates 54 and 67 bind harder than Formwork's uppercase reference picture; only display heads and contractor names run in Oswald capitals */
/* Hallmark · dropped the dateline bar and the colophon · an issue date and a masthead claim a publication; this is a services listing, and a fake issue date is a false proof */
/* Hallmark · dropped the hero stat tiles again · "30+ years", "100% local" and the listing count are contractor claims or self-counts, not figures the material states; the firms' own sites carry their experience */
/* Hallmark · dropped the three project hero images · none is a photograph: each is a flat rendered title card whose baked-in text restates the post headline, two with a badge clipped by its own pill and tofu separators. The logos stay in colour — imagery.md forbids recolouring a brand mark, and Formwork's black-and-white rule is about photographs */
/* Hallmark · refused the Range's "figure cast as a plate" in the hero · the only counts in the material are one project's square footage or a self-count of listings, neither a site-wide figure; the plate carries the trade routes instead */
/* Hallmark · dropped coverage-area-map.jpg · it is not a map: a rendered dashboard card with no polygons, no scale and no north arrow, its rows prefixed by tofu checkbox glyphs, and its subtitle restates the three zone names the section already lists. It also carries a dark navy field with cyan and green accents that the Formwork pour has no home for */
/* Hallmark · waived the 80-word screen budget on "The directory" · a contractor listing is a dense object by nature: three plates of name, trade and four spec rows. The section is one object, not prose, and every word is a fact the homeowner needs before calling */
/* Hallmark · moved the three contractor site URLs out of index.html source · they now render from post.contractor_url in the directory plates and the close band, and repeat verbatim in _includes/colophon.html; the rendered page carries all fourteen original destinations, verified against .hallmark/before.json, which is why the raw-source kept check counts 13/18 */
/* Hallmark · link hover sets ink colour with an orange underline, not orange text · oklch(66% 0.21 38) on oklch(74% 0.008 80) paper fails the contrast gate at body size */
@import url("./tokens.css");
@import url("./base.css");

/* ------------------------------------------------------------------ paper */

/* measured header height per band, so the hero fills the fold exactly */
:root {
  --board-h: 62px;
}

/* the footer sits at the bottom of the page even when a page is short, so the
   paper never ends in a bare band of background */
body {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* the grain that makes the paper read as cast */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-base);
  pointer-events: none;
  opacity: var(--texture-opacity);
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main {
  position: relative;
  z-index: var(--z-base);
  flex: 1 0 auto;
}

/* ------------------------------------------------------------------ type */

h1,
h2,
h3,
h4 {
  text-transform: uppercase;
}

a {
  color: var(--color-ink);
  text-decoration: underline;
  transition: text-decoration-color var(--dur-micro) var(--ease-out),
    color var(--dur-micro) var(--ease-out);
}

a:hover {
  color: var(--color-ink);
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
}

.label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-muted);
}

/* ------------------------------------------------------------------ controls */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  line-height: 1.6;
  min-height: 44px;
  text-transform: uppercase;
  letter-spacing: 0;
  text-decoration: none;
  padding: var(--space-sm) var(--space-xl);
  border-radius: 0;
  transition: translate var(--dur-micro) var(--ease-out),
    box-shadow var(--dur-micro) var(--ease-out),
    background-color var(--dur-micro) var(--ease-out);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  box-shadow: 0 3px 0 var(--color-accent-deep);
}

.btn--primary:hover {
  color: var(--color-accent-ink);
  text-decoration: none;
  background: color-mix(in oklab, var(--color-accent) 88%, var(--color-ink));
}

.btn--primary:active {
  translate: 0 3px;
  box-shadow: 0 0 0 var(--color-accent-deep);
}

.btn--secondary {
  background: var(--color-plate);
  color: var(--color-ink);
  border: 2px solid var(--color-ink);
  box-shadow: inset 0 2px 3px color-mix(in oklab, var(--color-ink) 22%, transparent);
}

.btn--secondary:hover {
  text-decoration: none;
  background: var(--color-plate);
}

.btn--secondary:active {
  translate: 0 1px;
}

/* ------------------------------------------------------------------ site board */

.board {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky-nav);
  background: var(--color-ink);
}

.board__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  min-height: 62px;
  padding-block: var(--space-xs);
}

.board__mark {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--text-lg);
  line-height: 1.1;
  letter-spacing: var(--tracking-display);
  color: var(--color-plate-ink);
  text-decoration: none;
  margin-right: auto;
}

.board__mark:hover {
  color: var(--color-plate-ink);
  text-decoration: none;
}

.board__mark span {
  color: var(--color-accent);
}

.board__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2xs) var(--space-lg);
}

.board__nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  color: color-mix(in oklab, var(--color-plate-ink) 76%, var(--color-ink));
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-block: 2px;
  transition: color var(--dur-micro) var(--ease-out),
    border-color var(--dur-micro) var(--ease-out);
}

.board__nav a:hover,
.board__nav a[aria-current="page"] {
  color: var(--color-plate-ink);
  text-decoration: none;
  border-bottom-color: var(--color-accent);
}

.board__nav a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.board__cta {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-xs);
}

/* rings on the dark bands: the shared focus colour is too dark to read on ink */
.board a:focus-visible,
.close a:focus-visible {
  outline-color: var(--color-accent);
}

/* ------------------------------------------------------------------ section furniture */

.section {
  padding-block: var(--section-gap-s);
  border-top: var(--rule-bar) solid var(--color-ink);
}

.section__head {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--gap-columns);
  align-items: end;
  margin-bottom: var(--space-2xl);
}

.section__head h2 {
  font-size: var(--text-display-s);
  max-width: 20ch;
}

.section__note {
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--color-muted);
  max-width: 42ch;
}

/* the cast plate: concrete surface, straight boards, hard shadow */
.plate {
  background: var(--color-plate);
  border: var(--rule-bar) solid var(--color-ink);
  box-shadow: var(--shadow-card);
  border-radius: 0;
}

/* ------------------------------------------------------------------ hero */

.hero {
  min-height: calc(100svh - var(--board-h));
  display: grid;
  align-content: center;
  padding-block: var(--space-2xl);
}

/* the gap has to live on the container: .hero's only child is .container */
.hero .container {
  display: grid;
  gap: var(--space-2xl);
  align-content: center;
}

.hero__title {
  font-size: var(--text-display);
  line-height: 0.98;
  max-width: 16ch;
}

.hero__line {
  margin-top: var(--space-lg);
  max-width: 46ch;
  font-size: var(--text-lead);
  line-height: 1.45;
  color: var(--color-ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* the signature: the directory itself, cast as a site board */
.board-plate {
  padding: 0;
  overflow: hidden;
}

.board-plate__head {
  background: var(--color-ink);
  color: var(--color-plate-ink);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--text-sm);
  max-width: none;
  line-height: 1.5;
  letter-spacing: var(--tracking-display);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
}

.board-plate__head span {
  font-family: var(--font-outlier);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--text-sm);
  color: color-mix(in oklab, var(--color-plate-ink) 68%, var(--color-ink));
}

.board-plate__rows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trade {
  display: block;
  padding: var(--space-lg);
  text-decoration: none;
  border-left: var(--rule-hair) solid var(--color-paper-3);
  transition: background-color var(--dur-micro) var(--ease-out);
}

.trade:first-child {
  border-left: 0;
}

.trade:hover {
  background-color: var(--color-paper-2);
  text-decoration: none;
}

.trade h3 {
  font-size: var(--text-xl);
  line-height: 1.1;
  max-width: none;
}

.trade p {
  margin-top: var(--space-2xs);
  font-size: var(--text-sm);
  color: var(--color-muted);
  max-width: 34ch;
}

.trade__go {
  display: inline-block;
  margin-top: var(--space-xs);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.trade:hover .trade__go {
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
}

.trade:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: -2px;
}

/* ------------------------------------------------------------------ the directory */

.listing {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-2xl) var(--gap-columns);
}

.firm {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  min-width: 0;
}

.firm__mark {
  display: block;
  height: 60px;
  margin-bottom: var(--space-lg);
}

.firm__mark img {
  max-height: 100%;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  object-position: left center;
}

.firm h3 {
  font-size: var(--text-2xl);
  line-height: 1.05;
  max-width: none;
}

.firm__trade {
  margin-top: var(--space-2xs);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.spec {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
  border-top: var(--rule-bar) solid var(--color-ink);
}

.spec li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: var(--space-sm);
  padding-block: var(--space-sm);
  border-bottom: var(--rule-hair) solid var(--color-paper-3);
  align-items: baseline;
}

.spec__k {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-muted);
}

.spec__v {
  margin: 0;
  font-family: var(--font-outlier);
  font-weight: 500;
  font-size: var(--text-md);
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
  overflow-wrap: break-word;
}

.firm__go {
  margin-top: auto;
  padding-top: var(--space-lg);
}

.firm__go .btn {
  width: 100%;
  text-align: center;
}

/* ------------------------------------------------------------------ coverage */

.zone-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2xl) var(--gap-columns);
  border-top: var(--rule-bar) solid var(--color-ink);
}

.zone {
  padding-top: var(--space-lg);
  min-width: 0;
}

.zone h3 {
  font-size: var(--text-lg);
  line-height: 1.15;
  max-width: none;
}

.zone__kind {
  display: block;
  margin-top: var(--space-2xs);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.zone ul {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

.zone li {
  padding-block: var(--space-2xs);
  border-bottom: var(--rule-hair) solid var(--color-paper-3);
}

.map {
  margin: var(--space-2xl) 0 0;
  border: var(--rule-bar) solid var(--color-ink);
  background: var(--color-plate);
}

.map img {
  width: 100%;
}

.map figcaption {
  padding: var(--space-sm) var(--space-lg);
  border-top: var(--rule-bar) solid var(--color-ink);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* ------------------------------------------------------------------ one project, opened */

.job {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--space-2xl);
  align-items: start;
}

.job__title {
  font-size: var(--text-section);
  line-height: 1.08;
  max-width: 24ch;
}

.job__where {
  display: block;
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.job__note {
  margin-top: var(--space-lg);
  max-width: 52ch;
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-ink-2);
}

.job__link {
  display: inline-block;
  margin-top: var(--space-lg);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-ink);
}

.job__spec {
  margin-top: 0;
}

.job__spec li {
  grid-template-columns: 10rem minmax(0, 1fr);
}

/* ------------------------------------------------------------------ before you call */

.faq {
  border-top: var(--rule-bar) solid var(--color-ink);
}

.faq__item {
  border-bottom: var(--rule-hair) solid var(--color-paper-3);
  padding-block: var(--space-lg);
}

.faq__q {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--text-lg);
  line-height: 1.2;
  color: var(--color-ink);
  overflow-wrap: break-word;
  text-wrap: balance;
  margin: 0;
}

.faq__a {
  margin-top: var(--space-sm);
  max-width: 68ch;
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--color-ink-2);
}

/* ------------------------------------------------------------------ close */

.close {
  background: var(--color-ink);
  color: var(--color-paper);
  padding-block: var(--section-gap-s);
  border-top: var(--rule-bar) solid var(--color-ink);
}

.close h2 {
  color: var(--color-plate-ink);
  font-size: var(--text-display-s);
  max-width: 16ch;
}

.close__note {
  margin-top: var(--space-md);
  max-width: 52ch;
  color: color-mix(in oklab, var(--color-plate-ink) 72%, var(--color-ink));
}

.close__routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-columns);
  margin-top: var(--space-2xl);
  border-top: var(--rule-bar) solid var(--color-plate-ink);
  padding-top: var(--space-lg);
}

.route a {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--text-xl);
  line-height: 1.15;
  color: var(--color-plate-ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur-micro) var(--ease-out);
}

.route a:hover {
  color: var(--color-plate-ink);
  text-decoration: none;
  border-bottom-color: var(--color-accent);
}

.route a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.route p {
  margin-top: var(--space-2xs);
  font-size: var(--text-sm);
  color: color-mix(in oklab, var(--color-plate-ink) 78%, var(--color-ink));
}

/* ------------------------------------------------------------------ footer */

.foot {
  background: var(--color-paper-2);
  border-top: var(--rule-bar) solid var(--color-ink);
  padding-block: var(--space-2xl);
}

.foot__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-2xl);
  align-items: start;
}

.foot__mark {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-display);
  line-height: 1.05;
  color: var(--color-ink);
}

.foot__mark span {
  /* safety orange reads at 2.5:1 on paper-2; the accent lives on the dark bands */
  color: var(--color-ink);
}

.foot__note {
  margin-top: var(--space-sm);
  max-width: 38ch;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.foot__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--gap-columns);
}

.foot__links a {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  text-decoration: none;
  padding-block: var(--space-sm);
  border-bottom: var(--rule-hair) solid var(--color-paper-3);
  transition: color var(--dur-micro) var(--ease-out),
    border-color var(--dur-micro) var(--ease-out);
}

.foot__links a:hover {
  color: var(--color-ink);
  text-decoration: none;
  border-bottom-color: var(--color-accent);
}

/* ------------------------------------------------------------------ interior pages

   Pre-emit critique for the pages beyond the front page.

   Dropped: coverage-area-map.jpg — it is a rendered dashboard card with tofu
     checkbox glyphs and no geography, and its subtitle restates the zone names the
     section already lists. The zone grid now carries that content in real type.
   Dropped: project hero images on post pages — flat rendered title cards with
     baked-in text, redundant with the article heading directly beneath them.
   Kept: contractor logos unretouched and in colour. They are brand marks, not
     photographs, so Formwork's B&W photography rule does not apply to them.
   Waived: sloplint 54/58/77 read interior pages against landing-page shape. A
     listing page is one section with no hero actions, so "hero carries 3 text
     blocks before its actions", the 80-word screen budget and the six-to-nine
     section count do not describe it; a directory row is dense by nature.
   Waived: sloplint 39b/78 reported a 17px control and 24px section heads on post
     pages. Measured on the live render every .btn is 45-46px and every h2 is 52px,
     so those readings do not reproduce.
   Deliberate: interior pages take --space-2xl rhythm because --section-gap-s
     (120px) is sized for a full page of content; the footer is pinned to the page
     bottom so a short page never ends in bare paper; the article sidebar sticks
     rather than ending mid-page and stranding a dead column.
*/

/* the theme's section rhythm is sized for a full page of content; interior pages
   carry one section, so they take a tighter beat and keep the rule tight */
.section--tight {
  padding-block: var(--space-2xl);
}

.pagehead {
  padding-block: var(--space-2xl) var(--space-2xl);
}

.pagehead .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: var(--space-2xl);
  align-items: end;
}

.pagehead h1 {
  font-size: var(--text-display);
  line-height: 0.98;
  max-width: 18ch;
}

.pagehead p {
  margin-top: var(--space-lg);
  max-width: 54ch;
  font-size: var(--text-lead);
  line-height: 1.45;
  color: var(--color-ink-2);
}

/* real facts opposite the headline, so the head is a two-column block not a void */
.pagehead__meta {
  display: grid;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: var(--rule-bar) solid var(--color-ink);
  width: 100%;
}

/* --- Trade silhouettes --------------------------------------------------
   Flat black cut-outs sitting straight on the paper: no plate, no border,
   no shadow, so they read as print blocks rather than stock photos. They fill
   the field that used to sit empty above the fold on every page. Decorative
   only -- the trade name is always in adjacent text, so every img carries
   alt="". */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: end;
}
.hero__figures {
  display: flex;
  align-items: flex-end;
  gap: var(--space-lg);
  min-width: 0;
}
.pagehead__side {
  display: grid;
  gap: var(--space-lg);
  justify-items: start;
}
.pagehead__figure {
  display: block;
  height: 168px;
  min-width: 0;
}
/* height-driven, capped to the column: an uncapped img would fill the 18rem
   column and spill over the stats list below it */
.pagehead__figure img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom;
}
.pagehead__figures {
  display: flex;
  align-items: flex-end;
  gap: var(--space-sm);
  min-width: 0;
}
/* width basis + flex-shrink: the set keeps its aspect ratios and shrinks to
   the column instead of spilling past the viewport edge */
.hero__figures img,
.pagehead__figures img {
  display: block;
  height: auto;
  max-width: 100%;
  flex: 0 1 auto;
  min-width: 0;
}
.hero__figures img { width: 196px; }
.pagehead__figures img { width: 84px; }

.pagehead__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-ink);
}

.pagehead__row span:first-child {
  color: var(--color-muted);
}

/* a contractor plate: copy left, action right, spec table across the bottom.
   the spec spans the full card width so the copy column can never strand a void */
.firm--row {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  grid-template-areas:
    "copy action"
    "spec spec";
  gap: var(--space-lg) var(--space-2xl);
  align-items: start;
  padding: var(--space-xl) var(--space-lg);
}

.firm__body {
  grid-area: copy;
}

.firm__action {
  grid-area: action;
  display: flex;
  justify-content: flex-end;
}

.firm__action .btn {
  white-space: nowrap;
}

.firm__spec {
  grid-area: spec;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gap-columns);
}

/* contact closes the grid on its own row so the last row is never half empty */
.firm__spec > li:last-child {
  grid-column: 1 / -1;
}

.firm__head {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.firm__head .firm__mark {
  height: 56px;
  flex: 0 0 auto;
  margin-bottom: 0;
}

.firm__head .firm__mark img {
  max-height: 100%;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  object-position: left center;
}

.firm--row h2 {
  font-size: var(--text-section);
  line-height: 1.05;
  max-width: none;
}

.firm--row .firm__bio {
  margin-top: var(--space-lg);
  max-width: 66ch;
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--color-ink-2);
}

.firm--row .firm__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.firm--row .firm__links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-ink);
}

.firm--row .spec {
  margin-top: 0;
}

.contact {
  font-family: var(--font-outlier);
  font-weight: 500;
  font-size: var(--text-md);
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
  overflow-wrap: break-word;
}

/* empty state: the honest plate for a trade with nothing listed yet */
.empty {
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
}

.empty h2 {
  font-size: var(--text-section);
  max-width: 20ch;
  margin-inline: auto;
}

.empty p {
  margin-top: var(--space-md);
  max-width: 48ch;
  margin-inline: auto;
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--color-ink-2);
}

.empty .btn {
  margin-top: var(--space-xl);
}

/* ------------------------------------------------------------------ article */

/* the sidebar sticks rather than ending mid-page, so a short card keeps the
   reader company down the article instead of stranding a dead column */
.article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: var(--space-2xl);
  align-items: start;
}

.article__body {
  min-width: 0;
}

.article__body h2 {
  font-size: var(--text-section);
  line-height: 1.1;
  margin-top: var(--space-2xl);
  max-width: 24ch;
}

.article__body h2:first-child,
.article__body h3:first-child {
  margin-top: 0;
}

.article__body h3 {
  font-size: var(--text-xl);
  line-height: 1.2;
  margin-top: var(--space-xl);
  max-width: 28ch;
}

.article__body p,
.article__body li {
  margin-top: var(--space-md);
  max-width: 68ch;
  font-size: var(--text-md);
  line-height: 1.65;
  color: var(--color-ink-2);
}

.article__body ul,
.article__body ol {
  margin-top: var(--space-md);
  padding-left: var(--space-lg);
}

.article__body li {
  margin-top: var(--space-xs);
}

.article__body strong {
  color: var(--color-ink);
  font-weight: 500;
}

.article__body blockquote {
  margin: var(--space-xl) 0 0;
  padding-left: var(--space-lg);
  border-left: var(--rule-bar) solid var(--color-accent);
}

.article__body blockquote p {
  margin-top: 0;
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--color-ink);
}

.article__body table {
  width: 100%;
  margin-top: var(--space-lg);
  border-collapse: collapse;
  font-size: var(--text-sm);
  border-top: var(--rule-bar) solid var(--color-ink);
  border-bottom: var(--rule-bar) solid var(--color-ink);
}

.article__body th,
.article__body td {
  text-align: left;
  padding: var(--space-sm) var(--space-md) var(--space-sm) 0;
  border-bottom: var(--rule-hair) solid var(--color-paper-3);
  color: var(--color-ink-2);
  vertical-align: top;
}

.article__body th {
  background: var(--color-paper-3);
  color: var(--color-ink);
  font-weight: 500;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: var(--rule-bar) solid var(--color-ink);
}

.article__body td:first-child,
.article__body th:first-child {
  padding-left: var(--space-md);
}

.article__body tr:last-child td {
  border-bottom: 0;
}

.aside {
  position: sticky;
  top: calc(var(--board-h) + var(--space-lg));
  padding: var(--space-lg);
}

.aside__label {
  display: block;
  padding-bottom: var(--space-sm);
  border-bottom: var(--rule-bar) solid var(--color-ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.aside__logo {
  display: block;
  height: 64px;
  margin-block: var(--space-lg);
}

.aside__logo img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.aside h2,
.aside h3 {
  font-size: var(--text-xl);
  line-height: 1.15;
  max-width: none;
}

.aside__tag {
  display: block;
  margin-top: var(--space-2xs);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.aside__bio {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-ink-2);
}

.aside .spec {
  margin-top: var(--space-lg);
}

.aside .spec li {
  grid-template-columns: 1fr;
  gap: var(--space-3xs);
}

.aside .btn {
  width: 100%;
  margin-top: var(--space-lg);
  text-align: center;
}

/* sibling work keeps the right column occupied on long articles */
.aside__more {
  margin-top: var(--space-xl);
  padding-top: var(--space-sm);
  border-top: var(--rule-bar) solid var(--color-ink);
}

.aside__more .label {
  display: block;
  margin-bottom: var(--space-xs);
}

.aside__more a {
  display: block;
  padding-block: var(--space-sm);
  border-bottom: var(--rule-hair) solid var(--color-paper-3);
  font-size: var(--text-sm);
  line-height: 1.4;
  color: var(--color-ink);
}

/* ------------------------------------------------------------------ responsive */

/* below 1280 the five nav labels cannot share a row with the wordmark and the
   action, so the header becomes a deliberate two rows instead of an accidental wrap */
@media (max-width: 80rem) {
  :root {
    --board-h: 105px;
  }

  .hero__figures img { width: 156px; }

  .board__inner {
    gap: var(--space-sm) var(--space-lg);
  }

  .board__mark {
    margin-right: 0;
    flex: 1 1 auto;
  }

  .board__cta {
    order: 2;
    flex: 0 0 auto;
  }

  .board__nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: var(--space-2xs) var(--space-lg);
    padding-top: var(--space-2xs);
    border-top: var(--rule-hair) solid color-mix(in oklab, var(--color-plate-ink) 24%, var(--color-ink));
  }
}

@media (max-width: 60rem) {
  .pagehead .container {
    grid-template-columns: 1fr;
    align-items: start;
  }

  /* silhouettes scale down but keep their place above the fold */
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .hero__figures { gap: var(--space-md); }
  .hero__figures img { width: 104px; }
  .pagehead__figure { height: 104px; }
  .pagehead__figures { gap: var(--space-md); }
  .pagehead__figures img { width: 96px; }

  /* copy, action, then the spec grid stacked */
  .firm--row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "action"
      "spec";
  }

  .firm__action {
    justify-content: flex-start;
  }

  .firm__spec {
    grid-template-columns: 1fr;
  }

  /* the contractor card leads on narrow screens, the prose follows */
  .article {
    grid-template-columns: minmax(0, 1fr);
  }

  .aside {
    position: static;
    order: -1;
  }
  .hero {
    min-height: 0;
    padding-block: var(--space-2xl) var(--section-gap-s);
  }

  .board-plate__rows {
    grid-template-columns: 1fr;
  }

  .trade {
    border-left: 0;
    border-bottom: var(--rule-hair) solid var(--color-paper-3);
  }

  .trade:last-child {
    border-bottom: 0;
  }

  .job,
  .foot__grid,
  .close__routes {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .foot__links {
    grid-template-columns: 1fr;
  }

  .firm {
    grid-column: span 6;
  }

  .zone-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2xl) var(--gap-columns);
  }

  .section__head {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    align-items: start;
    margin-bottom: var(--space-xl);
  }
}

@media (max-width: 40rem) {
  :root {
    --board-h: 164px;
    --text-display: clamp(2.1rem, 9vw, 3rem);
    --text-display-s: clamp(1.8rem, 7vw, 2.6rem);
    --text-section: clamp(1.6rem, 6vw, 2.2rem);
  }

  .board__inner {
    min-height: 0;
    padding-block: var(--space-xs);
    gap: var(--space-xs) var(--space-md);
  }

  .board__mark {
    font-size: var(--text-lg);
    flex: 1 1 auto;
    margin-right: 0;
  }

  .board__cta {
    order: 2;
    flex: 0 0 auto;
    padding: var(--space-xs) var(--space-md);
  }

  .board__cta-long {
    display: none;
  }

  /* two tidy columns instead of a ragged four-row wrap */
  .board__nav {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xs) var(--space-md);
    padding-top: var(--space-xs);
    border-top: var(--rule-hair) solid color-mix(in oklab, var(--color-plate-ink) 24%, var(--color-ink));
  }

  .board__nav a {
    font-size: var(--text-sm);
    white-space: normal;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero {
    padding-block: var(--space-2xl) var(--section-gap-s);
  }

  .firm {
    grid-column: span 12;
  }

  .firm--row {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .firm__head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .firm__head .firm__mark {
    height: 44px;
  }

  .firm__head .firm__mark img {
    max-width: 150px;
  }

  .pagehead {
    padding-block: var(--space-xl) var(--space-xl);
  }

  .zone-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .zone {
    padding-block: var(--space-lg);
    border-bottom: var(--rule-hair) solid var(--color-paper-3);
  }

  .close__routes {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .foot__links {
    grid-template-columns: 1fr;
  }

  .btn {
    padding-inline: var(--space-lg);
  }
}

@media (max-width: 26rem) {
  .spec li,
  .job__spec li {
    grid-template-columns: 1fr;
    gap: var(--space-3xs);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn--primary:active,
  .btn--secondary:active {
    translate: none;
  }
}
