/* ==========================================================================
   MHF EXPORTS — Design System
   Scandinavian premium minimal · Glassmorphism 2.0 (cards/navbar only)
   Palette from Colour Pattern.jpeg (warm bronze monochrome) · Plus Jakarta Sans + Inter
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand colour system (see design-system/mhf-exports/MASTER.md) */
  --c-accent: #0B7E82;        /* teal — decorative accents, icons */
  --c-accent-ink: #04595C;    /* readable teal — links, focus */
  --c-accent-dark: #0A4A4D;   /* deep teal — hovers */
  --c-accent-soft: #DDEEED;   /* soft teal chip bg */
  --c-espresso: #0B3436;
  --c-espresso-2: #0F4245;
  --c-umber: #14545A;
  --c-taupe: #1F686B;
  --c-cream: #F6FAF9;
  --c-beige: #E7F1F0;
  --c-sand: #CFE3E1;
  --c-gold: #B08D57;
  --c-gold-soft: #C9AE85;
  --c-ink: #1C3435;
  --c-ink-muted: #4A6362;
  --c-white: #FFFFFF;
  --c-error: #B3261E;
  --c-success: #1E7B34;

  /* Surfaces & tints — single brand theme, derived from the logo (#006F73). */
  --cta: #006F73;
  --cta-hover: #04595C;
  --bg-top: #FBFEFD;
  --dash-bg: #0A2628;
  --tint-hero-a: rgba(11, 126, 130, 0.13);
  --tint-hero-b: rgba(79, 179, 174, 0.13);
  --tint-dark-a: rgba(15, 84, 88, 0.62);
  --tint-dark-b: rgba(79, 179, 174, 0.14);
  --tint-cta-a: rgba(11, 126, 130, 0.42);
  --tint-cta-b: rgba(79, 179, 174, 0.24);
  --weave-line: rgba(15, 90, 93, 0.10);
  --rail: rgba(15, 90, 93, 0.26);
  --rail-strong: rgba(15, 90, 93, 0.36);
  --orb-a: rgba(0, 111, 115, 0.20);
  --orb-b: rgba(79, 179, 174, 0.18);

  /* Glass (2.0 — used ONLY for cards + navbar) */
  --glass-light: rgba(255, 255, 255, 0.58);
  --glass-light-strong: rgba(255, 255, 255, 0.72);
  --glass-dark: rgba(8, 44, 46, 0.55);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-border-dark: rgba(255, 255, 255, 0.14);
  --glass-blur: 16px;

  /* Type */
  --font-display: "Plus Jakarta Sans", "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(2.6rem, 5.5vw + 1rem, 4.6rem);
  --fs-h2: clamp(1.9rem, 2.8vw + 0.8rem, 3rem);
  --fs-h3: clamp(1.35rem, 1.2vw + 0.9rem, 1.75rem);
  --fs-h4: 1.175rem;
  --fs-body: 1rem;
  --fs-lg: 1.125rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  /* Rhythm (8pt) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-6: 3rem;
  --sp-8: 4rem;
  --sp-12: 6rem;
  --section-pad: clamp(3rem, 6vw, 5.25rem);

  /* Shape & elevation */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(32, 29, 24, 0.05), 0 4px 12px rgba(32, 29, 24, 0.05);
  --shadow-2: 0 2px 6px rgba(32, 29, 24, 0.06), 0 12px 32px rgba(32, 29, 24, 0.10);
  --shadow-3: 0 4px 10px rgba(32, 29, 24, 0.08), 0 24px 56px rgba(32, 29, 24, 0.16);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --dur-fast: 160ms;
  --dur-med: 260ms;
  --dur-slow: 420ms;

  /* Z scale */
  --z-nav: 100;
  --z-fab: 90;
  --z-modal: 1000;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-cream);
  overflow-x: hidden;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  color: var(--c-espresso);
  margin: 0 0 var(--sp-3);
  text-wrap: balance;
}

h1 { font-size: var(--fs-display); letter-spacing: -0.025em; font-weight: 800; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-family: var(--font-sans); font-weight: 600; }

p { margin: 0 0 var(--sp-2); max-width: 68ch; }

a { color: var(--c-accent-ink); text-decoration: none; }
a:hover { color: var(--c-espresso); }

ul { padding-left: 1.25rem; }

button { font: inherit; cursor: pointer; }

::selection { background: var(--c-espresso); color: var(--c-cream); }

:focus-visible {
  outline: 3px solid var(--c-accent-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: calc(var(--z-modal) + 1);
  background: var(--c-espresso);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.container {
  width: min(100% - 3rem, 96rem);   /* fuller-width page — minimal left/right space */
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2.5rem, 56rem); }

.section { padding-block: var(--section-pad); position: relative; }
.section--beige { background: var(--c-beige); }
.section--dark {
  background:
    radial-gradient(90rem 60rem at 85% -20%, var(--tint-dark-a), transparent 60%),
    radial-gradient(70rem 50rem at -10% 110%, var(--tint-dark-b), transparent 55%),
    var(--c-espresso);
  color: #E9E2D4;
}
.section--dark h2, .section--dark h3 { color: #F5F1E6; }
.section--dark p { color: #CFC6B4; }

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent-ink);
  margin-bottom: var(--sp-2);
}
.section--dark .eyebrow, .cta-banner .eyebrow { color: var(--c-gold-soft); }
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
/* Services: the "Core Services" eyebrow reads left-aligned, not centred */
#services .section-head--center { margin-inline: 0; text-align: left; }
#services .section-head--center .eyebrow { justify-content: flex-start; }
.section-head .lede { font-size: var(--fs-lg); color: var(--c-ink-muted); }
.section--dark .section-head .lede { color: #B7AD9A; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.7rem;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--cta);
  color: var(--c-cream);
  box-shadow: 0 8px 24px rgba(38, 34, 28, 0.30);
  position: relative;
  overflow: hidden;
}
.btn--primary:hover { background: var(--cta-hover); color: #fff; box-shadow: 0 10px 28px rgba(38, 34, 28, 0.40); }
.btn--primary::after {
  /* shine sweep */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  transform: translateX(-110%);
}
.btn--primary:hover::after { transform: translateX(110%); transition: transform 600ms var(--ease-out); }
/* On dark surfaces a dark primary disappears — flip to light */
.section--dark .btn--primary, .cta-banner .btn--primary {
  background: #F5F1E6;
  color: var(--c-espresso);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.section--dark .btn--primary:hover, .cta-banner .btn--primary:hover { background: #fff; color: var(--c-espresso); }

.btn--ghost {
  background: transparent;
  color: var(--c-espresso);
  border-color: rgba(32, 29, 24, 0.28);
}
.btn--ghost:hover { border-color: var(--c-espresso); color: var(--c-espresso); background: rgba(32, 29, 24, 0.04); }

.btn--light {
  background: #F5F1E6;
  color: var(--c-espresso);
}
.btn--light:hover { background: #fff; color: var(--c-espresso); }

.btn--ghost-light {
  background: transparent;
  color: #F5F1E6;
  border-color: rgba(245, 241, 230, 0.4);
}
.btn--ghost-light:hover { border-color: #F5F1E6; color: #fff; background: rgba(255, 255, 255, 0.06); }

.btn--sm { min-height: 42px; padding: 0.55rem 1.25rem; font-size: var(--fs-sm); }

/* ---------- Navbar (GLASS) ---------- */
.nav {
  position: absolute;   /* sits at the top only — scrolls away and does NOT follow on scroll */
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  transition: transform var(--dur-med) var(--ease-out);
}
.nav__inner {
  width: min(100vw - 3rem, 96rem);   /* viewport-based so width is identical on every page regardless of scrollbar/content */
  max-width: calc(100% - 1.5rem);
  margin: 0.75rem auto 0;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.6rem 1rem 0.6rem 1.25rem;
  border-radius: var(--r-pill);
  background: var(--glass-light);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-1);
  transition: background-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.nav.is-scrolled .nav__inner {
  background: var(--glass-light-strong);
  box-shadow: var(--shadow-2);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  color: var(--c-espresso);
}
.nav__brand:hover { color: var(--c-espresso); }
.nav__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.nav__name small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--c-accent);
  white-space: nowrap;
}

/* --- Header: centered logo with the name stacked below it --- */
.nav__inner,
.nav.is-scrolled .nav__inner {
  padding: 0.6rem 1.1rem;
  min-height: 104px;          /* tall enough to hold logo + name */
  align-items: center;
  position: relative;
}
/* Nav links centred in the header; brand stays left.
   .nav__sheet is display:contents on desktop, so position .nav__links itself. */
@media (min-width: 901px) {
  .nav__inner > .nav__sheet > .nav__links,
  .nav__links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}
.nav__logo,
.nav.is-scrolled .nav__logo { height: 58px; }
.nav__brand {
  flex-direction: column;   /* name sits under the logo */
  align-items: center;
  gap: 0.3rem;
  text-align: center;
  margin-right: auto;       /* brand stays on the LEFT */
  margin-left: 1.75rem;     /* nudged slightly right */
}
/* Name styled to match the real logo caption: serif, all-caps, tracked, logo teal */
.nav__name {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #006F73;
  text-align: center;
  line-height: 1;
}
@media (max-width: 640px) {
  .nav__name small { display: none; }
}
@media (max-width: 420px) {
  .nav__name { font-size: 0.95rem; }
  .nav__logo { width: 38px; height: 38px; }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: var(--r-pill);
  font-size: 1.12rem;          /* bigger header text */
  font-weight: 500;
  color: var(--c-ink);
  background: transparent;      /* plain — no highlighted pill */
  transition: color var(--dur-fast) var(--ease-out);
}
.nav__links a:hover { background: transparent; color: var(--c-espresso); }
/* Current page: no fill highlight — just a slightly heavier weight */
.nav__links a[aria-current="page"] {
  color: var(--c-espresso);
  font-weight: 600;
  background: transparent;
}

.nav__cta { flex: none; }

.nav__toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  border-radius: var(--r-pill);
  align-items: center;
  justify-content: center;
  color: var(--c-espresso);
}
.nav__toggle:hover { background: rgba(32, 29, 24, 0.06); }

/* Mobile sheet */
.nav__sheet { display: contents; }
@media (min-width: 901px) {
  .nav__sheet > .btn { display: none; } /* CTA lives in .nav__cta on desktop */
}

@media (max-width: 900px) {
  .nav__inner { padding: 0.5rem 0.6rem 0.5rem 1rem; }
  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }
  .nav__sheet {
    display: block;
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--glass-light-strong);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    backdrop-filter: blur(24px) saturate(1.4);
    padding: 7rem 1.5rem 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-med) var(--ease-out), visibility 0s linear var(--dur-med);
  }
  .nav.is-open .nav__sheet {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0.4rem; }
  .nav__links a {
    font-size: 1.35rem;
    font-family: var(--font-display);
    padding: 0.9rem 1rem;
    border-radius: var(--r-md);
    transform: translateY(12px);
    opacity: 0;
    transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-slow) var(--ease-out), background-color var(--dur-fast);
  }
  .nav.is-open .nav__links a { transform: none; opacity: 1; }
  .nav.is-open .nav__links li:nth-child(2) a { transition-delay: 40ms; }
  .nav.is-open .nav__links li:nth-child(3) a { transition-delay: 80ms; }
  .nav.is-open .nav__links li:nth-child(4) a { transition-delay: 120ms; }
  .nav.is-open .nav__links li:nth-child(5) a { transition-delay: 160ms; }
  .nav__sheet .btn { width: 100%; margin-top: var(--sp-3); }
}

