/* Nakheel Al Wadi: Najdi desert luxury. Sand, off-white, clay, palm green, night, a restrained gold. */
:root {
  --sand: #E9DFCF;
  --off: #F7F3EC;
  --clay: #C9A27E;
  --palm: #2E4B3C;
  --night: #101820;
  --gold: #B8925A;
  --ink: #F7F3EC;            /* text colour over the hero; hero.js moves it from light (dark room) to dark (lit studio) */
  --display: 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', sans-serif;
  --text: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
  --gutter: clamp(20px, 6vw, 112px);
}
:root[lang="en"] {
  --display: 'Cormorant Garamond', Georgia, serif;
  --text: 'IBM Plex Sans', 'IBM Plex Sans Arabic', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--off);
  font: 400 16px/1.7 var(--text);
  overflow-x: clip;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  color: var(--ink);
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; color: var(--gold); flex: none; }
.brand-words { display: flex; flex-direction: column; line-height: 1.25; }
.brand-words b { font: 700 19px/1.3 var(--display); letter-spacing: 0; white-space: nowrap; }
:root[lang="en"] .brand-words b { font-weight: 600; font-size: 22px; letter-spacing: .02em; }
.brand-words small { font-size: 11.5px; opacity: .7; letter-spacing: .02em; }
.bar-end { display: flex; align-items: center; gap: 10px; }
.lang, .pill {
  height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent);
  background: transparent; color: inherit; cursor: pointer;
  font: 500 14px/38px var(--text); text-decoration: none; white-space: nowrap;
}
.lang { width: 40px; padding: 0; font-family: 'IBM Plex Sans', 'IBM Plex Sans Arabic', sans-serif; }
.pill { background: var(--gold); border-color: var(--gold); color: var(--night); }
.lang:hover, .pill:hover { filter: brightness(1.08); }
.lang:focus-visible, .pill:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- hero ---------- */
.story { position: relative; background: #0b0a09; }
/* the 3D stage stays pinned for the whole story; the sections scroll over it, each with its own pinned copy */
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; overflow: hidden; }
.hero { position: relative; height: 560vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-gl, .hero-still { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-still { object-fit: cover; object-position: 60% 50%; opacity: 0; }
/* the scene is drawn for the English layout (buildings right, text left); in Arabic it is mirrored, so the
   maquette and the photo's focus take the other side */
:root[dir="rtl"] .hero-gl, :root[dir="rtl"] .hero-still { transform: scaleX(-1); }
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none; opacity: var(--scrim, 0);
  background: linear-gradient(to left, transparent 50%, rgba(247, 243, 236, .38) 100%);
}
:root[dir="rtl"] .hero-scrim { background: linear-gradient(to right, transparent 50%, rgba(247, 243, 236, .38) 100%); }

.cap {
  position: absolute; inset-inline-start: var(--gutter); top: 50%;
  width: min(560px, 44vw);
  transform: translateY(-50%);
  color: var(--ink);
  opacity: var(--o, 0);
  visibility: hidden;
  pointer-events: none;
}
.cap.on { visibility: visible; }
.cap-4.on { pointer-events: auto; }
.cap-4 { top: 42%; }
.cap-2 { top: 30%; }
.cap-2 .kicker, .cap-4 .kicker { color: #8a6a3d; }   /* the darker gold over the lit studio and the photo */
/* «والآن، صار حقيقة.» crosses the light of the hand-over: always dark, on a soft glow of off-white behind it */
.cap-3 { color: var(--night); }
.cap-3::before {
  content: ''; position: absolute; inset: -34% -14%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(247, 243, 236, .78), rgba(247, 243, 236, .45) 55%, rgba(247, 243, 236, 0));
  filter: blur(6px);
}
.cap-3 .display { text-shadow: 0 0 18px rgba(247, 243, 236, .9), 0 0 2px rgba(247, 243, 236, .6); }
.kicker {
  margin: 0 0 14px; color: var(--gold);
  font: 500 14px/1.6 var(--text); letter-spacing: .02em;
}
:root[lang="en"] .kicker { text-transform: uppercase; letter-spacing: .16em; font-size: 12.5px; }
.display {
  margin: 0;
  font: 700 clamp(38px, 4.6vw, 76px)/1.5 var(--display);  /* room for the dots of ي and ق */
  letter-spacing: 0;
}
:root[lang="en"] .display { font-weight: 500; line-height: 1.05; font-size: clamp(44px, 5.4vw, 92px); }
.display.big { font-size: clamp(46px, 6vw, 100px); }
:root[lang="en"] .display.big { font-size: clamp(52px, 7vw, 116px); }
.lead { margin: 12px 0 0; font: 400 clamp(17px, 1.35vw, 21px)/1.75 var(--text); max-width: 34em; }
.hint { margin: 26px 0 0; font-size: 14px; opacity: .7; }
.hint::after { content: ''; display: inline-block; width: 1px; height: 26px; margin-inline-start: 12px; vertical-align: middle; background: currentColor; animation: drip 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0%, 100% { transform: scaleY(.25); opacity: .3; } 50% { transform: scaleY(1); opacity: 1; } }

/* words rise in one after another as a caption comes in (split by word, never by letter) */
.w { display: inline-block; opacity: calc(var(--o, 0) * 4 - var(--i) * .35); transform: translateY(calc((1 - min(1, var(--o, 0) * 2)) * .4em)); }

.stats { display: flex; gap: clamp(18px, 3vw, 44px); margin: 0; }
.stats div { min-width: 0; }
.stats dt { font-size: 13px; opacity: .75; margin-bottom: 2px; white-space: nowrap; }
.stats dd { margin: 0; font: 500 clamp(34px, 3.4vw, 54px)/1.1 'Cormorant Garamond', Georgia, serif; font-variant-numeric: tabular-nums; }
.stats small { font: 400 15px/1 var(--text); opacity: .55; margin-inline-start: 6px; }

.btn {
  display: inline-flex; align-items: center; height: 50px; margin-top: 26px; padding: 0 26px;
  border-radius: 999px; background: var(--palm); color: var(--off); text-decoration: none;
  font: 500 16px/1 var(--text);
}
.btn:hover { background: #3a5c4a; }

.hero-progress { position: absolute; inset-inline: var(--gutter); bottom: 22px; height: 1px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
.hero-progress span { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(var(--p, 0)); transform-origin: left; }
:root[dir="rtl"] .hero-progress span { transform-origin: right; }

/* ---------- the masterplan ---------- */
.plan { position: relative; height: 640vh; }
.plan-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.plan-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
:root[dir="rtl"] .plan-still { transform: scaleX(-1); }
.plan-copy {
  position: absolute; inset-inline-start: var(--gutter); top: 118px;
  width: min(380px, 28vw); color: var(--off);
  opacity: var(--o, 0); visibility: hidden;
}
.plan-copy.on { visibility: visible; }
.plan-copy .display { font-size: clamp(28px, 2.7vw, 46px); }
:root[lang="en"] .plan-copy .display { font-size: clamp(34px, 3.3vw, 56px); }
.plan-copy .lead { font-size: 15.5px; line-height: 1.7; margin-top: 8px; }
.plan-copy .lead[hidden] { display: none; }
/* the amenities: a small row of chips along the bottom, on the copy's side */
.plan-list {
  position: absolute; inset-inline-start: var(--gutter); bottom: 40px; z-index: 2;
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; max-width: min(760px, 62vw);
  opacity: var(--o, 0); visibility: hidden;
}
.plan-list.on { visibility: visible; }
.plan-list button {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 7px; border-radius: 999px; white-space: nowrap;
  border: 1px solid rgba(247, 243, 236, .18); background: rgba(20, 16, 12, .62); color: inherit; backdrop-filter: blur(6px);
  font: 500 13.5px/1.4 var(--text); text-align: start; cursor: pointer; transition: background .25s, border-color .25s;
}
.plan-list button i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--night); font: 600 12px/1 'IBM Plex Sans', sans-serif; font-style: normal; }
.plan-list button:hover, .plan-list button.on { background: rgba(184, 146, 90, .16); border-color: rgba(184, 146, 90, .7); }
.plan-list button:focus-visible, .pin:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.plan-hint { margin-top: 18px; }
.plan-hint::after { display: none; }

/* the walking times, beside each projected path: words of warm light on the dark model */
.walks { position: absolute; inset: 0; pointer-events: none; }
.walk {
  position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap;
  margin: -0.8em 0 0 0; translate: -50% 0;
  font: 500 13.5px/1.3 var(--text); color: #ffe7c2; letter-spacing: .01em;
  text-shadow: 0 0 6px rgba(255, 196, 110, .85), 0 0 18px rgba(255, 170, 70, .45);
}
.walk::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-inline-end: 7px; border-radius: 50%; background: #ffd79a; box-shadow: 0 0 8px #ffbf66; vertical-align: middle; }
.plan-am { margin: 12px 0 0; padding: 10px 14px; border-inline-start: 2px solid var(--gold); background: rgba(28, 22, 16, .72); backdrop-filter: blur(6px); }
.plan-am[hidden] { display: none; }
.plan-am b { display: block; font: 700 20px/1.5 var(--display); color: #f3dcb4; }
:root[lang="en"] .plan-am b { font-weight: 600; font-size: 24px; line-height: 1.2; }
.plan-am span { display: block; font-size: 15px; line-height: 1.65; opacity: .85; }

/* points on the maquette: placed by hero.js on the projected 3D positions */
.pins { position: absolute; inset: 0; pointer-events: none; opacity: var(--o, 0); }
.pin {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0;
  background: none; cursor: pointer; pointer-events: auto; transform: translate3d(var(--x, -100px), var(--y, -100px), 0);
  visibility: hidden;
}
.pins.on .pin { visibility: visible; }
.pins.on .pin.off { visibility: hidden; }
.pin::before {   /* a soft ring breathing round the point */
  content: ''; position: absolute; inset: 6px; border-radius: 50%; border: 1px solid rgba(247, 243, 236, .8);
  animation: breathe 2.6s ease-in-out infinite;
}
.pin i {
  position: absolute; inset: 13px; border-radius: 50%; background: var(--gold); box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
  display: grid; place-items: center; color: var(--night); font: 600 11px/1 'IBM Plex Sans', sans-serif; font-style: normal;
  transition: transform .25s;
}
.pin:hover i, .pin.on i { transform: scale(1.35); }
.pin.on::before { animation: none; transform: scale(1.4); border-color: var(--gold); }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.5); opacity: 0; } }

