/* Keep the character upright and in front of the request card. */
.hero-polished[data-hero-showcase] .hero-bottom {
  z-index: 3;
}

.hero-polished[data-hero-showcase] .hero-illustration {
  transform: none;
}

.hero-polished[data-hero-showcase] .hero-illustration > img {
  transform: none;
  animation: none;
  transition: opacity 180ms ease-out;
}

/* On narrow phones the navigation sits below the character, clear of the author. */
@media (max-width: 380px) {
  .hero-polished[data-hero-showcase] .hero-bottom {
    min-height: 230px;
  }

  .hero-polished[data-hero-showcase] .hero-illustration {
    bottom: 70px;
  }
}

/* Only the small decorative tiles drift; their parent never moves. */
@media (prefers-reduced-motion: no-preference) {
  .hero-polished[data-hero-showcase].is-inview .hero-orbit-one {
    animation: hero-tile-drift-one 6s -.8s cubic-bezier(.45, 0, .55, 1) infinite;
  }

  .hero-polished[data-hero-showcase].is-inview .hero-orbit-two {
    animation: hero-tile-drift-two 7.2s -2.4s cubic-bezier(.45, 0, .55, 1) infinite;
  }
}

@keyframes hero-tile-drift-one {
  0%, 100% { transform: translate(0, 0) rotate(-12deg); }
  50% { transform: translate(-3px, -8px) rotate(-5deg); }
}

@keyframes hero-tile-drift-two {
  0%, 100% { transform: translate(0, 0) rotate(12deg); }
  50% { transform: translate(3px, 7px) rotate(19deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-polished[data-hero-showcase] .hero-orbit,
  .hero-polished[data-hero-showcase] .hero-illustration > img {
    animation: none;
    transition: none;
  }
}
