/* =========================================
   HEADER
========================================= */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    z-index: 50;
    font-size: 16px;
}

/* =========================================
   PROJECT FOLDERS
========================================= */

.project-folder-container {

    position: fixed;
    left: 0;
    top: 50%;
    width: 100vw;
    height: 82vh;
    transform:
        translate(-100%, -50%);
    display: flex;
    align-items: center;
    padding-left: 12vw;
    transition:
        transform 1.2s cubic-bezier(.16,1,.3,1);
    z-index: 40;
    pointer-events: none;
}


/* OPEN */

.hero.projects-open .project-folder-container {

    transform:
        translate(0, -50%);
    pointer-events: auto;
}
/* =========================================
   PROJECT FOLDER NAVIGATION
========================================= */

.project-folder-view {

    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    overflow: hidden;
    transform: translateX(100%);
    transition:
        transform 1.1s cubic-bezier(.16,1,.3,1);
}


/* OPEN */

.hero.projects-open .project-folder-view {

    transform: translateX(0);
    scale: 1px;
    pointer-events: auto;

}


/* =========================================
   FOLDER TRACK
========================================= */

.folder-track {

    position: absolute;
    right: 5vw;
    top: 50%;
    height: 70vh;
    display: flex;
    align-items: center;
    transform: translateY(-50%);
    padding-right: 8vw;

}


/* =========================================
   FOLDER
========================================= */

.folder-project {

    position: relative;
    flex: 0 0 clamp(180px, 18vw, 280px);
    height: 65vh;
    margin-left: -55px;
    padding: 0;
    border: 1px solid #444;
    background: #222;
    overflow: visible;
    cursor: pointer;
    transition:
        transform .6s cubic-bezier(.16,1,.3,1),
        margin .6s cubic-bezier(.16,1,.3,1);

}


/* First folder */

.folder-project:first-child {
    margin-left: 0;
}


/* =========================================
   FOLDER IMAGE
========================================= */

.folder-project img {

    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;

}


/* =========================================
   FOLDER NUMBER
========================================= */

.folder-project span {

    position: absolute;
    right: -1px;
    top: 15%;
    width: 42px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ddd;
    color: #111;
    font-size: 12px;
    font-weight: 600;
    writing-mode: vertical-rl;
    letter-spacing: .1em;
    z-index: 10;

}


/* =========================================
   STACK ORDER
========================================= */

.folder-project:nth-child(1) {
    z-index: 6;
}

.folder-project:nth-child(2) {
    z-index: 5;
}

.folder-project:nth-child(3) {
    z-index: 4;
}

.folder-project:nth-child(4) {
    z-index: 3;
}

.folder-project:nth-child(5) {
    z-index: 2;
}

.folder-project:nth-child(6) {
    z-index: 1;
}


/* =========================================
   HOVER
========================================= */

@media (hover: hover) and (pointer: fine) {

    .folder-project:hover {
        transform:
            translateY(-20px);
        margin-right: 20px;
    }

}

/* =========================================
   PROJECT ARCHIVE
========================================= */

.project-archive {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    z-index: 70;
    pointer-events: none;
    overflow: visible;
    /*
       IMPORTANT:
       Leave the folder stack partially visible
       on the homepage.
    */
    transform: translateX(calc(100% - 120px));
    transition:
        transform 1s cubic-bezier(.16, 1, .3, 1);
}



/* OPEN */

body.archive-open .project-archive {
        transform: translateX(calc(100% - 160px));

    pointer-events: auto;
}


/* =========================================
   TRACK
========================================= */

.archive-track {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: stretch;
}


/* =========================================
   COVER
========================================= */

.archive-cover {
    cursor: pointer;
    position: relative;
    flex: 0 0 18vw;
    min-width: 190px;
    height: 100%;
    background: #0b0b0b;
    border-right: 1px solid #333;
    z-index: 20;
}

.archive-cover:hover {
    box-shadow:
        -16px 12px 35px rgba(0,0,0,.48),
        4px 0 12px rgba(0,0,0,.2);
}

/* PROJECTS TITLE */

.archive-cover-title {
    position: absolute;
    top: 10%;
    right: 30px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: clamp(2rem, 3vw, 4rem);
    font-weight: 400;
    letter-spacing: -.04em;
}


/* SMALL INFO */

.archive-cover-info {
    position: absolute;
    bottom: 8%;
    left: 35px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 9px;
    line-height: 1.4;
    letter-spacing: .1em;
    color: #777;
}


/* =========================================
   ARROW
========================================= */

.archive-arrow {
    position: absolute;
    right: 8;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    color: #111;
    font-size: 20px;
    cursor: pointer;
    z-index: 30;
    transition:
        transform .3s ease;
}


.archive-arrow:hover {

    transform:
        translateY(-50%)
        translateX(5px);
}

/* =========================================
   ARCHIVE PROJECT
========================================= */

/* =========================================
   FOLDER
========================================= */

.archive-project {

    position: relative;

    flex: 0 0 clamp(150px, 13vw, 210px);

    height: 88vh;

    margin-left: -32px;

    padding: 0;

    border: none;

    background: #888;

    cursor: pointer;

    overflow: visible;

    /*
       Rounded physical folder appearance
    */
    border-radius:
        0
        18px
        18px
        0;

    /*
       Shadow makes the layers feel physical
    */
    filter:
        drop-shadow(
            -10px 8px 14px rgba(0,0,0,.35)
        );

    transition:
        transform .7s cubic-bezier(.16,1,.3,1),
        margin-left .7s cubic-bezier(.16,1,.3,1);
}

.archive-project span {

    position: absolute;
    top: 14%;
    right: -1px;
    width: 44px;
    height: 105px;
    background: #ccc;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    z-index: 10;
    /*
       Rounded folder tab
    */
    border-radius:
        0
        10px
        10px
        0;

    /*
       Physical depth
    */
    box-shadow:
        5px 4px 10px rgba(0,0,0,.25);
}
.archive-project:nth-of-type(1) {
    z-index: 15;
}

.archive-project:nth-of-type(2) {
    z-index: 14;
}

.archive-project:nth-of-type(3) {
    z-index: 13;
}

.archive-project:nth-of-type(4) {
    z-index: 12;
}

.archive-project:nth-of-type(5) {
    z-index: 11;
}

.archive-project:nth-of-type(6) {
    z-index: 10;
}

/* IMAGE */

.archive-project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* NUMBER TAB */

.archive-number {
    position: absolute;
    top: 16%;
    right: 0;
    width: 42px;
    height: 100px;
    background: #ccc;
    color: #111;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    writing-mode: vertical-rl;
    font-size: 13px;
    font-weight: 600;
}

/* =========================================
   MAIN PAGE SHIFT
========================================= */

.hero {
    transition:
        transform 1.2s cubic-bezier(.16,1,.3,1);
}


/* =========================================
   NAME
========================================= */

/* Links back to the home page */

.header-name {
    justify-self: start;
    color: #f5f5f5;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.04em;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .3s ease;
}

.header-name:hover {
    opacity: .7;
}


/* =========================================
   NAVIGATION
========================================= */

.header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-nav a {
    position: relative;
    color: #777;
    text-decoration: none;
    transition: color .3s ease;
}

