/* ============================================================
   ONOSONIC DX-1 — "Sonic Energy" design system
   Pure white base · flowing electric-blue energy · chrome/silver
   ============================================================ */

:root {
  --white: #ffffff;
  --pearl: #f7fafd;
  --pearl-2: #eff5fb;
  --silver: #ccd6e0;
  --chrome: #a8b6c4;
  --gray: #556478;
  --ink: #071018;
  --blue: #009dff;
  --blue-deep: #0068d6;
  --blue-glow: #3fc0ff;
  --cyan: #7fe1ff;
  --red: #e8402a;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --nav-h: 72px;
  --radius: 20px;
  --shadow-soft: 0 20px 60px rgba(7, 40, 80, 0.08);
  --shadow-card: 0 30px 90px rgba(7, 40, 80, 0.12);
  --glow-blue: 0 0 40px rgba(63, 192, 255, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* see note at end of file — `hidden` here breaks sticky pins */
}

img, video, canvas { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Gradient + sweep text ---------- */
.grad {
  background: linear-gradient(92deg, var(--ink) 0%, var(--blue-deep) 55%, var(--blue-glow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sweep {
  background: linear-gradient(100deg, var(--ink) 40%, var(--blue) 50%, var(--ink) 60%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sweep.is-inview { animation: sweep 1.6s ease forwards; }
@keyframes sweep { to { background-position: 0% 0; } }

/* ---------- Energy spine ---------- */
.spine {
  position: fixed;
  top: 0; bottom: 0;
  left: max(calc((100vw - 96rem) / 2 + 1rem), 18px);
  width: 2px;
  z-index: 5;
  pointer-events: none;
}
.spine__track { position: absolute; inset: 0; background: rgba(168, 182, 196, 0.18); }
.spine__flow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(180deg, rgba(63,192,255,0) 0%, var(--blue) 70%, var(--cyan) 100%);
  box-shadow: 0 0 12px rgba(63, 192, 255, 0.7);
}
.spine__orb {
  position: absolute;
  left: 50%; top: 0;
  width: 10px; height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px 4px rgba(63, 192, 255, 0.8);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 1.05em 1.9em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 125, 224, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(0, 157, 255, 0.5); }
.btn--glow::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: btnsheen 3.2s ease-in-out infinite;
}
@keyframes btnsheen {
  0%, 55% { left: -80%; }
  75%, 100% { left: 130%; }
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--silver);
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); box-shadow: var(--glow-blue); }
.btn--xl { font-size: 1.15rem; padding: 1.2em 2.4em; }
.btn__price {
  font-weight: 500;
  font-size: 0.82em;
  opacity: 0.85;
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  padding-left: 0.7em;
}

.section-cta { display: flex; justify-content: center; padding: 3.5rem 1.5rem 5rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  z-index: 100;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(168, 182, 196, 0.22);
}
.nav__logo { display: flex; flex-direction: column; line-height: 1.15; }
.nav__logo-mark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 1.05rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0.12em 0.45em;
}
.nav__logo-sub { font-size: 0.62rem; letter-spacing: 0.22em; color: var(--gray); margin-top: 3px; }
.nav__links { display: flex; gap: 2rem; font-size: 0.92rem; font-weight: 500; color: var(--gray); }
.nav__links a:hover { color: var(--blue); }
.nav__cta { font-size: 0.9rem; padding: 0.85em 1.5em; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 400vh; }
.hero__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(90% 80% at 70% 45%, rgba(127, 225, 255, 0.14) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(120% 100% at 50% 0%, #ffffff 0%, var(--pearl) 60%, var(--pearl-2) 100%);
}
.hero__energy { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__fallback, .hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__fallback { object-fit: contain; z-index: 1; }
.hero__canvas { z-index: 2; }
.hero__content {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 clamp(1.5rem, 6vw, 7rem);
  max-width: 50rem;
}
.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.hero__title {
  font-size: clamp(2.6rem, 6.2vw, 5.2rem);
  font-weight: 700;
  line-height: 1.02;
  margin-bottom: 1.4rem;
}
.hero__title span { display: block; }
.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--gray);
  margin-bottom: 2rem;
  max-width: 32rem;
  line-height: 1.65;
}
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.hero__chips { list-style: none; display: flex; gap: 0.7rem; flex-wrap: wrap; }
.hero__chips li {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 157, 255, 0.25);
  border-radius: 999px;
  padding: 0.45em 1em;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 18px rgba(63, 192, 255, 0.12);
}
/* Holographic feature panel: chips materialize one by one, stacked in
   the top-right corner like a heads-up display */
.hero__holo {
  position: absolute;
  top: calc(var(--nav-h) + 3vh);
  right: clamp(1rem, 3.5vw, 3.5rem);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between; /* chips spread evenly down the frame */
  pointer-events: none;
}
.holo-chip {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.7rem, 1vw, 0.92rem);
  letter-spacing: 0.04em;
  color: #06496e;
  background: linear-gradient(135deg, rgba(190, 232, 255, 0.4), rgba(120, 205, 255, 0.22));
  border: 1px solid rgba(63, 192, 255, 0.65);
  border-radius: 12px;
  padding: 0.6em 1.1em 0.6em 1.9em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    0 0 18px rgba(63, 192, 255, 0.35),
    inset 0 0 14px rgba(127, 225, 255, 0.25);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(60px) scale(0.9);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.holo-chip::before {
  content: "";
  position: absolute;
  left: 0.75em;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--blue-glow);
  box-shadow: 0 0 10px 2px rgba(63, 192, 255, 0.9);
}
.holo-chip.is-on {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.hero__scrollhint {
  position: absolute;
  z-index: 3;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray);
}
.hero__scrollline {
  width: 1px; height: 44px;
  background: linear-gradient(var(--blue), transparent);
  animation: scrollpulse 1.8s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* ---------- Stats strip ---------- */
.stats {
  position: relative;
  background: linear-gradient(180deg, var(--pearl-2) 0%, var(--white) 100%);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 7rem);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  max-width: 80rem;
  margin: 0 auto;
}
.stat-tile {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 157, 255, 0.18);
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(7, 40, 80, 0.06), inset 0 0 30px rgba(127, 225, 255, 0.06);
}
.stat-tile__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 3rem);
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-tile__label { font-size: 0.85rem; color: var(--gray); margin-top: 0.3rem; display: block; }

