/* ==========================================================================
   Rodinia Industrial Solutions — main stylesheet
   1. Fonts  2. Tokens  3. Base  4. Layout  5. Typography  6. Buttons & links
   7. Header & navigation  8. Hero  9. Page hero  10. Sections & components
   11. Products  12. Forms  13. Footer  14. Motion  15. Responsive
   ========================================================================== */

/* 1. Fonts (self-hosted, latin subset) ----------------------------------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-stretch: 100% 125%;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-var-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* 2. Tokens --------------------------------------------------------------- */
:root {
  /* Brand — sampled from the official Rodinia logo */
  --blue: #0078d0;
  --blue-deep: #0063ad;
  --blue-text: #006bbd;
  --sky: #5bb8f8;
  --sky-soft: #9fd6fb;

  /* Neutrals */
  --ink: #08121f;
  --navy-950: #081320;
  --navy-900: #0b1a2c;
  --navy-800: #10243b;
  --navy-700: #183352;
  --steel: #8b9cb2;
  --text: #142030;
  --muted: #526073;
  --line: #dbe2ea;
  --line-strong: #c4ceda;
  --paper: #f3f6f9;
  --white: #ffffff;
  --on-dark: #e8eef5;
  --on-dark-muted: #9fb0c4;
  --line-dark: rgba(255, 255, 255, 0.12);
  --danger: #b4321f;

  /* Type */
  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* Layout */
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 100px;
  --header-h-scrolled: 70px;
  --section-y: clamp(84px, 10vw, 144px);
  --chamfer: 22px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 0.84, 0.24, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 220ms;
  --t-reveal: 760ms;
  --t-image: 1100ms;
  --stagger: 90ms;
}

/* 3. Base ----------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

/* Smooth in-page scrolling is enabled by JS after load, so cross-page anchor
   links land instantly instead of animating from the top. */
html.smooth-scroll { scroll-behavior: smooth; }

body {
  margin: 0;
  /* The header is fixed (see 7), so the page starts below it */
  padding-top: var(--header-h);
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
button { font: inherit; color: inherit; }

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

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.section--dark :focus-visible,
.page-hero :focus-visible,
.cta-band :focus-visible { outline-color: var(--sky); }

.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: absolute;
  left: 16px; top: -100px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--white);
  font-weight: 500;
  transition: top var(--t-fast) var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* 4. Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(64px, 7vw, 100px); }
.section--paper { background: var(--paper); }
.section--dark {
  background: var(--navy-900);
  color: var(--on-dark);
}
.section--dark .muted,
.section--dark p { color: var(--on-dark-muted); }
.section--dark h2,
.section--dark h3 { color: var(--white); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 2.4vw, 40px);
}

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 2.4vw, 40px);
  row-gap: 24px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head__title { grid-column: 1 / span 7; }
.section-head__aside { grid-column: 8 / -1; }
.section-head--stack .section-head__title { grid-column: 1 / span 9; }

/* 5. Typography ----------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-text);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 32px;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
}
.section--dark .eyebrow,
.page-hero .eyebrow,
.cta-band .eyebrow { color: var(--sky); }

.display {
  font-family: var(--font-display);
  font-stretch: 110%;
  font-weight: 600;
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.028em;
}

.h2 {
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 600;
  font-size: clamp(31px, 3.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.024em;
  color: var(--ink);
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-stretch: 104%;
  font-weight: 600;
  font-size: clamp(20px, 1.6vw, 23px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.lead {
  font-size: clamp(18px, 1.45vw, 20.5px);
  line-height: 1.6;
  color: var(--muted);
}
.muted { color: var(--muted); }

.prose > * + * { margin-top: 1.15em; }
.prose p { color: var(--muted); }
.prose strong { color: var(--text); font-weight: 600; }

.index {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--blue-text);
}
.section--dark .index { color: var(--sky); }

.pullquote {
  position: relative;
  padding-left: 28px;
  font-family: var(--font-display);
  font-stretch: 104%;
  font-weight: 500;
  font-size: clamp(21px, 1.9vw, 27px);
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.pullquote::before {
  content: "";
  position: absolute;
  left: 0; top: 0.2em; bottom: 0.2em;
  width: 2px;
  background: linear-gradient(var(--sky), var(--blue));
}

/* 6. Buttons & links ------------------------------------------------------ */
.btn {
  --btn-bg: var(--blue);
  --btn-bg-hover: var(--blue-deep);
  --btn-fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-bg-hover);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 420ms var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left center; }
.btn .i-arrow { transition: transform 300ms var(--ease-out); }
.btn:hover .i-arrow { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-bg-hover: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.34);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.8); }

.btn--outline {
  --btn-bg: transparent;
  --btn-bg-hover: var(--ink);
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--outline:hover { color: var(--white); border-color: var(--ink); }

/* Rounded variant used on the home page, over photography */
.btn--pill { border-radius: 999px; padding: 0 30px; }

.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn[disabled]::before { display: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.i-arrow { width: 18px; height: 18px; flex: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15.5px;
  color: var(--blue-text);
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size 380ms var(--ease-out), color var(--t-fast) ease;
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow .i-arrow { width: 16px; height: 16px; transition: transform 300ms var(--ease-out); }
.link-arrow:hover .i-arrow { transform: translateX(4px); }
.section--dark .link-arrow,
.cta-band .link-arrow { color: var(--sky); }

/* 7. Header & navigation -------------------------------------------------- */
/* Fixed, not sticky: the header shrinks on scroll, and an in-flow header changing
   height shifts the whole page under the scroll position, which made it jitter
   around the threshold. Out of flow, the shrink never moves the content. */
.site-header {
  --hh: var(--header-h);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid transparent;
  transition: box-shadow 300ms ease, border-color 300ms ease;
  view-transition-name: site-header;
}
.site-header.is-scrolled {
  --hh: var(--header-h-scrolled);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -18px rgba(8, 18, 31, 0.35);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--hh);
  transition: height 300ms var(--ease-out);
}

.brand { flex: none; display: block; }
/* The logo PNG carries transparent padding (55px left, 18px top of 280x70): the negative
   margin and lift line the visible wordmark up with the container edge and header centre */
.brand img {
  --logo-h: 56px;
  height: var(--logo-h);
  width: auto;
  max-width: none;
  object-fit: contain;
  margin-left: calc(var(--logo-h) * -0.7857);
  transform: translateY(-12.86%);
  transition: height 300ms var(--ease-out), margin-left 300ms var(--ease-out);
}
.site-header.is-scrolled .brand img { --logo-h: 48px; }

/* ISO 9001 certification mark, grouped with the logo on every page */
.header__iso {
  flex: none;
  height: 76px;
  width: auto;
  object-fit: contain;
  margin-left: -12px;
  transition: height 300ms var(--ease-out);
}
.site-header.is-scrolled .header__iso { height: 56px; }
/* Desktop nav row: the mark grows with the room left beside the one-line nav */
@media (min-width: 1201px) {
  .header__inner { gap: 24px; }
  .header__iso { height: clamp(36px, calc((100vw - 1103px) * 0.35), 76px); margin-left: 0; }
  .site-header.is-scrolled .header__iso { height: clamp(36px, calc((100vw - 1103px) * 0.35), 56px); }
}

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(18px, 2vw, 34px); }
@media (min-width: 1201px) { .nav__list { gap: clamp(18px, 1.5vw, 20px); } }
.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: color var(--t-fast) ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 340ms var(--ease-out);
}
.nav__link:hover { color: var(--blue-text); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left center; }
.nav__link[aria-current="page"] { color: var(--blue-text); }

