/* ══════════════════════════════════════════════════════════════
   Raw District II Dubai by Imtiaz — raw-district.sales-inquiries.com
   DNA from the brochure: black + white spreads, a mustard accent,
   viewfinder corner brackets, grotesk caps set against serif caps.
   Neue Montreal → Host Grotesk · Reckless Neue → Newsreader
   ══════════════════════════════════════════════════════════════ */

:root {
  --ink: #000;
  --ink-2: #0e0d0c;
  --paper: #fff;
  --paper-2: #f2f0eb;
  --mustard: #c98a12;
  --mustard-hi: #dc9d22;
  --ochre: #8f5a06;

  --on-dark: rgba(255, 255, 255, .64);
  --on-dark-2: rgba(255, 255, 255, .42);
  --line-dark: rgba(255, 255, 255, .18);
  --on-light: rgba(0, 0, 0, .62);
  --line-light: rgba(0, 0, 0, .14);

  --g: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
  --s: "Newsreader", "Times New Roman", serif;

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

  --bar: 68px;
  --pad: clamp(20px, 4vw, 56px);
  --sec: clamp(76px, 10vw, 148px);

  /* viewfinder brackets */
  --vf-l: clamp(20px, 2.6vw, 40px);
  --vf-t: clamp(3px, .36vw, 5px);
  --vf-i: clamp(12px, 1.6vw, 22px);
  --vf-c: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--bar); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 16px/1.6 var(--g);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
figure, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button, input, select { font: inherit; color: inherit; }
b, strong { font-weight: 560; }
:focus-visible { outline: 2px solid var(--mustard); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 10px 14px; background: var(--mustard); color: var(--ink);
  transform: translateY(-160%); transition: transform .2s var(--ease-out);
}
.skip:focus { transform: none; }

/* ── type ─────────────────────────────────────────────────── */
.hd {
  margin: 0;
  font-family: var(--g);
  font-weight: 380;
  text-transform: uppercase;
  line-height: .94;
  letter-spacing: -.018em;
  text-wrap: balance;
}
.hd .s, .s.hd, .prow--s .prow__type, .amen__btn--s .amen__name, .times .s span {
  font-family: var(--s);
  font-weight: 300;
  letter-spacing: -.012em;
}
.hd .s { line-height: .5; }
.hd--xl  { font-size: clamp(44px, 6.2vw, 100px); }
.hd--xxl { font-size: clamp(50px, 7.2vw, 124px); }

.kicker, .eyebrow {
  margin: 0 0 18px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--mustard-hi); }
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 0 rgba(220, 157, 34, .6);
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse { 70%, 100% { box-shadow: 0 0 0 9px rgba(220, 157, 34, 0); } }

.lede { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.35; font-weight: 450; letter-spacing: -.005em; }
.fine { font-size: 12.5px; color: var(--on-dark-2); margin: 22px 0 0; }

/* ── viewfinder brackets ───────────────────────────────────── */
.vf { position: relative; }
.vf::after {
  content: "";
  position: absolute;
  inset: var(--vf-i);
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(var(--vf-c), var(--vf-c)) left   top    / var(--vf-l) var(--vf-t),
    linear-gradient(var(--vf-c), var(--vf-c)) left   top    / var(--vf-t) var(--vf-l),
    linear-gradient(var(--vf-c), var(--vf-c)) right  top    / var(--vf-l) var(--vf-t),
    linear-gradient(var(--vf-c), var(--vf-c)) right  top    / var(--vf-t) var(--vf-l),
    linear-gradient(var(--vf-c), var(--vf-c)) left   bottom / var(--vf-l) var(--vf-t),
    linear-gradient(var(--vf-c), var(--vf-c)) left   bottom / var(--vf-t) var(--vf-l),
    linear-gradient(var(--vf-c), var(--vf-c)) right  bottom / var(--vf-l) var(--vf-t),
    linear-gradient(var(--vf-c), var(--vf-c)) right  bottom / var(--vf-t) var(--vf-l);
  background-repeat: no-repeat;
}
.vf--open::after {
  background-size:
    var(--vf-l) var(--vf-t), var(--vf-t) var(--vf-l), var(--vf-l) var(--vf-t), var(--vf-t) var(--vf-l),
    0 0, 0 0, var(--vf-l) var(--vf-t), var(--vf-t) var(--vf-l);
}
.vf > img, .vf > picture img { width: 100%; height: 100%; object-fit: cover; }

