/* ─────────────────────────────────────────────────────────────────────────────
   Doggies & Bubbles — "Dive In" (homepage art direction)
   The page is a bath: you start above the waterline, scrolling submerges you.
   Depth zones: air (cream) → surface (pale aqua) → deep (teal ink) → deep end.
   Loaded ONLY on the homepage, after site.css. All classes are namespaced.
   ──────────────────────────────────────────────────────────────────────────── */

:root {
  --dz-air: #faf6ef;
  --dz-surface: #e7f2f1;
  --dz-deep: #0f3a40;
  --dz-deepend: #0a2a30;
  --dz-deep-text: #f2ece1;
  --dz-deep-muted: rgba(242, 236, 225, 0.75);
  --dz-deep-accent: #7fd8df;
  --dz-deep-border: rgba(242, 236, 225, 0.18);
  /* the "surface zone" (WHO WE ARE) carries fixed per-mode pairs — the
   * pairing law: a section's fg/bg always travel together, per theme */
  --dzv-surface: var(--dz-surface);
  --dzv-surface-text: #2d2218;
  --dzv-surface-muted: #5b4f42;
  --dzv-surface-accent: #0c5d65;
}
[data-ds-theme="dark"] {
  --dzv-surface: #11363d;
  --dzv-surface-text: #f2ece1;
  --dzv-surface-muted: rgba(242, 236, 225, 0.74);
  --dzv-surface-accent: #7fd8df;
}

/* decorative animated transforms (bobbing dog, floats, marquee skew) must
   never create a horizontal scroller — clip, don't hide (keeps fixed/pinned
   positioning intact, unlike overflow:hidden) */
html, body { overflow-x: clip; }

/* ── Header: transparent over the hero, surface tension after the fold ─────── */
.site-header { background: transparent; border-bottom-color: transparent; transition: background .35s, border-color .35s, box-shadow .35s; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--ds-bg) 86%, transparent); backdrop-filter: blur(14px); border-bottom-color: var(--ds-border); box-shadow: 0 8px 30px rgba(20, 32, 34, 0.06); }

/* ── HERO ───────────────────────────────────────────────────────────────────── */
.hero-dive {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(14, 111, 120, 0.07), transparent 30rem),
    radial-gradient(circle at 12% 85%, rgba(212, 160, 84, 0.10), transparent 26rem),
    var(--ds-bg);
  padding: clamp(5.5rem, 10vh, 8rem) 0 clamp(7rem, 14vh, 11rem);
}
.hs-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-dive__inner { position: relative; z-index: 2; width: 100%; }
/* depth-of-field clearing: a soft wash behind the copy so bubbles drift
   around the words, never through them */
.hero-dive__inner::before {
  content: ''; position: absolute; z-index: -1;
  left: -8%; top: -12%; width: 78%; height: 124%;
  background: radial-gradient(ellipse 62% 58% at 32% 46%, color-mix(in srgb, var(--ds-bg) 88%, transparent) 38%, color-mix(in srgb, var(--ds-bg) 55%, transparent) 64%, transparent 82%);
  pointer-events: none;
}

/* display type: the brand at billboard scale */
.hero-dive__title {
  margin: 0.6rem 0 0;
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 560;
  font-size: clamp(3.4rem, 12.5vw, 11.5rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--ds-text);
}
.dive-line { display: block; overflow: hidden; padding-bottom: 0.07em; margin-bottom: -0.07em; }
.dive-line--and { font-style: italic; color: var(--ds-accent); font-size: 0.42em; line-height: 1.1; padding-left: 0.15em; }
.dive-ch { display: inline-block; will-change: transform; }
html:not(.has-gsap) .dive-ch { transform: none !important; opacity: 1 !important; }

.hero-dive__eyebrow { margin: 0; font-size: 0.82rem; font-weight: 650; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ds-accent); }
.hero-dive__lede { max-width: 34rem; margin: 1.6rem 0 0; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); line-height: 1.65; color: var(--ds-muted); }
.hero-dive__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.hero-dive__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: 2.6rem; font-size: 0.92rem; color: var(--ds-muted); }
.hero-dive__meta strong { color: var(--ds-text); }
/* GSAP animates these in; without GSAP they must be fully visible */
html.has-gsap .hero-dive__eyebrow, html.has-gsap .hero-dive__lede,
html.has-gsap .hero-dive__actions, html.has-gsap .hero-dive__meta { opacity: 0; }

/* the dog in the tub — hand-drawn line art, self-draws on load */
.dog-tub {
  position: absolute;
  right: clamp(1rem, 6vw, 7rem);
  bottom: clamp(4.5rem, 11vh, 8rem);
  width: clamp(150px, 22vw, 320px);
  z-index: 2;
  color: var(--ds-text);
  animation: dog-bob 5.5s ease-in-out infinite;
}
.dog-tub path, .dog-tub circle { stroke: currentColor; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dog-tub .foam { color: var(--ds-accent); stroke-width: 2.5; }
@keyframes dog-bob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-9px) rotate(-1.2deg); } }

/* scroll cue: a bubble with a chevron */
.hero-dive__cue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--ds-accent) 55%, transparent);
  display: grid; place-items: center; color: var(--ds-accent); z-index: 2;
  animation: cue-float 2.8s ease-in-out infinite;
}
@keyframes cue-float { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -10px); } }

/* the flood: rises over the hero as you scroll */
.hero-dive__flood {
  position: absolute; left: 0; right: 0; top: 100%; height: 130%;
  z-index: 3; pointer-events: none;
  background: linear-gradient(to bottom, rgba(127, 216, 223, 0.55), var(--dz-deep) 55%);
}
.hero-dive__flood svg { position: absolute; top: -59px; left: 0; width: 100%; height: 60px; display: block; color: rgba(127, 216, 223, 0.55); }

