/* ==========================================================================
   Climexon GK — global stylesheet
   1. Design tokens   2. Base   3. Utilities & components   4. Header
   5. Hero            6. Sections   7. Footer   8. Motion   9. Responsive
   ========================================================================== */

/* 1. DESIGN TOKENS — colours taken from the supplied logo
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --teal-900: #023a3d;
  --teal-800: #004f53;
  --teal-700: #006a6e;   /* logo primary */
  --teal-600: #0d7c8f;   /* logo mid */
  --teal-500: #188baa;
  --sky-500: #259dca;    /* logo highlight */
  --sky-600: #2295bb;
  --sky-300: #8fd0e6;
  --ice-200: #b7e2e9;    /* logo light */
  --ice-100: #dff1f4;
  --ice-50:  #f2f9fa;
  --navy-900: #0b1a2f;
  --navy-800: #172c53;   /* logo accent navy */
  --steel-700: #334d51;
  --steel-500: #5e7376;

  /* Semantic */
  --bg: #f7fbfc;
  --surface: #ffffff;
  --ink: #0d1f2a;
  --ink-soft: #3e5560;
  --line: rgba(13, 54, 66, 0.12);
  --brand: var(--teal-700);
  --brand-grad: linear-gradient(120deg, var(--teal-700) 0%, var(--teal-600) 45%, var(--sky-500) 100%);
  --dark-grad: radial-gradient(120% 120% at 85% 0%, #0e4f5e 0%, #082d3a 40%, var(--navy-900) 100%);

  /* Type */
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-h3: clamp(1.125rem, 1rem + 0.4vw, 1.3rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.85rem);
  --fs-h1: clamp(2.05rem, 1.3rem + 3vw, 3.7rem);

  /* Space & shape */
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --container: 1240px;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --header-h: 76px;

  /* Depth */
  --shadow-sm: 0 2px 6px rgba(6, 42, 52, 0.06), 0 1px 2px rgba(6, 42, 52, 0.05);
  --shadow: 0 18px 40px -18px rgba(6, 52, 64, 0.28), 0 4px 12px -4px rgba(6, 52, 64, 0.08);
  --shadow-lg: 0 40px 80px -30px rgba(4, 40, 52, 0.45), 0 12px 28px -12px rgba(4, 40, 52, 0.18);
  --glow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset, 0 20px 50px -20px rgba(13, 124, 143, 0.55);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur: 380ms;
  --dur-slow: 900ms;
}

/* 2. BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.02em; text-wrap: balance; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
:where(ul[role="list"]) { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--ice-200); color: var(--teal-900); }

:focus-visible {
  outline: 3px solid var(--sky-500);
  outline-offset: 3px;
  border-radius: 6px;
}

/* 3. UTILITIES & COMPONENTS
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 200;
  background: var(--teal-700); color: #fff; padding: 0.75rem 1.1rem; border-radius: var(--radius-sm); font-weight: 700;
  transition: top var(--dur-fast);
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.text-grad {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-700);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--brand-grad); }
.eyebrow-light { color: var(--sky-300); }
.hero .eyebrow::before { display: none; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky-500); box-shadow: 0 0 0 4px rgba(37, 157, 202, 0.18); }

.section { position: relative; padding-block: var(--section-y); }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.75rem); }
.section-head-split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.section-title { font-size: var(--fs-h2); font-weight: 700; }
.section-sub { font-size: var(--fs-md); color: var(--ink-soft); margin: 0; }

/* Buttons */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.85rem 1.6rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.01em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid transparent; border-radius: 999px;
  isolation: isolate; overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
  white-space: nowrap;
}
.btn .icon { transition: transform var(--dur) var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  --btn-fg: #fff; background: var(--brand-grad);
  box-shadow: 0 12px 28px -12px rgba(0, 106, 110, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform 700ms var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 18px 36px -12px rgba(0, 106, 110, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-ghost { --btn-bg: rgba(255, 255, 255, 0.6); border-color: var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { --btn-bg: #fff; border-color: rgba(0, 106, 110, 0.35); color: var(--teal-700); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--teal-800); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.5); }
.btn-outline-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-outline-light:hover { --btn-bg: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn-sm { min-height: 44px; padding: 0.6rem 1.15rem; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.7);
  color: var(--teal-800);
  transition: background-color var(--dur-fast), border-color var(--dur-fast), transform var(--dur) var(--ease-out), color var(--dur-fast);
}
.icon-btn:hover { background: var(--teal-700); border-color: var(--teal-700); color: #fff; transform: translateY(-2px); }
.icon-btn-lg { width: 52px; height: 52px; }

.glass {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: var(--shadow);
}
.glass-dark {
  background: rgba(8, 40, 52, 0.62);
  border: 1px solid rgba(143, 208, 230, 0.22);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6);
  color: #fff;
}

/* 4. HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding-block: 14px;
  transition: padding var(--dur) var(--ease-out);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(247, 251, 252, 0.78);
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity var(--dur) var(--ease-out);
}
.site-header.is-scrolled { padding-block: 6px; }
.site-header.is-scrolled::before { opacity: 1; box-shadow: 0 10px 30px -20px rgba(6, 42, 52, 0.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 56px; }
.brand { display: block; flex: none; }
.brand img { width: auto; height: 48px; transition: height var(--dur) var(--ease-out); }
.is-scrolled .brand img { height: 42px; }

.site-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 0.25rem; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav-link {
  position: relative; display: block; padding: 0.5rem 1rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; color: var(--ink-soft);
  transition: color var(--dur-fast), background-color var(--dur-fast);
}
.nav-link:hover { color: var(--teal-700); background: rgba(0, 106, 110, 0.07); }
.nav-link.is-active { color: #fff; background: var(--teal-700); }
.nav-mobile-foot { display: none; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8); place-items: center;
}
.nav-toggle-bars { position: relative; width: 20px; height: 14px; }
.nav-toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--teal-900);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast), top var(--dur) var(--ease-out);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
.nav-open .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* 5. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 980px);
  padding-top: calc(var(--header-h) + clamp(2rem, 1rem + 4vw, 4.5rem));
  padding-bottom: clamp(4rem, 3rem + 3vw, 6rem);
  display: flex; align-items: center;
  background:
    radial-gradient(60% 70% at 85% 40%, rgba(37, 157, 202, 0.16), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(0, 106, 110, 0.10), transparent 70%),
    linear-gradient(180deg, #f9fdfe 0%, var(--ice-50) 60%, var(--bg) 100%);
}
.hero::after { /* blueprint grid */
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 106, 110, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 106, 110, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 80%);
          mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 80%);
}
.hero-glow {
  position: absolute; z-index: -1; right: -10%; top: 10%; width: 60vw; max-width: 900px; aspect-ratio: 1;
  background: conic-gradient(from 200deg, rgba(37, 157, 202, 0.25), rgba(0, 106, 110, 0.15), rgba(183, 226, 233, 0.35), rgba(37, 157, 202, 0.25));
  filter: blur(80px); border-radius: 50%; opacity: 0.7; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }

.hero-slides { display: grid; }
.hero-slide { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity 600ms var(--ease-out), visibility 0s linear 600ms; }
.hero-slide.is-active { visibility: visible; opacity: 1; transition: opacity 600ms var(--ease-out) 150ms, visibility 0s; }
.hero-slide > * { transform: translateY(18px); opacity: 0; transition: transform 800ms var(--ease-out), opacity 600ms var(--ease-out); }
.hero-slide.is-active > * { transform: none; opacity: 1; }
.hero-slide.is-active > :nth-child(2) { transition-delay: 80ms; }
.hero-slide.is-active > :nth-child(3) { transition-delay: 160ms; }
.hero-slide.is-active > :nth-child(4) { transition-delay: 240ms; }
.no-js .hero-slide:not(:first-child) { display: none; }
.no-js .hero-slide:first-child { visibility: visible; opacity: 1; }
.no-js .hero-slide:first-child > * { opacity: 1; transform: none; }

.hero-title { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.035em; margin-bottom: 1.25rem; color: var(--navy-900); }
.hero-lead { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); color: var(--ink-soft); max-width: 34rem; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero-controls { display: flex; align-items: center; gap: 1rem; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.hero-tabs { display: flex; gap: 0.5rem; flex: 1; min-width: 0; }
.hero-tab {
  flex: 1; min-width: 0; text-align: left; padding: 0.55rem 0 0.4rem; border: 0; background: none;
  display: grid; grid-template-columns: auto 1fr; column-gap: 0.5rem; align-items: baseline;
  color: var(--steel-500); border-radius: 8px;
}
.hero-tab-num { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs); }
.hero-tab-label { font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-tab-bar { grid-column: 1 / -1; display: block; height: 3px; margin-top: 0.55rem; border-radius: 3px; background: rgba(0, 106, 110, 0.14); overflow: hidden; }
.hero-tab-bar i { display: block; height: 100%; width: 0; background: var(--brand-grad); border-radius: inherit; }
.hero-tab.is-active { color: var(--teal-800); }
.hero-tab.is-active .hero-tab-bar i { width: 100%; }
.hero.is-autoplay .hero-tab.is-active .hero-tab-bar i { animation: progress var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused .hero-tab.is-active .hero-tab-bar i { animation-play-state: paused; }
.hero-tab:hover { color: var(--teal-700); }
.icon-play { display: none; }
.hero.is-paused-user .icon-pause, .hero.is-static .icon-pause { display: none; }
.hero.is-paused-user .icon-play, .hero.is-static .icon-play { display: block; }

/* 3D stage */
.hero-visual {
  --rx: 0deg; --ry: 0deg; --depth: 1; --tilt: -12deg;
  position: relative; aspect-ratio: 1 / 0.92; width: 100%; max-width: 640px; justify-self: end;
  perspective: 1400px; perspective-origin: 50% 40%;
}
.stage-floor {
  position: absolute; left: 6%; right: 6%; bottom: 2%; height: 46%;
  transform: rotateX(72deg); transform-origin: 50% 100%;
  background:
    radial-gradient(closest-side, rgba(13, 124, 143, 0.3), transparent),
    repeating-linear-gradient(0deg, rgba(0, 106, 110, 0.18) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(0, 106, 110, 0.18) 0 1px, transparent 1px 34px);
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent);
          mask-image: radial-gradient(closest-side, #000 40%, transparent);
  border-radius: 50%;
}
.stage-orbit {
  position: absolute; inset: 8% 4% 14%; border-radius: 50%;
  border: 1.5px dashed rgba(13, 124, 143, 0.28);
  transform: rotateX(68deg) rotateZ(0deg); animation: orbit 30s linear infinite;
}
.stage-orbit span { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--sky-500); box-shadow: 0 0 18px 4px rgba(37, 157, 202, 0.6); }

.scene {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(calc(6deg + var(--rx))) rotateY(calc(var(--tilt) + var(--ry)));
  transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out), visibility 0s linear 700ms;
  opacity: 0; visibility: hidden;
}
.scene:not(.is-active) { transform: rotateX(6deg) rotateY(28deg) translateZ(-180px); }
.scene.is-active { opacity: 1; visibility: visible; transition: opacity 700ms var(--ease-out) 120ms, transform 900ms var(--ease-out), visibility 0s; }
.hero-visual.is-tracking .scene.is-active { transition: opacity 700ms var(--ease-out), transform 160ms linear, visibility 0s; }

.scene-back {
  position: absolute; left: 14%; top: 4%; width: 74%; height: 62%; border-radius: var(--radius-lg);
  background: var(--brand-grad); opacity: 0.9;
  transform: translateZ(calc(-90px * var(--depth))) translate(8%, 6%);
  box-shadow: var(--shadow-lg);
}
.scene-back::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 14px); }
.scene-main {
  position: absolute; left: 6%; top: 12%; width: 78%; aspect-ratio: 16 / 10.4;
  border-radius: var(--radius-lg); overflow: hidden;
  transform: translateZ(0);
  border: 6px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  background: var(--ice-100);
}
.scene-main img { width: 100%; height: 100%; object-fit: cover; }
.scene-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, 0.25), transparent 40%, rgba(2, 58, 61, 0.18)); }

