/* ============================================================
   S.E.A WINDOWS & DOORS — styles.css
   Single shared stylesheet. No build step.
   Order: tokens → reset → typography → layout → buttons/forms
          → header/nav → heroes → components → footer → pages
          → motion/utilities
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
  /* Colour — black & silver, matching the company van livery.
     silver-* is a dark-background accent ONLY (1.65:1 on white —
     never use it as text or a meaningful stroke on light backgrounds;
     use steel-600 there instead). */
  --black-950: #07080A;
  --black-900: #0D0F12;
  --black-800: #181C21;
  --steel-600: #46545F;
  --steel-700: #333E47;
  --silver-500: #C3CAD1;
  --silver-400: #D8DDE2;
  --grey-50: #F2F4F6;
  --white:    #FFFFFF;
  --grey-200: #DEE3E8;
  --grey-600: #39424A;
  --grey-500: #5B6770;
  --grey-300: #AEB8C0;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-display: clamp(2.5rem, 1.8rem + 3.5vw, 4.25rem);
  --text-3xl: clamp(2.25rem, 1.7rem + 2.8vw, 3.5rem);
  --text-2xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --text-xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --text-lg: 1.25rem;
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-sm: 0.9375rem;
  --text-xs: 0.8125rem;

  /* Space (8px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --section-pad: clamp(4rem, 8vw, 7.5rem);

  /* Layout */
  --container: 75rem;
  --container-narrow: 45rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --header-h: 72px;

  /* Shape & shadow */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(13, 15, 18, 0.06), 0 1px 3px rgba(13, 15, 18, 0.08);
  --shadow-md: 0 4px 12px rgba(13, 15, 18, 0.08), 0 12px 32px rgba(13, 15, 18, 0.10);

  --ease: cubic-bezier(0.33, 1, 0.68, 1);
}

/* ------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--grey-600);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }

input, button, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

ul[class], ol[class],
.site-nav ul, .mobile-nav ul, .footer-nav ul { list-style: none; padding: 0; margin: 0; }

::selection { background: var(--silver-500); color: var(--black-950); }

:focus-visible {
  outline: 2px solid var(--steel-600);
  outline-offset: 3px;
  border-radius: 2px;
}

.section--dark :focus-visible,
.site-footer :focus-visible,
.mobile-nav :focus-visible,
.cta-band :focus-visible,
.site-header--overlay:not(.is-stuck) :focus-visible {
  outline-color: var(--silver-400);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 200;
  padding: var(--space-3) var(--space-6);
  background: var(--white);
  color: var(--black-900);
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.skip-link:focus { top: var(--space-4); }

/* ------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black-900);
}

h1 { font-size: var(--text-3xl); line-height: 1.1; }
h2 { font-size: var(--text-2xl); line-height: 1.15; }
h3 { font-size: var(--text-xl); line-height: 1.25; }
h4 { font-size: var(--text-lg); line-height: 1.3; }

p + p { margin-top: var(--space-4); }

.lead { font-size: var(--text-lg); line-height: 1.5; }

.muted { color: var(--grey-500); }

a { color: var(--steel-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--steel-700); }

.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel-600);
  margin-bottom: var(--space-4);
}

.eyebrow--silver { color: var(--silver-500); }

.eyebrow--rule {
  position: relative;
  padding-top: var(--space-3);
}

.eyebrow--rule::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 2px;
  background: currentColor;
}

/* Arrow text link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
}

.arrow-link .arrow { transition: transform 200ms var(--ease); }
.arrow-link:hover .arrow { transform: translateX(4px); }

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

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-pad); background: var(--white); }

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

.section--dark { background: var(--black-900); }

.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: var(--grey-300); }
.section--dark .eyebrow { color: var(--silver-500); }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head--center { margin-inline: auto; text-align: center; }

.section-head h2 { margin-bottom: var(--space-4); }

.section-head .lead { margin-top: 0; }

/* Split feature (50/50) */
.split {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > .split-media { order: 2; }
}

.split-body h2, .split-body h3 { margin-bottom: var(--space-4); }
.split-body .btn, .split-body .arrow-link { margin-top: var(--space-6); }

