/* =========================================================================
   Waldorf Astoria Residences, Dubai Islands — waldorfastoriadubaiislands.ae
   Palette: onyx, warm ivory, champagne gold.
   Montserrat throughout — headings and body copy both.

   Every media panel is built the same way: a solid background-color at the
   base, translucent gradient scrims above it, and the photograph as the
   bottom background-image layer. Drop a file in and it reads through; leave
   it out and the colour plus scrims still look deliberate. Any scrim you add
   must stay translucent — an opaque stop hides the photograph entirely.
   ========================================================================= */

:root {
  --onyx:       #0b0b0d;
  --onyx-2:     #121216;
  --onyx-3:     #1a1a20;
  --ivory:      #f7f4ee;
  --sand:       #efe9dd;
  --sand-2:     #e4dccc;
  --gold:       #c9a961;
  --gold-deep:  #a8873f;
  --gold-pale:  #e3cf9f;
  --text:       #1f2024;
  --text-soft:  #5a5d66;
  --text-dark-soft: rgba(247, 244, 238, .72);
  --line:       rgba(31, 32, 36, .13);
  --line-dark:  rgba(247, 244, 238, .15);

  /* One family across the page. --display is kept as its own token so headings
     can be retuned later without touching body copy. */
  --display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --sans:    "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1560px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--onyx); color: var(--ivory); padding: .8rem 1.4rem;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Layout primitives ------------------------------------------ */

.wrap { width: min(100% - 3.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 3.5rem, 1040px); }

.section { padding: clamp(4.5rem, 9vw, 8.5rem) 0; }
.section-dark { background: var(--onyx); color: var(--ivory); }
.section-sand { background: var(--sand); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
.align-center { align-items: center; }
.align-start  { align-items: start; }
.center { text-align: center; }

/* ---------- Type -------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 1.1rem;
}

h2 { font-size: clamp(1.75rem, 3.3vw, 2.65rem); }
h3 { font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
h4 { font-size: 1rem; }

/* Geometric-sans italic reads weakly at display size, so the accent carries on
   colour rather than slant. */
h1 em, h2 em { font-style: normal; color: var(--gold-deep); }
.on-dark    { color: var(--ivory); }
.on-dark em { color: var(--gold); }

p { margin: 0 0 1.15rem; }

.eyebrow {
  font-size: .74rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--gold-deep);
  margin: 0 0 1.2rem;
}
.eyebrow.light { color: var(--gold); }

.eyebrow-rule::before {
  content: "";
  display: inline-block;
  width: 38px; height: 1px;
  background: var(--gold);
  margin-right: 1.1rem;
  vertical-align: middle;
}

.rule-gold {
  width: 68px; height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 169, 97, 0));
  margin: 0 0 1.8rem;
}
.center-rule {
  margin-inline: auto;
  width: 110px;
  background: linear-gradient(90deg, rgba(201,169,97,0), var(--gold), rgba(201,169,97,0));
}

/* The rule draws itself in when its section reveals. */
.rule-gold.draw { transform: scaleX(0); transform-origin: left center; }
.center-rule.draw { transform-origin: center; }
.reveal.in .rule-gold.draw,
.rule-gold.draw.in,
.hero-anim.rule-gold.draw { transform: scaleX(1); }
.rule-gold.draw { transition: transform 1.1s var(--ease-out) .15s; }

.section-lede { max-width: 60ch; margin-inline: auto; color: var(--text-soft); }
.lede-dark { color: var(--text-dark-soft); max-width: 62ch; }
.center .lede-dark, .center .section-lede { margin-inline: auto; }

.micro { font-size: .82rem; color: var(--text-soft); line-height: 1.6; }
.on-dark-micro { color: rgba(247, 244, 238, .5); }