.header__cta { flex: none; }

.mobile-menu__contact {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
  font-size: 15px;
  color: var(--muted);
}
.mobile-menu__contact a { color: var(--ink); font-weight: 500; }


.menu-toggle {
  display: none;
  position: relative;
  width: 48px; height: 48px;
  margin-left: auto;
  margin-right: -10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  position: absolute;
  left: 13px;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 300ms var(--ease-out), opacity 200ms ease, top 300ms var(--ease-out);
}
.menu-toggle__bars { top: 23px; }
.menu-toggle__bars::before { content: ""; left: 0; top: -7px; }
.menu-toggle__bars::after { content: ""; left: 0; top: 7px; width: 14px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: 0; width: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  left: 0; right: 0;
  top: var(--hh);
  bottom: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 12px var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--line);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out), visibility 0s linear 300ms;
}
.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out), visibility 0s;
}
.mobile-menu__list { border-top: 1px solid var(--line); }
.mobile-menu__list li { border-bottom: 1px solid var(--line); }
.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 17px 0;
  font-family: var(--font-display);
  font-stretch: 106%;
  font-size: clamp(21px, 5.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.mobile-menu__link .index { font-size: 11.5px; min-width: 24px; }
.mobile-menu__link[aria-current="page"] { color: var(--blue-text); }
.mobile-menu__foot { margin-top: auto; padding-top: 28px; }
.mobile-menu__foot .btn { width: 100%; }

.mobile-menu .mobile-menu__list li {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.mobile-menu.is-open .mobile-menu__list li {
  opacity: 1;
  transform: none;
  transition-delay: calc(60ms + var(--i, 0) * 45ms);
}

/* 8. Home hero ------------------------------------------------------------ */
/* Full-bleed ship photograph with nothing layered over it; all hero copy sits
   below the image on white. */
.hero-x {
  position: relative;
  background: var(--white);
  color: var(--text);
}
.hero-x__media {
  position: relative;
  aspect-ratio: 1672 / 814;
  /* Keep a hint of the copy in the first screen on short, wide displays */
  max-height: calc(100svh - var(--header-h) - 96px);
  min-height: 300px;
  width: 100%;
  overflow: hidden;
  background: var(--navy-800);
}
.hero-x__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 60%;
}
.hero-x__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 2.4vw, 40px);
  row-gap: 32px;
  align-items: end;
  padding-block: clamp(52px, 6vw, 92px) clamp(64px, 7vw, 108px);
}
.hero-x__heading { grid-column: 1 / span 7; }
.hero-x__aside { grid-column: 8 / -1; padding-bottom: 6px; }
.hero-x__title {
  max-width: 16ch;
  color: var(--ink);
  font-size: clamp(36px, 4.4vw, 66px);
  text-wrap: balance;
}
.hero-x__lead {
  max-width: 46ch;
  font-size: clamp(16.5px, 1.25vw, 18.5px);
  line-height: 1.62;
  color: var(--muted);
}
.hero-x__actions { margin-top: 32px; }

/* Hairline diagonals (home hero + interior page heroes) */
.hero__lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero__lines line { stroke: var(--sky); stroke-width: 1; vector-effect: non-scaling-stroke; }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--t-fast) ease;
}
.scroll-cue:hover { color: var(--blue-text); }
.scroll-cue__track {
  position: relative;
  width: 1px;
  height: 40px;
  background: var(--line);
  overflow: hidden;
}
.scroll-cue__track::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 40%;
  background: var(--blue);
  animation: cue 2.4s var(--ease-inout) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(260%); }
}

/* Centred statement under the hero: light text with a bold emphasis */
.statement-band__inner {
  max-width: 980px;
  text-align: center;
}
.statement-band__title {
  font-family: var(--font-display);
  font-stretch: 106%;
  font-weight: 300;
  font-size: clamp(32px, 3.9vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.026em;
  color: var(--ink);
  text-wrap: balance;
}
.statement-band__title strong { font-weight: 650; color: var(--blue-text); }
.statement-band .lead {
  max-width: 54ch;
  margin: 30px auto 0;
  color: var(--text);
}
.statement-band__text {
  max-width: 64ch;
  margin: 16px auto 0;
  color: var(--muted);
}
.statement-band .link-arrow { margin-top: 34px; }
.eyebrow--center::after {
  content: "";
  flex: none;
  width: 32px;
  height: 1px;
  background: currentColor;
}

/* Client logo grid (home): hairline grid on paper; every logo keeps its own
   proportions, sized by --logo-w and capped by the tile. */
.client-grid {
  --client-cols: 5;
  --stagger: 40ms;
  display: grid;
  grid-template-columns: repeat(var(--client-cols), minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.client-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 152px;
  padding: 30px 22px;
  background: var(--white);
  transition: background-color 400ms ease;
}
.client-tile::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 520ms var(--ease-out);
}
.client-tile img {
  width: var(--logo-w, 140px);
  max-width: 100%;
  max-height: 88px;
  height: auto;
  object-fit: contain;
  transition: transform 600ms var(--ease-out);
}
.client-tile:hover::after { transform: scaleX(1); }
.client-tile:hover img { transform: scale(1.05); }

/* 9. Interior page hero --------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: clamp(72px, 9vw, 128px);
  padding-bottom: clamp(64px, 8vw, 112px);
  background: var(--navy-950);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 19, 32, 0.97) 0%, rgba(8, 19, 32, 0.86) 45%, rgba(8, 19, 32, 0.45) 100%),
    linear-gradient(0deg, rgba(8, 19, 32, 0.6), rgba(8, 19, 32, 0) 50%);
}
.page-hero .hero__lines { z-index: -1; }
.page-hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 2.4vw, 40px);
  row-gap: 48px;
  align-items: end;
}
.page-hero__text { grid-column: 1 / span 8; }
.page-hero__media { grid-column: 9 / -1; }
.page-hero__title {
  max-width: 20ch;
  font-size: clamp(36px, 4.6vw, 68px);
  color: var(--white);
}
.page-hero__lead {
  max-width: 62ch;
  margin-top: 28px;
  font-size: clamp(17px, 1.35vw, 19.5px);
  line-height: 1.62;
  color: rgba(232, 238, 245, 0.8);
}
.page-hero__lead + .page-hero__lead { margin-top: 14px; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.crumbs a { transition: color var(--t-fast) ease; }
.crumbs a:hover { color: var(--white); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: rgba(255, 255, 255, 0.3); }
.crumbs [aria-current] { color: var(--sky); }

/* 10. Sections & components ---------------------------------------------- */

/* Framed image with the brand chamfer (derived from the R-mark diagonal) */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--navy-800);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--ease-out);
}
.frame--16x10 { aspect-ratio: 16 / 10; }
.frame--4x3 { aspect-ratio: 4 / 3; }
.frame--wide { aspect-ratio: 16 / 9; }
.frame--square { aspect-ratio: 1 / 1; }

