/* Automotive colour visualiser — studio */
.car-studio__stage {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); aspect-ratio: 1200 / 760;
  background: radial-gradient(120% 90% at 50% 0%, #3A404A 0%, #1B1E24 55%, #0F1114 100%);
  box-shadow: var(--shadow-2); display: grid; align-items: end;
}
.car-studio__stage::after { /* glossy studio floor */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 60%), #121418;
}
.car-studio__lights { position: absolute; inset: 0 0 auto; height: 40%; z-index: -1; display: flex; justify-content: space-around; padding: 0 12%; }
.car-studio__lights i { width: 22%; height: 10px; margin-top: 18px; border-radius: 10px; background: rgba(255,255,255,.85); box-shadow: 0 0 40px 10px rgba(255,255,255,.25); animation: studio 6s ease-in-out infinite; }
.car-studio__lights i:nth-child(2) { animation-delay: -2s; }
.car-studio__lights i:nth-child(3) { animation-delay: -4s; }
@keyframes studio { 0%, 100% { opacity: .9; } 50% { opacity: .55; } }
.car-studio__svg { width: 94%; margin: 0 auto 13%; height: auto; overflow: visible; animation: carbob 5s ease-in-out infinite; }
@keyframes carbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.car-studio__rim { animation: rimspin 6s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes rimspin { to { transform: rotate(360deg); } }
.car-studio__sweep { animation: carsweep 5.5s ease-in-out infinite; }
@keyframes carsweep { 0% { transform: skewX(-18deg) translateX(0); } 60%, 100% { transform: skewX(-18deg) translateX(1500px); } }
.paint-old, .paint-new { transition: none; }
.car-studio .room__badge { z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .car-studio__svg, .car-studio__rim, .car-studio__sweep, .car-studio__lights i { animation: none; }
}
.car-studio.is-paused .car-studio__svg, .car-studio.is-paused .car-studio__rim, .car-studio.is-paused .car-studio__sweep, .car-studio.is-paused .car-studio__lights i { animation-play-state: paused; }

/* ---------- 3D car (car3d.js) ---------- */
.car-studio__stage > .car3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: 0; transition: opacity .9s var(--ease-out); cursor: grab; touch-action: pan-y; }
.car-studio__stage > .car3d:active { cursor: grabbing; }
.car-studio__stage.is-3d > .car3d { opacity: 1; }
.car-studio__stage > svg { transition: opacity .6s var(--ease-out); }
.car-studio__stage.is-3d > svg { opacity: 0; pointer-events: none; }
.car3d__load { position: absolute; left: 24px; right: 24px; top: 18px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.18); z-index: 3; overflow: hidden; }
.car3d__load::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, .04)); transition: transform .2s; }
.car3d__credit, .car3d__hint { display: none; }
.car-studio__stage.is-3d .car3d__credit { display: block; position: absolute; right: 16px; bottom: 6px; z-index: 2; margin: 0; font-size: 10px; color: rgba(255,255,255,.55); pointer-events: none; }
.car-studio__stage.is-3d .car3d__hint { display: grid; place-items: center; position: absolute; top: 16px; right: 16px; z-index: 2; width: 52px; height: 52px; border-radius: 50%; font-size: 12px; font-weight: 800; color: #fff; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); pointer-events: none; animation: hint360 2.6s ease-in-out 3; }
@keyframes hint360 { 50% { transform: rotate(-20deg) scale(1.08); } }