/* ---------- Buttons ----------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1.02rem 2.3rem;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 0;
  overflow: hidden;
  transition: background .4s var(--ease), color .4s var(--ease),
              border-color .4s var(--ease), transform .3s var(--ease),
              box-shadow .4s var(--ease);
}
.btn > * { position: relative; z-index: 1; }

/* Gold sheen that sweeps across on hover. */
.btn::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.42), transparent);
  transform: skewX(-18deg);
  transition: left .7s var(--ease-out);
}
.btn:hover::before { left: 115%; }
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: var(--gold);
  color: var(--onyx);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-pale);
  border-color: var(--gold-pale);
  box-shadow: 0 14px 30px -16px rgba(201, 169, 97, .8);
}

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(247, 244, 238, .45);
}
.btn-ghost:hover { background: rgba(247, 244, 238, .1); border-color: var(--ivory); }

.btn-dark { background: var(--onyx); color: var(--ivory); border-color: var(--onyx); }
.btn-dark:hover { background: var(--onyx-3); }

.btn-sm    { padding: .78rem 1.6rem; font-size: .7rem; letter-spacing: .16em; }
.btn-block { width: 100%; }

/* ---------- Scroll progress -------------------------------------------- */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-pale));
  transition: width .12s linear;
}

/* ---------- Header ------------------------------------------------------ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background .45s var(--ease), padding .45s var(--ease),
              box-shadow .45s var(--ease);
}
.site-header.scrolled {
  background: rgba(11, 11, 13, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: .8rem 0;
  box-shadow: 0 1px 0 rgba(201, 169, 97, .22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Text lockup rather than an image: no wordmark file has been supplied, and a
   missing <img> would read worse than type set correctly. */
.brand { display: block; line-height: 1.1; }
.brand-main {
  display: block;
  font-family: var(--display);
  font-size: clamp(.95rem, 1.5vw, 1.2rem);
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ivory);
  transition: font-size .45s var(--ease);
}
.brand-sub {
  display: block;
  font-size: .56rem;
  font-weight: 300;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: .32rem;
}
.site-header.scrolled .brand-main { font-size: clamp(.88rem, 1.3vw, 1.05rem); }

.nav-desktop { display: none; align-items: center; gap: 2.3rem; }
.nav-desktop a:not(.btn) {
  position: relative;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: .82;
  padding-bottom: .3rem;
  transition: opacity .3s var(--ease);
}
.nav-desktop a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .4s var(--ease-out);
}
.nav-desktop a:not(.btn):hover { opacity: 1; }
.nav-desktop a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left center; }

@media (min-width: 960px) { .nav-desktop { display: flex; } .nav-toggle { display: none; } }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: none;
  border: 0;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 1px;
  width: 26px;
  background: var(--ivory);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--onyx);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 6.5rem 1.75rem 3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
  overflow-y: auto;
}
body.nav-open .nav-mobile { opacity: 1; visibility: visible; }

.nav-mobile a:not(.btn) {
  display: block;
  width: 100%;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: .02em;
  color: var(--ivory);
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(247, 244, 238, .08);
  opacity: 0;
  transform: translateY(14px);
  transition: color .3s var(--ease), opacity .5s var(--ease), transform .5s var(--ease);
}
body.nav-open .nav-mobile a:not(.btn) { opacity: 1; transform: none; }
body.nav-open .nav-mobile a:nth-of-type(1) { transition-delay: .08s; }
body.nav-open .nav-mobile a:nth-of-type(2) { transition-delay: .13s; }
body.nav-open .nav-mobile a:nth-of-type(3) { transition-delay: .18s; }
body.nav-open .nav-mobile a:nth-of-type(4) { transition-delay: .23s; }
body.nav-open .nav-mobile a:nth-of-type(5) { transition-delay: .28s; }
body.nav-open .nav-mobile a:nth-of-type(6) { transition-delay: .33s; }
.nav-mobile a:not(.btn):hover { color: var(--gold); }

.nav-mobile .btn.btn-gold {
  width: 100%;
  padding: 1.3rem;
  margin-top: 2rem;
  font-weight: 600;
}

