/* hero with the device scattered around the headline (preview 25-nov) */
.hero2{position:relative;height:clamp(560px,82vh,780px);overflow:hidden;display:flex;align-items:center;justify-content:center;text-align:center}
.hd-field{position:absolute;inset:0;pointer-events:none}
.hd{position:absolute;aspect-ratio:1;animation:hdfloat 7s ease-in-out infinite}
.hd img{width:100%;height:100%;object-fit:contain;transform:rotate(var(--r));filter:drop-shadow(0 26px 30px rgba(20,40,80,.22)) drop-shadow(0 6px 10px rgba(0,0,0,.18))}
@keyframes hdfloat{0%,100%{translate:0 0}50%{translate:0 -10px}}
.hero2-text{position:relative;z-index:2;max-width:680px;padding:90px 22px 30px}
.hero2 h1{color:var(--label);font-size:clamp(40px,6.4vw,84px);letter-spacing:-.04em;line-height:1.02}
.hero2 p{font-size:clamp(17px,1.6vw,21px);color:var(--label2);margin:20px auto 30px}
.hero2-cta{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.hero2-badge{display:inline-flex;align-items:center;gap:9px;font-size:13px;font-weight:600;padding:8px 14px 8px 12px;border-radius:999px;margin-bottom:24px;
  background:var(--glass);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:var(--rim),0 6px 18px rgba(20,40,80,.08)}
.hero2-badge i{width:8px;height:8px;border-radius:50%;background:#000}
/* the text sits on a soft white glow so devices behind never hurt reading */
.hero2-text::before{content:"";position:absolute;inset:-40px -80px;z-index:-1;background:radial-gradient(closest-side,rgba(246,248,252,.92),rgba(246,248,252,.6) 60%,transparent)}
.nav:not(.solid){color:var(--label)}
@media(max-width:700px){.hd{scale:.62}.hero2{height:auto;min-height:620px}.hd:nth-child(n+8){display:none}}
@media(prefers-reduced-motion:reduce){.hd{animation:none}}

/* the laser leaves from the sensor window (the small dark rectangle beside the four dots), straight out of that face.
   --p goes 0 → 1 as you scroll past the top: the beam grows, gets brighter, then fades away. */
.hero2{--p:0}
.hd.laser .beam{position:absolute;left:48.8%;top:64%;width:calc(3px + 4px * var(--p));height:calc(90px + 170px * var(--p));translate:-50% 0;border-radius:3px;
  background:linear-gradient(180deg,rgba(255,40,40,.95),rgba(255,40,40,.4) 70%,rgba(255,40,40,0));
  box-shadow:0 0 calc(10px + 18px * var(--p)) calc(1px + 3px * var(--p)) rgba(255,40,40,.45);
  opacity:clamp(0, calc((1 - var(--p)) * 2.4), 1)}
.hd.laser .beam::after{content:"";position:absolute;left:50%;bottom:-5px;width:calc(20px + 26px * var(--p));height:8px;translate:-50% 0;border-radius:50%;background:radial-gradient(rgba(255,60,60,.7),transparent 70%)}
.hd.laser .beam::before{content:"";position:absolute;left:50%;top:-3px;width:9px;height:6px;translate:-50% 0;border-radius:2px;background:rgba(255,70,70,.9);box-shadow:0 0 10px 3px rgba(255,40,40,.6)}

/* ---- cinematic scroll (25-nov): devices fly off, one clips onto a bench-press bar, the laser measures ---- */
.hero2.cine{display:block;height:340vh;overflow:visible;--a:0}
.cine-stage{position:sticky;top:0;height:100vh;min-height:560px;overflow:hidden;display:flex;align-items:center;justify-content:center;text-align:center}
.cine .hd{transform:translate(calc(var(--dx,0px) * var(--a)),calc(var(--dy,0px) * var(--a)));opacity:calc(1 - var(--a) * 1.15)}
.cine .hero2-text{opacity:calc(1 - var(--a) * 1.8);transform:translateY(calc(var(--a) * -50px)) scale(calc(1 - var(--a) * .08))}
.cine-gym{position:absolute;inset:0;opacity:0;pointer-events:none}
.cine-gym svg{width:100%;height:100%}
.cine-cap{position:absolute;left:0;right:0;top:92px;opacity:0;pointer-events:none;padding:0 20px}
.cine-cap h2{font-size:clamp(28px,4vw,50px);letter-spacing:-.03em}
.cine-cap p{margin:8px 0 0;font-size:clamp(15px,1.5vw,19px);color:var(--label2)}
.cine-hud{position:absolute;left:50%;bottom:28px;translate:-50% 0;display:flex;gap:10px;flex-wrap:wrap;justify-content:center;width:max-content;max-width:94vw;opacity:0;pointer-events:none}
.cine-hud span{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 18px;border-radius:18px;min-width:108px;background:var(--glass-thick);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);box-shadow:var(--rim),var(--lift)}
.cine-hud small{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--label2)}
.cine-hud b{font-size:19px;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
@media(max-width:700px){.cine-hud span{min-width:0;padding:8px 12px}.cine-hud b{font-size:15px}.cine-cap{top:76px}}
/* the 3D film, scrubbed by the scroll (frames from the product video). multiply = its white backdrop melts into the page */
.hero2.cine{height:620vh}
.cine-film{position:absolute;left:50%;top:50%;translate:-50% -50%;opacity:0;pointer-events:none;mix-blend-mode:multiply}
.cine-film{-webkit-mask-image:linear-gradient(180deg,transparent,#000 9%,#000 91%,transparent);mask-image:linear-gradient(180deg,transparent,#000 9%,#000 91%,transparent)}

/* 25-nov (v2): new 3D film with a transparent background — no blend, only a soft fade where the bar leaves the frame */
.hero2.cine{height:560vh}
.cine-film{mix-blend-mode:normal;-webkit-mask-image:linear-gradient(90deg,transparent,#000 14%);mask-image:linear-gradient(90deg,transparent,#000 14%)}
.cine-cap{top:auto;bottom:7vh}

/* less scrolling (25-nov) */
.hero2.cine{height:340vh}

/* phones (25-nov): the pinned stage is the height you really see, lighter shadows, no idle float */
@supports (height:100svh){.cine-stage{height:100svh}}
@media(max-width:820px){.cine .hd{animation:none}.hd img{filter:drop-shadow(0 10px 12px rgba(20,40,80,.22))}.cine-cap{bottom:5vh}}

/* phones (25-nov): the opening film is off — the hero is a normal screen that scrolls away */
.hero2.cine.nofilm{height:auto}
.hero2.cine.nofilm .cine-stage{position:relative}
.hero2.cine.nofilm .cine-film,.hero2.cine.nofilm .cine-cap{display:none}
