/* Burger button */

.burger{
    display:none;
    position:relative;
    width:44px;
    height:44px;
    align-items:center;
    justify-content:center;
    z-index:1100;
}

.burger span{
    position:absolute;
    left:10px;
    width:24px;
    height:2px;
    background:var(--text);
    border-radius:2px;
    transition:transform .35s ease, opacity .35s ease, top .35s ease;
}

.burger span:first-child{
    top:16px;
}

.burger span:last-child{
    top:26px;
}

.burger.is-active span:first-child{
    top:21px;
    transform:rotate(45deg);
}

.burger.is-active span:last-child{
    top:21px;
    transform:rotate(-45deg);
}

/* Mobile nav overlay */

.mobile-nav{
    position:fixed;
    inset:0;
    z-index:1050;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:0 32px;
    background:rgba(8,8,8,.98);
    backdrop-filter:blur(20px);
    opacity:0;
    visibility:hidden;
    transform:translateY(-12px);
    transition:opacity .4s ease, transform .4s ease, visibility 0s linear .4s;
}

.mobile-nav.is-open{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
    transition:opacity .4s ease, transform .4s ease, visibility 0s linear;
}

.mobile-nav__list{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.mobile-nav__list a{
    display:block;
    padding:18px 0;
    font-size:clamp(32px,9vw,48px);
    font-weight:600;
    letter-spacing:-.02em;
    color:var(--text);
    border-bottom:1px solid rgba(255,255,255,.06);
    transition:color .3s ease, padding-left .3s ease;
}

.mobile-nav__list a:hover,
.mobile-nav__list a:focus-visible{
    color:var(--accent);
    padding-left:12px;
}

.mobile-nav__list a.is-active{
    color:var(--accent);
}

.mobile-nav__cta{
    margin-top:40px;
    align-self:flex-start;
}

.mobile-nav__footer{
    position:absolute;
    left:32px;
    right:32px;
    bottom:40px;
    display:flex;
    justify-content:space-between;
    color:var(--gray);
    font-size:14px;
}

body.nav-open{
    overflow:hidden;
}

@media (min-width:769px){
    .mobile-nav{
        display:none;
    }
}