.float { position: absolute; transform-style: preserve-3d; }
.float-in {
  width: 100%; height: 100%; border-radius: var(--radius); overflow: hidden; background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 50px -22px rgba(4, 40, 52, 0.5), 0 0 0 1px rgba(0, 106, 110, 0.06);
  animation: bob 7s var(--ease-in-out) infinite;
}
.float-in img { width: 100%; height: 100%; object-fit: cover; }
.f1 { right: 0; top: 2%; width: 30%; aspect-ratio: 1; transform: translateZ(calc(150px * var(--depth))); }
.f2 { left: -2%; bottom: 10%; width: 28%; aspect-ratio: 1.1; transform: translateZ(calc(190px * var(--depth))); }
.f2 .float-in { animation-delay: -2.4s; animation-duration: 8s; }
.f3 { right: 4%; bottom: 4%; width: 26%; aspect-ratio: 1.15; transform: translateZ(calc(110px * var(--depth))); }
.f3 .float-in { animation-delay: -4.6s; animation-duration: 9s; }
.float-bare .float-in { background: none; border: 0; box-shadow: none; overflow: visible; filter: drop-shadow(0 26px 22px rgba(4, 40, 52, 0.35)); }
.float-bare.f1 { width: 40%; right: -6%; top: -4%; }
.float-bare .float-in img { object-fit: contain; }

.scene-chip {
  position: absolute; left: 30%; bottom: 0; transform: translateZ(calc(230px * var(--depth)));
  display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 1.1rem 0.7rem 0.7rem;
  border-radius: 16px; background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid #fff; box-shadow: var(--shadow);
  font-size: var(--fs-xs); line-height: 1.3; white-space: nowrap;
}
.scene-chip strong { display: block; font-family: var(--font-display); font-size: 0.85rem; color: var(--navy-900); }
.scene-chip small { color: var(--steel-500); font-size: var(--fs-xs); font-weight: 600; }
.chip-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-grad); color: #fff; }

.scroll-cue { position: absolute; left: 50%; bottom: 1.25rem; translate: -50% 0; width: 28px; height: 46px; border-radius: 14px; border: 2px solid rgba(0, 106, 110, 0.3); display: grid; justify-items: center; padding-top: 8px; }
.scroll-cue-line { width: 3px; height: 9px; border-radius: 2px; background: var(--teal-700); animation: cue 1.8s var(--ease-in-out) infinite; }

/* Marquee */
.marquee {
  position: relative; overflow: hidden; padding-block: 1.1rem;
  background: var(--navy-900); color: var(--ice-100);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 2.75rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track li { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; white-space: nowrap; }
.marquee-track li::after { content: ""; width: 6px; height: 6px; margin-left: 2.15rem; border-radius: 50%; background: var(--sky-500); }
.marquee-track .icon { color: var(--sky-300); }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* 6. SECTIONS
   -------------------------------------------------------------------------- */

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 1.5rem + 4vw, 5.5rem); align-items: center; }
.about-copy > p { color: var(--ink-soft); font-size: var(--fs-md); }
.about-copy strong { color: var(--ink); }
.about-visual { position: relative; perspective: 1200px; padding: 6% 6% 10% 0; }
.about-frame {
  --tx: 2deg; --ty: 8deg;
  position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  transform: rotateY(var(--ty)) rotateX(var(--tx)); transform-style: preserve-3d;
  transition: transform 600ms var(--ease-out);
}
.about-frame::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 55%, rgba(2, 58, 61, 0.35)); }
.about-frame img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.about-visual::before {
  content: ""; position: absolute; left: -6%; top: 0; width: 70%; height: 80%; z-index: -1; border-radius: var(--radius-lg);
  background: var(--brand-grad); opacity: 0.12; transform: rotate(-4deg);
}
.about-float { position: absolute; pointer-events: none; }
.about-float-parts { right: -4%; bottom: -2%; width: 46%; filter: drop-shadow(0 30px 24px rgba(4, 40, 52, 0.35)); animation: bob 8s var(--ease-in-out) infinite; }
.about-badge {
  position: absolute; left: -2%; bottom: 4%; display: flex; align-items: center; gap: 0.75rem;
  padding: 0.8rem 1.1rem; border-radius: 16px; font-size: var(--fs-xs); line-height: 1.35; max-width: 70%;
}
.about-badge .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--brand-grad); color: #fff; }
.about-badge strong { display: block; font-family: var(--font-display); font-size: 0.9rem; }
.about-badge small { color: var(--steel-500); font-weight: 600; }

