/* ==========================================================================
   RAF BUILDING — design tokens
   Palette derived from the RAF Building logo (#1eb2d6 cyan, #1f1f1f black).
   Composition, type roles and motion character follow the observed grammar
   of the reference build: restrained serif display, tracked sans labels,
   hairline rules, generous negative space, quiet transitions.
   ========================================================================== */

:root {
  /* --- colour ------------------------------------------------------------ */
  --ink: #16181a;
  --ink-2: #1f1f1f;
  --text: #2f3438;
  --text-muted: #667075;
  --text-invert: #ffffff;
  --text-invert-muted: #a8b1b5;

  --surface: #ffffff;
  --surface-alt: #f4f6f7;
  --surface-warm: #f6f4f0;
  --charcoal: #1a1c1e;

  --brand: #1eb2d6;
  --brand-ink: #0b7392;

  --line: #dfe4e6;
  --line-strong: #c6cfd2;
  --line-invert: rgba(255, 255, 255, 0.16);

  --focus: #0b7392;

  /* --- type -------------------------------------------------------------- */
  --heading: "Manrope", "Inter", system-ui, -apple-system, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --sans: var(--body);
  /* --serif resolves to the body family so legacy font-family: var(--serif)
     declarations (mobile-nav links, form fields) stay valid and render in
     Inter — matching the type system actually used by the site. */
  --serif: var(--body);

  --fs-display: clamp(2.25rem, 5vw, 4.5rem);
  --fs-h1: clamp(2rem, 4vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 2.5vw, 2.5rem);
  --fs-h3: clamp(1.125rem, 1.5vw, 1.5rem);
  --fs-h4: clamp(1rem, 1.1vw, 1.125rem);
  --fs-lead: clamp(1.0625rem, 1.2vw, 1.1875rem);
  --fs-body: 1rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-label: 0.75rem;

  --lh-display: 1.06;
  --lh-tight: 1.18;
  --lh-snug: 1.4;
  --lh-body: 1.78;

  --ls-display: -0.02em;
  --ls-label: 0.26em;
  --ls-nav: 0.15em;
  --ls-btn: 0.14em;

  /* --- space ------------------------------------------------------------- */
  --gutter: clamp(1.25rem, 4.2vw, 4rem);
  --shell: 1280px;
  --measure: 40rem;
  --section-y: clamp(4rem, 8vw, 7rem);
  --section-y-sm: clamp(3rem, 5vw, 5rem);

  /* --- shape ------------------------------------------------------------- */
  --rule: 1px;
  --radius-chip: 4px;
  --hairline: 1px solid var(--line);

  /* --- motion ------------------------------------------------------------ */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 180ms;
  --dur-2: 280ms;
  --dur-3: 460ms;
  --dur-4: 780ms;

  --header-h: 92px;
}

@media (max-width: 900px) {
  :root { --header-h: 74px; }
}

/* ==========================================================================
   Base
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img { height: auto; }

/* The UA gives figures 1em / 40px margins, which pushed every photograph off
   the grid it sits in. Figures are layout, not prose. */
figure { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--heading);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.75rem;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--ls-display); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-tight); letter-spacing: var(--ls-display); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-snug); }

p { margin: 0; }
p + p { margin-top: 1.15em; }

a { color: inherit; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; }

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

::selection { background: var(--brand); color: var(--ink); }

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  padding: 0.85rem 1.5rem;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  text-decoration: none;
  transition: transform var(--dur-2) var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

.visually-hidden,
.sr-only {
  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;
}

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow { max-width: 1040px; }
.shell--wide { max-width: 1680px; }

.section { padding-block: var(--section-y); }
.section--sm { padding-block: var(--section-y-sm); }
.section--alt { background: var(--surface-alt); }
.section--warm { background: var(--surface-warm); }
.section--dark { background: var(--charcoal); color: var(--text-invert-muted); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--text-invert); }

/* `.grid` used to be declared here as a 12-column layout grid. Nothing in any
   page, template or script uses it — and where it did collide with the generic
   `.grid { display: grid }` rule further down, it silently forced 12 columns
   onto unrelated content. Removed rather than left as a trap. */

.measure { max-width: var(--measure); }

/* ==========================================================================
   Type components
   ========================================================================== */

.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  line-height: 1;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin: 0;
}
.eyebrow--muted { color: var(--text-muted); }
.eyebrow--light { color: rgba(255, 255, 255, 0.86); }

/* Reference detail: tracked label justified across its measure. */
.eyebrow--spread {
  text-align: justify;
  text-align-last: justify;
  width: min(100%, 30rem);
}

.rule {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--brand);
  border: 0;
  margin: 1.5rem 0 0;
}
.rule--light { background: rgba(255, 255, 255, 0.7); }
.rule--center { margin-inline: auto; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.68;
  color: var(--text);
}
.section--dark .lead { color: var(--text-invert-muted); }

.muted { color: var(--text-muted); }

.section-head { max-width: 46rem; }
.section-head .rule { margin-top: 1.75rem; }
.section-head h2 { margin-top: 1.75rem; }
.section-head p { margin-top: 1.5rem; color: var(--text-muted); }
/* Dark sections must use the inverted palette: the light-background grey
   (#667075) only reaches 3.4:1 on charcoal, and it also beats the
   .eyebrow--light rule on specificity. */
.section--dark .section-head p { color: var(--text-invert-muted); }
.section--dark .section-head .eyebrow--light { color: rgba(255, 255, 255, 0.86); }

.section-head--split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.section-head--split > div { max-width: 46rem; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1.05rem 2.1rem;
  background: var(--ink-2);
  color: #fff;
  border: 1.5px solid var(--ink-2);
  border-radius: 0;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--ls-btn);
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease),
    color var(--dur-2) var(--ease);
}
.btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--ink);
}

.btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.btn--light:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--ink);
}

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

.btn--sm { padding: 0.8rem 1.4rem; font-size: 0.75rem; }

.btn--block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 0.5em;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color var(--dur-2) var(--ease), background-size var(--dur-3) var(--ease);
}
.text-link:hover {
  color: var(--brand-ink);
  background-size: 32% 1px;
}
.text-link--light { color: #fff; }
.text-link--light:hover { color: var(--brand); }

.text-link .arrow {
  display: inline-block;
  transition: transform var(--dur-2) var(--ease);
}
.text-link:hover .arrow { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: clamp(1rem, 1.7vw, 1.6rem);
  color: #fff;
  transition:
    padding var(--dur-3) var(--ease),
    background-color var(--dur-3) var(--ease),
    color var(--dur-3) var(--ease),
    transform var(--dur-2) var(--ease),
    box-shadow var(--dur-3) var(--ease);
}

.site-header.is-solid {
  padding-block: 0.75rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

.site-header.is-hidden { transform: translateY(-104%); }

/* Interior pages open on the light .page-hero rather than the homepage film,
   so a transparent header with white text would sit unreadable on them. Those
   pages are solid from the first paint instead of waiting for the 32px scroll
   threshold, and the state-specific rules below mirror their .is-solid
   counterparts so the result is identical whether or not scripting runs. */
body:not(.page-home) .site-header {
  padding-block: 0.75rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
body:not(.page-home) .site-header:not(.is-solid) .brand img {
  height: 34px;
  filter: none;
}
/* The transparent-header rule below marks the current page in bright brand
   cyan, which only clears 2.5:1 on white; interior pages are white-backed
   even before the class flips, so they use brand-ink there (5.4:1). */
body:not(.page-home) .site-header:not(.is-solid) .nav__link[aria-current="page"] {
  color: var(--brand-ink);
}
body:not(.page-home) .site-header:not(.is-solid) .btn--header {
  background: var(--ink-2);
  border-color: var(--ink-2);
  color: #fff;
}
body:not(.page-home) .site-header:not(.is-solid) .btn--header:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--ink);
}
body:not(.page-home) .site-header:not(.is-solid) .menu-toggle {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--ink);
}
body:not(.page-home) .site-header:not(.is-solid) .menu-toggle:hover {
  background: var(--surface-alt);
}

