﻿@media (max-width: 1199.98px) {
  .story-grid {
    grid-template-columns: minmax(290px, 0.78fr) minmax(460px, 1.22fr);
    gap: 6%;
  }
  .process-layout {
    grid-template-columns: minmax(420px, 1fr) minmax(380px, 0.9fr);
    gap: 6%;
  }
}

@media (max-width: 991.98px) {
  :root {
    --header-height: 74px;
  }
  .shell {
    width: min(100% - 40px, 1360px);
  }
  .brand img {
    width: 166px;
  }
  .menu-panel {
    padding: 40px 0 46px;
  }
  .menu-panel-inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .hero {
    height: min(700px, 76svh);
    min-height: 540px;
  }
  .hero-assessment {
    margin-top: -96px;
  }
  .hero-content {
    top: 96px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .gallery,
  .blog {
    padding: 84px 0;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-video {
    grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
    gap: 36px;
  }
  .story {
    padding: 64px 0 128px;
  }
  .story-grid {
    grid-template-columns: minmax(270px, 0.82fr) minmax(0, 1.18fr);
    gap: 48px;
  }
  .story h2,
  .principle h2,
  .section-head h2,
  .gallery-heading h2,
  .faq h2,
  .contact h2 {
    font-size: 40px;
  }
  .story-visual img {
    aspect-ratio: 4 / 5;
  }
  .principle-grid {
    grid-template-columns: 1fr 0.75fr;
    gap: 50px;
  }
  .services {
    padding: 90px 0 100px;
  }
  .process {
    padding: 110px 0;
  }
  .process-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .process-visual img {
    aspect-ratio: 16 / 9;
  }
  .process-intro {
    margin-bottom: 40px;
  }
  .process-intro h2 {
    font-size: 40px;
  }
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }
  .contact-intro {
    margin-bottom: 36px;
  }
  .contact-intro h2 {
    max-width: none;
  }
  .contact-map {
    height: 360px;
    min-height: 0;
    margin-top: 0;
  }
  .footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 42px 32px;
  }
}

