/* Header entrance only. Experimental palette removed; original nav styling is inherited. */
/* Actual nav enters only after the gallery has landed, not on a moving panel. */
html:has(.gallery-shell) .landing-header a{display:inline-block}
html[data-header-entrance=pending]:has(.gallery-shell) .landing-header a{opacity:0}
html[data-header-entrance]:has(.gallery-shell) .landing-header{transition:none}

/* Navigation wordmark only: 20% larger, preserving layout-aware reveal bounds. */
html:has(.gallery-shell) .landing-header .header-wordmark{font-size:clamp(29.04px,1.848vw,39.6px)}
@media(max-width:1000px),(max-height:540px){html:has(.gallery-shell) .landing-header .header-wordmark{font-size:29.04px}}

/* Modest spacing increase; group remains right aligned. */
html:has(.gallery-shell) .landing-header nav{gap:1.6vw}
@media(max-width:1000px),(max-height:540px){html:has(.gallery-shell) .landing-header nav{gap:20px}}
@media(max-width:360px){html:has(.gallery-shell) .landing-header nav{gap:12px}}

/* Let incoming labels descend from above the viewport, not from a header clip. */
html[data-header-entrance=pending]:has(.gallery-shell) .landing-header,html[data-header-entrance=running]:has(.gallery-shell) .landing-header,html[data-header-entrance=shown]:has(.gallery-shell) .landing-header{clip-path:none!important}

/* Keep the settled header on the same clip/compositing path as its entrance.
   Home-return resets data-header-entrance before applying its own mask. */
