@media (max-width: 1100px) {
  .home-hero__grid,
  .home-services__story,
  .home-approach__grid,
  .home-inspiration__grid,
  .home-contact__card {
    gap: clamp(38px, 5vw, 66px);
  }

  .home-hero__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
  }

  .home-services__story {
    grid-template-columns: minmax(320px, 0.82fr) minmax(400px, 1.18fr);
  }

  .home-contact__card {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 880px) {
  .home-hero {
    padding-top: 70px;
  }

  .home-hero__grid,
  .home-services__story,
  .home-approach__grid,
  .home-inspiration__grid,
  .home-contact__card {
    grid-template-columns: 1fr;
  }

  .home-hero__visual {
    min-height: min(82vw, 650px);
  }

  .home-needs__grid {
    grid-template-columns: 1fr;
  }

  .need-card {
    min-height: auto;
  }

  .need-card h3 {
    margin-top: 42px;
  }

  .home-services__visual {
    display: none;
  }

  .service-card {
    min-height: auto;
    opacity: 1;
  }

  .service-card > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin-top: 30px;
    border-radius: 22px;
    object-fit: cover;
  }

  .home-approach__intro {
    position: static;
  }

  .home-inspiration__copy {
    max-width: 680px;
  }

  .home-contact__visual {
    min-height: min(72vw, 620px);
  }

  .home-contact__visual::after {
    background: linear-gradient(180deg, transparent 65%, rgba(0, 105, 56, 0.55));
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 72px;
    --page-gutter: clamp(18px, 5vw, 32px);
  }

  .site-header {
    backdrop-filter: none;
  }

  .brand {
    width: 174px;
    height: 50px;
  }

  .has-js .menu-toggle {
    display: grid;
    margin-left: auto;
  }

  .has-js .primary-nav {
    position: fixed;
    inset: calc(var(--header-height) + env(safe-area-inset-top)) 0 0;
    z-index: 39;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: safe center;
    gap: 0;
    padding: 32px var(--page-gutter) max(32px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-16px);
    background: var(--cream);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    transition: opacity 180ms ease, transform 220ms ease, visibility 0s linear 220ms;
  }

  .has-js .site-header.is-menu-open .primary-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .has-js .primary-nav a {
    min-height: 62px;
    justify-content: flex-start;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 27px;
    font-weight: 520;
    letter-spacing: -0.02em;
    text-transform: none;
  }

  .has-js .primary-nav a::after {
    display: none;
  }

  :root:not(.has-js) .site-header {
    height: auto;
    min-height: var(--header-height);
    flex-wrap: wrap;
  }

  :root:not(.has-js) .primary-nav {
    width: 100%;
    min-height: 44px;
    order: 3;
    overflow-x: auto;
  }

  .home-thread {
    left: 10px;
  }
}

@media (max-width: 620px) {
  .home-hero {
    min-height: auto;
    padding: 54px 0 92px;
  }

  .home-hero h1 {
    font-size: clamp(48px, 15.2vw, 68px);
  }

  .home-hero__intro {
    margin-top: 24px;
    font-size: 17px;
  }

  .home-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-actions .button {
    width: 100%;
  }

  .home-hero__service-line {
    line-height: 1.8;
  }

  .home-hero__visual {
    min-height: 112vw;
    margin-top: 10px;
  }

  .home-hero__image-frame {
    inset: 4% 0 11%;
  }

  .home-hero__visual figcaption {
    right: 12px;
    bottom: 2%;
    left: 12px;
  }

  .home-hero__material--one {
    right: -5%;
  }

  .home-scroll-cue {
    display: none;
  }

  .section-heading h2,
  .home-approach h2,
  .home-inspiration h2,
  .home-contact h2 {
    font-size: clamp(43px, 13.4vw, 62px);
  }

  .home-needs,
  .home-services,
  .home-inspiration {
    padding: 92px 0;
  }

  .home-needs__grid {
    margin-top: 48px;
  }

  .need-card {
    padding: 30px;
  }

  .home-services__story {
    margin-top: 58px;
  }

  .service-card {
    padding: 50px 0;
  }

  .service-card h3 {
    margin-top: 42px;
    font-size: clamp(39px, 12vw, 58px);
  }

  .service-card > p {
    font-size: 16px;
  }

  .home-approach {
    padding: 96px 0;
  }

  .home-approach__steps li {
    grid-template-columns: 34px 1fr;
    gap: 18px;
    min-height: 200px;
  }

  .home-inspiration__collage {
    min-height: 118vw;
  }

  [data-collage-tile="one"] {
    inset: 0 8% 34% 0;
  }

  [data-collage-tile="two"] {
    top: 3%;
    width: 42%;
    height: 38%;
  }

  [data-collage-tile="three"] {
    right: 0;
    width: 62%;
    height: 48%;
  }

  .home-contact {
    padding-right: 0;
    padding-left: 0;
  }

  .home-contact__card {
    border-radius: 0;
  }

  .home-contact__visual {
    min-height: 78vw;
  }

  .home-contact__copy {
    padding: 48px var(--page-gutter) 58px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding-bottom: max(58px, calc(40px + env(safe-area-inset-bottom)));
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .home-hero {
    min-height: auto;
  }

  .home-hero__grid {
    grid-template-columns: 1fr 0.8fr;
  }

  .home-hero h1 {
    font-size: clamp(44px, 7vw, 62px);
  }

  .home-hero__visual {
    min-height: 430px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (hover: none), (pointer: coarse) {
  .button:hover,
  .need-card:hover,
  .text-link:hover span {
    transform: none;
  }
}

@media (forced-colors: active) {
  .home-thread,
  .home-hero__material,
  .home-approach::after {
    display: none;
  }

  .button,
  .home-needs__grid,
  .need-card,
  .home-services__visual-frame,
  .home-contact__card {
    border: 1px solid CanvasText;
  }
}
