:root {
  --bg: #07090b;
  --bg-2: #0d1114;
  --panel: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f1ece2;
  --muted: #a39d92;
  --gold: #d4b27a;
  --gold-2: #f0d9a8;
  --green: #7fb07a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--gold-2); }

.eyebrow {
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.muted { color: var(--muted); line-height: 1.7; max-width: 420px; }

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transition: opacity 1s var(--ease), visibility 1s;
}
#loader.done { opacity: 0; visibility: hidden; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 44px; width: auto; display: block; }
.loader-logo { width: min(340px, 70vw); height: auto; animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.loader-bar { width: min(260px, 60vw); height: 1px; background: var(--line); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s; }
.loader-pct { font-size: 11px; letter-spacing: .3em; color: var(--muted); }

/* ---------- Nav ---------- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(16px, 4vw, 56px);
  opacity: 0; transform: translateY(-20px); pointer-events: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease), background .5s;
}
#nav.show { opacity: 1; transform: none; pointer-events: auto; }
#nav.solid { background: rgba(7, 9, 11, .72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
#nav .brand img { height: 42px; }
@media (max-width: 720px) { #nav .brand img { height: 34px; } }
#nav nav { display: flex; gap: 32px; align-items: center; font-size: 13px; letter-spacing: .06em; }
#nav nav a { color: var(--muted); transition: color .3s; }
#nav nav a:hover { color: var(--text); }
#nav .nav-cta { color: var(--bg) !important; background: var(--gold); padding: 10px 20px; border-radius: 99px; }
@media (max-width: 720px) { #nav nav a:not(.nav-cta) { display: none; } }

/* ---------- Intro ---------- */
#intro { height: 450vh; position: relative; }
.intro-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; user-select: none; -webkit-user-select: none; }
.intro-sticky img { -webkit-user-drag: none; }
#seq { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Planets + stars over the black of space; screen blend keeps them from darkening the frames */
#space { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; mix-blend-mode: screen; }
.intro-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.55) 100%),
              linear-gradient(to bottom, rgba(0,0,0,.35), transparent 25%, transparent 75%, rgba(0,0,0,.4));
}
.intro-copy {
  position: absolute; left: clamp(16px, 7vw, 120px); bottom: 18vh;
  opacity: 0; transform: translateY(40px); will-change: opacity, transform;
  text-shadow: 0 2px 30px rgba(0,0,0,.6);
}
.intro-copy h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 8vw, 120px); line-height: .95; letter-spacing: -.01em;
}
.scroll-hint {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: .35em; text-transform: uppercase; color: var(--muted);
  transition: opacity .6s;
}
.scroll-hint i { width: 1px; height: 54px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scroll-hint i::after {
  content: ""; position: absolute; left: 0; top: -20px; width: 1px; height: 20px; background: var(--gold-2);
  animation: drip 2s var(--ease) infinite;
}
@keyframes drip { to { top: 60px; } }
.intro-progress { position: absolute; right: clamp(16px, 3vw, 40px); top: 50%; width: 1px; height: 120px; transform: translateY(-50%); background: var(--line); }
.intro-progress i { display: block; width: 100%; height: 0; background: var(--gold); }
/* Brand badge: sits over the watermark baked into the frames; app.js positions it every draw */
.wm-badge {
  position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px; overflow: hidden;
  background: rgba(7, 9, 11, .55); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .10); box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
  will-change: transform, width, height;
}
.wm-badge img { height: 82%; width: auto; display: block; }
.wm-badge::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .18) 50%, transparent 65%);
  transform: translateX(-120%); animation: sheen 5s var(--ease) infinite 1.5s;
}
@keyframes sheen { 40%, 100% { transform: translateX(120%); } }

/* Required imagery attribution. Kept visible even when narrow screens crop the baked-in logo. */
.intro-credit { position: absolute; left: clamp(16px, 3vw, 40px); bottom: 16px; font-size: 11px; letter-spacing: .08em; color: rgba(255,255,255,.7); }
.intro-fade { position: absolute; inset: 0; background: var(--bg); opacity: 0; pointer-events: none; }

/* ---------- Cloud transition ---------- */
#clouds { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; visibility: hidden; }
#clouds .mist { position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(ellipse at 50% 55%, rgba(70, 76, 84, .55) 0%, rgba(24, 28, 32, .5) 45%, rgba(7, 9, 11, 0) 80%); }
#clouds .cloud {
  position: absolute; left: 50%; top: 50%; width: 80vmax; height: 50vmax; margin: -25vmax 0 0 -40vmax;
  background-size: 100% 100%; opacity: 0; will-change: transform, opacity;
}

