/* Westmark Construction
   Brand values from the Westmark brand pack (colours, Montserrat). */

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-latin-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --midnight: #050c18;
  --navy: #0a1f3c;
  --gold: #c9a55a;
  --gold-light: #d2b26a;
  --gold-dark: #8a6a2a;       /* darkened from brand dark gold so small text passes AA on light grounds */
  --graphite: #3a3f46;
  --steel: #8c96a3;
  --mist: #eceef1;            /* brand light grey */
  --paper: #f6f7f9;

  --ink: #0d1622;
  --text: #3a3f46;
  --text-on-dark: #c9d3e1;
  --muted-on-dark: #9eadc4;   /* navy-tinted, not neutral grey */
  --rule: #d5d9df;
  --rule-dark: rgb(255 255 255 / 0.14);

  --font: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(72px, 8vw, 120px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);

  /* z-index scale */
  --z-header: 50;
  --z-menu: 60;
  --z-skip: 70;
  --z-intro: 80;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--steel) var(--mist);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold); color: var(--midnight); }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }

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

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 300;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.08; }
h3 { font-size: 1.3rem; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: var(--z-skip);
  background: var(--gold);
  color: var(--midnight);
  padding: 12px 18px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  font: 600 0.9375rem/1 var(--font);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

.btn-gold { background: var(--gold); color: var(--midnight); }
.btn-gold:hover { background: var(--gold-light); }

.btn-line-light { border-color: rgb(255 255 255 / 0.55); color: #fff; }
.btn-line-light:hover { border-color: #fff; background: rgb(255 255 255 / 0.08); }

.btn-ink { background: var(--navy); color: #fff; }
.btn-ink:hover { background: var(--midnight); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}
.text-link svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  color: #fff;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-solid {
  background: var(--midnight);
  box-shadow: 0 1px 0 var(--rule-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}
.brand { display: block; flex: none; }
.brand img { height: 50px; width: auto; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 34px; margin: 0; padding: 0; list-style: none; }
.nav a {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: rgb(255 255 255 / 0.86);
  padding: 8px 0;
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after { transform: scaleX(1); }

.header-cta { min-height: 44px; padding: 0 20px; font-size: 0.875rem; }

@media (max-width: 1023px) {
  .nav, .header-cta { display: none; }
  .header-inner { height: 76px; }
  .brand img { height: 42px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100svh;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  background: var(--midnight);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-frame {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  clip-path: inset(0% 0% 0% 0%);
}
.hero-media {
  position: absolute;
  inset: 0;
  transform-origin: 60% 55%;
}
.hero-media picture, .hero-media img, .hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
}
.hero-media video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-media video.is-playing { opacity: 1; }
.hero-frame::after {
  /* scrim: keeps the headline legible against bright scaffolding lights */
  content: "";
  position: absolute;
  inset: 0;
  opacity: var(--scrim, 1);
  background:
    linear-gradient(90deg, rgb(5 12 24 / 0.86) 0%, rgb(5 12 24 / 0.6) 38%, rgb(5 12 24 / 0.06) 72%),
    linear-gradient(0deg, rgb(5 12 24 / 0.7) 0%, rgb(5 12 24 / 0) 45%),
    linear-gradient(180deg, rgb(5 12 24 / 0.55) 0%, rgb(5 12 24 / 0) 22%);
}

/* Drawing sheet: crop-marked frame and thirds, drawn in as the film settles */
.hero-sheet {
  position: absolute;
  inset: 12% 4% 6% 4%;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
}
.hero-sheet i { position: absolute; display: block; background: var(--gold); }
.sh-x { height: 1px; left: -14px; right: -14px; transform: scaleX(0); transform-origin: left; }
.sh-y { width: 1px; top: -14px; bottom: -14px; transform: scaleY(0); transform-origin: top; }
.sh-t { top: 0; } .sh-b { bottom: 0; transform-origin: right; }
.sh-l { left: 0; transform-origin: bottom; } .sh-r { right: 0; }
.hero-sheet .sh-grid { background: rgb(255 255 255 / 0.14); }
.sh-grid.sh-x { left: 0; right: 0; }
.sh-grid.sh-y { top: 0; bottom: 0; }
.sh-v1 { left: 33.333%; } .sh-v2 { left: 66.666%; }
.sh-h1 { top: 33.333%; } .sh-h2 { top: 66.666%; }

.hero-inner {
  width: 100%;
  padding-top: 140px;
  padding-bottom: clamp(56px, 9vh, 104px);
}
.hero-copy { max-width: 900px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 1.3rem + 4.2vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 300;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero h1 .line > span { display: block; }
.hero h1 strong { font-weight: 500; color: var(--gold-light); }
.hero-lead {
  margin-top: 28px;
  max-width: 34em;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.6;
  color: rgb(255 255 255 / 0.86);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.film-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(56px, 9vh, 104px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  color: rgb(255 255 255 / 0.78);
  font: 500 0.8125rem/1 var(--font);
  cursor: pointer;
}
.film-toggle:hover { color: #fff; }
.film-toggle svg { width: 14px; height: 14px; }
.film-toggle[hidden] { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero h1 .line > span { animation: line-up 1.4s var(--ease) both; }
  .hero h1 .line:nth-child(2) > span { animation-delay: 0.1s; }
  .hero h1 .line:nth-child(3) > span { animation-delay: 0.2s; }
  .hero-lead, .hero-actions { animation: rise 1.2s var(--ease) 0.45s both; }
  .hero-actions { animation-delay: 0.55s; }
  .hero-media picture, .hero-media video { animation: settle 2.6s var(--ease) both; }
}
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes settle { from { transform: scale(1.08); } }

@media (max-width: 767px) {
  .hero-frame::after {
    background:
      linear-gradient(0deg, rgb(5 12 24 / 0.94) 0%, rgb(5 12 24 / 0.7) 48%, rgb(5 12 24 / 0.15) 80%),
      linear-gradient(180deg, rgb(5 12 24 / 0.6) 0%, rgb(5 12 24 / 0) 20%);
  }
  .hero-media img, .hero-media video { object-position: center; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .film-toggle { bottom: auto; top: 88px; right: 12px; }
  .film-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Header scroll progress: CSS scroll-driven, no JS */
.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-progress { animation: progress linear both; animation-timeline: scroll(root); }
  }
}
@keyframes progress { to { transform: scaleX(1); } }

/* ---------- Services ---------- */

.services { padding-block: var(--section); }
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.services-intro { position: sticky; top: 120px; }
.services-intro .text-link { margin-top: 32px; }

.services-intro .btn { margin-top: 32px; }
.services-intro .text-link { margin-top: 24px; margin-left: 4px; }
.services-intro .btn + .text-link { display: flex; width: fit-content; }

/* Service rows: a navy fill rises behind the row on hover, like a panel sliding into place. */
.service-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.service-list li { border-top: 1px solid var(--rule); }
.service-link {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 32px;
  padding: 34px 28px;
  margin-inline: -28px;
  text-decoration: none;
  overflow: hidden;
}
/* Navy panel rises behind the row; once it has covered the row the element's own background
   turns navy too, so hovered text always sits on a real dark background. */
.service-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--navy);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.55s var(--ease);
}
.service-link { transition: background-color 0s; }
.service-link:hover, .service-link:focus-visible { background-color: var(--navy); transition: background-color 0s linear 0.4s; }
.service-link:hover::before, .service-link:focus-visible::before { transform: scaleY(1); }
.service-link h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  transition: color 0.35s var(--ease), transform 0.55s var(--ease);
}
.service-link p { grid-column: 1; max-width: 36em; transition: color 0.35s var(--ease), transform 0.55s var(--ease); }
.service-arrow {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--navy);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.55s var(--ease);
}
.service-arrow svg { width: 18px; height: 18px; }
.service-link:hover h3, .service-link:focus-visible h3 { color: #fff; transform: translateX(8px); }
.service-link:hover p, .service-link:focus-visible p { color: var(--text-on-dark); transform: translateX(8px); }
.service-link:hover .service-arrow, .service-link:focus-visible .service-arrow { background: var(--gold); border-color: var(--gold); color: var(--midnight); transform: rotate(-45deg); }
.service-link:focus-visible { outline-offset: -3px; }

@media (max-width: 899px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-intro { position: static; }
  .service-link { padding: 26px 0; margin-inline: 0; }
  .service-arrow { width: 44px; height: 44px; }
}

.caption { margin-top: 14px; font-size: 0.8125rem; line-height: 1.5; color: #5d6570; }

/* ---------- Approach (navy band) ---------- */

.approach {
  background: var(--navy);
  color: var(--text-on-dark);
  padding-block: var(--section);
}
.approach h2 { color: #fff; max-width: 14em; }
.approach-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
}
.steps-wrap { position: relative; margin-top: clamp(56px, 7vw, 88px); }
.steps-track {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--rule-dark);
}
.steps-fill {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(var(--p, 1));
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.step { position: relative; padding: 36px 32px 0 0; }
.step::before {
  /* node on the programme line */
  content: "";
  position: absolute;
  top: -5px; left: 0;
  width: 9px; height: 9px;
  border: 1px solid var(--gold);
  background: var(--gold);
  transform: rotate(45deg);
  transition: background-color 0.4s var(--ease);
}
.step-no {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-top: 18px; color: #fff; font-weight: 500; font-size: 1.375rem; }
.step p { margin-top: 12px; font-size: 0.9688rem; line-height: 1.65; }
.js .approach.is-scrubbed .step::before { background: var(--navy); }
.js .approach.is-scrubbed .step { opacity: 0.6; transition: opacity 0.5s var(--ease); }
.js .approach.is-scrubbed .step.is-reached { opacity: 1; }
.js .approach.is-scrubbed .step.is-reached::before { background: var(--gold); }

@media (max-width: 1023px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .steps-track { display: none; }
  .step { border-top: 1px solid var(--rule-dark); }
}
@media (max-width: 599px) {
  .steps { grid-template-columns: 1fr; row-gap: 36px; }
  .step { padding-right: 0; }
}

/* ---------- Contact + footer ---------- */

.contact {
  background: var(--midnight);
  color: var(--text-on-dark);
  padding-top: var(--section);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(48px, 7vw, 120px);
  padding-bottom: var(--section);
}
.contact h2 { color: #fff; font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem); line-height: 1.04; }
.contact-lead { margin-top: 26px; max-width: 32em; font-size: 1.125rem; }
.contact .btn { margin-top: 40px; }
.contact-details { margin: 0; align-self: end; }
.contact-details div { padding: 20px 0; border-top: 1px solid var(--rule-dark); }
.contact-details div:last-child { border-bottom: 1px solid var(--rule-dark); }
.contact-details dt { font-size: 0.8125rem; font-weight: 600; color: var(--muted-on-dark); }
.contact-details dd { margin: 4px 0 0; color: #fff; font-size: 1.125rem; }
.tbc { color: var(--muted-on-dark); font-style: italic; font-size: 1rem; }

.site-footer { border-top: 1px solid var(--rule-dark); padding-block: 64px 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr));
  gap: 40px;
}
.footer-brand img { height: 60px; width: auto; }
.footer-brand p { margin-top: 20px; max-width: 22em; font-size: 0.9375rem; }
.footer-heading { color: #fff; font-size: 0.875rem; font-weight: 600; letter-spacing: 0; }
.footer-col ul { list-style: none; margin: 16px 0 0; padding: 0; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { text-decoration: none; font-size: 0.9375rem; color: var(--text-on-dark); }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-dark);
  font-size: 0.8125rem;
  color: var(--muted-on-dark);
}
.footer-base a { color: var(--muted-on-dark); }

@media (max-width: 899px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Entrance: logo, gold rule, curtain lifts (first visit per session) ---------- */

.intro { display: none; }
.has-intro .intro {
  position: fixed;
  inset: 0;
  z-index: var(--z-intro);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 28px;
  background: var(--midnight);
  pointer-events: none;
  animation: intro-lift 0.9s var(--ease-in-out) 1.25s both;
}
.has-intro .intro img { width: 260px; height: auto; animation: intro-logo 0.9s var(--ease) 0.1s both; }
.has-intro .intro-line {
  display: block;
  width: 220px;
  height: 1px;
  background: var(--gold);
  transform-origin: left;
  animation: intro-rule 0.9s var(--ease) 0.35s both;
}
@keyframes intro-logo { from { opacity: 0; transform: translateY(12px); } }
@keyframes intro-rule { from { transform: scaleX(0); } }
@keyframes intro-lift { to { transform: translateY(-100%); visibility: hidden; } }

/* Hero entrance waits for the curtain */
.has-intro .hero h1 .line > span { animation-delay: 1.45s; }
.has-intro .hero h1 .line:nth-child(2) > span { animation-delay: 1.55s; }
.has-intro .hero h1 .line:nth-child(3) > span { animation-delay: 1.65s; }
.has-intro .hero-lead { animation-delay: 1.85s; }
.has-intro .hero-actions { animation-delay: 1.95s; }
.has-intro .hero-media picture, .has-intro .hero-media video { animation-duration: 3.4s; }

/* ---------- Heading reveals (added by JS only when motion is welcome) ---------- */

.mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.mask > span { display: block; }

/* ==================== Inner pages ==================== */

.site-footer { background: var(--midnight); color: var(--text-on-dark); }
.contact + .site-footer { border-top: 1px solid var(--rule-dark); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

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

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--midnight);
  color: #fff;
  padding: 168px 0 clamp(64px, 8vw, 104px);
}
.page-hero.has-image { min-height: min(64vh, 640px); display: flex; align-items: flex-end; }
.page-hero-inner { width: 100%; }
.page-hero-media { position: absolute; inset: 0; z-index: -1; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(5 12 24 / 0.85) 0%, rgb(5 12 24 / 0.5) 45%, rgb(5 12 24 / 0.1) 80%),
    linear-gradient(0deg, rgb(5 12 24 / 0.75) 0%, rgb(5 12 24 / 0) 50%),
    linear-gradient(180deg, rgb(5 12 24 / 0.6) 0%, rgb(5 12 24 / 0) 24%);
}
.page-title {
  color: #fff;
  font-size: clamp(2.5rem, 1.4rem + 4vw, 4.75rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  max-width: 13em;
}
.page-lead {
  margin-top: 24px;
  max-width: 34em;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
  color: rgb(255 255 255 / 0.85);
}
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; margin: 0 0 28px; padding: 0; font-size: 0.875rem; color: var(--muted-on-dark); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: rgb(255 255 255 / 0.35); }
.crumbs a { color: var(--gold-light); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: no-preference) {
  .page-title, .page-lead, .crumbs { animation: rise 1.1s var(--ease) both; }
  .page-lead { animation-delay: 0.1s; }
  .page-hero-media img { animation: settle 2.6s var(--ease) both; }
  .has-intro .page-title, .has-intro .crumbs { animation-delay: 1.45s; }
  .has-intro .page-lead { animation-delay: 1.6s; }
}
@media (max-width: 767px) {
  .page-hero { padding-top: 132px; }
  .page-hero.has-image { min-height: 70vh; }
  .page-hero-media::after { background: linear-gradient(0deg, rgb(5 12 24 / 0.92) 0%, rgb(5 12 24 / 0.55) 55%, rgb(5 12 24 / 0.35) 100%); }
}

/* ---------- Generic sections ---------- */

.section { padding-block: var(--section); }
.section-mist { background: var(--mist); }
.section-title { max-width: 16em; }
.section-intro { margin-top: 20px; max-width: 40em; }
.services-note { margin-top: 20px; max-width: 26em; }
.services-intro .text-link { margin-top: 28px; }
.note { margin-top: 28px; font-size: 0.9375rem; color: #535b66; max-width: 46em; }

.points {
  list-style: none;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(40px, 6vw, 96px);
}
.points li { padding: 28px 0 32px; border-top: 1px solid var(--ink); }
.points h3 { font-size: 1.375rem; }
.points p { margin-top: 10px; max-width: 34em; }
.points-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }


.two-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px clamp(40px, 6vw, 96px);
}
.two-lists .note { grid-column: 1 / -1; margin-top: 0; }
.list-title { font-size: 1.75rem; font-weight: 500; letter-spacing: -0.01em; }
.tick-list { list-style: none; margin: 20px 0 0; padding: 0; }
.tick-list li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--rule); }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 1.15em;
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}
.placeholder-note {
  margin-top: 40px;
  padding: 20px 24px;
  border: 1px dashed #8c96a3;
  font-size: 0.9375rem;
  color: var(--graphite);
}
.placeholder-note strong { color: var(--ink); font-weight: 600; }

@media (max-width: 899px) {
  .points, .points-3, .two-lists { grid-template-columns: 1fr; }
}

/* ---------- Sector and stage rows ---------- */

.sector-rows { display: grid; }
.sector-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px clamp(40px, 7vw, 120px);
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--rule);
}
.sector-row:first-child { border-top: 0; padding-top: 0; }
.sector-row h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.sector-lead { font-size: 1.1875rem; color: var(--ink); max-width: 32em; }
.sector-row .text-link { margin-top: 28px; }

@media (max-width: 767px) {
  .sector-row { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */

.faq-groups { display: grid; gap: clamp(48px, 6vw, 80px); }
.faq-group h2 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); }
.faq-list { margin-top: 20px; border-bottom: 1px solid var(--rule); }
.faq-list details { border-top: 1px solid var(--rule); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.45;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--navy); }
.faq-icon { position: relative; flex: none; width: 16px; height: 16px; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 0; top: 7.5px;
  width: 16px; height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
details[open] .faq-icon::after { transform: rotate(0deg); }
.faq-list details p { padding: 0 48px 26px 0; max-width: 44em; }
@media (max-width: 767px) { .faq-list details p { padding-right: 0; } }

/* ---------- Contact page and form ---------- */

.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(48px, 6vw, 104px);
  align-items: start;
}
.enquiry fieldset { margin: 0 0 48px; padding: 0; border: 0; min-width: 0; }
.enquiry legend { padding: 0; margin-bottom: 8px; font-size: 1.5rem; font-weight: 400; color: var(--ink); letter-spacing: -0.01em; }
.field { display: grid; gap: 8px; margin-top: 24px; }
.field-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
.field-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.enquiry label { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.optional { font-weight: 400; color: #5d6570; }
.enquiry input[type="text"], .enquiry input[type="email"], .enquiry input[type="tel"], .enquiry input[type="url"], .enquiry select, .enquiry textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #8c96a3;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.5 var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.enquiry select {
  appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.enquiry textarea { resize: vertical; min-height: 140px; }
.enquiry input:focus-visible, .enquiry select:focus-visible, .enquiry textarea:focus-visible {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgb(201 165 90 / 0.55);
}
.enquiry [aria-invalid="true"] { border-color: #b3261e; }
.help { font-size: 0.875rem; color: #535b66; }
.error { font-size: 0.875rem; font-weight: 600; color: #b3261e; }
.field-check { grid-template-columns: 22px 1fr; align-items: start; gap: 12px; }
.field-check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--navy); }
.field-check label { font-weight: 400; color: var(--text); }
.field-check .error { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0 0 24px; max-width: 40em; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-actions .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }
.form-status { font-size: 0.9375rem; }
.form-status[data-state="error"] { color: #b3261e; font-weight: 600; }
.enquiry-done { padding: 40px; background: var(--mist); }
.enquiry-done h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
.enquiry-done p { margin-top: 16px; max-width: 36em; }
.enquiry-done .text-link { margin-top: 24px; }
.enquiry-done:focus { outline: none; }

.contact-aside { position: static; top: 112px; padding: clamp(28px, 3vw, 40px); background: var(--midnight); color: var(--text-on-dark); }
.contact-aside .list-title { color: #fff; }
.next-steps { margin: 20px 0 32px; padding-left: 20px; }
.next-steps li { padding: 6px 0; }
.next-steps li::marker { color: var(--gold-light); font-weight: 600; }

@media (max-width: 1023px) {
  .contact-page { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .field-row-2 { grid-template-columns: 1fr; }
}

/* ---------- Prose ---------- */

.prose > * { max-width: 72ch; }
.prose h2 { margin-top: 48px; font-size: 1.625rem; font-weight: 500; letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 16px; }
.prose a { color: var(--navy); font-weight: 600; }
.link-list a { color: var(--navy); font-weight: 600; text-decoration: none; }
.link-list a:hover { text-decoration: underline; }

/* ==================== Round 2: starter, stages, about ==================== */

/* ---------- Home: project starter ---------- */

.starter { padding-block: 0 var(--section); }
.starter-intro { margin-top: 16px; max-width: 34em; }
/* Three choices as quiet rows: title, one line, an arrow. No boxes. */
.starter-grid { list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; border-bottom: 1px solid var(--rule); }
.starter-grid li { border-top: 1px solid var(--rule); }
.starter-card {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto;
  align-items: center;
  gap: 4px clamp(24px, 4vw, 64px);
  padding: clamp(22px, 2.4vw, 32px) 0;
  text-decoration: none;
}
.starter-step {
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 2rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: transform 0.55s var(--ease);
}
.starter-text { max-width: 34em; }
.starter-go {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--navy);
  font-size: 0;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.55s var(--ease);
}
.starter-go svg { width: 16px; height: 16px; }
.starter-card:hover .starter-step, .starter-card:focus-visible .starter-step { transform: translateX(8px); }
.starter-card:hover .starter-go, .starter-card:focus-visible .starter-go { background: var(--gold); border-color: var(--gold); color: var(--midnight); transform: rotate(-45deg); }

.approach-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: clamp(48px, 6vw, 72px); }

/* ---------- Projects: coming soon ---------- */

.soon.page-hero { min-height: 100svh; min-height: 100dvh; padding-bottom: 0; flex-direction: column; justify-content: flex-end; }
.soon .page-hero-inner { padding-bottom: clamp(32px, 6vh, 64px); }
.soon-title { font-size: clamp(2.75rem, 1.4rem + 5.2vw, 6rem); max-width: none; }
.soon-title strong { font-weight: 500; color: var(--gold-light); }
.soon .hero-actions { margin-top: 36px; }
.soon-caption { padding-bottom: 20px; font-size: 0.8125rem; color: rgb(255 255 255 / 0.75); }

/* ---------- How we work: sticky stage rail ---------- */

.stages-section { padding-block: var(--section); }
.stages-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.stages-rail { position: sticky; top: 112px; }
.rail-list { list-style: none; margin: 32px 0 36px; padding: 0; border-left: 1px solid var(--rule); }
.rail-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0 14px 24px;
  text-decoration: none;
  color: #5d6570;
  transition: color 0.3s var(--ease);
}
.rail-link::before {
  content: "";
  position: absolute;
  left: -1px; top: 0; bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform 0.45s var(--ease);
}
.rail-no { font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.rail-name { font-size: 1.375rem; font-weight: 400; letter-spacing: -0.01em; }
.rail-link:hover { color: var(--ink); }
.rail-link.is-active { color: var(--ink); }
.rail-link.is-active .rail-no { color: var(--gold-dark); }
.rail-link.is-active::before { transform: scaleY(1); }

.stage-panel {
  position: relative;
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 100px;
}
.stage-panel:first-child { border-top: 0; padding-top: 0; }
.stage-big {
  display: block;
  font-size: clamp(4.5rem, 3rem + 6vw, 9rem);
  font-weight: 200;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  font-variant-numeric: tabular-nums;
}
.stage-panel h3 { margin-top: 16px; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.875rem); font-weight: 300; letter-spacing: -0.02em; }
.stage-lead { margin-top: 16px; font-size: 1.1875rem; color: var(--ink); max-width: 36em; }
.stage-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(32px, 4vw, 56px); margin-top: 32px; }
.mini-title { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.tick-gold li { color: var(--ink); font-weight: 500; }

@media (max-width: 899px) {
  .stages-grid { grid-template-columns: 1fr; }
  .stages-rail { position: static; }
  .rail-list { display: none; }
  .stage-cols { grid-template-columns: 1fr; }
}

/* ---------- Principles (navy band) ---------- */


/* ---------- About: statement and values ---------- */

.statement { padding-block: var(--section) calc(var(--section) * 0.6); }
.statement-text {
  max-width: 22ch;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 4.25rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.statement-text .w { transition: color 0.2s linear; }

.values { padding-block: 0; }
.values-title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.08; }
.value-list { list-style: none; margin: 24px 0 0; padding: 0; }
.value-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 16px clamp(32px, 5vw, 80px);
  align-items: end;
  padding: clamp(24px, 3vw, 40px) 0;
  border-top: 1px solid var(--ink);
}
.value-row:last-child { border-bottom: 1px solid var(--ink); }
.value-word {
  font-size: clamp(3rem, 1.6rem + 6vw, 7.5rem);
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: -0.045em;
  transition: color 0.4s var(--ease);
}
.value-sub { font-weight: 600; color: var(--ink); }
.value-row p + p { margin-top: 6px; }
@media (max-width: 767px) {
  .value-row { grid-template-columns: 1fr; }
}

.commit-list {
  list-style: none;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(40px, 6vw, 96px);
}
.commit-list li { padding: 28px 0; border-top: 1px solid #c4cad2; }
.commit-list h3 { font-size: 1.375rem; }
.commit-list p { margin-top: 8px; }
@media (max-width: 767px) { .commit-list { grid-template-columns: 1fr; } }
/* Tall display words: give descenders (p, g) room inside the reveal mask. */
.value-word .mask, .stage-panel h3 .mask { padding-bottom: 0.2em; margin-bottom: -0.2em; }

/* ==================== Round 3: coverage map, document uploads ==================== */

/* ---------- Coverage: live 3D map of London ---------- */

.coverage {
  position: relative;
  isolation: isolate;
  min-height: min(100vh, 980px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--text-on-dark);
  /* A still render of the same map shows until the live map is ready, and stays if WebGL is unavailable. */
  background: var(--midnight) url("/assets/img/map-poster.webp") 72% center / cover no-repeat;
}
/* .coverage prefix: MapLibre's own stylesheet sets .maplibregl-map to position: relative. */
.coverage .coverage-map { position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity 1.4s var(--ease); }
.coverage-map.is-ready { opacity: 1; }
.coverage-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(5 12 24 / 0.95) 0%, rgb(5 12 24 / 0.85) 28%, rgb(5 12 24 / 0.2) 58%, rgb(5 12 24 / 0) 78%),
    linear-gradient(0deg, rgb(5 12 24 / 0.7) 0%, rgb(5 12 24 / 0) 22%),
    linear-gradient(180deg, rgb(5 12 24 / 0.8) 0%, rgb(5 12 24 / 0) 20%);
}
.coverage-inner { padding-block: var(--section); pointer-events: none; }
.coverage-panel { max-width: 470px; pointer-events: auto; }
.coverage h2 { color: #fff; }
.coverage-lead { margin-top: 20px; font-size: 1.125rem; }
.coverage-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; border: 1px solid rgb(255 255 255 / 0.22); background: rgb(5 12 24 / 0.6); }
.coverage-tabs button {
  min-height: 56px;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: var(--text-on-dark);
  font: 600 0.875rem/1.3 var(--font);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.coverage-tabs button + button { border-left: 1px solid rgb(255 255 255 / 0.22); }
.coverage-tabs button:hover { color: #fff; background: rgb(255 255 255 / 0.08); }
.coverage-tabs button[aria-selected="true"] { background: var(--gold); color: var(--midnight); }
.area-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; }
.area-list[hidden] { display: none; }
.area-list li { padding: 7px 12px; border: 1px solid var(--rule-dark); color: #fff; font-size: 0.875rem; line-height: 1.2; }
.coverage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }

/* Area pins. MapLibre positions the pin element itself, so only its children animate. */
.map-pin { display: flex; align-items: center; gap: 8px; pointer-events: none; }
.map-pin span { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); outline: 4px solid rgb(201 165 90 / 0.28); }
.map-pin b {
  padding: 5px 8px;
  background: rgb(5 12 24 / 0.78);
  color: #fff;
  font: 600 0.8125rem/1 var(--font);
  white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  .map-pin > * { animation: pin-in 0.7s var(--ease) var(--d, 0ms) both; }
}
@keyframes pin-in { from { opacity: 0; transform: translateY(8px); } }

.coverage .maplibregl-ctrl.maplibregl-ctrl-attrib { background: rgb(5 12 24 / 0.85); color: var(--text-on-dark); font: 400 11px/1.4 var(--font); }
.coverage .maplibregl-ctrl.maplibregl-ctrl-attrib a { color: #fff; }
.coverage .maplibregl-ctrl-attrib-button { background-color: rgb(255 255 255 / 0.85); }

@media (max-width: 899px) {
  .coverage { display: block; min-height: 0; background-size: auto 58vh; background-position: 60% top; }
  .coverage .coverage-map { position: relative; inset: auto; height: 58vh; z-index: 0; }
  .coverage-shade { inset: 0 0 auto 0; height: 58vh; background: linear-gradient(0deg, var(--midnight) 0%, rgb(5 12 24 / 0) 35%), linear-gradient(180deg, rgb(5 12 24 / 0.7) 0%, rgb(5 12 24 / 0) 25%); z-index: 1; }
  .coverage-inner { position: relative; z-index: 2; padding-block: 8px var(--section); background: var(--midnight); }
  .coverage-panel { max-width: none; }
  .map-pin b { font-size: 0.75rem; padding: 4px 6px; }
}

/* ---------- Enquiry: drawings and documents ---------- */

.enquiry legend .optional { font-size: 1rem; }
.doc-note {
  margin: 8px 0 4px;
  padding: 16px 20px;
  background: var(--mist);
  border-left: 1px solid var(--gold);
  font-size: 0.9688rem;
}
.doc-note strong { color: var(--ink); }
.tbc-light { font-style: italic; color: #535b66; }
.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 20px;
  border: 1px dashed #8c96a3;
  background: #fff;
  text-align: center;
  transition: border-color 0.2s, background-color 0.2s;
}
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone:hover, .dropzone.is-over { border-color: var(--navy); background: var(--mist); }
.dropzone:focus-within { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy); }
.dropzone-text { pointer-events: none; color: var(--text); }
.dropzone-text strong { color: var(--navy); text-decoration: underline; text-underline-offset: 0.2em; }
.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
}
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 500; }
.file-size { color: #535b66; font-variant-numeric: tabular-nums; }
.file-remove {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  background: none;
  color: var(--navy);
  font: 600 0.8125rem/1 var(--font);
  cursor: pointer;
}
.file-remove:hover { border-color: var(--navy); }

.text-link-light { color: var(--gold-light); }

/* ---------- Hero scroll cue ---------- */

.scroll-cue {
  position: absolute;
  /* Centred without transform: GSAP owns this element's transform while the hero is pinned. */
  left: 0;
  right: 0;
  width: max-content;
  margin-inline: auto;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  color: rgb(255 255 255 / 0.82);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
}
.scroll-cue:hover { color: #fff; }
.scroll-cue i { position: relative; display: block; width: 1px; height: 44px; overflow: hidden; background: rgb(255 255 255 / 0.22); }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--gold-light); transform-origin: top; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue i::after { animation: cue-drop 2.2s var(--ease-in-out) infinite; }
  .scroll-cue > * { animation: rise 1.2s var(--ease) 1s both; }
  .has-intro .scroll-cue > * { animation-delay: 2.3s; }
}
@keyframes cue-drop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 767px) {
  .hero-inner { padding-bottom: 112px; }
  .scroll-cue { bottom: 16px; }
}

