/* =========================================================
   ATLANTIS HEIGHTS — Dark Luxury Real Estate One-Pager
   Clean, dependency-free HTML5/CSS3/JS
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Palette */
  --black:        #08080a;
  --charcoal:      #101012;
  --graphite:      #17171a;
  --graphite-2:    #1f1f23;
  --hairline:      rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.16);

  --white:         #f6f4ef;
  --off-white:     #cfccc4;
  --muted:         #8d897f;

  --gold:          #c9a668;
  --gold-light:    #e7d3a3;
  --gold-dim:      rgba(201, 166, 104, 0.35);

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.3s;
  --dur-med: 0.6s;
  --dur-slow: 1s;

  /* Layout */
  --container: 1240px;
  --header-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, textarea, button { font-family: inherit; }
button { cursor: pointer; }
svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.3; }

::selection { background: var(--gold); color: var(--black); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  position: relative;
  padding-left: 34px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 24px; height: 1px;
  background: var(--gold);
  transform: translateY(-50%);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.12;
  color: var(--white);
  letter-spacing: 0.01em;
}

.section { padding: 96px 0; position: relative; }
.section-head { margin-bottom: 56px; max-width: 640px; }
.section-head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  max-width: none;
}
.gallery__note {
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 260px;
  text-align: right;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black);
  font-weight: 500;
}
.btn--gold:hover { filter: brightness(1.08); }

.btn--outline {
  border-color: var(--hairline-strong);
  color: var(--white);
  background: transparent;
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold-light); }

.btn--ghost {
  border-color: var(--gold-dim);
  color: var(--gold-light);
  padding: 12px 26px;
  font-size: 0.72rem;
}
.btn--ghost:hover { background: var(--gold-dim); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.preloader__mark {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  animation: pulseFade 1.4s ease-in-out infinite;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
@keyframes pulseFade {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-med) var(--ease), height var(--dur-med) var(--ease);
}
/* Blur lives on a pseudo-layer (not on .site-header itself) so the header
   never becomes a filter/backdrop-filter containing block — otherwise the
   fixed-position mobile nav drawer nested inside it would be positioned
   relative to the header box instead of the viewport. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(8, 8, 10, 0);
  transition: background var(--dur-med) var(--ease);
}
.site-header.is-scrolled::before {
  background: rgba(8, 8, 10, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.site-header.is-scrolled {
  border-bottom-color: var(--hairline);
  height: 72px;
}

.site-header__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.brand__mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  color: var(--white);
}
.brand__sub {
  font-size: 0.58rem;
  letter-spacing: 0.42em;
  color: var(--gold);
}

.nav__list {
  display: flex;
  gap: 26px;
}
.nav__link {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--off-white);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--dur-fast) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--dur-fast) var(--ease);
}
.nav__link:hover { color: var(--gold-light); }
.nav__link:hover::after { width: 100%; }

.header-cta-group { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-cta { flex-shrink: 0; }
.header-cta--brochure { padding: 14px 22px; }

.nav-drawer-cta { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 1px;
  background: var(--white);
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 720px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  animation: heroZoom 16s ease-out forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,8,10,0.55) 0%, rgba(8,8,10,0.25) 30%, rgba(8,8,10,0.55) 68%, var(--black) 100%),
    linear-gradient(90deg, rgba(8,8,10,0.55) 0%, rgba(8,8,10,0.05) 45%, rgba(8,8,10,0.05) 55%, rgba(8,8,10,0.55) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 110px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 11vw, 7.5rem);
  line-height: 0.96;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  color: var(--white);
  text-shadow: 0 6px 40px rgba(0,0,0,0.5);
}
.hero__title-accent {
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 45%, var(--gold-light) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__tagline {
  margin-top: 22px;
  max-width: 780px;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: #FFF;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 40px;
}

.scroll-cue {
  position: absolute;
  right: 32px;
  bottom: 36px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--off-white);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-cue__line {
  width: 1px;
  height: 54px;
  background: linear-gradient(var(--gold), transparent);
  display: block;
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--charcoal);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  padding: 18px 0;
}
.marquee__track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}
.marquee__track span:nth-child(2n) { color: var(--gold); font-size: 0.7rem; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Overview ---------- */
.overview__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}
.overview__text {
  color: var(--off-white);
  margin-bottom: 18px;
  max-width: 52ch;
}
.overview__media {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.overview__media img { aspect-ratio: 4/5; object-fit: cover; }
.overview__media-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
}
.overview__media-caption span:first-child {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-light);
}
.overview__media-caption span:last-child {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--off-white);
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--gold-light);
  line-height: 1;
}
.stat__num::after { content: "+"; }
.stat__label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Residences ---------- */
.residences { background: var(--charcoal); }
.residence-showcase {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  border: 1px solid var(--hairline);
  background: var(--graphite);
}
.residence-showcase__media { position: relative; min-height: 420px; }
.residence-showcase__media img { width: 100%; height: 100%; object-fit: cover; }
.residence-showcase__specs {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.residence-showcase__title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--white);
  margin-bottom: 16px;
}
.residence-showcase__desc {
  color: var(--off-white);
  margin-bottom: 30px;
  max-width: 44ch;
}
.spec-list { margin-bottom: 34px; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.9rem;
}
.spec-list li:first-child { padding-top: 0; }
.spec-list li span { color: var(--muted); }
.spec-list li strong { font-weight: 500; color: var(--white); text-align: right; }

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 1px;
  background: var(--hairline);
}
.feature-card {
  background: var(--charcoal);
  padding: 40px 34px;
}
.feature-card__num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}
.feature-card h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--white);
  margin: 14px 0 10px;
}
.feature-card p { color: var(--muted); font-size: 0.92rem; max-width: 34ch; }

