:root {
    --black: #000000;
    --white: #FFFFFF;
    --gray: #555555; 
    --light-gray: #e5e5e5; 
}

@font-face { 
    font-family: 'PP Pangaia'; 
    src: url('../fonts/PPPangaia-BoldItalic.woff') format('opentype'); 
    font-weight: normal;
    font-style: normal; 
} 

a{
    text-decoration: none;
    color: var(--black);
}

/* .shown {
    opacity: 1 !important;
    width: 450px !important;
    transition: width 1.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 1.6s cubic-bezier(0.165, 0.84, 0.44, 1);
} */

.dimmed {
    opacity: 0.1 !important;
    transition: opacity 1.2s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.expanded {
    width: 101.5% !important;
    transform: translate(16px, 0);
    transition: width 1.6s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.contracted{
    height: 90% !important;
    transition: 1s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.project-contracted{
    height: 20px !important;
    transition: 1s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.translate-up{
    translate: 0 -100px;
}

/* text-styling */

.pangaia{
    font-family: 'PP Pangaia';
    font-weight: normal;
}

.title{
    opacity: 0.4;
    font-size: clamp(12pt, 0.5vw, 14pt) !important;
    transition: opacity 1.2s cubic-bezier(0.075, 0.82, 0.165, 1);
}

/*  */

.noise {
    z-index: 99999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
    opacity: 0.15;
    mix-blend-mode: luminosity;
}

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

html{
    overflow: hidden;
    scroll-behavior: smooth;
    transition: background-color 2.2s cubic-bezier(0.075, 0.82, 0.165, 1);
}

body{
    background-color: var(--white);
    scroll-behavior: smooth;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;overflow-y: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    color: var(--black);
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: clamp(6pt, 1.6vw, 14pt); 
    transition: background-color 2.2s cubic-bezier(0.075, 0.82, 0.165, 1);
} 

.site-wrapper {
    max-width: 1880px;
    margin: 0 auto;
    position: relative;
    display: grid;
    grid-template-columns: 0.9fr 0.2fr;
    grid-template-rows: 0.03fr 0.25fr 0.5fr auto; 
    gap: 1.6rem;
    height: 100vh;
    padding-block: 0.8rem;
    padding-inline: 1.6rem;
}

/* Navigation */

.navigation{
    grid-column: span 6;
    grid-row: 1 / 1;
    display: flex;
    justify-content: space-between;
    height: 20px;
    padding-bottom: 1.6rem;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0);
    transition: 2.2s cubic-bezier(0.075, 0.82, 0.165, 1);
    z-index: 2;
    font-size: clamp(6pt, 1.6vw, 14pt); 
} 

.navigation:hover{
    border-bottom: 0.5px solid rgba(0, 0, 0, 1);
    transition: 3.2s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.asterisk{
    width: 16px;
    height: 16px;
    transition: 0.6s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.asterisk:hover{
    opacity: 0.4;
    cursor: pointer;
    transition: 2s cubic-bezier(0.075, 0.82, 0.165, 1);
    rotate: -30deg;
}

.info-shown{
    top: 0px;
}

.info-toggle {
    cursor: pointer;
    position: relative;
    width: 60px;  /* Adjust width as needed */
    overflow: hidden;
    height: 20px;
    transition: 0.6s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.info-text, .close-text {
    position: absolute;
    width: 100%;
    transition: 1s cubic-bezier(0.345, 0, 0, 1);
    transform: translateY(-100%); /* Start from below, out of view */
    opacity: 0;
    text-align: right;
}

.info-toggle:hover{
    opacity: 0.4;
    transition: 2s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.info-text.active {
    transform: translateY(0%); /* Active text moves into view */
    opacity: 1;
}

.close-text {
    transform: translateY(100%); /* This ensures 'Close' starts hidden above */
}

.close-text.active {
    transform: translateY(0%); /* Active text moves into view */
    opacity: 1;
}

.nav-translate{
    transition: 1s cubic-bezier(0.345, 0, 0, 1);
}


/* header info */

.header{
    z-index: 2;
}

.header-info{
    grid-column: 1 / 3;
    font-size: clamp(6pt, 1.6vw, 14pt); 
    display: flex;
    gap: 1rem;
    flex-direction: column;
    transition: 0.6s cubic-bezier(0.345, 0, 0, 1);
}

.header-info .pangaia{
    font-size: clamp(6pt, 1.6vw, 14pt); 
}

.header-info p{
    max-width: 500px;
    width: 30vw;
}

/* info details */ 

.info-details{
    grid-column: 5 / 7;
    grid-row: 4 / 4;
    align-self: flex-end;
    height: 100%;
    max-height: 175px;
    justify-self: end;
    font-size: clamp(6pt, 1.6vw, 10pt); 
    display: flex;
    flex-direction: column; 
    gap: 1.6rem;
    width: 30vw;
    max-width: 450px;
    transition: 0.6s cubic-bezier(0.345, 0, 0, 1);
    z-index: 1 !important;
    clip-path: inset(0 100% 0 0);
    -webkit-clip-path: inset(0 100% 0 0);
    transition: clip-path 1.6s cubic-bezier(0.275, 0.82, 0.165, 1), -webkit-clip-path 1.6s cubic-bezier(0.275, 0.82, 0.165, 1);
}

.info-details .title{
    padding-block: 0.2rem;
    font-size: clamp(6pt, 1.6vw, 10pt) !important; 
}

.info-details a{
    text-decoration: none;
    color: var(--black);
}

.coffee{
    border-top: 0.5px solid var(--black);
    margin-top: auto !important;
}

.details--column{
    display: flex;
    flex-direction: column;
    height: 100%;
}

.info-details.revealed {
    clip-path: inset(0 0 0 0);
    -webkit-clip-path: inset(0 0 0 0); 
}


/* header details */



.header-details{
    grid-column: 5 / 7;
    grid-row: 2 / 2;
    justify-self: end;
    justify-content: space-between;
    font-size: clamp(6pt, 1.6vw, 10pt); 
    display: flex;
    flex-direction: column; 
    gap: 0.6rem;
    width: 30vw;
    max-width: 450px;
    height: 100%;
    transition: 0.6s cubic-bezier(0.345, 0, 0, 1);
}

.header-details .title{
    padding-block: 0.2rem;
    font-size: clamp(10pt, 1.6vw, 10pt) !important; 
}

.header-details a{
    text-decoration: none;
    color: var(--black); 
} 

.details--column .details--row:not(.excluded, .coffee)::before{
    content: '';
    position: absolute;
    bottom: -1.5px; /* Adjust this to place the line closer to the text */
    left: 0;
    width: 0;
    height: 0.5px; /* Adjust the thickness of the underline */
    background-color: var(--black); /* Use your preferred color */
    transition: 1.6s cubic-bezier(0.345, 0, 0, 1);
} 

.details--column:hover .details--row:not(.excluded)::before{
    width: 100%; 
    transition: 0.6s cubic-bezier(0.345, 0, 0, 1);
}

.details--row{
    position: relative;
    display: flex;
    width: 100%;
    justify-content: space-between; 
    padding-block: 0.2rem; 
    transition: 0.6s cubic-bezier(0.345, 0, 0, 1);
}

.details--row:hover{
    width: 98%;
    transition: 0.6s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.details--row svg{
    translate: 0 4px;
    transition: 0.6s cubic-bezier(0.345, 0, 0, 1);
}

.details--row:hover svg{
    opacity: 0.2 !important; 
    transition: 0.6s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.details--row:hover .inline{
    gap: 0.8rem !important;
}

.inline{
    justify-content: flex-start !important;
    gap: 0.6rem;
}

.details--link:hover .details--text{
    opacity: 0.2 !important; 
    transition: 0.6s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.details--text{
    transition: 0.6s cubic-bezier(0.345, 0, 0, 1);
}


/* info */

.info-section {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    max-width: 800px;
    /* Existing styles */
    position: absolute;
    grid-column: 1 / 4;
    grid-row: 3 / 5;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 1;
    border-bottom: 0px solid rgba(0, 0, 0, 0);
    clip-path: inset(0 100% 0 0); /* Start fully clipped */
    -webkit-clip-path: inset(0 100% 0 0); /* For Safari */
    transition: clip-path 2s cubic-bezier(0.275, 0.82, 0.165, 1), 
                -webkit-clip-path 2s cubic-bezier(0.275, 0.82, 0.165, 1);
    z-index: 1; /* Ensure it's above other content */
    font-size: clamp(6pt, 1.6vw, 10pt); 
}

.info-section.revealed {
    clip-path: inset(0 0 0 0); /* Reveal content */
    -webkit-clip-path: inset(0 0 0 0); /* For Safari */
}

.info-container{
    display: flex;
    gap: 1.6rem; 
}
.info-column{
    width: 30vw;
    max-width: 450px;
}

.info-column p{
    width: 30vw;
    max-width: 350px;
}




/* projects */

.concealed {
    grid-column: 1 / 7; /* Span all columns */
    grid-row: 1 / -1;    /* Span all rows if necessary */
    position: absolute;  /* Position it absolutely within the site-wrapper */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    opacity: 1;
    border-bottom: 0px solid rgba(0, 0, 0, 0);
    translate: 0% -75%;
    transition: translate 2s cubic-bezier(0.25, 0.99, 0.2, 1), border-bottom 1s cubic-bezier(0.075, 0.82, 0.165, 1),     background-color 2.2s cubic-bezier(0.075, 0.82, 0.165, 1) !important;
} 

/* When toggled, adjust opacity and transform */
.concealed-toggle {
    translate: 0% 0%;
    /* border-bottom: 0.5px solid rgba(0, 0, 0, 1); */
}

.selected-works {
    width: 100%;
    height: 100%;
    grid-column: span 4;
    grid-row: 3 / 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    display: flex;
    gap: 1.6rem;
    max-width: 1000px;
    z-index: 0;
    transition: 0.6s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.projects{
    display: flex;
    flex-direction: column;
    height: 100%;
}

.projects a{
    text-decoration: none;
    color: var(--black);
}

#projects-item{ 
    width: 100%;
    display: flex;
    justify-content: space-between;
    height: 100px;
    transition: 0.6s cubic-bezier(0.345, 0, 0, 1);
}

#projects-item .number{
    font-size: clamp(12pt, 0.5vw, 14pt) !important;
    opacity: 0.4;
    translate: 0 1rem;
}

#projects-item .name{
    font-size: clamp(40pt, 5.25vw, 54pt) !important;
    font-weight: 800; 
    width: 50%;
    align-self: center;
    translate: 0 -6px;
}

#projects-item .info{
    display: flex;
    flex-direction: column;
    padding-top: 1.6rem;
    gap: 0.25rem;
    opacity: 0.4; 
    font-size: clamp(12pt, 0.5vw, 14pt) !important;
    width: 30%;
}

#projects-item svg{
    translate: 0 1rem;
    width: 5%;
}

.archive{
    margin-top: auto;
}

.archive .number{
    font-weight: 900;
    opacity: 0 !important;
}

.archive .name{
    display: flex;
}

.archive .total{
    font-weight: 900;
    opacity: 1 !important;
    font-size: 40%;
    translate: 5% 10%;
}

.archive:hover .name{
    text-decoration: underline;
}

.archive:hover .total{
    text-decoration: underline;
}

.active{
    opacity: 1 !important;
}


/* project image */

.image-container{
    grid-column: 5 / 7;
    grid-row: 3 / 5;
    /* outline: 0.5px solid var(--black); */
    justify-self: end;
    max-height: 400px;
    width: 30vw;
    max-width: 450px;
    z-index: 2;
    overflow: hidden;
}

.image-preview {
    height: 100%;
    max-height: 400px;
    width: 0%;
    max-width: 450px;
    position: relative;
    transition: 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
    transition: 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-image.shown {
    opacity: 1 !important;
    width: 450px !important;
    transition: width 1.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 1.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.info-image {
    width: 100%;
    height: 40vh;
    background-size: cover;
    background-position: center;
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
    transition: 1.8s cubic-bezier(0.275, 0.82, 0.165, 1);
}

.info-image.shown {
    opacity: 1 !important;
    width: 450px !important;
    transition: width 1.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 1.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}











/* project pages */

#project-title{
    display: flex;
    font-size: clamp(40pt, 5.25vw, 54pt) !important;
    font-weight: 800; 
    gap: 0.6rem;
}

#project-title .finalist{
    display: flex;
    gap: 0.2rem;
}

#project-title .finalist svg{
    width: clamp(32px, 4.5vw, 48px);
    translate: 0 -5px;
}


#project .details--column{
    justify-content: flex-end;
}

#project .header-info{
    justify-content: space-between;
}

#project .gap{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#project .info-container{
    font-size: clamp(6pt, 1.6vw, 10pt); 
}




.project-image--mobile{
    display: none;
}

.info-image--mobile-container{
    display: none;
}

.contact--mobile{
    display: none;   
}






@media screen and (width <= 1200px) {

    .site-wrapper{
        padding-inline: 0.8rem;
        grid-template-columns: 0.6fr 0.5fr;
        grid-template-rows: 0.03fr 0.15fr 0.7fr auto; 
    }

    .selected-works{
        grid-column: 1 / 7;
        max-width: 100%;
        margin-top: 10px;
    }

    .image-container{
        display: none;
    }

    .project-image--mobile{
        display: block;
        width: 15%;
        height: 80px;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }

    #projects-item{ 
        width: 100%;
        display: flex;
        justify-content: space-between;
        height: 100px;
        transition: 0.6s cubic-bezier(0.345, 0, 0, 1);
    }

    #projects-item .number{
        width: 3%;
    }

    #projects-item .name{
        width: 45vw;
    }

    .expanded{
        width: 100% !important;
        scale: 1.005;
        transform: translate(0, 0);
    }

    .details--column .details--row{
        border-bottom: 0.5px solid var(--black);
    }
    
    .details--column:hover .details--row:not(.excluded)::before{
        width: 0%; 
        transition: 0.6s cubic-bezier(0.345, 0, 0, 1);
    }

    .header-info{
        grid-column: 1 / 2;
        width: 100%;
        max-width: 100%;
    }

    .header-info p{
        width: 100%;
        max-width: 300px;
    }

    .header-details{
        grid-column: 2 / 7;
        grid-row: 2 / 2;
        width: 100%;
        max-width: 100%;
    }

    .info-details{
        grid-column: 2 / 7;
        width: 100%;
        max-width: 100%;
    }

    .info-section{
        grid-column: 1 / 2;
        grid-row: 3 / 5;
    }

    .info-container{
        flex-direction: column;
    }

    .info-column{
        width: 100%;
        max-width: 100%;
    }

    .info-column p{
        width: 100%;
        max-width: 100%;
    }

    .info-image--mobile-container{
        display: initial;
        grid-column: 2 / 7;
        grid-row: 3 / 4;
        /* outline: 0.5px solid var(--black); */
        justify-self: end;
        max-height: 100%;
        width: 100%;
        z-index: 2;
        overflow: hidden;
    }

    .info-image--mobile-container2{
        height: 100%;
        max-height: 100%;
        width: 0%;
        max-width: 450px;
        position: relative;
        transition: 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .info-image--mobile{
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        opacity: 1;
        position: absolute;
        top: 0;
        left: 0;
        transition: 1.8s cubic-bezier(0.275, 0.82, 0.165, 1);
    }

    .info-image--mobile.shown {
        opacity: 1 !important;
        width: 50vw !important;
        transition: width 1.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 1.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    }








}

