/* ==========================================================================
   Miltons of Pimlico Ltd
   Tokens → base → layout → motif → components → pages → responsive → a11y
   Colour tokens mirror /js/tokens.js. Change them in both places or not at all.
   ========================================================================== */

:root {
  --ink: #0C0B11;
  --ink-2: #16151F;
  --ink-3: #22202E;
  --paper: #F4F2EE;
  --accent: #417BC7;
  /* Brand blue measures 3.72:1 on --ink-3, below AA for text. Text and
     icons use this lighter tint (4.8:1 on --ink-3, 5.9:1 on --ink);
     fills and borders keep the logo blue. */
  --accent-text: #5A8FD6;

  /* Tints of --paper over --ink, measured against #0C0B11:
       .74 → 10.3:1    .66 → 8.0:1    .58 → 6.3:1   (AA needs 4.5:1)
     The names are historical. --paper-35 was once .36 (3.05:1, a fail) and
     then .50, which passed AA on paper but still left the drawing codes,
     field labels and card meta — all real copy — reading as greyed out.
     Each step now sits clearly inside AA rather than on its edge. */
  --paper-70: rgba(244, 242, 238, .74);
  --paper-50: rgba(244, 242, 238, .66);
  --paper-35: rgba(244, 242, 238, .58);
  --rule: rgba(244, 242, 238, .16);
  --rule-soft: rgba(244, 242, 238, .09);

  --font-display: 'Archivo', 'Archivo fallback', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Inter fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Plex Mono fallback', ui-monospace, 'SFMono-Regular', monospace;

  /* Sized so the four-line headline, its lead and its actions all clear the
     fold at 100svh without the hero scrolling. */
  --fs-hero: clamp(2.6rem, 8.4vw, 8.25rem);
  /* Minimum sized so the longest word in any section title still fits a 320px
     content column without hyphenating. */
  --fs-xxl: clamp(2.15rem, 7.6vw, 7rem);
  --fs-xl: clamp(2.1rem, 5vw, 4.4rem);
  --fs-lg: clamp(1.65rem, 3vw, 2.6rem);
  --fs-md: clamp(1.2rem, 1.7vw, 1.55rem);
  --fs-body: clamp(1rem, .55vw + .85rem, 1.1rem);
  --fs-sm: .9375rem;
  /* 13px, and nothing on the site is set smaller. The mono annotation face is
     the drawing-label voice and wants to be small, but it carries real
     content — service scopes, project sectors, field labels, the footer — and
     at 11–12px with wide tracking that content read as fine print. Tracking
     comes in as the size goes up, so lines stay about the length they were. */
  --fs-mono: .8125rem;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section: clamp(5rem, 10vw, 10rem);
  --max: 1560px;

  /* Mirrors ease.hop in /js/tokens.js. CSS hover/state transitions and the
     GSAP motion system must share one curve, or interactions feel like two
     different sites. Change it in both places or not at all. */
  --ease-hop: cubic-bezier(.16, 1, .3, 1);

  --nav-h: 78px;
  --z-nav: 60;
  --z-overlay: 90;
  --z-cursor: 100;
}

/* ----------------------------------------------------- fallback metrics --- */
/*
 * The webfonts are fetched from Google Fonts and swap in after first paint, so
 * for a moment the page is set in a local face of a different width. The hero
 * is bottom-aligned inside 100svh, so a headline that rewraps from three lines
 * to four moves everything above it — measured as ~0.12 CLS on the home page.
 *
 * These faces let the local fallback stand in at the *same* width. size-adjust
 * is the measured ratio of the real face to its fallback over a mixed sample at
 * 100px, so the fallback wraps on the same words and the swap costs no layout.
 * Re-measure if a family or its fallback stack changes.
 */
@font-face {
  font-family: 'Archivo fallback';
  src: local('Helvetica Neue'), local('Arial'), local('Liberation Sans');
  size-adjust: 105.2%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Inter fallback';
  src: local('Helvetica Neue'), local('Arial'), local('Liberation Sans');
  size-adjust: 111.3%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Plex Mono fallback';
  src: local('Menlo'), local('Consolas'), local('DejaVu Sans Mono');
  size-adjust: 121.1%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* --------------------------------------------------------------- reset --- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto; /* ScrollSmoother owns scrolling; never fight it */
  /* Tells the browser the page is dark, so the parts it draws itself — the
     scrollbar, the project-type option list, autofill menus — stop arriving
     in light-theme white on an ink page. */
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 350;
  line-height: 1.55;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: .92; letter-spacing: -.03em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
/* figure and blockquote default to `margin: 1em 40px` in every UA. Left in, the
   40px inset every .figure on the site out of alignment with its grid column
   and squeezed the pull quote's measure. Spacing here is the layout's job. */
figure, blockquote, dl, dd, fieldset { margin: 0; }
fieldset { padding: 0; border: 0; min-width: 0; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
/* Content images arrive wrapped in <picture> (AVIF and WebP sources around a
   JPEG). Taking the wrapper out of layout leaves the <img> as the child of its
   figure or card, so every rule written for `.figure img` still applies. */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
input, select, textarea { font: inherit; color: inherit; }

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

/* --------------------------------------------------------- smoothing ----- */
/* Applied by smoother.js only once ScrollSmoother is confirmed present, so a
   failed CDN or reduced-motion never leaves the page unscrollable. */
html.smooth-ready #smooth-wrapper {
  position: fixed;
  inset: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

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

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.035em;
  /* Last-resort guard for very long words at the smallest viewports. */
  overflow-wrap: break-word;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper-50);
}

.lead {
  font-size: var(--fs-md);
  line-height: 1.42;
  color: var(--paper-70);
  font-weight: 300;
  letter-spacing: -.015em;
}

.body-lg { font-size: 1.0625rem; color: var(--paper-70); }
.accent { color: var(--accent-text); }

/* SplitText output. `overflow: clip` on the mask is set by SplitText itself,
   and it clips at the line box — which is shorter than the glyphs at our
   display line-height, so ascenders and descenders would be cut off. Padding
   extends the clip region; the matching negative margin keeps the line spacing
   and the overall block height exactly as they were. */
.mp-line, .mp-word { will-change: transform; }

.mp-mask-line-mask {
  padding-block: .09em .16em;
  margin-block: -.09em -.16em;
}

/* ------------------------------------------------------------ layout ----- */

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

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--flush-top { padding-top: 0; }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

