/* Shared responsive layer. Kept separate so it can be versioned and audited independently. */
body { overflow-x: hidden; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-toggle__line {
  display: block;
  width: 24px;
  height: 1px;
  margin: 5px auto;
  background: currentcolor;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-whatsapp { display: none; }

.site-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  width: min(var(--max, 1240px), calc(100% - 80px));
  margin: 22px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgb(32 32 30 / 16%);
  color: #6d675e;
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #d9b47a;
  outline-offset: 4px;
}

@media (max-width: 680px) {
  .header,
  .site-header {
    position: absolute;
    top: 0;
    left: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 12px;
    width: calc(100% - 40px);
    min-height: 79px;
    padding: 17px 0;
    transform: none;
  }

  .header .brand img,
  .site-header .brand img { width: 166px; }

  .header .header-link,
  .site-header .header-link { display: none; }

  .menu-toggle { display: block; justify-self: end; }

  .header nav,
  .site-header nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 10px 0 17px;
    border-bottom: 1px solid rgb(255 255 255 / 28%);
    background: rgb(25 25 23 / 98%);
    font-size: 11px;
    letter-spacing: .12em;
  }

  .header.menu-open nav,
  .site-header.menu-open nav { display: flex; }

  .header nav a,
  .site-header nav a { padding: 13px 20px; }

  .header nav a:hover,
  .site-header nav a:hover { background: rgb(255 255 255 / 8%); }

  .nav-whatsapp { display: block; color: #dfbb82; }
  .menu-open .menu-toggle__line:first-child { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-toggle__line:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle__line:last-child { transform: translateY(-6px) rotate(-45deg); }

  .hero { height: auto; min-height: 700px; }
  .hero-copy { justify-content: flex-end; width: 100%; min-height: 700px; padding: 128px 24px 58px; }
  .hero-cover { background: linear-gradient(0deg, rgb(17 17 16 / 94%) 5%, rgb(17 17 16 / 45%) 70%, rgb(17 17 16 / 8%)); }
  .hero-copy h1 { font-size: clamp(48px, 15vw, 66px); }
  .hero-copy > p:not(.eyebrow) { font-size: 15px; line-height: 1.6; }
  .hero-note { display: none; }

  .page-hero { min-height: 650px; padding: 150px 0 72px; }
  .page-hero .hero-content { width: calc(100% - 48px); }
  .page-hero h1 { font-size: clamp(48px, 15vw, 66px); }
  .page-hero .hero-lead { font-size: 16px; }

  .actions { flex-direction: column; align-items: flex-start; gap: 20px; }
  .wrap,
  .page-wrap,
  .hero-content { width: calc(100% - 48px); }
  .statement,
  .spaces,
  .materials,
  .process,
  .partner,
  .contact,
  .page-section { padding-top: 84px; padding-bottom: 92px; }

  .three,
  .two,
  .section-head,
  .page-grid { display: block; }

  .statement .index,
  .section-head .index,
  .process .index,
  .page-number { margin-bottom: 42px; }

  .statement h2,
  .materials h2,
  .section-head h2,
  .process h2,
  .partner h2,
  .page-section h2 { font-size: 43px; }

  .side-note { margin-top: 54px; }
  .big { font-size: 19px; }
  .section-head > p:last-child { margin-top: 25px; }
  .gallery { display: block; }
  .tile,
  .tile.wide { display: block; min-height: 0; margin-bottom: 19px; }
  .tile img { min-height: 0; aspect-ratio: 1.2; }
  .tile span { padding: 22px; }
  .tile strong { font-size: 24px; }
  .material-list { margin-top: 55px; }
  .partner .two > div + div,
  .contact-list { margin-top: 54px; }
  .process .two > div { margin-bottom: 57px; }
  .image-band img { height: 48svh; min-height: 280px; }
  .footer,
  .footer-inner { grid-template-columns: 1fr 1fr; width: calc(100% - 48px); }
  .footer p,
  .footer-inner p { grid-column: 1 / -1; grid-row: 2; }
  .footer-links { grid-column: 2; grid-row: 1; flex-wrap: wrap; justify-self: end; gap: 14px; text-align: right; }
  .legal { display: block; width: calc(100% - 48px); line-height: 1.6; }
  .legal span { display: block; margin-top: 6px; }
  .site-legal-links { width: calc(100% - 48px); }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle__line { transition: none; }
}
.contact-modal[hidden] { display: none; }
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #20201e;
}
.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(17 17 16 / 68%);
  backdrop-filter: blur(4px);
}
.contact-modal__panel {
  position: relative;
  width: min(520px, 100%);
  padding: 34px;
  background: #fffdf8;
  box-shadow: 0 28px 80px rgb(17 17 16 / 32%);
}
.contact-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgb(32 32 30 / 18%);
  background: transparent;
  color: #20201e;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.contact-modal__eyebrow {
  margin: 0 0 12px;
  color: #b18b58;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.contact-modal h2 {
  margin: 0 42px 14px 0;
  color: #20201e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.05;
}
.contact-modal p {
  margin: 0;
  color: #6d675e;
  font-size: 15px;
  line-height: 1.65;
}
.contact-modal__actions {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}
.contact-modal__phone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.contact-modal__option {
  display: block;
  padding: 18px 20px;
  border: 1px solid rgb(32 32 30 / 16%);
  background: #f6f3ed;
}
.contact-modal__option:hover,
.contact-modal__option:focus-visible {
  border-color: #b18b58;
  background: #e7ded1;
}
.contact-modal__option strong {
  display: block;
  margin-bottom: 5px;
  font: 22px Georgia, "Times New Roman", serif;
}
.contact-modal__option span {
  color: #6d675e;
  font-size: 13px;
}
.contact-modal__copy {
  min-width: 126px;
  padding: 0 14px;
  border: 1px solid rgb(32 32 30 / 16%);
  background: #20201e;
  color: #fffdf8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.contact-modal__copy:hover,
.contact-modal__copy:focus-visible {
  background: #b18b58;
  color: #20201e;
}
.contact-modal-open { overflow: hidden; }
.contact-page-actions { margin: 34px 0 0; }

@media (max-width: 680px) {
  .contact-modal { padding: 18px; }
  .contact-modal__panel { padding: 28px 22px 24px; }
  .contact-modal h2 { font-size: 32px; }
  .contact-modal__phone { grid-template-columns: 1fr; }
.contact-modal__option { padding: 16px; }
  .contact-modal__copy { min-height: 46px; }
}