.site-header__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  margin-left: -0.85rem;
  border-radius: var(--radius-chip);
  background: transparent;
  transition: background-color var(--dur-2) var(--ease);
}
.brand:hover { background: transparent; }
.brand img {
  width: auto;
  height: 34px;
  transition: height var(--dur-3) var(--ease), filter var(--dur-3) var(--ease);
}
/* Larger, legible mark while the header sits over the hero. */
.site-header:not(.is-solid) .brand img {
  height: 46px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
}

/* Past the hero the mark sits directly on the solid header. */
.site-header.is-solid .brand {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header.is-solid .brand:hover { background: transparent; }

/* --- primary nav (desktop) ---------------------------------------------- */

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
}

.nav__link {
  position: relative;
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 0.55rem;
  color: inherit;
  transition: color var(--dur-2) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.15rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-3) var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
/* Brand cyan only clears 2.5:1 on the white solid header, so the current page
   is marked in brand-ink there (5.4:1); over the dark homepage film the
   brighter brand cyan is kept and is the higher-specificity rule. */
.nav__link[aria-current="page"] { color: var(--brand-ink); }
.site-header:not(.is-solid) .nav__link[aria-current="page"] { color: var(--brand); }

.nav__item--has-sub { position: relative; }

.nav__sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: none;
  border: 0;
  padding: 0.55rem 0;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  cursor: pointer;
  color: inherit;
}
.nav__sub-toggle::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--dur-2) var(--ease);
}
.nav__sub-toggle[aria-expanded="true"]::after { transform: rotate(225deg) translateY(-2px); }

.nav__sub {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: -1.25rem;
  min-width: 16rem;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius-chip);
  box-shadow:
    0 2px 4px rgba(16, 20, 22, 0.04),
    0 24px 48px -16px rgba(16, 20, 22, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px) scale(0.96);
  transform-origin: top left;
  pointer-events: none;
  z-index: 200;
  transition:
    opacity var(--dur-2) var(--ease),
    transform var(--dur-3) var(--ease),
    visibility var(--dur-2);
}
.nav__sub.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Staggered entrance for the dropdown items. */
.nav__sub li {
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity var(--dur-2) var(--ease),
    transform var(--dur-2) var(--ease);
}
.nav__sub.is-open li {
  opacity: 1;
  transform: translateY(0);
}
.nav__sub.is-open li:nth-child(1) { transition-delay: 40ms; }
.nav__sub.is-open li:nth-child(2) { transition-delay: 70ms; }
.nav__sub.is-open li:nth-child(3) { transition-delay: 100ms; }
.nav__sub.is-open li:nth-child(4) { transition-delay: 130ms; }
.nav__sub.is-open li:nth-child(5) { transition-delay: 160ms; }
.nav__sub.is-open li:nth-child(6) { transition-delay: 190ms; }
.nav__sub.is-open li:nth-child(7) { transition-delay: 220ms; }
.nav__sub.is-open li:nth-child(8) { transition-delay: 250ms; }

.nav__sub a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  border-radius: calc(var(--radius-chip) - 1px);
  position: relative;
  transition:
    background-color var(--dur-1) var(--ease),
    color var(--dur-1) var(--ease),
    transform var(--dur-1) var(--ease);
}
.nav__sub a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--brand);
  border-bottom: 1.5px solid var(--brand);
  transform: rotate(-45deg);
  opacity: 0.7;
  transition: transform var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease);
}
.nav__sub a:hover {
  background: var(--brand);
  color: var(--ink);
  transform: translateX(2px);
}
.nav__sub a:hover::before {
  transform: rotate(-45deg) translateX(2px);
  opacity: 1;
  border-color: var(--ink);
}

/* --- header actions ------------------------------------------------------ */

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
}

.header-phone {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-2) var(--ease);
}
.header-phone:hover { color: var(--brand); }

.site-header .btn--header {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.site-header .btn--header:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--ink);
}
.site-header.is-solid .btn--header {
  background: var(--ink-2);
  border-color: var(--ink-2);
  color: #fff;
}
.site-header.is-solid .btn--header:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--ink);
}

/* --- menu toggle (mobile) ------------------------------------------------ */

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem;
  /* Interior heroes are light, so a translucent chip has to be dark enough
     for the white label to clear 4.5:1 against them. */
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 0;
  border-radius: var(--radius-chip);
  cursor: pointer;
  color: #fff;
  transition: background-color var(--dur-2) var(--ease);
}
.menu-toggle:hover { background: rgba(0, 0, 0, 0.68); }
.site-header.is-solid .menu-toggle {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--ink);
}
.site-header.is-solid .menu-toggle:hover { background: var(--surface-alt); }

.menu-toggle__icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}
.menu-toggle__icon span {
  display: block;
  height: 1px;
  width: 100%;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease), opacity var(--dur-1) var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.menu-toggle__label {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .nav,
  .header-phone,
  .btn--header { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ==========================================================================
   Mobile navigation panel
   ========================================================================== */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  background: var(--charcoal);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1.5%);
  transition:
    opacity var(--dur-3) var(--ease),
    transform var(--dur-3) var(--ease),
    visibility var(--dur-3);
}
.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 4vw, 1.6rem) var(--gutter);
  border-bottom: 1px solid var(--line-invert);
}
.mobile-nav__brand {
  display: inline-flex;
  padding: 0.5rem 0.85rem;
  background: #fff;
  border-radius: var(--radius-chip);
}
.mobile-nav__brand img { height: 30px; width: auto; }

.mobile-nav__close {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: var(--radius-chip);
  color: #fff;
  cursor: pointer;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  transition: background-color var(--dur-2) var(--ease);
}
.mobile-nav__close:hover { background: rgba(255, 255, 255, 0.16); }

.mobile-nav__body {
  flex: 1;
  overflow-y: auto;
  padding: clamp(1.75rem, 5vw, 3rem) var(--gutter) clamp(2rem, 6vw, 3.5rem);
  -webkit-overflow-scrolling: touch;
}

.mobile-nav__list > li { border-bottom: 1px solid var(--line-invert); }

.mobile-nav__list > li > a,
.mobile-nav__label {
  display: block;
  padding: 1.05rem 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 6vw, 2rem);
  line-height: 1.2;
  text-decoration: none;
  color: #fff;
}
.mobile-nav__label {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-invert-muted);
  padding-bottom: 0.5rem;
}

.mobile-nav__sub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.15rem 1.5rem;
  padding-bottom: 1.1rem;
}
.mobile-nav__sub a {
  display: block;
  padding: 0.5rem 0;
  font-family: var(--sans);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text-invert-muted);
  transition: color var(--dur-2) var(--ease);
}
.mobile-nav__sub a:hover { color: var(--brand); }

