/* =====================================================================
   M T Building Services
   ---------------------------------------------------------------------
   Typeface: Lato, the firm's own brand font. The original logo is set in
   Lato Bold and the same face is printed on their workwear and hoodies,
   so the site matches what customers see on site.

   Self-hosted rather than loaded from Google: it keeps font-src 'self'
   in the CSP, removes a third-party connection on every page load, and
   avoids sending visitors' IP addresses to Google. Latin subset only,
   three weights, 42KB in total.
   ===================================================================== */
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/lato-400.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/lato-700.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/lato-900.woff2") format("woff2");
}

/* =====================================================================
   M T Building Services
   Hand-authored. No framework, no build step for CSS, no external fonts.
   Palette and type scale are defined once here as custom properties.
   ===================================================================== */

:root {
  color-scheme: light;

  /* Ink + surfaces: warm neutrals, not blue-greys */
  --ink:        #16181c;
  --ink-soft:   #1d2026;
  --body:       #3a3f47;   /* 10.6:1 on white  */
  --muted:      #5b6270;   /*  6.1:1 on white  */
  --paper:      #ffffff;
  --stone:      #f6f3ef;
  --stone-deep: #ece6dd;
  --line:       #e3ddd5;
  --line-soft:  #efeae3;

  /* Brand blue: #0040AB, the reference colour.
     It measures 9.05:1 on white, so unlike a lighter blue it carries body
     text, white-on-blue buttons and the nav bar with no compromise
     variant needed. Everything below is a tone of the same hue. */
  --brand:       #0040AB;   /* 9.05:1 on white */
  --brand-deep:  #02255E;   /* footer + dark sections; white on it 14.7:1 */
  --brand-mid:   #063077;   /* CTA band, a shade up from the footer */
  --accent:      #0040AB;   /* links, buttons, nav bar */
  --accent-dark: #00307F;   /* hover; 12.1:1 white-on */
  --accent-lift: #7FB0FF;   /* on the dark tones; 6.7:1 on --brand-deep */
  --accent-wash: #E8EFFC;   /* tint; --accent on it is 7.8:1 */

  /* Focus must stay visible against the blues as well as white and stone,
     so it is ink on light surfaces and white on dark ones (set below)
     rather than another blue that would blend into the buttons. */
  --focus: #16181c;

  /* Type */
  --display: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans:    "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(22,24,28,.06), 0 4px 12px rgba(22,24,28,.05);
  --shadow-md: 0 2px 6px rgba(22,24,28,.07), 0 14px 40px rgba(22,24,28,.09);

  --header-h: 88px;
  --wrap: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
}

/* ------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, svg, video { max-width: 100%; display: block; }
img { height: auto; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -.021em;
  margin: 0 0 .5em;
  font-weight: 900;
}
h3, h4 { font-weight: 700; letter-spacing: -.012em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.9vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.45rem); line-height: 1.25; }
p  { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-dark); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Ink is invisible on the dark sections, so flip it there. */
.hero :focus-visible,
.section-ink :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible,
.site-header :focus-visible,
.lightbox :focus-visible { outline-color: #ffffff; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.narrow { width: min(68ch, 100% - var(--gutter) * 2); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: .85rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap;
  gap: .55rem;
  font-family: var(--sans); font-size: 1rem; font-weight: 650;
  line-height: 1.2;
  padding: .95rem 1.6rem;
  min-height: 48px;                 /* WCAG 2.2 target size */
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

/* On blue, a blue button disappears, so invert it. */
.site-header .btn-primary {
  padding: .72rem 1.45rem; min-height: 44px; font-size: .96rem;
}
.site-header .btn-primary,
.cta-band .btn-primary,
.section-ink .btn-primary { background: #fff; color: var(--accent-dark); }
.site-header .btn-primary:hover,
.cta-band .btn-primary:hover,
.section-ink .btn-primary:hover { background: var(--accent-lift); color: var(--ink); }

.btn-dark { background: var(--brand-deep); color: #fff; }
.btn-dark:hover { background: #011A44; color: #fff; }

.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--stone); }

.btn-on-dark { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ------------------------------------------------------------- header */
/* Solid nav bar in the brand blue itself. White nav text on #0040AB is
   9.05:1, comfortably past AA, so no darker stand-in is needed. */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--accent);
  border-bottom: 1px solid rgba(0,0,0,.14);
}
/* Full-bleed: the logo sits hard left and the CTA hard right, with the
   nav free to breathe between them. Previously this shared the centred
   1180px .wrap, which bunched everything into the middle and left a wide
   empty gutter on each side at desktop widths. */
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: var(--header-h);
  padding-inline: clamp(1.15rem, 3vw, 2.75rem);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.08; }
