/* ==========================================================
   theme-final.css  ·  Stage 3 (v1.0.0.0)
   The final look: navy hero and about bands, yellow trust
   strip, Barlow type, icons and spec chips. Structure comes
   from layout.css, so only look and feel is defined here.
   Replaces theme-revised.css (Stage 2).
   ========================================================== */

/* ---------- Fonts (self-hosted, see fonts/README.md) ---------- */
@font-face {
  font-family: "Barlow";
  src: url("../fonts/Barlow-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/Barlow-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/Barlow-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/BarlowCondensed-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/BarlowCondensed-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* Palette (same as Stage 2) */
  --color-topbar: #0A1A2F;
  --color-header: #10264A;
  --color-heading: #10264A;
  --color-text: #1B2740;
  --color-text-muted: #4A5872;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F1F4F9;
  --color-border: #D9E0EB;
  --color-accent: #F5B700;
  --color-on-accent: #10264A;
  --color-link: #1D4ED8;
  --color-footer: #0A1A2F;

  /* Tints measured from the Stage 3 design */
  --color-on-dark: #FFFFFF;
  --color-on-dark-muted: #C9D4E6;
  --color-chip: #E8EDF6;
  --color-footer-line: #263A58;

  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;

  --radius: 10px;
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);  /* same easing as the hero video swap */

  /* Section background patterns (v1.0.7.0). Pure CSS, no images, no motion.
     Each one is a stack of layers that can sit in a background shorthand.
     Tweak the alpha values (the 0.055, 0.16 and 0.08 below) to make them stronger or subtler. */
  --grid-dark:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px) 0 0 / 28px 28px;
  --dots-light: radial-gradient(rgba(16, 38, 74, 0.16) 1px, transparent 1.6px) 0 0 / 18px 18px;
  --stripes-hazard: repeating-linear-gradient(-45deg, rgba(16, 38, 74, 0.08) 0 10px, transparent 10px 20px);
}

body {
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.125rem;
}

/* While the bar is fixed, its old space at the top of the page is body padding (layout.css).
   Paint that strip header navy, so nothing white shows through if the bar moves off it. */
.bar-js.has-fixed-bar body {
  background: linear-gradient(var(--color-header), var(--color-header)) top / 100% var(--site-top-height, 0px) no-repeat var(--color-surface);
}

a { color: var(--color-link); }
:focus-visible { outline: 3px solid var(--color-link); outline-offset: 3px; }
.site-top :focus-visible,
.hero :focus-visible,
.about :focus-visible,
.site-footer :focus-visible { outline-color: var(--color-accent); }

.skip-link { background: var(--color-heading); color: var(--color-on-dark); }