/* Brackets "find focus" as the frame arrives: they start wide and settle. */
.js .rv.vf::after, .js .rv .vf::after {
  opacity: 0;
  transform: scale(1.07);
  transition: opacity .5s ease .15s, transform 1s var(--ease-out) .15s;
}
.js .rv.is-in.vf::after, .js .rv.is-in .vf::after { opacity: 1; transform: none; }

/* ── reveal ───────────────────────────────────────────────── */
.js .rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease-out) var(--d, 0ms), transform .9s var(--ease-out) var(--d, 0ms);
}
.js .rv.is-in { opacity: 1; transform: none; }

/* ── buttons ──────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 0;
  font-size: 13px; font-weight: 560; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .16s var(--ease-out), background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn--solid { background: var(--mustard); color: var(--ink); }
.btn--line { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 11.5px; }
.btn--block { width: 100%; }
.btn__arrow { display: inline-block; transition: transform .25s var(--ease-out); }
.btn__label { display: inline-block; transition: filter .2s ease, opacity .2s ease; }
.btn__label.is-swap { filter: blur(3px); opacity: .4; }
.btn:disabled { cursor: progress; }

@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover { background: var(--mustard-hi); }
  .btn--line:hover { background: #fff; color: var(--ink); border-color: #fff; }
  .btn:hover .btn__arrow { transform: translateX(4px); }
}

/* ── top bar ──────────────────────────────────────────────── */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--bar);
  transition: background-color .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.topbar::before {
  /* keeps white marks legible over the bright cover before the bar fills */
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, .42), rgba(0, 0, 0, 0));
  transition: opacity .3s ease;
}
.topbar.is-stuck {
  background: rgba(0, 0, 0, .9);
  border-bottom-color: var(--line-dark);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.topbar.is-stuck::before { opacity: 0; }
.topbar__in {
  height: 100%;
  display: flex; align-items: center; gap: 28px;
  padding-inline: var(--pad);
}
.topbar__brands { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.topbar__imtiaz { width: 96px; filter: brightness(0) invert(1); }
.topbar__x { width: 1px; height: 26px; background: rgba(255, 255, 255, .4); }
.topbar__nova { width: 74px; }
.topbar__nav { margin-left: auto; display: flex; gap: 26px; }
.topbar__nav a {
  font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: rgba(255, 255, 255, .78);
  transition: color .2s ease;
}
.topbar__nav a:hover { color: #fff; }
.topbar__cta { flex: none; }

@media (max-width: 1180px) { .topbar__nav { display: none; } .topbar__cta { margin-left: auto; } }
@media (max-width: 520px) {
  :root { --bar: 60px; }
  .topbar__in { gap: 14px; }
  .topbar__brands { gap: 12px; }
  .topbar__imtiaz { width: 78px; }
  .topbar__nova { width: 60px; }
  .topbar__cta { padding: 0 12px; letter-spacing: .1em; }
}

/* ── hero ─────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 41%);
  min-height: 100vh; min-height: 100svh;
  background: var(--ink);
}
.hero__photo {
  position: relative; overflow: hidden;
  min-height: 600px;
  background: var(--ochre);
  --vf-i: calc(var(--bar) + 6px) clamp(18px, 2.2vw, 30px) clamp(18px, 2.2vw, 30px);
  --vf-l: clamp(30px, 4vw, 62px);
  --vf-t: clamp(5px, .6vw, 9px);
}
.hero__photo picture, .hero__photo picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__photo picture img { object-fit: cover; object-position: 60% 38%; }
.hero__photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(40, 20, 6, .55), rgba(40, 20, 6, 0) 42%);
}
.hero__photo.vf::after { animation: focus 1.15s var(--ease-out) .1s both; }
@keyframes focus { from { opacity: 0; transform: scale(1.08); } 40% { opacity: 1; } }

.hero__tag {
  position: absolute; z-index: 3; margin: 0;
  top: calc(var(--bar) + 6px + clamp(6px, .9vw, 14px));
  font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  animation: rise .9s var(--ease-out) .35s both;
}
.hero__tag--l { left: calc(clamp(18px, 2.2vw, 30px) + clamp(30px, 4vw, 62px) + 18px); }
.hero__tag--r { right: calc(clamp(18px, 2.2vw, 30px) + clamp(30px, 4vw, 62px) + 18px); }

.hero__mark {
  position: absolute; z-index: 3; margin: 0;
  left: calc(clamp(18px, 2.2vw, 30px) + clamp(16px, 2vw, 28px));
  bottom: calc(clamp(18px, 2.2vw, 30px) + clamp(16px, 2vw, 28px));
  width: clamp(230px, 31vw, 470px);
  animation: rise 1.1s var(--ease-out) .25s both;
}
.hero__mark img { width: 100%; filter: brightness(0) invert(1); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

.hero__panel {
  display: flex; align-items: center;
  padding: calc(var(--bar) + 36px) clamp(28px, 4vw, 64px) 44px;
  background: var(--ink);
}
.hero__panel .form { width: 100%; max-width: 500px; margin-inline: auto; }

/* ── form ─────────────────────────────────────────────────── */
.form__head .hd { font-size: clamp(38px, 3.6vw, 58px); margin-bottom: 16px; }
.form__sub { color: var(--on-dark); font-size: 15.5px; margin-bottom: 26px; max-width: 40ch; }
.form__sub b { color: #fff; }

.row { display: grid; gap: 0 18px; }
.row--2 { grid-template-columns: 1fr 1fr; }
.field { position: relative; margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend {
  display: block; margin-bottom: 4px; padding: 0;
  font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--on-dark-2);
}
.opt { letter-spacing: .04em; text-transform: none; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select {
  display: block; width: 100%; height: 44px;
  padding: 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .3); border-radius: 0;
  background: transparent; color: #fff; font-size: 16px;
  outline: none;
  transition: border-color .2s ease;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: rgba(255, 255, 255, .26); }
.field input:focus, .field select:focus { border-bottom-color: var(--mustard-hi); }
.field input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s; }
.sel { position: relative; }
.sel::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff;
  transform: rotate(45deg); pointer-events: none;
}
.field select { padding-right: 26px; cursor: pointer; }
.field select:invalid { color: rgba(255, 255, 255, .42); }
.field select option { color: #000; }

.err { margin: 4px 0 0; min-height: 0; font-size: 12px; line-height: 1.3; color: #ffb48a; }
.err:empty { display: none; }
.has-error input, .has-error select { border-bottom-color: #ff9a62 !important; }

/* a unit picked from a price row flashes mustard, then settles */
#unit-field select { transition: border-color .2s ease, background-color .8s ease; }
#unit-field.is-picked select { border-bottom-color: var(--mustard-hi); background-color: rgba(201, 138, 18, .22); transition: none; }

.pills__set { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pills label { position: relative; margin: 0; cursor: pointer; letter-spacing: 0; text-transform: none; }
.pills input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pills__set span {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .26);
  font-size: 13.5px; color: rgba(255, 255, 255, .82);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .16s var(--ease-out);
}
.pills label:active span { transform: scale(.97); }
.pills input:checked + span { background: #fff; border-color: #fff; color: var(--ink); }
.pills input:focus-visible + span { outline: 2px solid var(--mustard); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .pills label:hover span { border-color: rgba(255, 255, 255, .6); } }

.field--check { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; margin: 18px 0 20px; }
.field--check input {
  width: 18px; height: 18px; margin: 2px 0 0;
  -webkit-appearance: none; appearance: none;
  border: 1px solid rgba(255, 255, 255, .45); background: transparent; cursor: pointer;
  display: grid; place-content: center;
  transition: background-color .15s ease, border-color .15s ease;
}
.field--check input::after {
  content: ""; width: 9px; height: 5px; margin-top: -2px;
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg) scale(.6); opacity: 0;
  transition: transform .15s var(--ease-out), opacity .15s ease;
}
.field--check input:checked { background: var(--mustard); border-color: var(--mustard); }
.field--check input:checked::after { opacity: 1; transform: rotate(-45deg); }
.field--check label { margin: 0; font-size: 12.5px; line-height: 1.5; letter-spacing: 0; text-transform: none; color: var(--on-dark); cursor: pointer; }
.cnt-off #consent-block { display: none; }

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

.status { margin: 12px 0 0; font-size: 13px; }
.status:empty { display: none; }
.status.is-err { color: #ffb48a; }

.form__fine {
  display: flex; align-items: center; gap: 16px;
  margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line-dark);
  font-size: 11.5px; line-height: 1.5; color: var(--on-dark-2);
}
.form__fine img { width: 58px; flex: none; }

.form { transition: opacity .19s ease, transform .19s ease; }
.form.is-leaving { opacity: 0; transform: translateY(6px); }
.sent { outline: none; animation: rise .6s var(--ease-out) both; }
.sent__mark { width: 74px; height: 74px; display: grid; place-content: center; margin-bottom: 28px; --vf-i: 0px; --vf-l: 16px; --vf-t: 3px; }
.sent__mark svg { width: 30px; height: 30px; fill: none; stroke: var(--mustard-hi); stroke-width: 2; stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .6s var(--ease-out) .25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sent .hd { font-size: clamp(38px, 3.6vw, 56px); margin-bottom: 16px; }
.sent p { color: var(--on-dark); max-width: 42ch; }

/* ── key facts band ───────────────────────────────────────── */
.band { background: var(--mustard); color: var(--ink); }
.band__list { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 1360px; margin-inline: auto; padding-inline: var(--pad); }
.band__list li { padding: 26px 22px 24px; border-left: 1px solid rgba(0, 0, 0, .2); }
.band__list li:first-child { border-left: 0; padding-left: 0; }
.band__list b { display: block; font-size: clamp(22px, 2vw, 30px); font-weight: 450; line-height: 1.1; letter-spacing: -.01em; }
.band__list span { display: block; margin-top: 6px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .72; }

/* ── DNA (white) ──────────────────────────────────────────── */
.dna { background: var(--paper); color: var(--ink); padding-block: var(--sec); }
.dna__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 28px); align-items: start; }
.dna__title { grid-column: 1 / 8; max-width: 9ch; }
.dna__copy { grid-column: 8 / 13; padding-top: 10px; color: var(--on-light); }
.dna__copy .kicker { color: var(--ink); }
.dna__copy .lede { color: var(--ink); }
.dna__copy .sig { font-family: var(--s); font-size: 22px; font-style: italic; color: var(--ink); margin: 0; }
.dna__sketch { grid-column: 1 / 9; margin-top: clamp(40px, 6vw, 90px); align-self: center; }
.dna__sketch img { width: 100%; mix-blend-mode: multiply; }
.dna__doer { grid-column: 9 / 13; margin-top: clamp(40px, 6vw, 90px); aspect-ratio: 3 / 4; overflow: hidden; }

/* ── prices (black) ───────────────────────────────────────── */
.prices { padding-block: var(--sec); background: var(--ink); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head > p { max-width: 36ch; margin: 0; color: var(--on-dark); }
.sec-head--split { align-items: start; }
.sec-head--split > div { max-width: 46ch; color: var(--on-dark); }
.sec-head--split .lede { color: #fff; }

.ptable { border-bottom: 1px solid var(--line-dark); }
.ptable__head, .prow {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, 1.3fr) minmax(0, .8fr) 48px;
  gap: 16px; align-items: center;
}
.ptable__head { padding: 0 0 14px; font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2); }
.prow {
  position: relative;
  padding: clamp(18px, 2vw, 26px) 0;
  border-top: 1px solid var(--line-dark);
  text-decoration: none;
  isolation: isolate;
}
.prow::before {
  content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); z-index: -1;
  background: var(--mustard);
  clip-path: inset(0 100% 0 0);
  transition: clip-path .35s var(--ease-out);
}
.prow__type { font-size: clamp(30px, 3.4vw, 54px); font-weight: 380; line-height: 1; letter-spacing: -.018em; text-transform: uppercase; transition: transform .35s var(--ease-out); }
.prow__size { color: var(--on-dark); font-size: 15px; }
.prow__price { font-size: clamp(18px, 1.6vw, 22px); font-weight: 450; font-variant-numeric: tabular-nums; }
.prow__price i { font-style: normal; opacity: .5; }
.prow__eoi { color: var(--on-dark); font-size: 15px; font-variant-numeric: tabular-nums; }
.prow__go {
  width: 44px; height: 44px; display: grid; place-content: center;
  border: 1px solid var(--line-dark); font-size: 18px;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.prow:active .prow__type { transform: translateX(6px); }
@media (hover: hover) and (pointer: fine) {
  .prow:hover::before { clip-path: inset(0 0 0 0); }
  .prow:hover { color: var(--ink); }
  .prow:hover .prow__size, .prow:hover .prow__eoi { color: rgba(0, 0, 0, .7); }
  .prow:hover .prow__type { transform: translateX(10px); }
  .prow:hover .prow__go { background: var(--ink); color: var(--mustard-hi); border-color: var(--ink); }
}

/* ── full-bleed building ──────────────────────────────────── */
.bleed { background: var(--ink); }
.bleed__fig { position: relative; height: clamp(440px, 86vh, 920px); overflow: hidden; --vf-i: clamp(16px, 2.2vw, 30px); --vf-l: clamp(28px, 3.6vw, 56px); --vf-t: clamp(4px, .5vw, 7px); }
.bleed__fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.bleed__fig::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 45%), linear-gradient(to right, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0) 55%); }
.bleed__fig figcaption {
  position: absolute; z-index: 3;
  left: calc(clamp(16px, 2.2vw, 30px) + clamp(18px, 2.4vw, 36px));
  bottom: calc(clamp(16px, 2.2vw, 30px) + clamp(18px, 2.4vw, 36px));
  right: var(--pad);
}
.bleed__fig .hd { display: block; max-width: 11ch; font-size: clamp(32px, 3.8vw, 62px); }

/* ── amenities: white intro, black list ───────────────────── */
.space { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); }
.space__intro {
  background: var(--paper); color: var(--ink);
  padding: var(--sec) clamp(24px, 4vw, 64px);
  display: flex; flex-direction: column;
}
.space__copy { max-width: 48ch; margin: clamp(80px, 12vw, 200px) 0 32px; color: var(--on-light); }
.space__copy .lede { color: var(--ink); margin-bottom: 10px; }
.space__view { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #1b1a18; }
.space__view img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.03);
  transition: opacity .45s ease, transform .9s var(--ease-out);
}
.space__view img.is-on { opacity: 1; transform: none; }

