.ui-icon {
  display: inline-block;
  width: .95em;
  height: .95em;
  flex: 0 0 auto;
  vertical-align: -.08em;
  background: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.ui-icon--up-right {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19 19 5M9 5h10v10' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19 19 5M9 5h10v10' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
}

.ui-icon--down {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4v15M6.5 13.5 12 19l5.5-5.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4v15M6.5 13.5 12 19l5.5-5.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
}

.header nav a,
.header-contact,
.button,
.text-link,
.scroll-cue,
.home-pin,
.home-row,
.plan-bottom a,
details a {
  font-weight: 600;
}

.hero-baseline p,
.intro-text > p:not(.lead),
.architecture-caption p,
.location-copy > p,
.sales-heading p,
.sales-meta,
.selection-top p,
.image-note,
.detail-description,
.plan-note {
  font-weight: 500;
}

.hero-baseline .hero-project-name {
  margin: 0;
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.2;
  letter-spacing: -.035em;
  font-weight: 600;
}

.aerial .home-pin {
  top: 54%;
}

.contact-invite {
  margin: 0 0 22px;
  color: #dbe3dc;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -.02em;
}

.contact-dialog {
  width: min(92vw, 850px);
  max-width: none;
  padding: 0;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 24px 90px #0009;
}

.contact-dialog::backdrop {
  background: #111a17d9;
  backdrop-filter: blur(5px);
}

.contact-dialog-inner {
  position: relative;
  min-height: 590px;
  padding: 58px 65px 62px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.contact-dialog-inner > img {
  position: absolute;
  top: 52px;
  left: 65px;
  width: 185px;
  height: auto;
}

.contact-dialog .eyebrow {
  margin-bottom: 24px;
  color: #bac7b7;
}

.contact-dialog h2 {
  margin-bottom: 40px;
  font-size: clamp(43px, 6vw, 72px);
}

.contact-dialog-email,
.contact-dialog-phone {
  width: fit-content;
}

.contact-dialog-email {
  border-bottom: 1px solid #ffffff55;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.55;
  letter-spacing: -.04em;
}

.contact-dialog-phone {
  margin-top: 14px;
  font-size: 21px;
}

.contact-dialog-close {
  position: absolute;
  top: 34px;
  right: 34px;
  z-index: 1;
  width: 48px;
  height: 48px;
  border: 1px solid #ffffff55;
  border-radius: 50%;
  background: transparent;
  color: white;
  font-size: 31px;
  line-height: 1;
}

.button .ui-icon,
.text-link .ui-icon,
.header-contact .ui-icon,
.contact-email .ui-icon {
  margin-left: .2em;
}

.home-pin .ui-icon,
.row-arrow .ui-icon {
  width: 1em;
  height: 1em;
}

.scroll-line::after {
  content: '';
  left: -3px;
  bottom: 0;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

@media (max-width: 700px) {
  .header .brand img {
    width: 102px;
  }

  .header nav {
    gap: 13px;
    font-size: 12px;
  }

  .header nav a {
    font-weight: 600;
  }

  .hero-baseline p {
    font-weight: 500;
  }

  .hero-bottom > span:not(.energy),
  .image-label,
  .image-note,
  .map-label {
    font-size: 11px;
  }

  .floor-switch button {
    min-height: 44px;
  }

  .hero-baseline .hero-project-name {
    font-size: 21px;
  }

  .contact-invite {
    margin-bottom: 18px;
    font-size: 16px;
  }

  .contact-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: none;
  }

  .contact-dialog-inner {
    min-height: 100%;
    justify-content: flex-start;
    padding: 190px 7% 48px;
  }

  .contact-dialog-inner > img {
    top: 40px;
    left: 7%;
    width: 145px;
  }

  .contact-dialog-close {
    top: 28px;
    right: 7%;
  }

  .contact-dialog h2 {
    width: 100%;
    margin-bottom: 48px;
    font-size: 43px;
  }

  .contact-dialog-email,
  .contact-dialog-phone {
    align-self: flex-start;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }

  .contact-dialog-email {
    padding: 5px 0;
    font-size: 27px;
  }

  .contact-dialog-phone {
    margin-top: 10px;
    padding: 5px 0;
    font-size: 30px;
    font-weight: 600;
  }
}

@media (max-width: 370px) {
  .header .brand img {
    width: 92px;
  }

  .header nav {
    gap: 10px;
    font-size: 11px;
  }
}

.gallery {
  padding-top: 10px;
  padding-bottom: 120px;
  overflow: hidden;
}

.gallery-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13%;
  align-items: end;
  margin-bottom: 40px;
}

.gallery-heading .eyebrow {
  margin-bottom: 28px;
  color: var(--muted);
}

.gallery-heading h2 {
  font-size: clamp(38px, 4.4vw, 66px);
}

.gallery-heading > p {
  max-width: 390px;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 14px;
}

.gallery-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-track:focus,
.gallery-card:focus {
  outline: none;
}

.gallery-track:focus-visible,
.gallery-card:focus-visible {
  outline: 3px solid #9ab373;
  outline-offset: 4px;
}

.gallery-card {
  position: relative;
  flex: 0 0 min(72vw, 820px);
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border: 0;
  border-radius: 2px;
  background: #dfe3dc;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(.98) brightness(.98) sepia(.025);
  transition: transform .55s ease, filter .35s ease;
}

.gallery-card:hover img {
  transform: scale(1.018);
  filter: saturate(.96) contrast(1) brightness(1);
}

.gallery-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
}

.gallery-empty {
  min-height: 220px;
  margin: 0;
  display: flex;
  align-items: center;
  color: var(--muted);
}

.gallery-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #101714;
  color: white;
}

.gallery-dialog::backdrop {
  background: #101714;
}

.gallery-dialog figure {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 34px 80px 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-dialog figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter: none;
}

.gallery-dialog figcaption {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: .12em;
  color: #ffffffb3;
}

.gallery-dialog-close,
.gallery-dialog-nav {
  position: fixed;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff55;
  border-radius: 50%;
  background: #14201ccc;
  color: white;
}

.gallery-dialog-close {
  top: 24px;
  right: 28px;
  width: 48px;
  height: 48px;
  font-size: 31px;
}

.gallery-dialog-nav {
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
}

.gallery-dialog-prev { left: 22px; }
.gallery-dialog-next { right: 22px; }

.gallery-dialog-nav span {
  width: 11px;
  height: 11px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.gallery-dialog-prev span { transform: rotate(45deg); margin-left: 4px; }
.gallery-dialog-next span { transform: rotate(225deg); margin-right: 4px; }

@media (max-width: 700px) {
  .gallery {
    padding-top: 0;
    padding-bottom: 70px;
  }

  .gallery-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 28px;
  }

  .gallery-heading .eyebrow {
    margin-bottom: 20px;
  }

  .gallery-heading > p {
    font-size: 13px;
  }

  .gallery-track {
    margin-right: -6.8%;
    gap: 12px;
  }

  .gallery-card {
    flex-basis: 86vw;
  }

  .gallery-dialog figure {
    padding: 72px 12px 58px;
  }

  .gallery-dialog-close {
    top: 18px;
    right: 18px;
  }

  .gallery-dialog-nav {
    top: auto;
    bottom: 16px;
    transform: none;
    width: 44px;
    height: 44px;
  }

  .gallery-dialog-prev { left: 18px; }
  .gallery-dialog-next { right: 18px; }
}
