@import url("https://use.typekit.net/thk1qtq.css");
@import url("https://use.typekit.net/szz1brf.css");

@font-face {
    font-family: Ppneuemontreal;
    src: url(https://cdn.prod.website-files.com/6441397…/675389b…_PPNeueMontreal-Light.woff) format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: "inter-variable", sans-serif;
    color: #1b1b1b !important;
    height: 400vh;
}

h3::selection {
    color: white;
    background: black;
}
.project-header {
    font-size: 2.2rem;
    font-family: "inter-variable", sans-serif;
    font-variation-settings: 'wght' 150, 'opsz' 99, 'wdth' 300, ;
    text-transform: uppercase;
    letter-spacing: .0em;
    margin-block: 20px;
    margin-inline: 25px;
    ;
}

@scope (.description-section .intro-coopy) {

    :scope {
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
        position: relative;
        width: 100%;
        max-width: 1580px;
        margin-left: auto;
        margin-right: auto;
        color: #1b1b1b;
        z-index: 1e3px;
        margin-bottom: 45vh;
    }

    .intro-block p {
        justify-content: center;
        align-items: center;
        text-align: center;

        letter-spacing: -0.0rem;
        line-height: 1.25;

        /* text-transform: capitalize; */
    }
}

@scope (.skills-section) {
    :scope {
        position: relative;
        width: 100%;
        padding-bottom: 40vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        background-color: transparent;
        z-index: 999;
    }

    .skills-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.0rem;
        z-index: 10;
    }

    .skill-item {
        --lerp: 1;
        --fluid-size: 3vw;
        font-family: "Inter-variable", sans-serif;
        font-size: max(18px, var(--fluid-size));
        -webkit-user-select: none;
        user-select: none;
        line-height: 1.2;
        text-transform: uppercase;
        letter-spacing: -0.02em;
        font-variation-settings: 'wght' 200, 'opsz' 99.9, 'wdth' 300;
        text-align: center;
        background-image: radial-gradient(circle, #3e3e3e 0%, #a5a5a5 100%);
        filter: url(#clean-stroke);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        /* opacity: calc(0.3 + (0.7 * var(--lerp))); */
        will-change: font-variation-settings, font-size, transform;
    }
    
}

@property --lerp {
    syntax: '<number>';
    inherits: true;
    initial-value: 0;
}



@scope (.project-section) {
    :scope {
        position: relative;
        width: 100%;
        padding-bottom: 40vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        background-color: transparent;
        z-index: 999;
    }

    .project-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.0rem;
        z-index: 10;
    }

    .project-item {
        --lerp: 0;
        --fluid-size: 3vw;
        font-family: "Inter-variable", sans-serif;
        font-size: max(18px, var(--fluid-size));
        -webkit-user-select: none;
        user-select: none;
        line-height: 1.2;
        text-transform: uppercase;
        letter-spacing: -0.02em;
        font-variation-settings: 'wght' 200, 'opsz' 99.9, 'wdth' 300;
        text-align: center;
        background-image: radial-gradient(circle, #3e3e3e 0%, #a5a5a5 100%);
        filter: url(#clean-stroke);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        /* will-change: font-variation-settings, font-size, transform; */
        will-change: transform;
    }
}

@scope (.mobile-section) {
    :scope {
        position: relative;
            display: flex;
            justify-content: center;
            z-index: 2;
            font-family: "imbue-variable", sans-serif;
            overflow-x: clip;
            margin-bottom:4rem;
            
    }

    .mobile-item {
        visibility: hidden;
        font-size: clamp(20px, 240vw, 240.1vw);
            margin: 0;
            width: 100%;
            /* height: 100vh; */
            max-width: 1900px;
            margin-left: auto;
            margin-right: auto;
            color: #5b5b5b;
            margin-block: 2rem 8rem;
            text-shadow: 0.0035em 0.0035em 0em #ffffff, 0.009em 0.009em 0em #edededff, 0.004em -0.004em 0em #ffffffff;
            text-align: center;
            text-anchor: middle;
            text-box-trim: trim-both;
            text-box-edge: cap alphabetic;
            word-break: normal;
            white-space: nowrap;
            -webkit-user-select: none;
            user-select: none;
    }
}

/* Scroll Text Animations */
.scroll-nav-container {
    position: relative;
    width: 100%;
    height: 400vh;
    z-index: 998;
    padding-bottom: 0px;
    background-color: #1b1b1b;
    /* Moved background color here so it spans 400vh natively */
}

.scroll-nav-hero {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: transparent;
}

.scroll-nav-copy {
    position: absolute;
    left: 0;
    right: 0;
    top: 60%;
    transform: translateY(-50%);
    width: 100%;
    max-width: 1580px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 30px;
    padding-right: 30px;
    display: flex;
    gap: 4rem;
    color: #1b1b1b;
    opacity: 0;
}

.scroll-nav-block {
    flex: 1;
}

.scroll-nav-block p {
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: -0.0rem;
    line-height: 1.5;
    /*  max-inline-size: 25ch; */
}

.scroll-nav-block p .word {
    will-change: transform;
}

/* Header */

.nav-wrapper {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 20px;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    /* Native visible state */
    opacity: 1;
    pointer-events: none;
    transition: top 0.5s ease;


    & .nav-main {
        pointer-events: auto;
    }

    & .is-hidden {
        pointer-events: none;
        top: -100px;
    }
}

.w-nav-menu {
    float: right;
    position: relative;
}

.nav-logo-link {
    flex: 0 auto;
    width: auto;
    height: 22px;
}

.w-nav-brand {
    float: left;
    color: #333;
    text-decoration: none;
    position: relative;
}

.nav-main-menu {
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1580px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
}

.nav-container {
    flex-flow: column;
    width: 100%;
    max-width: 1580px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 30px;
    padding-right: 30px;
    display: flex;
}

.container {
    flex-flow: column;
    width: 100%;
    max-width: 1580px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 30px;
    padding-right: 30px;
    display: flex;
    margin-bottom: 70px;
    ;
}

.container.main-hero {
    grid-column-gap: 80px;
    grid-row-gap: 80px;
    max-width: 1580px;
}

.div-block-693 {
    flex-flow: column;
    justify-content: center;
    align-items: center;
    height: auto;
    /* Shrinks the text container vertically */
    display: flex;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 0vh;
    /* Safe separation from the native skills-list directly below */
}

.heading-center {
    grid-column-gap: 20px;
    grid-row-gap: 0px;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    display: flex;
}

.main-h-xlarge {
    visibility: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 2;
    font-family: "imbue-variable", sans-serif;
    font-variation-settings: 
        'wght' 450, 
        'opsz' 10.9, 
        'wdth' 100;

    font-size: clamp(20px, 35vw, 35.1vw);
    margin: 0;
    width: 90vw;
    max-width: 1900px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
    margin-top: 0px;
    text-align: center;
    text-shadow: .0em .0em 0em #5b5b5b00, 0em 0em 0em #5b5b5b00, 0em 0em 0em #fbfbfb00;
    letter-spacing: auto;
    text-anchor: middle;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
    word-break: normal;
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;

    & .super {
        vertical-align: baseline;
        position: relative;
        top: 0.8em; 
        font-size: smaller; /* Optional: standard browser behavior uses smaller font */
        font-size: 15%;
            text-shadow: none;
        margin-top: 50px;
        }
}

.parent-container {
    max-width: 1900px;
    padding-inline: 8px;
    margin-inline: auto;
    /* margin-bottom: 8px; */
    /* margin-top: 150px; */
    container-type: inline-size;

    .grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;

        /* Target the grid ONLY when it is inside .prototypes-page */
/*         #protos & {
            grid-template-columns: repeat(3, 1fr);
        } */

        @container (max-width: 1100px) {
            grid-template-columns: 1fr;
            gap: 10px;
        }

        & .bg-one, & .bg-two {
            background-color: #162030;
        }
    }

    @container (max-width: 767px) {
        padding-inline: 0;
    }

    .card {
        container-type: inline-size;
        container-name: card-container;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        border-radius: 10px;
        height: 90vh;
        max-height: 800px;
        padding: 60px;
        overflow: hidden;
        gap: 20px;  

        /* Override for prototypes.html only */
        /* #protos & {
            height: 50vh;
            max-height: 500px; 
        } */

        @container (max-width: 767px) {
            border-radius: 0px;
            height: 100vh;
            max-height: 100vh;
        }

        .logo {
            position: absolute;
            left: 20px;
            right: 20px;
            top: 20px;
            bottom: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding-block: 10px;


            & img {
                width: 50px;
                opacity: .1;
            }

            svg {
                width: 370px;
                overflow: visible;

            }

            &.dwt svg {
                width: 200px;
            }

        }

        .card-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(255, 105, 180, 0.921);
            border-radius: 10px;
            z-index: 1;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
       
            & .icon {
                /* Adjust size as needed */
                
                width: 50px;
                height: 50px;
                flex-shrink: 0;
                
            }
            
            
            & h2 {
                margin: 0;
                font-size: 1.2rem;
                line-height: 1.2;
                font-weight: 400;
                margin-bottom: 17px;
                color: #333;
                text-wrap: pretty;
                max-inline-size: 30ch;
            }
           
        }

        @scope (.icon) {


            h2 {
                margin: 0;
                font-size: 2.2rem;
                line-height: 1.15;
                font-weight: 500;
                letter-spacing: 0;
                margin-bottom: 17px;
                color: #333;
                text-wrap: pretty;
                max-inline-size: 30ch;
            }
        }

        .content {
            opacity: 0;
            transform: translateY(40px);
            /* This pushes the whole text block to the bottom */
            margin-top: auto;
            display: flex;
            flex-direction: column;
            gap: 5px;
            min-height: 150px;

            h2 {
                font-size: 2.3rem;
                font-family: "inter-variable", sans-serif;
                /* font-variation-settings: "slnt" 0, "wght" 400; */
                margin: 0;
                line-height: 1.2;
                font-weight: 400;
            }

            p {
                margin: 0;
                font-size: 1.3rem;
                line-height: 1.2;
                font-weight: 400;
                margin-inline: auto;
                margin-bottom: 17px;
                color: #333;
                text-wrap: pretty;
                max-inline-size: 40ch;
            }

            .card_button {
                color: rgb(255, 255, 255);
                text-decoration: none;
                font-size: 1rem;
                font-weight: 400;
                text-transform: uppercase;
                corner-shape: superellipse(1.25);
                border-radius: 1e3px;
                background-color: transparent;
                margin-left: -6px;
                padding: 12px 22px;
                block-size: 1cap;
                inline-size: 1cap;
                border: 1px solid rgb(255, 255, 255);
                transition: background-color 0.3s, color 0.3s, border-color 0.3s;


                &:hover {
                    /* background-color: purple; */
                }
            }
        }

        @container (max-width: 430px) {
            .card {
                cursor: pointer;
                /* Show it's clickable */
                display: flex !important;
                justify-content: center !important;
                align-items: center !important;
                height: 50vh !important;
                /* Adjust height for mobile */

                .content {
                    opacity: 1 !important;
                    /* Beats GSAP */
                    transform: none !important;
                    /* Beats GSAP */
                    margin: 0 !important;
                    display: flex !important;
                    flex-direction: column;
                    align-items: center;

                    /* Hide text, keep only the button */
                    h2,
                    p:not(:has(.card_button)) {
                        display: none !important;
                    }

                    .card_button {
                        opacity: 1 !important;
                        margin: 0 !important;
                        pointer-events: none;
                        /* Let the card handle the click */
                    }
                }

                .card-overlay,
                .bg-slideshow-wrapper {
                    opacity: 1 !important;
                }
            }
        }
    }
}


/* --- Vertical / Portrait Page Scope --- */
body.page-type-portrait .split-card-container {
    max-width: 1400px;
    /* Optional cap to keep layout proportional for tall grids */
    margin: 0 auto 290px auto;

    .grid {
        /* Control the exact width of the media column natively! */
        /* Text side gets 1fr (fluid space), Media side gets locked at exactly 750px */
        /* You can change this 750px to perfectly size exactly how you want the images */
        grid-template-columns: 1.5fr 2.5fr;
        column-gap: 100px;
    }

    .media-col {
        width: 100% !important;
        /* Forces the box to completely fill the 750px grid column! */
        max-height: none !important;
        /* Strips JS/landscape height clamps so it can grow natively */
    }
}

.split-card-container {
    container-type: inline-size;
    margin-bottom: 190px;
    max-width: 1900px;

    & .grid {
        grid-template-columns: .8fr 1.2fr;
        row-gap: 140px;
        column-gap: 20px;
        align-items: start;

        @container (max-width: 1100px) {
            grid-template-columns: 1fr;
            row-gap: 80px;
            column-gap: 0;
        }

        @container (max-width: 767px) {
            row-gap: 30px;
        }
    }

    

    .split-card {
        display: contents;
        opacity: 0;

        & .content-col {
            grid-column: 1;
            grid-row: 1 / -1;
            /* position: sticky; */
            top: 30vh;
            height: fit-content;
            background-color: #fff;
            padding: 60px 0px 300px 160px;
            display: flex;
            flex-direction: column;
            font-family: "inter-variable", sans-serif;
            justify-content: flex-end;
            z-index: 10;
            background: transparent;

            @container (max-width: 1100px) {
                grid-column: 1;
                /* Un-stick text on mobile since the images map below them natively */
                position: relative;
                top: auto;
                padding: 0;
            }

            & p {
                margin: 0 0 14px 0;
                font-size: 1.2rem;
                line-height: 1.5;
                font-weight: 400;
                color: #333;
                text-wrap: pretty;
                max-inline-size: 41ch;
                word-wrap: none;
                word-break: keep-all;

                @container (max-width: 1100px) {
                    max-inline-size: 100%;
                }
            }

            & h2 {
                font-size: 1.9rem;
                max-inline-size: 26ch;
                margin: 0 0 10px 0;
                line-height: 1.2;
                font-variation-settings: 'wght' 350, 'opsz' 99.9;

                @container (max-width: 767px) {
                    font-size: 2.1rem;
                    max-inline-size: none;
                    font-variation-settings: 'wght' 350, 'opsz' 99.9;
                }
            }

            & h3 {
                font-size: 1.4rem;
                padding: 0 0 10px 0;
                line-height: 1.2;
                font-variation-settings: 'wght' 270, 'opsz' 99.9;
                max-inline-size: 27ch;
                 @media (max-width: 767px) {
                    display: none;
                 }
            }

            @container (max-width: 767px) {
                    text-align: center;
                    padding-inline: 1.5rem;
                }

        }

        & .media-col {
            outline: 2.5px solid #ececec;
            grid-column: 2;
            height: auto;
            width: 100% !important;
            max-width: 100%;
            aspect-ratio: 16 / 9;
            position: relative;
            overflow: hidden;
            border-radius: 10px;
            padding-right: 0;
            background-color: #bebebe;
            transform: none !important;

            @container (max-width: 1100px) {
                grid-column: 1;
                max-height: 60vh;
            }

            @container (max-width: 767px) {
                aspect-ratio: 9 / 18;
                border-radius: 0px;
            }

            &.ratio-16-9 {
                aspect-ratio: 16 / 9 !important;
            }

            &.ratio-9-16 {
                aspect-ratio: 9 / 16 !important;
            }

            &.ratio-1 {
                aspect-ratio: 1 !important;
            }

            &.signal {
                background-color: #162030;
            }

            &.normal {
                background-color: #162030;
            }

            &.blanco {
                background-color: #ffffff;
            }

            & .bg-slideshow-wrapper {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100% !important;
                border-radius: 10px;
                overflow: hidden;

                @container (max-width: 767px) {
                    border-radius: 0px;
                }
            }

            & img,
            & video,
            & .bg-slide-img {
                position: absolute;
                top: -7.5%;
                left: 0;
                width: 100%;
                height: 115% !important;
                object-fit: cover;
                will-change: transform;
            }
        }
    }
}



button {
    border-radius: 1e3px;

    &.squircle {
        corner-shape: squircle;
    }

    &.superellipse {
        corner-shape: superellipse(1.25);
    }
}

.bg-slideshow-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
}

