/* ==========================================================================
   EMAAR — The Downtown Dubai Experience
   Design concept · one-page immersive site
   ========================================================================== */

:root {
  --navy: #07121D;
  --charcoal: #101820;
  --ivory: #F4F0E8;
  --champagne: #C5AC7B;
  --champagne-ink: #7d6740;      /* champagne tuned for ivory backgrounds (AA) */
  --slate: #667582;
  --slate-2: #9aa6b1;            /* slate tuned for small text on navy (AA) */
  --white: #FFFFFF;

  --line-d: rgba(255, 255, 255, 0.14);
  --line-d-strong: rgba(255, 255, 255, 0.28);
  --line-l: rgba(7, 18, 29, 0.14);

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5.6vw, 80px);
  --max: 1440px;
  --header-h: 84px;

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  -webkit-text-size-adjust: 100%;
  background: var(--navy);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a, button, input, select, label { -webkit-tap-highlight-color: transparent; }
.show-m { display: none; }
.panel__grip { display: none; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ol, ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

:focus-visible { outline: 1px solid var(--champagne); outline-offset: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 200; padding: 10px 16px;
  background: var(--champagne); color: var(--navy); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- type ---------- */
.label {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-weight: 500; font-size: 11px; line-height: 1.4;
  letter-spacing: .28em; text-transform: uppercase; color: var(--champagne);
}
.label--rule::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .7; }
.label--slate { color: var(--slate-2); }

.display {
  font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: .96;
  font-size: clamp(48px, 7.4vw, 112px);
  font-optical-sizing: none; font-variation-settings: "opsz" 28;
}
.display em, .h2 em { font-style: italic; letter-spacing: -0.02em; }
.h2 {
  font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  letter-spacing: -0.015em; line-height: 1; font-size: clamp(40px, 5.8vw, 92px);
  font-optical-sizing: none; font-variation-settings: "opsz" 28;
}
.h3 {
  font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  letter-spacing: -0.005em; line-height: 1.05; font-size: clamp(28px, 2.9vw, 44px);
  font-optical-sizing: none; font-variation-settings: "opsz" 20;
}
.lede { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.7; max-width: 46ch; color: rgba(255, 255, 255, .82); }
.body-s { font-size: 14px; line-height: 1.75; color: var(--slate-2); max-width: 48ch; }

/* ---------- buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--white); --bd: rgba(255, 255, 255, .34);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 30px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd); border-radius: 2px;
  font-family: var(--sans); font-weight: 500; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase;
  transition: background-color .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease);
  white-space: nowrap;
}
.btn .arrow { width: 22px; height: 8px; flex: none; transition: transform .5s var(--ease-out); }
.btn:hover .arrow, .btn:focus-visible .arrow { transform: translateX(5px); }
.btn--primary { --bg: var(--champagne); --fg: var(--navy); --bd: var(--champagne); }
.btn:active { transform: scale(.985); }
@media (hover: none) { .btn--ghost:hover { --bd: rgba(255, 255, 255, .34); --fg: var(--white); } .btn--primary:hover { --bg: var(--champagne); --bd: var(--champagne); } }
.btn--primary:hover { --bg: #b39766; --bd: #b39766; }
.btn--ghost:hover { --bd: var(--champagne); --fg: var(--champagne); }
.btn--ink { --fg: var(--navy); --bd: rgba(7, 18, 29, .3); }
.btn--ink:hover { --bd: var(--navy); --bg: var(--navy); --fg: var(--ivory); }

.link {
  position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 6px 0;
  font-weight: 500; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform-origin: left; transform: scaleX(.35); transition: transform .6s var(--ease-out); opacity: .8;
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }
.link .arrow { width: 18px; height: 8px; transition: transform .5s var(--ease-out); }
.link:hover .arrow { transform: translateX(4px); }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 0 var(--gutter);
  transition: background-color .6s var(--ease), border-color .6s var(--ease), height .6s var(--ease), transform .6s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  height: 68px;
  background: rgba(7, 18, 29, .82);
  -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line-d);
}
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img { display: block; width: auto; height: 22px; transition: height .6s var(--ease); }
.header.is-scrolled .logo img { height: 19px; }
.nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); }
.nav a {
  position: relative; padding: 10px 0;
  font-weight: 500; font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255, 255, 255, .78); transition: color .35s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: .28em; bottom: 2px; height: 1px; background: var(--champagne);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.nav a:hover { color: var(--white); }
.nav a.is-active { color: var(--white); }
.nav a.is-active::after { transform: scaleX(1); }
.header__end { display: flex; align-items: center; gap: 28px; }
.header__cta { display: inline-flex; }
.menu-btn {
  width: 44px; height: 44px; display: grid; place-items: center; margin-right: -10px;
}
.menu-btn span { display: block; width: 26px; height: 1px; background: currentColor; transition: transform .5s var(--ease-out), width .5s var(--ease-out); }
.menu-btn span + span { margin-top: 7px; width: 18px; justify-self: end; }
.menu-btn .bars { display: grid; }
.menu-btn:hover span + span { width: 26px; }
.menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn span + span { width: 26px; transform: translateY(-4px) rotate(-45deg); }

/* full-screen menu */
.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--navy);
  display: grid; grid-template-columns: 1fr; align-content: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity .55s var(--ease), visibility 0s linear .55s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .55s var(--ease); }
.menu__list { display: grid; gap: 6px; }
.menu__list a {
  display: flex; align-items: baseline; gap: 22px; padding: 10px 0; border-bottom: 1px solid var(--line-d);
  font-family: var(--serif); font-size: clamp(36px, 6vw, 72px); line-height: 1.1; text-transform: uppercase; letter-spacing: -0.01em;
  transform: translateY(18px); opacity: 0; transition: transform .8s var(--ease-out), opacity .8s var(--ease-out), color .3s;
}
.menu__list a small { font-family: var(--sans); font-size: 11px; letter-spacing: .28em; color: var(--champagne); }
.menu__list a:hover { color: var(--champagne); }
.menu.is-open .menu__list a { transform: none; opacity: 1; }
.menu.is-open .menu__list li:nth-child(2) a { transition-delay: .05s; }
.menu.is-open .menu__list li:nth-child(3) a { transition-delay: .1s; }
.menu.is-open .menu__list li:nth-child(4) a { transition-delay: .15s; }
.menu.is-open .menu__list li:nth-child(5) a { transition-delay: .2s; }
.menu__foot { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px 40px; color: var(--slate-2); font-size: 13px; }

