/* ==========================================================================
   Zaminox Holding Limited — stylesheet
   Values (colours, type scale, spacing) are taken from the original
   Divi global colours and module presets of the source site.
   Breakpoints follow the original: tablet <= 980px, phone <= 767px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colours */
  --navy: #002b4c;          /* global colour 1 — primary brand */
  --navy-link: #00385c;     /* link / active menu item */
  --green: #15c586;         /* quote + link accent */
  --ink: #000000;
  --ink-soft: #333333;      /* global colour 5 — accordion titles */
  --hairline: rgba(0, 0, 0, 0.2);
  --grey-100: #f7f7f7;
  --grey-200: #f4f4f4;
  --grey-400: #d6d6d6;
  /* Source site used #8c8c8c here, which fails WCAG AA on the navy footer
     (4.29:1). Nudged to #999 for 4.97:1 — visually all but identical. */
  --grey-500: #999999;
  --white: #ffffff;

  /* Type */
  /* Arimo is metrically compatible with Arial by design, and Liberation
     Sans is its Linux equivalent, so Arial comes first in the fallback:
     the text occupies the same width before and after the webfont
     swaps. With "Helvetica Neue" first, headings sitting near a wrap
     boundary flipped between one and two lines on swap — that measured
     0.38 CLS on the Sheet Metal Fabrication page. */
  --font-display: "Arimo", Arial, "Liberation Sans", Helvetica, sans-serif;
  --font-body: "Inter", Arial, "Liberation Sans", Helvetica, sans-serif;

  /* Layout */
  --row-width: 90%;
  --row-max: 1500px;
  --header-h: 100px;

  /* Effects */
  --shadow-card: 0 12px 18px -6px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 10px 60px rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  /* Affects programmatic and anchor jumps only (skip link, back to top).
     Wheel and trackpad scrolling is entirely native — nothing intercepts
     it. Change to `auto` if you want anchor jumps to be instant too. */
  scroll-behavior: smooth;
}


body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  overflow-wrap: break-word; /* long part numbers can't force a sideways scroll */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  /* 400, not 500: only 400/600/700 are loaded, so a 500 request was
     being synthesised or snapped by the browser anyway. */
  font-weight: 400;
  margin: 0 0 0.4em;
  color: var(--navy);
}

ul {
  margin: 0;
  padding-left: 1.1em;
}

iframe {
  max-width: 100%;
  border: 0;
}

/* An inline SVG with only a viewBox grows to fill its container. Every
   icon also carries width/height attributes now, but this is the backstop
   in case any is ever emitted without them. */
svg {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

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

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.row {
  width: var(--row-width);
  max-width: var(--row-max);
  margin-inline: auto;
}

.section {
  padding: clamp(48px, 6vw, 80px) 0;
}

/* content-visibility: auto was tried here and removed. It needs an
   accurate contain-intrinsic-size, and a single estimate cannot suit
   both a long products page and a short 404 — the placeholder height was
   wrong by enough to cost 0.32 CLS. These pages are small enough that
   skipping offscreen rendering saved little in return. */

.grid {
  display: grid;
  gap: 40px;
}

.grid--halves {
  grid-template-columns: 1fr 1fr;
}

.grid--thirds {
  grid-template-columns: repeat(3, 1fr);
}

.grid--quarters {
  grid-template-columns: repeat(4, 1fr);
}

.grid--3-1 {
  grid-template-columns: 3fr 1fr;
}

.grid--2-1 {
  grid-template-columns: 2fr 1fr;
}

.grid--1-2 {
  grid-template-columns: 1fr 2fr;
}

.grid--wide-gutter {
  gap: 60px;
}

/* --------------------------------------------------------------------------
   4. Type scale (from the Divi heading/text presets)
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.08px;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--navy);
}

.eyebrow a {
  color: inherit;
}

/* Type is fluid between phone and desktop. The upper bound of each clamp
   is the original Divi desktop value, so large screens are unchanged; the
   lower bound is a readable phone size rather than Divi's 24px/14px. */
.display {
  font-size: clamp(30px, 5.6vw, 80px);
  line-height: 1.08;
  font-weight: 400;
  max-width: 1080px;
  margin: 0;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(24px, 4.2vw, 60px);
  line-height: 1.2;
  text-wrap: balance;
}

.h2--small {
  font-size: clamp(22px, 3.2vw, 45px);
}

.h3 {
  font-size: clamp(20px, 2.9vw, 42px);
  line-height: 1.3;
  text-wrap: balance;
}

.h5 {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.4;
}

.lede p,
.prose p {
  font-size: 16px;
  line-height: 1.75;
  max-width: 72ch; /* keeps measure readable on tablets in landscape */
}

.prose h2,
.prose h3 {
  font-size: clamp(20px, 2.9vw, 42px);
  line-height: 1.2;
  margin-bottom: 0.4em;
  text-wrap: balance;
}

.prose--small p {
  font-size: 14px;
}

.on-dark,
.on-dark .eyebrow,
.on-dark h1,
.on-dark h2,
.on-dark h3,
.on-dark h4,
.on-dark h5 {
  color: var(--white);
}

.on-dark a {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 100px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn:hover {
  text-decoration: none;
}

/* "Primary Outline Small" preset */
.btn--outline {
  font-size: 12px;
  padding: 4px 12px;
  color: var(--navy);
  border: 1px solid var(--navy);
  background: transparent;
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--outline-lg {
  font-size: 16px;
  padding: 10px 22px;
}

/* "Dark" preset, recoloured to navy as on the source page */
.btn--solid {
  font-size: 14px;
  padding: 18px 40px;
  color: var(--white);
  background: var(--navy);
  border: 0;
}

.btn--solid:hover {
  background: var(--navy-link);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

/* The header keeps one fixed height at every scroll position — no
   condensing, and the logo never changes size. */

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.site-logo {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
}

.site-logo img {
  height: auto;
  width: auto;
  /* The lockup is stacked (mark above wordmark) at roughly 1.72:1, not
     the 4.4:1 horizontal version it replaced. At the previous 40px cap
     it measured only 69px wide and "HOLDING LIMITED" was unreadable, so
     the cap is taller — but because the logo is near-square its actual
     footprint in the bar is smaller than the old wide mark's. */
  max-height: 60px;
  max-width: min(150px, 40vw);
}

.nav-scrim,
.main-nav__foot {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav ul {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--navy-link);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  /* Bottom padding is clamped, not dropped: the source site set it to 0
     below 980px, which left the headline flush against the section edge. */
  padding: clamp(72px, 10vw, 160px) 0 clamp(52px, 9vw, 143px);
  background-color: var(--navy);
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}

/* The photograph sits on its own layer so it can be scaled with a
   transform (compositor-only) instead of animating background-size. */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* Plain url() first as the fallback, then image-set so any browser with
   WebP support takes the smaller file (138KB against 250KB here). */
.hero--home .hero__media {
  background-image: url("../images/2026/05/jwvein-welding-7104637-scaled.jpg?v=baa6d66851");
  background-image: image-set(
    url("../images/2026/05/jwvein-welding-7104637-scaled.webp?v=a4df1875cc") type("image/webp"),
    url("../images/2026/05/jwvein-welding-7104637-scaled.jpg?v=baa6d66851") type("image/jpeg")
  );
}


.hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero--tight {
  padding: clamp(64px, 9vw, 150px) 0 clamp(44px, 8vw, 132px);
}

/* Subsidiary / inner pages: flat navy band */
.hero--flat {
  padding: clamp(26px, 2.4vw, 34px) 0 clamp(24px, 2vw, 27px);
  background-image: none;
}

.hero .row {
  position: relative;
}

/* --------------------------------------------------------------------------
   8. Stats band
   -------------------------------------------------------------------------- */
.stats {
  background: var(--navy);
  color: var(--white);
  padding: 37px 0 38px;
}

.stats__intro {
  max-width: 625px;
  margin-bottom: 32px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.counter {
  padding: 10px 20px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.counter:hover {
  background: var(--navy-link);
  box-shadow: var(--shadow-hover);
}

.counter__value {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1;
  color: var(--grey-400);
  margin: 0;
  transition: color 0.3s ease;
}

.counter:hover .counter__value,
.counter:hover .counter__label {
  color: var(--white);
}

.counter__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 6px 0 0;
  color: var(--white);
}

/* --------------------------------------------------------------------------
   9. Company cards ("The Group")
   -------------------------------------------------------------------------- */
.company-card img {
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.company-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.4;
  margin: 0;
}

.company-card__est {
  margin: 0 0 16px;
}

/* --------------------------------------------------------------------------
   10. Accordion
   -------------------------------------------------------------------------- */
.accordion {
  margin-top: 24px;
}

.accordion__item {
  border-bottom: 1px solid var(--hairline);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 30px 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.4;
  text-align: left;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.accordion__icon {
  flex: none;
  width: 32px;
  height: 32px;
  color: var(--ink);
  transition: transform 0.3s ease;
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(180deg);
}

.accordion__panel {
  padding: 0 0 30px;
}

/* --------------------------------------------------------------------------
   11. Blurbs (icon + text)
   -------------------------------------------------------------------------- */
.blurb {
  display: flex;
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid var(--hairline);
}

.blurb__icon {
  flex: none;
  width: 32px;
  height: 32px;
  color: var(--navy);
}

.blurb__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.blurb__title {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.4;
  margin: 0 0 6px;
  color: var(--navy);
}

.blurb__body p {
  margin: 0;
}

.blurb-list {
  display: grid;
  gap: 0;
}

/* --- Blurb panel: a bordered grid, matching the capability strip's
   visual language so "Why Choose Us" reads as one engineered panel
   rather than a loose vertical list that could run shorter or taller
   than the column beside it. -------------------------------------- */
.blurb-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--hairline);
}

.blurb-panel .blurb {
  padding: 26px 24px;
  border-top: 0;
  transition: background-color 0.35s var(--ease-out);
}

.blurb-panel .blurb:nth-child(n + 3) {
  border-top: 1px solid var(--hairline);
}

.blurb-panel .blurb:nth-child(odd):not(:last-child) {
  border-right: 1px solid var(--hairline);
}

/* An odd final item (5 blurbs in a 2-column grid) spans full width
   instead of leaving an empty cell beside it. */
.blurb-panel .blurb:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

@media (hover: hover) {
  .blurb-panel .blurb:hover {
    background: var(--white);
  }
}

@media (max-width: 600px) {
  .blurb-panel {
    grid-template-columns: 1fr;
  }

  .blurb-panel .blurb:nth-child(odd):not(:last-child) {
    border-right: 0;
  }

  .blurb-panel .blurb:nth-child(n + 2) {
    border-top: 1px solid var(--hairline);
  }
}

/* --------------------------------------------------------------------------
   12. Product / media panels
   -------------------------------------------------------------------------- */
.media-panel {
  align-items: center;
}

.shadow-img {
  box-shadow: var(--shadow-card);
}

/* --- Contact page: map card --------------------------------------------- */
.map-card {
  display: flex;
  flex-direction: column;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Accent bar across the top, consistent with the green rule used under
   every section heading elsewhere on the site. */
.map-card::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--green);
}

.map-card__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.map-card__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.map-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(21, 197, 134, 0.22);
}

.js-anim .map-card__dot {
  animation: map-pulse 2.6s var(--ease-in-out) infinite;
}

@keyframes map-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(21, 197, 134, 0.22);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(21, 197, 134, 0.06);
  }
}

.map-card__directions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--white);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out),
    color 0.3s var(--ease-out);
}

.map-card__directions svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease-out);
}

.map-card__directions:hover,
.map-card__directions:focus-visible {
  color: var(--navy);
  background: var(--white);
  border-color: var(--white);
  text-decoration: none;
}

.map-card__directions:hover svg,
.map-card__directions:focus-visible svg {
  transform: translateX(3px);
}

.map-card__frame {
  position: relative;
  background: #06263f;
}

.map-card__frame iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 42vw, 420px);
  filter: grayscale(0.15) contrast(1.05);
}

.map-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
}

.map-card__foot p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.map-card__foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
}

.map-card__foot a svg {
  width: 12px;
  height: 12px;
}

.map-card__foot a:hover,
.map-card__foot a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .map-card__bar,
  .map-card__foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .map-card__directions {
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  /* Two navy stops only — the palette is unchanged, the gradient just
     gives the panel some depth away from the light section above it. */
  /* Barely-there lift at the top for depth; both stops are brand navy,
     the first only 3% lighter. An earlier gradient reached #003b66 and
     the panel sampled at (1,61,100) against the brand's (0,43,76). */
  background: linear-gradient(180deg, #002f53 0%, var(--navy) 55%);
  color: var(--white);
  padding: clamp(44px, 5vw, 68px) 0 0;
}

.site-footer a {
  color: var(--white);
}

.site-footer p,
.site-footer li {
  font-size: 14px;
  line-height: 1.8;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08px;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 10px;
}

.site-footer__copyright {
  color: var(--grey-500);
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   14. Back to top
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.to-top svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   15. Responsive — large tablet / small laptop (<= 1100px)
   Four columns of company cards fall to 200px at 1024px, which forces the
   longer names onto three lines. Two columns hold their shape instead.
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .grid--quarters {
    grid-template-columns: 1fr 1fr;
  }

  .grid--wide-gutter {
    gap: 44px;
  }
}

/* --------------------------------------------------------------------------
   16. Responsive — tablet (<= 980px)
   Side-by-side text/media pairs stack, and the mobile menu takes over.
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  :root {
    --header-h: 80px;
  }

  .grid--halves,
  .grid--thirds,
  .grid--3-1,
  .grid--2-1,
  .grid--1-2 {
    grid-template-columns: 1fr;
  }

  .grid--wide-gutter {
    gap: 36px;
  }

  /* Footer keeps two columns on tablets — one tall column wastes the
     width. With 3 children in a plain 2-col grid, default auto-flow
     puts Brand+Company on row 1 and Contact underneath Brand on row 2,
     leaving Company's column dead-ending in empty space. Named areas
     put Brand full-width on its own row, Company and Contact side by
     side below it. */
  .site-footer .grid--thirds {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand   brand"
      "company contact";
    gap: 8px 40px;
  }

  .site-footer__grid > *:nth-child(1) {
    grid-area: brand;
    padding-bottom: 20px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-footer__grid > *:nth-child(2) {
    grid-area: company;
  }

  .site-footer__grid > *:nth-child(3) {
    grid-area: contact;
  }

  /* A stacked 4:3 photo at full tablet width dwarfs the text beside it */
  .grid--3-1 img,
  .grid--2-1 img,
  .media-panel img,
  .grid--halves > div > img {
    /* min() so the cap never exceeds the viewport — a bare 560px
       overrides the global img max-width:100% and overflows phones. */
    max-width: min(560px, 100%);
    margin-inline: auto;
  }

  .stats {
    padding: clamp(32px, 5vw, 37px) 0 clamp(32px, 5vw, 38px);
  }

  /* Touch targets: 32px buttons and 25px footer links are too small to
     hit reliably. Everything tappable gets at least ~44px. */
  .btn--outline {
    padding: 12px 22px;
    font-size: 13px;
  }

  .btn--outline-lg {
    padding: 14px 26px;
    font-size: 14px;
  }

  .btn--solid {
    padding: 16px 32px;
  }

  .site-footer__links a,
  .site-footer p a {
    padding-block: 9px;
  }

  .accordion__trigger {
    padding: 24px 0;
  }

  .to-top {
    width: 48px;
    height: 48px;
    right: 16px;
    bottom: 16px;
  }

  .to-top__ring {
    width: 48px;
    height: 48px;
  }

  .site-logo img {
    max-height: 48px;
    max-width: min(120px, 40vw);
  }

}

/* --------------------------------------------------------------------------
   16b. Responsive — phone (<= 600px)
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  :root {
    --header-h: 70px;
  }

  .grid,
  .grid--quarters,
  .site-footer .grid--thirds {
    /* Clears the grid-template-areas set at the tablet breakpoint above —
       without this, "brand brand" / "company contact" still defines a
       2-column grid at phone width and grid-template-columns: 1fr is
       overridden by it, leaving Company and Contact side by side in a
       cramped single column's width instead of stacking. */
    grid-template-columns: 1fr;
    grid-template-areas: none;
    gap: 28px;
  }

  .site-footer__grid > *:nth-child(1),
  .site-footer__grid > *:nth-child(2),
  .site-footer__grid > *:nth-child(3) {
    grid-area: auto;
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
  }

  .stats__grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .counter {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 10px 0;
  }

  .counter__value {
    min-width: 3.2em;
  }

  .counter__label {
    margin-top: 0;
  }

  .counter::after {
    left: 0;
    right: 0;
  }

  .blurb {
    gap: 16px;
    padding-top: 24px;
  }

  .panel--navy {
    padding: 16px;
  }

  .hero__rule {
    margin-top: 20px;
    width: 72px;
  }

  .site-logo img {
    max-height: 40px;
    max-width: min(100px, 44vw);
  }
}

