/* A small, original orbital motion system for the hero illustration. */
.moon-orbit .orbit-one,
.moon-orbit .orbit-two {
  animation: none;
  transform-origin: center;
}

.moon-orbit .orbit-two {
  animation: none;
}

.planet-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 0;
  border-radius: 50%;
  transform-origin: center;
  pointer-events: none;
}

.planet-orbit-one {
  width: 78%;
  height: 46%;
  margin: -23% 0 0 -39%;
  transform: rotate(-18deg);
  animation: planet-orbit-one 24s linear infinite;
}

.planet-orbit-two {
  width: 58%;
  height: 70%;
  margin: -35% 0 0 -29%;
  transform: rotate(38deg);
  animation: planet-orbit-two 35s linear infinite reverse;
}

.planet {
  position: absolute;
  left: 50%;
  top: -6px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.32), 0 4px 12px rgba(23, 48, 79, 0.2);
}

.planet-gold {
  background: radial-gradient(circle at 35% 30%, #f4d995 0 20%, #c9a45e 48%, #9b7028 100%);
}

.planet-blue {
  width: 9px;
  height: 9px;
  top: -4px;
  margin-left: -4px;
  background: radial-gradient(circle at 35% 30%, #e2f4f8 0 16%, #75abc0 52%, #315d78 100%);
}

.moon-orbit .moon {
  animation: moon-breathe 5s ease-in-out infinite;
}

.moon-orbit .star {
  animation: star-twinkle 4s ease-in-out infinite;
}

.moon-orbit .star-two {
  animation-delay: -1.4s;
}

.moon-orbit .star-three {
  animation-delay: -2.6s;
}

@keyframes planet-orbit-one {
  from { transform: rotate(-18deg); }
  to { transform: rotate(342deg); }
}

@keyframes planet-orbit-two {
  from { transform: rotate(38deg); }
  to { transform: rotate(398deg); }
}

@keyframes moon-breathe {
  0%, 100% { transform: scale(1) rotate(-4deg); }
  50% { transform: scale(1.035) rotate(3deg); }
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0.42; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .moon-orbit *,
  .moon-orbit::before {
    animation: none !important;
  }
}
