:root {
  --im-gold: #d4aa57;
  --im-gold-deep: #a97725;
  --im-ink: #080909;
  --im-ease: cubic-bezier(.22, 1, .36, 1);
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
body.native-dialog-open,
body.quote-dialog-open { overflow: hidden; }
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #f0c56d;
  outline-offset: 3px;
}

/* Hero ligero: AVIF/WebP responsivo con fallback local. */
.hero {
  isolation: isolate;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.52) 42%, rgba(0,0,0,.06) 72%),
    url('/assets/hero/hero-incamotors-1600.ac7ba7471d7d.webp');
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.52) 42%, rgba(0,0,0,.06) 72%),
    image-set(
      url('/assets/hero/hero-incamotors-1600.e82125cb06dd.avif') type('image/avif'),
      url('/assets/hero/hero-incamotors-1600.ac7ba7471d7d.webp') type('image/webp')
    );
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at calc(72% + var(--hero-x, 0px)) calc(56% + var(--hero-y, 0px)), rgba(228,184,92,.13), transparent 25%),
    linear-gradient(180deg, transparent 62%, rgba(8,9,9,.32));
}
.hero-depth-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: .9;
  transition: opacity .35s ease;
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  padding: 7px 11px;
  border: 1px solid rgba(227,188,107,.36);
  border-radius: 999px;
  background: rgba(8,9,9,.42);
  color: #f0d49c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--im-gold);
  box-shadow: 0 0 0 5px rgba(212,170,87,.13);
}
.hero-microproof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  color: #d9dcdf;
  font-size: 11px;
  font-weight: 650;
}
.hero-microproof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-microproof span::before { content: "✓"; color: var(--im-gold); font-weight: 900; }
.hero-actions { flex-wrap: wrap; }
.showroom-cta { position: relative; overflow: hidden; }
.showroom-cta::after {
  content: "";
  position: absolute;
  inset: -100% -35%;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.24) 49%, transparent 63%);
  transform: translateX(-55%) rotate(8deg);
  transition: transform .7s var(--im-ease);
}
.showroom-cta:hover::after,
.showroom-cta:focus-visible::after { transform: translateX(55%) rotate(8deg); }

/* Entrada cinematográfica, solo después de que JS confirme disponibilidad. */
.motion-ready:not(.motion-reduced) .hero-copy > * {
  animation: im-hero-in .84s var(--im-ease) both;
}
.motion-ready:not(.motion-reduced) .hero-copy > *:nth-child(2) { animation-delay: .07s; }
.motion-ready:not(.motion-reduced) .hero-copy > *:nth-child(3) { animation-delay: .14s; }
.motion-ready:not(.motion-reduced) .hero-copy > *:nth-child(4) { animation-delay: .21s; }
.motion-ready:not(.motion-reduced) .hero-copy > *:nth-child(5) { animation-delay: .28s; }
@keyframes im-hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes im-app-in {
  from { opacity: 0; transform: scale(.987) translateY(7px); }
  to { opacity: 1; transform: none; }
}
.app-enter { animation: im-app-in .38s var(--im-ease) both; transform-origin: 50% 0; }

/* Scroll reveal progresivo. Sin JS el contenido permanece visible. */
.motion-ready:not(.motion-reduced) [data-reveal].is-reveal-pending {
  opacity: 0;
  transform: translateY(22px);
  visibility: hidden;
}
.motion-ready:not(.motion-reduced) [data-reveal] {
  transition: opacity .68s var(--im-ease), transform .68s var(--im-ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.motion-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  visibility: visible;
}

/* Finder con feedback y estado accesible. */
.finder { transition: border-color .3s ease, box-shadow .3s ease, transform .3s var(--im-ease); }
.finder:focus-within {
  border-color: rgba(212,170,87,.78);
  box-shadow: 0 18px 60px rgba(0,0,0,.32), 0 0 0 3px rgba(212,170,87,.12);
}
.finder.is-searching { transform: translateY(-2px); }
.finder-status {
  position: absolute;
  left: 26px;
  top: calc(100% + 10px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(212,170,87,.25);
  border-radius: 999px;
  background: #121313;
  color: #d7dade;
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
  font-size: 11px;
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
  transition: .25s ease;
}
.finder-status.is-visible { opacity: 1; transform: none; }
.finder-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--im-gold); }