/* About split (home) */
.about-split { align-items: start; }
.about-split__head { grid-column: 1 / span 5; }
.about-split__body { grid-column: 7 / -1; }
.about-split__media {
  position: relative;
  margin-top: 48px;
  max-width: 440px;
}
.about-split__media::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 44%;
  height: 56%;
  border-right: 1px solid var(--blue);
  border-bottom: 1px solid var(--blue);
  pointer-events: none;
}
.about-split .pullquote { margin-top: 40px; }
.about-split .link-arrow { margin-top: 36px; }

/* Capability cards */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 32px);
}
.cap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  transition: box-shadow 400ms ease, transform 400ms var(--ease-out);
}
.cap-card__media { aspect-ratio: 16 / 10; }
.cap-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 26px 28px;
  border: 1px solid var(--line);
  border-top: 0;
}
.cap-card__body::before {
  content: "";
  position: absolute;
  left: -1px; right: -1px; top: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 500ms var(--ease-out);
}
.cap-card .h3 { margin-top: 14px; }
.cap-card p { margin-top: 12px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.cap-card .link-arrow { margin-top: auto; padding-top: 22px; align-self: flex-start; background-position: left calc(100% - 0px); }
.cap-card:hover { box-shadow: 0 24px 50px -30px rgba(8, 18, 31, 0.4); transform: translateY(-4px); }
.cap-card:hover .cap-card__body::before { transform: scaleX(1); }
.cap-card:hover .frame img { transform: scale(1.05); }
/* Whole card clickable via the stretched link */
.cap-card .stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Capability cards on the dark band (home) */
.caps { background: var(--navy-950); }
.caps .cap-card { background: var(--navy-900); }
.caps .cap-card__body { border-color: var(--line-dark); }
.caps .cap-card__body::before { background: var(--sky); }
.caps .cap-card p { color: var(--on-dark-muted); }
.caps .cap-card .h3 { color: var(--white); }
/* Not links on the home page, so no lift on hover */
.caps .cap-card:hover { transform: none; box-shadow: none; }
.caps .cap-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 19, 32, 0) 55%, rgba(8, 19, 32, 0.45));
  pointer-events: none;
}

/* Partner logo marquee (home): one row of large logo cards that glides
   continuously. JS clones the set to fill the width and adds .is-running;
   without it (no JS, reduced motion) the cards simply wrap and centre. */
.partners-band { padding-bottom: clamp(56px, 6vw, 88px); overflow: hidden; }
.partners-band .section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.marquee {
  --gap: clamp(16px, 1.6vw, 24px);
  position: relative;
}
.marquee__track { display: flex; justify-content: center; }
.marquee__group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
  padding-inline: var(--gutter);
}
.marquee.is-running {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee.is-running .marquee__track {
  justify-content: flex-start;
  width: max-content;
  animation: marquee var(--marquee-dur, 40s) linear infinite;
}
.marquee.is-running .marquee__group {
  flex-wrap: nowrap;
  padding-inline: 0 var(--gap);
}
.marquee.is-running:hover .marquee__track,
.marquee.is-running:focus-within .marquee__track,
.marquee.is-paused .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
.marquee__group > li { flex: none; padding-block: 14px 22px; }
.marquee__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(240px, 22vw, 320px);
  height: clamp(132px, 11vw, 168px);
  padding: 26px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 500ms var(--ease-out), box-shadow 500ms ease, border-color 400ms ease;
}
.marquee__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(91, 184, 248, 0.16) 50%, transparent 65%);
  transform: translateX(-100%);
  transition: transform 900ms var(--ease-out);
  pointer-events: none;
}
.marquee__item::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 520ms var(--ease-out);
}
.marquee__item img {
  width: calc(var(--logo-w, 160px) * 1.3);
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 600ms var(--ease-out);
}
.marquee__item:hover,
.marquee__item:focus-visible {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 26px 46px -30px rgba(8, 18, 31, 0.45);
}
.marquee__item:hover::before,
.marquee__item:focus-visible::before { transform: translateX(100%); }
.marquee__item:hover::after,
.marquee__item:focus-visible::after { transform: scaleX(1); }
.marquee__item:hover img { transform: scale(1.05); }
.marquee__item:focus-visible { outline-offset: -3px; }

.marquee-controls { display: flex; justify-content: flex-end; margin-top: 10px; }
.marquee-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 4px;
  border: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--t-fast) ease;
}
.marquee-toggle[hidden] { display: none; }
.marquee-toggle:hover { color: var(--blue-text); }
.marquee-toggle svg { width: 14px; height: 14px; }
.marquee-toggle .marquee-toggle__play,
.marquee-toggle[aria-pressed="true"] .marquee-toggle__pause { display: none; }
.marquee-toggle[aria-pressed="true"] .marquee-toggle__play { display: inline; }

