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

:root {
  --gold:    #C9A96E;
  --gold-lt: #E8D5B0;
  --black:   #080808;
  --off:     #0F0F0D;
  --white:   #F5F2EC;
  --muted:   rgba(245,242,236,0.45);
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'Inter', system-ui, sans-serif;
}

html { scroll-behavior: auto; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  background: linear-gradient(to bottom, rgba(8,8,8,0.85) 0%, transparent 100%);
  backdrop-filter: blur(0px);
  transition: background 0.4s;
}
nav.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--white);
  text-transform: uppercase;
  text-decoration: none;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 10px 24px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.nav-cta:hover { background: var(--gold); color: var(--black); }

/* hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 120;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-links { list-style: none; text-align: center; }
.mobile-links li { margin: 28px 0; }
.mobile-links a {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}
.mobile-links a:hover { color: var(--gold); }
.mobile-links .mobile-cta {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 14px 36px;
}

/* ── SCROLL HERO ── */
#scroll-hero {
  position: relative;
  height: 600vh; /* scroll distance */
}

.sticky-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform: scale(1);
}

/* dark vignette over video */
.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(8,8,8,0.55) 100%);
  pointer-events: none;
}
.vignette-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30%;
  background: linear-gradient(to top, var(--black), transparent);
  pointer-events: none;
}

/* ── HERO OVERLAY PANELS ── */
.hero-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}
.hero-panel.visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-panel.exit {
  opacity: 0;
  transform: translateY(-20px);
}

.panel-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.panel-headline {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  text-shadow: 0 2px 40px rgba(0,0,0,0.6);
  margin-bottom: 24px;
}
.panel-headline em {
  font-style: italic;
  color: var(--gold-lt);
}
.panel-sub {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.8;
}

/* scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 1;
  transition: opacity 0.5s;
}
.scroll-hint span {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* progress bar */
.scroll-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: var(--gold);
  width: 0%;
}

/* ── CONTENT SECTIONS ── */
.content-section {
  background: var(--off);
  padding: 140px 48px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.section-headline {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 32px;
  max-width: 700px;
}
.section-headline em { font-style: italic; color: var(--gold-lt); }
.section-body {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted);
  max-width: 560px;
}

/* stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 80px;
}
.stat-card {
  background: rgba(201,169,110,0.06);
  border: 1px solid rgba(201,169,110,0.12);
  padding: 48px 36px;
}
.stat-num {
  font-family: var(--serif);
  font-size: 3.8rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* properties grid */
.properties-section {
  background: var(--black);
  padding: 140px 48px;
}
.props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin: 64px auto 0;
  max-width: 1100px;
}
.prop-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.prop-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.85);
  transition: transform 0.7s ease, filter 0.7s ease;
}
.prop-card:hover .prop-card-img {
  transform: scale(1.06);
  filter: brightness(0.9) saturate(1);
}
.prop-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 28px;
  background: linear-gradient(to top, rgba(8,8,8,0.95) 0%, transparent 100%);
  z-index: 2;
}
.prop-card-price {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.prop-card-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 6px;
}
.prop-card-loc {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* gradient placeholder behind images (fallback if photo fails) */
.prop-bg-1 { background: linear-gradient(135deg, #1a2a1a 0%, #2d4a2d 50%, #1a3a2a 100%); }
.prop-bg-2 { background: linear-gradient(135deg, #1a1a2a 0%, #2a2d4a 50%, #1a2a3a 100%); }
.prop-bg-3 { background: linear-gradient(135deg, #2a1a1a 0%, #4a2d2d 50%, #3a1a1a 100%); }

.prop-card-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 4rem;
  opacity: 0.3;
  color: var(--white);
}

/* CTA section */
.cta-section {
  background: var(--off);
  padding: 160px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.cta-eyebrow { text-align: center; margin-bottom: 24px; position: relative; }
.cta-headline {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 28px;
  position: relative;
}
.cta-headline em { font-style: italic; color: var(--gold-lt); }
.cta-sub {
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  max-width: 440px;
  margin: 0 auto 48px;
  line-height: 1.8;
  position: relative;
}
.cta-btn {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 18px 48px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
  position: relative;
}
.cta-btn:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
}

/* footer */
footer {
  background: var(--black);
  padding: 60px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(201,169,110,0.1);
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-logo span { color: var(--gold); }
.footer-copy {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.footer-links a {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }

/* ── CUSTOM CURSOR (desktop only) ── */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease, width 0.25s ease, height 0.25s ease, background 0.25s ease;
  mix-blend-mode: difference;
}
.cursor-dot.active { opacity: 1; }
.cursor-dot.hover { width: 38px; height: 38px; background: rgba(201,169,110,0.35); }

/* ── PAGE-LOAD ANIMATION ── */
body.is-loading .nav-logo,
body.is-loading .nav-links,
body.is-loading .nav-cta { opacity: 0; }
.nav-logo, .nav-links, .nav-cta { transition: opacity 0.8s ease; }

/* ── SCROLL REVEAL for content sections ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .content-section, .properties-section, .cta-section { padding: 80px 24px; }
  .stats-row { grid-template-columns: 1fr; }
  .props-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 24px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .cursor-dot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-panel, .reveal { transition: none; }
  .scroll-line { animation: none; }
  #hero-video { transform: none !important; }
}