/* ---------- Contact bar ---------- */
.contact-bar {
  background: var(--color-topbar);
  color: var(--color-on-dark-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}
.contact-bar a { color: var(--color-on-dark-muted); text-decoration: none; }
.contact-bar a:hover { color: var(--color-on-dark); text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  background: var(--color-header);
  border-bottom: 3px solid var(--color-accent);
}
/* contact bar and header run the full page width with a gutter at each edge */
.contact-bar__inner.container,
.site-header__inner.container { max-width: none; }

.logo__box { width: 104px; height: 52px; }
.logo__box img {
  width: 100%;
  height: 100%;
  object-fit: cover;               /* logo.webp has empty space above the oval, */
  object-position: center bottom;  /* so anchor to the bottom to trim it */
}

.site-nav a {
  color: var(--color-on-dark);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-nav a:hover { color: var(--color-accent); }
.site-nav .btn,
.site-nav .btn:hover { color: var(--color-on-accent); }

/* ---------- Buttons ---------- */
.btn {
  border: 2px solid transparent;
  border-radius: 3px;
  min-height: 63px;
  padding: 12px 32px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
}
.btn--small { min-height: 51px; padding: 8px 26px; font-size: 1.25rem; }

.btn--solid,
.site-nav .btn {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
}
.btn--solid:hover,
.site-nav .btn:hover { filter: brightness(0.94); color: var(--color-on-accent); }

.btn--outline {
  background: transparent;
  border-color: var(--color-heading);
  color: var(--color-heading);
}
.btn--outline:hover { background: var(--color-surface-alt); color: var(--color-heading); }
.site-nav .btn--outline { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }
.site-nav .btn--outline:hover { background: var(--color-accent); }

/* Shadow that fades in while the bar slides down and sticks (all screen sizes),
   and fades out quickly once the page is back at the very top.
   main.js toggles .is-stuck; the slide itself is in main.js. Keep the fade-in length in
   step with DURATION in main.js. */
.site-top::after {
  box-shadow: 0 10px 24px -8px rgba(10, 26, 47, 0.55);
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
}
.site-top.is-stuck::after {
  opacity: 1;
  transition: opacity 800ms cubic-bezier(0.3, 0.3, 0.2, 1);
}

.btn__icon circle { fill: var(--color-accent); }
.btn__icon path { fill: var(--color-on-accent); }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-heading);
}
h1 { font-size: clamp(3rem, 8vw, 5.5rem); line-height: 0.95; overflow-wrap: anywhere; }
h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1; }
h3 { font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1.05; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

p, .feature-list { color: var(--color-text-muted); }
p strong, .feature-list strong { color: var(--color-text); font-weight: 600; }

.feature-list li::before { background: var(--color-accent); }

/* ---------- Hero ---------- */
/* Blueprint grid with a blue glow in the top-right corner */
.hero {
  background:
    radial-gradient(ellipse at 85% 15%, rgba(46, 98, 184, 0.55) 0%, transparent 55%),
    var(--grid-dark),
    linear-gradient(160deg, var(--color-header) 0%, var(--color-topbar) 100%);
}
.hero__grid { padding-block: 80px; }
.hero .eyebrow { color: var(--color-accent); }
.hero h1 { color: var(--color-on-dark); }
.hero h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  margin-top: 24px;
  background: var(--color-accent);
}
.hero__text { gap: 24px; }
.lede { font-size: 1.25rem; color: var(--color-on-dark-muted); }
.hero .lede strong { color: var(--color-on-dark); }
.hero .btn--outline { border-color: var(--color-on-dark); color: var(--color-on-dark); }
.hero .btn--outline:hover { background: rgba(255, 255, 255, 0.1); color: var(--color-on-dark); }
.btn-row { gap: 16px; }
.hero .btn--outline { gap: 12px; }

/* Entrance (class .slide-pre is added and removed by main.js, so no JS = the hero is always visible).
   Every time the hero scrolls into view: the eyebrow, heading, intro and buttons rise one after another,
   the yellow bar under the heading draws in, the product slides in from the right, then its yellow glow ignites.
   The delays below are in step with each other (eyebrow 0, heading 100, product 250, intro 300, bar and buttons 450, glow 700ms). */
