/* PagePop WOW hero (M2). Scoped under html.wow; anything that moves sits in prefers-reduced-motion:no-preference. */

/* ---------- projector beam ---------- */
html.wow .wow-beamw{position:absolute;inset:-10% -20%;z-index:0;pointer-events:none;overflow:clip;opacity:0;transition:opacity .5s ease}
html.wow .wow-beamw--sec{inset:0}
/* desktop home: the beam spans the whole hero band, under the text column and the poster */
html.wow #top>.wow-beamw--hero{inset:0;z-index:0}
html.wow #top:has(>.wow-beamw--hero)>.wrap{position:relative;z-index:1}
html.wow .wow-beamw.wow-beam--on{opacity:1}
html.wow .wow-beam{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
html.wow #top .heroart>:not(.wow-beamw){position:relative;z-index:1}
html.wow #top .heroart>.heropop{position:absolute;z-index:2}
html.wow #top .heroart>.wow-eye{position:absolute;z-index:3}

/* static cone: reduced motion, lite devices, and WebGL loss */
html.wow .wow-beam--css::before{content:"";position:absolute;inset:0;opacity:.55;
 background:
  radial-gradient(circle at 90% 5%,rgba(244,238,249,.9),rgba(191,174,244,.55) 14px,rgba(123,47,255,.25) 70px,transparent 170px),
  conic-gradient(from 186deg at 90% 5%,transparent 0deg,rgba(67,97,238,.45) 12deg,rgba(123,47,255,.6) 24deg,rgba(191,174,244,.85) 33deg,rgba(123,47,255,.6) 42deg,rgba(67,97,238,.45) 54deg,transparent 66deg);
 -webkit-mask-image:radial-gradient(140% 120% at 90% 5%,#000 10%,rgba(0,0,0,.5) 45%,transparent 85%);
         mask-image:radial-gradient(140% 120% at 90% 5%,#000 10%,rgba(0,0,0,.5) 45%,transparent 85%)}
/* fade every edge of the layer so its box never shows */
html.wow .wow-beamw:not(.wow-beamw--sec):not(.wow-beamw--hero).wow-beam--css::before{
 -webkit-mask-image:linear-gradient(90deg,transparent,#000 24%,#000 94%,transparent),linear-gradient(180deg,transparent,#000 9%,#000 50%,transparent 96%);
 -webkit-mask-composite:source-in;
 mask-image:linear-gradient(90deg,transparent,#000 24%,#000 94%,transparent),linear-gradient(180deg,transparent,#000 9%,#000 50%,transparent 96%);
 mask-composite:intersect}
html.wow .wow-beamw--sec.wow-beam--css::before{
 background:
  radial-gradient(circle at 98% 0%,rgba(244,238,249,.8),rgba(191,174,244,.45) 16px,rgba(123,47,255,.2) 90px,transparent 220px),
  conic-gradient(from 218deg at 98% -4%,transparent 0deg,rgba(67,97,238,.4) 9deg,rgba(123,47,255,.55) 17deg,rgba(191,174,244,.75) 22deg,rgba(123,47,255,.55) 27deg,rgba(67,97,238,.4) 35deg,transparent 44deg);
 -webkit-mask-image:radial-gradient(120% 120% at 98% 0%,#000 12%,rgba(0,0,0,.45) 45%,transparent 80%);
         mask-image:radial-gradient(120% 120% at 98% 0%,#000 12%,rgba(0,0,0,.45) 45%,transparent 80%)}

/* desktop home fallback: the same long cone, lamp and angle written by JS as --wb-x/--wb-y/--wb-a */
html.wow .wow-beamw--hero.wow-beam--css::before{opacity:.9;
 background:
  radial-gradient(circle at var(--wb-x,99%) var(--wb-y,10%),rgba(244,238,249,.9),rgba(191,174,244,.55) 12px,rgba(123,47,255,.3) 70px,transparent 220px),
  conic-gradient(from calc(var(--wb-a,256deg) - 12deg) at var(--wb-x,99%) var(--wb-y,10%),transparent 0deg,rgba(67,97,238,.34) 3deg,rgba(123,47,255,.55) 8deg,rgba(191,174,244,.75) 12deg,rgba(123,47,255,.55) 16deg,rgba(67,97,238,.34) 21deg,transparent 24deg),
  conic-gradient(from calc(var(--wb-a,256deg) - 26deg) at var(--wb-x,99%) var(--wb-y,10%),transparent 0deg,rgba(123,47,255,.2) 12deg,rgba(123,47,255,.28) 26deg,rgba(123,47,255,.2) 40deg,transparent 52deg);
 -webkit-mask-image:radial-gradient(circle at var(--wb-x,99%) var(--wb-y,10%),#000 0,rgba(0,0,0,.85) 500px,rgba(0,0,0,.45) 1050px,transparent 1500px);
         mask-image:radial-gradient(circle at var(--wb-x,99%) var(--wb-y,10%),#000 0,rgba(0,0,0,.85) 500px,rgba(0,0,0,.45) 1050px,transparent 1500px)}

/* ---------- Pop eye glow ---------- */
html.wow .wow-eye{pointer-events:none;opacity:.4;mix-blend-mode:screen;
 background:
  radial-gradient(closest-side,rgba(191,174,244,.95),rgba(191,174,244,.35) 45%,transparent) 2% 18%/46% 76% no-repeat,
  radial-gradient(closest-side,rgba(191,174,244,.95),rgba(191,174,244,.35) 45%,transparent) 98% 18%/46% 76% no-repeat,
  radial-gradient(closest-side,rgba(156,134,240,.45),transparent) 50% 60%/100% 100% no-repeat}

/* ---------- pipeline strip ---------- */
html.wow .wow-pipe{position:relative;height:44px;min-height:44px;margin-top:22px;max-width:520px;overflow:clip;pointer-events:none;user-select:none;
 opacity:1 !important;transition:opacity .6s ease}
html.wow .wow-pipe svg{position:absolute;inset:0;width:100%;height:44px;overflow:visible}
html.wow .wow-pipe .wp-line{stroke:rgba(167,173,204,.25);stroke-width:1}
html.wow .wow-pipe .wp-ring{fill:#0b0f22;stroke:rgba(167,173,204,.38);stroke-width:1}
html.wow .wow-pipe .wp-dot{fill:#10B981;opacity:.6}
html.wow .wow-pipe .wp-tx{fill:#a7adcc;color:#a7adcc;font:600 12px/1 Assistant,"Assistant",system-ui,sans-serif;letter-spacing:.01em}
html.wow .wow-pipe .wp-track{position:absolute;top:13px;height:0;display:none}

@media (max-width:940px){
 html.wow .wow-pipe{max-width:none;width:100%}
}

@media (prefers-reduced-motion:no-preference){
 /* strip: three blue pulses run right to left, each node blinks mint as one arrives */
 html.wow:not(.wow-rm) .wow-pipe .wp-dot{opacity:0;animation:wow-wp-blink 1.2s linear infinite;
  filter:drop-shadow(0 0 4px rgba(16,185,129,.9))}
 html.wow:not(.wow-rm) .wow-pipe .wp-track{display:block}
 html.wow:not(.wow-rm) .wow-pipe .wp-pulse{position:absolute;inset:0;height:0;
  animation:wow-wp-run 3.6s linear infinite;will-change:transform}
 html.wow:not(.wow-rm) .wow-pipe .wp-pulse::before{content:"";position:absolute;inset-inline-start:-3px;top:-3px;width:6px;height:6px;border-radius:50%;
  background:#4361EE;box-shadow:0 0 0 2px rgba(67,97,238,.28),0 0 12px 3px rgba(67,97,238,.75);animation:wow-wp-fade 3.6s linear infinite;animation-delay:inherit}
 html.wow:not(.wow-rm) .wow-pipe .wp-pulse::after{content:"";position:absolute;inset-inline-end:calc(100% - 1px);top:-.5px;width:54px;height:1px;
  background:linear-gradient(270deg,rgba(67,97,238,0),rgba(67,97,238,.9));animation:wow-wp-fade 3.6s linear infinite;animation-delay:inherit}

 /* beam layers stay still for everyone; motion lives in the canvas */
 html.wow:not(.wow-rm) .wow-eye{animation:cfloat 6.5s ease-in-out infinite,wow-eye 2.4s ease-in-out infinite alternate;
  translate:var(--px,0) var(--py,0)}

 /* depth tilt (desktop, fine pointer): JS writes --rx/--ry, max 5deg */
 html.wow:not(.wow-rm) .heroart.wow-tilt{perspective:1100px}
 html.wow:not(.wow-rm) .heroart.wow-tilt>figure{transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));will-change:transform}
 html.wow:not(.wow-rm) .heroart.wow-tilt>.heropop{translate:var(--px,0) var(--py,0)}

 /* phones: a slow push-in on the poster while the hero scrolls away */
 @supports (animation-timeline: scroll(root)){
  @media (max-width:940px){
   html.wow:not(.wow-rm) #top .heroart>figure{animation:wow-push linear both;animation-timeline:scroll(root);animation-range:0 40vh}
  }
 }
}
@keyframes wow-wp-run{from{transform:translate3d(0,0,0)}to{transform:translate3d(-100%,0,0)}}
@keyframes wow-wp-fade{0%{opacity:0}5%{opacity:1}92%{opacity:1}100%{opacity:0}}
@keyframes wow-wp-blink{0%{opacity:1}35%{opacity:.08}100%{opacity:.08}}
@keyframes wow-eye{from{opacity:.4}to{opacity:1}}
@keyframes wow-push{from{transform:scale(1)}to{transform:scale(1.05)}}
