:root {
  --masthead-height: 82px;
  --glass-blur: blur(18px) saturate(112%);
}
.header {
  --glass-ink: #172d42;
  --wordmark-accent: #2e5771;
  color: var(--glass-ink);
  background: transparent;
  border: 0;
  margin-bottom: calc(-1 * var(--masthead-height));
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgb(248 252 255 / 5%);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgb(72 98 120 / 20%);
  box-shadow: inset 0 1px rgb(255 255 255 / 34%);
}
.header.over-dark {
  --glass-ink: #f4f9fc;
  --wordmark-accent: #b2e1f6;
}
.header .brand svg { display: block; width: 184px; height: auto; }
.header nav > a:not(.nav-cta):hover {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .35em;
}
.header :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.header .nav-cta {
  background: #c3e6f6;
  color: #172d42;
  box-shadow: inset 0 0 0 1px rgb(56 91 110 / 20%);
}

/* Continue the expedition behind the glass, with the controls below its edge. */
.motion-enabled .journey-stage { top: 0; height: 100svh; }
.motion-enabled .depth-stack { top: var(--masthead-height); }
.expedition-topline { margin-top: var(--masthead-height); }
html:not(.motion-enabled) .journey-stage .depth-stack { border-top: var(--masthead-height) solid transparent; }

@media (max-width: 800px) {
  :root { --masthead-height: 78px; }
  .header .menu-toggle { border-color: currentColor; border-radius: 24px; }
  .header nav {
    color: #172d42;
    background: rgb(248 252 255 / 5%);
    -webkit-backdrop-filter: blur(28px) invert(1) brightness(.45) invert(1);
    backdrop-filter: blur(28px) invert(1) brightness(.45) invert(1);
    border-color: rgb(72 98 120 / 22%);
  }
}
@media (max-width: 600px) {
  .header .brand svg { width: 155px; }
}
@media (prefers-reduced-transparency: reduce) {
  .header::before, .header nav.open { background: #edf4fa; }
  .header.over-dark { --glass-ink: #172d42; --wordmark-accent: #2e5771; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header::before, .header nav.open { background: #edf4fa; }
  .header.over-dark { --glass-ink: #172d42; --wordmark-accent: #2e5771; }
}