/* --------------------------------------------------------------------------
   16c. Touch devices — hover effects would stick after a tap
   -------------------------------------------------------------------------- */
@media (hover: none) {
  .company-card:hover,
  .to-top:hover {
    transform: none;
  }

  .company-card:hover .company-card__media img,
  .gallery-item:hover img {
    transform: none;
  }

  .blurb:hover .blurb__icon {
    transform: none;
    color: var(--navy);
  }

  .btn:active {
    opacity: 0.85;
  }

  a,
  button {
    -webkit-tap-highlight-color: rgba(0, 43, 76, 0.12);
  }

  /* A tablet in landscape is wider than 980px but still finger-driven,
     so the touch sizing is keyed to the input type as well as the width. */
  .btn--outline {
    padding: 12px 22px;
    font-size: 13px;
  }

  .btn--outline-lg {
    padding: 14px 26px;
    font-size: 14px;
  }

  .btn--solid {
    padding: 16px 32px;
  }

  .site-footer__links a,
  .site-footer p a {
    padding-block: 9px;
  }

  .accordion__trigger {
    padding: 24px 0;
  }
}

/* --------------------------------------------------------------------------
   17. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   18. Motion & interaction layer
   Everything below is additive: with JavaScript off, or with
   prefers-reduced-motion, the page renders in its resting state.
   ========================================================================== */

/* --- Easing tokens -------------------------------------------------------- */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* --- Scroll progress bar -------------------------------------------------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 110;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--navy), var(--green));
  transform-origin: left center;
}

/* --- Header: condenses on scroll ------------------------------------------ */
/* Only the shadow responds to scrolling — the height is fixed. */
.site-header {
  transition: box-shadow 0.4s var(--ease-out);
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(0, 43, 76, 0.12);
}

/* --- Nav: underline wipe -------------------------------------------------- */
.main-nav a {
  position: relative;
  padding-block: 4px;
  transition: color 0.25s var(--ease-out);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease-out);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* --- Hero: one orchestrated entrance on load ------------------------------ */
.hero__inner > [data-enter] {
  opacity: 1;
}

.hero__rule {
  display: block;
  width: 96px;
  height: 3px;
  margin-top: 28px;
  background: var(--green);
  transform-origin: left center;
}

.js-anim .hero__inner > [data-enter] {
  opacity: 0;
  transform: translateY(24px);
}

.js-anim .hero.is-entered > .hero__inner > [data-enter] {
  animation: hero-enter 0.9s var(--ease-out) forwards;
}

.js-anim .hero.is-entered > .hero__inner > [data-enter="1"] {
  animation-delay: 0.1s;
}

.js-anim .hero.is-entered > .hero__inner > [data-enter="2"] {
  animation-delay: 0.24s;
}

.js-anim .hero.is-entered > .hero__inner > [data-enter="3"] {
  animation: rule-draw 0.7s var(--ease-out) 0.6s forwards;
}

@keyframes hero-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rule-draw {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Continuous ken-burns on the photographic heroes. Alternating, so it
   never snaps back, and transform-only so the compositor handles it. */
.js-anim .hero--image .hero__media {
  animation: hero-drift 36s var(--ease-in-out) infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.09) translate3d(-1.2%, -1%, 0);
  }
}

/* A light pass crosses the photograph every 14 seconds */
.hero--image .hero__media::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.07) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

.js-anim .hero--image .hero__media::after {
  animation: light-pass 14s linear infinite;
}

@keyframes light-pass {
  0% {
    transform: translateX(0);
  }
  55%,
  100% {
    transform: translateX(420%);
  }
}

/* --- Scroll reveal -------------------------------------------------------- */
.js-anim [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

.js-anim [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

/* --- Buttons: fill sweep -------------------------------------------------- */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}

.btn--outline:hover::before,
.btn--outline:focus-visible::before {
  transform: scaleX(1);
}

.btn--solid::before {
  background: var(--green);
}

.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--navy);
  color: var(--navy);
}

.btn--solid:hover::before,
.btn--solid:focus-visible::before {
  transform: scaleX(1);
}

/* --- Company cards: lift + image zoom ------------------------------------- */
.company-card {
  transition: transform 0.45s var(--ease-out);
}

.company-card__media,
.media-tile {
  display: block;
  /* The inner box is positioned absolutely rather than laid out in the
     grid. `height: 100%` on a grid or flex item resolves against an
     indefinite block size and is silently ignored, so tall logos sized
     by width alone, overflowed the 4:3 tile and were clipped by the
     overflow rule — the portrait Sputnik logo rendered 218px tall in a
     167px box, cutting off its wordmark. `inset` gives a definite box,
     which is what object-fit: contain needs to letterbox correctly. */
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--white);
}

.company-card__media {
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.company-card__media picture,
.media-tile picture {
  position: absolute;
  inset: 9%;
  display: block;
}

.company-card__media > img,
.media-tile > img {
  position: absolute;
  inset: 9%;
}

.company-card__media img,
.media-tile img {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  object-fit: contain;
  box-shadow: none;
}

.company-card__media img {
  transition: transform 0.7s var(--ease-out);
}

.company-card:hover {
  transform: translateY(-6px);
}

.company-card:hover .company-card__media img {
  transform: scale(1.06);
}

.company-card__name {
  transition: color 0.3s var(--ease-out);
}

.company-card:hover .company-card__name {
  color: var(--navy-link);
}

/* --- Gallery + media panels ---------------------------------------------- */
.gallery-item {
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.gallery-item img {
  box-shadow: none;
  transition: transform 0.7s var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* --- Counters: rule grows as the number lands ---------------------------- */
.counter {
  position: relative;
}

.counter::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.2s var(--ease-out) 0.2s;
}

.counter.is-counted::after {
  transform: scaleX(1);
}

/* --- Accordion: measured height transition -------------------------------- */
.accordion__panel {
  overflow: hidden;
}

/* Collapsed only when scripting is confirmed. `visibility` keeps closed
   panels out of the accessibility tree, delayed so it waits for the
   height transition to finish. */
.js .accordion__panel {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  padding-bottom: 0;
  transition: max-height 0.45s var(--ease-in-out), opacity 0.35s linear,
    padding-bottom 0.45s var(--ease-in-out), visibility 0s linear 0.45s;
}

.js .accordion__panel.is-open {
  max-height: none;
  opacity: 1;
  visibility: visible;
  padding-bottom: 30px;
  transition-delay: 0s;
}

.accordion__trigger {
  transition: color 0.3s var(--ease-out);
}

.accordion__trigger:hover {
  color: var(--navy);
}

.accordion__icon {
  transition: transform 0.4s var(--ease-out), color 0.3s var(--ease-out);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
  color: var(--green);
}

/* --- Blurbs --------------------------------------------------------------- */
.blurb {
  transition: border-color 0.3s var(--ease-out);
}

.blurb__icon {
  transition: transform 0.4s var(--ease-out), color 0.3s var(--ease-out);
}

.blurb:hover {
  border-top-color: var(--navy);
}

.blurb:hover .blurb__icon {
  transform: translateY(-3px) scale(1.08);
  color: var(--green);
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
}

/* Brushed-steel light pass along the top edge of the footer */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    var(--green) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0.55;
}

.site-footer__sheen {
  will-change: transform;
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

.js-anim .site-footer__sheen {
  animation: sheen 14s linear infinite;
}

@keyframes sheen {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(350%);
  }
}

.site-footer__links a,
.site-footer p a {
  position: relative;
  display: inline-block;
  transition: transform 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.site-footer__links a::after,
.site-footer p a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease-out);
}

.site-footer a:hover {
  text-decoration: none;
  transform: translateX(4px);
}

.site-footer a:hover::after,
.site-footer a:focus-visible::after {
  transform: scaleX(1);
}

/* --- Back to top: reading-progress ring ---------------------------------- */
.to-top {
  border-radius: 50%;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s var(--ease-out),
    transform 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.to-top:hover {
  transform: translateY(-3px);
  background: var(--navy-link);
}

.to-top__ring {
  position: absolute;
  inset: 0;
  width: 44px;
  height: 44px;
  transform: rotate(-90deg);
  pointer-events: none;
}

.to-top__ring circle {
  fill: none;
  stroke-width: 2;
}

.to-top__track {
  stroke: rgba(255, 255, 255, 0.25);
}

.to-top__bar {
  stroke: var(--green);
  stroke-linecap: round;
  stroke-dasharray: 126;
  stroke-dashoffset: 126;
}

.to-top svg:not(.to-top__ring) {
  position: relative;
  z-index: 1;
}

/* --- Reduced motion: hold everything still ------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .js-anim [data-reveal],
  .js-anim .hero__inner > [data-enter] {
    opacity: 1;
    transform: none;
  }

  .js-anim .site-footer__sheen,
  .js-anim .site-footer__title::before,
  .js-anim .site-footer__mark,
  .js-anim .site-footer__glow,
  .js-anim .site-footer__weld::before,
  .js-anim .site-footer__title::before,
  .js-anim .hero--image .hero__media,
  .js-anim .hero--image .hero__media::after,
  .js-anim .band-texture::after,
  .js-anim .hero__rule,
  .js-anim .counter.is-counted::after,
  .js-anim .section-rule,
  .js-anim .scroll-cue::after,
  .js-anim .ticker__track,
  .js-anim .map-card__dot {
    animation: none;
  }

  /* The ticker cannot be read if it does not move, so show it static
     and wrapped rather than clipped to one line. */
  .ticker__viewport {
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .ticker__track {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .ticker__track[aria-hidden="true"] {
    display: none;
  }

  .hero__rule,
  .counter::after,
  .section-rule {
    background-image: none;
  }

  .scroll-cue {
    display: none;
  }

  /* ---- Cinematic layer: hold everything still ---- */

  /* No opening sequence at all — the page is simply there */
  .intro {
    display: none;
  }

  .is-intro,
  .is-intro body {
    overflow: visible;
  }

  .hero__rays,
  .hero__dust,
  .hero__light {
    display: none;
  }

  .js-anim .hero.is-entered > .hero__inner > [data-enter="2"],
  .js-anim .is-split.is-lit .word > span,
  .js-anim .is-split.is-lit,
  .js-anim [data-reveal].is-visible img,
  .js-anim [data-reveal].is-visible .company-card__media img {
    animation: none;
  }

  /* Text must not sit blurred and invisible if the reveal never runs */
  .js-anim .is-split .word > span {
    opacity: 1;
  }

  .js-anim .is-split,
  .js-anim .is-split.is-lit {
    filter: none;
    animation: none;
  }

  .js-anim [data-reveal] img,
  .js-anim .company-card__media img {
    clip-path: none;
  }

  [data-parallax] {
    transform: none !important;
    will-change: auto;
  }

  .js .accordion__panel {
    transition: none;
  }

  .counter::after,
  .main-nav a::after,
  .btn::before {
    transition: none;
  }
}

/* ==========================================================================
   19. Utilities & modifiers
   These replace what were inline styles, so the markup stays free of
   presentation and every value has one home.
   ========================================================================== */

/* --- Skip link ------------------------------------------------------------ */
.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -120%);
  padding: 12px 20px;
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  background: var(--navy);
  border-radius: 0 0 6px 6px;
  transition: transform 0.25s var(--ease-out);
}

.skip-link:focus {
  transform: translate(-50%, 0);
  text-decoration: none;
}

/* --- Section backgrounds -------------------------------------------------- */
.section--grey {
  background: var(--grey-200);
}

.section--light {
  background: var(--grey-100);
}

/* --- Heading modifiers ---------------------------------------------------- */
.h2--tight {
  margin-bottom: 12px;
}

.h3--semibold {
  font-weight: 600;
}

.accordion__heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

/* --- Prose / spacing ------------------------------------------------------ */
.prose--full {
  max-width: 100%;
}

.stack-sm {
  margin-top: 20px;
}

.stack-lg {
  margin-top: 60px;
}

@media (max-width: 600px) {
  .stack-lg {
    margin-top: 36px;
  }
}

/* --- Flat hero rule sits tighter in the narrow band ---------------------- */
.hero--flat .hero__rule {
  margin-top: 18px;
}

/* ==========================================================================
   20. Print
   ========================================================================== */
@media print {
  .site-header,
  .scroll-progress,
  .to-top,
  .nav-toggle,
  .site-footer__sheen,
  .hero__media {
    display: none !important;
  }

  body {
    padding-top: 0;
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  .hero {
    padding: 0 0 18pt;
    color: #000;
  }

  .on-dark,
  .on-dark h1,
  .on-dark h2,
  .on-dark .eyebrow,
  .site-footer,
  .site-footer a,
  .site-footer__title {
    color: #000 !important;
    background: transparent !important;
  }

  .section,
  .stats {
    padding: 18pt 0;
    background: #fff !important;
  }

  .accordion__panel {
    max-height: none !important;
    opacity: 1 !important;
    display: block !important;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
  }
}

/* ==========================================================================
   21. Ambient loops
   Continuous, low-amplitude motion that gives the page a sense of life.
   Every loop is suppressed under prefers-reduced-motion (section 23).
   ========================================================================== */

/* --- Brushed-metal texture that drifts across the navy bands ------------- */
.band-texture {
  position: relative;
  overflow: hidden;
}

.band-texture > * {
  position: relative;
  z-index: 1;
}

.band-texture::after {
  content: "";
  position: absolute;
  inset: -60%;
  will-change: transform;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.045) 0 1px,
    rgba(255, 255, 255, 0) 1px 16px
  );
}

.js-anim .band-texture::after {
  animation: texture-drift 28s linear infinite;
}

@keyframes texture-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(16px, -34px, 0);
  }
}

/* --- Accent rules carry a travelling highlight -------------------------- */
.hero__rule,
.counter::after,
.section-rule {
  background-image: linear-gradient(
    90deg,
    var(--green) 0%,
    var(--green) 35%,
    rgba(255, 255, 255, 0.85) 50%,
    var(--green) 65%,
    var(--green) 100%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
}

.js-anim .hero__rule,
.js-anim .counter.is-counted::after,
.js-anim .section-rule {
  animation: rule-shimmer 7s ease-in-out infinite;
}

@keyframes rule-shimmer {
  0%,
  70%,
  100% {
    background-position: 100% 0;
  }
  35% {
    background-position: 0 0;
  }
}

/* --- Scroll cue on the tall hero ---------------------------------------- */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 1px;
  height: 54px;
  margin-left: -0.5px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.scroll-cue::after {
  content: "";
  position: absolute;
  left: -1.5px;
  top: 0;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--green);
}

.js-anim .scroll-cue::after {
  animation: cue-travel 2.4s var(--ease-in-out) infinite;
}

