/* Selected A, lively version: background loops, pointer parallax, word-by-word H1, showroom parallax, card tilt,
   drawn eyebrow rules. Same copy, facts, CTAs and blocks as a-selected.html; everything here is motion only. */

/* ---------- Hero background loop (EL20 footage, darkened; text side darker) ---------- */
.ai-hero-a__video{position:absolute;inset:0;z-index:-2}
.ai-hero-a__video .ai-bgv{background:transparent}
.ai-hero-a__video .ai-bgv__poster,.ai-hero-a__video .ai-bgv__video{opacity:.55}
.ai-hero-a__video .ai-bgv[data-playing="true"] .ai-bgv__video{opacity:.55}
.ai-hero-a__video .ai-bgv::after{background:linear-gradient(90deg,rgb(11 12 14 / .96) 0%,rgb(11 12 14 / .88) 40%,rgb(11 12 14 / .55) 75%,rgb(11 12 14 / .7) 100%),linear-gradient(180deg,rgb(11 12 14 / .4),rgb(11 12 14 / 0) 30%,rgb(11 12 14 / 0) 70%,rgb(11 12 14 / .9))}
@media (max-width:1024px){.ai-hero-a__video .ai-bgv::after{background:linear-gradient(180deg,rgb(11 12 14 / .9) 0%,rgb(11 12 14 / .78) 55%,rgb(11 12 14 / .92) 100%)}}
.ai-hero-a__video .ai-bgv__btn{right:var(--ex-gutter);bottom:20px}
.ai-hero-a__video .ai-bgv__note{left:auto;right:calc(var(--ex-gutter) + 56px);bottom:34px}
@media (max-width:767px){.ai-hero-a__video .ai-bgv__note{display:none}}

/* ---------- Dealer / OEM band loop (scroll saw footage) ---------- */
.ai-lively .ai-b2b-sec{position:relative;isolation:isolate;overflow:hidden}
.ai-b2b-sec__video{position:absolute;inset:0;z-index:-1}
.ai-b2b-sec__video .ai-bgv::after{background:linear-gradient(180deg,rgb(11 12 14 / .9),rgb(11 12 14 / .72) 50%,rgb(11 12 14 / .92))}
.ai-b2b-sec__video .ai-bgv__btn{top:20px;bottom:auto;right:var(--ex-gutter)}
.ai-b2b-sec__video .ai-bgv__note{top:34px;bottom:auto;left:auto;right:calc(var(--ex-gutter) + 56px)}
@media (max-width:767px){.ai-b2b-sec__video .ai-bgv__note{display:none}}
.ai-lively .ai-b2b-sec .ai-b2b__card{background:radial-gradient(80% 90% at 0% 0%,rgb(32 42 51 / .92),rgb(17 22 27 / .92))}

/* ---------- Hero pointer parallax (individual translate, so GSAP's transform stays free) ---------- */
.ai-lively .ai-hero-a__machine{translate:calc(var(--px,0) * 14px) calc(var(--py,0) * 10px);transition:translate .7s var(--ex-ease)}
.ai-hero-a__pwrap{position:absolute;inset:0;z-index:-1;pointer-events:none;translate:calc(var(--px,0) * -12px) calc(var(--py,0) * -8px);transition:translate .9s var(--ex-ease)}
.ai-lively .ai-hero-a__spot{background:radial-gradient(48% 62% at calc(70% + var(--px,0) * 5%) calc(46% + var(--py,0) * 5%),#26313c 0%,#141a20 46%,var(--ex-black) 78%)}

/* ---------- H1: words rise out of a mask once the intro is done ---------- */
.ai-lively .ai-h1 .ai-w{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.08em;margin-bottom:-.08em}
.ai-lively .ai-h1 .ai-w > span{display:inline-block;transition:transform .6s var(--ex-ease) calc(var(--i,0) * 35ms)}
html.ai-motion:not(.ai-hero-go) .ai-lively .ai-h1 .ai-w > span{transform:translateY(110%)}

/* ---------- Showroom progress line ---------- */
.ai-show__progress{position:absolute;left:var(--ex-gutter);right:var(--ex-gutter);bottom:18px;height:2px;background:#232a31;pointer-events:none}
.ai-show__progress span{display:block;height:100%;background:var(--ex-red-300);transform:scaleX(0);transform-origin:left}

/* ---------- Card image tilt + sheen (fine pointer only; JS adds the class) ---------- */
.ai-tilt{transform:perspective(900px) rotateX(var(--ry,0deg)) rotateY(var(--rx,0deg));transition:transform .45s var(--ex-ease);transform-style:preserve-3d}
.ai-tilt__sheen{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .3s;background:radial-gradient(40% 40% at var(--mx,50%) var(--my,50%),rgb(255 255 255 / .14),transparent 70%);mix-blend-mode:screen}
.ai-tilt.is-hot .ai-tilt__sheen{opacity:1}

/* ---------- Eyebrow rules draw in (reversible) ---------- */
html.ai-motion .ai-lively .ai-eyebrow::before{transition:transform .8s var(--ex-ease);transform-origin:left}
html.ai-motion .ai-lively .ai-eyebrow:not(.is-in)::before{transform:scaleX(0)}

/* lively r0 fixes: pause control inside the first screen at every size (P2-L01); progress line clear of text (P2-L02) */
.ai-hero-a__video .ai-bgv__btn{top:16px;bottom:auto}
.ai-hero-a__video .ai-bgv__note{top:30px;bottom:auto}
.ai-show__progress{top:0;bottom:auto}
html:not(.ai-js) .ai-bgv__btn{display:none}
/* phones: keep the hero eyebrow clear of the pause button in the top-right corner */
@media (max-width:767px){.ai-lively .ai-hero-a .ai-eyebrow{padding-right:60px}}
/* progress line clear of the header's hairline (lively r0b P3-L08) */
.ai-show__progress{top:8px;height:3px}
/* the parallaxed hero machine must never sit over the pause control (lively r0e P2-L04) */
.ai-lively .ai-hero-a__machine{pointer-events:none}
/* the transparent hero grid box also overlapped the button's lower edge at 1440+; only its copy column takes pointer input */
.ai-lively .ai-hero-a__grid{pointer-events:none}
.ai-lively .ai-hero-a__copy > *{pointer-events:auto}
/* the price tag under the machine stays selectable (lively r0f P3-L12) */
.ai-lively .ai-hero-a__tag{pointer-events:auto}
