/*
  VAXA SITE-WIDE HTML/CSS SOP — loaded last on every public route.

  Header contract for future changes:
  1. Every public page uses: <body data-vaxa-route="home|portfolio|founder|team">.
  2. The first child navigation header must be <header class="site-header" data-site-header>.
  3. Desktop navigation lives in <nav class="site-nav" aria-label="Primary">.
  4. The drawer trigger is <button class="site-menu-toggle" data-site-menu-toggle aria-controls="siteDrawer">.
  5. The drawer is <nav class="site-drawer" id="siteDrawer" data-site-drawer aria-hidden="true">.
  6. Use exactly the same labels/order site-wide: Home, Portfolio, Founder, Team, Contact.
  7. Mark the active route with aria-current="page" on the desktop nav only; the drawer mirrors the same order without a second aria-current.
  8. Do not add page-local header/menu CSS. Extend this file instead.
*/

:root {
  --vaxa-site-font-sans: 'Instrument Sans', system-ui, sans-serif;
  --vaxa-site-font-mono: 'Fragment Mono', ui-monospace, monospace;
  --vaxa-site-bg: #000;
  --vaxa-site-fg: #fff;
  --vaxa-site-muted: rgba(255,255,255,.58);
  --vaxa-site-faint: rgba(255,255,255,.12);
  --vaxa-site-glass: rgba(0,0,0,.62);
  --vaxa-site-lime: var(--c-accent);
  --vaxa-site-accent-secondary: var(--c-accent);
  --vaxa-site-violet: var(--c-accent);
  --vaxa-site-z-header: 1000;
  --vaxa-site-header-h: 64px;
  --vaxa-site-ease: cubic-bezier(.22,1,.36,1);
}

body[data-vaxa-route] {
  --nav-height: var(--vaxa-site-header-h);
  --nav-clearance: calc(var(--vaxa-site-header-h) + 30px);
}

body[data-vaxa-route] > header.site-header[data-site-header] {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: var(--vaxa-site-z-header) !important;
  min-height: var(--vaxa-site-header-h) !important;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: clamp(14px,2vw,28px) !important;
  padding: 14px clamp(16px,2.5vw,32px) !important;
  margin: 0 !important;
  pointer-events: auto !important;
  background: var(--vaxa-site-glass) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 0 !important;
  box-shadow: 0 8px 30px rgba(0,0,0,.32) !important;
  backdrop-filter: blur(14px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.1) !important;
  color: var(--vaxa-site-fg) !important;
  font-family: var(--vaxa-site-font-sans) !important;
}

body[data-vaxa-route] .site-logo {
  justify-self: start !important;
  font-family: var(--vaxa-site-font-sans) !important;
  font-weight: 500 !important;
  font-size: .95rem !important;
  line-height: 1 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  color: var(--vaxa-site-fg) !important;
  text-decoration: none !important;
}

body[data-vaxa-route] .site-nav {
  justify-self: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(12px,1.8vw,22px) !important;
  min-width: 0 !important;
  font-family: var(--vaxa-site-font-mono) !important;
  font-size: .68rem !important;
  line-height: 1 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: var(--vaxa-site-muted) !important;
}

body[data-vaxa-route] .site-nav a {
  position: relative !important;
  padding: 8px 0 !important;
  color: var(--vaxa-site-muted) !important;
  opacity: 1 !important;
  background: transparent !important;
  border: 0 !important;
  text-decoration: none !important;
  transition: color .22s var(--vaxa-site-ease) !important;
}
body[data-vaxa-route] .site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--vaxa-site-lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--vaxa-site-ease);
  box-shadow: 0 0 12px var(--vaxa-site-lime);
}
body[data-vaxa-route] .site-nav a:hover,
body[data-vaxa-route] .site-nav a[aria-current="page"] {
  color: var(--vaxa-site-fg) !important;
}
body[data-vaxa-route] .site-nav a:hover::after,
body[data-vaxa-route] .site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

body[data-vaxa-route] .site-menu-toggle {
  justify-self: end !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-width: 86px !important;
  min-height: 40px !important;
  padding: 0 14px !important;
  border: 1px solid var(--vaxa-site-faint) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.035) !important;
  color: var(--vaxa-site-fg) !important;
  font-family: var(--vaxa-site-font-mono) !important;
  font-size: .64rem !important;
  line-height: 1 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: border-color .22s var(--vaxa-site-ease), background .22s var(--vaxa-site-ease), color .22s var(--vaxa-site-ease) !important;
}
body[data-vaxa-route] .site-menu-toggle:hover,
body[data-vaxa-route] .site-menu-toggle[aria-expanded="true"] {
  border-color: rgba(162,228,53,.62) !important;
  background: rgba(162,228,53,.12) !important;
  color: var(--vaxa-site-fg) !important;
}
body[data-vaxa-route] .site-menu-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 14px;
}
body[data-vaxa-route] .site-menu-icon span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 99px;
  transition: transform .22s var(--vaxa-site-ease), opacity .18s ease;
}
body[data-vaxa-route] .site-menu-toggle[aria-expanded="true"] .site-menu-icon span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body[data-vaxa-route] .site-menu-toggle[aria-expanded="true"] .site-menu-icon span:nth-child(2) { opacity: 0; }
body[data-vaxa-route] .site-menu-toggle[aria-expanded="true"] .site-menu-icon span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