/* ---------- Hero -------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem 0 7rem;
  background: var(--onyx);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-color: #0b0b0d;
  background-image:
    radial-gradient(120% 90% at 76% 20%, rgba(201, 169, 97, .16) 0%, rgba(201, 169, 97, 0) 58%),
    url("../assets/images/hero/waldorf-astoria-residences-dubai-islands-hero.webp");
  background-size: cover, cover;
  background-position: center, center;
  transform: scale(1.06);
  animation: heroDrift 28s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.2%, -1.6%, 0); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,11,13,.86) 0%, rgba(11,11,13,.66) 34%, rgba(11,11,13,.14) 70%, rgba(11,11,13,0) 100%),
    linear-gradient(180deg, rgba(11,11,13,.72) 0%, rgba(11,11,13,.22) 34%, rgba(11,11,13,.5) 70%, rgba(11,11,13,.92) 100%);
}

/* Very fine noise so the large flat gradients do not band on wide screens. */
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; }

/* Staggered entrance. Each element carries its own --d delay inline. */
.hero-anim {
  opacity: 0;
  transform: translateY(26px);
  animation: heroIn 1s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* The rule animates width instead of Y so it reads as a drawn line. */
.hero-anim.rule-gold {
  transform: none;
  animation: ruleIn 1.1s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes ruleIn { from { opacity: 0; width: 0; } to { opacity: 1; width: 68px; } }

.hero-title {
  font-size: clamp(2.3rem, 6.2vw, 4.6rem);
  color: var(--ivory);
  line-height: 1.1;
  margin: 0 0 1.6rem;
  letter-spacing: -.025em;
  text-shadow: 0 2px 30px rgba(4, 6, 9, .6);
}
.hero-title .line { display: block; }
.hero-title em { color: var(--gold); font-style: normal; }

.hero-place {
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 22px rgba(4, 6, 9, .6);
}

.hero-lede {
  color: rgba(247, 244, 238, .92);
  font-size: clamp(.98rem, 1.15vw, 1.06rem);
  max-width: 52ch;
  margin-bottom: 2.4rem;
  text-shadow: 0 1px 18px rgba(4, 6, 9, .65);
}

/* Both CTAs share a width so the pair reads as one block rather than two
   buttons sized by label length. */
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-actions .btn { min-width: 260px; padding-inline: 1.5rem; }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 2.2rem;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  opacity: 0;
  animation: heroIn 1s var(--ease-out) 1.1s forwards;
}
.scroll-cue-line {
  display: block;
  width: 1px; height: 52px;
  background: linear-gradient(180deg, rgba(201,169,97,0), var(--gold));
  overflow: hidden;
  position: relative;
}
.scroll-cue-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-pale);
  animation: cueRun 2.4s var(--ease) infinite;
}
@keyframes cueRun {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}
.scroll-cue-text {
  font-size: .58rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, .6);
}

/* ---------- Media panels ----------------------------------------------- */

.media {
  position: relative;
  background-color: var(--onyx-2);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  overflow: hidden;
}
.media::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201, 169, 97, .34);
  pointer-events: none;
}

.media-overview {
  aspect-ratio: 4 / 3;
  background-color: #1b2f3a;
  background-image:
    linear-gradient(165deg, rgba(20,40,60,.08) 0%, rgba(11,11,13,.16) 100%),
    url("../assets/images/overview/waldorf-astoria-residences-dubai-islands-about.webp");
}
.media-location {
  aspect-ratio: 4 / 3;
  background-color: #1b2f3a;
  background-image:
    linear-gradient(165deg, rgba(20,40,60,.08) 0%, rgba(11,11,13,.16) 100%),
    url("../assets/images/location/dubai-islands.webp");
}

/* JS writes --py; the panel shifts a few pixels against the scroll. */
.parallax { background-position: center calc(50% + var(--py, 0px)); }

/* ---------- Answer-first block ------------------------------------------ */

/* The direct answer to the head query, set apart so it reads as the summary
   rather than as the first paragraph of a narrative. */
.answer-first {
  padding-left: 1.4rem;
  border-left: 2px solid var(--gold);
}
.answer-first strong { font-weight: 500; color: var(--text); }
.lede-dark strong, .sec-lede strong { font-weight: 500; color: inherit; }

