/* v4e PREVIEW: "Bottles above the water" — bottles static after fade-in (no parallax), soft glint, faint base ripples. The three real bottle cutouts at the top of the page, NOIR SPRINGS under them.
   The water video is framed so its horizon sits just under the bottle bases (JS measures it into --wly). */
:root{--vH:max(160vh,56.25vw);--vtop:calc(var(--wly,40vh) - .57 * var(--vH))}
.cs-bg{background:#030304 url(/media/v4/water-bg-poster.webp) no-repeat;background-size:auto var(--vH);background-position:center var(--vtop)}
.cs-video{top:var(--vtop);bottom:auto;height:var(--vH);object-fit:cover;object-position:center;scale:1.03;transition:opacity .4s ease}
/* veil: the black void above the water stays untouched (bottles live there); it deepens from the waterline down, where the text sits */
.cs-veil{background:linear-gradient(180deg,rgba(3,3,4,.15) 0,rgba(3,3,4,.15) calc(var(--wly,40vh) - 40px),rgba(3,3,4,.50) calc(var(--wly,40vh) + 60px),rgba(3,3,4,.58) calc(var(--wly,40vh) + 260px),rgba(3,3,4,.66) 100%)}

/* tighter top: the bottles open the page, the emblem is compact */
.cs{padding-top:22px}
.cs-mark{width:56px;height:56px;margin:0 auto 16px}

/* ---- stage (phones/tablets) ---- */
.v4-stage{--wl:56px;position:relative;height:calc(262px + var(--wl));max-width:420px;margin:0 auto 6px;pointer-events:none;z-index:-1;overflow-x:clip}
.v4-b{position:absolute;bottom:var(--wl);left:50%;height:var(--h);transform:translateX(var(--x))}
.v4-c{--h:262px;--x:-50%;--i:0;z-index:2}
.v4-l{--h:212px;--x:calc(-50% - 104px);--i:1;z-index:1}
.v4-r{--h:225px;--x:calc(-50% + 104px);--i:2;z-index:1}
.v4-rise{position:relative;height:100%;z-index:2}
/* smooth, serene entrance: fade up from 0 with a 12px settle, centre first, flanks 140 ms apart */
.v4-par{position:relative;height:100%;width:max-content;transform-origin:50% 100%;
  animation:v4-in 1.1s cubic-bezier(.22,.61,.36,1) backwards;animation-delay:calc(var(--i)*140ms + 200ms)}
@keyframes v4-in{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}
.v4-par img,.v4-refl img{display:block;height:100%;width:auto;-webkit-user-drag:none;user-select:none}
/* soft contact shadow where each bottle meets the water */
.v4-rise::after{content:"";position:absolute;left:-12%;right:-12%;bottom:-6px;height:14px;border-radius:50%;
  background:radial-gradient(closest-side,rgba(0,0,0,.75),transparent);pointer-events:none;z-index:-1;
  animation:v4-fade 1.1s ease both;animation-delay:calc(var(--i)*140ms + 200ms)}
/* reflection fading into the water */
.v4-refl{position:absolute;left:0;top:100%;width:max-content;height:46%;overflow:hidden;opacity:.24;
  -webkit-mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.35) 45%,transparent 92%);mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.35) 45%,transparent 92%)}
.v4-refl img{height:var(--h);transform:scaleY(-1);transform-origin:50% 0;translate:0 var(--h);filter:blur(1.2px);
  animation:v4-fade 1.3s ease both;animation-delay:calc(var(--i)*140ms + 320ms)}
@keyframes v4-fade{from{opacity:0}to{opacity:1}}
/* shared water plane: one canvas across the waterline, drawn by v4.js as a single height field with wave trains radiating
   from all three bases (they interfere and merge like one liquid surface). Lit from the wave slope in the video's own silver tint,
   soft multi-pixel crests, feathered to 0 alpha at every edge, bottle silhouettes cut out so the back of each ring sits behind the glass. */
.v4-water{--wb:22px;--wf:112px;position:absolute;left:50%;bottom:calc(var(--wl) - var(--wf));width:100%;height:calc(var(--wb) + var(--wf));
  translate:-50% 0;z-index:3;pointer-events:none;image-rendering:auto;filter:blur(.5px);opacity:0;transition:opacity 1.6s ease}