.cols {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

/* Grid items default to min-width:auto, so a long word in display type forces
   its track wider than the container and pushes the row past the viewport.
   Pinning to 0 keeps every item inside its track. */
.cols > * { min-width: 0; }

.stack > * + * { margin-top: 1.5rem; }

/* ---------------------------------------------- motif: drawing plate ----- */
/* The site's one structural device: a title-block frame with corner ticks and
   a mono field strip. Used for section heads, cards, stats and data tables. */

.plate {
  position: relative;
  border: 1px solid var(--rule-soft);
  background: linear-gradient(180deg, rgba(244, 242, 238, .028), transparent 60%);
}

.plate::before,
.plate::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--paper-35);
  pointer-events: none;
}
.plate::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.plate::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.plate--accent::before, .plate--accent::after { border-color: var(--accent); }

.field {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  padding: .85rem 1.15rem;
  border-top: 1px solid var(--rule-soft);
}
.field:first-child { border-top: 0; }
/* The label never wraps; the value does, and takes whatever room is left. */
.field dt { flex: none; font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--paper-35); }
.field dd { min-width: 0; margin: 0; font-family: var(--font-mono); font-size: .875rem; letter-spacing: .03em; color: var(--paper); text-align: right; overflow-wrap: anywhere; }

/* In a narrow plate (a phone, or a four-column slot on a small laptop) there
   is no room for label and value side by side, and the value was squeezed
   into a ragged right-aligned column three or four lines deep. Below 23rem
   the pair stacks instead. */
@supports (container-type: inline-size) {
  .plate { container-type: inline-size; }
  @container (max-width: 23rem) {
    .field { flex-direction: column; gap: .3rem; }
    .field dd { text-align: left; }
  }
}

/* Hoarding stripe — the secondary motif. Rationed to section joints. */
.hoard {
  height: 6px;
  border: 0;
  margin: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 10px,
    transparent 10px 20px
  );
  opacity: .85;
}

/* Section head: mono eyebrow (drawing number) + display title */
/* minmax(0, 1fr) rather than the implicit track: otherwise the column is sized
   to the longest word in the display title and overflows its container. */
.head { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.head > * { min-width: 0; }

.head__eyebrow { display: flex; align-items: center; gap: .75rem; }
.head__eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--accent);
  flex: none;
}
.head__title { font-size: var(--fs-xxl); }
.head__title .accent { color: var(--accent-text); }

/* Display type is sized off the column it sits in, never the viewport alone.
   A section head is used full width and inside four-, five- and six-column
   slots; sized off the viewport, the longer words did not fit the narrower
   slots and `overflow-wrap` cut them in two (CONTRACTO/R, CONSTRUCTI/ON).

   --fit is the ceiling that keeps the longest word on one line. Measured at
   weight 800 / stretch 112%, the widest word in any section head is
   CONSTRUCTION at 9.17em, so 10.4cqi leaves it at 95% of the column. A title
   carrying a longer word sets a tighter --fit inline (REFURBISHMENTS is
   10.61em and takes 9cqi). Re-measure when the copy changes: the
   `overflow-wrap` on .display is still there as the last resort, and a word
   that needs it is a word this ceiling is wrong for.

   The viewport-sized values above stay as the fallback where container
   queries are unavailable. */
@supports (container-type: inline-size) {
  .head,
  .cols > *,
  .hero__inner,
  .page-hero > .shell:not(.cols),
  .cta > .shell { container-type: inline-size; }

  .head__title {
    font-size: min(7rem, var(--fit, 10.4cqi));
    /* Several heads step down to --fs-xl through an inline style, which would
       otherwise put them back on the viewport. Redefining the token here keeps
       them on the same ceiling without touching the markup. */
    --fs-xl: min(clamp(2.1rem, 5vw, 4.4rem), var(--fit, 10.4cqi));
  }
}
/* .hero__title, .page-hero__title and .cta__title take the same ceiling, set
   beside their own rules further down so the cascade order stays obvious. */

/* ----------------------------------------------------------- buttons ----- */

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: 1.05rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}

.btn__label { position: relative; z-index: 1; }

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--paper);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .42s var(--ease-hop);
}
.btn:hover::after, .btn:focus-visible::after { transform: scaleY(1); transform-origin: top; }
.btn:hover, .btn:focus-visible { color: var(--ink); }

.btn__arrow { position: relative; z-index: 1; width: 12px; height: 12px; flex: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  border: 1px solid var(--rule);
}
.btn--ghost::after { background: var(--accent); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--ink); border-color: var(--accent); }

/* Text link with a rule that draws in from the left */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding-bottom: .3rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-hop);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* --------------------------------------------------------------- nav ----- */

.skip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 200;
  padding: 1rem 1.4rem;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transform: translateY(-110%);
}
.skip:focus { transform: translateY(0); }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color .4s ease, backdrop-filter .4s ease;
}
/* Before the bar sticks it has no background of its own, which is right on the
   plain ink pages and wrong on the home hero: the links sat straight on a
   photograph, competing with scaffold and street lamps. This scrim is ink
   fading to nothing, so it is invisible on ink and only does work over an
   image. It hands over to the solid bar below as soon as the page scrolls. */
.nav::before {
  content: '';
  position: absolute;
  inset: 0 0 -3rem;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(12, 11, 17, .86), rgba(12, 11, 17, .5) 52%, rgba(12, 11, 17, 0));
  pointer-events: none;
  transition: opacity .4s ease;
}
.nav.is-stuck::before { opacity: 0; }
.nav.is-stuck {
  background: rgba(12, 11, 17, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand { display: flex; align-items: center; flex: none; }
/* The artwork is light-on-transparent and tightly cropped to its viewBox, so
   height alone sets the size and the intrinsic 3.97:1 ratio does the rest.
   width:auto has to be explicit: the width/height attributes on the tag are
   there to reserve layout space, and without it they would also fix the box. */
.brand__logo { display: block; height: 34px; width: auto; flex: none; }

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.1rem); }
.nav__link {
  position: relative;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper-70);
  padding-block: .35rem;
  transition: color .3s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-hop);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--paper); }
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current='page'] { color: var(--paper); }
.nav__link[aria-current='page']::after { transform: scaleX(1); }

.nav__end { display: flex; align-items: center; gap: clamp(.75rem, 1.5vw, 1.5rem); }
.nav__cta { display: inline-flex; padding: .8rem 1.15rem; }
.nav__phone {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: .06em;
  color: var(--paper);
  white-space: nowrap;
  transition: color .3s ease;
}
.nav__phone:hover, .nav__phone:focus-visible { color: var(--accent-text); }

