/* Single visual source for the Crio site header, used by every Crio-owned page. */
.site-header,
.site-header * {
  box-sizing: border-box;
}

.site-header {
  position: fixed;
  z-index: 500;
  top: var(--morph-top, 50px);
  left: var(--morph-left, 12px);
  right: var(--morph-right, 12px);
  padding: var(--morph-pad-y, 9px) 0;
  color: #f4f4f4;
  background: #111214;
  border: 1px solid rgba(244, 244, 244, .075);
  border-radius: var(--morph-radius, 18px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28),
    0 4px 12px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255, 255, 255, .07),
    inset 0 -1px 0 rgba(0, 0, 0, .55);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  font-family: "Century Gothic", "Avenir Next", Avenir, Helvetica, Arial, sans-serif;
  transition: top .42s cubic-bezier(.2, .8, .2, 1),
    left .42s cubic-bezier(.2, .8, .2, 1),
    right .42s cubic-bezier(.2, .8, .2, 1),
    padding .42s cubic-bezier(.2, .8, .2, 1),
    border-radius .42s cubic-bezier(.2, .8, .2, 1),
    box-shadow .42s cubic-bezier(.2, .8, .2, 1),
    background-color .42s cubic-bezier(.2, .8, .2, 1);
}

.site-header.scrolled {
  border-radius: 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .25),
    inset 0 -1px 0 rgba(244, 244, 244, .045);
}

.site-header .header-inner {
  width: min(1360px, calc(100vw - 80px));
  max-width: none;
  margin-inline: auto;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

.site-header .brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: auto;
  height: auto;
  overflow: visible;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #f4f4f4;
  text-decoration: none;
}

.site-header .brand .header-logo {
  display: block;
  width: var(--morph-logo-w, 177.1px);
  height: var(--morph-logo-h, 50.6px);
  border: 0;
  border-radius: 7px;
  object-fit: contain;
}

.site-header .header-context {
  flex: 0 1 auto;
  margin-left: 20px;
  padding-left: 18px;
  border-left: 1px solid rgba(244, 244, 244, .25);
  color: #f4f4f4;
  font: 700 10px/1.3 "Century Gothic", "Avenir Next", Avenir, Helvetica, Arial, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header .nav {
  position: static;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  font: 700 11px/1.3 "Century Gothic", "Avenir Next", Avenir, Helvetica, Arial, sans-serif;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.site-header .nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 32px;
  margin-right: 0;
  padding: 0 23px;
  color: #f4f4f4;
  opacity: .9;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, opacity .18s ease;
}

.site-header .nav a:first-child { padding-left: 0; }
.site-header .nav a:last-child { padding-right: 0; }

.site-header .nav a:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, transparent, rgba(244, 244, 244, .18) 28%, rgba(244, 244, 244, .18) 72%, transparent);
  content: "";
  pointer-events: none;
  transform: translateY(-50%);
}

.site-header .nav a:hover,
.site-header .nav a[aria-current="page"] {
  color: #ed1c24;
  opacity: 1;
}

.site-header .nav a.nav-contact {
  margin-right: 0;
  padding-left: 23px;
  padding-right: 0;
  color: #ed1c24;
  font-weight: 900;
}

.site-header .menu-toggle {
  display: none;
  border: 0;
  background: none;
  color: #f4f4f4;
  padding: 1px 6px;
  font: 700 12px/1 "Century Gothic", "Avenir Next", Avenir, Helvetica, Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-header :is(a, button):focus-visible {
  outline: 2px solid #ed1c24;
  outline-offset: 5px;
}

@media (max-width: 1050px) and (min-width: 901px) {
  .site-header .nav a { padding-right: 15px; padding-left: 15px; }
  .site-header .nav a:first-child { padding-left: 0; }
  .site-header .nav a:last-child { padding-right: 0; }
  .site-header .header-context { margin-left: 14px; padding-left: 14px; }
}

.site-header.nav-compact .header-context { display: none; }

.site-header.nav-compact .menu-toggle {
  display: block;
  flex: 0 0 auto;
  margin-left: auto;
}

.site-header.nav-compact .nav {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  bottom: auto;
  left: 0;
  display: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 22px 18px 24px;
  background: rgba(12, 12, 14, .98);
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 10px;
}

.site-header.nav-compact .nav.open { display: flex; }

.site-header.nav-compact.scrolled .nav {
  top: 100%;
  border-width: 0 0 1px;
  border-radius: 0 0 14px 14px;
}

.site-header.nav-compact .nav a {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 13px 0;
  font-size: 10px;
}

.site-header.nav-compact .nav a:not(:last-child)::after {
  top: auto;
  right: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 244, 244, .16) 18%, rgba(244, 244, 244, .16) 82%, transparent);
  transform: none;
}

.site-header.nav-compact .nav a.nav-contact { padding: 13px 0; }

@media (max-width: 900px) {
  .site-header .header-inner { width: calc(100vw - 40px); }
}

@media (max-width: 520px) {
  .site-header .header-inner { width: calc(100vw - 32px); }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header .nav a { transition: none; }
}