/* Tarjetas 2.5D: amplitud contenida, sin cambiar layout. */
.vehicle-card {
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  --shine-x: 50%;
  --shine-y: 50%;
  position: relative;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
  transform-origin: center;
  transition: transform .38s var(--im-ease), border-color .25s ease, box-shadow .38s ease;
  will-change: auto;
}
.vehicle-card:hover { --lift: -6px; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift)); }
.motion-ready:not(.motion-reduced) .vehicle-card.is-revealed,
.motion-ready:not(.motion-reduced) .vehicle-card.is-revealed:hover {
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
}
.vehicle-card.is-tilting {
  border-color: rgba(212,170,87,.64);
  box-shadow: 0 24px 65px rgba(0,0,0,.34);
  transition-duration: .08s;
  will-change: transform;
}
.vehicle-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255,230,172,.23), transparent 34%);
  transition: opacity .2s ease;
}
.vehicle-card.is-tilting::after { opacity: 1; }
.vehicle-card .car-media {
  isolation: isolate;
  background: linear-gradient(145deg, #fff, #e8ebee) !important;
}
.vehicle-card .car-media img { mix-blend-mode: normal !important; }
.vehicle-card .car-media img { transition: transform .45s var(--im-ease), filter .35s ease; }
.vehicle-card:hover .car-media img { transform: scale(1.035) translateY(-2px); filter: drop-shadow(0 16px 12px rgba(0,0,0,.15)); }
.vehicle-card.is-previewed { animation: im-preview-pulse 1.2s ease; }
@keyframes im-preview-pulse { 0%,100% { box-shadow: none; } 45% { box-shadow: 0 0 0 4px rgba(212,170,87,.34), 0 20px 60px rgba(0,0,0,.3); } }

/* Controles de experiencia. */
.experience-controls {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 175;
  display: flex;
  align-items: center;
  gap: 9px;
}
.experience-control {
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 999px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(13,14,15,.94);
  color: #f3f4f5;
  box-shadow: 0 15px 45px rgba(0,0,0,.27);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
  transition: transform .25s var(--im-ease), border-color .2s, background .2s;
}
.experience-control:hover { transform: translateY(-2px); border-color: rgba(212,170,87,.65); }
.experience-control--primary {
  border-color: #e4bb67;
  background: linear-gradient(135deg, #e1b65e, #af7b27);
  color: #0b0b0b;
}
.experience-control .control-icon { font-size: 17px; line-height: 1; }
.experience-control .control-state { color: #dfbe78; }
.experience-control--primary .control-state { color: inherit; }
.experience-nudge {
  position: absolute;
  right: 0;
  bottom: 55px;
  width: 250px;
  padding: 13px 15px;
  border: 1px solid rgba(212,170,87,.3);
  border-radius: 13px;
  background: #111213;
  color: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.34);
  font-size: 12px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px) scale(.97);
  pointer-events: none;
  transition: .3s var(--im-ease);
}
.experience-nudge.is-visible { opacity: 1; transform: none; }
.experience-nudge b { display: block; color: #edc978; margin-bottom: 3px; }

/* Selector de recorrido. */
.experience-chooser {
  width: min(650px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  padding: 0;
  border: 1px solid rgba(212,170,87,.36);
  border-radius: 22px;
  background: #101112;
  color: #fff;
  box-shadow: 0 35px 120px rgba(0,0,0,.62);
  overflow: auto;
}
.experience-chooser::backdrop { background: rgba(3,4,4,.78); backdrop-filter: blur(8px); }
.experience-chooser[open] { animation: im-dialog-in .38s var(--im-ease) both; }
@keyframes im-dialog-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.chooser-head { padding: 27px 28px 12px; position: relative; }
.chooser-kicker { color: #dfb65d; font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.chooser-head h2 { margin: 8px 46px 8px 0; font-size: 30px; letter-spacing: -.7px; }
.chooser-head p { margin: 0; max-width: 530px; color: #aeb3b8; line-height: 1.55; }
.chooser-close,
.showroom-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 24px;
}
.chooser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 19px 28px 13px; }
.tour-choice {
  min-height: 155px;
  padding: 20px;
  border: 1px solid #303235;
  border-radius: 16px;
  background: linear-gradient(145deg, #1a1b1c, #121314);
  color: #fff;
  text-align: left;
  transition: .28s var(--im-ease);
}
.tour-choice:hover,
.tour-choice:focus-visible { transform: translateY(-3px); border-color: #be8d38; box-shadow: 0 18px 45px rgba(0,0,0,.25); }
.tour-choice .choice-icon { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 14px; border-radius: 11px; background: #2a2418; color: #efc875; font-size: 18px; }
.tour-choice b { display: block; margin-bottom: 7px; font-size: 17px; }
.tour-choice span { color: #aeb2b7; font-size: 12px; line-height: 1.5; }
.chooser-foot { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 28px 26px; color: #878d93; font-size: 11px; }
.chooser-foot button { border: 0; background: transparent; color: #dfbd75; font-weight: 800; }

/* Driver.js con branding Incamotors/AM Digital. */
.driver-popover.incamotors-tour {
  min-width: min(350px, calc(100vw - 28px));
  max-width: 390px;
  padding: 19px;
  border: 1px solid rgba(217,174,87,.55);
  border-radius: 16px;
  background: #111213;
  color: #f7f7f7;
  box-shadow: 0 24px 80px rgba(0,0,0,.48);
}
.driver-popover.incamotors-tour .driver-popover-title { color: #fff; font-size: 19px; line-height: 1.25; }
.driver-popover.incamotors-tour .driver-popover-description { color: #c0c4c8; font-size: 13px; line-height: 1.55; }
.driver-popover.incamotors-tour .driver-popover-progress-text { color: #d9b464; font-size: 11px; }
.driver-popover.incamotors-tour .driver-popover-close-btn { color: #e8e8e8; }
.driver-popover.incamotors-tour .driver-popover-close-btn:hover { color: #fff; }
.driver-popover.incamotors-tour .driver-popover-navigation-btns button {
  min-height: 34px;
  border: 1px solid #5a4930;
  border-radius: 8px;
  background: #1a1b1c;
  color: #fff;
  text-shadow: none;
  font-weight: 750;
}
.driver-popover.incamotors-tour .driver-popover-next-btn { background: linear-gradient(135deg, #d9ae56, #a87523); color: #090909; border-color: #d9ae56; }
.driver-popover.incamotors-tour .driver-popover-arrow-side-left.driver-popover-arrow { border-left-color: #111213; }
.driver-popover.incamotors-tour .driver-popover-arrow-side-right.driver-popover-arrow { border-right-color: #111213; }
.driver-popover.incamotors-tour .driver-popover-arrow-side-top.driver-popover-arrow { border-top-color: #111213; }
.driver-popover.incamotors-tour .driver-popover-arrow-side-bottom.driver-popover-arrow { border-bottom-color: #111213; }
.tour-active .hero-depth-canvas { opacity: .25; }
.tour-active .vehicle-card { --rx: 0deg !important; --ry: 0deg !important; }

/* Showroom 2.5D honesto: no simula una vista 360 inexistente. */
.showroom-dialog {
  width: min(1120px, calc(100vw - 26px));
  height: min(730px, calc(100vh - 26px));
  padding: 0;
  border: 1px solid rgba(217,174,87,.3);
  border-radius: 24px;
  background: #090a0b;
  color: #fff;
  box-shadow: 0 40px 140px rgba(0,0,0,.7);
  overflow: hidden;
}
.showroom-dialog::backdrop { background: rgba(2,3,3,.86); backdrop-filter: blur(10px); }
.showroom-dialog[open] { animation: im-dialog-in .42s var(--im-ease) both; }
.showroom-dialog,
.showroom-panel {
  scrollbar-width: thin;
  scrollbar-color: #9b7533 #151617;
}
.showroom-dialog::-webkit-scrollbar,
.showroom-panel::-webkit-scrollbar { width: 8px; height: 8px; }
.showroom-dialog::-webkit-scrollbar-track,
.showroom-panel::-webkit-scrollbar-track { background: #151617; }
.showroom-dialog::-webkit-scrollbar-thumb,
.showroom-panel::-webkit-scrollbar-thumb { border: 2px solid #151617; border-radius: 999px; background: #9b7533; }
.showroom-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.75fr); height: 100%; }
.showroom-stage {
  --stage-light: rgba(220,172,77,.25);
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  perspective: 1050px;
  background:
    radial-gradient(circle at 50% 42%, var(--stage-light), transparent 31%),
    linear-gradient(145deg, #17191a, #070808 68%);
}
.showroom-stage::before {
  content: "";
  position: absolute;
  width: min(78%, 650px);
  aspect-ratio: 2.3/1;
  bottom: 14%;
  border: 1px solid rgba(224,183,96,.45);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(213,168,76,.16), rgba(0,0,0,.5) 63%, transparent 65%);
  box-shadow: 0 0 70px rgba(216,170,77,.11), inset 0 0 55px rgba(0,0,0,.6);
  transform: rotateX(69deg);
}
.showroom-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.055) 49%, transparent 63%);
  transform: translateX(-65%);
  animation: im-stage-sweep 5.5s ease-in-out infinite;
}
@keyframes im-stage-sweep { 0%,18% { transform: translateX(-70%); } 60%,100% { transform: translateX(75%); } }
.showroom-badge {
  position: absolute;
  left: 24px;
  top: 22px;
  z-index: 3;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  color: #d5d8db;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.showroom-car-wrap {
  --car-rot-x: 0deg;
  --car-rot-y: -2deg;
  position: relative;
  z-index: 2;
  width: min(86%, 690px);
  transform-style: preserve-3d;
  transform: rotateX(var(--car-rot-x)) rotateY(var(--car-rot-y)) translateY(-4%);
  transition: transform .32s var(--im-ease);
  cursor: grab;
  touch-action: none;
}
.showroom-car-wrap.is-dragging { cursor: grabbing; transition-duration: .04s; }
.showroom-car {
  display: block;
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 34px 25px rgba(0,0,0,.62));
  transform: scale(1.18);
  transition: opacity .22s ease, transform .5s var(--im-ease), filter .35s ease;
}
.showroom-car.is-changing { opacity: 0; transform: translateY(8px) scale(1.12); }
.showroom-hint { position: absolute; z-index: 3; bottom: 23px; left: 50%; transform: translateX(-50%); color: #9da3a8; font-size: 11px; white-space: nowrap; }
.showroom-hint kbd { padding: 2px 6px; border: 1px solid #53565a; border-radius: 5px; background: #161718; color: #fff; font: inherit; }
.showroom-panel { position: relative; z-index: 4; overflow: auto; padding: 34px 30px; border-left: 1px solid #292b2d; background: linear-gradient(180deg,#111213,#0b0c0d); }
.showroom-kicker { color: #d6ac55; font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.showroom-panel h2 { margin: 9px 45px 5px 0; font-size: 33px; letter-spacing: -.7px; }
.showroom-panel .model-brand { color: #92979c; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.showroom-price { margin: 20px 0; padding: 15px 0; border-top: 1px solid #2c2e30; border-bottom: 1px solid #2c2e30; }
.showroom-price span { display: block; color: #8d9297; font-size: 11px; }
.showroom-price strong { display: block; margin-top: 3px; color: #fff; font-size: 25px; }
.showroom-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 23px; }
.showroom-spec { padding: 11px; border: 1px solid #2c2e31; border-radius: 10px; background: #151617; }
.showroom-spec span { display: block; color: #81878c; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.showroom-spec b { display: block; margin-top: 5px; font-size: 12px; }
.showroom-models { display: grid; gap: 8px; margin-bottom: 22px; }
.showroom-model {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 7px 10px;
  border: 1px solid #303235;
  border-radius: 10px;
  background: #151617;
  color: #e8eaec;
  text-align: left;
}
.showroom-model img { width: 58px; height: 38px; object-fit: contain; border-radius: 5px; background: #e9e9e9; }
.showroom-model span { display: block; color: #8f9499; font-size: 10px; margin-top: 2px; }
.showroom-model.is-active { border-color: #be8c37; background: #1c1913; box-shadow: inset 3px 0 #d5aa52; }
.showroom-light-controls { display: flex; gap: 8px; align-items: center; color: #868c91; font-size: 10px; }
.showroom-light-controls button { width: 30px; height: 30px; border: 2px solid #26282a; border-radius: 50%; background: var(--swatch); }
.showroom-light-controls button.is-active { border-color: #f0c772; box-shadow: 0 0 0 3px rgba(240,199,114,.15); }
.showroom-panel .btn { width: 100%; margin-top: 22px; }

/* Navegación real en móvil (sustituye el pseudoelemento decorativo). */
.mobile-nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid #343638; border-radius: 10px; background: #171819; color: #fff; font-size: 21px; }
.mobile-tour-menu,
.admin-tour-button { display: none; }
.mobile-tour-menu {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(212,170,87,.38);
  border-radius: 8px;
  padding: 10px 12px;
  background: #1b1812;
  color: #edc978;
  text-align: left;
  font-weight: 800;
}
.admin-tour-button {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(212,170,87,.5);
  border-radius: 8px;
  background: #1c1913;
  color: #edc978;
  font-size: 17px;
}
.admin-mobile-nav { display: none; height: 40px; min-width: 165px; border: 1px solid #3a3c3f; border-radius: 8px; background: #171819; color: #fff; padding: 0 10px; }
.cms-sync-pill { display: inline-flex; align-items: center; gap: 7px; margin-left: 14px; color: #bfc3c7; font-size: 11px; }
.cms-sync-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #35bc69; box-shadow: 0 0 0 4px rgba(53,188,105,.12); }
.cms-sync-pill.is-syncing::before { animation: im-sync-pulse .7s ease infinite alternate; }
@keyframes im-sync-pulse { to { transform: scale(.6); opacity: .5; } }

/* Modal de cotización accesible y aviso honesto de demo. */
.modal[role="dialog"]:focus { outline: none; }
.demo-form-notice { grid-column: 1/-1; padding: 10px 12px; border: 1px solid #e8d9bd; border-radius: 8px; background: #fff9ed; color: #795b26; font-size: 11px; line-height: 1.45; }
#quoteModal .field label { color: #5b451d; }
#quoteModal .form-note { color: #565c63; }
.toast[role="status"] { max-width: min(390px, calc(100vw - 30px)); }

@media (max-width: 1000px) {
  .prototype-bar { gap: 12px; }
  .view-switch button { white-space: nowrap; }
  .site-nav { display: none; }
  .mobile-nav-toggle { display: grid; place-items: center; }
  .site-nav.is-open {
    position: absolute;
    display: grid;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    z-index: 30;
    gap: 2px;
    padding: 10px;
    border: 1px solid #343638;
    border-radius: 13px;
    background: rgba(12,13,14,.98);
    box-shadow: 0 20px 55px rgba(0,0,0,.5);
  }
  .site-nav.is-open a { display: block; padding: 11px 12px; border-radius: 8px; }
  .site-nav.is-open a:hover { background: #1d1e1f; }
  .site-nav.is-open .mobile-tour-menu { display: block; }
  .site-nav.is-open .btn { width: 100%; margin-top: 5px; }
  body.mobile-nav-open .experience-controls { visibility: hidden; pointer-events: none; }
  .hero-actions .btn { min-width: 155px; }
  .showroom-layout { grid-template-columns: minmax(0,1.25fr) 330px; }
  .showroom-panel { padding: 28px 22px; }
}

@media (max-width: 900px) {
  .proto-note { display: none; }
}

@media (max-width: 850px) {
  .proto-brand small { display: none; }
}

@media (max-width: 700px) {
  html { scroll-behavior: auto; }
  .site-header::after { display: none !important; content: none !important; }
  .mobile-nav-toggle { display: grid; place-items: center; }
  .site-nav.is-open {
    position: absolute;
    display: grid;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    z-index: 30;
    gap: 2px;
    padding: 10px;
    border: 1px solid #343638;
    border-radius: 13px;
    background: rgba(12,13,14,.98);
    box-shadow: 0 20px 55px rgba(0,0,0,.5);
  }
  .site-nav.is-open a { display: block; padding: 11px 12px; border-radius: 8px; }
  .site-nav.is-open a:hover { background: #1d1e1f; }
  .site-nav.is-open .btn { margin-top: 5px; }
  .hero {
    background-image:
      linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.58) 52%, rgba(0,0,0,.16) 100%),
      url('/assets/hero/hero-incamotors-960.11121b26c727.webp');
    background-image:
      linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.58) 52%, rgba(0,0,0,.16) 100%),
      image-set(
        url('/assets/hero/hero-incamotors-960.e54237539733.avif') type('image/avif'),
        url('/assets/hero/hero-incamotors-960.11121b26c727.webp') type('image/webp')
      );
  }
  .hero-eyebrow { margin-bottom: 13px; font-size: 9px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { min-width: 0; flex: 1 1 calc(50% - 4px); padding: 12px 10px; font-size: 12px; }
  .hero-actions .showroom-cta { flex-basis: 100%; }
  .hero-microproof { display: none; }
  .finder-status { left: 12px; top: calc(100% + 7px); }
  .vehicle-card,
  .vehicle-card:hover { --rx: 0deg !important; --ry: 0deg !important; transform: translateY(var(--lift)); }
  .motion-ready:not(.motion-reduced) .vehicle-card.is-revealed,
  .motion-ready:not(.motion-reduced) .vehicle-card.is-revealed:hover { transform: translateY(var(--lift)); }
  .experience-controls {
    position: absolute;
    top: 132px;
    right: 11px;
    bottom: auto;
    left: auto;
    justify-content: flex-end;
  }
  body.mobile-nav-open .experience-controls { visibility: hidden; pointer-events: none; }
  body.view-admin .experience-controls { display: none; }
  .experience-control { min-height: 44px; padding: 0 12px; font-size: 11px; }
  #motionToggle { width: 44px; min-width: 44px; padding: 0; }
  #motionToggle .control-label-motion,
  #motionToggle .control-state { display: none; }
  #tourLauncher { min-width: 72px; padding: 0 13px; }
  #tourLauncher .tour-label { display: none; }
  #tourLauncher::after { content: "Tour"; }
  .experience-nudge { display: none; }
  .chooser-grid { grid-template-columns: 1fr; }
  .chooser-head { padding: 23px 20px 10px; }
  .chooser-head h2 { font-size: 25px; }
  .chooser-grid { padding: 14px 20px 10px; }
  .tour-choice { min-height: 126px; padding: 16px; }
  .chooser-foot { padding: 11px 20px 22px; }
  .showroom-dialog {
    height: calc(100vh - 14px);
    height: calc(100dvh - 14px);
    max-height: calc(100vh - 14px);
    max-height: calc(100dvh - 14px);
    width: calc(100vw - 14px);
    border-radius: 18px;
    overflow: auto;
    overscroll-behavior: contain;
  }
  .showroom-layout { grid-template-columns: 1fr; height: auto; min-height: 100%; }
  .showroom-stage { min-height: clamp(245px, 34vh, 290px); min-height: clamp(245px, 34dvh, 290px); }
  .showroom-stage::before { bottom: 8%; }
  .showroom-car-wrap { width: 89%; }
  .showroom-car { max-height: 215px; }
  .showroom-hint { bottom: 12px; font-size: 9px; }
  .showroom-panel { border-left: 0; border-top: 1px solid #292b2d; padding: 19px 19px 22px; overflow: visible; }
  .showroom-panel h2 { font-size: 27px; }
  .showroom-price { margin: 13px 0; padding: 11px 0; }
  .showroom-specs { gap: 7px; margin-bottom: 14px; }
  .showroom-spec { padding: 8px; }
  .showroom-models { margin-bottom: 14px; }
  .showroom-models { grid-template-columns: repeat(2,1fr); }
  .showroom-model { min-width: 0; display: block; padding: 7px; text-align: center; }
  .showroom-model img { width: 100%; }
  .showroom-model b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
  .showroom-model span { display: none; }
  .showroom-panel .btn { margin-top: 14px; }
  .admin-mobile-nav { display: block; }
  .admin-search { display: none; }
  .admin-mobile-nav { min-width: 0; max-width: 180px; height: 44px; flex: 1 1 auto; }
  .admin-tour-button { display: grid; place-items: center; }
  .cms-sync-pill { flex: 0 0 14px; width: 14px; margin-left: 0; overflow: hidden; font-size: 0; }
  .admin-top { gap: 8px; }
  #quoteModal { padding: 8px; }
  #quoteModal .modal {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero-depth-canvas { opacity: .42; }
  .showroom-stage::after { display: none; }
}
.motion-reduced .hero-depth-canvas { opacity: .38; }
.motion-reduced .showroom-stage::after { display: none; }
.motion-reduced [data-reveal] { opacity: 1 !important; transform: none !important; }