/* Set in Lato Bold, the weight the original logo uses, so the header
   wordmark matches the printed workwear. */
.brand-name {
  font-family: var(--display); font-size: 1.08rem; font-weight: 700;
  color: #fff; letter-spacing: -.005em; white-space: nowrap;
}
.brand-sub {
  font-size: .685rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.82); font-weight: 600;
}

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a {
  color: #fff; text-decoration: none; font-size: .95rem;
  white-space: nowrap;
  font-weight: 550; padding: .6rem .9rem; border-radius: var(--radius-sm);
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.16); }
/* The current page is marked by weight and an underline as well as
   colour, so it does not rely on colour alone (WCAG 1.4.1). */
.nav a[aria-current="page"] {
  color: #fff; font-weight: 700;
  box-shadow: inset 0 -2px 0 0 var(--accent-lift);
}

.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-phone {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 700; color: #fff; text-decoration: none;
  font-size: 1rem; white-space: nowrap;
}
.header-phone:hover { color: var(--accent-lift); }
.header-phone svg { width: 1.15em; height: 1.15em; color: var(--accent-lift); }
/* On narrow screens the number is hidden and only the icon remains, which
   left a 17px tap target. */
.header-phone { padding: .55rem .5rem; min-height: 44px; }

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.45);
  border-radius: var(--radius-sm); width: 46px; height: 46px;
  align-items: center; justify-content: center; cursor: pointer; color: #fff;
}
.nav-toggle:hover { background: rgba(255,255,255,.16); }
.nav-toggle svg { width: 22px; height: 22px; }

/* Now that the header runs full width the nav needs more room than it
   did inside the old centred wrap. Measured at 1024px the three blocks
   came to 1127px, so the collapse point moves up to 1260px and there is
   a tightening band above it. */
@media (max-width: 1400px) {
  .nav { gap: .15rem; }
  .nav a { padding: .5rem .62rem; font-size: .92rem; }
  .header-cta { gap: .7rem; }
}
/* Below the nav breakpoint the header is brand + phone + burger, and the
   number itself would not fit on a small phone. */
@media (max-width: 700px) {
  .header-phone span.num { display: none; }
}
/* 320px-class phones: the wordmark is nowrap so it cannot shrink on its
   own and was pushing the header 37px wider than the screen. */
@media (max-width: 400px) {
  .header-inner { gap: .5rem; padding-inline: 1rem; }
  .brand { gap: .5rem; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: .95rem; }
  .brand-sub { font-size: .62rem; }
}
@media (max-width: 1260px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--accent); padding: .6rem var(--gutter) 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,.18);
    box-shadow: var(--shadow-md);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  /* Closed by default so the menu is not briefly open before app.js
     runs (the script is deferred). JS adds data-open to reveal it. */
  .nav:not([data-open]) { display: none; }
  .nav[hidden] { display: none; }
  .nav a { padding: .95rem .25rem; border-bottom: 1px solid rgba(255,255,255,.18); font-size: 1.05rem; }
  .nav a:last-of-type { border-bottom: 0; }
  .header-cta .btn { display: none; }
}

/* --------------------------------------------------------------- hero */
.hero { position: relative; background: var(--brand-deep); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(2,16,44,.94) 0%,
              rgba(2,16,44,.80) 38%, rgba(2,16,44,.26) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  padding-block: clamp(4.5rem, 12vw, 8.5rem);
  max-width: 44rem;
}
.hero h1 { color: #fff; margin-bottom: .35em; text-wrap: balance; }
.hero .lede {
  color: rgba(255,255,255,.88); font-size: clamp(1.07rem, 1.9vw, 1.26rem);
  max-width: 38rem; margin-bottom: 2rem;
}
/* --accent-lift is tuned for DARK backgrounds (7.5:1 on --ink). On white
   it is only 2.4:1, well under AA, so the default here is --accent
   (5.4:1 on white) and the light variant is switched back on only inside
   the dark hero and dark sections. */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: currentColor;
}
.hero .eyebrow,
.section-ink .eyebrow,
.cta-band .eyebrow { color: var(--accent-lift); }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem;
  margin-top: 2.6rem; padding-top: 1.9rem;
  border-top: 1px solid rgba(255,255,255,.18);
}
/* The stats will not all sit on one line on a phone and the last label
   was being clipped. auto-fit adapts to however many stats there are and
   to the width available: three fit across at 390px, dropping to two
   columns on a narrow phone rather than squashing. */
