/* Site-wide motion: loader, page wipe, cursor ring, magnetic buttons, letter reveals, progress line.
   Three colours only. Everything here switches off under prefers-reduced-motion. */

/* loader + page wipe share one veil */
.fx-veil{position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:#262b5e;color:#e0dfe8;transform:translateY(0);transition:transform .8s cubic-bezier(.76,0,.24,1);pointer-events:all}
.fx-veil.out{transform:translateY(-101%);pointer-events:none}
.fx-veil.in-from-below{transform:translateY(101%);transition:none}
.fx-veil-mark{font-family:'Unbounded',system-ui,sans-serif;font-weight:900;font-size:clamp(48px,9vw,120px);letter-spacing:-.04em;line-height:1}
.fx-veil-mark .fx-ch{transform:translateY(110%)}
.fx-veil.show-mark .fx-veil-mark .fx-ch{transform:none}
.fx-veil-count{font-family:'Martian Mono',ui-monospace,monospace;font-size:12px;letter-spacing:.04em;opacity:.8}
.fx-veil-bar{width:min(240px,60vw);height:2px;background:rgba(224,223,232,.2);overflow:hidden;border-radius:2px}
.fx-veil-bar i{display:block;height:100%;width:0;background:#e0dfe8}
.fx-veil-mark{overflow:hidden;padding-bottom:.08em}

/* scroll progress */
.fx-progress{position:fixed;left:0;top:0;right:0;height:2px;z-index:40;background:#8a3fa0;transform-origin:0 50%;transform:scaleX(0);pointer-events:none}

/* cursor ring (fine pointers only) */
.fx-cursor{position:fixed;left:0;top:0;z-index:90;width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:50%;border:1.5px solid #262b5e;pointer-events:none;opacity:0;transition:width .3s cubic-bezier(.2,.7,.1,1),height .3s cubic-bezier(.2,.7,.1,1),margin .3s cubic-bezier(.2,.7,.1,1),background .3s,border-color .3s,opacity .3s}
.fx-cursor.on{opacity:.7}
.fx-cursor.hot{width:64px;height:64px;margin:-32px 0 0 -32px;background:rgba(138,63,160,.12);border-color:#8a3fa0}
.fx-cursor.text{opacity:0}
.fx-dot{position:fixed;left:0;top:0;z-index:91;width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:#8a3fa0;pointer-events:none;opacity:0;transition:opacity .3s}
.fx-dot.on{opacity:1}
.on-dark ~ .fx-cursor,.fx-cursor.light{border-color:#e0dfe8}

/* letter reveal */
[data-split] .fx-w{display:inline-block;white-space:nowrap}
[data-split] .fx-ch,.fx-veil-mark .fx-ch,.fx-wave .fx-ch{display:inline-block;will-change:transform}
[data-split] .fx-ch{transform:translateY(.6em) rotate(4deg);opacity:0;filter:blur(6px);transition:transform .8s cubic-bezier(.2,.7,.1,1),opacity .6s cubic-bezier(.2,.7,.1,1),filter .6s;transition-delay:calc(var(--i) * 22ms)}
.fx-lifted [data-split].fx-in .fx-ch,.fx-lifted .fx-in [data-split] .fx-ch{transform:none;opacity:1;filter:none}
/* cover the page until fx.js has put the veil up (no flash on load) */
.fx-loading body::before{content:"";position:fixed;inset:0;z-index:99;background:#262b5e}
.fx-veil-mark .fx-ch{transition:transform .9s cubic-bezier(.2,.7,.1,1);transition-delay:calc(var(--i) * 60ms)}

/* wordmark wave on hover */
.fx-wave:hover .fx-ch{animation:fx-wave .6s cubic-bezier(.2,.7,.1,1);animation-delay:calc(var(--i) * 45ms)}
@keyframes fx-wave{40%{transform:translateY(-.28em)}}

/* button ripple + magnetic */
.fx-ripple-host{position:relative;overflow:hidden;isolation:isolate}
.fx-ripple{position:absolute;border-radius:50%;background:rgba(224,223,232,.35);transform:scale(0);animation:fx-ripple .7s cubic-bezier(.2,.7,.1,1) forwards;pointer-events:none;z-index:-1}
@keyframes fx-ripple{to{transform:scale(1);opacity:0}}
.fx-mag{transition:transform .35s cubic-bezier(.2,.7,.1,1)}

@media (prefers-reduced-motion:reduce){
  .fx-veil,.fx-cursor,.fx-dot,.fx-progress{display:none!important}
  [data-split] .fx-ch{transform:none!important;opacity:1!important;filter:none!important}
}