/* ---------- Story (pinned) ---------- */
.story { background: var(--white); position: relative; }
.story__pin {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  padding: calc(var(--nav-h) + 3rem) clamp(1.5rem, 6vw, 7rem) 4rem;
  max-width: 92rem;
  margin: 0 auto;
}
.story__title {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.6rem;
}
.story__sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--gray);
  max-width: 30rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}
.story__figure { position: relative; }
.story__halo {
  position: absolute;
  inset: -12%;
  background: radial-gradient(50% 50% at 50% 55%, rgba(63, 192, 255, 0.25), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.story__img {
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  width: 100%;
}

/* ---------- Macro (scrub video, pinned) — light energy theme ---------- */
.macro { position: relative; height: 400vh; background: var(--pearl); }
.macro__pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.macro__video {
  position: absolute;
  left: 0; right: 0;
  top: var(--nav-h); /* keep the frame clear of the fixed nav */
  height: calc(100% - var(--nav-h));
  width: 100%;
  /* contain: the full product is always visible; letterbox areas blend
     into the matched section background below */
  object-fit: contain;
}
.macro__pin { background: linear-gradient(180deg, #f6f9fc 0%, #eef2f7 100%); }
.macro__overlay { position: absolute; inset: 0; pointer-events: none; }
.macro__title {
  position: absolute;
  top: calc(var(--nav-h) + 3vh);
  left: clamp(1.5rem, 6vw, 7rem);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.1;
  color: var(--ink);
  text-shadow: 0 2px 30px rgba(255, 255, 255, 0.9);
}
.macro__callouts { list-style: none; }
.macro__callout {
  position: absolute;
  left: clamp(1.5rem, 6vw, 7rem);
  bottom: 12vh;
  max-width: 22rem;
  font-size: clamp(1rem, 1.9vw, 1.4rem);
  font-weight: 500;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 157, 255, 0.3);
  border-left: 3px solid var(--blue);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  box-shadow: 0 12px 40px rgba(7, 40, 80, 0.10), 0 0 30px rgba(63, 192, 255, 0.15);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.macro__callout strong { color: var(--blue-deep); font-family: var(--font-display); }
.macro__callout.is-on { opacity: 1; transform: translateY(0); }

/* ---------- Whitening before/after ---------- */
.white {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 6vw, 7rem);
  max-width: 96rem;
  margin: 0 auto;
  background: var(--white);
}
.white__title { font-size: clamp(2.2rem, 4.6vw, 3.8rem); margin-bottom: 1.2rem; }
.white__sub { color: var(--gray); line-height: 1.75; max-width: 28rem; margin-bottom: 1rem; }
.white__note { font-size: 0.8rem; color: var(--chrome); margin-bottom: 1.8rem; }
.ba {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  user-select: none;
  touch-action: none;
}
.ba img { width: 100%; pointer-events: none; }
.ba__before-wrap {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
}
.ba__before {
  width: auto;
  height: 100%;
  max-width: none;
}
.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 44px;
  margin-left: -22px;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ba__handle-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 14px rgba(63, 192, 255, 0.9);
}
.ba__handle-knob {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue-deep);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(7, 40, 80, 0.25), 0 0 20px rgba(63, 192, 255, 0.5);
}
.ba__tag {
  position: absolute;
  bottom: 1rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 0.4em 1em;
  color: var(--ink);
}
.ba__tag--before { left: 1rem; }
.ba__tag--after { right: 1rem; color: var(--blue-deep); }

/* ---------- Modes ---------- */
.modes {
  background: linear-gradient(180deg, var(--white) 0%, var(--pearl) 100%);
  padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 6vw, 7rem) 0;
}
.modes__title {
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  text-align: center;
  margin-bottom: 0.8rem;
}
.modes__sub { text-align: center; color: var(--gray); margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.modes__layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  max-width: 80rem;
  margin: 0 auto;
}
.modes__figure { position: relative; margin: 0 auto; width: 100%; max-width: 30rem; container-type: inline-size; }
.modes__halo {
  position: absolute;
  inset: -15%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(63, 192, 255, 0.22), transparent 70%);
  filter: blur(24px);
}
.modes__img { position: relative; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.modes__panel { position: absolute; inset: 0; pointer-events: none; }
/* The active mode's printed label "lights up": a matching white glowing
   label is drawn exactly on top of the printed text on the panel. */
.modes__panel-item {
  position: absolute;
  left: 40%;
  width: 20%;
  height: 4.2%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 3.0cqw;
  letter-spacing: 0;
  color: transparent;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
/* Positions + panel colors measured from the actual panel-hd.jpg pixels.
   --patch matches the brushed-silver shade at that label's row, so when lit
   it covers the printed dark text and only the glowing word shows. */
.modes__panel-item[data-mode="white"] { top: 43.8%; --patch: rgb(213, 214, 212); }
.modes__panel-item[data-mode="clean"] { top: 48.7%; --patch: rgb(212, 214, 211); }
.modes__panel-item[data-mode="polish"] { top: 53.5%; --patch: rgb(210, 212, 210); }
.modes__panel-item[data-mode="gum"] { top: 58.4%; --patch: rgb(190, 191, 190); }
.modes__panel-item[data-mode="sensitive"] { top: 63.0%; --patch: rgb(184, 186, 184); }
.modes__panel-item.is-lit {
  color: #ffffff;
  background: var(--patch);
  border-radius: 999px;
  box-shadow: 0 0 10px 4px var(--patch);
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.9),
    0 0 5px rgba(255, 255, 255, 0.75);
}

/* Bright, even red charging indicator drawn over the photo's red ring */
.modes__redring {
  position: absolute;
  top: 72.2%;
  left: 50.2%;
  width: 6.7%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 0.62cqw solid #ff3b2a;
  box-shadow:
    0 0 6px rgba(255, 59, 42, 0.9),
    0 0 16px rgba(255, 59, 42, 0.55),
    inset 0 0 5px rgba(255, 59, 42, 0.8);
  pointer-events: none;
}
.modes__list { display: flex; flex-direction: column; gap: 0.8rem; }
.mode {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: left;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(168, 182, 196, 0.35);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.mode:hover { border-color: var(--blue); }
.mode.is-active {
  border-color: var(--blue);
  box-shadow: 0 12px 36px rgba(0, 157, 255, 0.2), 0 0 24px rgba(63, 192, 255, 0.2);
  transform: translateX(6px);
  background: #fff;
}
.mode__name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.mode.is-active .mode__name { color: var(--blue-deep); }
.mode__desc { font-size: 0.9rem; color: var(--gray); }

/* ---------- Engine (assembly scrub, pinned) ---------- */
.engine { position: relative; height: 450vh; background: var(--pearl-2); }
.engine__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.engine__video {
  position: absolute;
  left: 0; right: 0;
  top: var(--nav-h);
  height: calc(100% - var(--nav-h));
  width: 100%;
  object-fit: contain;
}
.engine__pin { background: linear-gradient(180deg, #f6f9fc 0%, #eef2f7 100%); }
.engine__overlay { position: absolute; inset: 0; pointer-events: none; }
.engine__title {
  position: absolute;
  top: calc(var(--nav-h) + 3vh);
  right: clamp(1.5rem, 6vw, 7rem);
  text-align: right;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.1;
  color: var(--ink);
  text-shadow: 0 2px 30px rgba(255, 255, 255, 0.9);
}
.engine__callouts { list-style: none; }
.engine__callouts li {
  position: absolute;
  right: clamp(1.5rem, 6vw, 7rem);
  bottom: 12vh;
  max-width: 24rem;
  text-align: right;
  font-size: clamp(1rem, 1.9vw, 1.35rem);
  font-weight: 500;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 157, 255, 0.3);
  border-right: 3px solid var(--blue);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  box-shadow: 0 12px 40px rgba(7, 40, 80, 0.10), 0 0 30px rgba(63, 192, 255, 0.15);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.engine__callouts li.is-on { opacity: 1; transform: translateY(0); }

/* ---------- Waterproof break ---------- */
.wet {
  position: relative;
  /* Match the 16:9 background image on wide screens so cover-fit never
     crops the brush head; min-height keeps presence on narrow screens
     (where cover only trims the sides, which are safe). */
  aspect-ratio: 16 / 9;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.wet__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wet__content {
  position: relative;
  padding: 4rem clamp(1.5rem, 6vw, 7rem);
  color: var(--ink);
}
.wet__title {
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.9);
}
.wet__sub {
  color: var(--gray);
  max-width: 26rem;
  text-shadow: 0 1px 16px rgba(255, 255, 255, 0.9);
}

/* ---------- Travel ---------- */
.travel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 6vw, 7rem);
  background: var(--white);
  max-width: 96rem;
  margin: 0 auto;
}
.travel__media { position: relative; }
.travel__halo {
  position: absolute;
  inset: -10%;
  background: radial-gradient(50% 50% at 50% 55%, rgba(63, 192, 255, 0.2), transparent 70%);
  filter: blur(26px);
}
.travel__video { position: relative; border-radius: var(--radius); box-shadow: var(--shadow-card); width: 100%; }
.travel__title { font-size: clamp(2rem, 4.4vw, 3.6rem); margin-bottom: 1.2rem; }
.travel__sub { color: var(--gray); font-size: 1.02rem; line-height: 1.75; margin-bottom: 1.8rem; max-width: 27rem; }
.travel__features { list-style: none; margin-bottom: 2.2rem; display: grid; gap: 0.7rem; }
.travel__features li { position: relative; padding-left: 1.6rem; font-size: 0.98rem; }
.travel__features li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(63, 192, 255, 0.85);
}

/* ---------- Included ---------- */
.included {
  background: linear-gradient(180deg, var(--pearl) 0%, var(--white) 100%);
  padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 6vw, 7rem);
  text-align: center;
}
.included__title { font-size: clamp(2rem, 4.4vw, 3.6rem); margin-bottom: 0.6rem; }
.included__sub { color: var(--gray); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.included__figure { max-width: 52rem; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.included__img { border-radius: var(--radius); box-shadow: var(--shadow-card); }
.included__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1rem;
  max-width: 50rem;
  margin: 0 auto;
}
.included__list li {
  background: #fff;
  border: 1px solid rgba(0, 157, 255, 0.22);
  border-radius: 999px;
  padding: 0.6em 1.3em;
  font-size: 0.92rem;
  box-shadow: var(--shadow-soft);
}

/* ---------- Specs ---------- */
.specs { padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 6vw, 7rem); max-width: 80rem; margin: 0 auto; }
.specs__title { font-size: clamp(2rem, 4.4vw, 3.6rem); margin-bottom: clamp(2rem, 5vw, 4rem); text-align: center; }
.specs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: rgba(168, 182, 196, 0.3);
  border: 1px solid rgba(168, 182, 196, 0.3);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec { background: var(--white); padding: 1.8rem 1.6rem; transition: background 0.3s ease; }
