.site-header {
    --pill-ease: cubic-bezier(0.65, 0, 0.35, 1);
    --pill-out: cubic-bezier(0.25, 1, 0.5, 1);
    transition: background 0.35s ease, border-color 0.35s ease;
}

.site-header::before {
    transition: opacity 0.35s ease;
}

.site-header .header-inner {
    interpolate-size: allow-keywords;
    border: 1px solid transparent;
    transition:
        width 0.38s var(--pill-ease),
        max-width 0.38s var(--pill-ease),
        height 0.28s var(--pill-ease),
        margin 0.28s var(--pill-ease),
        padding 0.28s var(--pill-ease),
        border-radius 0.38s var(--pill-ease),
        gap 0.28s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.site-header .mega-nav {
    transition: opacity 0.18s ease 0.12s, visibility 0s linear 0s;
}

.site-header.is-pill:not(.mm-open):not(.is-peek) {
    background: transparent;
    border-bottom-color: transparent;
}

.site-header.is-pill:not(.mm-open):not(.is-peek)::before {
    opacity: 0;
}

.site-header.is-pill:not(.mm-open):not(.is-peek) .mega-nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.1s ease, visibility 0s linear 0.1s;
}

@media (min-width: 821px) {
    .site-header.is-pill:not(.is-peek):not(.mm-open) .nav-burger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: var(--text);
        cursor: pointer;
    }

    .site-header.is-pill:not(.is-peek):not(.mm-open) .nav-burger:hover {
        background: color-mix(in srgb, var(--text) 6%, transparent);
    }
}

.site-header.is-pill:not(.mm-open):not(.is-peek) .brand-tagline {
    display: none;
}

.site-header.is-pill:not(.mm-open):not(.is-peek) .brand {
    --logo-cap: 96px;
}

.site-header.is-pill:not(.mm-open):not(.is-peek) .header-inner {
    width: fit-content;
    max-width: min(var(--container-w), calc(100% - 20px));
    height: 50px;
    margin-block: 6px;
    padding-inline: 12px 8px;
    gap: 14px;
    border-color: var(--border);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: 0 12px 32px -14px rgb(0 0 0 / 0.35);
    transition:
        width 0.38s var(--pill-out),
        max-width 0.38s var(--pill-out),
        height 0.28s var(--pill-out),
        margin 0.28s var(--pill-out),
        padding 0.28s var(--pill-out),
        border-radius 0.38s var(--pill-out),
        gap 0.28s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.site-header.is-pill:not(.mm-open):not(.is-peek) .hdr-locale {
    display: none;
}

@media (max-width: 820px) {
    .site-header.is-pill:not(.mm-open):not(.is-peek) .header-inner {
        margin-top: 12px;
        gap: 8px;
    }

    .site-header.is-pill:not(.mm-open):not(.is-peek) .brand {
        --logo-cap: var(--logo-cap-mobile);
    }

    .site-header .hdr-locale {
        display: none;
    }
}
