/* ===== Premium motion & 3D effects (shared) ===== */
:root{--fx-ease:cubic-bezier(.22,1,.36,1)}

/* Preloader */
.fx-pre{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;background:var(--dark,#1b1412);transition:opacity .7s var(--fx-ease),visibility .7s}
.fx-pre.gone{opacity:0;visibility:hidden}
.fx-pre-in{display:grid;justify-items:center;gap:18px}
.fx-pre img{height:70px;width:auto;animation:fxPulse 1.4s var(--fx-ease) infinite alternate}
.fx-pre span{display:block;width:160px;height:2px;background:rgba(255,255,255,.12);overflow:hidden;border-radius:2px}
.fx-pre span::after{content:"";display:block;height:100%;width:40%;background:var(--accent,#c8a27a);animation:fxLoad 1s ease-in-out infinite}
@keyframes fxPulse{from{opacity:.55;transform:scale(.96)}to{opacity:1;transform:scale(1)}}
@keyframes fxLoad{0%{transform:translateX(-100%)}100%{transform:translateX(260%)}}
.fx-off .fx-pre{display:none}
.fx-pre{animation:fxPreHide .01s 2.6s forwards}
@keyframes fxPreHide{to{opacity:0;visibility:hidden}}

/* Scroll progress */
.fx-progress{position:fixed;left:0;right:0;top:0;height:3px;z-index:1000;transform-origin:left;transform:scaleX(0);background:linear-gradient(90deg,var(--primary),var(--accent),var(--primary));pointer-events:none}

/* Reveal variants (3D) */
.fx-on .reveal.fx-up{transform:translateY(46px)}
.fx-on .reveal.fx-flip{transform:perspective(1100px) rotateX(16deg) translateY(50px) scale(.97);transform-origin:50% 100%}
.fx-on .reveal.fx-zoom{transform:scale(.9);clip-path:inset(8% 8% 8% 8% round 24px)}
.fx-on .reveal.fx-left{transform:perspective(1100px) translateX(-60px) rotateY(8deg)}
.fx-on .reveal.fx-right{transform:perspective(1100px) translateX(60px) rotateY(-8deg)}
.fx-on .reveal{transition:opacity 1s var(--fx-ease),transform 1.1s var(--fx-ease),clip-path 1.2s var(--fx-ease)}
.fx-on .reveal.in{transform:none;clip-path:inset(0 0 0 0 round 0)}

/* Word-by-word headlines */
.w-wrap{display:inline-block;overflow:hidden;vertical-align:bottom;padding-bottom:.08em;margin-bottom:-.08em}
.w-in{display:inline-block;transform:translateY(105%) rotate(4deg);transform-origin:0 100%;opacity:0;transition:transform .9s var(--fx-ease),opacity .6s}
.reveal.in .w-in,.hero-slide.is-active .w-in,.fx-ready .ph .w-in,.fx-ready .page-header .w-in,.fx-off .w-in{transform:none;opacity:1}
.sec-title .w-in{background:inherit;-webkit-background-clip:inherit;background-clip:inherit;color:inherit}

/* 3D tilt cards */
.fx-tilt{transform-style:preserve-3d;will-change:transform;transition:transform .5s var(--fx-ease),box-shadow .5s!important;position:relative}
.fx-tilt.is-tilting{transition:transform .08s linear,box-shadow .4s!important;box-shadow:0 40px 70px -30px rgba(30,8,5,.45)!important}
.fx-glare{position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:5;opacity:0;transition:opacity .4s;background:radial-gradient(circle at var(--gx,50%) var(--gy,50%),rgba(255,255,255,.32),transparent 55%);mix-blend-mode:soft-light}
.fx-tilt.is-tilting .fx-glare{opacity:1}
.fx-tilt.is-tilting .svc-ic,.fx-tilt.is-tilting .feat-ic,.fx-tilt.is-tilting .step-ic,.fx-tilt.is-tilting .spec-top span,.fx-tilt.is-tilting h3,.fx-tilt.is-tilting .pkg-price,.fx-tilt.is-tilting .status,.fx-tilt.is-tilting .room-ic,.fx-tilt.is-tilting .why-ic{transform:translateZ(40px)}
.fx-tilt .svc-ic,.fx-tilt .feat-ic,.fx-tilt .step-ic,.fx-tilt .spec-top span,.fx-tilt h3,.fx-tilt .pkg-price,.fx-tilt .status,.fx-tilt .room-ic,.fx-tilt .why-ic{transition:transform .5s var(--fx-ease)}

/* Magnetic */
.fx-mag{transition:translate .35s var(--fx-ease),transform .3s,background .3s,color .3s,box-shadow .3s!important}

/* Custom cursor */
.fx-dot,.fx-ring{position:fixed;left:0;top:0;z-index:10000;pointer-events:none;opacity:0;transition:opacity .3s}
.fx-cursor .fx-dot,.fx-cursor .fx-ring{opacity:1}
.fx-dot{width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:var(--primary)}
.fx-ring{width:36px;height:36px;margin:-18px 0 0 -18px;border-radius:50%;border:1.5px solid color-mix(in srgb,var(--primary) 55%,transparent);transition:width .35s var(--fx-ease),height .35s var(--fx-ease),margin .35s var(--fx-ease),background .3s,border-color .3s,opacity .3s}
.fx-ring.big{width:58px;height:58px;margin:-29px 0 0 -29px;background:color-mix(in srgb,var(--accent) 18%,transparent);border-color:var(--accent)}
.fx-ring.view{width:84px;height:84px;margin:-42px 0 0 -42px;background:rgba(255,255,255,.18);border-color:#fff;backdrop-filter:blur(2px)}
.fx-ring.view::after{content:"View";position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
@media (max-width:900px){.fx-dot,.fx-ring{display:none}}

/* Spotlight on dark sections */
.fx-spot{position:relative;isolation:isolate}
.fx-spot::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:radial-gradient(500px circle at var(--sx,50%) var(--sy,50%),color-mix(in srgb,var(--accent) 16%,transparent),transparent 60%);opacity:0;transition:opacity .5s}
.fx-spot:hover::before{opacity:1}
.fx-spot>*:not(.fx-shape):not(.cta-bg):not(.ph-bg){position:relative;z-index:1}

/* Floating 3D wireframe shapes */
.fx-shape{position:absolute;z-index:0;pointer-events:none;transform-style:preserve-3d;opacity:.5}
.fx-shape i{position:absolute;inset:0;border:1px solid color-mix(in srgb,var(--accent) 60%,transparent)}
.fx-shape.p0{top:12%;right:6%}.fx-shape.p1{bottom:10%;left:4%}.fx-shape.p2{top:18%;left:8%}.fx-shape.p3{bottom:14%;right:10%}
.fx-cube{width:70px;height:70px;animation:fxSpin 22s linear infinite}
.fx-cube i:nth-child(1){transform:translateZ(35px)}.fx-cube i:nth-child(2){transform:rotateY(180deg) translateZ(35px)}
.fx-cube i:nth-child(3){transform:rotateY(90deg) translateZ(35px)}.fx-cube i:nth-child(4){transform:rotateY(-90deg) translateZ(35px)}
.fx-cube i:nth-child(5){transform:rotateX(90deg) translateZ(35px)}.fx-cube i:nth-child(6){transform:rotateX(-90deg) translateZ(35px)}
.fx-pyr{width:80px;height:80px;animation:fxSpin 28s linear infinite reverse}
.fx-pyr i{border:0;width:0;height:0;border-left:40px solid transparent;border-right:40px solid transparent;border-bottom:70px solid color-mix(in srgb,var(--accent) 14%,transparent);transform-origin:50% 100%}
.fx-pyr i:nth-child(1){transform:rotateY(0) rotateX(20deg)}.fx-pyr i:nth-child(2){transform:rotateY(90deg) rotateX(20deg)}.fx-pyr i:nth-child(3){transform:rotateY(180deg) rotateX(20deg)}.fx-pyr i:nth-child(4){transform:rotateY(270deg) rotateX(20deg)}
.fx-ring3{width:90px;height:90px;animation:fxSpin 18s linear infinite}
.fx-ring3 i{border-radius:50%}
.fx-ring3 i:nth-child(2){transform:rotateY(60deg)}.fx-ring3 i:nth-child(3){transform:rotateY(120deg)}
@keyframes fxSpin{from{transform:rotateX(-20deg) rotateY(0)}to{transform:rotateX(-20deg) rotateY(360deg)}}
.fx-off .fx-shape{display:none}
@media (max-width:1023px){.fx-shape{display:none}}
/* zoom reveal must never push content wider than the screen */
.fx-on .reveal.fx-zoom{max-width:100%}

/* Image hover: subtle 3D lift */
.fx-on .ai-media img,.fx-on .it-img img,.fx-on .why-img img{transition:transform 1.2s var(--fx-ease),translate .2s linear}

/* Shimmer on primary buttons */
.fx-on .btn:not(.btn-outline):not(.btn-ghost)::after{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.35),transparent);transform:skewX(-20deg);transition:left .8s var(--fx-ease);pointer-events:none}
.fx-on .btn:hover::after{left:130%}

/* Animated gradient border on highlighted cards */
.fx-on .pkg.is-hl,.fx-on .pd-card.is-hl{border:2px solid transparent!important;background:linear-gradient(var(--dark),var(--dark)) padding-box,conic-gradient(from var(--fxa,0deg),var(--accent),var(--primary),var(--accent),var(--primary),var(--accent)) border-box!important;animation:fxRot 6s linear infinite}
@property --fxa{syntax:"<angle>";inherits:false;initial-value:0deg}
@keyframes fxRot{to{--fxa:360deg}}
