/* ==========================================================================
   Al Jadaf Engineering — main stylesheet
   ========================================================================== */

/* Inter Tight: primary sans (variable wght, latin subset). Archivo stays loaded as the fallback. */
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* brand navy family (client brand sheet: 288 C / 660 C / 1795 C) */
  --ink: #0F1E4A;
  --ink-2: #14265C;
  --ink-3: #1B3170;
  --ink-rgb: 15, 30, 74;      /* for navy-tinted scrims, lines and shadows */
  --shadow-rgb: 8, 16, 42;    /* deep navy, used only for shadows */
  --paper: #f2f0eb;
  --paper-2: #e8e5de;
  --white: #ffffff;

  --blue: #296DB4;        /* Pantone 660 C */
  --blue-bright: #4C8FD0;
  --navy: #21418E;        /* Pantone 288 C */
  --navy-deep: #21418E;   /* 288 C, used by .theme-navy */
  --red: #D1262C;         /* Pantone 1795 C */
  --muted-dark: #A9B4CE;  /* muted text on navy: 7.6:1 on --ink */
  --muted-paper: #4F5A78; /* muted text on paper: 6.3:1 on --paper */

  --font-sans: "Inter Tight", "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --col-gap: clamp(16px, 2vw, 32px);
  --maxw: 1680px;
  --section-y: clamp(96px, 12vw, 200px);
  --radius: 6px;

  /* Type scale: one token per level. Values noted as 1440px / 390px. */
  --fs-display:  clamp(2.5rem, 6.4vw, 6rem);      /* 92 / 40   hero title only */
  --fs-h1:       clamp(2rem, 4.6vw, 4.25rem);     /* 66 / 32   page hero title */
  --fs-h2:       clamp(1.9rem, 3.3vw, 3rem);      /* 47.5 / 30 section heading */
  --fs-h2sm:     clamp(1.4rem, 2.5vw, 2.25rem);   /* 36 / 22   secondary heading */
  --fs-h3:       clamp(1.15rem, 1.8vw, 1.625rem); /* 26 / 18.4 card, value, field */
  --fs-statement:clamp(1.25rem, 2.05vw, 1.875rem);/* 30 / 20   the big intro statement */
  --fs-lead:     clamp(1rem, 1.32vw, 1.1875rem);  /* 19 / 16   leads */
  --fs-body:     1.0625rem;                       /* 17px      paragraphs (16px below 640) */
  --fs-label:    clamp(0.72rem, 0.9vw, 0.8125rem);/* 13 / 11.5 small caps labels */
  --fs-eyebrow:  clamp(0.75rem, 1.1vw, 1rem);     /* 16 / 12   section eyebrows */
  --header-h: 84px;
}

/* themes are applied per section, not per page */
.theme-ink,
.theme-navy {
  --bg: var(--ink);
  --fg: var(--paper);
  --muted: var(--muted-dark);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.28);
  --surface: rgba(255, 255, 255, 0.04);
  --accent: var(--blue-bright);
}
/* 288 C is lighter than --ink, so muted text is lifted to keep AA (5.3:1 on #21418E) */
.theme-navy { --bg: var(--navy-deep); --muted: #BCC7E0; --line: rgba(255, 255, 255, 0.16); }
.theme-paper {
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--muted-paper);
  --line: rgba(var(--ink-rgb), 0.14);
  --line-strong: rgba(var(--ink-rgb), 0.34);
  --surface: rgba(var(--ink-rgb), 0.035);
  --accent: var(--blue);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 300; padding: 12px 18px;
  background: var(--paper); color: var(--ink); border-radius: 999px; font-weight: 500;
  transform: translateY(-160%); transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(8) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-2%, 6%); }
  80% { transform: translate(5%, -2%); }
}

/* ---------- Layout ---------- */
.section {
  position: relative;
  padding: var(--section-y) var(--gutter);
  background: var(--bg);
  color: var(--fg);
}
.section--tight { padding-block: clamp(64px, 8vw, 120px); }
.wrap { max-width: var(--maxw); margin-inline: auto; position: relative; }
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}

/* column guides — the engineering grid behind dark sections */
.guides {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding-inline: var(--gutter);
}
.guides span { border-left: 1px solid rgba(255, 255, 255, 0.06); }
.guides span:last-child { border-right: 1px solid rgba(255, 255, 255, 0.06); }

/* ---------- Type ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}
.label::before {
  content: "";
  flex: none;
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: var(--red);
}
.label--plain::before { display: none; }
/* Section eyebrows sit beside a heading: one step above the base label, well below the h2. */
.statement-grid > .label,
.section-head .label,
.about-intro .label,
.footer-cta .label {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.05em;
  line-height: 1.3;
}
.mono {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.05vw, 16px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* Display type tuned for Inter Tight: it is narrower and lighter than Archivo at the
   same weight, so headings carry a little more weight and much less negative tracking.
   (font-stretch only affects the Archivo fallback; Inter Tight has no width axis.) */
.h-display,
.h1,
.h2,
.h3 {
  font-weight: 560;
  text-wrap: balance;
}
.h3 { font-weight: 520; }
.h-display {
  font-size: var(--fs-display);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-stretch: 112%;
}
.h1 {
  font-size: var(--fs-h1);
  line-height: 1;
  letter-spacing: -0.028em;
  font-stretch: 110%;
}
.h2 {
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -0.022em;
  font-stretch: 108%;
}
h3,
.h3 {
  font-size: var(--fs-h3);
  line-height: 1.2;
  letter-spacing: -0.012em;
}
.h3 { font-stretch: 104%; }
.h2--sm { font-size: var(--fs-h2sm); line-height: 1.12; letter-spacing: -0.018em; }
.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  letter-spacing: -0.004em;
  text-wrap: pretty;
}
.prose p { text-wrap: pretty; }
.prose p + p { margin-top: 1.1em; }
.muted { color: var(--muted); }
.soft { opacity: 0.42; }

/* the brand's red dot, used as a full stop */
.dot-end {
  display: inline-block;
  width: 0.16em;
  height: 0.16em;
  margin-left: 0.05em;
  border-radius: 50%;
  background: var(--red);
  vertical-align: baseline;
}
.nw { white-space: nowrap; }
.dot-red { color: var(--red); } /* a literal full stop in brand red: keeps the client's words intact */
.hl { display: block; }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 60px;
  padding: 0 8px 0 28px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: color 0.5s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--blue);
  transform: translateY(102%);
  transition: transform 0.6s var(--ease);
}
.btn:hover { color: #fff; }
.btn:hover::before { transform: translateY(0); }
.btn-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  flex: none;
  transition: transform 0.6s var(--ease), background 0.4s;
}
.btn-icon svg { width: 16px; height: 16px; }
.btn:hover .btn-icon { transform: rotate(-45deg); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.btn--sm { height: 48px; padding-left: 22px; gap: 12px; font-size: 14.5px; }
.btn--sm .btn-icon { width: 34px; height: 34px; }
.btn--sm .btn-icon svg { width: 13px; height: 13px; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  box-shadow: inset 0 0 0 1px var(--line-strong, rgba(255, 255, 255, 0.3));
  padding-right: 28px;
}

.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  padding-bottom: 4px;
}
.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform 0.7s var(--ease);
}
.link:hover::after { transform: scaleX(0); }
.link svg { width: 14px; height: 14px; transition: transform 0.5s var(--ease); }
.link:hover svg { transform: translateX(4px); }

