/* SUHAIL GT · the configurator. The car takes the whole screen; the options live in a dark glass dock at the
   bottom. Limestone, graphite and one cool blue (the star): not the ivory-and-copper of Dar Anbar, not the
   dark-and-gold of the earlier demos. */
:root {
  --stone: #EDE7DD; --paper: #F7F4EF; --ink: #15181C; --ink-2: #3A4048; --muted: #6B7178; --line: rgba(21,24,28,.1);
  --sky: #2F6FB3; --sky-d: #23578F; --glow: #8CC0FF; --night: #10141E;
  --glass: rgba(14,18,27,.62); --glass-line: rgba(255,255,255,.12); --w-2: rgba(255,255,255,.72); --w-3: rgba(255,255,255,.5);
  --ar: 'IBM Plex Sans Arabic', system-ui, sans-serif; --ar-display: 'Reem Kufi', 'IBM Plex Sans Arabic', sans-serif; --en: Manrope, system-ui, sans-serif;
  --gut: clamp(16px, 3vw, 48px);
  --ease: cubic-bezier(.2,.75,.2,1);
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--night); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { font-family: var(--ar); line-height: 1.6; overflow-x: hidden; background: var(--night); }
html[lang="en"] body { font-family: var(--en); }
a { color: inherit; }
button { font: inherit; color: inherit; }
bdi { unicode-bidi: isolate; }

/* --- loader: the star, on the night */
.loader { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 10px; background: var(--night); color: #fff; transition: opacity .8s, visibility .8s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader-star { width: 42px; height: 42px; fill: var(--glow); filter: drop-shadow(0 0 14px rgba(140,192,255,.8)); animation: twinkle 1.6s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(.78) rotate(45deg); opacity: .55; } }
.loader-name { font-family: var(--ar-display); font-size: 30px; }
.loader-line { width: 110px; height: 2px; background: rgba(255,255,255,.15); overflow: hidden; border-radius: 2px; }
.loader-line i { display: block; height: 100%; background: var(--glow); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .4s; }
html[dir="ltr"] .loader-line i { transform-origin: 0 50%; }

/* --- bar */
.bar { position: absolute; inset: 0 0 auto; z-index: 10; height: 72px; padding: 0 var(--gut); display: flex; align-items: center; justify-content: space-between; color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.star { width: 22px; height: 22px; fill: #fff; filter: drop-shadow(0 0 8px rgba(140,192,255,.9)); }
.brand-ar { font-family: var(--ar-display); font-size: 26px; font-weight: 600; }
.brand-en { font-family: var(--en); font-weight: 800; font-size: 12px; letter-spacing: .38em; opacity: .85; }
.bar-end { display: flex; align-items: center; gap: 8px; }
.lang, .snd { min-width: 40px; height: 36px; display: grid; place-items: center; border-radius: 18px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; text-decoration: none; font-family: var(--en); font-weight: 700; font-size: 14px; cursor: pointer; padding: 0 10px; }
html[lang="en"] .lang { font-family: var(--ar); font-size: 16px; }
.snd svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.snd path:first-child { fill: currentColor; fill-opacity: .2; }
.snd .w1, .snd .w2 { display: none; } .snd.on .w1, .snd.on .w2 { display: inline; } .snd.on .x { display: none; }
.snd.on { background: rgba(140,192,255,.25); border-color: var(--glow); }

/* --- the studio: the car fills the screen */
.studio { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: var(--night); }
.stage { position: absolute; inset: 0; touch-action: pan-y; }
canvas#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.still { display: none; }
.stage::before { content: ''; position: absolute; inset: 0 0 auto; height: 180px; pointer-events: none; z-index: 1; background: linear-gradient(rgba(8,11,18,.38), rgba(8,11,18,0)); }
.stage::after { content: ''; position: absolute; inset: auto 0 0; height: 260px; pointer-events: none; z-index: 1; background: linear-gradient(rgba(8,11,18,0), rgba(8,11,18,.5)); }

/* the small title, top (the giant name behind the car is the headline) */
.head { position: absolute; z-index: 3; top: 82px; right: var(--gut); color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.35); transition: opacity .8s, transform .9s var(--ease); }
.kick { font-size: 12.5px; font-weight: 700; color: var(--glow); }
html[lang="en"] .kick { letter-spacing: .16em; text-transform: uppercase; font-size: 11px; }
h1 { font-family: var(--ar-display); font-weight: 600; font-size: clamp(24px, 2vw, 32px); line-height: 1.3; }
html[lang="en"] h1 { font-family: var(--en); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; }
.intro .head { opacity: 0; transform: translateY(-10px); }

.saying { position: absolute; left: 50%; bottom: 40px; translate: -50% 0; z-index: 3; white-space: nowrap; font-family: var(--ar-display); font-weight: 600; font-size: clamp(22px, 2.2vw, 34px); color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.45);
  clip-path: inset(0 0 0 100%); transition: clip-path 1.6s var(--ease), opacity .6s; }
html[dir="ltr"] .saying { clip-path: inset(0 100% 0 0); font-family: var(--en); font-weight: 600; letter-spacing: -.01em; }
.typed .saying { clip-path: inset(0 0 0 0); }
.studio:not(.intro) .saying { opacity: 0; }
.skip { position: absolute; left: var(--gut); bottom: 30px; z-index: 4; padding: 8px 16px; border-radius: 18px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; font-size: 13px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .4s; }
.intro .skip { opacity: 1; pointer-events: auto; }

/* the launch button (top, beside the title's other side) and the speedometer */
.go { position: absolute; left: var(--gut); top: 84px; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 7px 18px 7px 7px; border-radius: 40px; border: 1px solid var(--glass-line); cursor: pointer;
  background: var(--glass); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 12px 30px -12px rgba(0,0,0,.6); transition: transform .3s var(--ease), opacity .5s, background .3s; }
html[dir="rtl"] .go { padding: 7px 7px 7px 18px; }
.go-k { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--sky); font-weight: 700; font-size: 14px; animation: pulse 2.4s ease-out infinite; }
.go-v { font-family: var(--en); font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.go-v small { font-size: 12px; font-weight: 600; opacity: .7; }
.go:hover { transform: translateY(-2px); background: rgba(14,18,27,.8); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(140,192,255,.6); } 70%, 100% { box-shadow: 0 0 0 16px rgba(140,192,255,0); } }
.intro .go, .launching .go { opacity: 0; pointer-events: none; transform: translateY(-8px); }
.speedo { position: absolute; z-index: 3; left: 50%; top: 16%; translate: -50% 10px; text-align: center; color: #fff; pointer-events: none; opacity: 0; transition: opacity .35s, translate .35s var(--ease); text-shadow: 0 4px 30px rgba(0,0,0,.45); }
.launching .speedo { opacity: 1; translate: -50% 0; }
.speedo-n { font-family: var(--en); font-weight: 800; font-size: clamp(90px, 11vw, 170px); line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.speedo-u { font-family: var(--en); font-weight: 700; font-size: 16px; letter-spacing: .3em; opacity: .75; }
html[lang="ar"] .speedo-u { font-family: var(--ar); letter-spacing: 0; }
.speedo-t { margin-top: 6px; font-family: var(--en); font-weight: 700; font-size: 20px; color: var(--glow); }
.hit .speedo-n { color: var(--glow); animation: hit .5s var(--ease); }
@keyframes hit { 40% { transform: scale(1.12); } }
.launching .dock, .launching .head { opacity: .15; }

/* a drop of paint, carried to the car */
.blob { position: fixed; left: 0; top: 0; z-index: 80; width: 56px; height: 56px; border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%; pointer-events: none;
  background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.75), rgba(255,255,255,0) 32%), var(--c); box-shadow: 0 12px 26px -8px rgba(0,0,0,.55), inset 0 -6px 12px rgba(0,0,0,.25); transition: scale .25s var(--ease); }
