/* ==========================================================================
   A Access Piling & Rock Drilling — site.css
   Reusable civil-construction / excavation / piling template
   v1.5.0
   --------------------------------------------------------------------------
   Contents
   01 Tokens
   02 Reset & base
   03 Layout primitives
   04 Buttons & links
   05 Utility bar, header, navigation
   06 Hero
   07 Sections, headings, eyebrows
   08 Cards & grids
   09 Spec strip / stats
   10 Process steps
   11 Media & figures
   12 Service areas
   13 Call-to-action bands
   14 Forms
   15 Accordion (FAQ)
   16 Footer
   17 Tables
   18 Breadcrumbs, pagination, misc
   19 Motion & print
   ========================================================================== */

/* 01 Tokens ============================================================== */

:root {
  /* Brand */
  --brand: #2f52a0;          /* sampled from the A Access wordmark */
  --brand-700: #24417f;
  --brand-900: #16284f;
  --brand-100: #e6ecf7;

  /* Industrial accent */
  --amber: #f0a500;
  --amber-600: #cf8c00;

  /* Neutrals: cool steel greys */
  --ink: #10161e;
  --ink-800: #1b2531;
  --ink-700: #2b3846;
  --steel-600: #4d5c6e;
  --steel-400: #8795a6;
  --steel-200: #ccd4de;
  --steel-100: #e7ebf1;
  --steel-50: #f4f6f9;
  --white: #ffffff;

  /* Semantic */
  --bg: var(--white);
  --bg-alt: var(--steel-50);
  --bg-dark: var(--ink);
  --text: var(--ink-800);
  --text-muted: var(--steel-600);
  --rule: var(--steel-200);
  --focus: #ffb703;

  /* Typography */
  --font-sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, system-ui, sans-serif;
  --font-display: "Arial Narrow", "Helvetica Neue Condensed", "Segoe UI", Roboto, system-ui, sans-serif;

  --fs-300: 0.8125rem;
  --fs-400: 1rem;
  --fs-500: 1.0625rem;
  --fs-600: 1.25rem;
  --fs-700: 1.5rem;
  --fs-800: 1.875rem;
  --fs-900: 2.25rem;
  /* h1 only. Fluid below 900px so the longest uppercase word ("CONTRACTORS")
     still fits inside a 320px viewport instead of being clipped. */
  --fs-1000: clamp(2.25rem, 1.55rem + 3.5vw, 2.75rem);

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.75rem;
  --sp-8: 4rem;
  --sp-9: 5.5rem;

  /* Content measure. Fluid so wide monitors are used rather than left as dead
     margin: 1200px is the floor (the old fixed value, and still the full width
     of anything up to ~1365px), reaching 1440px by ~1640px of viewport. 88vw
     always leaves more gutter than a scrollbar can take, so this never forces a
     horizontal scroll. Reading width is protected separately, by --wrap-narrow
     and the ch caps on prose. */
  --wrap: clamp(1200px, 88vw, 1440px);
  --wrap-narrow: 760px;
  --radius: 2px;
  /* One height for every interactive control: .btn, form fields. The nav
     toggle is deliberately smaller than this — see .nav-toggle. */
  --control-h: 48px;
  --shadow-1: 0 1px 2px rgba(16, 22, 30, 0.08), 0 4px 14px rgba(16, 22, 30, 0.06);
  --shadow-2: 0 10px 40px rgba(16, 22, 30, 0.16);
  /* The real height of the narrow header: a 188px wordmark is 56.8px tall and
     carries 4px of padding either side, so 66px is the row it actually needs.
     Both the sticky scroll offset and the nav panel's max-height derive from
     this, so the token has to match what the header measures. */
  --header-h: 66px;
  /* Height of the utility bar above the header. It is not sticky, so the open
     nav panel has to reserve it to stay inside the viewport. The bar carries
     two items (address, email). Side by side they measure 424px plus the wrap
     gutters, so they wrap to two lines below 480px — same text on every page,
     so these are site-wide constants, rounded up: over-reserving only makes the
     panel shorter, under-reserving pushes it past the fold. */
  --utility-h: 68px;
}

@media (min-width: 480px) {
  :root { --utility-h: 38px; }
}

@media (min-width: 900px) {
  :root {
    --fs-700: 1.625rem;
    --fs-800: 2.125rem;
    --fs-900: 2.875rem;
    --fs-1000: 4rem;
    /* 88px, not 84: the 238px wordmark plus its padding measures 87.9px, so the
       old value was never the real header height and the sticky-offset
       calculations sat a hair short of the bottom rule. */
    --header-h: 88px;
  }
}

/* 02 Reset & base ======================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-500);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--sp-4);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-1000); }
h2 { font-size: var(--fs-900); }
h3 { font-size: var(--fs-700); }
h4 { font-size: var(--fs-600); }
h5 { font-size: var(--fs-500); }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }
li { margin-bottom: var(--sp-2); }

a { color: var(--brand-700); text-underline-offset: 3px; }
a:hover { color: var(--brand-900); }

strong { font-weight: 700; color: var(--ink); }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--sp-6) 0;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: var(--sp-3);
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: var(--sp-3) var(--sp-4);
  font-weight: 700;
  border-radius: var(--radius);
  transition: top 0.15s ease;
}
.skip-link:focus { top: var(--sp-3); color: var(--white); }

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

/* 03 Layout primitives =================================================== */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

@media (min-width: 700px) {
  .wrap { padding-inline: var(--sp-6); }
}

.wrap--narrow { max-width: var(--wrap-narrow); }

.section {
  padding-block: var(--sp-7);
}

@media (min-width: 900px) {
  .section { padding-block: var(--sp-9); }
}

.section--tight { padding-block: var(--sp-6); }
.section--alt { background: var(--bg-alt); }
.section--dark {
  background: var(--bg-dark);
  color: var(--steel-200);
}
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }
.section--dark a { color: var(--amber); }