.hero { overflow-x: hidden; overflow-x: clip; }   /* the product waits off to the right: that must not add a sideways scrollbar */
.hero__text > .eyebrow,
.hero__text > h1,
.hero__text > .lede,
.hero__text > .btn-row {
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero__text > h1 { transition-delay: 100ms; }
.hero__text > .lede { transition-delay: 300ms; }
.hero__text > .btn-row { transition-delay: 450ms; }
.hero h1::after {
  transform-origin: left center;
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1) 450ms;
}
.media--hero {
  transition: transform 750ms cubic-bezier(0.2, 0.7, 0.2, 1) 250ms, opacity 750ms cubic-bezier(0.2, 0.7, 0.2, 1) 250ms;
}
.hero-stage::before {
  /* the hover swell uses the separate `scale` property, so it gets its own transition without the entrance delay */
  transition: transform 900ms ease-out 700ms, opacity 900ms ease-out 700ms, scale 350ms cubic-bezier(0.2, 0.7, 0.2, 1),
              translate 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero.slide-nt,
.hero.slide-nt *,
.hero.slide-nt *::before,
.hero.slide-nt *::after { transition: none !important; }   /* main.js uses this to reset the hero without it animating backwards */
.hero.slide-pre .hero__text > .eyebrow,
.hero.slide-pre .hero__text > h1,
.hero.slide-pre .hero__text > .lede,
.hero.slide-pre .hero__text > .btn-row { opacity: 0; transform: translateY(18px); }
.hero.slide-pre h1::after { transform: scaleX(0); }
.hero.slide-pre .media--hero { opacity: 0; transform: translateX(70px) scale(0.9); }
.hero.slide-pre .hero-stage::before { opacity: 0; transform: scale(0.6); }

/* Hover and tap. Both hero buttons lift. Hover needs a mouse (any-hover, so a phone never gets it stuck on after a tap);
   on a touch screen a tap plays the same effect for a moment instead (.tap, added by main.js).
   The product image works differently: it tilts in 3D towards the mouse (see .is-tilting below). */
.hero .btn {
  transition: transform 250ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 250ms var(--ease-out),
              background-color 250ms var(--ease-out), filter 250ms var(--ease-out), color 250ms var(--ease-out);
}
.hero .btn__icon { transition: transform 300ms cubic-bezier(0.3, 1.6, 0.5, 1); }
.media--hero img {
  transition: transform 350ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 350ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (any-hover: hover) {
  .hero .btn--solid:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 18px -4px rgba(0, 0, 0, 0.55);
    filter: brightness(1.07);
  }
  .hero .btn--outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 18px -4px rgba(0, 0, 0, 0.55);
  }
  .hero .btn--outline:hover .btn__icon { transform: scale(1.25); }
}
.hero .btn--solid.tap {
  transform: translateY(-3px);
  box-shadow: 0 10px 18px -4px rgba(0, 0, 0, 0.55);
  filter: brightness(1.07);
}
.hero .btn--outline.tap {
  transform: translateY(-3px);
  box-shadow: 0 10px 18px -4px rgba(0, 0, 0, 0.55);
  background: rgba(255, 255, 255, 0.1);
}
.hero .btn--outline.tap .btn__icon { transform: scale(1.25); }

/* Product image: follows the mouse. main.js adds .is-tilting while the mouse is over the image (and for a moment after a
   tap on a touch screen) and sets --tx and --ty, the pointer's position across the image from -0.5 (left / top) to 0.5
   (right / bottom). The image tilts up to 13 degrees towards it and the yellow glow drifts the same way. The tilt follows
   the pointer closely (120ms) and eases back slowly (500ms) when it leaves. Only while the image is showing, not the video. */
