.test-drive {
  --drive-bg: var(--copper);
  --drive-paper: var(--paper);
  --drive-ink: var(--deep);
  position: relative;
  overflow: hidden;
  min-height: 720px;
  padding: clamp(48px, 4.8vw, 78px) 0 clamp(38px, 4vw, 62px);
  background: var(--drive-bg);
  color: var(--drive-paper);
}

.drive-shell {
  width: min(calc(100% - 80px), 1720px);
  margin: 0 auto;
}

.drive-heading h2 {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(40px, 8vw, 150px);
  font: 700 clamp(3.2rem, 4.8vw, 5.8rem)/0.95 "Montserrat", sans-serif;
  letter-spacing: -0.07em;
}

.drive-heading h2 > span {
  max-width: 570px;
}

.drive-heading h2 > em {
  max-width: 850px;
  justify-self: end;
  color: var(--drive-ink);
  font-style: normal;
  text-align: right;
}

.drive-stage {
  position: relative;
  height: clamp(330px, 29vw, 440px);
  margin-top: clamp(-22px, -1.5vw, -10px);
}

.drive-lineup {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1180px, 92vw);
  aspect-ratio: 1440 / 540;
  transform: translate(-50%, -50%);
}

.drive-lineup-image {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.92) contrast(1.035);
  user-select: none;
  -webkit-user-drag: none;
}

.drive-models {
  position: absolute;
  z-index: 2;
  left: 4%;
  right: 2%;
  top: 84.8%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  pointer-events: none;
}

.drive-models span {
  justify-self: center;
  color: var(--drive-paper);
  font: 700 clamp(0.65rem, 0.8vw, 0.82rem)/1 "Montserrat", sans-serif;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-shadow: 0 1px 5px rgba(35, 25, 20, 0.38);
}

.drive-car-hit {
  --lamp-left-x: 50%;
  --lamp-right-x: 95%;
  --lamp-y: 49%;
  --lamp-width: 23%;
  --lamp-height: 8%;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 33.333%;
  z-index: 3;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.drive-car-hit--1 {
  left: 0;
  --lamp-left-x: 51%;
  --lamp-right-x: 108%;
  --lamp-y: 51%;
}

.drive-car-hit--2 {
  left: 33.333%;
  --lamp-left-x: 46%;
  --lamp-right-x: 102%;
  --lamp-y: 47%;
}

.drive-car-hit--3 {
  left: 66.666%;
  --lamp-left-x: 47%;
  --lamp-right-x: 91%;
  --lamp-y: 52%;
  --lamp-width: 11%;
  --lamp-height: 4.5%;
}

.drive-lamp {
  position: absolute;
  left: var(--lamp-left-x);
  top: var(--lamp-y);
  width: var(--lamp-width);
  height: var(--lamp-height);
  z-index: 4;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(ellipse, #fff 0 10%, #fffbdc 23%, rgba(255, 200, 94, 0.94) 41%, rgba(239, 113, 34, 0.35) 58%, transparent 76%);
  filter: blur(3px);
  mix-blend-mode: screen;
  transform: translate(-50%, -50%) scale(0.45);
  transition: opacity 180ms ease, transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 240ms ease;
  pointer-events: none;
}

.drive-lamp--right { left: var(--lamp-right-x); }

.drive-lamp::after {
  content: "";
  position: absolute;
  inset: -130% -55%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 250, 229, 0.8), rgba(255, 165, 79, 0.17) 46%, transparent 70%);
  filter: blur(8px);
}

.drive-car-hit:hover .drive-lamp,
.drive-car-hit:focus-visible .drive-lamp,
.drive-car-hit.is-lit .drive-lamp {
  opacity: 1;
  filter: blur(1px);
  transform: translate(-50%, -50%) scale(1);
}

.drive-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 90px);
}

.drive-cta {
  min-height: 64px;
  flex: 0 0 auto;
  border: 0;
  background: var(--drive-ink);
  color: var(--drive-paper);
  padding: 13px 18px 13px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  font: 800 0.78rem/1 "Montserrat", sans-serif;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.drive-key {
  width: 34px;
  height: 34px;
  color: var(--drive-paper);
  transition: transform 180ms ease, color 180ms ease;
}

.drive-cta:hover,
.drive-cta:focus-visible {
  background: var(--drive-paper);
  color: var(--drive-ink);
  transform: translateY(-2px);
}

.drive-cta:hover .drive-key,
.drive-cta:focus-visible .drive-key {
  color: var(--drive-ink);
  transform: rotate(-8deg);
}

.drive-cta:focus-visible,
.drive-car-hit:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  box-shadow: 0 0 0 7px #2d2825;
}

.drive-investment {
  max-width: 650px;
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.drive-investment strong {
  white-space: nowrap;
  color: var(--drive-paper);
  font: 800 clamp(1.8rem, 2.2vw, 2.6rem)/1 "Montserrat", sans-serif;
  letter-spacing: -0.055em;
}

.drive-investment span {
  max-width: 420px;
  color: #fff;
  font: 600 clamp(0.78rem, 0.9vw, 0.96rem)/1.42 "Montserrat", sans-serif;
}

@media (max-width: 1280px) {
  .test-drive {
    min-height: 720px;
    padding: 44px 0 38px;
  }

  .drive-shell { width: min(calc(100% - 56px), 1420px); }

  .drive-heading h2 {
    gap: 42px;
    font-size: clamp(2.85rem, 4.2vw, 3.45rem);
  }

  .drive-stage { height: 390px; margin-top: -12px; }
  .drive-lineup { width: min(1120px, 92vw); }
}

@media (max-width: 820px) {
  .test-drive { min-height: 0; }
  .drive-shell { width: min(calc(100% - 40px), 760px); }

  .drive-heading h2 {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .drive-heading h2 > span { max-width: 620px; }
  .drive-heading h2 > em { max-width: 680px; text-align: left; justify-self: start; }
  .drive-stage { height: clamp(230px, 42vw, 330px); margin-top: 0; }
  .drive-lineup { width: 108%; }

  .drive-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 24px;
  }

  .drive-cta { width: fit-content; }
}

@media (max-width: 620px) {
  .test-drive { padding: 54px 0 46px; }
  .drive-shell { width: calc(100% - 34px); }

  .drive-heading h2 {
    gap: 15px;
    font-size: clamp(2.35rem, 10.7vw, 3.35rem);
    line-height: 0.97;
  }

  .drive-stage { height: 190px; }
  .drive-lineup { width: 112%; }

  .drive-cta {
    width: 100%;
    min-height: 60px;
    gap: 18px;
    text-align: left;
  }

  .drive-key { width: 31px; height: 31px; }

  .drive-investment {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .drive-investment strong { font-size: 2rem; }
  .drive-investment span { max-width: 330px; font-size: 0.78rem; }
}

@media (hover: none) {
  .drive-car-hit:active .drive-lamp { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .drive-cta,
  .drive-key,
  .drive-lamp { transition-duration: 0.01ms; }
}
