/* Dantel Communications, in the primes.com.au style: charcoal and light grey
   sections, one vivid blue accent used as solid blocks, a grotesk with mono
   labels. Sizes are Prime's, measured at 1440px wide (RESEARCH.md). */

@font-face { font-family: "Neue Haas Grotesk Display"; src: url("../fonts/NeueHaasDisplayRoman.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Neue Haas Grotesk Display"; src: url("../fonts/NeueHaasDisplayMediu.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Neue Haas Grotesk Display"; src: url("../fonts/NeueHaasDisplayBold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
/* Space Mono (SIL Open Font License, fonts/SpaceMono-OFL.txt), hosted here so no visitor request goes to Google. Latin subset. */
@font-face { font-family: "Space Mono"; src: url("../fonts/SpaceMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("../fonts/SpaceMono-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --black: #212123;
  --off-black: #373739;
  --grey-1: #d9d9d9;
  --grey-2: #b4b4b4;
  --grey-3: #9c9c9c;
  --stroke: #c1bfbf;
  --light: #f8f8f8;
  --accent: #0a5cff;
  --error: #fe0e0e;
  --white: #fff;
  --hairline: rgba(255, 255, 255, .1);

  --font: "Neue Haas Grotesk Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  /* Neue Haas Roman matches the stroke of Prime's display weight; Medium for small titles. */
  --display: 400;

  /* Fluid type and space (Utopia-style, as Prime). */
  --step--1: clamp(.75rem, .7842rem + -.0276vw, .7778rem);
  --step-0: clamp(.875rem, .8605rem + .0621vw, .9375rem);
  --step-1: clamp(.9844rem, .9408rem + .1863vw, 1.1719rem);
  --step-2: clamp(1.1074rem, 1.0244rem + .3552vw, 1.4648rem);
  --step-3: clamp(1.2458rem, 1.1099rem + .5816vw, 1.8311rem);
  --step-4: clamp(1.4016rem, 1.1955rem + .8817vw, 2.2888rem);
  --step-5: clamp(1.5768rem, 1.2785rem + 1.2763vw, 2.861rem);
  --step-6: clamp(1.7739rem, 1.3552rem + 1.7912vw, 3.5763rem);
  --step-7: clamp(1.9956rem, 1.4207rem + 2.4594vw, 4.4703rem);
  --step-8: clamp(2.2451rem, 1.4685rem + 3.3221vw, 5.5879rem);
  --step-9: clamp(2.5257rem, 1.4898rem + 4.4315vw, 6.9849rem);
  --step-10: clamp(2.8414rem, 1.4732rem + 5.8532vw, 8.7311rem);

  --space-xs: clamp(.5625rem, .548rem + .0621vw, .625rem);
  --space-s: clamp(.875rem, .8605rem + .0621vw, .9375rem);
  --space-m: clamp(1.3125rem, 1.2835rem + .1242vw, 1.4375rem);
  --space-l: clamp(1.75rem, 1.721rem + .1242vw, 1.875rem);
  --space-xl: clamp(2.625rem, 2.5814rem + .1863vw, 2.8125rem);
  --space-2xl: clamp(3.5rem, 3.4419rem + .2484vw, 3.75rem);
  --space-3xl: clamp(5.25rem, 5.1629rem + .3727vw, 5.625rem);
  --space-s-m: clamp(.875rem, .7443rem + .559vw, 1.4375rem);

  --gutter: var(--space-s-m);                          /* 22px at 1440 */
  --section: clamp(13.125rem, 12.9072rem + .9317vw, 14.0625rem);  /* Prime keeps ~210-225px at every width */
  --nav-h: 66px;

  --ease: cubic-bezier(.14, .9, .34, .94);
  --ease-in-out: cubic-bezier(.625, .05, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0; background: var(--grey-1); color: var(--black);
  font-family: var(--font); font-size: var(--step-0); font-weight: 400; line-height: 1.6; letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { position: relative; z-index: 1; background: var(--grey-1); }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; } /* an AVIF photo's wrapper: the img lays out as if it were the direct child */
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dark :focus-visible, .nav :focus-visible, .contact__intro :focus-visible, .feature__cta :focus-visible, .mobile-menu :focus-visible, .row:hover :focus-visible { outline-color: var(--white); }
[tabindex="-1"]:focus { outline: none; } /* sections focused by the skip link or a contents link */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--white); color: var(--black); padding: 10px 14px; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

.dark { background: var(--black); color: var(--white); }
.light { background: var(--grey-1); color: var(--black); }

/* ---------- Type ---------- */
.h-xl, .h-l, .hero__heading, .contact__heading, .footer__tagline { font-weight: var(--display); text-wrap: balance; }
/* A hairline stroke brings Neue Haas Roman up to the weight of Prime's display face without widening it. */
.h-xl, .h-l, .hero__heading, .contact__heading, .footer__tagline, .stats__value, .row__name, .mega__title, .mobile-menu a:not(.button) { -webkit-text-stroke: .02em currentColor; }
.h-xl { font-size: var(--step-9); line-height: 1; letter-spacing: -.01em; }
.h-l { font-size: var(--step-8); line-height: 1.01; letter-spacing: -.01em; }
.label { font-family: var(--mono); font-size: var(--step--1); line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Buttons: the label rolls and the arrow swaps on hover ---------- */
.button {
  --b-bg: var(--white); --b-fg: var(--black); --chip: 24px; --icon: 16px;
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 11px;
  background: var(--b-bg); color: var(--b-fg); border: 0; border-radius: 4px; overflow: clip;
  font: 500 14px/1.2 var(--font); letter-spacing: .01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .16s ease-out, background-color .3s ease, color .3s ease;
}
.button[data-colour="black"] { --b-bg: var(--black); --b-fg: var(--white); }
.button[data-size="large"] { --chip: 32px; --icon: 21.33px; gap: 12px; padding: 8px 8px 8px 15px; font-size: var(--step-1); }
/* Label roll: the label moves up 1.5em and its shadow copy (1.5em below) moves into place. The clip sits on the still wrapper, not the moving label. */
.button-text { display: inline-block; overflow: hidden; vertical-align: top; }
.button-text span { display: inline-block; text-shadow: 0 1.5em 0 currentColor; transition: transform .5s var(--ease-in-out); }
.button-icon { position: relative; flex: none; width: var(--chip); height: var(--chip); background: var(--accent); border-radius: 4px; overflow: hidden; color: var(--white); }
.button-icon .icon { position: absolute; inset: calc((var(--chip) - var(--icon)) / 2); width: var(--icon); height: var(--icon); transition: transform .5s var(--ease-in-out); }
.button-icon .icon + .icon { transform: translateX(calc(var(--chip) * -1)); }
@media (hover: hover) {
  .button:hover .button-text span, .row:hover .button .button-text span { transform: translateY(-1.5em); }
  .button:hover .button-icon .icon, .row:hover .button-icon .icon { transform: translateX(var(--chip)); }
  .button:hover .button-icon .icon + .icon, .row:hover .button-icon .icon + .icon { transform: translateX(0); }
}
.button:active { transform: scale(.97); }
.button--bar { display: flex; width: 100%; justify-content: space-between; min-height: 63px; padding: 14px 15px; }

.textlink { position: relative; display: inline-block; padding: 8px 0; font: 500 14px/1.2 var(--font); text-decoration: none; }
.textlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-in-out); }
.textlink:hover::after { transform: scaleX(1); }

/* ---------- Header ---------- */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: stretch; height: var(--nav-h); background: var(--black); color: var(--white); }
.nav__logo { flex: none; display: grid; place-items: center; width: 144px; padding: 0 20px; background: var(--accent); }
.nav__logo img { width: 104px; height: auto; }
.nav__logo-mark { display: none; }
.nav__primary { display: flex; align-items: center; padding-left: 18px; }
.nav__list { display: flex; align-items: center; gap: 12px; }
.nav__item { display: flex; align-items: center; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px; background: none; border: 0; border-radius: 4px;
  color: var(--grey-1); text-decoration: none; font-size: 14.66px; line-height: 1.4; letter-spacing: .02em; cursor: pointer;
  transition: color .3s ease;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--white); }
.nav__link[aria-current="page"], .nav__link[data-current] { color: var(--white); }
.chev { width: 12px; height: 12px; transition: transform .3s var(--ease-in-out); }
.nav__link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 10px; padding-right: 20px; }
.nav__menu { display: none; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xl);
  padding: var(--space-xl) var(--gutter) var(--space-2xl); background: var(--black); border-top: 1px solid var(--off-black);
  animation: mega-in .35s var(--ease) both;
}
@keyframes mega-in { from { opacity: 0; } }
.mega__intro { display: grid; align-content: start; gap: var(--space-s); justify-items: start; }
.mega__intro .label { color: var(--grey-2); }
.mega__title { font-size: var(--step-5); font-weight: var(--display); line-height: 1.05; max-width: 16ch; letter-spacing: -.01em; }
.mega__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; border-top: 1px solid var(--off-black); }
.mega__links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--off-black); color: var(--grey-1); text-decoration: none; font-size: var(--step-1); transition: color .3s ease; }
.mega__links li:nth-child(odd) a { margin-right: var(--space-m); }
.mega__links a:hover { color: var(--white); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 49; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-xl);
  padding: var(--space-m) var(--gutter) var(--space-xl); background: var(--black); color: var(--white);
}
.mobile-menu li, .mobile-menu__end { animation: menu-item .5s var(--ease) both; animation-delay: calc(var(--i) * 40ms + 60ms); }
@keyframes menu-item { from { opacity: 0; transform: translateY(20px); } }
.mobile-menu a:not(.button) { display: block; padding: 14px 0; border-bottom: 1px solid var(--off-black); font-size: var(--step-5); font-weight: var(--display); text-decoration: none; letter-spacing: -.01em; }