.stack > * + * { margin-top: var(--sp-4); }

.grid {
  display: grid;
  gap: var(--sp-5);
  /* minmax(0, 1fr) stops wide children (tables, pre) forcing the track open */
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 640px) and (max-width: 899px) {
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Split: media beside copy */
.split {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}

.split__copy,
.split__media { min-width: 0; }

@media (min-width: 900px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-8); }
  .split--reverse .split__media { order: 2; }
}

/* The wrap grows past 1200px from here up, which would push a split column to
   ~80 characters. Headings and leads are already capped by .section-head; this
   holds the body copy to a readable measure and lets the photo take the rest. */
@media (min-width: 1280px) {
  .split__copy > p,
  .split__copy > .checklist { max-width: 64ch; }
}

/* 04 Buttons & links ===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: var(--control-h);
  padding: var(--sp-3) var(--sp-5);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--fs-400);
  font-weight: 800;
  /* Buttons set their own line-height rather than inheriting the body's 1.65.
     Without this an <a class="btn"> measured 54.4px while a <button class="btn">
     measured 48px, and a wrapping label grew to 80px. */
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  /* A label longer than the column it sits in wraps inside the button instead
     of pushing the button past its container and the page sideways. Belt and
     braces behind the `width: 100%` the stacked row already sets. */
  max-inline-size: 100%;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active { transform: translateY(1px); }

/* The reduced-motion block in section 19 zeroes transition and animation
   durations, which is not enough here: the press nudge is a state transform
   that still lands instantly with no transition at all. Remove the movement
   itself; the colour change alone reports the press. */
@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
}

.btn--primary {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}
.btn--primary:hover {
  background: var(--amber-600);
  border-color: var(--amber-600);
  color: var(--ink);
}

.btn--secondary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}
.btn--secondary:hover {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn--ghost-light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

/* The header's inline quote button. Compact only in type and side padding: it
   keeps --control-h, so every control on the page is still 48px tall, and it
   keeps the amber primary fill, so it is still plainly the same button.

   A declared modifier rather than the descendant override this used to be in
   section 05, so a button's class list always states its size. That is not
   tidiness for its own sake: the box audit asks "does one class produce one box
   at a given width?", and an override keyed on an ancestor made `btn--primary`
   answer no — 13px type in the header, 16px everywhere else, with nothing in
   the markup to say so.

   Held back to 1024px because that is where the CTA is an inline nav item
   squeezed against six links; the measured alternative is the nav list losing
   another ~50px of track at exactly its tightest width. Below 1024 the nav
   collapses and this same button becomes a full-width panel control, where
   small type on a 358px-wide button would read as a mistake, so it takes the
   standard size there. */
@media (min-width: 1024px) {
  .btn--compact {
    padding-inline: clamp(0.75rem, 1.2vw, 1.25rem);
    font-size: var(--fs-300);
  }
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* On narrow screens buttons stack. Intrinsic widths made that stack ragged
   (a 136px button above a 267px one) and let long labels wrap to two lines,
   so below 640px every button in a row shares one full-bleed width. */
@media (max-width: 639px) {
  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-row > .btn { width: 100%; }

  /* A full-bleed button does not need 24px of side padding, and trimming it
     keeps the longest label ("Return to the homepage", 247px) on one line
     inside a 320px viewport. */
  .btn { padding-inline: var(--sp-4); }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 800;
  font-size: var(--fs-400);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brand-700);
}
/* The arrow is an inline SVG from build.py (ICON_ARROW_PATH), not a drawn bar.
   A bare 18x2px rule closing an uppercase label read as punctuation rather than
   as an arrow — "ROCK DRILLING DETAILS -" — which is exactly the trailing dash
   the eyebrows dropped when they took their icons. Same flat 24x24 filled style
   as those, inheriting the link colour so the amber variants still work.

   Hover nudges the arrowhead right instead of stretching a line, so the
   movement reads as travel rather than as the dash getting longer. */
.link-arrow__icon {
  display: inline-flex;
  flex: none;
  transition: transform 0.15s ease;
}
.link-arrow__icon svg { display: block; fill: currentColor; }

.link-arrow:hover .link-arrow__icon,
.link-arrow:focus-visible .link-arrow__icon { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .link-arrow__icon { transition: none; }
}

/* 05 Utility bar, header, navigation ===================================== */

.utility {
  background: var(--ink);
  color: var(--steel-200);
  font-size: var(--fs-300);
}

.utility__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2) var(--sp-5);
  min-height: 38px;
  padding-block: var(--sp-2);
}

/* Address left, email right as soon as both fit on one line. Below that they
   stack centred rather than being pushed to opposite edges, which reads as two
   lost fragments on a narrow screen. */
@media (min-width: 480px) {
  .utility__inner { justify-content: space-between; }
}

.utility a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
}
.utility a:hover { color: var(--amber); text-decoration: underline; }

.utility__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  white-space: nowrap;
}

.utility__item svg { flex: none; fill: var(--amber); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(16, 22, 30, 0.04);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  /* Shrinks only when the row cannot hold it. The stacked lockup leaves room to
     spare at 320px — 132px of logo, a 16px gap and the 90px Menu button inside a
     288px content column — but keeping the shrink means a longer label on that
     button can still never push it past the right-hand grid edge every other
     element on the page lines up to. min-width:0 is what makes that shrink
     reach the image. */
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
  /* 4px on a phone, where every row of header costs real reading space; the
     logo is the tallest thing in the row, so this padding sets the height. */
  padding-block: var(--sp-1);
}

/* Widths are set so the stacked lockup lands on the same heights the earlier
   single-line wordmark did — 57px on a phone, 72px from 900px up — because
   those are what --header-h and the padding above were tuned around. It is a
   2.33:1 image where that one was 3.31:1, so the same height costs less width,
   and the header row gets that difference back. */
