/* ==========================================================================
   OPTIM — "Ice to Deep Sea"
   White at the top of the page, deepening to royal / navy blue at the bottom.
   Scroll-driven: pinned chapter slider, rising-water interlude, horizontal
   projects slider, parallax, waves, bubbles.
   ========================================================================== */

@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

/* ---------- Tokens: light zone (default) / dark zone ---------- */
:root, .tone-light {
  --fg: #0a1f3d;
  --fg-2: #27425f;
  --fg-3: #4b6785;
  --accent: #0a78e0;
  --accent-2: #00b4d8;
  --accent-text: #043f87;
  --accent-bg: rgba(10, 120, 224, .10);
  --card: rgba(255, 255, 255, .78);
  --card-border: rgba(14, 98, 181, .18);
  --card-shadow: 0 22px 44px -26px rgba(6, 70, 140, .40), 0 2px 6px rgba(6, 70, 140, .06);
  --line: rgba(14, 98, 181, .16);
  --ok: #05664a; --ok-bg: rgba(5, 102, 74, .10);
  --bad: #a8330b; --bad-bg: rgba(180, 56, 14, .09);
  --chip-bg: rgba(255, 255, 255, .85); --chip-fg: #0a3d78; --chip-border: rgba(14, 98, 181, .24);
  --btn-bg: linear-gradient(135deg, #0a78e0 0%, #0652b3 100%); --btn-fg: #fff;
  --btn-glow: 0 14px 30px -12px rgba(6, 82, 179, .7);
  --field-bg: rgba(255, 255, 255, .92); --field-border: rgba(14, 98, 181, .30);
  --hdr-bg: rgba(255, 255, 255, .74);
  --orange: #f07f00; --orange-2: #ff9d2e; --copper: #c96a12;
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px;
}
.tone-dark,
html[data-tone="dark"] .site-header,
html[data-tone="dark"] .hud,
html[data-tone="dark"] .fab {
  --fg: #ffffff;
  --fg-2: #e6f2fc;
  --fg-3: #b9d5ef;
  --accent: #62d8ff;
  --accent-2: #5ff0b5;
  --accent-text: #c2f3ff;
  --accent-bg: rgba(98, 216, 255, .14);
  --card: rgba(4, 28, 68, .42);
  --card-border: rgba(255, 255, 255, .17);
  --card-shadow: 0 26px 50px -26px rgba(0, 8, 36, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .17);
  --ok: #72f3bd; --ok-bg: rgba(114, 243, 189, .12);
  --bad: #ffb9a8; --bad-bg: rgba(255, 185, 168, .12);
  --chip-bg: rgba(255, 255, 255, .12); --chip-fg: #eaf6ff; --chip-border: rgba(255, 255, 255, .24);
  --btn-bg: linear-gradient(135deg, #9aeeff 0%, #45c6f6 100%); --btn-fg: #04214f;
  --btn-glow: 0 14px 34px -12px rgba(98, 216, 255, .6);
  --field-bg: rgba(4, 28, 68, .5); --field-border: rgba(255, 255, 255, .28);
  --hdr-bg: rgba(5, 28, 66, .72);
}
.tone-light, .tone-dark { color: var(--fg); }

/* ---------- Base ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: #0a1f3d;
  font-family: Vazirmatn, Tahoma, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.9;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.35; font-weight: 900; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; }
.num { font-variant-numeric: tabular-nums; }
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 767px) { :root, .tone-light { --header-h: 64px; } .container { padding-inline: 16px; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons / chips / cards ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .8em 1.6em; border-radius: 14px; font-weight: 700; font-size: .95rem; line-height: 1.4;
  border: 1.5px solid transparent; white-space: nowrap; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, border-color .3s, color .3s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--btn-glow); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform .7s var(--ease);
}
.btn-primary:hover { transform: translateY(-3px); filter: brightness(1.06); }
.btn-primary:hover::after { transform: translateX(130%); }
.btn-outline { border-color: var(--accent); color: var(--accent-text); background: transparent; }
.btn-outline:hover { background: var(--accent-bg); transform: translateY(-3px); }
.btn-eco { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.btn-eco:hover { transform: translateY(-3px); filter: brightness(1.08); }
.btn-sm { padding: .5em 1.1em; font-size: .85rem; border-radius: 12px; }
.btn-lg { padding: 1em 2em; font-size: 1.05rem; }

.chip {
  display: inline-flex; align-items: center; gap: .45em; padding: .28em .9em; border-radius: 999px;
  font-size: .78rem; font-weight: 700; line-height: 1.7;
  background: var(--chip-bg); color: var(--chip-fg); border: 1px solid var(--chip-border);
}
.chip svg { width: 1em; height: 1em; flex: none; }
.chip.cyan { color: var(--accent-text); border-color: var(--accent); }
.chip.mint { color: var(--ok); border-color: var(--ok); }
.chip.warn { color: var(--bad); border-color: var(--bad); background: var(--bad-bg); }
.chip.orange { color: #8a4300; border-color: var(--orange); background: rgba(240, 127, 0, .12); }
.tone-dark .chip.orange { color: #ffd2a1; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); position: relative; flex: none; }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: .5; animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }

.card {
  position: relative; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--r-lg);
  box-shadow: var(--card-shadow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .45s var(--ease), box-shadow .45s, border-color .45s;
}
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--accent-bg), transparent 62%);
}
.spot:hover::after { opacity: 1; }
.lift:hover { transform: translateY(-7px); border-color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  color: var(--fg); background: transparent; border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, box-shadow .4s, transform .5s var(--ease);
}
.site-header.scrolled {
  background: var(--hdr-bg); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line); box-shadow: 0 10px 30px -18px rgba(5, 40, 90, .4);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 32px; width: auto; }
.logo-on-dark { display: none; }
html[data-tone="dark"] .site-header .logo-on-light { display: none; }
html[data-tone="dark"] .site-header .logo-on-dark { display: block; }
.brand-text { line-height: 1.25; }
.brand-text strong { display: block; font-size: 1rem; font-weight: 900; }
.brand-text small { display: block; font-size: .68rem; font-weight: 700; color: var(--accent-text); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { position: relative; padding: .45em .8em; font-size: .88rem; font-weight: 700; color: var(--fg-2); border-radius: 10px; transition: color .25s; }
.nav a::after {
  content: ""; position: absolute; inset-inline: .8em; bottom: .1em; height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--fg); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.phone-pill {
  display: inline-flex; align-items: center; gap: .5em; padding: .5em 1.05em; border-radius: 12px; direction: ltr; font-weight: 800; font-size: .92rem;
  background: var(--accent-bg); border: 1px solid var(--accent); color: var(--accent-text);
}
.phone-pill svg { width: 1.05em; height: 1.05em; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--chip-bg); flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; }
.nav-toggle span { width: 20px; height: 2px; border-radius: 2px; background: var(--fg); transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1120px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 10px 16px 18px; display: none;
    background: var(--hdr-bg); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; animation: dropIn .35s var(--ease); }
  .nav a { padding: .7em .8em; font-size: 1rem; }
  .nav-toggle { display: flex; }
  .header-cta .btn { display: none; }
}
@media (max-width: 560px) { .phone-pill span { display: none; } .brand-text small { display: none; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------- Scroll progress bar + water-level HUD ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 110; transform-origin: right; transform: scaleX(0);
  background: linear-gradient(270deg, #7fe3ff, #0a78e0 55%, #072b6e); }
.hud {
  position: fixed; top: 50%; right: 10px; z-index: 80; width: 30px; transform: translateY(-50%); display: none; flex-direction: column; align-items: center; gap: 8px;
  color: var(--fg); pointer-events: none;
}
@media (min-width: 1380px) { html.js .hud { display: flex; } }
.hud-tube { position: relative; width: 14px; height: 168px; border-radius: 999px; border: 1.5px solid var(--accent); background: var(--chip-bg); overflow: hidden; }
.hud-fill { position: absolute; inset: 0; transform-origin: bottom; transform: scaleY(0); background: linear-gradient(0deg, #0652b3, #38bdf8 70%, #b9efff); }
.hud-tube i { position: absolute; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .85); animation: hudBubble 3.2s linear infinite; }
.hud-tube i:nth-child(2) { animation-delay: -1.1s; left: 30%; } .hud-tube i:nth-child(3) { animation-delay: -2.1s; left: 70%; }
@keyframes hudBubble { from { bottom: -6px; opacity: 0; } 15% { opacity: 1; } to { bottom: 100%; opacity: 0; } }
.hud-pct { font-size: .72rem; font-weight: 800; color: var(--accent-text); direction: ltr; }
.hud-lbl { writing-mode: vertical-rl; font-size: .66rem; font-weight: 700; color: var(--fg-3); letter-spacing: .02em; }

/* ---------- Global bubble canvas ---------- */
#bubbles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* ---------- Floating buttons / toast ---------- */
.fab { position: fixed; bottom: 22px; left: 22px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.fab a, .fab button { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 0; box-shadow: 0 14px 30px -10px rgba(4, 40, 100, .55); transition: transform .3s var(--ease), opacity .3s; }
.fab a:hover, .fab button:hover { transform: scale(1.1); }
.fab .call { background: var(--btn-bg); color: var(--btn-fg); animation: fabPulse 2.6s infinite; }
.fab .top { background: var(--card); color: var(--fg); border: 1px solid var(--card-border); opacity: 0; pointer-events: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.fab .top.show { opacity: 1; pointer-events: auto; }
.fab svg { width: 24px; height: 24px; }
@keyframes fabPulse { 0% { box-shadow: 0 0 0 0 rgba(10, 120, 224, .55); } 70% { box-shadow: 0 0 0 18px rgba(10, 120, 224, 0); } 100% { box-shadow: 0 0 0 0 rgba(10, 120, 224, 0); } }
.toast { position: fixed; bottom: 24px; right: 24px; z-index: 120; max-width: 320px; padding: 14px 20px; border-radius: var(--r-md); background: #06285a; color: #fff; border: 1px solid #62d8ff;
  font-size: .9rem; transform: translateY(90px); opacity: 0; transition: all .45s var(--ease); }
.toast.show { transform: none; opacity: 1; }

/* ---------- Sections ---------- */
.section {
  position: relative; padding: 112px 0 168px; overflow: clip;
  background: linear-gradient(180deg, var(--c-top), var(--c-bot));
}
.section > .container { position: relative; z-index: 2; }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 60px; }
.section-head .chip { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: .5em; }
.section-head p { color: var(--fg-2); font-size: 1.05rem; }
@media (max-width: 767px) { .section { padding: 72px 0 128px; } .section-head { margin-bottom: 38px; } }

#science    { --c-top: #e6f5fe; --c-bot: #d6edfb; --c-next: #c6e6f9; }
#how        { --c-top: #c6e6f9; --c-bot: #b8e0f7; --c-next: #a9d8f4; }
#features   { --c-top: #a9d8f4; --c-bot: #9bd2f1; --c-next: #8ccbee; }
#comparison { --c-top: #8ccbee; --c-bot: #7fc5ee; --c-next: #74bfec; }
#calculator { --c-top: #74bfec; --c-bot: #6bb9ea; }
#projects   { --c-top: #1a66b8; --c-bot: #165ead; --c-next: #145aa8; }
#models     { --c-top: #145aa8; --c-bot: #11509b; --c-next: #0f4c95; }
#install    { --c-top: #0f4c95; --c-bot: #0d4189; --c-next: #0b3d82; }
#certs      { --c-top: #0b3d82; --c-bot: #093470; --c-next: #08306b; }
#faq        { --c-top: #08306b; --c-bot: #062859; --c-next: #052557; }
#contact    { --c-top: #052557; --c-bot: #041d46; --c-next: #041d46; }

/* ---------- Wave dividers (water rising between sections) ---------- */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 96px; z-index: 1; pointer-events: none; color: var(--c-next); overflow: hidden; }
.wave svg { position: absolute; left: 0; bottom: 0; width: 3200px; max-width: none; height: 96px; will-change: transform; }
.wave .w2 { opacity: .42; }
.wave .w3 { opacity: .2; }

/* ---------- Reveal utilities (JS only) ---------- */
html.js .reveal { opacity: 0; translate: 0 38px; transition: opacity .95s var(--ease), translate .95s var(--ease); }
html.js .reveal.from-right { translate: 60px 0; } html.js .reveal.from-left { translate: -60px 0; }
html.js .reveal.in { opacity: 1; translate: 0 0; }
html.js .stagger > * { opacity: 0; translate: 0 54px; scale: .95; transition: opacity .85s var(--ease), translate .85s var(--ease), scale .85s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
html.js .stagger.in > * { opacity: 1; translate: 0 0; scale: 1; }

/* split-words headline reveal */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .14em; margin-block: -.14em; }
.wi { display: inline-block; }
html.js .split .wi { transform: translateY(118%); opacity: 0; transition: transform 1s var(--ease) calc(var(--i) * 55ms), opacity .6s calc(var(--i) * 55ms); }
html.js .split.in .wi { transform: none; opacity: 1; }
em { font-style: normal; }
h1 em, h2 em { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.split em .wi, .ch-title em .wi { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.split em, .ch-title em { background: none; }

/* ==========================================================================
   HERO — pinned chapter slider (scroll scrubs the story)
   ========================================================================== */
.story { position: relative; background: #fff; }
html.js .story { height: 500vh; height: 500svh; }
.story-pin { position: relative; overflow: clip; min-height: 100svh; }
html.js .story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
.story-wash { position: absolute; inset: 0; opacity: 0; background: linear-gradient(180deg, #f4fbff 0%, #dff2fd 100%); }
.story-orbs .orb { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.orb.o1 { width: 420px; height: 420px; top: 6%; left: -120px; background: rgba(0, 180, 216, .20); }
.orb.o2 { width: 360px; height: 360px; bottom: 4%; right: -90px; background: rgba(10, 120, 224, .16); }
.story-grid {
  position: relative; z-index: 2; height: 100%; display: grid; align-items: center;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); gap: clamp(24px, 4vw, 64px);
  padding-top: calc(var(--header-h) + 10px); padding-bottom: 104px;
}
.story-text { min-width: 0; }
.chapters { display: grid; }
.chapter { grid-area: 1 / 1; visibility: hidden; transition: visibility 0s .9s; pointer-events: none; min-width: 0; }
.chapter.is-active { visibility: visible; transition-delay: 0s; pointer-events: auto; }
.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-weight: 700; font-size: .95rem; color: var(--accent-text); }
.kicker .num { padding: 0 .75em; border: 1.5px solid currentColor; border-radius: 999px; font-size: .82rem; line-height: 1.9; font-variant-numeric: tabular-nums; }
.ch-title { font-size: clamp(1.95rem, 3.9vw + .4rem, 3.6rem); line-height: 1.32; letter-spacing: -.01em; margin-bottom: .45em; }
.ch-copy { font-size: clamp(1rem, .5vw + .9rem, 1.15rem); color: var(--fg-2); max-width: 34em; margin-bottom: 1.3em; }
.ch-extra { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
html.js .ch-fade { opacity: 0; translate: 0 22px; transition: opacity .5s, translate .6s var(--ease); }
html.js .chapter.is-active .ch-fade { opacity: 1; translate: 0 0; transition: opacity .8s var(--ease) var(--d, .35s), translate .9s var(--ease) var(--d, .35s); }
/* word-by-word mask rise (enter from below going forward, exit upward) */
html.js .ch-title .wi { transform: translateY(118%); opacity: 0; transition: transform .55s var(--ease-io) calc(var(--i) * 14ms), opacity .35s; }
html.js .chapter.is-active .ch-title .wi { transform: none; opacity: 1; transition: transform 1.05s var(--ease) calc(.18s + var(--i) * 60ms), opacity .7s calc(.18s + var(--i) * 60ms); }
html.js .chapter.is-past .ch-title .wi { transform: translateY(-118%); }

/* Visual panel */
.story-visual { min-width: 0; position: relative; }
.panel {
  position: relative; height: min(64vh, 600px); height: min(64svh, 600px); border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  background: #eaf6ff; border: 1px solid rgba(14, 98, 181, .2); touch-action: pan-y;
  box-shadow: 0 40px 80px -40px rgba(6, 70, 140, .45), 0 2px 0 rgba(255, 255, 255, .9) inset;
}
.panel-tint { position: absolute; inset: 0; z-index: -1; background: #fff1e4; }
.panel::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(90% 70% at 70% 20%, rgba(255, 255, 255, .85), transparent 60%), linear-gradient(180deg, transparent 60%, rgba(10, 80, 160, .10)); }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; z-index: 1; }
.wipe { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: var(--wc, #cfeeff); opacity: 0; clip-path: circle(0% at 72% 50%); }
.wipe.go { animation: wipe 1.05s var(--ease-io) both; }
@keyframes wipe { 0% { opacity: .85; clip-path: circle(0% at 72% 50%); } 55% { opacity: .55; clip-path: circle(80% at 72% 50%); } 100% { opacity: 0; clip-path: circle(150% at 72% 50%); } }

/* Instrument overlays: dark contrast objects on the light stage */
.p-chip { position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: .55em; padding: .35em .95em; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  color: #e9f7ff; background: rgba(6, 30, 66, .86); border: 1px solid rgba(98, 216, 255, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); direction: ltr; }
.p-status { top: 16px; right: 16px; }
.p-freq { top: 16px; left: 16px; color: #8fe9ff; }
.p-status i { width: 8px; height: 8px; border-radius: 50%; background: #ff7a59; box-shadow: 0 0 0 0 currentColor; animation: stPulse 1.6s infinite; flex: none; }
.p-status[data-s="1"] i { background: #ffc23d; } .p-status[data-s="2"] i, .p-status[data-s="3"] i { background: #38d4ff; } .p-status[data-s="4"] i { background: #4eeaa3; }
@keyframes stPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 100% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } }
.gauges { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 11px 16px 12px; border-radius: 18px; color: #eaf6ff;
  background: rgba(6, 30, 66, .92); border: 1px solid rgba(98, 216, 255, .35); box-shadow: 0 22px 40px -22px rgba(2, 20, 50, .75); }
.g-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: .74rem; font-weight: 700; color: #b8dcf5; }
.g-val { font-weight: 900; font-size: .92rem; color: #fff; direction: ltr; font-variant-numeric: tabular-nums; }
.g-bar { height: 6px; margin-top: 4px; border-radius: 999px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.g-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; transform-origin: right; transform: scaleX(.5); }
.g-scale i { background: linear-gradient(270deg, #ffb347, #ff6a3d); }
.g-flow i { background: linear-gradient(270deg, #7fe3ff, #1ea7ff); }
.g-fuel i { background: linear-gradient(270deg, #ffd166, #ff8a3d); }
.p-flow { position: absolute; z-index: 5; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: .5em; padding: .3em .9em; border-radius: 999px; font-size: .74rem; font-weight: 700;
  color: #0a3d78; background: rgba(255, 255, 255, .85); border: 1px solid rgba(14, 98, 181, .25); }
.p-flow svg { width: 16px; height: 16px; animation: chev 1.2s ease-in-out infinite; }
@keyframes chev { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-5px); } }

/* Segmented "stories" progress + arrows */
.story-nav { position: absolute; z-index: 6; left: 0; right: 0; bottom: 24px; display: flex; align-items: flex-end; gap: 22px; }
.segs { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.seg { background: none; border: 0; padding: 8px 0 0; text-align: right; display: flex; flex-direction: column; gap: 8px; color: var(--fg-3); }
.seg-bar { display: block; height: 5px; border-radius: 999px; background: rgba(10, 80, 160, .16); overflow: hidden; }
.seg-bar i { display: block; height: 100%; border-radius: inherit; transform-origin: right; transform: scaleX(0); background: linear-gradient(270deg, #0a78e0, #00b4d8); }
.seg-label { font-size: .78rem; font-weight: 700; transition: color .3s; line-height: 1.4; }
.seg.on .seg-label { color: var(--accent-text); }
.seg:hover .seg-label { color: var(--fg); }
.nav-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--card-border); background: var(--card); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s; }
.arrow:hover { transform: scale(1.1); background: var(--accent-bg); }
.arrow svg { width: 20px; height: 20px; }
.skip { font-size: .8rem; font-weight: 700; color: var(--accent-text); padding: .4em .9em; border-radius: 999px; border: 1px dashed var(--accent); white-space: nowrap; }
.skip:hover { background: var(--accent-bg); }
.scroll-hint { position: absolute; z-index: 6; left: 50%; bottom: 96px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; font-size: .82rem; font-weight: 700; color: var(--fg-2);
  transition: opacity .5s; pointer-events: none; }
.mouse { width: 22px; height: 34px; border-radius: 12px; border: 2px solid var(--accent); position: relative; display: block; }
.mouse i { position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(11px); opacity: 0; } 100% { opacity: 0; } }

/* Story: wave into the next section (revealed as the pin releases) */
.story > .wave { z-index: 7; color: #e6f5fe; }

/* No-JS / reduced-motion fallback: stack chapters, show the final scene */
html:not(.js) .chapter, html.rm .chapter { visibility: visible; }
html:not(.js) .chapters, html.rm .chapters { display: block; }
html:not(.js) .chapter, html.rm .chapter { margin-bottom: 40px; }
html.rm .story { height: auto; } html.rm .story-pin { position: relative; height: auto; min-height: 0; }
html.rm .story-grid { height: auto; padding-bottom: 60px; }
html.rm .story-nav, html.rm .scroll-hint, html.rm .hud { display: none !important; }

/* Responsive hero */
@media (max-width: 1000px) {
  .story-grid { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 14px; padding-top: calc(var(--header-h) + 6px); padding-bottom: 92px; align-items: start; }
  .story-visual { order: -1; }
  .panel { height: min(32svh, 300px); border-radius: 22px; }
  .gauges { margin-top: 8px; gap: 10px; padding: 7px 10px 8px; border-radius: 14px; } .g-bar { height: 4px; margin-top: 2px; } .g-row { font-size: .62rem; flex-wrap: wrap; line-height: 1.5; } .g-val { font-size: .74rem; }
  .p-status, .p-freq { top: 10px; font-size: .6rem; padding: .25em .7em; } .p-status { right: 10px; } .p-freq { left: 10px; }
  .p-flow { display: none; }
  .ch-title { font-size: clamp(1.55rem, 6.4vw, 2.2rem); margin-bottom: .35em; }
  .ch-copy { font-size: .94rem; margin-bottom: .9em; line-height: 1.8; }
  .kicker { margin-bottom: 8px; font-size: .85rem; }
  .story-nav { bottom: 12px; gap: 10px; } .seg-label { display: none; } .seg { padding-top: 0; } .nav-tools .skip { display: none; } .arrow { width: 38px; height: 38px; }
  .scroll-hint { display: none; }
}
@media (max-height: 700px) and (min-width: 1001px) { .panel { height: 54svh; } .ch-title { font-size: clamp(1.8rem, 3.2vw, 2.8rem); } }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 3; overflow: hidden; direction: ltr; background: #e6f5fe; border-block: 1px solid rgba(14, 98, 181, .14); padding: 16px 0; }
.marquee-track { display: flex; gap: 56px; width: max-content; will-change: transform; }
.marquee-track span { display: inline-flex; align-items: center; gap: .6em; font-weight: 800; font-size: .95rem; color: #0a3d78; white-space: nowrap; direction: rtl; }
.marquee-track svg { width: 1.15em; height: 1.15em; color: #0a9a6a; }

/* ==========================================================================
   SCIENCE — calcite vs aragonite (rings scrub with scroll)
   ========================================================================== */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.compare-card { padding: 34px; overflow: hidden; }
.compare-card.bad { border-top: 4px solid #e0643a; }
.compare-card.good { border-top: 4px solid #12b886; }
.compare-card .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.compare-card h3 { font-size: 1.3rem; margin-bottom: .4em; }
.compare-card p { color: var(--fg-2); font-size: .95rem; }
.pipe-ring { position: relative; width: 230px; height: 230px; margin: 26px auto; }
.pipe-ring > svg { width: 100%; height: 100%; display: block; }
.pipe-ring .center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; font-size: .78rem; line-height: 1.45; padding: 0 44px; }
.pipe-ring .center svg { width: 24px; height: 24px; margin-bottom: 4px; }
.pipe-ring .center strong { display: block; font-size: .9rem; }
.ring-steel { fill: none; stroke: #9db0c4; stroke-width: 14; }
.ring-inner { fill: #f3faff; }
.crust { fill: none; stroke: #b9722f; stroke-linecap: butt; }
.crust2 { fill: none; stroke: #d9a066; stroke-width: 4; stroke-dasharray: 10 18; opacity: .9; }
.spin-slow { transform-origin: 115px 115px; animation: spin 16s linear infinite; }
.spin-rev { transform-origin: 115px 115px; animation: spin 24s linear infinite reverse; }
.orbit { transform-origin: 115px 115px; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list li { display: flex; gap: .65em; align-items: flex-start; padding: .55em 0; font-size: .93rem; border-top: 1px dashed var(--line); }
.check-list li svg { width: 1.2em; height: 1.2em; flex: none; margin-top: .35em; }
.check-list.bad li svg { color: var(--bad); } .check-list.good li svg { color: var(--ok); }
@media (max-width: 900px) { .compare-grid { grid-template-columns: 1fr; } .compare-card { padding: 24px; } }

/* ==========================================================================
   HOW — sticky microscopic diagram driven by the step in view
   ========================================================================== */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.how-sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.how-diagram { padding: 18px; overflow: hidden; }
.how-diagram svg { width: 100%; height: auto; display: block; border-radius: var(--r-md); }
.how-cap { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 12px; font-size: .8rem; font-weight: 700; color: var(--fg-2); }
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; right: 23px; top: 26px; bottom: 26px; width: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); opacity: .35; }
.step { display: flex; gap: 20px; padding: 26px 0; min-height: 46vh; align-items: flex-start; opacity: .38; transition: opacity .5s; }
.step.on { opacity: 1; }
.step-no { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: #fff; color: var(--accent-text); border: 2px solid var(--accent); transition: transform .5s var(--ease), background .4s, color .4s; position: relative; z-index: 1; }
.step.on .step-no { background: var(--accent); color: #fff; transform: scale(1.15); animation: ringPulse 1.8s ease-out infinite; }
@keyframes ringPulse { 0% { box-shadow: 0 0 0 0 rgba(10, 120, 224, .5); } 100% { box-shadow: 0 0 0 18px rgba(10, 120, 224, 0); } }
.step h3 { margin-bottom: .3em; font-size: 1.2rem; }
.step p { color: var(--fg-2); font-size: .98rem; max-width: 32em; }
@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; gap: 14px; }
  .how-sticky { top: calc(var(--header-h) + 6px); z-index: 5; }
  .how-diagram { padding: 8px; }
  .how-diagram svg { max-height: 34svh; margin-inline: auto; }
  .how-cap { display: none; }
  .step { min-height: 40svh; padding: 18px 0; }
}
/* diagram internals (SVG, driven by data-stage) */
.hw-ion { transition: transform 1.1s var(--ease); }
.hw-ion .j { animation: jit 2.4s ease-in-out infinite alternate; animation-delay: var(--dl, 0s); }
@keyframes jit { from { transform: translate(-5px, 4px); } to { transform: translate(6px, -7px); } }
@keyframes osc { from { transform: translateY(-16px); } to { transform: translateY(16px); } }
#howSvg[data-stage="2"] .hw-ion .j { animation: osc .55s ease-in-out infinite alternate; animation-delay: var(--dl, 0s); }
#howSvg[data-stage="3"] .hw-ion .j, #howSvg[data-stage="4"] .hw-ion .j { animation: none; }
#howSvg[data-stage="3"] .hw-ion, #howSvg[data-stage="4"] .hw-ion { transform: translate(var(--cx), var(--cy)); }
#howSvg[data-stage="3"] .hw-ion .dotc, #howSvg[data-stage="4"] .hw-ion .dotc { fill: #12b886; }
.hw-ion { transform: translate(var(--x), var(--y)); }
.hw-field { opacity: 0; transition: opacity .7s; }
#howSvg:not([data-stage="1"]) .hw-field { opacity: 1; }
.hw-field path { stroke-dasharray: 7 9; animation: dash 1.1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -32; } }
.hw-coil { opacity: 0; transform: translateY(-30px); transition: opacity .6s, transform .8s var(--ease); }
#howSvg:not([data-stage="1"]) .hw-coil { opacity: 1; transform: none; }
.hw-sign { opacity: 0; transition: opacity .5s; }
#howSvg[data-stage="2"] .hw-sign { opacity: 1; }
.hw-crystal { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .9s var(--ease) .35s; }
#howSvg[data-stage="3"] .hw-crystal, #howSvg[data-stage="4"] .hw-crystal { transform: scale(1); }
.hw-crystals { transition: transform 1.6s var(--ease-io); }
#howSvg[data-stage="4"] .hw-crystals { transform: translateX(-640px); }
.hw-crust { transform-box: fill-box; transform-origin: bottom; transition: transform 2s var(--ease-io) .2s, opacity 1.2s 1.2s; }
#howSvg[data-stage="4"] .hw-crust { transform: scaleY(.04); opacity: 0; }
.hw-flow { opacity: 0; transition: opacity .8s .4s; }
#howSvg[data-stage="4"] .hw-flow { opacity: 1; }
.hw-flow circle { animation: outflow 5.5s linear infinite; animation-delay: var(--d, 0s); }
@keyframes outflow { from { transform: translateX(0); } to { transform: translateX(-700px); } }
.hw-ion { transition: transform 1.1s var(--ease), opacity .8s; }
#howSvg[data-stage="4"] .hw-ion { opacity: 0; }
.hw-gleam { opacity: 0; }
#howSvg[data-stage="4"] .hw-gleam { animation: gleam 2.4s ease-in-out infinite; }
@keyframes gleam { 0% { transform: translateX(560px); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateX(-160px); opacity: 0; } }
.hw-msg { transition: opacity .5s; opacity: 0; }
#howSvg[data-stage="1"] .m1, #howSvg[data-stage="2"] .m2, #howSvg[data-stage="3"] .m3, #howSvg[data-stage="4"] .m4 { opacity: 1; }

/* ==========================================================================
   FEATURES / COMPARISON TABLE / CALCULATOR
   ========================================================================== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 30px; }
.feature .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: var(--accent-bg); color: var(--accent-text); border: 1px solid var(--accent); transition: transform .5s var(--ease); }
.feature .icon svg { width: 26px; height: 26px; }
.feature:hover .icon { transform: rotate(-10deg) scale(1.12); }
.feature .icon.mint { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.feature .icon.orange { background: rgba(240, 127, 0, .14); color: #9a4a00; border-color: var(--orange); }
.feature h3 { font-size: 1.1rem; margin-bottom: .4em; }
.feature p { color: var(--fg-2); font-size: .93rem; }
@media (max-width: 960px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .features-grid { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--card-border); background: var(--card); box-shadow: var(--card-shadow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 860px; font-size: .92rem; }
table.cmp th, table.cmp td { padding: 17px 20px; text-align: right; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.cmp thead th { font-size: .86rem; color: var(--fg-2); background: rgba(255, 255, 255, .55); }
table.cmp th.optim, table.cmp td.optim { background: var(--ok-bg); color: var(--ok); font-weight: 800; }
table.cmp th.optim { color: var(--accent-text); background: var(--accent-bg); }
table.cmp td.optim span { display: inline-flex; align-items: center; gap: .45em; }
table.cmp td.optim svg { width: 1.15em; height: 1.15em; }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td.bad { color: var(--bad); } table.cmp td.warn { color: #8a5a00; }
table.cmp tbody td:first-child { font-weight: 800; color: var(--fg); }
html.js table.cmp tbody td { opacity: 0; transform: translateX(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--r, 0) * 110ms + var(--c, 0) * 60ms); }
html.js table.cmp tbody tr.in td { opacity: 1; transform: none; }
html.js table.cmp tbody tr.in td.optim svg { animation: pop .6s var(--ease) calc(var(--r, 0) * 110ms + .3s) both; }
@keyframes pop { 0% { transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.35); } 100% { transform: scale(1); } }

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.calc-form, .calc-result { padding: 34px; }
.calc-form label.title { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 16px; }
.calc-form .val { padding: .25em .9em; border-radius: 10px; background: var(--accent-bg); border: 1px solid var(--accent); color: var(--accent-text); font-weight: 900; }
input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 999px; outline: none; background: linear-gradient(to left, var(--accent) var(--pct, 25%), rgba(14, 98, 181, .2) var(--pct, 25%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); box-shadow: 0 6px 16px rgba(6, 70, 140, .4); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); box-shadow: 0 6px 16px rgba(6, 70, 140, .4); cursor: pointer; }
.range-marks { display: flex; justify-content: space-between; gap: 6px; font-size: .72rem; color: var(--fg-2); margin: 10px 0 28px; }
.radio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-card span { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; height: 100%; text-align: center; font-size: .85rem; font-weight: 700; border-radius: var(--r-md); border: 1.5px solid var(--line); background: rgba(255, 255, 255, .55); transition: all .3s var(--ease); }
.radio-card span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--fg-3); transition: all .3s; }
.radio-card input:checked + span { border-color: var(--accent); background: var(--accent-bg); transform: translateY(-3px); box-shadow: 0 12px 24px -14px rgba(6, 82, 179, .6); }
.radio-card input:checked + span::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 3px rgba(10, 120, 224, .25); }
.radio-card input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.eco-note { display: flex; gap: 12px; padding: 16px; border-radius: var(--r-md); background: var(--ok-bg); border: 1px solid var(--ok); font-size: .88rem; color: var(--fg-2); }
.eco-note svg { width: 24px; height: 24px; flex: none; color: var(--ok); }
.calc-result .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 20px; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.result-box { padding: 18px; border-radius: var(--r-md); background: rgba(255, 255, 255, .7); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s; }
.result-box:hover { border-color: var(--accent); transform: translateY(-3px); }
.result-box .t { font-size: .8rem; color: var(--fg-2); margin-bottom: 4px; }
.result-box .v { font-size: 1.7rem; font-weight: 900; color: var(--accent-text); line-height: 1.25; }
.result-box .s { font-size: .74rem; color: var(--ok); margin-top: 4px; font-weight: 700; }
.result-total { margin-top: 14px; padding: 22px; border-radius: var(--r-md); color: #fff; background: linear-gradient(135deg, #0a78e0, #052d78); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; box-shadow: 0 24px 40px -22px rgba(5, 45, 120, .8); }
.result-total .t { color: #cfe8ff; font-size: .85rem; }
.result-total .v { font-size: 2.2rem; font-weight: 900; line-height: 1.2; }
.result-total .v small { font-size: .9rem; font-weight: 400; color: #cfe8ff; }
.result-total .btn-primary { background: #fff; color: #05308a; box-shadow: none; }
.bump { animation: bump .45s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.09); } 100% { transform: scale(1); } }
.calc-note { color: var(--fg-2); font-size: .76rem; margin: 14px 0 0; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } .calc-form, .calc-result { padding: 24px; } }
@media (max-width: 520px) { .radio-grid, .result-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   DIVE — the water rises through the page; headline changes colour as it passes
   ========================================================================== */
.dive { position: relative; background: #6bb9ea; }
html.js .dive { height: 250vh; height: 250svh; }
.dive-pin { position: relative; height: 100vh; height: 100svh; overflow: clip; }
html.js .dive-pin { position: sticky; top: 0; }
.dive-layer { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 24px; text-align: center; isolation: isolate; }
.dive-a { z-index: 1; --accent: #05408d; --accent-2: #0a60c0; }
.dive-m { z-index: 2; --accent: #062f6a; --accent-2: #0a4a9a; }
.dive-b { z-index: 3; --accent: #7fe3ff; --accent-2: #6df2bd; }
.dive-a { background: #6bb9ea; color: #0a1f3d; }
.dive-m { background: linear-gradient(180deg, #3b9be0, #2a86d2); color: #04214f; }
.dive-b { background: linear-gradient(180deg, #1d6cc0, #1a66b8); color: #fff; }
html.js .dive-m, html.js .dive-b { clip-path: inset(100% 0 0 0); will-change: clip-path; }
html:not(.js) .dive-m, html:not(.js) .dive-b { display: none; }
.dive-copy { max-width: 980px; position: relative; z-index: 2; }
.dive-copy .chip { margin-bottom: 22px; }
.dive-a .chip { background: rgba(255, 255, 255, .8); color: #0a3d78; border-color: rgba(10, 61, 120, .3); }
.dive-m .chip { background: rgba(255, 255, 255, .4); color: #04214f; border-color: rgba(4, 33, 79, .35); }
.dive-b .chip { background: rgba(255, 255, 255, .14); color: #eaf6ff; border-color: rgba(255, 255, 255, .35); }
.dive-copy h2 { font-size: clamp(2.2rem, 6.2vw, 5.2rem); line-height: 1.25; margin-bottom: .35em; letter-spacing: -.01em; }
.dive-copy p { font-size: clamp(1rem, 1.6vw, 1.3rem); max-width: 34em; margin-inline: auto; opacity: .92; }
.dive-chev { margin-top: 30px; display: inline-grid; gap: 0; }
.dive-chev svg { width: 28px; height: 28px; margin: -8px auto; animation: chevDown 1.6s ease-in-out infinite; }
.dive-chev svg:nth-child(2) { animation-delay: .2s; } .dive-chev svg:nth-child(3) { animation-delay: .4s; }
@keyframes chevDown { 0%, 100% { transform: translateY(-4px); opacity: .3; } 50% { transform: translateY(6px); opacity: 1; } }
.dive-bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.dive-bubbles i { position: absolute; bottom: -60px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .45), rgba(255, 255, 255, .05)); animation: bubbleUp linear infinite; }
@keyframes bubbleUp { 0% { transform: translateY(0) translateX(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(-115vh) translateX(var(--dx, 20px)); opacity: .2; } }
.dive-foam { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; z-index: 4; }
html:not(.js) .dive-foam { display: none; }
html.rm .dive { height: auto; } html.rm .dive-pin { position: relative; height: auto; min-height: 70svh; display: grid; }
html.rm .dive-layer { position: relative; } html.rm .dive-a, html.rm .dive-m, html.rm .dive-foam { display: none; } html.rm .dive-b { clip-path: none; display: grid; padding-block: 90px; }

/* ==========================================================================
   PROJECTS — pinned horizontal slider (RTL: track moves with +translateX)
   ========================================================================== */
.hs.section { padding: 0; }
.hs-pin { position: relative; padding: calc(var(--header-h) + 20px) 0 110px; }
html.js .hs-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; overflow: clip; padding-bottom: 96px; }
.hs-head { text-align: center; max-width: 820px; margin: 0 auto 18px; padding-inline: 20px; position: relative; z-index: 2; }
.hs-head .chip { margin-bottom: 8px; }
.hs-head h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); margin-bottom: .2em; }
.hs-head p { color: var(--fg-2); font-size: .98rem; }
.hs-viewport { position: relative; z-index: 2; flex: 1; min-height: 0; overflow: clip; }
.hs-track { display: flex; gap: 26px; height: 100%; width: max-content; padding-inline: 24px; align-items: stretch; will-change: transform; }
.project { flex: none; width: min(580px, 46vw); height: 100%; display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.project .media { position: relative; flex: 1 1 58%; min-height: 0; overflow: hidden; }
.project .media > img { position: absolute; top: -6%; left: -8%; width: 116%; height: 112%; max-width: none; object-fit: cover; will-change: transform; }
.project .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3, 22, 60, .85), transparent 55%); pointer-events: none; }
.project .tags .chip { background: rgba(3, 22, 60, .82); color: #fff; border-color: rgba(255, 255, 255, .4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.project .tags .chip.mint { color: #7dfbc6; border-color: #7dfbc6; } .project .tags .chip.cyan { color: #9eeaff; border-color: #62d8ff; }
.project .tags { position: absolute; top: 14px; right: 14px; left: 14px; z-index: 3; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.project .model { position: absolute; bottom: 12px; left: 14px; z-index: 3; font-size: .7rem; direction: ltr; color: #aef0ff; background: rgba(3, 22, 60, .75); padding: 3px 10px; border-radius: 8px; border: 1px solid rgba(98, 216, 255, .4); }
.project .body { flex: none; padding: 16px 22px 18px; }
.project .body h3 { font-size: 1.05rem; margin-bottom: .25em; }
.project .body p { font-size: .88rem; color: var(--fg-2); margin-bottom: 10px; }
.project .meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .78rem; border-top: 1px solid var(--line); padding-top: 10px; color: var(--fg-2); }
.project .meta span { display: inline-flex; align-items: center; gap: .35em; }
.project .meta svg { width: 1.1em; height: 1.1em; }
.project .meta .ok { color: var(--ok); font-weight: 700; }
.ba { position: absolute; inset: 0; user-select: none; overflow: hidden; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.ba .before { filter: sepia(.9) saturate(1.7) hue-rotate(-18deg) contrast(1.1) brightness(.72); clip-path: inset(0 0 0 var(--split, 50%)); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 3px; background: #fff; transform: translateX(-1.5px); z-index: 2; box-shadow: 0 0 14px #62d8ff; }
.ba .handle::after { content: "⇔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; background: #62d8ff; color: #04214f; display: grid; place-items: center; font-weight: 900; box-shadow: 0 0 18px #62d8ff; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 4; margin: 0; background: none; }
.ba .lbl { position: absolute; bottom: 14px; z-index: 3; font-size: .7rem; padding: 3px 10px; border-radius: 8px; direction: ltr; }
.ba .lbl.b { right: 14px; background: rgba(147, 0, 10, .8); color: #ffdad6; } .ba .lbl.a { left: 14px; background: rgba(0, 82, 54, .85); color: #8bffd0; }
.project-cta { justify-content: center; align-items: center; text-align: center; padding: 28px; gap: 12px; background: linear-gradient(160deg, rgba(98, 216, 255, .18), rgba(4, 28, 68, .5)); }
.project-cta h3 { font-size: 1.25rem; } .project-cta p { color: var(--fg-2); font-size: .92rem; max-width: 22em; }
.hs-progress { position: absolute; z-index: 4; bottom: 40px; left: 50%; width: min(380px, 60%); height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .22); transform: translateX(-50%); overflow: hidden; }
.hs-progress i { display: block; height: 100%; border-radius: inherit; transform-origin: right; transform: scaleX(0); background: linear-gradient(270deg, #9aeeff, #5ff0b5); }
.hs-hint { position: absolute; z-index: 4; bottom: 54px; left: 50%; transform: translateX(-50%); font-size: .78rem; color: var(--fg-3); font-weight: 700; }
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  html.js .hs-pin, .hs-pin { position: relative; height: auto; display: block; padding: calc(var(--header-h) + 10px) 0 120px; overflow: visible; }
  .hs-viewport { overflow: visible; } .hs-track { flex-direction: column; width: auto; height: auto; padding-inline: 16px; gap: 20px; }
  .project { width: 100%; height: auto; } .project .media { flex: none; aspect-ratio: 16 / 10; }
  .hs-progress, .hs-hint { display: none; }
}
html.rm .hs-pin { position: relative !important; height: auto !important; display: block; } html.rm .hs-track { flex-direction: column; width: auto; height: auto; transform: none !important; } html.rm .project { width: 100%; height: auto; } html.rm .project .media { flex: none; aspect-ratio: 16 / 10; } html.rm .hs-progress, html.rm .hs-hint { display: none; }

/* ==========================================================================
   MODELS / INSTALL / CERTS / FAQ / CONTACT / FOOTER  (dark zone)
   ========================================================================== */
.models-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; perspective: 1200px; }
.model-card { padding: 28px; display: flex; flex-direction: column; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s var(--ease), box-shadow .4s, border-color .4s; will-change: transform; }
.model-card:hover { border-color: var(--accent); box-shadow: 0 30px 60px -28px rgba(98, 216, 255, .5); }
.model-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 30px 70px -30px rgba(98, 216, 255, .55); }
.model-card .ribbon { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #62d8ff; color: #04214f; border-color: #62d8ff; }
.model-card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.model-card .code { font-size: .7rem; color: var(--fg-3); direction: ltr; letter-spacing: .08em; }
.model-stage { position: relative; height: 176px; margin-bottom: 18px; border-radius: var(--r-md); display: grid; place-items: center; overflow: hidden; background: rgba(2, 18, 52, .55); border: 1px solid var(--line); }
.model-stage::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(98, 216, 255, .08) 1px, transparent 1px), linear-gradient(to bottom, rgba(98, 216, 255, .08) 1px, transparent 1px); background-size: 22px 22px; }
.model-stage .cable-note { position: absolute; bottom: 8px; width: 100%; text-align: center; font-size: .68rem; color: var(--fg-3); }
.device-box { position: relative; z-index: 1; width: 96px; height: 96px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: linear-gradient(145deg, #213a5c, #0d1f3a); border: 2px solid #62d8ff; box-shadow: 0 0 28px -4px rgba(98, 216, 255, .7); animation: floaty 5s ease-in-out infinite; }
.model-card:nth-child(2) .device-box { animation-delay: -1.6s; } .model-card:nth-child(3) .device-box { animation-delay: -3.2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.device-box .led { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: #4eeaa3; box-shadow: 0 0 8px #4eeaa3; animation: blink 1.3s infinite; }
.device-box .led.red { background: #ff7a59; box-shadow: 0 0 8px #ff7a59; }
@keyframes blink { 50% { opacity: .2; } }
.device-box .name { font-size: .6rem; color: #b9d5ef; direction: ltr; letter-spacing: .1em; }
.device-box .khz { font-size: .88rem; font-weight: 800; color: #62d8ff; direction: ltr; }
.device-box svg { width: 28px; height: 28px; color: #62d8ff; }
.model-card h3 { font-size: 1.2rem; margin-bottom: .3em; }
.model-card > p { font-size: .9rem; color: var(--fg-2); min-height: 4.2em; }
.specs { list-style: none; padding: 0; margin: 10px 0 20px; font-size: .85rem; }
.specs li { display: flex; justify-content: space-between; gap: 10px; padding: .55em 0; border-top: 1px dashed var(--line); }
.specs li span:first-child { color: var(--fg-3); } .specs li span:last-child { font-weight: 800; color: var(--fg); text-align: left; }
.specs li span.mint { color: var(--ok); }
.model-card .btn { margin-top: auto; width: 100%; }
@media (max-width: 980px) { .models-grid { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; } .model-card > p { min-height: 0; } }

.install-wrap { position: relative; }
.install-line { position: relative; height: 6px; margin: 0 8% 34px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.install-line i { position: absolute; inset: 0; border-radius: inherit; transform-origin: right; transform: scaleX(var(--lp, 0)); background: linear-gradient(270deg, #9aeeff, #5ff0b5); box-shadow: 0 0 16px rgba(98, 216, 255, .8); }
.install-line .drop { position: absolute; top: 50%; right: calc(var(--lp, 0) * 100%); width: 22px; height: 28px; margin: -14px -11px 0 0; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(circle at 35% 30%, #fff, #62d8ff 60%, #1ea7ff); box-shadow: 0 0 18px #62d8ff; }
.install-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.install-step { padding: 28px 22px; text-align: center; }
.install-step .no { font-size: 2.7rem; font-weight: 900; line-height: 1; margin-bottom: 10px; background: linear-gradient(135deg, #9aeeff, #5ff0b5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.install-step .ico { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-bg); color: var(--accent); border: 1px solid var(--accent); }
.install-step .ico svg { width: 27px; height: 27px; }
.install-step h3 { font-size: 1.02rem; margin-bottom: .3em; } .install-step p { font-size: .88rem; color: var(--fg-2); }
@media (max-width: 960px) { .install-grid { grid-template-columns: 1fr 1fr; } .install-line { display: none; } }
@media (max-width: 520px) { .install-grid { grid-template-columns: 1fr; } }

.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.counter { text-align: center; padding: 28px 14px; }
.counter .n { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 900; color: var(--accent); line-height: 1.15; direction: rtl; }
.counter .n small { font-size: 1rem; font-weight: 700; margin-inline-start: .2em; }
.counter .l { font-size: .86rem; color: var(--fg-2); margin-top: 6px; }
.trust { padding: 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.trust h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin: 16px 0 .4em; } .trust > div > p { color: var(--fg-2); }
.trust-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.badge { padding: 18px 10px; text-align: center; border-radius: var(--r-md); background: rgba(2, 18, 52, .45); border: 1px solid var(--line); font-size: .8rem; transition: transform .35s var(--ease), border-color .35s; }
.badge:hover { transform: translateY(-5px); border-color: var(--ok); }
.badge svg { width: 30px; height: 30px; color: var(--ok); margin: 0 auto 8px; }
.badge strong { display: block; font-size: .85rem; } .badge small { color: var(--fg-3); font-size: .72rem; }
.consult { padding: 32px; text-align: center; background: rgba(2, 18, 52, .55); }
.consult .ico { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--accent-bg); color: var(--accent); }
.consult .ico svg { width: 28px; height: 28px; } .consult p { color: var(--fg-2); font-size: .9rem; }
.consult .btn { margin: 16px 0 10px; width: 100%; } .consult small { color: var(--fg-3); font-size: .75rem; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr; padding: 26px; } .counters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust-badges { grid-template-columns: 1fr 1fr; } }

.faq-list { max-width: 880px; margin: 0 auto; display: grid; gap: 12px; }
.faq { padding: 0; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq .pm { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--accent); display: grid; place-items: center; color: var(--accent); transition: transform .4s var(--ease), background .3s; }
.faq .pm svg { width: 16px; height: 16px; }
.faq[open] .pm { transform: rotate(135deg); background: var(--accent-bg); }
.faq .ans { padding: 0 24px 22px; color: var(--fg-2); font-size: .94rem; animation: fadeDown .45s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-info, .form { padding: 36px; }
.contact-info h3 { margin-bottom: .6em; }
.contact-info ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-info li { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--fg-2); }
.contact-info li svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: .25em; }
.contact-info li b { color: var(--fg); display: block; }
.contact-info img { border-radius: 14px; margin-top: 24px; border: 1px solid var(--line); }
.form { display: grid; gap: 16px; align-content: start; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: .8em 1em; border-radius: 12px; border: 1px solid var(--field-border); background: var(--field-bg); color: var(--fg); font: inherit; font-size: .92rem; transition: border-color .25s, box-shadow .25s; }
.field select option { color: #0a1f3d; background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-bg); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--ok); display: none; } .form-note.show { display: block; animation: fadeDown .4s; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .contact-info, .form { padding: 24px; } }
@media (max-width: 520px) { .form .row { grid-template-columns: 1fr; } }

.site-footer { position: relative; z-index: 2; overflow: clip; padding: 64px 0 0; color: #fff; background: linear-gradient(180deg, #041d46, #02122f); }
.site-footer .container { position: relative; z-index: 2; }
.footer-mark { position: absolute; z-index: 1; left: 50%; bottom: -.18em; transform: translateX(-50%); font-size: clamp(8rem, 24vw, 22rem); font-weight: 900; line-height: 1; letter-spacing: .04em; white-space: nowrap; direction: ltr;
  color: transparent; -webkit-text-stroke: 2px rgba(98, 216, 255, .22); user-select: none; pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-size: 1rem; margin-bottom: 14px; } .footer-grid p { color: #cfe3f6; font-size: .9rem; margin-bottom: .6em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid li a { color: #cfe3f6; font-size: .9rem; transition: color .25s, padding .25s; } .footer-grid li a:hover { color: #62d8ff; padding-inline-start: 6px; }
.footer-bottom { margin-top: 44px; padding: 20px 0 22px; border-top: 1px solid rgba(255, 255, 255, .14); text-align: center; font-size: .8rem; color: #b9d5ef; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

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

/* ---------- reduced motion: show everything in its final state ---------- */
html.rm .ch-title .wi, html.rm .split .wi { transform: none !important; opacity: 1 !important; }
html.rm .ch-fade, html.rm .reveal, html.rm .stagger > * { opacity: 1 !important; translate: none !important; scale: none !important; }
html.rm table.cmp tbody td { opacity: 1 !important; transform: none !important; }
.ba input { touch-action: pan-y; }

/* the floating call/top buttons step aside while the pinned hero (with its own controls) is on screen */
.fab { transition: opacity .4s, transform .5s var(--ease); }
html.in-story .fab { opacity: 0; pointer-events: none; transform: translateY(24px); }

@media (max-width: 767px) { .fab { bottom: 14px; left: 12px; gap: 8px; } .fab a, .fab button { width: 44px; height: 44px; } .fab svg { width: 20px; height: 20px; } }

/* ---------- hero: fit every viewport (tablet portrait, short phones, landscape phones) ---------- */
@media (max-width: 1000px) {
  .p-freq { display: none; }
  .p-status { top: auto; bottom: 10px; right: 10px; }
  .ch-extra .btn { padding: .62em 1.1em; font-size: .88rem; }
  .ch-extra { gap: 8px; }
}
@media (min-width: 600px) and (max-width: 1000px) and (min-height: 800px) {
  .story-grid { grid-template-rows: auto auto; align-content: center; gap: 28px; }
  .panel { height: min(40svh, 470px); }
  .ch-title { font-size: clamp(2.2rem, 5.6vw, 3.2rem); }
  .ch-copy { font-size: 1.12rem; max-width: 36em; }
  .kicker { font-size: 1rem; margin-bottom: 14px; }
  .seg-label { display: block; }
}
@media (max-width: 1000px) and (max-height: 720px) {
  .panel { height: 26svh; border-radius: 18px; }
  .story-grid { gap: 10px; padding-bottom: 62px; }
  .gauges { margin-top: 6px; padding: 5px 10px 6px; }
  .kicker { margin-bottom: 4px; font-size: .8rem; } .kicker .num { font-size: .72rem; }
  .ch-title { font-size: clamp(1.35rem, 5.6vw, 1.8rem); margin-bottom: .3em; }
  .ch-copy { font-size: .86rem; line-height: 1.7; margin-bottom: .6em; }
  .chapter:not(:last-child) .ch-extra { display: none; }
  .story-nav { bottom: 8px; } .arrow { width: 34px; height: 34px; }
}
@media (max-width: 1000px) and (max-height: 520px) and (orientation: landscape) {
  .story-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; align-items: center; gap: 18px; padding-top: calc(var(--header-h) + 4px); padding-bottom: 50px; }
  .story-visual { order: 0; }
  .panel { height: calc(100svh - var(--header-h) - 70px); }
  .gauges { display: none; }
  .ch-title { font-size: clamp(1.15rem, 3.4vw, 1.5rem); }
  .ch-copy { font-size: .8rem; line-height: 1.65; }
  .ch-extra .btn { padding: .45em .9em; font-size: .8rem; }
}
@media (max-width: 420px) { .gauges { gap: 8px; padding-inline: 8px; } .g-row { flex-wrap: nowrap; font-size: .56rem; gap: 4px; white-space: nowrap; } .g-val { font-size: .68rem; } }
html.rm .story-grid { align-items: start; } html.rm .story-visual { position: sticky; top: calc(var(--header-h) + 16px); }

/* ==========================================================================
   HEADER v2 — floating capsule with contrast from the first pixel
   ========================================================================== */
:root, .tone-light { --header-h: 92px; }
.site-header { height: auto; padding-top: 14px; background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; pointer-events: none; }
.site-header .header-inner {
  pointer-events: auto; height: 66px; padding: 0 12px 0 10px; gap: 16px; border-radius: 22px; position: relative;
  background: rgba(255, 255, 255, .86); border: 1px solid rgba(10, 60, 130, .14);
  box-shadow: 0 1px 0 #fff inset, 0 18px 40px -22px rgba(6, 50, 120, .45), 0 2px 8px rgba(6, 50, 120, .06);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  transition: background .45s, border-color .45s, box-shadow .45s, height .35s var(--ease);
}
.site-header .header-inner::before { content: ""; position: absolute; inset-inline: 22px; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--orange), #0a78e0, transparent); opacity: .7; }
.site-header.scrolled .header-inner { height: 58px; }
html[data-tone="dark"] .site-header .header-inner { background: rgba(5, 26, 64, .78); border-color: rgba(255, 255, 255, .16); box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset, 0 20px 44px -22px rgba(0, 6, 30, .8); }
.brand { gap: 16px; padding: 6px 12px 6px 4px; }
.brand-logo { display: grid; place-items: center; height: 44px; padding: 0 14px; border-radius: 14px; background: #f1f6fc; border: 1px solid rgba(10, 60, 130, .1); }
html[data-tone="dark"] .site-header .brand-logo { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); }
.brand img { height: 26px; }
.brand-sep { width: 1px; height: 30px; background: linear-gradient(180deg, transparent, var(--line) 20%, var(--line) 80%, transparent); }
.brand-text strong { font-size: 1.02rem; letter-spacing: 0; margin-bottom: 3px; }
.brand-text small { display: flex; align-items: center; gap: 7px; font-size: .7rem; font-weight: 700; color: var(--fg-3); }
.brand-text small .dot { width: 6px; height: 6px; background: #12b886; color: #12b886; }
.nav { gap: 2px; padding: 4px; border-radius: 16px; background: rgba(10, 60, 130, .05); }
html[data-tone="dark"] .site-header .nav { background: rgba(255, 255, 255, .07); }
.nav a { padding: .5em .95em; font-size: .88rem; border-radius: 12px; white-space: nowrap; transition: color .25s, background .3s, box-shadow .3s; }
.nav a::after { display: none; }
.nav a:hover { background: rgba(10, 120, 224, .09); }
.nav a.active { background: #fff; color: var(--accent-text); box-shadow: 0 6px 16px -8px rgba(6, 50, 120, .5), 0 0 0 1px rgba(10, 60, 130, .08); }
html[data-tone="dark"] .site-header .nav a.active { background: #62d8ff; color: #04214f; box-shadow: 0 6px 18px -6px rgba(98, 216, 255, .6); }
.phone-pill { background: none; border: 0; padding: .4em .5em; font-size: .95rem; color: var(--fg); gap: .6em; }
.phone-pill svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--accent-bg); color: var(--accent-text); }
.hdr-btn { border-radius: 14px; padding: .7em 1.15em; }
.hdr-btn svg { transition: transform .3s var(--ease); } .hdr-btn:hover svg { transform: translateX(-4px); }
.header-cta .btn.hdr-btn { display: inline-flex; }
.scroll-progress { height: 3px; }
@media (max-width: 1240px) { .brand-text small { display: none; } .brand-sep { display: none; } .brand { gap: 12px; } .nav a { padding: .5em .7em; font-size: .84rem; } }
@media (max-width: 1120px) {
  .nav { position: absolute; top: calc(100% + 10px); left: 0; right: 0; padding: 10px; border-radius: 20px; background: rgba(255, 255, 255, .97) !important; border: 1px solid rgba(10, 60, 130, .14); box-shadow: 0 24px 50px -20px rgba(6, 50, 120, .5); }
  html[data-tone="dark"] .site-header .nav { background: rgba(5, 26, 64, .97) !important; border-color: rgba(255, 255, 255, .16); }
  .nav a { padding: .8em 1em; font-size: 1rem; }
  .brand-sep { display: block; } .nav-toggle { border-radius: 14px; }
}
@media (max-width: 767px) {
  :root, .tone-light { --header-h: 76px; }
  .site-header { padding-top: 10px; } .site-header .header-inner { height: 56px; border-radius: 18px; padding: 0 8px; gap: 8px; }
  .site-header.scrolled .header-inner { height: 54px; }
  .brand { gap: 10px; padding: 4px; } .brand-logo { height: 38px; padding: 0 10px; border-radius: 12px; } .brand img { height: 22px; }
  .brand-text strong { font-size: .88rem; margin: 0; } .brand-sep { height: 22px; }
  .header-cta .btn.hdr-btn { display: none; } .phone-pill span { display: none; } .phone-pill { padding: 0; } .nav-toggle { width: 40px; height: 40px; }
}
@media (max-width: 380px) { .brand-sep { display: none; } }

/* ==========================================================================
   MODELS v2 — choose by pipe diameter, real product photos
   ========================================================================== */
.inch-bar { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.inch { display: grid; justify-items: center; min-width: 78px; padding: 10px 12px 8px; border-radius: 16px; border: 1px solid var(--card-border); background: var(--card); color: var(--fg-2); line-height: 1.3; transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s; }
.inch b { font-size: 1.05rem; font-weight: 900; white-space: nowrap; } .inch small { font-size: .68rem; opacity: .8; }
.inch:hover { transform: translateY(-3px); border-color: var(--accent); }
.inch.on { background: linear-gradient(135deg, #9aeeff, #45c6f6); color: #04214f; border-color: transparent; transform: translateY(-4px); box-shadow: 0 16px 30px -14px rgba(98, 216, 255, .8); }
.showcase { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; overflow: hidden; }
.sc-stage { position: relative; min-height: 440px; display: grid; place-items: center; padding: 34px; overflow: hidden;
  background: radial-gradient(80% 70% at 50% 40%, #ffffff 0%, #e6f2fc 55%, #c5def4 100%); }
.sc-ring { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.sc-ring svg { width: min(96%, 470px); height: auto; overflow: visible; }
.sc-r1 { fill: none; stroke: rgba(10, 96, 192, .14); stroke-width: 1; stroke-dasharray: 3 6; transform-origin: 100px 100px; animation: spin 40s linear infinite; }
.sc-r2 { fill: none; stroke: rgba(10, 96, 192, .28); stroke-width: 5; transition: r .8s var(--ease); }
.sc-r3 { fill: rgba(56, 189, 248, .14); stroke: rgba(10, 96, 192, .2); stroke-width: 1; transition: r .8s var(--ease); }
#scImg { position: relative; z-index: 1; width: auto; max-width: 82%; max-height: 330px; height: auto; filter: drop-shadow(0 34px 26px rgba(4, 30, 70, .42)); animation: floaty 6s ease-in-out infinite; }
.showcase.flat #scImg { max-width: 88%; border-radius: 10px; }
.showcase.swap #scImg { animation: scIn .7s var(--ease), floaty 6s ease-in-out .7s infinite; }
@keyframes scIn { from { opacity: 0; transform: translateX(-60px) scale(.9) rotate(-4deg); } to { opacity: 1; transform: none; } }
.showcase.swap .sc-info > * { animation: fadeDown .5s var(--ease) both; }
.showcase.swap .sc-info > *:nth-child(2) { animation-delay: .05s; } .showcase.swap .sc-info > *:nth-child(3) { animation-delay: .1s; } .showcase.swap .sc-info > *:nth-child(4) { animation-delay: .15s; } .showcase.swap .sc-info > *:nth-child(5) { animation-delay: .2s; }
.sc-dia { position: absolute; z-index: 2; top: 18px; left: 18px; padding: .3em .9em; border-radius: 999px; font-weight: 800; font-size: .9rem; direction: ltr; color: #04214f; background: #fff; border: 1px solid rgba(10, 96, 192, .25); box-shadow: 0 8px 18px -10px rgba(4, 30, 70, .5); }
.sc-info { padding: 36px; display: flex; flex-direction: column; }
.sc-info .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.sc-info .code { font-size: .72rem; color: var(--fg-3); direction: ltr; }
.sc-info h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .2em; direction: rtl; }
.sc-info > p { color: var(--fg-2); margin-bottom: 6px; }
.sc-info .specs { margin: 10px 0 22px; font-size: .92rem; }
.sc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.thumbs { display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; margin-top: 18px; }
.thumb { display: grid; justify-items: center; gap: 4px; padding: 12px 6px 10px; border-radius: 16px; color: var(--fg); transition: transform .35s var(--ease), border-color .3s, background .3s; }
.thumb img { height: 46px; width: auto; max-width: 100%; object-fit: contain; border-radius: 4px; filter: drop-shadow(0 6px 6px rgba(0, 10, 40, .5)); }
.thumb span { font-size: .68rem; font-weight: 800; direction: ltr; } .thumb small { font-size: .62rem; color: var(--fg-3); white-space: nowrap; }
.thumb:hover { transform: translateY(-5px); border-color: var(--accent); }
.thumb.on { border-color: var(--accent); background: rgba(98, 216, 255, .16); }
.models-note { text-align: center; color: var(--fg-3); font-size: .86rem; margin-top: 18px; }
@media (max-width: 1000px) { .thumbs { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; } .sc-stage { min-height: 300px; padding: 24px; } #scImg { max-height: 220px; } .sc-info { padding: 24px; } }
@media (max-width: 560px) { .thumbs { grid-template-columns: repeat(3, 1fr); } .inch { min-width: 62px; padding: 8px 8px 6px; } .inch b { font-size: .92rem; } .inch-bar { gap: 6px; } }

/* ==========================================================================
   HERO clarity: start cue, next-chapter teaser, live caption, readable stepper
   ========================================================================== */
.start-cue { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 14px 20px 14px 16px; border-radius: 20px; width: fit-content; max-width: 100%;
  border: 1.5px solid var(--accent); background: linear-gradient(135deg, rgba(10, 120, 224, .10), rgba(0, 180, 216, .08)); color: var(--accent-text); text-align: right; line-height: 1.5; position: relative;
  box-shadow: 0 18px 34px -22px rgba(6, 82, 179, .6); transition: transform .3s var(--ease), background .3s; }
.start-cue:hover { transform: translateY(-3px); background: var(--accent-bg); }
.start-cue::before { content: ""; position: absolute; inset: -6px; border-radius: 26px; border: 2px solid var(--accent); opacity: 0; animation: cueRing 2.4s ease-out infinite; pointer-events: none; }
@keyframes cueRing { 0% { transform: scale(.96); opacity: .55; } 100% { transform: scale(1.06); opacity: 0; } }
.start-cue .mouse { flex: none; width: 26px; height: 40px; border-radius: 14px; }
.cue-text strong { display: block; font-size: 1.05rem; font-weight: 900; color: var(--fg); }
.cue-text small { display: block; font-size: .8rem; font-weight: 400; color: var(--fg-2); max-width: 24em; }
.cue-chev { display: grid; margin-inline-start: 4px; } .cue-chev svg { width: 22px; height: 22px; margin: -7px 0; animation: chevDown 1.5s ease-in-out infinite; } .cue-chev svg:nth-child(2) { animation-delay: .25s; }
.start-cue.nudge { animation: cueNudge 1.1s ease-in-out infinite; }
@keyframes cueNudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.next-ch { display: inline-flex; align-items: center; gap: .5em; margin-top: 16px; padding: .5em 1.1em; border-radius: 999px; border: 1.5px dashed var(--accent); background: transparent; color: var(--accent-text); font-size: .86rem; font-weight: 800; transition: background .3s, transform .3s var(--ease); }
.next-ch svg { width: 18px; height: 18px; animation: chevDown 1.5s ease-in-out infinite; }
.next-ch:hover { background: var(--accent-bg); transform: translateY(-2px); }

.p-caption { position: absolute; z-index: 5; left: 16px; bottom: 16px; max-width: calc(100% - 190px); display: flex; align-items: center; gap: 10px; padding: .4em 1em .4em .45em; border-radius: 16px; color: #eaf6ff; font-size: .86rem; font-weight: 700; line-height: 1.55;
  background: rgba(6, 30, 66, .92); border: 1px solid rgba(98, 216, 255, .4); box-shadow: 0 16px 30px -16px rgba(2, 20, 50, .8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pc-step { flex: none; padding: .2em .7em; border-radius: 999px; background: #62d8ff; color: #04214f; font-size: .72rem; font-weight: 800; direction: ltr; letter-spacing: .02em; }
.p-caption.tick #pcText { animation: capIn .6s var(--ease); } .p-caption.tick .pc-step { animation: capPop .5s var(--ease); }
@keyframes capIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes capPop { 0% { transform: scale(.7); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }

.seg-bar { height: 6px; } .seg-label { font-size: .84rem; font-weight: 800; color: var(--fg-2); } .seg.done .seg-label, .seg.on .seg-label { color: var(--accent-text); }
.seg.on .seg-label { color: var(--fg); } .seg:not(.on):not(.done) .seg-label { opacity: .75; }
@media (max-width: 1000px) {
  .p-caption { left: 10px; bottom: 10px; max-width: calc(100% - 150px); font-size: .7rem; gap: 7px; padding: .3em .8em .3em .35em; border-radius: 12px; } .pc-step { font-size: .62rem; }
  .start-cue { margin-top: 12px; padding: 9px 14px 9px 12px; gap: 12px; border-radius: 16px; } .start-cue .mouse { width: 20px; height: 32px; }
  .cue-text strong { font-size: .92rem; } .cue-text small { font-size: .72rem; } .cue-chev { display: none; }
  .next-ch { margin-top: 8px; font-size: .8rem; padding: .35em .9em; }
}
@media (max-width: 1000px) and (max-height: 720px) { .cue-text small { display: none; } .start-cue { margin-top: 8px; padding: 7px 12px; } }
@media (max-width: 1000px) and (max-height: 520px) and (orientation: landscape) { .start-cue, .next-ch, .p-caption { display: none; } }
html.rm .start-cue, html.rm .next-ch { display: none; }

/* ---------- top of page: pure white ---------- */
.story, .story-pin { background: #fff; }
.story-wash, .story-orbs { display: none; }
.story > .wave { color: #fff; }
.marquee { background: #fff; }
#science { --c-top: #ffffff; --c-bot: #e2f2fd; }
.tone-light.story { --hdr-bg: rgba(255, 255, 255, .9); }

/* ==========================================================================
   VULCAN partnership section
   ========================================================================== */
#vulcan     { --c-top: #ffffff; --c-bot: #f0f8ff; --c-next: #e8f5fe; }
#science    { --c-top: #e8f5fe; --c-bot: #d6edfb; }
.vx-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: stretch; }
.vx-card { padding: 30px; display: flex; flex-direction: column; overflow: hidden; }
.vx-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.vx-optim::before { background: linear-gradient(90deg, #12b886, var(--orange)); }
.vx-vulcan::before { background: linear-gradient(90deg, #000 33%, #dd0000 33% 66%, #ffce00 66%); }
.vx-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.vx-top img { height: 30px; width: auto; }
.vx-brand { font-family: ui-monospace, Menlo, monospace; font-weight: 900; font-size: 1.35rem; letter-spacing: .28em; direction: ltr; color: #0a1f3d; }
.vx-card h3 { font-size: 1.3rem; margin-bottom: 14px; }
.vx-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.vx-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--fg-2); }
.vx-list svg { width: 1.2em; height: 1.2em; flex: none; margin-top: .3em; color: var(--ok); }
.vx-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.vx-site { font-size: .85rem; font-weight: 800; color: var(--accent-text); direction: ltr; }
.vx-link { display: grid; place-items: center; align-content: center; gap: 6px; color: var(--accent); font-size: .78rem; font-weight: 800; }
.vx-link svg { width: 110px; height: 24px; }
.vx-link svg circle { animation: vxPulse 2.2s ease-in-out infinite; transform-origin: 60px 12px; }
@keyframes vxPulse { 0%, 100% { transform: scale(.7); opacity: .6; } 50% { transform: scale(1.15); opacity: 1; } }
@media (max-width: 900px) { .vx-grid { grid-template-columns: 1fr; } .vx-link { grid-auto-flow: column; } .vx-link svg { transform: rotate(90deg); width: 60px; } .vx-card { padding: 24px; } }

/* ==========================================================================
   SHOP
   ========================================================================== */
#models { --c-next: #11509b; }
#shop    { --c-top: #11509b; --c-bot: #0f4a93; --c-next: #0f4c95; }
.shop-steps { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: -18px 0 34px; font-size: .88rem; font-weight: 700; color: var(--fg-2); }
.shop-steps span { display: inline-flex; align-items: center; gap: 8px; }
.shop-steps b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-bg); border: 1px solid var(--accent); color: var(--accent-text); font-size: .8rem; }
.shop-steps i { width: 34px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shop-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .45s var(--ease), border-color .3s, box-shadow .45s; }
.shop-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.shop-card.in-cart { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok), var(--card-shadow); }
.sc-fig { position: relative; height: 190px; display: grid; place-items: center; padding: 18px; background: radial-gradient(70% 80% at 50% 45%, #ffffff, #dcebf8 70%, #bcd6ef); overflow: hidden; }
.sc-fig img { max-height: 150px; max-width: 86%; width: auto; filter: drop-shadow(0 18px 14px rgba(4, 30, 70, .4)); transition: transform .6s var(--ease); }
.sc-fig.flat img { border-radius: 8px; }
.shop-card:hover .sc-fig img { transform: scale(1.06) rotate(-2deg); }
.sc-inch { position: absolute; top: 12px; left: 12px; padding: .2em .75em; border-radius: 999px; background: #fff; color: #04214f; font-weight: 800; font-size: .8rem; direction: ltr; border: 1px solid rgba(10, 96, 192, .25); }
.sc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sc-series { font-size: .72rem; font-weight: 800; color: var(--accent-text); }
.sc-body h3 { font-size: 1.25rem; direction: ltr; text-align: right; }
.sc-body p { font-size: .88rem; color: var(--fg); } .sc-body small { font-size: .8rem; color: var(--fg-3); }
.sc-pr { margin: 10px 0 12px; font-weight: 900; font-size: 1.05rem; color: var(--ok); }
.sc-pr.ask { font-size: .88rem; font-weight: 800; color: var(--accent-text); }
.sc-row { margin-top: auto; display: flex; gap: 10px; align-items: center; }
.sc-row .btn { flex: 1; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(2, 18, 52, .35); overflow: hidden; flex: none; }
.stepper button { width: 34px; height: 36px; border: 0; background: none; font-size: 1.1rem; font-weight: 800; color: var(--fg); }
.stepper button:hover { background: var(--accent-bg); }
.stepper .num { min-width: 26px; text-align: center; font-weight: 800; }
.stepper.sm button { width: 30px; height: 30px; }
.shop-vulcan { margin-top: 26px; display: flex; align-items: center; gap: 22px; padding: 22px 26px; color: var(--fg); transition: transform .4s var(--ease), border-color .3s; }
.shop-vulcan:hover { transform: translateY(-4px); border-color: #ffce00; }
.shop-vulcan .vx-brand { color: #fff; padding: 8px 14px; border-radius: 12px; background: rgba(0, 0, 0, .35); border-bottom: 3px solid #ffce00; font-size: 1.1rem; }
.shop-vulcan span { flex: 1; display: grid; gap: 2px; } .shop-vulcan small { color: var(--fg-2); font-size: .86rem; }
.shop-vulcan > svg { width: 26px; height: 26px; color: var(--accent); }
.shop-fail { grid-column: 1 / -1; text-align: center; padding: 30px; color: var(--bad); }
@media (max-width: 960px) { .shop-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .shop-grid { grid-template-columns: 1fr; } .shop-vulcan { flex-wrap: wrap; gap: 12px; padding: 18px; } .shop-steps i { width: 14px; } .shop-steps { font-size: .78rem; gap: 6px; } }

/* showcase price + header cart button */
.sc-price { font-weight: 800; color: var(--accent-text); margin: -8px 0 18px; }
.cart-btn { position: relative; gap: .5em; }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: .75rem; font-weight: 900; background: rgba(255, 255, 255, .25); }
.cart-count.has { background: var(--orange); color: #fff; }
.cart-count.bump { animation: pop .5s var(--ease); }
@media (max-width: 767px) { .header-cta .btn.cart-btn { display: inline-flex; padding: .55em .7em; } .cart-btn .cb-label { display: none; } }
.fly { position: fixed; z-index: 140; pointer-events: none; object-fit: contain; transition: transform .8s cubic-bezier(.6, -.1, .7, .9), opacity .8s; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .35)); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-note.show { display: block; } .form-note.bad { color: var(--bad); }
.field .bad { border-color: var(--bad) !important; box-shadow: 0 0 0 3px var(--bad-bg) !important; }

/* ==========================================================================
   CART drawer (slides in from the right, the RTL start side)
   ========================================================================== */
html.cart-lock { overflow: hidden; }
.cart-back { position: fixed; inset: 0; z-index: 130; background: rgba(2, 14, 40, .45); opacity: 0; transition: opacity .35s; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.cart-back.open { opacity: 1; }
.cart { position: fixed; z-index: 131; top: 0; bottom: 0; right: 0; width: min(440px, 100vw); display: flex; flex-direction: column; background: #fff; color: #0a1f3d;
  box-shadow: -30px 0 60px -30px rgba(2, 14, 40, .6); transform: translateX(105%); transition: transform .4s var(--ease); }
.cart.open { transform: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid #e3ecf5; }
.cart-head h3 { display: flex; gap: 10px; align-items: center; font-size: 1.15rem; } .cart-head h3 svg { width: 24px; height: 24px; color: #0a78e0; }
.cart-x { width: 40px; height: 40px; border-radius: 12px; border: 1px solid #d9e5f1; background: #f5f9fd; display: grid; place-items: center; }
.cart-x svg { width: 20px; height: 20px; }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 20px 24px; overscroll-behavior: contain; }
.cart-items { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.ci { display: grid; grid-template-columns: 62px 1fr auto auto; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: #f3f8fd; border: 1px solid #e1ebf5; }
.ci img { width: 62px; height: 48px; object-fit: contain; }
.ci-info { display: grid; min-width: 0; } .ci-info b { direction: ltr; text-align: right; } .ci-info small { color: #4b6785; font-size: .74rem; }
.ci .stepper { background: #fff; border-color: #d5e2ef; } .ci .stepper button { color: #0a1f3d; }
.ci-x { width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: #a8330b; display: grid; place-items: center; } .ci-x svg { width: 16px; height: 16px; }
.cart-empty { text-align: center; padding: 50px 10px; color: #4b6785; } .cart-empty > svg { width: 52px; height: 52px; color: #b9cfe4; } .cart-empty p { margin: 10px 0 16px; }
.cart-form { display: grid; gap: 12px; padding-top: 14px; border-top: 1px dashed #d5e2ef; }
.cart-form .field input, .cart-form .field select, .cart-form .field textarea { background: #fff; color: #0a1f3d; border-color: #c9d9ea; }
.cart-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cart-note { font-size: .82rem; color: #27425f; background: #eef6fd; padding: 10px 12px; border-radius: 12px; }
.cart-err { color: #a8330b; font-size: .85rem; min-height: 1em; }
.cart-submit { width: 100%; }
.cart-submit:disabled { opacity: .7; cursor: wait; }
.cart-done { text-align: center; padding: 40px 6px; display: grid; gap: 12px; justify-items: center; }
.cart-done .done-ico { width: 72px; height: 72px; color: #12b886; animation: pop .6s var(--ease); }
.cart-done p { color: #27425f; } .cart-done b { font-size: 1.1rem; color: #0a3d78; }
@media (max-width: 420px) { .cart-form .row2 { grid-template-columns: 1fr; } .ci { grid-template-columns: 50px 1fr auto; } .ci-x { grid-column: 3; grid-row: 1; } .ci .stepper { grid-column: 2 / 4; justify-self: start; } }
/* header fit with the cart button */
.site-header .header-inner { min-width: 0; }
.nav { min-width: 0; }
@media (max-width: 1500px) { .phone-pill span { display: none; } .phone-pill { padding: 0; } .nav a { padding: .5em .8em; } }
@media (max-width: 1360px) { .nav a { padding: .5em .62em; font-size: .84rem; } .brand-text strong { font-size: .95rem; } .cb-label { display: none; } .brand { padding-inline-end: 4px; } }
@media (max-width: 767px) {
  .header-cta { gap: 6px; flex: none; }
  .header-cta .btn.cart-btn { width: 40px; height: 40px; padding: 0; border-radius: 12px; justify-content: center; }
  .cart-btn .cart-count { position: absolute; top: -6px; left: -6px; min-width: 19px; height: 19px; padding: 0 4px; font-size: .66rem; box-shadow: 0 0 0 2px #fff; }
  .cart-btn .cart-count:not(.has) { display: none; }
  .brand { min-width: 0; } .brand-text { min-width: 0; } .brand-text strong { font-size: .82rem; white-space: nowrap; }
}
@media (max-width: 440px) { .phone-pill { display: none; } .brand-sep { display: none; } .brand { gap: 8px; } }
@media (max-width: 380px) { .brand-text { display: none; } }
