/* Motion layer for version D. Only active when JS adds .js to <html>; everything is visible without it.
   Respects prefers-reduced-motion. */

/* ---------- Hero intro ---------- */
.js .gal img.float{animation:heroIn 1.3s cubic-bezier(.2,.7,.2,1) both,float 6s ease-in-out 1.3s infinite}
.js .gal .sh{animation:shIn 1.3s ease both,shadow 6s ease-in-out 1.3s infinite}
@keyframes heroIn{0%{opacity:0;transform:translateY(60px) scale(.92);filter:blur(10px)}100%{opacity:1;transform:none;filter:none}}
@keyframes shIn{0%{opacity:0;transform:scaleX(.4)}100%{opacity:.55;transform:none}}
.gal::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(105deg,transparent 38%,rgba(255,255,255,.65) 50%,transparent 62%);background-size:250% 100%;background-position:120% 0;opacity:0}
.js .gal::after{animation:sweep 1.8s .6s ease-out both}
@keyframes sweep{0%{opacity:1;background-position:120% 0}100%{opacity:0;background-position:-30% 0}}
.js .hero-in{opacity:0;transform:translateY(18px);animation:up .8s cubic-bezier(.2,.7,.2,1) forwards;animation-delay:var(--d,0s)}
@keyframes up{to{opacity:1;transform:none}}
.offer .del::before{animation:live 2s ease-out infinite}
@keyframes live{0%{box-shadow:0 0 0 0 rgba(34,197,94,.5)}70%{box-shadow:0 0 0 8px rgba(34,197,94,0)}100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}}
.offer .btn{position:relative;overflow:hidden}
.offer .btn::after{content:"";position:absolute;top:0;bottom:0;width:40%;left:-60%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.35),transparent);animation:btnshine 4.5s 2.2s ease-in-out infinite}
@keyframes btnshine{0%,70%{left:-60%}100%{left:130%}}

/* ---------- Scroll reveals ---------- */
.js .rv{opacity:0;transform:translateY(28px);transition:opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1);transition-delay:var(--d,0s)}
.js .rv.in{opacity:1;transform:none}
.js .journey li .ico{transform:scale(.6);opacity:0;transition:transform .5s cubic-bezier(.3,1.6,.5,1),opacity .4s;transition-delay:calc(var(--d,0s) + .15s)}
.js .journey li.in .ico{transform:none;opacity:1}
.js .st .art svg *{stroke-dasharray:400;stroke-dashoffset:400}
.js .st.in .art svg *{animation:draw 1.6s cubic-bezier(.4,0,.2,1) forwards;animation-delay:calc(var(--d,0s) + .2s)}
@keyframes draw{to{stroke-dashoffset:0}}
.js .meter .bar i{transform:scaleX(0);transform-origin:left;transition:transform 1.2s cubic-bezier(.2,.7,.2,1) .3s}
.js .pcard.in .meter .bar i{transform:none}
.js .rcard .stars i{transform:scale(0);transition:transform .35s cubic-bezier(.3,1.6,.5,1)}
.js .rcard.in .stars i{transform:none}
.js .rcard.in .stars i:nth-child(2){transition-delay:.06s}.js .rcard.in .stars i:nth-child(3){transition-delay:.12s}
.js .rcard.in .stars i:nth-child(4){transition-delay:.18s}.js .rcard.in .stars i:nth-child(5){transition-delay:.24s}
.close{background-size:160% 160%;animation:glow 9s ease-in-out infinite alternate}
@keyframes glow{0%{background-position:0% 0%}100%{background-position:100% 100%}}

