/* ============================================================
   LIP Homes — animations.css
   Hero entrance · Scroll reveal · Reduced-motion
   ============================================================ */

/* ── Shared keyframe ────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Hero entrance (plays on page load) ─────────────────────── */
.hero__eyebrow    { animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.10s both; }
.hero__heading    { animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both; }
.hero__subheading { animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.40s both; }
.hero__actions    { animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both; }

/* Scroll hint: fade in, then hand off to the existing bounce loop */
.hero__scroll-hint {
  animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.80s both,
             bounce 2s ease 1.6s infinite;
}

/* ── Scroll-reveal ──────────────────────────────────────────── */

/* When .reveal wraps a property card, pass grid cell height through to the card */
.properties-grid .reveal {
  display: flex;
  flex-direction: column;
}

.properties-grid .reveal .property-card {
  flex: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger helpers for grid / grouped elements */
.reveal--d1 { transition-delay: 0.10s; }
.reveal--d2 { transition-delay: 0.20s; }
.reveal--d3 { transition-delay: 0.30s; }
.reveal--d4 { transition-delay: 0.40s; }

/* ── Accessibility ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow,
  .hero__heading,
  .hero__subheading,
  .hero__actions,
  .hero__scroll-hint { animation: none; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