/* ── DEPTH ZONES ───────────────────────────────────────────────────────────── */
.zone-band { height: clamp(4rem, 10vh, 8rem); background: linear-gradient(to bottom, var(--ds-bg), var(--dz-deep)); }
.zone-band--rise { background: linear-gradient(to bottom, var(--dz-deep), var(--dz-surface)); }
.zone-band--dive2 { background: linear-gradient(to bottom, var(--dz-surface), var(--ds-bg)); }
.zone-band--down { background: linear-gradient(to bottom, var(--ds-bg), var(--dz-deepend)); }

.zone-deep { background: var(--dz-deep); color: var(--dz-deep-text); position: relative; }
.zone-deep .eyebrow { color: var(--dz-deep-accent); }
/* caustic light, underwater */
.zone-deep::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background:
    radial-gradient(ellipse 60% 40% at 25% 0%, rgba(127, 216, 223, 0.12), transparent),
    radial-gradient(ellipse 50% 35% at 75% 10%, rgba(127, 216, 223, 0.08), transparent);
  animation: caustics 11s ease-in-out infinite alternate;
}
@keyframes caustics { from { transform: translateX(-2%) scaleY(1); } to { transform: translateX(2%) scaleY(1.15); } }
/* calm tier (resolved by motion.js — OS hint or explicit user choice):
   positional/scale animation stops; luminance breathing lives in the shader */
html[data-motion="calm"] .zone-deep::before,
html[data-motion="calm"] .dog-tub,
html[data-motion="calm"] .hero-dive__cue,
html[data-motion="calm"] .paradise__float { animation: none; }
html[data-motion="calm"] .marquee__track { animation: none; transform: none; }
html[data-motion="calm"] .hs-css-bubble { animation: none; }

/* ── SERVICES RAIL (pinned horizontal scene) ───────────────────────────────── */
.rail { padding: clamp(4rem, 9vh, 7rem) 0; }
.rail__head { padding: 0 clamp(1.25rem, 5vw, 5rem) clamp(2rem, 5vh, 3.5rem); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.rail__head h2 {
  margin: 0.5rem 0 0; font-family: 'Fraunces', Georgia, serif; font-weight: 560;
  font-size: clamp(2.4rem, 6vw, 5.2rem); letter-spacing: -0.03em; line-height: 1.02; color: var(--dz-deep-text);
}
.rail__hint { font-size: 0.85rem; color: var(--dz-deep-muted); letter-spacing: 0.14em; text-transform: uppercase; }
.rail__track {
  display: flex; gap: clamp(1rem, 2vw, 1.8rem);
  padding: 0 clamp(1.25rem, 5vw, 5rem) 1.5rem;
  width: max-content; will-change: transform;
}
.rail__card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  width: clamp(280px, 30vw, 420px); min-height: clamp(360px, 52vh, 460px);
  padding: 1.8rem; border-radius: 1.6rem; text-decoration: none;
  background: rgba(242, 236, 225, 0.055);
  border: 1px solid var(--dz-deep-border);
  color: var(--dz-deep-text);
  overflow: hidden; flex-shrink: 0;
  transition: background .35s, border-color .35s;
}
.rail__card:hover, .rail__card:focus-visible { background: rgba(127, 216, 223, 0.10); border-color: rgba(127, 216, 223, 0.45); }
.rail__card:focus-visible { outline: 2px solid var(--dz-deep-accent); outline-offset: 3px; }
.rail__num {
  position: absolute; top: 0.4rem; right: 1rem;
  font-family: 'Fraunces', Georgia, serif; font-weight: 560; font-style: italic;
  font-size: clamp(5rem, 9vw, 8.5rem); line-height: 1; color: transparent;
  -webkit-text-stroke: 1.5px rgba(127, 216, 223, 0.34);
  pointer-events: none;
}
.rail__icon { width: 56px; height: 56px; border-radius: 1rem; display: grid; place-items: center; background: rgba(127, 216, 223, 0.12); color: var(--dz-deep-accent); margin-bottom: auto; }
.rail__icon svg { width: 30px; height: 30px; }
.rail__card h3 { margin: 2.2rem 0 0; font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: clamp(1.5rem, 2vw, 2rem); letter-spacing: -0.015em; }
.rail__card p { margin: 0.7rem 0 0; font-size: 0.97rem; line-height: 1.6; color: var(--dz-deep-muted); }
.rail__go { margin-top: 1.4rem; font-size: 0.82rem; font-weight: 650; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dz-deep-accent); }
.rail__go::after { content: ' →'; }

/* mobile / no-pin: swipeable snap rail */
@media (max-width: 899px) {
  .rail__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .rail__viewport::-webkit-scrollbar { display: none; }
  .rail__card { scroll-snap-align: start; width: 78vw; min-height: 380px; }
}
@media (min-width: 900px) {
  html:not(.has-gsap) .rail__viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
}

/* ── MARQUEE (deep zone variant) ───────────────────────────────────────────── */
.zone-deep .marquee { border-color: var(--dz-deep-border); }
.zone-deep .marquee__track span { color: var(--dz-deep-text); }
.zone-deep .marquee__track span:nth-child(even) { color: var(--dz-deep-accent); }

/* ── QUOTE — coming up for air ──────────────────────────────────────────────
   FIXED background ⇒ FIXED foregrounds (pairing law: a section whose bg does
   not follow the theme must not use theme-variable text — that is exactly how
   bright-on-bright happens in dark mode). */
.zone-surface { background: var(--dzv-surface); color: var(--dzv-surface-text); }
.zone-surface .eyebrow { color: var(--dzv-surface-accent); }
.quote-dive { max-width: 60rem; margin: 0 auto; padding: clamp(5rem, 12vh, 9rem) clamp(1.25rem, 5vw, 3rem); text-align: center; }
.quote-dive blockquote {
  margin: 1.4rem 0 0; font-family: 'Fraunces', Georgia, serif; font-weight: 560;
  font-size: clamp(1.7rem, 4vw, 3.4rem); line-height: 1.18; letter-spacing: -0.02em; color: var(--dzv-surface-text);
}
.cas-w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.cas-w > span { display: inline-block; }
.quote-dive figcaption { margin-top: 1.8rem; color: var(--dzv-surface-muted); font-size: 1rem; }
.quote-dive figcaption strong { color: var(--dzv-surface-text); }
.quote-dive figcaption a { color: var(--dzv-surface-accent) !important; }