@media (max-width: 1023px) {
  .nav { background: transparent; pointer-events: none; margin-bottom: calc(var(--nav-h) * -1); }
  .nav > * { pointer-events: auto; }
  .nav__primary, [data-nav-contact] { display: none; }
  .nav__logo { width: var(--nav-h); padding: 0; }
  .nav__logo-full { display: none; }
  .nav__logo .nav__logo-mark { display: block; width: 34px; }
  .nav__end { padding-right: 12px; }
  .nav__menu {
    display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 11px;
    background: var(--white); color: var(--black); border: 0; border-radius: 4px; font: 500 14px/1.2 var(--font); cursor: pointer;
  }
  .nav__menu-icon { display: grid; grid-template-columns: repeat(2, 5px); gap: 3px; place-content: center; width: 24px; height: 24px; background: var(--accent); border-radius: 4px; }
  .nav__menu-icon i { width: 5px; height: 5px; background: var(--white); transition: transform .3s var(--ease-in-out); }
  .nav__menu[aria-expanded="true"] .nav__menu-icon i:nth-child(1) { transform: translate(4px, 4px); }
  .nav__menu[aria-expanded="true"] .nav__menu-icon i:nth-child(2) { transform: translate(-4px, 4px); }
  .nav__menu[aria-expanded="true"] .nav__menu-icon i:nth-child(3) { transform: translate(4px, -4px); }
  .nav__menu[aria-expanded="true"] .nav__menu-icon i:nth-child(4) { transform: translate(-4px, -4px); }
  .menu-open .nav { background: var(--black); }
}

/* ---------- Section intro: heading left, sentence right, bottoms aligned ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); column-gap: var(--space-xl); row-gap: var(--space-m); align-items: end; padding: var(--section) var(--gutter) 0; }
.intro__heading { max-width: 13em; }
/* A heading with no sentence beside it runs wider, as on Prime (about 11em). */
.intro__heading:only-child { grid-column: 1 / -1; max-width: 11.2em; }
.intro__text { justify-self: end; width: 100%; max-width: 560px; font-size: var(--step-1); line-height: 1.4; letter-spacing: .02em; }
.dark .intro__text, .dark .centred__text { color: var(--grey-2); }
.light .intro__text { color: var(--off-black); }
.light .h-xl, .light .h-l { color: var(--black); }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } .intro__text { justify-self: start; } }

.centred { display: grid; justify-items: center; gap: var(--space-m); padding: 0 var(--gutter); text-align: center; }
.centred .h-l { max-width: 24ch; }
.centred__text { max-width: 660px; font-size: var(--step-2); line-height: 1.2; letter-spacing: .02em; }

/* ---------- Hero ---------- */
.hero {
  --bar: clamp(6px, .7vw, 10px);
  --block: clamp(22px, 2.9vw, 42px);
  --pad: calc(var(--block) + clamp(14px, 1.9vw, 27px));
  position: relative; display: grid; align-items: end; overflow: hidden;
  min-height: max(560px, calc(100svh - var(--nav-h)));
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .25); pointer-events: none; } /* slight overall darkening */
/* Home hero photo motion (site.js heroPhoto adds the slats and the glow; none of this exists under reduced motion). */
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__slats { position: absolute; inset: 0; display: flex; pointer-events: none; }
.hero__slat { flex: 1 1 0; margin-right: -1px; background: var(--black); border-bottom: 2px solid var(--accent); box-shadow: inset -1px 0 rgba(255, 255, 255, .07); will-change: transform; }
.hero__glow { position: absolute; left: var(--sun-x, 45%); top: var(--sun-y, 50%); width: 70vmax; height: 70vmax; margin: -35vmax 0 0 -35vmax; opacity: 0; mix-blend-mode: screen; pointer-events: none; }
.hero__glow span { display: block; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 186, 96, .5), rgba(255, 140, 50, .17) 38%, rgba(255, 120, 40, 0) 70%); }
.hero--ready .hero__media picture { animation: hero-drift 26s ease-in-out infinite alternate paused; }
.hero--ready .hero__glow span { animation: hero-breathe 7s ease-in-out infinite alternate paused; }
.hero--ready.is-live .hero__media picture, .hero--ready.is-live .hero__glow span { animation-play-state: running; }
@keyframes hero-drift { to { transform: scale(1.06) translate3d(-1.1%, -.7%, 0); } }
@keyframes hero-breathe { from { opacity: .72; transform: scale(.94); } to { opacity: 1; transform: scale(1.07); } }
.hero__scrim { position: absolute; inset: 16% 0 0; background: linear-gradient(rgba(0, 0, 0, 0) 23%, rgba(0, 0, 0, .5) 92%); pointer-events: none; }
.hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; gap: var(--space-l); padding: 0 var(--gutter) var(--space-3xl) var(--pad); }
.hero__title { position: relative; font-size: var(--step-9); }
@media (max-height: 520px) and (orientation: landscape) { .hero__inner { padding-top: calc(var(--nav-h) + var(--space-m)); padding-bottom: var(--space-xl); } .hero__title { font-size: var(--step-7); } }
.hero__heading { font-size: 1em; line-height: .94; max-width: 16ch; }
.hero__block { position: absolute; left: calc(var(--pad) * -1); top: .1em; width: var(--block); height: .73em; background: var(--accent); transform-origin: left; }
.hero__bar { position: absolute; left: calc(var(--pad) * -1); bottom: calc(100% - .1em); width: var(--bar); height: 200vh; background: var(--accent); transform-origin: top; }
.hero__text { max-width: 350px; font-size: var(--step-2); line-height: 1.2; letter-spacing: .02em; }
@media (min-width: 1024px) {
  /* Prime sets the sentence two-thirds across, 350px wide, bottoms aligned. */
  .hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) min(350px, 26vw); column-gap: var(--space-xl); align-items: end; padding-right: max(var(--gutter), calc(33vw - min(350px, 26vw))); }
  .hero__text { margin-bottom: .1em; }
}

/* ---------- Stats ---------- */
.stats__track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats__card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-xl);
  min-height: clamp(320px, 34.6vw, 520px); padding: var(--gutter);
}
.stats__card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); }
.stats__value { font-size: var(--step-7); font-weight: var(--display); line-height: 1; letter-spacing: -.01em; }
.stats__label { margin-top: 10px; font-family: var(--mono); font-size: var(--step--1); line-height: 1; letter-spacing: .1em; text-transform: uppercase; color: var(--light); }
.stats__heading { font-size: var(--step-0); font-weight: 500; line-height: 1.4; }
.stats__text { margin-top: 9px; max-width: 46ch; font-size: var(--step-0); line-height: 1.4; letter-spacing: .02em; color: var(--grey-2); }
@media (max-width: 760px) {
  /* Swipe sideways through the cards; an up or down swipe still moves the page (overflow-y: hidden). */
  .stats__track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .stats__track::-webkit-scrollbar { display: none; }
  .stats__card { flex: 0 0 78vw; min-height: 0; gap: var(--space-l); scroll-snap-align: start; }
}