/* Scroll progress hairline */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--c-umber), var(--c-gold));
  z-index: calc(var(--z-nav) + 1);
}

/* ---------- Sub-nav (scroll-spy chips) ---------- */
/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 9rem 0 5rem;
  isolation: isolate;
  background:
    radial-gradient(70rem 46rem at 108% -12%, var(--tint-hero-a), transparent 62%),
    radial-gradient(52rem 40rem at -18% 118%, var(--tint-hero-b), transparent 58%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--c-cream) 60%, var(--c-beige) 100%);
}
.hero__weave {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--weave-line) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, var(--weave-line) 0 1px, transparent 1px 56px);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 30%, transparent 100%);
  mask-image: radial-gradient(80% 70% at 50% 30%, #000 30%, transparent 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.hero h1 .accent {
  color: var(--c-accent);
}
.hero .lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--c-ink-muted);
  max-width: 34rem;
  margin-bottom: var(--sp-4);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  font-size: var(--fs-sm);
  color: var(--c-ink-muted);
}
.hero__trust strong { color: var(--c-espresso); font-weight: 600; }
.hero__trust .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--c-gold); }

.hero__scrollcue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  translate: -50% 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
}
.hero__scrollcue span { animation: cue-drop 2.2s var(--ease-out) infinite; }
@keyframes cue-drop {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  55% { transform: translateY(7px); opacity: 0.35; }
}

@media (max-width: 900px) {
  .hero { padding-top: 7.5rem; min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__scrollcue { display: none; }
}

/* ---------- Glass card (2.0) ---------- */
.glass-card {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--glass-light);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.35);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.35);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-1);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.glass-card::before {
  /* top light-reflection line */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9) 30%, rgba(255, 255, 255, 0.9) 70%, transparent);
  pointer-events: none;
}
.glass-card--hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }

.section--dark .glass-card {
  background: var(--glass-dark);
  border-color: var(--glass-border-dark);
}
.section--dark .glass-card::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28) 30%, rgba(255, 255, 255, 0.28) 70%, transparent);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
}
.stats .glass-card { text-align: center; padding: 1.75rem 1rem; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.4vw, 3.2rem);
  font-weight: 700;
  color: var(--c-espresso);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__num sup { font-size: 0.55em; color: var(--c-gold); }
.stat__label {
  margin-top: 0.5rem;
  font-size: var(--fs-sm);
  color: var(--c-ink-muted);
}
.section--dark .stat__num { color: #F5F1E6; }
.section--dark .stat__label { color: #B7AD9A; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Category tiles ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.cat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  border-radius: var(--r-lg);
  overflow: hidden;
  color: #F5F1E6;
  isolation: isolate;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.cat-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-3); color: #fff; }
.cat-tile__art {
  position: absolute;
  inset: 0;
  z-index: -2;
  transition: transform 600ms var(--ease-out);
}
.cat-tile:hover .cat-tile__art { transform: scale(1.06); }
.cat-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(190deg, rgba(32, 29, 24, 0) 30%, rgba(32, 29, 24, 0.82) 82%);
}
.cat-tile__body { padding: 1.5rem; }
.cat-tile__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.cat-tile__icon svg { width: 22px; height: 22px; }
.cat-tile h3 { color: #fff; font-size: 1.4rem; margin-bottom: 0.3rem; }
.cat-tile p { color: rgba(245, 241, 230, 0.82); font-size: var(--fs-sm); margin: 0; }
.cat-tile .cat-tile__go {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.cat-tile:hover .cat-tile__go, .cat-tile:focus-visible .cat-tile__go { opacity: 1; transform: none; }
.cat-tile__go svg { width: 18px; height: 18px; }
@media (max-width: 960px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: 1fr; }
  .cat-tile { min-height: 220px; }
  .cat-tile .cat-tile__go { opacity: 1; transform: none; }
}

/* ---------- Icon service grid ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
/* Compact service card — icon + title on one row, short description below */
.svc-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  column-gap: 0.7rem;
  row-gap: 0.4rem;
}
.svc-grid .glass-card { padding: 1rem 1.15rem; }
.svc-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--c-accent-soft);
  color: var(--c-accent-ink);
  margin-bottom: 0;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.svc-card__icon svg { width: 20px; height: 20px; }
.glass-card:hover .svc-card__icon { background: var(--c-espresso); color: var(--c-cream); }
.svc-card h3, .svc-card h4 { margin: 0; font-size: 1.02rem; line-height: 1.3; }
.svc-card p { grid-column: 1 / -1; font-size: 0.85rem; line-height: 1.5; color: var(--c-ink-muted); margin: 0; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- Dashboard mockup (Digital Transparency) ---------- */
.dash {
  border-radius: var(--r-lg);
  background: var(--dash-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  font-size: var(--fs-sm);
  color: #D8D0BF;
}
.dash__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.dash__bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-umber); }
.dash__bar .dot:nth-child(2) { background: var(--c-taupe); }
.dash__bar .dot:nth-child(3) { background: var(--c-gold); }
.dash__bar span {
  margin-left: 0.6rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8E8674;
}
.dash__live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  color: #C9AE85;
}
.dash__live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C9AE85;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 174, 133, 0.55); }
  60% { box-shadow: 0 0 0 7px rgba(201, 174, 133, 0); }
}
.dash__body { padding: 1.25rem; display: grid; gap: 1rem; }
.dash__row {
  display: grid;
  grid-template-columns: minmax(7rem, auto) 1fr auto;
  align-items: center;
  gap: 0.9rem;
}
.dash__row .name { font-weight: 500; color: #EFE9DB; white-space: nowrap; }
.dash__row .name small { display: block; font-weight: 400; color: #8E8674; font-size: 0.75rem; }
.dash__track {
  display: block;
  height: 7px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.dash__fill {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--c-accent), #C9AE85);
  transform-origin: left;
  transition: width 1.1s var(--ease-out);
}
.dash__fill--gold { background: linear-gradient(90deg, var(--c-gold), #D9BC8C); }
.dash__pct { font-variant-numeric: tabular-nums; color: #EFE9DB; font-weight: 600; min-width: 3ch; text-align: right; }
.dash__badges { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.25rem; }
.dash__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-pill);
  padding: 0.32rem 0.8rem;
  font-size: 0.72rem;
  color: #C9C0AC;
  background: rgba(255, 255, 255, 0.04);
}
.dash__chip svg { width: 13px; height: 13px; color: #C9AE85; }

/* ---------- Feature split ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.split > * { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0 0 var(--sp-4); display: grid; gap: 0.8rem; }
.checklist li { display: flex; gap: 0.75rem; align-items: flex-start; }
.checklist svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--c-accent); }
.section--dark .checklist svg { color: #C9AE85; }
.checklist strong { color: var(--c-espresso); }
.section--dark .checklist strong { color: #F5F1E6; }

/* ---------- Why-choose cards ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.why-grid .glass-card:nth-child(n+4) { grid-column: span 1; }
.why-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-accent-ink);
  margin-bottom: 0.75rem;
  display: block;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Process timeline (scroll-driven) ---------- */
.process { position: relative; }
.process__rail {
  position: absolute;
  left: 25px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--rail);
}
.section--dark .process__rail { background: rgba(255, 255, 255, 0.12); }
.process__rail i {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--c-accent), var(--c-gold));
  transform-origin: top;
  transform: scaleY(var(--p, 0));
}
.process__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
.process__step {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.25rem;
  align-items: flex-start;
}
.process__marker {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--c-cream);
  border: 1.5px solid var(--rail-strong);
  color: var(--c-taupe);
  transition: background-color var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.section--dark .process__marker { background: var(--c-espresso-2); border-color: rgba(255,255,255,0.18); color: #B7AD9A; }
.process__step.is-active .process__marker {
  background: var(--c-accent-ink);
  border-color: var(--c-accent-ink);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(11, 126, 130, 0.18);
}
.process__step h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.process__step p { margin: 0; font-size: var(--fs-sm); }

/* ---------- Certifications strip ---------- */
.certs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.6rem 1.2rem;
  border-radius: var(--r-pill);
  background: var(--glass-light);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-1);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--c-espresso);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.cert-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.cert-badge svg { width: 18px; height: 18px; color: var(--c-gold); flex: none; }