@keyframes cue-travel {
  0% {
    transform: translateY(-18px);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: translateY(56px);
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .scroll-cue {
    display: none;
  }
}

/* --- Industries ticker --------------------------------------------------- */
.ticker {
  background: var(--navy);
  color: var(--white);
  padding: 20px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.12);
}

.ticker__viewport {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.ticker__track {
  display: flex;
  flex: none;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.js-anim .ticker__track {
  animation: ticker 46s linear infinite;
}

/* Long enough to read; pauses so a name can be caught mid-scroll */
.ticker__viewport:hover .ticker__track,
.ticker__viewport:focus-within .ticker__track {
  animation-play-state: paused;
}

.ticker__track li {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__track li::after {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  transform: rotate(45deg);
  background: var(--green);
}

@keyframes ticker {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-100%, 0, 0);
  }
}

/* ==========================================================================
   22. Page components added in the enhancement pass
   ========================================================================== */

/* --- Breadcrumbs -------------------------------------------------------- */
.breadcrumbs {
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  padding: 14px 0;
  list-style: none;
  font-size: 13px;
  color: var(--ink-soft);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.breadcrumbs li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: var(--hairline);
}

.breadcrumbs a {
  color: var(--navy);
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink-soft);
}

/* --- Section heading with a rule --------------------------------------- */
.section-head {
  margin-bottom: 36px;
}

.section-rule {
  display: block;
  width: 72px;
  height: 3px;
  margin: 14px 0 26px;
  background-color: var(--green);
}

.section-head .section-rule {
  margin-bottom: 0;
}

.prose .section-rule {
  margin-top: 0;
}

/* --- Fact chips (est. year, capability) -------------------------------- */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 7px 16px;
  border: 1px solid var(--hairline);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--white);
}

.facts--on-dark li {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

/* --- Group cross-links -------------------------------------------------- */
.group-links {
  background: var(--white);
}

.group-links .grid {
  gap: 32px;
}

/* --- Contact actions ---------------------------------------------------- */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ==========================================================================
   23. Cinematic layer
   A dark opening sequence, atmospheric hero, layered parallax and
   line-by-line typography. Everything here is transform/opacity/filter
   only, gated behind `.js-anim`, and fully suppressed under
   prefers-reduced-motion (section 24).
   ========================================================================== */

/* --- Opening sequence ---------------------------------------------------- */
/* The opening stage is light because the logo is navy artwork on an
   opaque white background. On a dark stage it would either show as a
   white block, or — if the background were stripped — sit at almost no
   contrast against the navy. A light stage shows the real logo in its
   own colours, and lifting it to reveal the dark hero underneath is a
   stronger transition than dark-to-dark was.

   The centre is pure white, so the logo's own white background is
   invisible against it. The beam and vignette sit *above* the logo, so
   they tint artwork and stage by the same amount and never reveal its
   edges. */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(125% 100% at 50% 44%,
      #ffffff 0%, #ffffff 46%, #eef1f5 72%, #d8dfe6 100%);
  overflow: hidden;
}

/* Steel vignette, over the top of the stage content */
.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(105% 85% at 50% 45%,
    rgba(0, 43, 76, 0) 55%, rgba(0, 43, 76, 0.16) 100%);
}

/* Without scripting there is no sequence to play, so there is no curtain */
html:not(.js) .intro {
  display: none;
}

.is-intro,
.is-intro body {
  overflow: hidden;
}

.intro__stage {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 0 24px;
  text-align: center;
}

/* The real wordmark, pre-rendered as a white silhouette
   (assets/images/logo-light.png) because the source PNG has an opaque
   white background — inverting it with a filter would show a white
   block. The silhouette is generated from the logo, so it stays on
   brand while reading cleanly on the dark stage. */
.intro__logo {
  width: auto;
  height: auto;
  /* Stacked lockup: constrained by height rather than width, so the
     wordmark stays legible on the opening stage. */
  max-width: min(280px, 66vw);
  max-height: 170px;
  opacity: 0;
}

.js-anim .intro__logo {
  animation: intro-logo 1700ms var(--ease-out) 200ms both;
}

@keyframes intro-logo {
  0% {
    opacity: 0;
    transform: scale(1.09) translate3d(0, 12px, 0);
    filter: blur(18px);
  }
  58% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

.intro__rule {
  display: block;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.js-anim .intro__rule {
  animation: intro-rule 1100ms var(--ease-out) 900ms both;
}

@keyframes intro-rule {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: min(260px, 52vw);
    opacity: 1;
  }
}

.intro__word {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #56616c;
  opacity: 0;
}

.js-anim .intro__word {
  animation: intro-word 1200ms var(--ease-out) 1150ms both;
}

@keyframes intro-word {
  from {
    opacity: 0;
    letter-spacing: 0.62em;
    filter: blur(6px);
  }
  to {
    opacity: 1;
    letter-spacing: 0.42em;
    filter: blur(0);
  }
}

/* Light sweeping across the stage */
.intro__beam {
  position: absolute;
  inset: -40% -20%;
  z-index: 3;
  pointer-events: none;
  background: conic-gradient(
    from 210deg at 42% 0%,
    rgba(0, 43, 76, 0.10) 0deg,
    rgba(0, 43, 76, 0) 16deg,
    rgba(0, 43, 76, 0) 44deg,
    rgba(21, 197, 134, 0.10) 54deg,
    rgba(0, 43, 76, 0) 74deg
  );
  filter: blur(30px);
  opacity: 0;
  mix-blend-mode: multiply;
}

.js-anim .intro__beam {
  animation: intro-beam 2600ms var(--ease-in-out) both;
}

@keyframes intro-beam {
  0% {
    opacity: 0;
    transform: rotate(-6deg) scale(1.15);
  }
  40% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.35;
    transform: rotate(5deg) scale(1.02);
  }
}

.intro__skip {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 4;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 43, 76, 0.28);
  border-radius: 100px;
  cursor: pointer;
  opacity: 0;
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.js-anim .intro__skip {
  animation: fade-in 600ms var(--ease-out) 700ms both;
}

.intro__skip:hover,
.intro__skip:focus-visible {
  color: var(--navy-link);
  background: var(--white);
  border-color: var(--green);
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

/* The curtain lifts: scale up and dissolve, so the hero appears to be
   revealed behind it rather than the overlay simply fading. */
.intro.is-leaving {
  animation: intro-leave 1100ms var(--ease-in-out) both;
  pointer-events: none;
}

@keyframes intro-leave {
  from {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: scale(1.12);
    filter: blur(12px);
  }
}

/* --- Hero atmosphere ----------------------------------------------------- */
.hero__rays,
.hero__dust,
.hero__light {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__rays {
  inset: -35% -15%;
  /* The blur is expensive to compute. Promoting the layer means it is
     rasterised once and only the transform is animated after that,
     rather than re-blurring a viewport-sized surface every frame. */
  will-change: transform;
  background: conic-gradient(
    from 205deg at 34% 0%,
    rgba(255, 255, 255, 0.11) 0deg,
    rgba(255, 255, 255, 0) 15deg,
    rgba(255, 255, 255, 0) 38deg,
    rgba(255, 255, 255, 0.06) 48deg,
    rgba(255, 255, 255, 0) 66deg
  );
  filter: blur(22px);
  opacity: 0.75;
}

.js-anim .hero__rays {
  animation: rays-drift 34s var(--ease-in-out) infinite alternate;
}

@keyframes rays-drift {
  from {
    transform: rotate(-2.5deg) scale(1.02);
    opacity: 0.55;
  }
  to {
    transform: rotate(3deg) scale(1.09);
    opacity: 0.85;
  }
}

/* Vignette: pulls the eye to the centre, the way a lens would */
.hero--image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    115% 95% at 50% 45%,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

/* Drifting dust motes */
.hero__dust span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
}

.js-anim .hero__dust span {
  animation-name: dust;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes dust {
  0% {
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(0.6);
  }
  15% {
    opacity: 0.7;
  }
  85% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translate3d(26px, -190px, 0) scale(1.1);
  }
}

/* Soft light that follows the pointer across the hero */
.hero__light {
  opacity: 0;
  background: radial-gradient(
    460px circle at var(--px, 50%) var(--py, 40%),
    rgba(21, 197, 134, 0.13),
    rgba(21, 197, 134, 0) 62%
  );
  transition: opacity 0.7s var(--ease-out);
}

.hero__light.is-active {
  opacity: 1;
}

.hero .row,
.hero__inner {
  position: relative;
  z-index: 1;
}

/* --- Cinematic hero entrance -------------------------------------------- */
.js-anim .hero.is-entered > .hero__inner > [data-enter="2"] {
  animation: display-enter 1500ms var(--ease-out) 0.24s forwards;
}

/* No letter-spacing here. Tracking is a layout property: animating it on
   a heading that sits near a wrap boundary pushes it onto a second line
   for the length of the animation and back again — 0.38 CLS on the Sheet
   Metal Fabrication page. The letter-spacing reveal is kept for the intro
   wordmark, which is fixed-position and centred, so it cannot move page
   content, and for the small uppercase eyebrow, which has room to spare. */
@keyframes display-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0) scale(1.02);
    filter: blur(14px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

/* --- Word-by-word typography -------------------------------------------- */
/* Word reveal, built to be layout-neutral.

   Two earlier attempts reflowed the heading after first paint:
   `display: inline-block` words change line-box metrics, and a `filter`
   on an inline span makes Chrome treat it as an atomic inline, which
   re-breaks the line. Both measured ~0.38 CLS on a heading sitting near
   a wrap boundary.

   So the words stagger on opacity only, and the blur-to-focus runs on
   the heading block, where a filter cannot affect line breaking. */
.is-split .word,
.is-split .word > span {
  display: inline;
}

.js-anim .is-split .word > span {
  opacity: 0;
}

.js-anim .is-split.is-lit .word > span {
  animation: word-in 800ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}

@keyframes word-in {
  to {
    opacity: 1;
  }
}

.js-anim .is-split {
  filter: blur(10px);
}

.js-anim .is-split.is-lit {
  animation: focus-in 1000ms var(--ease-out) both;
}

@keyframes focus-in {
  from {
    filter: blur(10px);
  }
  to {
    filter: blur(0);
  }
}

/* --- Media reveal: a wipe with a slow settle ---------------------------- */
.js-anim [data-reveal] img,
.js-anim .company-card__media img {
  clip-path: inset(0 0 100% 0);
}

.js-anim [data-reveal].is-visible img,
.js-anim [data-reveal].is-visible .company-card__media img {
  animation: media-wipe 1400ms var(--ease-out) both;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes media-wipe {
  from {
    clip-path: inset(0 0 100% 0);
    transform: scale(1.08);
  }
  to {
    clip-path: inset(0 0 0 0);
    transform: scale(1);
  }
}

/* Hover zoom must not fight the reveal, so it waits for it to finish */
.js-anim .company-card:hover .company-card__media img {
  animation: none;
  clip-path: inset(0 0 0 0);
}

/* --- Scene seams: navy and light sections bleed into each other --------- */
.section--grey,
.section--light,
.group-links {
  position: relative;
}

.stats::before,
.ticker::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 90px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* --- Parallax hooks ------------------------------------------------------ */
[data-parallax] {
  will-change: transform;
}

@media (max-width: 980px) {
  /* Mobile keeps the atmosphere but drops the heavier layers */
  .hero__rays {
    filter: blur(30px);
    opacity: 0.5;
  }

  .hero__dust,
  .hero__light {
    display: none;
  }

  .intro__logo {
    max-height: 120px;
    max-width: min(200px, 60vw);
  }
}


/* Dust motes: individual paths so the drift never looks mechanical */

.hero__dust span:nth-child(1) {
  left: 45%;
  bottom: 3%;
  width: 2.7px;
  height: 2.7px;
}

.js-anim .hero__dust span:nth-child(1) {
  animation-duration: 23.1s;
  animation-delay: 0.7s;
}

.hero__dust span:nth-child(2) {
  left: 16%;
  bottom: 17%;
  width: 1.6px;
  height: 1.6px;
}

.js-anim .hero__dust span:nth-child(2) {
  animation-duration: 26.5s;
  animation-delay: 12.7s;
}

.hero__dust span:nth-child(3) {
  left: 15%;
  bottom: 21%;
  width: 2.2px;
  height: 2.2px;
}

.js-anim .hero__dust span:nth-child(3) {
  animation-duration: 23.5s;
  animation-delay: 3.4s;
}

.hero__dust span:nth-child(4) {
  left: 11%;
  bottom: 30%;
  width: 2.3px;
  height: 2.3px;
}

.js-anim .hero__dust span:nth-child(4) {
  animation-duration: 18.2s;
  animation-delay: 3.1s;
}

.hero__dust span:nth-child(5) {
  left: 11%;
  bottom: 30%;
  width: 1.6px;
  height: 1.6px;
}

.js-anim .hero__dust span:nth-child(5) {
  animation-duration: 26.5s;
  animation-delay: 0.7s;
}

.hero__dust span:nth-child(6) {
  left: 75%;
  bottom: 2%;
  width: 1.4px;
  height: 1.4px;
}

.js-anim .hero__dust span:nth-child(6) {
  animation-duration: 21.2s;
  animation-delay: 2.0s;
}

.hero__dust span:nth-child(7) {
  left: 43%;
  bottom: 29%;
  width: 2.2px;
  height: 2.2px;
}

.js-anim .hero__dust span:nth-child(7) {
  animation-duration: 30.7s;
  animation-delay: 2.5s;
}

.hero__dust span:nth-child(8) {
  left: 85%;
  bottom: 6%;
  width: 1.3px;
  height: 1.3px;
}

.js-anim .hero__dust span:nth-child(8) {
  animation-duration: 22.7s;
  animation-delay: 7.7s;
}

.hero__dust span:nth-child(9) {
  left: 11%;
  bottom: 33%;
  width: 2.0px;
  height: 2.0px;
}

.js-anim .hero__dust span:nth-child(9) {
  animation-duration: 19.7s;
  animation-delay: 9.5s;
}

.hero__dust span:nth-child(10) {
  left: 44%;
  bottom: 23%;
  width: 1.7px;
  height: 1.7px;
}

.js-anim .hero__dust span:nth-child(10) {
  animation-duration: 26.5s;
  animation-delay: 6.3s;
}

.hero__dust span:nth-child(11) {
  left: 27%;
  bottom: 9%;
  width: 2.1px;
  height: 2.1px;
}

.js-anim .hero__dust span:nth-child(11) {
  animation-duration: 17.5s;
  animation-delay: 4.2s;
}

.hero__dust span:nth-child(12) {
  left: 47%;
  bottom: 22%;
  width: 1.4px;
  height: 1.4px;
}

.js-anim .hero__dust span:nth-child(12) {
  animation-duration: 21.2s;
  animation-delay: 13.7s;
}

.hero__dust span:nth-child(13) {
  left: 57%;
  bottom: 4%;
  width: 2.1px;
  height: 2.1px;
}

.js-anim .hero__dust span:nth-child(13) {
  animation-duration: 29.6s;
  animation-delay: 2.1s;
}

.hero__dust span:nth-child(14) {
  left: 9%;
  bottom: -2%;
  width: 2.8px;
  height: 2.8px;
}

.js-anim .hero__dust span:nth-child(14) {
  animation-duration: 29.8s;
  animation-delay: 8.0s;
}

/* ==========================================================================
   25. Footer ambience
   Four loops layered at low amplitude: a drifting brushed-metal hatch
   (the shared .band-texture), a slow glow that wanders behind the
   columns, the existing light sheen, and a travelling spark along the
   top edge. All transform or background-position only.
   ========================================================================== */

/* --- Wandering glow ------------------------------------------------------ */
.site-footer__glow {
  position: absolute;
  top: -30%;
  left: -10%;
  width: 70%;
  height: 160%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(21, 197, 134, 0.055) 0%,
    rgba(21, 197, 134, 0) 70%
  );
  will-change: transform;
}

.js-anim .site-footer__glow {
  animation: footer-glow 26s var(--ease-in-out) infinite alternate;
}

@keyframes footer-glow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(58%, 6%, 0) scale(1.25);
  }
}

