.nav-bar {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(20px, 6vw, 68px);
    width: auto;
    min-height: 0;
    box-sizing: border-box;
    margin: clamp(24px, 5vh, 40px) auto 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: inherit;
}

.mobile-nav-toggle {
    display: none;
}

.mobile-nav-brand,
.mobile-nav-socials {
    display: none;
}

.nav-links {
    color: #FFFFFF;
    text-decoration: none;
    text-align: center;
    font-size: clamp(12px, 1.15vw, 14px);
    font-weight: 700;
    white-space: nowrap;
}

.nav-links:visited {
    color: #FFFFFF;
    text-decoration: none;
}

.nav-trigger {
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.industries-panel {
    position: absolute;
    z-index: 10;
    top: calc(100% + 45px);
    left: 50%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 48px;
    row-gap: 48px;
    width: min(900px, calc(100vw - 32px));
    box-sizing: border-box;
    padding: 58px 40px;
    border-radius: 12px;
    background-color: #EAEAEA;
    box-shadow: var(--drop-shadow);
    transform: translateX(-50%);
}

.industries-panel[hidden] {
    display: none;
}

.industry-link {
    display: flex;
    align-items: center;
    min-width: 0;
    color: #505050;
    text-decoration: none;
}

.industry-icon {
    display: grid;
    flex: 0 0 45px;
    width: 45px;
    height: 45px;
    place-items: center;
    border-radius: 8px;
    background-color: #132552;
    color: #EAEAEA;
    box-shadow: var(--drop-shadow);
}

.industry-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.industry-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-left: 14px;
}

.industry-name {
    color: #505050;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.15;
}

.industry-description {
    margin-top: 5px;
    color: #133078;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.25;
    white-space: nowrap;
}

.industry-link:focus-visible {
    outline: 3px solid #133078;
    outline-offset: 6px;
    border-radius: 4px;
}

@media (max-width: 760px) {
    .nav-bar,
    .home-hero .nav-bar,
    .about-nav .nav-bar,
    .industry-header .nav-bar,
    .contact-header .nav-bar,
    .legal-header .nav-bar {
        position: absolute;
        z-index: 100;
        top: 0;
        left: 0;
        justify-content: flex-start;
        width: auto;
        margin: 22px 0 0 20px;
    }

    .mobile-nav-toggle {
        position: relative;
        z-index: 102;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        min-height: 42px;
        padding: 9px 14px;
        border: 0;
        border-radius: 7px;
        background: #232323;
        box-shadow: var(--drop-shadow);
        color: #ffffff;
        font: inherit;
        font-size: 14px;
        font-weight: 650;
        cursor: pointer;
    }

    .mobile-nav-icon {
        display: grid;
        width: 17px;
        gap: 4px;
    }

    .mobile-nav-icon span {
        display: block;
        width: 100%;
        height: 1.5px;
        background: currentColor;
        transition: transform 180ms ease, opacity 180ms ease;
    }

    .nav-menu {
        position: fixed;
        z-index: 101;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        box-sizing: border-box;
        overflow-y: auto;
        padding: 116px 28px 30px;
        border: 0;
        border-radius: 0;
        background: #f4f3f0;
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-100%);
        transition: transform 260ms ease, opacity 180ms ease, visibility 260ms;
    }

    .nav-bar.is-open .nav-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .nav-bar.is-open .mobile-nav-toggle {
        position: fixed;
        top: 27px;
        right: 24px;
        margin: 0;
        padding: 8px;
        background: transparent;
        box-shadow: none;
        color: #171717;
    }

    .nav-bar.is-open .mobile-nav-toggle > span:first-child {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .nav-bar.is-open .mobile-nav-icon span:nth-child(1) {
        transform: translateY(5.5px) rotate(45deg);
    }

    .nav-bar.is-open .mobile-nav-icon span:nth-child(2) {
        opacity: 0;
    }

    .nav-bar.is-open .mobile-nav-icon span:nth-child(3) {
        transform: translateY(-5.5px) rotate(-45deg);
    }

    .mobile-nav-brand {
        position: absolute;
        top: 31px;
        left: 28px;
        display: block;
        color: #171717;
        font-size: 15px;
        font-weight: 750;
        text-decoration: none;
    }

    .nav-menu > .nav-links,
    .nav-menu > .nav-links:visited,
    .home-hero .nav-menu > .nav-links,
    .industry-header .nav-menu > .nav-links,
    .about-nav .nav-menu > .nav-links {
        box-sizing: border-box;
        width: 100%;
        padding: 14px 0;
        border-radius: 0;
        color: #1c1c1c !important;
        font-size: clamp(31px, 9vw, 42px);
        font-weight: 430;
        line-height: 1.05;
        text-align: left;
    }

    .nav-menu > .nav-links:hover,
    .nav-menu > .nav-links:focus-visible {
        background: transparent;
        color: #133078 !important;
    }

    .nav-home { order: 1; }
    .nav-about { order: 2; }
    .nav-industries { order: 3; }
    .industries-panel { order: 4; }
    .nav-contact { order: 5; }
    .mobile-nav-socials { order: 6; }

    .industries-panel {
        position: static;
        grid-template-columns: 1fr;
        gap: 0;
        width: 100%;
        max-height: none;
        margin: 0 0 10px;
        padding: 4px 0 8px 16px;
        border-left: 1px solid #c8c8c5;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    .industry-link {
        padding: 8px 0;
        border-radius: 0;
    }

    .industry-icon,
    .industry-description {
        display: none;
    }

    .industry-copy {
        margin-left: 0;
    }

    .industry-name {
        color: #242424;
        font-size: 18px;
        font-weight: 500;
    }

    .mobile-nav-socials {
        display: flex;
        gap: 24px;
        margin-top: auto;
        padding-top: 32px;
    }

    .mobile-nav-socials a {
        color: #777773;
        font-size: 13px;
        text-decoration: none;
    }
}
