/* ==========================================================================
   ANIMATIONS & TRANSITIONS — CALM, ARCHITECTURAL, DELIBERATE (PHASE 2)
   ========================================================================== */

/* ---------- HERO ENTRANCE (CONTROLLED STAGGER) ---------- */
.hero-content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeRise 0.95s var(--ease-editorial) forwards;
}

.hero-content .eyebrow-badge {
  animation-delay: 0.12s;
}

.hero-content .hero-logo-mark {
  animation-delay: 0.22s;
}

.hero-content .hero-title {
  animation-delay: 0.35s;
}

.hero-content .hero-supporting-text {
  animation-delay: 0.48s;
}

.hero-content .hero-cta-group {
  animation-delay: 0.6s;
}

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

/* ---------- SCROLL REVEALS (SMOOTH, EXPENSIVE, MEASURED) ---------- */
.reveal-on-scroll {
  opacity: 1;
  transform: translateY(0);
}

html.js-ready .reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-editorial),
              transform 0.8s var(--ease-editorial);
  will-change: opacity, transform;
}

html.js-ready .reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delays for Grouped Elements */
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }

/* Micro-interaction: Architectural Card Elevation */
.architectural-card,
.sofa-card {
  transition: border-color 0.4s var(--ease-editorial),
              transform 0.4s var(--ease-editorial),
              box-shadow 0.4s var(--ease-editorial);
}

/* Reduced Motion Override (Accessibility Compliance) */
@media (prefers-reduced-motion: reduce) {
  .hero-content > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-scroll-line::after {
    animation: none !important;
  }
}
