.home-hero {
    --threejs-height: 350vh;
}

/* ============================================
   CSS STICKY WITH NEGATIVE MARGIN
   ============================================ */
.home-hero .canvas-container {
    position: sticky;
    top: 0;
    margin-bottom: -100vh;
    margin-bottom: -100lvh;
    height: 100vh;
    height: 100lvh;
}

/* ============================================
   FADE OVERLAY
   ============================================ */
.fade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0B0418;
    opacity: 0;
    z-index: 5;
    pointer-events: none;
}

/* ============================================
   BANNER COMPONENT (FLATTENED)
   ============================================ */
.bottom-banner {
    box-sizing: border-box;
    position: absolute;
    bottom: calc(100lvh - 100svh + 20px);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 4vw 3.10vw;
    gap: 8vw;
    
    background: color-mix(in srgb, var(--wp--preset--color--black) 70%, transparent);
    background-clip: padding-box;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border-radius: 2px;
    border: 1px solid transparent;
    border-color: color-mix(in srgb, var(--wp--preset--color--white) 11%, transparent);
    
    pointer-events: auto;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    overflow: visible;

}

.banner-left-container {
    display: grid;
    width: 100%;
    height: auto;
    z-index: 2;
    background-color: transparent;
}

.banner-left-content {
    grid-area: 1 / 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4vw;
    height: auto;
}

.banner-title {
    color: rgba(255, 255, 255, 1);
    font-family: var(--font-primary);
    font-size: 9vw;
    font-weight: 300;
    font-style: normal;
    line-height: 104%;
    letter-spacing: -0.02em;
    text-align: left;
    white-space: normal;
    padding-left: 0;
}

.banner-divider {
    display: none;
    width: 0.180vw;
    height: 11.275vw;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    pointer-events: none;
}

.banner-text-description {
    color: rgba(255, 255, 255, 1);
    flex: 1;
    min-width: 0;
    font-family: var(--font-primary);
    font-size: 4.4vw;
    font-weight: 300;
    font-style: normal;
    line-height: 150%;
    text-align: left;
}

.banner-right-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    z-index: 2;
    pointer-events: none;
    user-select: none;
}

.checkpoint-container {
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    padding: 4.55vw 4.5vw;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: 2.55vw 1fr 2.55vw 1fr 2.55vw;
    align-items: center;
    column-gap: 0;
    pointer-events: none;
}

.checkpoint-icon-wrapper {
    position: relative;
    width: 3vw;
    height: 3vw;
    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: center;
}

.checkpoint-icon-fill {
    position: absolute;
    width: 3vw;
    height: 3vw;
    z-index: 1;
}

.checkpoint-icon {
    width: 3vw;
    height: 3vw;
    display: block;
    position: relative;
    z-index: 10;
}

.checkpoint-connector {
    position: relative;
    align-self: center;
    height: 2.20vw;
    width: calc(100% + 0.3vw);
    left: -0.35vw;
    z-index: 1;
    overflow: hidden;
}

.checkpoint-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 0.180vw;
    background: rgba(232, 232, 232, 0.3);
    transform: translateY(-50%);
}

.checkpoint-progress {
    position: absolute;
    top: 50%;
    right: 0;
    height: 0.75vw;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.checkpoint-progress img {
    height: 0.75vw;
    width: 140%;
    display: block;
    transform-origin: left center;
    transform: scaleX(0);
}

.cta-container-wrapper {
    box-sizing: border-box;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    display: flex;
    align-items: center;
    container-type: inline-size;
}

.cta-container {
    box-sizing: border-box;
    position: relative;
    width: 100%;
    height: 100%;
    /* background: rgba(255, 255, 255, 0.04); */
    border-radius: 2px;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    pointer-events: none;
}

.cta-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: 20.90vw;
    height: 8.90vw;
    margin: 0 auto;
}

.cta-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.cta-logo .dotlottie-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.cta-divider {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 9.10vw;
    margin-right: 4.35vw;
}

.cta-divider::before {
    content: "";
    width: 0.180vw;
    height: 9.10vw;
    background: rgba(255, 255, 255, 0.2);
}