.mobile-nav__foot {
  margin-top: clamp(2rem, 6vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.mobile-nav__foot a:not(.btn) {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--text-invert-muted);
}
.mobile-nav__foot a:not(.btn):hover { color: #fff; }

body.nav-open { overflow: hidden; }

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

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 620px;
  /* min-height, not height: the hero column is taller than a phone viewport,
     and a fixed height with overflow:hidden clipped the bottom of it — the
     stats and CTA were unreachable on mobile. The hero now fills the viewport
     when the content is short and grows when it is not. */
  min-height: 100svh;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

/* Only while the content is guaranteed to fit. Below 761px it does not, so
   capping there would reintroduce the clipping this rule exists to avoid. */
@media (min-width: 761px) {
  .hero { max-height: 1080px; }
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  will-change: transform;
  animation: hero-camera 8s var(--ease) infinite alternate;
  transition: transform 0.6s var(--ease);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
  /* Static still: animating it caused a visible jump/glitch when the
     background film took over, so the push-in is left to the film itself. */
  transition: opacity var(--dur-3) var(--ease);
}

/* Sits above the still, which stays in the DOM as the fallback layer. */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
  background: transparent;
  z-index: 1;
}
/* Only once the film is actually running does it take over from the still,
   fading the still out so the two layers never flash against each other. */
.hero.has-video .hero__media img {
  opacity: 0;
  animation: none;
}

@keyframes ken-burns {
  from { transform: scale(1.03); }
  to   { transform: scale(1.11); }
}

@keyframes hero-camera {
  0%   { transform: scale(1.00) translate3d(0, 0, 0); }
  50%  { transform: scale(1.03) translate3d(0, -1%, 0); }
  100% { transform: scale(1.05) translate3d(0, -2%, 0); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Lightened so the film reads: the centre band still carries enough density
     for the headline and labels to clear the brightest frames of the footage,
     but the top and bottom are lifted well clear of it because the header and
     the footer labels have contrast to spare. Measured against every frame of
     the film at 390/816/1440 — the worst pixel behind the smallest 11px label
     is what sets this density; lifting it further does not hold AA. */
  background:
    radial-gradient(78% 64% at 50% 46%, rgba(10, 12, 14, 0.52) 0%, rgba(10, 12, 14, 0.3) 52%, rgba(10, 12, 14, 0.05) 86%),
    linear-gradient(180deg, rgba(10, 12, 14, 0.5) 0%, rgba(10, 12, 14, 0.26) 40%, rgba(10, 12, 14, 0.35) 70%, rgba(10, 12, 14, 0.64) 100%);
}

.hero__content {
  position: relative;
  width: 100%;
  max-width: 60rem;
  /* .hero is a flex row — without this the block hugs the left edge and only
     the text inside it centres. This centres the whole column in the viewport. */
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: calc(var(--header-h) + 2rem) clamp(3.5rem, 7vh, 5.5rem);
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .eyebrow--light {
  /* Full white over footage: at 0.86 the label's own dimming is what forced a
     darker scrim behind it. Size and tracking already set it apart. */
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 2px 16px rgba(0, 0, 0, 0.5);
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.875rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-top: 1.5rem;
  /* 20ch wrapped this headline into five lines once it was centred. 26ch keeps
     it at three on desktop and lets text-wrap: balance even the last line. */
  max-width: 26ch;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 4px 28px rgba(0, 0, 0, 0.4);
}

.hero__lead {
  margin-top: 1.5rem;
  max-width: 40rem;
  /* Centred flex item: without this the 40rem measure sits left of centre. */
  margin-inline: auto;
  /* Deliberately ≥24px (WCAG "large text"): at 17–21px this line was classed as
     normal text needing 4.5:1, which pinned the overlay to a density that left
     the film looking dim. At 3:1 the whole hero can be lifted. */
  font-size: clamp(1.5rem, 2.2vw, 1.625rem);
  line-height: 1.6;
  /* Pure white, not 95%: over moving footage the full-strength colour is what
     keeps this line at WCAG AA on the brightest frames. */
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 2px 18px rgba(0, 0, 0, 0.5);
}

.hero__actions {
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}

@media (max-width: 760px) {
  .hero { min-height: 560px; }
  .hero__media img { object-position: 56% 50%; }

  /* The hero column runs ~1100px on a 375px phone against a ~667px viewport.
     Type sizes stay where they are — dropping the lead below 24px would move
     it out of WCAG's "large text" band and demand 4.5:1 over moving footage —
     so the space comes out of padding and the stat row instead. */
  .hero__content {
    padding-block: calc(var(--header-h) + 1.25rem) 2.5rem;
  }
  .hero h1 { margin-top: 1.25rem; }
  .hero__lead { margin-top: 1.25rem; }
  .hero__actions { margin-top: 1.5rem; }
}

/* ==========================================================================
   Editorial intro
   ========================================================================== */

.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
}

.intro__aside { position: sticky; top: calc(var(--header-h) + 3rem); }

.intro__statement {
  font-size: clamp(1.5rem, 2.6vw, 2.5rem);
  line-height: 1.32;
  letter-spacing: var(--ls-display);
  color: var(--ink);
  text-wrap: pretty;
}
.intro__statement em {
  font-style: italic;
  color: var(--brand-ink);
}

.intro__body { margin-top: 2rem; max-width: 40rem; color: var(--text-muted); }
.intro__body strong { color: var(--text); font-weight: 700; }

.intro__facts {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  border-top: var(--hairline);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
}
.fact__label {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--brand-ink);
}
.fact__value {
  margin-top: 0.85rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-muted);
}
.fact__value a { color: var(--text); text-decoration-color: var(--line-strong); }

@media (max-width: 860px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__aside { position: static; }
}

/* ==========================================================================
   Services
   ========================================================================== */

.services__layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.services__intro { position: sticky; top: calc(var(--header-h) + 3rem); }
.services__intro h2 { margin-top: 1.75rem; }
.services__intro p { margin-top: 1.5rem; color: var(--text-muted); }
.services__intro .text-link { margin-top: 2rem; }

.services__figure {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  position: relative;
}
.services__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.services__caption {
  margin-top: 0.9rem;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

.service-list { border-top: var(--hairline); }

.service-row {
  border-bottom: var(--hairline);
}
.service-row__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem 2rem;
  align-items: baseline;
  padding-block: clamp(1.5rem, 2.6vw, 2.15rem);
  text-decoration: none;
  transition: background-color var(--dur-2) var(--ease);
}
.service-row__name {
  font-size: clamp(1.375rem, 2.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: var(--ls-display);
  color: var(--ink);
  transition: color var(--dur-2) var(--ease), transform var(--dur-3) var(--ease);
}
.service-row__desc {
  grid-column: 1 / -1;
  max-width: 44rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
}
.service-row__go {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  transition: color var(--dur-2) var(--ease);
}
.service-row__go .arrow { transition: transform var(--dur-3) var(--ease); }

.service-row__link:hover .service-row__name,
.service-row__link:focus-visible .service-row__name { color: var(--brand-ink); }
.service-row__link:hover .service-row__go { color: var(--brand-ink); }
.service-row__link:hover .service-row__go .arrow { transform: translateX(6px); }

@media (max-width: 960px) {
  .services__layout { grid-template-columns: 1fr; }
  .services__intro { position: static; }
  .services__figure { max-width: 26rem; }
}

@media (max-width: 560px) {
  .service-row__link { grid-template-columns: 1fr; gap: 0.75rem; }
  .service-row__go { justify-self: start; }
}

/* ==========================================================================
   Selected work
   The client's project photography tops out at 500x500, so it is set as an
   editorial contact sheet at or below native resolution rather than used for
   full-bleed placements.
   ========================================================================== */

.work__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.35rem);
}

.work__item {
  position: relative;
  overflow: hidden;
  background: var(--surface-alt);
  aspect-ratio: 1 / 1;
}
.work__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease), filter var(--dur-3) var(--ease);
}
.work__item:hover img { transform: scale(1.045); }

.work__item--quarter { grid-column: span 3; }
.work__item--third { grid-column: span 4; }