.nav__toggle { display: none; }

/* The off-canvas wrapper only exists as a box below the mobile breakpoint. Up
   here it is `contents`, so <nav class="nav__links"> stays a direct flex item
   of .nav__inner and the header row lays out exactly as it did before the
   wrapper was introduced. */
.nav__panel { display: contents; }
.nav__panel-foot { display: none; }
.nav__idx { display: none; }

/* ----------------------------------------------------------- overlay ----- */
/* Sits outside #smooth-wrapper so transitions are unaffected by smoothing. */

.overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  pointer-events: none;
  display: grid;
  /* One row, however many panels there are. An explicit column count has to be
     kept in step with the markup by hand, and when it drifts the panels wrap:
     five panels in three columns became two half-height rows with the
     bottom-right cell left uncovered, which is exactly the gap that showed
     through the wipe on phones. Auto columns cannot drift — add or remove a
     span and the row still tiles the full width. The meta block is absolutely
     positioned, so it stays out of the flow and never becomes a column. */
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
}
.overlay__panel {
  background: var(--ink-2);
  transform: scaleY(0);
  transform-origin: bottom;
  will-change: transform;
}
.overlay__panel:first-child { background: var(--ink-3); }

/* First load starts covered.
   The plate has to be down at the *first paint*, which is before any of the
   motion layer exists — so it is CSS that closes it, not GSAP. Only under .js:
   with no script there is nothing to lift it again. transitions.js opens it
   once the page is built and the webfonts are in, which is the moment the
   layout stops moving. The .no-js failsafe below is the escape hatch if the
   motion layer never boots. */
.js .overlay__panel { transform: scaleY(1); }
.js .overlay__meta { opacity: 1; }

.overlay__meta {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(1.5rem, 5vh, 3rem);
  display: flex;
  align-items: center;
  gap: .8rem;
  opacity: 0;
}
.overlay__meta .bar { width: 30px; height: 1px; background: var(--accent); }

/* ------------------------------------------------------------ cursor ----- */

/* The native pointer is suppressed so the dot and ring are the only cursor on
   screen. Two gates, and both are load-bearing:

   .has-cursor is set by cursor.js at the moment it actually mounts, and it
   declines to mount on touch and under reduced motion — so the class is the
   only honest signal that a replacement exists to hide the pointer for.

   The breakpoint mirrors the `.cursor { display: none }` rule below it. A
   narrow desktop window still has a fine pointer, so cursor.js mounts and the
   class is set, but the custom cursor is hidden by CSS at that width — hiding
   the native one there as well would leave no cursor at all.

   The universal selector is needed because `cursor` is not inherited past any
   element that sets its own: every `cursor: pointer` below would otherwise
   punch the arrow back through on exactly the elements the ring is reacting
   to. Text fields are included deliberately — the ring reports the hover, and
   a lone I-beam would read as a bug rather than an affordance. */
@media (min-width: 768px) {
  .has-cursor, .has-cursor * { cursor: none !important; }
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-cursor);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.cursor.is-live { opacity: 1; }

/* Centring is owned by GSAP (xPercent/yPercent -50 in cursor.js), never by a
   margin. A negative margin is a fixed pixel value, so it cannot stay half the
   ring's size while width/height transition between the three states below —
   which is what threw the ring off the pointer on every hover. A percentage
   translate is re-resolved against the current box on each frame instead. */
.cursor__dot,
.cursor__ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
}
.cursor__dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  transition: opacity .25s ease;
}
/* The dot tracks the pointer exactly, and the label is centred on that same
   point — so once a label is showing, the dot lands in the middle of the word
   and punches an accent-coloured hole through a letter. It has nothing to add
   there either: the filled 92px ring already marks the pointer far more
   plainly than 5px could. Fade rather than switch, on the same .25s as the
   label, so the two cross over instead of one popping. */
.cursor.is-labelled .cursor__dot { opacity: 0; }
.cursor__ring {
  width: 34px;
  height: 34px;
  border: 1px solid var(--paper-35);
  display: grid;
  place-items: center;
  transition: width .35s var(--ease-hop), height .35s var(--ease-hop), border-color .35s ease, background-color .35s ease;
}
.cursor.is-hover .cursor__ring { width: 58px; height: 58px; border-color: var(--accent); }
.cursor.is-labelled .cursor__ring { width: 92px; height: 92px; background: var(--accent); border-color: var(--accent); }
.cursor__label {
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transition: opacity .25s ease;
  text-align: center;
}
.cursor.is-labelled .cursor__label { opacity: 1; }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: clamp(2.5rem, 6vh, 5rem);
  overflow: hidden;
}

.hero__canvas,
.hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Keeps the structure legible at the edges and out of the way behind type. */
  -webkit-mask-image: radial-gradient(115% 95% at 64% 44%, #000 18%, rgba(0,0,0,.68) 55%, rgba(0,0,0,.18) 88%);
  mask-image: radial-gradient(115% 95% at 64% 44%, #000 18%, rgba(0,0,0,.68) 55%, rgba(0,0,0,.18) 88%);
}
.hero__poster { object-fit: cover; opacity: .5; }
/* Phones never run the animated hero (MEDIA.mobile in js/env.js), so the still
   image is shown straight away rather than when home.js gets round to it. */
@media (max-width: 767px) {
  .hero__poster[hidden] { display: block; }
}
.hero__inner { position: relative; z-index: 1; width: 100%; }

/* Hidden until the intro timeline takes over, so the un-split headline never
   flashes before SplitText masks it. Revealed in the same tick by home.js, and
   forced visible by the .no-js failsafe if the motion layer never boots. */
.js .hero__title { visibility: hidden; }
.no-js .hero__title { visibility: visible !important; }

.hero__title {
  font-size: var(--fs-hero);
  margin-block: clamp(1.5rem, 4vh, 3rem) clamp(1.5rem, 4vh, 2.5rem);
  max-width: 15ch;
}
.hero__title .accent { color: var(--accent-text); }
/* PROGRAMME is 7.62em wide, which the 2.6rem floor of --fs-hero overruns on a
   320px screen. The ceiling is inert everywhere the headline already fits. */
@supports (container-type: inline-size) {
  .hero__title { font-size: min(var(--fs-hero), 12.6cqi); }
}

.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-top: clamp(1.5rem, 3vh, 2.5rem);
  border-top: 1px solid var(--rule-soft);
}
.hero__lead { max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Pinned to the right edge and vertically centred, clear of the actions that
   sit bottom-right inside .hero__foot. */
.hero__scroll {
  position: absolute;
  right: clamp(.4rem, 1.2vw, 1rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
}
.hero__scroll .mono { writing-mode: vertical-rl; letter-spacing: .3em; }
.hero__scroll .tick { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); }

/* ----------------------------------------------------------- pillars ----- */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule-soft); border: 1px solid var(--rule-soft); }
.pillar { background: var(--ink); padding: clamp(1.75rem, 3.2vw, 3rem); display: grid; gap: 1.25rem; align-content: start; position: relative; }
.pillar__index { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .12em; color: var(--accent-text); }
/* These titles are whole sentences ("Below-slab drainage was not where the
   record drawings said"), and at --fs-lg in a one-third column they ran five
   to seven lines of capitals — louder than the section heading above them.
   Sized off the card instead, they settle at two to four lines and read as
   the third level of the hierarchy, which is what they are. */