@media (max-width: 767.98px) {
  .shell {
    width: min(100% - 32px, 1360px);
  }
  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-page-info {
    padding: 0 0 28px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .site-header.is-open {
    backdrop-filter: none;
  }
  .menu-toggle span {
    display: none;
  }
  .menu-toggle {
    min-width: 44px;
    justify-content: flex-end;
  }
  .menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(10, 18, 28, 0.44);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(3px);
    transition:
      opacity 280ms ease,
      visibility 0s linear 280ms;
  }
  .site-header.is-open .menu-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }
  .menu-panel {
    inset: auto auto 8px 50%;
    z-index: 5;
    display: flex;
    width: min(calc(100% - 16px), 560px);
    max-height: min(78svh, 680px);
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 -18px 60px rgba(15, 27, 39, 0.18);
    opacity: 1;
    overflow: hidden;
    flex-direction: column;
    transform: translate(-50%, calc(100% + 32px));
    transition:
      transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 380ms;
  }
  .menu-panel.is-open {
    transform: translate(-50%, 0);
    transition-delay: 0s;
  }
  .menu-sheet-header {
    display: block;
    flex: 0 0 auto;
    padding: 11px 18px 0;
  }
  .menu-sheet-handle {
    display: block;
    width: 42px;
    height: 4px;
    margin: 0 auto 9px;
    border-radius: 999px;
    background: #d8dfe2;
  }
  .menu-sheet-title-row {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
  }
  .menu-sheet-brand {
    display: inline-flex;
    align-items: center;
  }
  .menu-sheet-brand img {
    display: block;
    width: 112px;
    height: auto;
  }
  .menu-sheet-close {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--ink);
    border: 0;
    border-radius: 50%;
    background: #f2f5f6;
    place-items: center;
  }
  .menu-sheet-close i {
    font-size: 21px;
  }
  .menu-panel-inner {
    display: flex;
    width: 100%;
    min-height: 0;
    align-items: stretch;
    padding: 6px 18px calc(18px + env(safe-area-inset-bottom));
    margin: 0;
    overflow-y: auto;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 22px;
    overscroll-behavior: contain;
  }
  .menu-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .menu-links a {
    display: grid;
    min-height: 52px;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) 22px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition:
      color var(--ease),
      background-color var(--ease);
  }
  .menu-links a i {
    display: block;
    color: #8b989e;
    font-size: 18px;
    justify-self: end;
  }
  .menu-links a:hover,
  .menu-links a:focus-visible {
    color: var(--ink);
    background: #f4f7f8;
  }
  .menu-dropdown summary {
    min-height: 52px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
  }
  .menu-dropdown summary i {
    color: #8b989e;
    font-size: 20px;
  }
  .menu-links .menu-dropdown-list {
    display: grid;
    gap: 0;
    padding: 2px 0 6px 10px;
  }
  .menu-links .menu-dropdown-list a {
    min-height: 44px;
    font-size: 16px;
    font-weight: 500;
    grid-template-columns: minmax(0, 1fr);
  }
  .menu-contact {
    padding: 18px;
    margin-top: auto;
    border-radius: 10px;
    background: #f3f8fa;
  }
  .menu-contact p {
    margin-bottom: 13px;
    color: #647279;
    font-size: 13px;
  }
  .menu-contact-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }
  .menu-contact .menu-primary,
  .menu-contact .menu-phone {
    min-height: 46px;
    padding: 0 15px;
    border: 0;
    border-radius: 4px;
    justify-content: center;
  }
  .menu-contact .menu-primary {
    color: #ffffff;
    background: var(--ink);
  }
  .menu-contact .menu-phone {
    color: var(--ink);
    background: #ffffff;
  }
  .hero {
    height: min(620px, 68svh);
    min-height: 480px;
  }
  .hero-assessment {
    margin-top: -68px;
  }
  .hero-slide img {
    object-position: 58% bottom;
  }
  .hero-slide-residence img {
    object-position: center 48%;
  }
  .hero-content {
    top: 88px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero-content > p:not(.hero-label) {
    max-width: 430px;
  }
  .hero-controls {
    width: calc(100% - 28px);
  }
  .hero-arrow {
    width: 44px;
    height: 44px;
  }
  .gallery,
  .blog {
    padding: 72px 0;
  }
  .gallery-heading h2 {
    font-size: 34px;
  }
  .gallery-tabs {
    gap: 20px;
    margin-top: 24px;
  }
  .blog-card-copy {
    padding: 20px;
  }
  .blog-carousel {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 8px;
  }
  .services-carousel {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 8px;
  }
  .blog-carousel-arrow {
    width: 38px;
    height: 38px;
  }
  .story {
    margin-top: -26px;
    padding: 56px 0 108px;
  }
  .story-grid {
    grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.22fr);
    gap: 30px;
  }
  .story h2,
  .principle h2,
  .section-head h2,
  .gallery-heading h2,
  .faq h2,
  .contact h2 {
    font-size: 34px;
  }
  .story-copy > p:not(.section-label) {
    font-size: 12px;
  }
  .story-thumbs {
    margin-top: 28px;
  }
  .gallery-grid {
    gap: 12px;
  }
  .gallery-tabs {
    gap: 12px;
  }
  .gallery-tabs button,
  .gallery-tabs a {
    min-width: 104px;
    padding-bottom: 10px;
  }
  .gallery.gallery-page {
    padding-top: 120px;
  }
  .gallery-page .gallery-heading h1 {
    font-size: 34px;
  }
  .principle {
    padding: 44px 0;
  }
  .principle-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 0;
  }
  .principle-grid > p {
    max-width: 560px;
  }
  .services {
    padding: 76px 0 86px;
  }
  .section-head {
    margin-bottom: 36px;
  }
  .blog-head {
    align-items: center;
    gap: 18px;
  }
  .blog-card-copy {
    padding: 20px;
  }
  .process {
    padding: 88px 0;
  }
  .process-layout {
    gap: 46px;
  }
  .process-intro {
    margin-bottom: 34px;
  }
  .process-intro h2 {
    font-size: 34px;
  }
  .faq {
    padding: 82px 0;
  }
  .contact {
    padding: 84px 0;
  }
  .contact-map {
    height: 300px;
  }
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 28px;
    padding-top: 44px;
    padding-bottom: 44px;
  }
  .footer-project-band {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .footer-project-actions {
    justify-content: space-between;
  }
  .footer-bottom {
    grid-template-columns: 1fr auto;
  }
  .footer-bottom-links {
    display: inline-flex;
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-bottom: 20px;
  }
  .footer-copyright {
    justify-self: end;
  }
}