.brand img {
  width: 132px;
  max-width: 100%;
  height: auto;
}

@media (min-width: 900px) {
  .brand { padding-block: var(--sp-2); }
  .brand img { width: 168px; }
}

/* Once the inline nav appears the logo gives width back to it, so the six links
   and the quote button all fit from 1024px up instead of the button being
   dropped below 1140px. Back to its full 168px by ~1490px. */
@media (min-width: 1024px) {
  .brand img { width: clamp(141px, 11.3vw, 168px); }
}

/* Only ever shown below 1024px, so these are the phone and tablet values.

   Brand blue, not ink: it is the one action in the narrow header, so it carries
   the wordmark's blue rather than reading as a black slab next to it. White
   bars and white label on brand-700 is 9.8:1, well past AA.

   The painted box is deliberately smaller than the hit area. At 90x44 with an
   18px burger and 12px/800 type the button read as a slab competing with the
   wordmark for the row rather than sitting under it. The blue chip is now
   79.8x36 with a 16px burger and 11px/700 type, against a 188x56.8 wordmark:
   0.42 of its width and 0.63 of its height, down from 0.48 and 0.78. The logo
   leads the row and the button reads as secondary, which is the order the
   header wants. The width is set by the label floor below, so it holds at
   79.8px on every phone width and does not change when the menu opens.

   Shrinking the paint must not shrink the target: ::after below restores a
   full 44px tappable height, so the chip is lighter without costing a thumb.

   These rules are not themselves in a media query, but the button is
   display:none from 1024px up, so none of this reaches the desktop header. */
.nav-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding-inline: 8px;
  padding-block: 0;
  background: var(--brand-700);
  color: var(--white);
  border: 0;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

/* The 44px touch target the 36px chip no longer provides on its own. Centred
   on the button and 4px proud top and bottom; it carries no paint, so it costs
   nothing visually and it sits under the label rather than over it. inset is
   0 left and right, so the band grows only vertically: 44px of height inside a
   66px header row, and no horizontal overspill to swallow taps meant for the
   wordmark beside it. */
.nav-toggle::after {
  content: "";
  position: absolute;
  inset: -4px 0;
  border-radius: inherit;
}

.nav-toggle:hover { background: var(--brand); }
/* Open sits a step darker, so the panel below reads as the lighter surface. */
.nav-toggle[aria-expanded="true"] { background: var(--brand-900); }

/* Sized for "Close", the longer of the two labels, so tapping the button does
   not resize it. At 11px/700 and this tracking "Close" measures 41.2px against
   "Menu" at 35.0px; 3.8em is 41.8px — the measured width and half a pixel
   spare. Set below that and the chip grows the moment the menu opens. */
.nav-toggle [data-nav-label] {
  min-width: 3.8em;
  text-align: center;
}

/* 16px wide, down from 18px, so the burger stays in proportion to the lighter
   label beside it. The 3px gap is load-bearing and stays: the open-state
   transforms below translate by exactly one bar pitch (2px bar + 3px gap). */
.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
/* 5px of pitch between bar centres (2px bar + 3px gap), so the two outer bars
   meet exactly in the middle when they cross. */
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.primary-nav {
  display: none;
}
.primary-nav.is-open { display: block; }

@media (max-width: 1023px) {
  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    /* No top rule of its own: the header already draws one directly above the
       open panel, and the shadow separates it from the page. */
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow-2);
    /* dvh, not vh: on a phone 100vh is the *large* viewport (toolbars hidden),
       so a vh-based cap let the panel run under the browser chrome. The old
       hard-coded 38px reserve also only matched the utility bar at 600px and
       up — at 320px the bar is 96px tall and the panel ended 58px below the
       fold. --utility-h tracks the real height at every width. */
    max-height: calc(100vh - var(--header-h) - var(--utility-h));
    max-height: calc(100dvh - var(--header-h) - var(--utility-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .primary-nav__list {
    list-style: none;
    margin: 0;
    padding: var(--sp-2) var(--sp-4) var(--sp-5);
  }
  .primary-nav__list > li { margin: 0; border-bottom: 1px solid var(--steel-100); }
  .primary-nav__list > li:last-child { border-bottom: 0; }
  .primary-nav__link {
    display: block;
    padding: var(--sp-3) 0;
    font-weight: 800;
    font-size: var(--fs-400);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
  }
  .primary-nav__link[aria-current="page"] { color: var(--brand); }
  .subnav {
    list-style: none;
    margin: 0 0 var(--sp-3);
    padding-left: var(--sp-4);
    border-left: 2px solid var(--steel-100);
  }
  .subnav a {
    display: block;
    padding: var(--sp-2) 0;
    font-size: var(--fs-400);
    text-decoration: none;
    color: var(--text-muted);
  }
  .subnav a:hover,
  .subnav a[aria-current="page"] { color: var(--brand-700); }
  .primary-nav__cta { margin-top: var(--sp-4); }
  .primary-nav__cta .btn { width: 100%; }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }

  /* Brand hard left, quote button hard right, links centred in what is left.
     The nav takes the free space (flex: 1) and the list's auto inline margins
     split it evenly, so widening the wrap spreads the header out instead of
     leaving a dead gap behind the wordmark with the links bunched on the end. */
  .site-header__inner {
    align-items: stretch;
    gap: clamp(1rem, 2vw, 2.5rem);
  }
  .brand { align-self: center; }
  .primary-nav {
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    justify-content: flex-end;
    gap: clamp(1rem, 2vw, 2.5rem);
  }
  .primary-nav__list {
    display: flex;
    align-items: stretch;
    /* Links breathe on a wide screen without colliding at 1024px. */
    gap: clamp(0.75rem, 1.4vw, 1.75rem);
    margin: 0 auto;
    padding: 0;
    list-style: none;
  }
  .primary-nav__list > li { display: flex; margin: 0; position: relative; }
  .primary-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* Full-height links rather than a padding sum, so the whole header row is
       the hit target and the six links keep the widths they were measured at
       whatever the wordmark does. */
    padding: 0;
    font-size: var(--fs-300);
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink-700);
    white-space: nowrap;
  }
  /* Colour alone carries both states: brand-700 on hover is the same hover
     token the subnav, breadcrumbs and service nav use, and the current page
     holds the wordmark blue — the only blue-ink item in the bar, matching what
     the stacked nav already does at narrow widths. */
  .primary-nav__link:hover,
  .primary-nav__link:focus-visible { color: var(--brand-700); }
  .primary-nav__link[aria-current="page"],
  .primary-nav__link.is-active { color: var(--brand); }
  .has-sub > .primary-nav__link::after {
    content: "";
    width: 6px; height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
  }
  .subnav {
    position: absolute;
    top: 100%;
    left: calc(var(--sp-4) * -1);
    min-width: 280px;
    list-style: none;
    margin: 0;
    padding: var(--sp-2) 0;
    background: var(--white);
    /* A hairline instead of the old 3px amber cap, which read as a yellow
       underline appearing beneath the hovered link. */
    border: 1px solid var(--steel-100);
    box-shadow: var(--shadow-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  }
  .has-sub:hover .subnav,
  .has-sub:focus-within .subnav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .subnav li { margin: 0; }
  .subnav a {
    display: block;
    padding: var(--sp-2) var(--sp-4);
    font-size: var(--fs-400);
    text-decoration: none;
    color: var(--ink-700);
  }
  .subnav a:hover,
  .subnav a[aria-current="page"] { background: var(--steel-50); color: var(--brand-700); }

  /* Shown from 1024px up. It used to be held back to 1140px, which left laptop
     widths with an inline nav and no quote button in the header at all. */
  .primary-nav__cta {
    display: block;
    flex: none;
    align-self: center;
    margin: 0;
  }
  /* The CTA's compact type and padding now travel with it as .btn--compact,
     declared with the other button variants in section 04. */
}

