@media (max-width: 820px) {
  html { -webkit-text-size-adjust: 100%; }
  body { font-size: 16px; overflow-x: hidden; }

  header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 68px;
    padding: 0 max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
    border-bottom: 1px solid rgba(23, 23, 20, .18);
    background: rgba(236, 236, 232, .92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .identity { font-size: .78rem; line-height: 1.22; }

  .menu-button {
    display: block;
    padding: .65rem 0;
    color: inherit;
    font: 400 .72rem/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: .09em;
  }

  header nav#nav {
    display: none;
    position: fixed;
    z-index: 19;
    top: 68px;
    left: 0;
    right: 0;
    height: calc(100svh - 68px);
    padding: 1.5rem max(18px, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    background: rgba(236, 236, 232, .98);
    flex-direction: column;
    gap: 0;
  }

  header nav#nav.open { display: flex; }
  header nav#nav a {
    display: block;
    padding: 1.05rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: clamp(1.9rem, 9vw, 3rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -.04em;
  }
  header nav#nav .language {
    margin-top: auto;
    border: 0;
    font-size: .76rem;
    letter-spacing: .09em;
    text-transform: uppercase;
  }

  .hero { display: block; height: auto; min-height: 0; padding: 0; }
  .hero figure { width: 100%; height: min(68svh, 680px); min-height: 480px; }
  .hero-copy {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0;
    padding: 1.35rem max(18px, env(safe-area-inset-right)) 3.4rem max(18px, env(safe-area-inset-left));
  }
  .location, .scope { font-size: .68rem; line-height: 1.45; }
  .scope { text-align: right; }
  .hero h1 {
    grid-column: 1 / 3;
    writing-mode: initial;
    transform: none;
    align-self: auto;
    margin: 3.6rem 0 0;
    font-size: clamp(2.75rem, 12vw, 4.6rem);
    line-height: .93;
    letter-spacing: -.06em;
  }

  .position {
    grid-template-columns: 1fr;
    padding: 5.75rem max(18px, env(safe-area-inset-right)) 6.25rem max(18px, env(safe-area-inset-left));
    border-top: 1px solid var(--rule);
  }
  .position h2, .body { grid-column: 1; }
  .position h2 { margin-top: 2.6rem; font-size: clamp(2.45rem, 10.6vw, 4rem); line-height: 1.01; }
  .body { margin-top: 2.8rem; max-width: 34rem; font-size: 1rem; line-height: 1.65; }

  .projects { padding: 1.7rem max(18px, env(safe-area-inset-right)) 6rem max(18px, env(safe-area-inset-left)); }
  .section-title { grid-template-columns: 1fr auto; padding-bottom: 1rem; }
  .section-title p:last-child { text-align: right; }
  .project-cluster { grid-template-columns: 1fr; margin-top: 3.8rem; }
  .project-cluster > h2 { margin: 0 0 .8rem; font-size: 1.25rem; line-height: 1.15; letter-spacing: -.02em; }
  .cluster-projects .project, .project {
    grid-template-columns: 2.2rem minmax(0, 1fr);
    min-height: 0;
    padding: 1.35rem 0;
    align-items: start;
  }
  .project:hover { padding-left: 0; background: transparent; }
  .project > b { display: none; }
  .project > span { padding-top: .35rem; font-size: .66rem; }
  .project h3 {
    margin: 0 0 .55rem;
    font-size: clamp(1.9rem, 8.2vw, 3rem);
    line-height: 1.02;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
  }
  .project div p { padding-right: .5rem; font-size: .88rem; line-height: 1.42; }

  .practice {
    grid-template-columns: 1fr;
    gap: 2.6rem;
    padding: 6rem max(18px, env(safe-area-inset-right)) 6.4rem max(18px, env(safe-area-inset-left));
  }
  .practice h2 { margin: 0 0 3.8rem; font-size: clamp(2.65rem, 11vw, 4.3rem); line-height: .98; }
  .columns { grid-template-columns: 1fr; gap: 2.1rem; margin: 0; }
  .columns p { font-size: .98rem; line-height: 1.65; }
  .practice ol { grid-template-columns: 1fr 1fr; margin-top: 4.7rem; }
  .practice li { min-height: 128px; padding: 1.2rem 1rem 2rem 0; line-height: 1.35; }
  .practice li + li { padding-left: 1rem; }
  .practice li:nth-child(2) { border-right: 0; }
  .practice li:nth-child(n+3) { border-top: 1px solid #5d5d57; }
  .practice li span { margin-bottom: 2.2rem; }

  .contact {
    min-height: 78svh;
    padding: 5.5rem max(18px, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  }
  .contact h2 { margin: auto 0; font-size: clamp(3.5rem, 16vw, 6rem); line-height: .88; }
  .contact > a { font-size: 1rem; overflow-wrap: anywhere; }
  .contact footer { grid-template-columns: 1fr auto; gap: 1rem; margin-top: 2rem; }
  .contact footer span:last-child { display: none; }

  .slider figcaption { left: 18px; bottom: 1.15rem; gap: .8rem; font-size: .65rem; }
  .slider-controls { right: 18px; bottom: 1rem; gap: .65rem; }
  .slide-dot { font-size: .66rem; }
  .slider-toggle { display: none; }
  .slider-progress { height: 1px; }

  body:not(:has(.hero)) header nav { gap: 1rem; }
  body:not(:has(.hero)) header nav a { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
  body:not(:has(.hero)) header nav a:nth-child(2),
  body:not(:has(.hero)) header nav a:nth-child(3) { display: none; }

  .project-hero { padding: 3.8rem max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left)); }
  .project-hero .label { font-size: .66rem; }
  .project-hero h1 {
    margin: 3.1rem 0 2.8rem;
    font-size: clamp(3.35rem, 15vw, 5.5rem);
    line-height: .88;
    letter-spacing: -.06em;
    overflow-wrap: anywhere;
  }
  .hero-info { grid-template-columns: 1fr 1fr; gap: 1.35rem 1rem; padding-top: 1rem; }
  .hero-info .intro {
    grid-column: 1 / -1;
    order: -1;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--rule);
    font-size: 1rem;
    line-height: 1.58;
  }
  .hero-info p:not(.intro) { font-size: .76rem; line-height: 1.55; }
  .hero-image {
    width: calc(100% + 36px);
    height: 62svh;
    min-height: 430px;
    margin: 3rem 0 0 -18px;
    object-position: center;
  }

  .project-body { padding: 5.5rem max(18px, env(safe-area-inset-right)) 5.8rem max(18px, env(safe-area-inset-left)); }
  .facts { grid-template-columns: 1fr; gap: 1.8rem; }
  .facts dl { grid-template-columns: 1fr 1fr; gap: 1.7rem 1rem; }
  .facts dt { font-size: .65rem; }
  .facts dd { font-size: .88rem; line-height: 1.4; }
  .narrative { grid-template-columns: 1fr; margin: 6.5rem 0; }
  .narrative h2, .narrative p { grid-column: 1; }
  .narrative h2 { font-size: clamp(2.7rem, 11.2vw, 4.15rem); line-height: .99; }
  .narrative p { margin-top: 2.8rem; font-size: 1rem; line-height: 1.65; }

  .gallery { display: block; }
  .gallery figure { width: calc(100% + 36px); margin: 0 0 3.4rem -18px; }
  .gallery .right { margin-top: 0; }
  .gallery img { display: block; aspect-ratio: 1.12 / 1 !important; }
  .gallery .right img { aspect-ratio: 4 / 5 !important; }
  .caption { padding: 0 18px; margin-top: .75rem; font-size: .62rem; line-height: 1.4; gap: 1rem; }
  .caption span:last-child { text-align: right; }
  .gallery .masterplan { margin-top: 5rem; }
  .gallery .masterplan img { aspect-ratio: 1 / 1 !important; object-fit: contain; }
  .gallery .masterplan .caption { padding: .7rem 18px 0; }

  .next {
    grid-template-columns: 1fr;
    gap: 2.3rem;
    padding: 4.8rem max(18px, env(safe-area-inset-right)) 5rem max(18px, env(safe-area-inset-left));
  }
  .next strong { font-size: clamp(2.6rem, 12vw, 4rem); line-height: .94; overflow-wrap: anywhere; }
  .project-footer {
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 1.7rem max(18px, env(safe-area-inset-right)) max(1.7rem, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  }
  .project-footer span:last-child { display: none; }

  .legal-page h1 { margin-bottom: 3rem; }
  .legal-copy { margin-left: 0; }
}

@media (max-width: 390px) {
  .hero figure { height: 62svh; min-height: 430px; }
  .hero h1 { font-size: 2.75rem; }
  .position h2 { font-size: 2.45rem; }
  .practice h2 { font-size: 2.65rem; }
  .contact h2 { font-size: 3.45rem; }
  .project-hero h1 { font-size: 3.35rem; }
  .hero-image { height: 56svh; min-height: 390px; }
  .narrative h2 { font-size: 2.7rem; }
  .facts dl { gap: 1.5rem .8rem; }
}
