/* The site header: one template on every page (the markup is the same <header class="site-top">
   in each page; nav.js fills in the links and the phone menu, and hides the bar on scroll down).
   Also the page frame width every page shares. */
:root { --site-edge: 50px; --site-top: 100px; }
@media (max-width: 700px) { :root { --site-edge: 20px; --site-top: 76px; } }

.site-top {
  position: sticky; top: 0; z-index: 60;
  display: flex; justify-content: space-between; align-items: center;
  height: var(--site-top); padding: 0 var(--site-edge);
  background: rgba(12, 14, 16, .25); color: #EDEAE3;   /* frosted glass: 75% see-through, what scrolls behind it blurs */
  -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}
.site-top.is-hidden { transform: translateY(-100%); }
.site-top__logo { display: block; width: 150px; color: #EDEAE3; }
.site-top__logo svg { display: block; width: 100%; height: auto; }
@media (max-width: 700px) { .site-top__logo { width: 120px; } }
@media (prefers-reduced-motion: reduce) { .site-top { transition: none; } }

/* Light pages (Mission): the same header, inverted. Add class "site-top--light" to the header. */
.site-top--light { background: rgba(241, 238, 231, .25); color: #14171A; }
.site-top--light .site-top__logo { color: #14171A; }
.site-top--light .gnav__links a { color: #14171A; border-color: rgba(20, 23, 26, .3); }
.site-top--light .gnav__links a:hover, .site-top--light .gnav__links a[aria-current=page] { border-color: #14171A; }
.site-top--light .gnav__lang { color: rgba(20, 23, 26, .55); }
.site-top--light .gnav__lang:hover { color: #14171A; }
.site-top--light .gnav__burger { color: #14171A; }

/* without backdrop blur support, stay readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-top { background: rgba(12, 14, 16, .92); } .site-top--light { background: rgba(241, 238, 231, .94); }
}