.pillar__title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 800;
  font-stretch: 108%;
  line-height: 1.04;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
@supports (container-type: inline-size) {
  .pillar { container-type: inline-size; }
  .pillar__title { font-size: clamp(1.4rem, 7.4cqi, 1.75rem); }
}
.pillar__proof {
  margin-top: .5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: .02em;
  color: var(--paper-70);
  line-height: 1.65;
}

/* ------------------------------------------------------ service index ---- */

.svc-list { border-top: 1px solid var(--rule-soft); }

.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.1rem, 2.4vw, 1.9rem);
  border-bottom: 1px solid var(--rule-soft);
  transition: color .4s ease;
}
.svc-row__code { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .1em; color: var(--paper-35); white-space: nowrap; transition: color .4s ease; }
.svc-row__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 100%;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3.4vw, 3rem);
  line-height: 1;
  letter-spacing: -.03em;
  transition: transform .5s var(--ease-hop), color .4s ease;
}
.svc-row__meta { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .08em; color: var(--paper-50); text-align: right; }
.svc-row:hover .svc-row__code, .svc-row:focus-visible .svc-row__code { color: var(--accent-text); }
.svc-row:hover .svc-row__title, .svc-row:focus-visible .svc-row__title { transform: translateX(clamp(.5rem, 1.5vw, 1.4rem)); }
.svc-row::before {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .55s var(--ease-hop);
}
.svc-row:hover::before, .svc-row:focus-visible::before { transform: scaleX(1); transform-origin: left; }

/* Cursor-following preview, desktop pointer only */
.svc-preview {
  position: fixed;
  top: 0; left: 0;
  width: 260px;
  height: 320px;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------- projects ----- */

.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter {
  padding: .7rem 1.15rem;
  border: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper-50);
  cursor: pointer;
  transition: color .3s ease, border-color .3s ease, background-color .3s ease;
}
.filter:hover { color: var(--paper); border-color: var(--rule); }
.filter[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.filter__count { color: inherit; opacity: .6; margin-left: .5rem; }

.grid-projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.grid-projects--3 { grid-template-columns: repeat(3, 1fr); }

.card { position: relative; display: block; }
.card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--ink-2);
  border: 1px solid var(--rule-soft);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  transition: transform .8s var(--ease-hop), filter .6s ease;
}
.card:hover .card__media img, .card:focus-visible .card__media img { transform: scale(1.045); filter: grayscale(.55) contrast(1.1); }
.card__tag {
  position: absolute;
  top: 0; left: 0;
  padding: .55rem .8rem;
  background: var(--ink);
  border-right: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.card__body { padding-top: 1.4rem; display: grid; gap: .7rem; }
.card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 105%;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  line-height: 1.02;
}
.card:hover .card__title, .card:focus-visible .card__title { color: var(--accent-text); }
.card__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.card__meta span { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--paper-50); }

/* ------------------------------------------------------------ sectors ---- */

.marquee { overflow: hidden; border-block: 1px solid var(--rule-soft); padding-block: clamp(1.1rem, 2vw, 1.75rem); }
.marquee__track { display: flex; align-items: center; gap: clamp(2rem, 4vw, 4rem); width: max-content; }
.marquee__item {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  letter-spacing: -.02em;
  color: var(--paper-70);
  white-space: nowrap;
}
.marquee__item::after { content: ''; width: 9px; height: 9px; background: var(--accent); flex: none; }

/* ----------------------------------------------------------- process ----- */

.process { position: relative; border-top: 1px solid var(--rule-soft); }

/* The setting-out line the timeline draws as you scroll it. Scaled from the top
   by about.js; static and full height under reduced motion. */
.process__line {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--accent);
  transform-origin: top;
}

.process__step {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: clamp(1rem, 3vw, 3rem);
  /* Clears the setting-out line at left: 0. Padding rather than a margin, so
     the rule below each step still runs the full width of the block. */
  padding-left: clamp(1.15rem, 2vw, 1.85rem);
  padding-block: clamp(1.75rem, 3vw, 2.75rem);
  border-bottom: 1px solid var(--rule-soft);
  align-items: start;
}
.process__num { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .12em; color: var(--accent-text); }
.process__title { font-size: var(--fs-lg); font-family: var(--font-display); font-stretch: 105%; text-transform: uppercase; }
.process__body { color: var(--paper-70); font-size: 1rem; }
.process__body .mono { display: block; margin-top: .9rem; color: var(--paper-50); letter-spacing: .08em; }

/* --------------------------------------------------------- accordion ----- */

.acc { border-top: 1px solid var(--rule-soft); }
.acc__item { border-bottom: 1px solid var(--rule-soft); }
.acc__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  padding-block: clamp(1.25rem, 2.4vw, 1.85rem);
  text-align: left;
  cursor: pointer;
  color: var(--paper);
  transition: color .3s ease;
}
.acc__trigger:hover { color: var(--accent-text); }
.acc__q { font-size: clamp(1.05rem, 1.6vw, 1.35rem); font-weight: 400; letter-spacing: -.02em; }
.acc__icon { position: relative; width: 14px; height: 14px; flex: none; }
.acc__icon::before, .acc__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform .45s var(--ease-hop), opacity .3s ease;
}
.acc__icon::before { top: 6.5px; left: 0; width: 14px; height: 1px; }
.acc__icon::after { left: 6.5px; top: 0; width: 1px; height: 14px; }
.acc__trigger[aria-expanded='true'] .acc__icon { color: var(--accent-text); }
.acc__trigger[aria-expanded='true'] .acc__icon::after { transform: scaleY(0); }
.acc__panel { overflow: hidden; }
.acc__panel-inner { padding-bottom: clamp(1.25rem, 2.4vw, 1.85rem); max-width: 68ch; color: var(--paper-70); }

