/* One continuous glass surface behind the unchanged header layout. */
.site-header,
.site-header.scrolled {
  position: fixed;
  top: 0;
  min-height: 64px;
  padding: 0;
  gap: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background: #111a30d9;
  border-bottom: 1px solid #b7c5e81f;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity .35s ease, box-shadow .35s ease;
}

.site-header.scrolled::before {
  opacity: 1;
  box-shadow: 0 4px 18px #0b123014;
}

.site-header > .wordmark,
.site-header .desktop-nav,
.site-header .nav-contact,
.site-header .header-actions > .button,
.site-header .menu-toggle {
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.site-header > .wordmark {
  align-items: center;
  flex-direction: column;
  padding: 0;
  border: 0;
  border-radius: 8px;
  flex-shrink: 0;
}

.site-header .wordmark > span.brand-slogan {
  margin: 0;
  color: #f2f5ff;
  font: 650 9px/1.2 Manrope, 'Segoe UI', sans-serif;
  letter-spacing: .35px;
  white-space: nowrap;
  text-shadow: 0 1px 9px #000000a6;
}

.site-header .desktop-nav {
  min-height: 48px;
  margin-left: 0;
  padding: 0;
  gap: 22px;
  border-radius: 14px;
}

.site-header .desktop-nav a {
  min-height: 44px;
  padding: 8px 6px;
  border-radius: 8px;
  color: #f2f5ff;
  text-shadow: 0 1px 9px #000000a6;
}

.site-header .desktop-nav a:hover {
  color: #fff;
  background: transparent;
}

.site-header .header-actions {
  gap: 10px;
  background: transparent;
}

.site-header .nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 11px;
  color: #f2f5ff;
  text-shadow: 0 1px 9px #000000a6;
}

.site-header .header-actions > .button {
  min-height: 44px;
  border-radius: 11px;
  color: #fff;
  background: transparent;
  border-color: transparent;
  text-shadow: 0 1px 9px #000000a6;
}

.site-header .header-actions > .button:hover,
.site-header .nav-contact:hover,
.site-header .menu-toggle:hover {
  background-color: transparent;
  border-color: transparent;
}

.site-header .menu-toggle {
  border-radius: 11px;
  flex-shrink: 0;
}

.hero h1 {
  font-weight: 800;
}

.hero-slogan {
  margin-top: 14px;
  color: #f2f5ff;
  font-family: var(--heading-font);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.3px;
}

.hero-slogan + .hero-description {
  margin-top: 16px;
}

.hero-content {
  top: -28px;
}

/* A soft fade belongs to the hero itself, rather than to boxed controls. */
.hero-shade::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 125px;
  background: linear-gradient(180deg, #03081780, #03081720 55%, transparent);
  pointer-events: none;
}

.mobile-menu {
  top: 72px;
  max-height: calc(100dvh - 88px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-width: 1180px) {
  .site-header .desktop-nav {
    gap: 12px;
    padding-inline: 0;
  }

  .site-header .nav-contact {
    display: none;
  }
}

@media (max-width: 900px) {
  .site-header,
  .site-header.scrolled {
    min-height: 64px;
  }

  .site-header .desktop-nav {
    display: none;
  }

  .site-header .menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 600px) {
  .hero-content {
    top: -20px;
  }

  .site-header,
  .site-header.scrolled {
    width: calc(100% - 28px);
    min-height: 56px;
    padding: 0;
    gap: 6px;
  }

  .site-header > .wordmark {
    padding: 0;
    border-radius: 8px;
  }

  .site-header .wordmark .brand-logo {
    width: clamp(112px, 35vw, 148px);
    height: auto;
  }

  .site-header .wordmark > span.brand-slogan {
    font-size: 8px;
    letter-spacing: .15px;
  }

  .site-header .header-actions {
    gap: 6px;
  }

  .site-header .header-actions > .button {
    min-height: 44px;
    padding-inline: 10px;
    font-size: 10px;
    gap: 6px;
  }

  .site-header .header-actions > .button .icon {
    width: 14px;
  }

  .site-header .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .mobile-menu {
    top: 64px;
    max-height: calc(100dvh - 80px);
  }
}

@media (max-width: 340px) {
  .hero h1 {
    font-size: 32px;
  }
}