.u-link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.6s var(--ease);
}
.u-link:hover { background-size: 100% 1px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  padding: 0 var(--gutter);
  color: #fff;
  transition: transform 0.7s var(--ease), background-color 0.5s, height 0.5s var(--ease), box-shadow 0.5s;
}
.site-header.is-scrolled {
  --header-h: 72px;
  background: rgba(var(--ink-rgb), 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.site-header.is-hidden { transform: translateY(-100%); }

.brand { display: inline-flex; align-items: center; gap: 14px; justify-self: start; white-space: nowrap; }
.brand-mark { width: 62px; height: auto; flex: none; transition: transform 0.6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }
.brand-mark .lg-a, .brand-mark .lg-j { fill: currentColor; }
.brand-mark .lg-dot { fill: var(--red); }
.brand-mark--color .lg-a { fill: var(--blue); }
.brand-mark--color .lg-j { fill: var(--navy); }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; font-stretch: 108%; }
.brand-word small {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.62;
}

.nav {
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.nav a {
  position: relative;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background-color 0.35s, color 0.35s;
}
.nav a:hover { background: rgba(255, 255, 255, 0.09); }
.nav a[aria-current="page"] { background: #fff; color: var(--ink); }

.header-end { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.menu-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 18px 0 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  font-size: 14px;
  font-weight: 500;
}
.menu-toggle-lines { position: relative; width: 18px; height: 8px; }
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.menu-toggle-lines::before { top: 0; }
.menu-toggle-lines::after { top: 6.5px; }
.menu-open .menu-toggle-lines::before { top: 3.25px; transform: rotate(45deg); }
.menu-open .menu-toggle-lines::after { top: 3.25px; transform: rotate(-45deg); }

/* mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 32px) var(--gutter) 28px;
  background: var(--ink);
  color: var(--paper);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.9s var(--ease-in-out), visibility 0s 0.9s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.9s var(--ease-in-out); }
.menu-links { display: flex; flex-direction: column; }
.menu-links a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: clamp(40px, 11vw, 72px);
  font-weight: 500;
  font-stretch: 110%;
  letter-spacing: -0.03em;
  line-height: 1;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.menu-links a span { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; color: var(--muted-dark); }
.menu-links a[aria-current="page"] { color: var(--blue-bright); }
.menu.is-open .menu-links a { opacity: 1; transform: none; }
.menu.is-open .menu-links a:nth-child(1) { transition-delay: 0.25s; }
.menu.is-open .menu-links a:nth-child(2) { transition-delay: 0.3s; }
.menu.is-open .menu-links a:nth-child(3) { transition-delay: 0.35s; }
.menu.is-open .menu-links a:nth-child(4) { transition-delay: 0.4s; }
.menu.is-open .menu-links a:nth-child(5) { transition-delay: 0.45s; }
.menu-foot { display: grid; gap: 6px; color: var(--muted-dark); font-size: 17px; }
.menu-foot a { color: var(--paper); }

/* ---------- Preloader & page wipe ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
}
.is-preloading .preloader { display: grid; }
.is-preloading body { overflow: hidden; }
.preloader-mark { width: clamp(76px, 9vw, 112px); overflow: visible; }
.preloader-mark .lg-a { fill: var(--blue); }
.preloader-mark .lg-j { fill: var(--navy); }
.preloader-mark .lg-dot { fill: var(--red); }
.preloader-count {
  position: absolute;
  right: var(--gutter);
  bottom: calc(var(--gutter) * 0.6);
  font-size: clamp(72px, 14vw, 220px);
  font-weight: 500;
  font-stretch: 120%;
  line-height: 0.8;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.preloader-meta {
  position: absolute;
  left: var(--gutter);
  bottom: calc(var(--gutter) * 0.6 + 6px);
  display: grid;
  gap: 4px;
  color: var(--muted-paper);
}
.preloader-meta b { color: var(--ink); font-weight: 500; }
.preloader-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}

.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 110;
  pointer-events: none;
  background: var(--ink);
  transform: translateY(101%);
  visibility: hidden; /* at rest it is hidden, not just parked off-screen; JS shows it only while animating */
}
.page-wipe::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--red);
}
.is-entering .page-wipe { transform: translateY(0); visibility: visible; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 40px) var(--gutter) 0;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);
  transition: transform 9s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.hero-slide.is-active img { transform: scale(1.02); }
.shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(var(--ink-rgb), 0.62) 0%, rgba(var(--ink-rgb), 0.12) 30%, rgba(var(--ink-rgb), 0.35) 60%, rgba(var(--ink-rgb), 0.94) 100%),
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.6) 0%, rgba(var(--ink-rgb), 0) 65%);
}

/* Brand layer over the slider (home hero only). Order: photos > duotone cast >
   navy gradient (.shade) > J-arc motif + single red dot > hairline guides > text. */
.hero { isolation: isolate; }
/* Duotone, built inside .hero-media so the blend layers only see the photos (and
   drift with them): monochrome photo x 660 C (multiply) gives the blue cast, then a
   navy screen lifts the shadows off black onto the brand ink. */