/* -------------------------------------------------------------- form ----- */

.form { display: grid; gap: 1.5rem; }
.form__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.field-group { display: grid; gap: .55rem; }
.field-group label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper-70);
}
.field-group .req { color: var(--accent-text); }

/* Fields were --ink-2 on --ink with a 9%-alpha border: a 1.1:1 box that you
   found by reading the label and guessing where it ended. The border is now
   the first tint that clears 3:1 against both the page and the field's own
   fill (WCAG 1.4.11), and each state changes more than one thing, so focus
   and error are no longer the same blue outline. */
.input {
  width: 100%;
  padding: .95rem 1rem;
  background: var(--ink-2);
  border: 1px solid rgba(244, 242, 238, .36);
  /* iOS rounds and glosses text fields unless both of these are set. */
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  color: var(--paper);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.input::placeholder { color: rgba(244, 242, 238, .54); opacity: 1; }
.input:hover { border-color: var(--paper-50); }
.input:focus {
  outline: none;
  border-color: var(--accent-text);
  background: var(--ink-3);
  box-shadow: 0 0 0 3px rgba(65, 123, 199, .4);
}
/* Browser autofill paints its own pale fill and dark text, which lands as a
   white slab in a dark form. An inset shadow is the only thing it lets through. */
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--paper);
  caret-color: var(--paper);
  box-shadow: 0 0 0 100px var(--ink-3) inset;
}
.input:-webkit-autofill:focus { box-shadow: 0 0 0 100px var(--ink-3) inset, 0 0 0 3px rgba(65, 123, 199, .4); }
textarea.input { min-height: 150px; resize: vertical; }
select.input {
  background-image: linear-gradient(45deg, transparent 50%, var(--paper-70) 50%), linear-gradient(135deg, var(--paper-70) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.75rem;
  cursor: pointer;
}
/* The site has one accent and no second hue, so an error cannot be red. It is
   told apart from focus by shape instead: a solid paper edge down the left of
   the field and a marked message, where focus is a blue ring all round. */
.input[aria-invalid='true'] {
  border-color: var(--paper);
  box-shadow: inset 3px 0 0 var(--paper);
}
.input[aria-invalid='true']:focus { box-shadow: inset 3px 0 0 var(--paper), 0 0 0 3px rgba(65, 123, 199, .4); }

.error {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: .04em;
  color: var(--paper);
  min-height: 1em;
}
.error:not(:empty)::before {
  content: '';
  display: inline-block;
  width: .5em;
  height: .5em;
  margin-right: .6em;
  background: var(--paper);
  vertical-align: .08em;
}

.form__status {
  padding: 1rem 1.15rem;
  border: 1px solid var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: .06em;
  color: var(--paper);
}
.form__status[hidden] { display: none; }

/* ---------------------------------------------------------- contact ------ */

/* The office location. A setting-out point on the drawing grid rather than a
   map: the panel is one link that opens the address in Google Maps, so the
   page itself never loads a third-party map (see the CSP in nginx/site.conf). */
.map {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  width: 100%;
  aspect-ratio: 16 / 11;
  background-color: var(--ink-2);
  background-image:
    linear-gradient(var(--rule-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-soft) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center;
  border: 1px solid var(--rule);
  overflow: hidden;
  transition: border-color .3s ease, background-color .3s ease;
}
.map__pin {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.1rem;
  padding: 1.25rem 1rem;
  text-align: center;
}
.map__dot {
  position: relative;
  width: 12px;
  height: 12px;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(65, 123, 199, .22), 0 0 0 22px rgba(65, 123, 199, .09);
}
/* Cross-hair struck through the pin. Hung off the dot so the lines stay on it
   wherever the address wraps; .map clips them at the panel edge, and the
   address label and the action bar sit above them in paint order. */
.map__dot::before,
.map__dot::after {
  content: '';
  position: absolute;
  background: var(--accent);
  opacity: .5;
  pointer-events: none;
}
.map__dot::before { top: 50%; left: -100vw; right: -100vw; height: 1px; }
.map__dot::after { left: 50%; top: -100vh; bottom: -100vh; width: 1px; }
.map__addr {
  padding: .55rem .85rem;
  background: var(--ink);
  border: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: .8125rem;
  line-height: 1.55;
  letter-spacing: .04em;
  color: var(--paper);
}
.map__cta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding: 0 1.15rem;
  background: var(--ink);
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper);
  transition: background-color .3s ease, color .3s ease;
}
.map:hover, .map:focus-visible { border-color: var(--accent); }
.map:hover .map__cta, .map:focus-visible .map__cta { background: var(--accent); color: var(--ink); }

/* ------------------------------------------------------------ figures ---- */

.figure { position: relative; overflow: hidden; border: 1px solid var(--rule-soft); background: var(--ink-2); }
.figure img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); }
/* Parallax media: the image is oversized inside a clipping box so vertical
   drift never exposes an edge and never changes layout height. */
.media-parallax { position: relative; overflow: hidden; }
.media-parallax img {
  position: absolute;
  left: 0;
  top: -8%;
  width: 100%;
  height: 116%;
  object-fit: cover;
}

.figure--tall { aspect-ratio: 4 / 5; }
.figure--wide { aspect-ratio: 16 / 9; }

/* An image that is the only thing in its column runs the full height of the
   row. Left at its own aspect ratio it stopped wherever the ratio said, and
   the text column beside it carried on for another few hundred pixels next to
   a hole. Its aspect ratio still sets the *minimum* height (it is what sizes
   the row when the image is the taller side), and still applies as-is once
   the columns stack. object-fit: cover on the image absorbs the difference. */
@media (min-width: 961px) {
  .cols > :has(> .figure:only-child) { display: grid; }
  .cols > * > .figure:only-child { width: 100%; height: 100%; }
}
.figure figcaption {
  position: absolute;
  left: 0; bottom: 0;
  padding: .6rem .85rem;
  background: var(--ink);
  border-top: 1px solid var(--rule-soft);
  border-right: 1px solid var(--rule-soft);
}

/* --------------------------------------------------------- case study ---- */

