/* PagePop WOW scenes (M7): curved video wall, team credits, deploy-log method, finale, aperture cut into #lead.
   Static final state is flat and scoped under html.wow; everything that moves is nested under html.wow:not(.wow-rm)
   inside prefers-reduced-motion:no-preference, so a browser without CSS nesting simply shows the static state. */

/* ---------- curved wall: phone reel (layout in both motion modes) ---------- */
@media (max-width:820px){
 html.wow .ads2.wow-wall{display:flex;gap:8px;overflow:auto hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;
  margin-inline:calc(-1*var(--pad,16px));padding:10px 12vw 22px;scroll-padding-inline:12vw;perspective:1000px}
 html.wow .ads2.wow-wall::-webkit-scrollbar{display:none}
 html.wow .ads2.wow-wall>.adv{flex:0 0 min(76vw,340px);scroll-snap-align:center}
}

/* ---------- static pieces ---------- */
html.wow .wow-spill,html.wow .wow-tpool,html.wow .wow-spotc,html.wow .wow-ap,html.wow .wow-fpop{pointer-events:none}
html.wow .wow-spill,html.wow .wow-ap{display:none}
html.wow .wow-tc .tm__ph img{position:relative;z-index:1}
html.wow .wow-tpool{position:absolute;inset:-20%;opacity:.55;background:radial-gradient(closest-side,rgba(191,174,244,.55),rgba(123,47,255,.25) 55%,transparent)}
html.wow .wow-nm,html.wow .wow-nm>span{display:block}
html.wow .tm.wow-tc::before{background:linear-gradient(90deg,transparent,#BFAEF4 22%,#BFAEF4 78%,transparent);opacity:.9;transform-origin:100% 50%}

/* deploy log */
html.wow .wow-st{position:absolute;top:46px;inset-inline-end:20px;width:26px;height:26px;z-index:2}
html.wow .wow-st>span{position:absolute;inset:0;border-radius:50%}
html.wow .wow-st__r{opacity:0;background:conic-gradient(rgba(191,174,244,0) 20%,#BFAEF4);
 -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2.5px));mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2.5px))}