.hero-slide img { filter: grayscale(1) contrast(1.1) brightness(1.12); }
.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-media::before { z-index: 1; background: var(--blue); mix-blend-mode: multiply; }
.hero-media::after { z-index: 2; background: var(--ink); mix-blend-mode: screen; }
.hero .shade {
  background:
    linear-gradient(90deg, rgba(33, 65, 142, 0.9) 0%, rgba(33, 65, 142, 0.66) 40%, rgba(33, 65, 142, 0) 76%),
    linear-gradient(180deg, rgba(var(--ink-rgb), 0.72) 0%, rgba(var(--ink-rgb), 0.3) 24%, rgba(var(--ink-rgb), 0.24) 50%, rgba(var(--ink-rgb), 0.96) 100%);
}
.hero-motif {
  position: absolute;
  z-index: 1;
  top: calc(var(--header-h) + 8px);
  right: calc(var(--gutter) * -0.5);
  height: min(calc(100% - var(--header-h) + 40px), 112vw);
  width: auto;
  max-width: none;
  aspect-ratio: 4 / 5;
  pointer-events: none;
  overflow: visible;
}
.hm-j { fill: var(--blue-bright); opacity: 0.22; }
.hm-arc { fill: none; stroke: rgba(255, 255, 255, 0.26); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hm-rule { stroke: rgba(255, 255, 255, 0.09); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hm-dot { fill: var(--red); opacity: 0.92; }
.hero .label::before { display: none; } /* the motif carries the hero's one red dot */
@media (prefers-reduced-motion: no-preference) {
  .hm-arc { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hm-draw 2.6s var(--ease-in-out) 0.4s forwards; }
  .hm-arc--2 { animation-delay: 0.7s; }
  .hm-dot { transform-box: fill-box; transform-origin: center; animation: hm-dot 1.4s var(--ease) 1.2s both; }
}
@keyframes hm-draw { to { stroke-dashoffset: 0; } }
@keyframes hm-dot { from { transform: scale(0); } }

.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin-inline: auto; }
.hero-eyebrow { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: clamp(24px, 3vw, 40px); color: #fff; }
.hero-title { max-width: none; }
.hero-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 32px;
  align-items: end;
  margin-top: clamp(28px, 3.4vw, 52px);
}
.hero-sub { grid-column: 1 / span 6; color: rgba(255, 255, 255, 0.9); }
.hero-ctas { grid-column: 7 / -1; justify-self: end; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-bar {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: clamp(40px, 5vw, 72px) auto 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 20px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
}
.hero-slides-ui { display: flex; align-items: center; gap: 18px; min-width: 0; white-space: nowrap; }
.hero-progress { display: flex; gap: 6px; }
.hero-progress button {
  position: relative;
  width: 36px;
  height: 18px;
  overflow: hidden;
}
.hero-progress button::before,
.hero-progress button i {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
}
.hero-progress button i { background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-progress button.is-active i { animation: bar var(--slide-dur, 6.5s) linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }
.hero-caption { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; justify-self: end; }
.scroll-cue i {
  position: relative;
  width: 1px;
  height: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  animation: cue 2.2s var(--ease-in-out) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  min-height: 80vh;
  min-height: 80svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 56px) var(--gutter) clamp(60px, 6.5vw, 104px);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.page-hero--short { min-height: 78vh; min-height: 78svh; padding-bottom: clamp(48px, 5vw, 72px); }
.page-hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.page-hero-media img { width: 100%; height: 115%; object-fit: cover; }
.page-hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin-inline: auto; }
.page-hero .label { margin-bottom: clamp(24px, 3vw, 40px); color: rgba(255, 255, 255, 0.82); }
.page-hero-foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: end;
  margin-top: clamp(40px, 5vw, 80px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.page-hero-foot .lead { grid-column: 1 / span 6; color: rgba(255, 255, 255, 0.8); }
.page-hero-foot .mono { grid-column: 9 / -1; justify-self: end; color: rgba(255, 255, 255, 0.62); text-align: right; }

.page-hero--split .page-hero-inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; }
.page-hero--split .split-text { grid-column: 1 / span 7; }
.page-hero--split .split-media {
  grid-column: 9 / -1;
  align-self: stretch;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 52vh;
}
.page-hero--split .split-media img { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; }
.page-hero--split .page-hero-foot { grid-column: 1 / -1; }

.big-count {
  position: absolute;
  right: var(--gutter);
  top: calc(var(--header-h) + 24px);
  z-index: 1;
  font-size: clamp(160px, 30vw, 520px);
  font-weight: 600;
  font-stretch: 125%;
  letter-spacing: -0.04em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  pointer-events: none;
  user-select: none;
}

/* ---------- Section heads ---------- */
.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 24px;
  align-items: start;
  margin-bottom: clamp(56px, 7vw, 120px);
}
.section-head .label { grid-column: 1 / span 3; padding-top: 0.15em; }
.section-head .h2 { grid-column: 4 / -1; }
.section-head .section-aside { grid-column: 4 / span 6; margin-top: 8px; }
.section-head--split .h2 { grid-column: 4 / span 6; }
.section-head--split .section-aside { grid-column: 10 / -1; align-self: end; margin: 0; }
.section-head--filters .h2 { grid-column: 4 / span 4; }
.section-head--filters .section-aside { grid-column: 8 / -1; justify-self: end; }

/* client mark: keep the eyebrow clear of the long heading in the org section */
#organisation .section-head .h2 { grid-column: 5 / -1; }

/* ---------- Statement (home intro) ---------- */
.statement-grid { row-gap: clamp(48px, 6vw, 96px); }
.statement-grid > .label { grid-column: 1 / span 3; padding-top: 0; }
.statement {
  grid-column: 4 / -1;
  font-size: var(--fs-statement);
  line-height: 1.3;
  letter-spacing: -0.012em;
  font-weight: 480;
  font-stretch: 104%;
  text-wrap: pretty;
  min-width: 0;
  overflow-wrap: break-word;
}
.statement .w { opacity: 0.62; transition: opacity 0.2s; } /* legible at rest; the scrub lifts it to 1 */
.no-scrub .statement .w { opacity: 1; }
/* image and copy carry equal weight: the 3/4 frame (4 of 9 cols) is about as tall as
   the two paragraphs beside it, both tops align, and the link closes the copy column */
.statement-foot { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.statement-figure { grid-column: 1 / span 4; }
.statement-copy { grid-column: 5 / -1; padding-left: clamp(0px, 2vw, 40px); display: grid; gap: 24px; justify-items: start; align-content: start; }
.statement-copy .link { margin-top: 12px; }

/* ---------- Media frames ---------- */
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-3); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--portrait { aspect-ratio: 3 / 4; }
.frame--land { aspect-ratio: 4 / 3; }
.frame--wide { aspect-ratio: 16 / 9; }
.frame--cinema { aspect-ratio: 21 / 9; }
.frame--parallax img { position: absolute; left: 0; top: -10%; height: 120%; }
.figcap { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; color: var(--muted); font-size: clamp(13px, 0.95vw, 15px); }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.value {
  position: relative;
  padding: 32px clamp(20px, 3vw, 48px) 48px 0;
  border-right: 1px solid var(--line);
}
.value + .value { padding-left: clamp(20px, 3vw, 48px); }
.value:last-child { border-right: 0; }
.value::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--line-strong);
  transform: scaleX(var(--sx, 1));
  transform-origin: left;
}
.value-top { display: flex; justify-content: space-between; color: var(--muted); }
.value h3 {
  margin: clamp(56px, 8vw, 140px) 0 24px;
  font-weight: 560;
  font-stretch: 112%;
}
.value p { color: var(--muted); font-size: var(--fs-body); line-height: 1.6; }
.value-icon { width: 28px; height: 28px; color: var(--fg); opacity: 0.85; }