/* 06 Hero ================================================================ */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Hero parallax.

   The photograph drifts at a fraction of the page's scroll rate so the hero
   has some depth behind the copy. Deliberately small: the image travels
   --hero-parallax (7% of the hero's own height) either side of centre, so on a
   560px hero that is about 39px from one end of the scroll to the other. The
   intent is that it reads as depth and is never noticed as movement — this is
   a contractor's site, not a showreel.

   Everything is gated behind .is-parallax, which site.js adds only after it has
   checked for reduced motion and for a viewport at least 900px wide (the same
   breakpoint at which the hero becomes a tall centred panel). With the class
   absent — no JavaScript, reduced motion asked for, or a phone — this is the
   plain inset-0 cover it has always been, so neither the crop nor the contrast
   of the heading over it depends on the effect having run.

   The overscan is what makes the drift safe: the box grows by the travel
   distance top and bottom, so the translated image can never pull its own edge
   into view over the dark panel underneath. .hero already clips it. */
.hero__media.is-parallax {
  /* Half a percent more than the 0.07 site.js actually travels. Sized exactly,
     the two agree to the float and the image's edge lands on the hero's edge,
     which measured as a -0.01px gap at the extremes of the scroll — invisible,
     but it means the effect has no headroom at all. The margin makes "the edge
     can never come into view" true by construction rather than by rounding. */
  --hero-parallax: 7.5%;
  top: calc(var(--hero-parallax) * -1);
  bottom: calc(var(--hero-parallax) * -1);
  /* site.js writes nothing but a transform each frame, so the drift stays on
     the compositor and costs no layout or paint. */
  will-change: transform;
}

/* A last line of defence. site.js checks the same query before it ever adds the
   class, but if the preference is switched on mid-session in a browser that
   does not report the change, the hero still stops dead rather than keeping a
   leftover offset: the overscan is given back and the transform dropped. */
@media (prefers-reduced-motion: reduce) {
  .hero__media.is-parallax {
    top: 0;
    bottom: 0;
    transform: none !important;
    will-change: auto;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(103deg, rgba(16, 22, 30, 0.94) 0%, rgba(16, 22, 30, 0.82) 42%, rgba(16, 22, 30, 0.42) 78%, rgba(16, 22, 30, 0.28) 100%);
}

/* .hero__inner is itself the .wrap, so capping it centred the whole hero and
   left the copy out of line with the stat rail, the breadcrumbs and every
   section below. Cap the children instead: the container stays a normal wrap
   and the copy starts on the same left edge as the rest of the page. */
.hero__inner {
  padding-block: var(--sp-8);
}

.hero__inner > * { max-width: 720px; }

@media (min-width: 900px) {
  .hero__inner { padding-block: var(--sp-9); min-height: 460px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
}

/* A little more room for the h1 once the wrap starts growing, so headings like
   "DRILLING AND PILING CONTRACTORS IN MELBOURNE" set in three lines instead of
   four. Still well inside the dark end of the hero gradient. */
@media (min-width: 1280px) {
  .hero__inner > * { max-width: 860px; }
}

.hero h1 {
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.015em;
}

.hero__lead {
  font-size: var(--fs-600);
  color: var(--steel-200);
  max-width: 58ch;
}

.hero__actions { margin-top: var(--sp-6); }

.hero--compact .hero__inner { padding-block: var(--sp-7); }
@media (min-width: 900px) {
  .hero--compact .hero__inner { min-height: 340px; padding-block: var(--sp-8); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-300);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

/* Each eyebrow leads with a topic icon chosen in build.py (EYEBROW_ICONS). */
.eyebrow__icon {
  display: inline-flex;
  flex: none;
  color: var(--amber);
}
.eyebrow__icon svg { display: block; fill: currentColor; }

.eyebrow--dark { color: var(--brand); }
.eyebrow--dark .eyebrow__icon { color: var(--amber); }

/* Hero stat rail.

   A band of its own directly under the hero, not a panel floating on the
   photograph. Translucent dark over a photo left the figures sitting on
   whatever happened to be in the image — sky on one page, a rig on another —
   and on a phone the picture also showed through the gutters either side of
   the strip. The surface is the Access Piling blue instead: a solid colour,
   never an image and never a gradient, so the band reads as one deliberate
   block of brand under the hero and the figures sit at a fixed 7.4:1 on every
   page and at every width.

   Same bleed construction as .specs-band: .hero-rail is the full-width element
   and carries the surface and the rules, the grid inside sits in a nested
   .wrap so the figures line up with every heading on the page. No 100vw
   anywhere, so a classic scrollbar cannot push the page sideways. */
.hero-rail {
  background: var(--brand);
}

.hero-rail__grid {
  display: grid;
  gap: 1px;
  /* Shows through the 1px gaps as the dividers between the figures. On the
     blue surface the rule is a lightened brand tint rather than --rule. */
  background: rgba(255, 255, 255, 0.22);
}

@media (min-width: 640px) {
  .hero-rail__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.hero-rail__item {
  background: var(--brand);
  padding: var(--sp-4);
  /* Makes the item the sizing context for the figure inside it, so the figure
     can cap itself against the column it actually got rather than against the
     viewport. The column narrows for reasons a media query cannot see — three
     up at 640px is 149px once a visitor raises their browser's base font —
     and that is exactly when a figure would otherwise break. */
  container-type: inline-size;
}

@media (min-width: 700px) {
  .hero-rail__item { padding: var(--sp-5) var(--sp-6); }
}

/* The figure is the thing the band exists for, so it carries the weight: the
   display face at its heaviest, well clear of the label under it.

   The figure is a single text node — the count-up in site.js rewrites the whole
   string each frame rather than a span inside it, so there is no inner element
   here to style and none that could be put on a line of its own. tabular-nums
   fixes every digit to the same width, which is what stops the count from
   nudging the text either side of it as the numbers climb. Nothing here depends
   on the animation having run: with JavaScript off the final figure is the
   markup, and reduced motion is handled in site.js by skipping it outright.

   A figure is one value, so it never breaks. "Est. 1989" and "8t to 30t" both
   contain spaces, and a column narrow enough to wrap there turns the band into
   "Est." above "1989", or "8t" / "to" / "30t" stacked — three fragments that
   read as three numbers. nowrap rules that out; the size cap below is what
   keeps the unbroken figure inside its column. */
.hero-rail__figure {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-800);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  white-space: nowrap;
}

/* The widest figure the rail carries, "8 services", measures 4.4x its font
   size, so 22cqi of the column is the largest type that still fits on one
   line. min() holds the token until the column gets tight and takes the cap
   only then, so at every normal width the figure is exactly the size it has
   always been. cqi tracks the column itself, which is what a media query
   cannot do: three up at 640px with the base font raised to 150% leaves each
   column 149px, and the figure shrinks to fit rather than breaking. Separate
   rule, not a second declaration in the block above, so a browser without
   container units drops only this and keeps the token. */
.hero-rail__figure { font-size: min(var(--fs-800), 22cqi); }

@media (min-width: 1024px) {
  .hero-rail__figure { font-size: var(--fs-900); }
  .hero-rail__figure { font-size: min(var(--fs-900), 22cqi); }
}

.hero-rail__label {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-300);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  /* 5.2:1 on --brand — quieter than the figure, still AA at this size. */
  color: rgba(255, 255, 255, 0.78);
}

/* 07 Sections & headings ================================================= */

.section-head {
  max-width: 68ch;
  margin-bottom: var(--sp-6);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .eyebrow { justify-content: center; }

.section-head h2 { text-transform: uppercase; }

.lead {
  font-size: var(--fs-600);
  color: var(--text-muted);
}

.section--dark .lead { color: var(--steel-400); }

.rule-top {
  border-top: 4px solid var(--amber);
  padding-top: var(--sp-5);
}

/* 08 Cards & grids ======================================================= */

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--steel-400);
  box-shadow: var(--shadow-1);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--steel-100);
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card__media img { transform: scale(1.04); }

.card__index {
  position: absolute;
  left: 0;
  bottom: 0;
  min-width: 46px;
  padding: var(--sp-2) var(--sp-3);
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--fs-400);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--sp-5);
  gap: var(--sp-3);
}