.vm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.vm-card {
  position: relative; padding: 1.5rem; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.vm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.vm-card h3 { margin: 0.9rem 0 0.4rem; }
.vm-card p { color: var(--ink-soft); font-size: var(--fs-sm); margin: 0; }
.vm-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--ice-100); color: var(--teal-700); }
.vm-icon .icon { width: 22px; height: 22px; }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  overflow: hidden;
}
.stat { padding: clamp(1.25rem, 1rem + 1.2vw, 2rem); position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.stat-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1; letter-spacing: -0.03em; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 0.5rem; }
.stat-label { font-size: var(--fs-sm); color: var(--ink-soft); font-weight: 600; }

/* Products */
.products { background: linear-gradient(180deg, var(--bg), var(--ice-50)); }
.product-card {
  --tx: 0deg; --ty: 0deg; --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transform: perspective(1100px) rotateX(var(--tx)) rotateY(var(--ty));
  transition: transform 500ms var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur);
}
.product-card::after { /* moving light */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity var(--dur);
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(37, 157, 202, 0.14), transparent 45%);
}
.product-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(13, 124, 143, 0.3); }
.product-card:hover::after { opacity: 1; }
.pc-media { position: relative; aspect-ratio: 16 / 9; background: #fff; overflow: hidden; border-bottom: 1px solid var(--line); }
.pc-media img { width: 100%; height: 100%; object-fit: contain; padding: 0.9rem 1rem 1.6rem; transition: transform 900ms var(--ease-out); }
.product-card:hover .pc-media img { transform: scale(1.06); }
.pc-media-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pc-media-trio img { padding: 0.75rem 0.3rem 1.5rem; }
.pc-media-trio img + img { border-left: 1px dashed var(--line); }
.product-card:hover .pc-media-trio img:nth-child(2) { transition-delay: 60ms; }
.product-card:hover .pc-media-trio img:nth-child(3) { transition-delay: 120ms; }
.pc-body { position: relative; padding: 1.75rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.pc-icon {
  position: absolute; top: -26px; left: 1.5rem; display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 16px; background: var(--brand-grad); color: #fff; box-shadow: 0 12px 24px -10px rgba(0, 106, 110, 0.7);
  border: 3px solid #fff;
}
.pc-icon .icon { width: 22px; height: 22px; }
.pc-body h3 { margin-top: 0.75rem; }
.pc-body > p { color: var(--ink-soft); font-size: var(--fs-sm); }
.pc-list { margin-top: auto; border-top: 1px dashed var(--line); padding-top: 0.9rem; }
.pc-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--teal-700); min-height: 32px;
}
.pc-list summary::-webkit-details-marker { display: none; }
.pc-list summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ice-100)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006a6e' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform var(--dur) var(--ease-out);
}
.pc-list[open] summary::after { transform: rotate(135deg); }
.pc-list ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 0.35rem 1rem; padding-top: 0.85rem; }
.pc-list li { position: relative; padding-left: 1.1rem; font-size: 0.875rem; color: var(--ink-soft); line-height: 1.45; }
.pc-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; border-radius: 2px; background: var(--sky-500); transform: rotate(45deg); }


/* Why choose us (dark) */
.why { color: #fff; overflow: hidden; isolation: isolate; }
.why-bg { position: absolute; inset: 0; z-index: -1; background: var(--dark-grad); }
.why-bg::before {
  content: ""; position: absolute; inset: 0;
  background: url("../images/mep-blueprint.webp") center / cover no-repeat;
  opacity: 0.045; mix-blend-mode: luminosity;
}
.why-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(143, 208, 230, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 208, 230, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 80% at 30% 50%, #000, transparent);
          mask-image: radial-gradient(70% 80% at 30% 50%, #000, transparent);
}
.why .eyebrow::before { background: var(--sky-300); }
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 1.5rem + 4vw, 5.5rem); align-items: center; }
.why-copy > p { color: rgba(223, 241, 244, 0.78); font-size: var(--fs-md); }
.why-list { display: grid; gap: 0.75rem; margin-top: 2rem; }
.why-item {
  display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.1rem; border-radius: 16px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(143, 208, 230, 0.14);
  transition: background-color var(--dur), border-color var(--dur), transform var(--dur) var(--ease-out);
}
.why-item:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(143, 208, 230, 0.35); transform: translateX(6px); }
.why-item strong { font-weight: 600; }
.why-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: linear-gradient(135deg, rgba(37, 157, 202, 0.35), rgba(0, 106, 110, 0.45)); color: var(--sky-300); border: 1px solid rgba(143, 208, 230, 0.25); }
.why-visual { position: relative; perspective: 1200px; padding: 8% 0 12%; }
.why-frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 50px 80px -30px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(143, 208, 230, 0.25);
  --tx: 3deg; --ty: -10deg;
  transform: rotateY(var(--ty)) rotateX(var(--tx));
  transition: transform 600ms var(--ease-out);
}
.why-frame img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.why-card { position: absolute; display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem 1.15rem; border-radius: 16px; font-size: var(--fs-xs); line-height: 1.35; max-width: 270px; }
.why-card strong { display: block; font-family: var(--font-display); font-size: 0.92rem; }
.why-card small { color: rgba(223, 241, 244, 0.72); font-weight: 600; }
.why-card-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--brand-grad); }
.wc-1 { top: 0; right: -3%; animation: bob 8s var(--ease-in-out) infinite; }
.wc-2 { left: -5%; bottom: 2%; animation: bob 9s var(--ease-in-out) -3s infinite; }

/* Who we serve */
.serve-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.serve-grid p { color: var(--ink-soft); font-size: var(--fs-md); }
.serve-cloud { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-start; }
.serve-cloud li {
  padding: 0.8rem 1.2rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 500; font-size: 0.92rem; color: var(--navy-800);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur), background-color var(--dur), color var(--dur);
}
.serve-cloud li:nth-child(3n + 1) { transform: translateY(6px); }
.serve-cloud li:nth-child(4n + 2) { background: var(--ice-100); border-color: transparent; }
.serve-cloud li:hover { transform: translateY(-4px) rotateX(10deg); box-shadow: var(--shadow); background: var(--teal-700); color: #fff; }

/* Standards */
.standards { background: linear-gradient(180deg, var(--bg), var(--ice-50)); }
.std-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 0.75rem + 1vw, 1.5rem); }
.std-panel { padding: clamp(1.5rem, 1.25rem + 1vw, 2.25rem); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.std-panel h3, .std-statement h3 { display: flex; align-items: center; gap: 0.6rem; }
.std-panel h3 .icon, .std-statement h3 .icon { color: var(--teal-600); width: 1.3em; height: 1.3em; }
.std-note { color: var(--steel-500); font-size: var(--fs-sm); }
.std-list { margin: 1.25rem 0 0; display: grid; gap: 0.6rem; }
.std-list div {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 1rem; align-items: center;
  padding: 0.8rem 1rem; border-radius: 14px; background: var(--ice-50); border-left: 3px solid var(--teal-600);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur);
}
.std-list div:hover { transform: translateX(4px); background: var(--ice-100); }
.std-list dt { font-family: var(--font-display); font-weight: 700; color: var(--teal-800); letter-spacing: 0.02em; }
.std-list dd { margin: 0; font-size: 0.875rem; color: var(--ink-soft); line-height: 1.4; }
.std-statement {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  border-radius: var(--radius-lg); overflow: hidden; background: var(--teal-800); color: #fff; box-shadow: var(--shadow);
}
.std-statement-media { position: relative; min-height: 260px; }
.std-statement-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.std-statement-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, var(--teal-800)); }
.std-statement-body { padding: clamp(1.5rem, 1.25rem + 1.5vw, 2.75rem); }
.std-statement-body p { color: rgba(223, 241, 244, 0.86); font-size: var(--fs-sm); }
.std-statement-body p:last-child { margin: 0; }
.std-statement h3 .icon { color: var(--sky-300); }

