/* ==========================================================================
   SECTION: HERO
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    min-height: 95vh;
    max-height: 1024px;
    background-color: var(--color-gray);
    overflow: hidden;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

/* Hero Background Image */
.hero__background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero__video-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Hide native video controls and play button overlay */
.hero__video-container video {
    pointer-events: none;
}

.hero__video-container video::-webkit-media-controls {
    display: none !important;
}

.hero__video-container video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

.hero__video-container video::-webkit-media-controls-play-button {
    display: none !important;
    -webkit-appearance: none;
}

.hero__background-image,
.hero__background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Hero Darkening Overlay */
.hero__overlay {
    display: none; /* Temporarily hidden for design experimentation */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-forest-green);
    mix-blend-mode: color;
    opacity: 0.59;
}

/* Hero Bottom Fade */
.hero__fade-bottom {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    width: 100%;
    height: clamp(100px, 17vh, 171px);
    background: linear-gradient(to top, rgba(14, 18, 10, 0) 0%, var(--color-dark-green) 100%);
    pointer-events: none;
}

/* Hero Content */
.hero__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.hero__title {
    position: absolute;
    top: 32%;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 1152px);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    font-style: italic;
    font-size: clamp(80px, 11vw, 170px);
    line-height: normal;
    text-align: center;
    color: var(--color-text-light-32);
    will-change: transform, opacity;
    opacity: 0;
    transition: opacity 1s ease-out;
}

.hero__title.visible {
    opacity: 1;
}

.hero__subtitle {
    position: absolute;
    top: 56%;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 776px);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-extralight);
    font-size: clamp(20px, 2.5vw, 36px);
    line-height: normal;
    text-align: center;
    color: var(--color-text-light-90);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    will-change: transform, opacity;
    opacity: 0;
    transition: opacity 1s ease-out;
}

.hero__subtitle.visible {
    opacity: 1;
}

/* Hero Scroll Indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: clamp(40px, 6vh, 60px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 2s ease-out;
}

.hero__scroll-indicator.visible {
    opacity: 1;
}

.hero__scroll-text-wrapper {
    position: relative;
    height: 1.5em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__scroll-text {
    position: absolute;
    font-family: var(--font-primary);
    font-weight: var(--font-weight-light);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--color-text-light-77);
    white-space: nowrap;
}

.hero__scroll-mouse {
    width: clamp(32px, 3.5vw, 47px);
    height: clamp(52px, 5.5vw, 75px);
    border: clamp(2px, 0.2vw, 3px) solid var(--color-text-light-90);
    border-radius: 24px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.hero__scroll-wheel {
    width: clamp(5px, 0.5vw, 7px);
    height: clamp(8px, 0.9vw, 12px);
    background-color: var(--color-text-light-90);
    border-radius: 4px;
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .hero {
        max-height: none; /* Remove desktop cap on mobile */
    }

    .hero__title {
        top: 35%;
        font-size: 48px;
    }

    .hero__subtitle {
        top: 50%;
        padding: 0 20px;
        font-size: 18px;
    }

}
