/* Flight path through the landing and dashboard; content stays visible without JS. */
.flight-progress {
  display: none;
  position: fixed;
  inset: 0 0 auto;
  z-index: 55;
  height: 4px;
  box-shadow: 0 0 12px #a2ea5a88;
  transform: scaleX(var(--flight-progress, 0));
  transform-origin: left;
  background: linear-gradient(90deg, #528a52, #b9f641 85%, #e4ffab);
  pointer-events: none;
}
.flight-active .flight-progress:not(.flight-progress-inactive) { display: block; }
.hero-orbit {
  display: none;
  position: absolute;
  top: 12%;
  right: 3%;
  width: min(51vw, 755px);
  height: 56%;
  z-index: 0;
  border-radius: 50%;
  border: 1px solid #b9f64152;
  transform: translateY(var(--orbit-drift, 0px)) rotate(calc(-17deg + var(--orbit-turn, 0deg)));
  pointer-events: none;
}
.flight-active .hero-orbit { display: block; }
.hero-orbit::before { content: ""; position: absolute; inset: 12% 8%; border: 1px dashed #d4f3aa30; border-radius: inherit; }
.hero-orbit span { position: absolute; top: 18%; right: 11%; width: 7px; height: 7px; border-radius: 50%; background: #c6fa67; box-shadow: 0 0 14px #b9f641; }
.flight-active .hero-art { transform: translateY(var(--orbit-drift, 0px)) scale(1.16); }
.flight-active .hero h1 { animation: flight-entry .68s cubic-bezier(.2,.72,.22,1) both; }
.flight-active .hero-description, .flight-active .hero .actions { animation: flight-entry .72s cubic-bezier(.2,.72,.22,1) 85ms both; }
.flight-active .flight-arrived { animation: flight-entry .82s cubic-bezier(.2,.72,.22,1) var(--flight-delay, 0ms) both; }
.flight-active .feature { transition: translate .24s ease, border-color .24s ease, background-color .24s ease; }
@media (hover: hover) { .flight-active .feature:hover { translate: 0 -3px; background-color: #17211c; } }
@keyframes flight-entry {
  from { opacity: .28; transform: translateY(34px); }
  68% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
@media (max-width: 760px) {
  .hero-orbit { top: auto; bottom: 19%; right: -7%; width: 76vw; height: 38%; opacity: .7; }
  .flight-active .hero-art { transform: none; }
  .flight-active .flight-arrived { animation-delay: 0ms; }
}
@media (prefers-reduced-motion: reduce) {
  .flight-active .hero-art { transform: none; }
  .flight-active .hero-orbit, .flight-active .flight-progress { display: none !important; }
  .flight-active .hero h1, .flight-active .hero-description, .flight-active .hero .actions, .flight-active .flight-arrived, .flight-active .flight-pip img { animation: none !important; transition: none !important; }
}

.flight-active .flight-arrived:focus-within { animation: none; }
.flight-active .flight-pip.flight-arrived img { animation: flight-pip-wave 1s cubic-bezier(.2,.65,.25,1) .08s both; }
@keyframes flight-pip-wave {
  0%, 100% { transform: none; }
  34% { transform: translateY(-8px) rotate(-9deg); }
  66% { transform: translateY(-3px) rotate(4deg); }
}
