/* =====================================================================
   BIATS Inspection Services — Design System
   Modern, professional, elegant. One cohesive language across all pages.
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand — BIATS orange + charcoal (names kept for stability) */
  --navy-900: #161514;     /* darkest sections (charcoal) */
  --navy-800: #1f1d1b;
  --navy-700: #2c2926;
  --brand-700: #a8470a;    /* deep orange — hover / active */
  --brand-600: #c2540c;    /* primary orange — buttons / links / text */
  --brand-500: #f47a20;    /* signature bright orange — accents / icons */
  --brand-100: #fcebdd;    /* light orange tint — icon backgrounds */
  --accent: #f47a20;       /* signature orange */
  --accent-600: #c2540c;

  /* Neutrals (subtly warm to complement orange) */
  --ink: #1a1815;          /* headings — near-black */
  --text: #3c3a37;         /* body */
  --muted: #6e6a64;        /* secondary */
  --line: #e9e5df;         /* borders */
  --bg: #ffffff;
  --surface: #faf8f5;
  --surface-2: #f2eee8;

  /* Radii */
  --r-sm: 8px;
  --r: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-full: 999px;

  /* Shadows (subtle, layered) */
  --shadow-sm: 0 1px 2px rgba(13, 38, 64, .06), 0 1px 3px rgba(13, 38, 64, .05);
  --shadow: 0 10px 24px -12px rgba(13, 38, 64, .18);
  --shadow-lg: 0 26px 60px -28px rgba(13, 38, 64, .34);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .28s;

  /* Photographic duotone overlay (cohesion) */
  --tint: linear-gradient(180deg, rgba(20, 18, 16, .60), rgba(20, 18, 16, .74));
  --tint-strong: linear-gradient(180deg, rgba(18, 16, 14, .82), rgba(28, 24, 20, .92));
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-600); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--brand-700); }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 2px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, .display {
  font-family: "Space Grotesk", "Inter", sans-serif;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { color: var(--text); }
.lead { font-size: clamp(1.075rem, 1.6vw, 1.25rem); color: var(--muted); line-height: 1.65; }
strong { color: var(--ink); font-weight: 600; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.section--ink { background: var(--navy-900); color: #c9c5bf; }
.section--ink h2, .section--ink h3 { color: #fff; }

.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-narrow { max-width: 48ch; }
.mx-auto { margin-inline: auto; }

/* Eyebrow label — recurring rhythm element */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-600);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.section--ink .eyebrow { color: #f9a05a; }

.section-head { max-width: 64ch; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-top: .9rem; }
.section-head p { margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: var(--r-full);
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; line-height: 1; white-space: nowrap;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-700); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-500); color: var(--brand-700); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: #fff; color: var(--brand-700); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .08); color: #fff; border-color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.02rem; }

/* Rotating-word headline (ported from the animated-hero component) */
.rotwords-section { text-align: center; padding-block: clamp(4rem, 10vw, 8rem); }
.rotwords-h { font-family: "Space Grotesk", sans-serif; font-weight: 600; line-height: 1.04; letter-spacing: -.02em; font-size: clamp(2.4rem, 6.5vw, 5rem); margin: 0; }
.rotwords-line1 { display: block; color: var(--ink); }
.rotwords--block { display: inline-block; margin-top: .12em; }
.rotwords { position: relative; display: inline-block; color: var(--brand-500); font-weight: 700; }
.rotwords__sizer { visibility: hidden; }
.rotwords__track { position: absolute; inset: 0; overflow: hidden; }
.rotwords__w {
  position: absolute; left: 0; right: 0; top: 0; text-align: center;
  white-space: nowrap; opacity: 0; transform: translateY(110%);
  transition: transform .7s cubic-bezier(.22,1,.36,1), opacity .45s var(--ease);
  will-change: transform, opacity;
}
.rotwords__w.is-active { opacity: 1; transform: translateY(0); }
.rotwords__w.is-up { opacity: 0; transform: translateY(-110%); }
.rotwords__w.is-down { opacity: 0; transform: translateY(110%); }
.rotwords-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  .rotwords__w { transition: opacity .3s var(--ease); }
  .rotwords__w.is-up, .rotwords__w.is-down { transform: translateY(0); }
}
@media (max-width: 560px) {
  .rotwords-section { padding-block: clamp(3rem, 13vw, 4.5rem); padding-inline: 1rem; }
  .rotwords-h { font-size: clamp(1.8rem, 8.5vw, 2.6rem); line-height: 1.12; text-wrap: balance; }
  .rotwords--block { margin-top: .2em; }
}

/* Origin button — a circle floods in from the point the cursor enters,
   inverting the label (ported from the origin-button component, brand-recoloured) */
.btn--origin {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: color .3s cubic-bezier(.16,1,.3,1), border-color .3s var(--ease);
  --ox: 50%; --oy: 50%; --od: 0px;
}
.btn--origin .btn__fill {
  position: absolute; left: var(--ox); top: var(--oy); z-index: -1;
  width: var(--od); height: var(--od); border-radius: 50%;
  background: var(--brand-600); pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.btn--origin.is-filled { color: #fff; border-color: var(--brand-600); }
.btn--origin.is-filled .btn__fill { transform: translate(-50%, -50%) scale(1); }
.btn--origin .btn__label { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .btn--origin .btn__fill { transition: none; } }

/* Text link with arrow */
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-family: "Space Grotesk", sans-serif; font-weight: 600; }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name { font-family: "Space Grotesk", sans-serif; font-weight: 700; color: var(--ink); font-size: 1.18rem; letter-spacing: -0.02em; line-height: 1; }
.brand__name span { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .22em; color: var(--muted); margin-top: 3px; }
.brand__name .bx { color: var(--brand-500); font-style: normal; } /* orange "B" — matches logo */

.nav__links { display: flex; align-items: center; gap: .35rem; }
.nav__links a {
  position: relative; padding: .55rem .85rem; border-radius: var(--r-sm);
  color: var(--text); font-weight: 500; font-size: .96rem;
}
.nav__links a:hover { color: var(--brand-700); background: var(--surface); }
.nav__links a.btn-primary,
.nav__links a.btn-primary:hover { color: #fff; background: var(--brand-600); }
.nav__links a.btn-primary:hover { background: var(--brand-700); }
.nav__links a.active { color: var(--brand-700); }
.nav__links a.active::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: -2px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.nav__actions { display: flex; align-items: center; gap: .6rem; }
.nav__links .btn { display: none; } /* shown only inside the mobile menu */

.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav__toggle span::before { transform: translateY(-6px); }
.nav__toggle span::after { transform: translateY(4px); }
body.nav-open .nav__toggle span { background: transparent; }
body.nav-open .nav__toggle span::before { transform: rotate(45deg); }
body.nav-open .nav__toggle span::after { transform: rotate(-45deg) translateY(-1px); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--surface); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(120% 90% at 80% 0%, #000 0%, transparent 60%);
          mask-image: radial-gradient(120% 90% at 80% 0%, #000 0%, transparent 60%);
  opacity: .55;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3.5rem, 7vw, 6rem); }
.hero__eyebrow { margin-bottom: 1.2rem; }
.hero h1 { margin-bottom: 1.3rem; }
.hero h1 em { font-style: normal; color: var(--brand-600); }
.hero__lead { max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.hero__trust .t { display: flex; flex-direction: column; }
.hero__trust .t b { font-family: "Space Grotesk", sans-serif; font-size: 1.7rem; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero__trust .t span { font-size: .82rem; color: var(--muted); }

.hero__media { position: relative; }
.hero__media .frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5; background: var(--navy-800);
}
.hero__media .frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); }
.hero__media .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,24,43,.12), rgba(8,24,43,.45)); }
.hero__badge {
  position: absolute; left: -18px; bottom: 26px; z-index: 2;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1rem 1.2rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .85rem; max-width: 260px;
}
.hero__badge .ic { width: 42px; height: 42px; flex: none; border-radius: 11px; background: var(--brand-100); color: var(--brand-600); display: grid; place-items: center; }
.hero__badge .ic svg { width: 22px; height: 22px; }
.hero__badge b { font-family: "Space Grotesk", sans-serif; color: var(--ink); display: block; font-size: .98rem; }
.hero__badge span { font-size: .82rem; color: var(--muted); }