.work__label {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.5rem 0.7rem;
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: #fff;
  background: rgba(16, 18, 20, 0.72);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.work__item:hover .work__label,
.work__item:focus-visible .work__label {
  opacity: 1;
  transform: translateY(0);
}

.work__foot {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: var(--hairline);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
}
.work__note { max-width: 36rem; color: var(--text-muted); font-size: var(--fs-sm); }

@media (max-width: 900px) {
  .work__item--quarter,
  .work__item--third { grid-column: span 4; }
}
@media (max-width: 560px) {
  .work__item--quarter,
  .work__item--third { grid-column: span 6; }
  .work__label { opacity: 1; transform: none; }
}

/* ==========================================================================
   Craft / approach
   ========================================================================== */

.craft__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.craft__media { position: relative; }
.craft__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.craft__media--offset { margin-top: clamp(1.5rem, 4vw, 3.5rem); }

.craft__body h2 { margin-top: 1.75rem; }
.craft__body p { margin-top: 1.5rem; color: var(--text-muted); }

.craft__points {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  gap: 0;
  border-top: var(--hairline);
}
.craft__point {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  padding-block: 1.35rem;
  border-bottom: var(--hairline);
}
.craft__point dt {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--brand-ink);
  padding-top: 0.3em;
}
.craft__point dd { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.7; }

@media (max-width: 900px) {
  .craft__grid { grid-template-columns: 1fr; }
  .craft__media--offset { margin-top: 0; }
}

/* ==========================================================================
   About
   ========================================================================== */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.about__body { max-width: 42rem; }
.about__body p { color: var(--text-muted); }
.about__body .lead { color: var(--text); }

.about__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Enquiry
   ========================================================================== */

.enquiry__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.contact-list {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line-invert);
}
.contact-list__item {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line-invert);
  align-items: baseline;
}
.contact-list__label {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--brand);
}
.contact-list__value {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: #fff;
  text-decoration: none;
  /* Long unbroken strings (email addresses) must never push the page wide. */
  overflow-wrap: anywhere;
}
a.contact-list__value { transition: color var(--dur-2) var(--ease); }
a.contact-list__value:hover { color: var(--brand); }
.contact-list__value small {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
  color: var(--text-invert-muted);
}

.form {
  background: #fff;
  color: var(--text);
  padding: clamp(1.75rem, 4vw, 3rem);
}
.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.field { display: block; margin-bottom: clamp(1.15rem, 2vw, 1.5rem); }
.field__label {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
}
.field__control {
  width: 100%;
  padding: 0.9rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  transition: border-color var(--dur-2) var(--ease);
}
.field__control::placeholder { color: #9aa4a8; }
.field__control:hover { border-color: var(--text-muted); }
.field__control:focus {
  outline: none;
  border-color: var(--brand-ink);
  border-bottom-width: 2px;
}
textarea.field__control { min-height: 8.5rem; resize: vertical; }

.field__error {
  display: none;
  margin-top: 0.5rem;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
  color: #b3261e;
}
.field.is-invalid .field__control { border-color: #b3261e; }
.field.is-invalid .field__error { display: block; }

.form__foot {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
.form__note {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 26rem;
}
.form__status {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  line-height: 1.65;
  border-left: 2px solid var(--brand-ink);
  background: var(--surface-alt);
  color: var(--text);
}
.form__status[hidden] { display: none; }
.form__status--error { border-left-color: #b3261e; background: #fdf3f2; }

@media (max-width: 960px) {
  .enquiry__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; gap: 0; }
  /* The label column would leave the email address ~198px wide, which is
     narrower than the address itself, so stack label over value instead. */
  .contact-list__item { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */

.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3.5rem, 8vw, 7rem));
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  background: var(--surface-warm);
  border-bottom: var(--hairline);
}
.page-hero__breadcrumb {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
}
.page-hero__breadcrumb a { text-decoration: none; }
.page-hero__breadcrumb a:hover { color: var(--brand-ink); }
.page-hero h1 {
  margin-top: 1.75rem;
  max-width: 22ch;
  font-size: var(--fs-h1);
}
.page-hero__lead {
  margin-top: 1.75rem;
  max-width: 44rem;
  font-size: var(--fs-lead);
  line-height: 1.66;
  color: var(--text-muted);
}

.page-hero--image {
  padding-bottom: 0;
  background: var(--ink);
}
.page-hero--image .page-hero__inner {
  position: relative;
  z-index: 1;
  color: #fff;
}
.page-hero--image h1 { color: #fff; }
.page-hero--image .page-hero__lead { color: rgba(255, 255, 255, 0.86); }
.page-hero--image .page-hero__breadcrumb { color: rgba(255, 255, 255, 0.7); }
.page-hero--image .page-hero__breadcrumb a:hover { color: var(--brand); }

.page-hero__figure {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  margin-inline: calc(var(--gutter) * -1);
}
.page-hero__figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
@media (max-width: 700px) {
  .page-hero__figure img { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   Prose (service / content pages)
   ========================================================================== */

.prose { max-width: 46rem; }
.prose h2 {
  margin-top: clamp(2.75rem, 5vw, 4rem);
  font-size: clamp(1.375rem, 2vw, 1.875rem);
}
.prose h3 { margin-top: clamp(2rem, 4vw, 2.75rem); }
.prose p { margin-top: 1.35rem; color: var(--text-muted); }
.prose p:first-child { margin-top: 0; }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--brand-ink); text-decoration-color: var(--line-strong); }

.prose ul { margin-top: 1.35rem; display: grid; gap: 0; }
.prose ul li {
  padding: 0.85rem 0;
  padding-left: 1.6rem;
  position: relative;
  border-bottom: var(--hairline);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
}
.prose ul li:first-child { border-top: var(--hairline); }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45em;
  width: 10px;
  height: 1px;
  background: var(--brand);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.content-aside { position: sticky; top: calc(var(--header-h) + 3rem); }

.aside-card {
  border-top: 2px solid var(--brand);
  background: var(--surface-alt);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.aside-card h2,
.aside-card h3 { font-size: var(--fs-h4); margin-bottom: 1rem; }
.aside-card p { font-size: var(--fs-sm); color: var(--text-muted); }
.aside-card .btn { margin-top: 1.5rem; width: 100%; }
.aside-card__list { margin-top: 1.25rem; border-top: var(--hairline); }
.aside-card__list li {
  padding: 0.7rem 0;
  border-bottom: var(--hairline);
  font-family: var(--sans);
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  color: var(--text);
}
.aside-card__list li a { text-decoration: none; display: flex; justify-content: space-between; gap: 1rem; }
.aside-card__list li a:hover { color: var(--brand-ink); }

@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
  .content-aside { position: static; }
}

/* --- service detail image band ------------------------------------------ */

.figure-band { margin-block: clamp(2.5rem, 5vw, 4rem); }
.figure-band img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.figure-band figcaption {
  margin-top: 0.9rem;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-group + .gallery-group { margin-top: clamp(3rem, 6vw, 5rem); }
.gallery-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: var(--hairline);
  padding-bottom: 1.15rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.gallery-group__head h2 { font-size: var(--fs-h3); }
.gallery-group__count {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: clamp(0.5rem, 1.2vw, 1rem);
}
.gallery-grid a {
  display: block;
  overflow: hidden;
  background: var(--surface-alt);
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 700ms var(--ease), opacity var(--dur-2) var(--ease);
}
.gallery-grid a:hover img,
.gallery-grid a:focus-visible img { transform: scale(1.05); opacity: 0.9; }

/* --- lightbox ------------------------------------------------------------ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: rgba(14, 16, 18, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-3) var(--ease), visibility var(--dur-3);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox[hidden] { display: none; }

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(0.85rem, 2vw, 1.35rem) var(--gutter);
  border-bottom: 1px solid var(--line-invert);
  color: #fff;
}
.lightbox__count {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-invert-muted);
}
.lightbox__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.65rem 1.05rem;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: var(--radius-chip);
  color: #fff;
  cursor: pointer;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  transition: background-color var(--dur-2) var(--ease);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox__btn:disabled { opacity: 0.35; cursor: default; }
.lightbox__btn:disabled:hover { background: rgba(255, 255, 255, 0.08); }

.lightbox__stage {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem) var(--gutter);
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ==========================================================================
   Reviews
   ========================================================================== */

.review-list { border-top: var(--hairline); }
.review {
  padding-block: clamp(2rem, 4vw, 3rem);
  border-bottom: var(--hairline);
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.review__quote {
  font-size: clamp(1.125rem, 1.7vw, 1.5rem);
  line-height: 1.62;
  color: var(--ink);
  text-wrap: pretty;
}
.review__quote::before { content: "\201C"; }
.review__quote::after { content: "\201D"; }
.review__meta {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  letter-spacing: 0.03em;
  color: var(--text-muted);
}
.review__meta strong {
  display: block;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.review__source {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--brand-ink);
}

@media (max-width: 760px) {
  .review { grid-template-columns: 1fr; }
}

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

.site-footer {
  /* Padding-top moves to .footer__grid so the film band can sit flush with
     the top edge of the footer rather than inside a gap. */
  padding-top: 0;
  background: #1a1c1e;
  color: #ffffff;
}

/* Full-bleed film band --------------------------------------------------- */
/* Text-free by design: the footer's 11–13px muted copy needs 4.5:1, which
   over moving footage would require an overlay so heavy the film would be
   invisible. Instead the film owns this strip and the copy stays on the solid
   surface below it. Without scripting or with reduced motion the strip is the
   same charcoal as the footer, so it reads as breathing room, not an empty box. */
.footer__film {
  position: relative;
  height: clamp(190px, 26vw, 320px);
  overflow: hidden;
  background: var(--charcoal);
}
.footer__film-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease);
}
/* Only once the film is actually running does it fade up, so a refused or
   failed load never shows a black rectangle. */
.site-footer.has-video .footer__film-video { opacity: 1; }
.footer__film-scrim {
  position: absolute;
  inset: 0;
  /* A light touch over the film — there is no text here to protect — with the
     bottom edge deepened so the frame dissolves into the footer surface
     instead of ending on a hard line. */
  background: linear-gradient(
    180deg,
    rgba(10, 12, 14, 0.34) 0%,
    rgba(10, 12, 14, 0.26) 46%,
    rgba(10, 12, 14, 0.82) 100%
  );
}
.footer__film + .footer__grid { margin-top: clamp(3.5rem, 7vw, 6rem); }

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer__brand-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.15rem;
  background: transparent;
  border-radius: var(--radius-chip);
}
/* The footer sits on a dark surface, so the now-backgroundless (dark) logo
   is recoloured to stay legible without reintroducing a chip behind it. */
.footer__brand-chip img {
  height: 46px;
  width: auto;
  filter: invert(1) hue-rotate(180deg);
}

.footer__blurb {
  margin-top: 1.5rem;
  max-width: 24rem;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--text-invert-muted);
}

.footer__col-title {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.5rem;
}

.footer__links li + li { margin-top: 0.7rem; }
.footer__links a {
  font-size: var(--fs-sm);
  text-decoration: none;
  color: var(--text-invert-muted);
  transition: color var(--dur-2) var(--ease);
}
.footer__links a:hover { color: #fff; }

.footer__contact li + li { margin-top: 1rem; }
.footer__contact a,
.footer__contact span {
  display: block;
  font-size: var(--fs-sm);
  text-decoration: none;
  color: var(--text-invert-muted);
  transition: color var(--dur-2) var(--ease);
}
.footer__contact a:hover { color: var(--brand); }
.footer__contact strong {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.3rem;
}

.footer__bottom {
  max-width: var(--shell);
  margin-inline: auto;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(1.5rem, 3vw, 2rem) var(--gutter) clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line-invert);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}
.footer__bottom a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--dur-2) var(--ease);
}
.footer__bottom a:hover { color: #fff; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.5rem; }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Composition adjustments
   Spacing relationships used by the page templates that are not tied to a
   single component, expressed with the tokens above.
   ========================================================================== */

.intro__note {
  margin-top: 1.75rem;
  max-width: 22rem;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-muted);
}

