:root {
  --bg: #0c0f13;
  --surface: #141920;
  --text: #f2f2ef;
  --muted: #b6b9bf;
  --gold: #dfc69a;
  --line: rgba(255, 255, 255, 0.2);
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  z-index: 50;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.06));
  backdrop-filter: blur(8px);
}

.brand {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 1.2rem;
}

.nav a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--gold);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mode-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.mode-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mode-track {
  width: 56px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  position: relative;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}

.mode-thumb {
  position: absolute;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #f0f1f4;
  transition: transform 0.25s ease;
}

.mode-icon {
  width: 14px;
  height: 14px;
  stroke: #f0f1f4;
  fill: none;
  stroke-width: 1.8;
  opacity: 0.85;
  z-index: 1;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.mode-switch input:checked + .mode-track .mode-thumb {
  transform: translateX(26px);
  background: #fdf4d7;
}

.mode-switch input:checked + .mode-track {
  background: rgba(223, 198, 154, 0.22);
  border-color: rgba(223, 198, 154, 0.62);
  box-shadow: 0 0 16px rgba(223, 198, 154, 0.28);
}

.mode-icon-sun {
  opacity: 0.45;
}

.mode-switch input:checked + .mode-track .mode-icon-sun {
  opacity: 1;
  color: #f2d58a;
}

.mode-switch input:checked + .mode-track .mode-icon-moon {
  opacity: 0.6;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  width: 16px;
  height: 2px;
  background: white;
}

.hero {
  /* vh is often taller than the visible area on mobile (URL bar); dvh/svh track the real screen */
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
  will-change: transform;
}

.hero-bg.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 8, 12, 0.62) 0%, rgba(6, 8, 12, 0.45) 34%, rgba(6, 8, 12, 0.14) 62%, rgba(6, 8, 12, 0.04) 100%),
    linear-gradient(120deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.24) 62%, rgba(0, 0, 0, 0.42)),
    linear-gradient(to top, rgba(8, 10, 14, 0.55), rgba(8, 10, 14, 0.12) 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, 92%);
  margin-inline: auto;
  max-width: 1120px;
  padding: clamp(7.5rem, 14vh, 10rem) 0 clamp(3rem, 7vh, 5rem);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

.hero-kicker,
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-variant-numeric: lining-nums;
  margin: 0;
  line-height: 1;
}

h1 {
  font-size: clamp(2.3rem, 7vw, 5.6rem);
  max-width: 17ch;
  text-wrap: balance;
  margin-block: 0.3rem 1rem;
}

h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-block: 0.35rem 1rem;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.hero-content > p {
  max-width: 62ch;
  color: #e5e7eb;
}

.hero-highlights {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.hero-highlights span {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  font-size: 0.78rem;
  color: #f0f1f4;
  background: rgba(0, 0, 0, 0.42);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
  cursor: pointer;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.78);
  transition: all 0.25s ease;
}

.btn-outline:hover {
  background: #ffffff;
  color: #101317;
}

.btn-ghost {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transition: background 0.25s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-4);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #d7d9de;
}

.scroll-cue::after {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.62);
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

main > .section {
  content-visibility: auto;
  contain-intrinsic-size: 700px;
}

main > section[id] {
  scroll-margin-top: 92px;
}

.section-dark {
  background: var(--surface);
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 0.65rem;
}

.split {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}

.stats {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats article {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.stats article:hover {
  transform: translateY(-2px);
  border-color: rgba(223, 198, 154, 0.45);
}

.stats h3 {
  font-size: 1.5rem;
  margin: 0;
}

.cards {
  display: grid;
  gap: var(--space-4);
}

.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.3rem 1.2rem 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(223, 198, 154, 0.45);
  background: rgba(255, 255, 255, 0.04);
}

.metric {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
}

.siteplan-note {
  margin-top: var(--space-4);
  max-width: 70ch;
}

.siteplan-showcase {
  margin: 1.35rem 0 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 1rem 1rem 0.85rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  touch-action: manipulation;
}

.siteplan-showcase__head {
  margin-bottom: 0.85rem;
  padding: 0 0.1rem;
}

.siteplan-showcase__title {
  margin: 0;
  max-width: min(42ch, 100%);
  display: grid;
  gap: 0.35rem;
}

.siteplan-eyebrow {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.siteplan-showcase__title strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-variant-numeric: lining-nums;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}

.siteplan-sub {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.siteplan-showcase__stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  -webkit-tap-highlight-color: transparent;
}

.siteplan-showcase__stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(12, 15, 19, 0.55), transparent);
  border-radius: 0 0 14px 14px;
  opacity: 0.85;
}

