/* A single full-screen workshop: native scroll assembles, drag explores. */
.car { position: relative; background: var(--cream); color: var(--plum); }
.car.is-motion { height: 480svh; }
.car__stage { position: relative; height: 100svh; min-height: 600px; isolation: isolate; overflow: clip; }
.car.is-motion .car__stage { position: sticky; top: 0; }
.car__header { position: absolute; z-index: 3; inset: 30px var(--edge) auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; pointer-events: none; }
.car h2 { margin: 0; font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: clamp(4rem, 7.6vw, 8rem); line-height: .94; letter-spacing: -.025em; }
.car h2 span { color: var(--raspberry); }
.car__header > p { margin: 5px 0 0; font-size: clamp(14px, 1.1vw, 18px); line-height: 1.55; }
.car__visual { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; }
.car__frame { position: relative; width: min(100%, 177.778svh); aspect-ratio: 16 / 9; }
.car__poster, .car__film, .car__model { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.car__poster { opacity: 1; }
.car__film { opacity: 0; pointer-events: none; }
.car.is-motion:not(.is-video-error):not(.is-interactive) .car__film { opacity: 1; }
.car__model { opacity: 0; pointer-events: none; --poster-color: transparent; --progress-bar-height: 0; }
.car.is-interactive .car__model { opacity: 1; pointer-events: auto; }
.car.is-interactive .car__film, .car.is-interactive .car__poster { opacity: 0; }
.car__model:focus-visible { outline: 2px solid var(--plum); outline-offset: -12px; }
.car__footer { position: absolute; z-index: 3; inset: auto var(--edge) 30px; display: flex; align-items: end; justify-content: space-between; gap: 24px; pointer-events: none; }
.car__story { max-width: 45%; }
.car__phase { margin: 0 0 8px; font-family: "Barlow Condensed", sans-serif; font-size: clamp(2rem, 3.3vw, 3.5rem); font-weight: 800; line-height: 1; letter-spacing: -.025em; }
.car__instruction { margin: 0; font-size: 13px; line-height: 1.55; }
.car__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: auto; }
.car__status { max-width: 35ch; margin: 0; font-size: 12px; line-height: 1.5; text-align: right; }
.car__status:empty { display: none; }
.car__explore, .car__controls button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 12px 20px; border: 1px solid var(--plum); background: var(--cream); color: var(--plum); font: 700 12px Arial, sans-serif; cursor: pointer; }
.car button svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; }
.car__explore:hover, .car__controls button:hover { background: var(--plum); color: var(--cream); }
.car__controls { display: flex; gap: 8px; }
.car__controls button:not(.car__reset) { padding: 12px; min-width: 48px; }
.car__controls button:disabled { opacity: .4; cursor: default; }
.car__replay { min-height: 44px; padding: 6px 0; border: 0; background: transparent; color: var(--plum); font: 12px Arial, sans-serif; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.car__progress { position: absolute; inset: auto 0 0; height: 3px; background: var(--rose); display: none; }
.car.is-motion .car__progress { display: block; }
.car__progress > span { display: block; width: 100%; height: 100%; background: var(--raspberry); transform: scaleX(var(--assembly, 0)); transform-origin: left; }
.car [hidden] { display: none; }
.car noscript { display: block; max-width: 35ch; font-size: 13px; line-height: 1.6; }
.car noscript a { color: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .car__model, .car__film, .car__poster { transition: opacity 420ms cubic-bezier(.16, 1, .3, 1); }
}
@media (max-width: 700px) {
  .car__stage { min-height: 620px; }
  .car__header { top: 26px; display: block; }
  .car h2 { font-size: 16vw; }
  .car__header > p { margin-top: 18px; font-size: 14px; }
  .car__visual { inset: 135px -7% 160px; }
  .car__frame { aspect-ratio: 1; }
  /* Match the square 3D viewport's vertical field of view at the handoff. */
  .car__poster, .car__film { object-fit: cover; }
  .car__footer { bottom: 24px; display: block; }
  .car__story { max-width: none; }
  .car__phase { font-size: 9vw; }
  .car__instruction { font-size: 12px; }
  .car__actions { align-items: flex-start; margin-top: 18px; gap: 5px; }
  .car__status { text-align: left; }
  .car__replay { min-height: 38px; }
}
@media (min-width: 701px) and (max-height: 650px) {
  .car__stage { min-height: 400px; }
  .car__header { top: 18px; }
  .car h2 { font-size: 4rem; }
  .car__header > p { font-size: 12px; }
  .car__footer { bottom: 18px; }
  .car__phase { font-size: 2rem; }
}
@media (max-width: 700px) and (max-height: 650px) {
  .car__stage { min-height: 560px; }
  .car__header { top: 20px; }
  .car__header > p { margin-top: 12px; }
  .car__visual { inset-block: 115px 175px; }
  .car__footer { bottom: 16px; }
  .car__actions { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .car.is-motion { height: auto; }
  .car__film, .car__progress { display: none; }
}
