@media (max-width: 1280px) {
  :root {
    --section-space: clamp(4rem, 6vw, 5.75rem);
    --section-space-lg: clamp(4.8rem, 7vw, 6.8rem);
    --heading-1: clamp(3rem, 6vw, 5.15rem);
    --heading-2: clamp(2.1rem, 4.4vw, 3.45rem);
  }

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

  .hero__grid,
  .contact-hero__grid,
  .projects-hero__grid,
  .services-hero__grid,
  .about-hero__grid,
  .split-section,
  .contact-page,
  .contact-map,
  .detail-stage {
    gap: 2.25rem;
  }

  .section-heading--compact {
    margin-bottom: 2.4rem;
  }

  .service-feature-list,
  .detail-layout,
  .contact-page__main {
    gap: 1.35rem;
  }
}

@media (max-width: 1080px) {
  .site-header__inner {
    gap: 1rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .hero__grid,
  .contact-hero__grid,
  .projects-hero__grid,
  .services-hero__grid,
  .about-hero__grid,
  .split-section,
  .contact-page,
  .contact-map,
  .detail-stage,
  .detail-cta,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .card-grid--four,
  .timeline,
  .timeline--five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value-strip,
  .card-grid--services,
  .contact-band,
  .contact-map__meta,
  .about-benefits,
  .service-feature,
  .service-feature--reverse,
  .service-feature__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid,
  .detail-gallery,
  .detail-note-grid,
  .detail-pagination {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero__visual,
  .about-hero__visual,
  .services-hero__visual {
    max-width: 42rem;
    width: 100%;
  }

  .hero__float-card {
    margin: -1.75rem 0 0 0.75rem;
  }

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

  .about-hero__note {
    margin: -1.5rem 0 0 0.75rem;
  }

  .cta-panel,
  .detail-cta {
    align-items: start;
  }

  .service-feature__visual {
    min-height: 18rem;
  }

  .detail-stage__content {
    align-content: start;
  }

  .detail-stage__media {
    min-height: clamp(22rem, 60vw, 34rem);
  }

  .contact-map__visual {
    min-height: clamp(18rem, 45vw, 24rem);
  }
}

@media (max-width: 860px) {
  :root {
    --heading-1: clamp(2.2rem, 8vw, 3.2rem);
    --heading-2: clamp(1.8rem, 6vw, 2.4rem);
    --heading-3: clamp(1.25rem, 4vw, 1.6rem);
  }

  .site-header {
    padding: 0.85rem 0;
  }

  .site-header.is-scrolled {
    padding: 0.65rem 0;
  }

  .site-header__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-medium);
    background: rgba(251, 248, 244, 0.96);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.65rem) scale(0.985);
    transform-origin: top;
    max-height: min(32rem, calc(100vh - 6rem));
    overflow-y: auto;
    pointer-events: none;
  }

  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .site-nav a {
    opacity: 0;
    transform: translateY(8px);
  }

  body.nav-open .site-nav a {
    opacity: 1;
    transform: translateY(0);
  }

  body.nav-open .site-nav a:nth-child(1) {
    transition-delay: 0.03s;
  }

  body.nav-open .site-nav a:nth-child(2) {
    transition-delay: 0.06s;
  }

  body.nav-open .site-nav a:nth-child(3) {
    transition-delay: 0.09s;
  }

  body.nav-open .site-nav a:nth-child(4) {
    transition-delay: 0.12s;
  }

  body.nav-open .site-nav a:nth-child(5) {
    transition-delay: 0.15s;
  }

  body.nav-open .site-nav a:nth-child(6) {
    transition-delay: 0.18s;
  }

  body.nav-open .site-header__toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body.nav-open .site-header__toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .site-header__toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-header__inner {
    position: relative;
    grid-template-columns: auto auto;
    gap: 0.75rem;
  }

  .site-header__cta {
    display: none;
  }

  .site-nav__cta {
    display: inline-flex;
    width: 100%;
    margin-top: 0.25rem;
  }

  .metric-list,
  .card-grid--three,
  .card-grid--four,
  .card-grid--services,
  .card-grid--two,
  .value-strip,
  .about-benefits,
  .contact-form__grid,
  .contact-map__meta,
  .service-feature,
  .service-feature--reverse,
  .service-feature__meta,
  .detail-story,
  .detail-note-grid,
  .detail-facts,
  .project-grid,
  .detail-gallery,
  .detail-pagination,
  .site-footer__inner,
  .timeline,
  .timeline--five,
  .contact-band,
  .contact-band__items {
    grid-template-columns: 1fr;
  }

  .section-heading--between {
    display: grid;
    justify-content: start;
    gap: 0.9rem;
    margin-bottom: 1.8rem;
  }

  .project-filters {
    gap: 0.6rem;
  }

  .project-filter {
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav a:not(.site-nav__cta) {
    width: 100%;
    padding: 0.2rem 0.1rem;
  }

  .site-nav a:not(.site-nav__cta)::before {
    inset: -0.35rem -0.5rem;
  }

  .site-brand__text strong {
    font-size: 1rem;
  }

  .site-brand__text small {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .hero__content,
  .page-hero__content,
  .section-heading,
  .body-copy,
  .contact-card,
  .form-card {
    gap: 1rem;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hero__actions .button {
    width: 100%;
  }

  .detail-pagination__link--next {
    text-align: left;
    justify-items: start;
  }

  .hero__visual {
    padding-left: 0;
  }

  .about-hero__visual {
    padding-left: 0;
  }

  .hero__visual-copy,
  .about-hero__visual-copy,
  .services-hero__visual-copy {
    top: 1.15rem;
    left: 1.15rem;
    max-width: 15rem;
  }

  .hero__visual-note {
    right: 1rem;
    bottom: 1rem;
  }

  .service-feature--reverse .service-feature__visual,
  .service-feature--reverse .service-feature__content {
    order: initial;
  }

  .hero__float-card {
    max-width: none;
    margin: -1.25rem 0 0;
  }

  .about-hero__note {
    max-width: none;
    padding: 1.35rem;
    margin: -1rem 0 0;
  }

  .project-browser {
    gap: 1.5rem;
  }

  .project-browser__count {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
  }

  .project-card__summary {
    min-height: auto;
  }

  .project-card__meta,
  .detail-services {
    gap: 0.5rem;
  }

  .contact-form__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form__footer .button,
  .cta-panel .button,
  .detail-cta .button {
    width: 100%;
    max-width: 22rem;
  }

  .site-footer__inner {
    gap: 1.35rem;
  }

  .projects-hero__aside,
  .contact-hero__aside,
  .contact-process-card {
    padding: 1.4rem;
  }

  .team-card {
    padding: 1.35rem;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: center;
  }
}

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

  :root {
    --section-space: 3.5rem;
    --section-space-lg: 4.2rem;
    --heading-1: clamp(2rem, 10vw, 2.65rem);
    --heading-2: clamp(1.6rem, 7vw, 2.15rem);
    --heading-3: clamp(1.1rem, 5vw, 1.45rem);
  }

  .section,
  .page-hero,
  .hero {
    padding: 3.2rem 0;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .section-kicker {
    gap: 0.6rem;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
  }

  .section-kicker::before {
    width: 1.8rem;
  }

  .hero__lead,
  .page-hero__lead,
  .detail-stage__lead,
  .body-copy p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero__visual-frame {
    aspect-ratio: 4 / 5.2;
  }

  .about-hero__visual-frame {
    aspect-ratio: 4 / 5.2;
  }

  .services-hero__visual-frame {
    aspect-ratio: 4 / 5.2;
  }

  .metric-list {
    gap: 0.5rem;
  }

  .metric-list li {
    padding: 1rem;
  }

  .hero__float-card,
  .value-card,
  .service-feature,
  .service-card,
  .principle-card,
  .timeline__item,
  .approach-panel,
  .contact-card,
  .form-card,
  .cta-panel,
  .contact-band,
  .project-card,
  .detail-cta,
  .detail-pagination__link {
    padding: 1.25rem;
  }

  .project-filter {
    min-height: 2.8rem;
    padding: 0.68rem 0.9rem;
  }

  .project-card__visual {
    padding: 1.25rem;
    aspect-ratio: 4 / 4.8;
  }

  .project-card__visual strong {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  .contact-form__footer {
    align-items: flex-start;
  }

  .detail-stage__media {
    min-height: 19rem;
    padding: 1.25rem;
  }

  .contact-map__visual {
    min-height: 17rem;
  }

  .detail-stage__media-copy {
    max-width: 16rem;
  }

  .detail-stage__media-copy strong {
    font-size: clamp(2.25rem, 12vw, 3.2rem);
  }

  .detail-gallery__item {
    aspect-ratio: 4 / 4.6;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    min-height: 3.2rem;
    padding: 0.9rem;
  }

  .site-footer {
    padding: 2.5rem 0 2.75rem;
  }

  .hero__float-card {
    margin: -1.35rem 0 0;
  }

  .about-hero__note {
    margin: -1.2rem 0 0;
  }

  .site-brand__text small {
    letter-spacing: 0.1em;
  }
}

@media (max-width: 480px) {
  .site-brand {
    gap: 0.65rem;
  }

  .site-brand__mark {
    font-size: 0.68rem;
    padding-right: 0.85rem;
    margin-right: 0.4rem;
  }

  .site-brand__text strong {
    font-size: 0.92rem;
  }

  .site-brand__text small {
    display: none;
  }

  .hero__visual-copy,
  .about-hero__visual-copy,
  .services-hero__visual-copy {
    max-width: 12rem;
  }

  .hero__visual-copy strong,
  .about-hero__visual-copy strong,
  .services-hero__visual-copy strong {
    font-size: 1.35rem;
  }

  .contact-form__footer .button,
  .cta-panel .button,
  .detail-cta .button,
  .site-nav__cta {
    max-width: none;
  }

  .site-footer__social a {
    width: 2.45rem;
    height: 2.45rem;
  }

  .site-footer__social svg {
    width: 0.95rem;
    height: 0.95rem;
  }
}