.am-card {
  position: absolute; left: 0; top: 0; width: 300px; z-index: 2;
  transform: translate3d(var(--cx, 0), var(--cy, 0), 0);
  background: var(--off); color: var(--night); border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45); pointer-events: auto;
  animation: card-in .35s cubic-bezier(.2, .7, .2, 1);
}
@keyframes card-in { from { opacity: 0; margin-top: 10px; } to { opacity: 1; margin-top: 0; } }
.am-card[hidden] { display: none; }
.am-img { aspect-ratio: 16 / 10; background: var(--sand); overflow: hidden; }
.am-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.6); }
.am-body { padding: 14px 18px 18px; }
.am-body .kicker { margin: 0 0 4px; color: #8a6a3d; font-size: 12.5px; }
.am-body h3 { margin: 0 0 4px; font: 700 21px/1.5 var(--display); }
:root[lang="en"] .am-body h3 { font-weight: 600; font-size: 25px; line-height: 1.2; }
.am-body p:last-child { margin: 0; font-size: 14.5px; line-height: 1.65; }

/* ---------- the residences ---------- */
.res { position: relative; height: 560vh; }
.res-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.res-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.res-copy {
  position: absolute; inset-inline-start: var(--gutter); top: 118px; z-index: 2;
  width: min(400px, 30vw); color: var(--off); opacity: var(--o, 0); visibility: hidden;
}
.res-copy.on { visibility: visible; }
.res-sticky::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: var(--rscrim, 0);
  background: linear-gradient(to left, transparent 52%, rgba(16, 14, 12, .62) 100%);
}
:root[dir="rtl"] .res-sticky::before { background: linear-gradient(to right, transparent 52%, rgba(16, 14, 12, .62) 100%); }
.res-copy .display { font-size: clamp(30px, 2.9vw, 50px); }
:root[lang="en"] .res-copy .display { font-size: clamp(36px, 3.5vw, 60px); }
.res-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.res-tabs button {
  padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(247, 243, 236, .22); cursor: pointer;
  background: rgba(20, 16, 12, .62); color: inherit; font: 500 14px/1.3 var(--text); backdrop-filter: blur(6px);
  transition: background .25s, border-color .25s, color .25s;
}
.res-tabs button:hover { border-color: rgba(184, 146, 90, .7); }
.res-tabs button.on { background: var(--gold); border-color: var(--gold); color: var(--night); }
.res-tabs button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.res-info { margin: 14px 0 0; }
.res-info b { display: block; font: 700 19px/1.5 var(--display); color: #f3dcb4; }
:root[lang="en"] .res-info b { font-weight: 600; font-size: 23px; line-height: 1.25; }
.res-info span { display: block; font-size: 15px; opacity: .85; }
.res-list { display: none; list-style: none; margin: 14px 0 0; padding: 0; }
.res-list li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid rgba(247, 243, 236, .14); font-size: 14.5px; }
.res-list b { font-weight: 500; color: #f3dcb4; }
.res-note { margin: 12px 0 0; font-size: 12px; opacity: .55; }
/* the rooms' names and areas, placed on the model like light on the board */
.res-rooms { position: absolute; inset: 0; pointer-events: none; }
.room {
  position: absolute; left: 0; top: 0; opacity: 0; translate: -50% -50%; text-align: center; white-space: nowrap;
  padding: 4px 10px 5px; border-radius: 8px; background: rgba(16, 14, 12, .72); color: #fff3e0;
  box-shadow: 0 0 0 1px rgba(184, 146, 90, .45), 0 6px 18px rgba(0, 0, 0, .25);
}
.room[hidden] { display: none; }
.room b { display: block; font: 600 13.5px/1.3 var(--text); }
.room i { display: block; font: 400 12px/1.3 var(--text); font-style: normal; color: #e9c48a; }

/* ---------- the location ---------- */
.loc { position: relative; height: 480vh; }
.loc-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.loc-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.loc-copy {
  position: absolute; inset-inline-start: var(--gutter); top: 118px; z-index: 2;
  width: min(380px, 28vw); color: var(--off); opacity: var(--o, 0); visibility: hidden;
}
.loc-copy.on { visibility: visible; }
.loc-copy .display { font-size: clamp(28px, 2.7vw, 46px); }
:root[lang="en"] .loc-copy .display { font-size: clamp(34px, 3.3vw, 56px); }
.loc-copy .lead { font-size: 15.5px; line-height: 1.7; margin-top: 8px; }
.loc-list { list-style: none; margin: 16px 0 0; padding: 0; }
.loc-list li {
  display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; font-size: 14px;
  border-bottom: 1px solid rgba(247, 243, 236, .12); opacity: .45; transition: opacity .5s;
}
.loc-list li.on { opacity: 1; }
.loc-list b { font-weight: 500; color: #f3dcb4; white-space: nowrap; }
.loc-places { position: absolute; inset: 0; pointer-events: none; }
.place {
  position: absolute; left: 0; top: 0; opacity: 0; translate: -50% calc(-100% - 12px); white-space: nowrap; text-align: center;
  padding: 4px 10px 5px; border-radius: 8px; background: rgba(16, 14, 12, .78); color: #fff3e0;
  box-shadow: 0 0 0 1px rgba(184, 146, 90, .5), 0 6px 18px rgba(0, 0, 0, .3);
}
.place[data-side="below"] { translate: -50% 14px; }
.place[data-side="west"] { translate: calc(-100% - 14px) -50%; }
.place[data-side="east"] { translate: 14px -50%; }
.place b { display: block; font: 600 12.5px/1.35 var(--text); }
.place i { display: block; font: 500 12px/1.3 var(--text); font-style: normal; color: #e9c48a; }
.place.is-project { background: var(--gold); color: var(--night); box-shadow: 0 0 22px rgba(255, 190, 100, .55); }
.place.is-project b { font: 700 13px/1.4 var(--display); }
.place.is-project i { display: none; }

/* ---------- the payment plan: a brass rail along the foot of the screen, filling as the model is built ---------- */
.pay { position: relative; height: 380vh; }
.pay-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.pay-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.pay-copy {
  position: absolute; inset-inline-start: var(--gutter); top: 118px; z-index: 2;
  width: min(400px, 30vw); color: var(--off); opacity: var(--o, 0); visibility: hidden;
}
.pay-copy.on, .pay-rail.on { visibility: visible; }
.pay-copy .display { font-size: clamp(28px, 2.7vw, 46px); }
:root[lang="en"] .pay-copy .display { font-size: clamp(34px, 3.3vw, 56px); }
.pay-copy .lead { font-size: 15.5px; line-height: 1.7; margin-top: 8px; }
.pay-copy { text-shadow: 0 1px 14px rgba(14, 12, 10, .8); }
.pay-rail {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 110px var(--gutter) 30px;
  background: linear-gradient(to top, rgba(14, 12, 10, .9) 45%, rgba(14, 12, 10, 0));
  color: var(--off); opacity: var(--o, 0); visibility: hidden;
}
.rail { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.stop { flex: var(--w) 1 0; min-width: 170px; opacity: .45; transition: opacity .5s; }
.stop.on { opacity: 1; }
/* each share is a length of brass inlay, as on the display tables, lit as it fills */
.seg { position: relative; display: block; height: 4px; border-radius: 2px; background: rgba(247, 243, 236, .14); overflow: hidden; }
.seg i {
  position: absolute; inset: 0; transform: scaleX(var(--f, 0)); transform-origin: left center;
  background: linear-gradient(90deg, #8a6a3d, #e8cc96 70%, #fff1d4); box-shadow: 0 0 12px rgba(255, 200, 120, .6);
}
:root[dir="rtl"] .seg i { transform-origin: right center; background: linear-gradient(270deg, #8a6a3d, #e8cc96 70%, #fff1d4); }
.stop b { display: block; margin-top: 14px; font: 500 clamp(38px, 3.4vw, 56px)/1 'Cormorant Garamond', Georgia, serif; color: #f3dcb4; font-variant-numeric: tabular-nums; unicode-bidi: isolate; text-align: start; }
:root[dir="rtl"] .stop b { text-align: right; }
.stop strong { display: block; margin-top: 8px; font: 600 16px/1.5 var(--text); }
.stop small { display: block; font-size: 13.5px; line-height: 1.55; opacity: .75; }
.pay-note { margin: 18px 0 0; font-size: 12.5px; opacity: .6; }

/* ---------- the close: the developer's plaque and the sales desk, over the whole gallery ---------- */
.tail { position: relative; --o: 1; }
.dev, .reg { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-start; padding: 110px var(--gutter) 80px; }
.dev > *, .reg > * { margin-block: auto; }   /* centred, but never pushed up under the bar when taller than the screen */
.reg { padding-bottom: 110px; }
.plaque, .desk {
  position: relative; width: min(520px, 40vw); padding: 40px 44px 34px; border-radius: 3px; color: var(--off);
  background: linear-gradient(160deg, rgba(30, 24, 19, .94), rgba(16, 13, 10, .94));
  box-shadow: 0 0 0 1px rgba(184, 146, 90, .45), 0 30px 80px rgba(0, 0, 0, .45);
}
/* a fine brass inlay inside the edge, like the tables' */
.plaque::before, .desk::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(184, 146, 90, .22); border-radius: 2px; pointer-events: none; }
.dev-mark { width: 92px; height: 50px; color: var(--gold); display: block; margin-bottom: 14px; }
.dev-name { margin: 0; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.dev-ar { font: 700 clamp(48px, 4.4vw, 72px)/1.35 'Noto Kufi Arabic', sans-serif; color: #f3dcb4; }
.dev-en { font: 500 clamp(18px, 1.5vw, 24px)/1 'Cormorant Garamond', Georgia, serif; letter-spacing: .42em; color: var(--gold); unicode-bidi: isolate; }
.dev-sub { margin: 2px 0 0; font-size: 14px; opacity: .7; }
.plaque .lead, .desk .lead { font-size: 15.5px; line-height: 1.75; margin-top: 14px; }
.dev-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; margin: 26px 0 0; padding-top: 22px; border-top: 1px solid rgba(184, 146, 90, .3); }
.dev-stats div { display: flex; flex-direction: column; }
.dev-stats dd { margin: 0; font: 500 clamp(38px, 3.2vw, 52px)/1 'Cormorant Garamond', Georgia, serif; color: #f3dcb4; font-variant-numeric: tabular-nums; direction: ltr; text-align: start; unicode-bidi: isolate; }
:root[dir="rtl"] .dev-stats dd { text-align: right; }
.dev-stats dd small { font-size: .55em; margin-inline-start: 2px; }
.dev-stats dt { margin-top: 6px; font-size: 13.5px; opacity: .75; }

.desk { background: linear-gradient(160deg, rgba(48, 32, 21, .95), rgba(24, 16, 11, .95)); }
.desk .display { font-size: clamp(28px, 2.6vw, 44px); }
:root[lang="en"] .desk .display { font-size: clamp(34px, 3.2vw, 54px); }
.field { display: block; margin-top: 18px; }
.field span { display: block; font-size: 13px; opacity: .7; }
.field input, .field select {
  width: 100%; margin-top: 2px; padding: 9px 0 8px; border: 0; border-bottom: 1px solid rgba(233, 223, 207, .3); border-radius: 0;
  background: transparent; color: var(--off); font: 400 17px/1.5 var(--text); outline: none; transition: border-color .25s;
}
.field input[dir="ltr"] { text-align: left; unicode-bidi: isolate; }
:root[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field input::placeholder { color: rgba(247, 243, 236, .3); }
.field input:focus, .field select:focus { border-bottom-color: var(--gold); }
.field select { appearance: none; cursor: pointer; background: linear-gradient(45deg, transparent 50%, var(--gold) 50%) no-repeat, linear-gradient(-45deg, transparent 50%, var(--gold) 50%) no-repeat; background-size: 5px 5px; background-position: calc(100% - 5px) 55%, 100% 55%; }
:root[dir="rtl"] .field select { background-position: 5px 55%, 0 55%; }
.field option { background: #241810; color: var(--off); }
.bad .field input:placeholder-shown, .bad .field input:invalid { border-bottom-color: #d98c6a; }
.desk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.desk-actions .btn { margin: 0; border: 0; cursor: pointer; background: var(--gold); color: var(--night); font-weight: 600; }
.desk-actions .btn:hover { background: #c9a36a; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 22px; border-radius: 999px;
  border: 1px solid rgba(31, 207, 134, .6); color: #e9fff4; text-decoration: none; font: 500 16px/1 var(--text);
}
.btn-wa svg { width: 20px; height: 20px; fill: #1FCF86; }
.btn-wa:hover { background: rgba(31, 207, 134, .12); }
.btn-wa:focus-visible, .field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.reg-msg { margin: 18px 0 0; padding: 12px 14px; font-size: 14px; line-height: 1.65; border-inline-start: 2px solid #d98c6a; background: rgba(217, 140, 106, .1); }
.reg-msg.done { border-color: var(--gold); background: rgba(184, 146, 90, .14); }
.desk .res-note, .plaque .res-note { margin-top: 16px; }

/* ---------- the loading screen ---------- */
.loader {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; color: var(--gold);
  background: radial-gradient(90% 70% at 50% 45%, #241c15, #0e0c0a 70%); transition: opacity .8s ease, visibility .8s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.loader-mark { width: 132px; height: 70px; }
/* the journey by night: the path of dots runs across the dunes, then the star comes out */
.ld-dots { stroke-dashoffset: 0; clip-path: inset(0 100% 0 0); animation: ld-walk 1.6s ease-out .2s forwards; }
.ld-star { transform-origin: 104px 17px; opacity: 0; transform: scale(.4); animation: ld-star 1s ease-out 1.4s forwards, ld-twinkle 2.6s ease-in-out 2.4s infinite; }
@keyframes ld-walk { to { clip-path: inset(0 0 0 0); } }
@keyframes ld-star { to { opacity: 1; transform: none; } }
@keyframes ld-twinkle { 50% { opacity: .55; transform: scale(.86); } }
.loader-name { margin: 14px 0 0; display: flex; align-items: baseline; gap: 14px; }
.loader-name .dev-ar { font-size: 46px; line-height: 1.3; }
.loader-name .dev-en { font-size: 17px; }
.loader-line { margin: 4px 0 0; font: 400 14px/1.6 var(--text); color: rgba(247, 243, 236, .7); }
.loader-bar { display: block; width: 150px; height: 1px; margin-top: 22px; background: rgba(184, 146, 90, .25); overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: #e8cc96; transform: scaleX(var(--p, .08)); transform-origin: left; transition: transform .5s ease; }
:root[dir="rtl"] .loader-bar i { transform-origin: right; }
.reduced .ld-dots { animation: none; clip-path: none; }
.reduced .ld-star { animation: none; opacity: 1; transform: none; }

/* ---------- morning / golden hour / night ---------- */
.tod { display: inline-flex; gap: 2px; margin-top: 18px; padding: 3px; border-radius: 999px; background: rgba(16, 14, 12, .55); box-shadow: 0 0 0 1px rgba(184, 146, 90, .4); }
.tod button {
  height: 32px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer; background: transparent;
  color: rgba(247, 243, 236, .78); font: 500 13px/1 var(--text); transition: background .3s, color .3s;
}
.tod button:hover { color: var(--off); }
.tod button.on { background: var(--gold); color: var(--night); }
.tod button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.cap-4 .tod { display: flex; width: max-content; }
/* over the night photo the hero's copy turns light on a dark shade */
.hero-scrim { transition: background .8s; }
:root[data-tod="night"] .hero-scrim { background: linear-gradient(to left, transparent 45%, rgba(10, 14, 20, .62) 100%); }
:root[data-tod="night"][dir="rtl"] .hero-scrim { background: linear-gradient(to right, transparent 45%, rgba(10, 14, 20, .62) 100%); }
:root[data-tod="night"] .cap-4 .kicker { color: var(--gold); }
.desk-view { position: relative; margin: -12px -16px 22px; aspect-ratio: 21 / 9; overflow: hidden; border-radius: 2px; background: #1a130d; }
.desk-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; }
.desk-view .v-b { opacity: 0; transition: opacity .7s ease; }
.desk-view .v-b.show { opacity: 1; }
.desk-view .tod { position: absolute; inset-inline-start: 10px; bottom: 10px; margin: 0; }
.desk-view .tod button { height: 28px; padding: 0 11px; font-size: 12.5px; }

/* ---------- the chapters: a quiet rail on the end side (a list under a button in the bar on phones) ---------- */
.chap-btn { display: none; }
.chapters {
  position: fixed; z-index: 19; inset-inline-end: clamp(14px, 1.6vw, 26px); top: 50%; transform: translateY(-50%);
  color: var(--ink); font: 500 12.5px/1.2 var(--text);
}
.chapters ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.chapters a {
  display: flex; align-items: center; gap: 10px; padding: 6px 0; text-decoration: none; color: inherit;
  opacity: .5; transition: opacity .3s, color .3s; text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}
.chapters a i { display: block; width: 12px; height: 1px; background: currentColor; transition: width .35s, background .35s; }
.chapters a span { opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; white-space: nowrap; padding: 3px 9px 4px; border-radius: 999px; background: rgba(16, 14, 12, .55); color: var(--off); }
:root[dir="rtl"] .chapters a span { transform: translateX(-6px); }
/* the current chapter keeps its name; the others show theirs when the rail is hovered */
.chapters a.on { opacity: 1; color: #e8c890; }
.chapters a.on span { color: #f3dcb4; }
.chapters a.on i { width: 30px; background: var(--gold); }
.chapters a.on span, .chapters:hover a span, .chapters:focus-within a span { opacity: 1; transform: none; }
.chapters:hover a, .chapters:focus-within a { opacity: .85; }
.chapters a:hover, .chapters a:focus-visible { opacity: 1; }
.chapters a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.veil { position: fixed; inset: 0; z-index: 40; background: #0e0c0a; opacity: 0; pointer-events: none; transition: opacity .26s ease; }
.veil.on { opacity: 1; }

/* ---------- the floating WhatsApp button (the official glyph in a fixed circle) ---------- */
.fab-dock {
  position: fixed; z-index: 30; inset-inline-end: clamp(14px, 2vw, 24px); bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(14px, 2vw, 24px));
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; transition: opacity .35s, transform .35s;
}
.fab-dock.show { opacity: 1; transform: none; }
.fab-dock.show .fab-wa { pointer-events: auto; }
.fab-wa {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #1FCF86; color: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, .35); pointer-events: none; transition: transform .25s, background .25s;
}
.fab-wa svg { width: 30px; height: 30px; fill: currentColor; display: block; }
.fab-wa:hover, .fab-wa:focus-visible { transform: scale(1.08); background: #19B874; }
.fab-wa:focus-visible { outline: 2px solid var(--off); outline-offset: 3px; }
.fab-wa::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1FCF86; animation: fab-pulse 2.4s cubic-bezier(.2, .8, .2, 1) infinite; pointer-events: none; }
@keyframes fab-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.45); opacity: 0; } }

.foot { padding: 28px var(--gutter) 34px; background: var(--night); color: rgba(247, 243, 236, .7); font-size: 13px; }
.foot p { margin: 0; }
.foot-other { opacity: .7; margin-top: 4px !important; }
.foot-credit { margin-top: 14px !important; font-size: 12px; opacity: .55; }
.foot-credit [dir="ltr"] { unicode-bidi: isolate; }
.foot a { text-decoration-color: rgba(247, 243, 236, .35); text-underline-offset: 3px; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .hero { height: 460vh; }
  .bar { padding: 14px 16px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-words small { display: none; }
  .brand-words b { font-size: 17px; }
  :root[lang="en"] .brand-words b { font-size: 19px; }
  .pill { height: 36px; line-height: 34px; padding: 0 13px; font-size: 13px; }
  .lang { width: 36px; height: 36px; line-height: 34px; }
  .cap { inset-inline: 16px; top: auto; bottom: 64px; width: auto; transform: none; }
  .display { font-size: clamp(32px, 9vw, 44px); }
  :root[lang="en"] .display { font-size: clamp(38px, 11vw, 52px); }
  .display.big { font-size: clamp(38px, 11vw, 54px); }
  .stats { gap: 18px; }
  .stats dt { font-size: 12px; }
  .hero-progress { inset-inline: 16px; }
  .hero-scrim, :root[dir="rtl"] .hero-scrim { background: linear-gradient(to top, rgba(247, 243, 236, .78) 0%, rgba(247, 243, 236, .4) 38%, transparent 60%); }
  .chap-btn {
    display: grid; place-items: center; height: 36px; min-width: 44px; padding: 0 10px; border-radius: 999px; cursor: pointer;
    border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); background: transparent; color: inherit;
    font: 500 13px/1 'IBM Plex Sans', sans-serif;
  }
  .chap-btn b { color: var(--gold); font-weight: 600; }
  .chapters {
    inset: 62px 12px auto 12px; transform: translateY(-8px); padding: 8px 0; border-radius: 12px; color: var(--off);
    background: rgba(18, 15, 12, .96); box-shadow: 0 0 0 1px rgba(184, 146, 90, .4), 0 18px 40px rgba(0, 0, 0, .45);
    opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
  }
  .chapters.open { opacity: 1; visibility: visible; transform: none; }
  .chapters ol { align-items: stretch; gap: 0; }
  .chapters a { opacity: .8; padding: 12px 18px; font-size: 15px; justify-content: space-between; text-shadow: none; }
  .chapters a span, :root[dir="rtl"] .chapters a span { opacity: 1; transform: none; padding: 0; background: none; }
  .chapters a.on { background: rgba(184, 146, 90, .12); }
  .desk-view { margin: -8px -8px 18px; }
  :root[data-tod="night"] .hero-scrim, :root[data-tod="night"][dir="rtl"] .hero-scrim { background: linear-gradient(to top, rgba(10, 14, 20, .82) 0%, rgba(10, 14, 20, .45) 38%, transparent 60%); }
  .pay { height: 340vh; }
  .pay-copy { inset-inline: 16px; top: 86px; width: auto; }
  .pay-copy .lead { display: none; }
  .pay-rail { padding: 90px 16px 22px; }
  .rail { gap: 8px; }
  .stop { min-width: 0; flex: 1 1 0; }
  .stop b { font-size: 34px; margin-top: 10px; }
  .stop strong { font-size: 13.5px; }
  .stop small { display: none; }
  .pay-note { margin-top: 12px; font-size: 11.5px; }
  .dev, .reg { padding: 90px 16px 60px; }
  .dev > *, .reg > * { margin-block: auto 0; }
  .plaque, .desk { width: 100%; padding: 30px 24px 26px; }
  .dev-stats dd { font-size: 38px; }
  .fab-wa { width: 54px; height: 54px; }
  .fab-wa svg { width: 27px; height: 27px; }
  .plan { height: 560vh; }
  /* phones: only the amenity in turn keeps its point; the others come back with a tap on the list */
  .pins[data-shown] .pin:not(.on), .pins:not([data-shown]) .pin, .pins[data-shown=""] .pin { visibility: hidden !important; }
  .reduced .pins .pin, .no-gl .pins .pin { visibility: visible !important; }
  .am-card.words { display: block; }
  .plan-am { display: none; }   /* phones: the card at the bottom carries the words */
  .walk { font-size: 12px; }
  .am-card.words .am-img { display: none; }
  .plan-copy { inset-inline: 16px; top: auto; bottom: 34px; width: auto; transform: none; }
  .plan-copy .display { font-size: clamp(30px, 8.4vw, 40px); }
  .plan-copy .lead { font-size: 15px; }
  /* phones: the chips become numbered dots in one row, just above the copy */
  .plan-list { inset-inline: 16px; bottom: auto; top: 76px; max-width: none; gap: 6px; flex-wrap: nowrap; }
  .plan-list button { padding: 4px; }
  .plan-list button span { display: none; }
  .plan-hint { display: none; }
  .res { height: 500vh; }
  .loc { height: 440vh; }
  .loc-copy { inset-inline: 16px; top: auto; bottom: 26px; width: auto; }
  .loc-copy .lead { display: none; }
  .loc-list li { padding: 5px 0; font-size: 13px; }
  .loc-sticky::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(16, 14, 12, .92) 0%, rgba(16, 14, 12, .7) 38%, transparent 58%); }
  .place b { font-size: 11px; }
  .place i { font-size: 10.5px; }
  .res-copy { inset-inline: 16px; top: auto; bottom: 28px; width: auto; }
  .res-sticky::before, :root[dir="rtl"] .res-sticky::before { background: linear-gradient(to top, rgba(16, 14, 12, .92) 0%, rgba(16, 14, 12, .75) 34%, transparent 56%); }
  .res-copy .display { font-size: clamp(28px, 8vw, 38px); }
  .res-tabs button { padding: 7px 11px; font-size: 13px; }
  .res-info span { font-size: 13.5px; }
  .room b { font-size: 11.5px; }
  .room i { font-size: 10.5px; }
  /* the card is a sheet over the copy at the bottom */
  .am-card { left: 16px; right: 16px; top: auto; bottom: 16px; width: auto; transform: none; display: grid; grid-template-columns: 112px 1fr; }
  .am-img { aspect-ratio: auto; height: 100%; }
  .am-body { padding: 12px 14px 14px; }
  .am-body h3 { font-size: 18px; }
  .am-body p:last-child { font-size: 13.5px; }
  .foot { padding: 24px 16px 30px; }
}

/* ---------- reduced motion, or no WebGL: no scroll story, the finished project as a still ---------- */
.reduced .pay, .no-gl .pay { height: auto; }
.reduced .pay-sticky, .no-gl .pay-sticky { position: relative; }
.reduced .pay-still, .no-gl .pay-still { display: block; }
.reduced .pay-sticky::after, .no-gl .pay-sticky::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to left, transparent 40%, rgba(16, 24, 32, .85)); }
:root[dir="rtl"].reduced .pay-sticky::after, :root[dir="rtl"].no-gl .pay-sticky::after { background: linear-gradient(to right, transparent 40%, rgba(16, 24, 32, .85)); }
.reduced .pay-copy, .no-gl .pay-copy, .reduced .pay-rail, .no-gl .pay-rail { --o: 1; visibility: visible; }
.reduced .stop, .no-gl .stop { --f: 1; opacity: 1; }
.reduced .tail, .no-gl .tail { background: radial-gradient(120% 80% at 70% 40%, #2a231c, #0e0c0a 70%); }
.reduced .reg, .no-gl .reg { background: linear-gradient(to right, rgba(14, 12, 10, .2), rgba(14, 12, 10, .75)), url(assets/web/exterior-night.webp) center / cover; }
:root[dir="ltr"].reduced .reg, :root[dir="ltr"].no-gl .reg { background: linear-gradient(to left, rgba(14, 12, 10, .2), rgba(14, 12, 10, .75)), url(assets/web/exterior-night.webp) center / cover; }
.reduced .fab-wa::before { animation: none; }
:root[data-tod="night"].reduced, :root[data-tod="night"].no-gl { --ink: #F7F3EC; }
.reduced .hero-still { transition: none; }
.reduced .hero, .no-gl .hero { height: auto; }
.reduced .stage, .no-gl .stage { display: none; }
.reduced .plan, .no-gl .plan { height: auto; }
.reduced .plan-sticky, .no-gl .plan-sticky { position: relative; }
.reduced .plan-still, .no-gl .plan-still { display: block; }
.reduced .plan-sticky::after, .no-gl .plan-sticky::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to left, transparent 30%, rgba(16, 24, 32, .62) 55%, rgba(16, 24, 32, .9)); }
:root[dir="rtl"].reduced .plan-sticky::after, :root[dir="rtl"].no-gl .plan-sticky::after { background: linear-gradient(to right, transparent 30%, rgba(16, 24, 32, .62) 55%, rgba(16, 24, 32, .9)); }
@media (max-width: 760px) {
  .reduced .plan-sticky::after, .no-gl .plan-sticky::after, :root[dir="rtl"].reduced .plan-sticky::after, :root[dir="rtl"].no-gl .plan-sticky::after { background: linear-gradient(to top, rgba(16, 24, 32, .94) 0%, rgba(16, 24, 32, .8) 45%, transparent 70%); }
}
.reduced .plan-copy, .no-gl .plan-copy { --o: 1; visibility: visible; z-index: 1; }
.reduced .plan-list, .no-gl .plan-list { --o: 1; visibility: visible; }
.reduced .res, .no-gl .res { height: auto; }
.reduced .loc, .no-gl .loc { height: auto; }
.reduced .loc-sticky, .no-gl .loc-sticky { position: relative; }
.reduced .loc-still, .no-gl .loc-still { display: block; }
.reduced .loc-sticky::after, .no-gl .loc-sticky::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to left, transparent 35%, rgba(16, 24, 32, .9)); }
:root[dir="rtl"].reduced .loc-sticky::after, :root[dir="rtl"].no-gl .loc-sticky::after { background: linear-gradient(to right, transparent 35%, rgba(16, 24, 32, .9)); }
.reduced .loc-copy, .no-gl .loc-copy { --o: 1; visibility: visible; }
.reduced .loc-list li, .no-gl .loc-list li { opacity: 1; }
.reduced .res-sticky, .no-gl .res-sticky { position: relative; }
.reduced .res-still, .no-gl .res-still { display: block; }
.reduced .res-sticky::before, .no-gl .res-sticky::before { display: none; }
.reduced .res-sticky::after, .no-gl .res-sticky::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to left, transparent 35%, rgba(16, 24, 32, .9)); }
:root[dir="rtl"].reduced .res-sticky::after, :root[dir="rtl"].no-gl .res-sticky::after { background: linear-gradient(to right, transparent 35%, rgba(16, 24, 32, .9)); }
.reduced .res-copy, .no-gl .res-copy { --o: 1; visibility: visible; }
.reduced .res-list, .no-gl .res-list { display: block; }
.reduced .pins, .no-gl .pins { --o: 1; z-index: 1; }
.reduced .pin::before { animation: none; }
.reduced .hero-sticky, .no-gl .hero-sticky { position: relative; height: 100vh; height: 100svh; }
.reduced .hero-still, .no-gl .hero-still { opacity: 1; }
.reduced .hero-gl, .no-gl .hero-gl, .reduced .hero-progress, .no-gl .hero-progress, .reduced .cap:not(.cap-4), .no-gl .cap:not(.cap-4) { display: none; }
.reduced .cap-4, .no-gl .cap-4 { --o: 1; visibility: visible; pointer-events: auto; }
.reduced .hero-scrim, .no-gl .hero-scrim { --scrim: 1; }
.reduced, .no-gl { --ink: #101820; }
.reduced .hint::after { animation: none; }