/* ---------- Services slider (Prime: IconGrid) ---------- */
.services__frame { margin-top: var(--space-2xl); border-top: 1px solid var(--off-black); border-bottom: 1px solid var(--off-black); }
.services__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.services__track::-webkit-scrollbar { display: none; }
.services__item {
  flex: 0 0 clamp(270px, 23.5vw, 400px); scroll-snap-align: start;
  display: grid; grid-template-rows: auto 1fr auto; gap: 10px; min-height: clamp(420px, 33.3vw, 540px);
  padding: var(--gutter); border-left: 1px solid var(--hairline);
}
.services__item:first-child { border-left-color: transparent; }
.services__title { font-size: var(--step-2); font-weight: 500; line-height: 1.2; letter-spacing: 0; max-width: 16ch; }
.line-icon { align-self: center; justify-self: center; width: clamp(110px, 10vw, 150px); height: auto; color: var(--accent); --icon-bg: var(--black); }
.light .line-icon, .services--light .line-icon { --icon-bg: var(--grey-1); }  /* animated icons' node fills match the section */
.services__foot { display: grid; gap: 8px; align-content: end; }
.services__foot p { color: var(--grey-2); font-size: var(--step-0); line-height: 1.6; }
.services__foot .textlink { justify-self: start; }
.slider-controls { display: flex; border-top: 1px solid var(--off-black); }
.slider-btn {
  display: grid; place-items: center; width: 56px; height: 54px; padding: 0;
  background: none; border: 0; border-right: 1px solid var(--off-black); color: var(--white); cursor: pointer; transition: opacity .2s ease, background-color .2s ease;
}
.slider-btn svg { width: 16px; height: 16px; }
.slider-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .04); }
.slider-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Partner logos and certifications (marquees) ---------- */
.logos { padding: calc(clamp(5.25rem, 4.5095rem + 3.1677vw, 8.4375rem) + var(--section)) 0 clamp(7.875rem, 6.4377rem + 6.1491vw, 12rem); }
.marquee { display: flex; margin-top: var(--space-2xl); overflow: hidden; }
.marquee__group { display: flex; flex: none; gap: 9px; padding-right: 9px; }
.motion .marquee.is-running .marquee__group { animation: marquee var(--marquee-duration, 40s) linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }
.logo-tile { display: grid; place-items: center; width: clamp(160px, 15.4vw, 240px); height: clamp(100px, 9.65vw, 150px); padding: 0 clamp(24px, 3.3vw, 48px); border: 1px solid rgba(255, 255, 255, .2); border-radius: 4px; }
.logo-tile img { max-width: 100%; max-height: 32px; width: auto; filter: brightness(0) invert(1); }
.logo-tile--badge img { max-height: 48px; filter: grayscale(1) brightness(1.15); }

/* Home track record: last financial year's figures between the intro and the logos (site.js rolls them in). */
.proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); width: min(100% - 2 * var(--gutter), 880px); margin: var(--space-2xl) auto 0; text-align: left; }
.proof__item { position: relative; padding: 4px 0 4px clamp(16px, 1.6vw, 24px); }
.proof__item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); }
.proof__value { font-size: var(--step-7); font-weight: var(--display); line-height: 1; letter-spacing: -.01em; -webkit-text-stroke: .02em currentColor; }
.proof__label { margin-top: 14px; font-family: var(--mono); font-size: var(--step--1); line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: var(--light); }
.proof__note { margin-top: 6px; font-size: var(--step-0); line-height: 1.4; letter-spacing: .02em; color: var(--grey-2); }
.proof--roll .proof__item::before { transform: scaleY(var(--k, 1)); transform-origin: top; }
.proof--roll .proof__label, .proof--roll .proof__note { opacity: var(--t, 1); transform: translateY(calc((1 - var(--t, 1)) * 16px)); }

.iso { padding: var(--section) 0; }
.iso-tile { display: grid; place-items: center; min-width: 200px; height: 68px; padding: 7.66px 22px; border: 1px solid var(--hairline); border-radius: 4px; font-family: var(--mono); font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }

/* ---------- Process: intro and featured block ---------- */
.feature { margin-top: var(--space-2xl); }
.feature__hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 27.8vw, 440px); min-height: clamp(560px, 55.5vw, 860px); overflow: hidden; }
.feature__media { position: absolute; inset: 0; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }
.feature__caption { position: absolute; left: var(--gutter); bottom: 37px; z-index: 1; color: var(--white); }
.feature__panel {
  position: relative; z-index: 1; grid-column: 2; margin: var(--gutter) var(--gutter) var(--gutter) 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 29px 20px; background: var(--grey-1);
}
.ticks { align-self: stretch; margin-top: clamp(20px, 3vw, 44px); }
.ticks li { position: relative; padding: 18px 0 18px 14px; border-bottom: 1px solid var(--stroke); font-size: 13px; line-height: 1.45; color: var(--off-black); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 22px; width: 2px; height: 14px; background: var(--accent); }
.ticks strong { display: block; margin-bottom: 2px; color: var(--black); font-weight: 400; font-size: var(--step-0); letter-spacing: .02em; }
.feature__row { display: grid; grid-template-columns: minmax(0, 29fr) minmax(0, 35.5fr) minmax(0, 35.5fr); min-height: clamp(200px, 16.5vw, 260px); }
.feature__cta { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: var(--space-xl); padding: var(--gutter); background: var(--accent); color: var(--white); }
.feature__cta-title { font-size: var(--step-3); font-weight: var(--display); -webkit-text-stroke: .02em currentColor; line-height: 1.2; max-width: 18ch; }
.card { display: grid; grid-template-columns: minmax(0, 178fr) minmax(0, 300fr); gap: var(--gutter); padding: var(--gutter); border-left: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }
.card__media { overflow: hidden; }
.card__media img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; transition: transform 1s var(--ease); }
@media (hover: hover) { .card:hover .card__media img { transform: scale(1.04); } }
.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.card__title { font-size: var(--step-1); line-height: 1.3; color: var(--black); }
.card__label { margin-top: auto; color: var(--off-black); }
@media (max-width: 900px) {
  .feature__hero { grid-template-columns: 1fr; min-height: 0; }
  .feature__media { position: relative; aspect-ratio: 4 / 3; }
  .feature__caption { bottom: auto; top: calc(min(100vw, 900px) * .75 - 40px); }
  .feature__panel { grid-column: 1; margin: 0; }
  .feature__row { grid-template-columns: 1fr; }
  .card { border-left: 0; }
}

/* ---------- Sectors (Prime: ListGrid) ---------- */
.sectors { padding-bottom: var(--space-3xl); }
.rows { margin: var(--space-2xl) var(--gutter) 0; border-bottom: 1px solid var(--stroke); }
.row {
  position: relative; display: grid; grid-template-columns: clamp(64px, 6.25vw, 90px) minmax(0, 621fr) minmax(0, 452fr) auto; column-gap: clamp(16px, 2vw, 29px);
  min-height: clamp(130px, 12.3vw, 190px); padding-right: 14.66px; border: 1px solid var(--stroke); border-bottom: 0; color: var(--black);
  transition: color .35s ease;
}
.row::before { content: ""; position: absolute; inset: 0; background: var(--black); opacity: 0; transition: opacity .35s ease; }
.row > * { position: relative; }
.row__icon { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-right: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); transition: background-color .35s ease, color .35s ease, border-color .35s ease; }
.glyph { width: 40%; height: auto; }
.row__name { padding-top: 22px; font-size: var(--step-6); font-weight: var(--display); line-height: 1.1; letter-spacing: 0; }
.row__text { padding-top: 22px; max-width: 452px; font-size: var(--step-1); line-height: 1.4; letter-spacing: .02em; color: var(--off-black); transition: color .35s ease; }
.row .button { align-self: start; margin-top: 28px; }
@media (hover: hover) and (min-width: 761px) { /* phone-width cards have no inner padding, so no dark fill there */
  .row:hover { color: var(--white); }
  .row:hover::before { opacity: 1; }
  .row:hover .row__icon { background: var(--accent); border-color: var(--accent); color: var(--white); }
  .row:hover .row__text { color: var(--grey-2); }
  .row:hover .button { --b-bg: var(--white); --b-fg: var(--black); }
}
@media (max-width: 900px) {
  .row { grid-template-columns: 56px minmax(0, 1fr); row-gap: 10px; padding-bottom: 20px; }
  .row__text, .row .button { grid-column: 2; justify-self: start; }
  .row__name, .row__text { padding-top: 0; }
  .row__name { padding-top: 14px; }
  .row .button { margin-top: 6px; }
}