.blob.over { scale: 1.3; }
.blob.splash { transition: transform .45s var(--ease), opacity .45s, scale .45s; scale: 2.6; opacity: 0; }
.blob.back { transition: transform .4s var(--ease), opacity .4s; opacity: 0; }
.drop-hint { position: absolute; left: 0; top: 0; z-index: 4; padding: 6px 14px; border-radius: 16px; background: var(--glass); color: #fff; font-size: 13px; white-space: nowrap; pointer-events: none; opacity: 0; translate: -50% 0; transition: opacity .2s; }
.dropping .drop-hint { opacity: 1; }
.drop-over .drop-hint { background: var(--sky); }
.dropping canvas#gl { cursor: copy; }

/* --- the dock: dark glass at the bottom; the steps as tabs, one tray open, the price and the booking at the end */
.dock { position: absolute; z-index: 5; left: 50%; bottom: 20px; translate: -50% 0; width: min(1180px, calc(100% - 2 * var(--gut)));
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; color: #fff;
  border-radius: 26px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2); transition: transform 1s var(--ease), opacity .8s; }
.intro .dock { transform: translateY(calc(100% + 40px)); opacity: 0; }
.dock-main { padding: 12px 20px 16px; min-width: 0; }
.tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.tabs button { display: flex; align-items: baseline; gap: 7px; padding: 6px 12px; border: 0; border-radius: 14px; background: none; color: var(--w-3); font-size: 14px; font-weight: 600; cursor: pointer; transition: color .2s, background .2s; position: relative; }
.tabs button i { font-style: normal; font-family: var(--en); font-weight: 800; font-size: 10.5px; letter-spacing: .06em; opacity: .7; }
.tabs button:hover { color: #fff; }
.tabs [aria-selected="true"] { color: #fff; background: rgba(255,255,255,.08); }
.tabs [aria-selected="true"] i { color: var(--glow); opacity: 1; }
.tabs [aria-selected="true"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -2px; height: 2px; border-radius: 2px; background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.trays { min-height: 52px; }
.tray { display: flex; align-items: center; gap: 18px; animation: trayIn .45s var(--ease); }
.tray[hidden] { display: none; }
@keyframes trayIn { from { opacity: 0; transform: translateY(6px); } }
.opt-name { font-size: 14px; font-weight: 600; color: #fff; line-height: 1.35; }
.opt-name span { display: block; font-size: 12px; font-weight: 500; color: var(--w-3); }
.opt-name small { display: block; font-size: 11.5px; font-weight: 500; color: var(--w-3); margin-top: 2px; }
.paints { display: flex; gap: 10px; touch-action: none; }
.paints button { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 0; cursor: grab; padding: 0; background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.6), rgba(255,255,255,0) 40%), var(--c);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), inset 0 -4px 8px rgba(0,0,0,.25), 0 3px 10px rgba(0,0,0,.35); transition: transform .3s var(--ease), box-shadow .3s; }
.paints button:hover { transform: translateY(-4px) scale(1.08); }
.paints button:active { cursor: grabbing; }
.paints [aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), inset 0 -4px 8px rgba(0,0,0,.25), 0 0 0 3px rgba(14,18,27,.9), 0 0 0 5px var(--glow); }
.wheels { display: flex; gap: 8px; }
.wheels button { display: flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 30px; border: 1px solid var(--glass-line); background: rgba(255,255,255,.05); cursor: pointer; transition: border-color .2s, background .2s; color: var(--w-2); }
html[dir="rtl"] .wheels button { padding: 5px 5px 5px 14px; }
.wheels img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; transition: transform .8s var(--ease); }
.wheels button:hover img, .wheels [aria-checked="true"] img { transform: rotate(-60deg); }
.wheels span { font-size: 12px; line-height: 1.35; max-width: 130px; }
.wheels [aria-checked="true"] { border-color: var(--glow); background: rgba(140,192,255,.12); color: #fff; }
.mood { display: grid; grid-template-columns: auto minmax(160px, 320px) auto; align-items: center; gap: 12px; font-size: 12.5px; color: var(--w-2); }
.mood input { -webkit-appearance: none; appearance: none; height: 8px; border-radius: 8px; background: linear-gradient(90deg, #f1b66a, #c9845a 45%, #3b3f73 75%, #141a33); outline-offset: 4px; }
html[dir="rtl"] .mood input { background: linear-gradient(270deg, #f1b66a, #c9845a 45%, #3b3f73 75%, #141a33); }
.mood input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4), inset 0 0 0 5px var(--sky); cursor: pointer; }
.mood input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--sky); cursor: pointer; }
.toggle { display: flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--w-2); padding: 0; }
.toggle b { position: relative; width: 50px; height: 28px; border-radius: 14px; background: rgba(255,255,255,.18); transition: background .3s, box-shadow .3s; }
.toggle b::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); transition: inset-inline-start .3s var(--ease); }
.toggle[aria-pressed="true"] { color: #fff; }
.toggle[aria-pressed="true"] b { background: var(--sky); box-shadow: 0 0 16px rgba(140,192,255,.8); }
.toggle[aria-pressed="true"] b::after { inset-inline-start: 25px; }

.dock-sum { display: flex; align-items: center; gap: 18px; padding: 14px 18px; border-inline-start: 1px solid var(--glass-line); }
.sum-k { font-size: 11.5px; color: var(--w-3); }
.sum-p { font-family: var(--en); font-weight: 800; font-size: 26px; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
html[lang="ar"] .sum-p { font-family: var(--ar); font-weight: 700; }
.sum-m { display: flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; color: var(--w-2); font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.sum-m b { color: var(--glow); }
.sum-m svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .3s; }
.sum-m[aria-expanded="true"] svg { transform: rotate(180deg); }
.cta { display: flex; gap: 8px; }
.btn { position: relative; overflow: hidden; display: inline-grid; place-items: center; text-align: center; padding: 14px 22px; border-radius: 30px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .25s, color .25s, transform .25s var(--ease); }
.btn.solid { background: #fff; color: var(--ink); border-color: #fff; }
.btn.solid::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(140,192,255,.45) 50%, transparent 70%); transform: translateX(-120%); animation: sheen 3.6s ease-in-out infinite 2s; }
@keyframes sheen { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.12); }
.btn.solid:hover { background: var(--glow); border-color: var(--glow); }