.work__grid { margin-top: clamp(2.5rem, 5vw, 4rem); }

.about__body h2 + .lead { margin-top: 1.75rem; }
.about__body .lead + p { margin-top: 1.5rem; }

.enquiry__grid h2 + .lead { margin-top: 1.5rem; }

.section-head--split .text-link { margin-bottom: 0.35rem; }

/* The eyebrow opens a section head; it should not inherit the heading gap. */
.section-head .eyebrow:first-child { margin-top: 0; }

/* Blockquote semantics: the quote is a figure, so no browser default margins. */
.review blockquote { margin: 0; }

/* ==========================================================================
   Motion — progressive reveal
   Content is visible by default; hidden state applies only once the
   document is flagged as scripted, and is removed again if the script
   never reports success.
   ========================================================================== */

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--dur-4) var(--ease),
    transform var(--dur-4) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

html.js .hero .reveal { transform: translateY(16px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal,
  html.js .reveal.is-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero__media img { animation: none; }
  /* Never show the film to anyone who asked for reduced motion — script
     also refuses to load it in that case. */
  .hero__video { display: none; }
  .footer__film-video { display: none; }
  .work__item img,
  .gallery-grid img { transition: none; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print ------------------------------------------------------------------- */
@media print {
  .site-header, .mobile-nav, .hero__media, .lightbox, .sticky-cta, .footer__film { display: none !important; }
  body { color: #000; }
}

/* ==========================================================================
   Homepage SEO content helpers
   ========================================================================== */

.hero__stats ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.5rem;
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  padding: 0;
}
.hero__stats li {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  /* Full white, not 82%: this row sits in the lower part of the hero where the
     overlay is lightest, and the tinted version measured 3.65:1 against the
     brightest frames — below AA for 13px text. Weight already separates
     <strong> from the rest, so the tint was carrying no hierarchy. */
  color: #fff;
}
.hero__stats strong { color: #fff; font-weight: 600; }

.section-subtext {
  max-width: 46rem;
  color: var(--text-muted);
  margin-top: 1rem;
  margin-bottom: 2rem;
}
.section--dark .section-subtext { color: var(--text-invert-muted); }

.service-link { display: inline-block; margin-block: 0.75rem; }

/* ==========================================================================
   Service accordion
   ========================================================================== */
.service-accordion { display: grid; gap: 1rem; }
.service-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-chip);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.service-panel.is-open {
  border-color: var(--brand);
  box-shadow: 0 18px 40px -24px rgba(16, 20, 22, 0.22);
}
.service-panel__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  transition: background-color var(--dur-1) var(--ease);
}
.service-panel__toggle:hover { background: var(--surface-alt); }
.service-panel__number {
  font-family: var(--heading);
  font-size: 1.25rem;
  font-weight: 800;
  /* --brand at 0.5 opacity blended to #8ed8ea on white: a 1.57:1 index label,
     well under the 3:1 this 20px bold text needs. --brand-ink holds 5.41:1 on
     white and 4.99:1 on the toggle's hover surface, so it passes either way. */
  color: var(--brand-ink);
}
.service-panel__title {
  flex: 1;
  font-family: var(--heading);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--ink);
}
.service-panel__icon {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--brand);
  transition: transform var(--dur-2) var(--ease);
}
.service-panel.is-open .service-panel__icon { transform: rotate(45deg); }
.service-panel__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-3) var(--ease);
}
.service-panel.is-open .service-panel__body { max-height: 1400px; }
.service-panel__content { padding: 0 1.5rem 1.5rem; }
/* The service name is already announced by the toggle button, so this heading
   must not be drawn. But `display: none` also removed it from the document
   outline, leaving H2 → H4 ("Sub-Services Offered:") and failing axe's
   heading-order rule. Visually-hidden keeps it in the outline and gives
   screen-reader users a jump target for each answer, at zero visual cost. */
.service-panel__content h3,
.faq-panel__content h3 {
  position: absolute;
  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;
}

