/* Pro Automotive Services — 3D showroom (home page hero), panels and guided enquiry.
   Loaded after site.css. */
:root {
  --car-aspect: 2.1; /* = car silhouette aspect at the composed view (landscape) */
  --top: 34px;
  --panel-w: 468px;
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- The showroom (one viewport) ---------- */
.app {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}
/* Seamless studio sweep: the light falls off very gently toward the edges. */
.studio {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 48%, #f8f7f4 0%, #f3f2ee 46%, #ebe9e4 100%);
}

/* Where the car sits. The frame keeps the poster's aspect so the poster and the
   live 3D view line up exactly. */
.car-area {
  position: absolute; z-index: 1;
  left: 10%; right: 10%; top: 92px; bottom: 300px;
  display: grid; place-items: center;
  container-type: size;
  pointer-events: none;
  transition: inset 0s;
}
.car-frame {
  position: relative;
  width: min(100cqw, calc(100cqh * var(--car-aspect)));
  aspect-ratio: var(--car-aspect);
}
.poster {
  position: absolute;
  left: -8%; right: -8%; top: -5%; bottom: -32%;
  width: 116%; height: 137%;
  object-fit: fill;
  user-select: none;
  transition: opacity 700ms var(--ease);
}
.app.is-3d-ready .poster { opacity: 0; transition-delay: 120ms; }

.viewer {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 700ms var(--ease);
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.viewer:active { cursor: grabbing; }
.viewer:focus-visible { outline: none; }
.app.is-3d-ready .viewer { opacity: 1; }
.app.is-3d-failed .viewer { display: none; }
.viewer-focus-ring {
  position: absolute; z-index: 3; inset: 12px; pointer-events: none;
  border: 2px solid var(--ink); opacity: 0; transition: opacity 160ms;
}
.viewer:focus-visible ~ .viewer-focus-ring { opacity: 1; }

/* ---------- Interface layer ---------- */
.intro {
  position: absolute; z-index: 4; left: var(--gutter); bottom: 48px;
  max-width: 760px;
  pointer-events: none;
  transition: opacity 360ms var(--ease), transform 360ms var(--ease);
}
.intro .actions { pointer-events: auto; }
.headline {
  margin: 0;
  font-stretch: 118%; font-weight: 680;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 0.98; letter-spacing: -0.012em; text-transform: uppercase;
}
.headline span { display: block; }
.headline .kicker {
  margin: 0 0 18px; font-stretch: 100%; font-size: 11.5px; font-weight: 620; line-height: 1.4;
  letter-spacing: 0.18em; color: var(--ink-3);
}
.headline .sr-only { display: inline; }
.lede {
  margin: 18px 0 0; max-width: 46ch;
  color: var(--ink-2); font-size: 15.5px; line-height: 1.5; font-weight: 420;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.notice {
  margin: 12px 0 0; font-size: 13px; color: var(--ink-2); min-height: 0;
}
.notice:empty { display: none; }

.controls {
  position: absolute; z-index: 4; right: var(--gutter); bottom: 48px;
  display: flex; align-items: center; gap: 18px;
  transition: opacity 360ms var(--ease);
}
.hint {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 560; letter-spacing: 0.17em; text-transform: uppercase; color: var(--ink-3);
  transition: opacity 600ms var(--ease);
}
.hint-touch { display: none; }
.hint svg { width: 30px; height: 10px; }
.app.has-interacted .hint { opacity: 0; }
.icon-btn {
  appearance: none; cursor: pointer; background: transparent;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 2px; color: var(--ink);
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.app:not(.is-3d-ready):not(.is-lite) .controls { opacity: 0; pointer-events: none; }
.app.is-lite:not(.is-3d-ready) .controls > :not(.view3d-btn) { display: none; }
.view3d-btn { padding: 0 18px; border-color: var(--ink); }
.ctl-text-vis { font: inherit; }
.scroll-cue {
  position: absolute; z-index: 4; left: 50%; bottom: 22px; width: 44px; height: 44px; margin-left: -22px;
  display: grid; place-items: center; transition: opacity 360ms var(--ease);
}
.scroll-cue span { width: 1px; height: 26px; background: var(--ink-3); position: relative; overflow: hidden; }
.scroll-cue span::after { content: ''; position: absolute; left: 0; top: -12px; width: 1px; height: 12px; background: var(--ink); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { transform: translateY(38px); } }
.app.is-panel-open .scroll-cue, .app.is-spot-mode .scroll-cue { opacity: 0; pointer-events: none; }

/* ---------- Panels (About / Services / Contact / Enquiry / Menu) ---------- */
.panel {
  position: fixed; z-index: 30; top: 0; right: 0; bottom: 0;
  width: var(--panel-w); max-width: 100%;
  background: var(--bg-panel);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateX(28px);
  transition: opacity 380ms var(--ease), transform 480ms var(--ease), visibility 0s linear 480ms;
  visibility: hidden;
}
.panel.is-open {
  opacity: 1; transform: none; visibility: visible;
  transition: opacity 380ms var(--ease) 80ms, transform 520ms var(--ease) 40ms, visibility 0s;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 32px 0 44px; flex: none;
}
.panel-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3);
}
.panel-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 40px 44px 44px;
  -webkit-overflow-scrolling: touch;
}
.panel-title {
  margin: 0 0 22px;
  font-stretch: 116%; font-weight: 660; font-size: 30px; line-height: 1.04; letter-spacing: -0.01em;
  text-transform: uppercase;
}
.panel-title:focus, .panel:focus { outline: none; }
.panel p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); max-width: 38ch; }
.panel .p-strong { color: var(--ink); }
.close-btn { border-color: transparent; margin-right: -6px; }
.close-btn:hover { border-color: var(--line); }