.section--dark .cert-badge { background: var(--glass-dark); border-color: var(--glass-border-dark); color: #EFE9DB; }

/* Cert detail rows (About page) */
.cert-rows { display: grid; gap: 0.75rem; }
.cert-rows .glass-card { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.4rem; }
.cert-rows svg { width: 22px; height: 22px; color: var(--c-gold); flex: none; }
.cert-rows strong { min-width: 9.5rem; color: var(--c-espresso); }
.cert-rows span { font-size: var(--fs-sm); color: var(--c-ink-muted); }
@media (max-width: 640px) {
  .cert-rows .glass-card { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .cert-rows strong { min-width: 0; }
}

/* ---------- Quote / testimonial ---------- */
.quote-card { text-align: center; padding: clamp(2rem, 5vw, 3.5rem); }
.quote-card blockquote {
  margin: 0 auto var(--sp-3);
  max-width: 44rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--c-espresso);
}
.quote-card cite { font-style: normal; font-size: var(--fs-sm); color: var(--c-ink-muted); }
.quote-card cite strong { display: block; color: var(--c-espresso); font-size: var(--fs-body); }

/* ---------- CTA banner ---------- */
.cta-banner {
  text-align: center;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 4rem);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(46rem 30rem at 90% -30%, var(--tint-cta-a), transparent 60%),
    radial-gradient(40rem 26rem at 0% 130%, var(--tint-cta-b), transparent 55%),
    var(--c-espresso);
  color: #E9E2D4;
  box-shadow: var(--shadow-3);
}
.cta-banner h2 { color: #F8F4EA; max-width: 26ch; margin-inline: auto; }
.cta-banner p { color: #C9C0AC; margin-inline: auto; }
.cta-banner__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; margin-top: var(--sp-4); }

/* ---------- Footer ---------- */
.footer {
  background: var(--c-espresso);
  color: #B7AD9A;
  padding: var(--sp-8) 0 var(--sp-4);
  margin-top: 0;   /* sections sit flush against the footer — no white gap */
  font-size: var(--fs-sm);
}
.footer a { color: #D8D0BF; }
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  /* Three content columns (brand · company · offices) — the old 4-track rule
     left an empty column behind after Resources was removed, which is what
     made the footer look lopsided. */
  grid-template-columns: 2.1fr 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: var(--sp-2); }
.footer__brand .nav__name { color: #F5F1E6; }
.footer__brand .nav__name small { color: #8E8674; }
.footer h4 { color: #F5F1E6; font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: var(--sp-2); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer address { font-style: normal; line-height: 1.7; }
.footer__news { display: flex; gap: 0.5rem; margin-top: var(--sp-2); }
.footer__news input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0.6rem 1rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #F5F1E6;
  font: inherit;
}
.footer__news input::placeholder { color: #8E8674; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: #8E8674;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: var(--sp-3); }
.field { display: grid; gap: 0.45rem; }
.field label { font-weight: 600; font-size: var(--fs-sm); color: var(--c-espresso); }
.field label .req { color: var(--c-error); }
.field .hint { font-size: var(--fs-xs); color: var(--c-ink-muted); }
/* Hints sitting directly in the grid (e.g. the reassurance line under submit) —
   .field .hint doesn't reach them, so they'd otherwise render at full body size */
.form-grid > .hint { display: block; margin-top: 0.5rem; font-size: var(--fs-xs); line-height: 1.5; color: var(--c-ink-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1.1rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--c-sand);
  background: #fff;
  font: inherit;
  font-size: 1rem;
  color: var(--c-ink);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 120px; resize: vertical; }
/* Auto-growing textarea: rests at a normal height, grows with the text, then scrolls
   instead of pushing the rest of the form down the page. JS sets the inline height. */
.field textarea[data-autogrow] {
  min-height: 7.5rem;
  max-height: 22rem;
  overflow-y: auto;
}
.field input[type="file"] { border-style: dashed; background: var(--c-cream); cursor: pointer; }
.field input[type="file"]::file-selector-button {
  margin-right: 0.9rem;
  border: 0;
  border-radius: var(--r-pill);
  padding: 0.5rem 1.1rem;
  background: var(--cta);
  color: var(--c-cream);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}

/* ---------- File field: native "Choose File" replaced with our own control ----------
   The real <input type="file"> stays in the DOM (focusable, still submits); it is only
   visually hidden, and the styled <label> next to it is what the user clicks. */
.filefield {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  border: 1.5px dashed var(--c-sand);
  border-radius: var(--r-md);
  background: var(--c-cream);
  padding: 0.6rem 0.9rem;
}
/* `.field input` sets width:100%, so this needs the extra class to stay 1px */
.field .filefield__input {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
/* .field label sets the espresso label colour — scope this higher so the button wins */
.field .filefield__btn {
  flex: none;
  border-radius: var(--r-pill);
  padding: 0.5rem 1.1rem;
  background: var(--cta);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.filefield__btn:hover { filter: brightness(1.07); }
/* Keyboard focus lands on the hidden input — show the ring on the visible button */
.filefield__input:focus-visible + .filefield__btn {
  outline: 2px solid var(--c-accent-ink);
  outline-offset: 2px;
}
.filefield__name {
  min-width: 0;
  flex: 1 1 8rem;
  font-size: var(--fs-sm);
  color: var(--c-ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.filefield.has-file { border-style: solid; border-color: var(--c-accent-ink); }
.filefield.has-file .filefield__name { color: var(--c-espresso); font-weight: 600; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--c-taupe); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-accent-ink);
  box-shadow: 0 0 0 4px rgba(140, 111, 74, 0.16);
}
.field.has-error input, .field.has-error select { border-color: var(--c-error); }
.field .error {
  display: none;
  font-size: var(--fs-sm);
  color: var(--c-error);
  align-items: center;
  gap: 0.35rem;
}
.field.has-error .error { display: flex; }
/* Reminder line under the success message (e.g. "attach your tech pack") */
.form-status__note { display: block; margin-top: 0.35rem; font-weight: 600; }
.form-status__note:empty { display: none; }
.form-status { display: none; }
.form-status.is-visible {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1.1rem 1.3rem;
  border-radius: var(--r-md);
  background: #E8F3EA;
  border: 1px solid #BFDEC6;
  color: var(--c-success);
  font-weight: 500;
}
.form-status svg { width: 22px; height: 22px; flex: none; }

/* ---------- Contact layout ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: flex-start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.office { display: grid; gap: 0.3rem; }
.office h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.office .tag {
  display: inline-block;
  width: fit-content;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent-ink);
  background: var(--c-accent-soft);
  border-radius: var(--r-pill);
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.6rem;
}
.office address { font-style: normal; color: var(--c-ink-muted); font-size: var(--fs-sm); line-height: 1.7; }

/* "More" link under the home Why-choose-us lede.
   max-width:none overrides the global p{max-width:68ch}, which otherwise boxes
   this paragraph narrower than the section and throws the button off-centre. */
.how-it-works__cta { margin: 1.5rem auto 0; max-width: none; text-align: center; }

/* Contact + social channels row (WhatsApp / Instagram / LinkedIn / Email) */
.social-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.social-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.6rem 1.1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-sand);
  background: #fff;
  color: var(--c-espresso);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.social-row a:hover {
  border-color: var(--c-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}
.social-row svg { width: 21px; height: 21px; color: var(--c-accent-ink); flex: none; }
/* Official brand colours so each mark reads as the real logo */
.social-row a[data-social="whatsapp"] svg { color: #25D366; }
.social-row a[data-social="instagram"] svg { color: #E4405F; }
.social-row a[data-social="linkedin"] svg { color: #0A66C2; }

.contact-channels { display: grid; gap: 0.75rem; }
.contact-channels a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  border: 1px solid var(--c-sand);
  background: #fff;
  color: var(--c-espresso);
  font-weight: 500;
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.contact-channels a:hover { border-color: var(--c-accent); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.contact-channels svg { width: 21px; height: 21px; color: var(--c-accent-ink); flex: none; }
.contact-channels small { color: var(--c-ink-muted); display: block; font-weight: 400; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 7.5rem 0 2rem;
  background:
    radial-gradient(60rem 36rem at 100% -20%, var(--tint-hero-a), transparent 60%),
    linear-gradient(180deg, var(--bg-top), var(--c-cream));
}
.page-hero .lede { font-size: var(--fs-lg); color: var(--c-ink-muted); max-width: 40rem; }
/* Full-bleed lede: runs the whole container so long copy wraps to two lines, not three */
.page-hero .lede--full { max-width: none; margin-bottom: 0; }
@media (max-width: 900px) { .page-hero .lede--full { max-width: 40rem; } .page-hero .lede--full br { display: none; } }
/* About hero: clear the taller header + keep eyebrow/title cleanly left-aligned */
.page-hero--about { padding-top: 9.5rem; }
.page-hero--about .eyebrow { margin-bottom: 0.9rem; }
@media (max-width: 900px) { .page-hero--about { padding-top: 8rem; } }

/* ============================================================
   INNER-PAGE DARK HERO — so the transparent glass header (same as
   the home page) sits over a dark band on every page and stays readable.
   ============================================================ */
body.page-dark .page-hero {
  padding-top: 11rem;
  background:
    radial-gradient(70rem 40rem at 100% -10%, rgba(79,179,174,0.22), transparent 60%),
    linear-gradient(160deg, #0d3a3c 0%, #0b2e30 55%, #093e40 100%);
}
body.page-dark .page-hero > * { position: relative; z-index: 1; }
body.page-dark .page-hero h1 { color: #fff; }
body.page-dark .page-hero .eyebrow { color: #7FD4D8; }
body.page-dark .page-hero .eyebrow::before { background: #7FD4D8; }
body.page-dark .page-hero .lede { color: rgba(255,255,255,0.88); }
@media (max-width: 900px) { body.page-dark .page-hero { padding-top: 9rem; } }

/* ---------- Prose blocks ---------- */
.prose h3 { margin-top: var(--sp-4); }
.prose ul { display: grid; gap: 0.5rem; color: var(--c-ink); }

/* ---------- Catalogue modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(20, 18, 14, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med) var(--ease-out), visibility 0s linear var(--dur-med);
}
.modal.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.modal__card {
  width: min(100%, 30rem);
  border-radius: var(--r-lg);
  background: var(--c-cream);
  box-shadow: var(--shadow-3);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform var(--dur-med) var(--ease-out);
}
.modal.is-open .modal__card { transform: none; }
.modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--c-ink-muted);
}
.modal__close:hover { background: rgba(32, 29, 24, 0.06); color: var(--c-espresso); }

/* ---------- Scroll reveal system ---------- */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out);
  transition-delay: var(--rv-d, 0ms);
  will-change: opacity, transform;
}
.rv--left { transform: translateX(-30px); }
.rv--right { transform: translateX(30px); }
.rv--scale { transform: scale(0.94); }
.rv.is-in { opacity: 1; transform: none; }

/* Hero entrance (plays on load) */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
.anim-rise { animation: rise-in 800ms var(--ease-out) both; }
.anim-rise-1 { animation: rise-in 800ms var(--ease-out) 120ms both; }
.anim-rise-2 { animation: rise-in 800ms var(--ease-out) 240ms both; }
.anim-rise-3 { animation: rise-in 800ms var(--ease-out) 360ms both; }
.anim-rise-4 { animation: rise-in 900ms var(--ease-out) 480ms both; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mb-2 { margin-bottom: var(--sp-2); }
.center { text-align: center; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .rv { opacity: 1; transform: none; }
  .hero__scrollcue span { animation: none; }
}

/* ---------- No-blur fallback ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav__inner, .subnav__track, .glass-card, .cert-badge, .nav__sheet { background: rgba(253, 252, 249, 0.96); }
  .section--dark .glass-card { background: rgba(43, 39, 33, 0.97); }
}

/* ---------- Print ---------- */
@media print {
  .nav, .fab-wa, .quote-bar, .scroll-progress, .modal { display: none !important; }
}


html { background: var(--c-cream); }



/* ---------- Hero 2.0 ---------- */
.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--glass-light);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  backdrop-filter: blur(10px) saturate(1.3);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-1);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-accent-ink);
  margin-bottom: var(--sp-3);
}
.hero__chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@media (max-width: 700px) {
  .hero__orb { display: none; }
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
}
.hero__orb--a { width: 34rem; height: 34rem; top: -8rem; right: -10rem; background: var(--orb-a); animation: orb-a 16s ease-in-out infinite alternate; }
.hero__orb--b { width: 26rem; height: 26rem; bottom: -6rem; left: -8rem; background: var(--orb-b); animation: orb-b 20s ease-in-out infinite alternate; }
@keyframes orb-a { to { transform: translate(-4rem, 3rem) scale(1.12); } }
@keyframes orb-b { to { transform: translate(3rem, -2.5rem) scale(1.08); } }

.hero__trust { border-top: 1px solid rgba(32, 29, 24, 0.12); padding-top: var(--sp-3); }
.hero__trust .sep { color: var(--c-sand); }

.dash-wrap { position: relative; }
.float-chip {
  position: absolute;
  z-index: 2;
  top: -1.1rem;
  right: -0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--glass-light-strong);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-2);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-espresso);
  animation: float-y 6s ease-in-out infinite;
}
.float-chip svg { width: 16px; height: 16px; color: var(--c-accent); }
.float-chip--b { top: auto; bottom: -1.1rem; right: auto; left: -0.6rem; animation-delay: 1.6s; }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.dash { transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out); transform-style: preserve-3d; }

/* ---------- Certification marquee ---------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  padding-block: 0.5rem;
}
.marquee__track {
  display: flex;
  gap: var(--sp-2);
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 0.5rem)); } }

/* ---------- Category tile art (both themes) ---------- */
.art-tex { background: linear-gradient(160deg, #655741, var(--c-espresso)); }
.art-app { background: linear-gradient(160deg, #4A4038, var(--c-espresso)); }
.art-dec { background: linear-gradient(160deg, #8A6A3B, var(--c-espresso)); }
.art-nat { background: linear-gradient(160deg, #55503A, var(--c-espresso)); }
.art-lea { background: linear-gradient(160deg, #3E2E22, var(--c-espresso)); }
.art-lif { background: linear-gradient(160deg, #75634A, var(--c-espresso)); }

/* ---------- Button placement polish ---------- */
.hero__ctas .btn, .cta-banner__actions .btn { min-width: 13.5rem; }
@media (max-width: 560px) {
  .hero__ctas, .cta-banner__actions { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn, .cta-banner__actions .btn { width: 100%; min-width: 0; }
}

/* ---------- Scroll-driven motion (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .cat-tile__art {
      animation: art-zoom linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 55%;
    }
    .section-head {
      animation: head-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
    .hero__weave {
      animation: weave-drift linear both;
      animation-timeline: scroll(root);
    }
    .cta-banner {
      animation: banner-grow linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
  }
}
@keyframes art-zoom { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes head-rise { from { opacity: 0.15; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes weave-drift { to { transform: translateY(-70px); } }
@keyframes banner-grow { from { transform: scale(0.94); opacity: 0.4; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .hero__orb--a, .hero__orb--b, .float-chip { animation: none; }
}


/* ---------- Hero bento router (six categories + proof tile) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.bento__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.15rem;
  min-height: 106px;
  padding: 0.9rem 1rem;
  border-radius: var(--r-md);
  color: #F5F1E6;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.bento__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(200deg, rgba(255, 255, 255, 0.10), transparent 45%);
}
.bento__tile:hover, .bento__tile:focus-visible {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-2);
  color: #fff;
}
.bento__tile svg { width: 20px; height: 20px; margin-bottom: auto; opacity: 0.9; }
.bento__tile strong { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; line-height: 1.25; }
.bento__tile small { font-size: 0.72rem; color: rgba(245, 241, 230, 0.75); }
.bento__tile--proof {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
  background: var(--glass-light-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.35);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.35);
  border: 1px solid var(--glass-border);
  color: var(--c-espresso);
}
.bento__tile--proof:hover { color: var(--c-espresso); }
.bento__tile--proof .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--c-espresso);
}
.bento__tile--proof .num small { display: block; font-size: 0.72rem; font-weight: 500; color: var(--c-ink-muted); margin-top: 0.3rem; }
.bento__tile--proof .go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-accent-ink);
  white-space: nowrap;
}
.bento__tile--proof .go svg { width: 16px; height: 16px; margin: 0; transition: transform var(--dur-fast) var(--ease-out); }
.bento__tile--proof:hover .go svg { transform: translateX(4px); }
@media (max-width: 900px) {
  .bento { max-width: 30rem; }
  .bento__tile { min-height: 92px; }
}


/* ---------- Hero quality composition (layered panel + glass quality card) ---------- */
.hero-visual {
  position: relative;
  min-height: 440px;
  display: grid;
  align-items: center;
}
.hero-visual__panel {
  position: absolute;
  inset: 0 3.5rem 3rem 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  transform: rotate(-2.5deg);
  box-shadow: var(--shadow-2);
}
.hero-visual__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 22px);
}
.hero-visual__panel svg {
  position: absolute;
  left: 1.25rem;
  top: 1rem;
  width: 8.5rem;
  height: 8.5rem;
  opacity: 0.22;
}
.hero-visual__card {
  position: relative;
  z-index: 1;
  width: min(100%, 26.5rem);
  justify-self: end;
  margin-top: 4.5rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-3);
  padding: 1.75rem 1.75rem 1.5rem;
}
.hero-visual__card .checklist { margin-bottom: var(--sp-3); gap: 0.65rem; }
.hero-visual__card .checklist li { font-size: 0.92rem; }
.hero-visual__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  border-top: 1px solid rgba(32, 29, 24, 0.12);
  padding-top: var(--sp-2);
}
.hero-visual__stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1.15;
  color: var(--c-espresso);
  font-variant-numeric: tabular-nums;
}
.hero-visual__stats small { font-size: 0.72rem; color: var(--c-ink-muted); line-height: 1.35; display: block; }
@media (max-width: 900px) {
  .hero-visual { min-height: 0; max-width: 30rem; }
  .hero-visual__panel { inset: 0 1.5rem 2rem 0; }
  .hero-visual__card { margin: 3rem 0 0 1.5rem; }
}

/* ============================================================
   CLIENT REVISION — minimal / centered direction
   ============================================================ */

.nav__links { gap: 0.15rem; }
.nav__links a {
  font-size: 1.15rem;          /* bigger header menu text */
  padding: 0.5rem 0.9rem;
  letter-spacing: 0.01em;
}

/* --- Dropdown submenus (Products / Services) --- */
.nav__links .has-menu { position: relative; }
.nav__links .has-menu > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.caret { width: 13px; height: 13px; flex: none; transition: transform var(--t-fast, 160ms) ease; }
.nav__links .has-menu:hover > a .caret,
.nav__links .has-menu:focus-within > a .caret { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 15rem;
  list-style: none;
  margin: 0;
  padding: 0.45rem;
  background: var(--c-cream, #FAF8F3);
  border: 1px solid rgba(32, 29, 24, 0.1);
  border-radius: 14px;
  box-shadow: var(--shadow-2, 0 12px 32px rgba(0,0,0,.12));
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  z-index: 60;
}
.nav__links .has-menu:hover > .submenu,
.nav__links .has-menu:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  border-radius: 9px;
  white-space: nowrap;
}

/* On mobile the nav is a stacked sheet — show submenus inline, no hover */
@media (max-width: 900px) {
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    min-width: 0;
    padding: 0 0 0 0.9rem;
    margin-top: 0.15rem;
  }
  .submenu a { font-size: 0.82rem; opacity: 0.85; }
  .caret { display: none; }
}

/* --- Minimal hero: headline only, centered --- */
.hero--minimal {
  text-align: center;
  /* Taller hero: the first viewport shows hero + "Who we are" + the numbers row.
     Everything after (Read our story, Products) starts below the fold. */
  /* Hero + About together fill exactly one viewport: hero takes the top ~62%,
     About (intro + numbers) fills the rest. */
  /* Hero owns 65% of the first viewport; About owns the other 35%. */
  height: 65vh;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 8.5rem 0 1rem;   /* top pad clears the stacked-brand header */
  box-sizing: border-box;
}
.hero--minimal h1 {
  max-width: none;
  margin-inline: auto;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
/* On phones the forced 3-line break is too wide. Collapse the <br>s to a real
   space (display:none would glue the words together: "ledmanufacturing") and
   drop the floor size so the headline can't overrun a 390px screen. */
@media (max-width: 620px) {
  .hero--minimal h1 br {
    display: inline;
    content: " ";
    font-size: 0;
  }
  .hero--minimal h1 br::after { content: " "; font-size: 1rem; }
  .hero--minimal h1 {
    max-width: 14ch;
    font-size: clamp(2.1rem, 9vw, 3.2rem);
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
  }
  .hero--minimal { min-height: auto; padding: 7rem 0 3.5rem; }
  .hero--minimal .lede { font-size: 1rem; margin-top: 1.2rem; }
}

/* --- Home page: centered content throughout ---
   Scoped via body[data-page="home"] (set by main.js) so build.py's shared
   chrome can stay byte-identical across pages. */
body[data-page="home"] .section-head {
  margin-inline: auto;
  text-align: center;
  max-width: 46rem;
}
/* Certifications heading is a two-line pair; 46rem clips line 2 onto a third line */
body[data-page="home"] #certifications .section-head { max-width: 52rem; }
/* About intro: wide enough to read as 3 balanced lines */
body[data-page="home"] #about-snapshot .section-head { max-width: 82rem; }
body[data-page="home"] #about-snapshot .section-head .lede {
  max-width: none;
  text-wrap: balance;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.6;
}
body[data-page="home"] .section-head .eyebrow { justify-content: center; }
body[data-page="home"] .process__steps { text-align: left; }

/* Limit the vertical space the home sections use (per brief) — compact bands. */
body[data-page="home"] .section { padding-block: clamp(2.25rem, 4.5vw, 3.75rem); }
body[data-page="home"] #about-snapshot .section-head { margin-bottom: 0.5rem; }
/* About fills the remaining viewport height under the hero, so hero + intro +
   numbers together occupy exactly one full screen. */
body[data-page="home"] #about-snapshot {
  height: 35vh;                 /* the remaining 35% of the first viewport */
  min-height: 0;
  display: grid;
  align-content: end;           /* content sits at the end of the viewport */
  padding-block: 0.5rem 1.25rem;
  box-sizing: border-box;
}
body[data-page="home"] #about-snapshot .stat-row { margin-top: 0.6rem; padding-block: 0.5rem; }

/* Home products: reuse the products-page .prod-card design as-is.
   Only add the 4-per-row grid + a compact title in the card body. */
.hp-grid {
  list-style: none;
  margin: clamp(1.5rem, 3vw, 2.5rem) auto 0;
  padding: 0;
  max-width: 88rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));   /* 4 categories → one line */
  gap: clamp(1rem, 2vw, 1.75rem);
}
.hp-grid .prod-card > a { display: block; color: inherit; }
.hp-grid > .prod-card { min-width: 0; }
.hp-grid .prod-card__body { padding: clamp(0.85rem, 1.6vw, 1.15rem); }
.hp-grid .prod-card__body h3 {
  font-size: 1.15rem;
  margin: 0;
  line-height: 1.25;
}
@media (max-width: 900px) {
  .hp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hp-grid { grid-template-columns: 1fr; max-width: 26rem; }
  .hp-grid .prod-card__body h3 { font-size: 1rem; }
}

/* --- Compact category tiles (icon + title + arrow) --- */
.cat-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  max-width: 60rem;
  margin-inline: auto;
}
.cat-mini__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  padding: 1.6rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(32, 29, 24, 0.09);
  background: var(--glass, rgba(255,255,255,.55));
  color: var(--c-espresso);
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.cat-mini__tile:hover {
  transform: translateY(-4px);
  border-color: var(--c-accent);
  box-shadow: var(--shadow-2, 0 12px 28px rgba(0,0,0,.1));
  color: var(--c-espresso);
}
.cat-mini__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--c-accent-soft, rgba(0,111,115,.1));
  color: var(--c-accent);
}
.cat-mini__icon svg { width: 22px; height: 22px; }
.cat-mini__tile h3 {
  font-size: 0.98rem;
  margin: 0;
  line-height: 1.3;
}
.cat-mini__go {
  color: var(--c-accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.cat-mini__go svg { width: 18px; height: 18px; }
.cat-mini__tile:hover .cat-mini__go { opacity: 1; transform: translateX(0); }

/* --- Certification logo row --- */
.cert-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.cert-row img {
  height: 52px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  transition: transform 220ms ease;
}
.cert-row img:hover { transform: translateY(-3px); }
.cert-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--c-ink-muted);
  opacity: 0.75;
}

/* --- Process: title-only steps --- */
.process__step p:empty { display: none; }


/* --- Certification logos: larger, evenly baselined --- */
.cert-row img { height: 68px; max-width: 165px; }
.cert-word { font-size: 1.02rem; }

/* --- Cert logos: let each SVG keep its own aspect ratio --- */
.cert-row img {
  height: auto;
  width: auto;
  max-height: 62px;
  max-width: 150px;
  object-fit: contain;
}

/* --- Cert row: give each logo an equal, generous box; never crop --- */
.cert-row li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 76px;
  min-width: 96px;
}
.cert-row img {
  display: block;
  height: 100%;
  width: 100%;
  max-height: 76px;
  max-width: 128px;
  object-fit: contain;
  object-position: center;
}

/* Hero lede sits under the headline, centered and restrained */
.hero--minimal .lede {
  max-width: 46ch;
  margin: 1.9rem auto 0;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  color: var(--c-ink-muted);
  line-height: 1.6;
}

/* ============================================================
   HEADER — logo mark only, fixed size (no shrink on scroll)
   ============================================================ */
.nav__inner {
  padding: 0.9rem 1rem 0.9rem 1.2rem;
  gap: var(--sp-3);
}
/* Header geometry is IDENTICAL scrolled or not — only the glass tint changes. */
.nav.is-scrolled .nav__inner {
  padding: 0.9rem 1rem 0.9rem 1.2rem;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.nav__logo,
.nav.is-scrolled .nav__logo {
  width: auto;
  height: 76px;
  border-radius: 0;
  flex: none;
  transition: none;      /* never animate size */
}

@media (max-width: 900px) {
  .nav__logo, .nav.is-scrolled .nav__logo { height: 54px; }
  .nav__inner, .nav.is-scrolled .nav__inner { padding: 0.7rem 0.9rem; }
}

/* Footer — same mark */
.footer__brand { display: flex; align-items: center; }
.footer__logo {
  width: auto;
  height: 82px;
  border-radius: 0;
  flex: none;
}

/* ============================================================
   PROCESS — horizontal timeline (6 steps across)
   ============================================================ */
.process__rail {
  /* rail now runs horizontally, centred on the marker row */
  left: 0;
  right: 0;
  top: 26px;              /* half the marker height */
  bottom: auto;
  width: auto;
  height: 2px;
  margin-inline: 8%;      /* stop short of the first/last marker */
}
.process__rail i {
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-dark));
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}
.process__steps {
  grid-template-columns: repeat(7, 1fr);   /* home: 7 steps, single row */
  gap: 0.75rem;
  align-items: start;
}
/* About "End-to-End, Under One Roof": 7 steps — wider row, tighter gaps so
   descriptions expand and short last lines pull up */
#infrastructure .container { width: min(100% - 1.5rem, 104rem); }
#infrastructure .process__steps { grid-template-columns: repeat(7, 1fr); gap: 0.4rem; }
#infrastructure .process__step p { font-size: 0.78rem; }
.process__step {
  grid-template-columns: 1fr;   /* marker above title */
  justify-items: center;
  text-align: center;
  gap: 0.9rem;
}
.process__step h3 {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.3;
}
.process__step p {
  margin: 0.35rem 0 0;
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--c-ink-muted);
  max-width: 100%;
}

/* Tablet: 3 across, two rows */
@media (max-width: 900px) {
  .process__steps { grid-template-columns: repeat(3, 1fr); gap: 2rem 1rem; }
  .process__rail { display: none; }   /* a single rail can't span wrapped rows */
}
/* Phone: 2 across */
@media (max-width: 560px) {
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .process__step h3 { font-size: 0.9rem; }
}

/* Horizontal process: steps light up in sequence as the rail sweeps across.
   Dim until active so the progression is actually visible. */
.process__step { transition: opacity 320ms ease; opacity: 0.45; }
.process__step.is-active { opacity: 1; }
.process__rail i { transition: transform 120ms linear; }
@media (prefers-reduced-motion: reduce) {
  .process__step { opacity: 1; transition: none; }
}

/* --- Certification row: 9 real logos, wrapping onto two tidy rows --- */
.cert-row {
  gap: clamp(1.75rem, 3.5vw, 3.25rem) clamp(2rem, 4vw, 4rem);
  max-width: 62rem;
  margin-inline: auto;
}
.cert-row li { height: 72px; min-width: 88px; }
.cert-row img { max-height: 72px; max-width: 140px; }

/* --- Certification groups (Company / Product) --- */
.cert-group__title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--c-espresso);
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(0.9rem, 2vw, 1.35rem);
}
.cert-group__title:first-of-type { margin-top: 0; }

/* 7 logos per row, tiles 20% larger */
.cert-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  max-width: 94rem;          /* wider section */
  margin-inline: auto;
  padding: 0;
  list-style: none;
  justify-items: center;
  align-items: center;
}
.cert-row li {
  height: auto;
  min-width: 0;
  width: 100%;
  display: grid;
  place-items: center;
}
/* All logos are trimmed + normalised to a square canvas, so a single fixed box
   makes every mark read at the same optical size. */