/* ── PAWMART — floating supplies ───────────────────────────────────────────── */
.paradise { position: relative; overflow: hidden; background: var(--ds-bg); }
.paradise__inner { position: relative; z-index: 1; max-width: 44rem; margin: 0 auto; text-align: center; padding: clamp(5rem, 13vh, 9rem) clamp(1.25rem, 5vw, 3rem); }
.paradise h2 { margin: 0.6rem 0 0; font-family: 'Fraunces', Georgia, serif; font-weight: 560; font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: -0.03em; line-height: 1.04; }
.paradise .lede { margin-top: 1.4rem; }
.paradise__float { position: absolute; color: color-mix(in srgb, var(--ds-accent) 38%, transparent); pointer-events: none; animation: dog-bob 7s ease-in-out infinite; }
.paradise__float svg { width: 100%; height: 100%; }
.paradise__float:nth-child(2) { animation-delay: -2s; animation-duration: 8.5s; }
.paradise__float:nth-child(3) { animation-delay: -4s; animation-duration: 6.5s; }
.paradise__float:nth-child(4) { animation-delay: -1s; animation-duration: 9s; }

/* ── CTA — the deep end ────────────────────────────────────────────────────── */
.deepend { background: radial-gradient(ellipse 70% 60% at 50% 110%, rgba(127, 216, 223, 0.16), transparent), var(--dz-deepend); color: var(--dz-deep-text); text-align: center; padding: clamp(6rem, 16vh, 11rem) clamp(1.25rem, 5vw, 3rem); position: relative; overflow: hidden; }
.deepend .eyebrow { color: var(--dz-deep-accent); }
.deepend h2 { margin: 0.8rem auto 0; max-width: 18ch; font-family: 'Fraunces', Georgia, serif; font-weight: 560; font-size: clamp(2.6rem, 7vw, 6rem); letter-spacing: -0.03em; line-height: 1.02; }
.deepend .lede { max-width: 34rem; margin: 1.4rem auto 0; color: var(--dz-deep-muted); }
.deepend__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 2.6rem; }
.deepend .btn--fill,
.deepend .btn--fill:hover,
.deepend .btn--fill:focus-visible { background: var(--dz-deep-accent); color: var(--dz-deepend); box-shadow: 0 0 60px rgba(127, 216, 223, 0.45); }
.deepend .btn--ghost { border-color: var(--dz-deep-border); color: var(--dz-deep-text); }
.deepend .btn--ghost:hover { border-color: var(--dz-deep-accent); color: var(--dz-deep-accent); }

/* ── DEPTH METER ───────────────────────────────────────────────────────────── */
.meter { position: fixed; right: 1.4rem; top: 50%; transform: translateY(-50%); z-index: 40; display: none; }
@media (min-width: 1100px) { .meter { display: block; } }
.meter__rail { position: relative; width: 2px; height: 42vh; background: color-mix(in srgb, var(--ds-muted) 30%, transparent); border-radius: 2px; }
.meter__fill { position: absolute; inset: 0; background: var(--ds-accent); transform-origin: top; transform: scaleY(0); border-radius: 2px; }
.meter__dot { position: absolute; left: 50%; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--ds-accent); transform: translate(-50%, -50%); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ds-accent) 22%, transparent); }
.meter__marks { position: absolute; left: -0.6rem; top: 0; height: 100%; }
.meter__mark {
  position: absolute; right: 1.2rem; transform: translateY(-50%); white-space: nowrap;
  font-family: inherit; font-size: 0.66rem; font-weight: 650; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ds-muted); transition: color .3s, transform .3s;
  /* it's navigation now: button reset + a legibility chip over any zone */
  appearance: none; border: 0; cursor: pointer;
  background: color-mix(in srgb, var(--ds-bg) 74%, transparent);
  backdrop-filter: blur(6px);
  border-radius: 999px; padding: 0.22rem 0.6rem;
}
.meter__mark:hover { color: var(--ds-accent); }
.meter__mark:focus-visible { outline: 2px solid var(--ds-accent); outline-offset: 2px; }
.meter__mark.is-passed { color: var(--ds-accent); }
.meter__mark.is-current { color: var(--ds-accent); transform: translateY(-50%) scale(1.18); transform-origin: right center; }
.meter__dot { transition: box-shadow .25s; }
.meter__dot.is-moving { box-shadow: 0 0 0 7px color-mix(in srgb, var(--ds-accent) 30%, transparent), 0 0 18px var(--ds-accent); }

/* ── FILM GRAIN — the analog finish over everything ────────────────────────── */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 80; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.045;
  mix-blend-mode: overlay;
}

/* ── CURSOR RING ───────────────────────────────────────────────────────────── */
.cursor-ring {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--ds-accent) 70%, transparent);
  transition: width .25s, height .25s, margin .25s, border-color .25s, background-color .25s;
}
.cursor-ring.is-active { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: color-mix(in srgb, var(--ds-accent) 10%, transparent); }
.cursor-ring.is-pop { border-style: dashed; }
.cursor-ring.is-down { width: 20px; height: 20px; margin: -10px 0 0 -10px; border-color: var(--ds-accent); }
@media (pointer: coarse) { .cursor-ring { display: none; } }
html[data-motion="calm"] .cursor-ring { display: none; }

