.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  background: var(--nav-blur);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.15rem;
  font-size: 0.88rem;
}

.desktop-nav > a,
.nav-drop-toggle {
  color: var(--text-muted);
  transition: color var(--transition);
  cursor: pointer;
}

.desktop-nav > a:hover,
.desktop-nav > a.is-active,
.nav-drop.is-open .nav-drop-toggle,
.nav-drop-toggle:hover {
  color: var(--text);
}

.nav-drop {
  position: relative;
}

.nav-drop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  background: none;
  border: none;
  font: inherit;
  padding: 0;
}

.nav-drop-toggle svg {
  width: 0.7rem;
  height: 0.7rem;
  transition: transform var(--transition);
}

.nav-drop.is-open .nav-drop-toggle svg {
  transform: rotate(180deg);
}

.nav-drop-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 280px;
  padding: 0.65rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 80;
}

.nav-drop.is-open .nav-drop-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-drop-panel a {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
}

.nav-drop-panel a:hover,
.nav-drop-panel a.is-active {
  background: var(--accent-soft);
}

.nav-drop-panel strong {
  font-weight: 400;
  font-size: 0.92rem;
}

.nav-drop-panel span {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 200;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-cta {
  display: none;
}

@media (min-width: 900px) {
  .desktop-nav {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }
}

@media (min-width: 900px) and (max-width: 1100px) {
  .desktop-nav {
    gap: 0.85rem;
    font-size: 0.82rem;
  }
}

.mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-sheet-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(92vw, 400px);
  height: 100%;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border-subtle);
  padding: 1.25rem 1.25rem calc(1.25rem + var(--safe-bottom));
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: auto;
}

.mobile-sheet.is-open .mobile-sheet-panel {
  transform: none;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  z-index: 1;
  padding-bottom: 0.5rem;
}

.sheet-groups {
  display: grid;
  gap: 1.35rem;
}

.sheet-group h3 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.sheet-group a {
  min-height: 52px;
  display: grid;
  align-content: center;
  gap: 0.12rem;
  padding: 0.55rem 0.2rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text);
  cursor: pointer;
}

.sheet-group a span {
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 200;
}

.sheet-group a.is-active,
.sheet-group a:hover {
  color: var(--accent);
}

.sheet-group a.is-active span,
.sheet-group a:hover span {
  color: var(--text-muted);
}

.sheet-nav {
  display: grid;
  gap: 0.25rem;
}

.sheet-nav a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0.6rem 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.sheet-nav a.is-active,
.sheet-nav a:hover {
  color: var(--text);
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 65;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.15rem;
  padding: 0.4rem 0.35rem calc(0.4rem + var(--safe-bottom));
  background: var(--nav-blur);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
}

.bottom-nav a,
.bottom-nav button {
  min-height: 52px;
  display: grid;
  place-items: center;
  gap: 0.15rem;
  color: var(--text-soft);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.bottom-nav svg {
  width: 1.15rem;
  height: 1.15rem;
}

.bottom-nav a.is-active,
.bottom-nav button.is-active {
  color: var(--accent);
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  padding: 3rem 0 calc(2rem + var(--bottom-nav-h) + var(--safe-bottom));
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .site-footer {
    padding-bottom: 3rem;
  }
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

.footer-brand {
  display: grid;
  gap: 0.85rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-weight: 200;
  max-width: 22rem;
}

.footer-col h3 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  padding: 0.35rem 0;
  font-weight: 200;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-credit a {
  color: var(--accent);
  font-weight: 400;
}

.newsletter {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.newsletter-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.grid-cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid-cards.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid-cards.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-cards.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.services-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
}

@media (min-width: 900px) {
  .services-mini {
    grid-template-columns: repeat(4, 1fr);
  }
}

.services-mini a {
  display: block;
  padding: 0.35rem 0;
}

.services-mini .t {
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.services-mini .d {
  color: var(--text-muted);
  font-weight: 200;
  font-size: 0.92rem;
  margin-top: 0.2rem;
}

.home-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

.spline-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.spline-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.home-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--spline-veil);
  pointer-events: none;
}

.home-hero-content {
  position: relative;
  z-index: 2;
}

.content {
  position: relative;
  z-index: 10;
}

.cta-band {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.25rem;
  background: linear-gradient(135deg, var(--accent-soft), transparent 55%);
  text-align: center;
}

@media (min-width: 768px) {
  .cta-band {
    padding: 3rem;
  }
}

.cta-band h2 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -0.03em;
}

.cta-band p {
  margin: 0.75rem auto 1.25rem;
  color: var(--text-muted);
  max-width: 32rem;
  font-weight: 200;
}

.has-home-spline .site-header {
  background: transparent;
  border-bottom-color: transparent;
}

.has-home-spline .site-header.is-solid {
  background: var(--nav-blur);
  border-bottom-color: var(--border-subtle);
}

@media (min-width: 480px) {
  .hero-cta {
    flex-direction: row !important;
    max-width: none !important;
  }
}