.cert-row img {
  width: 100%;
  max-width: 150px;      /* wide wordmarks (ICS, GRS, Higg) get room to scale up */
  height: 96px;
  object-fit: contain;
  display: block;
}
@media (max-width: 1100px) {
  .cert-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cert-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cert-row img { max-height: 66px; }
}

/* --- Compliance badges (text chips) --- */
.cert-badges {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 62rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.cert-badges li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.cert-badge-chip {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--c-accent);
  padding: 0.55rem 1.1rem;
  border: 1.5px solid rgba(11, 126, 130, 0.28);
  border-radius: 999px;
  background: var(--c-accent-soft);
  line-height: 1;
}
.cert-badges small {
  font-size: 0.78rem;
  color: var(--c-ink-muted);
}

/* --- Deep-linked service cards: clear the fixed header, and flag the target --- */
.svc-card[id] { scroll-margin-top: 7.5rem; }
.svc-card:target {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(11, 126, 130, 0.16), var(--shadow-2);
}

/* ============================================================
   GLASSMORPHISM PASS
   Per the glassmorphism spec: frosted surfaces only read when there is
   something vibrant BEHIND them to blur. The site was flat cream, so the
   existing backdrop-filters had nothing to work on. We add soft teal colour
   fields to the section backgrounds, then let the glass surfaces float over
   them. Blur 10–20px, translucency 15–30%, 1px light border, AA contrast kept.
   ============================================================ */

