:root {
  --bg: #f6f1e7;
  --paper: #fffdfa;
  --ink: #23211d;
  --muted: #6f685e;
  --line: #d9cfbf;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(44px, 7vw, 88px);
  margin-bottom: 8px;
}

h2 {
  font-size: clamp(34px, 4.2vw, 56px);
}

h3 {
  font-size: clamp(23px, 2.4vw, 32px);
}

p {
  margin: 0 0 16px;
}

a {
  color: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
}

.section {
  padding: 88px 0;
}

.alt {
  background: var(--bg);
}

.eyebrow {
  letter-spacing: 0.14em;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 12px;
}


/* ---------------- NAV ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 250, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 14px;
  text-decoration: none;
  color: inherit;
}

.navlinks {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

.navlinks a {
  text-decoration: none;
}


/* ---------------- HERO ---------------- */

.hero {
  min-height: 78vh;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  filter: none;
  opacity: 1;
}

.hero::before {
  display: none;
}

.hero .wrap {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);

  width: min(var(--max), calc(100% - 40px));

  margin: 0;
  padding: 0;
}

.hero-price {
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0 0 2px;
}

.hero h1 {
  margin: 0 0 5px;
}

.hero-address {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.92;
}

.tagline {
  font-size: clamp(16px, 2vw, 21px);
  max-width: 840px;
  margin-top: 6px;
}


/* ---------------- WHY HUDSON VALLEY ---------------- */

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 64px;
  align-items: start;
  margin-top: 42px;
}

.why-copy {
  display: grid;
  gap: 22px;
  padding-left: 28px;
  padding-right: 12px;
}

.why-item {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.why-item:last-child {
  border-bottom: 0;
}

.why-item h3 {
  font-size: 27px;
  margin-bottom: 8px;
}

.why-item p {
  color: #393630;
}

.why-visuals {
  display: grid;
  gap: 0;
  position: sticky;
  top: 86px;
}

.why-visuals img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  border-radius: 0;
}


/* ---------------- CLICKABLE ---------------- */

.clickable {
  cursor: zoom-in;
}


/* ---------------- MAP ---------------- */

.map-shell {
  width: min(78%, 900px);
  margin: 0 auto;
}

.map-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}


/* ---------------- VIDEO ---------------- */

.video-wrap {
  aspect-ratio: 16 / 9;
  background: #111;
}

.video-wrap iframe,
.video-wrap video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-fallback {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}


/* ---------------- WHY 23 GREENWICH AVE ---------------- */

.description {
  max-width: 930px;
  font-size: 17px;
}

.description p {
  margin-bottom: 20px;
}

.description p:first-child {
  font-size: 18px;
}


/* ---------------- DETAILS ---------------- */

.details-list {
  margin: 38px 0 34px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 54px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.detail-row span:first-child {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.detail-row strong {
  font-size: 17px;
  text-align: right;
  font-weight: 600;
}


/* ---------------- FLOOR PLANS ---------------- */

.floor-stage {
  position: relative;
  min-height: 830px;
  margin-top: 18px;
}

.floor-item {
  position: absolute;
  width: min(46%, 500px);
  background: var(--paper);
  padding: 10px 10px 14px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(42, 35, 24, 0.08);
}

.floor-item h3 {
  font-size: 22px;
  margin: 6px 6px 10px;
}

.floor-item:nth-child(1) {
  left: 0;
  top: 0;
}

.floor-item:nth-child(2) {
  right: 2%;
  top: 145px;
}

.floor-item:nth-child(3) {
  left: 15%;
  top: 345px;
}

.floor-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: white;
}

.floorplan-note {
  max-width: 900px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 28px 0 0;
  clear: both;
}


/* ---------------- GALLERY ---------------- */

.gallery-mosaic {
  display: grid;
  gap: 22px;
  margin-top: 34px;
  width: 84%;
  margin-left: auto;
  margin-right: 0;
}

.gallery-row {
  width: 100%;
  display: grid;
  gap: 14px;
  align-items: stretch;
}

.gallery-row.row-1 {
  grid-template-columns: 1fr 2fr 1fr;
  aspect-ratio: 3 / 1;
}

.gallery-row.row-2,
.gallery-row.row-3 {
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 3 / 1;
}

.gallery-row.align-left {
  margin-left: 0;
  margin-right: auto;
}

.gallery-row.align-center {
  margin-left: auto;
  margin-right: auto;
}

.gallery-row.align-right {
  margin-left: auto;
  margin-right: 0;
}

.small-pair {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}

.small-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}