.hero-stage.is-tilting > img {
  transform: perspective(450px) rotateY(calc(var(--tx, 0) * 26deg)) rotateX(calc(var(--ty, 0) * -26deg)) scale(1.07);
  transition: transform 120ms ease-out, filter 350ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
@supports selector(:has(a)) {
  .hero-stage.is-tilting:has(> img:not([hidden]))::before {
    scale: 1.08;
    translate: calc(var(--tx, 0) * 22px) calc(var(--ty, 0) * 22px);
    transition: transform 900ms ease-out 700ms, opacity 900ms ease-out 700ms, scale 350ms cubic-bezier(0.2, 0.7, 0.2, 1), translate 150ms ease-out;
  }
}

.media { border-radius: 8px; overflow: hidden; }

/* Hero media: no card. The product sits straight on the navy, lit by a soft yellow glow, inside a
   stage with a fixed shape so the image -> video swap never changes the height of the hero. */
.media--hero {
  background: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;            /* lets the glow and shadow spill past the stage */
}
.hero-stage {
  aspect-ratio: 16 / 10;        /* fixed shape: image and video both fill it */
  isolation: isolate;
}
/* Yellow glow behind whatever is showing */
.hero-stage::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(245, 184, 0, 0.30), rgba(245, 184, 0, 0.10) 55%, transparent 100%);
  pointer-events: none;
}
.media--hero img,
.media--hero video {
  position: absolute;
  inset: 0;
  width: 110%;
  height: 110%;
  max-height: none;
  margin: 0;
}
.media--hero img {
  object-fit: contain;          /* the whole product stays in view */
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
}
.media--hero video {
  aspect-ratio: auto;           /* the stage sets the shape now */
  object-fit: contain;          /* never crops the tutorial */
  background: #000;
  border-radius: var(--radius);
  border: 2px solid var(--color-accent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* ---------- Trust strip ---------- */
/* Workshop-tape stripes over a yellow gradient sheen. The stripes drift slowly to the right.
   The stripe layer is tiled at 28.2843px (the stripes repeat every 20px along their 45 degree slant,
   and 20 x 1.41421 = 28.2843px across), so sliding it exactly one tile per loop is seamless.
   The loop is 2s = about 14px a second. main.js pauses it (.is-paused) while the strip is off screen. */
.trust {
  background:
    var(--stripes-hazard) 0 0 / 28.2843px 28.2843px,
    linear-gradient(90deg, #FFC81F 0%, var(--color-accent) 50%, #E8A900 100%) 0 0 / 100% 100%;
  animation: trust-drift 2s linear infinite;
}
.trust.is-paused { animation-play-state: paused; }
@keyframes trust-drift {
  to { background-position: 28.2843px 0, 0 0; }
}
.trust__list { padding-block: 22px; }
.trust__item { justify-content: center; }
.icon-slot { color: var(--color-heading); }
.trust .icon-slot { width: 28px; height: 28px; border-radius: 0; }
.trust .icon-slot svg { width: 28px; height: 28px; }
.trust__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-on-accent);
}

/* ---------- Ranges ---------- */
/* Dot grid over white; the alternate bands get the same dots over pale blue */
.ranges { background: var(--dots-light), var(--color-surface); }
.ranges__intro h2 { margin-top: 2px; }
.ranges__intro p:last-child { font-size: 1.125rem; }

.range-band--alt {
  background: var(--dots-light), var(--color-surface-alt);
  border-block: 1px solid var(--color-border);
}
.range-band + .range-band:not(.range-band--alt) { border-top: 0; }

/* Slide-in (class .slide-pre is added and removed by main.js, so no JS = rows are always visible).
   Order: the image slides in from the side it sits on (left, right, left), then the heading, intro and
   bullet points fade up one after another (--sd is each one's delay, set by main.js), then the chips pop
   and the Enquire link fades in. Keep the timings in step with main.js. */
.ranges { overflow-x: hidden; overflow-x: clip; }   /* an image waiting off to the right must not add a sideways scrollbar */
.range .media--range {
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.range .range__text > h3,
.range .range__text > p,
.range .feature-list li {
  transition: transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--sd, 0ms),
              opacity 450ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--sd, 0ms);
}
.range.slide-nt,
.range.slide-nt * { transition: none !important; }   /* main.js uses this to reset a row without it animating backwards */
.range.slide-pre .media--range { opacity: 0; transform: translateX(-65%); }
.range--reverse.slide-pre .media--range { transform: translateX(65%); }
.range.slide-pre .range__text > h3,
.range.slide-pre .range__text > p,
.range.slide-pre .feature-list li { opacity: 0; transform: translateY(12px); }

/* The intro above the first row ("What we supply") fades up line by line, on desktop and phone alike */
.ranges__intro > * {
  transition: transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--sd, 0ms),
              opacity 450ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--sd, 0ms);
}
.ranges__intro.slide-nt,
.ranges__intro.slide-nt * { transition: none !important; }
.ranges__intro.slide-pre > * { opacity: 0; transform: translateY(24px); }

.media--range { height: 380px; }
.range__text { gap: 18px; }
.range__text h3 { margin-bottom: -2px; }

.chips li {
  background: var(--color-chip);
  color: var(--color-heading);
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.06em;
  cursor: default;
  transition: transform 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.chips li:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
}
/* Hidden until scrolled into view (classes added by main.js, so no JS = always visible).
   .pop plays each time the chips scroll back into view: each chip appears in its "selected"
   look (yellow, enlarged), then settles back to normal with a small bounce. */
.chips li.pre-reveal { opacity: 0; }
.chips li.pop {
  /* --d0 is the start delay set by main.js, so the chips pop after the row's text has filled in */
  animation: chip-pop 600ms var(--ease-out) calc(var(--d0, 0ms) + var(--i, 0) * 70ms) backwards;
}
@keyframes chip-pop {
  0%   { opacity: 0; transform: scale(0.6);  background-color: var(--color-accent); }
  45%  { opacity: 1; transform: scale(1.15); background-color: var(--color-accent); }
  75%  { opacity: 1; transform: scale(0.97); background-color: var(--color-chip); }
  100% { opacity: 1; transform: scale(1);    background-color: var(--color-chip); }
}

