/* ==========================================================================
   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. The two used for copy are set at the alpha
     where they clear WCAG AA at the smallest size they are applied to (11px
     mono), measured against #0C0B11:
       .72 → 9.8:1    .60 → 6.6:1    .50 → 4.9:1   (AA needs 4.5:1)
     --paper-35 was .36, which measured 3.05:1 and failed on the drawing codes,
     footer headings and card meta — all real copy, not decoration. */
  --paper-70: rgba(244, 242, 238, .72);
  --paper-50: rgba(244, 242, 238, .60);
  --paper-35: rgba(244, 242, 238, .50);
  --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;
  /* 12px. The mono annotation face is the site's drawing-label voice and wants
     to be small, but below 12px it stops being readable at arm's length and
     Lighthouse counts it as illegible. 12px is the floor that keeps both. */
  --fs-mono: .75rem;

  --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 */
}

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; }
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: .16em;
  text-transform: uppercase;
  color: var(--paper-50);
}

.mono--accent { color: var(--accent-text); }
.mono--lg { font-size: .8125rem; letter-spacing: .12em; }

.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); }
.muted { color: var(--paper-50); }
.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-sm > * + * { margin-top: .75rem; }
.stack > * + * { margin-top: 1.5rem; }
.stack-lg > * + * { margin-top: 2.75rem; }

/* ---------------------------------------------- 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; }
.field dt { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--paper-35); }
.field dd { margin: 0; font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .04em; color: var(--paper); text-align: right; }

/* 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); }

/* A section head is used both full width and inside a five- or six-column slot,
   so its size has to follow the column it sits in, not the viewport. Sized off
   the viewport, a 109px title in a 528px column broke to one word a line and,
   for the longer words, mid-word. The --fs-xxl value above stays as the
   fallback where container queries are unavailable. */
@supports (container-type: inline-size) {
  .head { container-type: inline-size; }
  .head__title { font-size: clamp(2.15rem, 13cqi, 7rem); }
}

/* ----------------------------------------------------------- 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: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  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: .75rem;
  letter-spacing: .14em;
  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;
}
.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: .6875rem;
  letter-spacing: .14em;
  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: .6875rem;
  letter-spacing: .1em;
  color: var(--paper-70);
}

.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 82px 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: 82px; height: 82px; background: var(--accent); border-color: var(--accent); }
.cursor__label {
  font-family: var(--font-mono);
  font-size: .5625rem;
  letter-spacing: .12em;
  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; }
.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); }

.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); }

/* -------------------------------------------------------- stats band ----- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule-soft); }
.stats--2 { grid-template-columns: repeat(2, 1fr); }
.stat { padding: clamp(1.5rem, 3vw, 2.5rem); border-left: 1px solid var(--rule-soft); }
.stat:first-child { border-left: 0; }
.stat__figure {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.045em;
  color: var(--paper);
  display: flex;
  align-items: baseline;
}
.stat__figure .unit { color: var(--accent-text); font-size: .5em; margin-left: .12em; letter-spacing: 0; }
.stat__figure .pre { color: var(--accent-text); font-size: .5em; margin-right: .06em; }
.stat__label { margin-top: 1rem; font-size: .875rem; color: var(--paper-50); line-height: 1.45; max-width: 26ch; }

/* ----------------------------------------------------------- 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: .16em; color: var(--accent-text); }
.pillar__title { font-size: var(--fs-lg); font-family: var(--font-display); font-stretch: 112%; text-transform: uppercase; }
.pillar__proof {
  margin-top: .5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--paper-70);
  line-height: 1.7;
}

/* ------------------------------------------------------ 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: .14em; color: var(--paper-35); 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: .14em; color: var(--paper-35); 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: .14em;
  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: .12em; text-transform: uppercase; color: var(--paper-35); }

/* ------------------------------------------------------------ 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: .16em; 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-35); letter-spacing: .12em; }

/* --------------------------------------------------------- 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: .14em;
  text-transform: uppercase;
  color: var(--paper-50);
}
.field-group .req { color: var(--accent-text); }

.input {
  width: 100%;
  padding: .95rem 1rem;
  background: var(--ink-2);
  border: 1px solid var(--rule-soft);
  color: var(--paper);
  font-size: 1rem;
  transition: border-color .3s ease, background-color .3s ease;
}
.input::placeholder { color: rgba(244, 242, 238, .26); }
.input:hover { border-color: var(--rule); }
.input:focus { outline: none; border-color: var(--accent); background: var(--ink-3); }
textarea.input { min-height: 150px; resize: vertical; }
select.input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--paper-50) 50%), linear-gradient(135deg, var(--paper-50) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.75rem;
}
.input[aria-invalid='true'] { border-color: var(--accent); }

.error {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: .1em;
  color: var(--accent-text);
  min-height: 1em;
}

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

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

.map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--ink-2);
  border: 1px solid var(--rule-soft);
  overflow: hidden;
  display: grid;
  place-items: center;
  background-image:
    linear-gradient(var(--rule-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-soft) 1px, transparent 1px);
  background-size: 44px 44px;
}
.map__pin { display: grid; justify-items: center; gap: .8rem; text-align: center; padding: 1rem; }
.map__dot { width: 12px; height: 12px; background: var(--accent); box-shadow: 0 0 0 8px rgba(65, 123, 199, .16); }

/* ------------------------------------------------------------ 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; }
.figure--square { aspect-ratio: 1; }
.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; }
.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); }

/* Full-height statement quote. The sentence is set across the whole measure
   rather than poured into a column: at 30ch and --fs-xl it broke to one word a
   line and ran twenty lines deep. Type is sized off the viewport so it fills
   three or four lines at any width. */
