:root {
  --bg: #0b0b0c;
  --bg-soft: #131316;
  --bg-elev: #1a1a1f;
  --ink: #f5f1ea;
  --ink-dim: #b6afa3;
  --ink-mute: #7a7468;
  --line: rgba(245, 241, 234, 0.12);
  --line-strong: rgba(245, 241, 234, 0.28);
  --gold: #c9a96a;
  --gold-soft: #d9bd86;
  --gold-deep: #8c7340;
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.1;
}

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

.divider {
  width: 56px;
  height: 1px;
  background: var(--gold);
  display: block;
  margin: 28px auto;
}

.divider.left { margin-left: 0; margin-right: 0; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled,
.nav.solid {
  background: rgba(11, 11, 12, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding: 16px var(--gutter);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav-brand span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--ink);
  margin: 6px 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    z-index: 105;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 15px; }

  /* When the mobile menu is open, drop backdrop-filter on .nav so it
     doesn't become a containing block for the fixed-positioned overlay */
  .nav.menu-open,
  .nav.menu-open.scrolled {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
  }

  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.7) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--gutter);
}

.hero-content .eyebrow {
  opacity: 0;
  animation: fadeUp 1.2s var(--ease) 0.4s forwards;
}

.hero-title {
  font-size: clamp(54px, 9vw, 132px);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin: 18px 0 10px;
  opacity: 0;
  animation: fadeUp 1.4s var(--ease) 0.7s forwards;
}

.hero-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--ink-dim);
  max-width: 640px;
  opacity: 0;
  animation: fadeUp 1.4s var(--ease) 1s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 1.4s var(--ease) 1.4s forwards;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-mute {
  position: absolute;
  bottom: 32px;
  right: 32px;
  z-index: 4;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.hero-mute:hover {
  background: rgba(201, 169, 106, 0.18);
  border-color: var(--gold);
}

.hero-mute svg { width: 18px; height: 18px; }

/* ============ SECTIONS ============ */
.section {
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 84px);
}

.section-head h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  margin-top: 16px;
}

.section-head p {
  color: var(--ink-dim);
  max-width: 640px;
  margin: 24px auto 0;
  font-size: 17px;
  line-height: 1.75;
}

/* ============ PAGE HERO ============ */
.page-hero {
  height: 60vh;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transform: scale(1.05);
  z-index: 1;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0.5), rgba(11,11,12,0.85));
  z-index: 2;
}

.page-hero-inner {
  position: relative;
  z-index: 3;
  padding: 0 var(--gutter);
  margin-top: 60px;
}

.page-hero h1 {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 300;
  margin-top: 16px;
}

.page-hero p {
  color: var(--ink-dim);
  margin-top: 18px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ RESIDENCE PAGE ============ */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

@media (max-width: 860px) {
  .overview-grid { grid-template-columns: 1fr; }
}

.overview-text h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  margin-top: 16px;
}

.overview-text p {
  color: var(--ink-dim);
  margin: 24px 0;
  font-size: 17px;
  line-height: 1.85;
}

.overview-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.overview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}

.overview-image:hover img {
  transform: scale(1.04);
}

.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: clamp(60px, 8vw, 100px) calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter);
}

.stat {
  padding: 40px 24px;
  background: var(--bg);
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 54px);
  color: var(--gold);
  display: block;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 14px;
}

@media (max-width: 720px) {
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
}

/* ============ SPECS TABLE ============ */
.specs {
  background: var(--bg-soft);
}

.specs-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 140px) var(--gutter);
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
}

@media (max-width: 860px) {
  .specs-grid { grid-template-columns: 1fr; }
}

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}

.spec-list li:last-child {
  border-bottom: none;
}

