:root {
  --navy: #1b2d4f;
  --navy-deep: #0f1d33;
  --sand: #f6f1e9;
  --sand-deep: #ece3d3;
  --ink: #1a1f2a;
  --ink-soft: #4a5160;
  --gold: #c9a35a;
  --gold-deep: #a8823b;
  --pearl: #e8dfd0;
  --white: #ffffff;
  --shadow-lg: 0 30px 80px -30px rgba(15, 25, 40, 0.35);
  --shadow-md: 0 12px 40px -18px rgba(15, 25, 40, 0.25);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
}

/* ───────── NAV ───────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 18px 28px;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}
.nav.is-scrolled {
  background: rgba(15, 29, 51, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 28px;
  box-shadow: 0 2px 30px rgba(0,0,0,0.15);
}
.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
}
.nav__link {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.3s;
}
.nav__link:hover { color: #fff; }
@media (max-width: 780px) { .nav__link { display: none; } }
.nav__cta {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  padding: 10px 26px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 2px;
  transition: background 0.3s, border-color 0.3s;
}
.nav__cta:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
}

/* ───────── HERO ───────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  background: var(--navy-deep);
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15,29,51,0.55) 0%, rgba(15,29,51,0.20) 25%, rgba(15,29,51,0.25) 40%, rgba(15,29,51,0.55) 60%, rgba(15,29,51,0.80) 80%, rgba(15,29,51,0.88) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  text-align: center;
}
.hero__logo {
  width: clamp(200px, 26vw, 380px);
  height: auto;
  margin-bottom: 28px;
  filter: brightness(0) invert(1) drop-shadow(0 4px 20px rgba(0,0,0,0.3));
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  animation: reveal 1.4s 0.3s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 2.4vw, 28px);
  color: rgba(255,255,255,0.92);
  margin: 0 0 40px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  opacity: 0;
  animation: rise 1.2s 0.6s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero__stats {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  opacity: 0;
  animation: rise 1.2s 0.9s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero__stat { text-align: center; }
.hero__stat-num {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.hero__stat-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 8px;
}
.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.25);
}

@keyframes reveal {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  text-decoration: none;
}
.hero__scroll span {
  width: 2px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scrollPulse 1.8s infinite;
}
@keyframes scrollPulse {
  0% { opacity: 0; transform: translateY(-4px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ───────── VISION ───────── */
.vision {
  padding: clamp(80px, 10vw, 140px) 24px;
  background: var(--sand);
}
.vision__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.vision__inner h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 16px 0 0;
  color: var(--navy);
}
.vision__rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 32px auto;
}
.vision__inner p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.8;
  margin: 0 0 1.2em;
}
.vision__inner p:last-child { margin-bottom: 0; }

/* ───────── RESIDENCE ───────── */
.residence {
  padding: clamp(60px, 8vw, 100px) 24px;
  background: var(--white);
}
.residence__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) {
  .residence__inner { grid-template-columns: 1fr; }
  .residence__media { order: -1; }
}
.residence__text h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  margin: 14px 0 20px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.residence__lead {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin: 0 0 28px;
}
.residence__features {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
@media (max-width: 500px) {
  .residence__features { grid-template-columns: 1fr; }
}
.residence__features li {
  font-size: 14px;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}
.residence__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--navy);
  padding: 16px 36px;
  border-radius: 2px;
  transition: background 0.3s, transform 0.2s;
}
.btn:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
}

.residence__media {
  position: relative;
}
.residence__img--main {
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
}

/* ───────── DETAILS BAND ───────── */
.details {
  background: var(--navy);
  color: #fff;
  padding: clamp(50px, 7vw, 80px) 24px;
}
.details__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
@media (max-width: 700px) {
  .details__inner { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
}
.details__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  color: var(--gold);
}
.details__icon svg { width: 100%; height: 100%; }
.details__num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1;
  margin-bottom: 6px;
}
.details__label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ───────── GALLERY ───────── */
.gallery {
  background: var(--sand);
  padding: clamp(60px, 7vw, 100px) 0 clamp(50px, 6vw, 80px);
  overflow: hidden;
}
.gallery__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(28px, 3vw, 44px);
  padding: 0 24px;
}
.gallery__header h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  margin: 14px 0 0;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.gallery__viewport {
  position: relative;
  padding: 0 clamp(16px, 4vw, 60px);
}
.gallery__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0;
  cursor: grab;
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.gallery__slide {
  flex: 0 0 auto;
  width: clamp(300px, 42vw, 600px);
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--sand-deep);
  scroll-snap-align: center;
  user-select: none;
}
.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.gallery__slide:hover img { transform: scale(1.04); }
.gallery__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(27,45,79,0.12);
  background: #fff;
  color: var(--navy);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.gallery__btn:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}