/* ==========================================================================
   01 · HERO
   ========================================================================== */
.hero { position: relative; height: 240vh; background: var(--navy); }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100dvh; min-height: 600px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; background: var(--navy); }
.hero__poster, .hero__poster img, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__poster img { object-fit: cover; object-position: 48% 50%; transition: opacity .6s var(--ease); }
.hero--canvas .hero__poster img { opacity: 0; }
.hero__canvas { opacity: 0; transition: opacity .9s var(--ease); }
.hero--canvas .hero__canvas { opacity: 1; }
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 18, 29, .88) 0%, rgba(7, 18, 29, .66) 28%, rgba(7, 18, 29, .16) 50%, rgba(7, 18, 29, 0) 60%),
    linear-gradient(180deg, rgba(7, 18, 29, .6) 0%, rgba(7, 18, 29, 0) 20%, rgba(7, 18, 29, 0) 68%, rgba(7, 18, 29, .95) 100%);
}
.hero__inner {
  position: relative; z-index: 2; height: 100%; will-change: opacity, transform;
  display: grid; align-content: end; gap: 28px;
  padding: 0 var(--gutter) clamp(120px, 17vh, 180px);
  max-width: 900px;
}
.hero .display { max-width: 9.5em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.hero__scroll {
  position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%); transition: opacity .3s linear;
  display: grid; justify-items: center; gap: 14px;
  font-weight: 500; font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: rgba(255, 255, 255, .7);
}
.hero__scroll i { display: block; width: 1px; height: 54px; background: rgba(255, 255, 255, .2); position: relative; overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--champagne);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine { to { top: 100%; } }
.hero__coords {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 34px;
  font-size: 10.5px; letter-spacing: .26em; color: rgba(255, 255, 255, .6); text-transform: uppercase;
}

/* intro animation */
.rise { opacity: 0; transform: translateY(26px); animation: rise 1.4s var(--ease-out) forwards; }
.rise:nth-child(2) { animation-delay: .15s; }
.rise:nth-child(3) { animation-delay: .3s; }
.rise:nth-child(4) { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ==========================================================================
   02 + 03 · IMMERSIVE CITY / EXPLORE (sticky 3D stage)
   ========================================================================== */
.city { position: relative; height: 640vh; background: var(--navy); }
.city__stage {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 100%, #1a2a44 0%, var(--navy) 60%);
}
.city__canvas, .city__canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.city__canvas { opacity: 0; transition: opacity 1.6s var(--ease); }
.has-webgl .city__canvas { opacity: 1; }
.city__fallback { position: absolute; inset: 0; display: none; }
.city__fallback img { width: 100%; height: 100%; object-fit: cover; }
.no-webgl .city__fallback { display: block; }
.city__fallback p {
  position: absolute; right: var(--gutter); bottom: 28px; font-size: 11px; letter-spacing: .14em; color: var(--slate-2);
  background: rgba(7, 18, 29, .7); padding: 8px 12px;
}
.city__loading {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--slate-2);
  transition: opacity .8s var(--ease);
}
.has-webgl .city__loading, .no-webgl .city__loading { opacity: 0; }
.city__loading span { display: grid; justify-items: center; gap: 18px; }
.city__loading span::before { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--champagne), transparent); animation: pulseLine 1.6s var(--ease) infinite; }
@keyframes pulseLine { 50% { opacity: .2; } }

.city__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, var(--navy) 0%, rgba(7, 18, 29, 0) 14%, rgba(7, 18, 29, 0) 62%, rgba(7, 18, 29, .78) 100%),
    linear-gradient(90deg, rgba(7, 18, 29, .78) 0%, rgba(7, 18, 29, .45) 30%, rgba(7, 18, 29, 0) 52%);
}

/* overlay copy for 02 */
.city__intro {
  position: absolute; z-index: 3; left: var(--gutter); bottom: clamp(56px, 11vh, 120px);
  display: grid; gap: 22px; max-width: 620px;
  transition: opacity .9s var(--ease), transform .9s var(--ease-out);
}
.city.is-explore .city__intro { opacity: 0; transform: translateY(-20px); pointer-events: none; }
.city__intro .lede { max-width: 40ch; }

.city__phase {
  position: absolute; z-index: 3; left: var(--gutter); top: calc(var(--header-h) + 28px);
  display: flex; align-items: center; gap: 16px; font-size: 10.5px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255, 255, 255, .7); transition: opacity .6s var(--ease);
}
.city__phase b { font-weight: 500; color: var(--champagne); }
.city.is-explore .city__phase { opacity: 0; }

.city__live {
  position: absolute; z-index: 3; right: var(--gutter); top: calc(var(--header-h) + 28px);
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: rgba(255, 255, 255, .62);
}
.city__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--champagne); box-shadow: 0 0 0 4px rgba(197, 172, 123, .16); }
.no-webgl .city__live { display: none; }

/* progress rail */
.rail {
  position: absolute; z-index: 3; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: grid; gap: 0; transition: opacity .6s var(--ease);
}
.city.is-explore .rail, .city.is-explore .city__live { opacity: 0; pointer-events: none; }
.rail::before { content: ""; position: absolute; right: 3px; top: 6px; bottom: 6px; width: 1px; background: var(--line-d-strong); }
.rail__fill { position: absolute; right: 3px; top: 6px; width: 1px; height: calc((100% - 12px) * var(--p, 0)); background: var(--champagne); }
.rail li {
  position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 16px;
  height: 52px; padding-right: 22px;
  font-size: 10px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: rgba(255, 255, 255, .38);
  transition: color .5s var(--ease);
}
.rail li::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5); background: var(--navy); transition: background-color .5s, border-color .5s;
}
.rail li b { font-weight: 500; color: inherit; width: 1.2em; text-align: right; }
.rail li.is-past { color: rgba(255, 255, 255, .6); }
.rail li.is-past::after { border-color: var(--champagne); background: var(--champagne); }
.rail li.is-current { color: var(--white); }
.rail li.is-current::after { border-color: var(--champagne); background: var(--champagne); box-shadow: 0 0 0 5px rgba(197, 172, 123, .18); }