/* ---------- Services list (home) ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  column-gap: var(--col-gap);
  row-gap: 10px;
  padding: clamp(22px, 2.8vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.6s var(--ease), color 0.45s;
}
.svc::before {
  content: "";
  position: absolute;
  inset: -1px 0 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease);
}
.svc-num { grid-column: 1; color: var(--muted); transition: color 0.45s; }
.svc-title {
  font-size: var(--fs-h2sm);
  font-weight: 560;
  font-stretch: 108%;
  letter-spacing: -0.018em;
  line-height: 1.12;
  grid-column: 2 / span 6;
  transition: transform 0.7s var(--ease);
}
.svc-tags { grid-column: 8 / span 4; color: var(--muted); text-align: right; text-wrap: balance; transition: color 0.45s; }
.svc-arrow {
  display: grid;
  place-items: center;
  grid-column: 12;
  justify-self: end;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background 0.45s, box-shadow 0.45s, transform 0.6s var(--ease), color 0.45s;
}
.svc-arrow svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .svc:hover { color: var(--paper); padding-inline: 28px; }
  .svc:hover::before { transform: scaleY(1); transform-origin: top; }
  .svc:hover .svc-num, .svc:hover .svc-tags { color: var(--muted-dark); }
  .svc:hover .svc-title { transform: translateX(16px); }
  .svc:hover .svc-arrow { background: var(--red); box-shadow: none; color: #fff; transform: rotate(-45deg); }
}
.svc-preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  width: clamp(240px, 21vw, 340px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  pointer-events: none;
  opacity: 0;
  scale: 0.6;
  transition: opacity 0.4s, scale 0.6s var(--ease);
  box-shadow: 0 40px 80px -20px rgba(var(--shadow-rgb), 0.5);
}
.svc-preview.is-on { opacity: 1; scale: 1; }
.svc-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(100% 0 0 0);
  transform: scale(1.2);
  transition: clip-path 0.7s var(--ease), transform 1s var(--ease);
}
.svc-preview img.is-active { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 1; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.stat {
  padding: 28px clamp(16px, 2vw, 32px) 8px 0;
  border-right: 1px solid var(--line);
}
.stat + .stat { padding-left: clamp(16px, 2vw, 32px); }
.stat:last-child { border-right: 0; }
.stat-num {
  display: flex;
  align-items: baseline;
  gap: 0.08em;
  font-size: clamp(3rem, 5.5vw, 5rem); /* decorative, capped at 80px */
  font-weight: 500;
  font-stretch: 115%;
  line-height: 0.88;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.stat-num small { font-size: 0.32em; letter-spacing: -0.01em; font-stretch: 100%; color: var(--muted); }
.stat p { margin-top: clamp(40px, 5vw, 80px); color: var(--muted); font-size: var(--fs-body); line-height: 1.55; }
.stat .mono { color: var(--muted); }