.space__list {
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--sec) clamp(24px, 4vw, 64px);
}
.amen { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.amen li { width: 100%; text-align: center; }
.amen__btn {
  position: relative;
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 10px 34px; border: 0; background: none; cursor: pointer;
  color: var(--on-dark-2);
  transition: color .2s ease;
}
.amen__name { font-size: clamp(24px, 2.5vw, 40px); line-height: 1.05; text-transform: uppercase; letter-spacing: -.015em; font-weight: 380; }
.amen__sub { margin-top: 5px; font-size: 12px; letter-spacing: .02em; color: var(--on-dark-2); max-height: 0; opacity: 0; overflow: hidden; transition: opacity .25s ease; }
.amen__btn--s .amen__name { position: relative; top: 3px; }
.amen__btn.is-on { color: #fff; }
.amen__btn.is-on .amen__sub { max-height: 3em; opacity: 1; color: var(--on-dark); }
.amen__btn::before, .amen__btn::after {
  content: ""; position: absolute; top: 12px; bottom: 12px; width: 10px;
  border: 2px solid var(--mustard-hi);
  opacity: 0; transition: opacity .2s ease, transform .3s var(--ease-out);
}
.amen__btn::before { left: 0; border-right: 0; transform: translateX(-8px); }
.amen__btn::after { right: 0; border-left: 0; transform: translateX(8px); }
.amen__btn.is-on::before, .amen__btn.is-on::after { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .amen__btn:hover { color: rgba(255, 255, 255, .85); } }
.amen__more { margin: 36px auto 0; max-width: 46ch; text-align: center; font-size: 12.5px; color: var(--on-dark-2); }

/* ── still never static (white) ───────────────────────────── */
.still { background: var(--paper); color: var(--ink); padding-block: var(--sec); }
.still__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: start; }
.still__grid .hd { grid-column: 1 / -1; margin-bottom: clamp(20px, 3vw, 40px); }
.still__a { grid-column: 1 / 8; }
.still__b { grid-column: 8 / 13; margin-top: clamp(60px, 10vw, 160px); }
.still .vf { overflow: hidden; }
.still__a .vf { aspect-ratio: 1400 / 855; }
.still__b .vf { aspect-ratio: 4 / 3; }
.still figcaption { margin-top: 14px; max-width: 46ch; font-size: 14px; color: var(--on-light); }
.still figcaption b { color: var(--ink); }

/* ── residences (black) ───────────────────────────────────── */
.res { padding-block: var(--sec); background: var(--ink); }
.res__specs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); margin-bottom: clamp(28px, 4vw, 48px); }
.res__specs li { padding: 18px 18px 0 0; }
.res__specs span { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2); }
.res__specs b { display: block; margin-top: 6px; font-size: clamp(18px, 1.7vw, 24px); font-weight: 420; }
.res__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.res__tile { position: relative; overflow: hidden; height: clamp(300px, 34vw, 500px); grid-column: span 5; }
.res__tile:nth-child(1), .res__tile:nth-child(4) { grid-column: span 7; }
.res__tile img { position: absolute; inset: 0; transition: transform 1.2s var(--ease-out); }
.res__tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0, 0, 0, .66), rgba(0, 0, 0, 0) 46%); }
.res__tile figcaption {
  position: absolute; z-index: 3;
  left: calc(var(--vf-i) + 20px); right: calc(var(--vf-i) + 20px); bottom: calc(var(--vf-i) + 18px);
  font-size: 14px; color: var(--on-dark);
}
.res__tile figcaption .hd { display: block; margin-bottom: 8px; font-size: clamp(24px, 2.4vw, 36px); color: #fff; }
@media (hover: hover) and (pointer: fine) { .res__tile:hover img { transform: scale(1.03); } }
.res__cta { margin-top: clamp(32px, 4vw, 52px); display: flex; justify-content: center; }

/* ── commercial (white, black panel) ──────────────────────── */
.com { display: grid; grid-template-columns: 5fr 7fr; background: var(--paper); color: var(--ink); }
.com__photo { position: relative; overflow: hidden; min-height: 640px; }
.com__photo img { position: absolute; inset: 0; object-position: 50% 30%; }
.com__panel {
  background: var(--ink); color: #fff;
  padding: var(--sec) clamp(28px, 5vw, 88px);
  display: flex; flex-direction: column; justify-content: center;
}
.com__panel .kicker { color: var(--mustard-hi); }
.com__panel .hd { margin-bottom: 30px; }
.com__panel > p:not(.kicker):not(.lede) { color: var(--on-dark); max-width: 52ch; }
.com__facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0 32px; border-top: 1px solid var(--line-dark); }
.com__facts div { padding: 16px 16px 0 0; }
.com__facts dt { font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2); }
.com__facts dd { margin-top: 6px; font-size: clamp(20px, 1.9vw, 28px); font-weight: 420; }
.com__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.com__wide { grid-column: 1 / -1; padding: clamp(16px, 2vw, 28px) var(--pad) clamp(48px, 6vw, 80px); }
.com__wide .vf { height: clamp(320px, 48vw, 700px); overflow: hidden; }
.com__wide figcaption { margin-top: 14px; font-size: 14px; color: var(--on-light); }