/* Company story (home): shipyard imagery, restrained motion, and a readable text field */
.company-story {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(500px, 48vw, 640px);
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background: var(--navy-950);
}
.company-story__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.company-story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  animation: company-story-drift 24s ease-in-out infinite alternate;
}
.company-story::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 19, 32, 0.97) 0%, rgba(8, 19, 32, 0.9) 40%, rgba(8, 19, 32, 0.58) 72%, rgba(8, 19, 32, 0.38) 100%),
    linear-gradient(0deg, rgba(8, 19, 32, 0.4), transparent 55%);
}
.company-story__content {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
  padding-block: clamp(64px, 8vw, 108px);
}
.company-story__content .eyebrow { color: var(--sky); }
.company-story__title {
  max-width: 780px;
  margin: 18px 0 22px;
  font-family: var(--font-display);
  font-stretch: 106%;
  font-weight: 600;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.company-story__text {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.75;
}
.company-story__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 40px;
  margin-top: 30px;
}
.company-story__location {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.company-story__location span + span { position: relative; }
.company-story__location span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -13px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--sky);
}
.company-story__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sky);
  font-weight: 500;
  transition: color var(--t-fast) ease;
}
.company-story__link .i-arrow { width: 16px; height: 16px; transition: transform 300ms var(--ease-out); }
.company-story__link:hover { color: var(--white); }
.company-story__link:hover .i-arrow { transform: translateX(5px); }
.company-story__link:focus-visible { outline-color: var(--sky); outline-offset: 5px; }
@keyframes company-story-drift {
  from { transform: scale(1.02); }
  to { transform: scale(1.09); }
}

/* "What are you looking for?" quick links (home) */
.help__title { text-align: center; margin-bottom: clamp(44px, 5vw, 72px); }
.help__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.help__grid > li + li .help__item { border-left: 1px solid var(--line); }
.help__item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  height: 100%;
  padding: 30px 24px;
  transition: background-color 400ms ease;
}
.help__item::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 520ms var(--ease-out);
}
.help__icon { width: 34px; height: 34px; color: var(--blue); transition: transform 500ms var(--ease-out); }
.help__text { display: grid; gap: 4px; }
.help__text small { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.help__text span {
  font-family: var(--font-display);
  font-stretch: 104%;
  font-weight: 600;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.25;
  color: var(--ink);
  transition: color var(--t-fast) ease;
}
.help__item .i-arrow { color: var(--steel); transition: color 300ms ease, transform 400ms var(--ease-out); }
.help__item:hover { background: var(--paper); }
.help__item:hover::after { transform: scaleX(1); }
.help__item:hover .help__icon { transform: translateY(-3px); }
.help__item:hover .help__text span { color: var(--blue-text); }
.help__item:hover .i-arrow { color: var(--blue); transform: translateX(4px); }
.help__item:focus-visible { outline-offset: -3px; }

/* Dark editorial list (Why choose, values, why-our-solutions) */
.split-dark { align-items: start; }
.split-dark__head { grid-column: 1 / span 5; }
.split-dark__list { grid-column: 7 / -1; }
.split-dark__media {
  margin-top: 44px;
  max-width: 400px;
}
.feature-list > li {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px 20px;
  padding: 30px 0;
}
.feature-list > li::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--line-dark);
  transform-origin: left center;
}
.feature-list > li:last-child::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line-dark);
}
.feature-list .index { padding-top: 6px; }
.feature-list p { grid-column: 2; margin-top: 4px; max-width: 58ch; }
.feature-list--light > li::before,
.feature-list--light > li:last-child::after { background: var(--line); }
.feature-list--light p { color: var(--muted); }

/* Industries grid (home) */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.ind-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 180px;
  padding: 28px 30px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transition: background-color 400ms ease;
}
.ind-cell .h3 { max-width: 18ch; }
.ind-cell__top { display: flex; justify-content: space-between; align-items: center; }
.ind-cell__mark {
  width: 22px; height: 22px;
  color: var(--line-strong);
  transition: color 400ms ease, transform 400ms var(--ease-out);
}
.ind-cell:hover { background: var(--paper); }
.ind-cell:hover .ind-cell__mark { color: var(--blue); transform: translate(3px, -3px); }
.note {
  margin-top: 28px;
  max-width: 72ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}
.note::before { content: "— "; color: var(--blue); }

/* Partner list (home + partners) */
.partners-split__text { grid-column: 1 / span 5; }
.partners-split__list { grid-column: 7 / -1; }
.partner-list { border-top: 1px solid var(--line); }
.partner-row {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.partner-row::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 520ms var(--ease-out);
}
.partner-row__name {
  font-family: var(--font-display);
  font-stretch: 106%;
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color 300ms ease, transform 420ms var(--ease-out);
}
.partner-row__cat {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-stretch: 100%;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.partner-row .i-arrow { color: var(--steel); transition: color 300ms ease, transform 420ms var(--ease-out); }
a.partner-row:hover::after { transform: scaleX(1); }
a.partner-row:hover .partner-row__name { color: var(--blue-text); transform: translateX(6px); }
a.partner-row:hover .i-arrow { color: var(--blue); transform: translateX(4px); }
.partner-list__label {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Partner directory (partners page) */
.directory { border-top: 1px solid var(--line); }
.directory__row {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.directory__row .partner-row__name { font-size: clamp(22px, 2vw, 30px); }
.directory__links { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: flex-end; }
.ext-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color var(--t-fast) ease;
}
.ext-link svg { width: 14px; height: 14px; transition: transform 300ms var(--ease-out); }
.ext-link:hover { color: var(--blue-text); }
.ext-link:hover svg { transform: translate(2px, -2px); }

/* Partner logo wall */
.logo-wall-wrap { margin-top: clamp(56px, 7vw, 96px); }
/* Flex-wrap so an incomplete last row sits centred; tiles overlap borders by 1px */
.logo-wall {
  --logo-cols: 7;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1px 0 0 1px;
}
.logo-wall > li { flex: 0 0 calc(100% / var(--logo-cols)); display: flex; }
.directory + .logo-wall,
.logo-wall + .directory { margin-top: clamp(48px, 6vw, 72px); }
.logo-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  min-height: 136px;
  margin: -1px 0 0 -1px;
  padding: 28px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: background-color 400ms ease;
}
.logo-tile::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 520ms var(--ease-out);
}
.logo-tile img {
  width: var(--logo-w, 160px);
  max-width: 100%;
  height: auto;
  transition: transform 600ms var(--ease-out);
}
.logo-tile:hover::after,
.logo-tile:focus-visible::after { transform: scaleX(1); }
.logo-tile:hover img { transform: scale(1.04); }
.logo-tile:focus-visible { outline-offset: -3px; }

