/* animations.css */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Initial hero animation — applied directly */
.hero-text > *           { animation: fadeUp .65s ease both; }
.hero-text > *:nth-child(1) { animation-delay: .05s; }
.hero-text > *:nth-child(2) { animation-delay: .18s; }
.hero-mosaic             { animation: fadeUp .7s .32s ease both; }

/* Scroll reveal — class toggled by animations.js */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* Nav scroll state */
nav.scrolled {
  background: rgba(246, 243, 238, 0.97);
  box-shadow: 0 1px 0 var(--line2);
}