/* --- Spark travelling along the top edge -------------------------------- */
.site-footer__weld {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.site-footer__weld::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 120px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgba(21, 197, 134, 0) 0%,
    rgba(255, 255, 255, 0.95) 45%,
    rgba(21, 197, 134, 0.9) 60%,
    rgba(21, 197, 134, 0) 100%
  );
  opacity: 0;
  will-change: transform;
}

.js-anim .site-footer__weld::before {
  animation: weld-run 9s linear infinite;
}

@keyframes weld-run {
  0% {
    transform: translate3d(-140px, 0, 0);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  55% {
    opacity: 1;
  }
  70%,
  100% {
    transform: translate3d(100vw, 0, 0);
    opacity: 0;
  }
}


/* --- Column headings: accent tick that pulses --------------------------- */
.site-footer__title {
  position: relative;
  padding-left: 14px;
}

.site-footer__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: var(--green);
}

.js-anim .site-footer__title::before {
  animation: tick-pulse 6s var(--ease-in-out) infinite;
}

@keyframes tick-pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Footer contents sit above every ambient layer */
.site-footer > .row {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   25. Footer detail
   Structure, brand-coloured accents, and two further loops. Palette is
   unchanged throughout: navy, white and the green accent.
   ========================================================================== */

/* --- Column rhythm ------------------------------------------------------- */
.site-footer__grid {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(36px, 4vw, 52px);
}

@media (min-width: 981px) {
  /* Hairlines between columns rather than around them */
  .site-footer__grid > * + * {
    padding-left: 44px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }
}

/* --- Brand block --------------------------------------------------------- */
/* --- Oversized mark, turning slowly in the corner ------------------------ */
.site-footer__mark {
  position: absolute;
  right: -6%;
  bottom: -32%;
  z-index: 0;
  width: min(420px, 46vw);
  aspect-ratio: 1;
  pointer-events: none;
  background: url("../images/mark-light.png?v=5804e88c52") center / contain no-repeat;
  opacity: 0.05;
  will-change: transform;
}

.js-anim .site-footer__mark {
  animation: mark-turn 90s linear infinite;
}

@keyframes mark-turn {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 600px) {
  .site-footer__mark {
    width: 60vw;
    bottom: -18%;
    opacity: 0.04;
  }
}

/* --- Company links: a green marker slides in ---------------------------- */
.site-footer__links li {
  position: relative;
}

.site-footer__links a {
  padding-left: 0;
  transition: transform 0.3s var(--ease-out), padding-left 0.3s var(--ease-out);
}

.site-footer__links a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 2px;
  margin-top: -1px;
  background: var(--green);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  transform: none;
  padding-left: 20px;
}

.site-footer__links a:hover::before,
.site-footer__links a:focus-visible::before {
  opacity: 1;
  transform: translateX(0);
}

/* --- Contact list -------------------------------------------------------- */
.site-footer__contact {
  display: grid;
  gap: 16px;
}

.site-footer__contact li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.site-footer__contact strong {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.site-footer__icon {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.site-footer__icon svg {
  width: 15px;
  height: 15px;
  fill: var(--green);
}

.site-footer__contact li:hover .site-footer__icon {
  border-color: var(--green);
  background: rgba(21, 197, 134, 0.14);
}

/* --- Bottom bar ---------------------------------------------------------- */
.site-footer__bar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__bar p {
  margin: 0;
  font-size: 13px;
}

.site-footer__place {
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}

.site-footer__place span {
  color: var(--green);
  padding: 0 4px;
}

@media (max-width: 600px) {
  .site-footer__bar {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   26. Home page blocks
   ========================================================================== */

/* --- Anchor targets clear the fixed header ------------------------------- */
[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* --- Hero actions -------------------------------------------------------- */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.js-anim .hero.is-entered > .hero__inner > [data-enter="4"] {
  animation: hero-enter 0.9s var(--ease-out) 0.78s forwards;
}

/* On a photograph, a filled white button reads more clearly than an
   outline; the secondary stays as a white outline beside it. */
/* `.on-dark a` sets white text at higher specificity than a single class,
   which made the filled white button render as a blank pill inside the
   navy call-out panel. These selectors win it back. */
.btn--light,
.on-dark .btn--light,
.on-dark .btn--light:hover,
.on-dark .btn--light:focus-visible {
  font-size: 14px;
  padding: 16px 34px;
  color: var(--navy);
  background: var(--white);
}

.btn--light::before {
  background: var(--green);
}

.btn--light:hover,
.btn--light:focus-visible {
  color: var(--navy);
}

.btn--light:hover::before,
.btn--light:focus-visible::before {
  transform: scaleX(1);
}

.btn--ghost {
  font-size: 14px;
  padding: 16px 34px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
}

.btn--ghost::before {
  background: var(--white);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--navy);
  border-color: var(--white);
}

.btn--ghost:hover::before,
.btn--ghost:focus-visible::before {
  transform: scaleX(1);
}

/* --- Centred section head ------------------------------------------------ */
.section-head--centred {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}

.section-head--centred .section-rule {
  margin-inline: auto;
}

/* --- Capability strip ---------------------------------------------------- */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--hairline);
}

.capability {
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 34px 16px;
  text-align: center;
  transition: background-color 0.35s var(--ease-out);
}

/* Hairlines between cells rather than a border on each one, so the
   strip reads as a single engineered panel. */
.capability + .capability {
  border-left: 1px solid var(--hairline);
}

.capability__icon {
  width: 34px;
  height: 34px;
  color: var(--navy);
  transition: transform 0.4s var(--ease-out), color 0.35s var(--ease-out);
}

.capability__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.capability__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

@media (hover: hover) {
  .capability:hover {
    background: var(--grey-200);
  }

  .capability:hover .capability__icon {
    transform: translateY(-4px);
    color: var(--green);
  }
}

@media (max-width: 980px) {
  .capability-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .capability:nth-child(3n + 1) {
    border-left: 0;
  }

  .capability:nth-child(n + 4) {
    border-top: 1px solid var(--hairline);
  }
}

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

  .capability {
    padding: 26px 12px;
  }

  .capability:nth-child(n) {
    border-left: 0;
    border-top: 0;
  }

  .capability:nth-child(even) {
    border-left: 1px solid var(--hairline);
  }

  .capability:nth-child(n + 3) {
    border-top: 1px solid var(--hairline);
  }
}

/* --- Editorial intro split ----------------------------------------------- */
.intro-split {
  align-items: start;
}

.intro-split .prose p {
  max-width: none;
}

@media (min-width: 981px) {
  .intro-split {
    grid-template-columns: 1fr 1.25fr;
  }
}

/* --- Company cards as panels --------------------------------------------- */
.company-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(0, 43, 76, 0.1);
  box-shadow: 0 1px 2px rgba(0, 43, 76, 0.04);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out);
}

.company-card .company-card__media {
  margin-bottom: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--hairline);
}

.company-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 24px 24px 26px;
}

.company-card__est {
  margin: 0 0 18px;
  padding: 5px 12px;
  border: 1px solid var(--hairline);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

/* Pushes every card's link to the same baseline, whatever the name wraps to */
.company-card__cta {
  margin-top: auto;
}

@media (hover: hover) {
  .company-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 43, 76, 0.2);
    box-shadow: 0 18px 40px -18px rgba(0, 43, 76, 0.35);
  }
}

/* --- Closing call to action ---------------------------------------------- */
/* A contained navy panel rather than a full-width band: the grey group
   section above is #f4f4f4 and a #f7f7f7 band below it had an invisible
   boundary. This also avoids a third full-width navy band stacking up
   against the ticker and footer. */
.call-out__panel {
  padding: clamp(32px, 4vw, 56px);
  background: var(--navy);
  color: var(--white);
}

.call-out__panel .prose p {
  color: rgba(255, 255, 255, 0.86);
}

.call-out__panel .section-rule {
  margin-bottom: 22px;
}

.call-out__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  align-items: center;
  justify-content: space-between;
}

.call-out__inner > div:first-child {
  max-width: 560px;
}

.call-out__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 600px) {
  .hero__actions .btn,
  .call-out__actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* --- Footer: brand column ------------------------------------------------ */
/* Removing the footer logo left this column as two lines of text against a
   lot of empty navy, while the two beside it ran far taller. These are the
   same three figures the homepage counters use, shown statically. */
.site-footer__stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 24px;
  margin: 26px 0 28px;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__stats li {
  display: grid;
  gap: 2px;
}

.site-footer__stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  color: var(--white);
}

.site-footer__stat-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* A quieter ghost button: the footer is a closing note, not a second CTA
   band, so it should not shout as loudly as the call-out panel's. */
.btn--ghost-sm {
  padding: 11px 24px;
  font-size: 12px;
}

@media (max-width: 600px) {
  .site-footer__stats {
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
  }
}

/* ==========================================================================
   27. Mobile nav link sizing
   Declared last on purpose. The desktop `.main-nav a` rule that sets
   `padding-block: 4px` for the underline wipe appears later in this file
   than the mobile breakpoint, and media queries carry no extra
   specificity — so it overrode the mobile padding and collapsed the tap
   targets to 38px, under the 44px minimum.
   ========================================================================== */
@media (max-width: 1279px) {
  .main-nav a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 18px 0 18px 18px;
    font-family: var(--font-display);
    font-size: 17px;
    letter-spacing: 0.01em;
  }

  /* Green marker on the current page, and on press */
  .main-nav a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    background: var(--green);
    transform: translateY(-50%);
    transition: height 0.3s var(--ease-out);
  }

  .main-nav a[aria-current="page"] {
    color: var(--navy);
  }

  .main-nav a[aria-current="page"]::before,
  .main-nav a:active::before {
    height: 22px;
  }

  .main-nav__contact {
    min-height: 44px;
  }
}


/* ==========================================================================
   28. Alignment system
   One pass that makes every component share the same edges and baselines.
   Declared last so it wins ties with the layered rules above; where a rule
   above carries more specificity, the selector here matches it on purpose
   (noted inline). Each fix was measured in a browser, not judged by eye.
   ========================================================================== */
:root {
  /* One gutter for every two-column layout, so text/media pairs on
     different pages line up with each other at the same widths. */
  /* Matches the base `.grid` gap, so halves, quarters, the products
     intro columns and the text/media splits all break on the same
     vertical lines: a half-width column starts exactly where the third
     of four gallery tiles does. */
  --gutter: clamp(24px, 2.8vw, 40px);
  --measure: 66ch;
  --btn-h: 50px;
  --btn-h-sm: 40px;
}

/* --- Buttons: one height per size, text optically centred -------------- */
/* Previously five presets with padding-driven heights: an outline-lg next
   to a solid button measured 155x61 vs 203x61 with different type sizes,
   and card links were 31px tall. Height is now a token and padding is
   horizontal only, so any two buttons placed side by side line up. */
.btn,
.btn--solid,
.btn--outline-lg,
.btn--light,
.btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--btn-h);
  padding: 0 30px;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-align: center;
  white-space: nowrap;
}

.btn--outline,
.company-card__cta,
.btn--ghost-sm {
  min-height: var(--btn-h-sm);
  padding: 0 20px;
  font-size: 12px;
}

.btn--outline.btn--outline-lg {
  min-height: var(--btn-h);
  padding: 0 30px;
  font-size: 13px;
}

@media (hover: none), (max-width: 980px) {
  .btn--outline,
  .company-card__cta,
  .btn--ghost-sm {
    min-height: 44px;
    padding: 0 22px;
  }

  .btn,
  .btn--solid,
  .btn--outline.btn--outline-lg {
    padding-block: 0;
  }
}

/* --- Stats band: counters share the intro paragraph's left edge -------- */
/* The counters were inset 20px by their hover padding, so "30" started
   20px right of the paragraph above it. The hover panel went with it. */
.stats__intro {
  max-width: none;
}

.stats__intro p {
  max-width: var(--measure);
}

.stats__grid {
  gap: 0 var(--gutter);
}

.counter,
.counter:hover {
  padding: 0 0 14px;
  background: transparent;
  box-shadow: none;
}

.counter::after {
  left: 0;
  right: 0;
}

.stats .grid--1-2 {
  align-items: start;
}

@media (max-width: 600px) {
  .counter {
    display: grid;
    /* Sized for "1000+" at the phone value size, so all three labels
       start on one line and the widest number still clears its label.
       (A `ch` width here resolved against the counter's 16px body size,
       not the 34px numerals.) */
    grid-template-columns: 6.9rem 1fr;
    align-items: baseline;
    gap: 16px;
    padding: 12px 0;
  }

  .counter__value {
    min-width: 0;
    white-space: nowrap;
  }
}

/* --- Capability strip: icons on one line whatever the label wraps to --- */
/* "Technology Solutions" wraps to two lines, and the centred cell pulled
   its icon 6px higher than the other five. Labels now reserve two lines
   and centre within them, so all six icons share a top edge. */
.capability {
  grid-template-rows: 34px calc(2 * 1.4em);
  align-content: start;
  place-items: start center;
}

.capability__label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  line-height: 1.4;
}

/* --- Company cards: name, year and link on shared baselines ----------- */
/* Card names wrap to one or two lines, which left the est. chip at two
   different heights across a row (1997px vs 2028px). A subgrid makes each
   card's four parts sit on rows shared by the whole grid. Browsers
   without subgrid keep the previous flex layout. */
@supports (grid-template-rows: subgrid) {
  .grid > .company-card {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0;
  }

  .company-card .company-card__body {
    display: contents;
  }

  .company-card .company-card__name {
    align-self: start;
    padding: 22px 24px 10px;
  }

  .company-card .company-card__est {
    justify-self: start;
    align-self: start;
    margin: 0 24px 20px;
  }

  .company-card .company-card__cta {
    justify-self: start;
    align-self: end;
    margin: 0 24px 24px;
  }
}

/* --- Text + media split (company pages, product panels) --------------- */
/* Company pages used a 3:1 grid whose text column was 942px wide but whose
   paragraphs stopped at 641px, leaving a 300px hole before a 314px logo.
   Product panels had the same gap. One split now serves both: the text
   fills its column up to a readable measure and the media fills the rest,
   top edges shared. */
.split-media {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gutter);
  align-items: start;
}

.split-media .prose p {
  max-width: var(--measure);
}

/* Only the media element's own wrapper is stretched. `picture` and `img`
   inside a logo tile are absolutely positioned at `inset: 9%`; giving
   them width: 100% resolved against the tile's full width instead, which
   overrode the right inset and pushed a wide logo out past the tile's
   overflow — the Precision Engineering wordmark lost its last letters. */
.split-media .media-tile,
.split-media > div > picture,
.split-media > div > img {
  width: 100%;
}

.split-media img {
  max-width: 100%;
}

/* A 4:3 logo tile at half width would run far taller than the text
   beside it; 3:2 keeps the pair close in height. */
.split-media .media-tile {
  aspect-ratio: 3 / 2;
}

/* Logo tile on company pages: framed like the card tiles instead of
   floating on a drop shadow, so it reads as the same object. */
.media-tile--framed {
  border: 1px solid rgba(0, 43, 76, 0.1);
  box-shadow: 0 1px 2px rgba(0, 43, 76, 0.04);
}

/* Product panels: image top-aligned with its heading rather than
   floating mid-way down a long column of text. */
.media-panel.split-media {
  align-items: start;
}

.media-panel .prose h2 {
  margin-top: 0;
  line-height: 1.2;
}

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

  /* Full row width, so the tile shares both edges with the text above */
  .split-media .media-tile {
    max-width: none;
  }

  .media-panel.split-media img {
    margin-inline: 0;
  }
}

