/* All motion lives here, and only runs when the visitor hasn't asked for reduced motion.
   Hidden start states key off .has-js (added by motion.js), so content stays visible without JS. */
@media (prefers-reduced-motion: no-preference) {
  /* Masked line-by-line headline reveal */
  .has-js [data-line] { animation: line-up 1s var(--ease-out) 150ms both; }
  .has-js .line:nth-child(2) [data-line] { animation-delay: 270ms; }
  .has-js .line:nth-child(3) [data-line] { animation-delay: 390ms; }
  .has-js .line:nth-child(4) [data-line] { animation-delay: 510ms; }

  /* Fade-up on scroll: motion.js adds .is-in when the element enters the viewport */
  .has-js [data-fade] { opacity: 0; transform: translateY(20px); }
  .has-js [data-fade].is-in {
    opacity: 1;
    transform: none;
    transition: opacity .9s var(--ease-out) .25s, transform .9s var(--ease-out) .25s;
  }

  /* Hero wall: rises in, then each screenshot scrolls slowly inside its frame */
  .wall { animation: wall-rise 1.6s var(--ease-out) 300ms both; }
  .tile__screen img { animation: tile-scroll 26s ease-in-out 2s infinite alternate both; }
  .tile:nth-child(2n) .tile__screen img { animation-duration: 18s; animation-delay: 3s; }
  .tile:nth-child(3n) .tile__screen img { animation-duration: 32s; animation-delay: 4s; }

  .ticker__track { animation: marquee 90s linear infinite; }
  .ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }

  .pulse-dot { animation: pulse 1.8s infinite; }

  /* Slow Ken Burns on portraits */
  .portrait--kb img { animation: ken-burns 20s ease-in-out infinite alternate; }
}

@keyframes line-up { from { transform: translateY(110%); } to { transform: none; } }
@keyframes wall-rise { from { opacity: 0; translate: 0 120px; } to { opacity: 1; translate: 0 0; } }
@keyframes tile-scroll { from { transform: translateY(0); } to { transform: translateY(calc(-100% + var(--view-h))); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { from { box-shadow: 0 0 0 0 rgba(43, 63, 209, .5); } to { box-shadow: 0 0 0 10px rgba(43, 63, 209, 0); } }
@keyframes ken-burns { from { transform: scale(1); } to { transform: scale(1.07); } }