/* ---------- Careers ---------- */
.cta { display: grid; justify-items: center; gap: 22px; padding: var(--section) var(--gutter); text-align: center; }
.cta__label { color: var(--black); margin-bottom: 8px; }
.cta .h-l { max-width: none; }
.cta__text { max-width: 52ch; font-size: var(--step-1); line-height: 1.4; letter-spacing: .02em; color: var(--off-black); margin-bottom: 8px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 36.3fr) minmax(0, 63.7fr); background: var(--black); }
.contact__intro { position: relative; overflow: hidden; min-height: clamp(560px, 70vw, 1200px); display: flex; flex-direction: column; gap: 22px; padding: 52px 40px var(--space-3xl) 20px; background: var(--accent); color: var(--white); }
/* Prime's size, capped so the longest word ("prequalification?") fits the panel. */
.contact__heading { font-size: min(var(--step-8), calc((36.3vw - 60px) / 8.8)); line-height: 1.01; letter-spacing: -.01em; max-width: 12ch; }
.contact__mark { position: absolute; left: -14%; top: 62%; width: 130%; max-width: none; pointer-events: none; }
.contact__body { padding: 132px 9.2vw var(--section) 9.2vw; }
.form { display: grid; gap: 30px; max-width: 653px; }
.form__intro { font-size: var(--step-0); line-height: 1.4; letter-spacing: .02em; color: var(--grey-2); margin-bottom: 4px; }
.field { position: relative; display: grid; }
.field label { position: absolute; left: 8px; top: -9px; z-index: 1; padding: 0 7.66px; background: var(--black); font-size: 14.66px; line-height: 1.2; letter-spacing: .1em; color: var(--white); pointer-events: none; }
.field input, .field select, .field textarea {
  width: 100%; height: 67px; padding: 22px 14.66px; appearance: none;
  background: transparent; border: 1px solid var(--grey-3); border-radius: 4px; color: var(--white); font-size: 16px; letter-spacing: .02em;
  transition: border-color .2s ease;
}
.field textarea { height: 309px; resize: vertical; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%23fff' stroke-width='1.3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; padding-block: 0; }
.field select option { color: var(--black); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--grey-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--white); }
.field :user-invalid { border-color: var(--error); }
.form__note { font-size: var(--step--1); line-height: 1.5; color: var(--grey-3); }
.form__note + .form__note { margin-top: -22px; } /* the privacy line sits just under "* Required" */
.form__note a { white-space: nowrap; color: var(--light); }
@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .contact__intro { min-height: 0; padding: var(--space-2xl) var(--gutter) clamp(240px, 64vw, 360px); }
  .contact__heading { font-size: min(var(--step-8), calc((100vw - 40px) / 8.8)); }
  .contact__mark { top: auto; bottom: -32%; left: -10%; width: 90%; }
  .contact__body { padding: var(--space-2xl) var(--gutter) var(--space-3xl); }
}

/* ---------- Footer: rises from under the page ---------- */
.footer { position: relative; z-index: 0; overflow: hidden; border-top: 1px solid var(--off-black); }
.footer__scrim { position: absolute; inset: 0; z-index: 2; background: #000; opacity: 0; pointer-events: none; }
.footer__reveal { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-2xl); min-height: calc(100svh - var(--nav-h)); padding: 21px var(--gutter) 3px; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-xl); }
.footer__intro { min-width: 0; }
.footer__tagline { font-size: var(--step-8); line-height: 1.01; max-width: 24ch; }
.footer__copyright { margin-top: 29px; font-size: var(--step--1); line-height: 1.2; color: var(--grey-2); }
.footer__logo { width: clamp(84px, 9vw, 130px); flex: none; margin-top: 6px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-xl); }
.footer__legal { max-width: 52ch; padding-bottom: 19px; font-size: var(--step--1); line-height: 1.5; color: var(--grey-2); }
.footer__cols { display: flex; align-items: flex-end; gap: 14px; }
.footer__col { min-width: 150px; border-left: 4px solid var(--white); padding-bottom: 3px; }
@media (min-width: 1024px) { .footer__cols, .footer__col { flex-shrink: 0; } .footer__legal { min-width: 0; } }
.footer__col summary { list-style: none; cursor: default; }
.footer__col summary::-webkit-details-marker { display: none; }
.footer__tab { display: inline-block; margin-bottom: 10px; padding: 7.66px 22px 7.66px 14.66px; background: var(--white); color: var(--black); font-size: 14.66px; font-weight: 500; line-height: 1.4; }
.footer__col li a { display: block; margin-left: 12px; padding: 4px; border-radius: 4px; font-size: 14.66px; line-height: 1.4; letter-spacing: .02em; text-decoration: none; color: var(--white); }
.footer__col li a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1023px) {
  .footer__reveal { min-height: 0; padding-bottom: var(--space-xl); }
  .footer__bottom { flex-direction: column-reverse; align-items: stretch; }
  .footer__cols { flex-direction: column; align-items: stretch; gap: var(--space-m); }
}

/* ---------- Phones: Prime's own phone layout ---------- */
@media (max-width: 1023px) {
  .hero { min-height: 100svh; }
  .hero__inner { padding-bottom: var(--space-xl); }
}
@media (max-width: 760px) {
  .services .h-xl { font-size: var(--step-7); }
  /* Sectors become swipeable cards with filled icon tiles. */
  .rows { display: flex; margin-right: 0; border: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .rows::-webkit-scrollbar { display: none; }
  .row { flex: 0 0 71vw; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-height: 0; padding: 0 var(--gutter) var(--space-l) 0; border: 0; border-right: 1px solid var(--stroke); scroll-snap-align: start; }
  .row + .row { padding-left: var(--gutter); }
  .row__icon { width: 90px; background: var(--accent); border: 0; color: var(--white); margin-bottom: var(--space-s); }
  .row__name { font-size: var(--step-6); padding-top: 0; }
  .row__text { padding-top: 0; font-size: var(--step-0); }
  .row .button { margin-top: auto; }
  /* Footer link groups collapse. */
  .footer__col { background: rgba(255, 255, 255, .05); padding: 0; }
  .footer__col summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; cursor: pointer; }
  .footer__col summary::after { content: "+"; font-size: 18px; line-height: 1; transition: transform .3s var(--ease-in-out); }
  .footer__col[open] summary::after { transform: rotate(45deg); }
  .footer__tab { margin: 0; padding: 0; background: none; color: var(--white); }
  .footer__col ul { padding: 0 0 12px; }
}

/* ---------- Motion: split-line reveal and loading ---------- */
.split-line { display: block; width: fit-content; max-width: 100%; position: relative; }
.centred .split-line, .cta .split-line { margin-inline: auto; }
.split-line__inner { display: block; }
.split-line__band { position: absolute; inset: 0; z-index: 2; background: var(--band, var(--accent)); pointer-events: none; clip-path: inset(0 100% 0 0); }
[data-band="white"] { --band: var(--white); }
.motion [data-split]:not(.is-split) { visibility: hidden; animation: reveal-failsafe 0s 3s forwards; }
@keyframes reveal-failsafe { to { visibility: visible; } }
.motion .hero__bar { transform: scaleY(0); }
.motion .hero__block { transform: scaleX(0); }
.motion .hero__media { opacity: 0; }
.motion img.fade { opacity: 0; transition: opacity .7s ease; }
.motion img.fade.is-loaded { opacity: 1; }

@media (max-width: 380px) { .h-xl { font-size: 2rem; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .marquee, .marquee__group { flex-wrap: wrap; justify-content: center; }
}

@media print {
  .nav, .mobile-menu, .footer, .form, .marquee { display: none !important; }
}

/* =====================================================================
   Inner pages. Prime's inner-page components, same measurements
   (1440px reference): secondary hero, text beside a photo, sticky list,
   stats with a heading, light icon grid, timeline, case-study carousel,
   filterable card grid, office list.
   ===================================================================== */

/* ---------- Secondary hero (Prime: Hero--secondary) ---------- */
.hero2 {
  --bar: clamp(6px, .7vw, 10px);
  --block: clamp(22px, 2.9vw, 42px);
  --pad: calc(var(--block) + clamp(14px, 1.9vw, 27px));
  position: relative; overflow: hidden; padding: clamp(11rem, 4.5rem + 16vw, 19.6rem) 0 27px; background: var(--grey-1); color: var(--black);
}
.hero2__inner { display: flex; flex-direction: column; gap: var(--space-l); padding: 0 var(--gutter) 0 var(--pad); }
.hero2__label { margin-bottom: 22px; color: var(--off-black); }
.hero2__title { position: relative; font-size: var(--step-10); }
.hero2__heading { font-size: 1em; line-height: .94; max-width: 14ch; font-weight: var(--display); -webkit-text-stroke: .02em currentColor; text-wrap: balance; }
.hero2 .hero__block, .hero2 .hero__bar { left: calc(var(--pad) * -1); }
.hero2__text { max-width: 420px; font-size: var(--step-2); line-height: 1.2; letter-spacing: .02em; color: var(--off-black); }
.hero2__media { position: relative; margin-top: clamp(40px, 6vw, 88px); aspect-ratio: 1396 / 857; overflow: hidden; clip-path: inset(0 var(--clip, 4%)); will-change: clip-path; }
.hero2__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1)); }
@media (min-width: 1024px) {
  .hero2__inner { display: grid; grid-template-columns: minmax(0, 1fr) min(420px, 29vw); column-gap: var(--space-xl); align-items: end; padding-right: max(var(--gutter), calc(33vw - min(420px, 29vw))); }
  .hero2__label { grid-column: 1 / -1; margin-bottom: -10px; }
  .hero2__text { margin-bottom: .1em; }
}
@media (max-width: 900px) { .hero2__media { aspect-ratio: 318 / 420; --clip: 6%; } }