/* Media frames */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--black-800);
}

.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x4 { aspect-ratio: 3 / 4; }

/* Feature list (checkmarks) */
.feature-list { margin-top: var(--space-6); display: grid; gap: var(--space-3); }

.feature-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--grey-600);
}

.feature-list .tick {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1em;
  color: var(--steel-600);
}

.section--dark .feature-list li { color: var(--grey-300); }
.section--dark .feature-list .tick { color: var(--silver-500); }

/* ------------------------------------------------------------
   5. BUTTONS & FORMS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.875rem 1.75rem;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 200ms var(--ease), color 200ms var(--ease),
              transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.btn--primary { background: var(--black-900); color: var(--white); }
.btn--primary:hover { background: var(--black-800); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--silver { background: var(--silver-500); color: var(--black-950); }
.btn--silver:hover { background: var(--silver-400); color: var(--black-950); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }

.btn--sm { min-height: 42px; padding: 0.625rem 1.25rem; }

/* Forms */
.form-grid { display: grid; gap: var(--space-6); }

@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .form-field--full { grid-column: 1 / -1; }
}

.form-field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--black-900);
  margin-bottom: var(--space-2);
}

.form-field .optional { font-weight: 400; color: var(--grey-500); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-sm);
  color: var(--grey-600);
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--steel-600);
  box-shadow: 0 0 0 3px rgba(70, 84, 95, 0.15);
}

.form-field textarea { min-height: 8.5rem; resize: vertical; }

.form-consent { font-size: var(--text-xs); color: var(--grey-500); }

.form-status {
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.form-status.is-ok, .form-status.is-err {
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-4);
}

.form-status.is-ok { background: #E8F2EE; color: #0B4A3C; }
.form-status.is-err { background: #FBEBE9; color: #7C2D24; }

/* Honeypot — hide from humans, keep for bots */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------
   6. HEADER & NAVIGATION
   ------------------------------------------------------------ */
.site-header {
  z-index: 80;
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
}

/* Chip behind the white wreath logo — keeps it visible on any background */
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 9px;
  background: var(--black-900);
}

.brand-mark img { width: 27px; height: auto; display: block; }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  opacity: 0.85;
}

/* Desktop nav */
.site-nav { display: none; }

@media (min-width: 1024px) {
  .site-nav { display: block; }

  .site-nav ul { display: flex; gap: clamp(1rem, 2vw, 1.75rem); }

  .site-nav a {
    position: relative;
    display: inline-block;
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    font-weight: 600;
    color: inherit;
    text-decoration: none;
  }

  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 2px;
    background: var(--silver-500);
    transition: right 220ms var(--ease);
  }

  .site-nav a:hover::after,
  .site-nav a[aria-current="page"]::after { right: 0; }
}

.header-actions { display: none; }

@media (min-width: 1024px) {
  .header-actions { display: flex; align-items: center; gap: var(--space-6); }

  .header-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-size: var(--text-sm);
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
  }

  .header-phone svg { width: 1rem; height: 1rem; }
  .header-phone:hover { color: var(--silver-400); }
}

/* Variant: overlay (transparent over hero) */
.site-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  color: var(--white);
}

.site-header--overlay .brand-mark { background: rgba(255, 255, 255, 0.14); }

/* Variant: solid */
.site-header--solid {
  position: sticky;
  top: 0;
  background: var(--white);
  color: var(--black-900);
  border-bottom: 1px solid var(--grey-200);
}

.site-header--solid .header-phone:hover { color: var(--steel-600); }

/* Stuck state (set by JS after scrolling past sentinel) */
.site-header--overlay.is-stuck {
  position: fixed;
  background: var(--white);
  color: var(--black-900);
  box-shadow: var(--shadow-sm);
  animation: header-in 280ms var(--ease);
}

.site-header--overlay.is-stuck .brand-mark { background: var(--black-900); }
.site-header--overlay.is-stuck .header-phone:hover { color: var(--steel-600); }

@keyframes header-in {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .site-header--overlay.is-stuck { animation: none; }
}

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
}

