/* Still stage: every scene is a fixed layer; the document scroll only drives the animation, it is never seen. */
html{scrollbar-width:none}
html::-webkit-scrollbar,body::-webkit-scrollbar{display:none}
.scene > .pin,
.gate.stage > .pin,.gate.seq > .pin{position:fixed!important;inset:0!important;top:0!important;height:100svh!important;width:100%;overflow:hidden;transform-origin:50% 50%}
.scene::before{display:none!important}

/* scenes that used to be plain pages now hold still for a beat, their content centred and fitted to the screen */
.scene.screen{height:calc(100svh + 55vh)!important;min-height:0!important;padding:0!important;display:block!important}
.scene.screen > .pin{display:grid;align-items:center;justify-items:center}
.scene.screen > .pin > .fit{position:relative;z-index:2;width:100%;max-width:100%}
.scene.screen .gate-inner{padding:76px 24px 96px}
.scene.summary.screen .fit{padding:76px 24px 96px}

/* titles that rise out of the checkpoint bar keep their own width, so the flight lands on the words */
.gate h2 .ar{width:fit-content}
.gate-inner h2 .ar{margin-inline-start:0}
.stg-head h2 .ar{margin-inline:auto}

/* the chosen option on its way into the checkpoint bar */
.fly-pick{position:fixed;z-index:60;pointer-events:none;color:#fff;white-space:nowrap;text-align:center;transform-origin:50% 50%;text-shadow:0 6px 30px rgba(0,0,0,.6)}
.rail span{transform-origin:50% 50%}

/* the venue decision on one screen: the stand large, the options as compact rows beside it */
.scene.screen.venue .gate-inner{width:min(1440px,100%);display:grid;grid-template-columns:minmax(280px,.72fr) minmax(0,1.75fr);column-gap:34px;align-items:start;padding:70px 32px 92px}
.scene.screen.venue .gate-inner > *{grid-column:1}
.scene.screen.venue .vstage{grid-column:2;grid-row:1 / span 6;margin-top:0;height:min(72vh,660px)}
.scene.screen.venue h2 .ar{font-size:clamp(30px,3vw,48px)}
.scene.screen.venue .options{margin-top:20px;grid-template-columns:1fr;gap:8px}
.scene.screen.venue .opt{padding:11px 14px}
.scene.screen.venue .opt h3{margin:0;margin-inline-start:34px;font-size:18px}
.scene.screen.venue .opt .num{top:12px}
.scene.screen.venue .opt .city{margin:2px 0 0;margin-inline-start:34px;font-size:12px}
.scene.screen.venue .opt .desc,.scene.screen.venue .opt .watch,.scene.screen.venue .opt .use,.scene.screen.venue .opt dl div:nth-child(2){display:none}
.scene.screen.venue .opt dl{margin:4px 0 0;margin-inline-start:34px;font-size:12px}
.scene.screen.venue .gate-actions{margin-top:16px}
.scene.screen.venue .opt .city .en{display:none}
.scene.screen.venue .opt h3 .en{font-size:11px;margin-top:0}
.scene.screen.venue .opt{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:10px}
.scene.screen.venue .opt h3,.scene.screen.venue .opt .city{grid-column:1}
.scene.screen.venue .opt dl{grid-column:2;grid-row:1 / span 2;margin:0}
.scene.screen.venue .opt dl dt{display:none}
.scene.screen.venue .opt dd{font-size:14px;font-weight:600}

/* =================== stage 2 =================== */
/* the opening: black with the warm glow and the title, then the desert and sunrise come up under it */
#cover{height:220vh!important}
#cover .desert{position:absolute;inset:0;opacity:0}
#cover .desert svg{display:block;width:100%;height:100%}

/* Arabic only; English stays on the main titles and the budget lines */
.en{display:none!important}
h1 .en,h2 .en,.pool-note .en{display:block!important}
.kicker [lang=en],.div-n [lang=en],.keys .k,.vinfo > span[lang=en]{display:none!important}
.opt dl{direction:rtl;text-align:right}
.opt dd small,.sc-chips{font-family:var(--ar)}
.sc-watch,.watch,.vwarn{font-family:var(--ar);direction:rtl;text-align:right}
.opt .watch{font-size:12.5px}

/* creator posters sit higher so the lock button clears the bill at the bottom */
.gate.seq .gate-inner{padding:64px 24px 118px}
.gate.seq .pst-art{height:clamp(180px,32vh,360px)}
.gate.seq .options{margin-top:18px}
.pst-art img{height:98%;bottom:0}
.pst-ph{position:absolute;inset:14% 22% 0;display:grid;justify-items:center;align-content:end;gap:10px}
.pst-ph svg{width:72%;fill:rgba(255,255,255,.14)}
.pst-ph i{font-style:normal;font-size:12px;color:var(--muted);margin-bottom:16px}

/* the car show: each car's price above it */
.cs-move .cs-tag{inset:auto 0 calc(100% + 6px) 0;gap:0}
.cs-tag i{font-size:clamp(20px,1.9vw,28px);font-weight:700;order:-1}
.cs-tag b{font-size:16px;color:#555;font-weight:500}
.cs-total{font-family:var(--ar)}
/* a single car on its card */
.opt .stage.pair34.one img{width:70%}
/* the kashta follow-up gifts rise into place */
.kit-alt [class^=ka-]{translate:0 var(--ay,0px)}
.cs-tag i span{font-size:inherit;color:inherit;font-weight:inherit}
/* the car decision: four single cars on top, the two pairs and "something else" under them */
.gate[data-gate=a3] .options{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:22px}
.gate[data-gate=a3] .opt .stage{height:118px;padding-top:14px}
.gate[data-gate=a3] .opt .desc{font-size:13px;margin-top:6px}
.gate[data-gate=a3] .opt .watch{font-size:11.5px}
.rs-tag i{font-size:clamp(17px,1.5vw,22px);font-weight:700;color:var(--rent-2)}.rs-tag i span{font-size:inherit;color:inherit}
/* auto-play button, in the bill at the bottom */
.auto-btn{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.06);color:#fff;border-radius:99px;padding:5px 14px;font:inherit;font-size:12px;cursor:pointer;white-space:nowrap;transition:background-color .2s ease,border-color .2s ease,transform .16s ease-out}
.auto-btn span{font-family:var(--ar);font-size:12.5px}
.auto-btn:active{transform:scale(.96)}
.auto-btn.on{background:rgba(159,2,2,.55);border-color:rgba(255,120,110,.6)}
.auto-btn.held{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.4)}
.auto-btn{position:fixed;left:16px;bottom:84px;z-index:45;background:rgba(12,14,19,.72);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}

/* auto-play bar: play, then slower / speed / faster */
.auto-bar{position:fixed;left:16px;bottom:84px;z-index:45;display:flex;align-items:center;gap:6px;direction:ltr;padding:4px;border-radius:99px;background:rgba(12,14,19,.72);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.12)}
.auto-bar .auto-btn{position:static;backdrop-filter:none;-webkit-backdrop-filter:none}
.auto-bar .sp{width:28px;height:28px;border-radius:50%;border:1px solid rgba(255,255,255,.22);background:none;color:#fff;font-size:16px;line-height:1;cursor:pointer;transition:background-color .2s ease,transform .16s ease-out}
.auto-bar .sp:active{transform:scale(.92)}
@media (hover:hover){.auto-bar .sp:hover{background:rgba(255,255,255,.1)}}
.auto-bar .sp-v{min-width:34px;text-align:center;font-size:12px;font-weight:600;color:#fff}

/* the opening up to the budget plays in half the scroll (smooth at ×2 auto-play) */
#auto-ch{height:150vh!important}
#pool,#pool-both{height:170vh!important}

/* budget scenes: planned (right) and spent (left) count up in the middle, then step aside for what is left */
#pool,#rent-pool{height:280vh!important}
.bud-fig{position:absolute;left:50%;top:50%;z-index:3;display:grid;justify-items:center;gap:6px;text-align:center;white-space:nowrap;transform-origin:50% 50%}
.bud-fig .l .ar{font-size:clamp(18px,1.7vw,26px);color:var(--muted)}
.bud-fig .l .en{display:block!important;font-size:13px;margin-top:2px}
.bud-fig > b{font-family:var(--en);font-weight:300;font-size:clamp(64px,10vw,160px);letter-spacing:-.04em;line-height:1;font-variant-numeric:tabular-nums;color:#fff}
.bud-com{margin-top:10px;font-size:clamp(16px,1.4vw,22px);color:#f2c49c}
.bud-com b{font-family:var(--en);font-weight:500;font-variant-numeric:tabular-nums}

/* venue without the stand: the chosen car alone in the setting */
.vstand{height:62%!important;bottom:6%!important;aspect-ratio:auto!important;width:min(56%,720px)}
.vcar-solo{position:absolute;inset:0;display:grid;align-items:end;justify-items:center}
.vcar-solo img{position:relative;width:100%;height:100%;object-fit:contain;object-position:50% 100%;filter:drop-shadow(0 26px 22px rgba(0,0,0,.45))}
.vcar-solo i{position:absolute;left:12%;right:12%;bottom:-2%;height:12%;border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.55),transparent)}
/* the opening headline at a calmer size */
#cover .title .ar{font-size:clamp(42px,6.2vw,100px)}
#cover .title .en{font-size:clamp(12px,1.15vw,17px);letter-spacing:.36em;margin-top:clamp(16px,1.8vw,28px)!important}

/* the car decision: four cards, the car large on a light studio floor (its photo shadow sits naturally on it),
   then only the name and the price */
.gate[data-gate=a3] .options{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:28px}
.gate[data-gate=a3] .opt{padding-bottom:18px}
.gate[data-gate=a3] .opt .stage{height:clamp(170px,26vh,250px);padding:22px 12px 14px;align-items:center;background:radial-gradient(90% 75% at 50% 70%,#ffffff 0%,#f1f1ef 55%,#d9d8d3 100%)}
.gate[data-gate=a3] .opt .stage.pair34.one img{width:92%;max-height:100%;object-fit:contain;filter:drop-shadow(0 14px 14px rgba(0,0,0,.18))}
.gate[data-gate=a3] .opt .num{background:rgba(255,255,255,.85);color:#232424;border-color:rgba(0,0,0,.15);z-index:2}
.gate[data-gate=a3] .opt h3{margin-top:16px;font-size:24px}
.gate[data-gate=a3] .opt dl{margin-top:10px;font-size:15px}
.gate[data-gate=a3] .opt dd{font-size:18px;font-weight:600}
.gate[data-gate=a3] .opt dl div:nth-child(2),.gate[data-gate=a3] .opt .use,.gate[data-gate=a3] .opt .city,.gate[data-gate=a3] .opt .desc,.gate[data-gate=a3] .opt .watch{display:none!important}

/* venue ruled out by the main event (Where's the Key? happens in our Jeddah showroom) */
.gate.venue .opt.off{opacity:.3;filter:saturate(.2);pointer-events:none}
.key-note{margin:14px 0 0;padding:10px 14px;border-radius:12px;background:rgba(159,2,2,.22);border:1px solid rgba(255,120,110,.35);font-size:14px;color:#fff}

/* a mall's floor plan with the suggested spot for the activation, instead of the generic mall photo */
.vmap{position:absolute;inset:0;z-index:2;background:#f3f2ee;opacity:0;visibility:hidden;transition:opacity .8s ease,visibility .8s}
.vstage[data-env=map] .vmap{opacity:1;visibility:inherit}
.vstage[data-env=map] .vstand{opacity:0}
.vmap > div{position:absolute;inset:16px;margin:auto;height:calc(100% - 32px);max-width:calc(100% - 32px);aspect-ratio:950/976}
.vmap img{display:block;width:100%;height:100%;object-fit:contain}
.vpin{position:absolute;width:0;height:0}
.vpin i{position:absolute;left:-13px;top:-13px;width:26px;height:26px;border-radius:50%;background:var(--auto);box-shadow:0 0 0 6px rgba(159,2,2,.25)}
.vpin i::after{content:"";position:absolute;inset:-6px;border-radius:50%;border:2px solid var(--auto);animation:vpin 1.8s ease-out infinite}
@keyframes vpin{from{transform:scale(.6);opacity:1}to{transform:scale(2.2);opacity:0}}
.vpin b{position:absolute;left:20px;top:-14px;white-space:nowrap;background:#232424;color:#fff;font-size:13px;font-weight:600;padding:5px 10px;border-radius:8px}
[data-chapter=rental] .vpin i{background:var(--rent-2);box-shadow:0 0 0 6px rgba(25,39,101,.25)}
[data-chapter=rental] .vpin i::after{border-color:var(--rent-2)}
.venue-bg i[data-env=map]{filter:blur(10px) saturate(.6)}
.vstage[data-env=map] .vinfo{background:rgba(35,36,36,.85)}
@media (prefers-reduced-motion:reduce){.vpin i::after{animation:none}}
/* the Jeddah showroom at night (the signage sits just above the middle of the frame) */
i[data-env=show]{background-image:url('venue/showroom-jeddah-night.jpg')!important}
.venv i[data-env=show]{background-position:50% 62%!important}
.vstage[data-env=show] .vstand{height:44%!important;bottom:1%!important;width:min(42%,560px)}
/* venues show the setting only, no car */
.vstage .vstand{display:none!important}

/* Rent show, third unit: the kashta kit photo with the three gifts under it */
.rs-kit{position:relative;border-radius:22px;overflow:hidden;box-shadow:0 30px 60px -20px rgba(25,39,101,.45)}
.rs-kit > img{display:block;width:100%;aspect-ratio:1114/872;object-fit:cover}
.rs-gifts{position:absolute;left:4%;right:4%;bottom:4%;display:grid;grid-template-columns:repeat(3,1fr);gap:3%}
.rs-gifts img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:10px;border:3px solid #fff;box-shadow:0 10px 20px rgba(0,0,0,.35);background:#fff}
.rs-photo .rs-tag{z-index:3}
/* Rent prizes: card pictures and the quantity control for the kit */
.gate[data-gate=r3] .options{grid-template-columns:repeat(3,minmax(0,1fr))}
.opt .rimg{padding:0;height:170px;overflow:hidden}
.opt .rimg img{max-width:none;width:100%;height:100%;max-height:none;object-fit:cover}
.qty{display:flex;align-items:center;gap:10px;margin:12px 16px 0;padding:6px;border-radius:99px;border:1px solid rgba(255,255,255,.18);width:max-content}
.qty [data-q]{display:grid;place-items:center;font-style:normal;width:30px;height:30px;border-radius:50%;border:1px solid rgba(255,255,255,.3);background:none;color:#fff;font-size:17px;line-height:1;cursor:pointer;transition:background-color .2s ease,transform .16s ease-out}
.qty [data-q]:active{transform:scale(.9)}
@media (hover:hover){.qty [data-q]:hover{background:rgba(255,255,255,.12)}}
.qty b{min-width:34px;text-align:center;font-size:18px;font-weight:600;display:inline-block}
.qty span{font-size:13px;color:var(--muted)}

/* Rent show: the same soft ground shadow the Dzire photo carries, under the MG3 and the kashta unit */
.rs-car[data-car=mg3] .rs-move::after,.rs-photo .rs-move::after{content:"";position:absolute;z-index:-1;left:6%;right:6%;bottom:-3%;height:16%;border-radius:50%;background:radial-gradient(closest-side,rgba(60,64,78,.42),rgba(60,64,78,.18) 55%,transparent);filter:blur(4px)}
.rs-photo .rs-move::after{bottom:-6%;height:12%;left:4%;right:4%}
.rs-car[data-car=mg3] .rs-move::after{left:-2%;right:-2%;bottom:-9%;height:20%;background:radial-gradient(closest-side,rgba(45,50,66,.5),rgba(45,50,66,.22) 55%,transparent);filter:blur(6px)}
.rs-photo .rs-move::after{left:-2%;right:-2%;bottom:-10%;height:18%;background:radial-gradient(closest-side,rgba(45,50,66,.45),rgba(45,50,66,.2) 55%,transparent);filter:blur(6px)}
/* keep the ground shadow above the studio floor and under the car */
.rs-car[data-car=mg3] .rs-move::after,.rs-photo .rs-move::after{z-index:0}
.rs-move .rs-box{position:relative;z-index:1}
.rs-car[data-car=mg3] .rs-move::after{left:2%;right:2%;bottom:-5%;height:15%;background:radial-gradient(closest-side,rgba(28,32,46,.62),rgba(28,32,46,.3) 50%,rgba(28,32,46,0));filter:blur(3px)}
.rs-photo .rs-move::after{left:0;right:0;bottom:-7%;height:13%;background:radial-gradient(closest-side,rgba(28,32,46,.55),rgba(28,32,46,.25) 50%,rgba(28,32,46,0));filter:blur(3px)}