/* ---------- Horizontal field gallery ---------- */
.hs { position: relative; overflow: hidden; background: var(--bg); color: var(--fg); }
.hs-head { padding: var(--section-y) var(--gutter) clamp(40px, 5vw, 72px); }
.hs-pin { display: flex; flex-direction: column; justify-content: center; }
.hs-viewport { overflow: hidden; }
@media (min-width: 1024px) {
  .hs-pin { min-height: 100vh; min-height: 100svh; padding-top: var(--header-h); }
}
@media (max-width: 1023px) {
  /* hero sits higher on small and mid screens: less dead space above the text */
  .page-hero {
    min-height: min(76svh, 680px);
    padding-bottom: clamp(88px, 9vw, 110px);
  }

  .hs-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hs-viewport::-webkit-scrollbar { display: none; }
  .field-card, .field-end { scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  .field-card .frame { height: auto; }
  .field-card--land .frame { width: min(84vw, 620px); }
  .field-card--port .frame { width: min(62vw, 420px); }
  .field-card .field-meta { max-width: min(84vw, 420px); }
  .field-end { width: min(70vw, 420px); height: auto; min-height: 360px; align-self: flex-start; }
}
.hs-track {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  width: max-content;
  padding: 0 var(--gutter);
  will-change: transform;
}
.field-card { flex: none; display: flex; flex-direction: column; }
.field-card .frame { height: clamp(340px, 60vh, 660px); }
.field-card--port .frame { aspect-ratio: 3 / 4; }
.field-card--land .frame { aspect-ratio: 4 / 3; }
.field-card .frame img { transition: transform 1.2s var(--ease); }
.field-card:hover .frame img { transform: scale(1.05); }
.field-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 18px;
  padding-top: 18px;
  max-width: 420px;
}
.field-meta .mono { color: var(--muted); grid-row: span 2; padding-top: 4px; }
.field-meta h3 { font-weight: 500; }
.field-meta p { color: var(--muted); font-size: var(--fs-body); }
.field-end {
  flex: none;
  width: clamp(280px, 30vw, 460px);
  height: clamp(340px, 60vh, 660px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  transition: background 0.5s;
}
.field-end:hover { background: var(--navy); }
.field-end .h3 { font-stretch: 110%; }
.field-end .btn-icon { width: 64px; height: 64px; background: #fff; color: var(--ink); }
.field-end:hover .btn-icon { transform: rotate(-45deg); }
.hs { padding-bottom: clamp(48px, 7vw, 120px); }
.hs-foot {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: clamp(28px, 3vw, 44px) var(--gutter) 0;
  color: var(--muted);
}
.hs-progress { position: relative; flex: 1; height: 1px; background: var(--line); }
.hs-progress i { position: absolute; inset: 0; background: var(--fg); transform: scaleX(0); transform-origin: left; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: clamp(22px, 3vw, 40px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee--bleed { margin-inline: calc(var(--gutter) * -1); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex: none; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding-right: 0.55em;
  font-size: clamp(2rem, 3.85vw, 3.5rem); /* decorative, capped at 56px */
  font-weight: 500;
  font-weight: 560;
  font-stretch: 116%;
  letter-spacing: -0.028em;
  line-height: 1.05;
  white-space: nowrap;
}
.marquee-item::after {
  content: "";
  width: 0.2em;
  height: 0.2em;
  border-radius: 50%;
  background: var(--red);
}
.marquee-item.is-outline { color: transparent; -webkit-text-stroke: 1.2px var(--fg); }
@keyframes marquee { to { transform: translateX(-50%); } }

.partners-foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  margin-top: clamp(40px, 5vw, 72px);
}
.partners-foot p { grid-column: 4 / span 5; }

/* ---------- Company profile ---------- */
.profile {
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(41, 109, 180, 0.55) 0%, rgba(41, 109, 180, 0) 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(var(--ink-rgb), 0.75) 0%, rgba(var(--ink-rgb), 0) 60%),
    var(--navy-deep);
}
.profile-grid { align-items: center; row-gap: 56px; }
.profile-media { grid-column: 1 / span 7; }
.profile-media .frame { aspect-ratio: 27 / 16; box-shadow: 0 60px 120px -40px rgba(var(--shadow-rgb), 0.6); }
.profile-copy { grid-column: 9 / -1; display: grid; gap: 28px; justify-items: start; }
.profile-copy .lead { color: rgba(255, 255, 255, 0.78); }
.profile-list { display: grid; gap: 0; width: 100%; border-top: 1px solid var(--line); }
.profile-list li { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; font-size: 19.5px; border-bottom: 1px solid var(--line); color: rgba(255, 255, 255, 0.82); }
.profile-list .mono { color: var(--muted-dark); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: var(--section-y) var(--gutter) 24px;
  background: var(--ink);
  color: var(--paper);
}
.footer-cta { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 32px; align-items: end; }
.footer-cta .label { grid-column: 1 / -1; color: var(--muted-dark); }
.footer-cta-link {
  grid-column: 1 / span 10;
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  justify-self: start;
  font-size: clamp(2.75rem, 5vw, 4.5rem); /* oversized link, capped at 72px */
  font-weight: 500;
  font-weight: 560;
  font-stretch: 112%;
  letter-spacing: -0.03em;
  line-height: 0.88;
}
.footer-cta-link .arrow-disc {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(64px, 9vw, 160px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  transition: transform 0.7s var(--ease), background 0.4s;
}
.footer-cta-link .arrow-disc svg { width: 32%; height: 32%; }
.footer-cta-link:hover .arrow-disc { transform: rotate(-45deg); background: var(--blue); }
.footer-cta-link .t { transition: color 0.4s; }
.footer-cta-link:hover .t { color: var(--blue-bright); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 40px;
  margin-top: clamp(80px, 10vw, 160px);
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-col { grid-column: span 4; display: grid; gap: 14px; align-content: start; font-size: 18.5px; }
.footer-col .mono { color: var(--muted-dark); margin-bottom: 6px; }
.footer-col address { font-style: normal; line-height: 1.55; }
.footer-col a { justify-self: start; }

.footer-wrap { container-type: inline-size; }
.footer-mark {
  margin: clamp(56px, 8vw, 120px) 0 0;
  font-size: min(calc(100cqw / 4.5), 200px); /* container-sized wordmark, capped at 200px */
  font-weight: 600;
  font-stretch: 125%;
  letter-spacing: -0.035em;
  line-height: 0.74;
  white-space: nowrap;
  text-align: center;
  background: linear-gradient(180deg, rgba(242, 240, 235, 0.2) 0%, rgba(242, 240, 235, 0.02) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}
.footer-mark .dot-end { width: 0.12em; height: 0.12em; background: var(--red); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted-dark);
}
.footer-bottom a { color: var(--paper); }

/* ---------- About ---------- */
.about-intro { row-gap: 48px; }
.about-intro .label { grid-column: 1 / span 3; padding-top: 0.15em; }
.about-intro .h2 { grid-column: 4 / span 6; }
.about-intro .prose { grid-column: 4 / span 5; }
.about-intro .about-side { grid-column: 10 / -1; grid-row: 2 / span 2; align-self: end; }

.culture { row-gap: 56px; align-items: end; }
.culture-media { grid-column: 1 / span 6; }
.culture-copy { grid-column: 8 / -1; display: grid; gap: 32px; }
.culture-copy blockquote {
  font-size: var(--fs-statement);
  line-height: 1.3;
  letter-spacing: -0.012em;
  font-weight: 520;
  font-stretch: 106%;
}
.culture-copy blockquote::before { content: "\201C"; color: var(--red); margin-right: 0.04em; }
.culture-copy blockquote::after { content: "\201D"; color: var(--red); margin-left: 0.02em; }
.culture-secondary { grid-column: 8 / span 3; margin-top: 24px; }

/* org chart */
.org { display: grid; gap: 0; }
.org-spine { display: flex; flex-direction: column; align-items: center; }
.org-node {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: clamp(19.5px, 1.6vw, 24px);
  font-weight: 500;
  letter-spacing: -0.01em;
  background: var(--bg);
}
.org-node .mono { color: var(--muted); font-size: 13px; }
.org-node--lead { background: var(--red); box-shadow: none; color: #fff; }
.org-node--lead .mono { color: rgba(255, 255, 255, 0.75); }
.org-link { width: 1px; height: clamp(28px, 4vw, 52px); background: var(--line-strong); }
.org-divisions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.org-div { display: grid; align-content: start; gap: 18px; padding: clamp(22px, 2.4vw, 36px); background: var(--bg); min-height: 240px; transition: background 0.4s; }
.org-div:hover { background: var(--ink-2); }
.org-div .mono { color: var(--muted); }
.org-div h3 { font-weight: 500; }
.org-div ul { display: grid; gap: 8px; color: var(--muted); font-size: var(--fs-body); }
.org-div li { display: flex; gap: 10px; align-items: baseline; }
.org-div li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-bright); flex: none; transform: translateY(-2px); }
.org-div--note { background: var(--blue); color: #fff; justify-content: space-between; align-content: space-between; }
.org-div--note:hover { background: var(--blue); }
.org-div--note p { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.012em; font-weight: 500; }

/* partner orbit */
.network { align-items: center; row-gap: 64px; }
.network-copy { grid-column: 1 / span 5; display: grid; gap: 28px; align-content: start; }
.network-list { display: grid; border-top: 1px solid var(--line); }
.network-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.network-list .mono { color: var(--muted); }
.orbit-wrap { grid-column: 7 / -1; }
.orbit {
  --r: 41cqw;
  container-type: inline-size;
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1;
  margin-inline: auto;
}
.orbit-ring {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
}
.orbit-ring--inner { inset: 30%; border-style: solid; border-color: var(--line); }
.orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26%;
  aspect-ratio: 1;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(var(--ink-rgb), 0.35);
}
.orbit-core svg { width: 56%; }
/* labels orbit by animating an angle, so each one is only ever translated (no rotated boxes inflating the page width) */
@property --spin { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
.orbit-spin { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: orbit 90s linear infinite; }
@keyframes orbit { to { --spin: 360deg; } }
.orbit-item {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform: rotate(calc(var(--a) + var(--spin, 0deg))) translateX(var(--r)) rotate(calc(-1 * (var(--a) + var(--spin, 0deg))));
}
.orbit-item span {
  position: absolute;
  left: 0;
  top: 0;
  translate: -50% -50%;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

/* ---------- Services page ---------- */
.discipline-index {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.discipline-index a {
  display: grid;
  gap: 40px;
  padding: 22px 20px 26px 0;
  border-right: 1px solid var(--line);
  transition: color 0.3s;
}
.discipline-index a + a { padding-left: 20px; }
.discipline-index a:last-child { border-right: 0; }
.discipline-index .mono { color: var(--muted); }
.discipline-index b { font-size: clamp(19.5px, 1.55vw, 24px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.discipline-index a:hover { color: var(--accent); }

.discipline { border-top: 1px solid var(--line); }
.discipline-grid { row-gap: 48px; }
.discipline-head { grid-column: 1 / span 5; display: grid; gap: 28px; align-content: start; }
.discipline-sticky { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 28px; }
.discipline-num {
  font-size: clamp(4rem, 6.9vw, 6.25rem); /* decorative, capped at 100px */
  font-weight: 500;
  font-stretch: 120%;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
}
.discipline-body { grid-column: 7 / -1; display: grid; gap: clamp(40px, 5vw, 72px); }
.cap-list { display: grid; border-top: 1px solid var(--line); }
.cap-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(19.5px, 1.5vw, 23px);
  font-weight: 500;
  letter-spacing: -0.012em;
}
.cap-list .mono { color: var(--muted); padding-top: 4px; }
.media-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap); }
.media-pair .frame:nth-child(2) { margin-top: 18%; }

.civil-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); }
.civil-card { display: grid; gap: 18px; align-content: start; }
.civil-card .frame { aspect-ratio: 4 / 3; }
.civil-card .frame img { transition: transform 1.2s var(--ease); }
.civil-card:hover .frame img { transform: scale(1.05); }
.civil-card h3 { font-weight: 500; display: flex; gap: 12px; align-items: baseline; }
.civil-card h3 .mono { color: var(--muted); }
.civil-card p { color: var(--muted); font-size: var(--fs-body); line-height: 1.6; }

.ev-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-2);
}
.ev-visual img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.ev-visual svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 34%;
  height: auto;
  color: #fff;
}
.ev-visual .ev-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid rgba(76, 143, 208, 0.6);
  animation: pulse 3s var(--ease) infinite;
}
.ev-visual .ev-pulse:nth-of-type(2) { animation-delay: 1.5s; }
@keyframes pulse {
  from { scale: 0.6; opacity: 1; }
  to { scale: 2.1; opacity: 0; }
}