.more {
  position: relative;
  display: inline-block;
  padding-bottom: 9px;  /* 6px + the 3px underline, which used to be a border */
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-heading);
  transform-origin: left center;   /* grows to the right on hover */
  transition: transform 200ms var(--ease-out);
}
.more::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--color-accent);
  transform-origin: left center;
  transition: transform 500ms var(--ease-out) 150ms, background-color 200ms var(--ease-out);
}
.more:hover,
.more:focus-visible { color: var(--color-heading); transform: scale(1.05); }
.more:hover::after,
.more:focus-visible::after { background: var(--color-heading); }
.more__arrow {
  display: inline-block;
  transition: transform 200ms var(--ease-out);
}
.more:hover .more__arrow,
.more:focus-visible .more__arrow { transform: translateX(5px); }
/* hidden until scrolled into view (class added by main.js) */
.more.pre-reveal { opacity: 0; }
.more.pre-reveal::after { transform: scaleX(0); }

/* ---------- About ---------- */
/* Same blueprint grid as the hero, with the glow moved to the left so the two bands don't look identical */
.about {
  background:
    radial-gradient(ellipse at 12% 20%, rgba(46, 98, 184, 0.45) 0%, transparent 55%),
    var(--grid-dark),
    linear-gradient(200deg, var(--color-header) 0%, var(--color-topbar) 100%);
  padding-block: 88px;
}
.about h3 {
  padding-top: 24px;
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  color: var(--color-on-dark);
}
/* The yellow bar belongs to the column, not the heading, so it can stay put while the text drops from it */
.about__grid > div { position: relative; }
.about__grid > div::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 48px;
  height: 4px;
  background: var(--color-accent);
  transform-origin: left center;
}
.about p { color: var(--color-on-dark-muted); }
.about p strong { color: var(--color-on-dark); }

/* Drop-down (class .slide-pre is added and removed by main.js, so no JS = always visible).
   The bar draws in from the left, then the heading and paragraph fall from it and fade in.
   --sd is the column's start delay (set by main.js: 90ms apart on desktop, 0 when the columns are stacked).
   Keep the 150ms and 250ms offsets and the durations in step with main.js. */
.about__grid > div::before {
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1) var(--sd, 0ms);
}
.about__grid > div > h3 {
  transition: transform 350ms cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--sd, 0ms) + 150ms),
              opacity 350ms cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--sd, 0ms) + 150ms);
}
.about__grid > div > p {
  transition: transform 350ms cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--sd, 0ms) + 250ms),
              opacity 350ms cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--sd, 0ms) + 250ms);
}
.about__grid > div.slide-nt,
.about__grid > div.slide-nt::before,
.about__grid > div.slide-nt > * { transition: none !important; }   /* main.js uses this to reset a column without it animating backwards */
.about__grid > div.slide-pre::before { transform: scaleX(0); }
.about__grid > div.slide-pre > h3 { opacity: 0; transform: translateY(-18px); }
.about__grid > div.slide-pre > p { opacity: 0; transform: translateY(-12px); }

/* ---------- Contact ---------- */
/* Dot grid that fades from white at the top into pale blue behind the cards */
.contact {
  background:
    var(--dots-light),
    linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-alt) 45%);
  padding-block: 88px;
}
.contact__lede { font-size: 1.125rem; }

/* The heading block ("Get in touch", "Contact" and the line under it) fades up line by line, like the
   "What we supply" intro. The cards below it are not part of this. Classes are added and removed by main.js. */