.siteplan-showcase img {
  width: 100%;
  height: auto;
  display: block;
  background: #fafafa;
  cursor: zoom-in;
}

.siteplan-showcase__hint {
  position: absolute;
  right: 0.75rem;
  bottom: 0.65rem;
  left: 0.75rem;
  z-index: 1;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  pointer-events: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

@media (min-width: 921px) {
  .siteplan-showcase__hint {
    opacity: 0.72;
    font-size: 0.65rem;
  }

  .siteplan-showcase:hover .siteplan-showcase__hint {
    opacity: 1;
  }
}

.siteplan-showcase:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.36);
  border-color: rgba(223, 198, 154, 0.38);
}

.unit-types {
  margin-top: 1.75rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.unit-types h3 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 1rem;
}

.unit-types-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 2rem;
}

.unit-types-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.unit-types-list li {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.unit-types-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.unit-types-list strong {
  font-weight: 600;
  color: #f0f1f4;
}

.option-split-wrap {
  display: grid;
  gap: 1.4rem;
}

.option-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  min-width: 0;
}

.option-split-reverse .option-copy {
  order: 2;
}

.option-split-reverse .option-visual {
  order: 1;
}

.option-copy p {
  margin: 0.35rem 0 1rem;
  max-width: 48ch;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

.option-copy h3 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.option-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 1.2rem;
}

.option-copy li {
  break-inside: avoid;
  position: relative;
  padding-left: 1rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  margin-bottom: 0.62rem;
}

.option-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(223, 198, 154, 0.85);
}

.option-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0 0 1rem;
}

.option-stats span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.2rem;
}

.option-stats strong {
  color: #f6e9c8;
  font-size: 0.94rem;
  line-height: 1.35;
}

.option-stats > div {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.6rem 0.55rem;
  background: rgba(255, 255, 255, 0.02);
}

.option-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: start;
  min-width: 0;
}

.option-plan {
  margin: 0;
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 0.55rem 0.55rem 0.65rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.option-plan figcaption {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.45rem;
  padding-left: 0.2rem;
}

.option-plan img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(62vh, 640px);
  display: block;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: 0;
  cursor: zoom-in;
  justify-self: center;
  align-self: center;
}

.option-plan:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
  border-color: rgba(223, 198, 154, 0.45);
}

.amenities-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.amenity-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  aspect-ratio: 1 / 0.9;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.amenity-card:hover {
  transform: translateY(-2px);
  border-color: rgba(223, 198, 154, 0.45);
  background: rgba(255, 255, 255, 0.04);
}

.amenity-card h3 {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
  color: #d9dbe0;
}

.amenity-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
  color: var(--gold);
}

.gallery-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.gallery-item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  grid-column: span 4;
  aspect-ratio: 4 / 3;
  min-height: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.26);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  touch-action: manipulation;
}

.gallery-item-lg {
  grid-column: span 8;
  grid-row: span 2;
  aspect-ratio: 16 / 10;
}

.gallery-item-wide {
  grid-column: span 12;
  aspect-ratio: 16 / 7;
}

.gallery-item-midwide {
  grid-column: span 8;
  aspect-ratio: 16 / 8;
}

.gallery-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease, filter 0.45s ease;
  cursor: zoom-in;
}

.gallery-item:hover .gallery-media {
  transform: scale(1.04);
  filter: contrast(1.03);
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  border-color: rgba(223, 198, 154, 0.45);
}

.contact {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1.2fr 1fr;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
}

.contact-card a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.location-copy {
  max-width: 72ch;
  margin-bottom: var(--space-4);
}

.map-wrap {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  min-height: 460px;
}

.map-fallback {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}