/* ---------- Text beside a photo (Prime: ContentMedia) ---------- */
.media-block { display: grid; grid-template-columns: minmax(0, 52.4fr) minmax(0, 47.6fr); background: var(--grey-1); color: var(--black); }
.media-block--left { grid-template-columns: minmax(0, 47.6fr) minmax(0, 52.4fr); }
.media-block--left .media-block__media { order: -1; border-left: 0; border-right: 1px solid var(--stroke); }
.media-block__text { padding: var(--section) var(--gutter) var(--space-3xl); }
.media-block__text .label { margin-bottom: 22px; color: var(--off-black); }
.media-block__text h2 { max-width: 8.6em; font-size: var(--step-7); line-height: 1; letter-spacing: -.01em; font-weight: var(--display); -webkit-text-stroke: .02em currentColor; text-wrap: balance; }
.media-block__text p:not(.label) { max-width: 621px; font-size: var(--step-1); line-height: 1.4; letter-spacing: .02em; color: var(--off-black); }
.media-block__text h2 + p { margin-top: var(--space-2xl); }
.media-block__text p + p:not(.label) { margin-top: 1em; }
.media-block__text .ticks { max-width: 621px; margin-top: var(--space-l); }
.media-block__text .button { margin-top: var(--space-l); }
.media-block__media { display: flex; flex-direction: column; padding-top: var(--section); border-left: 1px solid var(--stroke); }
.media-block__media img { flex: 1; width: 100%; min-height: clamp(320px, 49vw, 760px); object-fit: cover; }
.media-block__media img.img--lead { object-position: 68% 50%; }
@media (max-width: 900px) {
  .media-block, .media-block--left { grid-template-columns: 1fr; }
  .media-block--left .media-block__media { order: 0; border-right: 0; }
  .media-block__media { padding-top: 0; border-left: 0; }
  .media-block__media img { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ---------- Sticky list (Prime: ListGrid--sticky) ---------- */
.sticky-list { display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); background: var(--grey-1); color: var(--black); }
.sticky-list.dark { background: var(--black); color: var(--white); }
.sticky-list__head { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-xl); padding: clamp(5.25rem, 4.5095rem + 3.1677vw, 8.4375rem) var(--gutter) var(--space-2xl) 29px; }
.sticky-list__head > div:first-child { position: sticky; top: calc(var(--nav-h) + 40px); }
.sticky-list__head .label { margin-bottom: 22px; color: var(--off-black); }
.sticky-list h2 { max-width: 9em; font-size: var(--step-7); line-height: 1; letter-spacing: -.01em; font-weight: var(--display); -webkit-text-stroke: .02em currentColor; text-wrap: balance; }
.sticky-list__sub { max-width: 32ch; font-size: var(--step-1); line-height: 1.2; letter-spacing: .02em; color: var(--off-black); }
.sticky-list.dark .sticky-list__sub, .sticky-list.dark .label { color: var(--grey-2); }
.sticky-list__items { padding-top: clamp(5.25rem, 4.5095rem + 3.1677vw, 8.4375rem); border-left: 1px solid var(--stroke); }
.sticky-list.dark .sticky-list__items { border-color: var(--off-black); }
.sticky-item { display: grid; grid-template-columns: 61px minmax(0, 1fr) minmax(0, 400px); column-gap: 29px; padding: 0 22px 62px 0; border-bottom: 1px solid var(--stroke); }
.sticky-list.dark .sticky-item { border-color: var(--off-black); }
.sticky-item__icon { display: grid; place-items: center; width: 61px; height: 61px; background: var(--accent); color: var(--white); }
.sticky-item__icon .glyph { width: 32px; }
.sticky-item h3 { padding-top: 15px; font-size: var(--step-2); font-weight: 500; line-height: 1.2; letter-spacing: 0; }
.sticky-item p { padding-top: 15px; text-align: right; font-size: var(--step-1); line-height: 1.4; letter-spacing: .02em; color: var(--off-black); }
.sticky-list.dark .sticky-item p { color: var(--grey-2); }
.sticky-item h3:last-child { grid-column: 2 / -1; }
@media (max-width: 900px) {
  .sticky-list { grid-template-columns: 1fr; }
  .sticky-list__head { padding: var(--section) var(--gutter) var(--space-xl); }
  .sticky-list__head > div:first-child { position: static; }
  .sticky-list__items { padding-top: 0; border-left: 0; border-top: 1px solid var(--stroke); }
  .sticky-item { grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; padding: 0 var(--gutter) 24px 0; }
  .sticky-item__icon { width: 48px; height: 48px; }
  .sticky-item__icon .glyph { width: 26px; }
  .sticky-item p { grid-column: 2; text-align: left; padding-top: 6px; }
  .sticky-item h3 { padding-top: 12px; }
}

/* ---------- Stats with a heading; five-column variant ---------- */
.stats--intro .stats__track { margin-top: var(--space-2xl); }
.stats__track[data-cols="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stats__track[data-cols="5"] .stats__value { font-size: calc(var(--step-6) * .88); }

/* ---------- Light icon grid (Prime: IconGrid--fill) ---------- */
.services--light { background: var(--grey-1); color: var(--black); }
.services--light .services__frame, .services--light .slider-controls { border-color: var(--off-black); }
.services--light .services__item { border-left-color: var(--stroke); min-height: clamp(400px, 33.3vw, 480px); flex-basis: clamp(260px, 25vw, 400px); }
.services--light .services__item:first-child { border-left-color: transparent; }
.services--light .services__foot p { color: var(--off-black); }
.services--light .slider-btn { color: var(--black); border-right-color: var(--off-black); }
.services--light .slider-btn:hover:not(:disabled) { background: rgba(0, 0, 0, .04); }

/* ---------- Timeline (Prime: MilestoneTimeline) ---------- */
.timeline { padding-bottom: var(--space-3xl); background: var(--grey-1); color: var(--black); }
.timeline__track { display: flex; margin-top: 62px; padding-left: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.timeline__track::-webkit-scrollbar { display: none; }
.timeline__item { position: relative; flex: 0 0 clamp(250px, 22.4vw, 340px); margin-right: 8px; padding: 72px 44px 0 22px; border-top: 1px solid var(--off-black); scroll-snap-align: start; }
.timeline__item::before { content: ""; position: absolute; left: 0; top: -3px; width: 5px; height: 5px; background: var(--accent); }
/* Animated programme line (site.js adds these parts; without motion the plain rule and marker above remain).
   A blue fill runs step to step, each node lights with a ripple, then a light pulse keeps travelling the line. */
.timeline.is-anim .timeline__item::before { display: none; }
.timeline__line { position: absolute; left: 0; right: -8px; top: -1px; height: 1px; pointer-events: none; }
.timeline__fill { position: absolute; left: 0; right: 0; top: -.5px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left center; }
.timeline__pulse {
  position: absolute; left: 0; right: 0; top: -1.5px; height: 4px; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--accent) 35%, #8fb3ff 50%, var(--accent) 65%, transparent) no-repeat;
  background-size: 28% 100%; background-position: -40% 0;
}
.timeline.is-live .timeline__pulse { animation: timeline-pulse 3.6s linear infinite; animation-delay: calc(var(--i) * .72s); }
@keyframes timeline-pulse {
  0% { background-position: -40% 0; opacity: 1; }
  20% { background-position: 140% 0; opacity: 1; }
  20.01%, 100% { background-position: 140% 0; opacity: 0; }
}
.timeline__node, .timeline__ring { position: absolute; left: -2px; top: -5px; width: 9px; height: 9px; pointer-events: none; }
.timeline__node { background: var(--accent); transform: scale(.55); }
.timeline__ring { border: 1px solid var(--accent); opacity: 0; }
.timeline__step { font-size: var(--step-5); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
.timeline__item h3 { margin-top: 22px; font-size: var(--step-1); font-weight: 500; line-height: 1.6; }
.timeline__item p { margin-top: 10px; font-size: var(--step-0); line-height: 1.4; letter-spacing: .02em; color: var(--off-black); }
.timeline .slider-controls { margin: var(--space-xl) var(--gutter) 0; border-top: 0; }
.timeline .slider-btn { color: var(--black); border: 1px solid var(--off-black); border-right-width: 0; }
.timeline .slider-btn:last-child { border-right-width: 1px; }

/* ---------- Case-study carousel (Prime: CardCarousel + cardCaseStudy) ---------- */
.carousel { padding-top: 69px; }
.carousel__track { display: flex; margin-top: var(--space-2xl); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.case { position: relative; flex: 0 0 50%; display: flex; flex-direction: column; border: 1px solid var(--off-black); border-left: 0; scroll-snap-align: start; }
@media (max-width: 760px) { .case { flex-basis: 86vw; } }

/* Shared case-study card: media inset 22px, a 10% black veil, text 29/22/44 with 14.66px between lines.
   Hover: photo zooms 1.04 and the veil lifts (.35s ease-out), then a 6px accent bar rises from the bottom (.5s, .3s late). */
.case__media, .pcard__media { position: relative; flex: none; margin: var(--space-m) var(--space-m) 0; overflow: hidden; }
.case__media { aspect-ratio: 674 / 430; }
.pcard__media { aspect-ratio: 14 / 15; }
.case__media img, .pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease-out; }
.motion .case__media img.fade, .motion .pcard__media img.fade { transition: opacity .7s ease, transform .35s ease-out; }
.case__media::after, .pcard__media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: #000; opacity: .1; pointer-events: none; transition: opacity .35s ease-out; }
.case__body, .pcard__body { display: flex; flex-direction: column; gap: var(--space-s); padding: var(--space-l) var(--space-m) var(--space-xl); }
.case__title, .pcard__title { font-size: var(--step-2); font-weight: 500; line-height: 1.2; letter-spacing: .02em; }
.case__text, .pcard__text { font-size: var(--step-0); line-height: 1.4; }
.case__eyebrow, .case__text { color: var(--grey-2); }
.case__text { max-width: 70ch; }
.pcard__eyebrow, .pcard__text { color: var(--off-black); }
.pcard__title { color: var(--black); }
.case::after, .pcard::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--accent); pointer-events: none; transform: scaleY(0); transform-origin: center bottom; transition: transform .5s cubic-bezier(.65, 0, 0, 1); }
@media (hover: hover) {
  .case:hover .case__media img, .pcard:hover .pcard__media img { transform: scale(1.04); }
  .case:hover .case__media::after, .pcard:hover .pcard__media::after { opacity: 0; }
  .case:hover::after, .pcard:hover::after { transform: scaleY(1); transition-delay: .3s; }
}

