@media (max-width: 1320px) {
  .nav-phone {
    left: auto;
    right: 238px;
  }
}

@media (max-width: 1024px) {
  :root {
    --pad: 22px;
    --header: 76px;
  }

  .site-header,
  .site-nav,
  .link-button {
    font-size: 16px;
    line-height: 18px;
  }

  .brand {
    width: 280px;
  }

  .projects-trigger {
    width: 120px;
    transform: translateX(-10px);
  }

  .nav-phone {
    right: 192px;
    width: 175px;
  }

  .site-nav .link-button {
    width: 150px;
  }

  .hero-copy {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 36%);
  }

  .hero-copy h1 {
    max-width: 660px;
    font-size: 62px;
  }

  .hero-copy p {
    max-width: 360px;
    font-size: 22px;
  }

  .detail-info,
  .project-page-info {
    grid-template-columns: 1fr;
    padding-bottom: 34px;
    padding-left: 150px;
  }

  .project-page-info::before {
    right: 0;
  }

  .project-page::before {
    left: auto;
    right: 36%;
  }

  .project-downloads {
    left: auto;
    right: calc(36% + 22px);
  }

  .detail-text {
    border-left: 0;
    padding-left: 0;
  }

  .detail-text p {
    max-width: 620px;
    margin-bottom: 22px;
  }

  .detail-controls {
    bottom: 42%;
  }

  .map-head {
    grid-template-columns: 1fr;
    padding-bottom: 42px;
  }

  .map-head p,
  .section-head p {
    text-align: left;
  }

  .contact-row {
    grid-template-columns: auto 300px 1fr;
  }
}