/* ---------- Cinematic router section (Pocket-style, scroll-driven) ---------- */
.cine{position:relative;height:320vh;margin-top:40px}
.cine-sticky{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;padding:0 24px}
.cine-head{position:relative;height:118px;width:100%;max-width:900px;text-align:center;margin-bottom:26px}
.cine-head h2{position:absolute;inset:0;font-size:46px;font-weight:800;transition:opacity .6s ease,transform .6s ease}
.cine-head h2 span{display:block;color:var(--grey-2)}
.cine-head .t2{opacity:0;transform:translateY(20px)}
.cine.end .cine-head .t1{opacity:0;transform:translateY(-20px)}
.cine.end .cine-head .t2{opacity:1;transform:none}
.cine-stage{position:relative;width:100%;max-width:1120px;height:min(64vh,600px);background:var(--panel);border-radius:var(--radius-panel);perspective:1300px;overflow:hidden}
.cine-router{position:absolute;left:50%;top:50%;width:min(330px,40vh);aspect-ratio:830/1000;margin-left:calc(min(330px,40vh) / -2);translate:0 -52%;transform-style:preserve-3d;will-change:transform,filter,opacity;z-index:2}
.cine-router img{width:100%;height:100%;object-fit:contain}
.cine-router .sheen{position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.85) 50%,transparent 60%);background-size:300% 100%;background-position:var(--sheen,120%) 0;-webkit-mask:url(everyday-broadband.png) center/contain no-repeat;mask:url(everyday-broadband.png) center/contain no-repeat;mix-blend-mode:screen}
.cine-shadow{position:absolute;left:50%;bottom:9%;width:300px;height:30px;margin-left:-150px;background:radial-gradient(closest-side,rgba(1,12,58,.28),transparent);filter:blur(5px);z-index:1}
.cine-rings{position:absolute;left:50%;top:46%;width:0;height:0;z-index:0}
.cine-rings i{position:absolute;left:-80px;top:-80px;width:160px;height:160px;border-radius:50%;border:2px solid var(--orange);opacity:0}
.cine.end .cine-rings i{animation:ring 2.6s cubic-bezier(.2,.6,.3,1) infinite}
.cine.end .cine-rings i:nth-child(2){animation-delay:.85s}.cine.end .cine-rings i:nth-child(3){animation-delay:1.7s}
@keyframes ring{0%{transform:scale(.6);opacity:.7}100%{transform:scale(4.2);opacity:0}}
.cl{position:absolute;z-index:3;font:700 18px "Plus Jakarta Sans",sans-serif;color:var(--navy);opacity:0;transform:translateY(10px);transition:opacity .5s ease,transform .5s ease}
.cl small{display:block;font:500 14px "DM Sans",sans-serif;color:var(--grey);margin-top:2px}
.cl b{display:block;font-size:30px;font-weight:800;letter-spacing:-.02em;line-height:1}
.cl::before{content:"";position:absolute;top:14px;height:1.5px;width:0;background:var(--orange);transition:width .6s ease .15s}
.cl::after{content:"";position:absolute;top:11px;width:8px;height:8px;border-radius:50%;background:var(--orange);opacity:0;transition:opacity .3s ease .6s}
.cl.l{left:9%;text-align:left}.cl.r{right:9%;text-align:right}
.cl.l::before{left:calc(100% + 18px)}.cl.l::after{left:calc(100% + 18px + 96px)}
.cl.r::before{right:calc(100% + 18px)}.cl.r::after{right:calc(100% + 18px + 96px)}
.cl.t{top:22%}.cl.b{top:60%}
.cl.on{opacity:1;transform:none}
.cl.on::before{width:96px}.cl.on::after{opacity:1}
.cine-bar{position:absolute;left:50%;bottom:22px;width:120px;height:3px;margin-left:-60px;border-radius:9px;background:rgba(1,12,58,.1);overflow:hidden;z-index:3}
.cine-bar i{display:block;height:100%;width:calc(var(--p,0) * 100%);background:var(--orange)}
.cine-cta{margin-top:26px;display:flex;gap:18px;align-items:center;opacity:0;transform:translateY(10px);transition:opacity .5s ease .2s,transform .5s ease .2s}
.cine.end .cine-cta{opacity:1;transform:none}
.cine-cta span{font:600 15px "Plus Jakarta Sans",sans-serif;color:var(--grey)}

@media (max-width:900px){
  .cine{height:280vh}
  .cine-head{height:92px;margin-bottom:18px}
  .cine-head h2{font-size:29px}
  .cine-stage{height:min(62vh,520px);border-radius:22px}
  .cine-router{width:min(200px,30vh);margin-left:calc(min(200px,30vh) / -2)}
  .cine-shadow{width:180px;margin-left:-90px}
  .cl{font-size:13px}.cl b{font-size:22px}.cl small{font-size:12px}
  .cl::before,.cl::after{display:none}
  .cl.l{left:16px}.cl.r{right:16px}
  .cl.t{top:16px}.cl.b{top:auto;bottom:40px}
  .cine-cta{flex-direction:column;gap:10px}
}

/* ---------- No JS / reduced motion: show the end state, no scroll pinning ---------- */
html:not(.js) .cine,.reduce .cine{height:auto;padding:80px 0}
html:not(.js) .cine-sticky,.reduce .cine-sticky{position:relative;height:auto}
html:not(.js) .cl,.reduce .cl{opacity:1;transform:none}
html:not(.js) .cine-cta,.reduce .cine-cta{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .js .rv,.js .hero-in{opacity:1;transform:none;animation:none;transition:none}
  .js .gal img.float,.js .gal .sh,.js .gal::after,.close,.offer .btn::after,.offer .del::before{animation:none}
  .js .st .art svg *{stroke-dasharray:none;animation:none}
  .js .meter .bar i,.js .rcard .stars i,.js .journey li .ico{transform:none;opacity:1;transition:none}
}
