/* The first 100px retain the full header; one transition gathers it into glass. */
.header-slot { height: 96px; }
.site-header { position: fixed; top: 0; left: 50%; transform: translateX(-50%); margin: 0; padding-inline: 0; border: 1px solid transparent; border-radius: 0; transition: width .55s cubic-bezier(.22,.7,.2,1), min-height .55s, top .55s, padding .55s, border-radius .55s, background-color .55s, border-color .55s, box-shadow .55s; }
.wordmark { flex-shrink: 0; }
/* Feathered shading belongs to the full header's right edge, not the whole photograph. */
.site-header::before { content: ''; position: absolute; z-index: -1; pointer-events: none; right: calc((100% - 100vw) / 2); top: 0; width: 80vw; height: 180px; background: linear-gradient(90deg, transparent, #001b2c60 52%, #001b2cbf); mask-image: linear-gradient(#000, #0009 40%, transparent); transition: opacity .45s ease; }
.site-header.is-detached::before { opacity: 0; }
.site-header a, .site-header > button, .nav-button { text-shadow: 0 1px 5px #002636; }
.work-menu a { text-shadow: none; }
.primary-nav { transition: gap .45s; }
.site-header.is-detached { top: 14px; width: min(680px, calc(100% - 3rem)); min-height: 62px; padding-inline: 23px; border-radius: 40px; border-color: #d0fafa55; background: #073441a8; backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); box-shadow: inset 0 1px 1px #e5ffff73, inset 0 -2px 5px #68ccd326, 0 8px 25px #001b2b24; }
.site-header.is-detached .wordmark .brand-wordmark { display: none; }
.site-header.is-detached .wordmark .brand-mark { display: block; width: 32px; height: 38px; }
.site-header.is-detached .primary-nav { gap: 20px; }
@media (max-width: 900px) {
  .header-slot { height: 80px; }
  .site-header.is-detached { width: min(420px, calc(100% - 3rem)); min-height: 56px; padding-inline: 20px; }
  .site-header.is-detached .primary-nav { gap: .2rem; }
}
@media (prefers-reduced-motion: reduce) { .site-header, .primary-nav { transition: none; } }
