/* ─── HEADER ─────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    z-index: 20;
    inset: 0 0 auto 0;
    height: 90px;
    display: grid;
    grid-template-columns: 220px 1fr 160px;
    align-items: center;
    padding: 0 clamp(22px, 4vw, 64px);
    border-bottom: 1px solid transparent;
    background: transparent;
}

.site-header.scrolled {
    background: linear-gradient(180deg, rgba(9, 11, 14, .92), rgba(9, 11, 14, .72));
    backdrop-filter: blur(18px);
    border-bottom-color: rgba(224, 232, 238, .075);
}

.brand-logo {
    height: 64px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1) opacity(0.55);
}

.site-header.scrolled .brand-logo {
    filter: brightness(0) invert(1) opacity(0.85);
}

.nav {
    justify-self: center;
    display: flex;
    gap: clamp(18px, 3vw, 48px);
    color: rgba(237, 241, 243, .72);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 300;
}

.nav a {
    padding: 27px 0 23px;
    border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a.active {
    color: var(--text);
    border-color: var(--accent);
}

.social {
    justify-self: end;
    display: flex;
    gap: 18px;
    color: rgba(237, 241, 243, .68);
    font-size: 12px;
    letter-spacing: .1em;
    font-weight: 300;
}

.social a {
    display: flex;
    align-items: center;
    color: rgba(237, 241, 243, .68);
    transition: color .2s;
}

.social a:hover {
    color: var(--accent);
}

.mobile-menu {
    display: none;
    justify-self: end;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    border-radius: 999px;
    cursor: pointer;
}

.mobile-menu span:not(.sr-only) {
    display: block;
    width: 15px;
    height: 1px;
    margin: 5px auto;
    background: currentColor;
}

.mobile-nav {
    display: none;
}

/* ─── FOOTER SOCIAL ───────────────────────────────────────────── */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 32px clamp(22px, 4vw, 64px);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.footer-social a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dim);
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 300;
    transition: color .2s;
}

.footer-social a:hover {
    color: var(--accent);
}

/* ─── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
    max-width: var(--max);
    margin: 0 auto;
    padding: 24px clamp(22px, 4vw, 64px) 44px;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 24px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-left span {
    color: var(--dim);
    font-size: 12px;
    font-weight: 300;
}

.footer-copy {
    color: var(--dim);
    font-size: 11px;
    opacity: .6;
}

.footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-nav a {
    color: var(--dim);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 300;
}

.footer-nav a:hover {
    color: var(--accent);
}

/* ─── PAGE OFFSET ─────────────────────────────────────────────── */
/* .page {
    padding-top: 90px;
} */

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 820px) {
    .site-header {
        height: 74px;
        grid-template-columns: 1fr auto;
    }

    .site-header.scrolled {
        height: 60px;
    }

    .brand-logo {
        height: 36px;
    }

    .site-header.scrolled .brand-logo {
        height: 24px;
    }

    .nav,
    .social {
        display: none;
    }

    .mobile-menu {
        display: inline-grid;
        place-items: center;
    }

    .mobile-nav {
        position: fixed;
        z-index: 19;
        inset: 68px 0 auto 0;
        display: grid;
        gap: 0;
        padding: 16px clamp(22px, 4vw, 64px) 24px;
        background: rgba(9, 11, 14, .97);
        border-bottom: 1px solid var(--line);
        transform: translateY(-120%);
        transition: transform .2s ease;
    }

    body.menu-open .mobile-nav {
        transform: translateY(0);
    }

    .mobile-nav a {
        padding: 15px 0;
        border-bottom: 1px solid var(--line-soft);
        color: var(--muted);
        font-size: 11px;
        letter-spacing: .18em;
        text-transform: uppercase;
    }

    .page {
        padding-top: 68px;
    }

    .footer-social {
        gap: 28px;
    }

    .site-footer {
        flex-direction: column;
        gap: 16px;
    }

    .footer-nav {
        justify-content: flex-start;
    }
}