.nav-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}

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

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}

/* Mobile menu overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + var(--space-8)) var(--gutter) var(--space-8);
  background: var(--black-950);
  color: var(--white);
}

.mobile-nav[hidden] { display: none; }

.mobile-nav ul { display: grid; gap: var(--space-2); }

.mobile-nav a.mobile-nav-link {
  display: inline-block;
  padding: var(--space-2) 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
}

.mobile-nav a.mobile-nav-link[aria-current="page"] { color: var(--silver-400); }

.mobile-nav-contact {
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--grey-300);
}

.mobile-nav-contact a { color: var(--white); font-weight: 600; text-decoration: none; }
.mobile-nav-contact a:hover { color: var(--silver-400); }

/* When menu open: lock scroll, raise header above overlay */
html.no-scroll, html.no-scroll body { overflow: hidden; }

body.menu-open .site-header {
  position: fixed;
  background: transparent;
  color: var(--white);
  box-shadow: none;
  animation: none;
}

/* Mobile call bar */
.call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--black-950);
}

.call-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 56px;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}

.call-bar a svg { width: 1rem; height: 1rem; }

.call-bar-tel { background: var(--silver-500); color: var(--black-950); }
.call-bar-quote { background: var(--black-950); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }

body { padding-bottom: 0; }

@media (max-width: 768px) {
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  body.menu-open .call-bar { display: none; }
}

@media (min-width: 769px) {
  .call-bar { display: none; }
}

/* ------------------------------------------------------------
   7. HEROES
   ------------------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 92vh, 860px);
  padding: calc(var(--header-h) + var(--space-8)) 0 var(--space-24);
  background: var(--black-900);
  color: var(--white);
  overflow: hidden;
}

.hero-media,
.page-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(7, 8, 10, 0.88) 0%, rgba(7, 8, 10, 0.62) 45%, rgba(7, 8, 10, 0.18) 100%);
}

.hero-content { position: relative; max-width: 44rem; }

.hero h1 {
  font-size: var(--text-display);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: var(--space-6);
}

.hero-lead {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
  margin-bottom: var(--space-8);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-4); }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-12);
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.hero-trust svg { width: 1rem; height: 1rem; color: var(--silver-400); }

/* Compact page hero (sub-pages) */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(380px, 52vh, 560px);
  padding: calc(var(--header-h) + var(--space-12)) 0 clamp(2.5rem, 6vw, 4.5rem);
  background: var(--black-900);
  color: var(--white);
  overflow: hidden;
}

.page-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 8, 10, 0.92) 0%, rgba(7, 8, 10, 0.45) 55%, rgba(7, 8, 10, 0.30) 100%);
}

.page-hero-content { position: relative; max-width: 46rem; }

.page-hero h1 { color: var(--white); margin-bottom: var(--space-4); }

.page-hero .lead { color: rgba(255, 255, 255, 0.88); max-width: 38rem; }

/* Plain hero (contact / privacy — no image) */
.plain-hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 0;
  background: var(--white);
}

.plain-hero h1 { margin-bottom: var(--space-4); }
.plain-hero .lead { max-width: 40rem; }

/* --- Scroll-driven casement hero (home only) ---------------------
   Default state = OPEN (overlay hidden, wrapper auto height) so
   no-JS, reduced-motion and short viewports get the plain hero.
   The closed/animated state exists only inside the gated block:
   JS writes --hero-p (0 closed → 1 open) onto .hero--scrolly.   */
.hero--scrolly { --hero-p: 1; }
.window-overlay { display: none; }

