/* =============================================
   PILL HEADER
   ============================================= */
#header {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(-32px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.nav-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 7px 6px 16px;
  background: rgba(9,20,42,0.68);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid rgba(179,207,229,0.13);
  border-radius: 999px;
  box-shadow:
    0 8px 36px rgba(0,0,0,0.45),
    0 0 0 1px rgba(56,189,248,0.04) inset,
    0 1px 0 rgba(255,255,255,0.055) inset;
  white-space: nowrap;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.nav-pill:hover {
  border-color: rgba(91,163,208,0.24);
  box-shadow: 0 12px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(56,189,248,0.08) inset, 0 1px 0 rgba(255,255,255,0.055) inset;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 15px; font-weight: 600;
  color: var(--c-frost);
  text-decoration: none;
  letter-spacing: 1px;
  padding-right: 14px;
  border-right: 1px solid rgba(179,207,229,0.13);
  margin-right: 6px;
}
.nav-logo span { color: var(--c-accent); }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links li a {
  display: block;
  font-size: 13px; font-weight: 500;
  color: rgba(179,207,229,0.70);
  text-decoration: none;
  padding: 7px 15px;
  border-radius: 999px;
  letter-spacing: .2px;
  transition: color .2s ease, background .2s ease;
}
.nav-links li a:hover  { color: var(--c-frost); background: rgba(91,163,208,0.10); }
.nav-links li a.active { color: var(--c-frost); background: rgba(91,163,208,0.14); }
.nav-cta-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px;
  background: var(--c-blue);
  color: #fff; text-decoration: none;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  margin-left: 6px;
  transition: background .22s ease, transform .22s ease, box-shadow .22s ease;
}
.nav-cta-pill:hover {
  background: var(--c-vivid);
  transform: scale(1.04);
  box-shadow: 0 4px 18px rgba(56,189,248,0.3);
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px 8px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--c-steel); border-radius: 2px;
  transition: all .25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: rgba(6,12,24,0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 24px; font-weight: 600;
  color: var(--c-steel); text-decoration: none;
  transition: color .2s ease;
}
.mobile-menu a:hover { color: var(--c-frost); }
.mobile-close {
  position: absolute; top: 24px; right: 28px;
  background: none; border: none;
  color: var(--c-steel); font-size: 26px; cursor: pointer;
}
/* =========================
   HEADER / NAV RESPONSIVE
   ========================= */

/* Tablet and below — collapse full nav into hamburger */
@media (max-width: 992px) {
  .nav-links,
  .nav-cta-pill {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* Small mobile — slightly bigger tap target on the hamburger button
   (current padding gives roughly a 38×24px hit area, under the ~44px
   accessibility guideline for touch targets) */
@media (max-width: 576px) {
  .hamburger {
    padding: 10px 12px;
  }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }
:focus-visible { outline: 3px solid #a6dfff; outline-offset: 3px; }
section[id] { scroll-margin-top: 110px; }
html, body { max-width: 100%; overflow-x: clip; }
/* Header button accent */
.nav-cta-pill { background: #326b98; }
.nav-cta-pill:hover { background: #4389b9; box-shadow: 0 4px 18px rgba(50, 107, 152, .35); }
/* Tablet layout: 601px through 1024px only. */
@media (min-width: 601px) and (max-width: 1024px) {
  #home { min-height: 0; padding: 150px 0 70px; }
  #home .container-hero { padding-inline: clamp(28px, 5vw, 52px); }
  #home .hero-content { max-width: 620px; }
  #home .hero-btns { margin-bottom: 28px; }
  #home .scroll-indicator { display: none; }
  #about { padding-block: 35px; }
  #about .about-wrap { margin: 0 auto; padding-inline: clamp(28px, 5vw, 52px); gap: 40px; }
  #about .about-text { margin-left: 0; min-width: 0; }
  #about .about-bio { margin-right: 0; }
  #contact { padding-block: 75px; }
  #contact .ct-heading-wrap, #contact .ct-wrap { padding-inline: clamp(28px, 5vw, 52px); }
  #contact .ct-heading-wrap.visible { transform: none; }
  #contact .ct-info { margin-left: 0; min-width: 0; }
  #contact .ct-form-wrap { width: 100%; min-width: 0; margin: 0; }
  #contact .ct-form-card { padding: 30px; }
  .footer-wrap .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; padding: 3rem clamp(28px, 5vw, 52px); }
  .footer-wrap .f-brand { grid-column: 1 / -1; }
  .footer-wrap .footer-status, .footer-wrap .footer-bottom { padding-inline: clamp(28px, 5vw, 52px); }
}
@media (min-width: 901px) and (max-width: 1024px) {
  #about .about-wrap { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
  #about .about-photos { height: 390px; }
  #services .svc-deck { margin-right: 0; }
  #contact .ct-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; }
}