.expansion {
  display: flex; gap: 1.25rem; align-items: flex-start; margin-top: clamp(1rem, 0.75rem + 1vw, 1.5rem);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); border-radius: var(--radius-lg);
  border: 1.5px dashed rgba(13, 124, 143, 0.35); background: rgba(255, 255, 255, 0.6);
}
.expansion h3 { margin-bottom: 0.3rem; }
.expansion p { margin: 0; color: var(--ink-soft); font-size: var(--fs-sm); }
.expansion-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--ice-100); color: var(--teal-700); }

/* CTA */
.cta { padding-top: calc(var(--section-y) * 0.6); }
.cta-panel {
  position: relative; isolation: isolate; overflow: hidden; border-radius: clamp(24px, 3vw, 40px);
  background: linear-gradient(125deg, var(--teal-900) 0%, var(--teal-700) 45%, var(--sky-600) 100%);
  color: #fff; padding: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) clamp(1.5rem, 1rem + 4vw, 5rem);
  box-shadow: 0 50px 90px -40px rgba(0, 79, 83, 0.75);
}
.cta-media { position: absolute; inset: 0 0 0 auto; width: 52%; z-index: -1; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; opacity: 0.55; mix-blend-mode: screen; }
.cta-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--teal-800) 0%, rgba(0, 79, 83, 0.4) 45%, transparent 100%); }
.cta-rings { position: absolute; right: 8%; top: 50%; width: 420px; aspect-ratio: 1; translate: 0 -50%; z-index: -1; pointer-events: none; }
.cta-rings span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); animation: pulse-ring 6s var(--ease-out) infinite; }
.cta-rings span:nth-child(2) { animation-delay: 2s; }
.cta-rings span:nth-child(3) { animation-delay: 4s; }
.cta-copy { max-width: 600px; }
.cta-title { font-size: var(--fs-h2); font-weight: 700; }
.cta-copy > p { color: rgba(240, 250, 252, 0.88); font-size: var(--fs-md); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 2rem 0 1.5rem; }
.cta-loc { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--ice-200) !important; }

/* 7. FOOTER
   -------------------------------------------------------------------------- */
.site-footer { position: relative; isolation: isolate; padding-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); background: var(--ice-50); border-top: 1px solid var(--line); overflow: hidden; }
.footer-bg { position: absolute; inset: 0; z-index: -1; background: url("../images/mep-blueprint.webp") center / cover no-repeat; opacity: 0.06; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 1rem + 3vw, 4rem); padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.footer-logo img { width: 170px; height: auto; }
.footer-brand p { color: var(--ink-soft); font-size: var(--fs-sm); max-width: 360px; margin-top: 1.25rem; }
.footer-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.footer-tags span { padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600; color: var(--teal-700); }
.footer-h { font-size: 0.95rem; font-weight: 600; letter-spacing: 0; margin-bottom: 1.1rem; color: var(--navy-900); }
.footer-col ul { display: grid; gap: 0.65rem; }
.footer-col a { color: var(--ink-soft); font-size: var(--fs-sm); transition: color var(--dur-fast); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color var(--dur-fast), background-size var(--dur) var(--ease-out); }
.footer-col a:hover { color: var(--teal-700); background-size: 100% 1px; }
.footer-contact li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-soft); }
.footer-contact .icon { margin-top: 0.2em; color: var(--teal-600); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--steel-500); }
.footer-bottom p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--teal-700); }
.to-top .icon { transform: rotate(-90deg); }

/* 8. MOTION
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .product-card.reveal { transform: perspective(1100px) translateY(36px) rotateX(8deg); }
.js .product-card.reveal.is-in { transform: perspective(1100px) rotateX(var(--tx)) rotateY(var(--ty)); }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbit { to { transform: rotateX(68deg) rotateZ(360deg); } }
@keyframes progress { from { width: 0; } to { width: 100%; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes pulse-ring { 0% { transform: scale(0.4); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }

/* Pause decorative loops while their section is off-screen (toggled by JS) */
.is-offscreen .float-in, .is-offscreen .stage-orbit, .is-offscreen .hero-glow,
.is-offscreen.marquee .marquee-track, .is-offscreen .cta-rings span,
.is-offscreen .why-card, .is-offscreen .about-float-parts { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0ms !important; }
  .marquee-track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 0.75rem; }
  .marquee-track li[aria-hidden="true"] { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .product-card.reveal { transform: none; }
}

/* 9. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav-link { padding: 0.5rem 0.75rem; }
  .header-cta { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand img { height: 42px; }
  .nav-toggle { display: grid; }

  /* Mobile drawer */
  .site-nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: stretch; justify-content: space-between;
    padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
    background: rgba(247, 251, 252, 0.97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    clip-path: circle(0 at calc(100% - 44px) 40px);
    visibility: hidden;
    transition: clip-path 650ms var(--ease-in-out), visibility 0s linear 650ms;
    overflow-y: auto;
  }
  .nav-open .site-nav { clip-path: circle(150% at calc(100% - 44px) 40px); visibility: visible; transition: clip-path 650ms var(--ease-in-out), visibility 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0.25rem; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-link {
    font-size: clamp(1.4rem, 1rem + 2.5vw, 1.9rem); font-weight: 600; color: var(--navy-900); padding: 0.75rem 0.25rem; border-radius: 0;
    border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(16px); transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out), color var(--dur-fast);
  }
  .nav-link:hover { background: none; }
  .nav-link.is-active { background: none; color: var(--teal-700); }
  .nav-open .nav-link { opacity: 1; transform: none; }
  .nav-open .nav-list li:nth-child(1) .nav-link { transition-delay: 150ms; }
  .nav-open .nav-list li:nth-child(2) .nav-link { transition-delay: 190ms; }
  .nav-open .nav-list li:nth-child(3) .nav-link { transition-delay: 230ms; }
  .nav-open .nav-list li:nth-child(4) .nav-link { transition-delay: 270ms; }
  .nav-open .nav-list li:nth-child(5) .nav-link { transition-delay: 310ms; }
  .nav-open .nav-list li:nth-child(6) .nav-link { transition-delay: 350ms; }
  .nav-mobile-foot { display: grid; gap: 0.9rem; margin-top: 2rem; }
  .nav-contact { display: flex; align-items: center; gap: 0.6rem; color: var(--ink-soft); font-weight: 600; }
  .nav-contact .icon { color: var(--teal-700); }
  .nav-open .site-header::before { opacity: 0; }

  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { justify-self: center; max-width: 560px; margin-top: 1rem; }
  .scroll-cue { display: none; }

  .about-grid, .why-grid, .serve-grid { grid-template-columns: minmax(0, 1fr); }
  .about-visual { max-width: 620px; }
  .why-visual { max-width: 620px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }


  .std-grid { grid-template-columns: minmax(0, 1fr); }
  .std-statement { grid-template-columns: minmax(0, 1fr); }
  .std-statement-media { min-height: 220px; }
  .std-statement-media::after { background: linear-gradient(180deg, transparent 50%, var(--teal-800)); }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .cta-media { width: 100%; opacity: 0.6; }
  .cta-media::after { background: linear-gradient(180deg, rgba(0, 79, 83, 0.92), rgba(0, 79, 83, 0.75)); }
}

