/* Header that tucks away as you scroll down and slides back as soon as you scroll up
   (header-scroll.js), as a simple glass bar: the page shows through,
   blurred. The bar's box is only the 1200px content column, so the glass itself is
   painted out to both screen edges with a pseudo-element. Used by the homepage and About. */
/* overflow-x: clip (not hidden) so html/body don't become scroll containers,
   which would stop position: sticky from working. */
html, body { overflow-x: hidden; overflow-x: clip; }
nav.v2-nav.d-nav {
  position: sticky; top: 0; z-index: 100; background: transparent;
  padding-top: 18px; padding-bottom: 18px;
}
nav.v2-nav.d-nav::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: -100vmax; right: -100vmax;
  z-index: -1; pointer-events: none;
  background: var(--white, #fafaf8);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  nav.v2-nav.d-nav::before {
    background: color-mix(in srgb, var(--white, #fafaf8) 70%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  }
}

/* Tucks away on the way down, slides back on the way up (and at the very top). */
nav.v2-nav.d-nav { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
nav.v2-nav.d-nav.is-hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { nav.v2-nav.d-nav { transition: none; } }
