@media (prefers-reduced-motion: no-preference) {
  .intro-photograph picture {
    animation: intro-photo-reveal 360ms cubic-bezier(.2, .65, .3, 1) backwards;
  }

  .intro-motion, .intro-stills {
    animation: intro-line-reveal 340ms ease-out both;
  }

  .intro-motion { animation-delay: .24s; }
  .intro-stills { animation-delay: .46s; }
  .intro-motion i { animation-duration: 1.4s; animation-delay: .42s; }
}

.intro-light-trails .drive-highlights { display: block; }
.intro-light-trails .drive-highlights path {
  --trail-glow: 255 162 89;
  animation: none;
  opacity: 0;
  stroke: #fff0d8;
  stroke-dasharray: none;
  stroke-width: 2.3;
  filter: drop-shadow(0 0 2px rgb(var(--trail-glow) / .85))
          drop-shadow(0 0 9px rgb(var(--trail-glow) / .55));
  transition: opacity 450ms ease-out;
}
.intro-light-trails .drive-highlights .drive-diagonal {
  --trail-glow: 255 101 187;
  stroke: #fff0ff;
  stroke-width: 3;
}
.intro-light-trails .drive-highlights .drive-taillight { --trail-glow: 255 104 47; }
.intro-light-trails .drive-highlights path.is-lit {
  opacity: .92;
  transition-duration: 180ms;
}

@media (prefers-reduced-motion: no-preference) {
  .intro-light-trails .drive-highlights .drive-diagonal {
    animation: intro-trail-travel 1.7s .45s linear backwards;
  }
  .intro-light-trails .drive-highlights .drive-amber {
    animation: intro-trail-travel 1.9s 1.05s linear backwards;
  }
  .intro-light-trails .drive-highlights .drive-taillight {
    animation: intro-trail-travel 2.15s 1.45s linear backwards;
  }
}

@keyframes intro-trail-travel {
  from { opacity: 0; stroke-dasharray: 34 120; stroke-dashoffset: 34; }
  20%, 76% { opacity: .94; }
  to { opacity: 0; stroke-dasharray: 34 120; stroke-dashoffset: -100; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .intro-light-trails .drive-highlights {
      animation: intro-push 2.6s ease-out both, light-trail-drift 1s linear both;
      animation-timeline: auto, view();
      animation-range: normal, exit 0% exit 85%;
    }
  }
}

@media (prefers-reduced-motion: no-preference) {
  .intro-pending .intro-photograph,
  .intro-pending .intro-photograph picture,
  .intro-pending .intro-motion,
  .intro-pending .intro-motion i,
  .intro-pending .intro-stills,
  .intro-pending .intro-light-trails .drive-highlights,
  .intro-pending .intro-light-trails .drive-highlights path { animation: none; }

  .intro-pending .intro-photograph picture,
  .intro-pending .intro-motion,
  .intro-pending .intro-stills { opacity: 0; }
}

@keyframes intro-photo-reveal {
  from { opacity: 0; filter: blur(6px); }
  to { opacity: 1; filter: none; }
}

@keyframes intro-line-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.intro .award:hover,
.intro .award:focus-visible {
  color: var(--motion-green);
  text-shadow: 0 0 .65em rgb(139 255 56 / .5);
}

#award-dialog {
  --award-width: min(860px, calc(100vw - 24px), calc((100dvh - 74px) * 16 / 9));
  width: var(--award-width);
  height: calc(50px + (var(--award-width) - 2px) * 9 / 16);
  overflow: hidden;
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid #ffffff30;
  border-radius: 12px;
  background: #0b0b0b;
}

#award-dialog[open] { display: block; }
#award-dialog::backdrop { background: rgb(0 0 0 / .8); }
.award-video-window { position: relative; }
.award-video-window h2 {
  margin: 0;
  padding: 14px 50px 14px 16px;
  font-size: 14px;
  line-height: 20px;
}
.award-video-window button {
  inset: 0 0 auto auto;
  width: 48px;
  height: 48px;
  padding: 0;
  cursor: pointer;
}
.award-video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.award-video-frame > iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
