/* ClicSite Lab — night sky + motion layer (loaded after site.css / home.css on every ClicSite Lab page) */
:root{--fx-out:cubic-bezier(.23,1,.32,1);--fx-io:cubic-bezier(.77,0,.175,1)}

/* ---------- night sky replaces the red silk ---------- */
body{background:transparent}
.silk,.hero::before{display:none!important}
.phero__glow{background:linear-gradient(180deg,rgba(139,13,26,.16),transparent 60%)!important}
.fx-sky{position:fixed;inset:0;z-index:-1;width:100%;height:100%;pointer-events:none}
.fx-glow{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.fx-glow::before{content:"";position:absolute;inset:0 0 auto;height:60vh;background:linear-gradient(180deg,rgba(139,13,26,.16),rgba(139,13,26,.04) 55%,transparent)}
.fx-glow::after{content:"";position:absolute;inset:auto 0 0;height:45vh;background:linear-gradient(0deg,rgba(74,6,13,.18),transparent)}
.fx-glow i{position:absolute;top:-30%;height:160%;width:32vw;transform:rotate(18deg);
  background:linear-gradient(90deg,transparent,rgba(225,38,59,.035) 35%,rgba(255,90,105,.055) 50%,rgba(225,38,59,.035) 65%,transparent);
  animation:fxBeam 28s ease-in-out infinite alternate}
.fx-glow i:nth-child(1){left:-8vw}
.fx-glow i:nth-child(2){left:40vw;width:18vw;opacity:.6;animation-duration:33s;animation-delay:-11s}
.fx-glow i:nth-child(3){left:74vw;width:24vw;opacity:.75;animation-duration:24s;animation-delay:-17s}
@keyframes fxBeam{from{transform:translateX(-4vw) rotate(18deg)}to{transform:translateX(5vw) rotate(21deg)}}
@media (max-width:760px){.fx-glow i:nth-child(2){display:none}.fx-glow i{width:60vw}}

/* ---------- smooth scroll (Lenis, desktop only) ---------- */
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
.lenis.lenis-smooth [data-lenis-prevent]{overscroll-behavior:contain}
.lenis.lenis-stopped{overflow:clip}

/* ---------- responsive pictures keep the layout of a bare <img> ---------- */
picture.hd{display:contents}

/* ---------- split titles ---------- */
.fx-w{display:inline-block}

/* ---------- before / after phones float ---------- */
.fx-float{animation:fxFloat 6.5s ease-in-out infinite}
.fx-float--b{animation-duration:7.5s;animation-delay:-3s}
@keyframes fxFloat{0%,100%{translate:0 0;rotate:-.6deg}50%{translate:0 -10px;rotate:.6deg}}
@media (max-width:760px){@keyframes fxFloat{0%,100%{translate:0 0}50%{translate:0 -6px}}}

/* ---------- line drawn between the 4 steps ---------- */
.cs-steps.fx-line{position:relative}
.cs-steps.fx-line::before{content:"";position:absolute;z-index:0;left:var(--fx-l,0);top:var(--fx-t,0);width:var(--fx-w,0);height:var(--fx-h,2px);pointer-events:none;
  background:linear-gradient(var(--fx-dir,90deg),#8B0D1A,#E1263B 60%,#FF5A69);transform-origin:var(--fx-o,left center);
  transform:scale(var(--fx-sx,1),var(--fx-sy,1))}
.cs-steps.fx-line .cs-step{z-index:1}
.cs-steps.fx-line .cs-num{position:relative;z-index:1;scale:.82;opacity:.55;transition:scale .45s var(--fx-out),opacity .3s ease}
.cs-steps.fx-line .cs-step.fx-on .cs-num{scale:1;opacity:1}

/* ---------- counting prices ---------- */
.fx-count{font-variant-numeric:tabular-nums}

/* ---------- touch / press feedback ---------- */
.btn{transition:transform .3s var(--ease),background .25s,box-shadow .3s,color .25s,opacity .2s,scale .16s var(--fx-out)}
.btn:active{scale:.97}
.cs-chip span,.pf-card,.cs-q summary,.cs-link,.cs-phone--shot{transition-property:transform,box-shadow,background,color,scale;transition-duration:.25s,.3s,.25s,.25s,.16s;transition-timing-function:var(--fx-out)}
.cs-chip:active span,.pf-card:active,.cs-q summary:active,.cs-phone--shot:active{scale:.98}

@media (prefers-reduced-motion:reduce){
  .fx-glow i,.fx-float{animation:none}
  .cs-steps.fx-line .cs-num{transition:none}
}

/* ---------- glowing cursor (desktop, follows with a spring) ---------- */
.fx-cursor{position:fixed;left:0;top:0;z-index:600;pointer-events:none;opacity:0;transition:opacity .2s ease}
.fx-cursor.is-on{opacity:1}
.fx-cursor i,.fx-cursor b{position:absolute;left:0;top:0;border-radius:50%}
.fx-cursor i{width:6px;height:6px;margin:-3px 0 0 -3px;background:#FF5A69;box-shadow:0 0 10px 2px rgba(225,38,59,.8)}
.fx-cursor b{width:34px;height:34px;margin:-17px 0 0 -17px;border:1.5px solid rgba(255,90,105,.75);box-shadow:0 0 18px rgba(225,38,59,.35),inset 0 0 12px rgba(225,38,59,.25);transition:border-color .2s ease}
.fx-cursor.is-down b{border-color:#fff}

/* ---------- magnetic buttons + ripple ---------- */
.btn{overflow:hidden;transition:transform .3s var(--ease),background .25s,box-shadow .3s,color .25s,opacity .2s,scale .16s var(--fx-out),translate .25s var(--fx-out)}
.fx-ripple{position:absolute;z-index:-1;border-radius:50%;pointer-events:none;background:radial-gradient(closest-side,rgba(255,255,255,.45),rgba(255,255,255,0));animation:fxRipple .65s var(--fx-out) forwards}
@keyframes fxRipple{from{transform:scale(0);opacity:1}to{transform:scale(1);opacity:0}}

/* ---------- shine on the red words ---------- */
.fx-shine em{animation:fxShine 1.2s ease .05s 1}
@keyframes fxShine{0%,100%{filter:drop-shadow(0 0 18px rgba(225,38,59,.4)) brightness(1)}40%{filter:drop-shadow(0 0 34px rgba(255,90,105,.95)) brightness(1.5)}}

@media (prefers-reduced-motion:reduce){.fx-cursor,.fx-ripple{display:none}.btn{translate:none!important}}
