header {
    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 > .container {
    width: 100%;
    max-width: var(--site-max-width);
    display: grid;
    padding: 0 var(--spacing-m);
    grid-template-columns: auto 1fr;
    align-items: center;
}

header .header-logo {
    pointer-events: auto;
    height: 100%;
    object-fit: contain;
    position: relative;
}

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

header .header-logo img.logo-scroll {
    width: auto;
    border-radius: var(--border-radius-m);
    background: white;
}

header .logo-scroll,
header .menu button.menu-toggle {
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.125);
}

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

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

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

header .menu button::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    border-radius: inherit;
}

header .menu button.cta .icon {
    filter: brightness(0) invert(1);
    margin-left: 0.5em;
    transition: all 0.5s;
}

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;
    z-index: 99;
    visibility: hidden;
    transition: all 0.5s;
    pointer-events: none;

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

#slide-menu .box-blur {
    border-radius: 0;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(16px);
    border-top: none;
    border-bottom: none;
    border-right: none;
    border-left: 3px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: -10px 0px 100px #0000001a;
}

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;
    text-decoration: none;
    padding: var(--spacing-xs) 0;
    color: var(--c-accent);
}

#slide-menu ul li a:hover {
    text-decoration: underline;
    text-underline-offset: 0.2rem;
    text-decoration-thickness: 0.09rem;
} 

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

    header .header-logo {
        width: 60px;
    }

    header .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) {
    body.scrolled header .header-logo img.logo-desktop,
    body:not(.scrolled) header .header-logo img.logo-scroll {
        visibility: hidden;
        opacity: 0;
    }

    header .header-logo {
        width: 200px;
    }

    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 .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-dark);
        font-weight: 300;
        text-decoration: underline;
        text-underline-offset: 4px;
        text-decoration-thickness: 0.075em;
        text-decoration-skip-ink: none;
    }

    header .menu ul a:not(.button):hover {
        text-decoration: none;
    }
    
    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;
    }

    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;
    }
    

    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;
    }
}