/* NAVBAR  */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 300ms var(--ease), border-color 300ms var(--ease), backdrop-filter 300ms var(--ease);
    border-bottom: 1px solid transparent
}

.navbar.scrolled {
    background: rgba(10, 10, 10, .9);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom-color: var(--fog)
}

.nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--px);
    height: 72px;
    display: flex;
    align-items: center;
    gap: 32px
}

.nav-logo {
    font-family: var(--f-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .14em;
    color: var(--white);
    text-transform: uppercase;
    flex-shrink: 0
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-left: auto
}

.nav-link {
    font-family: var(--f-body);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--white);
    position: relative;
    padding-bottom: 2px;
    transition: color 150ms ease
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 250ms var(--ease)
}

.nav-link:hover {
    color: var(--white)
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%
}

.nav-link.active {
    color: var(--accent)
}

.nav-cta {
    margin-left: 16px
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    margin-left: auto
}

.bline {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--white);
    transition: transform 300ms var(--ease), opacity 300ms ease;
    transform-origin: center
}

.burger.open .bline:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg)
}

.burger.open .bline:nth-child(2) {
    opacity: 0
}

.burger.open .bline:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg)
}

/* Drawer */
.drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200
}

.drawer.open {
    display: block
}

.drawer-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(4px)
}

.drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--carbon);
    border-left: 1px solid var(--fog);
    padding: 72px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    animation: slideIn 300ms var(--ease-drama) forwards
}

@keyframes slideIn {
    from {
        transform: translateX(100%)
    }

    to {
        transform: translateX(0)
    }
}

.drawer-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 28px;
    color: var(--silver);
    line-height: 1;
    transition: color 150ms ease
}

.drawer-close:hover {
    color: var(--white)
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.drawer-links .nav-link {
    font-size: 14px;
    color: var(--cloud)
}