/* ── hero fallback bubbles (tier 2 / tier 3) ───────────────────────────────── */
.hs-css-bubble, .hs-static-bubble {
  position: absolute; border-radius: 50%; z-index: 1; pointer-events: none;
  border: 1.5px solid color-mix(in srgb, var(--ds-accent) 40%, transparent);
  background: radial-gradient(circle at 32% 30%, color-mix(in srgb, var(--ds-accent) 16%, transparent), transparent 70%);
}
.hs-css-bubble { bottom: -70px; animation: hs-rise linear infinite; }
@keyframes hs-rise { to { transform: translateY(calc(-100vh - 90px)); } }
.hs-static-bubble { opacity: 0.5; }

/* ── small screens: keep the drama, lose the clutter ───────────────────────── */
@media (max-width: 720px) {
  .dog-tub { right: 4vw; bottom: 5.2rem; width: 132px; opacity: 0.9; }
  .hero-dive__meta { gap: 0.4rem 1.2rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUILD 5 — palettes, ambience, wave dividers, doggy motifs
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── PALETTES — five hand-tuned harmonies. Every accent holds ≥4.5:1 under
   white (light) and every dark-mode accent holds AA as text on its bg; the
   deep zones are same-hue dark anchors so the whole page shifts together. ── */
:root[data-palette="lavender"] {
  --ds-accent: #6650a3; --ds-accent-strong: #54418c; --ds-on-accent: #ffffff;
  --dz-deep: #221b3a; --dz-deepend: #181229; --dz-deep-accent: #c0b1ee;
  --dzv-surface: #ece7f6; --dzv-surface-accent: #54418c;
}
:root[data-palette="coral"] {
  --ds-accent: #b8443a; --ds-accent-strong: #9a352d; --ds-on-accent: #ffffff;
  --dz-deep: #3d1d18; --dz-deepend: #2b1411; --dz-deep-accent: #ff9d93;
  --dzv-surface: #f9e9e4; --dzv-surface-accent: #9a352d;
}
:root[data-palette="honey"] {
  --ds-accent: #8a5e0f; --ds-accent-strong: #6f4c0c; --ds-on-accent: #ffffff;
  --dz-deep: #382a0e; --dz-deepend: #271d09; --dz-deep-accent: #f0c060;
  --dzv-surface: #f7eedc; --dzv-surface-accent: #6f4c0c;
}
:root[data-palette="ocean"] {
  --ds-accent: #1d5fae; --ds-accent-strong: #174d8d; --ds-on-accent: #ffffff;
  --dz-deep: #122c4a; --dz-deepend: #0d2036; --dz-deep-accent: #8fc4f5;
  --dzv-surface: #e6eef8; --dzv-surface-accent: #174d8d;
}
:root[data-palette="lavender"][data-ds-theme="dark"] { --ds-accent: #c0b1ee; --ds-accent-strong: #d4c9f4; --ds-on-accent: #181229; --dzv-surface: #221b3a; --dzv-surface-accent: #c0b1ee; }
:root[data-palette="coral"][data-ds-theme="dark"] { --ds-accent: #ff9d93; --ds-accent-strong: #ffb6ae; --ds-on-accent: #2b1411; --dzv-surface: #3d1d18; --dzv-surface-accent: #ff9d93; }
:root[data-palette="honey"][data-ds-theme="dark"] { --ds-accent: #f0c060; --ds-accent-strong: #f5d186; --ds-on-accent: #271d09; --dzv-surface: #382a0e; --dzv-surface-accent: #f0c060; }
:root[data-palette="ocean"][data-ds-theme="dark"] { --ds-accent: #8fc4f5; --ds-accent-strong: #b0d6f9; --ds-on-accent: #0d2036; --dzv-surface: #122c4a; --dzv-surface-accent: #8fc4f5; }

/* the flood + caustics follow the palette too (no more hard-coded aqua) */
.hero-dive__flood { background: linear-gradient(to bottom, color-mix(in srgb, var(--dz-deep-accent) 55%, transparent), var(--dz-deep) 55%); }
.hero-dive__flood svg { color: color-mix(in srgb, var(--dz-deep-accent) 55%, transparent); }
.zone-deep::before {
  background:
    radial-gradient(ellipse 60% 40% at 25% 0%, color-mix(in srgb, var(--dz-deep-accent) 12%, transparent), transparent),
    radial-gradient(ellipse 50% 35% at 75% 10%, color-mix(in srgb, var(--dz-deep-accent) 8%, transparent), transparent);
}
.rail__num { -webkit-text-stroke-color: color-mix(in srgb, var(--dz-deep-accent) 34%, transparent); }
.rail__card:hover, .rail__card:focus-visible { background: color-mix(in srgb, var(--dz-deep-accent) 10%, transparent); border-color: color-mix(in srgb, var(--dz-deep-accent) 45%, transparent); }
.rail__icon { background: color-mix(in srgb, var(--dz-deep-accent) 12%, transparent); color: var(--dz-deep-accent); }
.deepend { background: radial-gradient(ellipse 70% 60% at 50% 110%, color-mix(in srgb, var(--dz-deep-accent) 16%, transparent), transparent), var(--dz-deepend); }
.deepend .btn--fill, .deepend .btn--fill:hover, .deepend .btn--fill:focus-visible { background: var(--dz-deep-accent); color: var(--dz-deepend); box-shadow: 0 0 60px color-mix(in srgb, var(--dz-deep-accent) 45%, transparent); }
.zone-deep .marquee__track span:nth-child(even) { color: var(--dz-deep-accent); }

/* ── PALETTE DROPDOWN (fantasy selector) ───────────────────────────────────── */
.palette-group > button { display: inline-flex; align-items: center; gap: 0.35rem; }
.palette-dot { width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--ds-accent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ds-on-accent) 35%, transparent), 0 0 0 2px color-mix(in srgb, var(--ds-accent) 30%, transparent); }
.palette-menu { min-width: 13.5rem; }
.palette-option { display: flex; align-items: center; gap: 0.65rem; width: 100%; padding: 0.55rem 0.8rem; background: none; border: 0; border-radius: 0.6rem; cursor: pointer; font: inherit; color: var(--ds-text); text-align: left; }
.palette-option:hover, .palette-option:focus-visible { background: var(--ds-surface-2); color: var(--ds-accent); }
.palette-option:focus-visible { outline: 2px solid var(--ds-accent); outline-offset: -2px; }
.palette-option[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--ds-accent); }
.palette-swatch { display: inline-flex; gap: 3px; }
.palette-swatch i { width: 0.72rem; height: 0.72rem; border-radius: 50%; }
.palette-swatch--aqua i:nth-child(1) { background: #0e6f78; } .palette-swatch--aqua i:nth-child(2) { background: #0f3a40; } .palette-swatch--aqua i:nth-child(3) { background: #7fd8df; }
.palette-swatch--lavender i:nth-child(1) { background: #6650a3; } .palette-swatch--lavender i:nth-child(2) { background: #221b3a; } .palette-swatch--lavender i:nth-child(3) { background: #c0b1ee; }
.palette-swatch--coral i:nth-child(1) { background: #b8443a; } .palette-swatch--coral i:nth-child(2) { background: #3d1d18; } .palette-swatch--coral i:nth-child(3) { background: #ff9d93; }
.palette-swatch--honey i:nth-child(1) { background: #8a5e0f; } .palette-swatch--honey i:nth-child(2) { background: #382a0e; } .palette-swatch--honey i:nth-child(3) { background: #f0c060; }
.palette-swatch--ocean i:nth-child(1) { background: #1d5fae; } .palette-swatch--ocean i:nth-child(2) { background: #122c4a; } .palette-swatch--ocean i:nth-child(3) { background: #8fc4f5; }

/* ── GLOW ORBS — slowly dimming blur and glow, CSS-only (cannot die) ───────── */
.glow-orb {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--ds-accent) 50%, transparent), transparent 68%);
  filter: blur(44px);
  animation: orb-breathe 9s ease-in-out infinite;
}
.zone-deep .glow-orb, .deepend .glow-orb { background: radial-gradient(circle, color-mix(in srgb, var(--dz-deep-accent) 40%, transparent), transparent 68%); }
@keyframes orb-breathe {
  0%, 100% { opacity: 0.22; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.14); }
}
html[data-motion="calm"] .glow-orb { animation: orb-breathe-calm 9s ease-in-out infinite; }
@keyframes orb-breathe-calm {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.55; }
}

/* ── FLOATING PAWS — the doggies drifting among the bubbles ────────────────── */
.float-paw { position: absolute; pointer-events: none; z-index: 0; color: color-mix(in srgb, var(--dz-deep-accent) 40%, transparent); animation: paw-drift 13s ease-in-out infinite; }
.paradise .float-paw { color: color-mix(in srgb, var(--ds-accent) 35%, transparent); }
.float-paw svg { width: 100%; height: 100%; }
.float-paw:nth-of-type(2n) { animation-duration: 17s; animation-delay: -6s; }
.float-paw:nth-of-type(3n) { animation-duration: 11s; animation-delay: -3s; }
@keyframes paw-drift {
  0%, 100% { transform: translateY(0) rotate(-8deg); opacity: 0.45; }
  50% { transform: translateY(-26px) rotate(8deg); opacity: 0.85; }
}
html[data-motion="calm"] .float-paw { animation: orb-breathe-calm 11s ease-in-out infinite; }

/* ── TITLE SHIMMER + CTA SHINE — autonomous, periodic, CSS-only ────────────── */
.hero-dive__title { position: relative; }
.hero-dive__title::after {
  content: ''; position: absolute; inset: -4% -10%; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, color-mix(in srgb, var(--ds-accent) 28%, #ffffff60) 50%, transparent 58%);
  background-size: 260% 100%; background-position: 130% 0;
  mix-blend-mode: soft-light;
  animation: title-shimmer 7s ease-in-out infinite;
}
@keyframes title-shimmer {
  0%, 55%, 100% { background-position: 130% 0; }
  75% { background-position: -130% 0; }
}
.btn--fill { position: relative; overflow: hidden; }
.btn--fill::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 38%; left: -50%;
  background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--ds-on-accent) 35%, transparent), transparent);
  transform: skewX(-18deg);
  animation: btn-shine 8s ease-in-out infinite;
}
@keyframes btn-shine {
  0%, 70%, 100% { left: -50%; }
  82% { left: 120%; }
}
html[data-motion="calm"] .hero-dive__title::after,
html[data-motion="calm"] .btn--fill::after { animation: none; }
html[data-motion="calm"] .dive-line--and { animation: and-glow 5s ease-in-out infinite; }
@keyframes and-glow {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 26px color-mix(in srgb, var(--ds-accent) 65%, transparent); }
}

