:root {
  --bg: #090909;
  --surface: #111011;
  --charcoal: #171517;
  --gold: #C9A45C;
  --gold-light: #E4C989;
  --wine: #6F234B;
  --wine-light: #8C3563;
  --ink: #F3EFE8;
  --ink-secondary: #AAA5A0;
  --ink-muted: #77726D;
}

* { scrollbar-color: var(--gold-dim, #8A7245) transparent; }

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

body { background: var(--bg); }

::selection { background: var(--gold); color: #0a0a0a; }

/* ---------- Grain texture ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Custom cursor (desktop only) ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 70;
  transform: translate(-50%, -50%);
  transition: opacity .25s ease;
  opacity: 0;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--gold);
}
.cursor-ring {
  width: 46px; height: 46px;
  border: 1px solid rgba(201,164,92,.5);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .25s ease, width .3s ease, height .3s ease, background .3s ease;
}
.cursor-ring span {
  font-family: 'Manrope', sans-serif;
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--gold-light);
  opacity: 0;
  transition: opacity .2s ease;
}
.cursor-ring.expand { width: 78px; height: 78px; background: rgba(201,164,92,.08); }
.cursor-ring.expand span { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  body.cursor-ready .cursor-dot, body.cursor-ready .cursor-ring { opacity: 1; }
  body.cursor-ready { cursor: none; }
  body.cursor-ready a, body.cursor-ready button { cursor: none; }
}

/* ---------- Nav ---------- */
.nav-transparent { background: transparent; border-bottom: 1px solid transparent; }
.nav-scrolled {
  background: rgba(9,9,9,.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,164,92,.12);
}
.nav-scrolled .h-24 { height: 5.5rem; }

.nav-link {
  position: relative;
  color: var(--ink-secondary);
  transition: color .3s ease;
}
.nav-link::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 1px; background: var(--gold);
  transition: right .35s cubic-bezier(.4,0,.2,1);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { right: 0; }

.burger-line {
  width: 22px; height: 1px; background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
#menu-toggle[aria-expanded="true"] .burger-line:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
#menu-toggle[aria-expanded="true"] .burger-line:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

#mobile-menu[hidden] { display: none; }

.mobile-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--ink);
  opacity: .85;
}
.mobile-link:hover { color: var(--gold); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-numeral {
  font-family: 'Manrope', sans-serif;
  font-weight: 200;
  font-size: clamp(80px, 8vw, 130px);
  line-height: .8;
  color: rgba(201,164,92,.06);
  -webkit-text-stroke: 1px rgba(201,164,92,.45);
}

.reveal-mask { display: block; overflow: hidden; }
.reveal-inner { display: block; transform: translateY(110%); }

/* ---------- Buttons ---------- */
.btn-gold-fill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 34px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  background: var(--gold);
  color: #100c05;
  border: 1px solid var(--gold);
  transition: background .35s ease, color .35s ease, letter-spacing .35s ease;
}
.btn-gold-fill:hover { background: transparent; color: var(--gold-light); letter-spacing: .24em; }

.btn-gold-outline {
  display: inline-flex; align-items: center;
  padding: 10px 24px;
  font-family: 'Manrope', sans-serif;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid rgba(201,164,92,.5);
  color: var(--gold-light);
  transition: background .3s ease, border-color .3s ease;
}
.btn-gold-outline:hover { background: rgba(201,164,92,.1); border-color: var(--gold); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(243,239,232,.25);
  transition: border-color .3s ease, color .3s ease;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-ghost .arrow, .view-link .arrow { display: inline-block; transition: transform .3s ease; }
.btn-ghost:hover .arrow { transform: translateX(5px); }

/* ---------- Hero ---------- */
.hero-skyline {
  background:
    radial-gradient(ellipse at 25% 30%, rgba(111,35,75,.18), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(201,164,92,.10), transparent 50%),
    linear-gradient(180deg, #0c0c0c 0%, #0a0a0a 60%, #090909 100%);
}
.hero-skyline::before { content: none; }
.hero-skyline {
  position: relative;
}
#hero .hero-skyline {
  background-image:
    radial-gradient(ellipse at 25% 20%, rgba(111,35,75,.28), transparent 55%),
    radial-gradient(ellipse at 82% 78%, rgba(201,164,92,.16), transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='xMidYMax slice'%3E%3Cg fill='none' stroke='%23C9A45C' stroke-width='1.4' opacity='0.55'%3E%3Crect x='80' y='560' width='60' height='340'/%3E%3Crect x='170' y='480' width='40' height='420'/%3E%3Crect x='240' y='620' width='70' height='280'/%3E%3Crect x='340' y='400' width='34' height='500'/%3E%3Crect x='400' y='500' width='90' height='400'/%3E%3Crect x='520' y='340' width='30' height='560'/%3E%3Crect x='580' y='460' width='55' height='440'/%3E%3Crect x='660' y='560' width='40' height='340'/%3E%3Crect x='730' y='300' width='26' height='600'/%3E%3Crect x='790' y='420' width='80' height='480'/%3E%3Crect x='900' y='520' width='45' height='380'/%3E%3Crect x='970' y='380' width='30' height='520'/%3E%3Crect x='1030' y='560' width='65' height='340'/%3E%3Crect x='1120' y='440' width='36' height='460'/%3E%3Crect x='1180' y='500' width='90' height='400'/%3E%3Crect x='1300' y='580' width='40' height='320'/%3E%3Crect x='1370' y='420' width='28' height='480'/%3E%3Crect x='1430' y='540' width='70' height='360'/%3E%3C/g%3E%3Cline x1='0' y1='900' x2='1600' y2='900' stroke='%23C9A45C' stroke-width='1' opacity='0.5'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #0d0d0d 0%, #0a0a0a 55%, #090909 100%);
  background-repeat: no-repeat;
  background-size: cover, cover, cover, cover;
  background-position: center, center, center, center;
}
.hero-vignette {
  background: linear-gradient(180deg, rgba(9,9,9,.35) 0%, rgba(9,9,9,.15) 30%, rgba(9,9,9,.65) 78%, #090909 100%);
}
.story-vignette { background: linear-gradient(90deg, rgba(9,9,9,.92) 0%, rgba(9,9,9,.55) 45%, rgba(9,9,9,.25) 100%); }
.cta-vignette { background: radial-gradient(ellipse at 50% 50%, rgba(9,9,9,.55) 0%, rgba(9,9,9,.88) 75%); }

.scroll-indicator .vertical-text { writing-mode: vertical-rl; }
.scroll-line { width: 1px; height: 48px; background: linear-gradient(180deg, var(--gold), transparent); }

/* ---------- Glass ---------- */
.glass-panel {
  background: rgba(17,16,17,.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(228,201,137,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 20px 60px rgba(0,0,0,.35);
}

/* ---------- Discovery strip ---------- */
.discovery-item {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 20px 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-secondary);
  transition: color .3s ease;
}
.discovery-item:hover { color: var(--ink); }
.discovery-num { color: var(--gold); font-size: 10px; }
.soon-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--wine-light); }

/* ---------- Section divider ---------- */
.section-divider {
  height: 1px;
  max-width: 1600px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(201,164,92,.35), transparent);
  transform: scaleX(0);
  transform-origin: left;
}
.section-divider.in-view { transform: scaleX(1); transition: transform 1.2s cubic-bezier(.4,0,.2,1); }

/* ---------- Property cards ---------- */
.property-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.property-card--lg { aspect-ratio: 4/5; }
@media (min-width: 1024px) { .property-card--lg { aspect-ratio: 3/4; } }
.property-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.1s cubic-bezier(.16,1,.3,1);
}
.property-card:hover .property-img { transform: scale(1.12); }
.property-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,9,9,0) 30%, rgba(9,9,9,.85) 100%);
  transition: opacity .4s ease;
}
.property-tag {
  position: absolute; top: 20px; left: 20px;
  font-family: 'Manrope', sans-serif;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(9,9,9,.55);
  border: 1px solid rgba(201,164,92,.3);
  padding: 6px 12px;
  backdrop-filter: blur(6px);
}
.property-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px;
  transform: translateY(6px);
  transition: transform .4s ease;
}
.property-card:hover .property-info { transform: translateY(0); }
.gold-rule { width: 40px; height: 1px; background: var(--gold); margin-bottom: 16px; transition: width .4s ease; }
.property-card:hover .gold-rule { width: 64px; }
.view-link { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-light); }

