/* Urban Worldwide — site motion ("Night drive"): title entrances on every page, gliding pills on every switch, Lineup vehicle-change transitions. */

/* 1. Hero title: letters arrive like passing cars, then a headlight glint sweeps the line */
.mx-w{display:inline-block;white-space:nowrap}
.mx-l{display:inline-block;opacity:0;transform:translate3d(.55em,0,0) skewX(-16deg);filter:blur(7px);will-change:transform,opacity,filter}
.mx-go .mx-l{animation:mx-in .95s cubic-bezier(.16,.84,.3,1) forwards;animation-delay:calc(var(--i) * 24ms + .2s)}
@keyframes mx-in{55%{filter:blur(0)}to{opacity:1;transform:none;filter:none}}
.mx-h1{position:relative}
.mx-glint{position:absolute;inset:0;pointer-events:none;color:#fff6e6!important;text-shadow:0 0 18px rgba(255,230,190,.95),0 0 46px rgba(240,207,154,.6);
  -webkit-mask-image:linear-gradient(100deg,transparent 40%,#000 50%,transparent 60%);mask-image:linear-gradient(100deg,transparent 40%,#000 50%,transparent 60%);
  -webkit-mask-size:300% 100%;mask-size:300% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:100% 0;mask-position:100% 0;opacity:0}
.mx-glint *{color:inherit!important}
.mx-glint .mx-l{opacity:1;transform:none;filter:none;animation:none!important}
.mx-go .mx-glint{animation:mx-glint 1.7s cubic-bezier(.45,0,.2,1) 1.25s forwards}
@keyframes mx-glint{0%{opacity:1;-webkit-mask-position:100% 0;mask-position:100% 0}88%{opacity:1}100%{opacity:0;-webkit-mask-position:0 0;mask-position:0 0}}

/* 2. Section titles: words rise out of the road */
.mx-wd{display:inline-block;overflow:hidden;vertical-align:bottom;padding:0 .04em .1em;margin:0 -.04em -.1em}
.mx-wi{display:inline-block;transform:translate3d(0,108%,0) rotate(5deg);transform-origin:0 100%;will-change:transform}


/* 3. Statement: the sentence lights up word by word as you scroll through it */
.mx-sw{transition:color .25s,opacity .25s;opacity:.18}
.mx-sw.on{opacity:1}

@media (prefers-reduced-motion:reduce){
  .mx-l,.mx-wi{opacity:1!important;transform:none!important;filter:none!important;animation:none!important;transition:none!important}
  .mx-glint{display:none}
  .mx-sw{opacity:1}
}

/* 4. Lineup switches: a pill that glides to the chosen option, and the new row of choices arriving one by one */
:where(.mx-sl){position:relative}.mx-sl{isolation:isolate}
.mx-pill{position:absolute;top:0;left:0;z-index:-1;border-radius:999px;pointer-events:none;transition:transform .55s cubic-bezier(.3,1.25,.45,1),width .55s cubic-bezier(.3,1.25,.45,1),opacity .3s}
.tabs.mx-sl .mx-pill{background:#eef4fb;box-shadow:0 8px 22px -10px rgba(238,244,251,.55)}
.mode.mx-sl .mx-pill{background:rgba(77,147,212,.28);box-shadow:inset 0 0 0 1px rgba(139,187,232,.25)}
.mx-sl .tab.on,.mx-sl .mode-b.on,.lx-models.mx-sl button[aria-pressed="true"]{background:transparent!important}
.lx-models.mx-sl .mx-pill,.chips.mx-sl .mx-pill{background:#fff;box-shadow:0 8px 22px -10px rgba(255,255,255,.5)}
.chips.mx-sl .chip.on{background:transparent!important}
.mx-sl .tab,.mx-sl .mode-b,.lx-models.mx-sl button,.chips.mx-sl .chip{transition:color .35s .1s,border-color .35s .1s}
.mx-in > button{animation:mx-chip .6s cubic-bezier(.16,.84,.3,1) both;animation-delay:calc(var(--k) * 45ms)}
@keyframes mx-chip{from{opacity:0;transform:translate3d(0,12px,0) scale(.96);filter:blur(4px)}to{opacity:1;transform:none;filter:none}}
.mx-in > .mx-pill{opacity:0;animation:mx-pill-in .4s .25s both}
@keyframes mx-pill-in{to{opacity:1}}
@media (prefers-reduced-motion:reduce){.mx-pill{transition:none}.mx-in > button,.mx-in > .mx-pill{animation:none}}

/* 5. Vehicle change: the spec card re-composes line by line; single changed lines (model switch) glide in */
.spec.mx-swap > *{animation:mx-spec .75s cubic-bezier(.16,.84,.3,1) both;animation-delay:calc(var(--k) * 80ms)}
.spec.mx-swap #vNum{animation:mx-num .8s cubic-bezier(.16,.84,.3,1) .05s both}
@keyframes mx-spec{from{opacity:0;transform:translate3d(0,16px,0);filter:blur(5px)}to{opacity:1;transform:none;filter:none}}
@keyframes mx-num{from{opacity:0;transform:translate3d(-18px,0,0) skewX(-10deg);filter:blur(6px)}to{opacity:1;transform:none;filter:none}}
.mx-pop{animation:mx-spec .6s cubic-bezier(.16,.84,.3,1) both}
#stage.mx-swap .veh:not([hidden]){animation:mx-veh .9s cubic-bezier(.16,.84,.3,1) both}
@keyframes mx-veh{from{opacity:0;transform:translate3d(6%,0,0) scale(.97);filter:blur(4px)}to{opacity:1;transform:none;filter:none}}
@media (prefers-reduced-motion:reduce){.spec.mx-swap > *,.spec.mx-swap #vNum,.mx-pop,#stage.mx-swap .veh{animation:none!important}}