.cta-button {
    flex-shrink: 0;
    width: auto;
    height: 100%;
    min-width: 48vw;
    white-space: nowrap;
    background: var(--wp--preset--color--red);
    background-image: linear-gradient(to right,
        #221F31,
        #221F31 40%,
        var(--wp--preset--color--red),
        #FA5D0F,
        #FF893F 63%,
        var(--wp--preset--color--red) 65%, 
        var(--wp--preset--color--red) 100%
    );
    background-repeat: no-repeat;
    background-size: 300% 100%;
    background-position: 100% 0;
    border: none;
    border-radius: 2px;
    color: rgba(255, 255, 255, 1);
    font-family: var(--font-primary);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 600;
    font-style: normal;
    line-height: 104%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    padding: 0 4.35vw;
    box-sizing: border-box;
    transition: background-position 0.7s;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.cta-button:hover {
    background-position: 0 0;
    text-decoration: none !important;
}

.cta-button:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 10%,
        rgba(255, 255, 255, 0.4) 30%,
        transparent 90%
    );
    transition: all 650ms;
    z-index: 5;
}

.cta-button:hover:before {
    left: 100%;
}

.cta-button-text {
    color: rgba(255, 255, 255, 1);
    font-family: var(--font-primary);
    font-size: var(--wp--preset--font-size--sm);
    letter-spacing: 0.04em;
    font-weight: 600;
    line-height: 104%;
    text-align: left;
    text-decoration: none;
    position: relative;
    z-index: 10;
}

.cta-button::after {
    content: "";
    width: 0.9em;
    height: 0.9em;
    display: block;
    flex-shrink: 0;
    position: relative;
    top: 2px;
    z-index: 10;
    transition: transform 0.3s ease 0.2s;
    transform: translateX(0);
    align-self: center;
    background-image: var(--arrow-icon);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.cta-button:hover::after {
    transform: translateX(0.4em);
}

@keyframes banner-title-color-reveal {
    0% {
        fill: #231c3f00;
    }
    20% {
        fill: #d7382e;
    }
    40% {
        fill: #ff8c00;
    }
    60% {
        fill: #ffd700;
    }
    100% {
        fill: #ffffff;
    }
}

/* ============================================
   SKIP INTRO BUTTON
   ============================================ */
.skip-intro-button {
    position: absolute;
    bottom: 7.5vw;
    bottom: calc(100lvh - 100dvh + 3vw);
    right: 0;
    display: flex;
    align-items: center;
    background: color-mix(in srgb, var(--wp--preset--color--black) 20%, transparent);
    background-clip: padding-box;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--white) 11%, transparent);
    border-radius: 2px;
    padding: 8px 16px;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 3.25vw;
    font-weight: 300;
    text-transform: none;
    cursor: pointer;
    z-index: 200;
    pointer-events: auto;
    opacity: 1;
}

.skip-intro-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-button .btn-inner {
    position: relative;
    display: inline-block;
    overflow: hidden;
    vertical-align: middle;
    letter-spacing: 0.04em;
    font-weight: 600;
    font-size: var(--wp--preset--font-size--sm);
}

.cta-button .btn-text {
    display: block;
}

.cta-button .btn-text .word {
    display: inline-block;
    white-space: nowrap;
}

.cta-button .btn-text .char {
    display: inline-block;
    line-height: 1.7;
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s;
}

/* Main Text */
.cta-button .btn-text--main .char {
    transform: translateY(0);
    transition-delay: 0.1s;
}

.cta-button .btn-text--main .char.active {
    opacity: 0;
    transform: translateY(-80%);
    transition-delay: 0;
}

/* Shadow Text */
.cta-button .btn-text--shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.cta-button .btn-text--shadow .char {
    opacity: 0;
    transform: translateY(80%);
    transition-delay: 0;
}