.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(4rem, 12vh, 9rem));
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}
.page-hero__title { font-size: var(--fs-xxl); max-width: 18ch; margin-top: 1.5rem; }
@supports (container-type: inline-size) {
  .page-hero__title { font-size: min(var(--fs-xxl), var(--fit, 10.4cqi)); }
}
.page-hero__lead { margin-top: clamp(1.5rem, 3vw, 2.5rem); max-width: 52ch; }

.quote { max-width: 30ch; }
.quote__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 100%;
  font-size: var(--fs-xl);
  line-height: 1.02;
  letter-spacing: -.03em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}
.quote__mark { color: var(--accent-text); }
.quote figcaption { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--rule-soft); }

.checks { display: grid; gap: .9rem; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: .9rem; align-items: start; color: var(--paper-70); }
.checks li::before {
  content: '';
  width: 12px; height: 7px;
  margin-top: .55rem;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

.pager { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule-soft); }
.pager__item { padding: clamp(1.75rem, 3.5vw, 3rem) 0; display: grid; gap: .8rem; }
.pager__item + .pager__item { border-left: 1px solid var(--rule-soft); padding-left: clamp(1.5rem, 3vw, 3rem); text-align: right; justify-items: end; }
/* These are spans, so they inherited the body weight (350) and sat as thin
   grey-ish capitals under every other title on the site, all of which are 800. */
.pager__title { font-family: var(--font-display); font-weight: 800; font-stretch: 105%; line-height: 1; letter-spacing: -.03em; text-transform: uppercase; font-size: var(--fs-lg); transition: color .3s ease; }
.pager__item:hover .pager__title, .pager__item:focus-visible .pager__title { color: var(--accent-text); }

/* ---------------------------------------------------------------- CTA ---- */

.cta { position: relative; padding-block: clamp(5rem, 11vw, 10rem); border-top: 1px solid var(--rule-soft); }
.cta__title { font-size: var(--fs-xxl); max-width: 16ch; }
@supports (container-type: inline-size) {
  .cta__title { font-size: min(var(--fs-xxl), var(--fit, 10.4cqi)); }
}
.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(2rem, 4vw, 3rem); }

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

/* The footer used to be four thin columns of 12px grey mono and nothing else:
   no mark, no way to act, and the company's legal line set in tracked capitals.
   It now opens with the logo, one line on what the firm does and the two ways
   to reach it, sits on its own surface so the page visibly ends, and sets the
   legal line as a sentence. */
.footer {
  border-top: 1px solid var(--rule);
  background: var(--ink-2);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}

.footer__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--rule-soft);
}
.footer__brand { display: block; flex: none; }
.footer__brand img { display: block; height: 46px; width: auto; }
.footer__strap { max-width: 46ch; font-size: 1.0625rem; line-height: 1.5; color: var(--paper-70); }
.footer__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 1rem 1.75rem; }
.footer__phone {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 105%;
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
  transition: color .3s ease;
}
.footer__phone:hover, .footer__phone:focus-visible { color: var(--accent-text); }

.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 4rem); }
.footer__title { font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-50); margin-bottom: 1.15rem; }
.footer__list { display: grid; gap: .65rem; }
.footer__list a, .footer__list span { font-size: 1rem; color: var(--paper-70); transition: color .3s ease; }
.footer__list a:hover, .footer__list a:focus-visible { color: var(--accent-text); }
.footer__addr { font-family: var(--font-mono); font-size: .875rem; line-height: 1.85; letter-spacing: .02em; color: var(--paper-70); font-style: normal; }
.footer__addr a { transition: color .3s ease; }
.footer__addr a:hover, .footer__addr a:focus-visible { color: var(--accent-text); }
.footer__list.footer__addr span { font-size: inherit; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-soft);
}
/* Company particulars are a sentence, not a label. */
.footer__bottom > .mono { max-width: 78ch; text-transform: none; letter-spacing: .01em; line-height: 1.7; }
.footer__legal { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
.footer__legal a { transition: color .3s ease; }
.footer__legal a:hover, .footer__legal a:focus-visible { color: var(--paper); }
.accreds { display: flex; flex-wrap: wrap; gap: .5rem; }
.accreds li {
  padding: .45rem .7rem;
  border: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper-50);
}

/* ------------------------------------------------ client testimonials ---- */

/* The display treatment above (.quote__text: uppercase, --fs-xl) suits a
   six-word statement. A client's own words run to two or three sentences and
   are read, not glanced at, so they are set in sentence case at reading size. */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }
.quote--client { max-width: 52ch; }
.quote--client .quote__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-md);
  line-height: 1.45;
  letter-spacing: -.015em;
  text-transform: none;
  color: var(--paper);
}
.quotes--single .quote--client { max-width: 46ch; }
.quotes--single .quote__text { font-size: var(--fs-lg); line-height: 1.28; }
.quote--client figcaption { display: grid; gap: .35rem; }
.quote__name { font-weight: 600; color: var(--paper); }

/* --------------------------------------------------------------- team ---- */

.team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}
.team__member { display: grid; gap: .45rem; align-content: start; }
.team__photo { margin-bottom: .8rem; }
.team__name { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; color: var(--paper); }
.team__bio { margin-top: .3rem; font-size: var(--fs-sm); color: var(--paper-70); }

/* ----------------------------------------------------- accreditations ---- */

/* Scheme logos are drawn for white paper, so each gets a light plate of its
   own; on the site's dark ground most of them would disappear. */
.accreds--logos { gap: .75rem; align-items: stretch; }
.accreds--logos li {
  display: grid;
  gap: .45rem;
  justify-items: center;
  align-content: center;
  padding: .8rem 1.1rem;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: .08em;
}
.accreds--logos img { width: auto; height: 56px; max-width: none; }
.accreds--logos a { display: block; }
.accreds__no { font-size: .6875rem; }
.footer__accreds { padding-block: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--rule-soft); }

/* ----------------------------------------------------------- articles ---- */

.card__excerpt { max-width: 58ch; font-size: var(--fs-sm); color: var(--paper-70); }

