/* Shared navigation for the homepage and portfolio pages. */
.site-header {
  position: relative;
  z-index: 2;
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #f5f5f5;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  gap: 0;
  min-height: 76px;
  background: linear-gradient(110deg, #1b2835, #141e2b 65%, #182434);
  backdrop-filter: none;
  border: 0;
  border-bottom: 1px solid rgb(168 195 220 / 28%);
  box-shadow: none;
}
.site-header .brand, .site-nav a {
  box-sizing: border-box;
  text-decoration: none;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}
.site-header .brand { flex: 0 0 auto; min-width: 210px; padding: 14px 28px; }
.brand-mark { display: none; }
.brand-text { font-family: var(--font-display); font-size: 32px; font-weight: 500; line-height: 1; text-transform: none; white-space: nowrap; }
.header-note { display: none; }
.site-nav { display: flex; min-width: 0; flex-wrap: nowrap; align-items: stretch; justify-content: flex-end; margin-left: auto; padding: 0; gap: 0; border: 0; border-radius: 0; background: transparent; }
.site-nav a { padding: 14px 22px; color: #c0cbd7; font-size: 16px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.site-nav a.active { background: rgb(153 189 224 / 13%); color: #f1f7ff; box-shadow: none; }
.site-header .brand:focus-visible, .site-nav a:focus-visible { outline: 2px solid #e5e5e5; outline-offset: -4px; }
@media (hover: hover) {
  .site-header .brand:hover, .site-nav a:hover { color: #fff; background-color: rgb(153 189 224 / 9%); transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .brand, .site-nav a { transition: none; }
}

@media (max-width: 960px) {
  .site-header .brand { min-width: 180px; padding-inline: 20px; }
  .site-nav a { padding-inline: 12px; }
}
@media (max-width: 680px) {
  .site-header { margin-inline: 0; flex-wrap: wrap; gap: 0; }
  .site-header .brand { width: 100%; min-height: 64px; justify-content: flex-start; padding-inline: 20px; border-right: 0; }
  .brand-text { font-size: 30px; }
  .site-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 0; }
  .site-nav a { min-height: 48px; padding: 10px 8px; font-size: 15px; }
}
@media (max-width: 380px) {
  .site-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