/* ── location (warm paper) ────────────────────────────────── */
.loc { background: var(--paper-2); color: var(--ink); padding-block: var(--sec); }
.loc__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.loc__copy { grid-column: 1 / 7; display: flex; flex-direction: column; color: var(--on-light); }
.loc__copy .hd { color: var(--ink); margin-bottom: auto; padding-bottom: 40px; }
.loc__copy .lede { color: var(--ink); margin-bottom: 10px; }
.loc__copy p:last-child { max-width: 52ch; margin: 0; }
.times {
  grid-column: 8 / 13;
  background: var(--ink); color: #fff;
  padding: clamp(28px, 3vw, 44px) 24px;
  display: flex; flex-direction: column; gap: 14px; justify-content: center;
  text-align: center;
}
.times span { display: block; font-size: clamp(18px, 1.6vw, 24px); text-transform: uppercase; line-height: 1.1; letter-spacing: -.005em; }
.times b { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--mustard-hi); }
.loc__map { grid-column: 1 / -1; margin-top: clamp(24px, 3vw, 40px); }
.loc__map .vf { overflow: hidden; aspect-ratio: 2400 / 1274; }
.loc__map figcaption { margin-top: 14px; font-size: 14px; color: var(--on-light); }

/* ── developer (black) ────────────────────────────────────── */
.dev { padding-block: var(--sec); background: var(--ink); }
.dev__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 88px); align-items: center; }
.dev__photo { overflow: hidden; aspect-ratio: 3 / 4; }
.dev__logo { width: 150px; filter: brightness(0) invert(1); margin-bottom: 36px; }
.dev__copy .hd { margin-bottom: 28px; }
.dev__copy > p { color: var(--on-dark); max-width: 56ch; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; margin: 30px 0; border-top: 1px solid var(--line-dark); }
.stats div { padding: 16px 12px 0 0; }
.stats dt { font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2); }
.stats dd { margin-top: 6px; white-space: nowrap; font-size: clamp(22px, 2.1vw, 32px); font-weight: 380; letter-spacing: -.01em; }
.dev__global { margin: 0; line-height: 2; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.dev__global span { color: var(--mustard-hi); margin-right: 14px; }
.dev__global i { font-style: normal; opacity: .5; margin: 0 6px; }

/* ── closing ──────────────────────────────────────────────── */
.close { display: grid; grid-template-columns: 5fr 7fr; background: var(--ink); border-top: 1px solid var(--line-dark); }
.close__photo { position: relative; overflow: hidden; min-height: 620px; }
.close__photo img { position: absolute; inset: 0; object-position: 40% 30%; }
.close__panel {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center; text-align: right;
  padding: var(--sec) clamp(28px, 5vw, 88px);
}
.close__panel .hd { max-width: 8ch; margin-bottom: 30px; }
.close__panel p { color: var(--on-dark); max-width: 42ch; margin-bottom: 30px; }

/* ── footer ───────────────────────────────────────────────── */
.foot { background: var(--ink); border-top: 1px solid var(--line-dark); padding: 56px 0 calc(48px + env(safe-area-inset-bottom)); }
.foot__brands { display: flex; align-items: center; flex-wrap: wrap; gap: 28px 44px; margin-bottom: 30px; }
.foot__raw { width: 96px; filter: brightness(0) invert(1); }
.foot__imtiaz { width: 118px; filter: brightness(0) invert(1); }
.foot__nova { width: 104px; }
.foot__line { color: var(--on-dark); font-size: 14px; }
.foot__legal { max-width: 92ch; font-size: 12px; color: var(--on-dark-2); }
.foot__copy { margin: 0; font-size: 12px; color: var(--on-dark-2); }

/* ── sticky CTA ───────────────────────────────────────────── */
.fab {
  position: fixed; z-index: 40;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 22px;
  background: var(--mustard); color: var(--ink);
  font-size: 12.5px; font-weight: 560; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transform: translateY(160%);
  transition: transform .35s var(--ease-out);
}
.fab.is-on { transform: none; }
@media (min-width: 901px) { .fab { display: none; } }
.fab:active { transform: scale(.97); }

/* ══ responsive ═════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .ptable__head, .prow { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, .8fr) 44px; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__photo { min-height: 0; height: 84vh; height: 84svh; max-height: 760px; }
  .hero__photo picture img { object-position: 72% 30%; }
  .hero__mark { width: min(64vw, 330px); }
  .hero__tag { font-size: 10px; letter-spacing: .14em; }
  .hero__tag--r { display: none; }
  .hero__panel { padding: 52px var(--pad) 60px; }

  .band__list { grid-template-columns: 1fr 1fr; }
  .band__list li { padding: 18px 0 16px; border-left: 0; border-top: 1px solid rgba(0, 0, 0, .2); }
  .band__list li:nth-child(even) { padding-left: 18px; border-left: 1px solid rgba(0, 0, 0, .2); }
  .band__list li:nth-child(-n+2) { border-top: 0; }
  .band__list li:last-child { grid-column: 1 / -1; }

  .dna__title, .dna__copy, .dna__sketch { grid-column: 1 / -1; }
  .dna__copy { padding-top: 32px; }
  .dna__sketch { margin-top: 36px; }
  .dna__doer { grid-column: 3 / 11; margin-top: 28px; }

  .sec-head { flex-direction: column; align-items: start; }

  .space { display: block; }
  .space__intro { display: contents; }
  .space__intro > .hd, .space__copy { background: var(--ink); color: #fff; padding-inline: var(--pad); }
  .space__intro > .hd { padding-top: var(--sec); }
  .space__copy { margin: 0; padding-top: 28px; padding-bottom: 28px; color: var(--on-dark); max-width: none; }
  .space__copy .lede { color: #fff; }
  .space__view { position: sticky; top: var(--bar); z-index: 4; margin-inline: var(--pad); }
  .space__list { padding: 28px var(--pad) var(--sec); }

  .still__a, .still__b { grid-column: 1 / -1; margin-top: 0; }

  .res__specs { grid-template-columns: 1fr 1fr; border-top: 0; }
  .res__specs li { border-top: 1px solid var(--line-dark); padding-bottom: 16px; }
  .res__tile, .res__tile:nth-child(1), .res__tile:nth-child(4) { grid-column: 1 / -1; height: clamp(260px, 64vw, 440px); }

  .com { grid-template-columns: 1fr; }
  .com__photo { min-height: 0; height: 70vh; max-height: 560px; }

  .loc__copy, .times { grid-column: 1 / -1; }
  .loc__copy .hd { margin-bottom: 24px; padding-bottom: 0; }
  .times { margin-top: 32px; }

  .dev__grid { grid-template-columns: 1fr; }
  .dev__photo { aspect-ratio: 4 / 3; }
  .stats { grid-template-columns: 1fr 1fr; border-top: 0; }
  .stats div { border-top: 1px solid var(--line-dark); padding-bottom: 14px; }

  .close { grid-template-columns: 1fr; }
  .close__photo { min-height: 0; height: 64vh; max-height: 560px; }
  .close__panel { align-items: flex-start; text-align: left; padding-top: 56px; }
}

@media (max-width: 640px) {
  .row--2 { grid-template-columns: 1fr; }

  /* price rows restack: type + arrow / price / size · EOI */
  .ptable__head { display: none; }
  .prow { grid-template-columns: 1fr auto; grid-template-areas: "type go" "price price" "size eoi"; gap: 6px 12px; }
  .prow__type { grid-area: type; }
  .prow__go { grid-area: go; justify-self: end; width: 40px; height: 40px; }
  .prow__price { grid-area: price; margin-top: 6px; }
  .prow__size { grid-area: size; font-size: 13.5px; }
  .prow__eoi { grid-area: eoi; font-size: 13.5px; text-align: right; }
  .prow__eoi::before { content: "EOI "; }

  .com__facts { grid-template-columns: 1fr 1fr; border-top: 0; }
  .com__facts div { border-top: 1px solid var(--line-dark); padding-bottom: 14px; }
  .com__ctas .btn { width: 100%; }
  .fab { left: 16px; right: 16px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv, .js .rv.vf::after, .js .rv .vf::after { transform: none !important; transition: opacity .3s ease; }
  .hero__photo.vf::after, .hero__mark, .hero__tag { animation: fade .4s ease both; }
  .dot { animation: none; }
  .space__view img { transform: none; }
  .res__tile img, .prow__type { transition: none; }
}
@keyframes fade { from { opacity: 0; } }