body[data-vaxa-route] .site-drawer {
  position: fixed !important;
  inset: 0 !important;
  z-index: calc(var(--vaxa-site-z-header) + 10) !important;
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  background: rgba(0,0,0,.82) !important;
  backdrop-filter: blur(18px) saturate(1.05) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.05) !important;
  transition: opacity .25s var(--vaxa-site-ease) !important;
}
body[data-vaxa-route] .site-drawer.is-open {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
body[data-vaxa-route] .site-drawer-panel {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(24px,5vw,56px);
  padding: clamp(20px,4vw,40px);
  background:
    radial-gradient(circle at 18% 18%, rgba(162,228,53,.16), transparent 32%),
    radial-gradient(circle at 82% 22%, rgba(162,228,53,.10), transparent 30%),
    #000;
  color: var(--vaxa-site-fg);
  transform: translateY(-10px);
  transition: transform .28s var(--vaxa-site-ease);
}
body[data-vaxa-route] .site-drawer.is-open .site-drawer-panel { transform: translateY(0); }
body[data-vaxa-route] .site-drawer-top,
body[data-vaxa-route] .site-drawer-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--vaxa-site-font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vaxa-site-muted);
}
body[data-vaxa-route] .site-drawer-brand { font-family: var(--vaxa-site-font-sans); font-size: .95rem; letter-spacing: .04em; color: var(--vaxa-site-fg); }
body[data-vaxa-route] .site-drawer-close { color: var(--vaxa-site-fg); border: 1px solid var(--vaxa-site-faint); border-radius: 999px; width: 40px; height: 40px; background: rgba(255,255,255,.035); font-size: 1.2rem; line-height: 1; }
body[data-vaxa-route] .site-drawer-list {
  align-self: center;
  display: grid;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  width: min(980px,100%);
}
body[data-vaxa-route] .site-drawer-list a {
  display: flex;
  align-items: baseline;
  gap: clamp(12px,2vw,22px);
  padding: 16px 4px;
  color: var(--vaxa-site-fg);
  font-family: var(--vaxa-site-font-sans);
  font-size: clamp(2.2rem,7vw,6.8rem);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.065em;
  text-decoration: none;
  transition: color .2s var(--vaxa-site-ease), padding-left .22s var(--vaxa-site-ease);
}
body[data-vaxa-route] .site-drawer-list a:hover,
body[data-vaxa-route] .site-drawer-list a:focus-visible { color: var(--vaxa-site-lime); padding-left: 18px; }
body[data-vaxa-route] .site-drawer-list .ix { font-family: var(--vaxa-site-font-mono); font-size: .68rem; letter-spacing: .08em; color: var(--vaxa-site-lime); min-width: 2.4ch; }
body[data-vaxa-route] .site-drawer-list .fine { font-family: var(--vaxa-site-font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--vaxa-site-muted); }
body.site-drawer-open { overflow: hidden !important; }

body[data-vaxa-route] .site-menu-toggle:focus-visible,
body[data-vaxa-route] .site-drawer-close:focus-visible,
body[data-vaxa-route] .site-drawer a:focus-visible,
body[data-vaxa-route] .site-nav a:focus-visible,
body[data-vaxa-route] .site-logo:focus-visible {
  outline: 2px solid var(--vaxa-site-lime) !important;
  outline-offset: 4px !important;
}

@media (max-width: 760px) {
  body[data-vaxa-route] > header.site-header[data-site-header] {
    grid-template-columns: 1fr auto !important;
    min-height: 58px !important;
    padding: 10px 14px !important;
  }
  body[data-vaxa-route] .site-nav { display: none !important; }
  body[data-vaxa-route] .site-menu-toggle { min-width: 82px !important; min-height: 38px !important; }
  body[data-vaxa-route] .site-drawer-list a { font-size: clamp(2rem,12vw,4.2rem); padding: 13px 4px; }
  body[data-vaxa-route] .site-drawer-list .fine { display: none; }
  body[data-vaxa-route] .site-drawer-foot { display: grid; justify-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-vaxa-route] .site-drawer,
  body[data-vaxa-route] .site-drawer-panel,
  body[data-vaxa-route] .site-nav a::after,
  body[data-vaxa-route] .site-menu-icon span { transition: none !important; }
}