/* ---------- Logo / media tint utility ---------- */
.media-tint { position: relative; }
.media-tint img { filter: saturate(.9); }
.media-tint::after { content: ""; position: absolute; inset: 0; background: var(--tint); }
.media-tint > * { position: relative; z-index: 1; }

/* ---------- Marquee / client logos ---------- */
.logobar { background: #fff; }
.logobar__inner { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); flex-wrap: wrap; justify-content: center; padding-block: 1.6rem; }
.logobar__label { font-size: clamp(1.05rem, 2.4vw, 1.3rem); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.logobar__item { font-family: "Space Grotesk", sans-serif; font-weight: 600; color: #94a3b8; font-size: 1.05rem; letter-spacing: .02em; transition: color var(--dur) var(--ease); }
.logobar__item:hover { color: var(--navy-700); }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.stats .stat { background: #fff; padding: 2rem 1.6rem; text-align: center; }
.stat b { display: block; font-family: "Space Grotesk", sans-serif; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .92rem; }
.section--ink .stats { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }
.section--ink .stats .stat { background: var(--navy-800); }
.section--ink .stat b { color: #fff; }
.section--ink .stat span { color: #a7a29b; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.8rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cdddee; }
.card .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.2rem;
  background: var(--brand-100); color: var(--brand-600);
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .98rem; color: var(--muted); }

/* Service category card */
.svc-cat { display: flex; flex-direction: column; }
.svc-cat .ic { background: var(--navy-800); color: #fff; }
.svc-cat ul { margin-top: 1.1rem; display: grid; gap: .55rem; }
.svc-cat li { display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; color: var(--text); }
.svc-cat li svg { width: 18px; height: 18px; color: var(--brand-500); flex: none; margin-top: 3px; }

/* Service detail card (services page) */
.svc { position: relative; padding-left: 0; }
.svc .tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-600); background: var(--brand-100); padding: .25rem .6rem; border-radius: var(--r-full); margin-bottom: .9rem; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow-lg); background: var(--navy-800); }
.split__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); }
.split__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,24,43,.05), rgba(8,24,43,.35)); }
.feature-list { display: grid; gap: 1.2rem; margin-top: 1.8rem; }
.feature-list li { display: flex; gap: .9rem; align-items: flex-start; }
.feature-list .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-100); color: var(--brand-600); display: grid; place-items: center; flex: none; }
.feature-list .ic svg { width: 20px; height: 20px; }
.feature-list b { display: block; color: var(--ink); font-family: "Space Grotesk", sans-serif; margin-bottom: .15rem; }
.feature-list p { font-size: .95rem; color: var(--muted); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.6rem); counter-reset: step; }
.step { position: relative; padding-top: 1.4rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: "Space Grotesk", sans-serif; font-size: 1rem; font-weight: 700; color: var(--brand-600);
  background: var(--brand-100); width: 44px; height: 44px; border-radius: var(--r-full);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.step p { font-size: .94rem; color: var(--muted); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: calc(1.4rem + 22px); left: 56px; right: -8px; height: 2px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* ---------- Industries ---------- */
.ind { position: relative; border-radius: var(--r-md); overflow: hidden; min-height: 220px; display: flex; align-items: flex-end; color: #fff; background: var(--navy-800); }
.ind img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform .5s var(--ease); }
/* Graduated blur: strong & dark at the bottom (text), clear sharp image at the top */
.ind::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(16,14,12,.7) 0%, rgba(16,14,12,.42) 22%, rgba(16,14,12,.08) 38%, rgba(16,14,12,0) 50%);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 15%, rgba(0,0,0,.45) 32%, transparent 47%);
          mask-image: linear-gradient(to top, #000 0%, #000 15%, rgba(0,0,0,.45) 32%, transparent 47%);
  transition: background var(--dur) var(--ease);
}
.ind:hover img { transform: scale(1.06); }
.ind:hover::after { background: linear-gradient(to top, rgba(16,14,12,.76) 0%, rgba(16,14,12,.46) 22%, rgba(16,14,12,.1) 38%, rgba(16,14,12,0) 50%); }
.ind__body { position: relative; z-index: 1; padding: 1.5rem; }
.ind__body .ic { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.14); display: grid; place-items: center; margin-bottom: .8rem; }
.ind__body .ic svg { width: 22px; height: 22px; color: #fff; }
.ind__body h3 { color: #fff; font-size: 1.15rem; }
.ind__body p { color: rgba(255,255,255,.78); font-size: .9rem; margin-top: .25rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--navy-800); color: #fff; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: var(--tint-strong); }
.cta-band__inner { position: relative; z-index: 1; padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 56ch; margin-inline: auto; }
.cta-band .hero__cta { justify-content: center; margin-top: 2rem; }

/* ---------- Accordion (values / faq) ---------- */
.accordion { border-top: 1px solid var(--line); }
.ac { border-bottom: 1px solid var(--line); }
.ac__q { width: 100%; background: none; border: 0; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 0; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.ac__q .pm { width: 28px; height: 28px; flex: none; border-radius: var(--r-full); border: 1px solid var(--line); display: grid; place-items: center; position: relative; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.ac__q .pm::before, .ac__q .pm::after { content: ""; position: absolute; background: var(--brand-600); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.ac__q .pm::before { width: 12px; height: 2px; }
.ac__q .pm::after { width: 2px; height: 12px; }
.ac.open .pm { background: var(--brand-600); border-color: var(--brand-600); }
.ac.open .pm::before, .ac.open .pm::after { background: #fff; }
.ac.open .pm::after { transform: rotate(90deg); opacity: 0; }
.ac__a { overflow: hidden; max-height: 0; transition: max-height var(--dur) var(--ease); }
.ac__a > div { padding-bottom: 1.3rem; color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); font-family: "Space Grotesk", sans-serif; }
.field label .req { color: var(--accent-600); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(244,122,32,.18); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

/* ---------- HeroUI-style custom select ---------- */
.hsel { position: relative; }
.hsel__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem; text-align: left; cursor: pointer;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.hsel__trigger:hover { border-color: var(--brand-500); }
.hsel__trigger:focus-visible,
.hsel.is-open .hsel__trigger { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(244,122,32,.18); }
.hsel__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hsel__value.is-placeholder { color: var(--muted); }
.hsel__chevron { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); transition: transform var(--dur) var(--ease); }
.hsel.is-open .hsel__chevron { transform: rotate(180deg); color: var(--brand-600); }

.hsel__popover {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: .35rem; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md, 16px); box-shadow: var(--shadow-lg);
  max-height: 280px; overflow-y: auto; overscroll-behavior: contain;
  transform-origin: top center; animation: hselIn .16s var(--ease);
}
@keyframes hselIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.hsel__item {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .6rem .7rem; border-radius: var(--r-sm, 8px); cursor: pointer; font-size: .97rem; color: var(--ink);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.hsel__item:hover, .hsel__item.is-active { background: var(--surface-2); }
.hsel__item[aria-selected="true"] { color: var(--brand-700); font-weight: 600; }
.hsel__check { width: 17px; height: 17px; flex-shrink: 0; color: var(--brand-600); opacity: 0; transform: scale(.7); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.hsel__item[aria-selected="true"] .hsel__check { opacity: 1; transform: scale(1); }

[data-theme="dark"] .hsel__trigger { background: var(--surface-2); color: var(--ink); }
[data-theme="dark"] .hsel__popover { background: var(--navy-800, #1f1d1b); border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .hsel__item:hover, [data-theme="dark"] .hsel__item.is-active { background: rgba(255,255,255,.06); }
@media (prefers-reduced-motion: reduce) { .hsel__popover { animation: none; } .hsel__chevron, .hsel__check { transition: none; } }
.form__note { font-size: .85rem; color: var(--muted); }
.form__status { display: none; padding: .9rem 1.1rem; border-radius: var(--r); font-size: .95rem; }
.form__status.ok { display: block; background: #e8f6ee; color: #146c43; border: 1px solid #b7e0c6; }
.form__status.err { display: block; background: #fdecea; color: #b42318; border: 1px solid #f4c7c0; }

/* ---------- Interactive location card (replaces map iframe) ---------- */
.locmap-wrap { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; padding: 1.5rem 0 2.2rem; }
.locmap-wrap .eyebrow { text-align: center; }
.locmap { position: relative; cursor: pointer; user-select: none; perspective: 1000px; outline: none; }
.locmap__card {
  position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line);
  background: var(--surface); width: 240px; height: 140px;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d;
  transition: width .45s cubic-bezier(.34,1.2,.4,1), height .45s cubic-bezier(.34,1.2,.4,1), transform .2s ease, box-shadow .3s var(--ease);
  box-shadow: var(--shadow);
}
.locmap:hover .locmap__card, .locmap:focus-visible .locmap__card { box-shadow: var(--shadow-lg); }
.locmap.is-expanded .locmap__card { width: min(720px, 88vw); height: 340px; }
@media (max-width: 420px) { .locmap.is-expanded .locmap__card { width: 88vw; height: 280px; } }

/* Grid texture (collapsed) */
.locmap__grid {
  position: absolute; inset: 0; opacity: .05; transition: opacity .3s;
  background-image: linear-gradient(var(--ink) 1px, transparent 1px), linear-gradient(90deg, var(--ink) 1px, transparent 1px);
  background-size: 20px 20px;
}
.locmap.is-expanded .locmap__grid { opacity: 0; }

/* Stylised map (expanded) */
.locmap__map { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: var(--surface-2); transition: opacity .4s .1s; }
.locmap.is-expanded .locmap__map { opacity: 1; }
.locmap__roads { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ink); }
.locmap__bldg { position: absolute; border-radius: 3px; background: rgba(110,106,100,.28); border: 1px solid rgba(110,106,100,.18); }
.locmap__pin { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -62%); filter: drop-shadow(0 0 10px rgba(244,122,32,.55)); }
.locmap__pin::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 14px; height: 6px; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(20,18,16,.28), transparent 70%); border-radius: 50%;
}

/* Content overlay */
.locmap__content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; }
.locmap__top { display: flex; align-items: flex-start; justify-content: space-between; }
.locmap__icon { color: var(--brand-500); filter: drop-shadow(0 0 4px rgba(244,122,32,.3)); transition: filter .3s, opacity .3s; }
.locmap:hover .locmap__icon { filter: drop-shadow(0 0 8px rgba(244,122,32,.6)); }
.locmap.is-expanded .locmap__icon { opacity: 0; }
.locmap__live { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .55rem; border-radius: 999px; background: rgba(20,20,20,.05); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.locmap__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); animation: locPulse 1.8s infinite; }
@keyframes locPulse { 0% { box-shadow: 0 0 0 0 rgba(244,122,32,.5); } 70% { box-shadow: 0 0 0 6px rgba(244,122,32,0); } 100% { box-shadow: 0 0 0 0 rgba(244,122,32,0); } }
.locmap__bottom { position: relative; }
.locmap__title { font-size: .95rem; font-weight: 600; color: var(--ink); margin: 0; transition: transform .3s var(--ease); }
.locmap:hover .locmap__title { transform: translateX(4px); }
.locmap__addr, .locmap__coords { margin: .3rem 0 0; max-height: 0; opacity: 0; overflow: hidden; transition: opacity .25s, max-height .25s; }
.locmap__addr { font-size: .72rem; color: var(--text); }
.locmap__coords { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .72rem; color: var(--muted); }
.locmap.is-expanded .locmap__addr { opacity: 1; max-height: 40px; }
.locmap.is-expanded .locmap__coords { opacity: 1; max-height: 24px; }
.locmap__underline { height: 2px; margin-top: .55rem; transform: scaleX(.3); transform-origin: left; transition: transform .4s ease;
  background: linear-gradient(90deg, rgba(244,122,32,.6), rgba(244,122,32,.25), transparent); }
.locmap:hover .locmap__underline, .locmap.is-expanded .locmap__underline { transform: scaleX(1); }

.locmap__hint { position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); font-size: 10px; color: var(--muted); white-space: nowrap; opacity: 0; transition: opacity .2s; }
.locmap:hover .locmap__hint { opacity: 1; }
.locmap.is-expanded .locmap__hint { opacity: 0; }
.locmap__link { font-size: .9rem; font-weight: 600; color: var(--brand-600); }
.locmap__link:hover { color: var(--brand-700); }
@media (prefers-reduced-motion: reduce) { .locmap__card { transition: width .25s, height .25s; } .locmap__live i { animation: none; } }

/* ---------- Contact info cards ---------- */
.contact-info { display: grid; gap: 1rem; }
.cinfo { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.cinfo .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-100); color: var(--brand-600); display: grid; place-items: center; flex: none; }
.cinfo .ic svg { width: 22px; height: 22px; }
.cinfo b { font-family: "Space Grotesk", sans-serif; color: var(--ink); display: block; }
.cinfo a, .cinfo p { color: var(--muted); font-size: .96rem; }
.cinfo a:hover { color: var(--brand-700); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(100% 100% at 100% 0%, #000, transparent 65%);
          mask-image: radial-gradient(100% 100% at 100% 0%, #000, transparent 65%);
}
.page-hero__inner { position: relative; padding-block: clamp(3rem, 7vw, 5.5rem); max-width: 62ch; }
.page-hero .eyebrow { color: #f9a05a; }
.page-hero h1 { color: #fff; margin: 1rem 0 1rem; }
.page-hero p { color: #b8b2aa; font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.crumbs { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: #837e77; }
.crumbs a { color: #b8b2aa; }
.crumbs a:hover { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #a7a29b; padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: clamp(1.5rem, 4vw, 3rem); padding-bottom: 3rem; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__name span { color: #837e77; }
.footer__about { margin-top: 1.1rem; font-size: .95rem; color: #a7a29b; max-width: 34ch; }
.footer h4 { color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.1rem; font-family: "Space Grotesk", sans-serif; }
.footer__col a, .footer__col li { display: block; color: #a7a29b; font-size: .95rem; padding: .3rem 0; }
.footer__col a:hover { color: #fff; }
.footer__contact li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; padding: .35rem 0; color: #a7a29b; }
.footer__contact svg { width: 18px; height: 18px; color: #f9a05a; flex: none; margin-top: 3px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .88rem; color: #837e77; }
.footer__social { display: flex; gap: .6rem; }
.footer__social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; color: #b8b2aa; }
.footer__social a:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.3); }
.footer__social svg { width: 18px; height: 18px; }

/* ---------- Client logo wall ---------- */
.logo-wall { gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.logo-tile {
  background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  padding: 2rem 1rem; color: #aab8c6; transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.logo-tile:hover { color: var(--brand-600); background: var(--surface); }
.logo-tile svg { width: 34px; height: 34px; }
.logo-tile span { font-family: "Space Grotesk", sans-serif; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }

/* ---------- Map ---------- */
.map-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 21 / 9; background: var(--surface-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.25) contrast(1.02); }
@media (max-width: 640px) { .map-frame { aspect-ratio: 4 / 3; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Mobile menu backdrop ---------- */
.nav__backdrop { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.4rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
    box-shadow: var(--shadow-lg);
  }
  body.nav-open .nav__links { display: flex; opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: .9rem .5rem; font-size: 1.05rem; border-radius: var(--r-sm); }
  .nav__links a.active::after { display: none; }
  .nav__links .btn { display: inline-flex; margin-top: .6rem; }
  body.nav-open .nav__backdrop { display: block; position: fixed; inset: 76px 0 0 0; background: rgba(8,24,43,.35); z-index: 90; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 460px; }
  .hero__media .frame { aspect-ratio: 16 / 11; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none !important; }
  .field--row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__badge { left: 0; }
}

/* =====================================================================
   Method media cards, methods list, hero background image
   ===================================================================== */

/* Page hero with background image (text stays readable via strong scrim) */
.page-hero__inner { position: relative; z-index: 3; }
.page-hero--media .page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: saturate(.8); }
.page-hero--media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14,12,10,.82), rgba(14,12,10,.90)); }
.page-hero--media::before { z-index: 2; opacity: .28; }

/* Method card with image */
.card--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--media .card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-800); }
.card--media .card__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.95); transition: transform .55s var(--ease); }
.card--media:hover .card__media img { transform: scale(1.05); }
.card--media .card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,14,12,.04), rgba(16,14,12,.42)); }
.card__badge { position: absolute; left: .85rem; top: .85rem; z-index: 1; background: var(--brand-600); color: #fff; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding: .32rem .62rem; border-radius: var(--r-full); box-shadow: var(--shadow); }
.card--media .card__body { padding: 1.35rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card--media .card__body h3 { margin-bottom: .4rem; }
.card--media .card__body p { font-size: .95rem; color: var(--muted); }
.card--media .card__link { margin-top: 1rem; display: inline-flex; align-items: center; gap: .4rem; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: .9rem; color: var(--brand-600); }
.card--media .card__link svg { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
.card--media:hover .card__link svg { transform: translateX(4px); }

/* Methods list component (compact, scannable, with thumbnails) */
.method-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.method-row { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.2rem; background: #fff; min-height: 64px; transition: background var(--dur) var(--ease), transform var(--dur) var(--ease); }
.method-row:hover { background: var(--surface); }
.method-row .thumb { width: 56px; height: 56px; flex: none; border-radius: 10px; overflow: hidden; background: var(--navy-800); }
.method-row .thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); }
.method-row .m-body { flex: 1 1 auto; min-width: 0; }
.method-row .m-body b { display: block; font-family: "Space Grotesk", sans-serif; color: var(--ink); font-size: 1rem; line-height: 1.25; }
.method-row .m-body span { font-size: .82rem; color: var(--muted); }
.method-row .m-tag { font-family: "Space Grotesk", sans-serif; font-size: .68rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-600); background: var(--brand-100); padding: .26rem .55rem; border-radius: var(--r-full); flex: none; }
@media (max-width: 720px) { .method-list { grid-template-columns: 1fr; } }

/* =====================================================================
   Cinematic scroll-expand hero (vanilla port of ScrollExpandMedia)
   ===================================================================== */
.scrollhero { position: relative; background: var(--navy-900); }
.scrollhero__track { height: 220vh; }
.scrollhero__sticky { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; display: grid; place-items: center; }
.scrollhero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: opacity, transform; }
.scrollhero__bg-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,14,12,.22), rgba(16,14,12,.5)); }
.scrollhero__media { position: relative; z-index: 2; width: 340px; height: 460px; max-width: 96vw; max-height: 88vh; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); background: #0d0d0d; will-change: width, height, border-radius; }
.scrollhero__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scrollhero__media-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,8,.15), rgba(8,8,8,.5)); will-change: opacity; }
.scrollhero__title { position: absolute; z-index: 3; inset: 0; display: flex; align-items: center; justify-content: center; gap: clamp(.5rem, 3vw, 2.5rem); flex-wrap: wrap; padding: 0 1rem; pointer-events: none; }
.scrollhero__title span { font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: -.02em; color: #fff; font-size: clamp(2.4rem, 8vw, 6rem); line-height: 1; text-shadow: 0 4px 30px rgba(0,0,0,.55); will-change: transform, opacity; }
.scrollhero__title .w2 { color: var(--brand-500); }
.scrollhero__logo { width: min(60vw, 600px); height: auto; display: block; filter: drop-shadow(0 6px 34px rgba(0,0,0,.6)); will-change: transform, opacity; }
.scrollhero__hint { position: absolute; z-index: 3; bottom: 6vh; left: 50%; transform: translateX(-50%); color: #fff; font-family: "Space Grotesk", sans-serif; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: .5rem; opacity: .92; will-change: opacity; }
.scrollhero__hint svg { width: 22px; height: 22px; animation: shBounce 1.8s var(--ease) infinite; }
@keyframes shBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@media (prefers-reduced-motion: reduce) {
  .scrollhero__track { height: auto; }
  .scrollhero__sticky { position: relative; height: auto; padding-block: clamp(3rem, 8vw, 6rem); }
  .scrollhero__bg, .scrollhero__hint { display: none; }
  .scrollhero__media { width: min(1100px, 92vw); height: clamp(320px, 60vh, 620px); border-radius: var(--r-lg); }
}

/* =====================================================================
   Client logo marquee (vanilla port; uniform-size logos, seamless loop)
   ===================================================================== */
.marquee { position: relative; width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee__track { display: flex; width: max-content; align-items: center; animation: mqScroll var(--mq-duration, 46s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes mqScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee__item { flex: 0 0 auto; width: clamp(112px, 14vw, 152px); height: 50px; margin-right: clamp(1.8rem, 5vw, 4rem); display: flex; align-items: center; justify-content: center; }
.marquee__item img { max-width: 100%; max-height: 46px; width: auto; height: auto; object-fit: contain; opacity: .82; filter: saturate(.95); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.marquee__item img:hover { opacity: 1; transform: scale(1.05); }
.marquee__item--text { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(1.25rem, 2.4vw, 1.6rem); letter-spacing: -.01em; color: var(--ink); opacity: .82; }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 1.4rem; }
  /* static layout shows each logo once — hide the loop-duplicate set */
  .marquee__track .marquee__item[aria-hidden="true"] { display: none; }
}

/* =====================================================================
   Dark mode (token overrides) + theme toggle
   ===================================================================== */
[data-theme="dark"] {
  --bg: #131110;
  --surface: #1b1917;
  --surface-2: #232020;
  --line: #34302c;
  --ink: #f6f1ea;
  --text: #cbc4bb;
  --muted: #978f85;
  --brand-100: #2c1d10;        /* dark warm tint for icon backgrounds */
  --navy-900: #0d0c0b;
  --navy-800: #1a1714;
  --navy-700: #262220;
}
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

/* White / light surfaces -> themed surfaces in dark */
[data-theme="dark"] .card,
[data-theme="dark"] .stats .stat,
[data-theme="dark"] .cinfo,
[data-theme="dark"] .method-row,
[data-theme="dark"] .logo-tile,
[data-theme="dark"] .hero__badge,
[data-theme="dark"] .nav__toggle,
[data-theme="dark"] .nav__links,
[data-theme="dark"] .logobar { background: var(--surface); }
[data-theme="dark"] .site-header { background: rgba(19,17,16,.82); }
[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea { background: var(--surface-2); color: var(--ink); }
[data-theme="dark"] .card:hover { border-color: #4a443d; }

/* Accent legibility on dark */
[data-theme="dark"] a:not(.btn) { color: var(--brand-500); }
[data-theme="dark"] .eyebrow,
[data-theme="dark"] .hero h1 em,
[data-theme="dark"] .nav__links a:hover,
[data-theme="dark"] .nav__links a.active,
[data-theme="dark"] .card .ic,
[data-theme="dark"] .feature-list .ic,
[data-theme="dark"] .cinfo .ic,
[data-theme="dark"] .step::before,
[data-theme="dark"] .card__link,
[data-theme="dark"] .svc-cat li svg { color: var(--brand-500); }
[data-theme="dark"] .brand__mark rect { fill: #2a2520; }

/* In dark mode, render client logos as clean white marks (no frame) */
[data-theme="dark"] .marquee__item img { filter: brightness(0) invert(1); opacity: .9; }
[data-theme="dark"] .marquee__item img:hover { opacity: 1; }

/* ---- Theme toggle (pill switch, sun/moon) ---- */
.theme-toggle { flex: none; width: 58px; height: 30px; border-radius: var(--r-full); border: 1px solid var(--line); background: var(--surface-2); padding: 3px; cursor: pointer; display: inline-flex; align-items: center; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.theme-toggle:hover { border-color: var(--brand-500); }
.theme-toggle__thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--bg); box-shadow: var(--shadow-sm); display: grid; place-items: center; transition: transform var(--dur) var(--ease); transform: translateX(0); }
[data-theme="dark"] .theme-toggle__thumb { transform: translateX(26px); }
.theme-toggle__thumb svg { width: 15px; height: 15px; }
.theme-toggle .ic-sun { color: var(--accent-600); }
.theme-toggle .ic-moon { color: #e8e2d8; display: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle .ic-moon { display: block; }

/* =====================================================================
   Animated hamburger (3-path morph), big vertical mobile menu, footer v2
   ===================================================================== */
/* --- Hamburger -> X morph --- */
.nav__toggle .ham { color: var(--ink); }
.nav__toggle .ham path { transform-box: fill-box; transform-origin: center; transition: transform .3s cubic-bezier(.5,.85,.25,1.1); }
.nav__toggle .ham-top { transform: translateY(-7px); }
.nav__toggle .ham-bot { transform: translateY(7px); }
.nav__toggle[aria-expanded="true"] .ham-top { transform: translateY(0) rotate(315deg); }
.nav__toggle[aria-expanded="true"] .ham-mid { transform: rotate(45deg); transition-timing-function: cubic-bezier(.5,.85,.25,1.8); }
.nav__toggle[aria-expanded="true"] .ham-bot { transform: translateY(0) rotate(135deg); }

/* --- Big animated vertical mobile menu --- */
@media (max-width: 860px) {
  body.nav-open .nav__links { padding-block: 1.6rem 2rem; gap: .2rem; }
  .nav__links a:not(.btn) {
    font-family: "Space Grotesk", sans-serif; font-size: clamp(1.7rem, 7vw, 2.3rem); font-weight: 600;
    color: var(--ink); padding: .45rem .25rem; display: flex; align-items: center;
    background: none !important; border-radius: 0; transition: transform .3s cubic-bezier(.5,.85,.25,1.1), color .3s var(--ease);
  }
  .nav__links a:not(.btn)::before {
    content: ""; width: 0; height: 1em; flex: none; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0; transform: translateX(-10px); transition: width .3s cubic-bezier(.5,.85,.25,1.1), opacity .3s var(--ease), transform .3s var(--ease), margin .3s var(--ease);
  }
  .nav__links a:not(.btn):hover, .nav__links a:not(.btn):focus-visible { color: var(--brand-500); transform: translateX(4px); }
  .nav__links a:not(.btn):hover::before, .nav__links a:not(.btn):focus-visible::before { width: 1em; opacity: 1; transform: translateX(0); margin-right: .35rem; }
  .nav__links a:not(.btn).active::after { display: none; }
}

/* --- Footer v2 (themed, newsletter + social + theme switch) --- */
.site-footer--v2 { background: var(--surface); color: var(--text); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.site-footer--v2 .footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1fr; gap: clamp(2rem, 4vw, 3rem); }
.footer__h2 { font-family: "Space Grotesk", sans-serif; font-size: clamp(1.55rem, 3vw, 2rem); color: var(--ink); margin-bottom: .7rem; letter-spacing: -.02em; }
.footer__h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.05rem; color: var(--ink); margin-bottom: 1rem; }
.footer__p { color: var(--muted); margin-bottom: 1.3rem; max-width: 34ch; font-size: .96rem; }
.footer__news { max-width: 350px; display: flex; flex-direction: column; gap: .6rem; }
.footer__news input { width: 100%; padding: .85rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-full); background: var(--bg); color: var(--ink); font: inherit; font-size: .98rem; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.footer__news input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(244,122,32,.16); }
.footer__news-row { position: relative; }
.footer__news-row input { padding-right: 3.2rem; }
.footer__news-row button { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--brand-600); color: #fff; display: grid; place-items: center; border: 0; cursor: pointer; transition: transform var(--dur) var(--ease), background var(--dur) var(--ease); }
.footer__news-row button:hover { transform: translateY(-50%) scale(1.07); background: var(--brand-700); }
.footer__news-row button svg { width: 17px; height: 17px; }
.footer__status { display: block; margin-top: .7rem; font-size: .85rem; color: var(--brand-600); min-height: 1em; }
.footer__glow { position: absolute; right: 8%; top: -30px; width: 140px; height: 140px; border-radius: 50%; background: rgba(244,122,32,.18); filter: blur(45px); pointer-events: none; }
.footer__links a, .footer__addr p { display: block; color: var(--muted); padding: .32rem 0; font-size: .96rem; }
.footer__links a:hover, .footer__addr a:hover { color: var(--brand-600); }
.footer__addr { font-style: normal; }
.footer__addr a { color: var(--muted); }
.footer__addr p.footer__contact { display: flex; align-items: center; gap: .55rem; }
.footer__contact .footer__cic { flex: none; width: 16px; height: 16px; color: var(--brand-500); }
/* Footer contact links: muted by default, orange only on hover (both themes) */
[data-theme="dark"] .footer__addr a { color: var(--muted); }
[data-theme="dark"] .footer__addr a:hover { color: var(--brand-500); }
.footer__social2 { display: flex; gap: .6rem; margin-bottom: 1.5rem; }
.footer__social2 .fbtn { width: 40px; height: 40px; padding: 0; line-height: 0; border-radius: 9999px; border: 1px solid var(--line); background: var(--bg); box-shadow: 0 1px 2px rgba(0,0,0,.05); display: inline-flex; align-items: center; justify-content: center; color: var(--text); position: relative; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.footer__social2 .fbtn:hover { background: var(--surface-2); border-color: var(--brand-500); color: var(--brand-600); transform: translateY(-2px); }
.footer__social2 .fbtn svg { width: 18px; height: 18px; display: block; margin: 0; }
.footer__bottom2 { margin-top: clamp(2.4rem, 5vw, 3rem); padding-top: 1.6rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer__bottom2 > span { color: var(--muted); font-size: .9rem; }
.footer__legal { display: flex; gap: 1.3rem; font-size: .9rem; }
.footer__legal a { color: var(--muted); }
.footer__legal a:hover { color: var(--brand-600); }
@media (max-width: 860px) { .site-footer--v2 .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer--v2 .footer__grid { grid-template-columns: 1fr; } .footer__bottom2 { flex-direction: column; text-align: center; } }

/* =====================================================================
   Official BIATS wordmark logo (light + dark variants)
   ===================================================================== */
.brand__logo { height: 36px; width: auto; display: block; }
.brand__logo--dark { display: none; }
[data-theme="dark"] .brand__logo--light { display: none; }
[data-theme="dark"] .brand__logo--dark { display: block; }
@media (max-width: 480px) { .brand__logo { height: 30px; } }

/* =====================================================================
   Tubelight nav — desktop nav links become a rounded pill group with a
   glowing "lamp" indicator above the current page.
   ===================================================================== */
@media (min-width: 861px) {
  .nav__links {
    gap: .2rem;
    padding: 5px;
    border-radius: 9999px;
    background: rgba(255,255,255,.55);
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
  }
  .nav__links a {
    border-radius: 9999px;
    padding: .5rem 1.05rem;
    font-weight: 600;
    transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
  }
  .nav__links a:hover { color: var(--brand-600); background: transparent; }
  .nav__links a.active { color: var(--brand-600); background: var(--surface-2); }
  /* glowing tubelight bar over the active item */
  .nav__links a.active::after {
    content: ""; position: absolute;
    left: 50%; right: auto; bottom: auto; top: -6px;
    transform: translateX(-50%);
    width: 28px; height: 4px; border-radius: 0 0 8px 8px;
    background: var(--brand-500);
    box-shadow: 0 0 8px 1px var(--brand-500), 0 7px 16px 3px rgba(244,122,32,.5);
  }
  /* keep the "Request a quote" pill visually distinct inside the group */
  .nav__links a.btn-primary { padding: .5rem 1.05rem; }
  [data-theme="dark"] .nav__links { background: rgba(31,29,27,.55); }
}
