/* Adapted from ProMax's Fugl Vinter flight routes. Decorative, local CSS only. */
.main-content { position: relative; isolation: isolate; }
.main-content > section { position: relative; z-index: 1; }
.main-routes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(transparent, #000 5%, #000 91%, transparent);
}
.main-routes i {
  position: absolute;
  left: -12%;
  width: 124%;
  height: 180px;
  border-top: 1px solid rgb(218 190 148 / 14%);
  border-radius: 50%;
  transform: rotate(-8deg);
  animation: route-drift 12s ease-in-out infinite alternate;
}
.main-routes i::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 20%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffd5a0;
  box-shadow: 0 0 0 4px #ffb9610c, 0 0 13px #ffad6380, -8px 0 18px #ffab4829;
  animation: route-beacon 14s linear infinite;
  animation-delay: var(--delay);
}
.main-routes i:nth-child(1) { top: 6%; --delay: -3s; }
.main-routes i:nth-child(2) { top: 18%; --delay: -10s; }
.main-routes i:nth-child(3) { top: 30%; --delay: -6s; }
.main-routes i:nth-child(4) { top: 42%; --delay: -13s; }
.main-routes i:nth-child(5) { top: 54%; --delay: -8s; }
.main-routes i:nth-child(6) { top: 66%; --delay: -1s; }
.main-routes i:nth-child(7) { top: 78%; --delay: -11s; }
.main-routes i:nth-child(8) { top: 90%; --delay: -5s; }
.main-routes i:nth-child(even) {
  border-color: rgb(255 155 68 / 10%);
  animation-delay: -6s;
}
.main-routes i:nth-child(even)::after {
  background: #dcd3b8;
  box-shadow: 0 0 0 4px #eadab40a, 0 0 13px #ebd6a966;
  animation-duration: 18s;
}
@keyframes route-drift {
  to { transform: rotate(-8deg) translateY(16px) scaleY(1.12); }
}
@keyframes route-beacon {
  from { left: -2%; opacity: 0; }
  12%, 88% { opacity: .85; }
  to { left: 102%; opacity: 0; }
}
/* The main motion switch must pause pseudo-elements as well as real elements. */
body.motion-off .main-routes i,
body.motion-off .main-routes i::after { animation-play-state: paused; }
@media (max-width: 760px) {
  .main-routes i { height: 90px; }
  .main-routes i::after { width: 3px; height: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .main-routes i, .main-routes i::after { animation: none; }
  .main-routes i::after { opacity: .45; left: 35%; }
  .main-routes i:nth-child(even)::after { left: 70%; }
}
