.hero-art img, .hero-car {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  pointer-events: none;
}

/* The matching polygons keep road markings fixed while the car settles. */
.hero-ground {
  clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0,
    28% 5%, 73% 5%, 73% 66%, 72.5% 99%, 28.5% 99%, 28.5% 73%, 28% 66%, 28% 5%, 0 0);
}
.hero-car {
  clip-path: polygon(28% 5%, 73% 5%, 73% 66%, 72.5% 99%, 28.5% 99%, 28.5% 73%, 28% 66%);
  transform-origin: 50% 63%;
  animation: hero-arrive 1s cubic-bezier(.18,.66,.24,1) both,
    hero-idle .58s 1s ease-in-out infinite;
}
.hero-art .hero-tail-flicker, .hero-art .hero-lamp {
  filter: brightness(.3);
  opacity: 0;
}
.hero-tail-flicker {
  clip-path: polygon(29.9% 38%, 42% 38%, 42% 51.5%, 29.9% 51.5%,
    29.9% 71%, 44% 71%, 44% 97%, 29.9% 97%, 29.9% 71%, 29.9% 51.5%, 29.9% 38%,
    59.3% 38%, 71% 38%, 71% 51.5%, 59.3% 51.5%, 59.3% 71%, 71% 71%, 71% 97%,
    56% 97%, 56% 71%, 59.3% 71%, 59.3% 51.5%, 59.3% 38%);
  animation: hero-tail-start .64s .53s linear both;
}
.hero-lamp-left {
  clip-path: ellipse(4.3% 5.2% at 22.5% 17.5%);
  animation: hero-lamp-start 1.05s ease-in-out both;
}
.hero-lamp-right {
  clip-path: ellipse(4.5% 5.2% at 77% 17.5%);
  animation: hero-lamp-start 1.17s .09s ease-in-out both;
}
@keyframes hero-arrive {
  from { transform: translateY(-3%) scale(.88); opacity: .78; }
  to { transform: none; opacity: 1; }
}
@keyframes hero-idle {
  0%, 100% { transform: none; }
  50% { transform: translateY(.32px); }
}
@keyframes hero-lamp-start {
  0% { opacity: .94; }
  16%, 47% { opacity: .12; }
  27% { opacity: .76; }
  62% { opacity: .44; }
  84%, 100% { opacity: 0; }
}
@keyframes hero-tail-start {
  0%, 38%, 60% { opacity: .83; }
  27%, 49%, 72%, 100% { opacity: 0; }
}


.hero.is-offscreen .hero-car { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .hero .hero-art * { animation: none; }
}