/* ==================== Round 4: phones and tablets ==================== */

/* ---------- Dock: app-style quick links in thumb reach (desktop keeps the header nav) ---------- */

.dock { display: none; }

@media (max-width: 1023px) {
  :root { --dock-h: 64px; }
  body { padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom)); }
  /* The hero fills the screen above the dock, so its call to action is never underneath it. */
  .hero { height: calc(100dvh - var(--dock-h) - env(safe-area-inset-bottom)); min-height: 540px; }
  .soon.page-hero { min-height: calc(100dvh - var(--dock-h) - env(safe-area-inset-bottom)); }

  .dock {
    position: fixed;
    inset: auto 0 0 0;
    z-index: var(--z-header);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    /* One fixed row: the taller Enquire tile aligns to its bottom and rises out of the bar. */
    grid-template-rows: var(--dock-h);
    align-items: end;
    height: calc(var(--dock-h) + env(safe-area-inset-bottom));
    padding: 0 max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left));
    /* Frosted so the page stays faintly visible behind the bar; solid enough to keep labels legible. */
    background: rgb(5 12 24 / 0.9);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 -1px 0 var(--rule-dark), 0 -18px 40px -24px rgb(2 6 12 / 0.7);
  }
  .dock-tab, .dock-enquire {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    height: var(--dock-h);
    padding: 0;
    border: 0;
    background: none;
    font: 600 clamp(0.625rem, 2.7vw, 0.6875rem)/1 var(--font);
    letter-spacing: 0;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .dock-tab { color: var(--muted-on-dark); transition: color 0.2s; }
  .dock-tab svg { width: 24px; height: 24px; transition: transform 0.35s var(--ease); }
  .dock-tab:active svg { transform: scale(0.86); }
  .dock-tab[aria-current="page"] { color: #fff; }
  .dock-tab[aria-current="page"]::before {
    content: "";
    position: absolute;
    top: 0; left: 32%; right: 32%;
    height: 2px;
    background: var(--gold);
  }
  /* The one action that matters most, raised out of the bar. */
  .dock-enquire {
    height: calc(var(--dock-h) + 12px);
    margin-inline: 3px;
    background: var(--gold);
    color: var(--midnight);
    font-weight: 700;
    box-shadow: 0 -6px 18px -8px rgb(2 6 12 / 0.55);
    transition: transform 0.2s var(--ease), background-color 0.2s;
  }
  .dock-enquire svg { width: 22px; height: 22px; transform: rotate(-45deg); }
  .dock-enquire:active { transform: translateY(2px); background: var(--gold-light); }
  .dock-enquire[aria-current="page"] { background: var(--gold-light); }

  /* ---------- Menu: a bottom sheet (native <dialog>: focus trap, Esc and backdrop built in) ---------- */
  .sheet {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: none;
    max-height: 88dvh;
    margin: 0;
    padding: 10px var(--gutter) calc(20px + env(safe-area-inset-bottom));
    border: 0;
    background: var(--midnight);
    color: #fff;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 -24px 60px rgb(2 6 12 / 0.5);
    transform: translateY(100%);
    transition: transform 0.5s var(--ease), overlay 0.5s allow-discrete, display 0.5s allow-discrete;
  }
  .sheet[open] { transform: translateY(var(--drag, 0px)); }
  .sheet.is-dragging { transition: none; }
  .sheet::backdrop {
    background: rgb(5 12 24 / 0);
    transition: background-color 0.5s var(--ease), overlay 0.5s allow-discrete, display 0.5s allow-discrete;
  }
  .sheet[open]::backdrop { background: rgb(5 12 24 / 0.62); }
  @starting-style {
    .sheet[open] { transform: translateY(100%); }
    .sheet[open]::backdrop { background: rgb(5 12 24 / 0); }
  }
  /* The handle is a generous touch target; the bar inside it is only the visual cue. */
  .sheet-grip, .sheet-head { touch-action: none; }
  .sheet-grip { height: 22px; margin: -10px calc(var(--gutter) * -1) 0; cursor: grab; }
  .sheet-grip::before { content: ""; display: block; width: 44px; height: 4px; margin: 10px auto 0; border-radius: 2px; background: rgb(255 255 255 / 0.3); }
  .sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .sheet-title { font-size: 0.8125rem; font-weight: 600; color: var(--muted-on-dark); }
  .sheet-close { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
  .sheet-close svg { width: 22px; height: 22px; }
  .sheet-links { list-style: none; margin: 4px 0 0; padding: 0; }
  .sheet-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--rule-dark);
    color: #fff;
    font-size: 1.625rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    text-decoration: none;
  }
  .sheet-links a svg { width: 18px; height: 18px; color: var(--gold-light); transition: transform 0.3s var(--ease); }
  .sheet-links a:active svg { transform: translateX(4px); }
  .sheet-links a[aria-current="page"] { color: var(--gold-light); }
  .sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
  .sheet-actions .btn { grid-column: 1 / -1; justify-content: center; }
  .sheet-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 12px;
    border: 1px solid var(--rule-dark);
    background: none;
    color: #fff;
    font: 600 0.875rem/1.2 var(--font);
    text-decoration: none;
    cursor: pointer;
  }
  .sheet-action.is-wide { grid-column: 1 / -1; }
  .sheet-action svg { width: 20px; height: 20px; color: var(--gold-light); }
  .sheet-action[hidden] { display: none; }
  /* Links arrive one after another as the sheet rises. */
  @media (prefers-reduced-motion: no-preference) {
    .sheet[open] .sheet-links li { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
    .sheet-links li:nth-child(2) { transition-delay: 40ms; }
    .sheet-links li:nth-child(3) { transition-delay: 80ms; }
    .sheet-links li:nth-child(4) { transition-delay: 120ms; }
    .sheet-links li:nth-child(5) { transition-delay: 160ms; }
    .sheet-links li:nth-child(6) { transition-delay: 200ms; }
    @starting-style { .sheet[open] .sheet-links li { opacity: 0; transform: translateY(14px); } }
  }

  /* How we work: the stage list becomes a sticky bar that tracks your place on the page. */
  .stages-rail { display: contents; }
  .rail-list {
    position: sticky;
    top: 75px;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 20px calc(var(--gutter) * -1) 0;
    padding: 0 var(--gutter);
    border: 0;
    background: rgb(246 247 249 / 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--rule);
  }
  .rail-link { flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 4px 12px 0; }
  .rail-link::before { inset: auto 0 -1px 0; width: auto; height: 2px; transform: scaleX(0); transform-origin: left; }
  .rail-link.is-active::before { transform: scaleX(1); }
  .rail-no { font-size: 0.6875rem; }
  .rail-name { font-size: 0.9375rem; font-weight: 500; }
  .stage-panel { scroll-margin-top: 150px; }
  .stage-panel:first-child { padding-top: 32px; }
}