.scope { display: flex; flex-wrap: wrap; gap: 10px; }
.scope li {
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 17px;
  font-weight: 500;
}

.process { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { position: relative; display: grid; gap: 16px; align-content: start; padding: 0 clamp(12px, 1.4vw, 24px) 0 0; }
.step-dot {
  position: relative;
  display: flex;
  align-items: center;
  height: 24px;
  margin-bottom: 28px;
}
.step-dot::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 6px var(--bg);
  position: relative;
  z-index: 1;
}
.step-dot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--line-strong);
}
.step .mono { color: var(--muted); }
.step h3 { font-weight: 500; }
.step p { color: var(--muted); font-size: var(--fs-body); line-height: 1.55; }

.cta-band { position: relative; overflow: hidden; }
.cta-band .cta-media { position: absolute; inset: 0; }
.cta-band .cta-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.cta-band .cta-inner { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 40px; align-items: end; }
.cta-band .h2 { grid-column: 1 / span 8; }
.cta-band .cta-side { grid-column: 9 / -1; display: grid; gap: 28px; justify-items: start; }
.cta-band .cta-side p { color: rgba(255, 255, 255, 0.8); }

/* ---------- Projects page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 16.5px;
  font-weight: 500;
  transition: background 0.35s, color 0.35s, box-shadow 0.35s;
}
.chip sup { font-family: var(--font-mono); font-size: 12px; color: var(--muted); top: -0.6em; transition: color 0.35s; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); box-shadow: none; }
.chip[aria-pressed="true"] sup { color: inherit; opacity: 0.6; }

.ptable { margin-top: clamp(40px, 5vw, 64px); }
.prow {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1.3fr) 40px;
  gap: 24px;
  align-items: center;
  padding: clamp(20px, 2.2vw, 30px) 0;
  border-bottom: 1px solid var(--line);
}
.prow--head { padding-block: 14px; color: var(--muted); border-bottom-color: var(--line-strong); }
.prow-title { font-size: clamp(20px, 2vw, 32px); font-weight: 520; letter-spacing: -0.02em; line-height: 1.15; transition: transform 0.6s var(--ease); }
.prow .mono { color: var(--muted); }
.prow-type { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.prow-type::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--blue)); }
.prow[data-cat="electrical"] { --c: var(--blue); }
.prow[data-cat="civil"] { --c: var(--red); }
.prow[data-cat="mechanical"] { --c: #e0a526; }
.prow-client { color: var(--muted); }
.prow-mark { width: 10px; height: 10px; border-radius: 50%; background: var(--c); justify-self: end; scale: 0; transition: scale 0.5s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .prow:not(.prow--head):hover .prow-title { transform: translateX(12px); }
  .prow:not(.prow--head):hover .prow-mark { scale: 1; }
}
.ptable-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; color: var(--muted); }

.gallery { columns: 3 300px; column-gap: var(--col-gap); }
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 var(--col-gap);
  overflow: hidden;
  border-radius: var(--radius);
  break-inside: avoid;
  cursor: zoom-in;
  text-align: left;
}
.gallery-item img { width: 100%; transition: transform 1.2s var(--ease), filter 0.6s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 40px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(var(--ink-rgb), 0.85));
  color: #fff;
  font-size: 16.5px;
  font-weight: 500;
  opacity: 0;
  translate: 0 12px;
  transition: opacity 0.5s, translate 0.6s var(--ease);
}
.gallery-item:hover .gallery-cap, .gallery-item:focus-visible .gallery-cap { opacity: 1; translate: 0 0; }

.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(var(--ink-rgb), 0.96);
  color: #fff;
}
.lightbox::backdrop { background: rgba(var(--ink-rgb), 0.6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox-top, .lightbox-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px var(--gutter); }
.lightbox-stage { display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  transition: background 0.3s, color 0.3s;
}
.icon-btn:hover { background: #fff; color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.lightbox-nav { display: flex; gap: 8px; }

/* ---------- Contact ---------- */
.contact-grid { row-gap: 72px; }
.contact-details { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 4.5vw, 72px) clamp(32px, 6vw, 120px); align-content: start; }
.contact-map { margin-top: clamp(64px, 8vw, 128px); }
.contact-block { display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.contact-block .mono { color: var(--muted); }
.contact-block .link { justify-self: start; }
.contact-big {
  font-size: var(--fs-h2sm);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.12;
  font-stretch: 106%;
  justify-self: start;
}
.contact-block address { font-style: normal; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.35; letter-spacing: -0.015em; }


.map {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 21 / 8;
  background: var(--ink-2);
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.9) brightness(0.95) sepia(0.4) hue-rotate(185deg) saturate(1.6);
}
.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 8px rgba(209, 38, 44, 0.25);
  pointer-events: none;
}
.map-card {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: grid;
  gap: 6px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: rgba(var(--ink-rgb), 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
}
.map-card .mono { color: var(--muted-dark); }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--gutter); }
.notfound .h-display { font-stretch: 125%; }

/* ---------- Motion: initial states (JS adds .js on <html>) ---------- */
.js:not(.no-anim) [data-split] { visibility: hidden; }
.js:not(.no-anim) [data-reveal] { opacity: 0; transform: translateY(36px); }
.js:not(.no-anim) [data-reveal-img] { clip-path: inset(100% 0 0 0); }

/* ---------- Fail-safes ----------
   Content is hidden before animation only when JS is present (.js), and only
   until main.js confirms it has taken over (.anim-live). If that never happens,
   these timed CSS animations release the content and remove the overlays on
   their own, with no JavaScript involved. Without JS nothing is hidden at all. */