/* ── WAVE DIVIDERS — the straight bands become living water ────────────────── */
.wave-div { position: relative; height: clamp(64px, 10vh, 120px); overflow: hidden; background: var(--wd-from); }
.wave-div svg { position: absolute; bottom: 0; left: 0; height: 100%; display: block; color: var(--wd-to); }
.wave-div__back { width: 200%; opacity: 0.45; animation: wave-slide-rev 21s linear infinite; }
.wave-div__front { width: 200%; animation: wave-slide 13s linear infinite; }
@keyframes wave-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes wave-slide-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.wave-div--down { --wd-from: var(--ds-bg); --wd-to: var(--dz-deep); }
.wave-div--rise { --wd-from: var(--dz-deep); --wd-to: var(--dzv-surface); }
.wave-div--dive2 { --wd-from: var(--dzv-surface); --wd-to: var(--ds-bg); }
.wave-div--down2 { --wd-from: var(--ds-bg); --wd-to: var(--dz-deepend); }
.wave-div .wave-foam { position: absolute; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--wd-to) 70%, #fff); background: color-mix(in srgb, var(--wd-to) 25%, transparent); animation: foam-bob 4.5s ease-in-out infinite; }
@keyframes foam-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
html[data-motion="calm"] .wave-div__back, html[data-motion="calm"] .wave-div__front, html[data-motion="calm"] .wave-foam { animation: none; }

