/* ===== FX layer: cursor, loader, transitions, tilt, theme toggle ===== */
/* loader */
#mhLoader{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:linear-gradient(168deg,#2b5f8f,#14335f 60%,#0d2447);transition:opacity .6s ease,visibility .6s}
#mhLoader.out{opacity:0;visibility:hidden;pointer-events:none}
#mhLoader .ml{font-family:var(--font-display);font-weight:800;font-size:clamp(3rem,12vw,6rem);letter-spacing:.04em;color:#fff;display:flex;gap:.02em;animation:mlPop .9s cubic-bezier(.2,.8,.3,1) both}
#mhLoader .ml i{font-style:normal;color:#bfe0f5}
#mhLoader .bar{position:absolute;bottom:34%;width:min(180px,40vw);height:2px;background:rgba(255,255,255,.18);overflow:hidden;border-radius:2px}
#mhLoader .bar::after{content:"";position:absolute;inset:0;background:#bfe0f5;transform:translateX(-100%);animation:mlBar 1.1s ease-in-out forwards}
@keyframes mlPop{from{opacity:0;transform:scale(.88);letter-spacing:.3em}to{opacity:1;transform:none;letter-spacing:.04em}}
@keyframes mlBar{to{transform:none}}
html.fx-noload #mhLoader{display:none}
/* page transition */
/* reveal variants */
.reveal.in{transition-delay:var(--rd,0s)}
.fields-grid .field-card,.grid .card{transition:transform .45s cubic-bezier(.2,.65,.3,1),border-color .45s,box-shadow .45s,opacity .8s}
/* cursor */
#fxCur,#fxDot{position:fixed;left:0;top:0;pointer-events:none;z-index:10000;opacity:0;transition:opacity .25s}
#fxCur{width:38px;height:38px;margin:-19px 0 0 -19px;border:1.5px solid rgba(234,246,255,.75);border-radius:50%;transition:width .25s,height .25s,margin .25s,background .25s,border-color .25s,opacity .25s;mix-blend-mode:normal}
#fxDot{width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:#eaf6ff}
html.fx-cur-on #fxCur,html.fx-cur-on #fxDot{opacity:1}
#fxCur.big{width:68px;height:68px;margin:-34px 0 0 -34px;background:rgba(191,224,245,.16);border-color:#bfe0f5}
#fxCur.down{width:28px;height:28px;margin:-14px 0 0 -14px}
html.fx-cur-on,html.fx-cur-on a,html.fx-cur-on button,html.fx-cur-on .card,html.fx-cur-on .field-card{cursor:none}
html.fx-cur-on input,html.fx-cur-on textarea,html.fx-cur-on select,html.fx-cur-on .lightbox,html.fx-cur-on .lightbox *{cursor:auto}
html.fx-cur-on .lightbox button,html.fx-cur-on .lightbox a{cursor:pointer}
/* hologram eagle page transition */
.fx-cover,html.fx-arriving::after{background:radial-gradient(55% 48% at 50% 50%,rgba(79,140,255,.38),transparent 72%),linear-gradient(168deg,#2b5f8f,#14335f 62%,#0d2447)}
.fx-cover{position:fixed;inset:0;z-index:99990;opacity:0;pointer-events:all;will-change:opacity}
html.fx-arriving::after{content:"";position:fixed;inset:0;z-index:99990;pointer-events:none;opacity:1}
html.fx-arriving.fx-clear::after{opacity:0;transition:opacity .5s ease}
.fx-fly{position:fixed;left:0;top:0;width:240px;height:130px;z-index:99995;pointer-events:none;will-change:transform,opacity;opacity:0}
.fx-fly svg{width:100%;height:100%;display:block;overflow:visible}
.fx-fly .eg-wl,.fx-fly .eg-wr2{transform-origin:114px 66px;animation:fxFlap .42s ease-in-out infinite alternate}
.fx-fly .eg-wr2{animation-direction:alternate}
@keyframes fxFlap{from{transform:rotate(-16deg)}to{transform:rotate(20deg)}}

.fx-cv{position:fixed;left:0;top:0;width:100vw;height:100vh;z-index:99995;pointer-events:none}
@media(max-width:820px){.fx-cover,.fx-cv,.fx-fly{display:none!important}html.fx-arriving::after{display:none!important}}