/* ---------- Amenities ---------- */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.amenity {
  background: var(--black);
  padding: 44px 30px;
  transition: background var(--dur-fast) var(--ease);
}
.amenity:hover { background: var(--graphite); }
.amenity__icon {
  display: inline-flex;
  width: 42px; height: 42px;
  color: var(--gold);
  margin-bottom: 20px;
}
.amenity h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 8px;
}
.amenity p { color: var(--muted); font-size: 0.86rem; }

/* ---------- Gallery ---------- */
.gallery { background: var(--charcoal); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 14px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.gallery-item--tall { grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
  filter: saturate(0.92) brightness(0.92);
}
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid var(--hairline);
  pointer-events: none;
  transition: border-color var(--dur-fast) var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); filter: saturate(1) brightness(1); }
.gallery-item:hover::after { border-color: var(--gold-dim); }

/* ---------- Location ---------- */
.location__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.location-list { margin: 26px 0 32px; display: flex; flex-direction: column; gap: 14px; }
.location-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--off-white);
  font-size: 0.95rem;
}
.location-list .dot {
  flex-shrink: 0;
  width: 6px; height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.location__map {
  border: 1px solid var(--hairline);
  overflow: hidden;
  filter: grayscale(0.35) contrast(1.05) brightness(0.9);
  aspect-ratio: 4/3;
}
.location__map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Site Plan ---------- */
.site-plan {
 background: #101012;
}

/* ---------- CTA Band ---------- */
.cta-band {
  position: relative;
  padding: 110px 0;
  text-align: center;
  background:
    linear-gradient(rgba(8,8,10,0.72), rgba(8,8,10,0.85)),
    url("https://images.unsplash.com/photo-1600585154363-67eb9e2e2099?auto=format&fit=crop&w=2000&q=80") center/cover fixed;
}
.cta-band__inner { display: flex; flex-direction: column; align-items: center; gap: 34px; }
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.1;
  color: var(--white);
}

@media (max-width: 700px) {
  .cta-band { background-attachment: scroll; }
}

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}
.contact__copy .section-title { margin: 10px 0 20px; }
.contact-info {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.contact-info__label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.contact-info p { color: var(--off-white); font-size: 0.95rem; }
.contact-info a:hover { color: var(--gold-light); }

.contact-form {
  background: var(--graphite);
  border: 1px solid var(--hairline);
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-row input, .form-row textarea {
  background: var(--black);
  border: 1px solid var(--hairline-strong);
  color: var(--white);
  padding: 14px 16px;
  font-size: 0.95rem;
  border-radius: 2px;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.form-submit { margin-top: 8px; width: 100%; }
.form-status {
  font-size: 0.85rem;
  color: var(--gold-light);
  min-height: 1.2em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  border-top: 1px solid var(--hairline);
  padding-top: 64px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--hairline);
}
.site-footer__brand p { color: var(--muted); margin-top: 12px; font-size: 0.9rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.site-footer__links a { font-size: 0.85rem; color: var(--off-white); }
.site-footer__links a:hover { color: var(--gold-light); }
.site-footer__social { display: flex; gap: 16px; }
.site-footer__social a {
  width: 38px; height: 38px;
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.site-footer__social a:hover { border-color: var(--gold); color: var(--gold-light); }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.78rem;
}
.site-footer__disclaimer { max-width: 480px; text-align: right; }

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
  font-size: 0.8rem;
}
.site-footer__legal a { color: var(--muted); }
.site-footer__legal a:hover { color: var(--gold-light); }

/* ---------- Developer / Project Portfolio ---------- */
.developer { background: var(--charcoal); }
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.project-card {
  border: 1px solid var(--hairline);
  overflow: hidden;
  border-radius: 2px;
  background: var(--graphite);
}
.project-card__media { aspect-ratio: 3/4; overflow: hidden; }
.project-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.85);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.project-card:hover .project-card__media img { transform: scale(1.06); filter: saturate(1) brightness(1); }
.project-card__body { padding: 22px 20px 26px; }
.project-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 8px;
}
.project-card__body p { color: var(--muted); font-size: 0.86rem; }

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  max-width: 880px;
}
.faq-item { background: var(--black); padding: 26px 28px; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--white);
  font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.1rem;
  transition: background var(--dur-fast) var(--ease);
}
.faq-item[open] summary::after { content: "\2212"; background: var(--gold-dim); }
.faq-item p { color: var(--off-white); margin-top: 16px; max-width: 70ch; font-size: 0.95rem; }