/* 3D-anchored annotations */
.anno {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; opacity: 0;
  transition: opacity .7s var(--ease);
}
.anno__in {
  position: absolute; left: 0; bottom: 0; transform: translate(-0.5px, 0);
  display: grid; gap: 4px; padding: 0 0 70px 14px; white-space: nowrap;
  border-left: 1px solid rgba(197, 172, 123, .75);
}
.anno__in::before { content: ""; position: absolute; left: -3.5px; bottom: -3.5px; width: 6px; height: 6px; border-radius: 50%; background: var(--champagne); }
.anno__in span { font-size: 10px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--white); }
.anno__in em { font-style: normal; font-family: var(--serif); font-size: 15px; color: var(--champagne); letter-spacing: .04em; }
.anno--tall .anno__in { padding-bottom: 120px; }
.anno--right .anno__in { left: auto; right: 0; padding: 0 14px 70px 0; border-left: 0; border-right: 1px solid rgba(197, 172, 123, .75); text-align: right; }
.anno--right .anno__in::before { left: auto; right: -3.5px; }
.anno.is-hidden, .no-webgl .anno { opacity: 0 !important; }

/* ---------- 03 · explore ---------- */
.explore { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.explore__index {
  position: absolute; left: var(--gutter); top: 50%; transform: translateY(-46%);
  width: min(380px, 30vw); display: grid; gap: 26px; pointer-events: auto;
  opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility 0s linear .8s, transform .9s var(--ease-out);
}
.explore__index::before {
  content: ""; position: absolute; inset: -60px -60px -60px calc(-1 * var(--gutter)); z-index: -1;
  background: linear-gradient(90deg, rgba(7, 18, 29, .86), rgba(7, 18, 29, .55) 70%, rgba(7, 18, 29, 0));
  pointer-events: none;
}
.city.is-explore .explore__index { opacity: 1; visibility: visible; transform: translateY(-50%); transition: opacity .8s var(--ease), transform .9s var(--ease-out); }
.explore__index .h2 { font-size: clamp(38px, 4.2vw, 64px); }
.places { border-top: 1px solid var(--line-d); }
.places button {
  width: 100%; display: grid; grid-template-columns: 34px 1fr 18px; align-items: center; gap: 10px;
  min-height: 50px; padding: 8px 0; border-bottom: 1px solid var(--line-d); text-align: left;
  font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .66);
  transition: color .35s var(--ease);
}
.places button span:first-child { color: var(--slate-2); font-variant-numeric: tabular-nums; }
.places button svg { width: 14px; height: 8px; opacity: 0; transform: translateX(-6px); transition: opacity .35s, transform .5s var(--ease-out); }
.places button:hover, .places button[aria-pressed="true"] { color: var(--white); }
.places button[aria-pressed="true"] span:first-child { color: var(--champagne); }
.places button:hover svg, .places button[aria-pressed="true"] svg { opacity: 1; transform: none; color: var(--champagne); }

/* hotspot markers */
.marker {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s linear .6s;
}
.city.is-explore .marker { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
.city.is-explore .marker .marker__btn { pointer-events: auto; }
.marker.is-hidden { opacity: 0 !important; visibility: hidden !important; }
.marker.is-hidden .marker__btn { pointer-events: none !important; }
.marker__btn {
  position: absolute; left: 0; top: 0; transform: translate(-22px, -22px);
  display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 0 0 0; pointer-events: none;
}
.marker__dot {
  position: relative; flex: none; width: 44px; height: 44px; display: grid; place-items: center;
}
.marker__dot::before {
  content: ""; position: absolute; inset: 8px; border-radius: 50%;
  border: 1px solid var(--champagne); background: rgba(7, 18, 29, .62);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background-color .4s var(--ease), transform .5s var(--ease-out);
}
.marker__dot::after {
  content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 1px solid rgba(197, 172, 123, .6);
  animation: ring 2.8s var(--ease) infinite; opacity: 0;
}
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }
.marker__dot b { position: relative; font-size: 10px; font-weight: 600; letter-spacing: .06em; color: var(--white); font-variant-numeric: tabular-nums; }
.marker__label {
  font-size: 10px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; white-space: nowrap;
  padding: 7px 12px; background: rgba(7, 18, 29, .78); border: 1px solid var(--line-d);
  opacity: 0; transform: translateX(-8px); transition: opacity .4s var(--ease), transform .5s var(--ease-out);
}
.marker__btn:hover .marker__label, .marker__btn:focus-visible .marker__label, .marker.is-selected .marker__label { opacity: 1; transform: none; }
.marker__btn:hover .marker__dot::before { background: rgba(197, 172, 123, .28); transform: scale(1.08); }
.marker.is-selected .marker__dot::before { background: var(--champagne); }
.marker.is-selected .marker__dot b { color: var(--navy); }
.marker.is-selected { z-index: 5; }
.city.has-selection .marker:not(.is-selected) { opacity: .45; }

