/* Shared navigation for the main fourthweb.ai site. */
nav.site-nav {
  inset: 0 0 auto;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(16px, 3vw, 48px);
  background: rgba(4, 6, 15, .97);
  border-bottom: 1px solid rgba(232, 237, 248, .18);
  font-family: 'Syne', Arial, sans-serif;
  cursor: auto;
}
.site-nav a { text-decoration: none; }
.site-brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #f0f4ff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: .06em;
}
.site-brand { white-space: nowrap; }
.site-brand-name {
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 18%, #4a9eff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #4a9eff;
}
.site-brand-with-dots { gap: 14px; }
.site-brand-dots { display: inline-flex; gap: 5px; align-items: center; flex-shrink: 0; }
.site-brand-dots i { width: 7px; height: 7px; border-radius: 50%; background: #f0f4ff; }
.site-brand-dots i:nth-child(2) { background: #4a9eff; }
.site-brand-dots i:nth-child(3) { background: #ff4444; }
.site-brand-dots i:nth-child(4) { background: #ffa900; }
.site-brand-with-dots .site-brand-name {
  background-image: linear-gradient(90deg, #f0f4ff 0%, #4a9eff 36%, #ff4444 72%, #ffa900 100%);
}
.site-brand-domain { color: #ffffff; -webkit-text-fill-color: #ffffff; }
.site-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-primary a, .site-email, .site-footer-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #e8edf8;
  font: 600 13px/1.4 'Syne', Arial, sans-serif;
  white-space: nowrap;
}
.site-primary a { min-width: 44px; justify-content: center; font-family: 'Bebas Neue', sans-serif; font-size: 20px; font-weight: 400; letter-spacing: .04em; }
.site-primary li:nth-child(1) a { color: #ffffff; }
.site-primary li:nth-child(2) a { color: #4a9eff; }
.site-primary li:nth-child(3) a { color: #ff4444; }
.site-primary li:nth-child(4) a { color: #ffa900; }
.site-primary a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-nav-tools { display: flex; align-items: center; gap: 14px; }
.site-email { font-weight: 400; }
.site-menu { position: relative; }
.site-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  list-style: none;
  border: 1px solid rgba(232, 237, 248, .3);
  border-radius: 4px;
  color: #e8edf8;
  cursor: pointer;
}
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu-icon { display: grid; gap: 5px; }
.site-menu-icon span { width: 19px; height: 2px; background: currentColor; }
.site-menu-links {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(280px, calc(100vw - 32px));
  max-height: calc(100dvh - 150px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  background: #0c1228;
  border: 1px solid rgba(232, 237, 248, .25);
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(4, 6, 15, .55);
}
.site-menu-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  color: #e8edf8;
  font-size: 15px;
  font-weight: 500;
}
.site-menu-links a:hover, .site-menu summary:hover { background: #182342; }
.site-nav a:hover, .site-footer-email:hover { color: #ffa900; }
.site-nav :is(a, summary):focus-visible, .site-footer-email:focus-visible {
  outline: 2px solid #ffa900;
  outline-offset: 4px;
}
html { scroll-padding-top: 88px; }
@media (max-width: 1100px) {
  nav.site-nav { flex-wrap: wrap; gap: 0 12px; padding: 8px 16px; }
  .site-nav-tools { margin-left: auto; gap: 10px; }
  .site-nav-tools > .site-email { display: none; }
  .site-primary { order: 3; flex-basis: 100%; justify-content: space-between; gap: 8px; }
  html { scroll-padding-top: 120px; }
  body > .hero { padding-top: 140px; }
}
@media (max-width: 380px) {
  .site-brand { font-size: 22px; }
  .site-email { font-size: 12px; }
  .site-nav-tools { gap: 6px; }
  .site-primary a { font-size: 18px; letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav * { transition: none; }
}
