:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #f2ede6;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: #241d19;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-width: 320px;
  background: transparent;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top, rgba(205, 154, 104, 0.28), transparent 52%),
    linear-gradient(180deg, #2a221d 0%, #241d19 100%);
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 110px;
  z-index: 15;
  pointer-events: none;
  background: linear-gradient(180deg, #241d19 0%, rgba(36, 29, 25, 0.96) 72%, rgba(36, 29, 25, 0) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

body.mobile-nav.nav-stuck::after {
  opacity: 1;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

#app {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 80px;
}

.section-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 22px 0 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(36, 29, 25, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.section-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-nav a,
.section-nav-toggle {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #f2ede6;
  font: inherit;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.section-nav a:hover,
.section-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.section-nav a.is-active {
  background: rgba(217, 179, 139, 0.22);
  color: #fff7ee;
  box-shadow: inset 0 0 0 1px rgba(217, 179, 139, 0.28);
}

.section-nav-toggle {
  display: none !important;
  width: 0;
  height: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.section-nav-toggle-icon {
  display: inline-grid;
  gap: 5px;
  flex: 0 0 auto;
}

.section-nav-toggle-icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.section-nav-toggle-label {
  font-weight: 600;
  white-space: nowrap;
}

.hero,
.section,
.text-card,
.fact-card,
.feature-card,
.gallery-card,
.timeline-item,
.floorplan-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.24);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  padding: 28px;
  border-radius: 28px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: #d9b38b;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.hero-address {
  margin-bottom: 18px;
  color: #d9d1c8;
  font-size: 1.05rem;
}

.hero-intro,
.section-subtitle,
.text-card p,
.timeline-item p,
.feature-row dt,
.feature-row dd,
.fact-card span,
.gallery-card figcaption,
.floorplan-card figcaption {
  color: #d0c7bd;
}

.highlight-list,
.plain-list {
  margin: 0;
  padding-left: 18px;
}

.highlight-list li,
.plain-list li {
  margin-bottom: 10px;
}

.hero-image-wrap {
  min-height: 420px;
}

.hero-image {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
}

main {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

.section {
  padding: 28px;
  border-radius: 26px;
  scroll-margin-top: 88px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.fact-grid,
.description-grid,
.feature-sections,
.source-grid,
.two-column,
.floorplan-sections,
.timeline {
  display: grid;
  gap: 18px;
}

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

.fact-card,
.text-card {
  padding: 18px;
  border-radius: 20px;
}

.fact-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.25rem;
}

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

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

.feature-card {
  padding: 22px;
  border-radius: 22px;
}

.feature-card dl {
  margin: 0;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.feature-row dt,
.feature-row dd {
  margin: 0;
}

.gallery-grid,
.floorplan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-card,
.floorplan-card {
  overflow: hidden;
  border-radius: 20px;
  cursor: zoom-in;
}

.gallery-card img,
.floorplan-card img {
  width: 100%;
  object-fit: cover;
}

.media-thumb {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

.media-card:hover .media-thumb {
  transform: scale(1.02);
}

.gallery-card figcaption,
.floorplan-card figcaption {
  padding: 12px 14px 14px;
  font-size: 0.92rem;
}

.gallery-grid {
  display: block;
  columns: 3 280px;
  column-gap: 16px;
}

.gallery-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
}

.gallery-card img {
  aspect-ratio: auto;
}

.gallery-card:nth-child(5n + 1) img {
  aspect-ratio: 4 / 5;
}

.gallery-card:nth-child(5n + 2) img {
  aspect-ratio: 16 / 11;
}

.gallery-card:nth-child(5n + 3) img {
  aspect-ratio: 1 / 1;
}

.gallery-card:nth-child(5n + 4) img {
  aspect-ratio: 3 / 4;
}

.gallery-card:nth-child(5n + 5) img {
  aspect-ratio: 5 / 4;
}

.gallery-card,
.floorplan-card {
  break-inside: avoid;
}

.gallery-card figcaption {
  display: none;
}

.floorplan-group-heading {
  margin-bottom: 14px;
}

.floorplan-card figcaption {
  display: block;
  text-align: center;
}

.timeline-item span {
  color: #f2ede6;
}

.floorplan-card {
  background: rgba(255, 255, 255, 0.06);
}

.floorplan-card img {
  aspect-ratio: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.94);
}

.floorplan-thumb {
  padding: 10px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: rgba(10, 8, 7, 0.9);
  backdrop-filter: blur(14px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-open {
  overflow: hidden;
}

.lightbox-figure {
  margin: 0;
  max-height: 100vh;
  text-align: center;
}

.lightbox-image {
  max-width: min(92vw, 1600px);
  max-height: calc(100vh - 90px);
  margin: 0 auto;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  background: #000;
}

.lightbox-caption {
  margin-top: 14px;
  color: #efe6db;
}

.lightbox-close,
.lightbox-nav {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-nav {
  width: 56px;
  height: 56px;
  font-size: 2rem;
  justify-self: center;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: 20px;
}

.timeline-item span {
  font-weight: 700;
}

@media (max-width: 1080px) {
  .hero,
  .description-grid,
  .feature-sections,
  .source-grid,
  .two-column,
  .fact-grid,
  .floorplan-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    columns: 2 240px;
  }
}

@media (min-width: 821px) {
  .section-nav-links {
    display: flex !important;
  }

  .section-nav-toggle {
    display: none !important;
  }
}

@media (max-width: 820px) {
  body.nav-stuck::after {
    opacity: 1;
  }

  #app {
    width: min(100% - 20px, 1320px);
    padding-top: 20px;
  }

  .section-nav {
    top: 0;
    gap: 8px;
    padding: 12px;
  }

  .section-nav a,
  .section-nav-toggle {
    padding: 9px 12px;
    font-size: 0.95rem;
  }

  .hero,
  .section {
    padding: 18px;
    border-radius: 22px;
  }

  .section-nav {
    display: grid;
    gap: 10px;
  }

  .section-nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: auto;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    opacity: 1;
    pointer-events: auto;
  }

  .section-nav-links {
    display: none;
    flex-direction: column;
    gap: 8px;
  }

  .section-nav.is-open .section-nav-links {
    display: flex;
  }

  .section-nav.is-open .section-nav-toggle-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .section-nav.is-open .section-nav-toggle-icon span:nth-child(2) {
    opacity: 0;
  }

  .section-nav.is-open .section-nav-toggle-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .floorplan-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    columns: 1;
  }

  .timeline-item,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .lightbox {
    display: block;
    padding: 12px;
  }

  .lightbox-figure {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 24px);
  }

  .lightbox-image {
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 110px);
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    background: rgba(10, 8, 7, 0.45);
    backdrop-filter: blur(10px);
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-caption {
    margin-top: 10px;
    padding: 0 8px;
  }
}

@media (max-width: 820px) and (orientation: landscape) {
  .lightbox-figure {
    min-height: calc(100vh - 12px);
  }

  .lightbox-image {
    max-height: calc(100vh - 20px);
  }

  .lightbox-caption {
    display: none;
  }
}