.post__meta { display: flex; flex-wrap: wrap; gap: .4rem 2rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.post__body { display: grid; gap: clamp(2.5rem, 5vw, 4rem); max-width: 72ch; margin-top: clamp(2.5rem, 5vw, 4.5rem); }

/* Article text, on top of the shared .prose rules further down. Set a step
   larger and looser than the legal pages: this is the page people came to read. */
.prose--article { font-size: 1.0625rem; line-height: 1.7; }
.prose--article strong { font-weight: 600; color: var(--paper); }
.prose--article ol { padding-left: 1.4rem; list-style: decimal; }
.prose--article blockquote {
  margin-block: 2rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
  font-size: var(--fs-md);
  font-weight: 300;
  line-height: 1.42;
  color: var(--paper);
}
.prose__figure { margin-block: 2.25rem; }
.prose__figure img { width: 100%; height: auto; filter: grayscale(1) contrast(1.06); }
.prose__figure figcaption { margin-top: .7rem; }

.post__author {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--rule-soft);
}
.post__author:not(:has(.post__author-photo)) { grid-template-columns: minmax(0, 1fr); }
.post__author-photo { width: 96px; aspect-ratio: 4 / 5; }
.post__author-name { margin-top: .35rem; font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; color: var(--paper); }
.post__author-bio { margin-top: .6rem; font-size: var(--fs-sm); color: var(--paper-70); }

/* -------------------------------------------------------------- utils ---- */

.u-hide { display: none; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Elements motion.js will fade in — pre-hidden to avoid a flash before the
   ScrollTrigger batch takes over. Removed if JS never runs (see .no-js). */
.js [data-reveal] { visibility: hidden; }

/* ------------------------------------------------------------- focus ----- */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn:focus-visible, .filter:focus-visible { outline-offset: 2px; }
/* A region that receives focus because a link pointed at it (the footer's
   "Accessibility statement", or <main> from the skip link) is a landing place,
   not a control. The page has already scrolled to it; a ring round the whole
   band adds nothing. */
section[tabindex='-1']:focus-visible,
main[tabindex='-1']:focus-visible { outline: none; }

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

/* The header carries brand + five links + phone + CTA. Shed the optional items
   before the row starts wrapping, rather than at the mobile breakpoint. */
@media (max-width: 1180px) { .nav__phone { display: none; } }
@media (max-width: 920px) { .nav__cta { display: none; } }

@media (max-width: 1180px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: auto minmax(0, 1fr); }
  .footer__cta { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 960px) {
  /* The 12-column grid collapses to a stack. Column spans are set inline per
     section, so the override has to win against the style attribute. */
  .cols { grid-template-columns: 1fr; }
  .cols > * { grid-column: 1 / -1 !important; }

  .pillars { grid-template-columns: 1fr; }
  .grid-projects, .grid-projects--3 { grid-template-columns: 1fr; }
  .process__step { grid-template-columns: 4rem minmax(0, 1fr); }
  .process__body { grid-column: 2; }
}

@media (max-width: 767px) {
  :root { --nav-h: 64px; }

  /* 34px in a 64px bar leaves too little air above and below, and the mark
     stays legible well below that. */
  .brand__logo { height: 28px; }

  /* ------------------------------------------------ off-canvas menu ----- */

  /* backdrop-filter on the header is dropped here, and it is not cosmetic:
     any filter or backdrop-filter makes the element a containing block for
     fixed-position descendants, which would trap the panel below inside a
     64px-tall header instead of letting it fill the viewport. A solid bar
     reads the same on a phone and composites more cheaply. */
  .nav.is-stuck { background: rgba(12, 11, 17, .94); backdrop-filter: none; }

  /* The header keeps its own stacking context (z-index on .nav), so the panel
     is layered against the brand and the toggle rather than the page: it
     covers the content but passes under the two controls that have to stay
     reachable while it is open. */
  .brand, .nav__end { position: relative; z-index: 1; }

  .nav__panel {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: calc(var(--nav-h) + clamp(1.25rem, 5vh, 2.75rem)) var(--gutter) calc(var(--gutter) + .5rem);
    background: var(--ink-2);
    overflow-y: auto;
    overscroll-behavior: contain;
    /* Off-canvas from the right. visibility rather than display, so the links
       drop out of the tab order while closed but the slide still animates. */
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .62s var(--ease-hop), visibility .62s;
  }
  .nav.is-open .nav__panel { transform: none; visibility: visible; }

  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--rule-soft);
  }

  .nav__link {
    display: flex;
    align-items: baseline;
    gap: .9rem;
    width: 100%;
    padding-block: clamp(.55rem, 1.7vh, 1rem);
    border-bottom: 1px solid var(--rule-soft);
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 112%;
    font-size: clamp(1.9rem, 10.5vw, 2.9rem);
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--paper);
    /* Each row arrives just behind the panel. The delays live on .is-open
       only, so closing takes them all out together instead of replaying the
       stagger in reverse. */
    opacity: 0;
    transform: translateY(1.1rem);
    transition: opacity .45s ease, transform .55s var(--ease-hop), color .3s ease;
  }
  .nav.is-open .nav__link { opacity: 1; transform: none; }
  .nav.is-open .nav__link:nth-child(1) { transition-delay: .14s; }
  .nav.is-open .nav__link:nth-child(2) { transition-delay: .20s; }
  .nav.is-open .nav__link:nth-child(3) { transition-delay: .26s; }
  .nav.is-open .nav__link:nth-child(4) { transition-delay: .32s; }
  .nav.is-open .nav__link:nth-child(5) { transition-delay: .38s; }

  .nav__idx {
    display: block;
    flex: none;
    font-family: var(--font-mono);
    font-weight: 400;
    font-stretch: normal;
    font-size: .75rem;
    letter-spacing: .12em;
    color: var(--accent-text);
  }
  .nav__word { display: block; }

  .nav__panel-foot {
    display: grid;
    justify-items: start;
    gap: .55rem;
    opacity: 0;
    transform: translateY(.8rem);
    transition: opacity .45s ease, transform .55s var(--ease-hop);
  }
  .nav.is-open .nav__panel-foot { opacity: 1; transform: none; transition-delay: .44s; }
  .nav__panel-label { font-size: var(--fs-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--paper-50); }
  .nav__panel-line { font-family: var(--font-mono); font-size: 1rem; color: var(--paper); }
  .nav__panel-addr { font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 1.6; color: var(--paper-50); font-style: normal; }
  .nav__panel-cta { display: inline-flex; margin-top: .75rem; padding: .85rem 1.25rem; }

  .nav__cta, .nav__phone { display: none; }

  .nav__toggle {
    display: grid;
    gap: 5px;
    padding: .6rem;
    margin-right: -.6rem;
    cursor: pointer;
  }
  .nav__toggle span { display: block; width: 22px; height: 1px; background: var(--paper); transition: transform .35s var(--ease-hop), opacity .25s ease; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(6px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-6px) rotate(-45deg); }

  .hero { min-height: 92svh; }
  .hero__foot { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }

  /* The code sat in a 3.5rem column beside the title and wrapped to two
     lines ("MP/S-" / "01"). Stacked above it instead, it stays on one line and
     the title gets the full width of the row. */
  .svc-row { grid-template-columns: minmax(0, 1fr); gap: .45rem; }
  .svc-row__meta { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .footer__brand img { height: 40px; }
  .pager { grid-template-columns: 1fr; }
  .pager__item + .pager__item { border-left: 0; border-top: 1px solid var(--rule-soft); padding-left: 0; text-align: left; justify-items: start; }
  .process__step { grid-template-columns: 1fr; gap: .75rem; }
  .process__body { grid-column: 1; }
  /* No .overlay column override here. All five panels stay in one row at every
     width — narrower on a phone, but covering edge to edge, and the wipe keeps
     the stagger timing it was authored with. */
  .cursor { display: none; }
}