.key-facts-box {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--surface-alt);
  border-left: 3px solid var(--brand);
}
.key-facts-box h3 { margin-bottom: 0.75rem; }
.key-facts-box ul { padding-left: 1.25rem; list-style: disc; }
.key-facts-box li { margin-bottom: 0.4rem; }

.gallery-grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.gallery-item { margin: 0; }
.gallery-item { overflow: hidden; }
.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform var(--dur-3) var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption { margin-top: 0.5rem; font-family: var(--sans); font-size: var(--fs-xs); color: var(--text-muted); }

.reviews-grid { display: grid; gap: 1.5rem; }
@media (min-width: 960px) {
  .reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
}
.reviews-summary__meta { flex: 1; min-width: 0; }
.reviews-summary__score {
  font-family: var(--heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  /* --brand on this band measured 2.31:1 — under the 3:1 required even at
     48px. --brand-ink brings it to 4.99:1 without changing the hue family. */
  color: var(--brand-ink);
}
.reviews-summary__stars {
  color: var(--brand);
  letter-spacing: 0.1em;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}
.reviews-summary__text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.review-card {
  position: relative;
  padding: 2rem 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.review-card::before {
  content: "“";
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  font-family: var(--heading);
  font-size: 4rem;
  line-height: 1;
  color: rgba(30, 178, 214, 0.18);
  pointer-events: none;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(16, 20, 22, 0.2);
}
.review-card .rating { margin-bottom: 0.75rem; color: var(--brand-ink); font-size: var(--fs-sm); }
.review-card .quote-text { font-style: italic; margin-bottom: 1rem; }
.review-card cite { display: block; font-family: var(--sans); font-size: var(--fs-xs); color: var(--text-muted); font-style: normal; }

/* --- Process: the sequence rail --------------------------------------------
   Five steps read as one continuous rail rather than five cards. A single
   hairline runs the full width of the list, a brand tick marks the point
   where each step begins, and hairlines divide the columns. Below 1024px
   the rail turns: each step stacks with its numeral set beside the title,
   and every step takes its own top hairline so the sequence still reads
   top to bottom. No boxes, no shadows — the rhythm is carried by rules,
   numerals and negative space, which is the grammar the rest of the page
   already speaks.                                                     */

.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  margin-top: clamp(2.75rem, 5vw, 4rem);
  border-top: var(--rule) solid var(--line);
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(0.9rem, 2.4vw, 1.35rem);
  align-items: baseline;
  padding: clamp(1.5rem, 3.4vw, 2.1rem) 0;
}
.process-step + .process-step { border-top: var(--rule) solid var(--line); }

/* The brand tick sits on the hairline itself, so the rule reads as a rail
   the steps are pinned to rather than a border above them. */
.process-step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: clamp(2rem, 5vw, 3rem);
  height: 2px;
  background: var(--brand);
}

.process-step__num {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--heading);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.process-step h3 { grid-column: 2; grid-row: 1; margin: 0; }

.process-step p {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 0.7rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

/* Staggered arrival. The hidden state only exists once the document is
   flagged as scripted, so with JS off every step is simply there. */
.process-steps .process-step:nth-child(1) { --reveal-delay: 0ms; }
.process-steps .process-step:nth-child(2) { --reveal-delay: 80ms; }
.process-steps .process-step:nth-child(3) { --reveal-delay: 160ms; }
.process-steps .process-step:nth-child(4) { --reveal-delay: 240ms; }
.process-steps .process-step:nth-child(5) { --reveal-delay: 320ms; }

@media (min-width: 1024px) {
  .process-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }

  .process-step {
    display: block;
    padding: clamp(1.75rem, 2.4vw, 2.3rem) clamp(1.1rem, 1.6vw, 1.6rem) 0 0;
    border-top: 0;
  }
  .process-step + .process-step {
    border-top: 0;
    border-left: var(--rule) solid var(--line);
    padding-left: clamp(1.1rem, 1.6vw, 1.6rem);
  }

  .process-step__num {
    font-size: clamp(2.75rem, 4.4vw, 4.25rem);
    margin-bottom: clamp(0.9rem, 1.4vw, 1.3rem);
  }
  .process-step h3 { margin-bottom: 0.5rem; }
  .process-step p { margin-top: 0; }
}

/* Eyebrow introduced with this section: the tracked label that opens the
   hero, used here to mark the section as a distinct movement. */
.process-section .eyebrow { margin-bottom: 1rem; }

.process-steps + .center-cta { margin-top: clamp(2.5rem, 4vw, 3.5rem); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: var(--fs-sm);
  table-layout: fixed;
}
.data-table th:first-child,
.data-table td:first-child { width: 42%; }
.data-table th:last-child,
.data-table td:last-child { width: 58%; }
.data-table th, .data-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  word-wrap: break-word;
}
.data-table thead th { background: var(--surface-alt); font-family: var(--sans); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; }
.table-note { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 0.75rem; }

/* --- Checklist: an editorial index ---------------------------------------
   The seven checks read as a numbered index rather than a bulleted list: one
   hairline runs the full width, a brand tick marks where each check begins,
   and every check takes a large numeral set beside its text. The numerals
   are drawn for the eye only — the ordered list carries the sequence for
   assistive technology — and none of them is a link.                     */

.checklist-count {
  position: relative;
  isolation: isolate;
  color: var(--brand-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  /* Inline-block so it can be transformed without disturbing the line box
     the rest of the heading sits in. */
  display: inline-block;
}
.checklist-count::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0.1em;
  bottom: -0.04em;
  left: -0.16em;
  right: -0.16em;
  background: rgba(30, 178, 214, 0.2);
}

.checklist {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  padding: 0;
  margin-top: clamp(2.25rem, 4vw, 3rem);
  border-top: var(--rule) solid var(--line);
}

.checklist__item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(1rem, 2.2vw, 1.75rem);
  align-items: baseline;
  padding: clamp(1.1rem, 2vw, 1.5rem) 0;
}
.checklist__item + .checklist__item { border-top: var(--rule) solid var(--line); }

.checklist__item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: clamp(1.75rem, 3vw, 2.5rem);
  height: 2px;
  background: var(--brand);
}

.checklist__num {
  font-family: var(--heading);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.checklist__text {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: 1.7;
}
.checklist__text strong { color: var(--ink); font-weight: 600; }

/* --- Numbers that answer the cursor ---------------------------------------
   Not links: clicking them does nothing and the cursor stays an arrow, but
   each numeral lifts and warms to the brand colour while the tick on the
   rule above it stretches. Transform and colour only, so nothing reflows and
   the copy never shifts. Gated on hover + no-preference — touch devices and
   anyone who asked for less motion keep the complete static treatment. */

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .process-step__num,
  .checklist__num,
  .checklist-count {
    transition:
      color var(--dur-2) var(--ease),
      transform var(--dur-3) var(--ease);
  }
  .process-step__num:hover,
  .checklist__num:hover,
  .checklist-count:hover {
    color: var(--brand-ink);
    transform: translateY(-5px);
  }

  .process-step::before,
  .checklist__item::before {
    transition: width var(--dur-3) var(--ease);
  }
  .process-step:has(.process-step__num:hover)::before { width: clamp(3.5rem, 7vw, 5rem); }
  .checklist__item:has(.checklist__num:hover)::before { width: clamp(3rem, 5vw, 4rem); }

  .checklist-count::before {
    transition:
      transform var(--dur-3) var(--ease),
      background-color var(--dur-2) var(--ease);
  }
  .checklist-count:hover::before {
    transform: scaleY(1.3);
    background-color: rgba(30, 178, 214, 0.34);
  }
}

