:root {
  --ax-bg: #0a0f1c;
  --ax-bg-rgb: 10 15 28;
  --ax-surface: #1a2333;
  --ax-surface-rgb: 26 35 51;
  --ax-surface-raised: #1e293b;
  --ax-border: rgba(148, 163, 184, 0.18);
  --ax-text: #ffffff;
  --ax-text-muted: #94a3b8;
  --ax-accent: #00f3ff;
  --ax-accent-rgb: 0 243 255;
  --ax-accent-soft: rgba(0, 243, 255, 0.12);
  --ax-font-display: "Inter", system-ui, sans-serif;
  --ax-font-body: "Inter", system-ui, sans-serif;
  --ax-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    monospace;
  --ax-radius: 8px;
  --ax-space-unit: 8px;
  --ax-transition: 200ms ease;
}

html {
  height: 100%;
  min-height: 100%;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: rgba(148, 163, 184, 0.75) var(--ax-bg);
  scroll-behavior: auto;
}

body {
  height: auto;
  min-height: 100vh;
  overflow-x: clip;
  overflow-y: auto;
  position: static;
  scrollbar-width: auto;
  scrollbar-color: rgba(148, 163, 184, 0.75) var(--ax-bg);
}

main {
  overflow: visible;
}

section[id] {
  scroll-margin-top: 5rem;
}

:where(a, button, input, textarea, summary):focus-visible {
  outline: 2px solid var(--ax-accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-200%);
  padding: 0.75rem 1rem;
  border-radius: var(--ax-radius);
  background: var(--ax-accent);
  color: var(--ax-bg);
  font-weight: 600;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-nav-link {
  position: relative;
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.375rem;
  padding: 0 0.75rem;
  color: rgb(156 163 175);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color var(--ax-transition),
    color var(--ax-transition),
    transform var(--ax-transition);
}

.site-nav-link:hover,
.site-nav-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.site-nav-link:focus-visible {
  outline: 2px solid var(--ax-accent);
  outline-offset: 2px;
}

.site-nav-link::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: rgb(107 114 128);
  opacity: 0;
  transition: opacity var(--ax-transition);
}

.site-nav-link:hover::before,
.site-nav-link:focus-visible::before {
  opacity: 0.65;
}

.site-nav-link[aria-current="page"],
.site-nav-link[aria-current="location"] {
  color: #fff;
  background: var(--ax-accent-soft);
  box-shadow: inset 0 -1px 0 var(--ax-accent);
}

.site-nav-link[aria-current="page"]::before,
.site-nav-link[aria-current="location"]::before {
  background: var(--ax-accent);
  opacity: 1;
}

.site-cta {
  transition:
    background-color var(--ax-transition),
    box-shadow var(--ax-transition),
    transform var(--ax-transition);
}

.site-cta:hover,
.site-cta:focus-visible {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

html::-webkit-scrollbar {
  width: 14px;
}

body::-webkit-scrollbar {
  width: 14px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: var(--ax-bg);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.65);
  border: 3px solid var(--ax-bg);
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.9);
}

footer a[aria-current="page"] {
  color: var(--ax-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* The navigation becomes a modal only while its mobile disclosure is open. */
.site-menu-backdrop { position: fixed; inset: 0; z-index: 49; background: #020617b3; }
.site-menu-backdrop[hidden] { display: none; }
html.site-menu-open { overflow: hidden; }
html.site-menu-open body { position: fixed; width: 100%; overflow: hidden; }
html.site-menu-open .ax-assistant { visibility: hidden; }
.mobile-menu-cta { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 16px; margin-bottom: 8px; border-radius: 5px; color: #0a0f1c; background: #00f3ff; font-size: 14px; font-weight: 700; text-decoration: none; }
.homepage .mobile-menu-cta { color: #0a0f1c; }
@media (max-width: 1023px) {
  .site-mobile-nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .site-mobile-nav .site-nav-link { min-height: 44px; }
}
@media (max-width: 640px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .site-header-bar { min-height: 68px; }
  body:not(.homepage) > footer { padding-block: 28px 16px; text-align: center; }
  body:not(.homepage) > footer p { margin-inline: auto; }
  body:not(.homepage) > footer :is(p, h4, span, div.text-xs) { font-size: 14px; }
}
@media (max-width: 419px) {
  .site-header .header-action { display: none; }
  .site-header .site-header-bar { grid-template-columns: minmax(0, 1fr) auto; }
}