.spec:hover { background: var(--pearl); }
.spec dt { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray); margin-bottom: 0.5rem; }
.spec dd { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; }

/* ---------- Buy ---------- */
.buy {
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(127, 225, 255, 0.12) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, var(--white) 0%, var(--pearl-2) 100%);
  padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 6vw, 7rem) clamp(5rem, 10vw, 9rem);
}
.buy__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  background: #fff;
  border: 1px solid rgba(0, 157, 255, 0.15);
  border-radius: 26px;
  box-shadow: var(--shadow-card), 0 0 60px rgba(63, 192, 255, 0.12);
  overflow: hidden;
  max-width: 76rem;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
}
.buy__media img { width: 100%; height: 100%; object-fit: cover; }
/* contain, not cover: the film is 16:9 and the card column is squarer, so
   cover would crop the brush head. The clip's marble/white background blends
   with the card, so the letterbox is invisible. */
.buy__media { background: #fff; }
.buy__video { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.buy__info { padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 3vw, 3rem) clamp(2rem, 4vw, 4rem) 0; }
.buy__title { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: 0.9rem; }
.buy__sub { color: var(--gray); margin-bottom: 1.6rem; line-height: 1.65; }
.buy__price { display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.buy__price-now { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; }
.buy__price-was { color: var(--chrome); text-decoration: line-through; font-size: 1.15rem; }
.buy__stock {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0a8a4a;
  background: rgba(10, 138, 74, 0.1);
  border-radius: 999px;
  padding: 0.35em 0.9em;
}
.buy__promo { font-size: 0.9rem; color: var(--gray); margin-bottom: 1.8rem; }
.buy__assurance { list-style: none; margin-top: 1.6rem; display: grid; gap: 0.5rem; font-size: 0.88rem; color: var(--gray); }
.buy__assurance li { position: relative; padding-left: 1.4rem; }
.buy__assurance li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* FAQ */
.faq { max-width: 46rem; margin: 0 auto; }
.faq__title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1.4rem; }
.faq__item {
  background: #fff;
  border: 1px solid rgba(168, 182, 196, 0.32);
  border-radius: 14px;
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq__item[open] { border-color: rgba(0, 157, 255, 0.4); box-shadow: 0 8px 30px rgba(63, 192, 255, 0.12); }
.faq__item summary {
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  font-family: var(--font-display);
  list-style: none;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  font-size: 1.3rem;
  font-weight: 500;
  transition: transform 0.25s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 1.4rem 1.2rem; color: var(--gray); line-height: 1.65; font-size: 0.95rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.footer__logo {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.16em;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  padding: 0.15em 0.5em;
}
.footer__sub { font-size: 0.68rem; letter-spacing: 0.24em; opacity: 0.6; }
.footer__copy { font-size: 0.75rem; opacity: 0.45; margin-top: 1rem; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-display);
  box-shadow: 0 14px 40px rgba(0, 157, 255, 0.5);
  transform: translateY(120%);
  transition: transform 0.35s ease;
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta__label { font-weight: 700; font-size: 1.05rem; }
.mobile-cta__price { font-size: 0.8rem; opacity: 0.9; }

/* ---------- Reveal helpers ---------- */
.reveal { opacity: 0; transform: translateY(30px); }
html.no-motion .reveal { opacity: 1; transform: none; }
html.no-motion .sweep { background-position: 0 0; color: var(--ink); -webkit-text-fill-color: currentColor; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .spine { display: none; }
  .nav__links { display: none; }
  .story__pin, .modes__layout, .travel, .buy__card, .white { grid-template-columns: 1fr; }
  .buy__info { padding: 0 clamp(1.5rem, 5vw, 2.5rem) 2.5rem; }
  .travel__media { order: -1; }
  .hero { height: 300vh; }
  .macro { height: 300vh; }
  .engine { height: 320vh; }
  .hero__content { justify-content: flex-end; padding-bottom: 16vh; }
  .hero__holo { gap: 0.4rem; }
  .holo-chip { font-size: 0.62rem; padding: 0.5em 0.8em 0.5em 1.6em; }
  .mobile-cta { display: flex; }
  .nav__cta .btn__price { display: none; }
  .macro__callout { max-width: 17rem; bottom: 9vh; }
  .engine__callouts li { bottom: 9vh; }
  .white .btn { margin-bottom: 1.5rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .spine, .hero__energy { display: none; }
  .hero, .macro, .engine { height: auto; }
  .hero__pin, .macro__pin, .engine__pin { position: relative; height: auto; min-height: 100vh; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .sweep { background-position: 0 0; }
  .macro__callout, .engine__callouts li { opacity: 1; transform: none; position: static; margin: 0.5rem clamp(1.5rem, 6vw, 7rem); }
  .macro__overlay, .engine__overlay { position: relative; padding-bottom: 3rem; background: rgba(255, 255, 255, 0.9); }
  .macro__title, .engine__title { position: static; padding: 2rem clamp(1.5rem, 6vw, 7rem) 1rem; text-align: left; }
  .macro__video, .engine__video { position: relative; height: auto; }
}


/* ============================================================
   PHONES / IN-APP WEB VIEW
   Everything above is the desktop design and is untouched. The rules
   below are either safe-area padding (a no-op where there is no notch)
   or live inside a max-width: 900px block.
   ============================================================ */

/* The nav grows to clear the status bar and Dynamic Island rather than
   squeezing its own contents. index.html opts in with viewport-fit=cover,
   without which every env() below reads 0. */
.nav {
  height: auto;
  min-height: var(--nav-h);
  padding-top: calc(env(safe-area-inset-top, 0px) + 0.5rem);
  padding-bottom: 0.5rem;
}
.mobile-cta { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 0.6rem); }

/* `clip` (not `hidden`) — `overflow-x:hidden` on BOTH html and body makes
   body a scroll container that never scrolls, which silently disables every
   position:sticky pin (hero, macro, engine) and empties those sections.
   `clip` blocks sideways scroll without creating a scroll container. */
html, body { overflow-x: clip; max-width: 100%; }

@media (max-width: 900px) {
  :root { --nav-h: 62px; }
  .nav__logo-mark { font-size: 0.95rem; }
  .nav__cta { font-size: 0.82rem; padding: 0.78em 1.15em; }

  /* ---------- Intro: the film fills the screen ----------
     A 16:9 frame contained inside a portrait pin left a band of image
     floating in the middle of the text. The canvas now cover-fills
     (see drawFrame in main.js) and the words sit on a white fade. */
  .hero { height: 240vh; }
  .hero__fallback { object-fit: cover; object-position: 68% 50%; }
  .hero__pin::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 64%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.74) 40%,
      rgba(255, 255, 255, 0.96) 72%,
      #ffffff 100%);
  }
  .hero__holo { display: none; }
  .hero__content {
    justify-content: flex-end;
    padding: 0 5vw calc(10vh + env(safe-area-inset-bottom, 0px));
    max-width: none;
  }
  .hero__eyebrow { font-size: 0.68rem; letter-spacing: 0.22em; margin-bottom: 0.7rem; }
  .hero__title { font-size: 2.55rem; margin-bottom: 0.8rem; }
  .hero__sub { font-size: 0.95rem; line-height: 1.55; margin-bottom: 1.1rem; }
  .hero__sub br { display: none; }
  .hero__ctas { gap: 0.6rem; margin-bottom: 1rem; }
  .hero__ctas .btn { font-size: 0.85rem; padding: 0.95em 1.3em; }
  .hero__chips { gap: 0.45rem; }
  .hero__chips li { font-size: 0.72rem; padding: 0.4em 0.8em; }
  .hero__scrollhint {
    bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    font-size: 0.6rem;
    gap: 0.35rem;
  }
  .hero__scrollline { height: 26px; }

  /* ---------- The two films: stacked, not pinned ----------
     Pinning a 16:9 film inside a full-height phone screen left a dead
     band under it. Here the section is ordinary flow — film, heading,
     callouts — so it is exactly as tall as its content. */
  .macro, .engine {
    height: auto;
    background: linear-gradient(180deg, #f6f9fc 0%, #eef2f7 100%);
  }
  .macro__pin, .engine__pin {
    position: static;
    height: auto;
    overflow: visible;
    padding-bottom: 2.6rem;
  }
  .macro__video, .engine__video {
    position: static;
    top: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
  .macro__overlay, .engine__overlay { position: static; padding: 1.7rem 5vw 0; }
  .macro__title, .engine__title {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    text-align: left;
    font-size: 1.85rem;
    line-height: 1.14;
    margin-bottom: 1rem;
    text-shadow: none;
  }
  .macro__callouts, .engine__callouts { display: grid; gap: 0.65rem; }
  .macro__callout, .engine__callouts li {
    position: static;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    max-width: none;
    text-align: left;
    font-size: 1rem;
    opacity: 1;
    transform: none;
    border-left: 3px solid var(--blue);
    border-right: 1px solid rgba(0, 157, 255, 0.3);
  }

  /* ---------- Waterproof: one full, sharp screen ----------
     aspect-ratio 16/9 + min-height 70vh meant a portrait box roughly
     2.7x wider than the photo could fill, so it upscaled and showed
     bare marble. One screen tall, focused on the brush, fixes both. */
  .wet {
    aspect-ratio: auto;
    min-height: 0;
    height: 100svh;
  }
  .wet__bg { object-position: 68% 50%; }
  .wet::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 54%;
    pointer-events: none;
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.82) 44%,
      #ffffff 100%);
  }
  /* the sticky Buy bar floats over this section, so leave it room */
  .wet__content { z-index: 1; padding: 0 5vw calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
  .wet__title { font-size: 2rem; text-shadow: none; }
  .wet__sub { font-size: 0.95rem; text-shadow: none; }

  /* ---------- Trim the remaining dead space ---------- */
  .story__pin { min-height: 0; padding: 3rem 5vw 3rem; }
  .section-cta { padding: 2.2rem 1.2rem 3rem; }
  .modes__figure { max-width: 21rem; }
  .buy__card { margin-bottom: 2.5rem; }
  .footer { padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px)); }
}

/* The sticky buy bar must clear the app's own tab bar. */
@media (max-width: 900px) {
  .mobile-cta { bottom: 0.9rem; }
}