.property-card--placeholder { aspect-ratio: auto; height: 100%; }
.placeholder-art { position: absolute; inset: 0; }
.placeholder-art--1::before, .placeholder-art--2::before {
  content: '';
  position: absolute; inset: -2%;
  background-size: cover;
  filter: grayscale(.15) blur(.5px) brightness(.88) contrast(1.04);
}
.placeholder-art--1::before { background-image: url("../assets/mood/mood-5.jpg"); background-position: center 55%; }
.placeholder-art--2::before { background-image: url("../assets/mood/mood-1.jpg"); background-position: center 60%; }
.placeholder-art--1::after, .placeholder-art--2::after {
  content: '';
  position: absolute; inset: 0;
}
.placeholder-art--1::after {
  background-image:
    radial-gradient(circle at 30% 15%, rgba(201,164,92,.12), transparent 55%),
    repeating-linear-gradient(115deg, rgba(201,164,92,.06) 0 1px, transparent 1px 34px),
    linear-gradient(0deg, rgba(6,6,7,.92) 0%, rgba(6,6,7,.55) 32%, transparent 62%);
}
.placeholder-art--2::after {
  background-image:
    radial-gradient(circle at 70% 15%, rgba(111,35,75,.16), transparent 55%),
    repeating-linear-gradient(65deg, rgba(201,164,92,.06) 0 1px, transparent 1px 34px),
    linear-gradient(0deg, rgba(6,6,7,.92) 0%, rgba(6,6,7,.55) 32%, transparent 62%);
}

