:root {
  --ink: #1e2225;
  --base: #f7f5f1;
  --slate: #4a5b6b;
  --gold: #c9a66b;
  --oak: #b98e5e;
  --hairline: #d8d8d2;
  --white: #ffffff;
  --shadow: 0 24px 80px rgb(30 34 37 / 18%);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--white);
  padding: .75rem 1rem;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  color: var(--white);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.site-header.is-solid,
.site-header.is-open {
  background: rgb(247 245 241 / 94%);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--hairline);
  backdrop-filter: blur(10px);
}
.brand {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .18em;
  line-height: 1;
}
.brand span { display: block; font-family: var(--serif); font-size: 2rem; letter-spacing: .04em; }
.brand strong { display: block; margin-top: .18rem; font-size: .72rem; font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 1rem; }
.site-nav a { text-decoration: none; font-size: .92rem; }
.nav-cta { border: 1px solid currentColor; border-radius: 999px; padding: .55rem .9rem; font-weight: 800; }
.nav-toggle { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--white);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  padding: .85rem 1.3rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .03em;
  cursor: pointer;
}
.button:hover { transform: translateY(-1px); }
.button.ghost { background: transparent; color: var(--white); border-color: rgb(255 255 255 / 72%); }

.section { padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 5vw, 5rem); }
.section-dark { background: var(--ink); color: var(--white); }
.eyebrow {
  margin: 0 0 1rem;
  color: var(--oak);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 800;
}
.section-dark .eyebrow { color: var(--gold); }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(4rem, 10vw, 8.8rem); }
h2 { font-size: clamp(2.4rem, 5.5vw, 5rem); }
h3 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.45; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 7rem 1.25rem 4rem;
  text-align: center;
  overflow: hidden;
}
.hero-poster,
.hero-video-frame,
.hero-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-poster,
.hero-poster img {
  width: 100%;
  height: 100%;
}
.hero-poster img {
  object-fit: cover;
}
.hero-video-frame {
  overflow: hidden;
  background: #000;
  opacity: 0;
  transition: opacity .45s ease;
}
.hero-video-frame.is-video-ready {
  opacity: 1;
}
.hero-video-frame iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 56.25vh);
  height: max(177.78vw, 100vh);
  border: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-vignette {
  background:
    radial-gradient(circle at center, rgb(0 0 0 / 2%), rgb(0 0 0 / 34%) 52%, rgb(0 0 0 / 62%)),
    linear-gradient(180deg, rgb(0 0 0 / 20%), rgb(0 0 0 / 46%));
}
.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  max-width: 1100px;
  color: var(--white);
  text-shadow: 0 2px 28px rgb(0 0 0 / 45%);
}
.hero-kicker {
  margin: 0 0 .75rem;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  letter-spacing: .04em;
}
.hero-place {
  margin: -.25rem 0 0;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.3vw, 2.1rem);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem; margin-top: clamp(2rem, 6vw, 5rem); text-shadow: none; }

.experience-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.experience-copy { max-width: 760px; }
.experience-visual {
  position: relative;
  margin: 0;
  min-height: 520px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--sand);
}
.experience-crossfade { position: absolute; inset: 0; }
.experience-picture,
.experience-picture img { width: 100%; height: 100%; }
.experience-picture {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  animation: experience-crossfade 15s ease-in-out infinite;
}
.experience-picture img { object-fit: cover; }
.experience-picture-reservoir { opacity: 1; }
.experience-picture-pano { animation-delay: 5s; }
.experience-picture-rear { animation-delay: 10s; }
@keyframes experience-crossfade {
  0%, 28% { opacity: 1; }
  35%, 93% { opacity: 0; }
  100% { opacity: 1; }
}

.section-heading.compact {
  max-width: 860px;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}
.explore-section { padding-top: clamp(3rem, 7vw, 6rem); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: .85rem;
}
.gallery-card,
.plan-card {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}
.gallery-card { grid-column: span 3; }
.gallery-card:nth-child(1),
.gallery-card:nth-child(10),
.gallery-card:nth-child(21) { grid-column: span 6; }
.gallery-card:nth-child(7),
.gallery-card:nth-child(16) { grid-column: span 4; }
.gallery-card:nth-child(11),
.gallery-card:nth-child(18) { grid-column: span 5; }
.gallery-picture img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 1px 0 rgb(0 0 0 / 6%);
  transition: transform .2s ease, filter .2s ease;
}
.gallery-card:hover img { transform: scale(1.015); filter: saturate(1.05); }