.neighborhoods-list { list-style: none; padding: 0; display: grid; gap: 1.25rem; }
.neighborhoods-list li { margin-bottom: 0; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.neighborhoods-list li:last-child { border-bottom: 0; padding-bottom: 0; }

/* --- Why choose: the ledger of reasons ------------------------------------
   Four reasons set as one bordered ledger instead of four loose bullets. A
   brand rule runs across the top, hairlines divide the rows, the lead-in
   sits in a fixed left column so all four align down the block, and the
   copy takes the wide column beside it. Below 1024px the two columns fold
   into one and the rows stack. Rows tint and their lead-in warms to the
   brand colour under the cursor — presentation only: the heading, the words
   and the links are untouched.                                           */

.reasons-list {
  display: grid;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
  border: var(--rule) solid var(--line);
  border-top: 2px solid var(--brand);
  background: var(--surface);
}

.reasons-list li {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 0.5rem;
  margin-bottom: 0;
  padding: clamp(1.25rem, 2.2vw, 1.85rem) clamp(1.15rem, 2.4vw, 2rem);
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: 1.7;
}
.reasons-list li + li { border-top: var(--rule) solid var(--line); }

.reasons-list li strong {
  display: block;
  font-family: var(--heading);
  font-weight: 600;
  font-size: var(--fs-h4);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  color: var(--ink);
}

@media (min-width: 1024px) {
  .reasons-list li {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.6fr);
    column-gap: clamp(1.5rem, 3vw, 3rem);
    row-gap: 0;
    align-items: baseline;
  }
}

@media (hover: hover) {
  .reasons-list li,
  .reasons-list li strong {
    transition:
      background-color var(--dur-2) var(--ease),
      color var(--dur-2) var(--ease);
  }
  .reasons-list li:hover { background: var(--surface-alt); }
  .reasons-list li:hover strong { color: var(--brand-ink); }
}

.faq-accordion { display: grid; gap: 1rem; }
.faq-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-chip);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.faq-panel.is-open {
  border-color: var(--brand);
  box-shadow: 0 18px 40px -24px rgba(16, 20, 22, 0.22);
}
.faq-panel__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  transition: background-color var(--dur-1) var(--ease);
}
.faq-panel__toggle:hover { background: var(--surface-alt); }
.faq-panel__title {
  font-family: var(--heading);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--ink);
}
.faq-panel__icon {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--brand);
  transition: transform var(--dur-2) var(--ease);
}
.faq-panel.is-open .faq-panel__icon { transform: rotate(45deg); }
.faq-panel__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-3) var(--ease);
}
.faq-panel.is-open .faq-panel__body { max-height: 800px; }
.faq-panel__content { padding: 0 1.5rem 1.5rem; }
/* `.faq-panel__content h3` is handled by the shared visually-hidden rule above. */

.center-cta { margin-top: 2rem; text-align: center; }
/* Last child of its section: the section's own padding supplies the space
   below, so a bottom margin here would double it. */
.center-cta:last-child { margin-bottom: 0; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.cta-group { display: flex; flex-wrap: wrap; gap: 1rem; margin-block: 2rem; }

.contact-details-box {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  font-style: normal;
}

.permit-grid {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}
@media (min-width: 760px) {
  .permit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.permit-card {
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.permit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(16, 20, 22, 0.25);
}
.permit-card h4 { margin-bottom: 0.35rem; }
.permit-card__type {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.permit-card__value {
  font-size: var(--fs-sm);
  color: var(--ink);
  font-weight: 500;
}
.contact-details-box h3 { margin-bottom: 0.75rem; }
.contact-details-box p { margin-bottom: 0.4rem; }

.footer-columns { display: grid; gap: 2rem; }
@media (min-width: 760px) {
  .footer-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line-invert); font-size: var(--fs-xs); color: var(--text-invert-muted); }

/* ==========================================================================
   HOMEPAGE DESIGN SYSTEM — section rhythm, heading spacing, missing parts
   --------------------------------------------------------------------------
   The homepage was assembled section by section, so spacing drifted: some
   sections had no vertical padding at all, headings sat 12px off their
   paragraph in one place and 16px in the next, and a handful of classes used
   in the markup (.sr-only, .lead-text, .btn-primary, .btn-secondary,
   .btn-large, .services-overview-image) had never been given a rule.
   Everything below is expressed once, against the tokens above.
   ========================================================================== */

/* --- 1. Section rhythm ---------------------------------------------------
   One vertical padding token for every homepage section, so the page reads
   as a single document rather than a stack of unrelated blocks. */
main > section:not(.hero) {
  padding-block: var(--section-y);
}

/* Alternating bands give the long page structure without adding ornament.
   Every band below holds white cards or plain copy, so nothing loses
   contrast against it; the sections left white are the ones whose own
   components already sit on --surface-alt. */
.services-section,
.projects-preview-section,
.process-section,
.checklist-section,
.faq-section {
  background: var(--surface-alt);
}

/* --- 2. Heading → content ------------------------------------------------
   Base headings only had a 0.75rem trailing margin, and .section-subtext
   added its own 1rem leading margin on top, so the real gap was whichever
   won the collapse: 12px after a plain paragraph, 16px after a subtext.
   The heading now owns the gap and the subtext no longer adds a second one. */
main h2 { margin-bottom: 1rem; }

.section-subtext {
  margin-top: 0;
  margin-bottom: 2rem;
}

/* A heading that follows body copy (the Planning section) had no leading
   margin at all and collided with the paragraph above it. */
main p + h3 { margin-top: 1.75rem; }
main p + h4 { margin-top: 1.5rem; }

/* --- 3. Element separation ----------------------------------------------
   Normalised to the same 2rem step used everywhere else. */
.services-overview-image {
  margin: 0 0 2rem;
}
.services-overview-image img {
  width: 100%;
  border: var(--hairline);
}

/* Sits directly under an h2 with no intro paragraph, so it supplies the same
   2rem step the other sections get from .section-subtext. The two margins
   collapse, which is the intent. */
.faq-accordion { margin-top: 2rem; }

.permit-grid { margin: 2rem 0; }

/* --- 4. Components used in the markup but never styled ------------------- */

/* Closing CTA: needs a readable measure, otherwise the paragraph runs the
   full 1280px shell and loses the line length used everywhere else. */
.lead-text {
  max-width: 46rem;
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: var(--text);
}

/* Primary = solid brand fill. Cyan carries the eye to the phone number;
   7.06:1 against --ink on hover it flips to white on --brand-ink (5.41:1). */
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--brand-ink);
  border-color: var(--brand-ink);
  color: #fff;
}

/* Secondary = outline, so the pair reads as one dominant action and one
   supporting action rather than two identical blocks. */
.btn-secondary {
  background: transparent;
  border-color: var(--ink-2);
  color: var(--ink-2);
}
.btn-secondary:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
  color: #fff;
}

.btn-large {
  padding: 1.25rem 2.6rem;
}

/* --- 5. Responsive ------------------------------------------------------- */
@media (max-width: 760px) {
  main > section:not(.hero) {
    padding-block: var(--section-y-sm);
  }

  .btn-large {
    padding: 1.1rem 2rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-actions .btn { width: 100%; }

  .reviews-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
  }

  /* Two columns instead of four stacked full-width rows — the single biggest
     saving in the hero column, without dropping a word of the content.
     Declared here, after the base .hero__stats rules, so it actually wins the
     cascade: the earlier copy of this block sat above them and was overridden. */
  .hero__stats ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1rem;
    margin-top: 1.5rem;
    text-align: left;
  }
  .hero__stats li {
    max-width: 100%;
    font-size: 0.6875rem;
    line-height: 1.5;
    letter-spacing: 0.04em;
  }
}

/* ==========================================================================
   FUNCTIONAL LAYER — conversion elements added to the homepage
   --------------------------------------------------------------------------
   Trust strip under the hero, cost/duration chips inside the service
   accordion, clickable area cards, project overlays, the trust & compliance
   band, the hours block beside the closing CTA, and a sticky action bar for
   the widths where the header drops both its phone number and its quote
   button.

   Kept as one block at the end of the sheet so every rule here sits after the
   component rules it refines. Several of them are genuine cascade fights —
   .area-card against .neighborhoods-list li, .gallery-item__media against
   .gallery-grid a, .service-panel__meta against a toggle that is not set to
   wrap — and placing them last is what makes the outcome reliable rather than
   accidental.

   Every colour pairing below was measured against the background it actually
   renders on. None falls under 4.5:1 for text or 3:1 for icons.
   ========================================================================== */

