.global-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .35s ease, border-color .35s ease, backdrop-filter .35s ease, transform .35s ease;
}

.global-header.is-scrolled,
.global-header.is-open {
  background: rgba(5, 5, 5, .82);
  border-bottom-color: rgba(255, 255, 255, .09);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
}

.global-header__inner {
  width: min(calc(100% - 72px), 1440px);
  min-height: 96px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.global-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 50px;
  margin-right: auto;
  color: #fff;
  text-decoration: none;
}

.global-brand img {
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.8vw, 44px);
  font-family: "Hanken Grotesk", "Avenir Next", Arial, sans-serif;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.global-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #b8b8b8;
  text-decoration: none;
  transition: color .25s ease;
}

.global-nav a:not(.global-nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  height: 1px;
  background: #ff6b85;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}

.global-nav a:hover,
.global-nav a:focus-visible,
.global-nav a[aria-current="page"] { color: #fff; }
.global-nav a:hover::after,
.global-nav a:focus-visible::after,
.global-nav a[aria-current="page"]::after { transform: scaleX(1); }

.global-nav .global-nav__cta {
  min-height: 50px;
  padding: 0 28px;
  justify-content: center;
  border: 1px solid rgba(255, 107, 133, .48);
  border-radius: 999px;
  background: rgba(255, 107, 133, .06);
  color: #fff;
  white-space: nowrap;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.global-nav .global-nav__cta:hover,
.global-nav .global-nav__cta:focus-visible {
  background: rgba(255, 107, 133, .15);
  border-color: #ff6b85;
  box-shadow: 0 0 24px rgba(255, 107, 133, .25);
  transform: translateY(-1px);
}

.global-menu {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  cursor: pointer;
}

.global-menu span,
.global-menu::before,
.global-menu::after {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform .25s ease, opacity .25s ease;
}

.global-menu[aria-expanded="true"] span { opacity: 0; }
.global-menu[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.global-menu[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .global-header__inner { width: min(calc(100% - 40px), 1440px); min-height: 78px; }
  .global-brand { height: 42px; }
  .global-menu { display: block; }
  .global-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background: rgba(5, 5, 5, .97);
    border-bottom: 1px solid transparent;
    opacity: 0;
    visibility: hidden;
    transition: max-height .35s ease, padding .35s ease, opacity .25s ease, visibility .25s ease;
  }
  .global-nav.is-open {
    max-height: 520px;
    padding: 16px 20px 26px;
    border-bottom-color: rgba(255, 255, 255, .09);
    opacity: 1;
    visibility: visible;
  }
  .global-nav a { min-height: 54px; padding-inline: 4px; }
  .global-nav a:not(.global-nav__cta)::after { bottom: 5px; }
  .global-nav .global-nav__cta { margin-top: 10px; min-height: 50px; }
}

@media (max-width: 520px) {
  .global-header__inner { width: calc(100% - 32px); }
  .global-brand { height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .global-header, .global-nav, .global-menu span, .global-menu::before, .global-menu::after { transition: none; }
}
