/* Shared look of the flagship product pages: dark scroll stories.
   Scenes are tall sections with a sticky 100vh stage; GSAP ScrollTrigger scrubs
   image sequences rendered in Blender from REMED's own 3D models.
   Page-specific parts: syringes/luer-lock.css, cannulas/remed-cannula.css. */

.fl{background:#000;color:#f5f5f7}
.fl .wrap{max-width:980px}

/* Scenes */
.scene{position:relative}
.scene .sstage{position:sticky;top:0;height:100vh;height:100dvh;overflow:hidden}
.scene canvas{position:absolute;inset:0;width:100%;height:100%;display:block}

/* Hero copy over the first scene */
.hero-copy{position:absolute;left:0;right:0;top:clamp(84px,13vh,140px);text-align:center;z-index:2;pointer-events:none}
.hero-copy .eyebrow-name{font-size:clamp(19px,2vw,24px);font-weight:600;color:#a1a1a6;letter-spacing:.01em}
.hero-copy h1{margin-top:10px;font-size:clamp(46px,8.4vw,112px);font-weight:600;letter-spacing:-.02em;line-height:1}
.hero-copy h1 span{display:block}
.hero-copy h1 .dim{color:#6e6e73}
.js .hero-copy .in-1,.js .hero-copy .in-2,.js .hero-copy .in-3{opacity:0;filter:blur(14px);transform:translateY(18px)}
.hero-copy.ready .in-1,.hero-copy.ready .in-2,.hero-copy.ready .in-3{opacity:1;filter:none;transform:none;transition:opacity 1.2s cubic-bezier(.16,1,.3,1),filter 1.2s cubic-bezier(.16,1,.3,1),transform 1.4s cubic-bezier(.16,1,.3,1)}
.hero-copy.ready .in-2{transition-delay:.15s}
.hero-copy.ready .in-3{transition-delay:.3s}

/* Captions that appear beside the product while the scene plays */
.cap{position:absolute;z-index:2;max-width:300px;opacity:0;pointer-events:none}
.cap h3{font-size:clamp(24px,2.6vw,34px);font-weight:600;line-height:1.1}
.cap p{margin-top:8px;font-size:clamp(17px,1.5vw,19px);color:#a1a1a6;line-height:1.4}
.cap-l{left:max(24px,calc(50% - 470px));top:42%}
.cap-r{right:max(24px,calc(50% - 470px));top:42%;text-align:right}

/* Scene titles and labels pinned to the drawn image (positioned by JS) */
.parts-title,.scene-title{position:absolute;left:0;right:0;top:clamp(84px,14vh,150px);text-align:center;z-index:2;opacity:0;pointer-events:none}
.parts-title h2,.scene-title h2{font-size:clamp(40px,6vw,80px);font-weight:600;letter-spacing:-.015em;line-height:1.04}
.parts-title,.scene-title{padding:0 24px}
.parts-title p,.scene-title p{margin:14px auto 0;max-width:30em;font-size:clamp(17px,1.6vw,21px);color:#a1a1a6;font-weight:600}
.plabel{position:absolute;z-index:2;transform:translate(-50%,0);text-align:center;opacity:0;pointer-events:none;white-space:nowrap}
.plabel::before{content:"";display:block;width:1px;height:34px;margin:0 auto 10px;background:linear-gradient(#f7941d,rgba(247,148,29,0))}
.plabel b{display:block;font-size:clamp(17px,1.5vw,21px);font-weight:600}
.plabel span{display:block;margin-top:2px;font-size:14px;color:#86868b}

/* Word-by-word statement */
.words{padding:clamp(120px,18vh,220px) 0}
.words p{font-size:clamp(30px,4.4vw,56px);font-weight:600;line-height:1.12;letter-spacing:-.012em;max-width:17em}
.words .w{opacity:.16;transition:opacity .2s linear}
.words .hl{color:#f7941d}

/* Close-up */
.closeup{position:relative;height:110vh;overflow:hidden}
.closeup img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 40%;transform-origin:50% 40%}
.closeup .copy{position:absolute;left:max(24px,calc(50% - 560px));bottom:clamp(48px,12vh,140px);max-width:330px;z-index:2}
.closeup .copy h2{font-size:clamp(36px,4.8vw,64px);font-weight:600;line-height:1.05;letter-spacing:-.01em}
.closeup .copy p{margin-top:14px;font-size:clamp(17px,1.6vw,21px);color:#a1a1a6;font-weight:600;line-height:1.38}
.closeup::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.7),rgba(0,0,0,0) 55%);pointer-events:none}

/* Sizes with a spotlight (the spotlight shape is page-specific) */
.sizes{padding:clamp(100px,14vh,160px) 0 clamp(80px,10vh,120px);text-align:center}
.sizes h2{font-size:clamp(40px,6vw,80px);font-weight:600;letter-spacing:-.015em;line-height:1.04}
.sizes .sub{margin-top:14px;font-size:clamp(17px,1.6vw,21px);color:#a1a1a6;font-weight:600}
.lineup-wrap{position:relative;margin:clamp(24px,4vw,48px) auto 0;max-width:1400px}
.lineup-wrap img{width:100%;display:block}
.spot{position:absolute;inset:0;pointer-events:none}
.size-chips{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:8px;padding:0 16px}
.size-chips button{min-height:44px;padding:0 24px;border-radius:980px;border:1px solid #424245;color:#f5f5f7;font-size:17px;transition:border-color .2s,background-color .2s}
.size-chips button:hover{border-color:#86868b}
.size-chips button[aria-checked="true"]{border:2px solid #f7941d;padding:0 23px}
.size-read{margin-top:26px}
.size-read strong{display:block;font-size:clamp(56px,8vw,96px);font-weight:600;line-height:1;letter-spacing:-.02em}
.size-read span{display:block;margin-top:8px;color:#a1a1a6}

/* A product box, rendered from REMED's own 3D file */
.boxshot{padding:clamp(90px,12vh,140px) 0 clamp(40px,6vh,80px);text-align:center;border-top:1px solid #1d1d1f}
.boxshot h2{font-size:clamp(40px,6vw,80px);font-weight:600;letter-spacing:-.015em;line-height:1.04}
.boxshot .sub{margin-top:14px;font-size:clamp(17px,1.6vw,21px);color:#a1a1a6;font-weight:600}
.boxshot img{display:block;width:100%;max-width:1400px;margin:clamp(8px,2vw,24px) auto 0}

/* Numbers + specs on black */
.fl-numbers{padding:clamp(90px,12vh,140px) 0;border-top:1px solid #1d1d1f}
.fl-numbers h2{font-size:clamp(36px,5vw,64px);font-weight:600;letter-spacing:-.01em}
.fl-numbers .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;margin-top:56px}
.fl-numbers small{display:block;font-size:17px;font-weight:600;color:#a1a1a6}
.fl-numbers b{display:block;font-size:clamp(48px,6vw,80px);font-weight:600;line-height:1.05;letter-spacing:-.015em;white-space:nowrap}
.fl-numbers span{display:block;margin-top:6px;font-size:14px;color:#86868b}
.fl .spec{border-top-color:#2c2c2e}
.fl .spec p,.fl .spec li{color:#f5f5f7}
.fl .size-table th{color:#86868b}

@media (max-width:833px){
  .cap{max-width:none;left:24px;right:24px;text-align:center;top:auto;bottom:9vh}
  .cap-r{text-align:center}
  .plabel span{display:none}
  .plabel b{font-size:15px}
  .plabel::before{height:20px;margin-bottom:6px}
  .closeup{height:90vh}
  .closeup img{object-position:50% 30%}
  .closeup::after{background:linear-gradient(0deg,rgba(0,0,0,.85),rgba(0,0,0,0) 60%)}
  .closeup .copy{left:24px;right:24px}
  .fl-numbers .grid{grid-template-columns:1fr;gap:36px}
  .boxshot{overflow:hidden}
  .boxshot img{width:150%;max-width:none;margin-left:-25%}
}

/* A list set as type (serum formulas, the EXO+ range) */
.formulas{padding:clamp(100px,14vh,160px) 0;border-top:1px solid #1d1d1f}
.formulas h2{font-size:clamp(40px,6vw,80px);font-weight:600;letter-spacing:-.015em;line-height:1.04}
.formulas .sub{margin-top:14px;font-size:clamp(17px,1.6vw,21px);color:#a1a1a6;font-weight:600}
.f-grid{list-style:none;margin:clamp(40px,6vh,64px) 0 0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:0 32px}
.f-grid li{padding:22px 0 24px;border-top:1px solid #2c2c2e}
.f-grid b{display:block;font-size:clamp(22px,2.2vw,28px);font-weight:600;line-height:1.15;letter-spacing:-.005em}
.f-grid span{display:block;margin-top:6px;font-size:15px;color:#a1a1a6}
.f-grid small{display:block;margin-top:6px;font-size:13px;color:#86868b;line-height:1.4}
.f-grid li:target,.f-grid li.is-on{border-top-color:#f7941d}
.f-grid li.is-on b{color:#f7941d}
@media (max-width:833px){.f-grid{grid-template-columns:1fr 1fr;gap:0 20px}}

/* Reduced motion, or the animation library could not load: no sticky scrubbing, everything readable at once */
@media (prefers-reduced-motion:reduce){
  .scene{height:auto!important}
  .scene .sstage{position:relative;height:100vh}
  .cap,.parts-title,.scene-title,.plabel{opacity:1!important}
  .words .w{opacity:1}
}
.no-motion .scene{height:auto!important}
.no-motion .scene .sstage{position:relative;height:100vh}
.no-motion .cap,.no-motion .parts-title,.no-motion .scene-title,.no-motion .plabel{opacity:1!important}
.no-motion .cap-2,.no-motion .cap-3{display:none}
.no-motion .words .w{opacity:1}
