.site-header {
  --site-header-height: 85px;
  --site-header-shell: 1600px;
  --site-header-pad-x: 40px;
  --site-header-cyan: #5de2ff;
  --site-header-bg: rgba(5, 5, 6, .82);
  --site-header-border: rgba(255, 255, 255, .09);
  --site-header-text: rgba(255, 255, 255, .82);
  --site-header-muted: rgba(255, 255, 255, .64);
  --site-header-cta-width: 184px;
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: flex;
  width: 100%;
  height: var(--site-header-height);
  justify-content: center;
  border-bottom: 1px solid var(--site-header-border);
  background: var(--site-header-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  font-kerning: normal;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, box-shadow .25s ease;
}

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

.site-header.is-scrolled {
  background: rgba(5, 5, 6, .94);
  box-shadow: 0 10px 35px rgba(0, 0, 0, .24);
}

.site-header__shell {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(286px, 1fr);
  align-items: center;
  width: 100%;
  max-width: var(--site-header-shell);
  height: 100%;
  padding: 0 var(--site-header-pad-x);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  min-width: 230px;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
}

.site-header__cube-wrap {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  perspective: 420px;
}

.site-header__cube {
  display: block;
  position: relative;
  width: 20px;
  height: 20px;
  margin: 6px auto;
  transform-style: preserve-3d;
  animation: siteHeaderCubeSpin 10s linear infinite;
}

.site-header__cube-face {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--site-header-cyan);
  background: rgba(93, 226, 255, .10);
  box-shadow: inset 0 0 8px rgba(93, 226, 255, .08);
}

.site-header__cube-face--front { transform: translateZ(10px); }
.site-header__cube-face--back { transform: rotateY(180deg) translateZ(10px); }
.site-header__cube-face--right { transform: rotateY(90deg) translateZ(10px); }
.site-header__cube-face--left { transform: rotateY(-90deg) translateZ(10px); }
.site-header__cube-face--top { transform: rotateX(90deg) translateZ(10px); }
.site-header__cube-face--bottom { transform: rotateX(-90deg) translateZ(10px); }

@keyframes siteHeaderCubeSpin {
  from { transform: rotateX(0) rotateY(0); }
  to { transform: rotateX(360deg) rotateY(360deg); }
}

.site-header__wordmark {
  display: inline-block;
  white-space: nowrap;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.site-header__wordmark strong {
  color: var(--site-header-cyan);
  text-shadow: 0 0 15px rgba(93, 226, 255, .55);
}

.site-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.site-header__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--site-header-muted);
  text-decoration: none;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .9px;
  transition: color .22s ease, text-shadow .22s ease;
}

.site-header__nav a:hover,
.site-header__nav a.is-active,
.site-header__nav a[aria-current="page"] {
  color: var(--site-header-cyan);
  text-shadow: 0 0 10px rgba(93, 226, 255, .82);
}

.site-header__actions {
  display: grid;
  grid-template-columns: 52px var(--site-header-cta-width);
  align-items: center;
  justify-content: end;
  justify-self: end;
  gap: 16px;
  min-width: 286px;
}

.site-header__locale {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0;
  color: var(--site-header-cyan);
  text-decoration: none;
  text-align: center;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .5px;
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--site-header-cta-width);
  min-width: var(--site-header-cta-width);
  max-width: var(--site-header-cta-width);
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0 20px;
  border: 1.5px solid var(--site-header-cyan);
  border-radius: 4px;
  color: #fff;
  background: rgba(93, 226, 255, .05);
  text-decoration: none;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color .22s ease, color .22s ease, box-shadow .22s ease;
}

.site-header__cta:hover {
  color: #000;
  background: var(--site-header-cyan);
  box-shadow: 0 0 34px rgba(93, 226, 255, .65);
}

.site-header__menu-toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-header__menu-toggle span {
  position: absolute;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform .25s ease, opacity .25s ease;
}

.site-header__menu-toggle span:nth-child(1) { transform: translateY(-8px); }
.site-header__menu-toggle span:nth-child(3) { transform: translateY(8px); }
.site-header__menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.site-header__menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 2px solid var(--site-header-cyan);
  outline-offset: 4px;
}

body.menu-open { overflow: hidden; }

@media (max-width: 1200px) {
  .site-header { --site-header-pad-x: 36px; }
  .site-header__shell { display: flex; justify-content: space-between; }
  .site-header__brand { min-width: 0; }
  .site-header__actions {
    display: grid;
    grid-template-columns: 52px 44px;
    gap: 12px;
    min-width: 108px;
  }
  .site-header__cta { display: none; }
  .site-header__menu-toggle { display: flex; }
  .site-header__nav {
    position: fixed;
    inset: var(--site-header-height) 0 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    height: calc(100svh - var(--site-header-height));
    padding: clamp(40px, 8vh, 84px) max(44px, env(safe-area-inset-left)) max(38px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    background: #050506;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  }
  .site-header__nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .site-header__nav a {
    width: 100%;
    min-height: 64px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: var(--site-header-text);
    font-size: clamp(17px, 4.2vw, 23px);
    line-height: 1.15;
    font-weight: 760;
    letter-spacing: .02em;
    text-transform: none;
  }
  .site-header__nav a:hover,
  .site-header__nav a.is-active,
  .site-header__nav a[aria-current="page"] {
    color: var(--site-header-cyan);
    text-shadow: 0 0 9px rgba(93, 226, 255, .78), 0 0 22px rgba(93, 226, 255, .28);
  }
}

@media (max-width: 620px) {
  .site-header {
    --site-header-height: 84px;
    --site-header-pad-x: 28px;
  }
  .site-header__cube-wrap {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }
  .site-header__wordmark { font-size: clamp(18px, 5vw, 20px); }
  .site-header__actions {
    grid-template-columns: 46px 44px;
    gap: 8px;
    min-width: 98px;
  }
  .site-header__locale {
    width: 46px;
    min-width: 46px;
    max-width: 46px;
  }
  .site-header__nav { padding-inline: max(28px, env(safe-area-inset-left)); }
  .site-header__nav a {
    min-height: 62px;
    font-size: clamp(17px, 5.5vw, 21px);
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .site-header {
    --site-header-height: 68px;
    --site-header-pad-x: 24px;
  }
  .site-header__wordmark { font-size: 18px; }
  .site-header__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    column-gap: 34px;
    padding: 16px max(28px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-bottom));
  }
  .site-header__nav a {
    min-height: 47px;
    padding: 10px 0;
    font-size: clamp(14px, 2.4vw, 17px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header__nav,
  .site-header__nav a,
  .site-header__cta,
  .site-header__menu-toggle span { transition: none; }
  .site-header__cube {
    animation: none;
    transform: rotateX(-18deg) rotateY(28deg);
  }
}
