/* Inter, self-hosted so no visitor data goes to Google (license: fonts/LICENSE-Inter.txt).
   Variable font: one file covers all weights. Same files and ranges Google Fonts serves. */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: white;
    color: black;
    font-family: Inter, sans-serif;
    cursor: none; 
    position: relative; 
    min-height: 100vh;
}

a, header, .project {
    cursor: none; 
}

.custom-cursor {
    width: 12px;
    height: 12px;
    background-color: white;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease-out;
}

/* --- HEADER --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    z-index: 100;
    mix-blend-mode: difference;
}

/* Project pages: the links replace the title while the header is hovered */
.nav-links {
    display: flex;
    flex-direction: row;
    gap: 40px;
    position: absolute;
    top: 30px;
    left: 50px;
    opacity: 0;
    visibility: hidden;
    transition: none; 
}

.navbar:hover .nav-links {
    opacity: 1;
    visibility: visible;
}

.navbar:hover .hover-title {
    opacity: 0;
    visibility: hidden;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 5vw;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -2px;
    text-transform: uppercase;
    transition: opacity .2s ease;
}

.nav-link:hover {
    opacity: 0.5;
}

.hover-title {
    color: white;
    font-size: 5vw;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -2px;
    text-transform: uppercase;
    pointer-events: none;
    transition: none;
}

/* Home + info: name on the left, INFO on the right, always visible */
.static-header .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
}

.static-header .hover-title {
    order: -1;
}

.static-header .nav-links,
.static-header .navbar:hover .nav-links {
    position: static;
    opacity: 1;
    visibility: visible;
}

.static-header .navbar:hover .hover-title {
    opacity: 1;
    visibility: visible;
}

.static-header .nav-link-projects {
    display: none;
}

/* On the info and project pages the name links back to the projects */
.hover-title-link {
    text-decoration: none;
    pointer-events: auto;
}

/* --- PROJECT LIST ---
   One project per screen, vertical scrolling that snaps. The list is its own
   scroller with a fixed height, so Safari's toolbar doesn't collapse and change
   the screen height mid-snap. */
.projects {
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    outline: none;
}

.projects::-webkit-scrollbar {
    display: none;
}

.project {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Desktop: the cover at full screen height in its own proportions, centered */
.project img {
    display: block;
    width: auto;
    height: 100%;
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
}

.project-label {
    position: absolute;
    left: 50px;
    right: 50px;
    bottom: 30px;
    color: white;
    mix-blend-mode: difference;
    font-size: 5vw;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -2px;
    text-transform: uppercase;
    pointer-events: none;
}

@media(max-width: 1100px) {
    body, a, header, .project {
        cursor: auto;
    }
    
    .custom-cursor {
        display: none;
    }

    .navbar {
        padding: 25px;
    }

    .nav-links {
        top: 25px;
        left: 25px;
        gap: 20px;
    }

    .hover-title, .nav-link {
        font-size: 8vw;
        letter-spacing: -1px;
    }

    /* Mobile: edge to edge, the image fills the whole screen */
    .project img {
        width: 100%;
        max-width: none;
        object-fit: cover;
    }

    .project-label {
        left: 25px;
        right: 25px;
        bottom: 25px;
        font-size: 8vw;
        letter-spacing: -1px;
    }
}
