/* Motion is an accent to the photography and learning journey. */
@media (prefers-reduced-motion: no-preference) {
  .hero-visual .hero-photo {
    animation: world-arrive 1.35s .18s both cubic-bezier(.18,.75,.21,1);
  }
  .hero-orbit {
    animation: orbit-arrive 1.6s .2s both cubic-bezier(.18,.75,.21,1);
  }
  .hero-spark-one { animation-duration: 6.5s; }
  .hero-spark-two { animation-duration: 7.5s; }

  /* Each learning thought appears as the reader reaches it. */
  .learning-steps article { position: relative; }
  .learning-steps article::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: min(100%, 82px);
    height: 2px;
    background: linear-gradient(90deg,#d7ae57,#74a56e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .75s .2s cubic-bezier(.18,.75,.21,1);
  }
  .learning-steps article.is-visible::before { transform: scaleX(1); }

  /* The four stages connect in sequence rather than flashing at once. */
  .motion-ready .journey-line span::before {
    border-bottom-color: #b8a2d1;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .7s cubic-bezier(.2,.75,.2,1);
  }
  .motion-ready .journey-line span::after {
    opacity: 0;
    transform: scale(.45) rotate(-25deg);
    transition: opacity .45s, transform .6s cubic-bezier(.2,.75,.2,1);
  }
  .motion-ready .journey-line.is-visible span::before { transform: scaleX(1); }
  .motion-ready .journey-line.is-visible span::after { opacity: 1; transform: scale(1) rotate(0); }
  .journey-line span:nth-child(2)::before,
  .journey-line span:nth-child(2)::after { transition-delay: .15s; }
  .journey-line span:nth-child(3)::before,
  .journey-line span:nth-child(3)::after { transition-delay: .3s; }
  .journey-line span:nth-child(4)::before,
  .journey-line span:nth-child(4)::after { transition-delay: .45s; }

  .motion-ready .program[data-reveal] .program-art::before {
    transform: scale(1.06);
    transition: transform 1.15s cubic-bezier(.18,.75,.21,1), filter .7s;
  }
  .motion-ready .program.is-visible .program-art::before { transform: scale(1); }
  .motion-ready .program.is-visible:hover .program-art::before { transform: scale(1.045); }
  .motion-ready .moment-card[data-reveal] img { transform: scale(1.07); }
  .motion-ready .moment-card.is-visible img { transform: scale(1); }
  .motion-ready .moment-card.is-visible:hover img { transform: scale(1.045); }
}
/* The orbital track stays still; three planets share one circuit. */
.hero-orbit::before, .hero-orbit::after { display: none; }
.orbit-traveler {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.orbit-traveler::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%,-50%);
}
.orbit-traveler-gold::before {
  width: 19px;
  height: 19px;
  background: radial-gradient(circle at 31% 28%,#fff5cc 0 12%,#e9b950 35%,#b47a38 100%);
  box-shadow: 0 0 0 5px #f2c66b24, 0 0 26px #f7cf79ad;
}
.orbit-traveler-teal::before {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 30% 25%,#e1fff2 0 10%,#63c5ac 44%,#357f91 100%);
  box-shadow: 0 0 0 4px #75d3c025, 0 0 22px #78d4c997;
}
@media (prefers-reduced-motion: no-preference) {
  .orbit-traveler-gold { animation: planet-lap 30s linear infinite; }
  .orbit-traveler-teal { animation: planet-lap 30s -10s linear infinite; }
  .orbit-traveler-violet { animation: planet-lap 30s -20s linear infinite; }
}
@keyframes planet-lap { to { transform: rotate(360deg); } }
@keyframes world-arrive {
  from { opacity: 0; transform: translate3d(22px,30px,0) rotate(3deg) scale(.95); }
  to { opacity: 1; transform: translate3d(0,0,0) rotate(-1.5deg) scale(1); }
}
@keyframes orbit-arrive {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual .hero-photo { animation: none; transform: rotate(-1.5deg); }
  .hero-orbit { animation: none; }
}
