.rx-intro {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1.45;
  background: radial-gradient(ellipse at 50% 58%, #151c1f, transparent 68%);
}

.rx-haze {
  position: absolute;
  inset: 8% 2% 5%;
  background: radial-gradient(ellipse 47% 40% at 48% 59%, #777b7c 0%, #4d5356 35%, #242a2e 67%, transparent 100%);
  animation: rx-haze 5.2s ease both;
}

.rx-shot {
  position: relative;
  width: 83%;
  margin-top: 2%;
  animation: rx-camera 4.8s cubic-bezier(.42,.20,.30,1) both;
}

.rx-shot::before {
  position: absolute;
  inset: 72% 6% 4% 3%;
  content: "";
  background: radial-gradient(ellipse, #000d 15%, #0007 48%, transparent 73%);
}

.rx-car {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  clip-path: polygon(4.6% 78.0%, 5.2% 75.1%, 4.9% 72.1%, 4.9% 66.3%, 5.2% 59.5%, 5.9% 55.2%, 6.8% 51.7%, 8.7% 47.6%, 11.5% 44.3%, 15.7% 41.3%, 20.7% 39.1%, 26.5% 36.5%, 28.2% 35.5%, 27.2% 34.4%, 27.0% 33.2%, 27.9% 31.7%, 29.3% 30.4%, 30.7% 30.6%, 32.6% 27.2%, 36.5% 22.0%, 40.5% 18.0%, 43.8% 16.1%, 48.7% 14.5%, 56.0% 13.7%, 64.5% 13.5%, 72.3% 14.0%, 79.1% 15.1%, 86.3% 15.1%, 88.1% 15.7%, 89.0% 17.5%, 89.1% 20.4%, 88.4% 23.2%, 87.3% 24.4%, 87.0% 26.6%, 88.4% 29.6%, 90.0% 31.0%, 91.1% 33.6%, 91.3% 36.0%, 94.2% 37.0%, 95.0% 38.4%, 95.4% 41.3%, 95.9% 44.6%, 95.7% 49.5%, 95.6% 55.5%, 95.1% 61.4%, 94.2% 65.4%, 93.1% 67.3%, 91.6% 68.7%, 89.6% 69.0%, 88.7% 68.5%, 84.8% 71.5%, 79.7% 75.8%, 74.9% 80.1%, 71.9% 81.8%, 70.6% 84.6%, 69.1% 87.7%, 67.1% 89.4%, 64.6% 90.1%, 61.7% 89.6%, 58.9% 88.9%, 55.2% 89.4%, 46.4% 89.3%, 38.0% 88.1%, 28.7% 86.9%, 21.1% 85.1%, 14.4% 83.0%, 10.0% 82.4%, 7.1% 81.0%, 5.2% 79.6%);
  animation: rx-exposure 5.2s ease both;
}

.rx-lights {
  position: absolute;
  inset: 0;
  animation: rx-ignition 5.2s ease both, rx-headlight-flash 1.08s 5.3s ease-in-out forwards;
}

.rx-lights i {
  position: absolute;
  top: 57.6%;
  left: 42.6%;
  width: 13%;
  height: 0.6%;
  border-radius: 50%;
  background: #f2fbff;
  box-shadow: 0 0 7px #f2fbff, 0 0 22px 3px #92d9ffad;
  transform: rotate(-11deg);
}

.rx-lights i:first-child {
  top: 55.7%;
  left: 8.1%;
  width: 5.1%;
  transform: rotate(-39deg);
}

.rx-platform {
  position: absolute;
  top: 51%;
  left: 3%;
  width: 69%;
  height: 31%;
  background: radial-gradient(ellipse at 62% 24%, #dce9ec83, #8d9fa45c 34%, transparent 72%);
  filter: blur(9px);
  transform: skewX(-18deg) rotate(-9deg);
  transform-origin: 72% 23%;
  animation: rx-platform 5.2s ease both;
}

@keyframes rx-camera {
  from { transform: translate(15%, -12%) scale(.49); }
  to { transform: translate(0, 0) scale(1); }
}
@keyframes rx-exposure {
  0%, 14% { filter: brightness(.13) saturate(.25) contrast(1.34); }
  36% { filter: brightness(.26) saturate(.45) contrast(1.28); }
  65% { filter: brightness(.65) saturate(.85) contrast(1.18); }
  88%, 100% { filter: brightness(.93) saturate(1.07) contrast(1.1); }
}

@keyframes rx-ignition {
  0% { opacity: .65; }
  22%, 57% { opacity: 1; }
  82%, 100% { opacity: 0; }
}
@keyframes rx-headlight-flash {
  0%, 19%, 33%, 52%, 66%, 85%, 100% { opacity: 0; }
  6%, 11%, 39%, 44%, 72%, 77% { opacity: 1; filter: sepia(.28) brightness(1.44) drop-shadow(0 0 7px #ffe3aebd); }
}

@keyframes rx-platform {
  0%, 36% { opacity: 0; transform: skewX(-18deg) rotate(-9deg) scale(.42); }
  65% { opacity: .7; }
  100% { opacity: .38; transform: skewX(-18deg) rotate(-9deg) scale(1); }
}

@keyframes rx-haze {
  0%, 43% { opacity: 0; }
  75% { opacity: .56; }
  100% { opacity: .75; }
}

.rx-intro :is(.rx-haze, .rx-platform, .rx-shot, .rx-car, .rx-lights) {
  animation-play-state: paused;
}

.rx-intro[data-playing] :is(.rx-haze, .rx-platform, .rx-shot, .rx-car, .rx-lights) {
  animation-play-state: running;
}

.rx-intro:not([data-armed]) :is(.rx-haze, .rx-platform, .rx-shot, .rx-car, .rx-lights) {
  animation: none;
}

.rx-intro:not([data-armed]) .rx-lights { display: none; }
.rx-intro:not([data-armed]) .rx-platform { opacity: .38; }
.rx-intro:not([data-armed]) .rx-haze { opacity: .75; }

@media (prefers-reduced-motion: reduce) {
  .rx-intro :is(.rx-haze, .rx-platform, .rx-shot, .rx-car, .rx-lights) {
    animation: none;
  }

  .rx-intro .rx-lights { display: none; }
  .rx-intro .rx-platform { opacity: .38; }
  .rx-intro .rx-haze { opacity: .75; }
}