/* ---------- Filterable card grid (Prime: CardGrid--case-studies) ---------- */
.card-grid { padding-bottom: var(--section); background: var(--grey-1); color: var(--black); }
.card-grid__layout { display: flex; align-items: flex-start; margin-top: 88px; }
.cards__wrap { flex: 1 1 auto; min-width: 0; align-self: stretch; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--stroke); border-left: 1px solid var(--stroke); transition: opacity .2s; }
.pcard { position: relative; display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }
.pcard[hidden] { display: none; }
.pcard__facts { display: flex; flex-wrap: wrap; gap: var(--space-s) var(--space-l); margin-top: auto; padding-top: var(--space-m); border-top: 1px solid var(--stroke); list-style: none; }
.pcard__facts li { display: flex; flex-direction: column; gap: 6px; }
.pcard__facts strong { font-size: var(--step-3); font-weight: var(--display); line-height: 1; letter-spacing: -.01em; color: var(--black); }
.pcard__facts span { font-family: var(--mono); font-size: var(--step--1); line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: var(--off-black); }
.cards__empty { display: grid; justify-items: center; gap: var(--space-m); padding: var(--space-xl) var(--gutter); border: 1px solid var(--stroke); border-right: 0; text-align: center; }
.cards__empty[hidden] { display: none; }
.cards__empty-heading { font-size: var(--step-4); font-weight: 500; line-height: 1.1; letter-spacing: .02em; }
.card-grid__note { margin: var(--space-xl) var(--gutter) 0 calc(clamp(220px, 20vw, 300px) + var(--gutter)); max-width: 80ch; font-size: var(--step-0); line-height: 1.5; color: var(--off-black); }

/* Filters (Prime: CardGridFilters). Desktop: a sticky 20vw column of groups that open and close.
   Below 1024px: hidden, with a floating "Apply Filters" button that opens them as a bottom drawer. */
.filters { position: sticky; top: calc(var(--nav-h) + 15px); flex: 0 0 clamp(220px, 20vw, 300px); }
.filters__head, .filters__foot { display: none; }
.filters__groups { border-top: 1px solid var(--stroke); }
.filters__group { border-bottom: 1px solid var(--stroke); }
.filters__header { display: flex; justify-content: space-between; align-items: center; gap: var(--space-xs); width: 100%; padding: var(--space-s) var(--space-xs) var(--space-s) var(--space-s); background: none; border: 0; font: 500 var(--step-0)/1.4 var(--font); color: var(--black); text-align: left; cursor: pointer; }
.filters__header[aria-expanded="true"] { border-bottom: 1px solid var(--stroke); }
.plus { position: relative; flex: none; width: 20px; height: 20px; }
.plus::before, .plus::after { content: ""; position: absolute; left: 22%; right: 22%; top: 50%; height: 1px; background: currentColor; transition: transform .65s var(--ease-in-out); }
.plus::after { transform: rotate(90deg); }
.plus.is-open::before { transform: scaleY(0) rotate(-135deg); }
.plus.is-open::after { transform: rotate(0deg); }
.filters__panel { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .6s cubic-bezier(.5, .5, 0, 1), opacity .6s cubic-bezier(.5, .5, 0, 1); }
.filters__panel[aria-hidden="false"] { grid-template-rows: 1fr; opacity: 1; }
.filters__inner { overflow: hidden; min-height: 0; }
.filters__panel[aria-hidden="true"] .filters__inner { visibility: hidden; transition: visibility 0s .6s; }
.filters__options { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: var(--space-xs) var(--space-s) var(--space-l) var(--space-m); border: 0; }
.filters__options legend + .filters__option { margin-top: 0; }
.filters__option { position: relative; display: flex; align-items: center; gap: 10px; padding-block: 6px; font-size: var(--step-0); line-height: 1.4; color: var(--black); cursor: pointer; user-select: none; }
.filters__option input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.filters__box { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 25px; height: 25px; border: 1px solid var(--stroke); border-radius: 4px; background: rgba(255, 255, 255, .3); transition: border-color .2s; }
.filters__box svg { width: 17px; height: 17px; opacity: 0; transition: opacity .2s; }
.filters__option input:checked + .filters__box svg { opacity: 1; }
.filters__option input:focus-visible + .filters__box { outline: 2px solid var(--black); outline-offset: 2px; }
.filters__trigger { display: none; }

@media (max-width: 1023px) {
  .card-grid__layout { display: block; }
  .filters { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid__note { margin-left: var(--gutter); }
  .filters__trigger {
    display: inline-flex; position: fixed; left: 50%; bottom: calc(var(--space-l) + env(safe-area-inset-bottom, 0px)); z-index: 45;
    opacity: 0; pointer-events: none; transform: translate(-50%, calc(100% + var(--space-l)));
    transition: opacity .3s cubic-bezier(.5, .5, 0, 1), transform .4s cubic-bezier(.5, .5, 0, 1);
  }
  .filters__trigger.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
  .filters__trigger.is-visible:active { transform: translate(-50%, 0) scale(.97); }

  /* The drawer: the same filters, as a sheet over a scrim. */
  .filters-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(33, 33, 35, .5); animation: scrim-in .3s ease both; }
  .filters.is-drawer {
    display: flex; flex-direction: column; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 61; max-height: 85vh;
    background: var(--grey-1); animation: drawer-in .5s cubic-bezier(.5, .5, 0, 1) both;
  }
  .filters.is-drawer .filters__head { display: flex; justify-content: space-between; align-items: center; flex: none; padding: var(--space-m) var(--space-s) 0; }
  .filters__title { color: var(--off-black); }
  .filters__close { display: inline-flex; align-items: center; justify-content: center; width: 37px; height: 37px; border: 0; border-radius: 4px; background: var(--white); color: var(--black); cursor: pointer; }
  .filters__close svg { width: 17px; height: 17px; }
  .filters.is-drawer .filters__groups { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-m) var(--space-s) var(--space-l); border: 0; }
  .filters.is-drawer .filters__group { border: 0; }
  .filters.is-drawer .filters__group + .filters__group { margin-top: var(--space-m); }
  .filters.is-drawer .filters__header { padding: 0 0 var(--space-xs); border: 0; pointer-events: none; }
  .filters.is-drawer .plus { display: none; }
  .filters.is-drawer .filters__panel { grid-template-rows: 1fr; opacity: 1; transition: none; }
  .filters.is-drawer .filters__inner { visibility: visible; }
  .filters.is-drawer .filters__options { padding: 0; }
  .filters__foot [data-filters-clear] { padding: 9.5px 11px; }
  .filters__foot [data-filters-clear] .button-icon { display: none; }
  .filters.is-drawer .filters__foot { display: flex; justify-content: flex-end; gap: var(--space-xs); flex: none; padding: var(--space-s); border-top: 1px solid var(--stroke); }
}
@media (max-width: 767px) { .cards { grid-template-columns: 1fr; } }
@keyframes drawer-in { from { transform: translateY(100%); } }
@keyframes scrim-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .filters__trigger, .filters.is-drawer, .filters-scrim, .filters__panel { transition-duration: 1ms !important; animation-duration: 1ms !important; } }

/* ---------- Office list (Prime: ContactList) ---------- */
.offices { padding: 58px 0 var(--space-3xl); }
.offices__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; margin-top: var(--space-2xl); padding: 0 var(--gutter); }
.offices__title { padding: 9.66px 0; border-bottom: 1px solid var(--off-black); font-size: 14.66px; line-height: 1.6; color: var(--white); }
.offices__col p, .offices__col a { display: block; margin-top: 13px; font-size: 14.66px; line-height: 1.6; color: var(--grey-2); text-decoration: none; }
.offices__col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.offices__col a { width: fit-content; padding-block: 2px; margin-top: 11px; } /* at least 24px tall to tap; same spacing as the lines above */
.offices__note { margin: var(--space-xl) var(--gutter) 0; max-width: 70ch; font-size: var(--step-0); line-height: 1.5; color: var(--grey-2); }
.offices__note a { color: var(--white); }
@media (max-width: 760px) { .offices__cols { grid-template-columns: 1fr; row-gap: var(--space-xl); } }