@keyframes aj-release { to { opacity: 1; transform: none; visibility: visible; clip-path: inset(0 0 0 0); } }
@keyframes aj-overlay-out { to { opacity: 0; visibility: hidden; } }
@keyframes aj-unlock { to { overflow: visible; } }
.js:not(.no-anim):not(.anim-live) [data-split],
.js:not(.no-anim):not(.anim-live) [data-reveal],
.js:not(.no-anim):not(.anim-live) [data-reveal-img] { animation: aj-release 0.6s ease 7s forwards; }
.is-preloading .preloader { animation: aj-overlay-out 0.4s ease 7s forwards; }
.is-preloading body { animation: aj-unlock 0s 7s forwards; }
.is-entering .page-wipe { animation: aj-overlay-out 0.3s ease 2.5s forwards; }
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.sw-i { display: inline-block; will-change: transform; }

/* ---------- Content components (profile rewrite) ---------- */
/* section intros sit on columns 4-9 of the 12-col grid (start = 3 cols + 3 gaps, width = 6 cols + 5 gaps) */
.section-intro { width: calc(50% - var(--col-gap) / 2); margin: calc(-1 * clamp(24px, 4vw, 72px)) 0 clamp(48px, 6vw, 96px) calc(25% + var(--col-gap) / 4); }
.prose-label { margin-top: 1.6em; font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.prose-label:first-child { margin-top: 0; }
.prose .prose-label + p { margin-top: 0.5em; }
.profile-list--wrap li { gap: 24px; align-items: baseline; }
.profile-list--wrap li .mono { text-align: right; }
.values--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.values--5 .value h3 { margin-top: clamp(40px, 5vw, 88px); }
.process--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.discipline-index--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.discipline-note { font-size: var(--fs-body); line-height: 1.6; }
.discipline-note .u-link { color: var(--fg); }
.sub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) var(--col-gap); }
.sub-card { display: grid; gap: 14px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line); }
.sub-card h3 { font-weight: 500; display: flex; gap: 12px; align-items: baseline; }
.sub-card h3 .mono { color: var(--muted); }
.sub-card ul { display: grid; gap: 8px; color: var(--muted); font-size: var(--fs-body); }
.sub-card p { color: var(--muted); font-size: var(--fs-body); line-height: 1.6; }
/* Special projects: only two sub-services, so they sit as full-height panels level with
   the sticky heading column instead of two short cards over an empty column */