/* Process steps */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  counter-reset: step;
}
.steps__rail {
  position: absolute;
  left: 0; right: 0;
  top: 7px;
  height: 1px;
  background: var(--line-dark);
}
.steps__rail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--sky), var(--blue));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1600ms var(--ease-inout) 200ms;
}
.steps.is-in .steps__rail::after,
html:not(.js) .steps__rail::after { transform: scaleX(1); }
.step { position: relative; padding-top: 44px; }
.step::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 15px; height: 15px;
  border: 1px solid var(--sky);
  background: var(--navy-900);
  transform: rotate(45deg);
}
.step .index { display: block; margin-bottom: 14px; }
.step .h3 { font-size: 21px; }
.step p { margin-top: 10px; font-size: 15.5px; line-height: 1.6; }
.step .step__text { margin-top: 0; font-family: var(--font-display); font-stretch: 104%; font-weight: 500; font-size: clamp(18px, 1.4vw, 20px); line-height: 1.4; color: var(--ink); }
.section--dark .step .step__text { color: var(--white); }
.section--paper .steps__rail,
.section:not(.section--dark) .steps__rail { background: var(--line); }
.section:not(.section--dark) .step::before { background: var(--white); border-color: var(--blue); }
.section--paper .step::before { background: var(--paper); }

/* Generic numbered text grid */
.num-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 48px);
  row-gap: clamp(40px, 4vw, 60px);
}
.num-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.num-item { position: relative; padding-top: 26px; }
.num-item::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--line);
}
.num-item::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 48px; height: 2px;
  background: var(--blue);
  transition: width 600ms var(--ease-out);
}
.num-item:hover::after { width: 100%; }
.section--dark .num-item::before { background: var(--line-dark); }
.section--dark .num-item::after { background: var(--sky); }
.num-item .index { display: block; margin-bottom: 18px; }
.num-item p { margin-top: 12px; font-size: 15.5px; line-height: 1.62; color: var(--muted); }
.section--dark .num-item p { color: var(--on-dark-muted); }

/* Bento grid (industries page) */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 24px);
}
.bento__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 400ms ease, box-shadow 400ms ease;
}
.bento__cell:hover { border-color: var(--line-strong); box-shadow: 0 24px 50px -36px rgba(8, 18, 31, 0.45); }
.bento__cell .index { margin-bottom: auto; }
.bento__cell .h3 { margin-top: 48px; font-size: clamp(21px, 1.8vw, 26px); }
.bento__cell p { margin-top: 12px; font-size: 15.5px; color: var(--muted); }
.bento__img { padding: 0; border: 0; background: var(--navy-800); }
.bento__img .frame { height: 100%; min-height: 300px; }
.bento__img .note { margin: 0; padding: 0 24px 24px; color: var(--on-dark-muted); }
.bento__img:hover .frame img { transform: scale(1.04); }

/* Mission & vision */
.mv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
}
.mv__item { padding: clamp(36px, 4vw, 56px) clamp(0px, 3vw, 48px) 0 0; }
.mv__item + .mv__item { padding-left: clamp(24px, 3vw, 48px); border-left: 1px solid var(--line-dark); }
.mv__item p {
  margin-top: 22px;
  font-family: var(--font-display);
  font-stretch: 104%;
  font-weight: 500;
  font-size: clamp(21px, 2vw, 29px);
  line-height: 1.32;
  letter-spacing: -0.014em;
  color: var(--white);
}

/* Big statement */
.statement {
  max-width: 24ch;
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 600;
  font-size: clamp(30px, 3.8vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.024em;
  color: var(--ink);
  text-wrap: balance;
}
.statement em { font-style: normal; color: var(--blue-text); }
.statement--sm { max-width: 26ch; font-size: clamp(26px, 2.5vw, 38px); line-height: 1.16; }

/* Image pair */
.img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: end;
}
.img-pair > :last-child { transform: translateY(48px); }
.img-pair--hero > :last-child { transform: none; }

/* About page role statement */
.about-role {
  overflow: hidden;
  isolation: isolate;
  color: var(--on-dark);
  background:
    radial-gradient(ellipse at 88% 18%, rgba(0, 120, 208, 0.2), transparent 38%),
    linear-gradient(125deg, #0b1a2c 0%, #081320 70%);
}
.about-role::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(159, 214, 251, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 214, 251, 0.14) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(100deg, transparent 20%, #000 100%);
  pointer-events: none;
}
.about-role__inner { position: relative; }
.about-role .eyebrow { color: var(--sky); }
.about-role__statement {
  max-width: 1000px;
  margin-top: 24px;
  color: var(--white);
  font-size: clamp(29px, 3.6vw, 48px);
  line-height: 1.2;
}
.about-role__statement em { color: var(--sky-soft); }
.about-role__rule {
  width: 100%;
  height: 1px;
  margin-top: clamp(36px, 5vw, 64px);
  background: var(--line-dark);
}
.about-role__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
  margin-top: 28px;
}
.about-role__details p {
  max-width: 58ch;
  margin: 0;
  color: var(--on-dark-muted);
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.75;
}

/* Mosaic for product hero */
.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mosaic .frame:first-child { grid-column: 1 / -1; }

/* CTA band */
.cta-band {
  position: relative;
  padding-block: clamp(96px, 12vw, 168px);
  color: var(--white);
  background: var(--navy-950);
  overflow: hidden;
  isolation: isolate;
}
.cta-band__bg {
  position: absolute;
  inset: -12% 0;
  z-index: -2;
}
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 19, 32, 0.95) 0%, rgba(8, 19, 32, 0.78) 50%, rgba(8, 19, 32, 0.4) 100%);
}
.cta-band__inner { max-width: 760px; }
.cta-band .h2 { color: var(--white); }
.cta-band p { margin-top: 24px; max-width: 60ch; font-size: clamp(17px, 1.3vw, 19px); color: rgba(232, 238, 245, 0.82); }
.cta-band .btn-row { margin-top: 40px; }

/* 11. Products ------------------------------------------------------------ */
.subnav {
  position: sticky;
  top: var(--header-h-scrolled);
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.subnav__list {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.subnav__list::-webkit-scrollbar { display: none; }
.subnav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 18px 14px;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--muted);
  scroll-snap-align: start;
  transition: color var(--t-fast) ease;
}
.subnav__link .index { font-size: 11px; color: var(--steel); }
.subnav__link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: -1px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 360ms var(--ease-out);
}
.subnav__link:hover { color: var(--ink); }
.subnav__link.is-active { color: var(--ink); }
.subnav__link.is-active .index { color: var(--blue-text); }
.subnav__link.is-active::after { transform: scaleX(1); }

.product {
  padding-block: clamp(72px, 8vw, 120px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: -50px;
}
.product:last-of-type { border-bottom: 0; }
.product__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 2.4vw, 40px);
  row-gap: 16px;
  align-items: end;
  padding-bottom: 32px;
  margin-bottom: clamp(36px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}