/* ---------- Dark careers prompt, light certification strip ---------- */
.cta.dark { background: var(--black); color: var(--white); }
.cta.dark .cta__label { color: var(--white); }
.cta.dark .h-l { color: var(--white); }
.cta.dark .cta__text { color: var(--grey-2); }
.iso.light .iso-tile { border-color: var(--stroke); }
.iso.light .centred__text { color: var(--off-black); }

/* ---------- Careers form extras ---------- */
.field--choice { display: flex; flex-wrap: wrap; gap: 14px 24px; margin: 0; padding: 22px 14.66px; border: 1px solid var(--grey-3); border-radius: 4px; }
.field--choice legend { padding: 0 7.66px; margin-left: -6px; font-size: 14.66px; letter-spacing: .1em; color: var(--white); }
.field--choice label { position: static; display: flex; align-items: center; gap: 8px; padding: 0; background: none; letter-spacing: .02em; pointer-events: auto; cursor: pointer; }
.field--choice input { appearance: none; width: 18px; height: 18px; margin: 0; border: 1px solid var(--grey-2); border-radius: 50%; cursor: pointer; }
.field--choice input:checked { border: 5px solid var(--white); }
.field--file input { padding: 20px 14.66px; height: auto; }
.field--file input::file-selector-button { margin-right: 14px; padding: 8px 12px; border: 0; border-radius: 4px; background: var(--white); color: var(--black); font: 500 14px var(--font); cursor: pointer; }
.contact .form__intro + .form__intro { margin-top: -18px; }

/* ---------- Small inner-page pieces ---------- */
.ticks--plain li { padding: 14px 0 14px 14px; font-size: var(--step-0); letter-spacing: .02em; color: var(--black); }
.ticks--plain li::before { top: 18px; }
/* Hover on every ticks list item (home steps, Services and HSEQ lists): the marker grows to full height,
   the text eases right, a soft highlight sweeps in behind it, and the rule below draws in blue. */
@media (hover: hover) {
  .ticks li {
    background: linear-gradient(90deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 85%) no-repeat 0 0 / 0% 100%;
    transition: padding-left .5s var(--ease-in-out), background-size .6s var(--ease-in-out);
  }
  .ticks li::before { transition: top .45s var(--ease-in-out), height .45s var(--ease-in-out); }
  .ticks li::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent);
    transform: scaleX(0); transform-origin: left center; transition: transform .6s var(--ease-in-out);
  }
  .ticks li:hover { padding-left: 26px; background-size: 100% 100%; }
  .ticks li:hover::before { top: 0; height: 100%; }
  .ticks li:hover::after { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) { .ticks li, .ticks li::before, .ticks li::after { transition-duration: 1ms; } }
.media-block__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-l); }
.media-block__actions .button { margin-top: 0; }
.stats__card .stats__text:only-child { margin-top: 0; }

/* ---------- Launch changes: hero side column, name tile, offices, form status ---------- */
.hero__side { display: grid; gap: var(--space-m); max-width: 420px; }
.hero__text--long { max-width: none; font-size: var(--step-1); line-height: 1.4; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 1024px) { .hero__inner { grid-template-columns: minmax(0, 1fr) min(420px, 31vw); padding-right: max(var(--gutter), calc(33vw - min(420px, 31vw))); } }
.logo-tile--name span { color: var(--white); font-size: clamp(1.1rem, .9rem + .6vw, 1.5rem); font-weight: 500; letter-spacing: -.01em; }
.offices__name { color: var(--white) !important; font-weight: 500; }
.offices__actions { margin-top: var(--space-m); }
.offices__actions--below { margin: var(--space-xl) var(--gutter) 0; }
.form__status { padding: 16px 18px; border: 1px solid var(--grey-3); border-radius: 4px; font-size: var(--step-0); line-height: 1.5; color: var(--white); }
.form__status a { color: var(--white); }
.form__status--sent { border-color: var(--accent); background: rgba(10, 92, 255, .12); }
.form__status--error { border-color: var(--error); background: rgba(254, 14, 14, .08); }
.form.is-sent > :not(.form__status) { display: none; }
.button:disabled { opacity: .6; cursor: progress; }

/* ---------- Film grain over every photo ----------
   A still noise tile (img/grain.jpg, drawn at half size so it stays fine on sharp screens) blended into each photo.
   It sits on the photo only, under any dark overlay, so text and buttons stay crisp. --grain sets the strength. */
:root { --grain: .24; }
.card__media, .media-block__media { position: relative; }
.hero__media::before, .hero2__media::before, .feature__media::before, .card__media::before,
.media-block__media::before, .case__media::before, .pcard__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url("../img/grain.jpg") 0 0 / 128px 128px repeat; mix-blend-mode: overlay; opacity: var(--grain);
}

/* ---------- Site audit fixes (10 November 2026) ---------- */
/* Below 1024px the header floats over the page: keep the contact intro's label clear of it. */
@media (max-width: 1023px) { .contact__intro { padding-top: calc(var(--nav-h) + var(--space-l)); } }
/* Careers radio buttons: real circles, not stretched text fields. */
.field--choice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 16px 0 4px; border: 0; }
.field--choice legend { width: 100%; margin-bottom: 10px; font-size: 14.66px; letter-spacing: .1em; color: var(--white); }
.field--choice label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: var(--step-0); cursor: pointer; }
.field--choice input[type="radio"] { appearance: auto; flex: none; width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; border: 0; accent-color: var(--accent); }
/* Required fields are marked. */
.req { color: var(--accent); }
/* While the projects filter drawer is open, the page (and its drawer) sits above the header. */
.filters-open .nav { z-index: 0; }
/* Last project card stays clear of the floating filter button. */
@media (max-width: 1023px) { .cards__wrap { padding-bottom: 72px; } }
/* Phones: bigger tap areas for contact details and footer links. */
@media (max-width: 760px) {
  .offices__col a { padding-block: 10px; margin-top: 3px; }
  .footer__col li a { padding-block: 9px; }
  /* Home hero: show the ute, not mostly sky. */
  .hero__media img { object-position: 24% 60%; }
}
/* Tablets: the five home stats in rows of three instead of five squeezed columns. */
@media (min-width: 761px) and (max-width: 1100px) {
  .stats__track[data-cols="5"] { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-xl); }
}

/* ---------- Copy pass (10 November 2026) ---------- */
/* Projects now opens on the project list: less space above its heading. */
.card-grid--top .intro { padding-top: 69px; }

/* ---------- A day on the crew (Careers) ----------
   Scroll drives a sun along an arc over a horizon rail; a clock readout follows it, and each role card
   switches on as the sun passes its slot. site.js sets --sun-x / --sun-y / --lit and .is-on. */
.day { position: relative; padding-bottom: var(--space-3xl); background: var(--black); color: var(--white); overflow: hidden; }
.day__sky { position: relative; height: clamp(150px, 15vw, 220px); margin: var(--space-2xl) var(--gutter) 0; --sun-x: 0px; --sun-y: 100%; --lit: 0; }
.day__sky > svg { position: absolute; inset: 0 0 1px; width: 100%; height: calc(100% - 1px); overflow: visible; }
.day__arc { fill: none; stroke: var(--off-black); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.day__arc--lit { stroke: var(--accent); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--lit) * 100); }
.day__glow {
  position: absolute; inset: -60% -10% 0; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 10%) var(--gy, 95%), rgba(10, 92, 255, .22), rgba(10, 92, 255, 0) 32%);
}
.day__sun { position: absolute; left: var(--sun-x); top: var(--sun-y); width: 40px; height: 40px; margin: -20px 0 0 -20px; color: var(--accent); }
.day__sun svg { width: 100%; height: 100%; fill: currentColor; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; overflow: visible; }
.day__rays { transform-origin: 20px 20px; animation: day-rays 14s linear infinite; }
@keyframes day-rays { to { transform: rotate(360deg); } }
.day__rail { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: 1px; background: var(--off-black); }
.day__fill { position: absolute; left: 0; top: 0; width: 100%; height: 2px; margin-top: -.5px; background: var(--accent); transform: scaleX(var(--lit)); transform-origin: left center; }
.day__node { position: relative; }
.day__node::before { content: ""; position: absolute; left: -3px; top: -3px; width: 7px; height: 7px; background: var(--off-black); transition: background .4s ease, transform .4s var(--ease-in-out); }
.day__sky.n1 .day__node:nth-of-type(2)::before, .day__sky.n2 .day__node:nth-of-type(-n+3)::before,
.day__sky.n3 .day__node:nth-of-type(-n+4)::before, .day__sky.n4 .day__node:nth-of-type(-n+5)::before,
.day__sky.n5 .day__node::before, .day__sky.n0 .day__node:nth-of-type(2)::before { background: var(--accent); transform: scale(1.4); }
.day__now { position: absolute; left: var(--sun-x); bottom: 12px; transform: translateX(-50%); color: var(--grey-2); white-space: nowrap; }

