:root {
  --shell-bg: #050505;
  --shell-panel: rgba(255,255,255,.05);
  --shell-line: rgba(255,255,255,.12);
  --shell-line-strong: rgba(255,255,255,.28);
  --shell-text: #f5f5f0;
  --shell-soft: rgba(245,245,240,.78);
  --shell-muted: rgba(245,245,240,.56);
  --shell-shadow: 0 28px 90px rgba(0,0,0,.42);
  --shell-mono: 'Geist Mono', ui-monospace, monospace;
  --shell-sans: Inter, system-ui, sans-serif;
}

.site-header {
  position: relative;
  z-index: 30;
  padding: 18px 0 12px;
}

.header-shell {
  width: min(1240px, calc(100vw - 28px));
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.header-utility {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.header-site-line {
  color: var(--shell-soft);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .18em;
  font: 600 .76rem/1 var(--shell-mono);
}

.menu-trigger,
.menu-close,
.menu-link,
.nav-link,
.button,
.cta-button {
  font-family: var(--shell-mono);
  text-transform: uppercase;
}

.menu-trigger {
  appearance: none;
  border: 1px solid var(--shell-line);
  background: rgba(255,255,255,.05);
  color: var(--shell-text);
  padding: 12px 16px;
  min-height: 48px;
  min-width: 124px;
  letter-spacing: .16em;
  font-size: .78rem;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.menu-trigger:hover,
.menu-trigger:focus-visible {
  transform: translateY(-1px);
  background: rgba(255,255,255,.1);
  border-color: var(--shell-line-strong);
}

.header-logo-wrap {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.header-logo-full {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.header-tagline {
  margin: 0;
  color: var(--shell-soft);
  font: 600 clamp(.82rem, 1vw, .98rem)/1.45 var(--shell-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.menu-layer[hidden] {
  display: none !important;
}

.menu-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.82);
}

.menu-panel {
  position: fixed;
  top: 82px;
  left: 50%;
  right: auto;
  width: min(420px, calc(100vw - 32px));
  max-width: none;
  min-height: auto;
  margin-left: 0;
  transform: translateX(-50%);
  padding: 18px;
  background: #f5f5f0;
  color: #050505;
  border: 1px solid rgba(0,0,0,.18);
  box-shadow: 0 20px 80px rgba(0,0,0,.48);
  display: grid;
  align-content: start;
  gap: 16px;
  z-index: 1;
}

.menu-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.menu-label {
  color: rgba(5,5,5,.58);
  letter-spacing: .18em;
  font: 600 .74rem/1 var(--shell-mono);
  text-transform: uppercase;
}

.menu-close {
  appearance: none;
  border: 1px solid rgba(0,0,0,.14);
  background: rgba(0,0,0,.03);
  color: #050505;
  width: 48px;
  height: 48px;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: .1em;
}

.menu-nav {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.menu-link {
  display: grid;
  gap: 6px;
  padding: 16px 14px;
  text-decoration: none;
  color: #050505;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.88);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.menu-link:hover,
.menu-link:focus-visible {
  transform: translateX(-2px);
  background: #ffffff;
  border-color: rgba(0,0,0,.26);
}

.menu-link.is-current {
  background: #050505;
  color: #f5f5f0;
  border-color: #050505;
}

.menu-link strong {
  font-size: 1rem;
  letter-spacing: .08em;
}

.menu-link span {
  font: 500 .72rem/1.4 var(--shell-sans);
  text-transform: none;
  letter-spacing: 0;
  opacity: .82;
}

.storefront-topbar,
.topnav,
.menu {
  display: none !important;
}

.button,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 20px;
  border: 1px solid var(--shell-line);
  background: rgba(255,255,255,.05);
  color: var(--shell-text);
  text-decoration: none;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(0,0,0,.22);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.button:hover,
.cta-button:hover,
.button:focus-visible,
.cta-button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--shell-line-strong);
  background: rgba(255,255,255,.1);
}

.button.primary,
.cta-button.primary {
  background: #f5f5f0;
  color: #050505;
  border-color: #f5f5f0;
}

@media (max-width: 760px) {
  .header-shell {
    width: min(1240px, calc(100vw - 20px));
  }

  .header-utility {
    align-items: flex-start;
  }

  .menu-trigger {
    min-width: 104px;
  }

  .menu-panel {
    width: 100vw;
    padding: 18px 16px 24px;
  }

  .header-tagline {
    font-size: .72rem;
    letter-spacing: .15em;
  }
}