/* ---------------------------------------------------- reduced motion ----- */
/* Movement is swapped for opacity and colour, not removed: every hover, focus
   and state change still reports back, it just stops travelling. */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .12s !important;
    scroll-behavior: auto !important;
  }
  .cursor { display: none; }
  .svc-preview { display: none; }
  /* The global override above shortens durations but leaves delays alone, so
     the menu rows would still sit and wait out a stagger they no longer play. */
  .nav__link, .nav__panel-foot { transition-delay: 0s !important; }
  .btn::after, .btn--ghost::after { transform: scaleY(1); opacity: 0; transition: opacity .12s ease; }
  .btn:hover::after, .btn:focus-visible::after { opacity: 1; }
  .svc-row:hover .svc-row__title, .svc-row:focus-visible .svc-row__title { transform: none; color: var(--accent-text); }
  .card:hover .card__media img, .card:focus-visible .card__media img { transform: none; }
  .link::after, .nav__link::after { transform: scaleX(1); opacity: 0; }
  .link:hover::after, .link:focus-visible::after,
  .nav__link:hover::after, .nav__link:focus-visible::after,
  .nav__link[aria-current='page']::after { opacity: 1; }
  .marquee__track { transform: none !important; }
}

/* ------------------------------------------------------------- no-js ----- */

.no-js [data-reveal] { visibility: visible !important; opacity: 1 !important; transform: none !important; }
/* Both classes are present once the failsafe fires — it adds .no-js without
   removing .js — so this has to come after the .js rule to win, and it does. */
.no-js .overlay__panel { transform: scaleY(0) !important; }
.no-js .overlay__meta { opacity: 0 !important; }
.no-js .hero__canvas { display: none; }
.no-js .cursor { display: none; }
/* app.js binds the toggle, so if the motion layer never boots the button is
   inert and the panel can never be opened. Better to withdraw the control than
   to leave one that does nothing when pressed — the footer carries the same
   five links, and it is plain markup that always renders. */
.no-js .nav__toggle { display: none; }
/* The poster ships with the `hidden` attribute and is normally unhidden by
   home.js once the WebGL gate has been decided. If the motion layer never
   boots, that never happens and the hero loses its backdrop entirely, so the
   failsafe has to reinstate it. */
.no-js .hero__poster { display: block !important; }

/* ------------------------------------------------------- compliance ----- */

/* Honeypot. Off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.form__privacy { font-size: var(--fs-sm); color: var(--paper-70); max-width: 60ch; }
/* A link inside a sentence is told apart by more than its colour: the accent
   blue is only 1.6:1 against the text around it, which is invisible to anyone
   who cannot see the difference in hue (WCAG 1.4.1). */
p a.accent { text-decoration: underline; text-underline-offset: .2em; }
.form__status.is-error { border-color: var(--paper-35); }
.btn[aria-busy='true'] { pointer-events: none; opacity: .6; }

.footer__cookie-btn {
  display: none;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.footer__cookie-btn:hover { color: var(--accent-text); }
/* consent.js adds .has-consent only when an optional service is configured. */
.has-consent .footer__cookie-btn { display: inline; }

/* Legal pages: long-form reading measure inside the site shell. */
.prose { max-width: 72ch; color: var(--paper-70); }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.75rem; font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; color: var(--paper); }
.prose h3 { margin-top: 1.75rem; font-size: 1.0625rem; font-weight: 600; color: var(--paper); }
.prose ul { padding-left: 1.25rem; list-style: square; }
.prose li + li { margin-top: .4rem; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: .2em; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th, .prose td { padding: .6rem .5rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.prose th { color: var(--paper); font-weight: 600; }
.prose .table-wrap { overflow-x: auto; }
/* Four columns do not fit a phone: each was ~90px wide, the text ran one or
   two words to a line and the last column was cut off behind a sideways
   scroll. Below the mobile breakpoint each row becomes a block and each cell
   carries its own column heading (data-label in the markup), so the table
   reads straight down. Rows without labels keep the scrolling table. */
@media (max-width: 767px) {
  .prose table:has(td[data-label]),
  .prose table:has(td[data-label]) tbody,
  .prose table:has(td[data-label]) tr,
  .prose table:has(td[data-label]) td { display: block; }
  .prose table:has(td[data-label]) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .prose table:has(td[data-label]) tr { padding-block: 1.1rem; border-bottom: 1px solid var(--rule); }
  .prose table:has(td[data-label]) tr:first-child { border-top: 1px solid var(--rule); }
  .prose td[data-label] { padding: 0; border: 0; font-size: 1rem; }
  .prose td[data-label] + td[data-label] { margin-top: .85rem; }
  .prose td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: .2rem;
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--paper-50);
  }
}

/* Cookie consent. Accept and Reject share one class and one weight, on the
   first layer, so refusing is exactly as easy as agreeing. */
.consent {
  position: fixed;
  z-index: calc(var(--z-overlay) + 5);
  right: var(--gutter);
  bottom: var(--gutter);
  left: var(--gutter);
  max-width: 34rem;
  margin-left: auto;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  background: var(--ink-2);
  color: var(--paper);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.consent[hidden] { display: none; }
.consent__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.consent__text { margin-top: .6rem; font-size: var(--fs-sm); color: var(--paper-70); }
.consent__text a { color: var(--paper); text-decoration: underline; text-underline-offset: .2em; }
.consent__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.consent__btn {
  flex: 1 1 9rem;
  padding: .85rem 1rem;
  border: 1px solid var(--paper);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.consent__btn:hover, .consent__btn:focus-visible { background: var(--paper); color: var(--ink); }
