/* Header: quiet over the hero, a compact bar once you're reading, and out of the way while
   you scroll down. It returns as soon as you scroll up. Phones open one surface: links plus
   "Get in touch" in the same panel as the logo. */
html :is(body>header,.home-header-slot>header){position:fixed;z-index:60;transition:translate .34s var(--motion-ease),background-color .28s ease,border-color .28s ease,box-shadow .28s ease,height .28s var(--motion-ease)}
html.hdr-hidden :is(body>header,.home-header-slot>header){translate:0 calc(-100% - 48px)}
html .home-header-slot{z-index:60}

@media(min-width:801px){
  html :is(body>header,.home-header-slot>header),html .home-chrome :is(body>header,.home-header-slot>header){height:80px;background:transparent;border:1px solid transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
  html.hdr-solid :is(body>header,.home-header-slot>header),html.hdr-solid .home-chrome :is(body>header,.home-header-slot>header){height:64px;background:color-mix(in srgb, var(--sp-color-ink) 96%, transparent);border-color:var(--line-dark);box-shadow:0 14px 36px -18px rgba(4,10,22,.55);backdrop-filter:blur(14px) saturate(1.2);-webkit-backdrop-filter:blur(14px) saturate(1.2)}
  html.hdr-solid :is(body>header,.home-header-slot>header) .nav-cta{padding-top:9px;padding-bottom:9px}
}

@media(max-width:800px){
  html :is(body>header,.home-header-slot>header){border:1px solid var(--line-dark)}
  html :is(body>header,.home-header-slot>header):has(nav.open){flex-wrap:wrap;align-content:flex-start;align-items:center;row-gap:0;height:auto;padding-bottom:18px;box-shadow:var(--e3);background:var(--sp-color-ink)}
  html :is(body>header,.home-header-slot>header):has(nav.open)>:is(.brand,.menu-toggle){display:flex;align-items:center;min-height:60px}
  html :is(body>header,.home-header-slot>header) nav.open{position:static;order:3;flex:1 0 100%;display:flex;flex-direction:column;gap:0;margin:0;padding:8px 0 0;border:0;border-top:1px solid var(--line-dark);border-radius:0;box-shadow:none;background:none}
  html :is(body>header,.home-header-slot>header) nav.open a{padding:13px 0;font-size:17px}
  html :is(body>header,.home-header-slot>header):has(nav.open) .nav-cta{display:flex;order:4;flex:1 0 100%;justify-content:center;min-height:52px;margin-top:10px;font-size:16px}
  html.menu-open body::after{content:"";position:fixed;inset:0;z-index:55;background:rgba(8,14,28,.42);animation:scrim-in .24s ease}
}
@keyframes scrim-in{from{opacity:0}}
@media(prefers-reduced-motion:no-preference){
  @media(max-width:800px){html :is(body>header,.home-header-slot>header):has(nav.open:not(.is-closing)) .nav-cta{animation:menu-arrive .32s var(--motion-ease)}}
}
@media(prefers-reduced-motion:reduce){
  html :is(body>header,.home-header-slot>header){transition:none}
  html.menu-open body::after{animation:none}
}