.card__body h3 {
  margin: 0;
  font-size: var(--fs-600);
  text-transform: uppercase;
  letter-spacing: 0;
}

.card__body p {
  margin: 0;
  font-size: var(--fs-400);
  color: var(--text-muted);
}

.card__body .link-arrow { margin-top: auto; padding-top: var(--sp-2); }

.card--flat {
  background: var(--steel-50);
  border-color: transparent;
  border-left: 4px solid var(--brand);
}
.card--flat:hover { box-shadow: none; border-color: transparent; border-left-color: var(--amber); }

.card--dark {
  background: var(--ink-800);
  border-color: var(--ink-700);
}
.card--dark h3 { color: var(--white); }
.card--dark p { color: var(--steel-400); }

/* Feature tile with icon */
.feature {
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--brand);
}
.feature h3 {
  font-size: var(--fs-600);
  text-transform: uppercase;
}
.feature p { margin: 0; color: var(--text-muted); font-size: var(--fs-400); }

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--sp-4);
  background: var(--brand-100);
  color: var(--brand);
}
.feature__icon svg { fill: currentColor; }

/* 09 Spec strip / stats ================================================== */

/* The strip reads as a band across the page, so the card surface runs to both
   viewport edges rather than stopping at the content column. .specs-band is a
   full-width sibling of the section head and carries the surface and the two
   horizontal rules; the grid inside sits in a nested .wrap, so the figures stay
   on the same left and right edges as every heading, paragraph and card above
   it. No 100vw anywhere, so a classic scrollbar cannot push the page sideways. */
