/* ==========================================================================
   ALSA — animation.css
   Keyframes and motion utilities.
   ========================================================================== */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-copy {
  animation: fadeInUp 1s var(--ease) both;
}

.hero-image {
  animation: fadeIn 1.3s var(--ease) both;
}

.hero-scroll .line {
  animation: floatSlow 2.4s ease-in-out infinite;
}

/* Page loader */

.alsa-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}

.alsa-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.alsa-loader-mark {
  font-family: var(--font-heading);
  font-size: 28px;
  letter-spacing: 0.2em;
  color: var(--text);
  position: relative;
}

.alsa-loader-mark::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 1px;
  background: var(--border);
  overflow: hidden;
}

.alsa-loader-mark::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  animation: loadBar 1.1s var(--ease) forwards;
}

@keyframes loadBar {
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .alsa-loader { display: none; }
}