/* --- Ambient colour fields: the "vibrant background" glass needs --- */
.section,
.page-hero { position: relative; isolation: isolate; }

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38rem 28rem at 12% 8%,  rgba(11, 126, 130, 0.10), transparent 62%),
    radial-gradient(32rem 26rem at 88% 92%, rgba(79, 179, 174, 0.10), transparent 60%);
}
.section--beige::before {
  background:
    radial-gradient(40rem 30rem at 85% 10%, rgba(11, 126, 130, 0.14), transparent 62%),
    radial-gradient(34rem 26rem at 10% 90%, rgba(79, 179, 174, 0.12), transparent 60%);
}
.section--dark::before {
  background:
    radial-gradient(40rem 30rem at 15% 0%,  rgba(79, 179, 174, 0.16), transparent 62%),
    radial-gradient(34rem 28rem at 90% 100%, rgba(11, 126, 130, 0.20), transparent 60%);
}

/* --- Glass surfaces: proper frosted treatment --- */
.glass-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.62),
    rgba(255, 255, 255, 0.34)
  );
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
          backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 8px 32px rgba(9, 62, 64, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);   /* top-edge light catch */
}
.glass-card--hover:hover {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.74),
    rgba(255, 255, 255, 0.46)
  );
  box-shadow:
    0 14px 40px rgba(9, 62, 64, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* Nav bar — the classic glass surface */
.nav__inner {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.66),
    rgba(255, 255, 255, 0.42)
  );
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
          backdrop-filter: blur(20px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 8px 32px rgba(9, 62, 64, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.nav.is-scrolled .nav__inner {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.80),
    rgba(255, 255, 255, 0.60)
  );
  box-shadow:
    0 10px 36px rgba(9, 62, 64, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Dropdown submenu — floating glass panel */
.submenu {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.86),
    rgba(255, 255, 255, 0.70)
  );
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
          backdrop-filter: blur(20px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 16px 40px rgba(9, 62, 64, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Compact category tiles — glass, not flat panels */
.cat-mini__tile {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.58),
    rgba(255, 255, 255, 0.30)
  );
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
          backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow:
    0 6px 24px rgba(9, 62, 64, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.cat-mini__tile:hover {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.74),
    rgba(255, 255, 255, 0.44)
  );
  border-color: rgba(11, 126, 130, 0.42);
  box-shadow:
    0 14px 36px rgba(9, 62, 64, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* Process markers — frosted discs on the rail */
.process__marker {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.78),
    rgba(255, 255, 255, 0.48)
  );
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
          backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.process__step.is-active .process__marker {
  background: linear-gradient(145deg, var(--c-accent), var(--c-accent-ink));
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* Form fields — clearly visible default inputs */
.field input,
.field select,
.field textarea {
  background: #ffffff;
  border: 1.5px solid rgba(11, 52, 54, 0.22);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(11, 52, 54, 0.45);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  background: #ffffff;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3.5px rgba(11, 126, 130, 0.18);
  outline: none;
}

/* Contact channel cards */
.contact-channels a {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.58),
    rgba(255, 255, 255, 0.32)
  );
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
          backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Graceful degradation: browsers without backdrop-filter get solid surfaces
   so text never lands on a washed-out translucent panel. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-card,
  .nav__inner,
  .submenu,
  .cat-mini__tile,
  .process__marker { background: rgba(255, 255, 255, 0.94); }
}

/* --- Footer: even columns, consistent baselines --- */
.footer__grid > * { min-width: 0; }
.footer__grid h4 {
  margin: 0 0 1rem;
  line-height: 1.2;
}
.footer__brand { margin-bottom: 1.1rem; }
.footer__grid address { line-height: 1.7; font-style: normal; }
.footer__grid nav ul { display: grid; gap: 0.55rem; }
.footer__grid p { margin: 0; max-width: 52ch; line-height: 1.6; }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__grid > :first-child { grid-column: auto; }
}

/* ============================================================
   HERO BRAND MARK
   The wordmark reads poorly in the tight header bar, so the company name
   lives here instead — a frosted pill above the headline, in brand teal.
   ============================================================ */
.hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 auto 1.6rem;
  padding: 0.55rem 1.35rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.82rem, 1.05vw, 0.95rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent-ink);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.68),
    rgba(255, 255, 255, 0.40)
  );
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
          backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(11, 126, 130, 0.22);
  box-shadow:
    0 6px 24px rgba(9, 62, 64, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
/* Teal rule either side, so it reads as a brand mark not a button */
.hero__brand::before,
.hero__brand::after {
  content: "";
  width: 1.4rem;
  height: 1px;
  background: var(--c-accent);
  opacity: 0.55;
}
@media (max-width: 560px) {
  .hero__brand { letter-spacing: 0.16em; padding: 0.5rem 1rem; }
  .hero__brand::before, .hero__brand::after { width: 0.8rem; }
}

/* ============================================================
   WHO WE ARE — three pillars + a clean stat row
   Replaces the old 2-column split, which collapsed badly once the home
   page went centre-aligned (stray button between checklist and stats).
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  max-width: 64rem;
  margin: 0 auto;
}
.pillar {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2vw, 1.75rem);
}
.pillar__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: var(--c-accent);
  background: rgba(11, 126, 130, 0.10);
  border: 1px solid rgba(11, 126, 130, 0.18);
}
.pillar__icon svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 1.15rem; margin: 0; }
.pillar p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--c-ink-muted);
  line-height: 1.6;
  max-width: 26ch;
}

/* Numbers: a quiet row, not four more cards competing with the pillars */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 64rem;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding: clamp(1.5rem, 3vw, 2rem) 1rem;
  border-top: 1px solid rgba(11, 126, 130, 0.16);
  border-bottom: 1px solid rgba(11, 126, 130, 0.16);
}
.stat-row__item { text-align: center; }
.stat-row__item .stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  line-height: 1;
  color: var(--c-espresso);
}
.stat-row__item .stat__num sup {
  font-size: 0.5em;
  color: var(--c-accent);
  margin-left: 0.08em;
}
.stat-row__item .stat__label {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--c-ink-muted);
}