/* --- 1. Trust strip ------------------------------------------------------
   Sits between the hero and the first section. It is a div rather than a
   section so the homepage's shared `main > section` rhythm rule does not hand
   it 65px of padding — this band wants to hug the hero it belongs to. */
.trust-bar {
  background: var(--charcoal);
  color: var(--text-invert-muted);
  padding-block: clamp(1.1rem, 2vw, 1.6rem);
}
.trust-bar__list {
  list-style: none;
  margin: 0 auto;
  max-width: var(--shell);
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.4rem) clamp(1rem, 2vw, 2rem);
}
.trust-bar__item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.trust-bar__icon {
  flex: 0 0 auto;
  color: var(--brand);          /* 6.83:1 on --charcoal */
  margin-top: 0.1rem;
}
.trust-bar__text {
  font-size: var(--fs-xs);
  line-height: 1.5;
}
.trust-bar__text strong {
  display: block;
  color: #fff;                  /* 17.09:1 */
  font-family: var(--heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* --- 2. Cost / duration chips on the service accordion --------------------
   Shown inside the toggle rather than the panel body, so the two questions
   that decide whether someone expands a row — how much and how long — are
   answered without a click. */
.service-panel__number { min-width: 1.9rem; }
.service-panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.7rem;
  background: rgba(30, 178, 214, 0.12);   /* renders as #e4f6fa on white */
  border: 1px solid rgba(11, 115, 146, 0.3);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--brand-ink);      /* 4.86:1 on the tinted chip */
  white-space: nowrap;
}
.chip--time {
  background: var(--surface-alt);
  border-color: var(--line-strong);
  color: var(--text);           /* 11.61:1 */
}

/* --- 3. Project cards with overlays --------------------------------------
   The image is wrapped in a link so the whole card is one target; the badge
   carries the location already present in the caption, as a scannable tag. */
.gallery-item__media {
  position: relative;
  display: block;
  overflow: hidden;
}
/* .gallery-grid a:hover img dims to 0.9; the badge sits on the image, so the
   card reads better without that dim. Declared here to win the cascade. */
.gallery-item__media:hover img,
.gallery-item__media:focus-visible img { opacity: 1; }
.gallery-item__badge {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  padding: 0.3rem 0.6rem;
  background: var(--ink);       /* solid, so the 17.8:1 ratio is guaranteed
                                   rather than dependent on the photo behind */
  color: #fff;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.3;
  border-radius: 2px;
  pointer-events: none;
}

/* --- 4. Areas as clickable cards -----------------------------------------
   The prose and both inline links in each item are untouched; only the card
   chrome and a closing affordance are added. The :last-child form has to be
   repeated here because the base list rule strips padding and border from the
   final item at a specificity this would otherwise lose to. */
.neighborhoods-list li.area-card,
.neighborhoods-list li.area-card:last-child {
  position: relative;
  margin: 0;
  padding: 1.25rem 1.4rem;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-chip);
  transition:
    border-color var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease),
    transform var(--dur-2) var(--ease);
}
.neighborhoods-list li.area-card:hover,
.neighborhoods-list li.area-card:focus-within {
  border-color: var(--brand);
  box-shadow: 0 14px 30px -22px rgba(16, 20, 22, 0.35);
  transform: translateY(-3px);
}
.area-card__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75em;
  margin-top: 0.9rem;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brand-ink);      /* 4.99:1 on --surface-alt */
}

/* --- 5. Trust & compliance band ------------------------------------------
   Dark, to bookend the dark trust strip under the hero and to separate from
   the white areas section above and the tinted FAQ below. */
.trust-grid {
  display: grid;
  gap: 1.25rem;
}
.trust-card {
  padding: 1.5rem 1.6rem;
  background: rgba(255, 255, 255, 0.045);  /* #242628 over --charcoal */
  border: 1px solid var(--line-invert);
  border-radius: var(--radius-chip);
}
.trust-card__icon {
  display: block;
  color: var(--brand);
  margin-bottom: 0.9rem;
}
.trust-card h3 {
  font-family: var(--heading);
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  color: var(--text-invert);
}
.trust-card p {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--text-invert-muted);   /* 6.96:1 on the card */
}

/* --- 6. Hours beside the closing CTA ------------------------------------- */
.cta-facts {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.5rem;
  display: grid;
  gap: 1.1rem;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
}
.cta-facts__label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-ink);      /* 4.99:1 */
}
.cta-facts__value {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text);
}

/* --- 7. Sticky action bar -------------------------------------------------
   Shown only where the header's own phone and quote buttons are hidden
   (below 1080px), so the bar fills a gap rather than duplicating an action
   that is already on screen. z-index 90 keeps it beneath the header (100),
   the mobile navigation overlay (110) and the lightbox (200). */
.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  display: none;
  background: var(--charcoal);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.sticky-cta__btn {
  flex: 1 1 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 56px;
  padding: 0.85rem 0.9rem;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.25;
  text-align: center;
  transition: background-color var(--dur-2) var(--ease);
}
.sticky-cta__icon { flex: 0 0 auto; }
.sticky-cta__btn--call {
  background: var(--charcoal);
  color: #fff;                  /* 17.09:1 */
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}
.sticky-cta__btn--call:hover { background: #24272a; }
.sticky-cta__btn--quote {
  background: var(--brand);
  color: var(--ink);            /* 7.12:1 */
}
.sticky-cta__btn--quote:hover { background: #17a2c4; }   /* 5.94:1 */

/* --- 8. Responsive ------------------------------------------------------- */
@media (min-width: 640px) {
  .trust-bar__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .trust-bar__list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

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

@media (min-width: 760px) {
  .cta-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 1080px) {
  .sticky-cta { display: flex; }

  /* The bar is fixed to the viewport foot, so the last line of the footer
     needs somewhere to sit above it. Safe-area inset is added on both sides
     so the two never disagree on a notched device. */
  .site-footer {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 760px) {
  /* The toggle does not wrap by default. Below 760px the chips get their own
     line under the title: `order: 1` keeps the +/- icon on the first line,
     and a full-width basis forces the row break. Without the order property
     the icon would wrap down alongside the chips. */
  .service-panel__toggle { flex-wrap: wrap; }
  .service-panel__meta {
    order: 1;
    flex: 1 0 100%;
    margin-top: 0.7rem;
    padding-left: calc(1.9rem + 1rem);
  }

  .trust-bar__text strong { font-size: var(--fs-xs); }

  .trust-card { padding: 1.25rem 1.35rem; }

  .sticky-cta__btn {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    padding-inline: 0.6rem;
  }
}

/* Mobile nav dropdown (services) */
.mobile-nav__group { display: block; }
.mobile-nav__sub-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: 0;
  padding: 1.05rem 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 6vw, 2rem);
  line-height: 1.2;
  color: #fff;
  cursor: pointer;
  text-align: left;
}
.mobile-nav__sub-toggle::after {
  content: "";
  width: 10px; height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
  margin-left: .75rem;
  flex: 0 0 auto;
}
.mobile-nav__sub-toggle[aria-expanded="true"]::after { transform: rotate(225deg) translateY(-1px); }
.mobile-nav__sub[hidden] { display: none !important; }
.mobile-nav__sub { list-style: none; padding-bottom: 1.1rem; margin: 0; }
.mobile-nav__sub li a {
  display: block;
  padding: 0.45rem 0;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.mobile-nav__sub li a:hover { color: #fff; }
