:root {
  --ink: #0a0c0f;
  --ink-2: #12161c;
  --sand: #f3ece2;
  --gold: #c9a463;
  --gold-2: #e2c48a;
  --text: #f5f1ea;
  --muted: rgba(245, 241, 234, 0.68);
  --glass: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.24);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--sans); font-weight: 300; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.intro-active, body.locked { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-2); margin: 0 0 18px; font-weight: 500;
}
.display, .section-title, .intro-title {
  font-family: var(--serif); font-weight: 400; line-height: 1.02; margin: 0;
}
.display { font-size: clamp(44px, 6.2vw, 96px); }
.section-title { font-size: clamp(36px, 5vw, 68px); }
.display em, .section-title em, .intro-title em { font-style: italic; color: var(--gold-2); }
.lede { font-size: clamp(16px, 1.4vw, 19px); max-width: 520px; color: var(--muted); margin: 22px 0 0; }

/* ---------- Concept bar ---------- */
.concept-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: rgba(10, 12, 15, 0.86); backdrop-filter: blur(6px);
  font-size: 11px; text-align: center; padding: 6px 12px; color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 13px 26px; cursor: pointer;
  font: 500 13px/1 var(--sans); letter-spacing: 0.06em; text-decoration: none;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--glass-border); }
.btn-ghost:hover { border-color: var(--gold-2); color: var(--gold-2); }
.btn-glass { background: var(--glass); color: var(--text); border: 1px solid var(--glass-border); backdrop-filter: blur(12px); }
.btn-block { width: 100%; margin-top: 16px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--gold-2); font: 500 13px var(--sans); cursor: pointer; letter-spacing: 0.04em; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100; background: #000;
  transition: opacity 1.2s var(--ease), visibility 1.2s;
}
.intro.done { opacity: 0; visibility: hidden; }
.intro video { width: 100%; height: 100%; object-fit: cover; }
.intro-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.15), rgba(0,0,0,0.55));
}
.intro-title { font-size: clamp(56px, 10vw, 150px); opacity: 0; transform: translateY(24px); animation: rise 2s 0.6s var(--ease) forwards; }
.intro-overlay .eyebrow { opacity: 0; animation: rise 1.6s 0.2s var(--ease) forwards; }
.skip {
  position: absolute; right: 28px; bottom: 44px; background: var(--glass);
  border: 1px solid var(--glass-border); color: var(--text); border-radius: 999px;
  padding: 10px 18px; font: 400 12px var(--sans); letter-spacing: 0.1em; cursor: pointer;
  backdrop-filter: blur(10px);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px clamp(20px, 4vw, 56px);
  transition: background .4s, padding .4s, backdrop-filter .4s;
}
.nav.scrolled { background: rgba(10, 12, 15, 0.72); backdrop-filter: blur(14px); padding-top: 14px; padding-bottom: 14px; }
.wordmark { font: 500 15px var(--sans); letter-spacing: 0.42em; text-decoration: none; }
.wordmark span { color: var(--gold-2); }
.wordmark.big { font-size: clamp(28px, 4vw, 48px); margin: 0 0 18px; }
.nav-links { display: flex; gap: 32px; margin-left: auto; }
.nav-links a { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color .3s; }
.nav-links a:hover { color: var(--text); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 1.5px; background: var(--text); margin: 6px 0; transition: transform .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); animation: kenburns 24s ease-out forwards; }
@keyframes kenburns { to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,12,15,0.1) 25%, rgba(10,12,15,0.7) 75%), linear-gradient(0deg, rgba(10,12,15,0.85), transparent 45%); }
.hero-content { position: relative; margin-left: auto; padding: 0 clamp(20px, 6vw, 96px); max-width: 860px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.stats {
  position: absolute; left: 0; right: 0; bottom: 56px; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 0 clamp(20px, 6vw, 96px); gap: 16px;
}
.stats div { border-top: 1px solid var(--glass-border); padding-top: 14px; }
.stats dt { font-family: var(--serif); font-size: clamp(24px, 3vw, 40px); }
.stats dd { margin: 0; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.scroll-cue { position: absolute; left: 50%; bottom: 14px; width: 1px; height: 30px; background: var(--glass-border); overflow: hidden; }
.scroll-cue span { position: absolute; top: -30px; width: 1px; height: 30px; background: var(--gold-2); animation: drip 2s infinite; }
@keyframes drip { to { top: 30px; } }

/* ---------- Story ---------- */
.story {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(80px, 12vw, 180px) clamp(20px, 6vw, 96px);
}
.story-text p:last-child { color: var(--muted); max-width: 460px; margin-top: 24px; }
.story-media { aspect-ratio: 4/5; overflow: hidden; border-radius: 4px; }
.story-media img { width: 100%; height: 120%; object-fit: cover; }

/* ---------- Experience (interactive) ---------- */
.experience { position: relative; height: 100vh; min-height: 600px; }
.exp-stage { position: absolute; inset: 0; overflow: hidden; background: #000; }
.exp-layer {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1s var(--ease), transform 6s ease-out;
}
.exp-layer.active { opacity: 1; }
#expTower.active { transform: scale(1.04); }
#expTower.zoom { transform: scale(1.35); transition: transform 1.2s var(--ease), opacity 1s; }
.exp-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(0,0,0,0.55), transparent 40%), linear-gradient(180deg, rgba(0,0,0,0.35), transparent 22%); }
.exp-back { position: absolute; top: 96px; left: clamp(16px, 4vw, 56px); z-index: 4; }
.level-tag {
  position: absolute; left: clamp(16px, 4vw, 56px); bottom: 48px; z-index: 4;
  background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(12px);
  padding: 10px 18px; border-radius: 14px; font-family: var(--serif); font-size: 26px;
}
.floor-card {
  position: absolute; right: clamp(16px, 4vw, 56px); bottom: 48px; z-index: 4;
  width: min(340px, calc(100% - 32px));
  background: rgba(20, 24, 30, 0.38); border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(1.2); border-radius: 22px; padding: 24px;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.floor-card.away { opacity: 0; transform: translateY(20px); pointer-events: none; }
.floor-card h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: 0; line-height: 1.1; }
.floor-card .eyebrow { margin-bottom: 8px; }
.floor-card .muted { font-size: 13px; margin: 6px 0 0; }
.floor-select { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 14px; }
.round {
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 20px;
  background: rgba(255,255,255,0.08); color: var(--text); border: 1px solid var(--glass-border);
}
.round:hover { border-color: var(--gold-2); }
.floor-num { font-family: var(--serif); font-size: 64px; line-height: 1; }
.unit-toggle { display: flex; gap: 8px; }
.chip {
  flex: 1; padding: 9px 10px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); border: 1px solid var(--glass-border); font: 400 12px var(--sans);
}
.chip.active { background: var(--text); color: var(--ink); border-color: var(--text); }
.unit-meta { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

.hotspots { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hotspot {
  position: absolute; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(15, 18, 24, 0.55); color: var(--text); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); border-radius: 999px; padding: 8px 14px 8px 10px; font: 400 12px var(--sans);
  opacity: 0; animation: pop .6s var(--ease) forwards;
}
.hotspot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 6px rgba(226,196,138,0.25); animation: pulse 2s infinite; }
.hotspot.active { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.hotspot.active::before { background: var(--ink); box-shadow: none; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -30%); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(226,196,138,0); } }
.room-caption {
  position: absolute; right: clamp(16px, 4vw, 56px); bottom: 48px; z-index: 4;
  font-family: var(--serif); font-size: clamp(28px, 4vw, 48px); text-align: right; line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.room-caption small { display: block; font: 400 12px var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-2); }