/* editorial panel */
.panel {
  position: absolute; z-index: 6; right: var(--gutter); top: 50%;
  width: min(400px, 34vw); max-height: calc(100% - var(--header-h) - 60px);
  background: rgba(7, 18, 29, .9); border: 1px solid var(--line-d);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  pointer-events: auto; overflow: auto;
  opacity: 0; visibility: hidden; transform: translate(24px, -46%);
  transition: opacity .55s var(--ease), transform .7s var(--ease-out), visibility 0s linear .55s;
}
.panel.is-open { opacity: 1; visibility: visible; transform: translate(0, -46%); transition: opacity .55s var(--ease), transform .7s var(--ease-out); }
.panel__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--charcoal); }
.panel__media img { width: 100%; height: 100%; object-fit: cover; }
.panel__body { padding: 26px 28px 30px; display: grid; gap: 14px; }
.panel__body .h3 { font-size: clamp(26px, 2.3vw, 34px); }
.panel__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 14px; border-top: 1px solid var(--line-d); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--slate-2); }
.panel__facts b { font-weight: 500; color: var(--white); }
.panel__close {
  position: absolute; z-index: 2; right: 10px; top: 10px; width: 44px; height: 44px; display: grid; place-items: center;
  background: rgba(7, 18, 29, .72); border: 1px solid var(--line-d); transition: border-color .3s, background-color .3s;
}
.panel__close:hover { border-color: var(--champagne); }
.panel__close svg { width: 14px; height: 14px; }
.panel__nav { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; }
.panel__nav button { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--slate-2); transition: color .3s; }
.panel__nav button:hover { color: var(--champagne); }
.panel__nav svg { width: 16px; height: 8px; }

.explore__hint {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  font-size: 10px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: rgba(255, 255, 255, .6);
  opacity: 0; transition: opacity .6s var(--ease); white-space: nowrap;
}
.city.is-explore:not(.has-selection) .explore__hint { opacity: 1; }

.city__anchor { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }

/* ==========================================================================
   04 · RESIDENCES (ivory editorial)
   ========================================================================== */
.residences {
  position: relative; background: var(--ivory); color: var(--navy);
  padding: clamp(110px, 14vw, 200px) var(--gutter) clamp(90px, 10vw, 160px);
}
.residences .label { color: var(--champagne-ink); }
.residences__head {
  max-width: var(--max); margin: 0 auto clamp(80px, 10vw, 150px);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end;
}
.residences__head .label { grid-column: 1 / -1; }
.residences__head .h2 { grid-column: 1 / span 7; font-size: clamp(44px, 7vw, 112px); line-height: .95; }
.residences__head p { grid-column: 9 / span 4; font-size: 16px; line-height: 1.75; color: #3c4650; padding-bottom: 10px; }
.residence {
  max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center;
  padding: clamp(40px, 5vw, 70px) 0;
}
.residence + .residence { border-top: 1px solid var(--line-l); }
.residence__media { grid-column: 1 / span 7; position: relative; overflow: hidden; aspect-ratio: 5 / 4; background: #e3ddd2; }
.residence__media img { width: 100%; height: 118%; object-fit: cover; transform: translateY(var(--py, 0)); transition: scale 1.4s var(--ease-out); }
.residence:hover .residence__media img { scale: 1.03; }
.residence__copy { grid-column: 9 / span 4; display: grid; gap: 22px; align-content: center; }
.residence--flip .residence__media { grid-column: 6 / span 7; grid-row: 1; }
.residence--flip .residence__copy { grid-column: 1 / span 4; grid-row: 1; }
.residence__kicker { font-size: 10.5px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: #6a737b; margin-bottom: -10px; }
.residence__num { display: flex; align-items: center; gap: 16px; font-size: 11px; font-weight: 500; letter-spacing: .28em; color: var(--champagne-ink); }
.residence__num::after { content: ""; flex: 1; height: 1px; background: var(--line-l); }
.residence .h3 { color: var(--navy); }
.residence p { font-size: 15.5px; line-height: 1.75; color: #3c4650; max-width: 40ch; }
.residence__meta { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 16px 0; border-top: 1px solid var(--line-l); border-bottom: 1px solid var(--line-l); font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #59636c; }
.residence .link { color: var(--navy); justify-self: start; }
.residence__caption { position: absolute; left: 16px; bottom: 14px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.residences__note { max-width: var(--max); margin: 40px auto 0; font-size: 12px; color: #6a737b; }

/* ==========================================================================
   05 · THE ART OF LIVING
   ========================================================================== */
.living { position: relative; background: var(--navy); padding: clamp(110px, 13vw, 190px) 0 clamp(80px, 10vw, 150px); overflow: hidden; }
.living__head {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(60px, 7vw, 100px);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end;
}
.living__head .label { grid-column: 1 / -1; }
.living__head .h2 { grid-column: 1 / span 7; }
.living__head p { grid-column: 9 / span 4; color: rgba(255, 255, 255, .78); padding-bottom: 10px; }
.living__wide { position: relative; height: clamp(380px, 62vw, 860px); overflow: hidden; }
.living__wide img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; transform: translateY(var(--py, 0)); }
.living__wide figcaption, .tile figcaption {
  position: absolute; left: var(--gutter); bottom: 24px; display: flex; gap: 14px; align-items: center;
  font-size: 10px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}
.living__wide figcaption b, .tile figcaption b { font-weight: 500; color: var(--champagne); }
.living__wide figcaption, .tile figcaption { flex-wrap: wrap; row-gap: 4px; right: 18px; }
.living__wide figcaption span, .tile figcaption span { flex-basis: 100%; padding-left: calc(1ch + 14px); font-size: 12px; font-weight: 300; letter-spacing: .02em; text-transform: none; color: rgba(255, 255, 255, .78); }
.tile::after, .living__wide::after { content: ""; position: absolute; inset: 55% 0 0 0; background: linear-gradient(180deg, transparent, rgba(7, 18, 29, .72)); pointer-events: none; }
.tile figcaption, .living__wide figcaption { z-index: 1; }
.living__grid {
  max-width: var(--max); margin: clamp(24px, 3vw, 40px) auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(60px, 7vw, 104px); gap: clamp(14px, 1.7vw, 24px);
}
.tile { position: relative; margin: 0; overflow: hidden; background: var(--charcoal); }
.tile img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; transform: translateY(var(--py, 0)); transition: scale 1.4s var(--ease-out); }
.tile:hover img { scale: 1.035; }
.tile figcaption { left: 18px; bottom: 16px; }
.tile--a { grid-column: 1 / span 4; grid-row: 1 / span 6; }
.tile--b { grid-column: 5 / span 8; grid-row: 1 / span 4; }
.tile--c { grid-column: 5 / span 4; grid-row: 5 / span 5; }
.tile--d { grid-column: 9 / span 4; grid-row: 5 / span 3; }
.tile--text { grid-column: 1 / span 4; grid-row: 7 / span 3; background: none; display: grid; align-content: end; gap: 14px; padding-right: 10%; }
.tile--text p { font-size: 14.5px; color: var(--slate-2); }
.tile--e { grid-column: 9 / span 4; grid-row: 8 / span 2; }
.living__strip {
  max-width: var(--max); margin: clamp(60px, 7vw, 100px) auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-d);
}
.living__strip div { padding: 26px 24px 0 0; display: grid; gap: 8px; }
.living__strip div + div { padding-left: 24px; border-left: 1px solid var(--line-d); }
.living__strip b { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 30px); text-transform: uppercase; letter-spacing: -0.01em; }
.living__strip span { font-size: 13px; color: var(--slate-2); }

/* ==========================================================================
   06 · A CLOSER PERSPECTIVE
   ========================================================================== */
.closer { position: relative; height: 170vh; background: var(--charcoal); }
.closer__sticky { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
.closer__media { position: absolute; inset: 0; }
.closer__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--closer-pos, 50% 50%); transform: scale(var(--zs, 1.12)); transform-origin: 50% 30%; }
.closer__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 24, 32, .78) 0%, rgba(16, 24, 32, .2) 42%, rgba(16, 24, 32, 0) 60%), linear-gradient(180deg, rgba(16, 24, 32, .5), rgba(16, 24, 32, 0) 30%, rgba(16, 24, 32, 0) 70%, rgba(16, 24, 32, .8)); }
.closer__inner {
  position: relative; z-index: 2; height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center;
}
.closer__copy { grid-column: 1 / span 5; display: grid; gap: 26px; }
.closer__copy .h2 { font-size: clamp(40px, 5vw, 80px); }
.closer__copy p { color: rgba(255, 255, 255, .8); max-width: 44ch; }
.measure {
  position: absolute; z-index: 2; right: calc(var(--gutter) + 9vw); top: 16vh; bottom: 10vh; width: 210px;
}
.measure::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: rgba(197, 172, 123, .7); transform-origin: bottom; transform: scaleY(var(--m, 0)); }
.measure__lvl {
  position: absolute; left: 0; bottom: calc(var(--h) / 828 * 100%); transform: translateY(50%);
  display: grid; gap: 2px; padding-left: 18px; white-space: nowrap;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .62);
  opacity: var(--mo, 0); transition: opacity .8s var(--ease);
}
.measure__lvl b { font-family: var(--serif); font-weight: 400; font-size: 17px; letter-spacing: .02em; text-transform: none; color: var(--white); }
.measure__lvl::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--champagne); }
.measure__lvl--base { transform: translateY(0); }
.measure__lvl--up { transform: translateY(0); padding-bottom: 2px; }
.measure__lvl--up::before { top: auto; bottom: 0; }
.measure__lvl--down { transform: translateY(100%); padding-top: 2px; }
.measure__lvl--down::before { top: 0; }
.measure__lvl--base::before { top: auto; bottom: 0; }
.measure__tag { position: absolute; left: 18px; top: -8px; display: grid; gap: 2px; white-space: nowrap; }
.measure::after { content: ""; position: absolute; left: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--champagne); }
.measure__tag small { font-size: 10px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--white); }
.measure__tag strong { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.6vw, 72px); line-height: 1; letter-spacing: -0.02em; color: var(--champagne); }
.measure__tag em { font-style: normal; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.closer__facts { display: flex; gap: 40px; padding-top: 22px; border-top: 1px solid var(--line-d); }
.closer__facts div { display: grid; gap: 4px; }
.closer__facts b { font-family: var(--serif); font-size: 28px; font-weight: 400; }
.closer__facts span { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--slate-2); }