/* Products intro: two text columns across the row, not one half-width
   column beside empty space. Paragraphs stay whole across the break. */
@media (min-width: 981px) {
  .prose--columns {
    columns: 2;
    column-gap: var(--gutter);
  }

  .prose--columns p {
    max-width: none;
    break-inside: avoid;
  }

  .prose--columns p:first-child {
    margin-top: 0;
  }
}

/* --- Every grid shares the same gutter ------------------------------- */
.grid,
.grid--wide-gutter,
.group-links .grid {
  gap: var(--gutter);
}

@media (min-width: 981px) {
  .intro-split {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Fact chips: one size, one rhythm --------------------------------- */
.facts {
  gap: 8px;
}

.facts li {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  font-size: 12px;
  line-height: 1;
}

/* --- Contact details: body text under the title, not under the icon --- */
.blurb {
  align-items: flex-start;
}

.blurb__icon {
  margin-top: 2px;
}

.contact-actions {
  align-items: center;
}

/* --- Footer ------------------------------------------------------------ */
/* Column headings were indented 14px to make room for a diamond tick, so
   every heading started to the right of the text beneath it. The accent
   is now a short rule under the heading — the same device used under
   every section heading on the site — and heading and text share an edge. */
.site-footer .site-footer__title {
  padding-left: 0;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.site-footer .site-footer__title::before {
  top: auto;
  bottom: 0;
  left: 0;
  width: 22px;
  height: 2px;
  transform: none;
}

/* `.site-footer ul { padding: 0 }` (0,1,1) was beating the stats list's
   own padding (0,1,0), so the hairline sat directly on top of the
   numbers. Matched specificity restores the gap. */
.site-footer .site-footer__stats {
  padding-top: 20px;
  gap: 12px 28px;
}

.site-footer__stats li {
  align-content: start;
}

/* Three equal content widths. Each divider has 44px of air on both sides,
   so the middle column carries twice the padding of the outer two; the
   tracks are sized to absorb that, rather than letting 1fr columns give
   the middle column 45px less room for its text. */
@media (min-width: 981px) {
  .site-footer .site-footer__grid {
    column-gap: 0;
    grid-template-columns:
      calc((100% - 176px) / 3 + 44px)
      calc((100% - 176px) / 3 + 88px)
      calc((100% - 176px) / 3 + 44px);
  }

  .site-footer__grid > * {
    padding-right: 44px;
  }

  .site-footer__grid > *:last-child {
    padding-right: 0;
  }
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
}

.site-footer__bar p {
  margin: 0;
}

.site-footer__copyright {
  margin-top: 0;
}

/* "Also in the group": three sibling cards stayed one per row down to
   980px, stacking 400px logo tiles on tablets. They hold three columns
   to 700px; the subgrid keeps their parts on shared lines as names wrap. */
@media (min-width: 700px) and (max-width: 980px) {
  .group-links .grid--thirds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .group-links .company-card .company-card__name {
    padding-inline: 16px;
    font-size: 16px;
  }

  .group-links .company-card .company-card__est,
  .group-links .company-card .company-card__cta {
    margin-inline: 16px;
  }
}


/* ==========================================================================
   29. Navigation at twelve items
   The menu carries eleven links plus a Request a Quote button. Measured,
   the inline bar needs about 1,090px beside the logo, which a 1440px
   window has and a 1280px one does not once the row is 90% wide — so the
   sheet menu, previously phone and tablet only, now runs everywhere under
   1280px. The sheet rules moved here wholesale rather than being
   duplicated: there is still one copy of them.
   ========================================================================== */
@media (max-width: 1279px) {
  /* Navigation */
  .nav-toggle {
    display: block;
  }

  /* A full-height sheet rather than a short dropdown. The dropdown ended
     mid-hero, so the panel and the page behind it ran together with no
     clear boundary. `display: none` is replaced with a transform so it
     can animate in; visibility keeps it out of the tab order when shut. */
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    display: flex;
    flex-direction: column;
    padding: 8px 0 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--white);
    border-top: 1px solid var(--hairline);
    box-shadow: 0 24px 48px rgba(0, 43, 76, 0.18);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.42s var(--ease-out), visibility 0s linear 0.42s;
  }

  .main-nav.is-open {
    transform: none;
    visibility: visible;
    transition: transform 0.42s var(--ease-out);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    width: var(--row-width);
    max-width: var(--row-max);
    margin-inline: auto;
  }

  .main-nav li + li {
    border-top: 1px solid var(--hairline);
  }

  /* Items settle in behind the panel, staggered */
  .js-anim .main-nav.is-open li {
    animation: nav-item 0.45s var(--ease-out) both;
  }

  .js-anim .main-nav.is-open li:nth-child(1) { animation-delay: 0.10s; }
  .js-anim .main-nav.is-open li:nth-child(2) { animation-delay: 0.16s; }
  .js-anim .main-nav.is-open li:nth-child(3) { animation-delay: 0.22s; }
  .js-anim .main-nav.is-open li:nth-child(4) { animation-delay: 0.28s; }

  @keyframes nav-item {
    from {
      opacity: 0;
      transform: translateX(18px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  /* --- Contact block at the foot of the sheet --- */
  .main-nav__foot {
    display: block;
    width: var(--row-width);
    max-width: var(--row-max);
    margin: auto auto 0;
    padding-top: 28px;
  }

  .main-nav__label {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    /* Not --grey-500: that token is #999, which is 5.08:1 on the navy
       footer where it is also used, but only 2.85:1 on this white sheet —
       under the 4.5:1 required at 12px. #5d6873 gives 5.69:1 here. */
    color: #5d6873;
  }

  .main-nav__contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    font-size: 15px;
    color: var(--navy);
  }

  .main-nav__icon {
    flex: none;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--hairline);
    color: var(--green);
  }

  .main-nav__icon svg {
    width: 15px;
    height: 15px;
  }

  /* `.main-nav a` (0,1,1) outranks `.btn--solid` (0,1,0), so the button's
     white text was being overridden to the nav's ink colour — black on
     navy, about 1.4:1. Matching specificity wins it back. The same trap
     hit `.btn--light` inside `.on-dark` earlier. */
  .main-nav a.main-nav__cta {
    display: block;
    margin-top: 16px;
    padding: 16px 24px;
    text-align: center;
    color: var(--white);
  }

  .main-nav a.main-nav__cta::before {
    content: none;
  }

  /* --- Scrim over the page behind the sheet --- */
  .nav-scrim {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: -1;
    background: rgba(0, 43, 76, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.42s var(--ease-out), visibility 0s linear 0.42s;
  }

  .is-nav-open .nav-scrim {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.42s var(--ease-out);
  }

  /* The page must not scroll behind an open sheet */
  .is-nav-open,
  .is-nav-open body {
    overflow: hidden;
  }

  /* The underline wipe reads as a stray line on a stacked menu */
  .main-nav a::after {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  /* The staggered entrance covered four items; there are twelve now */
  .js-anim .main-nav.is-open li:nth-child(5) { animation-delay: 0.34s; }
  .js-anim .main-nav.is-open li:nth-child(6) { animation-delay: 0.40s; }
  .js-anim .main-nav.is-open li:nth-child(7) { animation-delay: 0.46s; }
  .js-anim .main-nav.is-open li:nth-child(8) { animation-delay: 0.52s; }
  .js-anim .main-nav.is-open li:nth-child(9) { animation-delay: 0.58s; }
  .js-anim .main-nav.is-open li:nth-child(10) { animation-delay: 0.62s; }
  .js-anim .main-nav.is-open li:nth-child(11) { animation-delay: 0.66s; }
  .js-anim .main-nav.is-open li:nth-child(12) { animation-delay: 0.70s; }

  /* In the sheet the quote link is the button at the foot of the list */
  .main-nav a.main-nav__quote {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin: 18px 0 0;
    padding: 0 24px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--navy);
    border-radius: 100px;
  }

  .main-nav a.main-nav__quote::before,
  .main-nav a.main-nav__quote::after {
    content: none;
  }

  .main-nav__cta-item {
    border-top: 0;
  }
}

/* --- Inline bar, 1280px and up ------------------------------------------ */
@media (min-width: 1280px) {
  .site-header__inner {
    gap: 32px;
  }

  .main-nav ul {
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 22px;
  }

  .main-nav a {
    font-size: 12px;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  /* Request a Quote is the one action in the bar, so it is the one filled
     element; every other item stays a plain link. */
  .main-nav a.main-nav__quote {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 20px;
    color: var(--white);
    background: var(--navy);
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
    transition: background-color 0.3s var(--ease-out);
  }

  .main-nav a.main-nav__quote:hover,
  .main-nav a.main-nav__quote:focus-visible {
    background: var(--navy-link);
    color: var(--white);
  }

  /* The underline wipe belongs to the plain links, not the button */
  .main-nav a.main-nav__quote::after {
    display: none;
  }
}


/* ==========================================================================
   30. Section pages
   Components used by the pages added with the twelve-item menu:
   navigational cards, a numbered sequence, label/value grids, labelled
   cells, and the quote form. All of them inherit the tokens above — the
   only new values here are the ones the components genuinely need.
   ========================================================================== */

/* --- Cards that link on to another page --------------------------------- */
.nav-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 26px 26px;
  background: var(--white);
  border: 1px solid rgba(0, 43, 76, 0.1);
  box-shadow: 0 1px 2px rgba(0, 43, 76, 0.04);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out);
}

.nav-card__meta {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.nav-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.3;
  color: var(--navy);
}

.nav-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

/* Pushed to the foot so the link sits on one line across a row of cards,
   whatever the text above it wraps to — the same reason the company
   cards use a subgrid. */
.nav-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-link);
  text-decoration: none;
}

.nav-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out);
}

@media (hover: hover) {
  .nav-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 43, 76, 0.2);
    box-shadow: 0 18px 40px -18px rgba(0, 43, 76, 0.35);
  }

  .nav-card:hover .nav-card__link svg {
    transform: translateX(4px);
  }
}

/* --- Numbered sequence -------------------------------------------------- */
.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
}

.step__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  /* Not the brand green: #15c586 on white is 2.24:1, under the 3:1 that
     large text needs. #5d6873 (5.69:1) is the same token the mobile menu
     label uses for exactly this reason. */
  color: #5d6873;
}

.step__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.3;
  color: var(--navy);
}

.step__text {
  margin: 0;
  max-width: var(--measure);
}

@media (min-width: 981px) {
  .steps {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--gutter);
  }

  /* Two columns of three: the right column's first row needs the top
     hairline the border-top on the list only gives the left one. */
  .step:nth-child(2) {
    border-top: 0;
  }
}

@media (max-width: 600px) {
  .step {
    grid-template-columns: 48px 1fr;
    gap: 4px 16px;
  }

  .step__number {
    font-size: 20px;
  }
}

/* --- Label / value grid ------------------------------------------------- */
.def-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid var(--hairline);
}

.def {
  padding: 26px 24px;
}

.def:nth-child(odd) {
  border-right: 1px solid var(--hairline);
}

.def:nth-child(n + 3) {
  border-top: 1px solid var(--hairline);
}

.def__term {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.3;
  color: var(--navy);
}

.def__desc {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.7;
  max-width: var(--measure);
}

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

  .def:nth-child(odd) {
    border-right: 0;
  }

  .def:nth-child(n + 2) {
    border-top: 1px solid var(--hairline);
  }
}

/* --- Labelled cells (industries, values) -------------------------------- */
.tag-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--hairline);
}

.tag-cell {
  display: grid;
  grid-template-rows: 28px auto;
  align-content: start;
  justify-items: center;
  gap: 12px;
  padding: 28px 14px;
  text-align: center;
}

.tag-cell + .tag-cell {
  border-left: 1px solid var(--hairline);
}

.tag-cell:nth-child(n + 6) {
  border-top: 1px solid var(--hairline);
}

.tag-cell:nth-child(6) {
  border-left: 0;
}

.tag-cell__icon {
  width: 28px;
  height: 28px;
  color: var(--navy);
}

.tag-cell__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.tag-cell__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

/* No icon row to reserve, so the cell is one row and sits centred */
.tag-cell--plain {
  grid-template-rows: auto;
  align-content: center;
  min-height: 92px;
}

@media (max-width: 980px) {
  .tag-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tag-cell:nth-child(n) {
    border-left: 0;
    border-top: 0;
  }

  .tag-cell:not(:nth-child(3n + 1)) {
    border-left: 1px solid var(--hairline);
  }

  .tag-cell:nth-child(n + 4) {
    border-top: 1px solid var(--hairline);
  }
}

@media (max-width: 600px) {
  .tag-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tag-cell:nth-child(n) {
    border-left: 0;
    border-top: 0;
  }

  .tag-cell:nth-child(even) {
    border-left: 1px solid var(--hairline);
  }

  .tag-cell:nth-child(n + 3) {
    border-top: 1px solid var(--hairline);
  }
}

/* --- A short aside under a block --------------------------------------- */
.prose--note {
  margin-top: 28px;
  padding-left: 18px;
  border-left: 2px solid var(--green);
}

.prose--note p {
  margin: 0;
  font-size: 15px;
}

/* --- Capability cells as links ----------------------------------------- */
.capability__link {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  place-items: start center;
  gap: 14px;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.capability__link:hover {
  text-decoration: none;
}

@supports not (grid-template-rows: subgrid) {
  .capability__link {
    display: grid;
    grid-template-rows: 34px calc(2 * 1.4em);
  }
}

/* --- Footer: Explore column in two lists ------------------------------- */
@media (min-width: 601px) {
  .site-footer__links--split {
    columns: 2;
    column-gap: 24px;
  }

  .site-footer__links--split li {
    break-inside: avoid;
  }
}

/* --- Request a quote --------------------------------------------------- */
.quote.split-media {
  align-items: start;
}

.quote-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px var(--gutter);
}

.field {
  display: grid;
  gap: 8px;
  margin: 0;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid rgba(0, 43, 76, 0.25);
  border-radius: 0;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.field textarea {
  min-height: 140px;
  line-height: 1.7;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(21, 197, 134, 0.35);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6b7480;
}

.quote-form__note,
.quote-form__sent {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.7;
}

.quote-form__sent {
  padding: 14px 16px;
  background: var(--white);
  border-left: 2px solid var(--green);
}

.quote-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 24px 0 0;
}

.quote-aside {
  padding: 28px 26px;
  background: var(--white);
  border: 1px solid rgba(0, 43, 76, 0.1);
}

.quote-aside__title {
  margin: 0 0 16px;
  color: var(--navy);
}

.quote-aside__list {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.quote-aside__list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 1.6;
}

.quote-aside__list svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  fill: var(--green);
}

.quote-aside__contact {
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}

.quote-aside__contact p {
  margin: 0 0 6px;
  font-size: 15px;
}

.quote-aside__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-weight: 700;
}

.quote-aside__link svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 600px) {
  .quote-form__grid {
    grid-template-columns: 1fr;
  }

  .quote-form__actions .btn {
    width: 100%;
  }
}

/* A long button label cannot force a sideways scroll on a 320px screen:
   "Zaminox Precision Engineering" overflowed by 18px against the
   nowrap set above, so on phones the label wraps and the button grows. */
@media (max-width: 600px) {
  .btn,
  .btn--solid,
  .btn--outline,
  .btn--outline-lg,
  .btn--light,
  .btn--ghost {
    white-space: normal;
    padding-block: 12px;
  }
}

/* Inline links in body copy carry an underline. Navy on black text is
   1.72:1 against its surroundings, so colour alone cannot mark a link —
   the underline is what identifies it. Buttons and card links are
   excluded: they are already distinct blocks. */