@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; max-width: 30rem; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; }
}

/* .center wraps a button in a <p>, which inherits the global `p { max-width:
   68ch }` prose cap — that made the wrapper ~686px wide and left-aligned, so
   the button never reached the true centre. Clear the cap and centre the box. */
.center {
  display: flex;
  justify-content: center;
  max-width: none;
  width: 100%;
}

/* ============================================================
   CERTIFICATIONS GRID (About) — real logos in glass cards,
   matching the homepage logo strip rather than generic badge icons.
   ============================================================ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  max-width: 68rem;
  margin-inline: auto;
}
.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1.25rem, 2vw, 1.5rem);
}
.cert-item__logo {
  display: grid;
  place-items: center;
  height: 72px;
  width: 100%;
}
.cert-item__logo img {
  max-height: 72px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.cert-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--c-espresso);
  margin-bottom: 0.35rem;
}
.cert-item span {
  display: block;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--c-ink-muted);
}

@media (max-width: 900px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cert-grid { grid-template-columns: 1fr; max-width: 24rem; } }

/* ============================================================
   PRODUCTS — compact category grid
   Replaces six full-height alternating split sections (which made the page
   sprawl) with one tight 3-up grid of image cards.
   ============================================================ */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* all four categories in one line, equal size */
  gap: clamp(1rem, 2vw, 1.5rem);
  max-width: 88rem;
  margin-inline: auto;
}
.prod-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.62),
    rgba(255, 255, 255, 0.36)
  );
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
          backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 8px 28px rgba(9, 62, 64, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
  scroll-margin-top: 7.5rem;   /* deep links clear the fixed header */
}
.prod-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 18px 44px rgba(9, 62, 64, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.prod-card:target {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(11, 126, 130, 0.18), var(--shadow-2);
}

.prod-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.prod-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease-out);
}
.prod-card:hover .prod-card__media img { transform: scale(1.05); }

/* Number chip — frosted, sits on the image */
.prod-card__no {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 0.5rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--c-accent-ink);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.prod-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1.15rem, 2vw, 1.5rem);
  flex: 1;
}
.prod-card__body h2 {
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.25;
}
.prod-card__body > p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--c-ink-muted);
  max-width: none;
}
.prod-card__body ul {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.prod-card__body li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--c-ink);
}
.prod-card__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-accent);
}
.prod-card__tags {
  margin: auto 0 0 !important;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(11, 126, 130, 0.14);
  font-size: 0.78rem !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--c-accent-ink) !important;
}

@media (max-width: 980px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .prod-grid { grid-template-columns: 1fr; max-width: 26rem; } }

/* ============================================================
   MOBILE NAV — fixes
   The sheet was 72% translucent and sat at z-index:-1, so the page showed
   straight through the open menu and the links were unreadable. Make it an
   opaque, properly-layered overlay, inline the submenu, and raise the tap
   targets to the 44px minimum.
   ============================================================ */
@media (max-width: 900px) {
  /* CRITICAL: .nav__inner carries backdrop-filter, and a backdrop-filter
     establishes a containing block for position:fixed descendants — which
     trapped the full-screen sheet inside the 364x144 nav pill. Drop the blur
     on mobile (the bar is opaque there anyway) so the sheet can escape. */
  .nav__inner {
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    background: var(--c-cream);
    position: relative;
    z-index: 100;
  }
  .nav.is-scrolled .nav__inner {
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    background: var(--c-cream);
  }
  .nav__sheet {
    z-index: 90;                       /* above page content, below the bar */
    background: var(--c-cream);        /* opaque — no bleed-through */
    overflow-y: auto;                  /* long menu must scroll */
    -webkit-overflow-scrolling: touch;
    padding: 6.5rem 1.5rem 2.5rem;
  }

  /* 44px minimum touch target (Apple HIG / WCAG) */
  .nav__links a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  /* Submenu: inline list, not a floating glass panel */
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    border: 0;
    box-shadow: none;
    min-width: 0;
    padding: 0.1rem 0 0.3rem 0.9rem;
    margin: 0;
    border-left: 2px solid rgba(11, 126, 130, 0.22);
  }
  .submenu a {
    min-height: 44px;
    font-size: 1rem;
    opacity: 0.85;
    padding: 0.5rem 0.75rem;
  }
  .caret { display: none; }
}

/* Dashboard mockup chips sat below the 12px readable floor. */
.dash__chip { font-size: 0.75rem; }

/* ============================================================
   HERO DESIGN SWITCH  —  classic (default) vs banner
   ============================================================ */
.design-switch {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1rem 0.6rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 52, 54, 0.14);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 22px rgba(9, 62, 64, 0.16);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-espresso);
  cursor: pointer;
  transition: box-shadow 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.design-switch:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(9, 62, 64, 0.22); }
.design-switch__dot {
  width: 30px;
  height: 18px;
  border-radius: 999px;
  background: rgba(11, 52, 54, 0.22);
  position: relative;
  transition: background-color 220ms var(--ease-out);
  flex: none;
}
.design-switch__dot::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 220ms var(--ease-out);
}
.design-switch.is-on .design-switch__dot { background: var(--c-accent); }
.design-switch.is-on .design-switch__dot::after { transform: translateX(12px); }

/* ---------- Banner hero: hero + who-we-are over a background image ---------- */
.hero-banner {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: 9rem 0 4rem;
  overflow: clip;
}
.hero-banner__slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-banner__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1400ms var(--ease-out), transform 7000ms linear;
}
.hero-banner__slide.is-active {
  opacity: 1;
  transform: scale(1);          /* slow Ken-Burns drift while visible */
}
@media (prefers-reduced-motion: reduce) {
  .hero-banner__slide { transition: opacity 400ms linear; transform: none; }
  .hero-banner__slide.is-active { transform: none; }
}
.hero-banner__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 40, 42, 0.72) 0%, rgba(6, 40, 42, 0.58) 45%, rgba(6, 40, 42, 0.78) 100%);
}
.hero-banner__inner { text-align: center; color: #fff; }
.hero-banner h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 1rem;
}
.hero-banner h1 .accent { color: #7FD4D8; }
.hero-banner__lede {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 58rem;
  margin: 0 auto clamp(1.75rem, 3.5vw, 2.75rem);
}
.hero-banner__eyebrow {
  justify-content: center;
  color: #7FD4D8;
  margin-bottom: 0.75rem;
}
.hero-banner__eyebrow::before { background: #7FD4D8; }
.hero-banner__about {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-inline: 0;   /* full width so the copy fits in 3 lines */
  text-wrap: pretty;
}
.hero-banner__stats {
  border-top-color: rgba(255, 255, 255, 0.28);
  border-bottom-color: rgba(255, 255, 255, 0.28);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.hero-banner__stats .stat__num { color: #fff; }
.hero-banner__stats .stat__num sup { color: #7FD4D8; }
.hero-banner__stats .stat__label { color: rgba(255, 255, 255, 0.75); }

@media (max-width: 700px) {
  .hero-banner { padding: 7.5rem 0 3rem; min-height: 0; }
  .design-switch { right: 0.75rem; bottom: 0.75rem; font-size: 0.78rem; }
}

/* Banner is the default variant; classic is hidden until the switch turns it on. */
[data-variant="classic"] { display: none; }
[data-variant="banner"] { display: grid; }
[hidden] { display: none !important; }

/* --- Banner mode: header sits transparent over the banner, solid once scrolled --- */
body.is-banner .nav:not(.is-scrolled) .nav__inner {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  backdrop-filter: blur(8px) saturate(1.1);
  transition: background-color var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out);
}
/* Legible on the dark banner while transparent */
body.is-banner .nav:not(.is-scrolled) .nav__links a { color: #fff; background: transparent; }
body.is-banner .nav:not(.is-scrolled) .nav__links a:hover { background: transparent; color: #fff; }
body.is-banner .nav:not(.is-scrolled) .nav__links a[aria-current="page"] {
  background: transparent;
  color: #fff;
  font-weight: 600;
}
body.is-banner .nav:not(.is-scrolled) .nav__name { color: #fff; }
body.is-banner .nav:not(.is-scrolled) .nav__toggle { color: #fff; }

/* ============================================================
   CERTIFICATIONS — infinite scrolling marquee (two opposing rows)
   ============================================================ */
.cert-marquee {
  position: relative;
  overflow: hidden;
  padding: 0.35rem 0;
  /* Soft fade at both edges so logos glide in/out instead of clipping */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.cert-marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(2.25rem, 4.5vw, 4.5rem);
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: cert-scroll 60s linear infinite;
}
.cert-marquee[data-dir="right"] .cert-marquee__track { animation-direction: reverse; }
.cert-marquee:hover .cert-marquee__track { animation-play-state: paused; }

.cert-marquee__track li {
  flex: none;
  display: grid;
  place-items: center;
  height: 78px;
}
.cert-marquee__track img {
  height: 78px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
  opacity: 0.78;
  filter: saturate(0.85);
  transition: opacity 260ms var(--ease-out), filter 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.cert-marquee__track li:hover img {
  opacity: 1;
  filter: saturate(1.05);
  transform: scale(1.06);
}

@keyframes cert-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }   /* list is duplicated → seamless loop */
}

/* ---------- Certifications: single static grid (no scroll, one of each) ---------- */
.cert-grid {
  list-style: none;
  margin: clamp(1.25rem, 2.5vw, 2rem) auto 0;
  padding: 0;
  max-width: 90rem;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-auto-rows: 106px;                   /* EVERY row is exactly this tall */
  column-gap: clamp(0.75rem, 1.5vw, 1.5rem);
  row-gap: clamp(1rem, 2vw, 1.75rem);
}
/* Each logo sits in an identical fixed cell and is contained inside it, so
   every mark occupies the same box and the rows stay perfectly aligned. */
.cert-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 106px;                           /* matches grid-auto-rows */
  padding: 8px;
  overflow: hidden;                        /* nothing bleeds into neighbours */
}
.cert-grid img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 0.85;
  filter: saturate(0.92);
  transition: opacity 260ms var(--ease-out), filter 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.cert-grid li:hover img { opacity: 1; filter: saturate(1.05); transform: scale(1.05); }
@media (max-width: 1100px) {
  .cert-grid { grid-template-columns: repeat(7, 1fr); grid-auto-rows: 92px; }
  .cert-grid li { height: 92px; }
}
@media (max-width: 700px) {
  .cert-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 79px; }
  .cert-grid li { height: 79px; }
}
/* Placeholder tile — holds a logo's slot until the client sends the file */
.cert-grid__todo {
  width: 100%;
  min-height: 72px;
  border: 1px dashed rgba(11, 52, 54, 0.28);
  border-radius: 10px;
  padding: 0.4rem;
  background: rgba(11, 52, 54, 0.03);
}
.cert-grid__todo span {
  font-size: 0.62rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--c-ink-muted);
  text-transform: uppercase;
}
@media (max-width: 1200px) {
  .cert-grid { grid-template-columns: repeat(7, 1fr); }
}
@media (max-width: 900px) {
  .cert-grid { grid-template-columns: repeat(5, 1fr); }
  .cert-grid img { height: 68px; }
}
@media (max-width: 560px) {
  .cert-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem 1rem; }
  .cert-grid img { height: 57px; }
}

/* How It Works — full-visibility body copy under the lede */
/* Services digital-transparency: let the description expand wide (fewer lines) */
#digital-transparency .section-head { max-width: 80rem; }
#digital-transparency .section-head .lede { margin-inline: auto; }
/* Top-align the two lists so "What You Gain" starts level with "What We Monitor" */
#digital-transparency .split { align-items: start; }

/* How It Works — wider block so the copy sits on fewer lines and the
   section stays short rather than tall. */
#how-it-works { padding-block: clamp(2.5rem, 5vw, 4rem); }
#how-it-works .section-head {
  max-width: 72rem;                 /* wider than the default 46rem */
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}
#how-it-works .section-head .lede { max-width: 66rem; margin-inline: auto; }
.how-it-works__body {
  max-width: 78rem;                 /* full-width copy → fewer lines, less height */
  margin: 1rem auto 0;
  color: var(--c-ink);
  line-height: 1.65;
}

@media (max-width: 760px) {
  .cert-marquee__track li,
  .cert-marquee__track img { height: 60px; }
  .cert-marquee__track { gap: 2rem; animation-duration: 45s; }
}
@media (prefers-reduced-motion: reduce) {
  .cert-marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .cert-marquee { mask-image: none; -webkit-mask-image: none; }
}

/* ============================================================
   MOBILE HEADER + HERO FIXES (<= 760px)
   Logo left, name beside it on the right, compact height.
   ============================================================ */
@media (max-width: 760px) {
  /* --- Compact header: brand sits in one row, left-aligned --- */
  .nav__inner,
  .nav.is-scrolled .nav__inner {
    min-height: 0;
    padding: 0.4rem 0.8rem;
    align-items: center;
  }
  .nav__brand {
    flex-direction: row;        /* logo left, text to its right */
    align-items: center;
    gap: 0.55rem;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
  }
  .nav__logo,
  .nav.is-scrolled .nav__logo { height: 40px; }
  .nav__name {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-align: left;
    line-height: 1;
    max-width: none;
    white-space: nowrap;     /* one line beside the logo */
  }

  /* Centred-nav rule from desktop must not apply on mobile */
  .nav__links {
    position: static;
    left: auto;
    transform: none;
  }

  /* --- Hero clears the compact header, no crowding --- */
  .hero--minimal {
    height: auto;
    min-height: 0;
    padding: 6rem 0 2.5rem;
  }
  .hero-banner {
    min-height: 0;
    padding: 6.5rem 0 2.5rem;
  }
  body[data-page="home"] #about-snapshot {
    height: auto;
    min-height: 0;
    padding-block: 1.25rem 1.75rem;
  }

  /* --- Kill the horizontal overflow: let text wrap inside the screen --- */
  html, body { overflow-x: hidden; }
  .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 1.1rem;
    box-sizing: border-box;
  }
  .hero-banner h1,
  .hero--minimal h1 {
    font-size: clamp(1.75rem, 8.2vw, 2.4rem);
    line-height: 1.12;
    overflow-wrap: break-word;
  }
  .hero-banner h1 br,
  .hero--minimal h1 br { display: none; }   /* let it wrap naturally */
  .hero-banner__lede,
  .hero--minimal .lede {
    font-size: 0.95rem;
    max-width: 100%;
  }
  .hero-banner__about {
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 100%;
    padding-inline: 0.5rem;   /* less side padding on mobile — text needs the width */

  }
  .hero-banner__stats,
  body[data-page="home"] #about-snapshot .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 0.5rem;
  }
  .stat-row__item .stat__num { font-size: clamp(1.9rem, 9vw, 2.6rem); }
}