#special .discipline-body { align-self: stretch; }
.sub-grid--special { height: 100%; }
.sub-grid--special .sub-card {
  align-content: space-between;
  min-height: clamp(240px, 30vw, 440px);
  padding: clamp(24px, 2.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.sub-grid--special .sub-card h3 { flex-direction: column; gap: 18px; }
.sub-card li { display: flex; gap: 10px; align-items: baseline; }
.sub-card li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red); flex: none; transform: translateY(-2px); }
.prow-scope { display: block; margin-top: 8px; font-size: var(--fs-body); font-weight: 400; letter-spacing: 0; line-height: 1.45; color: var(--muted); }
.prow[data-cat="water"] { --c: #e0a526; }
.org-div--wide { grid-column: span 2; }
.org-divisions:has(.org-div--wide) { grid-auto-flow: row dense; }
.org-div--wide ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.offices { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 10px; margin-top: clamp(32px, 4vw, 56px); padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.offices .mono { grid-column: 1 / span 3; }
.offices p:nth-child(2) { grid-column: 4 / span 4; }
.offices p:nth-child(3) { grid-column: 8 / -1; }
.offices b { color: var(--fg); font-weight: 500; }
.contact-block p:not(.mono) { font-size: 19.5px; line-height: 1.5; }

/* ---------- Square text blocks ----------
   Client rule: body copy starts together and ends together. Every multi-line body
   paragraph is justified inside its grid column (flush left AND flush right), with
   hyphenation (needs <html lang="en">) so word gaps stay even, and the last line
   left-aligned so it is never stretched. No borders or boxes: the column is the edge.
   Note: Chrome does not auto-hyphenate capitalised words, so the Title Case statement
   must not break words: hyphenation is off and no soft hyphens.
   The Who-we-are .statement is now a heading (client round 2), so it is set ragged-right. */
.lead,
.prose p,
.section-intro,
.statement-copy p,
.value p,
.stat p,
.step p,
.civil-card p,
.discipline-note,
.offices p,
.contact-block p:not(.mono),
.prow-scope,
.org-div--note p,
.t-square {
  text-align: justify;
  text-align-last: left;
  -webkit-hyphens: none;
  hyphens: none;
  hyphenate-limit-chars: 7 3 3;
  text-wrap: wrap; /* greedy fill: "pretty" re-flows the last lines and opens wide gaps in justified text */
  overflow-wrap: break-word;
  min-width: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav a { padding: 10px 13px; }
  .hero-bar { grid-template-columns: 1fr 1fr auto; }
  .hero-bar .hide-md { display: none; }
  .org-divisions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
  .values--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .values--5 .value:nth-child(3) { border-right: 0; }
  .values--5 .value:nth-child(4) { padding-left: 0; }
  .discipline-index--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discipline-index--4 a:nth-child(3) { border-right: 1px solid var(--line); padding-left: 0; }
  .discipline-index--4 a:nth-child(2) { border-right: 0; }
  .discipline-index--4 a:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .discipline-index--4 a:nth-child(4) { padding-left: 20px; }
  .discipline-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .discipline-index a:nth-child(3) { border-right: 0; }
  .discipline-index a:nth-child(4) { padding-left: 0; }
  .discipline-index a:nth-child(n + 4) { border-top: 1px solid var(--line); }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .site-header { grid-template-columns: 1fr auto; }
  .nav, .header-end .btn { display: none; }
  .menu-toggle { display: inline-flex; }

  .section-head .label,
  .statement-grid > .label,
  .about-intro .label { grid-column: 1 / -1; }
  .section-head .h2,
  .section-head--split .h2,
  .section-head .section-aside,
  .section-head--split .section-aside,
  .section-head--filters .h2,
  .section-head--filters .section-aside,
  .statement,
  .statement-foot { grid-column: 1 / -1; }
  .statement-foot { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 40px; }
  .statement-figure { grid-column: 1 / span 3; }
  .statement-copy { grid-column: 1 / -1; padding-left: 0; }

  .values, .values--5 { grid-template-columns: 1fr; }
  .values--5 .value:nth-child(n) { padding-left: 0; border-right: 0; }
  .section-intro { width: auto; margin: calc(-1 * clamp(16px, 3vw, 40px)) 0 48px; }
  .offices .mono, .offices p:nth-child(2), .offices p:nth-child(3) { grid-column: 1 / -1; }
  .sub-grid { grid-template-columns: 1fr; }
  .glance > * { grid-column: 1 / -1 !important; }
  .section-head > [style*="grid-column"] { grid-column: 1 / -1 !important; }
  .value, .value + .value { padding: 28px 0 40px; border-right: 0; }
  .value h3 { margin-top: 40px; }

  .svc { grid-template-columns: 52px minmax(0, 1fr) 48px; column-gap: 24px; }
  .svc-num { grid-column: 1; }
  .svc-title { grid-column: 2; }
  .svc-tags { grid-column: 2; grid-row: 2; text-align: left; }
  .svc-arrow { grid-column: 3; grid-row: 1 / span 2; width: 48px; height: 48px; }
  .svc-preview { display: none; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .partners-foot p { grid-column: 1 / -1; }
  .profile-media, .profile-copy { grid-column: 1 / -1; }

  .footer-cta-link { grid-column: 1 / -1; }

  .page-hero-foot .lead { grid-column: 1 / -1; }
  .hero-sub { grid-column: 1 / span 9; }
  .hero-ctas { grid-column: 1 / -1; justify-self: start; }
  .page-hero-foot .mono { grid-column: 1 / -1; justify-self: start; text-align: left; margin-top: 20px; }
  .page-hero--split .split-text { grid-column: 1 / -1; }
  .page-hero--split .split-media { grid-column: 1 / -1; min-height: 0; aspect-ratio: 4 / 3; margin-top: 40px; order: 2; }
  .page-hero--split .page-hero-foot { order: 3; }

  .about-intro .h2, .about-intro .prose, .about-intro .about-side { grid-column: 1 / -1; grid-row: auto; }
  .culture-media, .culture-copy, .culture-secondary { grid-column: 1 / -1; }
  .network-copy, .orbit-wrap { grid-column: 1 / -1; }

  .discipline-head, .discipline-body { grid-column: 1 / -1; }
  .discipline-sticky { position: static; }

  .cta-band .h2, .cta-band .cta-side { grid-column: 1 / -1; }

  .prow { grid-template-columns: 44px minmax(0, 1fr) auto; row-gap: 6px; }
  .prow--head { display: none; }
  .prow-title { grid-column: 2 / -1; }
  .prow > .mono:first-child { grid-row: 1 / span 2; align-self: start; padding-top: 6px; }
  .prow-type { grid-column: 2; font-size: 16.5px; }
  .prow-client { grid-column: 3; text-align: right; font-size: 16.5px; }
  .prow-mark { display: none; }

  .contact-details { grid-template-columns: 1fr; }
  .map { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .orbit { --r: 31cqw; }
  .orbit-item span { padding: 8px 12px; font-size: 13px; }
  .statement-figure { grid-column: 1 / -1; }
  .brand-word small { display: none; }
  .hero-sub { grid-column: 1 / -1; }
  .hero-bar { grid-template-columns: 1fr auto; }
  .hero-bar .hide-sm { display: none; }
  .btn { height: 56px; padding-left: 24px; }
  .btn-icon { width: 40px; height: 40px; }
  .org-divisions { grid-template-columns: 1fr; }
  .org-div--wide { grid-column: auto; }
  .org-div--wide ul { grid-template-columns: 1fr; }
  .process--5 { grid-template-columns: 1fr 1fr; }
  .discipline-index--4 { grid-template-columns: 1fr 1fr; }
  .profile-list--wrap li { flex-direction: column; gap: 4px; }
  .profile-list--wrap li .mono { text-align: left; }
  .org-div { min-height: 0; }
  .process { grid-template-columns: 1fr 1fr; }
  .discipline-index { grid-template-columns: 1fr 1fr; }
  .discipline-index a { padding-left: 0 !important; border-right: 0 !important; border-top: 1px solid var(--line); gap: 18px; }
  .discipline-index a:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line) !important; }
  .discipline-index a:nth-child(even) { padding-left: 16px !important; }
  .civil-cards { grid-template-columns: 1fr; }
  .media-pair .frame:nth-child(2) { margin-top: 30%; }
  .stat p { margin-top: 28px; }
  .footer-col { grid-column: 1 / -1; }
  .map-card { left: 12px; right: 12px; bottom: 12px; }
  .lightbox-bottom .mono { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  body::after { animation: none; }
  .hero-slide img { transform: none !important; }
  .marquee-track { animation: none; }
}

/* ---------- Partner logos (assets from tools/partner_logos.py) ---------- */
/* Each logo carries --m (solved optical height multiplier) and --ar (aspect).
   Rendered height = min(surface token x --m, width cap / --ar, token x 1.4 ceiling);
   width follows the intrinsic ratio, so nothing is stretched. Tokens are mirrored in
   SURFACES / M_MAX in the script. */
.partner-logo { display: block; width: auto; max-width: none; flex: none; }

/* index marquee: logos take the place of the text items, red-dot rhythm unchanged.
   Width cap 16vw (230px at 1440 = 16% of the strip; 96px floor = 25% at 390). */
.marquee { --plogo-h: clamp(40px, 4.4vw, 64px); --plogo-w: clamp(96px, 16vw, 230px); }
.marquee-item--logo { min-height: calc(var(--plogo-h) * 1.4); padding-inline: 0.2em 0.55em; }
.marquee-item--logo .partner-logo { height: min(calc(var(--plogo-h) * var(--m, 1)), calc(var(--plogo-w) / var(--ar, 1)), calc(var(--plogo-h) * 1.4)); }

/* about "Partners and suppliers": fixed-width cells that wrap and centre, so a short
   last row sits in the middle instead of leaving empty cells. Vertical rules only
   between neighbours in a row (row starts are known per column count). */
.network-list--logos { --cols: 3; display: flex; flex-wrap: wrap; justify-content: center; }
.network-list--logos li {
  flex: 0 0 calc(100% / var(--cols));
  container-type: inline-size;
  justify-content: center;
  align-items: center;
  min-height: 104px;
  padding: 22px 16px;
  border-left: 1px solid var(--line);
}
.network-list--logos li:nth-child(3n + 1) { border-left: 0; }
.network-list--logos .partner-logo { height: min(calc(44px * var(--m, 1)), calc(86cqw / var(--ar, 1)), calc(44px * 1.4)); }

/* about orbit: logos ride in the existing pills. Sizes follow the orbit (cqw of .orbit)
   so every pill stays inside the circle at any orbit size. */
.orbit { --olog-h: min(30px, 4.6cqw); --olog-w: min(96px, 13cqw); }
.orbit-item .orbit-logo { padding: min(9px, 1.4cqw) min(14px, 2.2cqw); line-height: 0; }
.orbit-logo .partner-logo { height: min(calc(var(--olog-h) * var(--m, 1)), calc(var(--olog-w) / var(--ar, 1)), calc(var(--olog-h) * 1.4)); }

@media (min-width: 961px) and (max-width: 1180px), (max-width: 640px) {
  .network-list--logos { --cols: 2; }
  .network-list--logos li:nth-child(3n + 1) { border-left: 1px solid var(--line); }
  .network-list--logos li:nth-child(2n + 1) { border-left: 0; }
  /* odd count: the last cell takes the whole row, a closing rule rather than a gap */
  .network-list--logos li:last-child:nth-child(2n + 1) { flex-basis: 100%; }
}
@media (max-width: 640px) {
  .network-list--logos li { min-height: 92px; }
  .orbit { --olog-h: min(22px, 6.2cqw); --olog-w: min(72px, 20cqw); }
  .orbit-item .orbit-logo { padding: min(7px, 2cqw) min(10px, 2.8cqw); }
}