.product__num {
  grid-column: 1 / span 2;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 300;
  font-size: clamp(56px, 6vw, 96px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--blue);
}
.product__title { grid-column: 3 / span 6; }
.product__title .eyebrow { margin-bottom: 12px; }
.product__brand {
  grid-column: 9 / -1;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  text-align: right;
}
.product__logo img {
  width: calc(var(--logo-w, 160px) * 0.92);
  height: auto;
  max-width: 100%;
}
.product__body { align-items: start; }
.product__media { grid-column: 1 / span 5; position: sticky; top: 160px; }
.product__text { grid-column: 7 / -1; }
.product--flip .product__media { grid-column: 8 / -1; grid-row: 1; }
.product--flip .product__text { grid-column: 1 / span 6; grid-row: 1; }
.product__text .h3 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 20px; }
.frame--contain { background: var(--white); border: 1px solid var(--line); }
.frame--contain img { object-fit: contain; padding: 6%; }

.spec {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.spec__title {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
}
.check-list li {
  position: relative;
  padding-left: 24px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 9px; height: 9px;
  border-top: 1.5px solid var(--blue);
  border-right: 1.5px solid var(--blue);
  transform: rotate(45deg) translate(-2px, 2px);
}
.check-list--single { grid-template-columns: 1fr; }
.section--dark .check-list li { color: var(--on-dark); }
.section--dark .check-list li::before { border-color: var(--sky); }

.callout {
  margin-top: 30px;
  padding: 18px 22px;
  background: var(--paper);
  border-left: 2px solid var(--blue);
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* 12. Forms --------------------------------------------------------------- */
.contact-layout { align-items: start; }
.contact-layout__info { grid-column: 1 / span 5; }
.contact-layout__form { grid-column: 7 / -1; }
.enquiry-section { overflow: hidden; }
.contact-layout--enquiry { align-items: center; }
.contact-layout--enquiry .contact-layout__info { grid-column: 1 / span 4; }
.contact-layout--enquiry .contact-layout__form { grid-column: 5 / -1; }
.enquiry-intro { padding-right: clamp(0px, 2vw, 28px); }
.enquiry-intro .eyebrow { margin-bottom: 22px; }
.enquiry-intro .h2 { max-width: 9ch; margin-bottom: 22px; }
.enquiry-intro__copy { max-width: 42ch; color: var(--muted); line-height: 1.7; }
.enquiry-intro__note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 36px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}
.enquiry-intro__note strong { color: var(--ink); font-weight: 600; }
.enquiry-intro__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(0, 120, 208, 0.22);
  border-radius: 50%;
  color: var(--blue-text);
}
.enquiry-intro__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.enquiry-intro__email {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}
.enquiry-intro__email span { color: var(--blue-text); font-size: 16px; font-weight: 500; }
.enquiry-intro__email:hover span { text-decoration: underline; text-underline-offset: 4px; }
.info-block + .info-block { margin-top: 44px; }
.info-block__label {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.info-block__value {
  font-family: var(--font-display);
  font-stretch: 104%;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
}
.cat-list { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-list button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--white);
  font-size: 14.5px;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--t-fast) ease, color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.cat-list button:hover { border-color: var(--blue); color: var(--blue-text); }
.cat-list button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.form-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 52px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -60px rgba(8, 18, 31, 0.45);
}
.form-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--blue);
  transform: scaleY(0.35);
  transform-origin: top;
  transition: transform 650ms var(--ease-out);
}
.form-panel:hover::before,
.form-panel:focus-within::before { transform: scaleY(1); }
.form-panel__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.form-panel__title { margin-bottom: 0; }
.form-panel__heading .muted { font-size: 13px; }
.required-mark { color: var(--blue-text); }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
  margin-top: 24px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.field label .opt { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease, background-color var(--t-fast) ease;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
.field select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23526073' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--steel); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 120, 208, 0.16);
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--danger); }
.field.is-invalid input:focus,
.field.is-invalid select:focus,
.field.is-invalid textarea:focus { box-shadow: 0 0 0 3px rgba(180, 50, 31, 0.14); }
.field__error {
  display: none;
  font-size: 13.5px;
  color: var(--danger);
}
.field.is-invalid .field__error { display: block; animation: err-in 260ms var(--ease-out); }
@keyframes err-in { from { opacity: 0; transform: translateY(-4px); } }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: 30px;
}
.form-status {
  flex: 1 1 260px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}
.form-status.is-success {
  padding: 12px 16px;
  border-left: 2px solid #1d6b3a;
  background: #edf7f0;
  color: #1d6b3a;
  animation: err-in 300ms var(--ease-out);
}
.form-status.is-error {
  padding: 12px 16px;
  border-left: 2px solid var(--danger);
  background: #fff3f1;
  color: var(--danger);
  animation: err-in 300ms var(--ease-out);
}
.form-foot .btn:disabled { cursor: wait; opacity: 0.82; }
.form-foot .btn.is-loading .i-arrow { display: none; }
.form-foot .btn.is-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: form-spin 700ms linear infinite;
}
@keyframes form-spin { to { transform: rotate(360deg); } }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* 12b. Contact details */
/* Contact details */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 28px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.contact-card::before {
  content: "";
  position: absolute;
  left: -1px; right: -1px; top: -1px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 500ms var(--ease-out);
}
.contact-card:hover::before { transform: scaleX(1); }
.contact-card__label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card__value {
  font-family: var(--font-display);
  font-stretch: 104%;
  font-weight: 600;
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.35;
  color: var(--ink);
  overflow-wrap: anywhere;
}
a.contact-card__value { transition: color var(--t-fast) ease; }
a.contact-card__value:hover { color: var(--blue-text); }
address.contact-card__value { font-style: normal; font-size: 17px; line-height: 1.55; font-family: var(--font-body); font-weight: 500; }
.map-frame {
  margin-top: clamp(40px, 5vw, 64px);
  aspect-ratio: 21 / 8;
  min-height: 300px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(1.02); }