/* ============================================================
   ABOUT PAGE — new components (2026-07 update)
   ============================================================ */

/* Animated dotted world map — India + Germany pins + flowing corridor arc */
.geomap {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(9, 62, 64, 0.5);
  line-height: 0;
}
.geomap__base { width: 100%; height: auto; display: block; }
.geomap__fx { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* Two country maps side by side (India | Germany) — same total section size */
.wwa-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.geomap--half { max-width: none; margin: 0; }
.geomap--half .geomap__label--big { font-size: 64px; }
.geomap__marker { color: #eafcff; filter: drop-shadow(0 0 7px #7FD4D8); }
@media (max-width: 640px) { .wwa-pair { grid-template-columns: 1fr; } }

/* corridor arc — faint static base line with a soft breathing glow */
.geomap__arc {
  fill: none; stroke: #7FD4D8; stroke-width: 2.5; opacity: 0.30; stroke-linecap: round;
  animation: geo-breathe 3.6s ease-in-out infinite;
}
@keyframes geo-breathe { 0%,100% { opacity: 0.18; } 50% { opacity: 0.42; } }

/* a bright segment that repeatedly draws itself along the arc (path length ≈ 337) */
.geomap__arc--draw {
  stroke: #7FD4D8; stroke-width: 2.5;
  stroke-dasharray: 337 337;
  filter: drop-shadow(0 0 4px #7FD4D8);
  animation: geo-draw 3.4s ease-in-out infinite;
}
@keyframes geo-draw {
  0%   { stroke-dashoffset: 337; opacity: 0; }
  12%  { opacity: 0.85; }
  65%  { stroke-dashoffset: 0; opacity: 0.85; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* travelling comet lights — three staggered dots stream cleanly along the
   337-long path. dasharray = dot(20) + gap(337); offset runs 357 -> 0 so the
   dot enters exactly at Germany and exits exactly at India with no skip/stall. */
.geomap__flow {
  fill: none; stroke: #eafcff; stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 20 337; filter: drop-shadow(0 0 8px #bff3f6);
  animation: geo-flow 3.6s linear infinite;
}
.geomap__flow--2 { stroke-width: 3; opacity: 0.85; animation-delay: 1.2s; }
.geomap__flow--3 { stroke-width: 2.4; opacity: 0.6; animation-delay: 2.4s; }
@keyframes geo-flow { from { stroke-dashoffset: 357; } to { stroke-dashoffset: 0; } }

/* pin core (solid glowing dot) */
.geomap__core { fill: #eafcff; stroke: #7FD4D8; stroke-width: 2; filter: drop-shadow(0 0 6px #7FD4D8); }
/* pulsing halo ring around each pin */
.geomap__halo {
  fill: #7FD4D8; opacity: 0.5;
  transform-box: fill-box; transform-origin: center;
  animation: geo-ping 2.8s ease-out infinite;
}
.geomap__pin--b .geomap__halo { animation-delay: 1.4s; }
@keyframes geo-ping {
  0%   { transform: scale(0.6); opacity: 0.6; }
  70%,100% { transform: scale(3.6); opacity: 0; }
}

.geomap__label {
  fill: #ffffff; font-family: var(--font-display, sans-serif); font-weight: 700;
  font-size: 24px; text-anchor: middle;
  paint-order: stroke; stroke: rgba(6,40,42,0.6); stroke-width: 3px;
}
.geomap__label--r { text-anchor: start; }
@media (max-width: 620px) { .geomap__label { font-size: 34px; } }

@media (prefers-reduced-motion: reduce) {
  .geomap__halo, .geomap__flow { animation: none; }
  .geomap__flow { opacity: 0; }
}

/* Where we are — two clean location cards (India + Germany) */
.hubs {
  list-style: none; margin: clamp(1.5rem, 3vw, 2.5rem) auto 0; padding: 0;
  max-width: 60rem;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}
.hub {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #ffffff, #f2f8f7);
  border: 1px solid rgba(11, 52, 54, 0.10);
  border-radius: 20px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 18px 44px -28px rgba(9, 62, 64, 0.35);
}
.hub::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--c-accent), #0b7e82);
}
.hub__flag { font-size: 2rem; line-height: 1; display: block; margin-bottom: 0.75rem; }
.hub__pin {
  position: absolute; top: clamp(1.5rem, 4vw, 2.25rem); right: clamp(1.5rem, 4vw, 2.25rem);
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: #dceeed; color: #0b7e82;
}
.hub__pin svg { width: 22px; height: 22px; }
.hub h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 0 0 0.3rem; }
.hub__role { color: var(--c-accent-ink, #0b7e82); font-weight: 600; margin: 0 0 0.75rem; }
.hub__addr { color: var(--c-ink-muted); line-height: 1.6; margin: 0; }
@media (max-width: 640px) { .hubs { grid-template-columns: 1fr; } }

/* Leadership note — founder quote card */
.leader {
  position: relative;
  margin: 0 auto;
  max-width: 66rem;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.5rem);
  background: linear-gradient(150deg, #ffffff 0%, #f2f8f7 100%);
  border: 1px solid rgba(11, 52, 54, 0.10);
  border-radius: 24px;
  box-shadow: 0 24px 60px -30px rgba(9, 62, 64, 0.35);
  overflow: hidden;
}
/* subtle accent bar down the left edge */
.leader::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 5px;
  background: linear-gradient(180deg, var(--c-accent), #0b7e82);
}
/* oversized decorative quote mark */
.leader__mark {
  position: absolute; top: clamp(0.5rem, 2vw, 1.5rem); right: clamp(1rem, 4vw, 3rem);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(6rem, 16vw, 12rem); line-height: 1; color: var(--c-accent);
  opacity: 0.14; pointer-events: none; user-select: none;
}
.leader__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 140px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
.leader__aside { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.leader__photo {
  width: 120px; height: 120px; border-radius: 50%; overflow: hidden; flex: none;
  background: linear-gradient(145deg, #dceeed, #eef4f3);
  box-shadow: 0 0 0 6px #ffffff, 0 0 0 8px rgba(11, 126, 130, 0.30);
}
.leader__photo img { width: 100%; height: 100%; object-fit: cover; }
.leader__photo.is-empty { position: relative; }
.leader__photo.is-empty::after {
  content: "Founder photo"; position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center;
  font-size: 0.75rem; font-weight: 600; color: #0b7e82; padding: 1rem;
}
.leader__cite { line-height: 1.35; }
.leader__cite strong { display: block; font-family: var(--font-display); color: var(--c-espresso); font-size: 1.1rem; }
.leader__cite span { display: block; color: var(--c-accent-ink, #0b7e82); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; }
.leader__eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-accent-ink, #0b7e82); margin: 0 0 0.9rem;
}
.leader blockquote {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem); line-height: 1.5; color: var(--c-espresso);
  text-wrap: balance;
}
/* Wide variant — wider card, SAME height: smaller font so the quote lands on ~3 lines */
.leader--wide { max-width: 92rem; }
.leader--wide .leader__grid { grid-template-columns: 180px 1fr; gap: clamp(2rem, 5vw, 3.5rem); }
.leader--wide blockquote { font-size: clamp(0.95rem, 1.3vw, 1.15rem); line-height: 1.5; text-wrap: pretty; }
@media (max-width: 680px) {
  .leader__grid { grid-template-columns: 1fr; text-align: center; }
  .leader__mark { opacity: 0.1; }
}

/* Capability strip — six short labels with detail (replaces 6 cards) */
.capstrip {
  list-style: none; margin: clamp(1.5rem,3vw,2.5rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem) clamp(1.5rem, 3vw, 2.75rem);
}
.capstrip li { display: flex; gap: 0.85rem; align-items: flex-start; }
.capstrip__icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: #dceeed; color: #0b7e82;
}
.capstrip__icon svg { width: 22px; height: 22px; }
.capstrip__text { line-height: 1.5; font-size: 0.95rem; color: var(--c-ink-muted); }
.capstrip__text strong { display: block; color: var(--c-espresso); font-size: 1.02rem; margin-bottom: 0.15rem; }
@media (max-width: 860px) { .capstrip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .capstrip { grid-template-columns: 1fr; } }

/* Sustainability checklist — two columns now the right box is gone */
.checklist--2col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem 2rem; }
@media (max-width: 700px) { .checklist--2col { grid-template-columns: 1fr; } }

/* Mobile-only line break helper: renders nothing on desktop */
.br-mobile { display: none; }

/* Comparison table — Typical Buying Office vs Marvel Home Fashion */
.compare { margin-top: clamp(1.5rem, 3vw, 2.5rem); overflow-x: auto; }
.compare__table {
  width: 100%; border-collapse: collapse; min-width: 40rem;
  background: var(--c-cream); border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(11,52,54,0.12);   /* outer border — same grey as inner lines */
}
.compare__table th, .compare__table td {
  padding: 1rem 1.15rem; text-align: left; vertical-align: top;
  border-bottom: 1px solid rgba(11,52,54,0.12);
  border-right: 1px solid rgba(11,52,54,0.12);   /* vertical grid lines */
  line-height: 1.5; font-size: 0.95rem;
}
.compare__table th:last-child, .compare__table td:last-child { border-right: 0; }
.compare__table thead th {
  font-family: var(--font-display); font-size: 1rem; color: var(--c-espresso);
  background: rgba(11,52,54,0.04);
}
.compare__table tbody th {
  font-family: var(--font-display); color: var(--c-espresso); font-weight: 700; white-space: nowrap;
}
.compare__table td { color: var(--c-ink-muted); }

/* Highlight the Marvel Home Fashion column (3rd/last) in the brand accent */
.compare__table thead th.compare__mhf {
  color: #fff; background: var(--c-accent, #0b7e82);
}
.compare__table th:nth-child(3),
.compare__table td:nth-child(3) {
  background: var(--c-accent-soft, rgba(11,126,130,0.08));
  color: var(--c-espresso); font-weight: 600;
  border-right: 1px solid rgba(11,126,130,0.22);
  border-left: 1px solid rgba(11,126,130,0.22);
}
.compare__table tbody tr:last-child th, .compare__table tbody tr:last-child td { border-bottom: 0; }

/* ============================================================
   SUSTAINABILITY PAGE — new components (2026-07 update)
   ============================================================ */

/* Intro — wide statement block + Reduce/Reuse/Recycle as three bold columns */
/* Intro — starts at the standard content edge (no centering cap), full width */
.sus-intro { max-width: none; margin: 0; }
.sus-intro > p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--c-ink);
  text-align: left;
  text-wrap: normal;
  margin: 0;
  max-width: none;   /* override the global p 68ch cap so the block runs the full container */
}
.sus-principle {
  list-style: none;
  max-width: 88rem;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.5rem);
  background: linear-gradient(135deg, rgba(11, 126, 130, 0.08), rgba(79, 179, 174, 0.08));
  border: 1px solid rgba(11, 126, 130, 0.18);
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.sus-principle li { flex: 1; text-align: center; position: relative; }
.sus-principle li + li::before {
  content: "\2192";                     /* → the cycle arrow */
  position: absolute;
  left: calc(-0.5 * clamp(2rem, 4vw, 3.5rem) - 0.55rem);
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-accent);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 700;
}
.sus-principle__word {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  color: var(--c-espresso);
}
.sus-principle__what {
  display: block;
  margin-top: 0.3rem;
  color: var(--c-accent-ink, #0b7e82);
  font-weight: 600;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
}
@media (max-width: 640px) {
  .sus-principle { flex-direction: column; gap: 1.5rem; }
  .sus-principle li + li::before {
    content: "\2193";                   /* ↓ when stacked */
    left: 50%; top: -1.4rem; transform: translateX(-50%);
  }
}

/* Pillars — ghost numerals, accent hairline, no card chrome */
.sus-pillars {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem) clamp(2rem, 4vw, 4rem);
  max-width: 74rem; margin: 0 auto;
}
.sus-pillar { position: relative; padding: 1.25rem 0 0 0; border-top: 2px solid rgba(11, 126, 130, 0.35); }
.sus-pillar__no {
  position: absolute; top: 0.6rem; right: 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem); line-height: 1;
  color: var(--c-accent); opacity: 0.16; pointer-events: none;
}
.sus-pillar h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); margin: 0 0 0.5rem; }
.sus-pillar p { margin: 0; color: var(--c-ink-muted); line-height: 1.65; max-width: 34rem; }
@media (max-width: 700px) { .sus-pillars { grid-template-columns: 1fr; } }