.contact .container > :not(.contact__grid) {
  transition: transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--sd, 0ms),
              opacity 450ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--sd, 0ms);
}
.contact .container.slide-nt > * { transition: none !important; }
.contact .container.slide-pre > :not(.contact__grid) { opacity: 0; transform: translateY(24px); }
.card {
  position: relative;
  gap: 10px;
  padding: 26px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  /* Hover / tap / keyboard-focus effect, switched on below by changing these six values */
  --card-up: 0px;
  --card-edge: var(--color-border);
  --bar-hide: 100%;                       /* how much of the yellow top bar is still hidden */
  --icon-scale: 1;
  --icon-tilt: 0deg;
  --icon-bg: var(--color-header);
  --icon-fg: var(--color-accent);
  transform: translateY(var(--card-up));
  border-color: var(--card-edge);
  transition: transform 250ms var(--ease-out), border-color 250ms var(--ease-out);
}
.card .icon-slot {
  background: var(--icon-bg);
  color: var(--icon-fg);
  margin-bottom: 4px;
  transform: scale(var(--icon-scale)) rotate(var(--icon-tilt));
  transition: transform 400ms cubic-bezier(0.3, 1.6, 0.5, 1), background-color 250ms var(--ease-out), color 250ms var(--ease-out);
}
/* Yellow bar that draws across the top of the card from the left */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--color-accent);
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;   /* follows the card's rounded top corners */
  clip-path: inset(0 var(--bar-hide) 0 0);
  transition: clip-path 350ms cubic-bezier(0.4, 0, 0.2, 1);
}
/* The whole card is the link: the link's invisible overlay covers the card (cards with no link, like the address, are not clickable) */
.card a::after { content: ""; position: absolute; inset: 0; }

/* The effect: card lifts 3px, the bar draws in, the icon turns yellow, swells and tilts.
   Plays on mouse hover, on keyboard focus, and for a moment after a tap on a touch screen (.tap, added by main.js). */
.card.tap {
  --card-up: -3px; --card-edge: #C5CFE0; --bar-hide: 0%;
  --icon-scale: 1.15; --icon-tilt: -8deg; --icon-bg: var(--color-accent); --icon-fg: var(--color-on-accent);
}
@media (any-hover: hover) {   /* not on phones, where a tap would leave the effect stuck on */
  .card:hover {
    --card-up: -3px; --card-edge: #C5CFE0; --bar-hide: 0%;
    --icon-scale: 1.15; --icon-tilt: -8deg; --icon-bg: var(--color-accent); --icon-fg: var(--color-on-accent);
  }
}
/* Keyboard focus: show the effect, and ring the whole card instead of just the link text */
@supports selector(:has(a)) {
  .card:has(a:focus-visible) {
    --card-up: -3px; --card-edge: #C5CFE0; --bar-hide: 0%;
    --icon-scale: 1.15; --icon-tilt: -8deg; --icon-bg: var(--color-accent); --icon-fg: var(--color-on-accent);
    outline: 3px solid var(--color-link);
    outline-offset: 3px;
  }
  .card a:focus-visible { outline: none; }
}

/* Cards fade up with the heading (main.js plays the movement; this only hides them until then) */
.contact__grid > .card.slide-pre { opacity: 0; }
.card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.2;
  color: var(--color-text-muted);
}
.card a, .card address {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-heading);
}
.card a { text-decoration: none; }   /* no underline on hover any more: the whole card reacts instead */

/* ---------- Footer ---------- */
/* Gold strip along the top, matching the 3px one under the header */
.site-footer {
  background: var(--color-footer);
  border-top: 3px solid var(--color-accent);
  color: var(--color-on-dark-muted);
}

/* Row 1: logo and nav. Row 2: divider. Row 3: copyright and badge.
   .site-footer__brand is flattened so its children join the grid. */
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 40px;
  padding-block: 56px 40px;
}
.site-footer__inner::before {
  content: "";
  grid-column: 1 / -1;
  grid-row: 2;
  margin-block: 32px 24px;
  border-top: 1px solid var(--color-footer-line);
}
.site-footer__brand { display: contents; }
.site-footer .logo__box { grid-column: 1; grid-row: 1; width: 100px; height: 50px; justify-self: start; }
.site-footer nav { grid-column: 2; grid-row: 1; }
.site-footer__legal { grid-column: 1; grid-row: 3; width: auto; font-size: 1rem; color: var(--color-on-dark-muted); }
.site-footer__legal .glur-link {
  color: #7fb896;
  font-weight: 700;
  font-size: 1.1em;
  text-decoration: none;
}
.badge {
  grid-column: 2; grid-row: 3;
  justify-self: end;
  padding: 0;
  background: none;
  border: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}
