.site-header .header-inner {
    border: 1px solid transparent;
    border-radius: 0;
    transition:
        height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        background-color 0.32s ease,
        border-color 0.32s ease,
        border-radius 0.32s ease,
        box-shadow 0.32s ease;
}

.site-header.scrolled,
.site-header.scrolled.is-stuck {
    background: transparent;
    border-top: 0;
    border-bottom: 0;
    box-shadow: none;
    padding: 8px 0;
}

.site-header.scrolled:has(.header-search:not([hidden])) {
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
}

.site-header.scrolled .header-inner {
    height: 54px;
    padding: 0 16px;
    border-radius: var(--radius-md, 16px);
    border-color: rgba(32, 60, 62, 0.1);
    background-color: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    box-shadow:
        0 10px 28px rgba(20, 30, 26, 0.14),
        0 2px 6px rgba(20, 30, 26, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.site-header.scrolled .header-search {
    background: transparent;
    border-top: 0;
    box-shadow: none;
    padding-bottom: 8px;
}

.site-header.scrolled .header-search-box {
    margin-top: 10px;
    padding: 0 16px;
    border-radius: var(--radius-lg, 16px);
    border: 1px solid rgba(32, 60, 62, 0.1);
    background-color: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    box-shadow:
        0 10px 28px rgba(20, 30, 26, 0.14),
        0 2px 6px rgba(20, 30, 26, 0.06);
}

@media (max-width: 768px) {
    .site-header.scrolled,
    .site-header.scrolled.is-stuck {
        padding: 6px 0;
    }
    .site-header.scrolled .header-inner {
        height: 50px;
        padding: 0 12px;
        border-radius: var(--radius-md, 12px);
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .site-header.scrolled,
    .site-header.scrolled.is-stuck {
        padding: 10px 0;
        margin-bottom: -72px;
    }
    .site-header.scrolled .header-inner {
        height: 54px;
    }
}

@media (min-width: 1201px) {
    .site-header.scrolled,
    .site-header.scrolled.is-stuck {
        padding: 14px 0;
        margin-bottom: -84px;
    }
    .site-header.scrolled .header-inner {
        height: 58px;
        padding: 0 20px;
        border-radius: var(--radius-md, 20px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header .header-inner {
        transition: none;
    }
}

.site-header.scrolled .mobile-menu-overlay {
    top: calc(var(--adn-drawer-top, 60px) + 2px);
    right: 24px;
    left: auto;
    width: calc(100% - 48px);
    max-width: 420px;
    height: auto;
    max-height: calc(100dvh - var(--adn-drawer-top, 60px) - 22px);
    border: 1px solid rgba(32, 60, 62, 0.1);
    border-radius: var(--radius-xl, 20px);
    box-shadow:
        0 24px 48px rgba(20, 30, 26, 0.22),
        0 4px 12px rgba(20, 30, 26, 0.08);
}

body.nav-open:has(.site-header.scrolled)::after {
    inset: 0;
}

@media (max-width: 768px) {
    .site-header.scrolled .mobile-menu-overlay {
        right: 16px;
        width: calc(100% - 32px);
        border-radius: var(--radius-lg, 16px);
    }
}

@media (max-width: 480px) {
    .site-header.scrolled .mobile-menu-overlay {
        right: 12px;
        width: calc(100% - 24px);
    }
}