@media (max-width: 768px) {
  body.map-popup-open .site-header {
    background: var(--bg);
    color: var(--ink);
  }

  body.map-popup-open .site-header::after {
    border-color: var(--line);
  }

  body.map-popup-open .menu-toggle {
    color: var(--ink);
    background: transparent;
  }

  body.map-popup-open .site-header .menu-toggle span {
    background: var(--ink);
  }

  .site-header {
    min-height: var(--header);
    height: var(--header);
  }

  .brand {
    left: var(--pad);
    top: 29px;
  }

  .site-nav {
    position: fixed;
    inset: var(--header) 0 auto 0;
    display: grid;
    gap: 0;
    padding: 0 var(--pad) 24px;
    background: var(--bg);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    pointer-events: none;
    visibility: hidden;
    transition: transform 220ms ease, visibility 0ms linear 220ms;
  }

  .site-nav.is-open {
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    transition-delay: 0ms;
  }

  .site-nav > a,
  .site-nav > .link-button {
    position: static;
    width: auto;
    transform: none;
    justify-self: stretch;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    text-align: left;
  }

  .projects-trigger {
    padding-bottom: 18px;
  }

  .projects-menu,
  .site-header.is-projects-open .projects-menu {
    position: static;
    display: block;
    grid-column: 1 / -1;
    overflow: visible;
    background: transparent;
    color: inherit;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .projects-menu-intro {
    display: none;
  }

  .projects-menu-list {
    display: block;
    border-left: 0;
  }

  .projects-menu-list > a {
    min-height: 58px;
    padding: 11px 0 10px 22px;
    border-top: 1px solid var(--line);
    border-bottom: 0;
  }

  .projects-menu-list > a:hover,
  .projects-menu-list > a:focus-visible {
    background: transparent;
    color: inherit;
  }

  .projects-menu-name {
    font-size: 17px;
  }

  .projects-menu-type {
    margin-top: 4px;
    font-size: 12px;
  }

  .projects-menu-more {
    display: none;
  }

  .menu-toggle {
    position: fixed;
    right: var(--pad);
    top: 16px;
    display: grid;
    gap: 7px;
    width: 46px;
    padding: 12px 0;
    border: 0;
    background: transparent;
    z-index: 60;
  }

  .menu-toggle span {
    height: 2px;
    width: 46px;
    min-width: 46px;
    background: currentColor;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.18);
  }

  .site-header:not(.is-solid) .menu-toggle {
    color: var(--white);
  }

  .site-header.is-solid .menu-toggle {
    color: var(--ink);
  }

  .site-header:not(.is-solid) .menu-toggle span {
    background: var(--white);
  }

  .site-header.is-solid .menu-toggle span {
    background: var(--ink);
  }

  .hero,
  .detail-slide,
  .detail-slider {
    min-height: 760px;
    height: 760px;
  }

  .project-pages {
    --stack-page-height: max(620px, calc(100svh - var(--header)));
    --stack-hold: clamp(80px, 11svh, 120px);
  }

  .project-page {
    min-height: 0;
    height: var(--stack-page-height);
    touch-action: pan-y;
  }

  .project-page-stage {
    height: calc(var(--stack-page-height) + var(--stack-page-height) + var(--stack-hold));
  }

  .hero-copy {
    grid-template-columns: 1fr;
    gap: 22px;
    bottom: 38px;
  }

  .hero-copy h1 {
    max-width: 620px;
    font-size: clamp(34px, 7vw, 54px);
    overflow-wrap: anywhere;
  }

  .hero-copy p {
    max-width: 520px;
    padding-left: 0;
    border-left: 0;
    font-size: clamp(17px, 2.6vw, 20px);
  }

  .home-overview::before {
    top: var(--header);
    bottom: 0;
    left: auto;
    right: var(--pad);
  }

  .hero-copy::before {
    right: 0;
  }

  .section-head {
    display: grid;
  }

  .detail-info,
  .project-page-info {
    gap: 24px;
    padding-left: 0;
  }

  .slide-rail {
    left: var(--pad);
    right: var(--pad);
    top: 95px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    transform: none;
  }

  .slide-rail button {
    grid-template-columns: 28px max-content;
    flex: 0 0 auto;
    max-width: none;
    font-size: 12px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .detail-controls {
    right: auto;
    left: var(--pad);
    bottom: 40%;
  }

  .project-page-slider {
    display: none;
  }

  .project-page-arrows {
    right: auto;
    left: var(--pad);
    bottom: 258px;
    gap: 8px;
  }

  .project-page-count {
    right: var(--pad);
    bottom: 258px;
  }

  .project-page::before {
    right: var(--pad);
    top: var(--header);
  }

  .project-page::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 30%, rgba(0, 0, 0, 0.74) 100%);
  }

  .project-page-info::before {
    right: 0;
    bottom: 178px;
  }

  .project-page .detail-text {
    top: auto;
    left: 0;
    right: 0;
    bottom: 306px;
    width: 100%;
    grid-template-rows: auto;
    padding-left: 0;
  }

  .project-page .detail-text p {
    max-width: 620px;
    margin-top: 6px;
    font-size: clamp(15px, 2.25vw, 18px);
    line-height: 1.12;
  }

  .project-page .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 620px;
    min-height: 104px;
    padding-bottom: 16px;
    gap: 12px;
  }

  .project-page .stats.is-single {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-page .stats.is-single > div {
    grid-column: 1;
  }

  .stats dd {
    min-height: 48px;
    margin-bottom: 16px;
  }

  .project-downloads {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 8px;
  }

  .project-download {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
  }

  .project-slide-heading {
    margin-bottom: 16px;
    font-size: 15px;
  }

  .project-page .stats.is-many {
    column-gap: 24px;
    row-gap: 12px;
  }

  .project-page .stats.is-many dd {
    min-height: 36px;
    margin-bottom: 7px;
    font-size: clamp(24px, 4vw, 34px);
  }

  .project-page[data-page="4"].is-slide-3 .stats.is-many {
    column-gap: 20px;
    row-gap: 8px;
    padding-bottom: 10px;
  }

  .project-page[data-page="4"].is-slide-3 .stats.is-many dd {
    min-height: 28px;
    margin-bottom: 3px;
    font-size: clamp(20px, 3.3vw, 28px);
  }

  .project-page[data-page="4"].is-slide-3 .stats.is-many dd.is-word {
    font-size: clamp(15px, 2.6vw, 19px);
  }

  .project-page[data-page="4"].is-slide-3 .stats.is-many dt {
    font-size: 12px;
  }

  .project-page-arrows button {
    width: 48px;
    height: 44px;
  }

  .project-arrow::before {
    inset: 18px 0;
  }

  .map-wrap {
    height: 420px;
  }

  .project-map-popup-title {
    top: 14px;
    max-width: calc(100% - 96px);
    padding: 9px 10px;
    font-size: 13px;
  }

  .project-map-popup-close {
    top: 10px;
    width: 44px;
    height: 44px;
  }

  .map-pin {
    gap: 7px;
    min-height: 26px;
    font-size: 12px;
  }

  .map-pin::before {
    width: 14px;
    height: 14px;
  }

  .contact-band {
    padding-top: 56px;
  }

  .feedback-link {
    position: static;
    display: inline-block;
    margin-bottom: 28px;
  }

  .contact-band p {
    margin-left: 0;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .phone-large {
    justify-self: start;
  }

  .site-footer {
    display: grid;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  :root {
    --pad: 16px;
    --header: 68px;
  }

  .brand {
    max-width: 230px;
    font-size: 14px;
    top: 15px;
  }

  .site-nav {
    inset: var(--header) 0 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: calc(100dvh - var(--header));
    padding: 8px var(--pad) calc(24px + env(safe-area-inset-bottom));
    background: var(--bg);
    color: var(--ink);
    overflow-y: auto;
  }

  .site-nav > .projects-trigger,
  .site-nav > .nav-phone,
  .site-nav > .link-button {
    position: static;
    inset: auto;
    order: initial;
    flex: 0 0 auto;
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 19px 0 17px;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    transform: none;
    color: var(--ink);
    font-size: 16px;
    line-height: 21px;
    text-align: left;
  }

  .site-nav > .projects-trigger {
    order: 1;
  }

  .site-nav > .projects-menu {
    order: 2;
    flex: 0 0 auto;
  }

  .site-nav > .nav-phone {
    order: 3;
  }

  .site-nav > .link-button {
    order: 4;
    text-decoration: underline;
  }

  body.menu-open .site-header {
    background: var(--bg);
    color: var(--ink);
  }

  body.menu-open .site-header::after {
    border-color: var(--line);
    opacity: 1;
  }

  body.menu-open .menu-toggle {
    color: var(--ink);
  }

  body.menu-open .site-header .menu-toggle span {
    background: var(--ink);
    box-shadow: none;
  }

  body.menu-open .site-header .menu-toggle span:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }

  body.menu-open .site-header .menu-toggle span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .hero,
  .detail-slide,
  .detail-slider {
    min-height: 700px;
    height: 700px;
  }

  .home-overview {
    width: 100%;
    min-height: 100svh;
    height: 100dvh;
  }

  .home-overview .home-reference {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .home-overview::before {
    content: none;
  }

  .project-pages {
    --stack-page-height: calc(100svh - var(--header));
    --stack-hold: clamp(130px, 16svh, 170px);
  }

  .project-page {
    min-height: 0;
    height: var(--stack-page-height);
  }

  .project-page-media,
  .project-page-track,
  .project-page-track img {
    width: 100%;
    height: 100%;
  }

  .project-page-track img {
    object-fit: cover;
  }

  .project-page::before,
  .project-page-info::before,
  .project-page-arrows::before,
  .project-page-arrows::after {
    content: none;
  }

  .project-page-stage {
    height: calc(var(--stack-page-height) + var(--stack-page-height) + var(--stack-hold));
  }

  .hero-copy {
    bottom: 72px;
  }

  .hero-copy h1,
  .section-head h2,
  .map-head h2,
  .contact-band h2 {
    max-width: calc(100vw - 32px);
    font-size: 27px;
    line-height: 1.02;
  }

  .hero-copy p {
    max-width: calc(100vw - 32px);
    font-size: 13px;
    line-height: 1.08;
  }

  .menu-toggle {
    top: 11px;
  }

  .menu-toggle span {
    height: 2px;
    transform-origin: center;
    transition: transform 220ms ease, background 220ms ease;
  }

  .detail-kicker {
    font-size: 14px;
  }

  .project-page .detail-kicker {
    left: 0;
    bottom: 24px;
    max-width: 48%;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
  }

  .project-page .project-downloads {
    position: absolute;
    right: 0;
    bottom: 5px;
    left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    width: auto;
    max-width: 56%;
    min-height: 44px;
    margin: 0;
  }

  .project-page .project-download {
    min-height: 0;
    font-size: 11px;
    line-height: 1;
    text-align: right;
    white-space: nowrap;
  }

  .project-slide-heading {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .project-page .stats.is-many {
    gap: 8px 20px;
    padding-bottom: 10px;
  }

  .project-page .stats.is-many dd {
    min-height: 28px;
    margin-bottom: 5px;
    font-size: 23px;
  }

  .project-page .stats.is-many dd.is-word {
    font-size: 17px;
  }

  .project-page[data-page="4"].is-slide-3 .project-slide-heading {
    margin-bottom: 6px;
  }

  .project-page[data-page="4"].is-slide-3 .stats.is-many {
    gap: 5px 14px;
    padding-bottom: 7px;
  }

  .project-page[data-page="4"].is-slide-3 .stats.is-many dd {
    min-height: 21px;
    margin-bottom: 1px;
    font-size: 19px;
  }

  .project-page[data-page="4"].is-slide-3 .stats.is-many dd.is-word {
    font-size: 14px;
  }

  .project-page[data-page="4"].is-slide-3 .stats.is-many dt {
    font-size: 10px;
    line-height: 1.05;
  }

  .project-page[data-page="4"].is-slide-3 .detail-text p {
    margin-top: 4px;
    font-size: 13px;
  }

  .detail-info h2 {
    font-size: 38px;
  }

  .detail-text p {
    font-size: 17px;
  }

  .project-page-info h2 {
    font-size: 34px;
    bottom: 78px;
    max-width: calc(100vw - 32px);
    overflow-wrap: anywhere;
  }

  .project-page .detail-text {
    padding-left: 0;
    bottom: 242px;
  }

  .project-page-arrows {
    bottom: 190px;
  }

  .project-page-arrows button {
    width: 48px;
    height: 44px;
  }

  .project-arrow::before {
    inset: 18px 0;
  }

  .project-page-count {
    bottom: 204px;
    font-size: 14px;
  }

  .project-page .detail-text p {
    font-size: clamp(14px, 3.85vw, 16px);
    line-height: 1.12;
  }

  .stats dd {
    min-height: 38px;
    margin-bottom: 8px;
    font-size: 31px;
  }

  .stats dt {
    font-size: 12px;
  }

  .stats small,
  .stats dt span {
    font-size: 10px;
  }

  .map-wrap {
    height: 360px;
  }

  .map-pin {
    font-size: 10px;
  }

  .pin-silver { left: 53%; top: 31%; }
  .pin-petrovo { left: 32%; top: 66%; }
  .pin-nikolina { left: 8%; top: 79%; }
  .pin-nikolskaya { left: 46%; top: 19%; }
  .pin-villa { left: 42%; top: 27%; }
  .pin-timeless { left: 27%; top: 89%; }

  .contact-band p {
    font-size: 24px;
  }

  .outline-btn {
    width: 100%;
  }

  .phone-large {
    font-size: 34px;
  }

  .modal-card {
    padding: 28px 20px;
  }
}