.prose p a:not(.btn),
.prose--note a,
.quote-form__note a,
.quote-form__sent a,
.blurb__body p a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

/* ==========================================================================
   31. Photographs
   A photograph is not a logo. `media-tile` letterboxes artwork on white
   with `object-fit: contain`, which is right for a company mark and wrong
   for a picture — a picture should fill its frame. These two shapes do
   that: a framed photo that sits in a text/media split, and a band that
   runs the full row width between two sections.
   ========================================================================== */
.photo-frame,
.photo-band {
  display: block;
  position: relative;
  overflow: hidden;
  background: #0b1a26;             /* behind a photo while it decodes */
  border: 1px solid rgba(0, 43, 76, 0.12);
}

.photo-frame {
  aspect-ratio: 3 / 2;
}

.photo-frame--wide {
  aspect-ratio: 2 / 1;
}

.photo-band {
  aspect-ratio: 21 / 6;
}

/* The `<picture>` wrapper has no box of its own, so the image is
   positioned against the frame rather than sized as a flow child —
   `height: 100%` on an ordinary child of a block with only an
   aspect-ratio resolves against an indefinite height and is ignored. */
.photo-frame picture,
.photo-band picture {
  display: block;
}

.photo-frame__img,
.photo-band__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  box-shadow: none;
}

/* The split rules stretch a direct child; the frame is that child here,
   so the image inside it must not be stretched a second time. */
.split-media > div > .photo-frame {
  width: 100%;
}

/* Air above and below, so the band reads as an object between two
   sections rather than butting against the edge of the one above it or
   running straight into the industries strip below. */
.photo-band-section {
  padding: clamp(36px, 4.5vw, 64px) 0;
}

/* Photographs in the quote aside sit above its heading, flush to the
   panel's own padding rather than inset from it. */
.quote-aside .photo-frame {
  margin: -28px -26px 22px;
  border: 0;
  border-bottom: 1px solid rgba(0, 43, 76, 0.12);
}

@media (max-width: 600px) {
  /* A 21:6 band is a letterbox slit on a phone; 3:2 keeps the subject
     readable at the same left and right edges. */
  .photo-band {
    aspect-ratio: 3 / 2;
  }
}


/* ==========================================================================
   32. Header: utility strip, submenu, section state
   Two tiers. The strip carries the two ways to reach the office, which
   were previously three clicks away on every page; the bar below it
   carries seven items instead of twelve, because the five pages that sit
   under Capabilities are now a submenu of it.

   Heights are declared through --header-h, which `body` uses as its
   padding-top — the two must stay equal or the hero hides behind the
   header. Nothing about the header changes on scroll except a shadow, so
   that figure is constant and cannot cost layout shift.
   ========================================================================== */
:root {
  --header-h: 112px;                 /* 34px strip + 78px bar */
  --utility-h: 34px;
}

/* --- The strip ---------------------------------------------------------- */
.utility {
  height: var(--utility-h);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
}

.utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  height: 100%;
}

.utility__note {
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.utility__links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: none;
}

.utility__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}

.utility__link:hover,
.utility__link:focus-visible {
  color: var(--green);
  text-decoration: none;
}

.utility__icon {
  width: 14px;
  height: 14px;
  fill: var(--green);
  flex: none;
}

/* --- The bar ------------------------------------------------------------ */
.site-header__inner {
  min-height: calc(var(--header-h) - var(--utility-h));
  gap: 28px;
}

/* Seven items fit at a readable size, so the 11px squeeze that the flat
   twelve-item bar needed between 1280 and 1439px is withdrawn — the rule
   that set it is deleted rather than overridden, so there is no dead
   declaration left to puzzle over. */
@media (min-width: 1280px) {
  .main-nav ul {
    gap: 8px 26px;
  }
}

@media (min-width: 1280px) {
  .main-nav__list > li > a.main-nav__link {
    font-size: 13px;
    letter-spacing: 0.01em;
  }

  .main-nav a.main-nav__quote {
    min-height: 44px;
    padding: 0 22px;
    font-size: 11.5px;
  }

  /* --- Submenu ---------------------------------------------------------- */
  .main-nav__group {
    position: relative;
  }

  .main-nav__parent {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .main-nav__chev {
    width: 12px;
    height: 12px;
    fill: currentColor;
    transition: transform 0.25s var(--ease-out);
  }

  /* `.main-nav ul` (0,1,1) sets the bar's own flex row, which this panel
     inherited: the five children laid out in a wrapping row, right
     aligned, with "Materials" and "Quality" side by side. Matched
     specificity puts the panel back to a block list. */
  .main-nav ul.main-nav__sub {
    display: block;
    gap: 0;
    justify-content: flex-start;
    text-align: left;
  }

  .main-nav__sub {
    position: absolute;
    top: 100%;
    left: -18px;
    z-index: 2;
    display: block;
    min-width: 232px;
    margin: 0;
    padding: 8px 0;
    background: var(--white);
    border: 1px solid rgba(0, 43, 76, 0.12);
    border-top: 2px solid var(--green);
    box-shadow: 0 22px 44px -22px rgba(0, 43, 76, 0.45);
    /* Hidden by visibility rather than display, so the panel can fade and
       so its links stay out of the tab order while it is shut. */
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out),
      visibility 0s linear 0.22s;
  }

  /* Opens on hover and on keyboard focus anywhere inside it, so tabbing
     through the children keeps it open without any script. */
  .main-nav__group:hover .main-nav__sub,
  .main-nav__group:focus-within .main-nav__sub {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out);
  }

  .main-nav__group:hover .main-nav__chev,
  .main-nav__group:focus-within .main-nav__chev {
    transform: rotate(180deg);
  }

  .main-nav__sub li {
    display: block;
  }

  .main-nav__sub a {
    display: block;
    padding: 9px 20px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: background-color 0.2s var(--ease-out),
      border-color 0.2s var(--ease-out);
  }

  .main-nav__sub a::after {
    display: none;                   /* the bar's underline wipe, not here */
  }

  .main-nav__sub a:hover,
  .main-nav__sub a:focus-visible,
  .main-nav__sub a[aria-current="page"] {
    background: var(--grey-200);
    border-left-color: var(--green);
    color: var(--navy-link);
    text-decoration: none;
  }

  /* The parent reads as current while you are on one of its children */
  .main-nav a.is-section {
    color: var(--navy-link);
  }

  .main-nav a.is-section::after {
    transform: scaleX(1);
  }
}

/* --- Tablet and phone --------------------------------------------------- */
@media (max-width: 980px) {
  :root {
    --header-h: 94px;                /* 30px strip + 64px bar */
    --utility-h: 30px;
  }

  .utility {
    font-size: 12px;
  }

  .utility__note {
    display: none;                   /* the links are what matter here */
  }

  .utility__inner {
    justify-content: center;
  }

  .utility__links {
    gap: 20px;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 104px;               /* 30px strip + 74px bar */
  }

  .utility__links {
    gap: 14px;
  }

  .utility__link {
    font-size: 11.5px;
    gap: 6px;
  }
}

/* In the sheet the children are simply listed under their parent: no
   second tap target to find, and nothing hidden behind a gesture. */
@media (max-width: 1279px) {
  .main-nav__chev {
    display: none;
  }

  /* Same inheritance problem in the sheet, where `.main-nav ul` is a
     column sized to the row width and centred. */
  .main-nav ul.main-nav__sub {
    display: block;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0 0 8px 18px;
    list-style: none;
  }

  .main-nav__sub li + li {
    border-top: 1px solid var(--hairline);
  }

  .main-nav__sub a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 0 12px 16px;
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--ink-soft);
    text-decoration: none;
  }

  .main-nav__sub a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 2px;
    height: 16px;
    background: var(--hairline);
    transform: translateY(-50%);
  }

  .main-nav__sub a[aria-current="page"] {
    color: var(--navy);
    font-weight: 700;
  }

  .main-nav__sub a[aria-current="page"]::before {
    background: var(--green);
  }
}

/* ==========================================================================
   33. Ambient loops on the section pages
   The pages added with the twelve-item menu were the static ones: photos
   sat still, the capability strip and the label grids had nothing but
   hover, and the steps were a plain list. These loops give them the same
   slow, machine-like life the hero and footer already had.

   Rules, all of them enforced below:
   - transform, opacity and filter only, so nothing repaints or reflows
   - every loop gated behind `.js-anim`, so a failed script load leaves a
     still page rather than a broken one
   - the resting state is always the visible state: kill every animation
     here and the page still reads correctly
   - all of it off under prefers-reduced-motion (end of this section)
   ========================================================================== */

/* --- Header: a light travelling the bottom edge ------------------------- */
.site-header {
  position: fixed;                   /* restated: ::after is positioned to it */
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34%;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(21, 197, 134, 0) 0%,
    rgba(21, 197, 134, 0.85) 50%,
    rgba(21, 197, 134, 0) 100%
  );
  opacity: 0;
  pointer-events: none;
}

.js-anim .site-header::after {
  animation: head-scan 9s var(--ease-in-out) infinite;
}

@keyframes head-scan {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  12%,
  58% {
    opacity: 0.9;
  }
  70%,
  100% {
    transform: translateX(310%);
    opacity: 0;
  }
}

/* The two contact icons in the strip breathe, a beat apart */
.js-anim .utility__link:nth-child(1) .utility__icon {
  animation: icon-beat 4.2s var(--ease-in-out) infinite;
}

.js-anim .utility__link:nth-child(2) .utility__icon {
  animation: icon-beat 4.2s var(--ease-in-out) 1.4s infinite;
}

@keyframes icon-beat {
  0%,
  72%,
  100% {
    transform: none;
    opacity: 0.85;
  }
  80% {
    transform: scale(1.18);
    opacity: 1;
  }
}

/* A gleam crossing the logo, twice a minute */
.site-logo {
  position: relative;
  overflow: hidden;
}

.site-logo::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  pointer-events: none;
}

.js-anim .site-logo::after {
  animation: logo-gleam 13s linear infinite;
}

@keyframes logo-gleam {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  6% {
    opacity: 0.9;
  }
  16% {
    opacity: 0.9;
  }
  22%,
  100% {
    transform: translateX(320%);
    opacity: 0;
  }
}

/* --- Photographs: a slow push in, and a light passing over -------------- */
.photo-frame__img,
.photo-band__img {
  transform-origin: 52% 48%;
}

/* Chained after the reveal, not instead of it. A photograph inside a
   `[data-reveal]` already carries `media-wipe` from the cinematic layer,
   at a selector that outranks a single class — declaring `animation` here
   replaced the wipe rather than adding to it, and the drift never ran.
   Both are named together, with the drift delayed until the wipe has
   finished, which is the same fix the footer logo needed. */
.js-anim [data-reveal].is-visible .photo-frame__img {
  animation: media-wipe 1400ms var(--ease-out) both,
    photo-push 30s var(--ease-in-out) 1500ms infinite alternate;
}

/* The band is wider, so it drifts sideways rather than pushing in */
.js-anim [data-reveal].is-visible .photo-band__img,
.js-anim [data-reveal].photo-band .photo-band__img {
  animation: media-wipe 1400ms var(--ease-out) both,
    photo-slide 38s var(--ease-in-out) 1500ms infinite alternate;
}

/* A photo that is not inside a reveal wrapper (the quote aside) just
   drifts. */
.js-anim .quote-aside .photo-frame__img {
  animation: photo-push 30s var(--ease-in-out) infinite alternate;
}

@keyframes photo-push {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.07);
  }
}

@keyframes photo-slide {
  from {
    transform: scale(1.05) translateX(-1.2%);
  }
  to {
    transform: scale(1.05) translateX(1.2%);
  }
}

.photo-frame::after,
.photo-band::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 26%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.16) 45%,
    rgba(120, 220, 190, 0.14) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  pointer-events: none;
}

.js-anim .photo-frame::after {
  animation: media-pass 12s linear infinite;
}

.js-anim .photo-band::after {
  animation: media-pass 15s linear 2s infinite;
}

@keyframes media-pass {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  8%,
  40% {
    opacity: 1;
  }
  52%,
  100% {
    transform: translateX(420%);
    opacity: 0;
  }
}

/* --- Capability strip: a cell cycling, like a machine stepping ---------- */
.js-anim .capability__icon {
  animation: cell-cycle 7s var(--ease-in-out) infinite;
}

.js-anim .capability:nth-child(2) .capability__icon { animation-delay: 0.45s; }
.js-anim .capability:nth-child(3) .capability__icon { animation-delay: 0.9s; }
.js-anim .capability:nth-child(4) .capability__icon { animation-delay: 1.35s; }
.js-anim .capability:nth-child(5) .capability__icon { animation-delay: 1.8s; }
.js-anim .capability:nth-child(6) .capability__icon { animation-delay: 2.25s; }

/* Colour is not animated — the label stays navy at full contrast and only
   the icon moves and brightens. */
@keyframes cell-cycle {
  0%,
  62%,
  100% {
    transform: none;
    filter: none;
  }
  70% {
    transform: translateY(-5px);
    filter: drop-shadow(0 4px 8px rgba(21, 197, 134, 0.55));
  }
}

/* --- Steps: a green marker running down the sequence ------------------- */
.step__number {
  position: relative;
}

.step__number::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 26px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0.25);
  transform-origin: left center;
  opacity: 0.5;
}

.js-anim .step__number::after {
  animation: step-run 6s var(--ease-in-out) infinite;
}

.js-anim .step:nth-child(2) .step__number::after { animation-delay: 0.5s; }
.js-anim .step:nth-child(3) .step__number::after { animation-delay: 1s; }
.js-anim .step:nth-child(4) .step__number::after { animation-delay: 1.5s; }
.js-anim .step:nth-child(5) .step__number::after { animation-delay: 2s; }
.js-anim .step:nth-child(6) .step__number::after { animation-delay: 2.5s; }

@keyframes step-run {
  0%,
  70%,
  100% {
    transform: scaleX(0.25);
    opacity: 0.5;
  }
  35% {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* --- Label grids: a scan crossing the panel ---------------------------- */
.tag-grid,
.def-grid,
.capability-grid,
.blurb-panel {
  position: relative;
  overflow: hidden;
}

.tag-grid::after,
.def-grid::after,
.capability-grid::after,
.blurb-panel::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 18%;
  background: linear-gradient(
    90deg,
    rgba(21, 197, 134, 0) 0%,
    rgba(21, 197, 134, 0.07) 50%,
    rgba(21, 197, 134, 0) 100%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.js-anim .tag-grid::after,
.js-anim .def-grid::after,
.js-anim .capability-grid::after,
.js-anim .blurb-panel::after {
  animation: panel-scan 16s linear infinite;
}

.js-anim .def-grid::after {
  animation-duration: 19s;
  animation-delay: 3s;
}

.js-anim .blurb-panel::after {
  animation-duration: 21s;
  animation-delay: 1.5s;
}

@keyframes panel-scan {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  10%,
  45% {
    opacity: 1;
  }
  60%,
  100% {
    transform: translateX(620%);
    opacity: 0;
  }
}

/* --- Cards and buttons ------------------------------------------------- */
.js-anim .nav-card__link svg {
  animation: arrow-bob 2.8s var(--ease-in-out) infinite;
}

@keyframes arrow-bob {
  0%,
  70%,
  100% {
    transform: none;
  }
  82% {
    transform: translateX(4px);
  }
}

/* A sheen crossing the filled buttons. `::before` is the hover sweep, so
   this rides on a shadow-less inset gradient behind the label. */
.btn--solid,
.btn--light {
  position: relative;
  overflow: hidden;
}

.btn--solid::after,
.btn--light::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  pointer-events: none;
}

.btn--light::after {
  background: linear-gradient(
    100deg,
    rgba(0, 43, 76, 0) 0%,
    rgba(0, 43, 76, 0.12) 50%,
    rgba(0, 43, 76, 0) 100%
  );
}

.js-anim .btn--solid::after,
.js-anim .btn--light::after {
  animation: btn-sheen 8s linear infinite;
}

@keyframes btn-sheen {
  0% {
    transform: translateX(-140%);
    opacity: 0;
  }
  10%,
  30% {
    opacity: 1;
  }
  42%,
  100% {
    transform: translateX(300%);
    opacity: 0;
  }
}

/* The quote checklist ticks, in sequence */
.js-anim .quote-aside__list svg {
  animation: tick-beat 5.5s var(--ease-in-out) infinite;
}

.js-anim .quote-aside__list li:nth-child(2) svg { animation-delay: 0.35s; }
.js-anim .quote-aside__list li:nth-child(3) svg { animation-delay: 0.7s; }
.js-anim .quote-aside__list li:nth-child(4) svg { animation-delay: 1.05s; }

@keyframes tick-beat {
  0%,
  74%,
  100% {
    transform: none;
    opacity: 0.85;
  }
  82% {
    transform: scale(1.25);
    opacity: 1;
  }
}

/* A glowing head on the scroll progress bar */
.scroll-progress span {
  position: relative;
}

.scroll-progress span::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--green);
  filter: blur(2px);
  opacity: 0.85;
}