/* ---------- CTA band actions ---------- */
.cta-band__actions { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }

/* ---------- Brochure / Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease), visibility var(--dur-fast) var(--ease);
}
.modal.is-open { visibility: visible; opacity: 1; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 7, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--graphite);
  border: 1px solid var(--hairline-strong);
  padding: 44px 40px;
  transform: translateY(20px) scale(0.98);
  transition: transform var(--dur-med) var(--ease);
}
.modal.is-open .modal__panel { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: none;
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  color: var(--off-white);
  font-size: 1.3rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.modal__close:hover { border-color: var(--gold); color: var(--gold-light); }
.modal__title { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; color: var(--white); margin: 8px 0 10px; }
.modal__desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 26px; }
.modal__form { display: flex; flex-direction: column; gap: 18px; }

/* ---------- Breadcrumbs (inner pages) ---------- */
.breadcrumbs { padding: calc(var(--header-h) + 32px) 0 0; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold-light); }
.breadcrumbs .current { color: var(--gold-light); }

/* ---------- Prose / Legal Pages ---------- */
.page-hero { padding: calc(var(--header-h) + 40px) 0 56px; border-bottom: 1px solid var(--hairline); }
.prose { max-width: 780px; padding: 64px 0 40px; }
.prose h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; color: var(--white); margin: 44px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--off-white); margin-bottom: 16px; max-width: 70ch; }
.prose ul { margin: 0 0 16px; padding-left: 20px; color: var(--off-white); }
.prose li { margin-bottom: 8px; list-style: disc; }
.prose strong { color: var(--white); }
.prose .updated { color: var(--muted); font-size: 0.85rem; margin-bottom: 8px; }