/* Proudly NZ Owned image: width is fixed (about the width of the old text), height follows the image's ratio */
.badge img { width: 130px; max-width: 100%; height: auto; }
.footer-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-on-dark-muted);
}
.footer-nav a:hover { color: var(--color-on-dark); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 820px) {
  .logo__box { width: 71px; height: 36px; }     /* header logo, 15% smaller than before (84 x 42) */
  .site-footer .logo__box { width: 84px; height: 42px; }
  .hero__grid { padding-block: 48px; }
  /* The product sits below the text here, so it rises instead of sliding in from the side */
  .hero.slide-pre .media--hero { transform: translateY(40px) scale(0.95); }
  .btn { min-height: 56px; padding-inline: 24px; }
  .btn--small { min-height: 44px; padding-inline: 20px; }
  .media--range { height: 260px; }
  .media--hero { padding: 16px; }
  .media--hero img { max-height: 320px; }
  .trust__item { justify-content: flex-start; }
  .trust__list { padding-block: 24px; }
  .about, .contact { padding-block: 56px; }
  /* Rows stack into one column here, so the image rises gently instead of sliding in from the side */
  .range.slide-pre .media--range,
  .range--reverse.slide-pre .media--range { transform: translateY(24px); }
  /* Nav links shrink with the screen width so all four always fit on one row.
     25 is the row's approximate width in em (measured ~23, plus a safety margin);
     the 40px is the two page gutters. */
  .site-nav a { font-size: min(1.2375rem, calc((100vw - 40px) / 22.7)); letter-spacing: 0.06em; }
  .site-nav .btn--small { min-height: 0; padding: 0.4em 0.85em; }
}

@media (max-width: 520px) {
  /* The middle column is as wide as the logo row or the nav row (whichever is wider) and sits centred on
     the page between two equal side columns. The 4u logo starts at the left edge of that column, which is
     also the left edge of the first nav link (the nav links spread across the same width).
     Row 1: 4u logo at the left edge and Proudly NZ Owned image at the right edge (vertically centred, at least 32px apart). Row 2: nav. Row 3: copyright, centred. */
  .site-footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, max-content) minmax(0, 1fr); gap: 20px 0; }
  .site-footer__inner::before { display: none; }
  .site-footer__brand { display: flex; flex-wrap: nowrap; align-items: center; gap: 32px; justify-content: space-between; grid-column: 2; grid-row: 1; justify-self: stretch; }
  .site-footer .logo__box { flex: none; }
  .badge { min-width: 0; }
  .site-footer nav { grid-column: 2; grid-row: 2; }
  /* footer links stay on one row: they shrink with the screen (the row is about 15.6em wide; 40px is the two page gutters) */
  .footer-nav { justify-content: space-between; flex-wrap: nowrap; gap: 0 1.4em; }
  .footer-nav a { font-size: min(1.25rem, calc((100vw - 40px) / 16)); }
  .site-footer__legal { grid-column: 1 / -1; grid-row: 3; padding-top: 20px; border-top: 1px solid var(--color-footer-line); justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .site-top::after,
  .site-top.is-stuck::after,
  .chips li,
  .more::after,
  .more__arrow { transition: none; }
  .more { transition: none; }
  .chips li:hover,
  .more:hover,
  .more:focus-visible,
  .more:hover .more__arrow,
  .more:focus-visible .more__arrow { transform: none; }
  /* Hero hover: only the colour changes stay (the solid button brightens, the outline button tints). No lift, tilt or swell.
     (main.js does not start the tilt for these visitors at all, this is a second safety net.) */
  .hero .btn--solid:hover,
  .hero .btn--outline:hover { transform: none; box-shadow: none; }
  .hero .btn--outline:hover .btn__icon { transform: none; }
  .hero-stage.is-tilting > img { transform: none; }
  .hero-stage::before { scale: none !important; translate: none !important; }
  /* Trust strip: the stripes stay still */
  .trust { animation: none; }
  /* Contact cards: no movement, no drawing bar. The icon colour and card edge still change on hover. */
  .card,
  .card .icon-slot,
  .card::before { transition: none; }
  .card { transform: none; }
  .card .icon-slot { transform: none; }
  .card::before { display: none; }
}