/* ---------- Home ---------- */
main { position: relative; z-index: 2; background: var(--bg); }
.section { padding: clamp(80px, 12vw, 160px) clamp(16px, 5vw, 72px); max-width: 1440px; margin: 0 auto; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
h3 { font-size: clamp(38px, 5vw, 68px); line-height: 1; }

.hero {
  min-height: 100vh; padding: 140px clamp(16px, 5vw, 72px) 80px; max-width: 1440px; margin: 0 auto;
  display: flex; flex-direction: column; justify-content: center; gap: 80px;
  background: radial-gradient(ellipse 60% 50% at 80% 30%, rgba(212,178,122,.08), transparent 70%);
}
.hero h2 { font-size: clamp(46px, 7vw, 104px); line-height: .98; max-width: 14ch; }
.lede { color: var(--muted); font-size: 17px; line-height: 1.75; max-width: 520px; margin-top: 28px; }
.hero-actions { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; padding: 16px 30px; border-radius: 99px;
  font-size: 13px; letter-spacing: .08em; transition: transform .5s var(--ease), background .4s, color .4s, border-color .4s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 32px 24px 0 0; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.5vw, 64px); color: var(--gold-2); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 720px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* Filters */
.filters { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 99px; }
.filters button {
  background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; letter-spacing: .06em;
  padding: 10px 22px; border-radius: 99px; cursor: pointer; transition: background .4s var(--ease), color .4s;
}
.filters button.active { background: var(--text); color: var(--bg); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; perspective: 1400px; }
@media (max-width: 400px) { .grid { grid-template-columns: 1fr; } }
.card {
  position: relative; border-radius: 22px; overflow: hidden; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line);
  transform-style: preserve-3d; transition: transform .7s var(--ease), border-color .5s, box-shadow .7s var(--ease), opacity .5s;
  will-change: transform;
}
.card:hover { border-color: rgba(212,178,122,.45); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(212,178,122,.15); }
.card.hidden { display: none; }
.card-media { position: relative; aspect-ratio: 4 / 3.2; overflow: hidden; }
.card-media svg { position: absolute; inset: -10%; width: 120%; height: 120%; transition: transform 1.4s var(--ease); }
.card:hover .card-media svg { transform: scale(1.08) rotate(-1deg); }
.card-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.92) brightness(.92); transform: scale(1.02);
  transition: transform 1.6s var(--ease), filter 1s var(--ease);
}
.card:hover .card-media img { transform: scale(1.1); filter: saturate(1.05) brightness(1); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-2) 2%, transparent 55%); }
.card-tag {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  font-size: 10px; letter-spacing: .25em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 99px; background: rgba(7,9,11,.55); backdrop-filter: blur(8px); border: 1px solid var(--line);
}
.card-pin {
  position: absolute; z-index: 2; top: 42%; left: 50%; width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); transform: translate(-50%, -50%) translateZ(40px); box-shadow: 0 0 0 0 rgba(212,178,122,.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 22px rgba(212,178,122,0); } 100% { box-shadow: 0 0 0 0 rgba(212,178,122,0); } }
.card-body { padding: 4px 26px 26px; position: relative; transform: translateZ(30px); }
.card-body h4 { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.1; }
.card-loc { color: var(--muted); font-size: 13px; margin-top: 8px; }
.card-reveal { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.card-reveal small, .tip-row small { display: block; font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.card-reveal b { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--gold-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.card-reveal .val { position: relative; height: 30px; }
.card-reveal .val > * { position: absolute; left: 0; top: 0; transition: opacity .5s var(--ease), transform .6s var(--ease), filter .5s; }
.card-reveal .hint { font-size: 12px; color: var(--muted); letter-spacing: .08em; line-height: 30px; }
.card-reveal b { opacity: 0; transform: translateY(12px); filter: blur(6px); }
.card.on .card-reveal b { opacity: 1; transform: none; filter: none; }
.card.on .card-reveal .hint { opacity: 0; transform: translateY(-12px); }
.card-glare { position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .5s; mix-blend-mode: soft-light; }
.card:hover .card-glare { opacity: 1; }

/* 3D map */
.map-wrap {
  position: relative; height: min(78vh, 760px); border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 40%, #0f2027 0%, #07090b 75%);
}
#map3d { position: absolute; inset: 0; cursor: grab; }
#map3d:active { cursor: grabbing; }
#map3d canvas { display: block; }
.map-tip {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; min-width: 240px;
  padding: 20px 22px; border-radius: 18px; background: rgba(10,13,16,.82); backdrop-filter: blur(16px);
  border: 1px solid rgba(212,178,122,.3); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
  opacity: 0; transform: translate(-50%, calc(-100% - 22px)) scale(.94); transform-origin: bottom center;
  transition: opacity .4s var(--ease), transform .5s var(--ease);
  display: flex; flex-direction: column; gap: 4px;
}
.map-tip.show { opacity: 1; transform: translate(-50%, calc(-100% - 28px)) scale(1); }
.map-tip.below { transform: translate(-50%, 22px) scale(.94); transform-origin: top center; }
.map-tip.below.show { transform: translate(-50%, 28px) scale(1); }
.tip-img { height: 150px; margin: -20px -22px 12px; border-radius: 18px 18px 0 0; background: #0d1114 center / cover no-repeat; }
.tip-tag { font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); }
.tip-title { font-family: var(--serif); font-weight: 500; font-size: 22px; }
.tip-loc { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.tip-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-top: 8px; border-top: 1px solid var(--line); }
.tip-row small { margin: 0; }
.tip-row b { font-family: var(--serif); font-weight: 500; font-size: 20px; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.map-legend { position: absolute; left: 24px; bottom: 22px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-left: 10px; }
.dot { box-shadow: 0 0 0 2px #fff; }
.dot.land { background: #ffd60a; } .dot.property { background: #ff3d6e; }

/* Why */
.why h3 { max-width: 18ch; margin-bottom: 72px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.why-card { background: var(--bg); padding: 40px 32px; transition: background .6s var(--ease); }
.why-card:hover { background: var(--bg-2); }
.why-card span { font-family: var(--serif); color: var(--gold); font-size: 18px; }
.why-card h4 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 40px 0 12px; }
.why-card p { color: var(--muted); line-height: 1.7; font-size: 14px; }

/* Contact */
.contact-card {
  text-align: center; padding: clamp(56px, 8vw, 110px) 24px; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 0%, rgba(212,178,122,.12), transparent 60%), var(--bg-2);
}
.contact-card h3 { font-size: clamp(44px, 6vw, 84px); }
.contact-card .muted { margin: 18px auto 0; }
.contact-card .hero-actions { justify-content: center; }

footer {
  padding: 48px clamp(16px, 5vw, 72px); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--muted);
}
footer .brand img { height: 38px; }
.attr { opacity: .6; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .card-pin, .scroll-hint i::after { animation: none; }
}
