body.menu-open {
    overflow: hidden;
}

.skip-link {
    position: fixed;
    z-index: calc(var(--z-header) + 1);
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: var(--color-ink);
    background: var(--color-white);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: var(--z-header);
}

.header-inner {
    display: flex;
    width: min(var(--container-2xl), calc(100% - (var(--page-gutter) * 2)));
    height: 100px;
    margin: 0 auto;
    align-items: center;
    justify-content: flex-start;
}

.brand {
    flex: 0 0 auto;
}

.brand img {
    width: 197px;
    height: 61px;
    object-fit: contain;
}

.main-navigation {
    position: relative;
    top: 2px;
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 0;
    color: var(--color-white);
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0px;
    white-space: nowrap;
}

.main-navigation a {
    position: relative;
    padding: 14px 0;
    opacity: 0.96;
    transition: opacity 160ms var(--ease-standard);
}

.main-navigation a:hover,
.main-navigation a:focus-visible,
.main-navigation a.active {
    opacity: 1;
}

.main-navigation a.active {
    font-weight: 500;
}

.main-navigation a:first-child {
    font-weight: 700;
}

.main-navigation a:nth-child(2) {
    margin-left: 37px;
}

.main-navigation a:nth-child(3) {
    margin-left: 37px;
}

.main-navigation a:nth-child(4) {
    margin-left: 38px;
}

.main-navigation a:nth-child(5) {
    margin-left: 44px;
}

.main-navigation a:nth-child(6) {
    margin-left: 40px;
}

.main-navigation a:nth-child(7) {
    margin-left: 40px;
}

.main-navigation a:nth-child(8) {
    margin-left: 41px;
}

.main-navigation a::after {
    position: absolute;
    right: 50%;
    bottom: 7px;
    left: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.82);
    content: "";
    transition: right 160ms var(--ease-standard), left 160ms var(--ease-standard);
}

.main-navigation a:hover::after,
.main-navigation a:focus-visible::after {
    right: 0;
    left: 0;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 0;
    color: var(--color-white);
    background: transparent;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 6px 0;
    background: currentColor;
    transition: transform 180ms var(--ease-standard), opacity 180ms var(--ease-standard);
}

@media (max-width: 1380px) {
    .brand img {
        width: clamp(170px, calc(20.93vw - 91.86px), 197px);
        height: auto;
    }

    .main-navigation {
        margin-left: auto;
        gap: clamp(27px, calc(7.752vw - 69.98px), 37px);
        font-size: clamp(16px, calc(3.101vw - 22.79px), 20px);
    }

    .main-navigation a:nth-child(n + 2) {
        margin-left: 0;
    }
}

@media (max-width: 1250px) {
    .header-inner {
        height: 92px;
    }

    .brand img {
        width: 158px;
    }

    .menu-toggle {
        position: relative;
        z-index: calc(var(--z-header) + 2);
        display: block;
        margin-left: auto;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .main-navigation {
        position: fixed;
        inset: 0;
        z-index: calc(var(--z-header) + 1);
        margin: 0;
        padding: 110px 32px 48px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 7px;
        color: var(--color-white);
        background: rgba(4, 16, 28, 0.98);
        font-size: 25px;
        line-height: 30px;
        transform: translateX(100%);
        transition: transform 240ms var(--ease-standard);
    }

    .main-navigation.open {
        transform: translateX(0);
    }

    .main-navigation a {
        width: 100%;
        padding: 8px 0;
    }

    .main-navigation a::after {
        display: none;
    }
}

@media (max-width: 600px) {
    .header-inner {
        height: 82px;
    }

    .brand img {
        width: 139px;
    }
}
