.navbar {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 28px;
    padding-right: 24px;
}

.header {
    margin-bottom: 4px;
    color: #1d1d1fc7;
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.025em;
    text-decoration: none;
    cursor: pointer;
}

.header:active {
    text-decoration: none;
}

/* .logo-colon {
    display: inline-block;
    font-weight: 800;
    transform: translateY(-0.11em) scale(1.08);
} */

.sub-navbar {
    list-style: none;
    padding: 0;
    margin: 0;
    height: 25%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    /* background-color: #1a1a1a; */
}

.mobile-only {
    display: none;
}

.nav-link {
    text-decoration: none;
    color: #6a6a6a;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: lowercase;
    margin: 0;
    padding-left: 14px;
    position: relative;
    transition: color 0.28s ease, opacity 0.28s ease;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.nav-link.active {
    color: #1a1a1a;
}

.projects-nav {
    position: relative;
    height: fit-content;

}

.nav-link.projects-toggle {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 0;
    margin: 0;
    color: #6a6a6a;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    line-height: normal;
    text-transform: lowercase;
    line-height: 1.2;
    letter-spacing: -0.02em;
    /* background-color: red; */
}

.nav-link.projects-toggle:focus,
.nav-link.projects-toggle:focus-visible {
    outline: none;
    border: none;
    box-shadow: none;
}

.nav-link.projects-toggle .project-chevron {
    display: inline-block;
    font-size: 0.72em;
    line-height: 1.2;
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

.projects-toggle[aria-expanded="true"] .project-chevron {
    transform: rotate(180deg) translateY(-1px);
}

.projects-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: max-content;
    min-width: 0;
    text-align: right;
    z-index: 9999;
}

.projects-dropdown a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: #6a6a6a;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    letter-spacing: -0.02em;
    line-height: normal;
    text-transform: lowercase;
    white-space: nowrap;
}

.subsection2 {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mobile-name {
    display: none;
}

@media (max-width: 640px) {
    .desktop-name {
        display: none;
    }

    .mobile-name {
        display: inline;
        font-weight: 650;
        letter-spacing: -0.045em;
    }

    .header {
        font-size: clamp(2rem, 7vw, 2.75rem);
        line-height: 0.95;
        margin-bottom: 0;
    }

    .mobile-only {
        display: list-item;
    }

    .navbar {
        margin-left: auto;
        padding-right: 0;
        align-items: flex-start;
    }

    .sub-navbar {
        width: 82px;
        height: 54px;
        padding: 6px 0;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        gap: 2px;
        overflow: hidden;
        text-align: right;
    }

    .nav-link {
        display: block;
        padding-left: 0;
        font-size: 0.88rem;
        line-height: 1.05;
        color: rgba(0, 0, 0, 0.56);
        transition: color 0.28s ease, transform 0.28s ease, opacity 0.28s ease;
    }

    .nav-link.active {
        color: rgba(0, 0, 0, 0.82);
        font-weight: 600;
    }

    .nav-link.is-prev,
    .nav-link.is-next {
        color: rgba(0, 0, 0, 0.56);
        font-weight: 500;
    }

    .nav-link.is-hidden-mobile {
        display: none;
    }

    .logo-colon {
        transform: translateY(-0.12em) scale(1.12);
    }

    .subsection2 {
        height: auto;
        min-height: 100%;
        display: block;
        overflow: visible;
    }
}