.cta-band__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.cta-band__contact div { display: grid; gap: 4px; }
.cta-band__contact small {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.cta-band__contact a {
  font-family: var(--font-display);
  font-stretch: 104%;
  font-weight: 600;
  font-size: 20px;
  color: var(--white);
  transition: color var(--t-fast) ease;
}
.cta-band__contact a:hover { color: var(--sky); }

.footer__contact li { font-size: 15px; line-height: 1.55; color: var(--text); }
.footer__contact li + li { margin-top: 14px; }
.footer__contact small {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.footer__contact address { font-style: normal; }

/* 13. Footer -------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--paper);
  color: var(--text);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--sky) 40%, transparent 75%);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 48px clamp(24px, 3vw, 56px);
  padding-block: clamp(64px, 7vw, 96px) clamp(48px, 5vw, 72px);
}
.footer__brand img { height: 42px; width: auto; }
.footer__name {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.footer__tagline {
  margin-top: 8px;
  font-family: var(--font-display);
  font-stretch: 104%;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
}
.footer__desc { margin-top: 14px; max-width: 46ch; font-size: 15px; line-height: 1.6; color: var(--muted); }
.footer__col h2 {
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__col li + li { margin-top: 10px; }
.footer__col a {
  font-size: 15px;
  color: var(--text);
  background: linear-gradient(var(--blue), var(--blue)) left bottom / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: color var(--t-fast) ease, background-size 380ms var(--ease-out);
}
.footer__col a:hover { color: var(--blue-text); background-size: 100% 1px; }
.footer__col p { font-size: 15px; color: var(--text); }
.footer__col .link-arrow { margin-top: 14px; font-size: 15px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--t-fast) ease;
}
.to-top svg { width: 16px; height: 16px; transform: rotate(-90deg); transition: transform 300ms var(--ease-out); }
.to-top:hover { color: var(--blue-text); }
.to-top:hover svg { transform: rotate(-90deg) translateX(3px); }

/* 14. Motion -------------------------------------------------------------- */
/* Page-to-page cross-fade (progressive enhancement, Chromium) */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 320ms; animation-timing-function: var(--ease-out); }

/* All reveal states are opt-in via html.js so content is visible without JS */
html.js [data-reveal] {
  transition:
    opacity var(--t-reveal) var(--ease-out),
    transform var(--t-reveal) var(--ease-out),
    clip-path var(--t-image) var(--ease-inout);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
html.js [data-reveal="up"]:not(.is-in) { opacity: 0; transform: translateY(28px); }
html.js [data-reveal="left"]:not(.is-in) { opacity: 0; transform: translateX(-40px); }
html.js [data-reveal="right"]:not(.is-in) { opacity: 0; transform: translateX(40px); }
html.js [data-reveal="fade"]:not(.is-in) { opacity: 0; }

/* Image mask reveal: the image wipes in from the left inside its frame and settles.
   (The clip sits on the <img>, not the observed frame, so IntersectionObserver can see it.) */
html.js [data-reveal="mask"] img {
  transition: clip-path var(--t-image) var(--ease-inout), transform 1600ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
html.js [data-reveal="mask"]:not(.is-in) img { clip-path: inset(0 100% 0 0); transform: scale(1.16); }

/* Hairline draw */
html.js [data-reveal="line"]:not(.is-in) { transform: scaleX(0); }
html.js [data-reveal="line"] { transform-origin: left center; transition: transform 1000ms var(--ease-inout); transition-delay: calc(var(--i, 0) * var(--stagger)); }
html.js .feature-list > li::before { transition: transform 1000ms var(--ease-inout); transition-delay: calc(var(--i, 0) * var(--stagger)); }
html.js .feature-list > li:not(.is-in)::before { transform: scaleX(0); }
html.js .feature-list > li > * { transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); transition-delay: calc(150ms + var(--i, 0) * var(--stagger)); }
html.js .feature-list > li:not(.is-in) > * { opacity: 0; transform: translateY(16px); }

/* Hero entrance choreography */
html.js .js-split .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
html.js .js-split .word > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1000ms var(--ease-out);
  transition-delay: calc(120ms + var(--w, 0) * 55ms);
}
html.js .is-loaded .js-split .word > span { transform: none; }

html.js .intro {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: var(--d, 600ms);
}
html.js .is-loaded .intro { opacity: 1; transform: none; }
html.js .intro.eyebrow::before { transform: scaleX(0); transition: transform 900ms var(--ease-inout) 200ms; }
html.js .is-loaded .intro.eyebrow::before { transform: scaleX(1); }

html.js .page-hero__bg img { transform: scale(1.1); transition: transform 2400ms var(--ease-out); }
html.js .is-loaded .page-hero__bg img { transform: scale(1); }

/* Home hero image: fades up and settles from a slow zoom */
html.js .hero-x__media img {
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1200ms ease 100ms, transform 3200ms var(--ease-out) 100ms;
}
html.js .is-loaded .hero-x__media img { opacity: 1; transform: none; }

html.js .hero__lines line { stroke-dasharray: 2400; stroke-dashoffset: 2400; transition: stroke-dashoffset 2200ms var(--ease-inout) 500ms; }
html.js .is-loaded .hero__lines line { stroke-dashoffset: 0; }

/* Client tiles stay solid (the grid's hairline background must never show through);
   only the logo fades up. Keyframes with backwards fill release the transform
   afterwards so the hover scale still applies. */
html.js .client-grid > .client-tile[data-reveal]:not(.is-in) { opacity: 1; transform: none; }
html.js .client-tile:not(.is-in) img { opacity: 0; }
html.js .client-tile.is-in img {
  animation: client-in 800ms var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * var(--stagger));
}
@keyframes client-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Parallax layers are moved by JS with transform only */
[data-parallax] { will-change: transform; }