.explore-floorplans { margin-top: clamp(3rem, 7vw, 6rem); }
.plan-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.plan-card { position: relative; background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: 0 16px 44px rgb(30 34 37 / 12%); }
.plan-card span { position: absolute; z-index: 1; top: .8rem; left: .8rem; background: var(--ink); color: var(--white); border-radius: 999px; padding: .3rem .65rem; font-weight: 800; font-size: .78rem; }
.plan-picture { display: block; }
.plan-picture img {
  width: 100%;
  height: clamp(180px, 22vw, 280px);
  object-fit: contain;
  background: var(--white);
}

.elevate-section { background: #efede7; }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.detail-grid article {
  display: grid;
  gap: .75rem;
  min-height: 210px;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--base);
}
.detail-grid span {
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .75rem;
  font-weight: 900;
}
.detail-grid strong { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.15; font-weight: 500; }
.inquiry-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  background: var(--ink);
  color: var(--white);
}
.close-copy { max-width: 720px; }
.agent-card {
  display: grid;
  gap: .2rem;
  margin-top: 2rem;
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
}
.agent-card a { color: var(--white); text-decoration: none; }
.inquiry-form {
  display: grid;
  gap: 1rem;
  background: var(--white);
  color: var(--ink);
  border-radius: 28px;
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: var(--shadow);
}
.inquiry-form label { font-weight: 800; }
.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: .9rem 1rem;
  font: inherit;
  background: var(--base);
}
.inquiry-form input:focus,
.inquiry-form textarea:focus {
  outline: 3px solid rgb(180 143 70 / 28%);
  border-color: var(--gold);
}
.inquiry-form [aria-invalid="true"] {
  border-color: #a43b3b;
  background: #fff8f6;
}
.field-error {
  min-height: 1.1rem;
  margin-top: -.7rem;
  color: #8a2d2d;
  font-size: .9rem;
  font-weight: 800;
}
.inquiry-form .button { background: var(--slate); border-color: var(--slate); color: var(--white); }
.hp-field { position: absolute; left: -100vw; }
.form-status { min-height: 1.5rem; font-weight: 800; }
.form-status.success { color: #28633f; }
.form-status.error { color: #8a2d2d; }

.site-footer {
  padding: 2rem clamp(1rem, 5vw, 5rem);
  background: #151719;
  color: rgb(255 255 255 / 78%);
  font-size: .9rem;
}
.site-footer p { max-width: 980px; }
.sticky-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9;
  background: var(--slate);
  color: var(--white);
  padding: .75rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  box-shadow: var(--shadow);
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgb(0 0 0 / 88%);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; width: auto; box-shadow: var(--shadow); }
.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(255 255 255 / 40%);
  border-radius: 50%;
  background: rgb(0 0 0 / 30%);
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .gallery-card,
  .gallery-card:nth-child(1),
  .gallery-card:nth-child(7),
  .gallery-card:nth-child(10),
  .gallery-card:nth-child(11),
  .gallery-card:nth-child(16),
  .gallery-card:nth-child(18),
  .gallery-card:nth-child(21) { grid-column: span 6; }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    padding: .55rem .85rem;
    font: inherit;
    font-weight: 800;
    line-height: 1;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--base);
    color: var(--ink);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }
  .site-header.is-open .site-nav { display: flex; }
  .experience-section,
  .inquiry-section,
  .plan-strip { grid-template-columns: 1fr; }
  .experience-visual { min-height: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  .experience-picture { animation: none; opacity: 0; }
  .experience-picture-reservoir { opacity: 1; }
}

@media (max-width: 620px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .section { padding-inline: 1rem; }
  .hero { min-height: 94svh; }
  .hero-actions { width: 100%; }
  .hero-actions .button { width: 100%; }
  .gallery-card,
  .gallery-card:nth-child(1),
  .gallery-card:nth-child(7),
  .gallery-card:nth-child(10),
  .gallery-card:nth-child(11),
  .gallery-card:nth-child(16),
  .gallery-card:nth-child(18),
  .gallery-card:nth-child(21) { grid-column: span 12; }
  .detail-grid { grid-template-columns: 1fr; }
  .sticky-cta {
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 0;
    background: rgb(247 245 241 / 96%);
    color: var(--ink);
    padding: .9rem 1rem calc(.9rem + env(safe-area-inset-bottom));
    text-align: center;
    box-shadow: 0 -1px 0 var(--hairline), 0 -18px 48px rgb(30 34 37 / 12%);
    backdrop-filter: blur(10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .hero-video-frame { display: none; }
}