@media (max-width: 700px) {
  .hero-proof {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
    gap: 1.4rem 1rem;
  }
  .hero-proof dt { font-size: 1.6rem; }
  .hero-proof dd { font-size: .74rem; }
}
.hero-proof div { color: #fff; }
.hero-proof dt {
  font-family: var(--display); font-size: 1.85rem; font-weight: 900;
  line-height: 1; letter-spacing: -.025em;
}
.hero-proof dd {
  margin: .4rem 0 0; font-size: .82rem; color: rgba(255,255,255,.72);
  letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
}

/* ------------------------------------------------------- trust strip */
.trust {
  background: var(--stone); border-bottom: 1px solid var(--line);
  padding-block: 1.1rem;
}
.trust-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: .85rem 2.2rem;
  font-size: .9rem; color: var(--body); font-weight: 550; text-align: center;
}
.trust-item { display: inline-flex; align-items: center; gap: .5rem; }
.trust-item svg { width: 1.15em; height: 1.15em; color: var(--accent); flex: none; }

/* ----------------------------------------------------------- sections */
.section { padding-block: var(--section); }
.section-stone { background: var(--stone); }
.section-ink { background: var(--brand-deep); color: rgba(255,255,255,.82); }
.section-ink h2, .section-ink h3 { color: #fff; }

.section-head { max-width: 42rem; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p {
  font-size: 1.1rem; color: var(--muted); margin-bottom: 0;
}
.section-ink .section-head p { color: rgba(255,255,255,.80); }

/* ----------------------------------------------------------- services */
.svc-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
}
.svc {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.6rem;
  display: flex; flex-direction: column; gap: .55rem;
  text-decoration: none; color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.svc:hover {
  border-color: var(--accent); box-shadow: var(--shadow-md);
  transform: translateY(-3px); color: inherit;
}
.svc-icon {
  width: 46px; height: 46px; border-radius: 11px;
  background: var(--accent-wash); color: var(--accent);
  display: grid; place-items: center; margin-bottom: .55rem;
}
.svc-icon svg { width: 24px; height: 24px; flex: none; }
.svc h3 { margin: 0; }
.svc p { font-size: .96rem; color: var(--muted); margin: 0; }
.svc-more {
  margin-top: auto; padding-top: .9rem; font-size: .9rem;
  font-weight: 650; color: var(--accent);
  display: inline-flex; align-items: center; gap: .35rem;
}
.svc:hover .svc-more { gap: .6rem; }
.svc-more svg { width: .95em; height: .95em; transition: transform .2s ease; }

/* ---------- blocks carried over from the original page structure ----- */
/* "Convert Any Room" / "Love Your Roof" */
.feature-grid {
  display: grid; gap: 1.6rem; margin-top: 2.6rem;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.feature {
  border-top: 3px solid var(--accent); padding-top: 1.3rem;
}
.feature h3 { margin-bottom: .5rem; }
.feature p { color: var(--muted); font-size: .99rem; }

/* two-column prose for the long homepage intro */
.columns-2 p { margin-bottom: 1.15em; }
@media (min-width: 900px) {
  .columns-2 { columns: 2; column-gap: 2.8rem; }
  .columns-2 p { break-inside: avoid; }
}

/* contact page office cards */
.office {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem; margin-bottom: .9rem; background: var(--paper);
}
.office h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.office-note {
  font-size: .78rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: .5rem;
}
.office p { margin: 0; font-size: .97rem; color: var(--muted); line-height: 1.55; }
.office a {
  font-weight: 700; font-size: 1.08rem; text-decoration: none;
  display: inline-block; padding-block: .15rem; min-height: 24px;
}
.office a:hover { text-decoration: underline; }

/* --------------------------------------------------------- how it works */
.steps { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: step; }
.step { position: relative; padding-top: 2.9rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 1.02rem; font-weight: 900;
}
.step h3 { font-size: 1.16rem; margin-bottom: .35rem; }
.step p { font-size: .96rem; color: var(--muted); margin: 0; }
.section-ink .step p { color: rgba(255,255,255,.80); }
.section-ink .step::before { background: var(--accent-lift); color: var(--ink); }

/* -------------------------------------------------------------- work */
.work-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.work-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  isolation: isolate;
  background: var(--stone-deep); display: block; text-decoration: none;
  color: inherit; border: 1px solid var(--line);
}
.work-card picture { display: block; }
.work-card img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.work-card:hover img { transform: scale(1.045); }
.work-card.tall img { aspect-ratio: 3 / 4; }
.work-cap { padding: 1.15rem 1.25rem 1.3rem; background: var(--paper); }
.work-cap h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.work-cap p { font-size: .92rem; color: var(--muted); margin: 0; }
/* Full-tile hit area for the gallery lightbox. Sits above the image but
   below the caption text, so the caption stays selectable. */
.work-zoom {
  position: absolute; inset: 0; z-index: 3;
  border: 0; padding: 0; background: transparent;
  cursor: zoom-in; font: inherit; color: transparent;
}
.work-zoom:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }

.work-tag {
  position: absolute; top: .85rem; left: .85rem; z-index: 2;
  background: rgba(255,255,255,.94); color: var(--ink);
  font-size: .72rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px;
}

/* The gallery mixes landscape and portrait photographs. In a normal grid
   one portrait tile forces its whole row tall and leaves dead space beside
   the landscape ones, so the gallery uses CSS columns (masonry) instead and
   lets every photo keep its own proportions. Reading order runs down each
   column rather than across, which is fine for a set of photographs. */
#gallery {
  display: block;
  columns: 3;
  column-gap: 1rem;
}
@media (max-width: 980px) { #gallery { columns: 2; } }
@media (max-width: 600px) { #gallery { columns: 1; } }
#gallery .work-card {
  break-inside: avoid;
  margin-bottom: 1rem;
  display: inline-block;   /* stops cards splitting across columns */
  width: 100%;
}
#gallery .work-card img,
#gallery .work-card.tall img { aspect-ratio: auto; height: auto; }

/* gallery filter */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter {
  font: inherit; font-size: .92rem; font-weight: 600;
  padding: .6rem 1.15rem; min-height: 44px;
  border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper); color: var(--body); cursor: pointer;
  transition: all .18s ease;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ------------------------------------------------------- testimonials */
.quote-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.quote {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.9rem 1.75rem;
  display: flex; flex-direction: column;
}
.section-stone .quote { background: var(--paper); }
.quote-mark { color: var(--accent); width: 30px; height: 30px; margin-bottom: .9rem; }
.quote blockquote { margin: 0 0 1.25rem; font-size: 1.06rem; color: var(--ink); line-height: 1.5; }
.quote-cite { margin-top: auto; font-style: normal; font-size: .9rem; }
.quote-cite strong { display: block; color: var(--ink); font-weight: 650; }
.quote-cite span { color: var(--muted); }

.review { border-bottom: 1px solid var(--line); padding-block: 2.4rem; }
.review:first-of-type { padding-top: 0; }
.review:last-of-type { border-bottom: 0; }
.review-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1rem;
}
.review-head h2 { margin: 0; font-size: 1.28rem; font-weight: 700; }
.review-meta { font-size: .88rem; color: var(--muted); white-space: nowrap; }
.review-body p { color: var(--body); }
.review-by { margin-top: 1rem; font-weight: 650; color: var(--ink); font-style: normal; }