.header-nav a:hover {
    color: #f5f5f5;
}


/* ACTIVE LINK */

.header-nav a.active {
    color: #f5f5f5;
}

.header-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 1px;
    background: #f5f5f5;
}


/* =========================================
   RIGHT SIDE
========================================= */

.header-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 60px;
}

.header-location {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-location span:first-child {
    color: #777;
}

.header-location span:last-child {
    color: #f5f5f5;
}

.header-contact {
    color: #777;
    text-decoration: none;
    transition: color .3s ease;
}

.header-contact:hover {
    color: #f5f5f5;
}

        /* =========================================
           RESET
        ========================================= */

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


        body {

            background: #111;
            color: #f5f5f5;
            font-family:
                Arial,
                Helvetica,
                sans-serif;
            overflow: hidden;
        }


        /* =========================================
           HERO
        ========================================= */

        .hero {

            width: 100vw;
            height: 100vh;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }


        /* =========================================
           TOP LABEL
        ========================================= */

        .top-label {

            position: absolute;
            top: 30px;
            left: 35px;
            font-size: 11px;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            opacity: 0.5;
            z-index: 30;
        }


        /* =========================================
           NAME
        ========================================= */

        .name {

            position: absolute;        
            top: 40%;
            left: 50%;
            z-index: 10;
            max-width: calc(100vw - 32px);
            display: flex;
            font-size:
                clamp(
                    3rem,
                    8vw,
                    10rem
                );

            font-weight: 700;
            letter-spacing: -0.07em;
            line-height: 0.8;
            white-space: nowrap;
            transform: translate(-50%, -50%);
            user-select: none;
        }


        .letter {

            display: inline-block;
            opacity: 0;
            transform:
                translate(var(--x), var(--y))
                rotate(var(--rotation))
                scale(0.8);
            transition:
                transform
                1.5s
                cubic-bezier(.16,1,.3,1),
                opacity
                .6s
                ease;
        }


        .hero.reveal .letter {

            opacity: 1;
            transform:
                translate(0,0)
                rotate(0deg)
                scale(1);
        }


        /* =========================================
           ABOUT ME
        ========================================= */
        .about-me{

            z-index: -10;
            position: absolute;
            bottom: 18vh;
            left: 50%;
            width: min(76vw, 1000px);
            transform:
                translateX(-50%)
                translateY(200px);
            text-align: center;
            font-size: clamp(.5rem, 1.5vw, 2rem);
            line-height: 1.15;
            letter-spacing: clamp(.05em, .18vw, .18em);
            text-transform: uppercase;
            opacity: 0;
            transition:
                transform
                1.5s
                cubic-bezier(.16,1,.3,1),
                opacity
                .6s
                ease;
        }


        .hero.reveal .about-me {

            opacity: 1;
            transform:
                translate(-50%, 0)
                rotate(0deg)
                scale(1);        }

        /* =========================================
           SUBTITLE
        ========================================= */

        .subtitle {

            position: absolute;
            bottom: 8vh;
            left: 50%;
            transform:
                translateX(-50%)
                translateY(20px);
            text-align: center;
            font-size: 11px;
            letter-spacing: .18em;
            text-transform: uppercase;
            opacity: 0;
            transition:
                opacity
                1s
                ease
                1.8s,

                transform
                1s
                cubic-bezier(.16,1,.3,1)
                1.8s;
        }


        .hero.reveal .subtitle {

            opacity: .6;

            transform:
                translateX(-50%)
                translateY(0);
        }


        /* =========================================
           PROJECT BOXES
        ========================================= */
.project img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

.project {
    position: absolute;
    width: clamp(72px, 9vw, 150px);
    aspect-ratio: 4 / 3;
    background: #252525;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0;
    transition:
        transform 1.5s cubic-bezier(.16,1,.3,1),
        opacity .8s ease;
}

        .project:hover {
            border-color: #777;
            color: #fff;
            scale:110%;
            transition:
            Scale 0.5s cubic-bezier(.2,.8,.2,1);
        }

        /* =========================================
           PROJECT FINAL POSITIONS
        ========================================= */

        .hero.reveal .project {
            opacity: 1;

        }


        .hero.reveal .project-1 {
            transition-delay: .1s;
        }

        .hero.reveal .project-2 {
            transition-delay: .1s;
        }

        .hero.reveal .project-3 {
            transition-delay: .1s;
        }

        .hero.reveal .project-4 {
            transition-delay: .1s;
        }


        /* =========================================
           PROJECT OVERLAY
        ========================================= */
        
        .project-view {

            position: fixed;
            inset: 0;
            z-index: 100;
            pointer-events: none;
            visibility: hidden;
        }


        .project-view.active {

            visibility: visible;
            pointer-events: auto;
        }


        /* =========================================
           DARK BACKDROP
        ========================================= */

        .project-backdrop {

            position: absolute;
            inset: 0;
            background:
                rgba(17, 17, 17, 0.75);
            opacity: 0;
            transition:
                opacity .6s ease;
        }


        .project-view.active
        .project-backdrop {
            opacity: 1;
        }


        /* =========================================
           EXPANDED PROJECT
        ========================================= */

        .project-content {

            position: absolute;
            width: 80vw;
            height: 80vh;
            top: 50%;
            left: 50%;
            background: #1b1b1b;
            border: 1px solid #444;
            overflow: auto;
            opacity: 0;
            transform:
                translate(
                    calc(-50% + var(--start-x)),
                    calc(-50% + var(--start-y))
                )
                scale(var(--start-scale));

            transition:
                transform
                .8s
                cubic-bezier(.16,1,.3,1),
                opacity
                .4s
                ease;
        }


        .project-view.active
        .project-content {
            opacity: 1;
            transform:
                translate(-50%,-50%)
                scale(1);
        }


        /* =========================================
           PROJECT IMAGE PLACEHOLDER
        ========================================= */

        .project-image {

            width: 100%;
            height: 65%;
            background: #292929;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #555;
            font-size: 12px;
            letter-spacing: .15em;
            text-transform: uppercase;
        }


        /* =========================================
           PROJECT INFO
        ========================================= */

        .project-info {

            padding: 35px;
            display: grid;
            grid-template-columns:
                1fr 2fr;
            gap: 40px;
        }


        .project-number {

            font-size: 11px;
            letter-spacing: .15em;
            opacity: .5;
        }


        .project-title {

            font-size:
                clamp(
                    2rem,
                    5vw,
                    5rem
                );
            line-height: .9;
            margin-bottom: 25px;
        }


        .project-description {

            max-width: 600px;
            font-size: 15px;
            line-height: 1.6;
            color: #aaa;
        }


        .project-link {

            display: inline-block;
            margin-top: 30px;
            padding: 14px 22px;
            border-radius: 100px;
            background: #e4e4e4;
            color: #111;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: .1em;
            text-transform: uppercase;
            text-decoration: none;
            transition:
                transform .3s ease,
                background .3s ease;
        }

        .project-link[hidden] {
            display: none;
        }

        .project-link:hover {
            background: #fff;
            transform: translateY(-3px);
        }


        /* =========================================
           CLOSE BUTTON
        ========================================= */

        .close-project {

            position: absolute;
            top: 20px;
            right: 25px;
            z-index: 10;
            width: 45px;
            height: 45px;
            border: 1px solid #555;
            background: #111;
            color: white;
            font-size: 20px;
            cursor: pointer;
        }


        /* =========================================
           MOBILE
        ========================================= */

        @media (max-width:600px) {

            .name {

                font-size: 17vw;
                flex-wrap: wrap;
                justify-content: center;
                max-width: 95vw;
            }


            .project {

                width: 25vw;
            }


            .project-content {

                width: 92vw;
                height: 85vh;
            }


            .project-info {

                grid-template-columns: 1fr;
                gap: 20px;
                padding: 25px;
            }

        }


/* =========================================
   SLIDE PROJECT ARCHIVE
========================================= */

.project-archive {
    position: fixed;
    top: 0;
    right: 0;
    /*
       Shrinks to fit the cover + folders, so when open the stack
       always sits flush against the right edge of the screen.
       Past the max width the folders scroll sideways inside.
    */
    width: fit-content;
    max-width: min(60vw, 960px);
    height: 100vh;
    z-index: 70;
    pointer-events: none;
    overflow: visible;

    /*
       CLOSED:
       Only the left edge of the archive
       peeks into the homepage.
    */
    transform:
        translateX(calc(100% - 220px));

    transition:
        transform 1.1s cubic-bezier(.16, 1, .3, 1);
}


/* =========================================
   OPEN
========================================= */

body.archive-open .project-archive {
    
    transform:
        translateX(0);

    pointer-events: auto;
}


/* =========================================
   STACK
========================================= */

.archive-stack {

    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding:
        6vh
        0
        6vh
        0;
}


/* =========================================
   PROJECTS COVER
========================================= */

.archive-cover {

    position: relative;
    flex:
        0 0
        clamp(115px, 9vw, 150px);
    height: 88vh;
    background: #090909;
    z-index: 30;
    /*
       Must be clickable even when the parent
       archive container has pointer-events: none.
    */
    pointer-events: auto;
    /*
       Folder-like rounded edge
    */
    border-radius:
        0
        24px
        24px
        0;
    /*
       Physical depth
    */
    box-shadow:
        -12px 12px 30px rgba(0,0,0,.42),
        4px 0 10px rgba(0,0,0,.18);
    overflow: visible;
}


/* =========================================
   PROJECTS TITLE
========================================= */

.archive-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform:
        translate(-50%, -50%)
        rotate(-90deg);
    color: #aaa;
    font-size:
        clamp(
            30px,
            3vw,
            48px
        );
    line-height: 1;
    white-space: nowrap;
    letter-spacing: -.05em;
}