.quote-band {
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: var(--section);
  border-top: 1px solid var(--rule-soft);
}
.quote-band__inner { display: grid; gap: clamp(2.5rem, 6vw, 5rem); width: 100%; }

.quote--feature { max-width: none; }
.quote--feature .quote__text { font-size: clamp(1.9rem, 5.4vw, 5.25rem); }
.quote--feature figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 2rem;
  align-items: baseline;
  margin-top: clamp(1.75rem, 3.5vw, 3rem);
}

.quote-band__cta { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); justify-items: start; }
.quote-band__cta .lead { max-width: 46ch; }

.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; }
.pager__title { font-family: var(--font-display); font-stretch: 105%; text-transform: uppercase; font-size: var(--fs-lg); transition: color .3s ease; }
.pager__item:hover .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; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(2rem, 4vw, 3rem); }

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

.footer { border-top: 1px solid var(--rule-soft); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.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); letter-spacing: .16em; text-transform: uppercase; color: var(--paper-35); margin-bottom: 1.4rem; }
.footer__list { display: grid; gap: .7rem; }
.footer__list a, .footer__list span { font-size: .9375rem; 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: .75rem; line-height: 2; letter-spacing: .04em; color: var(--paper-70); font-style: normal; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-soft);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.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);
}

/* -------------------------------------------------------------- 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; }

/* -------------------------------------------------------- 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); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule-soft); }
}

@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: .625rem;
    letter-spacing: .18em;
    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: .625rem; letter-spacing: .2em; text-transform: uppercase; color: var(--paper-35); }
  .nav__panel-line { font-family: var(--font-mono); font-size: .8125rem; color: var(--paper); }
  .nav__panel-addr { font-family: var(--font-mono); font-size: .6875rem; line-height: 1.6; color: var(--paper-35); 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; }

  .stats, .stats--2 { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--rule-soft); }
  .stat:first-child { border-top: 0; }

  .svc-row { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .svc-row__meta { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .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; }
.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; }
.draft-flag {
  padding: 1rem 1.15rem;
  border: 1px solid var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: .08em;
  color: var(--paper);
}

/* 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); }
