.flight-art,
.city-art,
.piano-art {
  display: block;
  width: 100%;
  height: auto;
}

.flight-sculpture,
.flight-feather-lift,
.flight-feather-tip,
.city-marker,
.city-pulse,
.piano-note,
.piano-key-press {
  transform-box: fill-box;
  transform-origin: center;
}

.flight-feather-lift { transform-origin: 8% 96%; }
.flight-feather-tip { transform-origin: 8% 92%; }
.piano-key-press { transform-origin: center top; }

html[data-motion="on"] .motion-scene.is-visible .flight-sculpture {
  animation: flight-glide 8s ease-in-out infinite;
}

html[data-motion="on"] .motion-scene.is-visible .flight-feather-lift {
  animation: flight-unfold 8s ease-in-out infinite;
}

html[data-motion="on"] .motion-scene.is-visible .flight-feather-tip {
  animation: flight-tip 8s ease-in-out infinite;
}

html[data-motion="on"] .motion-scene.is-visible .flight-trail {
  animation: flight-trace 11s linear infinite;
}

html[data-motion="on"] .motion-scene.is-visible .city-marker {
  animation: city-hover 7s ease-in-out infinite;
}

html[data-motion="on"] .motion-scene.is-visible .city-marker-middle { animation-delay: -1.3s; }
html[data-motion="on"] .motion-scene.is-visible .city-marker-far { animation-delay: -2.6s; }

html[data-motion="on"] .motion-scene.is-visible .city-pulse {
  animation: city-arrival 7s ease-out infinite;
}

html[data-motion="on"] .motion-scene.is-visible .city-pulse-middle { animation-delay: -2.3s; }
html[data-motion="on"] .motion-scene.is-visible .city-pulse-far { animation-delay: -4.6s; }

html[data-motion="on"] .motion-scene.is-visible .city-route-trace {
  animation: city-route-draw 10s ease-in-out infinite;
}

html[data-motion="on"] .motion-scene.is-visible .piano-note {
  animation: piano-levitate 7.5s ease-in-out infinite;
}

html[data-motion="on"] .motion-scene.is-visible .piano-note-single { animation-delay: -3s; }
html[data-motion="on"] .motion-scene.is-visible .piano-note-small { animation-delay: -6s; }

html[data-motion="on"] .motion-scene.is-visible .piano-key-press {
  animation: piano-key-touch 8s ease-in-out infinite;
}

html[data-motion="on"] .motion-scene.is-visible .piano-key-second { animation-delay: .6s; }
html[data-motion="on"] .motion-scene.is-visible .piano-key-third { animation-delay: 1.2s; }
html[data-motion="on"] .motion-scene.is-visible .piano-key-fourth { animation-delay: 1.8s; }

html[data-suspended="true"] .motion-scene :is(.flight-sculpture, .flight-feather-lift, .flight-feather-tip, .flight-trail, .city-marker, .city-pulse, .city-route-trace, .piano-note, .piano-key-press) {
  animation-play-state: paused !important;
}

html[data-motion="off"] .motion-scene :is(.flight-sculpture, .flight-feather-lift, .flight-feather-tip, .flight-trail, .city-marker, .city-pulse, .city-route-trace, .piano-note, .piano-key-press) {
  animation: none !important;
}

@keyframes flight-glide {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-22px) rotate(2deg); }
}

@keyframes flight-unfold {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(-4.5deg); }
}

@keyframes flight-tip {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(3.5deg); }
}

@keyframes flight-trace {
  0% { stroke-dashoffset: 1; opacity: 0; }
  18% { opacity: .32; }
  74% { opacity: .32; }
  92%, 100% { stroke-dashoffset: -1; opacity: 0; }
}

@keyframes city-hover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes city-arrival {
  0%, 12% { transform: scale(.9); opacity: 0; }
  23% { opacity: .42; }
  66%, 100% { transform: scale(1.85); opacity: 0; }
}

@keyframes city-route-draw {
  0%, 8% { stroke-dashoffset: 1; opacity: 0; }
  20% { opacity: .9; }
  70% { stroke-dashoffset: 0; opacity: .9; }
  88%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes piano-levitate {
  0%, 100% { transform: translateY(0) rotate(-2.5deg); }
  50% { transform: translateY(-14px) rotate(2.5deg); }
}

@keyframes piano-key-touch {
  0%, 24%, 34%, 100% { transform: translateY(0) scaleY(1); }
  28%, 30% { transform: translateY(4px) scaleY(.985); }
}

@media (prefers-reduced-motion: reduce) {
  .motion-scene :is(.flight-sculpture, .flight-feather-lift, .flight-feather-tip, .flight-trail, .city-marker, .city-pulse, .city-route-trace, .piano-note, .piano-key-press) {
    animation: none !important;
  }
}
