.bw-header {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: var(--bw-header);
    background: rgba(251, 245, 239, 0.88);
    border-bottom: 1px solid color-mix(in srgb, var(--bw-gold) 32%, transparent);
    backdrop-filter: blur(16px);
}

.bw-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
    width: min(100%, 88rem);
    min-height: var(--bw-header);
    margin: 0 auto;
    padding: 0.65rem var(--bw-space);
    padding-top: calc(0.65rem + env(safe-area-inset-top));
}

.bw-header__brand {
    text-align: center;
}

.bw-header__names {
    color: var(--bw-navy);
    font-family: var(--bw-font-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-decoration: none;
    text-transform: uppercase;
}

.bw-header__monogram {
    display: none;
    font-family: var(--bw-font-script);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: none;
}

.bw-header__start {
    justify-self: start;
}

.bw-header__end {
    justify-self: end;
}

.bw-music,
.bw-menu-toggle,
.bw-nav__close {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: var(--bw-touch);
    padding: 0.45rem 0.15rem;
    border: 0;
    background: transparent;
    color: var(--bw-navy);
    font-family: var(--bw-font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.bw-music.is-disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.bw-music__icon {
    font-size: 1rem;
    letter-spacing: 0;
}

.bw-menu-toggle {
    min-width: 2.5rem;
    min-height: 2.5rem;
    justify-content: flex-end;
}

.bw-menu-toggle__bars {
    display: none;
    width: 1.2rem;
    height: 0.72rem;
    position: relative;
}

.bw-menu-toggle__bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--bw-navy);
}

.bw-menu-toggle__bars span:first-child {
    top: 0.15rem;
}

.bw-menu-toggle__bars span:last-child {
    bottom: 0.15rem;
}

.bw-nav[hidden] {
    display: none;
}

.bw-nav {
    position: fixed;
    inset: 0;
    z-index: 60;
}

.bw-nav__overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 42, 71, 0.28);
}

.bw-nav__panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(100%, 28rem);
    height: 100%;
    padding: 1.5rem 1.75rem 2.5rem;
    background: var(--bw-cream);
    box-shadow: -24px 0 60px rgba(14, 42, 71, 0.12);
}

.bw-nav__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.bw-nav__title {
    color: var(--bw-navy);
    font-family: var(--bw-font-display);
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.bw-nav__close {
    font-size: 1.8rem;
    letter-spacing: 0;
    line-height: 1;
}

.bw-nav__list {
    display: grid;
    gap: 0.35rem;
}

.bw-nav__link {
    display: block;
    padding: 0.85rem 0;
    color: var(--bw-navy);
    font-family: var(--bw-font-display);
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    text-decoration: none;
    border-bottom: 1px solid var(--bw-line);
}

.bw-nav__home {
    margin-top: auto;
    padding-top: 2rem;
    color: var(--bw-muted);
    font-size: 1.05rem;
}

body.is-nav-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .bw-header__inner {
        padding-inline: 1rem;
    }

    .bw-header__names-full,
    .bw-music__label,
    .bw-menu-toggle__label {
        display: none;
    }

    .bw-header__monogram,
    .bw-menu-toggle__bars {
        display: inline-block;
    }

    .bw-music {
        min-width: 2.5rem;
        min-height: 2.5rem;
        justify-content: center;
    }
}
