/* ══════════════════════════════════════════════════════════════
   JW Marriott Residences · Yas Bay · jwmarriott.ae (pre-launch teaser)
   Palette sampled from the renders: travertine walls, oak joinery,
   the linen headboard, the dusk sky over the terrace pool, the
   Rosso marble bench and the Yas Bay shallows.
   ══════════════════════════════════════════════════════════════ */

:root {
  --paper:   #f6f1ea;
  --linen:   #ece3d6;
  --stone:   #d8cdbf;
  --ink:     #241c17;
  --ink-2:   #5b4d43;
  --ink-3:   #8a7b70;
  --oak:     #6b4a2c;
  --bronze:  #a27d5a;
  --rosso:   #7d3a3c;
  --sea:     #0d7f7f;
  --sea-lt:  #6fd0c0;
  --dusk-1:  #9196b7;
  --dusk-2:  #b8b1c0;
  --dusk-3:  #e3c2b7;
  --line:    rgba(36, 28, 23, .14);
  --line-2:  rgba(36, 28, 23, .26);
  --wa:      #25d366;
  --wa-deep: #167a53;

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans:  'Jost', 'Helvetica Neue', Arial, sans-serif;

  --ease-out:    cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);

  --wrap: 1240px;
  --pad:  clamp(20px, 5vw, 56px);
  --bar:  68px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.has-modal { overflow: hidden; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + 16px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 17px/1.6 var(--sans);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--dusk-3); color: var(--ink); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--paper);
  text-decoration: none; transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}
.skip:focus { transform: none; }

/* ── type ───────────────────────────────────────────────────── */
.k {
  font: 500 12px/1.4 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bronze);
}
.k--ink { color: var(--oak); }
.h1 {
  font: 400 clamp(56px, 8.4vw, 124px)/.9 var(--serif);
  letter-spacing: -.012em;
}
.h1 i { font-style: italic; }
.h2 {
  font: 400 clamp(40px, 4.8vw, 66px)/1 var(--serif);
  letter-spacing: -.01em;
}
.h2 i, .statement i, .card__title i { font-style: italic; color: var(--oak); }
.lede { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; }

/* live dot: the one thing on the page that is always moving, so it is tiny */
.dot {
  position: relative; display: inline-block; flex: none;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sea-lt);
}
.dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: inherit; opacity: .55;
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping {
  0%   { transform: scale(1);   opacity: .55; }
  70%, 100% { transform: scale(3.2); opacity: 0; }
}

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid rgba(246, 241, 234, .38);
  background: rgba(36, 28, 23, .22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 400 13px/1.2 var(--sans); letter-spacing: .04em;
}
.chip--dark { border-color: rgba(246, 241, 234, .22); background: rgba(246, 241, 234, .06); }

/* ── buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 0; border-radius: 2px;
  background: var(--ink); color: var(--paper);
  font: 500 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(.97); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--block { width: 100%; }
.btn--bar { min-height: 40px; padding: 0 18px; font-size: 12px; }
.btn[disabled] { cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--oak); }
  .btn--light:hover { background: #fff; color: var(--ink); }
}
.btn__label { display: inline-block; transition: filter 170ms ease, opacity 170ms ease; }
.is-swap { filter: blur(3px); opacity: 0; }

/* ── top bar ────────────────────────────────────────────────── */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--bar);
  color: var(--paper);
  transition: background-color 240ms ease, color 240ms ease, box-shadow 240ms ease;
}
.bar__in {
  height: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; gap: 24px;
}
.bar.is-stuck {
  background: rgba(246, 241, 234, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.bar.is-stuck .dot { background: var(--sea); }
.bar .btn--bar { background: var(--paper); color: var(--ink); }
.bar.is-stuck .btn--bar { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .bar .btn--bar:hover { background: #fff; }
  .bar.is-stuck .btn--bar:hover { background: var(--oak); }
}

.mark { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 7px; text-decoration: none; line-height: 1; }
/* explicit width and height: the traced wordmark is 2800×272 */
.mark__word { display: block; width: 154px; height: 15px; fill: currentColor; }
.mark__sub { font: 500 9px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; opacity: .85; }
.bar__status {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
}

/* ═════════ HERO ═════════ */
.hero { position: relative; color: var(--paper); }
.hero__grid {
  max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto;
  min-height: max(100svh, 780px);
  padding: calc(var(--bar) + 56px) var(--pad) 56px;
  display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
/* The media sits inside .hero__copy. On desktop the copy is unpositioned, so
   the image covers the whole hero; on phones the copy becomes the
   positioned box and the image is exactly as tall as the copy. */
.hero__media {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background: #3f7fa5 url("data:image/webp;base64,UklGRpgAAABXRUJQVlA4IIwAAAAQBQCdASogABIAPrlKnUunJCKht+gA4BcJaACxHtPljG5vw05Gtvaq9Eraq/DnLCwAAP6LoctIAZP0L63wbZdxfG2frFSHC3iIh12ITC6b7PWxiaDZlUGtc8VvuwnyWxl2Gd/RE4ctJLtVcYdid9wMx0GtqJ1CnUKcYAcO5Ivd6UAAhe3Kp7800AAAAA==") center / cover;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%;
}
/* The image comes into focus over the blurred placeholder: a teaser, sharpening. */
.js .hero__media img {
  opacity: 0; transform: scale(1.06);
  transition: opacity 1100ms ease, transform 2200ms var(--ease-out);
}
.js .hero__media img.is-in { opacity: 1; transform: none; }
.hero__media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20, 30, 40, .42) 0, rgba(20, 30, 40, 0) 22%),
    linear-gradient(90deg, rgba(14, 26, 32, .62) 0, rgba(14, 26, 32, .28) 46%, rgba(14, 26, 32, 0) 70%),
    linear-gradient(0deg, rgba(14, 22, 26, .55) 0, rgba(14, 22, 26, 0) 42%);
}
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-bottom: 4px; }
.hero__copy > *:not(.hero__media) { position: relative; z-index: 1; }
.hero .k { color: rgba(246, 241, 234, .86); }
.hero .card .k { color: var(--oak); }
/* the JW Marriott lockup is the H1; "Coming soon to Yas Bay" is the display line */
.lockup { --lw: clamp(220px, 20vw, 288px); margin: 0 0 8px; display: inline-flex; flex-direction: column; align-items: center; gap: 12px; }
.lockup__logo { display: block; width: var(--lw); height: calc(var(--lw) * 148 / 360); fill: currentColor; filter: drop-shadow(0 2px 16px rgba(10, 20, 26, .28)); }
.lockup__res { font: 400 clamp(11px, .9vw, 13px)/1 var(--sans); letter-spacing: .62em; margin-right: -.62em; text-transform: uppercase; }
.display { margin: 2px 0 2px; font: 400 clamp(52px, 6.6vw, 98px)/.94 var(--serif); letter-spacing: -.012em; text-shadow: 0 2px 30px rgba(10, 20, 26, .25); }
.display i { font-style: italic; color: var(--dusk-3); }
.hero .line { display: block; overflow: hidden; padding: 0 .1em .12em 0; margin-bottom: -.12em; }
.hero .line > span { display: inline-block; }
.hero .lede { max-width: 33em; color: rgba(246, 241, 234, .92); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.hero__cta { display: none; }

/* WhatsApp, in the four places a visitor might want it */
.wa-ico { width: 1em; height: 1em; flex: none; }
.walink {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font: 400 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.walink .wa-ico { width: 20px; height: 20px; color: var(--wa); }
.walink span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: rgba(246, 241, 234, .38); transition: text-decoration-color 200ms ease; }
.walink--light { color: var(--paper); }
.textlink {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--oak);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(107, 74, 44, .35);
  transition: text-decoration-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .walink:hover span { text-decoration-color: currentColor; }
  .textlink:hover { text-decoration-color: currentColor; }
}
.btn--wa { background: var(--wa-deep); color: #fff; }
.btn--wa .wa-ico { width: 19px; height: 19px; }
@media (hover: hover) and (pointer: fine) { .btn--wa:hover { background: #11633f; } }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 11.5px; letter-spacing: .14em; }

.facts {
  margin: 18px 0 0; display: grid; grid-template-columns: repeat(4, auto); gap: 0;
  border-top: 1px solid rgba(246, 241, 234, .3);
}
.facts > div { padding: 16px 32px 0 0; margin-right: 32px; border-right: 1px solid rgba(246, 241, 234, .2); }
.facts > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.facts dt { font: 500 10.5px/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; opacity: .72; }
.facts dd { margin: 6px 0 0; font: 400 28px/1 var(--serif); }

/* hero entrance — once per visit, so it can take its time */
.js .hero__in {
  animation: rise 1000ms var(--ease-out) both;
  animation-delay: calc(240ms + var(--i, 0) * 80ms);
}
.js .hero .line > .hero__in { animation-name: rise-line; animation-duration: 1100ms; }
@keyframes rise      { from { opacity: 0; transform: translateY(18px); } }
@keyframes rise-line { from { transform: translateY(104%); } }

/* ── the card / form ────────────────────────────────────────── */
.card {
  position: relative; z-index: 1;
  background: var(--paper); color: var(--ink);
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 30px 80px -24px rgba(12, 20, 26, .5), 0 8px 24px -12px rgba(12, 20, 26, .3);
  scroll-margin-top: calc(var(--bar) + 20px);
}
.js .card { animation: rise 1000ms var(--ease-out) 560ms both; }
.card::after {
  /* the "you were sent here" ring; animated in one shot when a CTA points at the form */
  content: ''; position: absolute; inset: -1px; border-radius: 3px; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(162, 125, 90, 0);
}
.card.is-called::after { animation: called 1400ms var(--ease-out); }
@keyframes called {
  0%   { box-shadow: 0 0 0 0 rgba(162, 125, 90, .0); }
  25%  { box-shadow: 0 0 0 6px rgba(162, 125, 90, .45); }
  100% { box-shadow: 0 0 0 14px rgba(162, 125, 90, 0); }
}
.card__body, .sent { padding: 34px 34px 28px; }
.card__body { transition: opacity 180ms ease, transform 180ms var(--ease-out); }
.card.is-leaving .card__body { opacity: 0; transform: translateY(-6px); }
.card__title { font: 400 38px/1.02 var(--serif); letter-spacing: -.005em; margin: 10px 0 10px; }
.card__sub { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin-bottom: 22px; }
.card__fine { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); text-align: center; }

.field { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend {
  display: block; padding: 0; margin: 0 0 7px;
  font: 500 11px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
}
.opt { font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--ink-3); font-size: 12px; margin-left: 4px; }
.field input {
  display: block; width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 2px;
  background: #fffdf9;
  font: 400 16px/1 var(--sans); color: var(--ink);
  -webkit-appearance: none; appearance: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field input::placeholder { color: #b3a79c; }
.field input:focus { outline: 0; border-color: var(--oak); box-shadow: 0 0 0 3px rgba(162, 125, 90, .18); }
.field.has-error input { border-color: var(--rosso); }
.err { min-height: 0; font-size: 12.5px; line-height: 1.3; color: var(--rosso); }
.err:not(:empty) { margin-top: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label {
  position: relative; margin: 0;
  font: 400 14px/1 var(--sans); letter-spacing: .01em; text-transform: none; color: var(--ink);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-flex; align-items: center; height: 38px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 2px; background: #fffdf9;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}
.chips label:active span { transform: scale(.97); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chips input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .chips label:hover input:not(:checked) + span { border-color: var(--ink-2); }
}
/* a residence picked from the list lights up briefly, so the jump makes sense */
.chips input:checked + span.is-picked { animation: picked 1300ms var(--ease-out); }
@keyframes picked {
  0%   { box-shadow: 0 0 0 0 rgba(162, 125, 90, .55); }
  100% { box-shadow: 0 0 0 10px rgba(162, 125, 90, 0); }
}

.consent {
  display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px;
  font-size: 13px; line-height: 1.45; color: var(--ink-2); cursor: pointer;
}
.consent input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--ink); }
.cnt-off .consent { display: none; }

.status { font-size: 13px; line-height: 1.4; text-align: center; }
.status:not(:empty) { margin-top: 12px; }
.status.is-err { color: var(--rosso); }

.card { display: flex; flex-direction: column; }
.sent { outline: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.sent:not([hidden]) { animation: rise 520ms var(--ease-out) both; }
.sent p { color: var(--ink-2); font-size: 15px; }
.sent__ctas { margin-top: 22px; display: grid; gap: 14px; justify-items: center; font-size: 14px; }
.sent__mark { width: 48px; height: 48px; margin-bottom: 8px; fill: none; stroke: var(--sea); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sent__mark circle { stroke-dasharray: 142; stroke-dashoffset: 142; animation: draw 700ms var(--ease-out) 120ms forwards; }
.sent__mark path   { stroke-dasharray: 30;  stroke-dashoffset: 30;  animation: draw 420ms var(--ease-out) 560ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ═════════ SECTIONS ═════════ */
.sec { padding: clamp(80px, 9.5vw, 136px) 0; }

/* reveal on scroll (the observed node never carries the clip) */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .rv.is-in { opacity: 1; transform: none; }
.unveil { overflow: hidden; background: var(--linen); }
.unveil img { width: 100%; height: 100%; object-fit: cover; }
.js .unveil img { clip-path: inset(100% 0 0 0); transform: scale(1.08); transition: clip-path 1300ms var(--ease-in-out), transform 1800ms var(--ease-out); }
.js .unveil.is-in img { clip-path: inset(0 0 0 0); transform: none; }

/* intro */
.intro__head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: baseline; }
.statement { font: 400 clamp(32px, 3.6vw, 52px)/1.12 var(--serif); letter-spacing: -.008em; max-width: 21em; }
.intro__img { margin: clamp(56px, 7vw, 96px) 0 0; aspect-ratio: 16 / 8; }
.stats { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.stats > div { padding: 30px 28px 32px 0; border-right: 1px solid var(--line); }
.stats > div + div { padding-left: 28px; }
.stats > div:last-child { border-right: 0; }
.stats dt { font: 500 11px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); }
.stats dd { margin: 12px 0 8px; font: 400 clamp(36px, 3.5vw, 50px)/1 var(--serif); white-space: nowrap; }
.stats small { font-size: .5em; letter-spacing: .04em; }
.stats p { font-size: 14px; color: var(--ink-2); line-height: 1.45; }

/* residences */
.res { background: var(--linen); }
.res__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.res__img { aspect-ratio: 4 / 5; }
.res__img img { object-position: 40% 50%; }
.res__copy > .h2 { margin: 16px 0 18px; }
.res__copy > p:not(.k):not(.fine) { color: var(--ink-2); max-width: 30em; }
.units { margin: 34px 0 20px; border-top: 1px solid var(--line-2); }
.units li { border-bottom: 1px solid var(--line-2); }
.unit {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto 88px; align-items: center; gap: 16px;
  min-height: 66px; padding: 10px 0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.unit::before {
  content: ''; position: absolute; inset: 0 -16px; z-index: -1;
  background: var(--paper); opacity: 0;
  transition: opacity 200ms ease;
}
.res__copy .units { position: relative; z-index: 0; }
.unit__name { font: 400 26px/1.1 var(--serif); }
.unit__size { font: 400 15px/1 var(--sans); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.unit__size small { font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }
.unit__go {
  justify-self: end;
  font: 500 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--oak);
  transition: transform 220ms var(--ease-out);
}
.unit__go::after { content: '→'; display: inline-block; margin-left: 8px; letter-spacing: 0; }
.unit:active .unit__go { transform: translateX(2px); }
@media (hover: hover) and (pointer: fine) {
  .unit:hover::before { opacity: 1; }
  .unit:hover .unit__go { transform: translateX(4px); }
}
.tag {
  display: inline-block; vertical-align: middle; margin-left: 10px; padding: 4px 8px 3px;
  border: 1px solid rgba(125, 58, 60, .4); color: var(--rosso);
  font: 500 10px/1 var(--sans); font-style: normal; letter-spacing: .18em; text-transform: uppercase;
  position: relative; top: -2px;
}
.fine { font-size: 13px; line-height: 1.55; color: var(--ink-3); max-width: 36em; }

/* hosted: the copy sits on the terrace image's own dusk sky */
.hosted {
  display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  background: linear-gradient(180deg, var(--dusk-1) 0%, var(--dusk-2) 42%, var(--dusk-3) 100%);
  min-height: min(56vw, 860px);
}
.hosted__copy {
  align-self: center;
  padding: clamp(80px, 9vw, 140px) clamp(32px, 5vw, 80px) clamp(80px, 9vw, 140px) max(var(--pad), calc((100vw - var(--wrap)) / 2));
}
.hosted .h2 { margin: 16px 0 20px; }
.hosted .h2 i { color: #5a3a2a; }
.hosted__copy > p:not(.k) { color: #3b2f2a; max-width: 28em; }
.services { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid rgba(36, 28, 23, .2); }
.services li { padding: 18px 28px 0 0; margin-right: 28px; border-right: 1px solid rgba(36, 28, 23, .16); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.services li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.services b { display: block; margin-bottom: 4px; font: 400 30px/1 var(--serif); letter-spacing: 0; text-transform: none; }
.hosted__img { background: var(--dusk-2); }
.hosted__img img { object-position: 30% 50%; }

/* amenities */
.amen__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.amen__copy .h2 { margin: 16px 0 0; }
.amen__img { margin-top: clamp(36px, 4vw, 56px); aspect-ratio: 4 / 3; }
.amen__img img { object-position: 62% 50%; }
.amen__list { counter-reset: am; border-top: 1px solid var(--line-2); margin-top: 6px; }
.amen__list li {
  counter-increment: am;
  display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: baseline;
  padding: 17px 0 16px; border-bottom: 1px solid var(--line);
  font: 400 clamp(22px, 2vw, 27px)/1.2 var(--serif);
}
.amen__list li::before {
  content: counter(am, decimal-leading-zero);
  font: 400 12px/1 var(--sans); letter-spacing: .12em; color: var(--bronze);
}

/* location */
.place { position: relative; background: var(--ink); color: var(--paper); }
.place__img { aspect-ratio: 16 / 7; max-height: 86svh; width: 100%; background: #2b3b40; }
.place__img img { object-position: 50% 60%; }
.place__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); align-items: end;
  padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(72px, 9vw, 120px);
}
.place .k { color: #c9a682; }
.place .h2 { margin: 16px 0 20px; }
.place .h2 i { color: var(--dusk-3); }
.place__copy > p:not(.k) { color: rgba(246, 241, 234, .8); max-width: 30em; }
.views { border-top: 1px solid rgba(246, 241, 234, .22); }
.views li { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: baseline; padding: 18px 0; border-bottom: 1px solid rgba(246, 241, 234, .14); font: 400 28px/1.1 var(--serif); }
.views__k { font: 500 10.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(246, 241, 234, .58); }

/* why: one editorial row, so it doesn't echo the amenities list */
.why .h2 { margin-top: 16px; max-width: 13em; }
.why__list {
  counter-reset: why;
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px;
}
.why__list li {
  counter-increment: why;
  padding-top: 18px; border-top: 1px solid var(--line-2);
  font: 400 clamp(21px, 1.75vw, 25px)/1.2 var(--serif);
}
.why__list li::before {
  content: counter(why, decimal-leading-zero);
  display: block; margin-bottom: 14px;
  font: 400 12px/1 var(--sans); letter-spacing: .12em; color: var(--bronze);
}

/* close */
.close {
  position: relative; overflow: hidden;
  /* a low dusk glow on the horizon, sampled from the terrace render's sky */
  background:
    radial-gradient(110% 60% at 50% 118%, rgba(227, 194, 183, .34) 0%, rgba(184, 177, 192, .16) 36%, rgba(145, 150, 183, .06) 56%, rgba(36, 28, 23, 0) 74%),
    var(--ink);
  color: var(--paper); text-align: center;
  padding: clamp(96px, 12vw, 170px) 0;
}
.close__in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.close .h2 { font-size: clamp(46px, 6vw, 86px); }
.close .h2 i { color: var(--dusk-3); white-space: nowrap; }
.close p:not(.chip) { max-width: 34em; color: rgba(246, 241, 234, .78); }
.close__ctas { margin-top: 10px; display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* footer */
.foot { background: #1a1410; color: rgba(246, 241, 234, .6); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); }
.foot__in { display: grid; gap: 18px; }
.foot__lockup { justify-self: start; margin: 0 0 10px; display: inline-flex; flex-direction: column; align-items: center; gap: 10px; color: var(--paper); }
.foot__lockup svg { display: block; width: 168px; height: 69px; fill: currentColor; }
.foot__lockup span { font: 500 9px/1 var(--sans); letter-spacing: .4em; margin-right: -.4em; text-transform: uppercase; color: rgba(246, 241, 234, .78); }
.foot__fine { font-size: 12.5px; line-height: 1.6; max-width: 72em; }

/* ── conversion layer ───────────────────────────────────────── */
/* desktop WhatsApp bubble: arrives once, a beat after the hero */
.wa {
  position: fixed; right: 24px; bottom: 24px; z-index: 45;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 12px 30px -10px rgba(12, 20, 26, .5), 0 2px 6px rgba(12, 20, 26, .18);
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out);
  animation: wa-in 520ms var(--ease-out) 1600ms backwards;
}
.wa .wa-ico { width: 30px; height: 30px; }
.wa:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .wa:hover { transform: scale(1.05); } }
@keyframes wa-in { from { opacity: 0; transform: translateY(14px) scale(.9); } }

/* phone sticky bar */
.mbar { display: none; }

/* slide-in nudge */
.nudge {
  position: fixed; z-index: 44; left: 24px; bottom: 24px; width: 372px;
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 14px 18px 14px 14px;
  background: var(--paper); color: var(--ink); border-radius: 2px;
  box-shadow: 0 26px 60px -20px rgba(12, 20, 26, .55), 0 4px 14px -6px rgba(12, 20, 26, .25);
  opacity: 0; transform: translateY(16px);
  transition: opacity 200ms ease, transform 200ms var(--ease-out);
}
.nudge.is-on { opacity: 1; transform: none; transition: opacity 420ms ease, transform 560ms var(--ease-out); }
.nudge__img { width: 92px; height: 116px; object-fit: cover; object-position: 30% 50%; }
.nudge__title { margin-right: 22px; font: 400 23px/1.08 var(--serif); }
.nudge__text { margin: 6px 0 12px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.nudge__x, .modal__x {
  position: absolute; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.nudge__x { top: 4px; right: 4px; width: 34px; height: 34px; }
.modal__x { top: 10px; right: 10px; width: 42px; height: 42px; z-index: 1; }
.nudge__x svg, .modal__x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.nudge__x:active, .modal__x:active { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) { .nudge__x:hover, .modal__x:hover { background: var(--linen); } }

/* pop-up form: a centred dialog (modals stay centred), a bottom sheet on phones */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal__scrim {
  position: absolute; inset: 0;
  background: rgba(20, 15, 12, .52);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 160ms ease;
}
.modal__box {
  position: relative; width: min(440px, 100%); max-height: calc(100svh - 40px); overflow: auto; overscroll-behavior: contain;
  background: var(--paper); color: var(--ink); border-radius: 2px; outline: 0;
  box-shadow: 0 40px 100px -30px rgba(10, 8, 6, .65);
  opacity: 0; transform: scale(.96) translateY(6px);
  transition: opacity 150ms ease, transform 150ms var(--ease-out);
}
.modal.is-open .modal__scrim { opacity: 1; transition-duration: 220ms; }
.modal.is-open .modal__box { opacity: 1; transform: none; transition: opacity 200ms ease, transform 260ms var(--ease-out); }
.mform__body, .modal .sent { padding: 38px 34px 28px; }
.mform__body { transition: opacity 180ms ease, transform 180ms var(--ease-out); }
.mform.is-leaving .mform__body { opacity: 0; transform: translateY(-6px); }
.modal .card__title { padding-right: 24px; }

/* ═════════ RESPONSIVE ═════════ */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 380px; }
  .facts { grid-template-columns: repeat(2, auto); row-gap: 16px; }
  .facts > div:nth-child(2) { border-right: 0; margin-right: 0; padding-right: 0; }
  .card__body, .sent { padding: 30px 28px 24px; }
}

@media (max-width: 960px) {
  :root { --bar: 60px; }
  .bar__status { display: none; }
  .bar__in { justify-content: space-between; }
  .mark__word { width: 134px; height: 13px; }
  .mark { gap: 6px; }
  .wa { display: none; }
  .lockup { --lw: 210px; gap: 10px; margin-bottom: 4px; }
  .lockup__res { font-size: 10.5px; }
  .display { font-size: clamp(50px, 13vw, 78px); }

  .hero__grid { display: block; min-height: 0; padding: 0 0 8px; }
  .hero__copy {
    position: relative;
    min-height: max(88svh, 600px);
    justify-content: flex-end;
    padding: calc(var(--bar) + 40px) var(--pad) 80px;
    gap: 18px;
  }
  .hero__media img { object-position: 64% 50%; }
  .hero__media::after {
    background:
      linear-gradient(180deg, rgba(20, 30, 40, .45) 0, rgba(20, 30, 40, 0) 26%),
      linear-gradient(0deg, rgba(12, 22, 26, .82) 0, rgba(12, 22, 26, .5) 48%, rgba(12, 22, 26, 0) 80%);
  }
  .hero__cta { display: inline-flex; }
  .hero__ctas { margin-top: 4px; }
  .facts { display: none; }
  .card { margin: -44px var(--pad) 0; max-width: 560px; }

  .intro__head { grid-template-columns: 1fr; gap: 18px; }
  .intro__img { aspect-ratio: 4 / 3; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div { padding: 26px 18px 26px 0; }
  .stats > div + div { padding-left: 0; }
  .stats > div:nth-child(even) { padding-left: 18px; border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .res__grid { grid-template-columns: 1fr; }
  .res__img { aspect-ratio: 4 / 3; order: 2; }

  .hosted { grid-template-columns: 1fr; min-height: 0; }
  .hosted__copy { padding: 84px var(--pad) 56px; }
  .hosted__img { aspect-ratio: 16 / 10; }

  .amen__grid, .place__grid { grid-template-columns: 1fr; }
  .why__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .amen__img { margin-bottom: 8px; }
  .place__img { aspect-ratio: 4 / 3; }
  .place__img img { object-position: 62% 60%; }

  .mbar {
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(246, 241, 234, .94);
    -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
    box-shadow: 0 -1px 0 var(--line), 0 -14px 30px -20px rgba(12, 20, 26, .4);
    transform: translateY(100%); visibility: hidden;
    transition: transform 220ms var(--ease-out), visibility 0s 220ms;
  }
  .mbar.is-on { transform: none; visibility: visible; transition: transform 400ms var(--ease-drawer), visibility 0s; }
  .mbar__wa, .mbar__cta {
    height: 50px; border-radius: 2px; -webkit-tap-highlight-color: transparent;
    transition: transform 160ms var(--ease-out);
  }
  .mbar__wa {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px;
    border: 1px solid var(--line-2); background: #fffdf9; color: var(--ink); text-decoration: none;
    font: 500 13px/1 var(--sans); letter-spacing: .04em;
  }
  .mbar__wa .wa-ico { width: 22px; height: 22px; color: #1fb85a; }
  .mbar__cta {
    border: 0; background: var(--ink); color: var(--paper); cursor: pointer;
    font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  }
  .mbar__wa:active, .mbar__cta:active { transform: scale(.97); }
  .mbar.is-lead { grid-template-columns: 1fr; }
  .mbar.is-lead .mbar__cta { display: none; }
  .foot { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }

  .nudge { left: 12px; right: 12px; width: auto; bottom: calc(82px + env(safe-area-inset-bottom)); grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
  .nudge__img { width: 76px; height: 100px; }
  .nudge__title { font-size: 21px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .h1 { font-size: clamp(52px, 15.5vw, 72px); }
  .hero .lede { font-size: 16px; }
  .chip { font-size: 12px; }
  .card { margin: -40px 12px 0; }
  .card__body, .sent { padding: 28px 22px 22px; }
  .card__title { font-size: 34px; }
  .unit { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; padding: 14px 0; }
  .unit__name { font-size: 23px; }
  .unit__go { display: none; }
  .unit__size { font-size: 14px; }
  .stats dd { font-size: 32px; }
  .stats .cur { display: block; margin-bottom: 6px; font: 500 11px/1 var(--sans); letter-spacing: .16em; }
  .views li { grid-template-columns: 80px minmax(0, 1fr); font-size: 24px; }
  .why__list { grid-template-columns: 1fr; gap: 0; }
  .why__list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: baseline; padding: 16px 0; }
  .why__list li::before { margin: 0; }
  .why__list li:last-child { border-bottom: 1px solid var(--line-2); }
  .services li { padding-right: 18px; margin-right: 18px; font-size: 12px; }
  .services b { font-size: 26px; }
  .modal { place-items: end stretch; padding: 0; }
  .modal__box {
    width: 100%; max-height: 92svh; border-radius: 10px 10px 0 0; padding-bottom: env(safe-area-inset-bottom);
    opacity: 1; transform: translateY(100%);
    transition: transform 220ms var(--ease-out);
  }
  .modal.is-open .modal__box { transform: none; transition: transform 440ms var(--ease-drawer); }
  .mform__body, .modal .sent { padding: 32px 22px 24px; }
}

/* Reduced motion: keep the fades that explain what happened, drop the travel. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot::after { animation: none; opacity: 0; }
  .js .hero__in, .js .card { animation-name: fade; animation-duration: 500ms; }
  .js .hero .line > .hero__in { animation-name: fade; }
  .js .hero__media img { transform: none; transition: opacity 600ms ease; }
  .js .rv { transform: none; transition: opacity 500ms ease; }
  .js .unveil img { clip-path: none; transform: none; opacity: 0; transition: opacity 600ms ease; }
  .js .unveil.is-in img { opacity: 1; }
  .sent:not([hidden]) { animation-name: fade; }
  .card.is-called::after, .chips input:checked + span.is-picked { animation: none; }
  .wa { animation-name: fade; }
  .nudge, .nudge.is-on, .modal__box, .modal.is-open .modal__box { transform: none; }
  .mbar, .mbar.is-on { transform: none; opacity: 0; transition: opacity 200ms ease, visibility 0s 200ms; }
  .mbar.is-on { opacity: 1; transition: opacity 200ms ease, visibility 0s; }
  .mform.is-leaving .mform__body, .card.is-leaving .card__body { transform: none; }
}
@keyframes fade { from { opacity: 0; } }
