@media (max-width: 960px) {
  .split-layout,
  .contact-grid,
  .footer-grid,
  .card-grid-three {
    grid-template-columns: 1fr;
  }

  .portfolio-detail-layout {
    grid-template-columns: 1fr;
  }

  .portfolio-select-card {
    width: calc((100% - var(--space-5)) / 2);
    min-width: calc((100% - var(--space-5)) / 2);
    min-height: 29rem;
  }

  .header-inner {
    align-items: flex-start;
  }

  .hero-home,
  .hero-overlay,
  .page-hero-banner,
  .page-hero-overlay {
    min-height: 82vh;
  }

  .page-hero-banner,
  .page-hero-overlay {
    min-height: 44vh;
  }

  .feature-band {
    margin-top: 0;
  }

  .feature-band::before {
    inset: 0;
  }

  .feature-card {
    min-height: 0;
  }

  .feature-card-grid {
    transform: translateY(-2rem);
    margin-bottom: -2rem;
  }

  .about-home-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .faq-home-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .header-inner {
    min-height: auto;
    padding: 1.2rem 0;
  }

  .site-nav ul {
    gap: 1rem;
  }

  .header-cta {
    padding-inline: 0.9rem;
    font-size: 0.75rem;
  }

  .cta-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .section,
  .hero-section,
  .page-hero {
    padding: 3.5rem 0;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 0 1rem 1rem;
    background: rgba(251, 252, 252, 0.98);
    border-bottom: 1px solid rgba(216, 224, 227, 0.9);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 0 0;
  }

  .site-nav li + li {
    border-top: 1px solid var(--color-border);
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
  }

  .header-inner {
    position: relative;
    min-height: 5rem;
    align-items: center;
  }

  .header-main-nav {
    display: block;
    width: 100%;
  }

  .button-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-home {
    background-attachment: scroll;
    background-position: center center;
  }

  .page-hero-banner {
    background-attachment: scroll;
    background-position: center center;
  }

  .hero-overlay,
  .page-hero-overlay {
    min-height: 72vh;
    padding: 6rem 0 4rem;
  }

  .page-hero-overlay {
    min-height: 38vh;
    padding: 4rem 0 2.5rem;
  }

  .hero-home .hero-content h1 {
    font-size: clamp(2.3rem, 8vw, 3.4rem);
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-actions {
    align-items: center;
  }

  .hero-button {
    min-width: 0;
  }

  .feature-band {
    margin-top: 0;
    padding-top: var(--space-6);
  }

  .feature-band::before {
    inset: 0;
  }

  .feature-card-grid {
    transform: none;
    margin-bottom: 0;
  }

  .feature-card {
    border-radius: var(--radius-sm);
    padding: 1.5rem 1.5rem 1.2rem;
  }

  .portfolio-detail-gallery {
    grid-template-columns: 1fr;
  }

  .portfolio-carousel-viewport {
    border-radius: var(--radius-md);
  }

  .portfolio-carousel-arrow {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.7rem;
  }

  .portfolio-carousel-shell {
    padding-inline: 0;
  }

  .portfolio-carousel-arrow-prev {
    left: -1.3rem;
  }

  .portfolio-carousel-arrow-next {
    right: -1.3rem;
  }

  .portfolio-select-card {
    width: 100%;
    min-width: 100%;
    min-height: 27rem;
  }

  .portfolio-select-card h2,
  .portfolio-select-card p,
  .portfolio-select-card .tag {
    margin-inline: 1.5rem;
  }

  .portfolio-card-meta {
    padding-bottom: 1.5rem;
  }

  .portfolio-detail-panel {
    padding: 1.5rem;
  }

  .portfolio-detail-stage,
  .portfolio-stage-overlay {
    min-height: 20rem;
  }

  .feature-card h3 {
    font-size: 2rem;
  }

  .about-home-intro {
    margin-bottom: 3.5rem;
  }

  .about-home-intro p,
  .about-home-copy p {
    font-size: 1rem;
  }

  .about-home-copy h3 {
    font-size: 1.5rem;
  }

  .about-home-image {
    min-height: 18rem;
  }

  .faq-item summary {
    font-size: 1.2rem;
    padding: 1.1rem 2.5rem 1.1rem 2.5rem;
  }

  .faq-item summary::before,
  .faq-item summary::after {
    left: 1rem;
  }

  .faq-answer {
    padding: 0 1.2rem 1.1rem 2.5rem;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 1.25rem, var(--container-width));
  }

  .card {
    padding: 1.25rem;
  }

  .site-logo-image {
    width: 100%;
  }

  .site-logo {
    width: 8.75rem;
  }

  .footer-logo {
    width: 12rem;
  }

  .cta-form {
    grid-template-columns: 1fr;
  }

  .cta-banner h2 {
    font-size: 1.55rem;
  }

  .cta-subtitle {
    font-size: 0.95rem;
  }

  .cta-banner-inner {
    width: min(100% - 1.25rem, 1180px);
    padding: 3rem 0;
  }
}