.js-anim .scroll-progress span::after {
  animation: head-glow 2.4s var(--ease-in-out) infinite;
}

@keyframes head-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* --- Off under reduced motion ------------------------------------------ */
/* Named rather than a blanket `*` rule, so this list is reviewable and
   cannot silently switch off an animation some other section depends on
   for its end state. Verified by reading back `animation-name` on each. */
@media (prefers-reduced-motion: reduce) {
  .js-anim .site-header::after,
  .js-anim .utility__link:nth-child(1) .utility__icon,
  .js-anim .utility__link:nth-child(2) .utility__icon,
  .js-anim .site-logo::after,
  .js-anim [data-reveal].is-visible .photo-frame__img,
  .js-anim [data-reveal].is-visible .photo-band__img,
  .js-anim [data-reveal].photo-band .photo-band__img,
  .js-anim .quote-aside .photo-frame__img,
  .js-anim .photo-frame::after,
  .js-anim .photo-band::after,
  .js-anim .capability__icon,
  .js-anim .step__number::after,
  .js-anim .tag-grid::after,
  .js-anim .def-grid::after,
  .js-anim .capability-grid::after,
  .js-anim .blurb-panel::after,
  .js-anim .nav-card__link svg,
  .js-anim .btn--solid::after,
  .js-anim .btn--light::after,
  .js-anim .quote-aside__list svg,
  .js-anim .scroll-progress span::after {
    animation: none;
  }

  /* The decorative sweeps carry no information, so they are hidden
     outright rather than parked mid-frame at a random offset. */
  .site-header::after,
  .site-logo::after,
  .photo-frame::after,
  .photo-band::after,
  .tag-grid::after,
  .def-grid::after,
  .capability-grid::after,
  .blurb-panel::after,
  .btn--solid::after,
  .btn--light::after {
    display: none;
  }

  .step__number::after {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* ==========================================================================
   34. Phone action bar, quote fallback, print
   ========================================================================== */

/* --- Call / email / quote, within thumb reach on phones ----------------- */
/* Hidden above 600px: on a desktop the header carries the same two links
   in its strip, and a fixed bar there would be clutter. */
.action-bar {
  display: none;
}

@media (max-width: 600px) {
  .action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    background: var(--white);
    border-top: 1px solid rgba(0, 43, 76, 0.14);
    box-shadow: 0 -8px 24px -16px rgba(0, 43, 76, 0.5);
    /* Clear of the phone's own home indicator */
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .action-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 58px;
    padding: 8px 6px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy);
    text-decoration: none;
    border-left: 1px solid rgba(0, 43, 76, 0.1);
  }

  .action-bar__item:first-child {
    border-left: 0;
  }

  .action-bar__item svg {
    width: 18px;
    height: 18px;
    fill: var(--green);
  }

  .action-bar__item--cta {
    background: var(--navy);
    color: var(--white);
    border-left: 0;
  }

  .action-bar__item--cta svg {
    fill: var(--white);
  }

  .action-bar__item--cta[aria-current="page"] {
    background: var(--navy-link);
  }

  .action-bar__item:active {
    background: var(--grey-200);
  }

  .action-bar__item--cta:active {
    background: var(--navy-link);
  }

  /* Room for it at the foot of the page, and the back-to-top button moves
     above it rather than sitting underneath. */
  /* 12px of air, so the copyright line is not flush against the bar */
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }

  .to-top {
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }

  /* The open menu sheet owns the screen; two fixed bars would fight. */
  .is-nav-open .action-bar {
    display: none;
  }
}

/* --- Quote form: the copy-out fallback --------------------------------- */
.quote-form__sent {
  margin: 20px 0 0;
  padding: 16px 18px;
  background: var(--white);
  border-left: 2px solid var(--green);
}

.quote-form__sent p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
}

.quote-form__copy-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.quote-form__copy {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--grey-100);
  border: 1px solid rgba(0, 43, 76, 0.2);
  resize: vertical;
}

/* --- Print ------------------------------------------------------------- */
/* The print stylesheet in section 20 predates every component added
   since. These carry it forward: decoration off, nothing split across a
   page break, and the two fixed bars gone. */
@media print {
  .action-bar,
  .utility,
  .photo-band-section,
  .site-header::after,
  .site-logo::after,
  .photo-frame::after,
  .photo-band::after,
  .tag-grid::after,
  .def-grid::after,
  .capability-grid::after,
  .blurb-panel::after,
  .btn--solid::after,
  .btn--light::after,
  .main-nav__sub,
  .quote-form__sent {
    display: none;
  }

  .step,
  .def,
  .nav-card,
  .tag-cell,
  .capability,
  .quote-aside,
  .photo-frame {
    break-inside: avoid;
  }

  .photo-frame {
    max-height: 60mm;
  }

  .steps,
  .def-grid,
  .tag-grid,
  .capability-grid {
    break-inside: auto;
  }

  /* A form is not useful on paper, but the address beside it is */
  .quote-form__grid,
  .quote-form__actions {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

/* ==========================================================================
   35. Legal pages
   One column of headed prose. `.prose h2` runs up to 42px, which is right
   for a section heading on a marketing page and far too large for the
   twelve subheads of a privacy notice — these are sized for reading
   rather than for scanning past.
   ========================================================================== */
/* The measure lives on an inner element, not on the row. Setting it on a
   `.row.legal` element made the row itself 78ch wide, and `.row`'s
   `margin-inline: auto` then centred the whole column 300px in from the
   edge the rest of the site aligns to; removing the cap instead killed
   the row's own 1500px maximum, so at 1920px the text ran wider than the
   header above it. A nested div avoids both. */
.legal {
  max-width: 78ch;
}

.legal__meta {
  margin: 0 0 32px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5d6873;
}

.legal h2 {
  margin-top: 2em;
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.3;
  color: var(--navy);
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal h3 {
  margin-top: 1.6em;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.35;
  color: var(--navy);
}

.legal ul {
  margin: 0 0 1.2em;
  padding-left: 22px;
  list-style: disc;
}

.legal li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.75;
}

.legal li::marker {
  color: var(--green);
}

.legal code {
  padding: 2px 6px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--white);
  border: 1px solid rgba(0, 43, 76, 0.14);
}

.legal a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Legal links in the footer bar -------------------------------------- */
.site-footer__legal {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__legal a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 720px) {
  /* Three items in the bar: copyright, legal, location. Stacked and left
     aligned rather than squeezed onto one line. */
  .site-footer__bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ==========================================================================
   36. Self-hosted typefaces
   The two families used to come from Google Fonts. A request to
   fonts.googleapis.com discloses the visitor's IP address to Google on
   every page load, before any consent and with no way to refuse it, which
   is exactly what a Munich court found unlawful in 2022 and what Malta's
   IDPC applies the same reasoning to. Serving the files ourselves removes
   the transfer, removes a third-party connection from the critical path,
   and lets the privacy notice say plainly that the site calls nobody.

   Only what the site actually uses: Arimo 400/600/700 and Inter 400/700,
   Latin and Latin-Extended, woff2 only (every browser that has supported
   woff2 since 2016; older ones fall back to the system stack). 320KB in
   total, and the unicode-range split means a visitor typing only English
   downloads the five Latin files and none of the Extended ones.
   ========================================================================== */
@font-face {
  font-family: "Arimo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/arimo-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Arimo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/arimo-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Arimo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/arimo-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Arimo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/arimo-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Arimo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/arimo-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Arimo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/arimo-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* --- Map held behind a button ------------------------------------------- */
/* Same box as the iframe it replaces, so pressing the button swaps one
   for the other without the page moving. */
.map-consent {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  background:
    linear-gradient(135deg, rgba(0, 43, 76, 0.04) 0%, rgba(0, 43, 76, 0.09) 100%),
    var(--grey-100);
}

.map-consent__panel {
  max-width: 44ch;
  text-align: center;
}

.map-consent__lead {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.map-consent__text {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
}

.map-consent__alt {
  margin: 16px 0 0;
  font-size: 13px;
}

.map-consent__alt a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.map-consent__alt svg {
  width: 14px;
  height: 14px;
}

/* Scripting off: the button cannot do anything, so it is replaced by the
   link to Google's own site, which is a navigation the visitor makes. */
html:not(.js) .map-consent [data-map-load] {
  display: none;
}

/* ==========================================================================
   37. Capability cards with photographs
   Each service is a card: a 4:3 photograph on top, then the name, a short
   description and a "Learn more" link pinned to the bottom so the links
   line up across a row. Three across on desktop, two on tablets, one on
   phones. Selectors are prefixed with .capability-grid so they win over
   the hairline-strip rules earlier in the file without !important.
   ========================================================================== */
.capability-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border: 0;
  overflow: visible;
}

.capability-grid::after {
  display: none;
}

/* The list item only carries the scroll reveal; the card itself is the
   link inside it, so the hover lift never fights the reveal's timing. */
.capability-grid .capability:nth-child(n) {
  display: block;
  padding: 0;
  text-align: left;
  background: none;
  border: 0;
}

.capability-grid .capability__link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  height: 100%;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--hairline);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out);
}

.capability__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1d2125;
}

.capability__media picture {
  display: block;
  height: 100%;
}

.capability__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

/* A neutral shade at the foot of the photo, so the card edge reads
   cleanly. Black, not navy: the photographs keep their own colour. */
.capability__media::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.28) 100%);
  pointer-events: none;
}

.capability__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  gap: 10px;
  padding: 24px 26px 26px;
}

.capability-grid .capability__label {
  display: block;
  height: auto;
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
}

.capability__label::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 12px;
  background: var(--green);
  transition: width 0.45s var(--ease-out);
}

.capability-grid .capability__desc {
  max-width: none;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.capability-grid .capability__more {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-link);
  border-bottom: 2px solid var(--green);
  padding-bottom: 2px;
}

.capability__more span {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}

@media (hover: hover) {
  .capability-grid .capability:nth-child(n):hover {
    background: none;
  }

  .capability-grid .capability__link:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 43, 76, 0.25);
  }

  .capability:hover .capability__media img {
    transform: scale(1.06);
  }

  .capability:hover .capability__label::after {
    width: 56px;
  }

  .capability:hover .capability__more span {
    transform: translateX(4px);
  }
}

.capability-grid .capability__link:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media (max-width: 600px) {
  .capability-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .capability__body {
    padding: 20px 20px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .capability-grid .capability__link,
  .capability__media img,
  .capability__label::after,
  .capability__more span {
    transition: none;
  }

  .capability-grid .capability__link:hover,
  .capability:hover .capability__media img {
    transform: none;
  }
}

/* ==========================================================================
   38. Group logos at a matched visual size
   Fitting every logo to the same box made the squarer marks (Sheet Metal,
   Metal Hub) fill the tile's height while the long Precision Engineering
   lockup only filled its width and read as a thin strip. Each logo now
   gets its own width, worked out from its proportions so all four carry
   roughly the same visual weight, and sits centred in the tile.
   ========================================================================== */
.company-card__media[class*="logo--"] picture {
  inset: auto;
  top: 50%;
  left: 50%;
  width: var(--logo-w, 70%);
  height: auto;
  transform: translate(-50%, -50%);
}

.company-card__media[class*="logo--"] img {
  height: auto;
}

.logo--zaminox-sheet-metal-fabrication { --logo-w: 60%; }
.logo--zaminox-precision-engineering   { --logo-w: 82%; }
.logo--innova-tech                     { --logo-w: 75%; }
.logo--metal-hub                       { --logo-w: 64%; }

/* ==========================================================================
   40. Sector grid: twelve sectors, four across
   Five columns left two cells alone on the last row once the list grew to
   twelve. Four across gives three full rows on desktop; the tablet (3) and
   phone (2) layouts above already divide twelve evenly.
   ========================================================================== */
@media (min-width: 981px) {
  .tag-grid--sectors {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tag-grid--sectors .tag-cell:nth-child(n) {
    border-left: 0;
    border-top: 0;
  }

  .tag-grid--sectors .tag-cell:not(:nth-child(4n + 1)) {
    border-left: 1px solid var(--hairline);
  }

  .tag-grid--sectors .tag-cell:nth-child(n + 5) {
    border-top: 1px solid var(--hairline);
  }
}

/* ==========================================================================
   41. Homepage slider
   Four full-width slides that cross-fade. One alignment line runs down
   the left: brand line, caption (title box over text box, same left
   edge), buttons and controls all start on the page gutter. The four
   group companies sit as small tiles top right, on the same line as the
   brand text, and stay put while the slides change. A neutral black
   overlay keeps the site's dark look without tinting the photographs.
   ========================================================================== */
.slider {
  --slider-interval: 6500ms;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0b0e11;
  color: var(--white);
}

.slider__stage {
  position: relative;
  height: clamp(520px, calc(100vh - var(--header-h)), 720px);
  height: clamp(520px, calc(100svh - var(--header-h)), 720px);
}

/* --- Slides ------------------------------------------------------------ */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease-out), visibility 0s linear 1s;
}

.slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: opacity 1s var(--ease-out), visibility 0s;
}

.slide__media,
.slide__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slide__media img {
  object-fit: cover;
  margin: 0;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.42) 50%, rgba(0, 0, 0, 0.15) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.5) 100%);
}

.slide__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  padding-top: 40px;
  padding-bottom: 60px;
}

/* --- Caption: title box over text box, one left edge ---------------------- */
.slide__title,
.slide__text {
  box-sizing: border-box;
  margin: 0;
  padding: 12px 22px 12px 18px;
  border-left: 4px solid var(--green);
}

.slide__title {
  background: rgba(255, 255, 255, 0.94);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
}