/* the finance, opening above the price */
.fin { position: absolute; bottom: calc(100% + 12px); inset-inline-end: 0; width: 340px; padding: 16px; border-radius: 20px; display: grid; gap: 12px;
  background: rgba(14,18,27,.88); border: 1px solid var(--glass-line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); animation: trayIn .35s var(--ease); }
.fin[hidden] { display: none; }
.fin-h { font-size: 14px; font-weight: 700; }
.fin-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; font-size: 13.5px; color: var(--w-2); }
.fin-row b { color: #fff; }
.fin-row input, .fin-row .months { grid-column: 1 / -1; }
.fin-row input { width: 100%; accent-color: var(--glow); }
.months { display: flex; gap: 6px; }
.months button { flex: 1; padding: 6px 0; border-radius: 12px; border: 1px solid var(--glass-line); background: rgba(255,255,255,.06); cursor: pointer; font-family: var(--en); font-weight: 700; color: #fff; }
.months [aria-checked="true"] { background: #fff; color: var(--ink); }
.fin-out { display: flex; justify-content: space-between; font-size: 15px; }
.fin-out b { color: var(--glow); }
.fine { font-size: 11.5px; color: var(--w-3); }

.foot { padding: 26px var(--gut) 32px; text-align: center; font-size: 13px; color: var(--w-3); background: var(--night); border-top: 1px solid var(--glass-line); }
.toast { position: fixed; z-index: 70; left: 50%; top: 84px; padding: 10px 20px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; opacity: 0; pointer-events: none; transform: translate(-50%, -10px); transition: opacity .3s, transform .3s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* no WebGL: a photograph of the car */
.static canvas#gl { display: none; }
.static .still { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 25% 50%; }
.static .go, .static .skip { display: none; }

/* --- narrower desktops: the dock in two rows */
@media (max-width: 1180px) and (min-width: 821px) and (min-aspect-ratio: 6/5) {
  .dock { grid-template-columns: 1fr; }
  .dock-sum { border-inline-start: 0; border-top: 1px solid var(--glass-line); justify-content: space-between; }
}

/* --- phones and portrait screens: the car on top (sticky), the dock under it */
@media (max-width: 820px), (max-aspect-ratio: 6/5) {
  .bar { height: 58px; } .brand-en { display: none; }
  .studio { height: auto; min-height: 0; overflow: visible; }
  .stage { position: sticky; top: 0; height: 52svh; min-height: 280px; z-index: 6; overflow: hidden; }
  .head { top: 60px; } h1 { font-size: 20px; } .kick { font-size: 11px; }
  .saying { bottom: 18px; font-size: 18px; }
  .go { top: auto; bottom: 12px; left: auto; right: 12px; padding: 5px 12px 5px 5px; } html[dir="rtl"] .go { padding: 5px 5px 5px 12px; }
  .go-k { width: 40px; height: 40px; font-size: 12px; } .go-v { font-size: 14px; }
  .skip { bottom: 12px; }
  .speedo { top: 18%; } .speedo-n { font-size: 84px; } .speedo-t { font-size: 16px; }
  .stage::after { height: 120px; }
  .dock { position: relative; left: auto; bottom: auto; translate: none; width: auto; grid-template-columns: 1fr; border-radius: 0; border: 0; box-shadow: none; background: var(--night); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .intro .dock { transform: translateY(30px); }
  .dock-main { padding: 14px 14px 18px; }
  .tabs { overflow-x: auto; scrollbar-width: none; margin: 0 -4px 14px; } .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; }
  .trays { min-height: 96px; }
  .tray { flex-direction: column; align-items: stretch; gap: 10px; }
  .paints { justify-content: space-between; gap: 4px; } .paints button { width: 34px; height: 34px; }
  .wheels { display: grid; grid-template-columns: repeat(3, 1fr); }
  .wheels button { flex-direction: column; padding: 8px 4px; border-radius: 16px; text-align: center; } html[dir="rtl"] .wheels button { padding: 8px 4px; }
  .wheels span { font-size: 11px; }
  .mood { grid-template-columns: auto 1fr auto; }
  .dock-sum { position: sticky; bottom: 0; z-index: 3; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)); border: 0; border-top: 1px solid var(--glass-line); background: rgba(16,20,30,.96); }
  .cta { width: 100%; } .cta .btn { flex: 1; padding: 12px 10px; }
  .fin { position: fixed; left: 10px; right: 10px; bottom: 140px; width: auto; z-index: 20; }
}
@media (prefers-reduced-motion: reduce) {
  .loader-star, .go-k, .btn.solid::after, .tray, .fin { animation: none; }
  .saying, .dock, .head, .toast, .paints button, .wheels img, .blob { transition: none; }
}

/* --- the views (front, rear, cabin): a small segmented switch at the top of the stage */
.views { position: absolute; z-index: 4; left: 50%; top: 84px; translate: -50% 0; display: flex; padding: 4px; gap: 2px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: opacity .6s; }
.views button { border: 0; background: none; color: var(--w-2); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 18px; cursor: pointer; transition: background .25s, color .25s; }
.views button:hover { color: #fff; }
.views [aria-pressed="true"] { background: #fff; color: var(--ink); }
.intro .views { opacity: 0; pointer-events: none; }
.in-cabin .go { opacity: 0; pointer-events: none; }
.btn.icon { width: 48px; padding: 0; }
.btn.icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 820px), (max-aspect-ratio: 6/5) {
  .views { top: auto; bottom: 64px; }
  .views button { padding: 5px 11px; font-size: 12px; }
  .cta .btn.icon { flex: none; width: 46px; }
}

/* ============ below the configurator: limestone and night, alternating; huge type; nothing pinned */
.sec { position: relative; padding: clamp(90px, 11vw, 160px) 0; }
.wrap { width: min(1240px, calc(100% - 2 * var(--gut))); margin: 0 auto; }
.sec .kick { font-size: 12.5px; letter-spacing: .02em; }
html[lang="en"] .sec .kick { letter-spacing: .18em; }
.sec h2 { font-family: var(--ar-display); font-weight: 600; font-size: clamp(40px, 5vw, 80px); line-height: 1.15; margin: 10px 0 14px; letter-spacing: -.01em; }
html[lang="en"] .sec h2 { font-family: var(--en); font-weight: 800; letter-spacing: -.045em; line-height: .98; }
.lede { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.85; max-width: 560px; }
.fine { font-size: 12px; opacity: .6; }
.rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.light { background: var(--stone); color: var(--ink); }
.light .kick { color: var(--sky-d); }
.light .lede { color: var(--ink-2); }
.dark { background: var(--night); color: #fff; }
.dark .lede { color: var(--w-2); }

/* the figures: one per line, huge; a line under each draws to its share */
.n-head { margin-bottom: clamp(30px, 4vw, 60px); }
.figs { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(21,24,28,.15); }
.fig { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 340px); align-items: center; gap: 24px; padding: clamp(18px, 2.4vw, 34px) 0; border-bottom: 1px solid rgba(21,24,28,.15); }
.fig-i { font-family: var(--en); font-weight: 800; font-size: 13px; color: var(--sky-d); align-self: start; padding-top: 1.6em; }
.fig-n { font-family: var(--en); font-weight: 800; font-size: clamp(84px, 13vw, 210px); line-height: .82; letter-spacing: -.06em; font-variant-numeric: tabular-nums; color: transparent; -webkit-text-stroke: 1.5px var(--ink); transition: color 1.2s var(--ease) .3s; }
.fig.done .fig-n { color: var(--ink); }
.fig-n small { font-size: .18em; letter-spacing: 0; margin-inline-start: 12px; color: var(--sky-d); -webkit-text-stroke: 0; vertical-align: top; }
html[lang="ar"] .fig-n small { font-family: var(--ar-display); }
.fig-t { display: grid; gap: 6px; }
.fig-t b { font-size: clamp(18px, 1.5vw, 22px); }
.fig-t span { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.fig-bar { position: absolute; bottom: -1px; inset-inline-start: 0; height: 2px; width: calc(var(--share) * 100%); background: var(--sky); transform: scaleX(0); transform-origin: 100% 50%; transition: transform 1.6s var(--ease) .2s; }
html[dir="ltr"] .fig-bar { transform-origin: 0 50%; }
.fig.done .fig-bar { transform: none; }

/* the cabin: day | night, with a handle */
.cabin-sec { padding-bottom: 0; }
.cab-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(36px, 4vw, 60px); }
.ba { position: relative; aspect-ratio: 16 / 8.2; max-height: 92vh; width: 100%; overflow: hidden; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-night { clip-path: inset(0 0 0 var(--x)); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; translate: -1px 0; background: #fff; box-shadow: 0 0 20px rgba(140,192,255,.9); pointer-events: none; }
.ba-line span { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: rgba(14,18,27,.6); border: 1.5px solid #fff; color: #fff; font-size: 13px; font-weight: 700; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ba-line span::before, .ba-line span::after { content: ''; position: absolute; top: 50%; width: 7px; height: 7px; border-top: 1.5px solid #fff; border-left: 1.5px solid #fff; }
.ba-line span::before { left: -14px; transform: translateY(-50%) rotate(-45deg); }
.ba-line span::after { right: -14px; transform: translateY(-50%) rotate(135deg); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 2; }
.ba-tag { position: absolute; bottom: 22px; z-index: 1; padding: 7px 14px; border-radius: 16px; background: rgba(14,18,27,.55); color: #fff; font-size: 13px; font-weight: 600; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ba-tag-d { left: 22px; } .ba-tag-n { right: 22px; }
.spot { position: absolute; z-index: 3; translate: -50% -50%; border: 0; background: none; padding: 0; cursor: pointer; }
.spot i { display: block; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: spot 2.4s ease-out infinite var(--d); position: relative; }
.spot i::after { content: '+'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); font-family: var(--en); font-weight: 800; font-size: 16px; line-height: 1; transition: transform .3s; }
@keyframes spot { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.65); } 70%, 100% { box-shadow: 0 0 0 18px rgba(255,255,255,0); } }
.spot span { position: absolute; top: 50%; left: 34px; right: auto; translate: 0 -50%; width: max-content; max-width: 220px; padding: 10px 14px; border-radius: 14px; background: rgba(14,18,27,.82); color: var(--w-2); font-size: 13px; line-height: 1.5; text-align: start; opacity: 0; pointer-events: none; transition: opacity .3s, translate .3s var(--ease); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.spot span b { display: block; color: #fff; font-size: 14.5px; }
.spot.to-left span { left: auto; right: 34px; }
.spot:hover span, .spot:focus-visible span, .spot.open span { opacity: 1; }
.spot.open i::after { transform: rotate(45deg); }

/* the road: the sky across the whole width */
.road { padding-bottom: clamp(60px, 7vw, 100px); overflow: hidden; background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(47,111,179,.2), transparent 70%), var(--night); }
.sky-wrap { width: 100%; max-width: 1700px; margin: 0 auto; padding: 0 var(--gut); }
.sky-wrap svg { width: 100%; height: auto; display: block; overflow: visible; }
.dust circle { fill: #fff; opacity: .35; animation: tw 4s ease-in-out infinite var(--tw); }
@keyframes tw { 50% { opacity: .08; } }
.trail { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; }
.trail-lit { fill: none; stroke: var(--glow); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(140,192,255,.95)); }
.city circle { fill: rgba(255,255,255,.5); transition: fill .4s, r .4s; }
.city text { fill: rgba(255,255,255,.42); font-size: 26px; font-family: var(--ar); transition: fill .4s; }
html[lang="en"] .city text { font-family: var(--en); font-size: 23px; }
.city.on circle { fill: #fff; r: 8; filter: drop-shadow(0 0 10px #fff); }
.city.on text { fill: #fff; font-weight: 700; }
.stn circle { fill: rgba(16,20,30,.9); stroke: rgba(140,192,255,.4); stroke-width: 2; transition: all .4s; }
.stn path { fill: rgba(140,192,255,.5); transition: fill .4s; }
.stn.lit circle { stroke: var(--glow); fill: var(--sky); filter: drop-shadow(0 0 12px var(--glow)); }
.stn.lit path { fill: #fff; }
.car-c { fill: #fff; }
.road-ui { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: end; margin-top: -40px; position: relative; }
.road-ui h2 { font-size: clamp(36px, 4vw, 64px); }
.trips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trips button { display: grid; gap: 2px; text-align: start; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--glass-line); background: rgba(255,255,255,.04); cursor: pointer; transition: border-color .2s, background .2s, transform .3s var(--ease); }
.trips button:hover { transform: translateY(-2px); }
.trips b { font-size: 15.5px; } .trips b i { font-style: normal; color: var(--glow); }
.trips span { font-size: 13px; color: var(--w-3); }
.trips [aria-checked="true"] { border-color: var(--glow); background: rgba(140,192,255,.12); }
.trip-out { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-top: 16px; font-size: 15px; color: var(--w-2); }
.trip-out b { color: var(--glow); font-size: 18px; }
.road-pick .fine { margin-top: 8px; }

/* charging: the photograph, full bleed, its sky carrying the words */
.charge { position: relative; height: min(92vh, 900px); min-height: 520px; overflow: hidden; background: var(--night); }
.charge figure { margin: 0; position: absolute; inset: 0; }
.charge img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.charge::after { content: ''; position: absolute; inset: 0; background: linear-gradient(var(--night), rgba(16,20,30,0) 30%, rgba(16,20,30,0) 75%, var(--night)); pointer-events: none; }
.ch-text { position: absolute; z-index: 1; top: 22%; color: #fff; }
/* always over the open sky on the right of the photograph */
.ch-text, html[dir="rtl"] .ch-text { left: auto; right: var(--gut); text-align: right; }
.ch-big { font-family: var(--ar-display); font-weight: 700; font-size: clamp(64px, 10vw, 170px); line-height: .95; text-shadow: 0 10px 50px rgba(0,0,0,.4); }
html[lang="en"] .ch-big { font-family: var(--en); font-weight: 800; letter-spacing: -.05em; font-size: clamp(54px, 7.4vw, 130px); white-space: nowrap; }
.ch-small { margin-top: 12px; font-size: clamp(18px, 1.8vw, 26px); color: var(--w-2); }

/* the showroom visit, on limestone */
.visit-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.visit-photo { margin: 0; border-radius: 30px; overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: 0 50px 80px -50px rgba(30,25,15,.6); }
.visit-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transition: transform 1.6s var(--ease); }
.visit-photo:hover img { transform: scale(1.04); }
.visit-form h2 { font-size: clamp(38px, 4.4vw, 68px); }
.field { display: grid; gap: 8px; margin-top: 18px; }
.f-l { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { padding: 8px 14px; border-radius: 18px; border: 1px solid rgba(21,24,28,.15); background: rgba(255,255,255,.55); font-size: 13.5px; cursor: pointer; color: var(--ink-2); transition: background .2s, color .2s, border-color .2s; }
.chips [aria-checked="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.shows { display: grid; grid-template-columns: repeat(3, 1fr); }
.shows button { display: grid; gap: 1px; padding: 12px 14px; border-radius: 16px; text-align: start; }
.shows b { font-size: 16px; } .shows span { font-size: 12px; opacity: .7; }
.field input { font: inherit; font-size: 16px; padding: 12px 16px; border-radius: 16px; border: 1px solid rgba(21,24,28,.15); background: rgba(255,255,255,.7); color: var(--ink); }
.field input:focus { outline: 2px solid var(--sky); outline-offset: 1px; }
.btn.ink { width: 100%; margin-top: 24px; background: var(--ink); color: #fff; border-color: var(--ink); padding: 16px; font-size: 16px; }
.btn.ink:hover { background: var(--sky-d); border-color: var(--sky-d); }
.visit-form .fine { margin-top: 10px; }

/* questions, on limestone */
.faq { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 60px; align-items: start; border-top: 1px solid rgba(21,24,28,.15); padding-top: clamp(60px, 7vw, 100px); }
.qa details { border-bottom: 1px solid rgba(21,24,28,.15); }
.qa details:first-child { border-top: 1px solid rgba(21,24,28,.15); }
.qa summary { list-style: none; cursor: pointer; padding: 24px 0; font-size: clamp(17px, 1.4vw, 21px); font-weight: 600; display: grid; grid-template-columns: 44px 1fr 24px; gap: 10px; align-items: center; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { font-style: normal; font-family: var(--en); font-weight: 800; font-size: 12px; color: var(--sky-d); }
.qa summary::after { content: '+'; font-family: var(--en); font-size: 26px; line-height: 1; color: var(--sky-d); transition: transform .35s var(--ease); justify-self: end; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 54px 24px; color: var(--ink-2); font-size: 16px; line-height: 1.85; }

/* the close: the name, huge, on the night */
.end { padding: clamp(80px, 10vw, 140px) 0 0; overflow: hidden; }
.end-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.end-line { font-family: var(--ar-display); font-size: clamp(28px, 3vw, 46px); font-weight: 600; }
html[lang="en"] .end-line { font-family: var(--en); font-weight: 800; letter-spacing: -.03em; }
.end-btns { display: flex; gap: 10px; }
.mark { position: relative; text-align: center; font-family: var(--ar-display); font-weight: 700; font-size: clamp(120px, 27vw, 460px); line-height: 1; margin-top: clamp(30px, 4vw, 60px); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.22);
  background: linear-gradient(180deg, rgba(140,192,255,.28), rgba(140,192,255,0) 75%); -webkit-background-clip: text; background-clip: text; margin-bottom: -.22em; }
html[lang="en"] .mark { font-family: var(--en); font-weight: 800; letter-spacing: -.06em; font-size: clamp(90px, 22vw, 380px); margin-bottom: -.14em; }
.mark-star { position: absolute; top: 12%; left: 50%; translate: -50% 0; width: clamp(24px, 3vw, 46px); }
.mark-star svg { fill: var(--glow); filter: drop-shadow(0 0 16px var(--glow)); animation: twinkle 3s ease-in-out infinite; }
.foot { position: relative; z-index: 1; }

@media (max-width: 900px) {
  .fig { grid-template-columns: 1fr; gap: 6px; }
  .fig-i { padding-top: 0; }
  .n-head, .cab-head, .road-ui, .visit-grid, .faq-grid { grid-template-columns: 1fr; display: grid; }
  .ba { aspect-ratio: 4 / 4.4; }
  .spot span { max-width: 170px; }
  .road-ui { margin-top: 10px; }
  .sky-wrap { padding: 0 6px; }
  .city text { font-size: 46px; } html[lang="en"] .city text { font-size: 40px; }
  .city circle { r: 9; } .city.on circle { r: 13; }
  .ch-text { top: 12%; }
  .shows { grid-template-columns: 1fr; }
  .visit-photo { aspect-ratio: 4 / 3; }
  .qa p { padding: 0 0 22px; }
}
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .spot i, .dust circle, .mark-star svg { animation: none; } .fig-n { color: var(--ink); } }

/* ============ the first screen: «ضوء سُهيل» */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: #05070c; color: #fff; touch-action: pan-y; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .still { display: none; }
.hero:not(.awake) { cursor: none; }
.h-star { position: absolute; z-index: 2; left: var(--sx, 50%); top: var(--sy, 50%); width: 26px; height: 26px; translate: -50% -50%; pointer-events: none; transition: scale .4s var(--ease), opacity .6s;
  background: radial-gradient(circle, #fff 0 12%, rgba(160,200,255,.9) 18%, rgba(140,192,255,0) 60%); filter: drop-shadow(0 0 10px rgba(140,192,255,.9)); }
.h-star::before, .h-star::after { content: ''; position: absolute; left: 50%; top: 50%; width: 46px; height: 1.5px; translate: -50% -50%; background: linear-gradient(90deg, transparent, #fff, transparent); }
.h-star::after { rotate: 90deg; }
.over-car .h-star { scale: 1.6; }
.awake .h-star, .waking .h-star { opacity: 0; }
.h-hint { position: absolute; z-index: 2; left: 50%; bottom: 13%; translate: -50% 0; text-align: center; pointer-events: none; transition: opacity .8s; }
.h-hint p { font-family: var(--ar-display); font-size: clamp(22px, 2.2vw, 34px); font-weight: 600; text-shadow: 0 2px 20px rgba(0,0,0,.8); animation: breathe 3.4s ease-in-out infinite; }
html[lang="en"] .h-hint p { font-family: var(--en); font-weight: 700; letter-spacing: -.02em; }
.h-hint .h-sub { margin-top: 4px; font-family: var(--ar); font-size: 15px; font-weight: 500; color: var(--w-2); animation-delay: .4s; }
html[lang="en"] .h-hint .h-sub { font-family: var(--en); font-size: 14px; font-weight: 500; }
@keyframes breathe { 50% { opacity: .55; } }
.over-car .h-hint .h-sub { color: var(--glow); }
.waking .h-hint, .awake .h-hint { opacity: 0; }
.h-wake { position: absolute; z-index: 3; left: 50%; bottom: 5%; translate: -50% 0; padding: 9px 18px; border-radius: 20px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: var(--w-2); font-size: 13px; cursor: pointer; transition: opacity .6s; }
.h-wake:hover { color: #fff; border-color: #fff; }
.waking .h-wake, .awake .h-wake { opacity: 0; pointer-events: none; }
.h-title { position: absolute; z-index: 2; right: var(--gut); top: 50%; translate: 0 -50%; max-width: min(560px, 44vw); opacity: 0; transition: opacity 1.2s var(--ease) .3s; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
html[dir="ltr"] .h-title { text-align: left; }
.h-title h1 { font-family: var(--ar-display); font-weight: 700; font-size: clamp(44px, 6vw, 104px); line-height: 1.12; margin: 8px 0 26px; }
html[lang="en"] .h-title h1 { font-family: var(--en); font-weight: 800; letter-spacing: -.045em; line-height: .98; font-size: clamp(40px, 5.4vw, 92px); }
.h-title h1 span { display: block; clip-path: inset(0 0 100% 0); transform: translateY(30%); transition: clip-path 1.1s var(--ease), transform 1.1s var(--ease); }
.h-title h1 span + span { transition-delay: .25s; }
.h-title .kick { color: #fff; opacity: .85; }
.awake .h-title { opacity: 1; }
.awake .h-title h1 span { clip-path: inset(0 0 -20% 0); transform: none; }
.h-btns { display: flex; gap: 10px; opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease) .7s, transform .9s var(--ease) .7s; }
.awake .h-btns { opacity: 1; transform: none; }
.h-btns .btn { border-color: rgba(255,255,255,.55); }
.h-night { position: absolute; z-index: 3; left: var(--gut); bottom: 26px; padding: 8px 14px; border-radius: 18px; border: 1px solid rgba(255,255,255,.3); background: rgba(10,14,22,.35); color: #fff; font-size: 13px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .6s 1.4s; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.awake .h-night { opacity: 1; pointer-events: auto; }
.hero.static canvas { display: none; }
.hero.static .still { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 25% 50%; }
.hero.static .h-hint, .hero.static .h-wake, .hero.static .h-night, .hero.static .h-star { display: none; }
.h1 { font-family: var(--ar-display); font-weight: 600; font-size: clamp(24px, 2vw, 32px); line-height: 1.3; }
html[lang="en"] .h1 { font-family: var(--en); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; }

/* ============ «من الداخل»: the car comes apart */
.inside { background: radial-gradient(ellipse 60% 50% at 50% 60%, rgba(47,111,179,.16), transparent 70%), var(--night); color: #fff; }
.in-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.ex { position: relative; width: 100%; max-width: 118vh; margin: clamp(30px, 4vw, 56px) auto 0; user-select: none; -webkit-user-select: none; }
.ex-in { position: absolute; inset: 0; transform: translate(calc(var(--g, 1) * var(--shift, 0%)), calc(var(--g, 1) * -1 * var(--lift))); }
.ex-l { position: absolute; transform: translateY(calc(var(--a, 1) * var(--dy))); will-change: transform; }
.ex-l .ex-asm { position: absolute; inset: 0; opacity: 0; }
.ex-wheels { opacity: 0; pointer-events: none; }
.ex-ground { position: absolute; height: 5%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.65), rgba(0,0,0,0)); opacity: var(--g, 1); pointer-events: none; }
.ex-l[data-l="chassis"] img:first-child { transition: none; }
.ex-l img { width: 100%; height: 100%; display: block; }
.ex-l[data-l="body"] { filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
.ex-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: grab; z-index: 4; }
.ex-range:active { cursor: grabbing; }
.ex-tag { position: absolute; z-index: 3; display: grid; grid-template-columns: 28px auto; column-gap: 74px; align-items: center; translate: -14px -50%; direction: ltr; white-space: nowrap; opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.ex.apart .ex-tag { opacity: 1; }
.ex-tag i { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--glow); color: var(--ink); font-style: normal; font-family: var(--en); font-weight: 800; font-size: 13px; box-shadow: 0 0 0 6px rgba(140,192,255,.2); position: relative; }
.ex-tag i::after { content: ''; position: absolute; left: 32px; top: 50%; width: 64px; height: 1px; background: rgba(255,255,255,.55); }
.ex-tag b { font-size: 16px; direction: rtl; text-align: left; }
.ex-tag small { font-size: 12.5px; color: var(--w-2); }
html[lang="en"] .ex-tag b { direction: ltr; }
html[lang="ar"] .ex-tag small { direction: rtl; text-align: left; }
.ex-ui { display: flex; align-items: center; justify-content: center; gap: 30px; margin-top: clamp(20px, 3vw, 40px); }
.ex-legend { display: none; }

@media (max-width: 900px) {
  .h-title { left: var(--gut); right: var(--gut); top: auto; bottom: 90px; translate: none; max-width: none; }
  .h-title h1 { font-size: clamp(38px, 11vw, 56px); margin-bottom: 18px; }
  .h-hint { bottom: 10%; width: 90%; }
  .in-head { grid-template-columns: 1fr; gap: 0; }
  .ex-tag { display: none; }
  .ex-ui { flex-direction: column; align-items: stretch; gap: 18px; }
  .ex-legend { display: grid; gap: 1px; list-style: none; padding: 0; margin: 0; border-radius: 18px; overflow: hidden; background: var(--glass-line); }
  .ex-legend li { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; padding: 12px 14px; background: rgba(16,20,30,.95); }
  .ex-legend i { grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--glow); color: var(--ink); font-style: normal; font-family: var(--en); font-weight: 800; font-size: 12px; }
  .ex-legend b { font-size: 15px; } .ex-legend span { font-size: 13px; color: var(--w-2); }
}
@media (prefers-reduced-motion: reduce) { .h-hint p { animation: none; } .h-title, .h-title h1 span, .h-btns, .ex-tag { transition: none; } }

/* ============ the configurator, as a section: a header, then the studio in a frame */
.config-sec { padding-bottom: clamp(60px, 7vw, 110px); background: var(--night); }
.charge + .config-sec { padding-top: clamp(40px, 5vw, 80px); }
.cfg-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(26px, 3vw, 44px); }
.config-sec .studio { width: min(1400px, calc(100% - 2 * var(--gut))); height: min(86vh, 860px); min-height: 600px; margin: 0 auto; border-radius: 32px; box-shadow: 0 60px 120px -60px rgba(0,0,0,.9), 0 0 0 1px var(--glass-line); isolation: isolate; }
.config-sec .views { top: 22px; }
.config-sec .go { top: 22px; }
.config-sec .dock { bottom: 16px; width: calc(100% - 32px); }
.config-sec .stage::before { height: 120px; }
@media (max-width: 820px), (max-aspect-ratio: 6/5) {
  .cfg-head { grid-template-columns: 1fr; gap: 0; }
  .config-sec .studio { width: 100%; height: auto; min-height: 0; border-radius: 0; box-shadow: none; }
  .config-sec .dock { width: auto; bottom: auto; }
  .config-sec .go { top: auto; }
  .config-sec .views { top: 12px; bottom: auto; }
}

/* the drive clip, laid exactly over the hero's plate (hero.js sets its box), fading in once the day is up */
.h-video { position: absolute; z-index: 1; object-fit: fill; opacity: 0; transition: opacity 1.4s var(--ease); pointer-events: none; }
.h-video.on { opacity: 1; }
.h-video.feather { -webkit-mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent); }
.hero .h-title, .hero .h-night, .hero .h-hint, .hero .h-wake { z-index: 3; }
