:root {
    --bm: .4rem;
    --fs: 2.5rem;
    --easing: cubic-bezier(0.4, 0, 0.2, 1);

    --u-offset: 0.15em;
    --u-thickness: .5px;
    --u-color: currentColor;
    --u-style: solid;

    --mb-fs: .9rem;
    --menu-width: 70vw;
}

@media (width < 968px) {
    :root {
        --fs: 1.8rem;
        --mb-fs: 1rem;
        --menu-width: 100vw;
    }

}

::selection {
    background-color: black;
    color: rgba(0, 0, 0, 0.986);
}

/* @view-transition {
    navigation: auto;
}



header {
    view-transition-name: none;
}

main {
    view-transition-name: content;
}

@keyframes move-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;

    }
}

@keyframes move-in {
    from {

        opacity: 0;

    }

    to {
        opacity: 1;

    }
}


::view-transition-old(content) {
    animation: .6s ease-in both move-out;
}

::view-transition-new(content) {
    animation: .6s ease-in both move-in;
}

 */
body {
    font-family: "Futura";


    margin: var(--bm);
}

.futura {
    font-family: "Futura";
    letter-spacing: .3px;
    font-variation-settings:
        "wght" 400;

    >* {
        font-variant-numeric: oldstyle-nums;
    }
}

header:has(nav>ul.hovered)+* {
    opacity: 0.1;
    scale: .98;



}

header {
    transition: opacity 0.3s ease;
    line-height: 1.5;


    figure {
        position: fixed;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.3s ease;
        pointer-events: none;

        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 200;
        pointer-events: none;

        picture.nav-picture img {
            width: 80vw;
            max-height: 60vh;
            opacity: 0;
            height: auto;
            object-fit: contain;
            transition: all 0.1s ease-in-out;
        }

        picture.is-visible img {
            opacity: 1 !important;
            scale: 1 !important;
        }
    }
}

main {
    transition: all 0.3s ease;
}

p {
    line-height: 1.3em;
    word-spacing: -2px;

    letter-spacing: -0.6px;
    max-width: 1500px;

    &::first-letter {
        /* font-size: 2em;
        font-weight: bold;
        background-color: black;
        color: white;
        aspect-ratio: 1/1;
        padding: 1rem;
        font-family: MetroBlack LT Two; */
    }
}

a:hover,
button:hover {
    text-decoration-line: underline !important;
    text-decoration-thickness: var(--u-thickness);
    text-underline-offset: var(--u-offset);
    text-decoration-color: var(--u-color);
    text-decoration-style: var(--u-style);
}

header {
    position: fixed;
    display: flex;

    bottom: 0;
    gap: 0;
    flex-direction: column;
    width: calc(var(--menu-width) - var(--bm) * 2);
    z-index: 200;
    font-size: var(--mb-fs);
    text-transform: lowercase;
    font-family: "Futura";
    letter-spacing: .3px;


}

button {
    font-family: "Futura";

}

nav {




    margin: auto;
    width: calc(var(--menu-width) - var(--bm) * 2);
    padding-bottom: calc(var(--bm) * 4);
    bottom: 0;

    text-transform: lowercase;
    z-index: 200;
    display: flex;
    justify-content: space-around;
}

ul {
    line-height: 2.2ch;
    list-style-type: none;
    width: 100%;


    margin: auto;
    margin-left: 0;


    li {
        transition: all .3s ease;
        text-align: center;
    }

    div.nav {
        height: 0em;
        pointer-events: none;
        opacity: 0;
        transition: all 0.4s var(--easing);
    }
}

a {
    text-decoration: none;
    color: rgb(0, 0, 0);
}

header>*:has(.hovered) {
    font-variation-settings:
        "wght" 500;
}

ul.hovered div.nav {
    height: 4lh;
    transition: all 0.3s ease-in-out;
    opacity: 1;
    pointer-events: all;
}

div.nav li a:hover {
    text-decoration-line: underline !important;
    text-decoration-thickness: var(--u-thickness);
    text-underline-offset: var(--u-offset);
    text-decoration-color: var(--u-color);
    text-decoration-style: var(--u-style);
}

input {
    display: none;
}

.projects ul,
.commissioned ul {
    width: 100%;
    mask: linear-gradient(90deg, rgb(255, 255, 255) 90%, rgba(255, 255, 255, 0) 100%);
    margin: 0;
    padding: 0;
    padding-left: 50%;
}

.projects,
.commissioned {
    ul {}

    ul li {
        flex-shrink: 0;
        white-space: nowrap;

        a {
            line-height: 1.4;
            height: auto;
            display: block;
        }
    }
}

li.projects,
li.commissioned {
    position: relative;

    height: 1lh;

    label:hover {
        text-decoration: underline !important;
        cursor: pointer;
        text-decoration-thickness: var(--u-thickness);
        text-underline-offset: var(--u-offset);
        text-decoration-color: var(--u-color);
        text-decoration-style: var(--u-style);
    }
}



input~ul {
    opacity: 0;
    gap: 1rem;
    width: 100vw;
    height: 1em;
    transform: translate(0, 1em);
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: row;
    transition: all 0.3s ease;
    pointer-events: none;
    overflow: auto;

    li {}
}

input:not(:checked)~ul.hovered {
    opacity: 0;
}

input:checked~ul,
.projects ul:checked,
.commissioned ul:checked {
    transform: translate(0, 0);
    /* position: relative; */
    height: auto;
    opacity: 1;
    /* width: fit-content; */
    height: 1.1lh;
    z-index: 100;
    pointer-events: all;
    margin: auto;
    ;
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    /* Firefox, Safari 18.2+, Chromium 121+ */
    /* Firefox */
    scrollbar-color: #00000000 transparent;

    li {

        z-index: 2000;
        /* position: relative; */
    }


}

ul::-webkit-scrollbar {
    height: 3px;

}

ul::-webkit-scrollbar-track {
    background: transparent;
}

ul::-webkit-scrollbar-thumb {
    background: #0000002f;
    border-radius: 999px;
}

ul::-webkit-scrollbar-thumb:hover {
    background: #ffffff6d;
}








li.last,
li.above {
    position: relative;
    z-index: 2;
}

input+label {
    position: absolute;
    left: 50%;
    transform: translate(-50%);

    /* transition: all 0.3s ease; */
    top: 0;
}

ul.hovered {
    opacity: 1;
}

input:checked+label,
label:has(+ ul:checked) {
    transform: translate(-50%, -1em);
    opacity: 0;
    z-index: 1;
    height: 100%;
    pointer-events: none;
}

li ul li:hover {
    text-decoration: underline !important;
    cursor: pointer;
    text-decoration-thickness: var(--u-thickness);
    text-underline-offset: var(--u-offset);
    text-decoration-color: var(--u-color);
    text-decoration-style: var(--u-style);
}

.related {}



section.list.hidden {
    display: none;
}




@media (width < 968px) {
    main {

        p,
        a {
            font-size: 7vw;
        }
    }

    nav>li:active {
        scale: .9;
    }

    .projects.active {
        scale: 1;
    }

}


.project-informations {

    text-align: center;
    pointer-events: none;

    width: 100%;
    transition: all 0.3s ease;


    font-size: var(--mb-fs);
    align-self: flex-end;
    margin: 0;
    height: 0;
    margin-bottom: .9lh;

    h1 {
        pointer-events: none;
        height: 0;

    }

    width: 100%;


}

.project-informations:has(+nav>ul.hovered) {
    font-variation-settings: "wght" 600;

}