/* Original navigation mark: an open orbit, a moving signal, a diamond destination. */
.signal-mark { display: inline-block; width: 28px; height: 28px; flex: 0 0 auto; vertical-align: middle; overflow: visible; color: var(--blue); fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.signal-orbit { opacity: .65; transform-origin: 14.5px 16px; transition: transform .5s var(--ease), opacity .3s; }
.signal-path { transition: transform .4s var(--ease); }
.signal-node { fill: currentColor; stroke: none; transform-origin: 26.5px 16px; transition: transform .4s var(--ease); }
a:is(:hover, :focus-visible) .signal-orbit { transform: rotate(-24deg); opacity: 1; }
a:is(:hover, :focus-visible) .signal-path { transform: translateX(1.5px); }
a:is(:hover, :focus-visible) .signal-node { transform: translateX(2px) scale(1.15); }

/* One header for every public-facing page, independent of page button styles. */
:root { --header: 84px; }
html { scroll-padding-top: calc(var(--header) + 24px); }
body.nav-open { overflow: hidden; }
.site-header {
  --nav-accent: #7cc0ee;
  --nav-line: #293744;
  position: sticky;
  inset: 0 0 auto;
  z-index: 50;
  height: auto;
  background: rgba(6, 10, 16, .94);
  border-bottom: 1px solid #24313f;
  box-shadow: 0 8px 32px #00000012;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #f4f6fa;
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.menu-ready .site-header { position: fixed; height: var(--header); }
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  width: min(1248px, calc(100% - 112px));
  height: auto;
  min-height: calc(var(--header) - 1px);
  margin-inline: auto;
}
.site-header .wordmark {
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
  gap: 5px;
  padding-block: 12px;
  color: white;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.site-header .wordmark b { color: #4e90c3; font-weight: 800; }
.site-header .wordmark span { color: white; font-weight: 500; }
.primary-nav { display: flex; align-items: center; gap: 5px; }
.primary-nav > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #b8c5d3;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.primary-nav > a:hover { background: #15202b; color: #f4f6fa; }
.primary-nav > a[aria-current] { background: #142330; color: var(--nav-accent); border-color: #294155; }
.primary-nav > a[aria-current]::after { content: ""; position: absolute; bottom: 5px; left: calc(50% - 7px); width: 14px; height: 2px; border-radius: 2px; background: var(--nav-accent); }
.primary-nav .nav-contact {
  gap: 17px;
  min-height: 46px;
  margin-left: 16px;
  padding: 10px 17px;
  border: 1px solid #486c87;
  background: #122333;
  color: #e2f1fc;
  box-shadow: inset 0 1px 0 #ffffff05;
}
.site-header .signal-mark { width: 24px; height: 24px; color: var(--nav-accent); }
.primary-nav .nav-contact:hover,
.primary-nav .nav-contact[aria-current] { background: var(--nav-accent); color: #08131c; border-color: var(--nav-accent); }
.primary-nav .nav-contact:is(:hover, [aria-current]) .signal-mark { color: currentColor; }
.primary-nav .nav-contact[aria-current]::after { display: none; }
.site-header :is(a, button):focus-visible { outline: 2px solid var(--nav-accent); outline-offset: 4px; }
.site-header [hidden] { display: none !important; }
.menu-toggle {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #3a4d60;
  border-radius: 7px;
  background: #111c29;
  color: #d8eafb;
  cursor: pointer;
}
.menu-toggle:hover { border-color: #7cc0ee; background: #172a3c; }
.menu-toggle span { position: absolute; top: 16px; left: 11px; width: 20px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform .2s ease; }
.menu-toggle span + span { top: 24px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span + span { transform: translateY(-4px) rotate(-45deg); }
.menu-ready .home-hero { padding-top: var(--header); }
body:not(.menu-ready) .home-hero { padding-top: 0; }
body:not(.menu-ready) .page-hero { padding-top: clamp(4rem, 10vw, 7rem); }

@media (max-width: 1150px) {
  .site-header .header-inner { width: calc(100% - 72px); gap: 24px; }
  .primary-nav > a { padding-inline: 11px; }
  .primary-nav .nav-contact { margin-left: 9px; padding-inline: 15px; gap: 12px; }
}
@media (max-width: 900px) {
  :root { --header: 72px; }
  .site-header .header-inner { width: calc(100% - 48px); flex-wrap: wrap; gap: 0; }
  .site-header .wordmark { font-size: 18px; }
  .primary-nav { width: 100%; flex-wrap: wrap; gap: 6px; padding-bottom: 16px; }
  .menu-ready .primary-nav { display: none; }
  .nav-open .primary-nav {
    position: absolute;
    inset: var(--header) 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 5px;
    max-height: calc(100svh - var(--header));
    padding: 18px 24px 24px;
    background: #0b121c;
    border-bottom: 1px solid #354a60;
    box-shadow: 0 24px 48px #0006;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-open .primary-nav > a { justify-content: flex-start; flex-shrink: 0; min-height: 50px; padding: 13px 16px; font-size: 15px; }
  .nav-open .primary-nav > a[aria-current]::after { left: auto; right: 18px; top: calc(50% - 3px); bottom: auto; width: 6px; height: 6px; border-radius: 50%; }
  .nav-open .primary-nav .nav-contact { justify-content: space-between; margin: 9px 0 0; min-height: 52px; }
}
@media (max-width: 480px) {
  .site-header .header-inner { width: calc(100% - 40px); }
  .site-header .wordmark { font-size: 17px; }
  .nav-open .primary-nav { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header *, .signal-mark * { transition: none; }
}