/* =========================================
   COVER INFORMATION
========================================= */

.archive-cover-info {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform:
        translateX(-50%);
    writing-mode: vertical-rl;
    color: #666;
    font-size: 8px;
    line-height: 1.5;
    letter-spacing: .15em;
    white-space: nowrap;
}


/* =========================================
   ARROW
========================================= */

.archive-arrow {

    position: absolute;
    right: -22px;
    top: 50%;
    width: 46px;
    height: 46px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #e4e4e4;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 100;
    /*
       Must be clickable even when
       .project-archive has pointer-events: none.
    */
    pointer-events: auto;
    box-shadow:
        0 8px 20px rgba(0,0,0,.3);
    transform:
        translateY(-50%);
    animation:
        archiveArrowBounce
        2.2s
        ease-in-out
        infinite;
}


/*
   Attention animation
*/

@keyframes archiveArrowBounce {

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

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


/*
   Stop the bounce when interacting
*/

.archive-arrow:hover {

    animation: none;

    transform:
        translateY(-50%)
        translateX(6px);

    background: #fff;
}


/* =========================================
   FOLDERS
========================================= */

.archive-project {
   
    overflow: visible;
    position: relative;
    flex:
        0 0
        clamp(115px, 10vw, 170px);
    height: 88vh;
    /*
       Strong overlap.
       This is what makes it feel like a stack.
    */
    margin-left: -38px;
    padding: 0;
    border: none;
    /* The visible folder is .archive-image; the button is just
       the (fixed) hit area, so it stays transparent */
    background: transparent;
    cursor: pointer;

    transition:
        margin-left .9s cubic-bezier(.16,1,.3,1);
    }


/* =========================================
   FOLDER IMAGE
========================================= */

.archive-image {
    overflow: hidden;
    position: relative;
    flex:
        0 0
        clamp(115px, 10vw, 170px);
    height: 88vh;
    /*
       Strong overlap.
       This is what makes it feel like a stack.
    */
    margin-left: -38px;
    padding: 0;
    border: none;
    background: #777;
    cursor: pointer;
    /*
       Folder shape
    */
    border-radius:
        0
        20px
        20px
        0;

    /*
       Physical shadow (moved here from the button so it lifts
       together with the folder)
    */
    box-shadow:
        -8px 10px 24px rgba(0,0,0,.35);
}

.archive-project img {

    width: 100%;
    height: 100%;
    display: block;
    object-fit:cover;
    filter:blur(4px) grayscale(80%);
    border-radius:
        0
        20px
        20px
        0;

    transition:
        filter 0.5s cubic-bezier(.2,.8,.2,1),
        transform 0.6s cubic-bezier(.2,.8,.2,1);
    
}


/* =========================================
   FOLDER TAB / NUMBER
========================================= */

.archive-project span {

    position: absolute;
    top: 14%;
    right: -40px;
    width: 40px;
    height: 100px;
    background: #c8c8c8;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    z-index: 10;
    border-radius:
        0
        10px
        10px
        0;

    box-shadow:
        5px 4px 12px rgba(0,0,0,.28);
}


/* =========================================
   FOLDER SCROLLER
   The folders sit in their own sideways scroller next to the
   cover, so any number of projects fits (wheel, trackpad or
   swipe). Stack order (z-index) and the staggered tab
   position (--tab) are set per folder by js/main.js.
========================================= */

.archive-folders {
    --folder-w: clamp(115px, 10vw, 170px);
    --folder-peek: 52px;   /* how much of each folder shows when compact */

    position: relative;
    z-index: 1;            /* tucked under the cover */
    flex: 0 1 auto;        /* as wide as the folders, shrinks + scrolls past the max */
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding-right: 44px;   /* room for the last folder's tab */
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.archive-folders::-webkit-scrollbar {
    display: none;
}

.archive-project:first-child {
    margin-left: 0;
}

.archive-folders .archive-image {
    width: 100%;
    margin-left: 0;
}

/* Tabs step down the folder edge, like real folder tabs */
.archive-project span {
    top: calc(6% + var(--tab, 0) * 13%);
}


/* =========================================
   COMPACT STACK + EXPAND ON HOVER  (mouse only)
   Folders stay squeezed together; the hovered one slides
   out to full width and comes into focus. Touch screens
   keep the spread-out layout, since they can't hover.
========================================= */

@media (hover: hover) and (pointer: fine) {

    .archive-folders .archive-project {
        margin-left: calc(var(--folder-peek) - var(--folder-w));
        transition: margin-left .55s cubic-bezier(.16,1,.3,1);
    }

    .archive-folders .archive-project:hover,
    .archive-folders .archive-project:focus-visible {
        margin-left: -8px;
    }

    /* Same filter functions as the resting state, so it fades
       smoothly both ways instead of snapping */
    .archive-project:hover img,
    .archive-project:focus-visible img {
        filter: blur(0px) grayscale(0%);
    }

}

/* =========================================
   WORKS PAGE
========================================= */

.works-body {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background:
        radial-gradient(circle at 80% 10%, #292929 0, #111 34%),
        #111;
}

.works-home-link {
    color: inherit;
    text-decoration: none;
}

.works-page {
    width: min(1900px, calc(100vw - 70px));
    margin: 0 auto;
    padding: 0px 0 80px;
}

.works-heading {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: end;
    gap: 30px;
    padding-bottom: 55px;
    border-bottom: 1px solid #3b3b3b;
}

.works-kicker,
.works-intro {
    color: #777;
    font-size: 11px;
    letter-spacing: .12em;
    line-height: 1.5;
    text-transform: uppercase;
}

.works-heading h1 {
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 700;
    letter-spacing: -.08em;
    line-height: .72;
}

.works-intro {
    max-width: 190px;
    justify-self: end;
}

.works-grid {
    align-items: center;
    max-width: 1900px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 70px 24px;
    padding-top: 45px;
}

.work-card {
    color: #f5f5f5;
    text-decoration: none;
}

.work-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    display: block;
    object-fit: cover;
    filter: saturate(.75);
    transition: filter .5s ease, transform .5s cubic-bezier(.16, 1, .3, 1);
}

.work-card-wide {
    grid-column: span 2;
}

.work-card-wide img {
    aspect-ratio: 16 / 8;
}

.work-card-tall img {
    aspect-ratio: 4 / 6;
}

.work-card:hover img {
    filter: saturate(1);
    transform: translateY(-8px);
}

.work-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 13px;
    color: #888;
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.work-card-meta span:first-child {
    color: #f5f5f5;
}

@media (max-width: 1080px) {
    .works-page {
        width: calc(100vw - 40px);
        padding-top: 120px;
    }

    .works-heading {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .works-heading h1 {
        font-size: 24vw;
    }

    .works-intro {
        justify-self: start;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .work-card-wide {
        grid-column: auto;
    }
}

/* =========================================================
   SOCIAL MEDIA SHOWCASE  (works.html)
   Sizes and positions are set by the carousel script in
   works.html: the centre card takes its image's original
   ratio, the cards behind it use their data-shape ratio.
========================================================= */

.social-showcase {
    width: 100%;
    margin: 120px 0 160px;
    overflow: hidden;
}


/* ---------------------------------------------------------
   STAGE
--------------------------------------------------------- */

.social-stage {
    position: relative;
    width: 100%;
    height: 560px;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: pan-y;
    user-select: none;
    outline: none;
}


/* ---------------------------------------------------------
   CARD BASE  (= background card: black & white glass)
--------------------------------------------------------- */

.social-card {
    position: absolute;
    overflow: hidden;
    border-radius: 18px;
    background: #1b1b1b;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .45);
    cursor: pointer;
    transition:
        transform .8s cubic-bezier(.16, 1, .3, 1),
        width .8s cubic-bezier(.16, 1, .3, 1),
        height .8s cubic-bezier(.16, 1, .3, 1),
        opacity .5s ease,
        box-shadow .6s ease;
}

.social-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05) brightness(.75);
    pointer-events: none;
    -webkit-user-drag: none;
    transition: filter .6s ease;
}

/* Frosted glass pane over the background cards */

.social-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, .22);
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, .20) 0%,
            rgba(255, 255, 255, .05) 45%,
            rgba(255, 255, 255, .02) 100%
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .35),
        inset 0 -20px 40px rgba(0, 0, 0, .25);
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
    pointer-events: none;
    transition: opacity .6s ease;
}

