/* =========================================================
   H2O Utilities — 9-Stage Stainless Steel Water Purifier
   ========================================================= */

:root {
  --white: #EEF5FA;      /* clear-water blue (page background) */
  --graphite: #1C1D1F;
  --ember: #FF6A2B;      /* heat + buttons */
  --ice: #6BB7FF;        /* cool */
  --steel: #A8ACB1;      /* brushed steel */
  --linen: #DCE9F4;      /* panels */
  --brand: #1F6FD6;      /* logo blue */
  --ink: #1C1D1F;
  --ink-2: #5F6167;
  --line: rgba(28, 29, 31, .14);
  --pad: clamp(20px, 6vw, 96px);
  --head: 68px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--head); font-size: 112.5%; /* larger reading text across the site */ }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1rem; }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.048em; line-height: .95; }
h2 { font-size: clamp(2.4rem, 5.4vw, 5rem); margin-bottom: 1.6rem; }
h3 { letter-spacing: -0.035em; }

.eyebrow {
  font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 1.2rem; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
}
.tag {
  font-size: .66rem; letter-spacing: .12em; padding: .25em .7em; border-radius: 99px;
  border: 1px solid var(--line); color: var(--ink-2);
}
.body-lg { font-size: clamp(1.05rem, 1.4vw, 1.3rem); color: var(--ink-2); max-width: 36ch; }
.fine { font-size: .8rem; color: var(--ink-2); margin-top: 1rem; }
.fine.on-dark { color: var(--steel); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--graphite); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }

/* Placeholders — clearly marked text the owner must replace */
.ph {
  background: repeating-linear-gradient(135deg, rgba(255,106,43,.10) 0 6px, rgba(255,106,43,.18) 6px 12px);
  color: #A83A0B; border: 1px dashed var(--ember); border-radius: 6px;
  padding: .04em .4em; font-weight: 700; font-size: .82em; letter-spacing: 0;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.panel .ph, .site-foot .ph { color: #FFB089; }

/* Layering: the fixed 3D stage sits at z 5. Content sits above it. */
.layer { position: relative; z-index: 10; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 1.02rem 1.7rem; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 800; font-size: 1rem; letter-spacing: -0.015em; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-ember { background: var(--ember); color: #fff; box-shadow: 0 14px 34px -14px rgba(255,106,43,.75); }
.btn-ember:hover { box-shadow: 0 20px 40px -14px rgba(255,106,43,.85); }
.btn-graphite { background: var(--graphite); color: var(--white); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--graphite); color: var(--graphite); }
.btn-sm { padding: .62rem 1.15rem; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- Header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; height: var(--head); z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 var(--pad);
  transition: background-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.site-head.scrolled {
  background: rgba(238, 245, 250, .82);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-size: 1.45rem; letter-spacing: -0.035em; }
.brand-mark { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(11,63,143,.35)); }
/* language switch (EN | ES) */
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(28, 29, 31, .06); box-shadow: inset 0 0 0 1px rgba(28, 29, 31, .08); }
.lang-switch button {
  border: 0; background: transparent; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 800; letter-spacing: .06em;
  color: var(--ink-2); padding: .42rem .62rem; border-radius: 999px; line-height: 1; transition: background-color .25s, color .25s, box-shadow .25s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--brand); box-shadow: 0 2px 8px -2px rgba(11, 40, 90, .25); }
.lang-switch button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* logo hover: it grows with a little bounce, and water ripples ring out from it */
.brand-logo { position: relative; display: grid; place-items: center; flex: none; }
.brand-logo::before, .brand-logo::after {
  content: ''; position: absolute; inset: 2px; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(107, 183, 255, .9); opacity: 0; transform: scale(.9);
}
.brand-mark { position: relative; z-index: 1; transform-origin: 50% 55%; transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), filter .4s; }
.brand-word { transition: transform .45s var(--ease); }
.brand:hover .brand-mark, .brand:focus-visible .brand-mark {
  transform: translateY(4px) scale(1.32) rotate(-8deg);
  filter: drop-shadow(0 10px 16px rgba(11, 63, 143, .45)) drop-shadow(0 0 10px rgba(107, 183, 255, .55));
}
.brand:hover .brand-word, .brand:focus-visible .brand-word { transform: translateX(6px); }
@media (prefers-reduced-motion: no-preference) {
  .brand:hover .brand-mark, .brand:focus-visible .brand-mark { animation: logoBob 2.4s ease-in-out .55s infinite; }
  .brand:hover .brand-logo::before, .brand:focus-visible .brand-logo::before { animation: logoRipple 1.6s ease-out infinite; }
  .brand:hover .brand-logo::after, .brand:focus-visible .brand-logo::after { animation: logoRipple 1.6s ease-out .8s infinite; }
}
@keyframes logoBob {
  0%, 100% { transform: translateY(4px) scale(1.32) rotate(-8deg); }
  50% { transform: translateY(2px) scale(1.32) rotate(-3deg); }
}
@keyframes logoRipple {
  0% { opacity: .85; transform: translateY(4px) scale(1.15); }
  100% { opacity: 0; transform: translateY(4px) scale(1.9); border-width: 1px; }
}
/* the name, with a gentle 3D look: gradient faces, a stacked edge and a soft shadow */
.brand-word {
  font-weight: 700; line-height: 1; white-space: nowrap;
  filter: drop-shadow(0 1px 0 rgba(140, 176, 222, .9)) drop-shadow(0 1px 0 rgba(96, 140, 200, .7)) drop-shadow(0 1px 0 rgba(60, 100, 165, .5)) drop-shadow(0 5px 6px rgba(11, 40, 90, .28));
}
.brand-word b, .brand-word span { -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-word b { font-weight: 800; background-image: linear-gradient(180deg, #6BB7FF 0%, #2F8CF0 45%, #0B3F8F 100%); }
.brand-word span { background-image: linear-gradient(180deg, #4A4D53 0%, #1C1D1F 60%, #0E0F10 100%); }
.site-nav { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.site-nav a { text-decoration: none; font-weight: 700; font-size: .88rem; opacity: .62; transition: opacity .2s; }
.site-nav a:hover { opacity: 1; }
.head-actions { display: flex; align-items: center; gap: 1.1rem; }
.head-call { display: flex; align-items: center; gap: .45rem; white-space: nowrap; text-decoration: none; font-weight: 800; font-size: .9rem; font-variant-numeric: tabular-nums; }
.head-call svg { width: 16px; height: 16px; color: var(--brand); }
/* social links */
.head-contact { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.social { display: flex; align-items: center; gap: 8px; }
.social a { display: grid; place-items: center; border-radius: 50%; color: #fff; text-decoration: none; transition: transform .25s var(--ease), background-color .25s, box-shadow .25s; }
.social a:hover { transform: translateY(-2px); }
.social svg { display: block; }
.social-head a { width: 22px; height: 22px; background: var(--brand); box-shadow: 0 3px 8px -3px rgba(31,111,214,.6); }
.social-head svg { width: 13px; height: 13px; }
.social-head .s-fb:hover { background: #1877F2; }
.social-head .s-ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-foot { margin-top: 1.1rem; gap: 12px; }
.social-foot a { width: 44px; height: 44px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.social-foot svg { width: 22px; height: 22px; }
.social-foot .s-fb:hover { background: #1877F2; box-shadow: none; }
.social-foot .s-ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); box-shadow: none; }
@media (max-width: 1279px) { .site-nav { display: none; } }
@media (max-width: 560px) {
  .head-call span { display: none; }
  .head-call { width: 34px; height: 34px; justify-content: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); }
  .head-contact { gap: 3px; }
  .social-head { gap: 5px; }
  .social-head a { width: 20px; height: 20px; }
  .social-head svg { width: 12px; height: 12px; }
  .brand { font-size: 1.12rem; gap: .5rem; }
  .brand-mark { width: 40px; height: 40px; }
  .head-actions { gap: .45rem; }
  .head-actions .btn-sm { padding: .58rem .8rem; font-size: .8rem; }
  /* on phones: one small button that switches to the other language */
  .lang-switch { padding: 0; background: none; box-shadow: none; }
  .lang-switch button[aria-pressed="true"] { display: none; }
  .lang-switch button { padding: 0; width: 34px; height: 34px; font-size: .72rem; color: var(--brand); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
}

/* ---------- 3D stage ---------- */
.stage { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; z-index: 5; pointer-events: none; opacity: 0; }
.stage-fallback { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 5; pointer-events: none; display: none; will-change: transform, opacity; transform-origin: 0 0; }
/* Real product photo layer (background removed) */
.stage-photo { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 6; pointer-events: none; opacity: 0; visibility: hidden; transform-origin: 0 0; will-change: transform, opacity; }
.stage-photo-tilt { position: absolute; left: 0; top: 0; width: 1000px; height: 1000px; transform-origin: 50% 50%; }
.stage-photo img { position: relative; z-index: 1; width: 1000px; height: 1000px; max-width: none; display: block; filter: drop-shadow(0 40px 40px rgba(28,29,31,.18)); }
.stage-photo-shadow { position: absolute; left: 12%; right: 12%; bottom: -3%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(28,29,31,.35), rgba(28,29,31,0)); }
.stage-fallback .fb-inner { position: absolute; left: 0; top: 0; height: 1000px; transform-origin: 50% 50%; }
.stage-fallback svg { height: 1000px; width: auto; max-width: none; overflow: visible; }

/* ---------- Headline rise ---------- */
.rise .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.js .rise .line > span { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + var(--base, 0ms)); }
.js .rise.in .line > span { transform: none; }
.js .rise-fade, .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--base, 0ms); }
.js .rise-fade.in, .js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   1. HERO
   ========================================================= */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; }
.hero-numeral {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  font-weight: 200; font-size: min(118vh, 150vw); line-height: 1; letter-spacing: -0.08em;
  color: transparent; user-select: none; pointer-events: none;
  background: linear-gradient(180deg, #CFE2F2 8%, #DDEAF5 55%, rgba(238,245,250,0) 92%);
  -webkit-background-clip: text; background-clip: text;
  padding-top: 2vh;
}
@media (min-width: 1000px) and (orientation: landscape) { .hero-numeral { padding-left: 41vw; } }
.hero-top {
  position: absolute; top: calc(var(--head) + 14px); left: var(--pad); right: var(--pad);
  display: flex; justify-content: space-between;
  font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
}
.hero-bottom {
  position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(28px, 7vh, 76px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
}
.hero h1 { font-size: clamp(2.5rem, 4.5vw, 5.6rem); line-height: .9; letter-spacing: -0.058em; }
html[lang="es"] .hero h1 { font-size: clamp(2.3rem, 4.05vw, 5rem); }
.lede { max-width: 36ch; color: var(--ink-2); font-size: clamp(1.02rem, 1.35vw, 1.25rem); margin: 1.3rem 0 0; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; text-align: right; flex-shrink: 0; }
.ship { font-size: .84rem; color: var(--ink-2); margin: 0; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; color: var(--ink-2);
}
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--ink-2), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 1100px) { .scroll-cue { display: none; } }
@media (max-width: 700px) {
  .hero-numeral { font-size: min(96vh, 170vw); align-items: flex-start; padding-top: 6vh; }
  .hero-bottom { flex-direction: column; align-items: stretch; gap: 1.3rem; bottom: 26px; }
  .hero h1, html[lang="es"] .hero h1 { font-size: clamp(2.2rem, 10.4vw, 3.2rem); }
  .lede { font-size: .95rem; margin-top: .9rem; }
  .hero-cta { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
  .hero-top { font-size: .64rem; }
}

/* =========================================================
   Pinned sections (shared)
   ========================================================= */
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; z-index: 10; }
.pin-head { position: absolute; top: calc(var(--head) + 4vh); left: var(--pad); right: var(--pad); }
.pin-head h2 { font-size: clamp(2.2rem, 4.4vw, 4.4rem); }

/* =========================================================
   2. POSES
   ========================================================= */
.poses { position: relative; height: 580vh; }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; max-width: none; }
.leaders path { fill: none; stroke: var(--ink); stroke-width: 1; stroke-opacity: .5; }
.leaders .dot { stroke: var(--ink); stroke-width: 1.2; }
.leaders .halo { fill: none; stroke-width: 1; }
.leaders .end { fill: var(--ink); }

.spec-label { position: absolute; width: min(310px, 30vw); opacity: 0; will-change: opacity, transform; }
.spec-label .big { display: block; width: max-content; font-weight: 200; font-size: clamp(3.4rem, 6.2vw, 6.2rem); letter-spacing: -0.065em; line-height: .88; white-space: nowrap; }
.spec-label .unit { font-size: .3em; font-weight: 700; letter-spacing: -0.01em; margin-left: .25em; vertical-align: .9em; }
.spec-label strong { display: block; font-size: 1.06rem; font-weight: 800; letter-spacing: -0.02em; margin-top: .7rem; }
.spec-label p { margin: .3rem 0 0; color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.spec-label.side-right { right: var(--pad); top: 36%; }
.spec-label.side-left { left: var(--pad); top: 40%; }

.pose-progress { position: absolute; left: var(--pad); bottom: 5vh; display: flex; align-items: center; gap: .7rem; font-weight: 800; font-size: .8rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.pose-of { color: var(--ink-2); }
.pose-progress .bar { width: 140px; height: 2px; background: var(--line); position: relative; margin-left: .6rem; overflow: hidden; border-radius: 2px; }
.flow-now { display: flex; align-items: center; gap: .45rem; margin-left: 1.2rem; color: var(--ink-2); opacity: 0; transition: opacity .35s; white-space: nowrap; }
.flow-now.on { opacity: 1; }
.flow-now i { width: 8px; height: 8px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px var(--ice); }
.flow-now b { color: var(--ink); }
.flow-now em { font-style: normal; color: var(--ink); }
@media (max-width: 560px) { .pose-progress .bar { width: 56px; } .flow-now { margin-left: .4rem; font-size: .7rem; letter-spacing: .06em; } .flow-now .fw { display: none; } }
.pose-progress .bar i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--ice), var(--ember)); }

@media (max-width: 899px) {
  .spec-label { left: var(--pad) !important; right: var(--pad) !important; top: auto !important; bottom: calc(5vh + 46px); width: auto; }
  .spec-label .big { font-size: clamp(3rem, 11vw, 4.2rem); }
  .spec-label p { max-width: 40ch; }
}
@media (max-width: 899px) and (max-height: 700px) {
  .spec-label p { display: none; }
}

/* =========================================================
   NINE STAGES
   ========================================================= */
.stages { padding: 16vh var(--pad) 12vh; }
.stages-head { max-width: 48rem; margin-bottom: 6vh; }
.stages-head .body-lg { max-width: 42ch; }
.stage-key { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.stage-key li { display: flex; align-items: center; gap: .5rem; }
.stage-key i { width: 10px; height: 10px; border-radius: 50%; }
.k-filter { background: var(--ice); }
.k-mineral { background: #E8A66E; }
.k-polish { background: var(--ember); }

.stage-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.step {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 56px 1fr; align-items: start;
  background: rgba(255, 255, 255, .7); border-radius: 26px; padding: clamp(20px, 2.2vw, 30px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 24px 44px -34px rgba(28, 29, 31, .4);
  --base: calc(var(--n, 0) * 60ms);
}
.step::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--ice); }
.step[data-group="mineral"]::before { background: #E8A66E; }
.step[data-group="polish"]::before { background: var(--ember); }
.step-uv { grid-column: 1 / -1; background: var(--graphite); color: var(--white); grid-template-columns: 56px 1fr auto; column-gap: 1.2rem; align-items: center; }
.step-uv::before { background: linear-gradient(90deg, #8B5CF6, var(--ice)) !important; }
.step.step-uv .step-num { grid-column: 3; grid-row: 1 / span 2; font-size: clamp(2.2rem, 3vw, 3rem); color: #B9A6FF; }
.step.step-uv h3 { grid-column: 2; margin: 0 0 .3rem; color: #fff; }
.step.step-uv p { grid-column: 2; color: #C9CBCE; max-width: 60ch; }
.step.step-uv .media { grid-row: 1 / span 2; }
.media-uv { background: radial-gradient(circle at 50% 50%, #F3EDFF 0 12%, #B794FF 32%, #6D3FE0 62%, #2A1663 100%); box-shadow: 0 0 22px rgba(139, 92, 246, .55); }
@media (max-width: 639px) {
  .step-uv { grid-template-columns: 56px 1fr; }
  .step.step-uv .step-num { grid-column: 2; grid-row: 1; justify-self: end; }
  .step.step-uv h3, .step.step-uv p { grid-column: 1 / -1; }
  .step.step-uv h3 { margin-top: 1rem; }
}
.step-num { justify-self: end; font-weight: 200; font-size: clamp(2.6rem, 3.4vw, 3.6rem); letter-spacing: -0.06em; line-height: .8; font-variant-numeric: tabular-nums; }
.step h3 { grid-column: 1 / -1; font-size: 1.18rem; line-height: 1.15; letter-spacing: -0.02em; margin: 1.4rem 0 .45rem; }
.step p { grid-column: 1 / -1; margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.5; }

/* little swatches of each stage's filter media */
.media { width: 56px; height: 56px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 8px 16px -8px rgba(0, 0, 0, .45); }
.media-pp { background: repeating-linear-gradient(90deg, #f8f8f6 0 2px, #e4e4df 2px 4px); }
.media-pac { background: radial-gradient(circle at 35% 30%, #6a6a6a 0 14%, #1d1d1d 55%) 0 0 / 7px 7px, #1d1d1d; }
.media-cto { background: radial-gradient(circle, rgba(0, 0, 0, .18) 0 1px, transparent 1.6px) 0 0 / 6px 6px, linear-gradient(135deg, #bdbcb8, #8e8d89); }
.media-uf { background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 5px), linear-gradient(135deg, #efe8d8, #cdc2aa); }
.media-weak { background: radial-gradient(circle at 35% 30%, #ffffff 0 18%, #e9e6df 55%, #c4beb2 76%) 0 0 / 14px 14px, #d9d4c9; }
.media-medical { background: radial-gradient(circle at 35% 30%, #c99c70 0 16%, #7c5333 55%, #4c311c 76%) 0 0 / 12px 12px, #5a3b22; }
.media-fir { background: radial-gradient(circle at 35% 30%, #e7957a 0 16%, #a5452a 55%, #6a2a17 76%) 0 0 / 12px 12px, #7a311c; }
.media-tour { background: radial-gradient(circle at 35% 30%, #9a9da3 0 16%, #4b4e53 55%, #2b2d30 76%) 0 0 / 13px 13px, #37393d; }
.media-t33 { background: radial-gradient(circle at 35% 30%, #5d5d5d 0 14%, #191919 55%) 0 0 / 9px 9px, #191919; }

@media (max-width: 999px) { .stage-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) {
  .stage-grid { grid-template-columns: 1fr; }
  .step h3 { margin-top: 1rem; }
}

/* =========================================================
   VIDEO
   ========================================================= */
.video-sec { padding: 12vh var(--pad) 6vh; }
.video-head { max-width: 48rem; margin-bottom: 5vh; }
.video-card {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; max-width: 1240px;
  border-radius: clamp(20px, 2.4vw, 34px); background: #0b1a2e;
  box-shadow: 0 50px 90px -50px rgba(11, 40, 90, .55), 0 0 0 1px rgba(28, 29, 31, .06);
}
.video-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: .8rem; padding: .7rem 1.3rem .7rem .7rem; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(245, 248, 252, .86); color: var(--ink); font-weight: 800; font-size: 1rem;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .55); transition: transform .35s var(--ease), opacity .35s;
}
.video-play:hover { transform: translate(-50%, -50%) scale(1.04); }
.vp-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--ember); position: relative; box-shadow: 0 10px 24px -8px rgba(255, 106, 43, .8); }
.vp-icon::after { content: ''; position: absolute; left: 21px; top: 16px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.vp-time { font-weight: 600; color: var(--ink-2); font-size: .85rem; }
.video-card.playing .video-play { opacity: 0; pointer-events: none; }
@media (max-width: 560px) {
  .video-play { padding: .5rem 1rem .5rem .5rem; gap: .6rem; font-size: .9rem; }
  .vp-icon { width: 44px; height: 44px; }
  .vp-icon::after { left: 17px; top: 13px; border-width: 9px 0 9px 15px; }
  .vp-time { display: none; }
}

/* =========================================================
   WATER TEST
   ========================================================= */
.watertest { padding: 8vh clamp(10px, 3vw, 48px); }
.wt-panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 80px); align-items: center;
  padding: clamp(30px, 6vw, 96px); border-radius: clamp(26px, 3vw, 46px); color: #fff;
  background: radial-gradient(80% 90% at 85% 20%, rgba(107, 183, 255, .35), transparent 60%), linear-gradient(135deg, #0B2A55 0%, #143F7A 45%, #1F6FD6 100%);
  box-shadow: 0 50px 90px -50px rgba(11, 40, 90, .6);
}
.wt-panel .eyebrow { color: #A9CDF5; }
.wt-panel h2 { color: #fff; }
.wt-panel .body-lg { color: #D5E6FA; max-width: 34ch; }
.wt-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.4rem; margin: 2rem 0 1.6rem; }
.wt-btn { font-size: 1.08rem; padding: 1.1rem 1.8rem; }
.wt-link { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.wt-link:hover { color: #A9CDF5; }
.wt-stop { display: block; margin: 0; font-size: 1.05rem; color: #fff; }
.wt-stop b { color: #FF8A5C; }
.wt-dot { display: inline-block; vertical-align: middle; margin: -2px .55rem 0 0; width: 10px; height: 10px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 14px var(--ember); }

/* two drawn glasses */
.wt-glasses { display: flex; justify-content: center; align-items: flex-end; gap: clamp(18px, 3vw, 40px); }
.glass { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.glass figcaption { font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #A9CDF5; }
.glass-body {
  position: relative; width: clamp(90px, 11vw, 150px); aspect-ratio: 1 / 2.15;
  border-radius: 10px 10px 18px 18px / 6px 6px 18px 18px; overflow: hidden;
  background: linear-gradient(90deg, rgba(255,255,255,.28), rgba(255,255,255,.06) 30%, rgba(255,255,255,.02) 70%, rgba(255,255,255,.22));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.45), inset 0 -16px 0 rgba(255,255,255,.14), 0 30px 40px -24px rgba(0,0,0,.6);
}
.glass-body::after { content: ''; position: absolute; left: 14%; top: 6%; bottom: 10%; width: 9%; border-radius: 8px; background: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.08)); }
.water { position: absolute; left: 4px; right: 4px; bottom: 16px; top: 16%; border-radius: 0 0 14px 14px; overflow: hidden; }
.water::before { content: ''; position: absolute; left: -10%; right: -10%; top: -6px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.35); }
.glass-clean .water { background: linear-gradient(180deg, rgba(214, 238, 255, .75), rgba(160, 210, 250, .55)); }
.glass-dirty .water { background: linear-gradient(180deg, rgba(150, 128, 92, .82), rgba(96, 78, 52, .92)); }
.bubbles i, .specks i { position: absolute; display: block; border-radius: 50%; width: var(--s); height: var(--s); left: var(--x); }
.bubbles i { bottom: -10px; background: rgba(255,255,255,.85); box-shadow: inset -1px -1px 2px rgba(120,180,230,.6); }
.specks i { top: var(--y); background: rgba(52, 38, 22, .85); }
@media (prefers-reduced-motion: no-preference) {
  .bubbles i { animation: bubbleUp var(--d) linear infinite; animation-delay: var(--delay); }
  .specks i { animation: speckDrift var(--d) ease-in-out infinite alternate; animation-delay: var(--delay); }
}
@keyframes bubbleUp { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .9; } 100% { transform: translateY(-240px); opacity: 0; } }
@keyframes speckDrift { 0% { transform: translate(0, 0); } 100% { transform: translate(6px, 14px); } }
@media (max-width: 900px) {
  .wt-panel { grid-template-columns: 1fr; }
  .wt-glasses { order: -1; }
  .glass-body { width: clamp(80px, 24vw, 120px); }
}

/* =========================================================
   FREE WATER TEST
   ========================================================= */
.freetest { padding: 2vh clamp(10px, 3vw, 48px) 8vh; }
.ft-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 80px); align-items: center;
  padding: clamp(30px, 6vw, 96px); border-radius: clamp(26px, 3vw, 46px);
  background: radial-gradient(70% 90% at 100% 0%, rgba(107, 183, 255, .28), transparent 60%), #fff;
  box-shadow: 0 40px 80px -50px rgba(11, 40, 90, .45), inset 0 0 0 1px rgba(31, 111, 214, .12);
}
.ft-copy h2 { color: var(--ink); }
.ft-copy em { font-style: normal; color: var(--brand); font-weight: 800; }
.ft-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.4rem; margin-top: 2rem; }
.ft-btn { font-size: 1.12rem; padding: 1.15rem 1.9rem; }
@media (prefers-reduced-motion: no-preference) {
  .ft-btn { animation: ftPulse 2.8s ease-in-out infinite; }
}
@keyframes ftPulse {
  0%, 100% { box-shadow: 0 14px 34px -14px rgba(255,106,43,.75), 0 0 0 0 rgba(255,106,43,.35); }
  50% { box-shadow: 0 14px 34px -14px rgba(255,106,43,.75), 0 0 0 12px rgba(255,106,43,0); }
}
.ft-call { color: var(--ink-2); text-decoration: none; font-size: 1rem; }
.ft-call b { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--brand); }
.ft-call:hover b { color: var(--brand); }
.ft-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.ft-steps li { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.2rem 1.3rem; border-radius: 20px; background: var(--white); box-shadow: inset 0 0 0 1px rgba(31, 111, 214, .1); }
.ft-n { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(160deg, #6BB7FF, #1F6FD6); box-shadow: 0 8px 18px -8px rgba(31, 111, 214, .8); }
.ft-steps strong { display: block; font-size: 1.08rem; color: var(--ink); }
.ft-steps p { margin: .25rem 0 0; color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.ft-card { align-items: start; }
.ft-steps { margin-top: 2rem; }
.ft-alt { margin: 1.6rem 0 0; color: var(--ink-2); font-size: 1rem; }
.ft-alt a { color: var(--ink); font-weight: 800; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--brand); }
.ft-alt a:hover { color: var(--brand); }

/* the form */
.ft-formwrap { position: relative; padding: clamp(22px, 3vw, 40px); border-radius: 28px; background: var(--white); box-shadow: 0 30px 60px -40px rgba(11, 40, 90, .5), inset 0 0 0 1px rgba(31, 111, 214, .12); }
.ft-form { display: grid; gap: 1.05rem; }
.ft-form-title, .ft-done h3 { margin: 0 0 .3rem; font-size: clamp(1.25rem, 1.8vw, 1.55rem); letter-spacing: -0.03em; }
.ft-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.ft-field { display: grid; gap: .4rem; }
.ft-field label { font-weight: 700; font-size: .92rem; color: var(--ink); }
.ft-opt { font-weight: 500; color: var(--ink-2); }
.ft-field input, .ft-field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .9rem 1rem; border-radius: 14px; border: 0; background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(28, 29, 31, .14); transition: box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.ft-field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235F6167' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 1rem center; padding-right: 2.6rem; cursor: pointer; }
.ft-field input::placeholder { color: #9A9DA3; }
.ft-field input:focus, .ft-field select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 4px rgba(31, 111, 214, .15); }
.ft-err { display: none; font-size: .84rem; font-weight: 600; color: #C2412D; }
.ft-field.bad input { box-shadow: inset 0 0 0 2px #D9553F; }
.ft-field.bad .ft-err { display: block; }
.ft-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ft-submit { width: 100%; margin-top: .4rem; white-space: normal; text-align: center; }
.ft-submit[disabled] { opacity: .7; cursor: wait; animation: none; }
.ft-status { margin: 0; min-height: 1.2em; font-size: .92rem; font-weight: 600; color: var(--ink-2); text-align: center; }
.ft-status.is-error { color: #C2412D; }
.ft-done { text-align: center; padding: 2.5rem .5rem; outline: none; }
.ft-done p { color: var(--ink-2); max-width: 30ch; margin: .4rem auto 1.6rem; }
.ft-check { display: block; width: 72px; height: 72px; margin: 0 auto 1.2rem; border-radius: 50%; background: linear-gradient(160deg, #6BB7FF, #1F6FD6); position: relative; box-shadow: 0 14px 30px -12px rgba(31, 111, 214, .8); }
.ft-check::after { content: ''; position: absolute; left: 26px; top: 16px; width: 16px; height: 30px; border: solid #fff; border-width: 0 5px 5px 0; transform: rotate(45deg); }
@media (max-width: 900px) {
  .ft-card { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ft-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ft-btn { white-space: normal; text-align: center; width: 100%; }
}

/* =========================================================
   3. PHONE / ALERTS
   ========================================================= */
.alerts {
  padding: 18vh var(--pad) 16vh;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center;
}
.alerts-copy { order: 2; }
.alerts-copy .body-lg { margin-bottom: 1rem; }
.phone-wrap { position: relative; justify-self: center; order: 1; }
.phone {
  width: min(300px, 68vw); aspect-ratio: 9 / 19; border-radius: 48px; padding: 11px; position: relative;
  background: linear-gradient(145deg, #3a3c40, #141517 40%, #26282b);
  box-shadow: 0 70px 120px -50px rgba(28,29,31,.55), 0 30px 60px -30px rgba(28,29,31,.4), inset 0 0 0 1.5px rgba(255,255,255,.08);
}
.phone::before, .phone::after { content: ''; position: absolute; width: 3px; border-radius: 2px; background: #2c2e31; }
.phone::before { left: -3px; top: 22%; height: 9%; }
.phone::after { right: -3px; top: 28%; height: 14%; }
.screen {
  height: 100%; border-radius: 38px; overflow: hidden; position: relative; color: #fff; padding: 56px 12px 0;
  background:
    radial-gradient(90% 50% at 50% 100%, rgba(255,106,43,.45), transparent 70%),
    radial-gradient(120% 70% at 50% 0%, #A9D6FF 0%, #4C8EDB 42%, #173863 100%);
}
.island { position: absolute; top: 12px; left: 50%; width: 92px; height: 27px; background: #050505; border-radius: 20px; transform: translateX(-50%); }
.lock-date { text-align: center; font-weight: 700; font-size: .85rem; opacity: .9; margin: 0; }
.lock-time { text-align: center; font-weight: 200; font-size: 4.8rem; letter-spacing: -0.06em; line-height: 1; margin: 0 0 1.6rem; }
.home-bar { position: absolute; bottom: 9px; left: 50%; width: 110px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.75); transform: translateX(-50%); }
.note {
  background: rgba(250, 249, 247, .82); color: var(--ink); border-radius: 20px; padding: 11px 13px;
  display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start;
  font-size: .76rem; line-height: 1.38; margin-bottom: 8px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.note b { display: block; font-weight: 800; font-size: .8rem; }
.note .when { float: right; opacity: .5; font-size: .7rem; margin-left: .5rem; }
.app-ic { width: 34px; height: 34px; border-radius: 9px; display: block; }
.ic-cal { background: linear-gradient(#fff 0 32%, #fff 0) , #fff; box-shadow: inset 0 9px 0 var(--ember), inset 0 0 0 1px rgba(0,0,0,.08); }
.ic-rem { background: radial-gradient(circle at 30% 50%, var(--ice) 0 4px, transparent 5px), #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.ic-drop { background: linear-gradient(160deg, #8FCBFF, #1F6FD6); }
.ic-msg { background: linear-gradient(160deg, #6fe08a, #2cb54f); }
.float-note { position: absolute; width: min(270px, 64vw); margin: 0; z-index: 2; box-shadow: 0 30px 60px -24px rgba(28,29,31,.38), 0 0 0 1px rgba(28,29,31,.05); background: rgba(250,249,247,.94); will-change: transform; }
.fn-1 { top: 1%; left: -46%; }
.fn-2 { bottom: 16%; right: -50%; }
@media (max-width: 900px) {
  .alerts { grid-template-columns: 1fr; padding-top: 14vh; gap: 10vh; }
  .alerts-copy { order: 1; }
  .phone-wrap { order: 2; margin-bottom: 4vh; }
  .fn-1 { left: -14%; top: -5%; }
  .fn-2 { right: -14%; bottom: 0; }
}
@media (max-width: 480px) {
  .fn-1 { left: -6%; }
  .fn-2 { right: -6%; }
}

/* =========================================================
   4. SAVINGS
   ========================================================= */
.savings { padding: 8vh clamp(10px, 3vw, 48px); }
.panel {
  background: var(--graphite); color: var(--white);
  border-radius: clamp(26px, 3vw, 46px); padding: clamp(30px, 6vw, 96px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px);
  position: relative; overflow: hidden;
}
.panel::before {
  content: ''; position: absolute; inset: auto -20% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,106,43,.16), transparent 65%); pointer-events: none;
}
.panel::after {
  content: ''; position: absolute; inset: -50% auto auto -20%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(107,183,255,.14), transparent 65%); pointer-events: none;
}
.panel > * { position: relative; z-index: 1; }
.panel .eyebrow { color: var(--steel); }
.panel h2 { font-size: clamp(2.2rem, 4.2vw, 4.2rem); }
.pct {
  display: flex; align-items: flex-start; font-weight: 200; line-height: .8; letter-spacing: -0.08em;
  font-size: clamp(7rem, 18vw, 18rem); margin: 2rem 0 1rem; font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, #6BB7FF 0%, #A6B4F7 38%, #FF9B6E 72%, #FF6A2B 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pct-sign { font-size: .42em; margin-top: .12em; letter-spacing: -0.03em; }
.pct.pct-money { font-size: clamp(4rem, 9.5vw, 9.5rem); letter-spacing: -0.06em; padding-bottom: .08em; }
.pct-sub { color: #C9CBCE; max-width: 34ch; font-size: .95rem; }
.sum-title { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 .5rem; }
.summary .ship { margin-top: .9rem; }
.pct-cap { font-weight: 700; font-size: 1.05rem; margin: 0 0 .6rem; }
.pct-ph { font-size: .9rem; }
.mini-title { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); margin-bottom: 1.4rem; }
.ctrl { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; margin-bottom: 1.6rem; align-items: baseline; }
.ctrl label { font-weight: 600; color: #D9DADC; font-size: .95rem; }
.ctrl output { font-weight: 800; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.ctrl input { grid-column: 1 / -1; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --p: 30%; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ice), var(--ember)) 0 0 / var(--p) 100% no-repeat, rgba(255,255,255,.14); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.14); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ice), var(--ember)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--white); margin-top: -10px; box-shadow: 0 4px 14px rgba(0,0,0,.4), inset 0 0 0 6px var(--white), inset 0 0 0 12px var(--ember); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; border: 6px solid var(--white); background: var(--ember); box-shadow: 0 4px 14px rgba(0,0,0,.4); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.2rem 0; padding: 1.6rem 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.stat { display: block; font-weight: 200; font-size: clamp(1.9rem, 3.2vw, 3rem); letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-l { display: block; font-size: .78rem; color: var(--steel); margin-top: .5rem; font-weight: 600; }
.chart-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem; font-size: .76rem; font-weight: 700; color: var(--steel); margin-bottom: 1rem; }
.keys { display: flex; gap: 1rem; flex-wrap: wrap; }
.keys span { display: flex; align-items: center; gap: .4rem; }
.keys i { width: 10px; height: 10px; border-radius: 3px; }
.keys em { font-style: normal; opacity: .75; }
.k-bottle { background: var(--ember); }
.k-pur { background: var(--ice); }
.years { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 1.6vw, 20px); height: 190px; align-items: end; }
.yr { display: grid; grid-template-rows: 1fr auto; height: 100%; }
.yr-bars { display: flex; align-items: flex-end; gap: 4px; height: 100%; }
.b { flex: 1; border-radius: 6px 6px 2px 2px; height: 0; transition: height 1s var(--ease); position: relative; }
.b-bottle { background: linear-gradient(180deg, #FF9566, var(--ember)); }
.b-pur { background: linear-gradient(180deg, #A9D6FF, var(--ice)); }
.b-pur.unknown { background: transparent; border: 1.5px dashed rgba(168,172,177,.55); border-bottom: 0; }
.yr-l { font-size: .72rem; color: var(--steel); text-align: center; margin-top: .5rem; font-weight: 700; }
@media (max-width: 900px) {
  .panel { grid-template-columns: 1fr; }
  .pct { font-size: clamp(6rem, 34vw, 12rem); }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:last-child { grid-column: 1 / -1; }
}

/* =========================================================
   5. MATERIALS
   ========================================================= */
.materials { position: relative; height: 210vh; }
.mat-copy { position: absolute; left: var(--pad); top: calc(var(--head) + 7vh); max-width: 31rem; }
.mat-lede { margin-bottom: 1.6rem; }
.mat-list { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.mat-list li { display: flex; justify-content: space-between; gap: 1.2rem; padding: .7rem 0; border-top: 1px solid var(--line); font-size: .95rem; }
.mat-list li span { color: var(--ink-2); }
.mat-list li b { font-weight: 800; text-align: right; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; font-weight: 800; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .9rem; }
.swatches { display: flex; gap: 1.1rem; }
.sw { display: flex; flex-direction: column; align-items: center; gap: .45rem; cursor: pointer; font-size: .76rem; font-weight: 800; }
.sw input, .pill input { position: absolute; opacity: 0; pointer-events: none; }
.chip { width: 46px; height: 46px; border-radius: 50%; display: block; transition: box-shadow .3s var(--ease), transform .3s var(--ease); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.chip-steel { background: conic-gradient(from 30deg, #8d9196, #eef0f2, #a4a8ad, #f6f7f8, #8d9196, #d5d8db, #8d9196); }
.chip-graphite { background: conic-gradient(from 30deg, #1f2023, #55585d, #26282b, #6a6d72, #1f2023, #45474b, #1f2023); }
.chip-linen { background: radial-gradient(circle at 35% 30%, #fbf9f5, #e6dfd3 60%, #cfc6b7); }
.sw input:checked + .chip, .pill input:checked + .chip { box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 0 0 3px var(--white), 0 0 0 5px var(--ember); }
.sw input:focus-visible + .chip, .pill input:focus-visible + .chip { outline: 2px solid var(--ember); outline-offset: 6px; }
.sw:hover .chip { transform: scale(1.06); }
@media (max-width: 1099px) and (orientation: portrait), (max-width: 999px) {
  .mat-copy { right: var(--pad); max-width: 34rem; top: calc(var(--head) + 3vh); }
  .materials h2 { font-size: clamp(2rem, 8.4vw, 3.6rem); margin-bottom: 1rem; }
  .mat-lede { font-size: .95rem; margin-bottom: 1rem; }
  .mat-list { margin-bottom: 1.1rem; }
  .mat-list li { padding: .45rem 0; font-size: .86rem; }
  .finish-picker .fine { margin-top: .6rem; }
}
@media (max-width: 700px) and (max-height: 760px) { .mat-list { display: none; } }

/* =========================================================
   6. SPECS
   ========================================================= */
.specs { padding: 16vh var(--pad) 12vh; display: grid; grid-template-columns: 1fr 1.05fr; gap: 6vw; align-items: start; background: var(--white); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.spec-table th { text-align: left; font-weight: 600; color: var(--ink-2); padding: 1rem 1.2rem 1rem 0; border-top: 1px solid var(--line); width: 42%; vertical-align: top; }
.spec-table td { font-weight: 800; padding: 1rem 0; border-top: 1px solid var(--line); letter-spacing: -0.012em; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 1px solid var(--line); }
.drawing { position: sticky; top: calc(var(--head) + 4vh); margin: 0; background: var(--linen); border-radius: 28px; padding: clamp(16px, 2.4vw, 32px); }
.drawing svg { width: 100%; height: auto; }
.drawing .ln { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease); transition-delay: var(--d, 0s); }
.drawing .ln.thin { stroke-width: .8; stroke-opacity: .7; }
.drawing .ln.dim { stroke: var(--ember); stroke-width: .9; }
.drawing .ctr { fill: none; stroke: var(--ice); stroke-width: .8; stroke-dasharray: 10 4 2 4; opacity: 0; transition: opacity 1s .9s; }
.drawing text { font-family: inherit; font-size: 10px; font-weight: 800; letter-spacing: .1em; fill: var(--ink-2); opacity: 0; transition: opacity .8s; transition-delay: var(--d, 0s); }
.drawing text.tb { font-size: 9px; }
.drawing.drawn .ln { stroke-dashoffset: 0; }
.drawing.drawn .ctr, .drawing.drawn text { opacity: 1; }
.drawing figcaption { margin: .6rem .2rem 0; }
@media (max-width: 900px) {
  .specs { grid-template-columns: 1fr; }
  .drawing { position: relative; top: 0; }
}

/* =========================================================
   7. PREORDER + FAQ
   ========================================================= */
.preorder { padding: 10vh var(--pad) 14vh; }
[hidden] { display: none !important; }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: center; min-height: 92vh; }
.model-slot { height: 74vh; position: relative; display: flex; flex-direction: column; }
.model-shot { position: relative; flex: 1; margin: 0 0 1rem; }
.model-shot .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: translateY(14px) scale(.97);
  transition: opacity .6s var(--ease), transform .8s var(--ease); filter: drop-shadow(0 34px 34px rgba(28, 29, 31, .2)); }
.model-slot[data-model="std"] .shot-std, .model-slot[data-model="uv"] .shot-uv { opacity: 1; transform: none; }
.model-shot::after { content: ''; position: absolute; left: 18%; right: 18%; bottom: -2%; height: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(28, 29, 31, .3), rgba(28, 29, 31, 0)); }
@media (prefers-reduced-motion: no-preference) { .model-shot { animation: shotFloat 6s ease-in-out infinite; } }
@keyframes shotFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.pill.pill-model { padding: .35rem 1rem .35rem .35rem; }
.pill-model img { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; background: var(--white); padding: 3px; }
.slot-cap { text-align: center; font-size: .84rem; color: var(--ink-2); margin: 0; }
.slot-cap b { color: var(--ink); }
.order-card { background: var(--linen); border-radius: 34px; padding: clamp(26px, 4vw, 56px); }
.order-card h2 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); margin-bottom: 1rem; }
.order-card .body-lg { margin-bottom: 2rem; }
.opt { margin-bottom: 1.6rem; }
.pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill { position: relative; display: flex; align-items: center; gap: .6rem; padding: .45rem 1rem .45rem .45rem; border-radius: 99px; background: var(--white); cursor: pointer; font-weight: 700; font-size: .9rem; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s; }
.pill .chip { width: 30px; height: 30px; }
.pill.pill-text { padding: .7rem 1.15rem; }
.pill:has(input:checked) { box-shadow: inset 0 0 0 2px var(--graphite); }
.pill input:checked + .chip { box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.opt-grid { display: grid; grid-template-columns: auto 1fr; gap: 2rem; }
.stepper { display: inline-flex; align-items: center; background: var(--white); border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); }
.stepper button { width: 46px; height: 46px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; border-radius: 50%; }
.stepper button:hover { background: rgba(28,29,31,.06); }
.stepper output { min-width: 2.2rem; text-align: center; font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.check { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; font-weight: 700; font-size: .92rem; line-height: 1.35; }
.check input { position: absolute; opacity: 0; }
.check .box { width: 22px; height: 22px; border-radius: 7px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--steel); flex-shrink: 0; position: relative; transition: background-color .2s; }
.check input:checked + .box { background: var(--ember); box-shadow: none; }
.check input:checked + .box::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.check input:focus-visible + .box { outline: 2px solid var(--ember); outline-offset: 3px; }
.check small { display: block; font-weight: 600; margin-top: .3rem; }
.summary { border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: .4rem; }
.sum-line { display: flex; justify-content: space-between; gap: 1rem; font-size: .94rem; padding: .3rem 0; color: var(--ink-2); }
.sum-line span:last-child { font-weight: 800; color: var(--ink); text-align: right; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: .8rem 0 .6rem; padding-top: .9rem; border-top: 1px solid var(--line); font-weight: 800; }
.total-num { font-weight: 200; font-size: clamp(2.8rem, 5vw, 4.2rem); letter-spacing: -0.06em; line-height: 1; font-variant-numeric: tabular-nums; }
@media (max-width: 999px) {
  .order-grid { grid-template-columns: 1fr; min-height: 0; gap: 2rem; }
  .model-slot { height: min(46vh, 420px); }
}
@media (max-width: 480px) { .opt-grid { grid-template-columns: 1fr; gap: 0; } }

.faq { margin-top: 14vh; display: grid; grid-template-columns: .8fr 1.2fr; gap: 5vw; align-items: start; }
.faq-head { position: sticky; top: calc(var(--head) + 4vh); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; font-weight: 800; font-size: clamp(1.05rem, 1.5vw, 1.25rem); letter-spacing: -0.02em; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.35rem 0; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; width: 14px; height: 14px; flex-shrink: 0; background: linear-gradient(var(--ink), var(--ink)) center / 100% 1.6px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.6px 100% no-repeat; transition: transform .35s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--ink-2); margin: -.4rem 0 1.4rem; max-width: 60ch; }
@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; gap: 1rem; }
  .faq-head { position: static; }
}

/* =========================================================
   8. FOOTER
   ========================================================= */
.site-foot { background: var(--graphite); color: var(--white); padding: 14vh var(--pad) 4vh; overflow: hidden; }
.foot-name {
  font-weight: 800; font-size: clamp(3rem, 12.6vw, 15rem); letter-spacing: -0.068em; line-height: .86; white-space: nowrap;
  margin: 0 0 9vh -.04em; padding-bottom: .06em;
  /* water flowing inside the letters (seamless mirrored strip, tinted light blue) */
  background-image: url("../photos/water-band.jpg");
  background-color: #9fd3ff;
  background-blend-mode: multiply;
  background-size: 11em 135%;
  background-repeat: repeat-x;
  background-position: 0 50%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px rgba(159, 211, 255, .28);
  filter: drop-shadow(0 0 24px rgba(107, 183, 255, .22));
}
@media (prefers-reduced-motion: no-preference) {
  .foot-name { animation: waterFlow 16s linear infinite; }
}
.site-foot .foot-name { color: transparent; } /* beats the footer paragraph color, so the water shows */
.foot-name { position: relative; }
/* live water (js/water-text.js) replaces the sliding image when the browser supports it */
.foot-name.has-water { background: none; animation: none; -webkit-text-stroke: 0; filter: none; }
.foot-water { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 0 22px rgba(107, 183, 255, .25)); }
@keyframes waterFlow {
  0%   { background-position: 0 50%; }
  25%  { background-position: -2.75em 30%; }
  50%  { background-position: -5.5em 55%; }
  75%  { background-position: -8.25em 70%; }
  100% { background-position: -11em 50%; }
}
.foot-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr auto; gap: 3rem; padding-bottom: 6vh; border-bottom: 1px solid rgba(255,255,255,.12); }
.foot-l { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); margin-bottom: .7rem; }
.foot-big { font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 800; letter-spacing: -0.03em; text-decoration: none; margin: 0; display: block; }
.site-foot p { color: #C9CBCE; }
.site-foot .foot-big { color: var(--white); }
.foot-links { display: flex; flex-direction: column; gap: .5rem; }
.foot-links a { text-decoration: none; font-weight: 700; opacity: .7; }
.foot-links a:hover { opacity: 1; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 2rem; font-size: .8rem; color: var(--steel); }
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
  .foot-links { flex-direction: row; flex-wrap: wrap; gap: 1rem; }
}

/* =========================================================
   Calm motion for people who turn animations off
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .js .rise .line > span { transform: none; opacity: 0; transition: opacity .6s ease; }
  .js .rise.in .line > span { opacity: 1; }
  .js .rise-fade, .js .reveal { transform: none; transition: opacity .6s ease; }
  .scroll-cue i { animation: none; }
  .drawing .ln { transition: stroke-dashoffset .01s; }
  .b { transition: none; }
  .btn:hover { transform: none; }
}
