/* Fade-in animation for hero — supports staggered animation-delay */
.fade-in {
    animation: fadeInUp 0.7s ease-out both;
}

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

/* Scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Stagger children within a visible scroll-reveal container */
.scroll-reveal.visible .stagger-child {
    opacity: 1;
    transform: translateY(0);
}

.stagger-child {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.stagger-child:nth-child(1) { transition-delay: 0s; }
.stagger-child:nth-child(2) { transition-delay: 0.1s; }
.stagger-child:nth-child(3) { transition-delay: 0.2s; }
.stagger-child:nth-child(4) { transition-delay: 0.3s; }

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Cross-page fade via View Transitions API */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: 150ms ease-out both vt-fade-out;
}

::view-transition-new(root) {
    animation: 250ms ease-out both vt-fade-in;
}

@keyframes vt-fade-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes vt-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Our Story scroll arrow */
@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(10px); opacity: 1; }
}
.arrow-bounce { animation: arrowBounce 1.8s ease-in-out infinite; }

/* Selection color — dusty blue */
::selection {
    background-color: #d0dded;
    color: #2f4155;
}

/* Ornamental divider */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.ornament::before,
.ornament::after {
    content: '';
    width: 3rem;
    height: 1px;
    background: #a8c0d9;
    opacity: 0.5;
}

.ornament .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #a8c0d9;
    opacity: 0.5;
    flex-shrink: 0;
}

/* Event detail cards */
.event-card {
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 2px;
    background: #a8c0d9;
    border-radius: 1px;
}

/* Subtle grain overlay for hero atmosphere */
.grain::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.018;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}