.big-photo,
.small-photo {
  overflow: hidden;
  background: #eee;
}

.big-photo img,
.small-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}


/* ---------------- LIGHTBOX ---------------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 30px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  object-fit: contain;
}


/* ---------------- PRIVATE SHOWING ---------------- */

.showing-shell {
  max-width: 760px;
  margin-left: auto;
  margin-right: 0;
}

.contact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  max-width: 760px;
  margin-top: 30px;
  text-align: left;
}

.contact.align-left {
  margin-left: 0;
  margin-right: auto;
}

.contact.align-center {
  margin-left: auto;
  margin-right: auto;
}

.contact.align-right {
  margin-left: auto;
  margin-right: 0;
}

.contact img.headshot {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  background: #eee;
}

.contact img.logo {
  max-width: 220px;
  max-height: 80px;
  object-fit: contain;
  margin-top: 12px;
}


/* ---------------- FOOTER ---------------- */

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}


/* ---------------- TABLET ---------------- */

@media (max-width: 900px) {

  .why-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .why-copy {
    padding-left: 0;
    padding-right: 0;
  }

  .why-visuals {
    position: static;
    grid-template-columns: repeat(3, 1fr);
  }

  .floor-stage {
    min-height: 0;
    display: grid;
    gap: 22px;
  }

  .floor-item {
    position: static;
    width: 100%;
  }

  .floorplan-note {
    margin-top: 24px;
  }

  .map-shell {
    width: 90%;
  }
}


/* ---------------- MOBILE ---------------- */

@media (max-width: 760px) {

  .navlinks {
    display: none;
  }

  .section {
    padding: 62px 0;
  }

  .hero {
    min-height: 66vh;
  }

  .hero .wrap {
    bottom: 12px;
  }

  .why-copy {
    padding-left: 0;
    padding-right: 0;
  }

  .why-visuals {
    grid-template-columns: 1fr;
  }

  .details-list {
    grid-template-columns: 1fr;
  }

  .gallery-mosaic {
    width: 100% !important;
    margin-left: 0;
    margin-right: 0;
  }

  .gallery-row,
  .gallery-row.row-1,
  .gallery-row.row-2,
  .gallery-row.row-3 {
    grid-template-columns: 1fr;
    aspect-ratio: auto !important;
  }

  .small-pair,
  .small-block {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .big-photo,
  .small-photo {
    aspect-ratio: 3 / 2;
  }

  .map-shell {
    width: 100%;
  }

  .showing-shell {
    margin-left: 0;
    margin-right: 0;
  }

  .contact {
    grid-template-columns: 1fr;
    text-align: right;
  }

  .contact img.headshot,
  .contact img.logo {
    margin-left: auto;
  }
}
@media (max-width: 760px) {

  .gallery-mosaic {
    width: 100% !important;
    margin-left: 0;
    margin-right: 0;
  }

  .gallery-row,
  .gallery-row.row-1,
  .gallery-row.row-2,
  .gallery-row.row-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    aspect-ratio: auto !important;
  }

  .big-photo {
    width: 100%;
    aspect-ratio: 3 / 2;
    min-height: 220px;
    display: block;
  }

  .big-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .small-pair,
  .small-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .small-photo {
    width: 100%;
    aspect-ratio: 3 / 2;
    display: block;
  }

  .small-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }
}
.lightbox-close {
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 1100;
  width: 46px;
  height: 46px;
  border: none;
  background: rgba(0,0,0,.45);
  color: white;
  font-size: 36px;
  line-height: 42px;
  font-weight: 300;
  cursor: pointer;
  border-radius: 50%;
}

.lightbox-close:hover {
  background: rgba(0,0,0,.7);
}

@media (max-width: 760px) {
  .lightbox-close {
    top: 14px;
    right: 14px;
  }
}