/* Site polish layer: page transitions, custom cursor, magnetic CTAs, card hover sheen. Pairs with vendor/fx.js. */

/* 1. page transitions (cross-document View Transitions; browsers without support just navigate normally) */
@view-transition{navigation:auto}
.hdr,.z-hdr{view-transition-name:site-header}
::view-transition-old(root){animation:fxOut .22s ease both}
::view-transition-new(root){animation:fxIn .35s cubic-bezier(.23,1,.32,1) both}
@keyframes fxOut{to{opacity:0;transform:translateY(-8px)}}
@keyframes fxIn{from{opacity:0;transform:translateY(12px)}}
@media (prefers-reduced-motion:reduce){::view-transition-old(root),::view-transition-new(root),::view-transition-group(*){animation:none!important}}

/* branded loading bar (state classes set by fx.js) */
.fx-bar{position:fixed;left:0;top:0;width:100%;height:3px;z-index:2147483001;pointer-events:none;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,#1565C0,#7038FF);box-shadow:0 0 10px rgba(112,56,255,.55);opacity:0;transition:transform .45s cubic-bezier(.23,1,.32,1),opacity .35s ease .1s}
.fx-bar.is-on{opacity:1}
.fx-bar.is-instant{transition:none}
.fx-bar.is-creep{transition:transform 8s cubic-bezier(.1,.6,.2,1),opacity .2s}
.fx-bar.is-done{opacity:0}
@media (prefers-reduced-motion:reduce){.fx-bar,.fx-bar.is-creep{transition:opacity .2s}}

/* 2. custom cursor (only once fx.js adds .fx-cursor to <html>: pointer:fine and motion allowed) */
.fx-dot,.fx-ring{position:fixed;left:0;top:0;z-index:2147483000;pointer-events:none;border-radius:50%;translate:-50% -50%;opacity:0;transition:opacity .25s ease}
.fx-dot{width:6px;height:6px;background:#1565C0}
.fx-ring{width:34px;height:34px;border:1.5px solid rgba(21,101,192,.55);transition:opacity .25s ease,width .3s cubic-bezier(.23,1,.32,1),height .3s cubic-bezier(.23,1,.32,1),background-color .3s,border-color .3s}
.fx-cursor .fx-dot,.fx-cursor .fx-ring{opacity:1}
.fx-cursor.fx-hover .fx-ring{width:58px;height:58px;background:rgba(112,56,255,.08);border-color:rgba(112,56,255,.55)}
.fx-cursor.fx-text .fx-dot,.fx-cursor.fx-text .fx-ring,.fx-cursor.fx-out .fx-dot,.fx-cursor.fx-out .fx-ring{opacity:0}
/* on dark sections the ring inverts so it stays visible */
.fx-dot,.fx-ring{mix-blend-mode:normal}
.fx-cursor.fx-dark .fx-dot{background:#fff}
.fx-cursor.fx-dark .fx-ring{border-color:rgba(255,255,255,.6)}

/* 3. magnetic buttons move via the `translate` property (set in fx.js); ease the spring-back */
[data-fx-mag]{transition:translate .45s cubic-bezier(.23,1,.32,1),transform .35s cubic-bezier(.23,1,.32,1),box-shadow .35s ease,background-color .2s,filter .2s}

/* 4. card hover: lift where cards had none, plus a light sheen sweep on every card */
.ab-card{transition:transform .45s cubic-bezier(.23,1,.32,1),box-shadow .45s}
.ab-card:hover{transform:translateY(-6px);box-shadow:0 30px 50px -30px rgba(112,56,255,.45)}
.case-card,.ab-card,.ab-svc,.sv-steps li{overflow:hidden}
.case-card::after,.ab-card::after,.ab-svc::after,.sv-steps li::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.55) 50%,transparent 65%);translate:-120% 0;transition:translate 0s}
.case-card:hover::after,.ab-card:hover::after,.ab-svc:hover::after,.sv-steps li:hover::after{translate:120% 0;transition:translate .9s cubic-bezier(.23,1,.32,1)}
.case-card{position:relative}
@media (prefers-reduced-motion:reduce){.ab-card:hover{transform:none}.case-card::after,.ab-card::after,.ab-svc::after,.sv-steps li::after{display:none}}
/* 3D tilt (vendor/fx.js): smooth return, glare follows the cursor */
.fx-tilt{position:relative;transform-style:preserve-3d;will-change:transform;transition:transform .5s cubic-bezier(.23,1,.32,1),box-shadow .4s ease!important}
.fx-tilt.is-tilting{transition:transform .12s linear,box-shadow .4s ease!important;box-shadow:0 30px 50px -28px rgba(21,101,192,.55)}
.fx-tilt__glare{position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .4s ease;background:radial-gradient(circle at var(--gx,50%) var(--gy,50%),rgba(255,255,255,.35),transparent 55%);mix-blend-mode:soft-light;z-index:2}
.fx-tilt.is-tilting .fx-tilt__glare{opacity:1}
@media (prefers-reduced-motion:reduce){.fx-tilt{transform:none!important}}
/* hero subtitle: reads as a subtitle under the serif H1 (medium weight), balanced break, gradient highlight like other headings */
.hero .hero__loud{font-weight:500!important;letter-spacing:-.015em!important;text-wrap:balance;max-width:24ch;margin-left:auto;margin-right:auto}
.hero .hero__loud span{font-weight:600;background:linear-gradient(90deg,#1565C0,#7038FF);-webkit-background-clip:text;background-clip:text;color:transparent!important}
@media (min-width:900px){.hero .hero__loud{max-width:none}}