.social-card:hover::after {
    opacity: .7;
}


/* ---------------------------------------------------------
   ACTIVE (hero) CARD  — full colour, original ratio
--------------------------------------------------------- */

.social-card.is-active {
    cursor: default;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
}

.social-card.is-active[data-href] {
    cursor: pointer;
}

.social-card.is-active img {
    filter: none;
}

.social-card.is-active::after {
    opacity: 0;
}

.social-card.is-hidden {
    pointer-events: none;
}


/* ---------------------------------------------------------
   CARD LABEL  (only on the active card)
--------------------------------------------------------- */

.social-card-label {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .65));
    color: white;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity .4s ease,
        transform .6s cubic-bezier(.16, 1, .3, 1);
}

.social-card.is-active .social-card-label {
    opacity: 1;
    transform: none;
    transition-delay: .25s;
}


/* ---------------------------------------------------------
   BOTTOM
--------------------------------------------------------- */

.social-showcase-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 35px;
}

.social-dots {
    display: flex;
    gap: 7px;
}

/* Prev / next — same round light button as the archive arrow,
   pinned to the left and right edges of the stage */

.social-nav {
    position: absolute;
    top: 50%;
    z-index: 10;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #e4e4e4;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
    transition:
        transform .4s cubic-bezier(.16, 1, .3, 1),
        background .3s ease;
}

.social-nav-prev {
    left: 24px;
}

.social-nav-next {
    right: 24px;
}

.social-nav:hover {
    background: #fff;
}

.social-nav-prev:hover {
    transform: translateY(-50%) translateX(-4px);
}

.social-nav-next:hover {
    transform: translateY(-50%) translateX(4px);
}

.social-nav:active {
    transform: translateY(-50%) scale(.92);
}

.social-nav:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px #111,
        0 0 0 4px #f5f5f5;
}

.social-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 1px solid #777;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition:
        background .3s ease,
        border-color .3s ease;
}

.social-dots button.active {
    border-color: #f5f5f5;
    background: #f5f5f5;
}

