.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(11, 14, 19, 0.84);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--color-border);
  background: rgba(11, 14, 19, 0.96);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.32);
}

.header-inner {
  display: flex;
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--color-deep);
  box-shadow: inset 0 0 0 1px rgba(215, 169, 74, 0.38), 0 0 22px rgba(215, 169, 74, 0.12);
  object-fit: cover;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 16px;
  letter-spacing: -0.04em;
}

.brand-copy small {
  color: var(--color-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 12px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a::after {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  background: var(--color-primary);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-text);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.icon-button:hover {
  border-color: var(--color-text);
  background: var(--color-surface);
  transform: translateY(-1px);
}

.search-glyph {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.search-glyph::after {
  position: absolute;
  width: 7px;
  height: 2px;
  right: -5px;
  bottom: -3px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
}

.menu-glyph,
.menu-glyph::before,
.menu-glyph::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease;
}

.menu-glyph {
  position: relative;
}

.menu-glyph::before,
.menu-glyph::after {
  position: absolute;
  left: 0;
}

.menu-glyph::before { top: -6px; }
.menu-glyph::after { top: 6px; }

.mobile-toggle {
  display: none;
}

.mobile-drawer {
  display: none;
}

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

  .mobile-toggle {
    display: inline-grid;
  }

  .mobile-drawer {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    padding: 10px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
  }

  .mobile-drawer.is-open {
    display: grid;
  }

  .mobile-drawer a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-bottom: 1px solid var(--color-border);
    font-weight: 700;
  }

  .mobile-drawer a:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 540px) {
  .header-inner {
    height: 66px;
  }

  .brand-copy small {
    display: none;
  }

  .header-actions .button {
    display: none;
  }
}
