/* BARON R19 Motion FIX: readable, focused, RTL-safe cinematography. */
:root{--baron-motion:cubic-bezier(.2,.75,.18,1)}
/* The previous 50%-width pseudo doors move INWARDS under RTL and cover the actual car.
   This build never draws obscuring doors over hero media. */
.r08-cinema-stage [data-r08-slide]::before,.r08-cinema-stage [data-r08-slide]::after{display:none!important;content:none!important;animation:none!important}
.r08-cinema-stage{cursor:grab;touch-action:pan-y;isolation:isolate;min-height:clamp(410px,62vw,700px);height:min(73vh,760px);overflow:hidden}
.r08-cinema-stage:active{cursor:grabbing}
.r08-cinema-stage [data-r08-slide]{position:absolute;inset:0;overflow:hidden}
.r08-cinema-stage [data-r08-slide] .r08-picture{inset:0;width:100%;height:100%;transform:none!important;clip-path:none!important;overflow:hidden}
.r08-cinema-stage [data-r08-slide] .r08-slide-media{width:100%;height:100%;max-width:none;object-fit:cover;object-position:center;animation:none!important;transform:scale(1.035);transition:transform 6s ease,opacity .4s ease;will-change:auto}
.r08-cinema-stage [data-r08-slide].is-active .r08-slide-media{transform:scale(1)}
.r08-cinema-stage [data-r08-slide].is-active .r08-slide-caption{animation:none!important;opacity:1;filter:none!important;translate:none!important;transform:translateY(-42%)}
.r08-cinema-stage [data-r08-slide].is-active .r08-slide-caption > *{animation:baron-hero-text .72s var(--baron-motion) backwards}
.r08-cinema-stage [data-r08-slide].is-active .r08-slide-caption > :nth-child(2){animation-delay:.12s}
.r08-cinema-stage [data-r08-slide].is-active .r08-slide-caption > :nth-child(3){animation-delay:.2s}
.r08-cinema-stage [data-r08-slide].is-active .r08-slide-caption > :nth-child(4){animation-delay:.3s}
@keyframes baron-hero-text{from{opacity:0;transform:translateY(18px);filter:blur(5px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}
.r08-cinema-stage .r08-slide-wash{background:linear-gradient(90deg,rgba(4,10,17,.06),rgba(4,10,17,.25) 56%,rgba(4,10,17,.68)),linear-gradient(0deg,rgba(4,10,17,.42),transparent 33%)}
html[dir="ltr"] .r08-cinema-stage .r08-slide-wash{background:linear-gradient(270deg,rgba(4,10,17,.05),rgba(4,10,17,.25) 56%,rgba(4,10,17,.7)),linear-gradient(0deg,rgba(4,10,17,.42),transparent 33%)}
:root[data-theme="light"] .r08-cinema-stage .r08-slide-wash{background:linear-gradient(90deg,rgba(8,19,31,.06),rgba(8,19,31,.17) 52%,rgba(8,19,31,.58)),linear-gradient(0deg,rgba(8,19,31,.36),transparent 37%)}
.r08-cinema-stage .r08-slide-caption{z-index:3;text-shadow:0 2px 21px rgba(0,0,0,.38);width:min(45%,560px)}
.r08-cinema-stage .r08-slide-caption h1{font-size:clamp(2.35rem,5.7vw,5.55rem);letter-spacing:-.025em;line-height:1.1;overflow-wrap:break-word}
.r08-cinema-stage .r08-stage-controls{z-index:7;bottom:clamp(12px,2vw,27px)}
.r08-cinema-stage .r08-stage-controls button{width:44px;height:44px;border-radius:10px;background:rgba(3,12,24,.82);backdrop-filter:blur(6px);border:1px solid rgba(191,225,246,.5)}
.r08-cinema-stage .r08-stage-controls button:focus-visible{outline:3px solid #5cc9fa;outline-offset:3px}
.r08-cinema-stage .r08-side-mark{opacity:.72;pointer-events:none}
.r08-cinema-stage .r08-media-kind{pointer-events:none}
.r08-cinema .r08-progress-item.is-current{color:var(--ink)}
.r08-cinema .r08-progress-item{border-radius:8px;transition:background .3s,transform .3s var(--baron-motion),color .2s}
.r08-cinema .r08-progress-item:hover{background:rgba(23,144,205,.08);transform:translateY(-3px)}
/* Motion on sections only when JS IntersectionObserver actually attaches. */
.baron-motion-item{opacity:1;transform:none}
html.baron-motion-active .baron-motion-item:not(.is-revealed){opacity:0;transform:translateY(22px)}
html.baron-motion-active .baron-motion-item{transition:opacity .78s var(--baron-motion),transform .78s var(--baron-motion);transition-delay:var(--motion-delay,0ms)}
html.baron-motion-active .baron-motion-item.is-revealed{opacity:1;transform:translateY(0)}
/* Editorial hover and image treatment: controlled perspective, not a 180deg flip. */
:where(.page-showroom,.page-fleet,.page-car,.page-services,.page-about) :is(.r19-feature-card,.vehicle-tile,.r14-editorial-card,.r10-section-card,.baron-service-card){transition:transform .45s var(--baron-motion),border-color .35s,box-shadow .35s;transform-style:preserve-3d}
:where(.page-showroom,.page-fleet,.page-car,.page-services,.page-about) :is(.r19-feature-card,.vehicle-tile,.r14-editorial-card,.r10-section-card,.baron-service-card):hover{transform:perspective(1100px) translateY(-6px) rotateY(-1.5deg);box-shadow:0 16px 36px -24px rgba(0,139,218,.33)}
:where(.page-showroom,.page-fleet,.page-car) :is(.r19-feature-icon svg,.service-icon svg){transition:transform .55s var(--baron-motion)}
:where(.page-showroom,.page-fleet,.page-car) :is(.r19-feature-card,.service-tile):hover svg{transform:translateY(-2px) rotate(-9deg) scale(1.1)}
:where(.page-showroom,.page-fleet,.page-car) :is(.tile-visual img,.r19-gallery img,.r14-discovery-image img){transition:transform .85s var(--baron-motion)}
:where(.page-showroom,.page-fleet,.page-car) :is(.vehicle-tile,.r19-gallery a,.r14-discovery-image):hover img{transform:scale(1.045)}
:where(.page-showroom,.page-car) :is(.section-head h2,.r19-section-title h2,.r14-discovery h2){text-wrap:balance;line-height:1.13}
:where(.page-showroom,.page-car) a:focus-visible{outline:3px solid #28baff;outline-offset:4px}
@media(max-width:800px){
 .r08-cinema-stage{height:clamp(450px,72vh,675px);min-height:450px}
 .r08-cinema-stage .r08-slide-caption{inset-inline-start:5%;width:80%;max-width:560px;top:auto;bottom:95px;transform:none!important}
 .r08-cinema-stage [data-r08-slide].is-active .r08-slide-caption{transform:none!important}
 .r08-cinema-stage .r08-slide-caption h1{font-size:clamp(2.15rem,8vw,4rem)}
 .r08-cinema-stage .r08-slide-wash{background:linear-gradient(0deg,rgba(4,12,22,.85),rgba(4,12,22,.14) 80%)}
 .r08-cinema-stage .r08-stage-controls{inset-inline-start:auto;inset-inline-end:15px;bottom:14px}
 .r08-cinema-stage .r08-side-mark{display:none}
 .r08-cinema .r08-progress-list{max-height:270px}
}
@media(max-width:460px){
 .r08-cinema-stage{height:67svh;min-height:440px;max-height:610px}
 .r08-cinema-stage .r08-slide-caption{width:87%;bottom:89px}
 .r08-cinema-stage .r08-slide-caption h1{font-size:clamp(1.95rem,9vw,3.4rem);margin:14px 0}
 .r08-cinema-stage .r08-vehicle-meta{margin-bottom:17px}
 .r08-cinema-stage .r08-view-model{min-width:0;padding:10px 14px}
 .r08-cinema-stage .r08-stage-controls button{width:40px;height:40px}
 .r08-cinema .r08-scene-counter{font-size:8px;letter-spacing:.08em;gap:6px}
}
@media(prefers-reduced-motion:reduce){
 html.baron-motion-active .baron-motion-item{opacity:1!important;transform:none!important;transition:none!important}
 .r08-cinema-stage [data-r08-slide].is-active .r08-slide-caption > *{animation:none!important}
 .r08-cinema-stage [data-r08-slide] .r08-slide-media{transition:none!important;transform:none!important}
 :where(.page-showroom,.page-fleet,.page-car,.page-services,.page-about) :is(.r19-feature-card,.vehicle-tile,.r14-editorial-card,.r10-section-card,.baron-service-card):hover{transform:none!important}
}
/* Small screens: separate the car scene from the message so neither is covered. */
@media(max-width:600px){
 .r08-cinema-stage{height:clamp(600px,82svh,730px);min-height:600px;max-height:none;background:#081726}
 .r08-cinema-stage [data-r08-slide] .r08-picture{top:0;bottom:auto;height:58%;background:#172739}
 .r08-cinema-stage [data-r08-slide] > .r08-film{top:0;bottom:auto;height:58%;object-fit:cover}
 .r08-cinema-stage [data-r08-slide] .r08-slide-media{object-fit:cover;object-position:50% 60%}
 .r08-cinema-stage .r08-slide-wash{background:linear-gradient(0deg,rgba(4,11,21,.98) 0%,rgba(4,11,21,.97) 39%,rgba(4,11,21,.10) 65%,transparent 82%)!important}
 .r08-cinema-stage .r08-slide-caption{top:auto!important;bottom:76px!important;inset-inline-start:18px!important;width:calc(100% - 36px)!important;color:#f4f8fc!important;text-shadow:none}
 .r08-cinema-stage .r08-slide-caption h1{color:#fff!important;font-size:clamp(1.9rem,8.4vw,3.2rem)!important;line-height:1.15;margin:12px 0!important}
 .r08-cinema-stage .r08-caption-type{color:#7cd7ff!important}
 .r08-cinema-stage .r08-vehicle-meta{color:#d7ebf8!important;opacity:1;margin:12px 0!important;gap:7px 16px!important}
 .r08-cinema-stage .r08-view-model{width:max-content;max-width:100%;padding:11px 17px}
 .r08-cinema-stage .r08-stage-controls{bottom:12px;inset-inline-start:18px;inset-inline-end:auto}
 .r08-cinema-stage .r08-media-kind{top:16px!important;color:#fff!important;text-shadow:0 1px 7px #050c17}
}
/* Light theme uses the light stage sheet; labels must follow its contrast. */
@media(max-width:600px){
 :root[data-theme="light"] .r08-cinema-stage .r08-slide-caption{color:#08243d!important}
 :root[data-theme="light"] .r08-cinema-stage .r08-slide-caption h1{color:#08243d!important}
 :root[data-theme="light"] .r08-cinema-stage .r08-vehicle-meta{color:#174665!important}
 :root[data-theme="light"] .r08-cinema-stage .r08-caption-type{color:#005b8b!important}
}