.stars { display: inline-flex; gap: .1rem; color: var(--accent); }
.stars svg { width: 1.05em; height: 1.05em; }

/* ------------------------------------------------------------- areas */
.area-list {
  display: flex; flex-wrap: wrap; gap: .6rem; list-style: none;
  margin: 0; padding: 0;
}
.area-list li {
  border: 1px solid var(--line); border-radius: 999px;
  padding: .55rem 1.15rem; font-size: .95rem; font-weight: 550;
  background: var(--paper); color: var(--body);
}
.section-ink .area-list li {
  border-color: rgba(255,255,255,.3); background: transparent; color: rgba(255,255,255,.92);
}

/* ---------------------------------------------------------- split/prose */
.split {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.split-media img { border-radius: var(--radius); width: 100%; }
.split-media figcaption { font-size: .85rem; color: var(--muted); margin-top: .7rem; }

.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 2.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.9em; }
.prose ul { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--accent); }

.callout {
  background: var(--accent-wash); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.4rem 1.6rem; margin: 2rem 0;
}
.callout p:last-child { margin-bottom: 0; }
/* --accent on the --accent-wash tint measures 4.48:1, a fraction under
   AA, so links inside a callout use the darker blue (6.44:1). */
.callout a { color: var(--accent-dark); }

/* --------------------------------------------------------------- CTA */
.cta-band { background: var(--brand-mid); color: #fff; }
.cta-band .wrap { padding-block: clamp(3.2rem, 7vw, 5rem); }
.cta-inner {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) { .cta-inner { grid-template-columns: 1.4fr 1fr; } }
.cta-band h2 { color: #fff; margin-bottom: .45em; }
.cta-band p { color: rgba(255,255,255,.84); margin-bottom: 0; }
.cta-actions { display: flex; flex-direction: column; gap: .8rem; }
@media (min-width: 880px) { .cta-actions { align-items: flex-end; } }

/* -------------------------------------------------------------- form */
.form-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.6rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block; font-weight: 650; color: var(--ink);
  font-size: .94rem; margin-bottom: .4rem;
}
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .86rem; margin-top: .15rem; }
.req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper);
  padding: .82rem .95rem; min-height: 48px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #c9c0b4; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); outline: 3px solid rgba(0,64,171,.22); outline-offset: 0;
}
.field-row { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--muted); margin-top: 1rem; }