@media (prefers-reduced-motion: no-preference) and (min-height: 501px) {
  .js .hero--scrolly { --hero-p: 0; position: relative; height: 260vh; }

  .js .hero--scrolly .hero-stage {
    position: sticky;
    top: 0;
    min-height: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    overflow: clip;
  }

  .js .hero--scrolly .window-overlay {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none; /* CTAs stay clickable through the glass */
    perspective: 1200px;
  }

  .sash {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    border: 6px solid #B9C1C9;
    background: linear-gradient(105deg,
      rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.05) 35%,
      rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.04) 65%,
      rgba(255, 255, 255, 0.14) 100%);
    box-shadow: inset 0 0 0 1px rgba(13, 15, 18, 0.35), inset 0 0 60px rgba(255, 255, 255, 0.06);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .sash--left  { left: 0;  transform-origin: left center;  transform: rotateY(calc(var(--hero-p) * -110deg)); }
  .sash--right { right: 0; transform-origin: right center; transform: rotateY(calc(var(--hero-p) *  110deg)); }

  .sash::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%,
      rgba(255, 255, 255, 0.18) 45%, rgba(255, 255, 255, 0.02) 55%, transparent 70%);
    transform: translateX(calc(var(--hero-p) * 60%));
  }

  .sash-handle {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 64px;
    border-radius: 5px;
    background: linear-gradient(180deg, #E9ECEF, #9AA3AB);
    box-shadow: 0 1px 3px rgba(7, 8, 10, 0.4);
    transform: translateY(-50%);
  }

  .sash--left .sash-handle  { right: 14px; }
  .sash--right .sash-handle { left: 14px; }

  .window-frame {
    position: absolute;
    inset: 0;
    z-index: 2;
    border: clamp(10px, 1.1vw, 16px) solid transparent;
    border-image: linear-gradient(180deg, #E9ECEF 0%, #C3CAD1 45%, #8E979F 100%) 1;
    opacity: clamp(0, calc((0.92 - var(--hero-p)) / 0.12), 1);
  }

  .window-frame::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: clamp(8px, 1vw, 12px);
    transform: translateX(-50%);
    background: linear-gradient(90deg, #8E979F, #E9ECEF 50%, #8E979F);
  }

  .hero-hint {
    position: absolute;
    left: 50%;
    bottom: clamp(4.5rem, 9vh, 6rem);
    transform: translateX(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    opacity: clamp(0, calc(1 - var(--hero-p) * 4), 1);
  }

  .hero-hint svg { width: 1rem; height: 1rem; }

  .js .hero--scrolly .hero-content { transform: translateY(calc(var(--hero-p) * -2.5rem)); }
  .js .hero--scrolly .hero-media   { transform: scale(calc(1.06 - var(--hero-p) * 0.06)); }

  .js .hero--scrolly:not(.is-resting) .sash,
  .js .hero--scrolly:not(.is-resting) .hero-media { will-change: transform; }
}

/* Mobile: slide apart instead of 3D swing, shorter run */
@media (prefers-reduced-motion: no-preference) and (min-height: 501px) and (max-width: 767.98px) {
  .js .hero--scrolly { height: 180vh; }
  .js .hero--scrolly .window-overlay { perspective: none; }
  .sash--left  { transform: translateX(calc(var(--hero-p) * -102%)); }
  .sash--right { transform: translateX(calc(var(--hero-p) *  102%)); }
  .window-frame { opacity: clamp(0, calc((0.85 - var(--hero-p)) / 0.15), 1); }
}

/* ------------------------------------------------------------
   8. COMPONENTS
   ------------------------------------------------------------ */

/* USP strip (overlaps home hero) */
.usp-strip { position: relative; z-index: 2; margin-top: var(--space-8); }

.usp-card {
  display: grid;
  gap: var(--space-6);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

@media (min-width: 640px) { .usp-card { grid-template-columns: 1fr 1fr; } }

@media (min-width: 1024px) {
  .usp-card { grid-template-columns: repeat(4, 1fr); }
  .page-home .usp-strip { margin-top: -4.5rem; }
}

.usp {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.usp-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--grey-50);
  color: var(--steel-600);
}

.usp-icon svg { width: 22px; height: 22px; }

.usp h3 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 800; color: var(--black-900); }

.usp p { font-size: var(--text-xs); color: var(--grey-500); margin-top: var(--space-1); }

/* Cards */
.card-grid { display: grid; gap: var(--space-6); }

@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .card-grid--2 { grid-template-columns: repeat(2, 1fr); } }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.product-card .media { border-radius: 0; }

