.menubar--section {
    background-color: transparent;
    position: fixed;
    transition: background-color .3s;
}

.after-scroll .menubar--section {
    background-color: var(--theme-dk-green);
}

.homepage-hero--media-wrap {
    height: 58vw;
    min-height: 350px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px var(--theme-content-padding);
}

.homepage-hero--video,
.homepage-hero--vimeo,
.homepage-hero--image,
.homepage-hero--image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.homepage-hero--video {
    /* Optimize video rendering */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* .homepage-hero--logo {
    font-size: 150px;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1em;
    height: 1em;
    margin-left: -.5em;
    margin-top: -.5em;
    opacity: 0;
    transform: scale(1);
    animation: logoSequence 2.6s ease-in-out forwards;
} */

.homepage-hero--container {
    padding:  30px var(--theme-content-padding);
    position: relative;
}

.homepage-hero--title {
    /* Title fade-in animation: start after logo completes */
    animation: titleFadeIn 0.6s ease-in-out 2.6s forwards;
    opacity: 0;
}

.homepage-hero--title.dt-mod {
    display: none;
}

.homepage-hero--title.mobile-mod {
    color: #fff;
    position: relative;
    margin-bottom: 0;
}

.homepage-hero--cta {
    margin-top: 30px;
}

/* Logo animation keyframes */
@keyframes logoSequence {
    /* Fade in over 0.3s */
    0% {
        opacity: 0;
        transform: scale(1);
    }
    11.5% { /* 0.3s / 2.6s = 11.5% */
        opacity: 1;
        /* transform: scale(1); */
    }
    /* Hold for 2s (from 0.3s to 2.3s) */
    88.5% { /* 2.3s / 2.6s = 88.5% */
        opacity: 1;
        /* transform: scale(1); */
    }
    /* Scale to 0 over 0.3s */
    100% {
        opacity: 0;
        /* transform: scale(1); */
    }
}

/* Title fade-in animation keyframes */
@keyframes titleFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Menubar fade-in animation keyframes */
@keyframes menubarFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Hero margin animation keyframes */
@keyframes heroMarginAdd {
    0% {
        margin-top: 0;
    }
    100% {
        margin-top: var(--theme-menu-height);
    }
}

@media (min-width: 1200px) {
    .homepage-hero--title.dt-mod {
        display: block;
    }

    .homepage-hero--title.mobile-mod {
        display: none;
    }

    .homepage-hero--media-wrap {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .homepage-hero--container {
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        color: #fff;
        padding-bottom: 90px;
    }

    .admin-bar .homepage-hero--container {
        height: calc(100dvh - 32px);
    }

    .homepage-hero--cta .theme-button {
        border-color: #fff;
    }

    .homepage-hero--section {
        margin-top: 0 !important;
    }

    .homepage-hero--cta,
    .homepage-hero--copy {
        opacity: 0;
        max-width: 820px;
        animation: titleFadeIn 0.6s ease-in-out 5s forwards;
    }

    /* .homepage-hero--logo {
        font-size: 400px;
    } */

}