.at-menu-btn {
    display: none;
    flex: none;
    align-items: center;
    justify-content: flex-end;
    min-width: 44px;
    min-height: 44px;
    margin: -.4rem 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    line-height: 1;
}

@media (max-width: 767px) {
    #main-header,
    .ti-header,
    .about-header {
        padding-top: env(safe-area-inset-top);
    }

    #main-header h1,
    .ti-bar > a,
    .about-name {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 4.75rem);
    }

    #main-header h1 { white-space: normal; }

    .at-nav-collapsed { display: none !important; }

    .ti-scroll,
    .ti-rail { display: none !important; }
    .ti-project .ti-scroll,
    .main-hero-section .ti-scroll { display: block !important; }

    .at-menu-btn { display: flex; }
}

.at-menu-panel {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: calc(1.35rem + env(safe-area-inset-top)) 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
    background: #111;
    color: #f0f0f0;
}

.at-menu-panel[hidden] { display: none !important; }

.at-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 44px;
}

.at-menu-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.02em;
    text-transform: uppercase;
    line-height: 1;
}

.at-menu-close {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.at-menu-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 11vh;
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: .88;
    text-transform: uppercase;
}

.at-menu-list a,
.at-menu-list button {
    display: block;
    width: 100%;
    margin: 0;
    padding: .42rem 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-align: left;
    text-decoration: none;
    text-transform: inherit;
    font-size: clamp(2.35rem, 11.5vw, 3.6rem);
}

html.at-menu-open,
html.at-menu-open body { overflow: hidden; }