/* ---------- Residences ---------- */
.residences, .amenities, .gallery { padding: clamp(80px, 12vw, 160px) clamp(20px, 6vw, 96px); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.res-card { background: var(--ink-2); border-radius: 4px; overflow: hidden; }
.res-img { aspect-ratio: 16/10; overflow: hidden; }
.res-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.res-card:hover .res-img img { transform: scale(1.06); }
.res-body { padding: 28px; }
.res-body h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: 0; }
.res-size { color: var(--gold-2); font-size: 13px; letter-spacing: 0.12em; margin: 4px 0 14px; }
.res-body p:not(.res-size) { color: var(--muted); }

/* ---------- Rooftop ---------- */
.rooftop { position: relative; height: 110vh; display: flex; align-items: center; overflow: hidden; }
.rooftop-media { position: absolute; inset: -10% 0; }
.rooftop-media img { width: 100%; height: 100%; object-fit: cover; }
.rooftop-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,12,15,0.75), transparent 65%); }
.rooftop-text { position: relative; padding: 0 clamp(20px, 6vw, 96px); max-width: 760px; }

/* ---------- Amenities ---------- */
.amen-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 30%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.amen-card { margin: 0; position: relative; aspect-ratio: 3/4; overflow: hidden; border-radius: 4px; scroll-snap-align: start; }
.amen-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.amen-card:hover img { transform: scale(1.06); }
.amen-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 20px; background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent); font-family: var(--serif); font-size: 24px; }
.amen-list { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--glass-border); }
.amen-list li { padding: 22px 16px 22px 0; border-bottom: 1px solid var(--glass-border); color: var(--muted); font-size: 14px; }
.amen-list strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 28px; color: var(--text); }