@media screen and (width <= 750px) {

    .fit-content{
        max-height: 1000px;
        transition: 1.8s cubic-bezier(0.275, 0.82, 0.165, 1);
        max-height: 100vh;
    }

    html{
        overflow: scroll;
    }

    .navigation{
        grid-column: span 1;
        border-bottom: 0.5px solid var(--black) !important;
        font-size: clamp(10pt, 1.6vw, 14pt); 
        height: 12px !important;
        padding-bottom: 1.2rem;
    }

    .navigation svg{
        width: 14px;
    }

    .info-toggle{
        height: 14px;
    }
    
    body{
        height: 100%;
    }

    .site-wrapper{
        padding: 0.6rem;
        grid-template-columns: 100%;
        grid-template-rows: auto;
        height: 100%;
        gap: 1rem;
    }

    .header-info{
        gap: 0;
    }

    .header-info p{
        max-width: 275px;
    }

    .header-info, .header-details, .info-details{
        font-size: clamp(10pt, 1.6vw, 14pt); 
        grid-column: 1 / 1; /* Span across only one column */
        grid-row: auto;
        gap: 0.8rem;
    }

    .header-info{
        gap: 0;
    }

    .header-info .pangaia{
        font-size: clamp(10pt, 1.6vw, 14pt); 
    }

    .selected-works{
        grid-column: 1 / 1; /* Force content into one column */
        grid-row: auto;
        gap: 0 !important;
        margin-top: -0.6rem;
    }

    .projects{
        gap: 1.6rem;
    }

    #projects-item{
        flex-direction: column;
        height: 100%;
    }

    .selected-works .title{
        font-size: clamp(10pt, 1.6vw, 14pt) !important;
    }

    #projects-item .number{
        width: fit-content;
        font-size: clamp(10pt, 1.6vw, 14pt) !important;
    }

    #projects-item .name{
        font-size: clamp(40px, 5.25vw, 54pt) !important;
        width: 100%;
        translate: 6% -6px;
    }

    #projects-item .info{
        display: flex;
        flex-direction: row !important;
        width: 100%;
        translate: 6% -6px;
        gap: 0.6rem;
        padding-top: 0;
        font-size: clamp(10pt, 1.6vw, 14pt) !important;
    }

    #projects-item svg{
        justify-self: flex-end;
        align-self: end;
        translate: 0 -60px; 
        width: 10px;
    }

    #projects-container{
        gap: 0;
    }

    .project-image--mobile{
        width: 100%;
        height: 300px;
        translate: 0 -10px;
    }

    .concealed{
        height: 100vh;
        width: 100vw;
        position: fixed;
        translate: 0 -100vh;
    }

    .concealed-toggle{
        translate: 0 0 !important;
    }

    .concealed-toggle > .site-wrapper{
        height: 100%;
    }

    .contact--mobile{
        display: block;
        padding-top: 2.6rem;
        padding-bottom: 1.6rem;
    }

    .info-image--mobile-container {
        position: absolute;
        grid-column: 1 / 1;
        grid-row: 4;
        /* outline: 0.5px solid var(--black); */
        max-height: 100%;
        width: 100%;
        height: 100%;
        z-index: 2;
        overflow: hidden;
        display: none;
    }



    .info-section{
        grid-row: auto;
        grid-column: 1 / 1;
        font-size: clamp(8pt, 1.6vw, 14pt) !important;
        height: 0;
        opacity: 0;
        gap: 0.3rem;
        clip-path: inset(0 0 100% 0); /* Start fully clipped */
        -webkit-clip-path: inset(0 0 100% 0); /* For Safari */
        transition: clip-path 1.6s cubic-bezier(0.275, 0.82, 0.165, 1), 
                    -webkit-clip-path 1.6s cubic-bezier(0.275, 0.82, 0.165, 1);
    }

    .info-section.revealed{
        position: relative;
        height: 100%;
        opacity: 1 !important;
        clip-path: inset(0 0 0 0); /* Reveal content */
        -webkit-clip-path: inset(0 0 0 0); /* For Safari */
    }

    .info-section .info-container{
        gap: 0.2rem;
    }

    .info-section .title{
        font-size: clamp(10pt, 1.6vw, 14pt) !important;
    }

    .coffee{
        border-top: none;
    }

    .info-details{
        grid-row: auto;
        grid-column: 1 / 1;
        height: 0;
        opacity: 0;
        gap: 0 !important;
        clip-path: inset(0 0 100% 0); /* Start fully clipped */
        -webkit-clip-path: inset(0 0 100% 0); /* For Safari */
        transition: clip-path 1.6s cubic-bezier(0.275, 0.82, 0.165, 1), 
                    -webkit-clip-path 1.6s cubic-bezier(0.275, 0.82, 0.165, 1);
    }

    .info-details svg{
        height: clamp(7px, 100%, 1.8vw);
        translate: 0 1px;
    }

    .info-details.revealed{
        position: relative;
        height: 100%;
        opacity: 1 !important;
        clip-path: inset(0 0 0 0); /* Reveal content */
        -webkit-clip-path: inset(0 0 0 0); /* For Safari */
    }


}


@media screen and (height <= 850px) {

    html{
        overflow: scroll !important;
    }

    .site-wrapper{
        height: 100%;
    }

    body{
        height: 100%;
    }

    .site-wrapper{
        grid-template-rows: auto;
        height: 100%;
    }

    .concealed{
        height: 100vh;
        width: 100vw;
    }

    .archive{
        margin-top: 40px;
    }

}

.stop-scroll{
    overflow: hidden !important;
}