.modal-open {
  overflow: hidden;
}

.header-cta,
.button {
  font: inherit;
  cursor: pointer;
}

.footer-logo {
  display: block;
  width: 188px;
  height: 74px;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

.footer-brand {
  justify-content: flex-start;
}

.footer-brand p {
  margin: 0;
}

.space-section {
  position: relative;
  z-index: 4;
  overflow: hidden;
  padding: 110px 0;
  background: #0a0a0a;
  color: #fff;
}

.space-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: stretch;
  gap: clamp(48px, 7vw, 108px);
}

.space-visual {
  position: relative;
  min-height: 720px;
  margin: 0;
  overflow: hidden;
  border-top: 1px solid rgba(250, 171, 0, .72);
}

.space-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(0,0,0,.7) 100%);
  pointer-events: none;
}

.space-visual img {
  width: 100%;
  height: 100%;
  min-height: 720px;
  object-fit: cover;
  object-position: center center;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}

.space-visual:hover img {
  transform: scale(1.025);
}

.space-visual figcaption {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 20px;
  left: 24px;
  color: rgba(255,255,255,.84);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.space-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 64px 0;
}

.space-copy h2 {
  max-width: 560px;
  margin: 0 0 34px;
  font: 400 clamp(3.2rem, 5.8vw, 6.4rem)/.93 var(--serif);
  letter-spacing: -.025em;
}

.space-copy > p:not(.eyebrow) {
  max-width: 520px;
  margin: 0 0 40px;
  color: #aaa49b;
  font-size: 1.05rem;
}

.space-copy address {
  margin-bottom: 42px;
  padding-left: 20px;
  border-left: 1px solid var(--gold);
  color: #fff;
  font: 400 1.15rem/1.7 var(--sans);
}

@media (max-width: 1020px) {
  .space-grid {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 40px;
  }

  .space-visual,
  .space-visual img {
    min-height: 620px;
  }

  .space-copy h2 {
    font-size: clamp(3rem, 7vw, 5rem);
  }

  .brand {
    position: relative;
    z-index: 102;
  }

  .menu-toggle {
    position: relative;
    z-index: 102;
    display: inline-flex;
    width: 52px;
    height: 52px;
    margin-right: -12px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .menu-toggle span {
    width: 26px;
    margin: 4px 0;
    transition: transform .25s ease, opacity .2s ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .nav {
    z-index: 101;
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }

  .nav.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }
}

/* Keep the legal row aligned with the site grid and clear of the fixed
   back-to-top control, including on narrower desktop viewports. */
.footer-bottom {
  width: calc(100% - 48px);
  max-width: 1280px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 76px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-bottom > p {
  flex: 1 1 360px;
  margin: 0;
}

.footer-bottom > div {
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer-bottom > div a:last-child {
  white-space: nowrap;
}

.booking-dialog {
  width: min(1120px, calc(100vw - 40px));
  max-width: none;
  height: min(900px, calc(100svh - 40px));
  max-height: none;
  padding: 0;
  border: 1px solid rgba(250, 171, 0, .32);
  background: #0b0b0b;
  color: #fff;
  box-shadow: 0 30px 110px rgba(0, 0, 0, .78);
}

.booking-dialog::backdrop {
  background: rgba(0, 0, 0, .82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.booking-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.booking-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 16px 22px 16px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: #0b0b0b;
}

.booking-bar div {
  display: grid;
  gap: 4px;
}

.booking-bar span {
  color: #faab00;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.booking-bar strong {
  font-family: "Italiana", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.booking-bar button {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font: 300 2rem/1 "Manrope", sans-serif;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.booking-bar button:hover,
.booking-bar button:focus-visible {
  border-color: #faab00;
  color: #faab00;
  transform: rotate(4deg);
}

.booking-dialog iframe {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #f6f3ed;
}

.booking-fallback {
  display: block;
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .7);
  font-size: .72rem;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
}

.booking-fallback:hover,
.booking-fallback:focus-visible {
  color: #faab00;
}

@media (max-width: 740px) {
  .portfolio-grid .result-card:not(.result-typographic),
  .portfolio-grid .result-card-wide {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .space-section {
    padding: 72px 0;
  }

  .space-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .space-visual,
  .space-visual img {
    min-height: 570px;
  }

  .space-copy {
    padding: 0;
  }

  .space-copy h2 {
    font-size: clamp(3.2rem, 15vw, 5rem);
  }

  .footer-logo {
    width: 168px;
    height: 68px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }

  .footer-bottom {
    width: calc(100% - 32px);
    padding-right: 60px;
  }

  .footer-bottom > p {
    margin-bottom: 16px;
  }

  .footer-bottom > div {
    justify-content: flex-start;
    gap: 12px 22px;
  }

  .booking-dialog {
    width: 100vw;
    height: 100svh;
    border: 0;
  }

  .booking-bar {
    min-height: 74px;
    padding: 12px 14px 12px 18px;
  }

  .booking-bar strong {
    font-size: 1.3rem;
  }

  .booking-fallback {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}