.map-fallback a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: center;
  justify-items: center;
  gap: 0.65rem;
  padding: 3.25rem 1rem 1rem;
  padding-top: max(3.25rem, env(safe-area-inset-top, 0px) + 2.5rem);
  background: rgba(5, 7, 10, 0.92);
  z-index: 100;
  isolation: isolate;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-viewport {
  position: relative;
  grid-row: 1;
  align-self: center;
  width: min(1200px, 94vw);
  height: min(86vh, 900px);
  max-height: calc(100vh - 7rem);
  min-height: 0;
  z-index: 1;
  touch-action: pan-x pan-y;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(12, 14, 18, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Inner pan: grows with zoomed image so the outer viewport scrolls reliably (esp. iOS). */
.lightbox-viewport-pan {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: fit-content;
  min-width: 100%;
  min-height: 100%;
  box-sizing: border-box;
}

.lightbox-viewport.lightbox-viewport--grab {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.lightbox-viewport.lightbox-viewport--grabbing {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

/* Route drags to the scroll container (mouse pan); touch still scrolls the viewport */
.lightbox-viewport.lightbox-viewport--grab img {
  pointer-events: none;
}

.lightbox-viewport img {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-zoom-toolbar {
  position: relative;
  grid-row: 2;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.35rem 0.6rem;
  padding-bottom: max(0.35rem, env(safe-area-inset-bottom, 0px));
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 13, 17, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox-zoom-toolbar[hidden] {
  display: none !important;
}

.lightbox-zoom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox-zoom-btn:hover {
  background: rgba(223, 198, 154, 0.18);
  border-color: rgba(223, 198, 154, 0.45);
  color: #f6e9c8;
}

.lightbox-zoom-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.lightbox-zoom-icon {
  width: 22px;
  height: 22px;
}

.lightbox-zoom-fit {
  width: auto;
  min-width: 52px;
  padding: 0 0.85rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lightbox-zoom-pct {
  min-width: 3.25rem;
  text-align: center;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: manipulation;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top, 0px) + 0.35rem);
  right: max(1rem, env(safe-area-inset-right, 0px));
  z-index: 40;
  border: 1px solid var(--line);
  background: rgba(10, 13, 17, 0.88);
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  min-height: 48px;
  min-width: 48px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.lightbox-zoom-btn.lightbox-zoom-close-plans {
  width: auto;
  min-width: 52px;
  padding: 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  .lightbox-viewport {
    max-height: calc(100vh - 11rem);
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .lightbox-prev {
    left: 0.7rem;
  }

  .lightbox-next {
    right: 0.7rem;
  }
}

@media (max-width: 920px) {
  .nav {
    position: fixed;
    top: 68px;
    right: 1rem;
    display: none;
    flex-direction: column;
    background: rgba(10, 13, 17, 0.95);
    border: 1px solid var(--line);
    padding: 0.7rem;
    border-radius: 14px;
    min-width: 160px;
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .split,
  .cards.two,
  .contact,
  .option-split {
    grid-template-columns: 1fr;
  }

  .option-split-reverse .option-copy,
  .option-split-reverse .option-visual {
    order: initial;
  }

  .option-stats {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .option-copy ul {
    columns: 1;
  }

  .option-copy li {
    padding-left: 1.05rem;
    line-height: 1.65;
  }

  .option-visual {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  /* Floor plans: full drawing inside the card (no rotation — avoids transform overflow) */
  .option-plan {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    padding: 0.5rem 0.45rem 0.65rem;
    overflow: hidden;
    touch-action: manipulation;
  }

  .option-plan img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(48vh, 360px);
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
    display: block;
    justify-self: center;
    align-self: center;
  }

  .amenities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .amenity-card {
    aspect-ratio: auto;
    min-height: 88px;
  }

  .section {
    padding: 3.5rem 0;
  }

  .siteplan-showcase {
    border-radius: 18px;
    padding: 0.85rem 0.75rem 0.7rem;
  }

  .siteplan-showcase__head {
    margin-bottom: 0.75rem;
  }

  .unit-types {
    margin-top: 1.35rem;
    padding: 1rem 0.9rem 1.05rem;
  }

  .unit-types-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .unit-types-list:first-child li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.5rem;
    margin-bottom: 0.15rem;
  }

  .hero-actions {
    margin-top: var(--space-4);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item,
  .gallery-item-lg,
  .gallery-item-wide {
    grid-column: span 1;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .map-wrap iframe {
    min-height: 340px;
  }

  h1 {
    max-width: 100%;
  }

  .hero-content {
    padding-top: 7.2rem;
    /* Space for absolutely positioned scroll cue + gesture / home indicator */
    padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px));
  }

  .hero-content > p {
    max-width: 100%;
  }

  /* Bottom of hero (not fixed to viewport — avoids covering content below hero) */
  .scroll-cue {
    position: absolute;
    left: 0;
    bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
    margin-top: 0;
  }
}

:focus-visible {
  outline: 2px solid rgba(223, 198, 154, 0.9);
  outline-offset: 2px;
}

@media (max-width: 1200px) and (min-width: 921px) {
  .amenities-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .gallery-item,
  .gallery-item-wide {
    grid-column: span 3;
    aspect-ratio: 4 / 3;
  }

  .gallery-item-midwide {
    grid-column: span 3;
    aspect-ratio: 4 / 3;
  }

  .gallery-item-lg {
    grid-column: span 6;
    grid-row: span 2;
    aspect-ratio: 16 / 10;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-bg,
  .gallery-grid img,
  .btn-outline,
  .btn-ghost,
  .card,
  .stats article {
    transition: none !important;
  }
}