/* ---------- Blog Listing ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-bottom: 40px; }
.blog-card { border: 1px solid var(--hairline); background: var(--graphite); display: flex; flex-direction: column; }
.blog-card__media { aspect-ratio: 16/10; overflow: hidden; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.blog-card:hover .blog-card__media img { transform: scale(1.05); }
.blog-card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.blog-card__meta { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.blog-card__body h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--white); }
.blog-card__body p { color: var(--muted); font-size: 0.9rem; flex: 1; }
.blog-card__link { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-light); display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }
.blog-card__link:hover { color: var(--white); }

/* ---------- Blog Single / Article ---------- */
.article-hero { padding: calc(var(--header-h) + 40px) 0 0; }
.article-hero__meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.8rem; margin-top: 18px; }
.article-hero__media { margin-top: 36px; border: 1px solid var(--hairline); overflow: hidden; aspect-ratio: 16/8; }
.article-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.article-wrap { padding: 48px 0 40px; }
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 { font-family: var(--font-display); font-size: 35px; font-weight: 500; line-height: normal; color: var(--white); margin: 40px 0 16px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {font-size: 28px;}
.article-body p { color: var(--off-white); margin-bottom: 18px; font-size: 18px;}
.article-body strong {font-weight: 600;}
.article-body a {color:#c1a064; font-weight: 500;}
.article-body a:hover {text-decoration: underline;}
.article-body img {margin-bottom: 40px;}
.article-body blockquote {
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 24px;
  margin: 28px 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-light);
}
.article-body ul { margin: 0 0 0 30px; padding-left: 20px; color: var(--off-white); }
.article-body li { margin-bottom: 18px; list-style-type: circle; font-size: 18px; }
.article-footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.article-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.article-tags span {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid var(--gold-dim);
  padding: 6px 14px;
  border-radius: 999px;
}


table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
  }
 
  thead th {
    text-align: left;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 18px 20px;
    border-bottom: 1px solid #232325;
    border-top: 1px solid #232325;
  }
 
  thead th:first-child { border-left: 1px solid #232325; }
  thead th:last-child { border-right: 1px solid #232325; }
 
  tbody td {
    padding: 20px;
    font-size: 18px;
    font-weight: 300;
    color: var(--text);
    border-bottom: 1px solid #232325;
  }
 
  tbody td:first-child {
    border-left: 1px solid #232325;
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.02em;
  }
 
  tbody td:last-child { border-right: 1px solid #232325; }
 
  tbody tr:last-child td { border-bottom: 1px solid #232325; }
 
  tbody tr {
    transition: background 0.25s ease;
  }
 
  tbody tr:hover {
    background: rgba(200, 164, 94, 0.05);
  }
 
  .price {
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
  }
 
  .tag {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    border: 1px solid var(--line);
    padding: 4px 10px;
    border-radius: 2px;
  }
 
  .tag.available { color: var(--gold); border-color: var(--gold-soft); }
 
  .footnote {
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 300;
    letter-spacing: 0.01em;
  }

/* ---------- Thank You Page ---------- */
.thank-you {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 40px) 24px 80px;
}
.thank-you__inner { max-width: 560px; }
.thank-you__icon {
  width: 64px; height: 64px;
  margin: 0 auto 28px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.thank-you__icon svg { width: 28px; height: 28px; }
.thank-you__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* ---------- Floating CTA (mobile) ---------- */
.fab-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  display: none;
  transition: transform var(--dur-fast) var(--ease);
}
.fab-cta:active { transform: scale(0.96); }

@media (max-width: 1180px) {
  .header-cta--brochure { display: none; }
}

/* =========================================================
   RESPONSIVE — Tablet
   ========================================================= */
@media (max-width: 1024px) {
  .overview__grid { grid-template-columns: 1fr; gap: 48px; }
  .overview__media { order: -1; }
  .residence-showcase { grid-template-columns: 1fr; }
  .residence-showcase__media { min-height: 320px; }
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .location__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item--tall { grid-row: span 2; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   RESPONSIVE — Mobile
   ========================================================= */
@media (max-width: 780px) {
  :root { --header-h: 68px; }

  .container { padding: 0 18px; }
  .section { padding: 72px 0; }

  .nav { display: none; }
  .header-cta-group { display: none; }
  .nav-toggle { display: flex; }

  .site-header.is-scrolled { height: 64px; }

  /* Mobile nav drawer */
  .nav.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    top: 0;
    background: rgba(8,8,10,0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 1050;
    animation: fadeIn 0.3s var(--ease);
  }
  .nav.is-open .nav__list {
    flex-direction: column;
    gap: 26px;
    text-align: center;
  }
  .nav.is-open .nav__link { font-size: 1.25rem; font-family: var(--font-display); text-transform: none; letter-spacing: 0.02em; }
  .nav.is-open .nav-drawer-cta { display: inline-flex; }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

  .hero__content { padding-bottom: 90px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .scroll-cue { display: none; }

  .overview__grid, .contact__grid { gap: 40px; }
  .stat-row { gap: 28px 32px; }
  .stat__num { font-size: 2.1rem; }

  .feature-cards { grid-template-columns: 1fr; }
  .amenity-grid { grid-template-columns: 1fr 1fr; }
  .amenity { padding: 34px 20px; }

  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-item--tall { grid-row: span 1; }

  .section-head--split { flex-direction: column; align-items: flex-start; gap: 14px; }
  .gallery__note { text-align: left; max-width: none; }

  .contact-info { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }

  .site-footer__inner { flex-direction: column; }
  .site-footer__bottom { flex-direction: column; }
  .site-footer__disclaimer { text-align: left; }

  .fab-cta { display: inline-flex; }

  .project-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cta-band__actions { flex-direction: column; align-items: stretch; }
  .cta-band__actions .btn { width: 100%; }

  .faq-item { padding: 20px; }
  .faq-item summary { font-size: 1rem; gap: 14px; }

  .modal__panel { padding: 34px 26px; }

  .blog-grid { grid-template-columns: 1fr; }

  .article-hero__meta { gap: 10px 16px; }
  .article-footer { flex-direction: column; align-items: flex-start; }

  .prose { padding: 44px 0 32px; }
}

@media (max-width: 420px) {
  .amenity-grid { grid-template-columns: 1fr; }
  .hero__title { letter-spacing: 0; }
  .project-grid { grid-template-columns: 1fr; }
}