html.wow .wow-st__c{display:grid;place-items:center;background:rgba(16,185,129,.16);box-shadow:0 0 0 1.5px rgba(16,185,129,.7) inset,0 0 16px -2px rgba(16,185,129,.7)}
html.wow .wow-st__c::after{content:"";width:4px;height:9px;margin-top:-3px;border:solid #10B981;border-width:0 3px 3px 0;border-radius:1px;transform:rotate(45deg)}
html.wow .wow-ready{position:absolute;top:calc(100% + 20px);inset-inline:0;margin-inline:auto;width:max-content;max-width:100%;
 display:flex;align-items:center;gap:10px;padding:6px 16px 6px 12px;border-radius:99px;font-weight:700;font-size:15px;line-height:1.3;color:#f4eef9;
 background:linear-gradient(90deg,rgba(16,185,129,.14),rgba(17,21,46,.92));box-shadow:0 0 0 1px rgba(16,185,129,.45) inset,0 14px 34px -18px rgba(16,185,129,.8)}
html.wow .wow-ready img{flex:none;width:auto;height:40px;margin-block:-8px -2px;filter:drop-shadow(0 6px 10px rgba(0,0,0,.5))}
html.wow .wow-ready::before{content:"";width:8px;height:8px;border-radius:50%;background:#10B981;box-shadow:0 0 0 4px rgba(16,185,129,.18);order:3}
@media (min-width:1001px){html.wow .wow-log .wow-ok::after{background:#10B981;box-shadow:0 0 0 4px rgba(16,185,129,.2),0 0 18px rgba(16,185,129,.9);z-index:3}}

/* finale spotlight */
html.wow .wow-spotc{position:absolute;inset:0;overflow:clip;z-index:0}
html.wow .wow-spot{position:absolute;inset:-60px;background:radial-gradient(42% 52% at 50% 40%,rgba(123,47,255,.34),rgba(67,97,238,.1) 55%,transparent 78%)}
html.wow .wow-fpop{position:absolute;top:50%;inset-inline-start:max(24px,calc(50% - 600px));width:auto;height:190px;margin-top:-95px;filter:drop-shadow(0 18px 34px rgba(0,0,0,.6))}
@media (max-width:1060px){html.wow .wow-fpop{display:none}}

@media (prefers-reduced-motion:no-preference){html.wow:not(.wow-rm){
 /* curved wall, desktop coverflow on the home grid */
 @media (min-width:1100px){
  .ads2.wow-wall{position:relative;perspective:1500px;perspective-origin:50% 45%}
  .wow-wall>.adv{transition:opacity .7s cubic-bezier(.2,.7,.3,1),transform 1s cubic-bezier(.2,.7,.2,1)}
  .wow-wall>.wow-wa{--wy:-1}
  .wow-wall>.wow-ws{transform:rotateY(calc(var(--wy,1)*40deg)) translate3d(0,26px,-200px)}
  .wow-wall>.wow-ws.in{transform:rotateY(calc(var(--wy,1)*22deg)) translateZ(-80px)}
  .wow-wall>.wow-ws.in:is(:hover,:focus-within){transform:rotateY(calc(var(--wy,1)*8deg)) translateZ(-24px)}
  .wow-wall>.wow-ws.in:has(.playing){transform:none}
  .wow-wall>.wow-ws::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;border-radius:inherit;opacity:.9;transition:opacity .6s;
   background:linear-gradient(90deg,rgba(8,11,22,0) 45%,rgba(8,11,22,.42))}
  .wow-wall>.wow-wb::after{background:linear-gradient(270deg,rgba(8,11,22,0) 45%,rgba(8,11,22,.42))}
  .wow-wall>.wow-ws:is(:hover,:focus-within,:has(.playing))::after{opacity:0}
  .wow-wall>.wow-wc{z-index:2}
  .wow-wall .wow-spill{display:block;position:absolute;left:50%;bottom:-46px;width:300px;height:92px;margin-left:-150px;z-index:0;border-radius:50%;
   filter:blur(18px);opacity:0;transform:scaleX(.6);background:radial-gradient(closest-side,rgba(123,47,255,.25),rgba(123,47,255,.12) 55%,transparent);
   transition:opacity 1.2s ease .35s,transform 1.2s cubic-bezier(.2,.7,.2,1) .35s}
  .wow-wall.wow-on .wow-spill{opacity:1;transform:none}
 }

 /* reels: phone home wall and /work/ strips; the JS writes --wk (0 centred, 1 at the edge) and --ws (side) */
 .wow-sreel>.adv{transition:opacity .25s linear}
 .pf-strip.wow-sreel{perspective:1300px}
 @media (max-width:820px){
  .wow-sreel>.adv{transform:rotateY(calc(var(--ws,1)*14deg*var(--wk,0))) scale(calc(1 - .12*var(--wk,0)))}
  .wow-sreel>.adv.in,.pf-strip.wow-sreel>.adv{opacity:calc(1 - .45*var(--wk,0))}
 }
 @media (min-width:821px){
  .pf-strip.wow-sreel>.adv{transform:rotateY(calc(var(--ws,1)*30deg*var(--wk,0))) translateZ(calc(-120px*var(--wk,0)));opacity:calc(1 - .4*var(--wk,0))}
 }

 /* team credits */
 .tm.wow-tc::before{transform:scaleX(0);transition:transform .6s cubic-bezier(.2,.7,.2,1) .15s}
 .wow-tc .tm__ph img{opacity:0;transform:scale(1.04);transition:opacity .9s ease .45s,transform 1.4s cubic-bezier(.2,.7,.2,1) .45s}
 .wow-tc .wow-tpool{opacity:0;transform:scale(.6)}
 .wow-tc.wow-on .wow-tpool{animation:wow-tpool 1.6s cubic-bezier(.2,.7,.2,1) .15s both}
 .wow-tc .wow-nm{overflow:clip;padding-block:.08em;margin-block:-.08em}
 .wow-tc .wow-nm>span{transform:translate3d(0,105%,0);transition:transform .7s cubic-bezier(.2,.7,.2,1) .55s}
 .tm.wow-tc.wow-on::before{transform:none}
 .wow-tc.wow-on :is(.tm__ph img,.wow-nm>span){opacity:1;transform:none}

 /* deploy log */
 .wow-log .wow-st__c{opacity:0;transform:scale(.55);transition:opacity .32s,transform .45s cubic-bezier(.3,1.6,.5,1)}
 .wow-log .wow-st__r{opacity:.35;transition:opacity .3s}
 .wow-log .wow-run .wow-st__r{opacity:1;animation:wow-spin .6s linear infinite}
 .wow-log .wow-ok .wow-st__r{opacity:0}
 .wow-log .wow-ready{opacity:0;transform:translate3d(0,10px,0);transition:opacity .5s,transform .6s cubic-bezier(.2,.7,.2,1)}
 .wow-log .wow-ok .wow-st__c,.wow-log.wow-done .wow-ready{opacity:1;transform:none}
 @media (min-width:1001px){
  .wow-log::after{content:"";position:absolute;inset-inline:10%;top:-2px;height:2px;z-index:2;pointer-events:none;
   background:linear-gradient(270deg,rgba(16,185,129,.35),#10B981 60%,rgba(16,185,129,.55));box-shadow:0 0 12px rgba(16,185,129,.7);
   transform:scaleX(0);transform-origin:100% 50%;transition:transform var(--wow-t,1.7s) linear .6s}
  .wow-log.wow-go::after{transform:none}
 }

 /* finale; the spotlight eases toward the pointer through this transition */
 .wow-spotc{opacity:0;transition:opacity 1.4s ease .1s}
 .wow-spot{transition:transform .9s cubic-bezier(.2,.7,.2,1)}
 #final.wow-on .wow-spotc{opacity:1}
 #final .wow-popin{opacity:0;transform:translate3d(90px,0,0);animation:none}
 #final.wow-on .wow-popin{opacity:1;animation:wow-popin 1.1s cubic-bezier(.2,.75,.25,1) .15s both,wow-bob 3.4s ease-in-out 1.25s infinite}

 /* aperture cut into #lead; sizes in cqw so the 140px phone version keeps the proportions */
 .wow-ap{display:block;position:absolute;top:0;left:50%;width:200px;height:200px;margin:-100px 0 0 -100px;z-index:3;container-type:size}
 @media (max-width:860px){.wow-ap{width:140px;height:140px;margin:-70px 0 0 -70px}}
 .wow-ap>*{position:absolute;inset:0;width:100%;height:100%;border-radius:50%}
 .wow-ap svg{clip-path:circle(48.5%)}
 .wow-ap__glow{inset:-2cqw;width:auto;height:auto;border:5cqw solid rgba(123,47,255,.25);opacity:.8;transition:opacity .9s}
 .wow-ap__ring{inset:.4cqw;width:auto;height:auto;border:.75cqw solid rgba(191,174,244,.7);transition:opacity .9s ease .3s}
 .wow-ap__bloom{inset:2cqw;width:auto;height:auto;background:radial-gradient(closest-side,#BFAEF4,rgba(191,174,244,0));opacity:0}
 .wow-bl{fill:url(#wowapg);stroke:#BFAEF4;stroke-width:1.4;stroke-linejoin:round;transform-box:view-box;transform-origin:200px 100px;
  transform:rotate(-8deg);transition:transform .9s cubic-bezier(.5,0,.2,1)}
 g:nth-of-type(2n) .wow-bl{fill-opacity:.92}
 .wow-open .wow-bl{transform:rotate(-90deg)}
 .wow-open :is(.wow-ap__ring,.wow-ap__glow){opacity:0}
 .wow-open .wow-ap__bloom{animation:wow-bloom .9s both}
 @supports (animation-timeline:view()){
  .wow-ap{view-timeline:--wowap block}
  .wow-bl{transition:none;animation:wow-blade linear both;animation-timeline:--wowap;animation-range:entry 50% cover 42%}
  :is(.wow-ap__ring,.wow-ap__glow){transition:none;animation:wow-fade linear both;animation-timeline:--wowap;animation-range:cover 25% cover 42%}
  .wow-ap__bloom{animation:wow-bloom linear both;animation-timeline:--wowap;animation-range:cover 15% cover 45%}
 }
}}

@keyframes wow-tpool{0%{opacity:0;transform:scale(.6)}45%{opacity:1;transform:scale(1.05)}to{opacity:.55;transform:none}}
@keyframes wow-spin{to{transform:rotate(1turn)}}
@keyframes wow-popin{from{opacity:0;transform:translate3d(90px,0,0)}to{opacity:1;transform:none}}
@keyframes wow-bob{0%,to{transform:translate3d(0,0,0)}50%{transform:translate3d(0,-4px,0)}}
@keyframes wow-blade{from{transform:rotate(-8deg)}to{transform:rotate(-90deg)}}
@keyframes wow-fade{to{opacity:0}}
@keyframes wow-bloom{50%{opacity:.6}}