/* ---------- Prices ------------------------------------------------------ */

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2vw, 1.8rem);
  margin-block: clamp(3rem, 6vw, 4.5rem) 0;
}
.price-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  padding: clamp(1.6rem, 2.2vw, 2.2rem);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -30px rgba(11, 11, 13, .5);
}
.price-card h3 { font-size: 1.02rem; margin-bottom: .7rem; }
.price-status {
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.price-card p:last-child { font-size: .89rem; color: var(--text-soft); margin: 0; }

.price-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.price-cta p { margin: 0; max-width: 58ch; color: var(--text-soft); font-size: .95rem; }

/* ---------- Pull quote -------------------------------------------------- */

.pull-quote {
  margin: 2.4rem 0 0;
  padding: 1.4rem 0 .2rem 1.6rem;
  border-left: 2px solid var(--gold);
}
.pull-quote p {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: .8rem;
}
.pull-quote cite {
  font-family: var(--sans);
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* ---------- Legacy ------------------------------------------------------ */

.legacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line-dark);
}
.legacy-item { padding: 2.6rem 1.8rem; border-left: 1px solid var(--line-dark); }
.legacy-item:first-child { border-left: 0; }
.legacy-num {
  display: block;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .24em;
  color: var(--gold);
  margin-bottom: 1rem;
}
.legacy-item h3 { color: var(--ivory); font-size: 1.08rem; margin-bottom: .7rem; }
.legacy-item p  { color: var(--text-dark-soft); font-size: .92rem; margin: 0; }

/* ---------- Residences -------------------------------------------------- */

/* Three equal columns. Every card carries the same blocks in the same order —
   media, tag, title, rule, copy, meta, CTA — and the copy flexes so the meta
   row and CTA line up across all three regardless of description length. */
.res-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.2vw, 2.2rem);
  align-items: stretch;
  /* margin-block only — a `margin` shorthand would zero out the
     `margin-inline: auto` that .wrap relies on to centre the row. */
  margin-block: clamp(3rem, 6vw, 4.5rem) 0;
}

.res-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease),
              border-color .55s var(--ease);
}
.res-card:hover {
  transform: translateY(-10px);
  border-color: rgba(201, 169, 97, .5);
  box-shadow: 0 34px 64px -34px rgba(11, 11, 13, .6);
}

.res-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: var(--onyx-2);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 1s var(--ease-out);
}
.res-card:hover .res-media { transform: scale(1.05); }

.res-num {
  position: absolute;
  left: 1.4rem;
  bottom: 1.1rem;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .3em;
  color: var(--gold-pale);
  z-index: 1;
}
.res-media::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(247, 244, 238, .3);
  pointer-events: none;
}

/* Interiors are bright and carry no overlaid text beyond the corner numeral,
   so the scrim is bottom-weighted only — a full wash would grey them out. */
.res-1 {
  background-color: #2b4256;
  background-image:
    linear-gradient(180deg, rgba(11,11,13,0) 52%, rgba(11,11,13,.58) 100%),
    url("../assets/images/residences/living.webp");
}
.res-2 {
  background-color: #3f3a33;
  background-image:
    linear-gradient(180deg, rgba(11,11,13,0) 52%, rgba(11,11,13,.58) 100%),
    url("../assets/images/residences/bedroom.webp");
}
.res-3 {
  background-color: #38332b;
  background-image:
    linear-gradient(180deg, rgba(11,11,13,0) 48%, rgba(11,11,13,.66) 100%),
    url("../assets/images/residences/kitchen.webp");
}

