/* Explain: Styles for site header, hero section, and page layout utilities. */
.site-header {
    transition: background 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.site-header.is-scrolled {
    border-color: rgba(232, 220, 201, 0.95);
    background: rgba(255, 253, 248, 0.94);
    box-shadow: 0 10px 36px rgba(91, 72, 45, 0.09);
    backdrop-filter: blur(18px);
}

.hero-shell {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    background: #14110e;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform-origin: center center;
    filter: brightness(1.03) contrast(1.03);
    pointer-events: none;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(270deg, rgba(14, 12, 10, 0.90) 0%, rgba(14, 12, 10, 0.78) 38%, rgba(14, 12, 10, 0.35) 70%, rgba(14, 12, 10, 0.05) 100%),
        linear-gradient(180deg, rgba(14, 12, 10, 0.45) 0%, rgba(14, 12, 10, 0) 28%, rgba(14, 12, 10, 0.38) 100%);
}

[dir="rtl"] .hero-scrim {
    background:
        linear-gradient(270deg, rgba(14, 12, 10, 0.90) 0%, rgba(14, 12, 10, 0.78) 38%, rgba(14, 12, 10, 0.35) 70%, rgba(14, 12, 10, 0.05) 100%),
        linear-gradient(180deg, rgba(14, 12, 10, 0.45) 0%, rgba(14, 12, 10, 0) 28%, rgba(14, 12, 10, 0.38) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 100svh;
    padding-top: 9.5rem;
    padding-bottom: 5.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

[dir="rtl"] .hero-content {
    justify-content: flex-start;
}

@keyframes cinematic-drift {
    0% {
        transform: scale(1.04) translate3d(0, 0, 0);
    }

    100% {
        transform: scale(1.08) translate3d(-0.8%, 0, 0);
    }
}

.hero-reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: hero-reveal 850ms ease forwards;
}

.hero-reveal-delay-1 {
    animation-delay: 140ms;
}

.hero-reveal-delay-2 {
    animation-delay: 280ms;
}

.hero-reveal-delay-3 {
    animation-delay: 420ms;
}

@keyframes hero-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    z-index: 4;
    display: none;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
    transition: color 240ms ease, transform 240ms ease;
}

.scroll-indicator::after {
    content: "";
    display: block;
    width: 2px;
    height: 2.75rem;
    margin: 0.75rem auto 0;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0) 100%);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    animation: scroll-line 1.7s ease-in-out infinite;
}

@media (min-width: 768px) {
    .scroll-indicator {
        display: block;
    }
}

@keyframes scroll-line {
    0%,
    100% {
        transform: scaleY(0.55);
        transform-origin: top;
        opacity: 0.45;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.section-wrap {
    padding: clamp(4.5rem, 8vw, 8rem) 0;
}

.intro-image-frame {
    min-height: 26rem;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .experience-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.experience-tile {
    min-height: 24rem;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.experience-tile:nth-child(1),
.experience-tile:nth-child(4) {
    min-height: 29rem;
}

.gallery-grid {
    columns: 1;
    column-gap: 1rem;
}

@media (min-width: 640px) {
    .gallery-grid {
        columns: 2;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        columns: 3;
    }
}

.gallery-masonry-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 1rem;
    overflow: hidden;
    border-radius: 1.35rem;
    background: var(--surface-color);
}

.map-frame {
    min-height: 24rem;
    overflow: hidden;
    border: 1px solid rgba(232, 220, 201, 0.86);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.terms-panel {
    border: 1px solid rgba(232, 220, 201, 0.92);
    border-radius: var(--radius-lg);
    background: rgba(255, 253, 248, 0.9);
    box-shadow: var(--shadow-soft);
}

@media (max-width: 767px) {
    .hero-shell {
        min-height: 100svh;
    }

    .hero-video {
        object-position: center center;
    }

    .hero-scrim,
    [dir="rtl"] .hero-scrim {
        background:
            linear-gradient(180deg, rgba(14, 12, 10, 0.88) 0%, rgba(14, 12, 10, 0.74) 55%, rgba(14, 12, 10, 0.32) 85%, rgba(14, 12, 10, 0.05) 100%),
            linear-gradient(270deg, rgba(14, 12, 10, 0.65), rgba(14, 12, 10, 0.15));
    }

    .hero-content {
        padding-top: 8.5rem;
        padding-bottom: 4.5rem;
    }

    .experience-tile,
    .experience-tile:nth-child(1),
    .experience-tile:nth-child(4) {
        min-height: 22rem;
    }
}