/* ---------- Category rows ---------- */
.category-row {
  border-bottom: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
}
@media (min-width: 1024px) {
  #category-rows { position: relative; }
  .category-rows-col { width: 45%; display: flex; flex-direction: column; height: 100%; }
  .category-row { flex: 1; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.08); }
  .category-row:last-child { border-bottom: none; }
  .category-row-inner { width: 100%; }
  .category-preview {
    position: absolute; top: 0; right: 0; height: 100%; width: 55%;
    overflow: hidden;
  }
}
.category-row-inner {
  display: flex; align-items: center; gap: 18px;
  padding: 26px 6px;
  transition: padding-left .35s ease;
}
.category-row:hover .category-row-inner, .category-row:focus-within .category-row-inner { padding-left: 20px; }
.category-num { font-family: 'Manrope', sans-serif; font-size: 12px; color: var(--gold); }
.category-name { font-family: 'Cormorant Garamond', serif; font-size: clamp(24px, 4vw, 34px); color: var(--ink); }
.category-status { margin-left: auto; font-family: 'Manrope', sans-serif; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.category-status--live { color: var(--gold-light); }

.category-preview-art {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .6s ease;
  overflow: hidden;
}
.category-preview-art.active { opacity: 1; }
.category-preview-art--c1::before,
.category-preview-art--c2::before,
.category-preview-art--c3::before,
.category-preview-art--c4::before {
  content: '';
  position: absolute; inset: -2%;
  background-size: cover;
  filter: grayscale(.15) blur(.5px) brightness(.82) contrast(1.04);
}
/* Villas — waterfront villa community */
.category-preview-art--c1::before { background-image: url("../assets/mood/mood-1.jpg"); background-position: center 15%; }
/* Luxury Apartments — rooftop pool with tower skyline */
.category-preview-art--c2::before { background-image: url("../assets/mood/mood-5.jpg"); background-position: center 40%; }
/* Penthouses — elevated infinity pool (cropped tight to foreground; source background skyline excluded) */
.category-preview-art--c3::before {
  background-image: url("../assets/mood/mood-7.jpg");
  background-position: 92% 88%;
  background-size: 340% auto;
}
/* Waterfront Residences — poolside villa row */
.category-preview-art--c4::before { background-image: url("../assets/mood/mood-6.jpg"); background-position: center 55%; }
.category-preview-art--c1::after {
  background-image:
    radial-gradient(circle at 35% 40%, rgba(201,164,92,.12), transparent 55%),
    repeating-linear-gradient(135deg, rgba(201,164,92,.06) 0 1px, transparent 1px 40px),
    linear-gradient(160deg, rgba(23,21,23,.06), rgba(12,12,12,.14));
}
.category-preview-art--c2::after {
  background-image:
    radial-gradient(circle at 65% 35%, rgba(111,35,75,.14), transparent 60%),
    repeating-linear-gradient(135deg, rgba(201,164,92,.06) 0 1px, transparent 1px 40px),
    linear-gradient(160deg, rgba(23,21,23,.06), rgba(12,12,12,.14));
}
.category-preview-art--c3::after {
  background-image:
    radial-gradient(circle at 50% 65%, rgba(201,164,92,.12), transparent 60%),
    repeating-linear-gradient(135deg, rgba(201,164,92,.06) 0 1px, transparent 1px 40px),
    linear-gradient(160deg, rgba(23,21,23,.06), rgba(12,12,12,.14));
}
.category-preview-art--c4::after {
  background-image:
    radial-gradient(circle at 30% 70%, rgba(111,35,75,.14), transparent 60%),
    repeating-linear-gradient(135deg, rgba(201,164,92,.06) 0 1px, transparent 1px 40px),
    linear-gradient(160deg, rgba(23,21,23,.06), rgba(12,12,12,.14));
}
.category-preview-art::after {
  content: '';
  position: absolute; inset: 0;
}

/* ---------- Areas ---------- */
.area-card {
  padding: 34px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(160deg, rgba(201,164,92,.03), transparent 60%);
}
.chip {
  padding: 9px 18px;
  border: 1px solid rgba(255,255,255,.12);
  font-family: 'Manrope', sans-serif;
  font-size: 12px; letter-spacing: .06em;
  color: var(--ink-muted);
}

/* ---------- Invest reasons ---------- */
.invest-reason {
  display: flex; gap: 24px;
  padding: 30px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}
.invest-reason--last { border-bottom: 1px solid rgba(255,255,255,.1); }
.invest-num { font-family: 'Cormorant Garamond', serif; font-size: 34px; color: var(--gold); line-height: 1; min-width: 48px; }

/* ---------- Numbers ---------- */
.stat { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.stat-num, .stat-num-static {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--ink);
  white-space: nowrap;
}
.stat-num-static--tight { font-size: clamp(18px, 2.4vw, 28px); }
.stat-label { font-family: 'Manrope', sans-serif; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }

/* ---------- Gallery (progress) ---------- */
.gallery-scroll { overflow-x: auto; overflow-y: hidden; padding: 0 24px 20px; scrollbar-width: thin; }
@media (min-width: 1024px) { .gallery-scroll { padding: 0 48px 20px; } }
.gallery-track { display: flex; gap: 20px; width: max-content; }
.gallery-item { position: relative; width: 320px; height: 400px; overflow: hidden; flex-shrink: 0; }
.gallery-item--tall { height: 460px; align-self: flex-end; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  font-family: 'Manrope', sans-serif; font-size: 11px; letter-spacing: .06em; color: var(--ink-secondary);
  background: linear-gradient(180deg, transparent, rgba(9,9,9,.9));
}

.img-grade { filter: grayscale(.35) contrast(1.08) brightness(.72) saturate(.85); }

/* ---------- About art ---------- */
.about-art {
  position: absolute; inset: -8%;
}
.about-art::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("../assets/mood/mood-1.jpg");
  background-size: cover;
  background-position: center 35%;
  filter: grayscale(.15) blur(.5px) brightness(.9) contrast(1.03);
}
.about-art::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 30% 25%, rgba(201,164,92,.1), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(111,35,75,.14), transparent 60%),
    repeating-linear-gradient(100deg, rgba(201,164,92,.05) 0 1px, transparent 1px 46px),
    linear-gradient(160deg, rgba(23,21,23,.08), rgba(10,10,10,.16));
}