.res-body {
  padding: clamp(1.8rem, 2.2vw, 2.4rem);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.res-tag {
  display: inline-block;
  font-size: .6rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: .8rem;
}
.res-tag.gold { color: var(--gold); }
.res-card h3 { margin-bottom: 0; }

.res-rule { width: 42px; height: 1px; background: var(--gold); margin: 1.1rem 0 1.2rem; }
.res-body p { font-size: .93rem; color: var(--text-soft); flex: 1; margin-bottom: 1.6rem; }

/* Three equal meta columns keep the row aligned card to card. */
.res-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}
.res-meta div { display: flex; flex-direction: column; }
.res-meta dt {
  font-size: .56rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.res-meta dd {
  margin: .35rem 0 0;
  font-family: var(--display);
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
}

.res-cta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  align-self: flex-start;
  margin-top: 1.6rem;
  padding-bottom: .35rem;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border-bottom: 1px solid rgba(201, 169, 97, .4);
  transition: color .35s var(--ease), border-color .35s var(--ease), gap .35s var(--ease);
}
.res-cta::after { content: "→"; font-size: .9rem; line-height: 1; }
.res-cta:hover { color: var(--text); border-color: var(--text); gap: .9rem; }

/* The third card is the same shape as the others, distinguished by tone. */
.res-card-signature { background: var(--onyx); border-color: rgba(201, 169, 97, .3); }
.res-card-signature h3 { color: var(--ivory); }
.res-card-signature .res-body p { color: var(--text-dark-soft); }
.res-card-signature .res-meta { border-top-color: var(--line-dark); }
.res-card-signature .res-meta dt { color: rgba(247, 244, 238, .55); }
.res-card-signature .res-meta dd { color: var(--gold); }
.res-card-signature .res-cta { color: var(--gold); border-color: rgba(201, 169, 97, .5); }
.res-card-signature .res-cta:hover { color: var(--ivory); border-color: var(--ivory); }

/* ---------- Amenities --------------------------------------------------- */

.sec-head, .amen-head { max-width: 900px; }
.sec-head h2, .amen-head h2 { margin-bottom: 1.4rem; }
.sec-lede, .amen-lede {
  font-size: clamp(.95rem, 1.15vw, 1.05rem);
  max-width: 68ch;
  margin: 0;
}
.amen-lede { color: var(--text-dark-soft); }
.sec-lede  { color: var(--text-soft); }

.amen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2.4rem, 3.4vw, 3.2rem) clamp(1.5rem, 2.2vw, 2.2rem);
  margin-block: clamp(3rem, 6vw, 4.5rem) 0;
}
.amen-card { display: flex; flex-direction: column; }

.amen-media {
  position: relative;
  aspect-ratio: 3 / 2;
  background-color: var(--onyx-2);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 1s var(--ease-out);
}
.amen-card:hover .amen-media { transform: scale(1.05); }
.amen-num {
  position: absolute;
  left: 1.1rem;
  bottom: .85rem;
  font-size: .62rem;
  letter-spacing: .28em;
  color: rgba(247, 244, 238, .82);
}

.amen-card h3 {
  margin: 1.4rem 0 1.1rem;
  color: var(--ivory);
  font-size: clamp(1.05rem, 1.4vw, 1.24rem);
  font-weight: 500;
  letter-spacing: -.015em;
}

.amen-items { list-style: none; margin: 0; padding: 0; }
.amen-items li {
  position: relative;
  padding: .74rem 0 .74rem 1.6rem;
  border-bottom: 1px solid rgba(247, 244, 238, .13);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, .68);
}
.amen-items li:first-child { border-top: 1px solid rgba(247, 244, 238, .13); }
.amen-items li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.32em;
  width: 9px; height: 1px;
  background: var(--gold);
}

/* Bottom-weighted scrims only — these renders are bright, and a full wash
   would grey them out. */
.amen-arrival {
  background-color: #2c4a5c;
  background-image:
    linear-gradient(180deg, rgba(11,11,13,0) 58%, rgba(11,11,13,.6) 100%),
    url("../assets/images/amenities/arrival.webp");
}
.amen-pool {
  background-color: #235361;
  background-image:
    linear-gradient(180deg, rgba(11,11,13,0) 58%, rgba(11,11,13,.6) 100%),
    url("../assets/images/amenities/pool.webp");
}
.amen-wellness {
  background-color: #35322a;
  background-image:
    linear-gradient(180deg, rgba(11,11,13,0) 58%, rgba(11,11,13,.6) 100%),
    url("../assets/images/amenities/wellness.webp");
}
.amen-dining {
  background-color: #40331f;
  background-image:
    linear-gradient(180deg, rgba(11,11,13,0) 58%, rgba(11,11,13,.6) 100%),
    url("../assets/images/amenities/dining.webp");
}