.v4-water.is-on{opacity:1}
/* faint mist drifting along the waterline */
.v4-mist{position:absolute;left:-4%;right:-4%;bottom:calc(var(--wl) - 30px);height:60px;pointer-events:none;z-index:3;
  background:radial-gradient(ellipse 50% 40% at 50% 50%,rgba(205,205,212,.08),transparent 72%);animation:v4-mist 9s ease-in-out infinite alternate}
@keyframes v4-mist{to{translate:3% 0;opacity:.7}}

/* metallic foil glint: specular band masked to each bottle's silhouette, sweeping every 6.5 s, invisible between sweeps */
.v4-glint{position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen;opacity:0;
  -webkit-mask:var(--m) center/100% 100% no-repeat;mask:var(--m) center/100% 100% no-repeat;
  background:linear-gradient(112deg,transparent 0 43%,rgba(236,214,166,0) 44%,rgba(236,214,166,.6) 49%,rgba(240,224,188,.8) 50%,rgba(236,214,166,.6) 51%,rgba(236,214,166,0) 56%,transparent 57% 100%);
  background-size:320% 100%;background-position:100% 0;
  animation:v4-glint 6.5s cubic-bezier(.45,.05,.35,1) infinite;animation-delay:calc(1.9s + var(--i)*.38s)}
.v4-l .v4-glint{--m:url(/media/v4/bottle-clear.webp);--gk:.17}
.v4-c .v4-glint{--m:url(/media/v4/bottle-mineral-v5.webp)}
.v4-r .v4-glint{--m:url(/media/v4/bottle-vita-v5.webp)}
@keyframes v4-glint{0%{background-position:100% 0;opacity:0}4%{opacity:var(--gk,.24)}18%{opacity:var(--gk,.24)}22%{background-position:0% 0;opacity:0}100%{background-position:0% 0;opacity:0}}

/* ---- desktop: same order, bottles sized up ---- */
@media (min-width:1100px){
  /* v4d: more air above the caps, bottles ~14% more compact, tighter rhythm so the card's form is above the fold at 1920x1080 */
  .cs{padding-top:40px}
  .v4-stage{--ch:clamp(240px,calc(28vh + 58px),380px);--wl:44px;height:calc(var(--ch) + var(--wl));max-width:720px;margin:0 auto 8px}
  .v4-c{--h:var(--ch)}
  .v4-l{--h:calc(var(--ch) * .84);--x:calc(-50% - var(--ch) * .52)}
  .v4-r{--h:calc(var(--ch) * .89);--x:calc(-50% + var(--ch) * .52)}
  .v4-mist{left:-8%;right:-8%;height:80px;bottom:calc(var(--wl) - 40px)}
  .v4-stage{overflow-x:visible}
  .v4-water{--wb:26px;--wf:150px;width:min(1240px,calc(100vw - 24px))}
  .cs-mark{width:56px;height:56px;margin-bottom:12px}
  .cs-line{margin-top:14px}
  .cs-rule{margin:18px auto 16px}
  .cs-join{margin-top:30px;padding:24px 26px 20px}
  .cs-join h2{margin-bottom:14px}
  .cs-form{gap:12px}
  .msg{min-height:18px;margin-top:8px}
}
/* reduced motion: bottles simply there, no sweep, no ripples, static water poster (cs.css hides the video) */
@media (prefers-reduced-motion:reduce){
  .v4-par,.v4-refl img,.v4-rise::after,.v4-mist{animation:none}
  .v4-glint,.v4-water{display:none}
}

/* text over the water: soft dark halo behind the giving paragraph */
.cs-give{position:relative}
.cs-give::before{content:"";position:absolute;inset:-40px -80px;z-index:-1;pointer-events:none;background:radial-gradient(closest-side,rgba(3,3,4,.9),rgba(3,3,4,.78) 50%,rgba(3,3,4,.4) 78%,transparent 100%)}
@media (max-width:640px){.cs-give::before{inset:-26px -18px}}
@media (min-width:641px) and (max-width:899px){.cs-give::before{inset:-30px -40px}}
/* card: a touch more solid toward the bottom so the small print stays >= 4.5:1 over the water glints */
.cs-join{background:linear-gradient(180deg,rgba(22,18,13,.74) 0%,rgba(10,8,6,.93) 30%,rgba(6,5,4,.975) 60%,rgba(6,5,4,.985) 100%)}