.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
/* fineprint moved */ .x-fineprint { margin-top: 36px !important; font-size: 12.5px !important; line-height: 1.55 !important; color: var(--ink-3) !important; }

/* ---------- Enquiry wizard ---------- */
.wizard-progress { display: flex; align-items: center; gap: 14px; }
.wizard-progress .steps { display: grid; grid-template-columns: repeat(4, 22px); gap: 4px; }
.field--short { max-width: 180px; }
.input--message { min-height: 168px; font-size: 15px; line-height: 1.5; }
.status { margin: 14px 0 0 !important; padding: 12px 14px; border-left: 2px solid var(--ink); background: #fff; color: var(--ink) !important; font-size: 14px !important; }
.status:empty { display: none; }
.privacy a { color: var(--ink); }
.panel .btn .ico { margin-left: -2px; }
.menu-links a { text-decoration: none; color: var(--ink); }
.spot-close svg { width: 16px !important; height: 16px !important; }
.wizard-progress .steps i { height: 2px; background: var(--line); display: block; transition: background-color 300ms var(--ease); }
.wizard-progress .steps i.on { background: var(--ink); }
.wizard-progress .count { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.wizard form { display: contents; }
.step { display: none; }
.step.is-current { display: block; animation: stepIn 420ms var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.choices { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices legend { padding: 0; }
.choice {
  position: relative; display: flex; align-items: center; gap: 14px;
  min-height: 58px; padding: 0 18px; margin-top: -1px;
  border: 1px solid var(--line); cursor: pointer; background: transparent;
  font-size: 15.5px; font-weight: 480;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.choice:first-of-type { margin-top: 0; }
.choice:hover { background: rgba(18, 18, 18, 0.025); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice .dot {
  width: 16px; height: 16px; border: 1px solid #8c8a83; border-radius: 50%; flex: none;
  display: grid; place-items: center;
}
.choice .dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform 160ms var(--ease); }
.choice:has(input:checked) { border-color: var(--ink); z-index: 1; }
.choice:has(input:checked) .dot { border-color: var(--ink); }
.choice:has(input:checked) .dot::after { transform: scale(1); }
.choice:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; z-index: 2; }

.field { display: block; margin-top: 20px; }
.field-label {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 8px;
}
.field-label .opt { color: var(--ink-3); font-weight: 500; letter-spacing: 0.12em; }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 2px;
  font-size: 16px; line-height: 1.35;
  transition: border-color 160ms var(--ease);
}
.input:hover { border-color: #b9b7b0; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
textarea.input { min-height: 96px; resize: vertical; }
.input[aria-invalid='true'] { border-color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.field-help { margin: 8px 0 0 !important; font-size: 13px !important; color: var(--ink-3) !important; }
.error {
  margin: 8px 0 0 !important; font-size: 13px !important; line-height: 1.4 !important; color: var(--danger) !important;
}
.error:empty { display: none; }
.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 0; margin: 0; padding: 0; min-width: 0; }
.segmented label {
  position: relative; display: grid; place-items: center; min-height: 46px; margin-left: -1px;
  border: 1px solid var(--line); cursor: pointer; font-size: 13.5px; font-weight: 520;
}
.segmented label:first-of-type { margin-left: 0; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--bg); z-index: 1; }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; z-index: 2; }
.privacy { margin-top: 22px !important; font-size: 12.5px !important; color: var(--ink-3) !important; max-width: 46ch !important; }
.wizard-foot {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 18px 44px calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--bg-panel);
}
.wizard-foot .final { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.wizard-foot.is-final { align-items: flex-start; }
.wizard-foot.is-final .final { display: grid; grid-template-columns: 1fr; flex: 0 1 300px; }
.link-btn {
  appearance: none; background: none; border: 0; cursor: pointer; padding: 14px 0; min-height: 44px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
}
.link-btn:hover { color: var(--ink); }
.banner { border: 1px solid var(--danger); padding: 14px 16px; margin: 0 0 18px; }
.banner p { color: var(--danger) !important; margin: 0 !important; font-size: 14px !important; }
.banner[hidden] { display: none; }
.success-mark { width: 44px; height: 44px; margin-bottom: 26px; }


/* ---------- Service points on the car ---------- */
.spots { position: absolute; inset: 0; z-index: 3; pointer-events: none; transition: opacity 320ms var(--ease), visibility 0s linear 320ms; }
.spot {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  opacity: var(--spot-o, 0); will-change: transform;
}
.spot:focus-within { opacity: 1; z-index: 2; }
.spot-btn {
  position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center; border: 0; background: none; cursor: pointer;
  pointer-events: auto; border-radius: 50%; color: var(--ink);
}
.spot-btn::before {
  content: ''; position: absolute; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(250, 249, 246, 0.94); border: 1px solid rgba(18, 18, 18, 0.6);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.14);
  transition: transform 220ms var(--ease), background-color 220ms var(--ease);
}
.spot-btn::after {
  content: ''; position: absolute; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(250, 249, 246, 0.9); opacity: 0;
  animation: spotPulse 2.4s var(--ease) 1.6s 2;
}
@keyframes spotPulse { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(2.1); opacity: 0; } }
.spot-num { position: relative; font-size: 10px; font-weight: 650; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.spot-btn:hover::before, .spot-btn:focus-visible::before { transform: scale(1.12); background: #fff; }
.spot-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.spot-label {
  position: absolute; left: 22px; top: 0; transform: translate(0, -50%);
  white-space: nowrap; pointer-events: none;
  font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  background: var(--bg-panel); border: 1px solid var(--line); padding: 7px 10px; border-radius: 2px;
  opacity: 0; transition: opacity 180ms var(--ease), transform 220ms var(--ease);
}
.spot:hover .spot-label, .spot:focus-within .spot-label { opacity: 1; transform: translate(6px, -50%); }
.spot.is-hidden-by-car .spot-btn { pointer-events: none; }
.spot.is-hidden-by-car:focus-within .spot-btn { pointer-events: auto; }
.app:not(.is-3d-ready) .spots,
.app.is-panel-open .spots,
.app.is-spot-mode .spots { opacity: 0; visibility: hidden; }
.app:not(.is-3d-ready) .spots .spot-btn,
.app.is-panel-open .spots .spot-btn,
.app.is-spot-mode .spots .spot-btn { pointer-events: none; }

/* ---------- Caption for a service point ---------- */
.spotcard {
  position: absolute; z-index: 4; left: var(--gutter); bottom: 48px; max-width: 560px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 420ms var(--ease) 260ms, transform 520ms var(--ease) 260ms;
}
.app.is-spot-mode .spotcard { opacity: 1; transform: none; }
.app.is-spot-mode .intro { opacity: 0; pointer-events: none; transform: translateY(6px); }
.app.is-spot-mode .car-area { left: 38%; right: 2%; top: 80px; bottom: 100px; }
.app.is-spot-mode .intro .actions { pointer-events: none; }
.spotcard-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.spotcard-count, .spotcard-tour {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.spotcard-tour { color: var(--ink); }
.spotcard-steps { display: flex; gap: 2px; margin-left: 2px; }
.step-btn { width: 36px; height: 36px; border-color: transparent; }
.step-btn svg { width: 15px; height: 11px; }
.spotcard-title {
  margin: 0; font-stretch: 118%; font-weight: 680;
  font-size: clamp(28px, 2.7vw, 40px); line-height: 1; letter-spacing: -0.01em; text-transform: uppercase;
}
.spotcard-title:focus { outline: none; }
.spotcard-text { margin: 14px 0 0; max-width: 40ch; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.spotcard .actions { margin-top: 22px; }

/* ---------- Car controls: tour and lights ---------- */
.ctl-btn {
  appearance: none; cursor: pointer; background: transparent; color: var(--ink);
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 2px;
  font-size: 11px; font-weight: 620; letter-spacing: 0.16em; text-transform: uppercase;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.ctl-btn:hover { border-color: var(--ink); }
.ctl-btn[aria-pressed='true'] { border-color: var(--ink); }
.ctl-btn svg { width: 9px; height: 10px; }
.ctl-stop { display: none; }
.ctl-btn[aria-pressed='true'] .ctl-play { display: none; }
.ctl-btn[aria-pressed='true'] .ctl-stop { display: block; }
.ctl-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid currentColor; transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.ctl-lamp { display: none; width: 18px !important; height: 18px !important; }
.sheet-handle { display: none; }
.ctl-btn[aria-pressed='true'] .ctl-dot { background: #f2b33d; border-color: #b9821c; box-shadow: 0 0 0 3px rgba(242, 179, 61, 0.22); }
.controls { gap: 10px; }
.controls .hint { margin-right: 8px; }

/* Desktop: panels open → the text steps aside and the car moves into the free space */
.app.is-panel-open .intro, .app.is-panel-open .controls { opacity: 0; pointer-events: none; transform: translateY(6px); }
.app.is-panel-open .car-area { left: 40px; right: calc(var(--panel-w) + 40px); top: 96px; bottom: 88px; }
body.is-panel-open .nav { transform: translateX(calc(-1 * var(--panel-w))); }
.scrim { position: fixed; inset: 0; z-index: 25; background: rgba(18, 18, 18, 0.16); opacity: 0; pointer-events: none; transition: opacity 320ms var(--ease); }
body.is-panel-open.is-away .scrim { display: block; opacity: 1; pointer-events: auto; }
html.is-locked, html.is-locked body { overflow: hidden; }
.panel--menu { display: none; }

/* Short desktop windows */
@media (min-width: 761px) and (max-height: 700px) {
  .car-area { top: 80px; bottom: 250px; }
  .intro, .controls { bottom: 32px; }
  .headline { font-size: clamp(28px, 3vw, 40px); }
  .lede { margin-top: 12px; }
  .actions { margin-top: 18px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  :root { --gutter: 36px; --panel-w: 420px; }
  .car-area { left: 6%; right: 6%; }
}

/* ---------- Phone and portrait layouts ---------- */
@media (max-width: 760px), (max-aspect-ratio: 949/1000) {
  :root { --car-aspect: 1.75; --gutter: 20px; }
  .nav { display: none; }
  .menu-btn { display: block; }
  .brand { font-size: 13px; letter-spacing: 0.16em; }
  .intro {
    left: var(--gutter); right: var(--gutter); top: calc(var(--header-h) + 6px);
    bottom: max(16px, env(safe-area-inset-bottom)); max-width: none;
    display: flex; flex-direction: column;
  }
  .headline { font-size: clamp(28px, 8.4vw, 40px); }
  .lede { font-size: 14.5px; margin-top: 12px; }
  .intro .actions { margin-top: auto; display: grid; grid-template-columns: 1fr; gap: 8px; }
  .intro .notice { order: 3; text-align: center; margin-top: 10px; }
  .app.is-panel-open .intro { transform: none; }
  .app .btn, .panel .btn { min-height: 52px; width: 100%; }
  .car-area {
    left: 8px; right: 8px;
    top: calc(var(--header-h) + 150px);
    bottom: calc(max(16px, env(safe-area-inset-bottom)) + 158px);
  }
  .controls {
    left: var(--gutter); right: var(--gutter); justify-content: space-between;
    bottom: calc(max(16px, env(safe-area-inset-bottom)) + 120px);
  }
  .icon-btn { width: 44px; height: 44px; border-color: transparent; margin-right: -12px; }
  .controls { gap: 6px; }
  .controls .hint { margin-right: auto; }
  .controls .hint span { display: none; }
  .ctl-btn { height: 40px; padding: 0 11px; }
  .step-btn { margin-right: 0; }
  .spotcard {
    left: var(--gutter); right: var(--gutter); top: calc(var(--header-h) + 6px);
    bottom: max(16px, env(safe-area-inset-bottom)); max-width: none;
    display: flex; flex-direction: column; pointer-events: none;
  }
  .spotcard > * { pointer-events: auto; }
  .spotcard .actions { margin-top: auto; display: grid; grid-template-columns: 1fr; gap: 8px; }
  .spotcard-title { font-size: clamp(26px, 7.6vw, 36px); }
  .spotcard-text { font-size: 14.5px; margin-top: 10px; }
  .app.is-spot-mode .intro { transform: none; }
  .app.is-spot-mode .car-area { left: 0; right: 0; top: calc(var(--header-h) + 140px); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 168px); }

  /* Bottom sheets: the car stays visible above them */
  .panel {
    top: auto; left: 0; right: 0; width: 100%;
    bottom: var(--kb);
    height: min(76dvh, calc(var(--vvh) - 72px));
    border-left: 0; border-top: 1px solid var(--line);
    transform: translateY(24px);
  }
  .panel--menu { display: flex; height: min(64dvh, calc(var(--vvh) - 72px)); }
  .panel-head { padding: 18px 12px 0 var(--gutter); }
  .panel-body { padding: 26px var(--gutter) calc(28px + env(safe-area-inset-bottom)); }
  .panel-title { font-size: 26px; }
  .wizard-foot { padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom)); }
  .wizard-foot .final { display: grid; grid-template-columns: 1fr; width: 100%; }
  .wizard-foot.is-final { flex-direction: column-reverse; align-items: stretch; }
  .wizard-foot.is-final .link-btn { align-self: flex-start; }
  .wizard-foot.is-final .final { flex: none; }
  .app.is-panel-open .car-area {
    left: 8px; right: 8px; top: var(--header-h);
    bottom: calc(min(76dvh, calc(var(--vvh) - 72px)) + var(--kb) + 4px);
  }
  .app[data-panel='menu'] .car-area { bottom: calc(min(64dvh, calc(var(--vvh) - 72px)) + 4px); }
  .app.is-panel-open .intro { opacity: 0; }
  .details > div { grid-template-columns: 92px 1fr; }
  .service-list li { font-size: 17px; }
  .menu-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
  .menu-links a, .menu-links button {
    appearance: none; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 0; text-align: left;
    font-stretch: 116%; font-weight: 640; font-size: 26px; letter-spacing: -0.005em; text-transform: uppercase;
  }
  .menu-links svg { width: 16px; height: 12px; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) and (max-height: 640px) {
  .headline { font-size: 26px; }
  .lede { display: none; }
  .car-area { top: calc(var(--header-h) + 76px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; transition-delay: 0s !important; }
}
@media (forced-colors: active) {
  .btn, .icon-btn, .choice, .input { border: 1px solid CanvasText; }
}

/* ================= Phone: native-feeling layout and gestures ================= */
@media (max-width: 760px), (max-aspect-ratio: 949/1000) {
  /* The car lives only in its own window: it never slides behind text or sheets. */
  .car-area { top: var(--clip-t, calc(var(--header-h) + 150px)) !important; bottom: var(--clip-b, 200px) !important; left: 6px !important; right: 6px !important; }
  .viewer, .spots { clip-path: inset(var(--clip-t, 0px) 0 var(--clip-b, 0px) 0); }
  .viewer { transition: opacity 700ms var(--ease), clip-path 460ms var(--ease); }
  .spots { transition: opacity 320ms var(--ease), visibility 0s linear 320ms, clip-path 460ms var(--ease); }

  .headline { font-size: clamp(26px, 7.6vw, 34px); }
  .lede { font-size: 14px; margin-top: 10px; }

  /* Thumb-zone dock: two buttons side by side */
  .intro .actions { grid-template-columns: 1fr 1fr; gap: 8px; }
  .app .btn, .panel .btn { min-height: 50px; padding: 0 10px; border-radius: 12px; font-size: 11.5px; letter-spacing: 0.09em; gap: 8px; }
  .app .btn .ico, .panel .btn .ico { width: 17px; height: 17px; }
  .intro .notice {
    position: absolute; left: 0; right: 0; bottom: 124px; margin: 0; order: 0; text-align: center;
    background: var(--ink); color: var(--bg); padding: 11px 14px; border-radius: 12px; font-size: 13px; line-height: 1.35;
  }
  .panel .notice { background: var(--ink); color: var(--bg); padding: 11px 14px; border-radius: 12px; }

  /* Round icon controls above the dock */
  .controls { left: var(--gutter); right: var(--gutter); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 62px); gap: 8px; }
  .controls .hint { margin-right: auto; }
  .controls .hint span { display: inline; font-size: 10px; letter-spacing: 0.14em; }
  .controls .hint svg { width: 22px; }
  .ctl-btn, .controls .icon-btn {
    width: 44px; height: 44px; padding: 0; margin: 0; justify-content: center; border-radius: 50%;
    border: 1px solid var(--line); background: var(--bg-panel);
  }
  .ctl-btn:active, .controls .icon-btn:active { transform: scale(0.94); }
  .ctl-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ctl-btn svg { width: 11px; height: 12px; }
  .ctl-dot { display: none; }
  .ctl-lamp { display: block; }
  #lights-btn[aria-pressed='true'] { background: var(--ink); color: #f2c35d; border-color: var(--ink); }
  #tour-btn[aria-pressed='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .app.is-spot-mode .controls { opacity: 0; pointer-events: none; }

  /* Bigger touch targets on the car; no hover labels on touch screens */
  .spot-btn { left: -24px; top: -24px; width: 48px; height: 48px; }
  .spot-btn::before, .spot-btn::after { width: 30px; height: 30px; }

  /* Bottom sheets */
  .sheet-handle { display: block; flex: none; width: 38px; height: 5px; border-radius: 3px; background: #cdcbc4; margin: 9px auto 0; }
  .panel {
    border-radius: 18px 18px 0 0; border-top: 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.08);
    opacity: 1; transform: translateY(102%);
    transition: transform 460ms var(--ease), visibility 0s linear 460ms;
  }
  .panel.is-open { transform: none; transition: transform 480ms var(--ease), visibility 0s; }
  .panel-head { padding: 6px 10px 0 var(--gutter); touch-action: none; }
  .panel-body { padding-top: 18px; }
  .scrim { display: block; background: rgba(18, 18, 18, 0.22); }
  body.is-panel-open .scrim { opacity: 1; pointer-events: auto; }
  .choice { border-radius: 0; min-height: 56px; }
  .choice:first-of-type { border-radius: 12px 12px 0 0; }
  .choice:last-of-type { border-radius: 0 0 12px 12px; }
  .input { border-radius: 10px; }
  .segmented label:first-of-type { border-radius: 10px 0 0 10px; }
  .segmented label:last-of-type { border-radius: 0 10px 10px 0; }

  /* Service point: a swipeable bottom sheet */
  .spotcard {
    top: auto !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    display: block !important; z-index: 6; pointer-events: auto;
    background: var(--bg-panel); border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.08);
    padding: 0 var(--gutter) calc(14px + env(safe-area-inset-bottom));
    opacity: 1; transform: translateY(105%);
    transition: transform 460ms var(--ease); touch-action: none;
  }
  .app.is-spot-mode .spotcard { transform: none; }
  .spotcard-top { padding-top: 12px; transition: transform 260ms var(--ease); }
  .spotcard-meta { margin-bottom: 10px; }
  .spotcard-steps { margin-left: auto; }
  .step-btn { width: 44px; height: 44px; }
  .spotcard-dots { display: flex; gap: 6px; }
  .spotcard .actions { margin-top: 16px !important; display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
}
@media (hover: none) {
  .spot-label { display: none; }
}

/* Phones: the car parts are the buttons. No markers, no tour, no lights button. */
@media (max-width: 760px), (max-aspect-ratio: 949/1000) {
  .spots, #tour-btn, #lights-btn, .scroll-cue { display: none !important; }
  .controls .hint .hint-desk, .controls .hint svg { display: none; }
  .controls .hint .hint-touch { display: inline; letter-spacing: 0.08em; font-size: 10.5px; }
  .controls .hint { color: var(--ink-2); }
  .app.has-interacted .hint { opacity: 1; }
  .app.has-tapped .hint { opacity: 0; }
  .app.is-lite .hint { display: none; }
  .view3d-btn { width: auto !important; padding: 0 16px !important; border-radius: 22px !important; margin-left: auto; }
  .site-header--home:not(.is-solid) { background: transparent; }
  .wizard .field--short { max-width: none; }
}

/* Poster rendering mode (used once to make the static images) */
.is-poster-mode .studio, .is-poster-mode .poster, .is-poster-mode .site-header, .is-poster-mode .scroll-cue, .is-poster-mode .intro,
.is-poster-mode .controls, .is-poster-mode .panel { display: none !important; }
html.poster-html, html.poster-html body, .is-poster-mode { background: transparent !important; }
.is-poster-mode .viewer { opacity: 1 !important; transition: none !important; }

/* test hook: no transitions */
.no-anim *, .no-anim *::before, .no-anim *::after { transition: none !important; animation: none !important; }