.cta-button .btn-text--shadow .char.active {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

/* ============================================
   MEDIA QUERIES
   ============================================ */
@media (min-width: 550px) {
    .home-hero {
        --threejs-height: 450vh;
    }
    .bottom-banner {
        width: 100%;
        max-width: 550px;
        bottom: 70px;
        left: 0px;
        transform: none;
        padding: 22px 17px;
        gap: 56px;
        border-radius: 3px;
        border-width: 1px;
    }

    .banner-left-content {
        flex-direction: row;
        align-items: center;
        gap: 22px;
    }

    .banner-title {
        font-size: 44px;
        white-space: nowrap;
    }

    .banner-divider {
        display: block;
        width: 1px;
        height: 62px;
    }

    .banner-text-description {
        font-size: 16px;
    }

    .checkpoint-container {
        border-radius: 2px;
        padding: 25px 25px;
        grid-template-columns: 14px 1fr 14px 1fr 14px;
    }

    .checkpoint-icon-wrapper,
    .checkpoint-icon-fill,
    .checkpoint-icon {
        width: 16.5px;
        height: 16.5px;
    }

    .checkpoint-connector {
        height: 12px;
        width: calc(100% + 2px);
        left: -2px;
    }

    .checkpoint-track {
        height: 1px;
    }

    .checkpoint-progress {
        height: 4px;
    }

    .checkpoint-progress img {
        height: 4px;
    }

    .cta-container {
        padding: 9px;
        height: 100%;
        border-radius: 2px;
        background: rgba(255, 255, 255, 0.04);
        justify-content: space-between;
    }

    .cta-logo {
        display: flex;
        max-width: 115px;
        height: 49px;
    }

    .cta-divider {
        display: flex;
        height: 50px;
        margin-right: 24px;
    }

    .cta-divider::before {
        width: 1px;
        height: 50px;
    }

    .cta-button {
        width: auto;
        height: 100%;
        min-width: 180px;
        border-radius: 3px;
        gap: 0.35em;
        padding: 0 24px;
        align-items: center;
        white-space: nowrap;
    }

    .cta-button .btn-inner {
        font-size: 12px;
    }

    .skip-intro-button {
        bottom: 20px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (min-width: 1060px) {
    .bottom-banner {
        bottom: 70px;
        left: 50%;
        transform: translateX(-50%);
        max-width: 1160px;
        min-width: 900px;
        padding: 9px;
        border-radius: 2px;
        border-width: 1px;
        
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 24px;
    }

    .banner-left-container {
        display: flex;
        flex: 1 1 540px;
        min-width: 686px;
        height: 63px;
        position: relative;
    }

    .banner-left-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        gap: 24px;
        height: 100%;
        box-sizing: border-box;
    }

    .banner-title {
        font-size: 50px;
        padding-left: 38px;
    }
    
    .banner-divider {
        width: 1px;
        height: 62px;
    }

    .banner-text-description {
        max-width: 443px;
        width: auto;
        min-width: 0;
        font-size: 16px;
        flex-shrink: 1;
    }

    .banner-right-container {
        justify-content: flex-end;
        height: 63px;
        flex: 999 3 200px;
        min-width: 150px;
        max-width: 380px;
    }

    .checkpoint-container {
        border-radius: 2px;
        padding: 9px 43px;
        height: 63px;
        box-sizing: border-box;
        grid-template-columns: 14px 1fr 14px 1fr 14px;
    }

    .checkpoint-icon-wrapper {
        width: 14px;
        height: 12px;
    }

    .checkpoint-icon-fill {
        width: 14px;
        height: 12px;
    }

    .checkpoint-icon {
        width: 14px;
        height: 12px;
    }

    .checkpoint-connector {
        height: 12px;
        width: calc(100% + 4px);
        left: -2px;
    }

    .checkpoint-track {
        height: 1px;
    }

    .checkpoint-progress {
        height: 4px;
    }

    .checkpoint-progress img {
        height: 4px;
    }

    .cta-container-wrapper {
        height: 63px;
    }

    .cta-container {
        padding: 9px;
        height: 100%;
        border-radius: 2px;
    }

    .cta-logo {
        max-width: 115px;
        height: 49px;
    }

    .cta-divider {
        height: 50px;
        margin-right: 24px;
    }

    .cta-divider::before {
        width: 1px;
        height: 50px;
    }

    .cta-button {
        width: auto;
        height: 100%;
        min-width: 180px;
        border-radius: 3px;
        gap: 0.35em;
        padding: 0 24px;
        align-items: center;
        white-space: nowrap;
    }

    .cta-button .btn-inner {
        font-size: 12px;
    }

    @container (max-width: 370px) {
        .cta-logo,
        .cta-divider {
            display: none;
        }
        .cta-container {
            justify-content: center;
        }
        .cta-button {
            width: 100%;
            max-width: none;
        }
    }
}
