/* Explain: Base reset, typography defaults, and scroll reveal animations. */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scroll Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

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

.reveal-delay-1 {
    transition-delay: 0.2s;
}

.reveal-delay-2 {
    transition-delay: 0.4s;
}

/* Hero entrance: the main photo rises from the bottom on page load */
@keyframes heroImageRise {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.hero-rise {
    will-change: transform;
    animation: heroImageRise 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Hero content fades in after the photo has settled */
@keyframes heroContentIn {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content-in {
    animation: heroContentIn 0.9s ease-out 1.05s both;
}

@media (prefers-reduced-motion: reduce) {
    .hero-rise,
    .hero-content-in {
        animation: none;
    }
}