.gallery__btn--prev { left: clamp(4px, 1.5vw, 20px); }
.gallery__btn--next { right: clamp(4px, 1.5vw, 20px); }
@media (max-width: 640px) { .gallery__btn { display: none; } }

.gallery__swipe-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: nudgeRight 2s ease-in-out infinite;
}
.gallery__swipe-hint svg { color: var(--gold); }
@keyframes nudgeRight {
  0%, 100% { transform: translateX(0); opacity: 0.6; }
  50% { transform: translateX(6px); opacity: 1; }
}
@media (max-width: 640px) { .gallery__swipe-hint { display: flex; } }

/* ───────── LOCATION ───────── */
.location {
  padding: clamp(60px, 8vw, 100px) 24px;
  background: var(--white);
}
.location__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) {
  .location__inner { grid-template-columns: 1fr; }
}
.location__text h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
  margin: 16px 0 24px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.location__text p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
  margin: 0 0 28px;
}
.location__highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}
.location__highlights li {
  font-size: 15px;
  color: var(--ink-soft);
  padding: 10px 0;
  border-bottom: 1px solid var(--pearl);
  padding-left: 20px;
  position: relative;
}
.location__highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.location__highlights li:last-child { border-bottom: none; }

.location__map {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--sand-deep);
}
.location__map iframe {
  width: 100%;
  height: 100%;
}

/* ───────── CTA ───────── */
.cta {
  background: var(--navy);
  color: #fff;
  padding: clamp(80px, 10vw, 130px) 24px;
  text-align: center;
}
.cta__inner {
  max-width: 680px;
  margin: 0 auto;
}
.cta .eyebrow { color: var(--gold); }
.cta h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  margin: 16px 0 24px;
  letter-spacing: -0.01em;
}
.cta p {
  color: rgba(255,255,255,0.7);
  font-size: 17px;
  line-height: 1.75;
  margin: 0 0 40px;
}
.cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta .btn:not(.btn--outline) {
  background: #fff;
  color: var(--navy);
}
.cta .btn:not(.btn--outline):hover {
  background: var(--pearl);
  color: var(--navy-deep);
}
.btn--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
}
.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

/* ───────── FOOTER ───────── */
.footer {
  background: var(--navy-deep);
  color: #e6e3dc;
  padding: clamp(70px, 9vw, 110px) 24px 40px;
}
.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 780px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  .footer__col--brand { justify-items: center; }
  .footer__agent { justify-content: center; }
}
.footer__col--brand {
  display: grid;
  gap: 20px;
}
.footer__logo {
  width: 160px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

/* ───────── SITE PLAN ───────── */
.siteplan {
  padding: clamp(60px, 8vw, 100px) 24px;
  background: var(--sand);
}
.siteplan__inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.siteplan__inner h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  margin: 14px 0 16px;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.siteplan__inner > p {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.siteplan__img {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
}
.footer__addr {
  font-size: 14px;
  line-height: 1.7;
  color: #b8b3a8;
  letter-spacing: 0.02em;
}
.footer__blurb {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  margin: 0;
  line-height: 1.6;
}

.footer__col--agent .eyebrow {
  color: var(--gold);
  margin-bottom: 20px;
}
.footer__agent {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.footer__headshot {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(255,255,255,0.15);
}
.footer__name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 2px;
}
.footer__role {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b8b3a8;
  margin-bottom: 4px;
}
.footer__firm-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: #e6e3dc;
}
.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer__list li { margin: 7px 0; }
.footer__list a {
  color: #e6e3dc;
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.footer__list a:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.footer__base {
  text-align: center;
  margin-top: 70px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a7568;
}

/* ───────── SCROLL ANIMATIONS ───────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