.social-hint {
    color: #777;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

@media (max-width: 800px) {

    .social-showcase {
        margin: 80px 0 100px;
    }

    .social-stage {
        height: 470px;
    }

    .social-hint {
        display: none;
    }

}

@media (prefers-reduced-motion: reduce) {

    .social-card,
    .social-card img,
    .social-card::after,
    .social-card-label {
        transition: none;
    }

}


/* =========================
   CONTACT PAGE
========================= */

.contact-page {
    min-height: 100vh;

    padding: 7vw;

    background: #020707;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: Arial, Helvetica, sans-serif;
}


/* =========================
   MAIN CARD
========================= */

.contact-card {

    position: relative;

    width: 100%;
    min-height: 680px;

    padding: 40px;

    overflow: hidden;

    border-radius: 22px;

    color: #f4f7f5;

    background:

        radial-gradient(
            circle at 15% 100%,
            rgba(23, 119, 92, 0.75),
            transparent 38%
        ),

        radial-gradient(
            circle at 90% 10%,
            rgba(16, 75, 63, 0.75),
            transparent 35%
        ),

        radial-gradient(
            circle at 55% 50%,
            rgba(7, 52, 45, 0.9),
            transparent 55%
        ),

        #061b18;

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 30px 100px rgba(0,0,0,0.45);

}


/* subtle light inside card */

.contact-card::before {

    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    left: -180px;
    bottom: -280px;

    background: #31a77e;

    filter: blur(150px);

    opacity: 0.16;

    pointer-events: none;

}


/* =========================
   TOP LABEL
========================= */

.contact-label {

    position: absolute;

    top: 40px;
    left: 40px;

    display: flex;
    gap: 10px;

    font-size: 10px;

    letter-spacing: 0.12em;

    opacity: 0.55;

}

.contact-label span:first-child {

    padding: 7px 10px;

    border: 1px solid rgba(255,255,255,0.2);

    border-radius: 30px;

}


/* =========================
   MAIN COPY
========================= */

.contact-copy {

    position: absolute;

    left: 40px;
    bottom: 105px;

    width: 42%;

}

.contact-copy h1 {

    margin: 0 0 22px;

    font-size: clamp(50px, 5vw, 82px);

    font-weight: 400;

    line-height: 0.93;

    letter-spacing: -0.055em;

}

.contact-copy p {

    max-width: 480px;

    margin: 0;

    color: rgba(255,255,255,0.58);

    font-size: 17px;

    line-height: 1.45;

}


/* =========================
   FORM
========================= */

.contact-form {

    position: absolute;

    right: 40px;
    top: 100px;

    width: 40%;

    display: flex;
    flex-direction: column;

    gap: 22px;

}


.form-row {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;

}


.field {

    display: flex;

    flex-direction: column;

    gap: 9px;

}


.field label {

    font-size: 9px;

    letter-spacing: 0.12em;

    color: rgba(255,255,255,0.45);

}


.field input,
.field select,
.field textarea {

    width: 100%;

    box-sizing: border-box;

    border: none;

    outline: none;

    border-radius: 10px;

    padding: 15px 16px;

    background: rgba(255,255,255,0.075);

    border: 1px solid rgba(255,255,255,0.08);

    color: white;

    font-family: inherit;

    font-size: 14px;

    transition:
        background 0.3s ease,
        border 0.3s ease,
        box-shadow 0.3s ease;

}


.field input::placeholder,
.field textarea::placeholder {

    color: rgba(255,255,255,0.3);

}


.field select {

    appearance: none;

    cursor: pointer;

}


.field textarea {

    min-height: 125px;

    resize: vertical;

}


.field input:focus,
.field select:focus,
.field textarea:focus {

    background: rgba(23, 22, 22, 0.979);

    border-color: rgba(255,255,255,0.25);

    box-shadow:
        0 0 0 3px rgba(75,180,145,0.08);

}


/* =========================
   SEND BUTTON
========================= */

.contact-form button {

    margin-top: 5px;

    width: 100%;

    padding: 18px 20px;

    border: none;

    border-radius: 100px;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: space-between;

    background: #e9efec;

    color: #061b18;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.08em;

    transition:
        transform 0.3s ease,
        background 0.3s ease;

}


.contact-form button:hover {

    transform: translateY(-3px);

    background: white;

}


.arrow {

    font-size: 20px;

    line-height: 0;

}


/* =========================
   FLOATING BUBBLES
========================= */

.contact-bubbles {

    position: absolute;

    top: 40px;
    right: 40px;

    display: flex;

    align-items: center;

}


.bubble {

    width: 54px;
    height: 54px;

    margin-left: -8px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f4f7f5;

    color: #061b18;

    border: 2px solid #061b18;

    text-decoration: none;

    font-size: 12px;

    font-weight: 600;

    transition:
        transform 0.3s ease;

}


.bubble:hover {

    transform: translateY(-7px);

    z-index: 5;

}



/* =========================
   FOOTER
========================= */

.contact-footer {

    position: absolute;

    left: 40px;
    right: 40px;
    bottom: 40px;

    display: flex;

    justify-content: space-between;

    color: rgba(255,255,255,0.35);

    font-size: 9px;

    letter-spacing: 0.1em;

}


/* =========================
   MOBILE
========================= */

@media (max-width: 800px) {

    .contact-page {

        padding: 20px;

    }

    .contact-card {

        min-height: auto;

        padding: 30px;

        display: flex;

        flex-direction: column;

        gap: 50px;

    }

    .contact-label,
    .contact-bubbles,
    .contact-copy,
    .contact-form,
    .contact-footer {

        position: relative;

        top: auto;
        right: auto;
        bottom: auto;
        left: auto;

    }

    .contact-label {

        order: 1;

    }

    .contact-bubbles {

        position: absolute;

        top: 25px;
        right: 25px;

    }

    .contact-copy {

        order: 2;

        width: 100%;

        margin-top: 80px;

    }

    .contact-copy h1 {

        font-size: 54px;

    }

    .contact-form {

        order: 3;

        width: 100%;

    }

    .form-row {

        grid-template-columns: 1fr;

    }

    .contact-footer {

        order: 4;

        width: 100%;

        gap: 20px;

        flex-direction: column;

    }

}

.contact-card {
    background-size: 160% 160%;

    animation: gradientMove 12s ease-in-out infinite alternate;
}

@keyframes gradientMove {

    0% {
        background-position: 0% 100%;
    }

    100% {
        background-position: 100% 0%;
    }

}


/* =========================================================
   BEFORE / AFTER PAGE
   Uses the same tokens as the Works page:
   #111 background, #f5f5f5 text, #777 / #888 secondary,
   #3b3b3b lines, tiny uppercase labels, big tight headings.
   Card captions reuse .work-card-meta from the Works page.
========================================================= */

.ba-page {

    /* Change this if your stills are not 16:9 */
    --ba-ratio: 16 / 9;

    width: min(1900px, calc(100vw - 70px));
    margin: 0 auto;
    padding: 140px 0 100px;
}


/* ---------------------------------------------------------
   HEADING
--------------------------------------------------------- */

.ba-heading {
    padding-bottom: 45px;
    border-bottom: 1px solid #3b3b3b;
}

.ba-heading-top {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
    color: #777;
    font-size: 11px;
    letter-spacing: .12em;
    line-height: 1.5;
    text-transform: uppercase;
}

.ba-heading h1 {
    font-size: clamp(2.6rem, 12vw, 11rem);
    font-weight: 700;
    letter-spacing: -.08em;
    line-height: .78;
}

.ba-slash {
    color: #777;
}


/* ---------------------------------------------------------
   GRID
--------------------------------------------------------- */

.ba-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 70px 24px;
    padding-top: 45px;
}


/* ---------------------------------------------------------
   CARD  (fades up when it scrolls into view)
--------------------------------------------------------- */

.ba-card {
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity .8s ease,
        transform 1.4s cubic-bezier(.16, 1, .3, 1);
}

.ba-card.in-view {
    opacity: 1;
    transform: none;
}


/* ---------------------------------------------------------
   COMPARE
   --ba-pos is 0 - 100 and is set by js/before-after.js
--------------------------------------------------------- */

