body.is-nav-open {
  overflow: hidden;
}

.site-header {
  position: fixed;
  inset: 16px 16px auto;
  z-index: 50;
  transition: inset 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-past-hero .site-header {
  inset: 16px 40px auto;
}

.nav-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--cw-container));
  min-height: 64px;
  margin: 0 auto;
  border-radius: var(--cw-radius-pill);
  background-color: rgba(28, 26, 23, 0.035);
  box-shadow: none;
  color: var(--cw-text-secondary);
  padding: 10px 12px 10px 18px;
  backdrop-filter: blur(0) saturate(100%) contrast(100%);
  -webkit-backdrop-filter: blur(0) saturate(100%) contrast(100%);
  transition:
    border-color 360ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 360ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 420ms cubic-bezier(0.16, 1, 0.3, 1),
    color 300ms ease,
    width 420ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-past-hero .nav-shell {
  border-color: rgba(255, 255, 255, 0.38);
  background-color: rgba(255, 255, 255, 0.46);
  color: var(--cw-text-inverse);
  /*transform: translateY(-2px);*/
  backdrop-filter: blur(22px) saturate(180%) contrast(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(180%) contrast(1.08);
}

.nav-shell::before,
.nav-shell::after {
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
  content: "";
  opacity: 0;
  transition: opacity 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-shell::before {
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.76), transparent 30%),
    radial-gradient(circle at 82% 118%, rgba(55, 198, 208, 0.22), transparent 34%);
}

.nav-shell::after {
  inset: 1px;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 8px 18px rgba(255, 255, 255, 0.18),
    inset 0 -14px 32px rgba(28, 26, 23, 0.08);
}

body.is-past-hero .nav-shell::before,
body.is-past-hero .nav-shell::after {
  opacity: 1;
}

@media (min-width: 1024px) {
  body.is-past-hero .nav-shell {
    width: min(100%, 1120px);
  }
}

.nav-shell > * {
  position: relative;
  z-index: 1;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  transition: opacity 260ms ease;
}

.brand-word-stack {
  position: relative;
  width: 122px;
  aspect-ratio: 1231 / 284;
  display: block;
  flex: 0 0 auto;
}

.brand-word {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: opacity 280ms ease;
}

.brand-word-inverse {
  opacity: 0;
}

body.is-past-hero .brand-word-default {
  opacity: 0;
}

body.is-past-hero .brand-word-inverse {
  opacity: 1;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--cw-text-secondary);
  font-size: var(--cw-type-label);
  font-weight: 600;
  width: 100%;
  padding-right: 20px;
  justify-content: flex-end;
  transition: color 300ms ease;
}

body.is-past-hero .primary-nav {
  color: var(--cw-text-inverse);
}

.primary-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--cw-radius-pill);
  padding: 0 14px;
  transition: background 220ms ease, color 260ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cw-text-primary);
  outline: none;
}

.primary-nav a.is-active,
.primary-nav a[aria-current="page"] {
  background: rgba(35, 213, 186, 0.14);
  color: var(--cw-accent-primary-soft);
  /*box-shadow: inset 0 0 0 1px rgba(35, 213, 186, 0.22);*/
}

body.is-past-hero .primary-nav a:hover,
body.is-past-hero .primary-nav a:focus-visible {
  background: rgba(28, 26, 23, 0.06);
  color: var(--cw-text-inverse);
}

body.is-past-hero .primary-nav a.is-active,
body.is-past-hero .primary-nav a[aria-current="page"] {
  background: rgba(35, 213, 186, 0.2);
  color: var(--cw-text-inverse);
  box-shadow: inset 0 0 0 1px rgba(35, 213, 186, 0.3);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.locale-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-pill);
  color: var(--cw-text-secondary);
  padding: 0 13px;
  font-size: var(--cw-type-label);
  font-weight: 700;
  transition:
    border-color 260ms ease,
    color 260ms ease,
    background 260ms ease;
}

body.is-past-hero .locale-link {
  border-color: rgba(28, 26, 23, 0.14);
  color: var(--cw-text-inverse);
}

.locale-link:hover,
.locale-link:focus-visible {
  border-color: var(--cw-border-strong);
  color: var(--cw-accent-primary-strong);
  outline: none;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cw-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--cw-text-primary);
  cursor: pointer;
  transition:
    border-color 260ms ease,
    background 260ms ease,
    color 260ms ease;
}

body.is-past-hero .nav-toggle {
  border-color: rgba(28, 26, 23, 0.14);
  background: rgba(28, 26, 23, 0.04);
  color: var(--cw-text-inverse);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  width: 17px;
  height: 2px;
  display: block;
  border-radius: var(--cw-radius-pill);
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1023px) {
  .primary-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-shell {
    min-height: 60px;
  }

  .primary-nav[data-open="true"] {
    position: fixed;
    inset: 88px 16px auto;
    z-index: 49;
    display: grid;
    border: 1px solid var(--cw-border);
    border-radius: 24px;
    background: rgba(28, 26, 23, 0.96);
    padding: 12px;
    box-shadow: 0 28px 70px var(--cw-shadow);
    backdrop-filter: blur(24px);
  }

  body.is-past-hero .primary-nav[data-open="true"] {
    border-color: rgba(28, 26, 23, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: var(--cw-text-inverse);
  }

  .primary-nav[data-open="true"] a {
    min-height: 48px;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .site-header {
    inset: 10px 10px auto;
  }

  body.is-past-hero .site-header {
    inset: 10px 10px auto;
  }

  .nav-shell {
    min-height: 58px;
    padding: 8px 8px 8px 12px;
  }

  .brand-word-stack {
    width: 104px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .locale-link {
    min-height: 40px;
    padding: 0 10px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .primary-nav[data-open="true"] {
    inset: 76px 10px auto;
  }
}

@media (max-width: 359px) {
  .brand-word-stack {
    width: 92px;
  }
}