/* 15. Responsive ---------------------------------------------------------- */
@media (max-width: 1200px) {
  .nav, .header__cta { display: none; }
  .menu-toggle { display: block; }
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .num-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-wall { --logo-cols: 4; }
  .client-grid { --client-cols: 4; }
  .help__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help__grid > li:nth-child(3) .help__item { border-left: 0; }
  .help__grid > li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (min-width: 1201px) {
  .mobile-menu { display: none; }
}

@media (max-width: 1024px) {
  :root { --header-h: 84px; --header-h-scrolled: 64px; }
  .brand img { --logo-h: 50px; }
  .site-header.is-scrolled .brand img { --logo-h: 44px; }
  .header__iso { height: 68px; }
  .site-header.is-scrolled .header__iso { height: 50px; }

  .section-head__title,
  .section-head__aside,
  .section-head--stack .section-head__title { grid-column: 1 / -1; }

  .hero-x__heading,
  .hero-x__aside { grid-column: 1 / -1; }
  .hero-x__aside { padding-bottom: 0; }
  .hero-x__lead { max-width: 60ch; }

  .about-split__head,
  .about-split__body,
  .split-dark__head,
  .split-dark__list,
  .partners-split__text,
  .partners-split__list,
  .contact-layout__info,
  .contact-layout__form { grid-column: 1 / -1; }
  .about-split__body,
  .split-dark__list,
  .partners-split__list,
  .contact-layout__form { margin-top: 48px; }
  .contact-layout--enquiry .contact-layout__info,
  .contact-layout--enquiry .contact-layout__form { grid-column: 1 / -1; }
  .contact-layout--enquiry .contact-layout__form { margin-top: 40px; }

  .page-hero__text,
  .page-hero__media { grid-column: 1 / -1; }
  .page-hero__media { max-width: 560px; }

  .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .num-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; gap: 0; padding-left: 36px; }
  .steps__rail { left: 7px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .steps__rail::after { transform: scaleY(0); transform-origin: center top; }
  .steps.is-in .steps__rail::after,
  html:not(.js) .steps__rail::after { transform: scaleY(1); }
  .step { padding: 0 0 36px; }
  .step:last-child { padding-bottom: 0; }
  .step::before { left: -36px; top: 4px; }

  .product__num { grid-column: 1 / span 3; }
  .product__title { grid-column: 4 / -1; }
  .product__brand { grid-column: 4 / -1; justify-self: start; align-items: flex-start; text-align: left; }
  .product__media,
  .product--flip .product__media { grid-column: 1 / -1; grid-row: auto; position: relative; top: 0; max-width: 560px; }
  .product__text,
  .product--flip .product__text { grid-column: 1 / -1; grid-row: auto; margin-top: 36px; }

  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }

  .directory__row { grid-template-columns: 52px minmax(0, 1fr); }
  .directory__row .partner-row__cat { grid-column: 2; }
  .directory__cat { grid-column: 2; }
  .directory__links { grid-column: 2; justify-content: flex-start; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  :root { --header-h: 72px; }
  /* Logo, ISO mark and menu toggle share the row; the mark takes the remaining width */
  .header__inner { gap: 14px; }
  .brand img { --logo-h: 42px; }
  .site-header.is-scrolled .brand img { --logo-h: 40px; }
  .header__iso { height: min(56px, calc((100vw - 245px) * 0.35)); margin-left: 0; }
  .site-header.is-scrolled .header__iso { height: min(50px, calc((100vw - 245px) * 0.35)); }
  :root { --chamfer: 16px; }
  .hero-x__media { aspect-ratio: 16 / 10; min-height: 0; }
  .hero-x__media img { object-position: 30% 60%; }
  .hero-x__inner { row-gap: 22px; padding-block: 40px 56px; }
  .hero-x__actions { margin-top: 28px; }
  .scroll-cue { display: none; }
  .help__grid { grid-template-columns: 1fr; }
  .help__grid > li + li .help__item { border-left: 0; }
  .help__grid > li + li { border-top: 1px solid var(--line); }
  .help__item { padding: 24px 8px; }
  .marquee-controls { justify-content: center; }
  .btn-row .btn { flex: 1 1 100%; }

  .cap-grid { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: 1fr; }
  .ind-cell { min-height: 0; gap: 22px; padding: 24px; }
  .num-grid,
  .num-grid--4 { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento__cell { min-height: 0; padding: 28px 24px; }
  .bento__cell .h3 { margin-top: 28px; }
  .bento__img .frame { min-height: 0; aspect-ratio: 16 / 10; }
  .about-role__details { grid-template-columns: 1fr; }
  .mv { grid-template-columns: 1fr; }
  .mv__item { padding: 36px 0 0; }
  .mv__item + .mv__item { padding-left: 0; border-left: 0; margin-top: 36px; border-top: 1px solid var(--line-dark); }
  .img-pair > :last-child { transform: none; }
  .check-list { grid-template-columns: 1fr; }
  .product__head { padding-bottom: 24px; }
  .product { scroll-margin-top: 0; }
  .product__num { grid-column: 1 / -1; font-size: 56px; }
  .product__title,
  .product__brand { grid-column: 1 / -1; }
  .feature-list > li { grid-template-columns: 40px minmax(0, 1fr); padding: 24px 0; }
  .partner-row { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 18px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .logo-wall { --logo-cols: 2; }
  .client-tile { min-height: 120px; padding: 24px 16px; }
  .client-tile img { width: calc(var(--logo-w, 140px) * 0.86); max-height: 72px; }
  .logo-tile { min-height: 104px; padding: 22px 14px; }
  .logo-tile img { width: calc(var(--logo-w, 160px) * 0.78); }
  .contact-cards { grid-template-columns: 1fr; }
  .enquiry-intro .h2 { max-width: 13ch; }
  .enquiry-intro__note { margin-top: 24px; }
  .form-panel__heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .map-frame { aspect-ratio: 4 / 3; min-height: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__col--contact { grid-column: 1 / -1; }
  .about-split__media::after { right: -10px; bottom: -10px; }

  /* Lighter motion on small screens */
  html.js [data-reveal="up"]:not(.is-in) { transform: translateY(18px); }
  html.js [data-reveal="left"]:not(.is-in),
  html.js [data-reveal="right"]:not(.is-in) { transform: translateY(18px); }
  :root { --t-reveal: 560ms; --t-image: 850ms; --stagger: 60ms; }
}

/* 20 client logos divide evenly into 5, 4 and 2 columns, so no grid cell is left empty */
@media (max-width: 560px) {
  .client-grid { --client-cols: 2; }
  .client-tile { min-height: 108px; padding: 22px 14px; }
  .client-tile img { width: calc(var(--logo-w, 140px) * 0.8); max-height: 64px; }
}

@media (max-width: 420px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* Hover-capable devices only: avoid sticky hover transforms on touch */
@media (hover: none) {
  .cap-card:hover { transform: none; box-shadow: none; }
  a.partner-row:hover .partner-row__name { transform: none; }
  .logo-tile:hover img { transform: none; }
  .client-tile:hover img { transform: none; }
  .marquee__item:hover { transform: none; box-shadow: none; }
  .company-story__media img { animation: none; transform: none; }
}

/* Reduced motion: remove movement, keep content immediately visible */
@media (prefers-reduced-motion: reduce) {
  html, html.smooth-scroll { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  html.js [data-reveal]:not(.is-in),
  html.js .intro,
  html.js .js-split .word > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  html.js [data-reveal="mask"] img { clip-path: none !important; }
  html.js [data-reveal="mask"] img,
  html.js .hero-x__media img,
  html.js .page-hero__bg img { transform: none !important; }
  html.js .hero-x__media img { opacity: 1 !important; }
  html.js .feature-list > li::before,
  html.js .feature-list > li > * { opacity: 1 !important; transform: none !important; }
  html.js .hero__lines line { stroke-dashoffset: 0 !important; }
  .steps__rail::after { transform: none !important; }
  .scroll-cue__track::after { display: none; }
  @view-transition { navigation: none; }
}
