/* ============================================================
   SEREIN — Animations
   Tasteful reveals, candle-glow fades, hover motion.
   Respects prefers-reduced-motion.
   ============================================================ */

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

@keyframes pop-in {
    0%   { opacity: 0; transform: scale(.6); }
    70%  { transform: scale(1.06); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes glow-breathe {
    0%, 100% { box-shadow: 0 0 24px rgba(198, 161, 91, .12); }
    50%      { box-shadow: 0 0 44px rgba(198, 161, 91, .24); }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }

/* Staggered children */
.reveal-group > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-group.is-in > * { opacity: 1; transform: none; }
.reveal-group.is-in > *:nth-child(2) { transition-delay: .08s; }
.reveal-group.is-in > *:nth-child(3) { transition-delay: .16s; }
.reveal-group.is-in > *:nth-child(4) { transition-delay: .24s; }
.reveal-group.is-in > *:nth-child(5) { transition-delay: .32s; }
.reveal-group.is-in > *:nth-child(6) { transition-delay: .4s; }

/* Slow ken-burns on hero image */
.hero-visual .hv-main img { animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.07); }
}

/* Smooth anchor scroll with sticky header offset */
html { scroll-padding-top: 100px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal, .reveal-group > * { opacity: 1; transform: none; }
    .hero-visual .hv-main img { animation: none; }
}
