@media (max-width: 1180px) {
  .hero__metrics,
  .card-grid--four,
  .pillars,
  .footer-grid,
  .stats-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-section,
  .split-section--reverse,
  .expertise-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: 88px 1rem auto;
    display: grid;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(5, 9, 18, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    backdrop-filter: blur(18px);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .hero {
    min-height: auto;
    padding-top: 148px;
  }

  .hero__metrics,
  .card-grid--three,
  .dashboard-grid,
  .feature-panel__stats,
  .stats-stack,
  .dual-banner,
  .pillars--stacked {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section,
  .page-hero {
    padding-left: 0;
    padding-right: 0;
  }

  .hero h1,
  .section-heading h2,
  .section-copy h2,
  .page-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  .container {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .stats-band,
  .footer-grid,
  .pillars,
  .hero__metrics {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .floating-cta {
    left: 12px;
    right: 12px;
    bottom: 14px;
  }

  .floating-cta a {
    width: 100%;
  }

  .timeline__item {
    grid-template-columns: 1fr;
  }

  .timeline__item span:first-child {
    width: 60px;
    height: 60px;
  }

  .btn,
  .hero__actions a {
    width: 100%;
  }

  .contact-panel__actions {
    gap: 0.9rem;
  }
}