.ba-compare {
    --ba-pos: 50;

    position: relative;
    width: 100%;
    aspect-ratio: var(--ba-ratio);
    overflow: hidden;
    background: #1b1b1b;
    transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

.ba-card:hover .ba-compare {
    transform: translateY(-8px);
}

.ba-compare img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

/* "Before" sits on top and is cut off at the handle */

.ba-before {
    clip-path: inset(0 calc(100% - var(--ba-pos) * 1%) 0 0);
}


/* ---------------------------------------------------------
   INVISIBLE RANGE INPUT
   Covers the whole image, so dragging anywhere works
   with mouse, touch and keyboard.
--------------------------------------------------------- */

.ba-range {
    position: absolute;
    inset: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    touch-action: pan-y;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.ba-range::-webkit-slider-runnable-track {
    height: 100%;
    background: transparent;
}

.ba-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 2px;
    height: 100%;
    border: 0;
    background: transparent;
}

.ba-range::-moz-range-track {
    height: 100%;
    background: transparent;
}

.ba-range::-moz-range-thumb {
    width: 2px;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.ba-compare.is-live .ba-range {
    cursor: grabbing;
}


/* ---------------------------------------------------------
   HANDLE
   Same round light button as the archive arrow
--------------------------------------------------------- */

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--ba-pos) * 1%);
    z-index: 3;
    width: 1px;
    background: #f5f5f5;
    transform: translateX(-.5px);
    pointer-events: none;
}

.ba-handle span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #e4e4e4;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
    transform: translate(-50%, -50%);
    transition:
        transform .4s cubic-bezier(.16, 1, .3, 1),
        background .3s ease,
        box-shadow .3s ease;
}

.ba-compare:hover .ba-handle span {
    transform: translate(-50%, -50%) scale(1.08);
}

.ba-compare.is-live .ba-handle span {
    background: #fff;
    transform: translate(-50%, -50%) scale(.94);
}

/* Keyboard focus */

.ba-range:focus-visible ~ .ba-handle span {
    box-shadow:
        0 0 0 3px #111,
        0 0 0 4px #f5f5f5;
}


/* ---------------------------------------------------------
   BEFORE / AFTER TAGS
   Same pill style as the contact page label
--------------------------------------------------------- */

.ba-tag {
    position: absolute;
    top: 16px;
    z-index: 2;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 30px;
    background: rgba(17, 17, 17, .45);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #f5f5f5;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    pointer-events: none;
    transition: opacity .4s ease;
}

.ba-tag-before {
    left: 16px;
}

.ba-tag-after {
    right: 16px;
}

.ba-compare.hide-before .ba-tag-before,
.ba-compare.hide-after .ba-tag-after {
    opacity: 0;
}


/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 1080px) {

    .ba-page {
        width: calc(100vw - 40px);
        padding-top: 120px;
    }

    .ba-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

}

@media (max-width: 600px) {

    .ba-heading-top {
        flex-direction: column;
        gap: 6px;
    }

    .ba-handle span {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .ba-card {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ba-compare,
    .ba-handle span {
        transition: none;
    }

}


/* =========================================================
   PROJECT CASE PAGE  (project-01.html)
   Behance-style long read. Reuses the Works page tokens:
   #111 background, #f5f5f5 text, #777 / #888 secondary,
   #3b3b3b lines, tiny uppercase labels.
========================================================= */

.case-page {
    width: min(1900px, calc(100vw - 70px));
    margin: 0 auto;
    padding: 140px 0 100px;
}


/* ---------------------------------------------------------
   READING PROGRESS
--------------------------------------------------------- */

.case-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 60;
    pointer-events: none;
}

.case-progress span {
    display: block;
    height: 100%;
    background: #f5f5f5;
    transform: scaleX(0);
    transform-origin: left;
}


/* ---------------------------------------------------------
   LABELS
--------------------------------------------------------- */

.case-label {
    display: block;
    color: #777;
    font-size: 11px;
    letter-spacing: .12em;
    line-height: 1.5;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   HEADING
--------------------------------------------------------- */

.case-heading {
    padding-bottom: 45px;
    border-bottom: 1px solid #3b3b3b;
}

.case-heading-top {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
    color: #777;
    font-size: 11px;
    letter-spacing: .12em;
    line-height: 1.5;
    text-transform: uppercase;
}

.case-back {
    color: #777;
    text-decoration: none;
    transition: color .3s ease;
}

.case-back:hover {
    color: #f5f5f5;
}

.case-title {
    font-size: clamp(2.6rem, 11vw, 10rem);
    font-weight: 700;
    letter-spacing: -.08em;
    line-height: .82;
}

.case-title span {
    color: #777;
}

.case-meta {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 30px;
    margin-top: 55px;
    font-size: 14px;
    line-height: 1.45;
}

.case-meta .case-label {
    margin-bottom: 8px;
}


/* ---------------------------------------------------------
   COVER
--------------------------------------------------------- */

.case-cover {
    margin-top: 45px;
    display: flex;
    justify-content: center;
    padding: clamp(30px, 6vw, 90px) 0;
    background:
        radial-gradient(circle at 50% 40%, #2a2a2a 0, #161616 60%);
}

.case-cover img {
    width: min(560px, 80vw);
    display: block;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
}


/* ---------------------------------------------------------
   TEXT BLOCKS
--------------------------------------------------------- */

.case-text {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    padding: 90px 0;
    border-bottom: 1px solid #3b3b3b;
}

.case-text p {
    grid-column: 2;
    max-width: 720px;
    color: #aaa;
    font-size: 16px;
    line-height: 1.65;
}

.case-text .case-lead {
    color: #f5f5f5;
    font-size: clamp(1.4rem, 2.4vw, 2.2rem);
    line-height: 1.2;
    letter-spacing: -.02em;
}


/* ---------------------------------------------------------
   CAROUSEL STRIP
--------------------------------------------------------- */

.case-strip-wrap {
    padding: 70px 0;
    border-bottom: 1px solid #3b3b3b;
}

.case-section-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.case-strip {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #3b3b3b transparent;
    padding-bottom: 14px;
    cursor: grab;
}

.case-strip.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.case-strip img {
    flex: 0 0 auto;
    width: clamp(220px, 24vw, 380px);
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    scroll-snap-align: start;
    user-select: none;
    -webkit-user-drag: none;
}


/* ---------------------------------------------------------
   SLIDES (full size, one column)
--------------------------------------------------------- */

.case-slides {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 70px;
    padding: 30px 0 90px;
}

.case-slide {
    width: min(1080px, 100%);
}

.case-slide img {
    width: 100%;
    display: block;
    background: #1b1b1b;
}


/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */

.case-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    padding-top: 45px;
    border-top: 1px solid #3b3b3b;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.case-tags span {
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 30px;
    color: #aaa;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.case-next {
    color: #f5f5f5;
    text-decoration: none;
    text-align: right;
}

.case-next-title {
    display: block;
    margin-top: 8px;
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 700;
    letter-spacing: -.06em;
    line-height: .9;
    white-space: nowrap;
}

.case-next-title span {
    display: inline-block;
    transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

.case-next:hover .case-next-title span {
    transform: translateX(12px);
}


/* ---------------------------------------------------------
   REVEAL
--------------------------------------------------------- */

.case-reveal {
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity .8s ease,
        transform 1.4s cubic-bezier(.16, 1, .3, 1);
}

.case-reveal.in-view {
    opacity: 1;
    transform: none;
}


/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 1080px) {

    .case-page {
        width: calc(100vw - 40px);
        padding-top: 120px;
    }

    .case-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-text {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 60px 0;
    }

    .case-text p {
        grid-column: 1;
    }

    .case-slides {
        gap: 45px;
    }

}

@media (max-width: 600px) {

    .case-heading-top {
        flex-direction: column;
        gap: 6px;
    }

    .case-meta {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .case-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .case-next {
        text-align: left;
    }

}

@media (prefers-reduced-motion: reduce) {

    .case-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

}


/* =========================================================
   CONTACT — COMING SOON  (contact.html)
   Builds on the .contact-* card above.
========================================================= */

.soon-page {
    /* leave room for the absolute header */
    padding-top: 110px;
}

/* Copy sits in normal flow at the bottom of the card,
   so it can never run into the label on short screens */

.soon-card {
    min-height: max(520px, calc(100vh - 180px));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 110px 40px 95px;
}

.soon-copy {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(760px, 100%);
}

.soon-copy h1 {
    font-size: clamp(56px, 8vw, 128px);
}

.soon-copy h1 span {
    color: rgba(255, 255, 255, .45);
}


/* Status pill (top right) */

.soon-status {
    position: absolute;
    top: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 30px;
    background: rgba(255, 255, 255, .05);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, .7);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.soon-dot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5fd3a6;
}

.soon-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #5fd3a6;
    animation: soonPulse 1.8s ease-out infinite;
}

@keyframes soonPulse {

    0% {
        transform: scale(1);
        opacity: .8;
    }

    100% {
        transform: scale(3.2);
        opacity: 0;
    }

}


/* Actions */

.soon-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 34px;
}

