.presentation-brand { display: none; }

html[data-presentation-menu] #site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
}
html[data-presentation-menu] #site-header .shell-brand {
    position: relative;
    pointer-events: auto;
}
html[data-presentation-menu] #site-header .presentation-brand {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: var(--intro-logo-opacity, 0);
    pointer-events: none;
}
html[data-presentation-menu] #site-header .presentation-brand img {
    /* Fit both wordmarks to the viewBox of the standard header logo. */
    aspect-ratio: 155.74001 / 30.302;
    object-fit: contain;
    object-position: left center;
}

html[data-presentation-menu="intro"] #site-header:not(:has(:focus-visible, details[open])) {
    --menu-opacity: 0;
    --intro-logo-opacity: 1;
    background-color: transparent;
    border-color: transparent;
    pointer-events: none;
}
html[data-presentation-menu] #site-header .shell-row > :not(.shell-brand),
html[data-presentation-menu] #site-header .shell-brand:has(.presentation-brand) > img {
    opacity: var(--menu-opacity, 1);
}

@media (max-width: 359px) {
    html[data-presentation-menu] #site-header .presentation-brand:not(:has(source)) img { object-fit: cover; }
}
@media (max-width: 1120px) {
    html[data-presentation-menu] #site-header:has(.shell-mobile-menu[open]) { max-height: 100dvh; overflow-y: auto; }
}
@media (prefers-reduced-motion: no-preference) {
    html[data-presentation-menu] #site-header {
        transition: background-color 300ms ease-out, border-color 300ms ease-out;
    }
    html[data-presentation-menu] #site-header :is(.shell-row > :not(.shell-brand), .shell-brand > img, .presentation-brand) {
        transition: opacity 300ms ease-out;
    }
}