@media (max-width: 640px) {
  .hero { padding-top: calc(var(--header-h) + 1.75rem); }
  .hero-ctas .btn { flex: 1 1 auto; }
  .hero-visual { aspect-ratio: 1 / 0.95; --depth: 0.4; --tilt: -6deg; }
  .scene-chip { left: 18%; padding: 0.55rem 0.8rem 0.55rem 0.55rem; }
  .chip-icon { width: 32px; height: 32px; border-radius: 10px; }
  .f1 { width: 32%; }
  .f2 { width: 30%; left: 0; }


  .vm-grid { grid-template-columns: minmax(0, 1fr); }
  .std-list div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .why-card { position: relative; inset: auto; margin-top: 0.75rem; max-width: none; animation: none; }
  .why-visual { padding: 0; }
  .about-visual { padding: 0 0 12%; }
  .about-badge { max-width: 85%; }
  .cta-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .serve-cloud li { padding: 0.65rem 1rem; font-size: 0.85rem; }
}

@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .brand img { height: 38px; }
  .hero-title { font-size: 1.95rem; }
  .hero-tab-label { display: none; }
  .scene-chip { left: 8%; }
  .scene-chip small { display: none; }
  .btn { padding-inline: 1.2rem; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat::before { display: none; }
  .stat + .stat { border-top: 1px solid var(--line); }
}

/* Touch devices: no hover-tilt styles get stuck */
@media (hover: none) {
  .product-card:hover { box-shadow: var(--shadow-sm); }
  .product-card:hover .pc-media img { transform: none; }
}

@media print {
  .site-header, .hero-waves, .hero-visual, .marquee, .scroll-cue { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   10. MULTI-PAGE COMPONENTS
   ========================================================================== */

/* Airflow waves (hero + page heroes) */
.hero-waves { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.wave-layer { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; animation: wave-drift 60s linear infinite; }
.wave-layer path { fill: none; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.wl-1 path { stroke: rgba(13, 124, 143, 0.16); }
.wl-2 { animation-duration: 90s; }
.wl-2 path { stroke: rgba(37, 157, 202, 0.16); stroke-dasharray: 2 10; stroke-width: 2; }
.wl-3 { animation-duration: 120s; }
.wl-3 .wave-fill { fill: rgba(183, 226, 233, 0.22); stroke: none; }
@keyframes wave-drift { to { transform: translateX(-50%); } }
.is-offscreen .wave-layer, .is-low-power .wave-layer { animation-play-state: paused; }
.is-low-power .float-in { animation: none; }

/* Header: quote badge + products dropdown */
.quote-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: #fff; color: var(--teal-800); font-size: 0.75rem; font-weight: 700; line-height: 1;
}
.quote-count[hidden] { display: none; }
.btn-ghost .quote-count { background: var(--teal-700); color: #fff; }

.has-sub { position: relative; display: flex; align-items: center; }
.has-sub > .nav-link { padding-right: 0.35rem; }
.sub-toggle {
  display: grid; place-items: center; width: 28px; height: 28px; margin-right: 4px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-soft);
}
.sub-toggle .icon { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.sub-toggle:hover { background: rgba(0, 106, 110, 0.08); color: var(--teal-700); }
.has-sub.is-open .sub-toggle .icon { transform: rotate(180deg); }
.sub-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; width: min(560px, 90vw);
  padding: 0.75rem; border-radius: 22px; background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transform-origin: 50% 0;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* hover bridge */
.has-sub.is-open .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s; }
.sub-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem; }
.sub-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.75rem; border-radius: 14px; transition: background-color var(--dur-fast); }
.sub-link:hover, .sub-link[aria-current="page"] { background: var(--ice-50); }
.sub-link strong { display: block; font-family: var(--font-display); font-size: 0.875rem; font-weight: 600; line-height: 1.3; color: var(--navy-900); }
.sub-link small { display: block; font-size: 0.75rem; color: var(--steel-500); font-weight: 600; }
.sub-link[aria-current="page"] strong { color: var(--teal-700); }
.sub-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--brand-grad); color: #fff; }
.sub-icon .icon { width: 18px; height: 18px; }
.sub-all {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 0.5rem; padding: 0.7rem;
  border-radius: 14px; background: var(--ice-100); font-family: var(--font-display); font-weight: 600; font-size: 0.875rem; color: var(--teal-800);
}
.sub-all:hover { background: var(--ice-200); }

/* Inner page hero */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + clamp(2.5rem, 1.5rem + 3vw, 4rem)) 0 clamp(3rem, 2rem + 3vw, 5rem);
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(37, 157, 202, 0.14), transparent 70%),
    linear-gradient(180deg, #f9fdfe 0%, var(--ice-50) 100%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(rgba(0, 106, 110, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 106, 110, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 80% at 70% 30%, #000 30%, transparent 80%); mask-image: radial-gradient(80% 80% at 70% 30%, #000 30%, transparent 80%);
}
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
.page-title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.3rem); font-weight: 700; letter-spacing: -0.03em; color: var(--navy-900); margin-bottom: 1.1rem; }
.page-hero .eyebrow::before { display: none; }
.page-hero .eyebrow { letter-spacing: 0.1em; line-height: 1.5; }
.page-hero .hero-ctas { margin-top: 0.5rem; }
.page-visual { max-width: 520px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0 0 1.25rem; padding: 0; font-size: var(--fs-xs); font-weight: 600; color: var(--steel-500); }
.crumbs li + li::before { content: "/"; margin-right: 0.35rem; opacity: 0.5; }
.crumbs a { color: var(--teal-700); }
.crumbs a:hover { text-decoration: underline; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: -0.5rem 0 1.75rem; padding: 0; }
.hero-meta li { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.85rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 600; color: var(--ink-soft); }
.hero-meta .icon { color: var(--teal-600); }
.hero-meta strong { color: var(--teal-800); }

.divisions-visual { position: relative; justify-self: center; width: min(440px, 100%); aspect-ratio: 1; perspective: 1200px; }
.divisions-disc { --tx: 6deg; --ty: -10deg; position: absolute; inset: 6%; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-lg); transform: rotateY(var(--ty)) rotateX(var(--tx)); transition: transform 600ms var(--ease-out); }
.divisions-disc img { width: 100%; height: 100%; object-fit: cover; }
.divisions-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(13, 124, 143, 0.3); animation: orbit-flat 50s linear infinite; }
@keyframes orbit-flat { to { transform: rotate(360deg); } }
.contact-visual { position: relative; justify-self: center; width: min(380px, 100%); perspective: 1200px; padding-bottom: 8%; }
.contact-visual .about-frame img { aspect-ratio: 4 / 4.4; object-position: 50% 25%; }

/* Category cards (home + products) */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 0.75rem + 1vw, 1.5rem); list-style: none; margin: 0; padding: 0; }
.cat-grid .pc-media { aspect-ratio: 16 / 8; }
.cat-grid .pc-body h3 { font-size: 1.12rem; }
.stretched { color: inherit; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.stretched:focus-visible { outline: none; }
.product-card:focus-within { box-shadow: 0 0 0 3px var(--sky-500), var(--shadow); }
.pc-foot { display: flex; align-items: center; justify-content: space-between; margin: auto 0 0; padding-top: 0.9rem; border-top: 1px dashed var(--line); font-size: var(--fs-sm); font-weight: 600; color: var(--steel-500); }
.pc-go { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-display); color: var(--teal-700); }
.pc-go .icon { transition: transform var(--dur) var(--ease-out); }
.product-card:hover .pc-go .icon { transform: translateX(4px); }