.specs-band {
  background: var(--white);
  border-block: 1px solid var(--rule);
}

.specs {
  display: grid;
  gap: 1px;
  /* Shows through the 1px gaps as the dividers between cards. The outer frame
     lives on .specs-band instead, which is what lets the surface bleed. */
  background: var(--rule);
}

@media (min-width: 640px) {
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .specs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Four across needs roughly 270px a card. Going four up at 900px left each card
   208px wide, so every figure broke mid-value ("300 –" above "1800 mm") and the
   row ended up a ragged 180px to 233px tall. Two across holds until 1140px. */
@media (min-width: 1140px) {
  .specs--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.spec {
  background: var(--white);
  padding: var(--sp-5);
  /* Same construction as .hero-rail__item: the card is the sizing context for
     the figure inside it, so the figure caps itself against the column it
     actually got rather than against the viewport. The column narrows for
     reasons a media query cannot see — a visitor raising their browser's base
     font leaves the card the same width and doubles the type — and that is
     exactly when a figure would otherwise break. */
  container-type: inline-size;
}

/* A figure is one value, so it never breaks: "300 – 1800 mm" split across two
   lines reads as two measurements, and "8 services" as a count with a stray
   word under it. nowrap rules that out and the cap below is what keeps the
   unbroken figure inside its card. */
.spec b {
  display: block;
  font-family: var(--font-display);
  /* The figure is a measurement, so it has to stay on one line. --fs-800 steps
     up to 34px at 900px, wider than any multi-column card can hold, so the
     figure carries its own size instead of following the token. */
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--brand);
  letter-spacing: 0.005em;
  white-space: nowrap;
}

/* The widest figure the bands carry, "Tungsten carbide", measures 7.6x its font
   size, so 13cqi of the card is the largest type that still fits it on one
   line. min() holds the token until the card gets tight and takes the cap only
   then, so at every normal width the figure is exactly the size it has always
   been. Separate rule, not a second declaration in the block above, so a
   browser without container units drops only this and keeps the token. */
.spec b { font-size: min(1.875rem, 13cqi); }

/* Narrowest cards in the multi-column bands are 229px (three up at 900px) and
   221px (four up at 1140px). At 28px the longest figure on the site, "Tungsten
   carbide", measures 212px and still fits both. */
@media (min-width: 900px) {
  .specs--3 .spec b { font-size: 1.75rem; }
  .specs--3 .spec b { font-size: min(1.75rem, 13cqi); }
}
@media (min-width: 1140px) {
  .specs--4 .spec b { font-size: 1.75rem; }
  .specs--4 .spec b { font-size: min(1.75rem, 13cqi); }
}

.spec span {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-400);
  color: var(--text-muted);
}

.section--dark .specs-band {
  background: var(--ink-800);
  border-block-color: var(--ink-700);
}
.section--dark .specs { background: var(--ink-700); }
.section--dark .spec { background: var(--ink-800); }
.section--dark .spec b { color: var(--amber); }
.section--dark .spec span { color: var(--steel-400); }

/* 10 Process steps ======================================================= */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-5);
  counter-reset: step;
}

@media (min-width: 700px) {
  .steps--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .steps--row { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-4); }
  .steps--row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.step {
  counter-increment: step;
  margin: 0;
  padding-top: var(--sp-4);
  border-top: 3px solid var(--steel-200);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-700);
  font-weight: 800;
  color: var(--amber);
  letter-spacing: 0.04em;
}

.step h3 {
  font-size: var(--fs-500);
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.step p {
  margin: 0;
  font-size: var(--fs-400);
  color: var(--text-muted);
}

.section--dark .step { border-top-color: var(--ink-700); }
.section--dark .step p { color: var(--steel-400); }

/* Checklist */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: var(--sp-3);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 11px;
  height: 11px;
  background: var(--amber);
  transform: rotate(45deg);
}

.checklist--tight li { margin-bottom: var(--sp-2); font-size: var(--fs-400); }

/* 11 Media & figures ===================================================== */

.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--steel-100);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-frame--tall img { aspect-ratio: 3 / 4; }
.media-frame--wide img { aspect-ratio: 16 / 9; }
.media-frame--auto img { aspect-ratio: auto; }

.media-frame::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 92px;
  height: 6px;
  background: var(--amber);
}

figure { margin: 0; }

figcaption {
  margin-top: var(--sp-2);
  font-size: var(--fs-300);
  color: var(--text-muted);
}

.gallery {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* 12 Service areas ======================================================= */

.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.area-list li { margin: 0; }

.area-list span,
.area-list a {
  display: inline-block;
  padding: var(--sp-2) var(--sp-4);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: var(--fs-400);
  color: var(--ink-700);
  text-decoration: none;
}

.area-list a:hover { border-color: var(--brand); color: var(--brand-700); }

.section--dark .area-list span,
.section--dark .area-list a {
  background: var(--ink-800);
  border-color: var(--ink-700);
  color: var(--steel-200);
}

.region-block {
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--rule);
}
.region-block h3 {
  font-size: var(--fs-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-3);
}

/* 13 Call-to-action bands ================================================ */

/* The band above the footer. No project photograph in images/ reads cleanly
   behind this much text at mobile widths, so it is a flat brand blue rather
   than a photo or the amber hatch pattern it used to carry. Measured against
   #24417f: white heading 9.8:1, body copy 7.9:1, amber button 4.7:1 and the
   ghost button's border 4.2:1 — all past WCAG AA. */
