:root {
    --primary: #ff0003;    

    /*
    --primary: #80b100;
    */
    
    --text: #939393;
    --font: Site Proxima, Site EquipExtended, Site Equip;
    --font-heading: Site Humane;
    --font-alt: Site Chaney Wide;

    --size-xlarge: 256px;
    --size-large: 128px;
    --size-normal: 64px;
    --size-medium: 32px;
    --size-small: 16px;
    --size-xsmall: 8px;
}

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

* {
    font-family: var(--font);
    _letter-spacing: -0.6px;
}

html {
    &:has(header.open) {
        overflow: hidden !important;
    }  
}

body {
    background: black;
    padding: 0;
    margin: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1;

    &:has(header.open) {
        overflow: hidden !important;
    }
}

#page {
    background: black;    
    position: relative;
    z-index: 9;
}

img {
    max-width: 100%;
}

.container-large {
    width: 90%;
    max-width: 100%;
    margin-inline: auto;
}

.boxed-container {
    width: 1170px;
    max-width: 100%;
    margin-inline: auto;    
    box-sizing: border-box;
    padding-block: 200px 100px;

    @media only screen and (max-width: 980px) {
        padding-inline: 24px;
        padding-block: 120px 50px;
    }    

    h3 {
        font-size: 32px;
        margin-bottom: 0px;
    }

    b, strong {
        color: #fff;
    }

    p {
        color: var(--text);
        line-height: 1.28;
    }
}

.title,
.title span,
.title div {
    text-box: cap alphabetic;
    font-size: 240px;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    line-height: 0.8;
    letter-spacing: 0px;
    position: relative;
    height: fit-content;

    &.white {
        color: #fff;
    }

    &.dark {
        color: #000;
    }

    &.center {
        text-align: center;
    }

    &.medium {
        font-size: 140px;
    }

    &.small {
        font-size: 80px;
    }

    &.has-pattern:after {
        content: "";
        position: absolute;
        bottom: -3px;
        height: 49px;
        right: 0;
        left: 0;
        background-image: radial-gradient(#ffffff00 2px, #000 2px);
        background-size: 6px 6px;
        z-index: 999999;
        /* mask: linear-gradient(#000 calc(100% - 20px), #0000); */
    }

    @media only screen and (max-width: 980px) {
        font-size: 140px;
    }
}   

.description {
    line-height: 1.3;
    color: var(--text);

    &.medium {
        font-size: 32px;
    }
}

a {
    text-decoration: none;
}

#menu {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 80px;
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    z-index: 99999;
    padding-inline: 60px;
    backdrop-filter: blur(10px);
    background-color: #0000;

    @media only screen and (max-width: 980px) {
        padding-inline: 30px;
        grid-template-columns: 1fr 1fr;        
    }
    
    .logo {
        display: block;

        @media only screen and (min-width: 980px) {
            justify-self: center;
        }

        img {
            height: 46px;
        }
    }

    .col {
        &:has(.cta) {
            @media only screen and (max-width: 980px) {
                display: none;
            }
        }

        @media only screen and (max-width: 980px) {
            &.left {
                order: 2;
                justify-self: end;
            }  

            &.center {
                order: 1;
            }  
        }

        @media only screen and (min-width: 980px) {
            &.center {
                margin-inline: auto;
            }

            &.right {
                margin-left: auto;
            }
        }
    }

    .cta {
        justify-self: end;    
    }

    .toggle {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        font-size: 20px;
        cursor: pointer;
        transition: all 0.5s;

        span {
            transition: all 0.3s;
        }

        &:hover {
            transform: scale(0.9);
        }

        &.open {
            span {
                transform: rotate(45deg);
            }
        }
    }
}