/* Traceability statement band */
.sus-trace {
  max-width: 74rem; margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding: 1.1rem 1.5rem; border-radius: 14px;
  background: linear-gradient(90deg, rgba(11,126,130,0.10), rgba(79,179,174,0.10));
  border-left: 4px solid var(--c-accent);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--c-espresso);
}

/* What's next — numbered roadmap rows (full width so each line stays single) */
#whats-next .section-head { max-width: none; }
#whats-next .section-head .lede { max-width: none; margin-inline: auto; }  /* beat the global 68ch p cap — centered, one line */
.sus-next p { max-width: none; }                                           /* descriptions: one line */
#whats-next h2 { word-spacing: 0.08em; }                                   /* clearer word gaps in the heading */
.sus-next {
  list-style: none; margin: clamp(1.5rem, 3vw, 2.5rem) auto 0; padding: 0;
  max-width: 72rem;   /* centered like before, wide enough for one-line descriptions */
  counter-reset: nxt;
  display: grid; gap: clamp(1rem, 2vw, 1.5rem);
}
.sus-next li {
  counter-increment: nxt;
  position: relative; padding: 0 0 0 4rem;
}
.sus-next li::before {
  content: counter(nxt, decimal-leading-zero);
  position: absolute; left: 0; top: 0.1rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  color: #7FD4D8;
}
.sus-next h3 { color: #fff; font-size: 1.15rem; margin: 0 0 0.25rem; }
.sus-next p { margin: 0; color: rgba(255,255,255,0.75); line-height: 1.6; }

/* CTA row — closes the dark "What's Next" band */
.sus-cta {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.sus-cta__ghost {
  border: 1.5px solid #7FD4D8;
  color: #7FD4D8;
  border-radius: 999px;
}
.sus-cta__ghost:hover { background: #7FD4D8; color: var(--c-espresso, #0b3436); }


/* ============================================================
   MOBILE REFINEMENTS
   Everything below is inside a max-width query, so the desktop
   cascade above is untouched. Added after a device audit at 390px.
   ============================================================ */

@media (max-width: 900px) {

  /* --- Menu sheet was trapped inside the header pill ---------------------
     .nav__inner carries backdrop-filter, which makes it the containing block
     for position:fixed descendants. So the sheet's `inset: 0` resolved to the
     pill, not the viewport: the panel rendered pill-sized and its links spilled
     out over the hero. The mobile block above already tried dropping the blur,
     but `body.is-banner .nav:not(.is-scrolled) .nav__inner` puts it back at
     higher specificity, so the trap survived on the home page. Matching that
     selector here: last rule of equal weight wins. */
  body.is-banner .nav:not(.is-scrolled) .nav__inner,
  .nav__inner,
  .nav.is-scrolled .nav__inner {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav.is-open .nav__sheet { overscroll-behavior: contain; }
  .nav__brand { min-height: 44px; min-width: 44px; }

  /* The sheet is a sibling of the brand/toggle inside .nav__inner, and its
     z-index:90 paints over them. Lift the two controls back above it so the
     logo stays put and the close button is reachable. */
  .nav.is-open .nav__brand,
  .nav.is-open .nav__toggle { position: relative; z-index: 95; }

  /* Hamburger becomes a close X in the same spot while the sheet is open —
     the toggle is the only way out, so it has to read as one. */
  .nav__toggle-ico--close { display: none; }
  .nav.is-open .nav__toggle-ico--open { display: none; }
  .nav.is-open .nav__toggle-ico--close { display: block; }

  /* Pillar headings ran under the big watermark number (worst on 05) */
  .sus-pillar h3 { padding-right: 3.75rem; }
  .br-mobile { display: inline; }   /* mobile-only line breaks in headings */

  /* Banner mode turns nav links white for the transparent header. The open
     sheet is opaque cream, so white-on-cream vanished. */
  .nav.is-open .nav__links a,
  body.is-banner .nav.is-open:not(.is-scrolled) .nav__links a { color: var(--c-espresso); }
  body.is-banner .nav.is-open:not(.is-scrolled) .nav__toggle { color: var(--c-espresso); }

  /* --- About: the 7-step process ran off the right edge -------------------
     #infrastructure pins 7 fixed columns and beats the generic mobile rules
     on ID specificity, so steps 5-7 were clipped off-screen entirely. */
  #infrastructure .process__steps { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.25rem; }
  #infrastructure .process__step p { font-size: var(--fs-sm); }

  /* --- Comparison table: was silently clipped at the container edge -------
     The row headers are nowrap on desktop, so "Vendor Relationship" set the
     first column's width and pushed the other two off-screen. Letting them
     wrap to two lines buys back roughly 90px for the comparison columns. */
  .compare { position: relative; }
  .compare__table { min-width: 31rem; }
  .compare__table th, .compare__table td { padding: 0.85rem 0.7rem; }
  /* Label column stays narrow so the two comparison columns get the width —
     otherwise the Marvel column breaks to one word per line. */
  .compare__table tbody th { white-space: normal; width: 7rem; font-size: 0.88rem; }
  .compare__table th:nth-child(2), .compare__table td:nth-child(2) { width: 10.5rem; }
  .compare__table th:nth-child(3), .compare__table td:nth-child(3) { width: 12.5rem; }
}

/* The hint only makes sense once the table actually has to scroll */
@media (max-width: 640px) {
  #why-us .compare::before {
    content: "Swipe the table sideways to compare";
    display: block;
    position: sticky;
    left: 0;
    width: max-content;
    margin-bottom: 0.5rem;
    font-size: var(--fs-xs);
    color: var(--c-ink-muted);
  }
}

@media (max-width: 900px) {
  /* --- Footer links were 17px tall: under the 44px touch minimum ---------- */
  .footer__grid nav ul { gap: 0.15rem; }
  .footer__grid nav a,
  .footer__grid address a {
    display: inline-block;
    padding-block: 0.7rem;
    min-height: 44px;
  }

  /* --- Services hero: accent sat at #0b7e82 on a dark teal band (fails
     contrast). Beats the inline style, mobile only. -------------------- */
  .page-hero h1 .accent,
  .hero--minimal h1 .accent { color: #7FD4D8 !important; }

  /* Removes the 300ms tap delay without disabling pinch-zoom */
  a, button, .btn, label, summary { touch-action: manipulation; }
}

@media (max-width: 560px) {
  /* Two columns still cram the step copy; one reads cleanly */
  #infrastructure .process__steps { grid-template-columns: 1fr; gap: 1.75rem; }

  /* --- Certification wall: logos were forced to a fixed 57px height inside
     79px cells, so marks landed at wildly different visual weights and the
     rows read as ragged. Uniform cells, logo contained inside each. -------- */
  .cert-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 64px;
    column-gap: 0.75rem;
    row-gap: 1rem;
    max-width: 21rem;
  }
  .cert-grid li { height: 64px; padding: 4px; }
  .cert-grid img { height: auto; max-height: 100%; max-width: 100%; }
}