/* Touch screens have no hover: keep rows and cards in their resting state after a tap. */
@media (hover: none) {
  .service-link::before { display: none; }
  .service-link:hover, .service-link:focus-visible { background-color: transparent; }
  .service-link:hover h3, .service-link:hover p { transform: none; }
  .service-link:hover h3 { color: var(--ink); }
  .service-link:hover p { color: var(--text); }
  .service-link:hover .service-arrow { background: none; border-color: var(--rule); color: var(--navy); transform: none; }
  .starter-card:hover .starter-step { transform: none; }
  .starter-card:hover .starter-go { background: none; border-color: var(--rule); color: var(--navy); transform: none; }
}

/* ---------- Phones: one idea per screen, less reading, more doing ---------- */

@media (max-width: 767px) {
  :root { --section: 64px; --gutter: 20px; }
  body { font-size: 1rem; }
  h2 { font-size: clamp(1.875rem, 1.3rem + 2.6vw, 2.25rem); }
  .header-inner { height: 64px; }
  .brand img { height: 38px; }
  .rail-list { top: 63px; }

  /* Hero */
  .hero-inner { padding-bottom: 92px; }
  .hero-lead { margin-top: 18px; }
  .hero-actions { margin-top: 28px; }
  .scroll-cue { bottom: 10px; gap: 8px; }
  .scroll-cue i { height: 30px; }

  /* Services: swipeable photo cards. The next card peeks in, so it is clear there is more. */
  .services-grid { gap: 22px; }
  .services-intro { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
  .services-intro .text-link, .services-intro .btn + .text-link { margin: 0; }
  .service-cards {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    border: 0;
  }
  .service-cards::-webkit-scrollbar { display: none; }
  .service-cards li { flex: 0 0 80%; scroll-snap-align: start; border: 1px solid var(--rule); background: #fff; }
  .service-cards .service-link { display: flex; flex-direction: column; height: 100%; padding: 0; margin: 0; }
  .service-cards .service-media { aspect-ratio: 4 / 3; width: auto; }
  .service-cards .service-link h3 { padding: 18px 18px 0; font-size: 1.25rem; }
  .service-cards .service-link p { padding: 6px 18px 0; font-size: 0.9375rem; line-height: 1.55; }
  .service-cards .service-arrow { width: 40px; height: 40px; margin: 16px 18px 18px auto; align-self: flex-end; }
  /* The card in focus sits forward; neighbours recede (scroll-driven, no JS). */
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .service-cards li { animation: card-focus linear both; animation-timeline: view(inline); }
    }
  }

  /* Coverage: a shorter, calmer map; the area names become compact tags */
  .coverage { background-size: auto 46vh; }
  .coverage .coverage-map, .coverage-shade { height: 46vh; }
  .coverage-lead { margin-top: 12px; font-size: 1rem; }
  .coverage-tabs { margin-top: 20px; }
  .coverage-tabs button { min-height: 48px; padding: 6px 8px; font-size: 0.8125rem; }
  .area-list { margin-top: 16px; }
  .coverage-actions { margin-top: 22px; }
  .map-pin b { display: none; }
  .map-pin span { width: 9px; height: 9px; }

  /* Project starter: three quick choices instead of three tall boxes */
  .starter-intro { margin-top: 10px; }
  .starter-grid { margin-top: 20px; }
  .starter-card { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 18px 0; }
  .starter-step { font-size: 1.375rem; }
  .starter-text { grid-column: 1; font-size: 0.9375rem; line-height: 1.5; }
  .starter-go { grid-column: 2; grid-row: 1 / span 2; width: 44px; height: 44px; }

  /* How it works: a compact two-by-two */
  .steps-wrap { margin-top: 28px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .step { padding: 18px 0 0; }
  .step h3 { margin-top: 8px; font-size: 1.125rem; }
  .step p { margin-top: 6px; font-size: 0.875rem; line-height: 1.55; }
  .approach-cta { margin-top: 32px; }

  /* Contact band and footer */
  .contact-grid { gap: 32px; }
  .contact h2 { font-size: 2.25rem; }
  .contact-lead { margin-top: 14px; font-size: 1rem; }
  .contact .btn { width: 100%; justify-content: center; margin-top: 24px; }
  .contact-details { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .contact-details div { padding: 14px 0; }
  .contact-details div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .contact-details dd { font-size: 0.9375rem; }
  .tbc { font-size: 0.8125rem; }
  .site-footer { padding-block: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer-brand img { height: 44px; }
  .footer-brand p { margin-top: 14px; font-size: 0.875rem; }
  .footer-grid > .footer-col:nth-child(2) { grid-column: 1 / -1; }
  .footer-grid > .footer-col:nth-child(2) ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .footer-grid > .footer-col:nth-child(2) li + li { margin-top: 0; }
  .footer-col ul { margin-top: 12px; }
  .footer-col a { font-size: 0.875rem; }
  .footer-base { margin-top: 32px; padding-top: 20px; }

  /* Inner pages: shorter heroes, tighter lists, smaller display type */
  .page-hero { padding-top: 104px; }
  .page-hero.has-image { min-height: 58vh; }
  .page-title { font-size: clamp(2.25rem, 1.6rem + 3vw, 2.75rem); }
  .page-lead { margin-top: 16px; font-size: 1rem; }
  .crumbs ol { margin-bottom: 18px; font-size: 0.8125rem; }
  .points { margin-top: 24px; }
  .points li { padding: 20px 0 22px; }
  .points h3, .commit-list h3 { font-size: 1.1875rem; }
  .points p, .commit-list p { font-size: 0.9375rem; }
  .list-title { font-size: 1.375rem; }
  .tick-list li { padding: 10px 0 10px 24px; font-size: 0.9375rem; }
  .two-lists { gap: 32px; }
  .sector-row { padding: 32px 0; gap: 14px; }
  .sector-row h2 { font-size: 1.875rem; }
  .sector-lead { font-size: 1.0625rem; }
  .statement-text { font-size: 1.875rem; }
  .value-row { padding: 20px 0; gap: 8px; }
  .value-word { font-size: 3rem; }
  .commit-list { margin-top: 24px; }
  .commit-list li { padding: 20px 0; }
  .stage-big { font-size: 3.5rem; }
  .stage-panel { padding: 36px 0; }
  .stage-panel h3 { font-size: 1.75rem; margin-top: 10px; }
  .stage-lead { font-size: 1.0625rem; }
  .stage-cols { margin-top: 20px; gap: 20px; }
  .faq-list summary { padding: 18px 0; font-size: 1.0625rem; }
  .placeholder-note { margin-top: 28px; padding: 16px; }
}

@keyframes card-focus {
  0%, 100% { opacity: 0.55; transform: scale(0.94); }
  38%, 62% { opacity: 1; transform: none; }
}

/* ==================== Round 5: page-by-page critique fixes ==================== */

/* Dark surfaces keep the brand gold focus ring. */
:is(.site-header, .hero, .page-hero, .coverage, .approach, .contact, .contact-aside, .site-footer, .dock, .sheet) :focus-visible { outline-color: var(--gold); }
.enquiry input:focus-visible, .enquiry select:focus-visible, .enquiry textarea:focus-visible { box-shadow: 0 0 0 2px var(--navy); }

/* Page heroes: a stronger left scrim so painted signage in the photos never fights the title. */
@media (min-width: 768px) {
  .page-hero-media::after {
    background:
      linear-gradient(90deg, rgb(5 12 24 / 0.92) 0%, rgb(5 12 24 / 0.72) 42%, rgb(5 12 24 / 0.15) 82%),
      linear-gradient(0deg, rgb(5 12 24 / 0.75) 0%, rgb(5 12 24 / 0) 50%),
      linear-gradient(180deg, rgb(5 12 24 / 0.6) 0%, rgb(5 12 24 / 0) 24%);
  }
}
/* Compact hero (contact): the form starts in the first screen. */
.page-hero.is-compact { padding: 140px 0 48px; }
.page-hero.is-compact .page-title { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); }
.page-hero .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }

/* Home services: a photograph on every row (desktop), cards on phones. Different from the starter rows below. */
@media (min-width: 768px) {
  .service-cards .service-link { grid-template-columns: 168px minmax(0, 1fr) auto; align-items: center; }
  .service-cards .service-media { display: block; grid-row: 1 / span 2; grid-column: 1; width: 168px; aspect-ratio: 4 / 3; overflow: hidden; }
  .service-cards .service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
  .service-cards .service-link:hover .service-media img { transform: scale(1.06); }
  .service-cards .service-link h3, .service-cards .service-link p { grid-column: 2; }
  .service-cards .service-arrow { grid-column: 3; }
}
.service-cards .service-media { display: block; overflow: hidden; background: var(--navy); }
.service-cards .service-media img { width: 100%; height: 100%; object-fit: cover; }

/* Services overview: two named groups. */
.service-groups .group-title { font-size: 0.9375rem; font-weight: 600; color: var(--gold-dark); letter-spacing: 0.01em; margin-bottom: 4px; }
.service-groups .service-list + .group-title { margin-top: 48px; }

/* Where an audience row leads. */
.row-dest { grid-column: 1; font-size: 0.8125rem; font-weight: 600; color: var(--gold-dark); transition: color 0.35s var(--ease), transform 0.55s var(--ease); }
.service-link:hover .row-dest, .service-link:focus-visible .row-dest { color: var(--gold-light); transform: translateX(8px); }

/* Service detail: the four steps read left to right as a sequence on desktop. */
@media (min-width: 1024px) {
  .points-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
}
.share-cta { margin-top: 28px; }

/* Sectors: a picture under each sector name; it stays beside the text while you read. */
.sector-media { margin-top: 24px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy); }
.sector-media img { width: 100%; height: 100%; object-fit: cover; }
.sector-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }
.sector-links .text-link { margin-top: 0; }
@media (min-width: 768px) {
  .sector-head { position: sticky; top: 112px; align-self: start; }
}

