.aes-global-header,
.aes-global-header *,
.aes-global-header *::before,
.aes-global-header *::after {
  box-sizing: border-box;
}

body:has(> .aes-global-header) {
  margin: 0;
}

html.aes-mobile-nav-is-open,
html.aes-mobile-nav-is-open body {
  overflow: hidden;
}

.aes-global-header {
  position: relative;
  z-index: 2147483647;
  width: 100%;
  background: #1e1e1e;
  color: #e8e6e3;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5 !important;
}

.aes-global-header__inner {
  display: flex;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 32px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.aes-global-header a {
  color: #e8e6e3;
  text-decoration: none;
}

.aes-global-header button {
  margin: 0;
  padding: 0 !important;
  color: inherit;
  font: inherit;
}

.aes-global-header__logo {
  display: inline-flex;
  flex: 0 1 auto;
  min-width: 0;
  border-radius: 2px;
}

.aes-global-header__logo img {
  display: block;
  width: min(192px, 48vw);
  max-width: 100% !important;
  height: auto;
}

.aes-global-header__nav {
  display: none;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.aes-global-header__link,
.aes-global-header__cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  transition-property: color, background-color;
  transition-duration: 150ms;
  transition-timing-function: ease;
}

.aes-global-header__link:hover,
.aes-global-header__link[aria-current="page"] {
  color: #8ea0bc;
}

.aes-global-header__cta {
  justify-content: center;
  border: 1px solid #667b9d;
  padding: 11px 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.aes-global-header__cta:hover {
  background: #667b9d;
}

.aes-global-header__menu-toggle,
.aes-global-header__drawer-close {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #667b9d;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition-property: color, background-color, transform;
  transition-duration: 150ms;
  transition-timing-function: ease;
}

.aes-global-header__menu-toggle:hover,
.aes-global-header__drawer-close:hover {
  background: #667b9d;
}

.aes-global-header__menu-toggle:active,
.aes-global-header__drawer-close:active {
  transform: scale(0.96);
}

.aes-global-header__menu-icon {
  display: grid;
  width: 20px;
  gap: 5px;
}

.aes-global-header__menu-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.aes-global-header__scrim {
  position: fixed;
  z-index: 10;
  inset: 0;
  visibility: hidden;
  border: 0;
  background: rgb(0 0 0 / 64%);
  opacity: 0;
  cursor: default;
  pointer-events: none;
  transition-property: opacity, visibility;
  transition-duration: 200ms;
  transition-timing-function: ease;
}

.aes-global-header__scrim[data-open="true"] {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.aes-global-header__drawer {
  position: fixed;
  z-index: 11;
  top: 0;
  right: 0;
  display: flex;
  visibility: hidden;
  width: min(88vw, 380px);
  height: 100vh;
  height: 100dvh;
  padding: 28px 24px 32px;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #1e1e1e;
  box-shadow: -24px 0 64px rgb(0 0 0 / 32%);
  transform: translateX(100%);
  pointer-events: none;
  transition-property: transform, visibility;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.aes-global-header__drawer[data-open="true"] {
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.aes-global-header__drawer-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.aes-global-header__drawer-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 2;
}

.aes-global-header__drawer-nav {
  display: flex;
  margin-top: 48px;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
}

.aes-global-header__drawer-nav > a:not(.aes-global-header__drawer-cta) {
  display: flex;
  min-height: 58px;
  align-items: center;
  color: #e8e6e3;
  font-size: clamp(22px, 7vw, 30px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  transition-property: color, transform;
  transition-duration: 150ms;
  transition-timing-function: ease;
}

.aes-global-header__drawer-nav > a:not(.aes-global-header__drawer-cta):hover,
.aes-global-header__drawer-nav > a[aria-current="page"]:not(.aes-global-header__drawer-cta) {
  color: #8ea0bc;
}

.aes-global-header__drawer-nav > a:not(.aes-global-header__drawer-cta):hover {
  transform: translateX(4px);
}

.aes-global-header__drawer-nav > a[aria-current="page"]:not(.aes-global-header__drawer-cta)::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 12px;
  background: currentColor;
}

.aes-global-header__drawer-cta {
  display: flex;
  min-height: 52px;
  margin-top: auto;
  align-items: center;
  justify-content: center;
  background: #667b9d;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition-property: background-color, transform;
  transition-duration: 150ms;
  transition-timing-function: ease;
}

.aes-global-header__drawer-cta:hover {
  background: #788eaf;
}

.aes-global-header__drawer-cta:active {
  transform: scale(0.96);
}

.aes-global-header__logo:focus-visible,
.aes-global-header__link:focus-visible,
.aes-global-header__cta:focus-visible,
.aes-global-header__menu-toggle:focus-visible,
.aes-global-header__drawer-close:focus-visible,
.aes-global-header__drawer-nav a:focus-visible {
  outline: 2px solid #8ea0bc;
  outline-offset: 4px;
}

.aes-global-header__cta:focus-visible,
.aes-global-header__drawer-cta:focus-visible {
  outline-color: #e8e6e3;
}

@media (min-width: 640px) {
  .aes-global-header__inner {
    padding-right: 40px;
    padding-left: 40px;
  }

  .aes-global-header__logo img {
    width: 224px;
  }
}

@media (min-width: 768px) {
  .aes-global-header__nav {
    display: flex;
  }

  .aes-global-header__menu-toggle,
  .aes-global-header__scrim,
  .aes-global-header__drawer {
    display: none;
  }
}

@media (min-width: 1024px) {
  .aes-global-header__inner {
    padding: 40px 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aes-global-header__link,
  .aes-global-header__cta,
  .aes-global-header__menu-toggle,
  .aes-global-header__drawer-close,
  .aes-global-header__scrim,
  .aes-global-header__drawer,
  .aes-global-header__drawer-nav a {
    transition-duration: 0.01ms;
  }
}