.spec-label {
  color: var(--ink-dim);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spec-value {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  text-align: right;
}

.spec-value .unit {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.12em;
  margin-left: 8px;
}

/* ============ FEATURES ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (max-width: 980px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature {
  padding: 36px 28px;
  background: var(--bg);
  transition: background 0.4s var(--ease);
}

.feature:hover {
  background: var(--bg-soft);
}

.feature .num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.16em;
  display: block;
  margin-bottom: 14px;
}

.feature h4 {
  font-size: 20px;
  font-weight: 400;
}

.feature p {
  color: var(--ink-dim);
  font-size: 14px;
  margin: 10px 0 0;
  line-height: 1.7;
}

/* ============ MEDIA / GALLERY ============ */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  font-family: var(--font-sans);
}

.filter-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.filter-btn.active {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.gallery-description {
  text-align: center;
  max-width: 620px;
  margin: -16px auto 40px;
  display: none;
}
.gallery-description.visible { display: block; }
.gallery-description p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink-dim);
  line-height: 1.6;
}

.gallery {
  column-count: 3;
  column-gap: 16px;
}

@media (max-width: 980px) {
  .gallery { column-count: 2; }
}

@media (max-width: 560px) {
  .gallery { column-count: 1; }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-soft);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.2s var(--ease), opacity 0.6s var(--ease);
  opacity: 0;
}

.gallery-item img.loaded {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.5));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.gallery-item:hover::after { opacity: 1; }

.gallery-item .tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.gallery-item:hover .tag {
  opacity: 1;
  transform: translateY(0);
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 9, 0.96);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vw;
}

.lightbox.open {
  display: flex;
  animation: fade 0.3s var(--ease);
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(201, 169, 106, 0.15);
  border-color: var(--gold);
}

/* ============ VIDEOS SECTION ============ */
.featured-film {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  margin: 0 auto;
  max-width: 1200px;
}

.featured-film video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.bonus-item {
  background: #000;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.bonus-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============ CONTACT FORM ============ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: calc(100vh - 80px);
}

@media (max-width: 980px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-image {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.contact-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.55));
}

.contact-image-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(32px, 5vw, 64px);
  z-index: 2;
}

.contact-image-content h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  margin-top: 14px;
}

.contact-image-content p {
  color: var(--ink-dim);
  margin-top: 14px;
  max-width: 380px;
}

.contact-form-wrap {
  padding: clamp(48px, 8vw, 100px) var(--gutter);
  display: flex;
  align-items: center;
  background: var(--bg-soft);
}

.contact-form-inner {
  width: 100%;
  max-width: 520px;
}

.contact-form-inner h3 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 300;
  margin: 14px 0 12px;
}

.contact-form-inner p.lead {
  color: var(--ink-dim);
  margin-bottom: 40px;
}

.field {
  margin-bottom: 26px;
}

.field label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 10px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 10px 0;
  transition: border-color 0.3s var(--ease);
  border-radius: 0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-mute);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23b6afa3' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
}

.field select option {
  background: var(--bg-soft);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 36px;
  background: var(--gold);
  color: var(--bg);
  border: 1px solid var(--gold);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.btn:hover {
  background: transparent;
  color: var(--gold);
}

.btn.outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn.outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn svg { width: 14px; height: 14px; }

.form-msg {
  margin-top: 24px;
  font-size: 13px;
  color: var(--gold);
  display: none;
}

.form-msg.visible { display: block; }

.direct-contact {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.direct-contact h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.04em;
  margin: 12px 0 22px;
  color: var(--ink);
}

.direct-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.direct-contact-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: baseline;
  gap: 16px;
}

.direct-contact-list .dc-label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.direct-contact-list a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.direct-contact-list a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 60px var(--gutter) 36px;
  text-align: center;
  background: var(--bg);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-brand span { color: var(--gold); }

.footer-meta {
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.footer-links {
  margin: 22px 0 28px;
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.footer-links a { color: var(--ink-dim); }
.footer-links a:hover { color: var(--gold); }

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============ SELECTION ============ */
::selection {
  background: var(--gold);
  color: var(--bg);
}
