/* Low-amplitude glass movement. All continuous motion has a static alternative. */
@keyframes float-tool { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
@keyframes portrait-bob { 0%, 100% { transform: translateY(0) rotate(6deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
@keyframes ambient-drift { 50% { transform: translate3d(3vw, 2vh, 0) scale(1.12); } }
@keyframes hero-arrive { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-enter { animation: hero-arrive 1.1s var(--ease) both; }
  .hero-content .hero-enter:nth-child(2) { animation-delay: .1s; }
  .hero-content .hero-enter:nth-child(3) { animation-delay: .2s; }
  .hero-content .hero-enter:nth-child(4) { animation-delay: .3s; }
  .portrait-scene.hero-enter { animation-delay: .15s; }
  .portrait-badge { animation: portrait-bob 7s ease-in-out infinite; }
  .software-icon { animation: float-tool 5s ease-in-out infinite; animation-delay: var(--delay); }
  .software:nth-child(even) .software-icon { animation-direction: reverse; }
  .software:hover .software-icon { animation-play-state: paused; }
  .ambient { animation: ambient-drift 24s ease-in-out infinite alternate; }
  .ambient-two { animation-delay: -12s; }
}
.ambient { position: fixed; z-index: -1; pointer-events: none; width: 65vw; height: 65vw; border-radius: 50%; filter: blur(65px); opacity: .65; }
.ambient-one { top: -35vw; right: -25vw; background: radial-gradient(circle, #6d001a70, transparent 65%); }
.ambient-two { left: -40vw; top: 35vh; background: radial-gradient(circle, #6d001a38, transparent 65%); }
.motion-paused .software-icon, .motion-paused .portrait-badge, .motion-paused .ambient { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
  .portrait-shell { transform: none; }
}

.motion-sleep .software-icon, .motion-sleep .portrait-badge { animation-play-state: paused; }
