/* Small motion touches. All of it is off under reduced motion. */
.xp{position:fixed;left:0;top:0;height:2px;width:100%;background:var(--acc-mid);transform-origin:0 50%;transform:scaleX(0);z-index:999;pointer-events:none}

/* the logo mark draws itself once per visit */
html.x-draw .hd .logo .lp-mark path{stroke-dasharray:150;stroke-dashoffset:150;animation:x-draw 1.4s .15s cubic-bezier(.65,0,.35,1) forwards}
@keyframes x-draw{to{stroke-dashoffset:0}}

/* arrows in buttons and links nudge on hover */
.btn svg,.lk svg,a[class*="more"] svg{transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.btn:hover svg,.lk:hover svg,a[class*="more"]:hover svg{transform:translateX(3px)}
.btn{will-change:transform}

/* cards: soft tilt and a light that follows the pointer */
html.x-fine :is(.sv-card,.gx-a,.card,.mm-card){transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s}
html.x-fine :is(.sv-card,.gx-a,.card,.mm-card).x-on{transition:transform .08s linear,box-shadow .35s}
html.x-fine :is(.sv-card,.gx-a,.card,.mm-card){position:relative}
html.x-fine :is(.sv-card,.gx-a,.card,.mm-card)::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .3s;background:radial-gradient(420px circle at var(--mx,50%) var(--my,50%),rgba(20,88,182,.10),transparent 60%)}
html.x-fine .t-navy :is(.sv-card,.gx-a,.card,.mm-card)::after{background:radial-gradient(420px circle at var(--mx,50%) var(--my,50%),rgba(140,186,238,.16),transparent 60%)}
html.x-fine :is(.sv-card,.gx-a,.card,.mm-card).x-on::after{opacity:1}

/* phones in the journey float, a beat apart */
@keyframes x-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
html.x-ok .jr-ph{animation:x-float 6s ease-in-out infinite}
html.x-ok .jr li:nth-child(2) .jr-ph{animation-delay:-1.5s}
html.x-ok .jr li:nth-child(3) .jr-ph{animation-delay:-3s}
html.x-ok .jr li:nth-child(4) .jr-ph{animation-delay:-4.5s}

/* hero mockup follows the pointer a little */
html.x-fine .stage.st-home{transform:perspective(1400px) rotateX(var(--hx,0deg)) rotateY(var(--hy,0deg));transition:transform .6s cubic-bezier(.2,.8,.2,1);transform-style:preserve-3d}

/* booking card: the picked time moves along */
.bk-slots span,.bk-days span{transition:background .35s,color .35s,border-color .35s}

/* section headings rise in word by word */
html.x-ok .x-w{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.08em;margin-bottom:-.08em}
html.x-ok .x-w>span{display:inline-block;transform:translateY(105%);transition:transform .8s cubic-bezier(.2,.8,.2,1);transition-delay:calc(var(--i) * 45ms)}
html.x-ok .x-in .x-w>span{transform:none}

@media (prefers-reduced-motion:reduce){.xp{display:none}}

/* gentle floating on mockups (uses `translate`, so it never fights a layout transform) */
@keyframes x-bob{0%,100%{translate:0 0}50%{translate:0 -9px}}
@keyframes x-bob-tilt{0%,100%{translate:0 0;rotate:-.6deg}50%{translate:0 -10px;rotate:.6deg}}
html.x-ok .jr-ph{animation:x-bob 6s ease-in-out infinite}
html.x-ok .st-home .home-ph{animation:x-bob-tilt 7s ease-in-out infinite}
html.x-ok .wh-c .dv-ph{animation:x-bob 6.5s ease-in-out infinite}
html.x-ok .wh-c:nth-child(2) .dv-ph{animation-delay:-1.3s}
html.x-ok .wh-c:nth-child(3) .dv-ph{animation-delay:-2.6s}
html.x-ok .wh-c:nth-child(4) .dv-ph{animation-delay:-3.9s}
html.x-ok .wh-c:nth-child(5) .dv-ph{animation-delay:-5.2s}
html.x-ok .closer-b .bk,html.x-ok .cl-v .bk{animation:x-bob-tilt 8s ease-in-out infinite}

/* cards flip up into place as they arrive */
html.x-ok .x-rise{opacity:0;translate:0 34px;rotate:x 14deg;transform-origin:50% 100%;transition:opacity .7s ease,translate .9s cubic-bezier(.2,.8,.2,1),rotate .9s cubic-bezier(.2,.8,.2,1);transition-delay:calc(var(--d,0) * 90ms)}
html.x-ok .x-rise.x-in{opacity:1;translate:0 0;rotate:x 0deg}

/* screenshots inside cards ease out on hover */
.sv-card .sv-vis,.gx-a .gx-brw{transition:scale .6s cubic-bezier(.2,.8,.2,1)}
html.x-fine .sv-card:hover .sv-vis,html.x-fine .gx-a:hover .gx-brw{scale:1.03}
