header,
.header-logo {
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: var(--spacing-s) 0;
    position: fixed;
    pointer-events: none;
}

.header-logo {
    filter: brightness(0) invert(1);
    mix-blend-mode: difference;
    height: calc(var(--fs-m) * 3);
}

.header-logo a {
    display: block;
    position: relative;
    height: 100%;
    max-width: 280px;
    pointer-events: auto;
}

.header-logo a img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center left;
}

header > .container {
    width: 100%;
    max-width: var(--site-max-width);
    display: grid;
    padding: 0 var(--spacing-m);
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 280px;
    object-position: center left;
    margin-right: auto;
}

header .menu {
    display: flex;
    justify-content: flex-end;
    font-size: var(--fs-s);
    isolation: isolate;
}

header .menu > * {
    pointer-events: auto;
}

header .menu .button.cta {
    z-index: 1;
}

header .menu .button.cta img {
    margin-left: 0.5em;
    transition: all 0.5s;
}

header .menu .menu-toggle {
    transform: translateX(calc(100% + var(--spacing-s)));
    visibility: hidden;
    pointer-events: none;
    transition: all 0.5s;
    margin-left: 0;
    max-width: 0;
    overflow: visible;
    background-color: var(--bg-bright-1);
    border: solid 1px var(--bg-bright-5);
}

header .menu .menu-toggle:hover {
    background-color: var(--bg-bright-5);
    border-color: var(--bg-dark-8);
}

body.menu-open header .menu-toggle .icon-menu,
body:not(.menu-open) header .menu-toggle .icon-close {
    display: none;
}

#slide-menu {
    position: fixed;
    top: 0;
    right: -100%;
    min-width: 40vw;
    height: 100vh;
    background-color: var(--bg-dark-2);
    z-index: 99;
    visibility: hidden;
    transition: all 0.5s;
    overflow: hidden;
    pointer-events: none;

    display: flex;
    align-items: center;
    padding: var(--spacing-l);
    font-size: var(--fs-l);
    font-weight: 700;
}

body.menu-open #slide-menu {
    right: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#slide-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#slide-menu ul li:not(:first-child) a {
    margin-top: var(--spacing-xs);
}

#slide-menu ul li a {
    display: block;
    padding: var(--spacing-xs) 0;
    text-decoration: underline;
    text-underline-offset: 0.2rem;
    text-decoration-thickness: 0.09rem;
}

#slide-menu ul li a:hover {
    text-decoration: none;
} 

@media screen and (max-width: 749px) {    
    header > .container {
        padding: 0 var(--spacing-l);
    }

    .header-logo {
        height: 73px;
    }

    .header-logo a {
        max-width: 70px;
    }

    .header-logo img.logo-desktop {
        display: none;
    }

    header .menu .button.cta {
        margin-left: 6px;
    }
    
    #slide-menu {
        min-width: 100vw;
    }
}

@media screen and (min-width: 750px) {
    .header-logo a {
        max-width: 250px;
    }

    .header-logo img.logo-mobile {
        display: none;
    }

    header .menu .button.cta {
        margin-left: var(--spacing-s);
    }

    #slide-menu {
        min-width: 60vw;
    }
}

@media screen and (max-width: 999px) {
    header .menu ul {
        display: none;
    }

    header .menu .menu-toggle {
        opacity: 1;
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        max-width: 100px;
    }
}

@media screen and (min-width: 1000px) {
    .header-logo a {
        max-width: 300px;
    }

    header .menu ul {
        list-style: none;
        display: flex;
        gap: var(--spacing-xl);
        align-items: center;
    }

    header .menu ul a {
        -stagger-base: 0.05s;
        transition: all 0.5s;
        transition-delay: var(--transition-delay);
        display: block;
    }
    
    header .menu ul a:not(.button) {
        color: var(--c-text-bright);
        font-weight: 300;   
        text-decoration: underline;
        text-underline-offset: 2px;
    }
    
    header .menu ul a.button {
        margin-left: var(--spacing-xs);
        font-weight: 300;
        z-index: 1;
    }

    body.scrolled header .menu ul a:not(.button) {
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
    }

    body.scrolled header .menu .menu-toggle {
        opacity: 1;
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        margin-left: var(--spacing-2xl);
        max-width: 100px;
    }

    body:not(.scrolled) header .menu .button.cta img {
        opacity: 0;
        width: 0;
        margin-left: 0;
    }

    #slide-menu {
        min-width: 40vw;
    }
}