.cta-band {
  background: var(--brand-700);
  color: var(--white);
}

.cta-band__inner {
  display: grid;
  gap: var(--sp-5);
  padding-block: var(--sp-7);
  align-items: center;
}

@media (min-width: 900px) {
  .cta-band__inner {
    grid-template-columns: 1.4fr auto;
    gap: var(--sp-8);
    padding-block: var(--sp-8);
  }
}

.cta-band h2 {
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 60ch;
}

.callout {
  padding: var(--sp-5);
  background: var(--brand-100);
  border-left: 4px solid var(--brand);
}
.callout p:last-child { margin-bottom: 0; }

/* 14 Forms =============================================================== */

.form-panel {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 5px solid var(--amber);
  padding: var(--sp-5);
}

@media (min-width: 700px) {
  .form-panel { padding: var(--sp-6); }
}

.form-grid {
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 640px) {
  .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; gap: var(--sp-2); }

.field label {
  font-size: var(--fs-400);
  font-weight: 700;
  color: var(--ink);
}

.field .hint {
  font-size: var(--fs-300);
  font-weight: 400;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: var(--control-h);
  padding: var(--sp-3);
  font-family: inherit;
  font-size: var(--fs-400);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--steel-400);
  border-radius: var(--radius);
}

.field textarea { min-height: 140px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #b3261e;
  background: #fff6f5;
}

.field__error {
  font-size: var(--fs-300);
  font-weight: 700;
  color: #b3261e;
  min-height: 0;
}

.form-note {
  font-size: var(--fs-300);
  color: var(--text-muted);
}

.form-status {
  margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border-left: 4px solid var(--brand);
  background: var(--steel-50);
  font-size: var(--fs-400);
}

.form-status[hidden] { display: none; }

/* Honeypot */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 15 Accordion (FAQ) ===================================================== */

.faq {
  border-top: 1px solid var(--rule);
}

.faq__item {
  border-bottom: 1px solid var(--rule);
}

.faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  font-size: var(--fs-500);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 0.4em;
  /* Rotating a 14px square widens its painted box to ~20px; without this the
     chevron pushed 3px past the summary and scrolled the FAQ sideways. */
  margin-inline-end: 3px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.faq__item[open] summary::after { transform: rotate(-135deg); }

.faq__answer {
  padding-bottom: var(--sp-5);
  color: var(--text-muted);
  max-width: 72ch;
}

/* 16 Footer ============================================================== */

.site-footer {
  background: var(--ink);
  color: var(--steel-400);
  font-size: var(--fs-400);
}

.site-footer__top {
  display: grid;
  gap: var(--sp-6);
  padding-block: var(--sp-7);
  /* Columns of different lengths start on one line rather than stretching to
     the tallest, so the four headings always sit on the same baseline. */
  align-items: start;
}

/* The three link columns are a grid of their own rather than three cells of
   the footer's.

   As four equal cells in a two-up grid, the brand was paired with Services and
   the row took its height from that eight-item list, which left a column of
   dead space under the brand at every tablet width. Grouped, the brand takes a
   full row of its own there and the lists read as the set of three they are —
   which is also how they are arranged on a wide screen, so the two layouts are
   now the same idea at two sizes instead of two different ones. */
.site-footer__cols {
  display: grid;
  gap: var(--sp-6);
}

@media (min-width: 480px) {
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 700px) {
  .site-footer__top { padding-block: var(--sp-8); }
  .site-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
}

/* Brand left, the three lists sharing the rest. The inner tracks are the ones
   the flat four-column grid used (1 / 1 / 1.1), so the lists land on the same
   edges as before and Contact keeps the extra width its two-line hours value
   needs. */
@media (min-width: 1000px) {
  .site-footer__top { grid-template-columns: minmax(0, 1.3fr) minmax(0, 3.2fr); gap: var(--sp-7); }
  .site-footer__cols { grid-template-columns: 1fr 1fr 1.1fr; gap: var(--sp-7); }
}

.site-footer h2,
.site-footer h3 {
  font-size: var(--fs-300);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--sp-4);
}

.site-footer a { color: var(--steel-200); text-decoration: none; }
.site-footer a:hover { color: var(--amber); text-decoration: underline; }

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--sp-2); }

/* On a phone the footer links are the only thing to aim at, so each one takes
   its whole row rather than just the width of its text. The margin is given
   back to the padding, which turns a 26px-tall, text-width target into a
   42px-tall one spanning the column, for 8px of extra pitch per link. Scoped
   to the narrow range: the desktop columns keep their tighter rhythm, where
   the pointer is precise and the vertical space is worth more. */
@media (max-width: 699px) {
  .site-footer__cols li { margin-bottom: 0; }
  .site-footer__cols li a {
    display: block;
    padding-block: var(--sp-2);
  }
}

/* The wordmark replaces the footer's company-name heading rather than sitting
   above it, so the name is not set twice in the same column; the alt text keeps
   the h2 readable to screen readers and search engines.

   It sits on a white plate because the logotype is drawn for light backgrounds:
   its blue core (#3253a2) is only 2.5:1 against --ink, and the white bevel it
   relies on is a 1px edge. On the plate it renders exactly as it does in the
   header, at the header's full contrast, instead of half-dissolving. */
.footer-brand__mark {
  display: inline-block;
  /* Unsets the uppercase/letterspacing .site-footer h2 carries: the content is
     an image, and those would only affect the alt text if it ever stood in. */
  letter-spacing: normal;
  text-transform: none;
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--sp-3);
  /* .site-footer h2 already supplies margin-bottom: var(--sp-4). */
}