/* ── RAIL SCROLLBAR — part of the design, not the OS ───────────────────────── */
.rail__viewport { scrollbar-color: var(--dz-deep-accent) color-mix(in srgb, var(--dz-deep-accent) 12%, transparent); scrollbar-width: thin; }
.rail__viewport::-webkit-scrollbar { height: 12px; }
.rail__viewport::-webkit-scrollbar-track { background: color-mix(in srgb, var(--dz-deep-accent) 10%, transparent); border-radius: 999px; margin: 0 clamp(1.25rem, 5vw, 5rem); }
.rail__viewport::-webkit-scrollbar-thumb { background: linear-gradient(90deg, var(--dz-deep-accent), color-mix(in srgb, var(--dz-deep-accent) 55%, #ffffff)); border-radius: 999px; border: 2.5px solid var(--dz-deep); }
.rail__viewport::-webkit-scrollbar-thumb:hover { background: var(--dz-deep-accent); }

/* ── CSS fallback bubbles breathe too (glow that survives anything) ────────── */
.hs-css-bubble, .hs-static-bubble { box-shadow: 0 0 18px color-mix(in srgb, var(--ds-accent) 18%, transparent); }
.hs-static-bubble { animation: hs-glow 6s ease-in-out infinite; }
@keyframes hs-glow {
  0%, 100% { opacity: 0.35; box-shadow: 0 0 10px color-mix(in srgb, var(--ds-accent) 12%, transparent); }
  50% { opacity: 0.8; box-shadow: 0 0 30px color-mix(in srgb, var(--ds-accent) 38%, transparent); }
}

/* content always paints above the ambient layer */
.rail__head, .rail__viewport, .paradise__inner,
.deepend .eyebrow, .deepend h2, .deepend .lede, .deepend__actions { position: relative; z-index: 1; }

/* ── BUILD 6: the services carousel — it swims on its own ──────────────────── */
.rail__viewport.is-sliding { overflow: hidden; }
.rail__viewport.is-sliding .rail__track { will-change: transform; }
.rail__card { transform-origin: center 78%; transition: border-color .35s, background .35s, box-shadow .35s; }
.rail__card.is-center {
  border-color: color-mix(in srgb, var(--dz-deep-accent) 60%, transparent);
  background: color-mix(in srgb, var(--dz-deep-accent) 11%, transparent);
  box-shadow:
    0 34px 80px color-mix(in srgb, var(--dz-deep-accent) 20%, transparent),
    0 0 0 1px color-mix(in srgb, var(--dz-deep-accent) 35%, transparent);
  z-index: 2;
}
/* the spotlight: tiny bubbles rise behind the surfaced card */
.rail__card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; border-radius: inherit;
  background-image:
    radial-gradient(circle 6px, color-mix(in srgb, var(--dz-deep-accent) 55%, transparent) 98%, transparent),
    radial-gradient(circle 4px, color-mix(in srgb, var(--dz-deep-accent) 45%, transparent) 98%, transparent),
    radial-gradient(circle 5px, color-mix(in srgb, var(--dz-deep-accent) 38%, transparent) 98%, transparent);
  background-repeat: no-repeat;
  transition: opacity .4s;
}
.rail__card.is-center::after { opacity: 1; animation: spot-bubbles 3.6s linear infinite; }
@keyframes spot-bubbles {
  from { background-position: 16% 108%, 52% 124%, 84% 112%; }
  to { background-position: 20% -14%, 48% -22%, 86% -16%; }
}
.rail__card.is-center .rail__icon { animation: icon-wiggle 2.2s ease-in-out infinite; }
@keyframes icon-wiggle {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  30% { transform: rotate(-7deg) translateY(-4px); }
  65% { transform: rotate(6deg) translateY(-2px); }
}
html[data-motion="calm"] .rail__card.is-center::after,
html[data-motion="calm"] .rail__card.is-center .rail__icon { animation: none; }

/* ═══ BUILD 7 — waves v2, swim dog, lather→rinse→shine, soft bursts ═════════ */

/* readability law: the rising water is OPAQUE — nothing half-readable
   shimmers through it (the copy itself fades out in the first 32% of the
   flood scrub, see choreo.js) */
.hero-dive__flood { background: linear-gradient(to bottom, color-mix(in srgb, var(--dz-deep-accent) 70%, var(--dz-deep)), var(--dz-deep) 46%); }
.hero-dive__flood svg { color: color-mix(in srgb, var(--dz-deep-accent) 70%, var(--dz-deep)); }

/* waves v2: intermediate-hue back wave (no muddy grey), soft atmospheric
   melt at the top, and a cream foam crest stroked along the front wave —
   transform/opacity only, no filters on animated layers */
.wave-div__back { color: color-mix(in srgb, var(--wd-to) 52%, var(--wd-from)); opacity: 1; }
.wave-div::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 38%; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, var(--wd-from), transparent);
}
.wave-div__crest { width: 200%; position: absolute; bottom: 0; left: 0; height: 100%; animation: wave-slide 13s linear infinite; }
.wave-div__crest path { fill: none; stroke: rgba(250, 246, 239, 0.75); stroke-width: 3; stroke-linecap: round; }
.wave-foam { border: 0 !important; background: rgba(250, 246, 239, 0.92) !important; }
html[data-motion="calm"] .wave-div__crest { animation: none; }

/* performance: anything offscreen freezes (IO in always.js) */
.is-offstage, .is-offstage * { animation-play-state: paused !important; }

