:root {
  --max-width: 1200px;
}

@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .page-shell {
    width: min(100%, calc(100% - 1.2rem));
    padding-top: 0.5rem;
  }

  .site-header {
    border-radius: 1.2rem;
    padding: 0.9rem 1rem;
    align-items: center;
  }

  .menu-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    left: 0;
    flex-direction: column;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(5, 8, 22, 0.97);
    border: 1px solid var(--border);
  }

  .site-nav.open {
    display: flex;
  }

  .hero,
  .section-card {
    padding: 1.2rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .contact-links {
    flex-direction: column;
  }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@media (min-width: 1440px) {
  .page-shell {
    width: min(1400px, calc(100% - 3rem));
  }
}