.bg-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease;
    
}

.page-home .card .bg-slideshow-wrapper {
    filter: grayscale(100%);
    opacity: .9;
}

.page-home .card .logo svg {
    /* CSS native drop-shadow intelligently hugs the exact alpha contours of the SVG shapes.
       This is identical to <feDropShadow> but requires zero extra HTML markup inside <defs>. */
    filter: drop-shadow(-1.5px 1.5px 0px rgba(0, 0, 0, 0.2));
}

.bg-slide-img.active {
    opacity: 1;
    z-index: 1;
}

.icon {
    opacity: 0;
    transform: translateY(80px);
    position: relative;
    z-index: 10;
}

.content {
    opacity: 0;
    transform: translateY(40px);
    position: relative;
    z-index: 10;
}

/* Split Card Layout (one.html) */




/* =========================================
   VIEW TRANSITIONS API (PAGE ROUTING)
   ========================================= */

@view-transition {
    navigation: auto;
}

::view-transition {
    background-color: #535353;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-old(root) {
    z-index: 1;
    animation: slide-up-out 1.2s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

::view-transition-new(root) {
    z-index: 2;
    animation: slide-up-in 1.2s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes slide-up-out {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-20vh);
        opacity: 0;
    }
}

@keyframes slide-up-in {
    0% {
        transform: translateY(100vh);
    }

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

.footer-container {
    display: flex;
    flex-flow: column;
    margin-inline: auto;
    width: 100%;
    height: max-content;
    overflow: hidden;
    padding: 8px 8px;
    border-radius: 10px 10px 0 0;
    max-width: 1900px;
    container-type: inline-size;

    & .section-features {
        justify-content: space-between;
        align-items: flex-start;
        padding-top: 60px;
        padding-bottom: 120px;
        display: flex;
        padding-inline: 60px;
        border-radius: 10px;
        background-color: #f8f8f8;
        gap: 20px;

        @container (max-width: 1100px) {
            flex-direction: column;
            padding-inline: 20px;
            padding-top: 60px;
            padding-bottom: 60px;
            gap: 40px;
        }

        & .heading-wrap {
            grid-column-gap: 20px;
            grid-row-gap: 20px;
            flex-flow: column;
            justify-content: center;
            align-items: flex-start;
            max-width: 50%;
            display: flex;
            margin-bottom: 20px;

            @container (max-width: 1100px) {
                max-width: 100%;
            }

            & .main-h-large {
                --druid-size: 3vw;
                color: #373737;
                font-family: "imbue-variable", sans-serif;
                font-variation-settings: 
                    'wght' 200, 
                    'opsz' 90.1, 
                    'wdth' 150;
                font-size: max(18px, var(--druid-size));
                margin: 0 0 23px 0;
                text-align: left;

                @container (max-width: 767px) {
                    font-size: 20vw;
                }
            }

            & .foot-copy {
                color: #5b5b5bed;
                font-family: "inter-variable", sans-serif;
                font-variation-settings: "slnt" 0, "wght" 300;
                font-size: clamp(20px, 2.0rem, 3.55vw);
                line-height: 1.4;
                max-inline-size: 26ch;
                text-box-trim: trim-both;
                text-box-edge: cap alphabetic;
                
                @container (max-width: 767px) {
                    font-size: 28px;
                }
                
            }
        }

        .content-features {
            grid-column-gap: 60px;
            grid-row-gap: 60px;
            flex-flow: column;
            max-width: 50%;
            display: flex;
            padding-top: 40px;

            @container (max-width: 1100px) {
                max-width: 100%;
                padding-top: 20px;
            }

            & .w-layout-grid {
                grid-row-gap: 16px;
                grid-column-gap: 16px;
                grid-template-rows: auto auto;
                grid-template-columns: 1fr 1fr;
                grid-auto-columns: 1fr;
                display: grid;
                border-bottom: 1.5px solid #e6e6e6;
                padding-bottom: 25px;

                @property --skosh {
                    syntax: '<number>';
                    inherits: true;
                    initial-value: 12;
                }

               & .exp-title {
                    font-size: 1.1rem;
                    font-weight: 500;
                    pointer-events: auto;
                    /* Removed the transition here so it doesn't fight the child */

                    & a {
                        --skosh: 12px;
                        position: relative; 
                        display: inline-block;
                        color: #232323;
                        text-decoration: none;
                        padding-inline: var(--skosh);
                        margin-left: calc(var(--skosh) * -1);
                        /* Force a stacking context for the 'a' tag so z-index -1 stays visible */
                        z-index: 1; 

                        &::before {
                            content: "";
                            position: absolute;
                            /* inset: -10px 0 means 10px extra top/bottom, 0px extra on the sides */
                            /* Since 'a' has padding-inline, 0 is the edge of that padding */
                            inset: -10px 0; 
                            
                            border-radius: 9px;
                            background-color: #23232300; /* Start transparent */
                            box-shadow: 0 0 0 1px #23232341; 
                            z-index: -1;
                            transition: all 0.3s ease-in-out;
                            pointer-events: none; /* Let clicks pass through to the 'a' */
                        }

                        &:hover {
                            color: #fff;

                            &::before {
                                background-color: #232323dd; 
                                box-shadow: 0 0 0 0px rgba(255, 196, 225);
                            }
                        }
                    }
                }

                & .exp-d p {
                    font-size: 1rem;
                }

                &:last-child {
                    border-bottom: none;
                }

                @container (max-width: 767px) {
                    grid-template-columns: 1fr;
                }
            }
        }
    }

    & .holder {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        gap: 1.5rem;
    }

    & .holder>div {
        display: flex;
        gap: 2rem;
    }

    & a {
        color: #272727;
        text-decoration: none;
        transition: all 0.5s ease;

        &:hover {
            color: hotpink;
        }
    }

    .holder {
        width: 100%;
        height: 100%;
        padding: 2.75rem 8px 2.75rem 8px;
        max-width: 1900px;
        margin: 0 auto;
    }

    p.mono {
        text-transform: uppercase;
        font-family: "inter-variable", sans-serif;
        font-variation-settings: "slnt" 0, "wght" 400;
        font-size: 0.85rem;
        font-weight: 700;
        color: #333;
    }
}



.features-grid.w {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto
}

.features-grid.w.cases {
    grid-column-gap: 12px;
    grid-row-gap: 12px;
    max-width: 1180px
}

.features-grid._w-copy {
    border-bottom: 1px solid #81818133;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 60px;
    position: relative
}

.features-grid._w-copy.final,
.features-grid._w-copy.contact {
    border-bottom-style: none
}

.container-xlarge {
    z-index: 12;
    grid-row-gap: 120px;
    text-align: left;
    flex-flow: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding-top: 160px;
    display: flex;
    position: relative
}

.sk-button {
    display: flex;
    align-items: center;
    font-family: "inter-variable", sans-serif;
    font-variation-settings: "slnt" 0, "wght" 500;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
    font-size: 1.1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .0em;
    margin: 0;
    padding: 12.75px 22px;
    color: #383838;
    border-radius: 1e3px;
    corner-shape: superellipse(1.25);
    transition: background-color 0.3s ease, color 0.3s ease;
    pointer-events: auto !important;
    cursor: pointer !important;

    &.rounded {
        padding: 10px 18px;
        border-width: 0px;
        background-color: rgba(255, 255, 255, 0);
        font-size: 1.1rem;

        &:hover {
            background-color: rgba(255, 105, 180, 0.996) !important;
            color: #ffffff !important;
        }
    }

    &.smoo, &.moo{
        /* border-top: solid 2px #ffffff00; */
        border-bottom: solid 2px #1b1b1b80;
        background-color: #ffffff00;
        backdrop-filter: blur(0px);
    }

}


.btn_holder {
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: right;
    align-items: center;
    gap: 20px;
    margin: 0px 0 15px 0;
    margin-left: 0;
    pointer-events: auto !important;
}

.btn_holder .sk-button:not(.smoo) {
    padding: 10px 18px;
    border-radius: 1e3px;
    corner-shape: superellipse(1.25);
    /* border-top: solid 2px transparent; */
    border-bottom: solid 2px transparent;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;

    &:hover {
        background-color: rgba(255, 105, 180, 0.996) !important;
        color: #ffffff !important;
    }
}

.glass-cta {
    display: inline-flex;
    width: fit-content;
    place-items: center;
    gap: 0.5rem;
    font-family: "inter-variable", sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: rgba(35, 35, 35, 0.866);
    corner-shape: superellipse(1.25);
    border: 1.5px solid rgb(181, 181, 181);
    border-radius: 70px;
    background-color: transparent;
    padding: 7.5px 19px;
    margin: 15px 0 0 -9px;
    text-decoration: none;
    z-index: 100;
    cursor: pointer !important;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
    transition: all 0.3s ease;

    &:hover {
        background-color: #5f5f5f;
        color: #fff;
        border: 1.5px solid rgba(255, 105, 180, 0.321);
        transform: translateY(-3px);
        box-shadow: 0 10px 0px color-mix(in oklab, #5f5f5f, transparent 80%) !important;
    }

    @container (max-width: 767px) {
        margin: 15px auto 0 auto;
    }
}



/* ========================================================
   GLOBAL POPOVER MODAL API STYLES
   Native top-layer API, completely isolated from z-index
   ======================================================== */

#media-popover {
    /* Fullscreen layout */
    margin: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    flex-direction: column;
    overflow-y: auto;

    /* Out Animation Native Defaults */
    opacity: 0;
    transform: scale(0.98) translateY(10px);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        overlay 0.3s allow-discrete,
        display 0.3s allow-discrete;


    &:popover-open {
        /* Fully expanded */
        display: flex;
        opacity: 1;
        transform: scale(1) translateY(0);

        /* Safely trigger display transitions via @starting-style where supported */
        @starting-style {
            opacity: 0;
            transform: scale(0.98) translateY(10px);
        }
    }


    &::backdrop {
        background: rgb(250, 250, 250);
        opacity: 0;
        transition: opacity 0.3s ease, overlay 0.3s allow-discrete, display 0.3s allow-discrete;
    }


    &:popover-open::backdrop {
        opacity: 1;

        @starting-style {
            opacity: 0;
        }
    }

    /* Modal Inner Container Formatting */
    & .fixed-close {
        position: sticky;
        top: 40px;
        margin-left: auto;
        margin-right: 40px;
        display: block;
        z-index: 10;
        background: transparent;
        border: none;
        cursor: pointer;
        color: #111;
        transition: transform 0.2s ease;
        padding: 10px;

        @media (max-width: 767px) {
            margin-right: 9px;
            top: 8px;
        }
    }

    & .fixed-close:hover {
        transform: scale(1.1);
    }

    & .popover-intro-col {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 80px 14vw 0px;
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
        background: transparent;

        @media (max-width: 767px) {
            padding: 80px 14vw 0px 9vw;
        }
    }

    & .popover-intro-col h2 {
        font-family: "inter-variable", sans-serif;
        font-variation-settings: 'wght' 250, 'opsz' 99.9;
        font-size: 2.95rem;
        max-inline-size: 20ch;
        padding: 0 0 30px 0;
        line-height: 1.1;
        color: #1b1b1b;
        letter-spacing: -.03em;
        margin: 0 0 0 -4px;
    }


    & .popover-intro-col h3 {
        font-size: 1.4rem;
        padding: 0 0 10px 0;
        line-height: 1.2;
        font-variation-settings: "slnt" 0, "wght" 400;
        color: #1b1b1b;
        margin: 0;
    }

    & .popover-intro-col p {
        margin: 0 0 21px 0;
        font-size: 1.3rem;
        line-height: 1.4;
        font-weight: 400;
        color: #1b1b1b;
        text-wrap: pretty;
        overflow-wrap: break-word;
        max-inline-size: 64ch;
        hyphens:auto;
    }

    & .popover-media-col {
        padding: 80px 14vw;
        margin-bottom: 200px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 260px;
        background: transparent;
    }

    & .popover-media-col img {
        max-width: 1400px;
        width: 100%;
        height: auto;
        border-radius: 10px;
        outline: 1.5px solid #dfdfdf;
        box-shadow: none;

        @media (max-width: 767px) {
            border-radius: 0px;
        }
    }
}

/* Stop background scrollbar and tracking purely via native CSS */
body:has(#media-popover:popover-open) {
    overflow: hidden !important;
}

.dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dropdown-list a {
    text-decoration: none;
    color: #bebebe;
    font-size: 1.2rem;
    font-weight: 400;
    text-align: center;
}

/* Back to Top Feature (Popover) */
.back-to-top-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 60px 0;
    background-color: transparent;
}

.back-to-top-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f2f2f2;
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

.back-to-top-link img {
    width: 24px;
    height: auto;
    display: block;
}

.back-to-top-link:hover {
    transform: translateY(-5px);
    background-color: #e6e6e6;
}

    @media (max-width: 767px) {
        body {
            overflow-x: hidden;
        }
        
        .scroll-nav-container,
        .skills-section,
        .project-section,
        .nav-wrapper {
            display: none !important;
            }

        .split-card .media-col {
            aspect-ratio: 9/16;
        }

        .parent-container {
            padding-inline: 0;
        }

        #media-popover {
        & .popover-media-col {
            padding: 80px 8px;
            margin-bottom: 200px;
            gap: 80px;

        }

        .content-col .col-sub h3 {
            display: none !important;
        }
    }
}

@media (min-width: 768px) {
    .mobile-section {
        display: none !important;
    }
}
