:root {
    --bg-color: #0c0c0c;
    --font-hero: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: #fff;
    font-family: var(--font-hero);
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

.intro-hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.intro-hero h1 {
    font-size: clamp(50px, 9vw, 150px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -3px;
}

.scroll-arrow {
    margin-top: 50px;
    font-size: 24px;
    animation: float 2s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.cards-stack-container {
    width: 100vw;
    position: relative;
    padding-top: 5vh;
    margin-bottom: 20vh;
}

.stack-card {
    position: sticky;
    height: 80vh;
    width: 90vw;
    margin: 0 auto;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 1);
    transform-origin: top center;
    will-change: transform, filter;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60vh;
}

.stack-card:last-child {
    margin-bottom: 10vh;
}

.bg-orange {
    background: #D95C2B;
}

.bg-purple {
    background: #613C9E;
}

.bg-blue {
    background: #1852B3;
}

.bg-red {
    background: #B31821;
}

.bg-yellow {
    background: #D9B12B;
}

.bg-green {
    background: #2A7A40;
}

.bg-purple2 {
    background: #9E3C8B;
}

.bg-blue2 {
    background: #3C839E;
}

.bg-black {
    background: #1a1a1a;
}

/* REFINED 50/50 SPLIT LAYER */
.card-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.card-left {
    width: 50%;
    padding: 0 5vw;
    display: flex;
    flex-direction: column;
}

/* Clipping bounds for GSAP text sliding */
.clip-wrap {
    overflow: hidden;
    padding-bottom: 5px;
    /* Stop descenders like 'g' from being cut off early */
}

.c-num {
    font-size: 20px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.c-title {
    font-size: clamp(40px, 5vw, 100px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 0.95;
}

.card-right {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.c-image {
    width: 100%;
    height: 100%;
}

.c-image img {
    width: 100%;
    height: 150%;
    /* Massive vertical overflow explicitly built for gorgeous deep GSAP parallax */
    object-fit: cover;
    transform: translateY(-25%);
    /* Start 25% down the hidden clip bound */
    filter: contrast(1.1) brightness(0.9);
}

@media (max-width: 900px) {
    .card-inner {
        flex-direction: column;
    }

    .card-left {
        width: 100%;
        height: 50%;
        padding: 40px;
        justify-content: center;
    }

    .card-right {
        width: 100%;
        height: 50%;
        box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.3);
    }

    .c-title {
        font-size: 40px;
    }

    .clip-wrap {
        padding-bottom: 0;
    }
}