/* How we work: the note sits with the heading it qualifies. */
.stages-note { margin-top: 14px; max-width: 26em; font-size: 0.9375rem; color: #535b66; }

/* FAQ: group heading left, questions right, aligned with the hero. */
@media (min-width: 1024px) {
  .faq-group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
  .faq-group .faq-list { margin-top: 0; }
}

/* Coverage: tabs on one line; area names read as a list, not as buttons. */
.coverage-panel { max-width: 520px; }
.area-list { gap: 4px 18px; }
.area-list li { padding: 4px 0; border: 0; color: var(--text-on-dark); }

/* Contact: the side panel only sticks when it fits the screen. */
@media (min-width: 900px) and (min-height: 880px) {
  .contact-aside { position: sticky; }
}
.contact-details a { color: #fff; text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }
.enquiry legend .optional { white-space: nowrap; }
@media (hover: none) { .drop-hint { display: none; } }

/* About: the values and the statement at a size that fits a glance. */
.value-word { font-size: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); }
.statement-text { font-size: clamp(1.875rem, 1.2rem + 2.2vw, 3rem); max-width: 28ch; }

@media (max-width: 1023px) {
  .stage-big { display: none; }   /* the sticky stage bar already carries the number */
}

/* Phones: comfortable tap targets for small links. */
@media (max-width: 767px) {
  .footer-col li + li, .footer-grid > .footer-col:nth-child(2) li + li { margin-top: 0; }
  .footer-col a { display: inline-block; padding-block: 10px; }
  .footer-col ul { margin-top: 4px; }
  .footer-grid > .footer-col:nth-child(2) ul { gap: 0 16px; }
  .crumbs a { display: inline-block; padding-block: 12px; margin-block: -12px; }
  .text-link { min-height: 44px; }
  .footer-base a { display: inline-block; padding-block: 12px; }
  .scroll-cue { bottom: 16px; }
  .list-title { font-size: 1.5rem; }
}

/* The narrowest phones (320px): a long label wraps onto two centred lines rather than overflow its tab. */
@media (max-width: 350px) {
  .dock-tab span { white-space: normal; text-align: center; line-height: 1.1; }
}