.slide__text {
  max-width: 34em;
  background: rgba(10, 12, 14, 0.82);
  border-left-color: rgba(10, 12, 14, 0.82);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.slide__actions .btn {
  padding: 12px 24px;
  font-size: 12px;
}

/* Entrance: each part of the caption arrives in turn */
.js-anim .slide__title,
.js-anim .slide__text,
.js-anim .slide__actions {
  opacity: 0;
}

.js-anim .slide.is-active .slide__title {
  animation: slide-cap-left 0.8s var(--ease-out) 0.3s forwards;
}

.js-anim .slide.is-active .slide__text {
  animation: slide-cap-up 0.8s var(--ease-out) 0.45s forwards;
}

.js-anim .slide.is-active .slide__actions {
  animation: slide-cap-up 0.8s var(--ease-out) 0.6s forwards;
}

.js-anim .slide.is-active .slide__media img {
  animation: slide-zoom 9s var(--ease-out) forwards;
}

@keyframes slide-cap-left {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes slide-cap-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@keyframes slide-zoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

/* --- Top bar: brand line left, company logos right ----------------------- */
.slider__top {
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.slider__heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.slider__heading span {
  color: var(--green);
}

.slider__heading span::after {
  content: "\00a0\00a0\2014\00a0\00a0";
  color: rgba(255, 255, 255, 0.45);
}

.slider__company-list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.slider__company {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 50px;
  padding: 3px 6px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition: transform 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.slider__company:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.slider__company picture {
  display: contents;
}

/* Each mark gets its own box so all four read at a similar size */
.slider__company img {
  width: auto;
  height: auto;
  max-width: var(--lw, 80%);
  max-height: var(--lh, 34px);
  margin: 0;
}

.slider__company.logo--zaminox-sheet-metal-fabrication { --lw: 80%; --lh: 46px; }
.slider__company.logo--zaminox-precision-engineering   { --lw: 100%; --lh: 34px; }
.slider__company.logo--innova-tech                     { --lw: 94%; --lh: 38px; }
.slider__company.logo--metal-hub                       { --lw: 80%; --lh: 46px; }

/* --- Controls, on the same left edge as the caption --------------------- */
.slider__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

html:not(.js) .slider__controls {
  display: none;
}

.slider__arrow,
.slider__pause {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out);
}

.slider__arrow svg,
.slider__pause svg {
  width: 20px;
  height: 20px;
}

.slider__arrow:hover,
.slider__pause:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.slider__arrow:focus-visible,
.slider__pause:focus-visible,
.slider__dot:focus-visible,
.slider__company:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.slider__pause {
  margin-left: 4px;
}

.slider__icon-play,
.slider.is-paused .slider__icon-pause {
  display: none;
}

.slider.is-paused .slider__icon-play {
  display: block;
}

.slider__dots {
  display: flex;
  align-items: center;
}

.slider__dot {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.slider__dot::before,
.slider__dot span {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  background: rgba(255, 255, 255, 0.32);
}

.slider__dot span {
  right: auto;
  width: 0;
  background: var(--green);
}

.slider__dot.is-active span {
  width: calc(100% - 10px);
}

.slider.is-running .slider__dot.is-active span {
  animation: slider-progress var(--slider-interval) linear forwards;
}

@keyframes slider-progress {
  from { width: 0; }
  to   { width: calc(100% - 10px); }
}

/* --- Tablet: brand line and logos stack at the top ----------------------- */
@media (max-width: 980px) {
  .slider__stage {
    height: clamp(520px, 72svh, 620px);
  }

  .slide::after {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.38) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.1) 32%, rgba(0, 0, 0, 0.1) 65%, rgba(0, 0, 0, 0.6) 100%);
  }

  .slider__top {
    top: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .slide__inner {
    padding-top: 110px;
    padding-bottom: 80px;
  }

  .slider__controls {
    bottom: 22px;
  }
}

/* --- Phone ---------------------------------------------------------------- */
@media (max-width: 600px) {
  /* Fit between the header and the call/email/quote bar (about 60px),
     so the controls are never hidden behind it */
  .slider__stage {
    height: clamp(470px, calc(100vh - var(--header-h) - 62px), 600px);
    height: clamp(470px, calc(100svh - var(--header-h) - 62px), 600px);
  }

  .slider__heading {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .slider__heading span::after {
    content: "\00a0\2014\00a0";
  }

  .slider__companies,
  .slider__company-list {
    width: 100%;
  }

  .slider__company-list li {
    flex: 1 1 0;
    min-width: 0;
  }

  .slider__company {
    width: 100%;
    height: 42px;
    padding: 2px 4px;
  }

  .slider__company.logo--zaminox-sheet-metal-fabrication { --lw: 84%; --lh: 38px; }
  .slider__company.logo--zaminox-precision-engineering   { --lw: 100%; --lh: 28px; }
  .slider__company.logo--innova-tech                     { --lw: 96%; --lh: 30px; }
  .slider__company.logo--metal-hub                       { --lw: 84%; --lh: 38px; }

  .slide__inner {
    justify-content: flex-start;
    padding-top: 150px;
    padding-bottom: 70px;
  }

  .slide__title {
    font-size: 21px;
  }

  .slide__text {
    font-size: 15px;
  }

  .slide__actions {
    width: 100%;
    margin-top: 20px;
  }

  .slide__actions .btn {
    flex: 1 1 0;
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
    white-space: nowrap;
  }

  .slider__dot {
    width: 34px;
  }
}

/* --- Motion off: no fades, zoom or progress; the slideshow starts paused */
@media (prefers-reduced-motion: reduce) {
  .slide,
  .slide.is-active {
    transition: none;
  }

  .js-anim .slide__title,
  .js-anim .slide__text,
  .js-anim .slide__actions {
    opacity: 1;
  }

  .js-anim .slide.is-active .slide__title,
  .js-anim .slide.is-active .slide__text,
  .js-anim .slide.is-active .slide__actions,
  .js-anim .slide.is-active .slide__media img,
  .slider.is-running .slider__dot.is-active span {
    animation: none;
  }

  .slider__company {
    transition: none;
  }
}

@media print {
  .slider__controls {
    display: none;
  }

  .slide:not(.is-active) {
    display: none;
  }
}

/* ==========================================================================
   42. Laser cut parts gallery (Sheet Metal Fabrication products page)
   Four parts photographed on white, each with a caption under the tile
   giving the material and thickness as real text rather than lettering
   baked into the picture.
   ========================================================================== */
.parts-head {
  margin-top: clamp(40px, 5vw, 64px);
  margin-bottom: 26px;
}

.parts-head .h3 {
  margin-bottom: 0.3em;
}

.part-card {
  margin: 0;
}

.part-card__media {
  background: var(--white);
  aspect-ratio: 4 / 3;
}

.part-card__media picture,
.part-card__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.part-card__media img {
  object-fit: contain;
}

.part-card__caption {
  margin-top: 14px;
  padding-left: 12px;
  border-left: 2px solid var(--green);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.part-card__caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

@media (max-width: 600px) {
  .parts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }
}

/* --- Header strip: the four divisions, separated by soft rules ---------- */
.utility__note span {
  margin: 0 0.5em;
  color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 981px) and (max-width: 1240px) {
  .utility__note {
    font-size: 11.5px;
    letter-spacing: 0;
  }

  .utility__note span {
    margin: 0 0.35em;
  }
}

/* Two-up parts gallery (Precision Engineering): wider tiles, two across
   from tablet up, stacked on phones */
.parts-grid--two {
  gap: clamp(20px, 3vw, 40px);
}

@media (max-width: 600px) {
  .parts-grid.parts-grid--two {
    grid-template-columns: 1fr;
  }
}

/* A section photograph with a caption underneath */
.media-figure {
  margin: 0;
}

.media-figure .part-card__caption {
  margin-top: 16px;
}

/* Three-up products gallery */
.parts-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
}

@media (max-width: 980px) {
  .parts-grid.parts-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .parts-grid.parts-grid--three {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   43. Larger header logo, with motion
   The bar grows so the logo can read at a proper size: 94px bar / 80px
   logo on desktop, smaller steps on tablet and phone. On load the logo
   settles into place; on hover it lifts slightly; and the existing light
   sweep crosses it more often. All motion is off with reduced motion.
   ========================================================================== */
:root {
  --header-h: 128px;                 /* 34px strip + 94px bar */
}

.site-logo img {
  max-height: 80px;
  max-width: none;
}

@media (max-width: 980px) {
  :root {
    --header-h: 104px;               /* 30px strip + 74px bar */
  }

  .site-logo img {
    max-height: 60px;
    max-width: min(150px, 44vw);
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 110px;               /* 30px strip + 80px bar */
  }

  .site-logo img {
    max-height: 58px;
    max-width: min(140px, 46vw);
  }
}

.site-logo {
  transform-origin: left center;
  transition: transform 0.45s var(--ease-out);
}

@media (hover: hover) {
  .site-logo:hover {
    transform: scale(1.05);
  }
}

.js-anim .site-logo img {
  animation: logo-enter 1.1s var(--ease-out) 0.15s both;
}

@keyframes logo-enter {
  0%   { opacity: 0; transform: translateY(-10px) scale(0.86); filter: blur(4px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}

/* the light sweep crosses the logo every 6 seconds instead of 13 */
.js-anim .site-logo::after {
  animation-duration: 6s;
}

@media (prefers-reduced-motion: reduce) {
  .js-anim .site-logo img {
    animation: none;
  }

  .site-logo,
  .site-logo:hover {
    transition: none;
    transform: none;
  }
}

/* ==========================================================================
   44. Industries: sector cards with photographs
   ========================================================================== */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sector-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--hairline);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.sector-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--white);
}

.sector-card__media picture,
.sector-card__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.sector-card__media img {
  object-fit: cover;
  margin: 0;
  transition: transform 0.8s var(--ease-out);
}

.sector-card__body {
  padding: 16px 18px 18px;
  border-top: 3px solid var(--green);
}

.sector-card__name {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.sector-card__shown {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
}

@media (hover: hover) {
  .sector-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
  }

  .sector-card:hover .sector-card__media img {
    transform: scale(1.05);
  }
}

@media (max-width: 1100px) {
  .sector-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .sector-card__body {
    padding: 12px 12px 14px;
  }

  .sector-card__name {
    font-size: 12.5px;
  }

  .sector-card__shown {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sector-card,
  .sector-card__media img {
    transition: none;
  }
}

/* Secondary heading inside a section, and a four-up parts grid */
.section-head--sub {
  margin-top: clamp(40px, 5vw, 64px);
  margin-bottom: 22px;
}

.section-head--sub .h3 {
  margin-bottom: 0.25em;
}

.section-head--sub p {
  margin: 0;
  color: var(--ink-soft);
}

.parts-grid--four {
  gap: clamp(16px, 2vw, 26px);
}

@media (max-width: 600px) {
  .parts-grid.parts-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }
}

/* ==========================================================================
   45. Slider: one centred headline over every slide
   ========================================================================== */
.slider__top {
  justify-content: flex-end;
}

.slider__centre {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 90px 24px 90px;
  text-align: center;
  pointer-events: none;
}

.slider__headline {
  margin: 0;
  max-width: 16em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 80px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}

.slider__headline-brand {
  display: block;
  margin-bottom: 0.12em;
  color: var(--green);
  letter-spacing: 0.08em;
}

.slider__headline-line {
  display: block;
}

.slider__headline-rule {
  display: block;
  width: 96px;
  height: 4px;
  margin-top: clamp(20px, 2.4vw, 32px);
  background: var(--green);
}

/* even, centred darkening now that nothing sits on the left */
.slide::after {
  background:
    radial-gradient(120% 90% at 50% 50%, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.62) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.5) 100%);
}

.slider__controls {
  justify-content: center;
}

.js-anim .slider__headline {
  animation: headline-enter 1.2s var(--ease-out) 0.2s both;
}

.js-anim .slider__headline-rule {
  animation: headline-rule 1s var(--ease-out) 0.8s both;
  transform-origin: center;
}

@keyframes headline-enter {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes headline-rule {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@media (max-width: 980px) {
  .slider__centre {
    padding-top: 110px;
  }

  .slider__top {
    align-items: flex-end;
  }
}

@media (max-width: 600px) {
  .slider__centre {
    padding: 120px 20px 80px;
  }

  .slider__headline {
    font-size: clamp(30px, 9vw, 40px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-anim .slider__headline,
  .js-anim .slider__headline-rule {
    animation: none;
  }
}

/* ==========================================================================
   46. Certifications page
   ========================================================================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.cert-card {
  padding: 28px 24px 26px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--green);
}

.cert-card__icon {
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  color: var(--navy);
}

.cert-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cert-card__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
}

.cert-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

@media (max-width: 1100px) {
  .cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* Slider headline: all white, with stronger separation from the photo */
.slider__headline {
  color: #ffffff;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.55),
    0 6px 28px rgba(0, 0, 0, 0.6);
}

.slider__headline-brand {
  color: #ffffff;
  font-size: 1.12em;
  letter-spacing: 0.14em;
}

/* a soft dark pool behind the text so it reads on bright photos */
.slider__centre::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1100px, 92vw);
  height: 70%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  z-index: -1;
  pointer-events: none;
}

.slider__headline-rule {
  width: 120px;
  height: 5px;
}

/* --- Slider headline: the site's own heading face, bold and moderate --- */
.slider__headline {
  max-width: 18em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.9vw, 58px);
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.slider__headline-brand {
  font-weight: 700;
  font-size: 1.05em;
  letter-spacing: 0.16em;
  margin-right: -0.16em;
  margin-bottom: 0.12em;
}

@media (max-width: 600px) {
  .slider__headline {
    font-size: clamp(26px, 7.5vw, 34px);
  }
}

.slider__headline-line {
  text-wrap: balance;
}


/* ==========================================================================
   47. Certifications: ISO 9001 certificate cards
   ========================================================================== */
.certificate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.certificate__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--hairline);
  color: inherit;
  text-decoration: none;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.certificate__link:hover {
  text-decoration: none;
}

.certificate__link:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.certificate__media {
  position: relative;
  display: block;
  padding: 18px 18px 0;
  background: var(--grey-200);
  overflow: hidden;
}

.certificate__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 620 / 877;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.6s var(--ease-out);
}

.certificate__view {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 8px);
  padding: 9px 18px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 100px;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.certificate__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  padding: 20px 20px 22px;
  border-top: 3px solid var(--green);
}

.certificate__std {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--green);
}

.certificate__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  color: var(--navy);
}

.certificate__div {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.certificate__scope {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.certificate__meta {
  margin-top: auto;
  padding-top: 10px;
  font-size: 12px;
  color: #666;
}

@media (hover: hover) {
  .certificate__link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
  }

  .certificate__link:hover .certificate__media img {
    transform: scale(1.03);
  }

  .certificate__link:hover .certificate__view {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (hover: none) {
  .certificate__view {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 1100px) {
  .certificate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .certificate-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .certificate__link,
  .certificate__media img,
  .certificate__view {
    transition: none;
  }
}

/* ==========================================================================
   48. Contact strip hides on scroll, returns at the top of the page
   Only the strip collapses; the white bar with the logo and menu stays.
   body keeps its padding, so nothing on the page jumps.
   ========================================================================== */
.utility {
  overflow: hidden;
  transition: height 0.35s var(--ease-out), opacity 0.25s var(--ease-out);
}

.is-header-compact .utility {
  height: 0;
  opacity: 0;
}

@media (max-width: 1279px) {
  .is-header-compact .main-nav,
  .is-header-compact .nav-scrim {
    top: calc(var(--header-h) - var(--utility-h));
  }
}

@media (prefers-reduced-motion: reduce) {
  .utility {
    transition: none;
  }
}

/* --- Certifications: cleaner alignment ---------------------------------- */
.certificate__media {
  padding: 22px 22px 22px;
}

/* names reserve two lines so the division, scope and certificate number
   start on the same lines across a row */
.certificate__name {
  min-height: calc(2 * 1.3em);
}

.certificate__div {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
}

.certificate__meta {
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}

.cert-intro {
  align-items: start;
}

@media (max-width: 600px) {
  .certificate__name {
    min-height: 0;
  }
}

/* Collage photos: frames shaped to the collage so no panel is cut off */
.photo-frame--16x9 {
  aspect-ratio: 16 / 9;
}

.photo-band--collage {
  aspect-ratio: 2 / 1;
}

/* Industries collage band: shaped to the collage so no panel is cut */
.photo-band--industries {
  aspect-ratio: 3 / 1;
}

/* OEM, Quality and Machinery bands: shaped to their photos so nothing is cut off */
.photo-band--oem {
  aspect-ratio: 16 / 9;
}

.photo-band--quality {
  aspect-ratio: 16 / 9;
}

.photo-band--machinery {
  aspect-ratio: 2 / 1;
}