/* Product grid (category pages) */
.range-section { background: linear-gradient(180deg, var(--bg), var(--ice-50)); }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: clamp(0.85rem, 0.6rem + 1vw, 1.35rem); list-style: none; margin: 0; padding: 0; }
.prod-card {
  display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 24px);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur), opacity 800ms var(--ease-out);
}
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(13, 124, 143, 0.3); }
.prod-card:target { box-shadow: 0 0 0 3px var(--sky-500), var(--shadow); }
.prod-media { position: relative; aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.prod-media img { width: 100%; height: 100%; object-fit: contain; padding: 0.75rem; transition: transform 700ms var(--ease-out); }
.prod-card:hover .prod-media img { transform: scale(1.06); }
.prod-placeholder { display: grid; justify-items: center; gap: 0.6rem; width: 100%; height: 100%; place-content: center; color: var(--teal-600); background: repeating-linear-gradient(135deg, var(--ice-50) 0 10px, #fff 10px 20px); }
.prod-placeholder .icon { width: 56px; height: 56px; padding: 14px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); stroke-width: 1.6; }
.prod-placeholder small { font-size: 0.75rem; font-weight: 600; color: var(--steel-500); }
.prod-body { display: flex; flex-direction: column; gap: 0.85rem; flex: 1; padding: 1rem 1.1rem 1.1rem; }
.prod-name { font-size: 0.98rem; font-weight: 600; line-height: 1.35; margin: 0; }
.prod-quote {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; margin-top: auto; min-height: 42px; padding: 0.5rem 0.9rem;
  border-radius: 999px; border: 1px solid rgba(0, 106, 110, 0.3); background: #fff; color: var(--teal-700);
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.prod-quote:hover { background: var(--ice-50); }
.prod-quote .icon-added { display: none; }
.prod-quote.is-added { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.prod-quote.is-added .icon-added { display: block; }
.prod-quote.is-added .icon-add { display: none; }
.range-note { margin: 1.75rem 0 0; font-size: var(--fs-sm); color: var(--steel-500); }
.quote-link { gap: 0.6rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.gallery-grid figure { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform var(--dur) var(--ease-out), box-shadow var(--dur); }
.gallery-grid figure:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 0.5rem; }
.gallery-grid figcaption { padding: 0.6rem 0.8rem; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); border-top: 1px solid var(--line); }

.cat-std-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
.cat-std-copy p:not(.eyebrow) { color: var(--ink-soft); }

.others { padding-top: 0; }
.other-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0.85rem; list-style: none; margin: 0; padding: 0; }
.other-cat { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.15rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur), border-color var(--dur), opacity 800ms var(--ease-out); }
.other-cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(13, 124, 143, 0.3); }
.other-cat > span:nth-child(2) { flex: 1; min-width: 0; }
.other-cat strong { display: block; font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; }
.other-cat small { color: var(--steel-500); font-weight: 600; font-size: 0.8rem; }
.other-cat > .icon { color: var(--teal-700); transition: transform var(--dur) var(--ease-out); }
.other-cat:hover > .icon { transform: translateX(4px); }
.pc-icon-sm { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--brand-grad); color: #fff; }
.pc-icon-sm .icon { width: 18px; height: 18px; }

/* Products overview index */
.index-section { padding-top: 0; }
.index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 0.75rem + 1vw, 1.5rem); }
.index-col { padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.index-col h3 a { display: flex; align-items: center; gap: 0.75rem; }
.index-col h3 a:hover { color: var(--teal-700); }
.index-col ul { display: grid; gap: 0.15rem; margin-top: 0.5rem; }
.index-col li a { display: block; padding: 0.35rem 0 0.35rem 1.1rem; position: relative; font-size: 0.9rem; color: var(--ink-soft); }
.index-col li a::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 6px; height: 6px; border-radius: 2px; background: var(--sky-500); transform: rotate(45deg); }
.index-col li a:hover { color: var(--teal-700); }

/* Home: standards teaser */
.std-teaser { background: linear-gradient(180deg, var(--bg), var(--ice-50)); }
.std-teaser-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
.std-teaser .section-sub { margin-bottom: 1.5rem; }
.std-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.75rem; list-style: none; margin: 0; padding: 0; perspective: 900px; }
.std-chips li {
  padding: 1.1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--teal-600); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur);
}
.std-chips li:hover { transform: translateY(-4px) rotateX(8deg); box-shadow: var(--shadow); }
.std-chips strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--teal-800); }
.std-chips small { color: var(--steel-500); font-weight: 600; font-size: 0.8rem; }

/* About page */
.vm-section { padding-top: 0; }
.vm-grid-lg { margin-top: 0; }
.vm-grid-lg .vm-card { padding: clamp(1.5rem, 1.25rem + 1vw, 2.25rem); }
.vm-title { font-size: 1.35rem; margin: 1rem 0 0.5rem; }
.vm-grid-lg p { font-size: var(--fs-md); }
.expansion-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.expansion-split p:not(.eyebrow) { color: var(--ink-soft); font-size: var(--fs-md); }
.expansion-media { perspective: 1200px; }