/* ---------- Gallery ----------------------------------------------------- */

/* Six tiles, uniform 3/2. Mixed spans were tried and rejected: a double-width
   tile at 3/2 is taller than its row, which left dead space beside the
   single-width tiles next to it. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.8rem, 1.2vw, 1.2rem);
  margin-block: clamp(3rem, 6vw, 4.5rem) 0;
}
.gal-item {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--onyx-2);
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.gal-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter .6s var(--ease);
}
.gal-item:hover img { transform: scale(1.07); filter: brightness(.8); }
.gal-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 200;
  color: var(--ivory);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .45s var(--ease), transform .45s var(--ease-out);
  pointer-events: none;
}
.gal-item:hover .gal-zoom { opacity: 1; transform: scale(1); }

/* ---------- Lightbox ---------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6, 6, 8, .93);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-figure { margin: 0; max-width: 1200px; width: 100%; text-align: center; }
.lb-figure img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid rgba(201, 169, 97, .3);
  transform: scale(.97);
  opacity: 0;
  transition: transform .5s var(--ease-out), opacity .5s var(--ease);
}
.lightbox.open .lb-figure img { transform: none; opacity: 1; }
.lb-figure figcaption {
  margin-top: 1.1rem;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, .62);
}
.lb-close, .lb-nav {
  position: absolute;
  background: none;
  border: 0;
  color: var(--ivory);
  line-height: 1;
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.lb-close { top: 1.2rem; right: 1.6rem; font-size: 2.2rem; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 3rem; padding: 0 .6rem; }
.lb-prev { left: .6rem; }
.lb-next { right: .6rem; }
.lb-close:hover, .lb-nav:hover { color: var(--gold); }

/* ---------- Location ---------------------------------------------------- */

.loc-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2rem, 3.5vw, 3.5rem);
  align-items: center;
  margin-block: clamp(3rem, 6vw, 4.5rem) 0;
}
.loc-panel h3 {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0;
}
.loc-map { margin-top: clamp(2.5rem, 4vw, 3.5rem); }

.dist-list { list-style: none; margin: 1.6rem 0 1rem; padding: 0; border-top: 1px solid var(--line); }
.dist-list li {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: .9rem 0 .9rem 1.6rem;
  border-bottom: 1px solid var(--line);
  transition: padding-left .35s var(--ease);
}
.dist-list li:hover { padding-left: 2rem; }
.dist-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.55em;
  width: 9px; height: 1px;
  background: var(--gold-deep);
}
.dist-t { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }
.dist-v {
  font-family: var(--display);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--gold-deep);
  white-space: nowrap;
}

.map-wrap {
  position: relative;
  aspect-ratio: 21 / 9;
  border: 1px solid var(--line);
  background: var(--sand-2);
}
.map-wrap iframe {
  width: 100%; height: 100%; border: 0;
  filter: grayscale(.4) contrast(1.05);
  pointer-events: none;
}
.map-wrap.active iframe { pointer-events: auto; }
.map-activate {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 13, .3);
  color: var(--ivory);
  border: 0;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: opacity .35s var(--ease);
}
.map-wrap.active .map-activate { opacity: 0; pointer-events: none; }

/* ---------- Investment -------------------------------------------------- */

.invest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line-dark);
}
.invest-item { padding: 2.6rem 1.8rem; border-left: 1px solid var(--line-dark); }
.invest-item:first-child { border-left: 0; }
.invest-num {
  display: block;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .24em;
  color: var(--gold);
  margin-bottom: 1rem;
}
.invest-item h3 { color: var(--ivory); font-size: 1.05rem; margin-bottom: .7rem; }
.invest-item p  { color: var(--text-dark-soft); font-size: .92rem; margin: 0; }