/* the swimming dog — paddles across the deep every ~30s, bubble trail behind */
.swim-dog {
  position: absolute; top: 9%; left: 0; width: clamp(90px, 10vw, 150px); z-index: 0;
  color: color-mix(in srgb, var(--dz-deep-accent) 75%, transparent);
  pointer-events: none;
  animation: swim-cross 30s linear infinite;
}
.swim-dog svg { width: 100%; height: auto; animation: swim-bob 2.6s ease-in-out infinite; }
.swim-dog .paddle { transform-origin: 74px 40px; transform-box: view-box; animation: paddle 0.9s ease-in-out infinite; }
.swim-dog .ripple { opacity: 0.45; stroke-dasharray: 7 9; }
.swim-dog i { position: absolute; left: -4px; top: 52%; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid currentColor; animation: trail-rise 2.2s linear infinite; }
.swim-dog i:nth-child(3) { width: 4px; height: 4px; animation-delay: 0.7s; }
.swim-dog i:nth-child(4) { width: 8px; height: 8px; animation-delay: 1.4s; }
@keyframes swim-cross { from { transform: translateX(-16vw); } to { transform: translateX(116vw); } }
@keyframes swim-bob { 0%, 100% { transform: translateY(0) rotate(0.5deg); } 50% { transform: translateY(-7px) rotate(-1.5deg); } }
@keyframes paddle { 0%, 100% { transform: rotate(-16deg); } 50% { transform: rotate(12deg); } }
@keyframes trail-rise { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 0.8; } 100% { transform: translate(-26px, -34px); opacity: 0; } }
html[data-motion="calm"] .swim-dog, html[data-motion="calm"] .swim-dog svg,
html[data-motion="calm"] .swim-dog .paddle, html[data-motion="calm"] .swim-dog i { animation: none; }

/* carousel stages: approach = LATHER (foam bubbles up), center = RINSED CLEAN
   (foam clears, super zoom, sparkles) */
.rail__card { overflow: visible; }
.card-foam { position: absolute; left: 4%; right: 4%; bottom: -2px; height: 34%; pointer-events: none; opacity: 0; transition: opacity 0.35s; }
.card-foam i { position: absolute; bottom: 0; border-radius: 50%; background: color-mix(in srgb, #ffffff 78%, var(--dz-deep-accent)); opacity: 0.9; }
.card-foam i:nth-child(1) { left: 6%; width: 13px; height: 13px; }
.card-foam i:nth-child(2) { left: 26%; width: 19px; height: 19px; bottom: -4px; }
.card-foam i:nth-child(3) { left: 48%; width: 14px; height: 14px; }
.card-foam i:nth-child(4) { left: 66%; width: 21px; height: 21px; bottom: -5px; }
.card-foam i:nth-child(5) { left: 86%; width: 12px; height: 12px; }
.rail__card.is-lathering .card-foam { opacity: 1; }
.rail__card.is-lathering .card-foam i { animation: foam-bubble 1.3s ease-in-out infinite; }
.card-foam i:nth-child(2n) { animation-delay: 0.35s !important; }
.card-foam i:nth-child(3n) { animation-delay: 0.7s !important; }
@keyframes foam-bubble { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-9px) scale(1.18); } }
.rail__card.is-center .card-foam { opacity: 0; }
.card-sparkles { position: absolute; inset: 0; pointer-events: none; }
.card-sparkles i { position: absolute; font-style: normal; font-size: 1.15rem; color: var(--dz-deep-accent); opacity: 0; }
.card-sparkles i:nth-child(1) { top: 12%; left: 10%; }
.card-sparkles i:nth-child(2) { top: 7%; right: 16%; animation-delay: 0.5s !important; }
.card-sparkles i:nth-child(3) { bottom: 30%; right: 7%; animation-delay: 1s !important; }
.rail__card.is-center .card-sparkles i { animation: sparkle-glint 1.7s ease-in-out infinite; }
@keyframes sparkle-glint { 0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); } 50% { opacity: 1; transform: scale(1.2) rotate(30deg); } }
html[data-motion="calm"] .card-foam i, html[data-motion="calm"] .card-sparkles i { animation: none; }
html[data-motion="calm"] .rail__card.is-center .card-sparkles i { opacity: 0.8; }

/* some background bubbles burst softly at the end of their rise */
.hs-css-bubble:nth-child(3n) { animation-name: hs-rise-pop; }
@keyframes hs-rise-pop {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  82% { transform: translateY(calc(-82vh - 74px)) scale(1); opacity: 0.9; }
  100% { transform: translateY(calc(-100vh - 90px)) scale(1.5); opacity: 0; }
}

/* ═══ BUILD 7b — dividers MERGE into sections (no bands, no seams) ══════════ */
/* the divider paints ONLY waves: transparent bg, overlapped onto the previous
   section, so there is no "from" stripe and no straight boundary at all */
.wave-div { background: transparent; margin-top: calc(-1 * clamp(64px, 10vh, 120px)); z-index: 2; pointer-events: none; }
.wave-div::before { content: none; }
.wave-div svg { overflow: visible; }
.wave-div__back { color: var(--wd-to); opacity: 0.35; }
/* the hero scroll cue must sit above the overlapping waves */
.hero-dive__cue { bottom: calc(clamp(64px, 10vh, 120px) + 0.8rem); }