header {
    --puzzle-delay: 1s;
    --contain-delay: 2s;
    --company-delay: 0.5s;

    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    visibility: hidden;
    pointer-events: none;

    &.open {
        visibility: visible;
        pointer-events: auto;

        &:before {
            background: rgba(0, 0, 0, 0.9);
            transition: all 0.5s;
        }

        .puzzle {
            span {
                height: 100% !important;
            }
        }

        .inner {
            transition: 0.3s ease-out var(--contain-delay);
        }

        nav .contain {
            transition: transform 0.3s ease-out var(--contain-delay);
            transform: translateY(0%);
        }

        .right {
            .tag, .company, .copyright {
                opacity: 1 !important;
                transition: 0.5s ease-out var(--company-delay) !important;
            }
        }

        .center {
            height: 100% !important;
        }
    }

    &:before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        transition: 0.5s ease-out 2s;
        background: rgba(0, 0, 0, 0);   
    }

    .inner {
        height: 100%;
        overflow-y: auto;
    }


    .inner::-webkit-scrollbar-track {
        border: 1px solid black;
        background-color: #f5f5f5;
    }

    .inner::-webkit-scrollbar {
        width: 10px;
        background-color: #f5f5f5;
    }

    .inner::-webkit-scrollbar-thumb {
        background-color: #000000;
    }


    nav {
        --color: #000;       
        display: grid;
        overflow: hidden;

        a {
            display: block;
            overflow: hidden;
            transition: all 0.3s;
            padding: 22px 32px;
            border-radius: 32px;
            color: var(--color);

            @media only screen and (max-width: 980px) {
                padding: 0;
                border-radius: 0px;
            }

            &:hover {
                @media only screen and (min-width: 980px) {
                   --color: #fff;
                   background: #000;
                }

                .contain {
                    transform: translateY(0%);

                    .chars span {
                        transform: translateY(-142px) rotate(0.001deg);
                        
                        @media only screen and (max-width: 980px) {
                            transform: translateY(-100px) rotate(0.001deg);
                        }
                    }

                    .num {
                        @media only screen and (min-width: 980px) {
                            border-color: #fff;
                        }
                    }

                    .pill {
                        @media only screen and (min-width: 980px) {
                           width: 10px;
                        }
                    }

                }
            }

            .contain {
                height: 100%;
                transform: translateY(120%);
                text-transform: uppercase;
                display: flex;
                align-items: center;
                gap: 30px;
                transition: all 0.15s;

                @media only screen and (max-width: 980px) {
                    gap: 24px;
                }

                .num {
                    width: 56px;
                    height: 56px;
                    font-size: 25px;
                    border-radius: 50%;
                    border: 2px solid #000;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    transition: all 0.3s;

                    @media only screen and (max-width: 980px) {
                        width: 46px;
                        height: 46px;
                        font-size: 20px;
                        display: none;
                    }
                }

                .chars {
                    overflow: hidden;
                    display: flex;

                    span {
                        --fz: 142px;
                        font-size: var(--fz);
                        font-weight: 500;
                        font-family: var(--font-heading);    
                        display: inline-block;
                        text-shadow: 0px var(--fz) var(--color);
                        transform: translateY(0em) rotate(0.001deg);
                        transition: transform 1s cubic-bezier(0.5, 0.05, 0, 1);


                        @media only screen and (max-width: 980px) {
                            --fz: 100px;
                        }                       

                    }

                    span:empty {
                        padding-right: 15px;
                    }
                }

                .pill {
                    background: var(--primary);
                    border-radius: 50px;
                    width: 0px;
                    height: 80%;
                    transition: all 0.3s;

                    @media only screen and (max-width: 980px) {
                       display: none;
                    }
                }

            }
        }
    }

    .wrap {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        height: 100%;

        @media only screen and (max-width: 980px) {
            grid-template-columns: 1fr;
        }

        .left {
            position: relative;
            padding: 80px 60px;
            box-sizing: border-box;
            overflow-y: auto;
            height: 100%;
            overflow: hidden;

            @media only screen and (max-width: 980px) {
                padding: 84px 20px 64px 20px;
            }

            .puzzle {
                position: absolute;
                z-index: -1;
                top: 0;
                bottom: 0;
                left: 0;
                right: 0;
                pointer-events: none;
                transition-delay: var(--puzzle-delay);
                display: flex;

                span {
                    background: var(--primary);
                    height: 0%;
                    transition: all 0.5s;

                    flex: 1;
                    min-width: 0;

                }

                .bar-center {
                    flex: 0 0 24px;
                    overflow: hidden;
                    background: repeating-linear-gradient(
                        to bottom,
                        #000 0,
                        #000 24px,
                        #fff 24px,
                        #fff 48px
                    );

                    @media only screen and (max-width: 980px) {
                        display: none;
                    }
                }
            }
        }     

        .right {
            padding: 60px;
            align-self: end;
            justify-self: end;

            @media only screen and (max-width: 980px) {
                display: none;
            }

            .tag, .company, .copyright {
                opacity: 0;
                transition: 0.5s ease-out 2s;
            }

            .tag {
                text-transform: uppercase;
                font-size: 40px;
                text-align: right;
                font-family: var(--font-alt);
            }

            .company {
                text-transform: uppercase;
                font-family: var(--font-heading);
                font-size: 340px;
                font-weight: 500;                
            }

            .copyright {
                font-size: 20px;
                text-align: right;                
            }
        }
    }
}





.btn {
    background: #000;
    border: 1px solid #111;
    color: #fff;
    padding: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 500px;
    transition: all 0.75s;

    .chars {
        overflow: hidden;
        text-transform: uppercase;
        font-size: 40px;     
        border: 1px solid #939393;
        border-radius: 500px;
        padding: 10px 20px;

        span {
            display: inline-block;
            text-shadow: 0px 50px #fff;
            transform: translateY(0em) rotate(0.001deg);
            transition: transform 1s cubic-bezier(0.5, 0.05, 0, 1);
        }
    }

    &:hover {
        transform: scale(0.9);

        .chars span {
            transform: translateY(-50px) rotate(0.001deg);
        }
    }

    & > span {
        width: 64px;
        height: 64px;
        font-size: 35px;
        border-radius: 50%;
        background: var(--primary);
        color: #000;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    &.small {
        padding: 5px;
        gap: 5px;

        .chars {
            font-size: 22px;
            padding: 4px 10px;       
        }

        &  > span {
            width: 32px;
            height: 32px;
            font-size: 16px;            
        }        
    }

    @media only screen and (max-width: 980px) {
        padding: 5px;
        gap: 5px;

        .chars {
            font-size: 28px;
            padding: 4px 10px;       
        }

        &  > span {
            width: 44px;
            height: 44px;
            font-size: 20px;        
        } 
    }

}










@keyframes fillDown {
    0% {
        height: 0%;
    }

    100% {
        height: 100%;
    }
}

@keyframes ScrollCarousel {
    0% {
        transform: translateX(0);
    }
    
    100% {
        transform: translateX(-100%);
    }
}