/* ==========================================================================
   07 · ENQUIRY
   ========================================================================== */
.enquire { position: relative; background: var(--navy); padding: clamp(110px, 12vw, 180px) var(--gutter); overflow: hidden; isolation: isolate; }
.enquire__bg { position: absolute; inset: 0; z-index: -1; }
.enquire__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: grayscale(.4); }
.enquire__bg::after { content: ""; position: absolute; inset: 0; background:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(90deg, var(--navy) 0%, rgba(7, 18, 29, .86) 45%, rgba(7, 18, 29, .94) 100%); }
.enquire__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.enquire__copy { grid-column: 1 / span 6; display: grid; gap: 28px; position: sticky; top: 140px; }
.enquire__copy .h2 { font-size: clamp(44px, 6.2vw, 100px); line-height: .96; }
.enquire__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.enquire__contact { display: grid; gap: 8px; margin-top: 20px; padding-top: 24px; border-top: 1px solid var(--line-d); font-size: 13px; color: var(--slate-2); max-width: 44ch; }
.form { grid-column: 8 / span 5; display: grid; gap: 6px; padding: clamp(28px, 3vw, 44px); background: rgba(16, 24, 32, .72); border: 1px solid var(--line-d); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.form__title { font-family: var(--serif); font-size: 26px; text-transform: uppercase; letter-spacing: -0.005em; margin-bottom: 14px; }
.field { position: relative; display: grid; padding: 20px 0 6px; }
.field label { font-size: 10.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--slate-2); transition: color .3s; }
.field input, .field select {
  width: 100%; height: 48px; padding: 0; border: 0; border-bottom: 1px solid var(--line-d-strong); border-radius: 0;
  background: transparent; color: var(--white); font: inherit; font-size: 16px; font-weight: 300;
  transition: border-color .4s var(--ease); -webkit-appearance: none; appearance: none;
}
.field select { cursor: pointer; padding-right: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23C5AC7B'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 4px center; }
.field select option { background: var(--charcoal); color: var(--white); }
.field input::placeholder { color: rgba(255, 255, 255, .28); }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--champagne); }
.field:focus-within label { color: var(--champagne); }
.field__line { position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--champagne); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.field:focus-within .field__line { transform: scaleX(1); }
.field__error { min-height: 20px; padding-top: 6px; font-size: 12px; color: #e8a593; opacity: 0; transition: opacity .3s; }
.field.is-invalid input, .field.is-invalid select { border-bottom-color: #d98b77; }
.field.is-invalid label { color: #e8a593; }
.field.is-invalid .field__error { opacity: 1; }
.field.is-valid input { border-bottom-color: rgba(197, 172, 123, .55); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; padding: 16px 0 4px; font-size: 13px; color: var(--slate-2); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1px solid var(--line-d-strong); border-radius: 2px; background: transparent; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--champagne); border-color: var(--champagne); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border-left: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy); transform: translateY(-1px) rotate(-45deg); }
.check.is-invalid input { border-color: #d98b77; }
.form .btn { width: 100%; margin-top: 18px; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form__note { margin-top: 14px; font-size: 12px; line-height: 1.6; color: var(--slate-2); }
.form__status { margin-top: 6px; padding: 18px 20px; border: 1px solid var(--line-d); font-size: 14px; line-height: 1.6; display: none; }
.form__status.is-shown { display: block; }
.form__status.is-info { border-color: rgba(197, 172, 123, .5); background: rgba(197, 172, 123, .07); }
.form__status.is-error { border-color: rgba(217, 139, 119, .6); background: rgba(217, 139, 119, .07); }
.form__status.is-success { border-color: rgba(152, 196, 160, .6); background: rgba(152, 196, 160, .07); }
.form__status strong { display: block; font-weight: 500; margin-bottom: 4px; }
.form__status a { color: var(--champagne); border-bottom: 1px solid currentColor; }

/* mobile enquiry bar */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar {
    position: fixed; z-index: 80; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 8px 8px 8px 18px; border: 1px solid var(--line-d); border-radius: 6px;
    background: rgba(7, 18, 29, .86); -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%);
    transform: translateY(calc(100% + 24px)); opacity: 0; visibility: hidden;
    transition: transform .55s var(--ease-out), opacity .4s var(--ease), visibility 0s linear .55s;
  }
  .mbar.is-shown { transform: none; opacity: 1; visibility: visible; transition: transform .55s var(--ease-out), opacity .4s var(--ease); }
  .mbar__txt { display: grid; gap: 1px; font-size: 12px; line-height: 1.35; color: var(--slate-2); min-width: 0; }
  .mbar__txt b { font-family: var(--serif); font-weight: 400; font-size: 15px; text-transform: uppercase; letter-spacing: .02em; color: var(--white); }
  .mbar__btn { min-height: 44px; padding: 0 20px; flex: none; }
}

/* ==========================================================================
   08 · FOOTER
   ========================================================================== */
.footer { background: var(--charcoal); padding: clamp(80px, 9vw, 130px) var(--gutter) 36px; }
.footer__inner { max-width: var(--max); margin: 0 auto; }
.footer__top { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding-bottom: clamp(60px, 7vw, 100px); border-bottom: 1px solid var(--line-d); }
.footer__brand { grid-column: 1 / span 8; display: grid; gap: 18px; align-content: start; }
.footer__site { grid-column: 10 / span 3; justify-self: end; align-self: end; color: var(--champagne); }
.footer__site .arrow { transition: transform .4s var(--ease-out); }
.footer__site:hover .arrow { transform: translate(2px, -2px); }
.footer .logo--footer { display: block; max-width: none; }
.footer .logo--footer img { height: auto; width: clamp(220px, 40vw, 600px); }
.footer__brand p { font-size: 14px; color: var(--slate-2); max-width: 36ch; }
.footer__cols { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(50px, 6vw, 90px); padding-top: clamp(40px, 4vw, 56px); border-top: 1px solid var(--line-d); }
.footer__cols h4 { font-size: 10.5px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--champagne); margin-bottom: 18px; }
.footer__cols li + li { margin-top: 8px; }
.footer__cols a { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .62); transition: color .3s; display: inline-block; padding: 4px 0; }
.footer__cols a:hover { color: var(--white); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; padding-top: 30px; font-size: 12px; color: var(--slate-2); }
.footer__bottom nav { display: flex; gap: 28px; }
.footer__bottom a:hover { color: var(--white); }
.footer__credits { max-width: 90ch; margin-top: 12px; font-size: 11px; line-height: 1.7; color: var(--slate); }
.footer__credits a { border-bottom: 1px solid currentColor; }
.city__credit { position: absolute; z-index: 3; right: var(--gutter); bottom: 10px; font-size: 9.5px; letter-spacing: .08em; color: rgba(255, 255, 255, .38); }
.no-webgl .city__credit { display: none; }
.footer__disclaimer { max-width: 80ch; font-size: 11.5px; line-height: 1.7; color: var(--slate); margin-top: 22px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .12s; } .reveal-d2 { transition-delay: .24s; } .reveal-d3 { transition-delay: .36s; }
.mask { overflow: hidden; }
.mask > * { transform: translateY(102%); transition: transform 1.3s var(--ease-out); }
.mask.is-in > * { transform: none; }
.clip { clip-path: inset(12% 8% 12% 8%); transition: clip-path 1.6s var(--ease-out); }
.clip.is-in { clip-path: inset(0 0 0 0); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .nav { display: none; }
  .header__cta { display: none; }
  .explore__index { width: min(340px, 40vw); }
  .panel { width: min(380px, 44vw); }
}