.product-card .media img { transition: transform 400ms var(--ease); }
.product-card:hover .media img { transform: scale(1.04); }

.product-card-body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); flex: 1; }

.product-card h3 { font-size: var(--text-lg); }

.product-card p { font-size: var(--text-sm); color: var(--grey-500); }

.product-card .arrow-link { margin-top: auto; padding-top: var(--space-4); }

/* Stretched link: whole card clickable */
.product-card .arrow-link::after { content: ""; position: absolute; inset: 0; }

/* Info / value cards (plain) */
.info-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
}

.info-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }

.info-card p { font-size: var(--text-sm); color: var(--grey-500); }

.info-card .info-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--steel-600);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.section--grey .info-card { border-color: var(--grey-200); }

/* Stats */
.stat-grid { display: grid; gap: var(--space-8) var(--space-6); grid-template-columns: repeat(2, 1fr); }

@media (min-width: 1024px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }

.stat { text-align: center; }

.stat-num {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--text-3xl);
  line-height: 1;
  color: var(--black-900);
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--grey-500);
}

.section--dark .stat-num { color: var(--silver-400); }
.section--dark .stat-label { color: var(--grey-300); }

/* Steps */
.steps { display: grid; gap: var(--space-8); counter-reset: step; }

@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step { counter-increment: step; }

.step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--steel-600);
  margin-bottom: var(--space-4);
}

.step h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }

.step p { font-size: var(--text-sm); color: var(--grey-500); }

/* Testimonials */
.quote-grid {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-4);
  -webkit-overflow-scrolling: touch;
}

.quote-grid > * { flex: 0 0 min(85%, 24rem); scroll-snap-align: start; }

@media (min-width: 1024px) {
  .quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; padding-bottom: 0; }
  .quote-grid > * { flex: none; }
}

.quote-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
}

.quote-card::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.6;
  color: var(--black-900);
  margin-bottom: var(--space-4);
}

.quote-card blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--black-900);
  flex: 1;
}

.quote-card figcaption {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--grey-500);
}

.quote-single { max-width: 38rem; margin-inline: auto; }

/* Pull quote (navy bands) */
.pull-quote {
  border-left: 3px solid var(--silver-500);
  padding-left: var(--space-6);
  margin-top: var(--space-8);
}

.pull-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--white);
}

.pull-quote figcaption { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--grey-300); }

/* Pills (service areas) */
.pill-list { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-2); }

.pill {
  display: inline-block;
  padding: 0.5rem 1.125rem;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--grey-600);
}

.section--dark .pill { background: var(--black-800); border-color: rgba(255, 255, 255, 0.12); color: var(--grey-300); }

/* Comparison table */
.table-wrap { overflow-x: auto; }

.compare-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.compare-table th, .compare-table td {
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--grey-200);
  vertical-align: top;
}

.compare-table thead th {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--black-900);
  border-bottom: 2px solid var(--black-900);
}

.compare-table tbody th { font-weight: 600; color: var(--grey-500); white-space: nowrap; }

/* Spec strip */
.spec-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
  justify-content: center;
}

.spec-strip li {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--black-900);
}

.spec-strip svg { width: 1.125rem; height: 1.125rem; color: var(--steel-600); flex: none; }

/* Text badges (accreditations / partners) */
.badge-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-600);
}

/* On light backgrounds silver is invisible — use steel; footer overrides back to silver */
.badge--silver { border-color: var(--steel-600); color: var(--black-900); }

/* Brochure cards */
.brochure-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.brochure-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.brochure-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--grey-50);
  color: var(--steel-600);
}

.brochure-icon svg { width: 22px; height: 22px; }

.brochure-card h3 { font-size: var(--text-lg); }

.brochure-card > p { font-size: var(--text-sm); color: var(--grey-500); flex: 1; }

.brochure-meta {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-500);
}

.brochure-card .btn { align-self: flex-start; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--grey-200); }

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--black-900);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--steel-600);
  transition: transform 200ms var(--ease);
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item .faq-body { padding: 0 0 var(--space-6); font-size: var(--text-sm); color: var(--grey-500); max-width: 60ch; }