.day__cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 var(--gutter); }
.day__card { position: relative; display: flex; flex-direction: column; min-height: clamp(300px, 26vw, 400px); padding: var(--space-l) var(--space-m) 0 var(--space-m); border-left: 1px solid var(--off-black); opacity: .32; transition: opacity .7s ease; }
.day__card::before { content: ""; position: absolute; left: -1px; top: 0; width: 2px; height: 100%; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform 1s var(--ease-in-out); }
.day__card.is-on { opacity: 1; }
.day__card.is-on::before { transform: scaleY(1); }
.day__time { font-size: var(--step-6); font-weight: var(--display); line-height: 1; letter-spacing: -.01em; -webkit-text-stroke: .02em currentColor; font-variant-numeric: tabular-nums; }
.day__role { margin-top: 12px; color: var(--grey-2); }
.day__card h3 { margin-top: auto; padding-top: var(--space-xl); font-size: var(--step-1); font-weight: 500; line-height: 1.3; }
.day__text { margin-top: 8px; padding-bottom: var(--space-m); max-width: 34ch; font-size: var(--step-0); line-height: 1.45; letter-spacing: .02em; color: var(--grey-2); }
.day__card.is-on h3, .day__card.is-on .day__text { animation: day-rise .8s var(--ease) both; }
.day__card.is-on .day__text { animation-delay: .08s; }
@keyframes day-rise { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 1100px) and (min-width: 761px) { .day__time { font-size: var(--step-5); } .day__card { padding-inline: var(--space-s); } }
@media (max-width: 760px) {
  .day__sky { display: none; }
  .day__cards { grid-template-columns: 1fr; margin-top: var(--space-2xl); }
  .day__card { min-height: 0; padding: var(--space-m) 0 var(--space-m) var(--space-m); border-left: 1px solid var(--off-black); }
  .day__card h3 { margin-top: var(--space-s); padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .day__rays { animation: none; } .day__card, .day__card::before { transition: none; } .day__card.is-on h3, .day__card.is-on .day__text { animation: none; } }

/* ---------- About values: each icon acts out its value on hover ----------
   Safety: shields pulse outward and a tick draws. Honesty: squares rotate into line. Efficiency: traffic
   flows along the lanes. Fairness: the beam tips and settles level. Quality: the cell inspects the grid.
   Relationships: the ring sets draw together. Reliability: a pulse runs round the loops. */
.values .services__item { position: relative; }
.values .services__item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left center; transition: transform .6s var(--ease-in-out); }
.values .line-icon { transition: transform .6s var(--ease-in-out); }
.values .line-icon * { transform-box: view-box; transform-origin: 60px 60px; }
.values .v-sq { transform: rotate(var(--r)); transition: transform .9s var(--ease-in-out) calc(var(--i) * 50ms); }
.values .v-lane, .values .v-loop { stroke-dasharray: 0 100; }
.values .v-check { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .5s var(--ease-in-out); }
.values .v-beam { transform-origin: 60px 40px; }
.values .v-grid { transition: opacity .4s ease; }
.values .v-left, .values .v-right { transition: transform .8s var(--ease-in-out) calc(var(--i) * 40ms); }
@media (hover: hover) {
  .values .services__item:hover::after { transform: scaleX(1); }
  .values .services__item:hover .line-icon { transform: scale(1.06); }
  .values .services__item:hover .v-shield { animation: v-pulse 1.2s var(--ease-in-out) calc((5 - var(--i)) * 90ms) both; }
  .values .services__item:hover .v-check { stroke-dashoffset: 0; transition-delay: .55s; }
  .values .services__item:hover .v-sq { transform: rotate(0deg); }
  .values .services__item:hover .v-lane { animation: v-flow 1.6s linear calc(var(--i) * -.23s) infinite; }
  .values .services__item:hover .v-beam { animation: v-tip 2.2s var(--ease-in-out) both; }
  .values .services__item:hover .v-grid { opacity: .5; }
  .values .services__item:hover .v-cell { animation: v-inspect 3.2s var(--ease-in-out) infinite; }
  .values .services__item:hover .v-left { transform: translateX(8px); }
  .values .services__item:hover .v-right { transform: translateX(-8px); }
  .values .services__item:hover .v-loop { animation: v-flow 2.4s linear calc(var(--i) * -.4s) infinite; }
}
@keyframes v-pulse { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.1); } 65% { transform: scale(.97); } }
@keyframes v-flow { from { stroke-dasharray: 16 84; stroke-dashoffset: 16; } to { stroke-dasharray: 16 84; stroke-dashoffset: -84; } }
@keyframes v-tip { 0% { transform: rotate(0deg); } 20% { transform: rotate(-7deg); } 45% { transform: rotate(5deg); } 65% { transform: rotate(-2.5deg); } 82% { transform: rotate(1deg); } 100% { transform: rotate(0deg); } }
@keyframes v-inspect { 0%, 10% { transform: translate(0, 0); } 20%, 30% { transform: translate(-40px, 0); } 40%, 50% { transform: translate(-40px, 30px); } 60%, 70% { transform: translate(10px, 30px); } 80%, 90% { transform: translate(10px, -20px); } 100% { transform: translate(0, 0); } }
@media (prefers-reduced-motion: reduce) { .values .services__item:hover * { animation: none !important; transition: none !important; } }

/* ---------- Home key facts: scroll-driven roll-in (site.js adds .stats--roll and sets --k / --t) ---------- */
.odo { position: relative; display: inline-block; height: 1.1em; margin-bottom: -.1em; clip-path: inset(0 -.3em); overflow-y: clip; vertical-align: top; text-align: center; } /* clip top and bottom only, so wide letters are never cut at the sides */
.odo__size { display: block; height: 1.1em; line-height: 1.1; visibility: hidden; } /* the final character sets the column's width, in whatever font has loaded */
.odo__strip { position: absolute; top: 0; left: -.3em; right: -.3em; display: block; text-align: center; will-change: transform; }
.odo__strip span { display: block; height: 1.1em; line-height: 1.1; }
.stats--roll .stats__card::before { transform: scaleY(var(--k, 1)); transform-origin: top; }
.stats--roll .stats__label { opacity: calc(.2 + var(--k, 1) * .8); }
.stats--roll .stats__card > div:last-child { opacity: var(--t, 1); transform: translateY(calc((1 - var(--t, 1)) * 28px)); }

/* ---------- Privacy policy: a quiet heading column beside plain, readable sections ---------- */
.legal { display: grid; grid-template-columns: minmax(0, 34fr) minmax(0, 66fr); column-gap: var(--space-xl); padding: calc(var(--nav-h) + var(--space-3xl)) var(--gutter) var(--section); }
.legal__head { align-self: start; position: sticky; top: calc(var(--nav-h) + var(--space-l)); }
.legal__head .h-l { margin-top: var(--space-s); }
.legal__updated { margin-top: var(--space-xs); font-size: var(--step-0); color: #555558; }
.legal__toc { margin-top: var(--space-2xl); }
.legal__toc-title { font-size: var(--step-0); color: #555558; }
.legal__toc ol { display: grid; gap: 8px; margin-top: 12px; }
.legal__toc a { font-size: var(--step-0); color: var(--off-black); text-decoration: none; transition: color .2s ease; }
.legal__toc a:hover { color: var(--accent); }
.legal__body { max-width: 64ch; font-size: var(--step-1); line-height: 1.6; letter-spacing: .01em; color: var(--off-black); }
.legal__lead { font-size: var(--step-2); line-height: 1.45; color: var(--black); }
.legal__section { margin-top: var(--space-2xl); scroll-margin-top: calc(var(--nav-h) + var(--space-l)); }
.legal__section > * + * { margin-top: .75em; }
.legal__section h2 { font-size: var(--step-3); line-height: 1.2; font-weight: 400; color: var(--black); }
.legal__body ul { padding-left: 1.15em; list-style: disc; }
.legal__body ul li + li { margin-top: .35em; }
.legal__body ul li::marker { color: var(--grey-3); }
.legal__list dt { color: var(--black); font-weight: 500; }
.legal__list dd { margin: 2px 0 0; }
.legal__list dd + dt { margin-top: .9em; }
.legal__body strong { font-weight: 500; color: var(--black); }
.legal__body cite { font-style: italic; }
.legal__body a, .form__note a { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.legal__body a:hover, .form__note a:hover { color: var(--accent); }
.footer__copyright a { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; row-gap: var(--space-xl); }
  .legal__head { position: static; }
  .legal__toc { display: none; } /* one column on tablets and phones: the page reads straight down */
}