/* ---------- FAQ --------------------------------------------------------- */

.faq-list { margin-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--display);
  font-size: clamp(.95rem, 1.3vw, 1.08rem);
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--text);
  transition: color .3s var(--ease);
}
.faq-q:hover { color: var(--gold-deep); }

.faq-icon { position: relative; flex: 0 0 14px; width: 14px; height: 14px; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 14px; height: 1px;
  background: var(--gold-deep);
  transition: transform .4s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: rotate(0deg); }

.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .5s var(--ease);
}
.faq-a p {
  margin: 0 0 1.5rem;
  padding-right: 3rem;
  font-size: .95rem;
  color: var(--text-soft);
}

/* ---------- Enquiry ----------------------------------------------------- */

.enquire-section { scroll-margin-top: 90px; }
.enquire-grid { align-items: center; }

.enquire-benefits { list-style: none; margin: 1.8rem 0; padding: 0; }
.enquire-benefits li {
  position: relative;
  padding: .6rem 0 .6rem 1.7rem;
  color: var(--text-dark-soft);
  font-size: .95rem;
  border-bottom: 1px solid rgba(247, 244, 238, .1);
}
.enquire-benefits li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.28em;
  width: 9px; height: 1px;
  background: var(--gold);
}

.enquiry-form {
  background: var(--ivory);
  padding: clamp(1.9rem, 3.5vw, 2.8rem);
  border: 1px solid rgba(201, 169, 97, .3);
}
.form-title { font-size: 1.22rem; margin-bottom: 1.5rem; color: var(--text); }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: .45rem;
}
.field label span[aria-hidden] { color: var(--gold-deep); }
.field .opt { letter-spacing: .06em; text-transform: none; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .82rem .9rem;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 300;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(31, 32, 36, .2);
  border-radius: 0;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235a5d66' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 11px;
  padding-right: 2.4rem;
}
.field textarea { resize: vertical; min-height: 84px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, .18);
}