/* Standards page */
.std-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 0.75rem + 1vw, 1.5rem); }
.std-col { display: grid; gap: 1rem; align-content: start; }
.std-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.std-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.std-photo figcaption { position: absolute; inset: auto 0 0; padding: 2.5rem 1.25rem 1rem; color: #fff; font-weight: 600; font-size: var(--fs-sm); background: linear-gradient(180deg, transparent, rgba(2, 58, 61, 0.9)); }
.compliance { padding-top: 0; }
.std-statement .section-title { display: flex; align-items: center; gap: 0.6rem; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: clamp(1.5rem, 1rem + 2vw, 2.5rem) 0 0; padding: 0; }
.step { position: relative; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step h3 { margin: 0.75rem 0 0.4rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: var(--fs-sm); }
.step-num { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Forms (contact + quote) */
.contact-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 0 0 clamp(2rem, 1.5rem + 2vw, 3.5rem); padding: 0; }
.contact-card { padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur), opacity 800ms var(--ease-out); }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card h3 { margin: 1rem 0 0.25rem; font-size: 1rem; }
.contact-card a, .contact-card p { margin: 0; color: var(--teal-700); font-weight: 600; overflow-wrap: anywhere; }
.contact-card p { color: var(--ink-soft); }
.cc-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-grad); color: #fff; }
.cc-icon .icon { width: 22px; height: 22px; }
.contact-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); align-items: start; }
.form-card { padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-title { font-size: 1.5rem; margin-bottom: 0.35rem; }
.form-intro { color: var(--ink-soft); font-size: var(--fs-sm); }
.form-intro a { color: var(--teal-700); font-weight: 700; text-decoration: underline; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 700; color: var(--navy-900); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; border-radius: 12px; border: 1.5px solid rgba(13, 54, 66, 0.22);
  background: var(--ice-50); color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background-color var(--dur-fast);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-600); background: #fff; box-shadow: 0 0 0 4px rgba(37, 157, 202, 0.2); }
.field [aria-invalid="true"] { border-color: #c0392b; background: #fff7f6; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem 1.25rem; margin-top: 1.5rem; }
.form-hint { margin: 0; font-size: var(--fs-xs); color: var(--steel-500); flex: 1 1 220px; }
.form-hint a { color: var(--teal-700); font-weight: 700; }
.quote-form > .form-hint { margin-top: 1rem; }
.form-status { margin: 1rem 0 0; font-size: var(--fs-sm); font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { padding: 0.85rem 1rem; border-radius: 12px; background: var(--ice-100); color: var(--teal-800); }
.form-status.is-error { padding: 0.85rem 1rem; border-radius: 12px; background: #fdecea; color: #a12a1d; }
.contact-aside { display: grid; gap: 1rem; }
.aside-card { padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.aside-card h2 { font-size: 1.2rem; margin: 0.85rem 0 0.4rem; }
.aside-card p { color: var(--ink-soft); font-size: var(--fs-sm); }
.aside-quote { background: linear-gradient(135deg, var(--teal-800), var(--teal-600) 60%, var(--sky-600)); color: #fff; border: 0; }
.aside-quote p { color: rgba(240, 250, 252, 0.9); }
.aside-quote .cc-icon { background: rgba(255, 255, 255, 0.16); }

/* Quote page */
.quote-section { padding-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.quote-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); align-items: start; }
.q-step { border: 0; margin: 0 0 2rem; padding: 0 0 2rem; border-bottom: 1px dashed var(--line); min-width: 0; }
.q-step legend { display: flex; align-items: center; gap: 0.7rem; padding: 0; margin-bottom: 1rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--navy-900); }
.q-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-grad); color: #fff; font-size: 0.95rem; }
.q-picker { display: flex; align-items: flex-end; gap: 0.75rem; }
.q-picker .field { flex: 1; }
.q-picker .btn { min-height: 48px; }
.q-list-wrap { margin: 1.25rem 0; }
.q-empty { margin: 0; padding: 1.1rem; border-radius: 14px; border: 1.5px dashed var(--line); text-align: center; color: var(--steel-500); font-size: var(--fs-sm); }
.q-empty[hidden] { display: none; }
.q-list { display: grid; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.q-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.75rem 0.7rem 1rem; border-radius: 14px; background: var(--ice-50); border: 1px solid var(--line); animation: q-in 400ms var(--ease-out); }
@keyframes q-in { from { opacity: 0; transform: translateY(8px); } }
.q-item-text { flex: 1; min-width: 0; }
.q-item-text strong { display: block; font-size: 0.92rem; line-height: 1.3; }
.q-item-text small { color: var(--steel-500); font-size: 0.78rem; font-weight: 600; }
.q-qty { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 700; color: var(--steel-500); }
.q-qty input { width: 72px; min-height: 40px; padding: 0.4rem 0.5rem; border-radius: 10px; border: 1.5px solid rgba(13, 54, 66, 0.22); font: inherit; font-size: 1rem; text-align: center; background: #fff; }
.q-qty input:focus { outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 3px rgba(37, 157, 202, 0.2); }
.q-remove { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; border: 0; background: transparent; color: var(--steel-500); }
.q-remove:hover { background: #fdecea; color: #a12a1d; }
.quote-steps { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.quote-steps li { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.9rem 0.45rem 0.45rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 700; color: var(--ink-soft); }
.quote-steps span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-grad); color: #fff; }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 20px); }
.aside-sticky h2 { margin-top: 0; }
.aside-count strong { font-family: var(--font-display); font-size: 2rem; color: var(--teal-700); margin-right: 0.3rem; }
.aside-steps { display: grid; gap: 0.6rem; margin: 1rem 0; }
.aside-steps li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-soft); }
.aside-steps .icon { color: var(--teal-600); margin-top: 0.2em; }
.aside-card hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }
.aside-small { margin-bottom: 0.5rem !important; font-weight: 700; color: var(--navy-900) !important; }
.aside-link { display: flex; align-items: center; gap: 0.55rem; padding: 0.35rem 0; font-weight: 600; color: var(--teal-700); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 1.25rem; z-index: 150; max-width: min(92vw, 520px);
  padding: 0.9rem 1.2rem; border-radius: 14px; background: var(--navy-900); color: #fff; font-size: var(--fs-sm); font-weight: 600;
  box-shadow: var(--shadow-lg); transform: translate(-50%, 150%); opacity: 0;
  transition: transform 450ms var(--ease-out), opacity 300ms;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast a { color: var(--sky-300); text-decoration: underline; white-space: nowrap; }


/* --- Multi-page responsive --- */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  /* Dropdown becomes an accordion inside the drawer */
  .has-sub { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .has-sub > .nav-link { flex: 1; border-bottom: 0; }
  .sub-toggle { width: 48px; height: 48px; margin: 0; border-radius: 12px; opacity: 0; transition: opacity 400ms var(--ease-out); }
  .nav-open .sub-toggle { opacity: 1; transition-delay: 230ms; }
  .sub-toggle .icon { width: 22px; height: 22px; }
  .sub-menu {
    position: static; width: 100%; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none; opacity: 1; visibility: visible; transform: none; display: none;
  }
  .sub-menu::before { display: none; }
  .has-sub.is-open .sub-menu { display: block; transform: none; padding: 0 0 0.75rem; }
  .sub-list { grid-template-columns: minmax(0, 1fr); }
  .sub-link { padding: 0.55rem 0.5rem; }

  .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .page-visual { justify-self: center; width: 100%; max-width: 480px; }
  .cat-std-grid, .std-teaser-grid, .expansion-split, .std-pair, .contact-split, .quote-layout { grid-template-columns: minmax(0, 1fr); }
  .aside-sticky { position: static; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .page-visual { --depth: 0.4; --tilt: -6deg; aspect-ratio: 1 / 0.95; }
  .cat-grid, .index-grid { grid-template-columns: minmax(0, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
  .prod-body { padding: 0.8rem; gap: 0.7rem; }
  .prod-name { font-size: 0.86rem; }
  .prod-quote { font-size: 0.75rem; padding: 0.45rem 0.6rem; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .q-picker { flex-direction: column; align-items: stretch; }
  .q-item { flex-wrap: wrap; }
  .q-item-text { flex-basis: 100%; }
  .q-qty { margin-right: auto; }
  .form-actions .btn { flex: 1 1 100%; }
  .contact-cards { grid-template-columns: minmax(0, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 340px) {
  .prod-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .wave-layer, .divisions-ring { animation: none !important; }
}

/* Tighter spacing for the compact home sections (Who we serve, Standards teaser) */
.serve { padding-block: clamp(3rem, 2rem + 3vw, 5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.std-teaser { padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(3rem, 2rem + 3vw, 5rem); }
.std-teaser + .cta { padding-top: 0; }
.serve .section-title, .std-teaser .section-title { margin-bottom: 0.4em; }
.serve-grid p:last-child, .std-teaser .section-sub { margin-bottom: 0; }
.std-teaser .btn { margin-top: 1.25rem; }
.vm-section .stats { margin-top: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.vm-grid-lg { align-items: stretch; }

/* ==========================================================================
   11. HERO SLIDER – OPTION B (cinematic framed panel)
   ========================================================================== */
.hero-b { padding: calc(var(--header-h) + 18px) 0 clamp(2rem, 1.5rem + 2vw, 3rem); background: linear-gradient(180deg, #f9fdfe, var(--bg)); }
.hb-panel {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(560px, 78svh, 760px);
  display: grid; grid-template-rows: 1fr auto;
  border-radius: clamp(24px, 3vw, 40px);
  background: linear-gradient(120deg, #041f29 0%, #06323d 45%, #0a4a55 100%);
  box-shadow: 0 50px 90px -40px rgba(2, 40, 50, 0.75);
  color: #fff;
}
/* Photo layer: right side, fading into the panel colour */
.hb-media { position: absolute; inset: 0 0 0 auto; width: 66%; z-index: -2; }
.hb-scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1100ms var(--ease-out), visibility 0s linear 1100ms; }
.hb-scene.is-active { opacity: 1; visibility: visible; transition: opacity 1100ms var(--ease-out), visibility 0s; }
.hb-bg { position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%); }
.hb-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 9s linear; }
.hb-scene.is-active .hb-bg img { transform: scale(1.02); }
.hb-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 31, 41, 0.15) 40%, rgba(4, 31, 41, 0.75) 100%); }
.hb-waves { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.6; }
.hb-waves .wl-1 path { stroke: rgba(143, 208, 230, 0.18); }
.hb-waves .wl-2 path { stroke: rgba(143, 208, 230, 0.2); }
.hb-waves .wl-3 .wave-fill { fill: rgba(143, 208, 230, 0.05); }

/* Floating glass product card per slide */
.hb-card {
  position: absolute; right: clamp(1.25rem, 3vw, 3rem); top: clamp(1.25rem, 3vw, 2.75rem);
  display: flex; align-items: center; gap: 0.85rem; padding: 0.6rem 1.1rem 0.6rem 0.6rem;
  border-radius: 20px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.6);
  transform: translateY(16px); opacity: 0; transition: transform 900ms var(--ease-out) 300ms, opacity 700ms var(--ease-out) 300ms;
}
.hb-scene.is-active .hb-card { transform: none; opacity: 1; animation: bob 8s var(--ease-in-out) 1.2s infinite; }
.hb-card img { width: 86px; height: 86px; object-fit: contain; padding: 6px; border-radius: 14px; background: #fff; }
.hb-card strong { display: block; font-family: var(--font-display); font-size: 0.95rem; }
.hb-card small { color: var(--ice-200); font-weight: 600; font-size: 0.8rem; }

/* Copy */
.hb-content { align-self: center; padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(1.5rem, 1rem + 4vw, 4.5rem) 1.5rem; max-width: 720px; }
.hero-b .eyebrow { color: var(--sky-300); }
.hero-b .eyebrow::before { display: none; }
.hero-b .hero-title { color: #fff; font-size: clamp(2.1rem, 1.3rem + 3.2vw, 4rem); }
.hb-accent { background: linear-gradient(120deg, #8fd0e6, #b7e2e9 60%, #ffffff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-b .hero-lead { color: rgba(223, 241, 244, 0.85); max-width: 33rem; }

/* Thumbnail navigation */
.hb-nav { display: flex; align-items: stretch; gap: 0.75rem; padding: 0 clamp(1.25rem, 1rem + 3vw, 3rem) clamp(1.25rem, 1rem + 2vw, 2.25rem); }
.hb-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; flex: 1; }
.hb-thumb {
  position: relative; display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem; overflow: hidden;
  border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(143, 208, 230, 0.18);
  color: rgba(223, 241, 244, 0.75); text-align: left;
  transition: background-color var(--dur), border-color var(--dur), color var(--dur), transform var(--dur) var(--ease-out);
}
.hb-thumb:hover { background: rgba(255, 255, 255, 0.12); color: #fff; transform: translateY(-2px); }
.hb-thumb.is-active { background: rgba(255, 255, 255, 0.16); border-color: rgba(143, 208, 230, 0.45); color: #fff; }
.hb-thumb-img { width: 54px; height: 54px; flex: none; border-radius: 12px; background: #fff; overflow: hidden; }
.hb-thumb-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.hb-thumb-text { display: grid; min-width: 0; }
.hb-thumb .hero-tab-num { color: var(--sky-300); }
.hb-thumb .hero-tab-label { font-family: var(--font-display); font-size: 0.92rem; font-weight: 600; }
.hb-thumb .hero-tab-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; margin: 0; border-radius: 0; background: rgba(255, 255, 255, 0.08); }
.hb-thumb .hero-tab-bar i { background: linear-gradient(90deg, var(--sky-500), var(--ice-200)); }
.hero-b.is-autoplay .hero-tab.is-active .hero-tab-bar i { animation: progress var(--slide-ms, 7000ms) linear forwards; }
.hero-b.is-paused .hero-tab.is-active .hero-tab-bar i { animation-play-state: paused; }
.hb-toggle {
  display: grid; place-items: center; width: 56px; flex: none; border-radius: 16px;
  border: 1px solid rgba(143, 208, 230, 0.25); background: rgba(255, 255, 255, 0.06); color: #fff;
  transition: background-color var(--dur-fast);
}
.hb-toggle:hover { background: rgba(255, 255, 255, 0.16); }
.hero-b.is-paused-user .icon-pause, .hero-b.is-static .icon-pause { display: none; }
.hero-b.is-paused-user .icon-play, .hero-b.is-static .icon-play { display: block; }
.hero-b :focus-visible { outline-color: var(--ice-200); }
.is-offscreen .hb-card, .is-low-power .hb-card { animation-play-state: paused; }

@media (max-width: 960px) {
  .hb-media { width: 100%; }
  .hb-bg { -webkit-mask-image: none; mask-image: none; }
  .hb-bg::after { background: linear-gradient(180deg, rgba(4, 31, 41, 0.55) 0%, rgba(4, 31, 41, 0.88) 55%, rgba(4, 31, 41, 0.96) 100%); }
  .hb-card { display: none; }
  .hb-content { padding-top: clamp(3rem, 8vw, 4rem); }
}
@media (max-width: 640px) {
  .hb-panel { min-height: 0; }
  .hb-nav { gap: 0.5rem; }
  .hb-thumbs { gap: 0.5rem; }
  .hb-thumb { padding: 0.55rem 0.6rem 0.75rem; }
  .hb-thumb-img { display: none; }
  .hb-thumb .hero-tab-label { font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hb-toggle { width: 46px; }
  .hero-b .hero-ctas .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hb-bg img { transform: none !important; }
}

/* Full-width hero slider: panel runs edge to edge; copy + nav stay aligned to the content container */
.hero-b { --edge: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); padding-bottom: 0; }
.hero-b > .container { max-width: none; padding-inline: 0; }
.hero-b .hb-panel { border-radius: 0; box-shadow: none; min-height: clamp(560px, calc(100svh - var(--header-h) - 18px), 820px); }
.hero-b .hb-content { padding-left: var(--edge); padding-right: var(--gutter); max-width: calc(var(--edge) + 700px); }
.hero-b .hb-nav { padding-left: var(--edge); padding-right: var(--edge); }
.hero-b .hb-card { right: var(--edge); }
.hero-b .hb-media { width: 62%; }
@media (max-width: 960px) {
  .hero-b .hb-media { width: 100%; }
}

/* ==========================================================================
   12. SEO CONTENT: hero H1, "about this range" copy, FAQs
   ========================================================================== */
.hb-h1 { font-family: var(--font-display); font-weight: 600; line-height: 1.5; margin: 0 0 1.1rem; color: var(--sky-300); text-wrap: balance; }
.seo-copy { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.seo-copy-inner { max-width: 900px; }
.seo-copy p:not(.eyebrow) { color: var(--ink-soft); font-size: var(--fs-md); }
.seo-copy a { color: var(--teal-700); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(0, 106, 110, 0.35); text-underline-offset: 3px; }
.seo-copy a:hover { text-decoration-color: currentColor; }

.faq-section { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.faq-section + .cta { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
.faq-grid .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.faq-list { display: grid; gap: 0.75rem; }
.faq-item { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow var(--dur), border-color var(--dur), opacity 800ms var(--ease-out), transform 900ms var(--ease-out); }
.faq-item[open] { border-color: rgba(13, 124, 143, 0.35); box-shadow: var(--shadow); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.4; }
.faq-item summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ice-100)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006a6e' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform var(--dur) var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item p { margin: 0; padding: 0 1.25rem 1.2rem; color: var(--ink-soft); font-size: var(--fs-sm); }
@media (max-width: 960px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid .section-head { position: static; }
}

/* Footer link arrows */
nav.footer-col a { display: inline-flex; align-items: center; gap: 0.5rem; background: none; }
nav.footer-col a::before {
  content: ""; width: 14px; height: 14px; flex: none; background-color: var(--teal-600);
  -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='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-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='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--dur) var(--ease-out);
}
nav.footer-col a:hover::before { transform: translateX(3px); }

/* Footer credit */
.credit a { font-weight: 700; color: var(--teal-700); }
.credit a:hover { text-decoration: underline; }
@media (min-width: 641px) { .footer-bottom .credit { margin-left: auto; margin-right: 1.5rem; } }