/* tablet */
@media (max-width: 1024px) {
  .city { height: 560vh; }
  .rail li { height: 44px; }
  .residence__media { grid-column: 1 / span 7; }
  .residence__copy { grid-column: 8 / span 5; }
  .residence--flip .residence__media { grid-column: 6 / span 7; }
  .residence--flip .residence__copy { grid-column: 1 / span 5; }
  .form { grid-column: 7 / span 6; }
  .enquire__copy { grid-column: 1 / span 6; }

}

/* mobile */
/* ==========================================================================
   PHONES — mobile-first art direction (≤ 760px)
   ========================================================================== */
@media (max-width: 760px) {
  :root { --header-h: 64px; --gutter: max(20px, env(safe-area-inset-left)); }
  body { font-size: 15.5px; }
  .label { font-size: 11px; letter-spacing: .24em; }
  .header { height: calc(64px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
  .header.is-scrolled { height: calc(58px + env(safe-area-inset-top)); }
  .logo img { height: 18px; }
  .header.is-scrolled .logo img { height: 16px; }
  .lede { font-size: 16px; }
  .btn { min-height: 54px; font-size: 11.5px; }

  /* 01 · hero — vertical spire clip, copy anchored to the thumb zone */
  .hero { height: 280vh; }
  .hero__sticky { min-height: 0; }
  .hero__poster img { object-position: 50% 12%; }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(7, 18, 29, .5) 0%, rgba(7, 18, 29, 0) 16%, rgba(7, 18, 29, 0) 42%, rgba(7, 18, 29, .7) 64%, rgba(7, 18, 29, .94) 84%, var(--navy) 100%);
  }
  .hero__inner { align-content: end; gap: 18px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); max-width: none; }
  .hero .display { font-size: clamp(42px, 12.6vw, 60px); max-width: none; }
  .hero .lede { max-width: 32ch; }
  .hero__actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 6px; }
  .hero__actions .btn { width: 100%; }
  .hero__coords { display: none; }
  .hero__scroll { bottom: calc(18px + env(safe-area-inset-bottom)); gap: 10px; }
  .hero__scroll i { height: 30px; }

  /* 02 · immersive city */
  .city { height: 520vh; }
  .city__intro { bottom: calc(92px + env(safe-area-inset-bottom)); right: var(--gutter); gap: 16px; }
  .city__intro .h2 { font-size: clamp(38px, 11vw, 52px); }
  .city__phase {
    top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); font-size: 11px; letter-spacing: .24em;
    opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .7s var(--ease-out);
  }
  .city.is-flying .city__phase { opacity: 1; transform: none; }
  .city.is-flying .city__intro { opacity: 0; transform: translateY(18px); pointer-events: none; }
  .city__intro { transition: opacity .7s var(--ease), transform .8s var(--ease-out); }
  .city__shade {
    background:
      linear-gradient(180deg, rgba(7, 18, 29, .85) 0%, rgba(7, 18, 29, 0) 16%, rgba(7, 18, 29, 0) 58%, rgba(7, 18, 29, .82) 100%);
  }
  .city__live, .city__credit { display: none; }
  .rail {
    top: auto; bottom: calc(28px + env(safe-area-inset-bottom)); left: var(--gutter); right: var(--gutter); transform: none;
    grid-auto-flow: column; grid-template-columns: repeat(5, 1fr);
  }
  .rail::before { left: 3px; right: 3px; top: auto; bottom: 3px; width: auto; height: 1px; }
  .rail__fill { top: auto; bottom: 3px; left: 3px; right: auto; height: 1px; width: calc((100% - 6px) * var(--p, 0)); }
  .rail li { height: auto; padding: 0 0 18px; justify-content: flex-start; font-size: 10px; letter-spacing: .2em; }
  .rail li::after { right: auto; left: 0; top: auto; bottom: 0; margin: 0; }
  .rail li span { display: none; }
  .rail li:last-child { justify-content: flex-end; }
  .rail li:last-child::after { left: auto; right: 0; }
  .anno__in { padding-bottom: 46px; }
  .anno--tall .anno__in { padding-bottom: 64px; }
  .anno__in em { font-size: 13px; }
  .anno--right .anno__in { padding-bottom: 46px; }

  /* 03 · explore — chips on top, markers in the middle, bottom sheet */
  .explore__index {
    top: calc(var(--header-h) + 6px); left: 0; right: 0; width: auto; transform: none; gap: 12px;
    padding: 0 var(--gutter);
  }
  .city.is-explore .explore__index { transform: none; }
  .explore__index::before { inset: -80px 0 -36px 0; background: linear-gradient(180deg, rgba(7, 18, 29, .94) 40%, rgba(7, 18, 29, 0)); }
  .explore__index .label { display: none; }
  .explore__index .h2 { font-size: 32px; transition: opacity .4s var(--ease); }
  .explore__index .body-s { display: none; }
  .city.has-selection .explore__index .h2 { display: none; }
  .city.has-selection .explore__index::before { inset: -80px 0 -24px 0; }
  .places {
    display: flex; gap: 8px; overflow-x: auto; border: 0; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px;
    scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .places::-webkit-scrollbar { display: none; }
  .places li { flex: none; scroll-snap-align: start; }
  .places button {
    width: auto; grid-template-columns: auto auto; min-height: 44px; padding: 0 16px; gap: 8px;
    border: 1px solid var(--line-d-strong); border-radius: 22px; font-size: 10.5px; letter-spacing: .16em; background: rgba(7, 18, 29, .7);
  }
  .places button svg { display: none; }
  .places button[aria-pressed="true"] { border-color: var(--champagne); background: var(--champagne); color: var(--navy); }
  .places button[aria-pressed="true"] span:first-child { color: var(--navy); }
  .marker__label { display: none; }
  .marker.is-selected .marker__label { display: block; }
  .panel {
    left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: min(64%, 560px);
    transform: translateY(40px); border: 0; border-top: 1px solid var(--line-d); border-radius: 14px 14px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .panel.is-open { transform: none; }
  .panel__grip { display: block; position: absolute; z-index: 3; left: 50%; top: 8px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: rgba(255, 255, 255, .45); }
  .panel__media { aspect-ratio: 16 / 6.5; border-radius: 14px 14px 0 0; }
  .panel__close { top: 14px; right: 12px; border-radius: 50%; }
  .panel__body { padding: 18px var(--gutter) 20px; gap: 10px; }
  .panel__body .h3 { font-size: 26px; }
  .explore__hint { bottom: calc(22px + env(safe-area-inset-bottom)); white-space: normal; text-align: center; width: 80%; font-size: 10.5px; }

  /* 04 · residences */
  .residences { padding-top: 96px; padding-bottom: 72px; }
  .residences__head, .living__head { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .residences__head > *, .living__head > * { grid-column: 1 / -1 !important; }
  .residences__head .h2 { font-size: clamp(42px, 12.5vw, 60px); }
  .residence { grid-template-columns: 1fr; gap: 24px; padding: 30px 0 44px; }
  .residence__media, .residence--flip .residence__media { grid-column: 1; grid-row: 1; aspect-ratio: 4 / 5; margin: 0 calc(-1 * var(--gutter)); }
  .residence__copy, .residence--flip .residence__copy { grid-column: 1; grid-row: 2; gap: 18px; }
  .residence .link { min-height: 44px; }

  /* 05 · living */
  .living { padding-top: 96px; }
  .living__head .h2 { font-size: clamp(40px, 12vw, 58px); }
  .living__wide { height: 64vh; }
  .living__grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 14px; }
  .tile { grid-column: 1 !important; grid-row: auto !important; aspect-ratio: 4 / 5; }
  .tile--b { aspect-ratio: 4 / 3; }
  .tile--d, .tile--e { aspect-ratio: 1 / 1; }
  .tile--text { aspect-ratio: auto; padding: 18px 0 8px; }
  .living__strip { grid-template-columns: 1fr 1fr; gap: 0; }
  .living__strip div { padding: 22px 12px 22px 0; }
  .living__strip div + div { border-left: 0; padding-left: 0; }
  .living__strip div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line-d); }
  .living__strip div:nth-child(n+3) { border-top: 1px solid var(--line-d); }

  /* 06 · closer perspective */
  .closer { height: 160vh; }
  .closer__inner { grid-template-columns: 1fr; align-items: end; padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .closer__copy { grid-column: 1; gap: 18px; }
  .closer__copy .h2 { font-size: clamp(38px, 11vw, 52px); }
  .closer__copy p { font-size: 15px; }
  .closer__shade { background: linear-gradient(180deg, rgba(16, 24, 32, .35), rgba(16, 24, 32, 0) 26%, rgba(16, 24, 32, .55) 50%, rgba(16, 24, 32, .96) 78%); }
  .measure { right: var(--gutter); left: auto; top: calc(var(--header-h) + 112px); bottom: 50%; width: 112px; }
  .measure__tag { top: -96px; left: 0; }
  .measure::after { top: -3px; }
  .measure__tag strong { font-size: 40px; }
  .measure__lvl--base { display: none; }
  .measure__lvl { font-size: 0; padding-left: 14px; }
  .measure__lvl b { font-size: 13px; }
  .closer__facts { gap: 26px; }
  .closer__facts b { font-size: 22px; }

  /* 07 · enquiry */
  .enquire { padding-top: 96px; padding-bottom: 80px; }
  .enquire__inner { grid-template-columns: 1fr; gap: 44px; }
  .enquire__copy { grid-column: 1; position: static; gap: 22px; }
  .enquire__copy .h2 { font-size: clamp(42px, 12.4vw, 60px); }
  .enquire__actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .enquire__actions .btn { width: 100%; }
  .form { grid-column: 1; margin: 0 calc(-1 * var(--gutter)); border-left: 0; border-right: 0; padding: 32px var(--gutter); }
  .check { padding: 14px 0 6px; min-height: 44px; }

  /* 08 · footer */
  .footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .footer__top { grid-template-columns: 1fr; }
  .footer__brand { grid-column: 1; }
  .footer .logo--footer img { width: min(100%, 300px); }
  .footer__site { grid-column: 1; justify-self: start; min-height: 44px; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer__cols li + li { margin-top: 0; }
  .footer__cols a { display: flex; align-items: center; min-height: 44px; padding: 0; letter-spacing: .14em; font-size: 10.5px; line-height: 1.4; }
  .footer__bottom { flex-direction: column; }
  .footer__bottom nav a { display: inline-flex; align-items: center; min-height: 44px; }

  /* menu */
  .menu { padding-bottom: calc(40px + env(safe-area-inset-bottom)); overflow-y: auto; }
  .menu__list a { font-size: clamp(34px, 10vw, 48px); padding: 12px 0; }

  .hide-m { display: none; }
  .show-m { display: inline; }
}

/* phone held sideways: keep the hero and stages usable on very short screens */
@media (max-height: 520px) and (orientation: landscape) {
  .hero__sticky { min-height: 0; }
  .hero__inner { padding-bottom: 44px; gap: 12px; }
  .hero .display { font-size: clamp(32px, 9vh, 48px); }
  .hero .lede, .hero__scroll, .hero__coords { display: none; }
  .hero__actions .btn { min-height: 44px; }
  .city__intro .h2, .explore__index .h2 { font-size: 30px; }
  .city__intro .lede, .explore__index .body-s, .city__phase { display: none; }
  .rail li { height: 30px; }
  .explore__index { top: calc(var(--header-h) + 6px); transform: none; gap: 10px; }
  .city.is-explore .explore__index { transform: none; }
  .places button { min-height: 36px; }
  .panel { max-height: calc(100% - var(--header-h) - 16px); top: calc(var(--header-h) + 8px); transform: translate(24px, 0); }
  .panel.is-open { transform: none; }
  .panel__media { aspect-ratio: 16 / 6; }
}

/* reduced motion: static, crossfade-only experience */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
  .hero { height: auto; }
  .rise { opacity: 1; transform: none; animation: none; }
  .reveal, .mask > *, .clip { opacity: 1; transform: none; clip-path: none; }
  .marker__dot::after { display: none; }
  [data-parallax] img, .residence__media img, .tile img, .living__wide img { transform: none !important; }
  .closer__media img { transform: none !important; }
}