.phone-row { display: grid; grid-template-columns: 118px 1fr; gap: .55rem; }
.phone-row select { padding-right: 1.9rem; background-position: right .6rem center; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-msg { margin: .9rem 0 0; font-size: .86rem; min-height: 1.2em; }
.form-msg.err { color: #a5342c; }
.form-msg.ok  { color: #2f6a45; }

.form-fine { margin: 1rem 0 0; font-size: .74rem; line-height: 1.55; color: var(--text-soft); }

/* ---------- Footer ------------------------------------------------------ */

.site-footer {
  background: var(--onyx);
  color: var(--text-dark-soft);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.5rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer-mark { font-size: 1.15rem; }
.footer-sub  { margin-bottom: 1.2rem; }
.footer-blurb { margin-top: 1.2rem; font-size: .9rem; max-width: 42ch; }

.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: .55rem; }
.footer-nav h4, .footer-contact h4 {
  font-size: .64rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .7rem;
}
.footer-nav a { font-size: .9rem; transition: color .3s var(--ease); }
.footer-nav a:hover { color: var(--gold); }
.footer-contact p { margin: 0; font-size: .9rem; }
.footer-contact a { color: var(--gold-pale); }

.footer-legal { padding-top: 2rem; }
.footer-legal p { font-size: .75rem; line-height: 1.65; color: rgba(247, 244, 238, .45); }
.footer-legal strong { color: rgba(247, 244, 238, .68); font-weight: 400; }

/* ---------- Sticky CTA -------------------------------------------------- */

/* Mobile only — the desktop header already carries a persistent Register CTA,
   so a second fixed bar there is just lost viewport. */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: rgba(11, 11, 13, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(201, 169, 97, .3);
  transform: translateY(110%);
  transition: transform .5s var(--ease);
}
.sticky-cta.show { transform: translateY(0); }
.sticky-inner { display: flex; align-items: center; gap: 1.5rem; padding: .85rem 0; }
.sticky-cta .btn { width: 100%; }

/* ---------- Modals ------------------------------------------------------ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 6, 8, .82);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
  overflow-y: auto;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  position: relative;
  display: none;
  width: min(100%, 520px);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--ivory);
  border: 1px solid rgba(201, 169, 97, .35);
  padding: clamp(1.9rem, 4vw, 2.8rem);
  transform: translateY(18px) scale(.98);
  transition: transform .45s var(--ease-out);
}
.modal.active { display: block; }
.modal-overlay.open .modal.active { transform: none; }

.modal-close {
  position: absolute;
  top: .6rem; right: .9rem;
  background: none;
  border: 0;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--text-soft);
  padding: .2rem .4rem;
}
.modal-close:hover { color: var(--text); }

.modal .enquiry-form { background: none; border: 0; padding: 0; }
.modal-lede { font-size: .9rem; color: var(--text-soft); margin-bottom: 1.5rem; }

.modal-success { text-align: center; }
.success-mark {
  width: 62px; height: 62px;
  margin: .5rem auto 1.4rem;
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--gold-deep);
  animation: pop .6s var(--ease-out);
}
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-success h3 { font-size: 1.4rem; }
.modal-success p { color: var(--text-soft); margin-bottom: 1.6rem; }

/* ---------- Reveals ----------------------------------------------------- */

/* Elements carry an optional inline --d so siblings in a grid stagger. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive -------------------------------------------------- */

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

@media (max-width: 1080px) {
  .res-grid { grid-template-columns: repeat(2, 1fr); }
  /* Odd card out spans both columns rather than leaving a gap. */
  .res-card:last-child { grid-column: span 2; }
  .legacy-grid, .invest-grid { grid-template-columns: repeat(2, 1fr); }
  .legacy-item:nth-child(3), .invest-item:nth-child(3) { border-left: 0; }
  .legacy-item:nth-child(-n+2), .invest-item:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav-desktop { display: none; }
  .nav-toggle  { display: flex; }
}

@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2 > div:first-child { order: 2; }
  .grid-2 > div:last-child  { order: 1; }
  .loc-grid { grid-template-columns: 1fr; }
  .enquire-grid > div:first-child { order: 1; }
  .enquire-grid > div:last-child  { order: 2; }

  .sticky-cta  { display: block; }
  .site-footer { padding-bottom: 6.5rem; } /* clears the fixed bar */

  .footer-top { grid-template-columns: 1fr; gap: 2.2rem; }
  .map-wrap { aspect-ratio: 4 / 3; }

  /* The horizontal readability ramp does nothing at narrow widths, so the
     vertical scrim has to carry the contrast on its own. */
  .hero-veil {
    background: linear-gradient(180deg,
      rgba(11,11,13,.88) 0%, rgba(11,11,13,.74) 40%,
      rgba(11,11,13,.76) 66%, rgba(11,11,13,.94) 100%);
  }
  .lb-nav { font-size: 2.2rem; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .res-grid, .amen-grid, .gallery-grid, .price-grid { grid-template-columns: 1fr; }
  .price-cta .btn { width: 100%; }
  .res-card:last-child { grid-column: span 1; }
  .legacy-grid, .invest-grid { grid-template-columns: 1fr; }
  .legacy-item, .invest-item { border-left: 0; border-bottom: 1px solid var(--line-dark); }
  .hero-actions .btn { width: 100%; min-width: 0; }
  .faq-a p { padding-right: 1rem; }
  .scroll-cue { display: none; }
}

/* ---------- Motion & print --------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal, .hero-anim { opacity: 1; transform: none; }
  .rule-gold.draw { transform: scaleX(1); }
  .hero-media { animation: none; transform: none; }
}

@media print {
  .site-header, .nav-mobile, .sticky-cta, .modal-overlay,
  .map-wrap, .lightbox, .scroll-progress, .scroll-cue { display: none !important; }
  body { background: #fff; color: #000; }
  .section-dark { background: #fff; color: #000; }
  .reveal, .hero-anim { opacity: 1; transform: none; }
}