/* ---------- Gallery ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; }
.gal-item { padding: 0; border: 0; overflow: hidden; border-radius: 4px; cursor: zoom-in; background: var(--ink-2); }
.gal-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gal-item:nth-child(6) { grid-column: span 2; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(0.9); }
.gal-item:hover img { transform: scale(1.05); filter: saturate(1.05); }

/* ---------- Location ---------- */
.location { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(80px, 12vw, 160px) clamp(20px, 6vw, 96px); background: var(--ink-2); }
.loc-text p { color: var(--muted); max-width: 440px; margin-top: 22px; }
.loc-map { aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; }
.loc-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.7) invert(0.9) hue-rotate(180deg) contrast(0.9); }

/* ---------- End card ---------- */
.endcard { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.end-media { position: absolute; inset: 0; }
.end-media img { width: 100%; height: 100%; object-fit: cover; }
.end-shade { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 30%, rgba(5,7,10,0.8) 80%); }
.end-content { position: relative; margin-left: auto; padding: 0 clamp(20px, 6vw, 96px); text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.contact { display: flex; flex-direction: column; gap: 6px; margin-top: 30px; font-size: 14px; }
.contact a { text-decoration: none; color: var(--muted); }
.contact a:hover { color: var(--gold-2); }

.footer { padding: 32px clamp(20px, 6vw, 96px) 60px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--glass-border); }

/* ---------- Reveal & parallax ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.parallax img { will-change: transform; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(5,7,10,0.94); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 90vw; max-height: 84vh; border-radius: 4px; }
.lb-close, .lb-nav { position: absolute; background: none; border: 0; color: var(--text); cursor: pointer; font-size: 44px; line-height: 1; padding: 12px; }
.lb-close { top: 16px; right: 20px; }
.lb-nav.prev { left: 12px; }
.lb-nav.next { right: 12px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 110; background: rgba(5,7,10,0.7); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-box { position: relative; width: min(480px, 100%); max-height: 92vh; overflow-y: auto; background: var(--ink-2); border: 1px solid var(--glass-border); border-radius: 20px; padding: 32px; }
.modal-box h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; margin: 0 0 10px; }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: var(--text); font-size: 30px; cursor: pointer; }
.modal label { display: block; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); margin-top: 14px; }
.modal input:not([type=checkbox]), .modal select {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--glass-border); background: rgba(255,255,255,0.05); color: var(--text); font: 400 14px var(--sans);
}
.modal select option { color: #000; }
.modal .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal .check { display: flex; align-items: center; gap: 10px; }
.form-error { color: #ffb4a8; font-size: 13px; margin: 12px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; position: fixed; inset: 0; background: rgba(10,12,15,0.97); flex-direction: column; align-items: center; justify-content: center; gap: 28px; z-index: -1; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 16px; }
  .nav > .btn-gold { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .story, .location { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .amen-list { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; bottom: 40px; row-gap: 20px; }
  .hero { align-items: flex-start; padding-top: 120px; }
  .hero-shade { background: linear-gradient(0deg, rgba(10,12,15,0.92) 40%, rgba(10,12,15,0.3)); }
}
@media (max-width: 600px) {
  .floor-card { left: 12px; right: 12px; width: auto; bottom: 40px; padding: 18px; }
  .floor-num { font-size: 48px; }
  .level-tag { bottom: auto; top: 150px; }
  .room-caption { bottom: 150px; }
  .amen-rail { grid-auto-columns: 78%; }
  .end-content { text-align: left; align-items: flex-start; margin-left: 0; }
  .end-shade { background: linear-gradient(0deg, rgba(5,7,10,0.9) 40%, transparent); }
  .endcard { align-items: flex-end; padding-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