/* CTA band */
.cta-band {
  position: relative;
  padding-block: clamp(4rem, 8vw, 6.5rem);
  background: var(--black-900);
  color: var(--white);
  overflow: hidden;
  text-align: center;
}

.cta-band-waves {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: auto;
  opacity: 0.07;
  pointer-events: none;
}

.cta-band .container { position: relative; }

.cta-band h2 { color: var(--white); max-width: 30ch; margin-inline: auto; }

.cta-band p { color: var(--grey-300); margin-top: var(--space-4); }

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.cta-band-tel {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
}

.cta-band-tel svg { width: 1.25rem; height: 1.25rem; color: var(--silver-400); }
.cta-band-tel:hover { color: var(--silver-400); }

/* ------------------------------------------------------------
   9. FOOTER
   ------------------------------------------------------------ */
.site-footer {
  background: var(--black-950);
  color: var(--grey-300);
  padding: var(--space-16) 0 var(--space-8);
  font-size: var(--text-sm);
}

.footer-grid { display: grid; gap: var(--space-12) var(--space-8); }

@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }

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

.site-footer .brand-mark,
body.menu-open .site-header .brand-mark { background: rgba(255, 255, 255, 0.12); }

.footer-blurb { margin-top: var(--space-4); max-width: 30ch; }

.site-footer .badge { border-color: rgba(255, 255, 255, 0.2); color: var(--grey-300); margin-top: var(--space-6); }
.site-footer .badge--silver { border-color: var(--silver-500); color: var(--silver-400); }

.footer-heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: var(--space-4);
}

.footer-nav ul { display: grid; gap: var(--space-2); }

.site-footer a { color: var(--grey-300); text-decoration: none; }
.site-footer a:hover { color: var(--silver-400); }

.site-footer address { font-style: normal; line-height: 1.8; }

.site-footer address a { color: var(--white); font-weight: 600; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--text-xs);
  color: var(--grey-500);
}

.footer-made {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.footer-made svg { width: 1rem; height: 1rem; color: var(--silver-500); }

/* ------------------------------------------------------------
   10. PAGE-SPECIFIC
   ------------------------------------------------------------ */

/* Contact */
.contact-grid { display: grid; gap: var(--space-8); align-items: start; }

@media (min-width: 1024px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: var(--space-12); } }

.contact-card {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.contact-card h2 { font-size: var(--text-xl); margin-bottom: var(--space-6); }

.contact-tel {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-2xl);
  color: var(--black-900);
  text-decoration: none;
  line-height: 1.1;
}

.contact-tel:hover { color: var(--steel-600); }

.contact-rows { display: grid; gap: var(--space-6); margin-top: var(--space-6); }

.contact-row { display: flex; gap: var(--space-4); align-items: flex-start; }

.contact-row svg { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.2em; color: var(--steel-600); }

.contact-row .label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-500);
  margin-bottom: var(--space-1);
}

.contact-row p, .contact-row address { font-style: normal; font-size: var(--text-sm); color: var(--grey-600); }

.contact-row a { font-weight: 600; }

/* Privacy / prose pages */
.prose h2 { margin-top: var(--space-12); margin-bottom: var(--space-4); font-size: var(--text-xl); }
.prose p { margin-top: var(--space-4); }
.prose ul { margin-top: var(--space-4); padding-left: 1.25rem; }
.prose li + li { margin-top: var(--space-2); }

/* 404 */
.page-404 main {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  background: var(--black-900);
  color: var(--grey-300);
  text-align: center;
}

.page-404 .err-code {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(6rem, 20vw, 11rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--silver-500);
}

.page-404 h1 { color: var(--white); margin: var(--space-6) 0 var(--space-4); }

.page-404 .err-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

/* ------------------------------------------------------------
   11. MOTION & UTILITIES
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  }

  .js [data-reveal].is-visible { opacity: 1; transform: none; }

  .js [data-reveal].d-1 { transition-delay: 80ms; }
  .js [data-reveal].d-2 { transition-delay: 160ms; }
  .js [data-reveal].d-3 { transition-delay: 240ms; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

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