.footer-brand__mark img {
  display: block;
  /* A step under the header's 188px: the footer mark is a sign-off, not the
     navigation anchor. max-width keeps it inside the plate at 320px, where the
     content column is 288px and the padding takes 24px of it. */
  width: 168px;
  max-width: 100%;
  height: auto;
}

@media (min-width: 1000px) {
  .footer-brand__mark img { width: 188px; }
}

/* The sign-off is body copy, not a label, so it takes the brighter of the two
   footer greys: --steel-200 reads 11.6:1 on --ink where the footer's base
   --steel-400 gives 5.9:1. The quiet grey stays where it belongs — the contact
   labels and the legal line. */
.footer-brand p { max-width: 42ch; color: var(--steel-200); }

/* The one outbound prompt in the footer, amber so it reads as a prompt rather
   than as another list item. It used to carry that colour as an inline style
   written by build.py; as a class it survives a token change and keeps the
   generated markup free of presentation. The selector has to out-specify
   `.site-footer a`, hence the ancestor. */
.site-footer .footer-brand__link,
.site-footer .footer-brand__link:hover { color: var(--amber); }

.site-footer__bottom {
  border-top: 1px solid var(--ink-700);
  padding-block: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-300);
}

.site-footer__bottom p { margin: 0; }

.contact-list {
  display: grid;
  gap: var(--sp-3);
}

.contact-list dt {
  font-size: var(--fs-300);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-400);
}

.contact-list dd {
  margin: 0;
  color: var(--steel-200);
}

.contact-list dd a { font-weight: 700; color: var(--white); }

/* 17 Tables ============================================================== */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rule);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-400);
  min-width: 480px;
}

caption {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-300);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text-muted);
  background: var(--steel-50);
  border-bottom: 1px solid var(--rule);
}

th, td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

thead th {
  background: var(--ink);
  color: var(--white);
  font-size: var(--fs-300);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

tbody tr:nth-child(even) { background: var(--steel-50); }
tbody tr:last-child td { border-bottom: 0; }

/* Below 700px a 3-column table could not fit: `min-width: 480px` forced the
   .table-wrap to scroll sideways and the last column sat off-screen. Each row
   becomes a card instead, with the column header repeated from the cell's
   data-label. build.py emits those labels (see data_table()).
   `.table--pairs` is the 2-column label/value form, which only needs stacking. */
@media (max-width: 699px) {
  .table-wrap {
    overflow-x: visible;
    border: 0;
  }

  .table-wrap table {
    display: block;
    min-width: 0;
  }

  .table-wrap caption {
    display: block;
    border: 1px solid var(--rule);
    border-bottom: 0;
  }

  .table-wrap thead {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .table-wrap tbody { display: block; }

  .table-wrap tbody tr,
  .table-wrap tbody tr:nth-child(even) {
    display: block;
    padding: var(--sp-4);
    background: var(--white);
    border: 1px solid var(--rule);
    border-top-width: 3px;
    border-top-color: var(--brand);
  }

  .table-wrap tbody tr + tr { margin-top: var(--sp-3); }

  .table-wrap tbody th,
  .table-wrap tbody td {
    display: block;
    padding: 0;
    border: 0;
  }

  .table-wrap tbody th[scope="row"] {
    font-size: var(--fs-500);
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--ink);
  }

  .table-wrap tbody th + td,
  .table-wrap tbody td + td { margin-top: var(--sp-3); }

  .table-wrap td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: var(--fs-300);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  /* Label/value pairs stay one bordered list rather than a stack of cards. */
  .table-wrap .table--pairs { border: 1px solid var(--rule); }

  .table--pairs tbody tr,
  .table--pairs tbody tr:nth-child(even) {
    padding: var(--sp-3) var(--sp-4);
    border: 0;
    border-bottom: 1px solid var(--rule);
  }

  .table--pairs tbody tr + tr { margin-top: 0; }
  .table--pairs tbody tr:last-child { border-bottom: 0; }

  .table--pairs tbody th[scope="row"] {
    font-size: var(--fs-300);
    letter-spacing: 0.1em;
    color: var(--text-muted);
  }

  .table--pairs tbody th + td { margin-top: var(--sp-1); }
}

/* 18 Breadcrumbs & misc ================================================== */

.breadcrumbs {
  background: var(--steel-50);
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-300);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding-block: var(--sp-3);
}

.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--text-muted); }

.breadcrumbs li + li::before {
  content: "/";
  color: var(--steel-400);
}

.breadcrumbs a { color: var(--ink-700); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-700); text-decoration: underline; }

.tag {
  display: inline-block;
  padding: 2px var(--sp-2);
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: var(--fs-300);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-404 {
  text-align: center;
  padding-block: var(--sp-9);
}

.service-nav {
  display: grid;
  gap: var(--sp-3);
}

@media (min-width: 700px) {
  .service-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Name left, arrow right on one row. The tile no longer stacks a "Service"
   kicker above the name — seven of those down the grid read as seven repeated
   headings, and the section heading already names the list (build.py,
   other_services_nav). The arrow is the same inline SVG the detail links carry,
   so the tile keeps an affordance without a second line of type. */
.service-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--white);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}
.service-nav a:hover { border-color: var(--brand); color: var(--brand-700); }

.service-nav__name { min-width: 0; }

/* Quieter than the label until the tile is hovered, where it takes the link
   colour and nudges across exactly like a .link-arrow. */
.service-nav a .link-arrow__icon { color: var(--steel-400); }
.service-nav a:hover .link-arrow__icon,
.service-nav a:focus-visible .link-arrow__icon {
  color: var(--brand-700);
  transform: translateX(4px);
}

/* 19 Motion & print ====================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .utility,
  .site-header,
  .cta-band,
  .form-panel,
  .site-footer__top { display: none; }
  body { font-size: 11pt; color: #000; }
  .hero { background: none; color: #000; }
  .hero::before { display: none; }
  .hero h1 { color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