/* ------------------------------------------------------------ contact */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 1.15fr .85fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: .9rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list > li > svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: .25rem; }
.contact-list strong { display: block; color: var(--ink); font-size: .84rem;
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: .2rem; }
.contact-list a {
  font-size: 1.1rem; font-weight: 650; text-decoration: none;
  display: inline-block; padding-block: .2rem; min-height: 28px;
}
.contact-list a:hover { text-decoration: underline; }

/* ------------------------------------------------------------- footer */
.site-footer { background: var(--brand-deep);
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.74); padding-block: clamp(3rem, 6vw, 4.5rem) 0; font-size: .95rem; }
.footer-grid { display: grid; gap: 2.4rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer-grid h2 {
  color: #fff; font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin: 0 0 1.1rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .35rem; }
.footer-grid a {
  color: rgba(255,255,255,.72); text-decoration: none;
  display: inline-block; padding-block: .3rem; min-height: 24px;
}
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { margin-top: 1rem; max-width: 30ch; color: rgba(255,255,255,.72); }
.footer-bottom {
  margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.20);
  padding-block: 1.5rem 2rem;
  display: flex; flex-wrap: wrap; gap: .8rem 1.8rem;
  justify-content: space-between; align-items: center;
  font-size: .86rem; color: rgba(255,255,255,.72);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-bottom a {
  color: rgba(255,255,255,.80); text-decoration: none;
  display: inline-block; padding-block: .3rem; min-height: 24px;
}
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ------------------------------------------------- mobile call bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; gap: .6rem;
  padding: .6rem var(--gutter);
  padding-bottom: calc(.6rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.callbar .btn { flex: 1; padding-inline: .8rem; font-size: .95rem; }
@media (max-width: 760px) {
  .callbar { display: flex; }
  body { padding-bottom: 76px; }
}

/* ----------------------------------------------------------- lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,11,13,.94);
  display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[hidden] { display: none !important; }
.lightbox img {
  max-width: 100%; max-height: 78vh; border-radius: var(--radius);
  object-fit: contain;
}
.lightbox-cap {
  color: rgba(255,255,255,.85); text-align: center;
  margin: 1rem auto 0; font-size: .97rem; max-width: 56ch;
}
.lightbox > div { display: flex; flex-direction: column; align-items: center; }
.lightbox-cap strong { display: block; color: #fff; font-size: 1.1rem; margin-bottom: .25rem; }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.12); border: 0;
  color: #fff; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
}
.lb-btn:hover { background: rgba(255,255,255,.26); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: clamp(.8rem, 3vw, 1.8rem); right: clamp(.8rem, 3vw, 1.8rem); }
.lb-prev { left: clamp(.5rem, 2vw, 1.5rem); }
.lb-next { right: clamp(.5rem, 2vw, 1.5rem); }
@media (max-width: 640px) {
  .lb-prev { left: .5rem; bottom: 1.5rem; top: auto; }
  .lb-next { right: .5rem; bottom: 1.5rem; top: auto; }
}

/* ------------------------------------------------------------- misc */
.page-head { background: var(--stone); border-bottom: 1px solid var(--line); padding-block: clamp(2.8rem, 6vw, 4.5rem); }
.page-head h1 { margin-bottom: .3em; text-wrap: balance; }
.page-head p { font-size: 1.13rem; color: var(--muted); max-width: 54ch; margin: 0; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 1.1rem; }
.crumbs a { color: var(--muted); text-decoration: none;
  display: inline-block; padding-block: .2rem; min-height: 24px; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

.badge-nhbc {
  display: flex; align-items: center; gap: .8rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .9rem 1.1rem; background: var(--paper); font-size: .9rem;
}
/* The icon helper emits a bare <svg> with no width, so without this it
   stretches to fill the flex line. */
.badge-nhbc > svg {
  width: 26px; height: 26px; flex: none; color: var(--accent);
}
.badge-nhbc strong { color: var(--ink); display: block; }
.badge-nhbc span { color: var(--muted); }

@media print {
  .site-header, .callbar, .cta-band, .site-footer nav, .filters { display: none !important; }
  body { padding-bottom: 0; }
}