.soon-button {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    padding: 18px 24px;
    border-radius: 100px;
    background: #e9efec;
    color: #061b18;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    transition:
        transform .3s ease,
        background .3s ease;
}

.soon-button:hover {
    transform: translateY(-3px);
    background: #fff;
}

.soon-link {
    color: rgba(255, 255, 255, .6);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color .3s ease;
}

.soon-link:hover {
    color: #fff;
}


@media (max-width: 800px) {

    .soon-page {
        padding-top: 100px;
    }

    .soon-card {
        min-height: auto;
        padding: 30px;
        gap: 32px;
        justify-content: flex-start;
    }

    .soon-status {
        position: relative;
        top: auto;
        right: auto;
        order: 1;
        align-self: flex-start;
    }

    .soon-copy {
        width: 100%;
        margin-top: 20px;
    }

    .soon-copy h1 {
        font-size: 54px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .soon-dot::after {
        animation: none;
    }

}


/* =========================================================
   RESPONSIVE
   Breakpoints used across the site:
     <= 900px  tablet  — mobile menu, compact archive
     <= 600px  phone
   Desktop styles above are untouched; everything here only
   kicks in on smaller screens.
========================================================= */


/* ---------------------------------------------------------
   HEADER — menu button (hidden on desktop)
--------------------------------------------------------- */

.header-menu {
    display: none;
}

@media (max-width: 900px) {

    .site-header {
        grid-template-columns: 1fr auto;
        height: 64px;
        padding: 0 20px;
        font-size: 14px;
    }

    .header-name,
    .header-right {
        position: relative;
        z-index: 2;
    }

    .header-name {
        font-size: 19px;
    }

    .header-right {
        gap: 16px;
    }

    .header-location {
        gap: 10px;
    }

    /* Burger */

    .header-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 1px solid #3b3b3b;
        border-radius: 50%;
        background: rgba(17, 17, 17, .4);
        cursor: pointer;
    }

    .header-menu span {
        display: block;
        width: 16px;
        height: 1.5px;
        background: #f5f5f5;
        transition: transform .4s cubic-bezier(.16, 1, .3, 1);
    }

    body.menu-open .header-menu span:first-child {
        transform: translateY(3.75px) rotate(45deg);
    }

    body.menu-open .header-menu span:last-child {
        transform: translateY(-3.75px) rotate(-45deg);
    }

    /* Full-screen nav overlay */

    .header-nav {
        position: fixed;
        inset: 0;
        z-index: 1;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 4px;
        padding: 90px 24px 40px;
        background: rgba(12, 12, 12, .94);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        opacity: 0;
        visibility: hidden;
        transition:
            opacity .4s ease,
            visibility .4s ease;
    }

    .header-nav a {
        color: #555;
        font-size: clamp(2.4rem, 11vw, 4.5rem);
        font-weight: 700;
        letter-spacing: -.06em;
        line-height: 1.08;
        transform: translateY(24px);
        transition:
            color .3s ease,
            transform .7s cubic-bezier(.16, 1, .3, 1);
    }

    .header-nav a.active::after {
        display: none;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open .site-header {
        position: fixed;
        z-index: 200;
    }

    body.menu-open .header-nav {
        opacity: 1;
        visibility: visible;
    }

    body.menu-open .header-nav a {
        transform: none;
    }

    body.menu-open .header-nav a:nth-child(2) { transition-delay: .04s; }
    body.menu-open .header-nav a:nth-child(3) { transition-delay: .08s; }
    body.menu-open .header-nav a:nth-child(4) { transition-delay: .12s; }
    body.menu-open .header-nav a:nth-child(5) { transition-delay: .16s; }

}

@media (max-width: 480px) {

    /* Keep just the clock next to the menu button */
    .header-location span:last-child {
        display: none;
    }

}


/* ---------------------------------------------------------
   INDEX — hero, archive, modal
--------------------------------------------------------- */

/* Mobile browsers: use the visible height, not the height
   behind the address bar */
.hero {
    height: 100vh;
    height: 100dvh;
}

/* Touch screens have no hover, so don't leave the archive
   images permanently blurred */
@media (hover: none) {

    .archive-project img {
        filter: grayscale(30%);
    }

}

@media (max-width: 900px) {

    /* Hero content is centred in the space left of the archive tab */
    .hero {
        width: calc(100vw - 72px);
    }

    .project {
        width: 18vw;
    }

    .about-me {
        width: 88%;
        font-size: 11px;
        letter-spacing: .08em;
        line-height: 1.35;
    }

    /* Archive: full-width panel that scrolls sideways when
       open; only a slim cover tab peeks in when closed */

    .project-archive {
        width: fit-content;
        max-width: 100vw;
        transform: translateX(calc(100% - 72px));
    }

    body.archive-open .project-archive {
        transform: translateX(0);
    }

    .archive-stack {
        padding: 84px 0 28px 0;
    }

    .archive-cover {
        flex: 0 0 72px;
        min-width: 0;      /* the desktop min-width (190px) made it far too wide */
        height: 100%;
    }

    .archive-folders {
        --folder-w: clamp(150px, 40vw, 260px);
        padding-right: 38px;
        -webkit-overflow-scrolling: touch;
    }

    .archive-title {
        top: 26%;
        font-size: 26px;
    }

    .archive-arrow {
        right: auto;
        left: 50%;
        width: 42px;
        height: 42px;
        transform: translate(-50%, -50%);
        animation: archiveArrowNudge 2.2s ease-in-out infinite;
    }

    .archive-arrow:hover {
        animation: none;
        transform: translate(-50%, -50%);
    }

    body.archive-open .archive-arrow {
        animation: none;
        transform: translate(-50%, -50%) rotate(180deg);
    }

    .archive-project {
        flex: 0 0 var(--folder-w);
        height: 100%;
        margin-left: -24px;
    }

    .archive-image {
        height: 100%;
    }

    .archive-project span {
        right: -34px;
        width: 34px;
        height: 84px;
        font-size: 11px;
    }

    @keyframes archiveArrowNudge {

        0%,
        100% {
            transform: translate(-50%, -50%);
        }

        50% {
            transform: translate(calc(-50% - 5px), -50%);
        }

    }

}

@media (max-width: 600px) {

    .hero {
        width: calc(100vw - 56px);
    }

    .project {
        width: 22vw;
    }

    /* Name breaks cleanly into SAGAR / RUDACH */
    .name {
        left: 0;
        right: 0;
        max-width: none;
        font-size: 16vw;
        transform: translateY(-50%);
    }

    .name .letter-space {
        flex-basis: 100%;
        height: 0;
        overflow: hidden;
    }

    .about-me {
        bottom: 16vh;
        width: 92%;
        font-size: 10px;
        letter-spacing: .06em;
    }

    .subtitle {
        width: 92%;
        font-size: 9px;
    }

    .project-archive {
        transform: translateX(calc(100% - 56px));
    }

    .archive-cover {
        flex-basis: 56px;
    }

    .archive-title {
        font-size: 22px;
    }

    .archive-cover-info {
        display: none;
    }

    .archive-arrow {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .project-content {
        height: auto;
        max-height: 88vh;
    }

    .project-image {
        height: auto;
        aspect-ratio: 4 / 5;
        max-height: 55vh;
    }

    .close-project {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }

}


/* ---------------------------------------------------------
   WORKS
--------------------------------------------------------- */

@media (max-width: 1080px) {

    /* The carousel's own top margin already clears the header */
    .works-page {
        padding-top: 0;
    }

}

@media (max-width: 600px) {

    .social-stage {
        height: 420px;
    }

    .social-showcase-bottom {
        gap: 16px;
    }

    .social-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .social-nav-prev {
        left: 4px;
    }

    .social-nav-next {
        right: 4px;
    }

    .works-grid {
        gap: 36px;
    }

}


/* =========================================================
   INFO PAGE  (info.html + js/info.js)
   The five roles sit around the portrait in the direction of
   their data-gaze, so the eyes look straight at the hovered
   role. .is-photo switches from the drawn eyes to the photo
   + eye images (see js/info.js).
========================================================= */

.info-body {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background:
        radial-gradient(circle at 50% 45%, #242424 0, #111 55%),
        #111;
}

.about {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 110px 40px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 24px;
}


/* ---------------------------------------------------------
   INTRO
--------------------------------------------------------- */

.about-intro {
    grid-column: 1 / -1;
    color: #777;
    font-size: clamp(1.4rem, 2.6vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -.05em;
}


/* ---------------------------------------------------------
   ROLES AROUND THE PORTRAIT
--------------------------------------------------------- */

.about-stage {
    grid-column: 1 / -1;
    align-self: center;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    justify-items: center;
    column-gap: clamp(20px, 4vw, 70px);
    row-gap: clamp(8px, 2vh, 28px);
}

.role {
    color: #f5f5f5;
    font-size: clamp(1.6rem, 4.2vw, 4.6rem);
    font-weight: 700;
    letter-spacing: -.06em;
    line-height: .95;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: default;
    user-select: none;
    transition: color .4s ease;
}

.role i {
    margin-left: .08em;
    color: #777;
    font-size: .55em;
    font-style: normal;
    vertical-align: super;
}

/* While one role is looked at, the others step back */
.about-stage:has(.is-looked-at) .role:not(.is-looked-at) {
    color: #3b3b3b;
}

.role-ul { grid-column: 1; grid-row: 1; justify-self: end;   align-self: end; }
.role-up { grid-column: 2; grid-row: 1;                      align-self: end; }
.role-ur { grid-column: 3; grid-row: 1; justify-self: start; align-self: end; }
.role-l  { grid-column: 1; grid-row: 2; justify-self: end; }
.role-r  { grid-column: 3; grid-row: 2; justify-self: start; }


/* ---------------------------------------------------------
   PORTRAIT
--------------------------------------------------------- */

.portrait {
    grid-column: 2;
    grid-row: 2;
    position: relative;
    width: clamp(200px, 22vw, 340px);
    aspect-ratio: 4 / 5;
    margin: 0;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 35%, #2c2c2c 0, #151515 70%);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
}

/* Photo mode */

.portrait-base,
.eye-container {
    display: none;
}

.portrait.is-photo .portrait-base,
.portrait.is-photo .eye-container {
    display: block;
}

.portrait-base,
.eyes {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eye-container {
    position: absolute;
    inset: 0;
}

.eyes {
    opacity: 0;
    transition: opacity .25s ease;
}

.eyes.eyes-visible {
    opacity: 1;
}

/* Drawn mode (fallback) */

.portrait.is-photo .drawn-face {
    display: none;
}

.drawn-face {
    position: absolute;
    top: 42%;
    left: 50%;
    width: 72%;
    display: flex;
    justify-content: space-between;
    transform: translate(-50%, -50%);
}

.drawn-eye {
    position: relative;
    width: 44%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50%;
    background: #f5f5f5;
    box-shadow: inset 0 -8px 16px rgba(0, 0, 0, .22);
}

/* Eyelid for blinking */
.drawn-eye::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: #1d1d1d;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .08s ease;
}

.portrait.is-blinking .drawn-eye::before {
    transform: scaleY(1);
}

.pupil {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #111;
    transform: translate(-50%, -50%);
    transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}

/* Catch-light */
.pupil::after {
    content: "";
    position: absolute;
    top: 18%;
    left: 20%;
    width: 26%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
}

.portrait.is-focused .pupil {
    transition-duration: .55s;
}


/* ---------------------------------------------------------
   BIO + LOCATION
--------------------------------------------------------- */

.about-bio {
    grid-column: 1;
    align-self: end;
    max-width: 420px;
    color: #888;
    font-size: 14px;
    line-height: 1.6;
}

.about-link {
    display: inline-block;
    margin-top: 14px;
    color: #f5f5f5;
    font-size: 11px;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity .3s ease;
}

.about-link:hover {
    opacity: .6;
}

.about-location {
    grid-column: 2;
    justify-self: end;
    align-self: end;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #777;
    font-size: 11px;
    letter-spacing: .12em;
    text-align: right;
    text-transform: uppercase;
}

.about-location span:last-child {
    color: #f5f5f5;
}


/* ---------------------------------------------------------
   INFO — RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 900px) {

    .about {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        padding: 90px 20px 30px;
        gap: 28px;
    }

    /* Portrait on top, roles wrap underneath */
    .about-stage {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 18px;
    }

    .portrait {
        order: -1;
        flex: 0 0 100%;
        max-width: min(62vw, 300px);
        margin: 0 calc((100% - min(62vw, 300px)) / 2) 22px;
    }

    .role {
        font-size: clamp(1.8rem, 8vw, 3.2rem);
    }

    .about-bio,
    .about-location {
        grid-column: 1;
    }

    .about-location {
        justify-self: start;
        text-align: left;
    }

}

@media (prefers-reduced-motion: reduce) {

    .pupil,
    .drawn-eye::before,
    .eyes {
        transition: none;
    }

}