/* iridescent soap-film ring around the surfaced card (super-zoom border) */
@property --dnb-ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.rail__card.is-center::before {
  content: ''; position: absolute; inset: -5px; padding: 3px; pointer-events: none;
  border-radius: calc(1.6rem + 5px);
  background: conic-gradient(from var(--dnb-ang),
    var(--dz-deep-accent), rgba(255,255,255,0.85), var(--dz-deep-accent) 28%,
    color-mix(in srgb, var(--dz-deep-accent) 55%, #ffd6a0) 52%,
    var(--dz-deep-accent) 70%, rgba(255,255,255,0.7) 86%, var(--dz-deep-accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ring-spin 3.5s linear infinite;
}
@keyframes ring-spin { to { --dnb-ang: 360deg; } }
html[data-motion="calm"] .rail__card.is-center::before { animation: none; }

/* ═══ BUILD 8 — 2× center bloom + headroom + performance pass ═══════════════ */

/* cards sized so the 2× bloom fits; the viewport gets PADDING headroom
   (overflow clips at the padding edge, so scaled cards paint into it) */
.rail__card { width: clamp(240px, 23vw, 330px); min-height: clamp(280px, 36vh, 340px); transform-origin: center center; will-change: transform; }
.rail__viewport.is-sliding {
  padding-top: clamp(8rem, 21vh, 12rem);
  margin-top: calc(-1 * clamp(8rem, 21vh, 12rem));
  padding-bottom: clamp(5rem, 12vh, 8rem);
  margin-bottom: calc(-1 * clamp(5rem, 12vh, 8rem));
}
/* the ring glows harder as the zoom blooms (--glow set per frame, 0.55→1) */
.rail__card.is-center::before {
  opacity: calc(0.35 + 0.65 * (var(--glow, 0.7) - 0.55) / 0.45);
  box-shadow:
    0 0 calc(10px + 38px * var(--glow, 0.7)) color-mix(in srgb, var(--dz-deep-accent) 55%, transparent),
    0 0 calc(40px + 70px * var(--glow, 0.7)) color-mix(in srgb, var(--dz-deep-accent) 28%, transparent);
}
.rail__card.is-center { box-shadow: 0 40px 90px color-mix(in srgb, #000 35%, transparent); }

/* ── PERFORMANCE PASS ──────────────────────────────────────────────────────── */
/* orbs: the radial gradient IS the blur — the extra 44px filter doubled the
   compositing cost for no visible gain */
.glow-orb { filter: none; background: radial-gradient(circle, color-mix(in srgb, var(--ds-accent) 38%, transparent) 0%, color-mix(in srgb, var(--ds-accent) 18%, transparent) 34%, transparent 62%); will-change: opacity, transform; }
.zone-deep .glow-orb, .deepend .glow-orb { background: radial-gradient(circle, color-mix(in srgb, var(--dz-deep-accent) 30%, transparent) 0%, color-mix(in srgb, var(--dz-deep-accent) 14%, transparent) 34%, transparent 62%); }
/* grain: full-screen mix-blend-mode forced whole-page compositing every
   frame — plain low opacity reads the same and costs nothing */
body::after { mix-blend-mode: normal; opacity: 0.032; }
/* meter chips: per-element backdrop-filter re-blurs on every scroll frame */
.meter__mark { backdrop-filter: none; background: color-mix(in srgb, var(--ds-bg) 88%, transparent); }

/* THE wave-seam root cause: site.css resets `svg { max-width: 100% }`,
   which silently capped the 200%-wide tiling wave layers at viewport width —
   their right edges then swept through the screen as "sharp wave edges". */
.wave-div svg { max-width: none; }

/* ═══ BUILD 9 — uncovered blooms, denser center, flood foam, perf ═══════════ */
/* the blooming card must never be covered by the marquee that follows the
   viewport in the DOM (it was pulled up into the bottom headroom) */
.rail__viewport { position: relative; z-index: 3; }
/* center card: mostly solid tinted glass — readable, still watery */
.rail__card.is-center {
  background: color-mix(in srgb, color-mix(in srgb, var(--dz-deep-accent) 16%, var(--dz-deep)) 90%, transparent);
}
/* orbs breathe with opacity only — scaling huge soft layers costs GPU fill */
@keyframes orb-breathe {
  0%, 100% { opacity: 0.22; transform: none; }
  50% { opacity: 0.6; transform: none; }
}
/* the flood is no longer an empty expanse: foamy bubbles drift up through
   it as you scroll under (transform/opacity only; paused offstage with hero) */
.flood-foam {
  position: absolute; bottom: -40px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,0.95), rgba(250,246,239,0.5) 58%, transparent 72%);
  animation: flood-rise 11s linear infinite;
}
@keyframes flood-rise {
  0% { transform: translate(0, 0); opacity: 0; }
  8% { opacity: 0.9; }
  45% { transform: translate(14px, -52vh); }
  88% { opacity: 0.7; }
  100% { transform: translate(-10px, -118vh); opacity: 0; }
}
html[data-motion="calm"] .flood-foam { animation: none; opacity: 0.4; bottom: 30%; }

/* perf: gradient rotation repaints every frame — stepped rotation repaints
   ~7×/s and reads as a ticking shimmer; spot bubbles rise via transform
   (composited) instead of background-position (painted) */
.rail__card.is-center::before { animation: ring-spin 6s steps(40) infinite; }
.rail__card::after {
  inset: auto 0 -55% 0; height: 150%;
  background-position: 16% 88%, 52% 96%, 84% 90%;
  transition: opacity .4s;
}
.rail__card.is-center::after { animation: spot-rise 3.8s linear infinite; }
@keyframes spot-rise {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-78%); opacity: 0.2; }
}

/* ═══ BUILD 10 — no hard edge can survive a mask ════════════════════════════ */
/* the divider fades from nothing into the next section: a transparent→to
   gradient base plus a top-fade mask over EVERYTHING in it (waves, crest,
   foam) — horizontal lines and wave corners cannot exist by construction */
.wave-div {
  background: linear-gradient(to bottom, transparent, var(--wd-to) 84%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 62%);
  mask-image: linear-gradient(to bottom, transparent, #000 62%);
}
.wave-div__back { opacity: 0.28; }

/* build 11: full bottom headroom for the 2x bloom (origin center needs
   ~half a card height below) + nothing above may clip it */
.rail__viewport.is-sliding {
  padding-bottom: clamp(11rem, 26vh, 16rem);
  margin-bottom: calc(-1 * clamp(11rem, 26vh, 16rem));
}