/* ---------- Form ---------- */
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.18);
  padding: 12px 2px 12px;
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color .3s ease;
  appearance: none;
  border-radius: 0;
}
.field select { color: var(--ink-secondary); }
.field select:valid { color: var(--ink); }
.field textarea { resize: vertical; min-height: 90px; }
.field label {
  position: absolute; left: 2px; top: 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px; color: var(--ink-muted);
  pointer-events: none;
  transition: transform .25s ease, font-size .25s ease, color .25s ease;
  transform-origin: left top;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }
.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label,
.field select:focus ~ label,
.field select:valid ~ label {
  transform: translateY(-20px) scale(.75);
  color: var(--gold);
}
.field-error { display: block; min-height: 16px; font-size: 12px; color: var(--wine-light); margin-top: 4px; }
.field.field--invalid input, .field.field--invalid select { border-color: var(--wine-light); }

/* ---------- Footer ---------- */
.footer-heading { font-family: 'Manrope', sans-serif; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-list { display: flex; flex-direction: column; gap: 11px; }
.footer-list a { color: var(--ink-secondary); font-size: 14px; transition: color .3s ease; }
.footer-list a:hover { color: var(--gold-light); }
.footer-wordmark {
  position: absolute; left: 50%; bottom: -6%;
  transform: translateX(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 16vw;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,164,92,.08);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* ---------- Focus states ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal-inner { transform: none !important; }
  .property-img, .gallery-item img { transition: none !important; }
}