@media (max-width: 575.98px) {
  .shell {
    width: min(100% - 28px, 1360px);
  }
  .brand img {
    width: 152px;
  }
  .menu-panel {
    max-height: min(82svh, 680px);
  }
  .menu-links {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .menu-contact {
    margin-top: auto;
  }
  .menu-contact-actions {
    grid-template-columns: 1fr;
  }
  .menu-contact .menu-phone {
    justify-content: flex-start;
  }
  .hero {
    height: min(560px, 58svh);
    min-height: 420px;
  }
  .hero-assessment {
    margin-top: -44px;
  }
  .hero-slide img {
    object-position: 61% bottom;
  }
  .hero-slide-residence img {
    object-position: 58% center;
  }
  .hero-content {
    top: 88px;
    width: min(100% - 28px, 500px);
  }
  .hero h1 {
    font-size: 30px;
  }
  .hero-content > p:not(.hero-label) {
    font-size: 14px;
  }
  .assessment-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px;
  }
  .assessment-header h2 {
    font-size: 28px;
  }
  .assessment-content {
    padding: 20px;
  }
  .assessment-fields {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .assessment-address,
  .assessment-neighbors {
    grid-column: auto;
  }
  .assessment-intro {
    font-size: 13px;
  }
  .story {
    padding: 34px 0 92px;
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .story h2,
  .principle h2,
  .section-head h2,
  .gallery-heading h2,
  .process-intro h2,
  .faq h2,
  .contact h2 {
    font-size: 31px;
  }
  .story-copy > p:not(.section-label) {
    max-width: 420px;
    font-size: 14px;
  }
  .story-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .story-visual img {
    aspect-ratio: 6 / 5;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .blog-head {
    align-items: center;
  }
  .blog-card-copy {
    padding: 18px;
  }
  .blog-card h3 {
    font-size: 18px;
  }
  .blog-carousel {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 5px;
  }
  .services-carousel {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 5px;
  }
  .blog-carousel-arrow {
    width: 32px;
    height: 32px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .process-list article,
  .process-list article:first-child,
  .process-list article:last-child {
    min-height: 0;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .process-list article:last-child {
    border-bottom: 0;
  }
  .process-list h3 {
    margin-top: 0;
  }
  .process-visual img {
    aspect-ratio: 5 / 4;
  }
  .faq-list summary {
    min-height: 76px;
    font-size: 14px;
  }
  .faq-list details p {
    margin-right: 0;
  }
  .contact-page-section {
    padding: 120px 0 64px;
  }
  .about-page {
    padding: 120px 0 72px;
  }
  .about-page-visual {
    margin-top: 36px;
  }
  .about-page-visual img {
    aspect-ratio: 16 / 10;
  }
  .about-page-content {
    margin-top: 36px;
  }
  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-page-info {
    padding: 0 0 28px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .contact-page-form-panel {
    padding: 0;
  }
  .contact-page-map {
    height: 260px;
    margin-top: 40px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .form-footer p {
    max-width: none;
  }
  .form-footer button {
    width: 100%;
  }
  .footer-main {
    gap: 32px 20px;
  }
  .footer-address {
    grid-column: 1 / -1;
  }
  .footer-project-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .footer-phone,
  .footer-project-link {
    width: 100%;
  }
  .footer-phone {
    justify-content: flex-start;
  }
  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 26px;
    padding-bottom: 26px;
  }
  .footer-bottom-links {
    grid-column: auto;
    justify-content: flex-start;
    padding-bottom: 0;
  }
  .footer-brand img {
    width: 128px;
  }
  .footer-copyright {
    max-width: none;
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 991.98px) {
  .blog-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .projects-grid,
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .blog-archive,
  .blog-article,
  .projects-page,
  .faq-page,
  .content-page,
  .project-detail {
    padding: 120px 0 72px;
  }
  .faq-page-head {
    margin-bottom: 36px;
  }
  .faq-page-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .faq-page-contact {
    position: static;
    order: 2;
  }
  .faq-page-list {
    order: 1;
  }
  .blog-article-shell {
    margin-top: 34px;
  }
  .blog-article-cover {
    aspect-ratio: 16 / 10;
  }
  .blog-article-content {
    margin-top: 30px;
  }
  .blog-article-contact {
    margin-left: 0;
  }
  .project-detail-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-detail-contact {
    margin-left: 0;
  }
}

@media (max-width: 575.98px) {
  .blog-archive-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .blog-archive-head h1,
  .blog-article-head h1,
  .projects-page-head h1,
  .faq-page-head h1,
  .content-page-head h1,
  .project-detail-head h1 {
    font-size: 34px;
  }
  .faq-page-list summary {
    min-height: 76px;
    gap: 12px;
    padding: 10px 4px;
    font-size: 14px;
  }
  .faq-page-list details p {
    margin: 0 44px 24px 4px;
    font-size: 14px;
  }
  .blog-back-link {
    margin-bottom: 32px;
  }
  .blog-article-content {
    font-size: 15px;
  }
  .project-detail-gallery {
    grid-template-columns: 1fr;
  }
  .project-filters {
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
