/* FX layer: replaces the flat "arrival" motion with varied scroll reveals, 3D flips, iris theme wipe, parallax. Additive; ChatGPT functionality untouched. */
:root{--fx-ease:cubic-bezier(.16,1,.3,1);--fx-spring:cubic-bezier(.34,1.56,.64,1)}
.fx [data-fx]{opacity:0;filter:blur(12px);transition:opacity .9s var(--fx-ease) var(--d,0s),filter .9s var(--fx-ease) var(--d,0s),translate 1.2s var(--fx-ease) var(--d,0s),scale 1.2s var(--fx-ease) var(--d,0s),rotate 1.2s var(--fx-ease) var(--d,0s),clip-path 1.3s var(--fx-ease) var(--d,0s)}
.fx [data-fx].in{opacity:1;filter:none;translate:0 0;scale:1;rotate:none;clip-path:inset(-60px)}
.fx [data-fx=up]{translate:0 56px}
.fx [data-fx=left]{translate:-72px 0}
.fx [data-fx=right]{translate:72px 0}
.fx [data-fx=zoom]{scale:.82;translate:0 44px}
.fx [data-fx=line]{clip-path:inset(0 100% 0 0);translate:-28px 0}
.fx [data-fx=flip]{rotate:1 0 0 -38deg;translate:0 72px;scale:.92;transform-origin:50% 100%}
.fx [data-fx=swing]{rotate:0 1 0 -55deg;translate:-44px 28px;transform-origin:0 50%}
.fx [data-fx=pop],.fx [data-fx=wave]{scale:.55;rotate:-7deg;translate:0 36px;transition-timing-function:var(--fx-spring)}
.fx [data-fx=wipe]{clip-path:inset(100% 0 0 0)}
.fx [data-fx=wipe] img{scale:1.32;transition:scale 1.8s var(--fx-ease) var(--d,0s)}
.fx [data-fx=wipe].in img{scale:1}
.fx [data-fx=iris]{clip-path:circle(0% at 50% 100%)}
.fx [data-fx=iris].in{clip-path:circle(150% at 50% 100%)}
.fx .achievement-grid,.fx .steps,.fx .contact-sheet{perspective:1500px}
/* headline words rise from a mask */
.fx .w{display:inline-block;overflow:hidden;vertical-align:top;padding:0 .06em .16em;margin:0 -.06em -.16em}
.fx .wi{display:inline-block;translate:0 120%;rotate:8deg;transform-origin:0 100%;transition:translate 1.05s var(--fx-ease) calc(var(--i)*55ms),rotate 1.05s var(--fx-ease) calc(var(--i)*55ms)}
.fx .fxw.in .wi{translate:0 0;rotate:0deg}
/* scroll-linked parallax */
.fx [data-px]{translate:0 calc(var(--p,0)*var(--k,0)*1px)}
.fx .hero-copy{translate:0 calc(var(--hs,0)*-52px)}
.fx .hero-visual{translate:0 calc(var(--hs,0)*40px)}
/* theme inversion: dark iris expands from the top while scrolling in */
.fx [data-inv]{position:relative;isolation:isolate}
.fx .appointment[data-inv],.fx footer[data-inv]{background:transparent!important}
.fx [data-inv]::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(900px 520px at 12% 0%,#17465f,transparent 62%),radial-gradient(700px 420px at 92% 100%,#10304a,transparent 60%),#091823;clip-path:circle(var(--r,0%) at 50% 0)}
.fx .appointment[data-inv] :where(h2,h3,.appointment-copy p,.appointment-person,.appointment-person *),.fx footer[data-inv] :where(a,p,span,b,strong,small,button,h3){transition:color .6s,text-shadow .6s}
.fx .appointment.inv-on .appointment-copy :where(h2,h3){color:#f3f8fc!important;text-shadow:0 1px 0 #0007,0 -1px 0 #9fd0f522!important}
.fx .appointment.inv-on .appointment-copy :where(p,span,small){color:#a9c4d6!important}
.fx .appointment.inv-on .appointment-person strong{color:#f3f8fc!important}
.fx .appointment.inv-on .appointment-emboss{color:#0f2e3e!important;text-shadow:0 1px 0 #ffffff17,0 -1px 0 #0009!important}
.fx footer.inv-on :where(a,p,span,b,strong,small,button,h3,li){color:#b3cbdb!important}
.fx footer.inv-on .brand,.fx footer.inv-on .brand b{color:#f0f8fd!important}

.fx .achievement[data-fx] .chapter-photo{scale:1.3;transition:scale 1.9s var(--fx-ease) var(--d,0s)}
.fx .achievement[data-fx].in .chapter-photo{scale:1}
.fx .achievement[data-fx] .chapter-text{opacity:0;translate:0 24px;transition:opacity .9s var(--fx-ease) calc(var(--d,0s) + .25s),translate 1s var(--fx-ease) calc(var(--d,0s) + .25s)}
.fx .achievement[data-fx].in .chapter-text{opacity:1;translate:0 0}
.fx .guide-cover[data-fx]{rotate:-6deg}
.fx footer.inv-on .brand-symbol{color:#1d5578!important}
.fx footer.inv-on .back-top{background:#ffffff1f!important;color:#e6f3fb!important;border-color:#ffffff33!important}
