/* ==========================================================================
   RealStateHubs Dubai — Design System & Scroll Story Styles
   Theme progression: Golden-hour sand (#F5EFE6) -> Twilight -> Night (#07101B)
   ========================================================================== */

:root {
  /* Core palette tokens */
  --navy: #0D1B2A;
  --navy-deep: #07101B;
  --navy-mid: #142538;
  --navy-soft: #1B3047;
  --sand: #F5EFE6;
  --paper: #FAF7F2;
  --sand-deep: #E9DFCF;
  --gold: #C69749;
  --gold-bright: #DDB468;
  --gold-text: #845B1A;
  --gold-ink: #0A1420;
  --ivory: #F4EFE6;
  --ivory-muted: #C0CAD6;
  --ink-dark: #0D1B2A;
  --ink-muted: #435061;
  --good: #2A7B56;
  --bad: #B83A3A;
  --bad-light: #FF8E8E;

  /* Dynamic atmospheric page tokens (tweened by ScrollTrigger) */
  --atmo-bg: #182B40;
  --atmo-card: #20364F;
  --atmo-ink: #F4EFE6;
  --atmo-muted: #C2CCD8;
  --atmo-line: rgba(244, 239, 230, 0.14);
  --page-bg: #F5EFE6;
  --page-ink: #0D1B2A;
  --page-muted: #435061;
  --page-line: rgba(13, 27, 42, 0.14);

  /* Typography */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout & Motion */
  --gutter: clamp(18px, 4.2vw, 64px);
  --max-w: 1360px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scrollbar-color: var(--gold) var(--navy-deep);
  scrollbar-width: thin;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background-color: var(--page-bg);
  color: var(--page-ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  accent-color: var(--gold);
  caret-color: var(--gold);
}

::selection {
  background: var(--gold);
  color: var(--gold-ink);
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--navy-deep); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 999px; }

section[id] { scroll-margin-top: 84px; }
#ascent, #projects { scroll-margin-top: 0; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 4px; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
p { margin: 0; }
button, input, select { font-family: inherit; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 400;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 16px; }

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.num-tab { font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 180ms var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-accent {
  background: var(--gold);
  color: var(--gold-ink);
}
.btn-accent:hover { background: var(--gold-bright); }
.btn-ghost-light {
  border-color: rgba(244, 239, 230, 0.36);
  background: rgba(13, 27, 42, 0.28);
  color: var(--ivory);
}
.btn-ghost-light:hover {
  border-color: var(--gold-bright);
  background: rgba(13, 27, 42, 0.56);
}
.btn-ghost-dark {
  border-color: rgba(13, 27, 42, 0.26);
  background: transparent;
  color: var(--navy);
}
.btn-ghost-dark:hover {
  border-color: var(--navy);
  background: rgba(13, 27, 42, 0.06);
}
.btn-navy {
  background: var(--navy);
  color: var(--ivory);
}
.btn-navy:hover { background: var(--navy-soft); }

/* ==========================================================================
   Preloader (<= 1.6s, skipped on repeat visit or reduced motion)
   ========================================================================== */
.skip-pl .preloader { display: none !important; }
.preloader {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: var(--navy-deep);
  color: var(--ivory);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.pl-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
  padding: 24px;
}
.pl-wordmark {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  overflow: hidden;
}
.pl-wordmark span { display: inline-block; }
.pl-rule {
  width: 140px;
  height: 1px;
  background: rgba(244, 239, 230, 0.18);
  overflow: hidden;
  position: relative;
}
.pl-rule i {
  position: absolute;
  inset: 0;
  background: var(--gold-bright);
  transform-origin: left center;
  transform: scaleX(0);
}
.pl-sub {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-muted);
}

/* ==========================================================================
   Floating Glass Pill Nav
   ========================================================================== */
.nav-shell {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 120;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  padding: 6px 8px 6px 20px;
  border-radius: var(--radius-pill);
  background: rgba(13, 27, 42, 0.72);
  border: 1px solid rgba(244, 239, 230, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--ivory);
  box-shadow: 0 12px 32px rgba(7, 16, 27, 0.24);
  max-width: 100%;
}
.nav-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ivory);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 22px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ivory-muted);
  padding: 8px 4px;
  transition: color 160ms var(--ease-out);
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--ivory); }
.nav-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-lang {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ivory-muted);
  padding: 4px 8px;
  border-left: 1px solid rgba(244, 239, 230, 0.16);
}
.nav-cta {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.82rem;
}
.nav-menu-btn {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(244, 239, 230, 0.22);
  background: rgba(244, 239, 230, 0.08);
  color: var(--ivory);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-links, .nav-lang { display: none; }
  .nav-pill {
    width: 100%;
    justify-content: space-between;
    padding: 6px 6px 6px 16px;
    gap: 8px;
  }
  .nav-cta { min-height: 44px; padding: 0 14px; font-size: 0.8rem; }
  .nav-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
}

/* Mobile sheet dialog */
dialog.mobile-sheet {
  margin: 0;
  width: 100vw;
  max-width: 100vw;
  height: auto;
  border: 0;
  border-bottom: 1px solid rgba(244, 239, 230, 0.16);
  background: rgba(7, 16, 27, 0.96);
  color: var(--ivory);
  padding: 24px var(--gutter) 32px;
  backdrop-filter: blur(18px);
}
dialog.mobile-sheet::backdrop { background: rgba(7, 16, 27, 0.6); }
.ms-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.ms-close {
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(244, 239, 230, 0.24);
  background: transparent;
  color: var(--ivory);
  font-size: 1.3rem;
  cursor: pointer;
}
.ms-links {
  display: grid;
  gap: 4px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.ms-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--serif);
  font-size: 1.6rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 239, 230, 0.1);
}

/* ==========================================================================
   1. HERO "Sunrise fly-in" (pinned on desktop): light sky, floating glimpses,
      the aerial opens from the centre, then the camera dives at the tower
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--paper);
  color: var(--navy);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #E8D6C6 0%, #F1E3D6 34%, #F6EDE3 66%, var(--paper) 100%);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  clip-path: inset(50% 50% 50% 50% round 18px);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  will-change: transform;
}

.hero-clouds {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.cloud-bank {
  position: absolute;
  inset: -12%;
  pointer-events: none;
  will-change: transform, opacity;
  filter: blur(18px);
}
.cloud-bank.c-top {
  background:
    radial-gradient(ellipse 30% 22% at 14% 12%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 244, 0.55) 46%, transparent 74%),
    radial-gradient(ellipse 26% 16% at 42% 8%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 248, 240, 0.4) 50%, transparent 76%),
    radial-gradient(ellipse 30% 22% at 86% 12%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 244, 0.55) 46%, transparent 75%);
}
.cloud-bank.c-left {
  background:
    radial-gradient(ellipse 26% 22% at 8% 40%, rgba(255, 255, 255, 0.9) 0%, rgba(252, 246, 238, 0.5) 48%, transparent 76%),
    radial-gradient(ellipse 24% 18% at 16% 64%, rgba(255, 252, 247, 0.75) 0%, transparent 74%);
}
.cloud-bank.c-right {
  background:
    radial-gradient(ellipse 28% 22% at 92% 40%, rgba(255, 255, 255, 0.9) 0%, rgba(252, 246, 238, 0.5) 48%, transparent 76%),
    radial-gradient(ellipse 24% 18% at 84% 66%, rgba(255, 252, 247, 0.75) 0%, transparent 74%);
}
.cloud-bank.c-low {
  background:
    radial-gradient(ellipse 40% 16% at 50% 96%, rgba(255, 255, 255, 0.85) 0%, rgba(250, 247, 242, 0.5) 50%, transparent 78%),
    radial-gradient(ellipse 30% 14% at 18% 92%, rgba(255, 255, 255, 0.7) 0%, transparent 74%),
    radial-gradient(ellipse 30% 14% at 82% 92%, rgba(255, 255, 255, 0.7) 0%, transparent 74%);
}
html.reduced .hero-clouds { display: none !important; }

.hero-floats {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.hf {
  position: absolute;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 34px 60px -32px rgba(13, 27, 42, 0.5);
  will-change: transform, opacity;
}
.hf-1 { width: clamp(150px, 14vw, 220px); aspect-ratio: 4 / 5; left: 6%; top: 17%; }
.hf-2 { width: clamp(180px, 17vw, 270px); aspect-ratio: 4 / 3; right: 6%; top: 15%; }
.hf-3 { width: clamp(170px, 16vw, 250px); aspect-ratio: 4 / 3; left: 9%; bottom: 9%; }
.hf-4 { width: clamp(130px, 11vw, 180px); aspect-ratio: 3 / 4; right: 11%; bottom: 8%; }

/* End of the dive: dissolves to night so the ascent's tower view continues the same shot. */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: var(--navy-deep);
  opacity: 0;
}

.hero-inner {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: clamp(104px, 13vh, 140px) 0 clamp(40px, 7vh, 72px);
}
.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 14ch;
  color: var(--navy);
  text-wrap: balance;
}
.hero h1 .script {
  font-family: "Pinyon Script", cursive;
  font-weight: 400;
  letter-spacing: 0;
  font-size: 1.12em;
  color: #8A6123; /* deep gold: 4.6:1 on the sky, so the accent word stays legible */
  padding: 0 0.06em;
}
.hero-sub {
  margin: 20px auto 0;
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px clamp(28px, 4vw, 56px);
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(13, 27, 42, 0.14);
}
.hero-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--navy);
}
.hero-stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--ink-muted);
}
.scroll-cue {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--ink-muted);
}
.scroll-cue i {
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

@media (max-width: 900px) {
  .hero { align-items: flex-start; }
  .hero-floats { display: none; }
  /* phone: no pinned fly-in; the aerial sits as a card under the copy */
  .hero-media {
    inset: auto 16px 16px 16px;
    height: 34svh;
    border-radius: 18px;
    clip-path: none;
  }
  .hero-inner { padding: 104px 0 calc(34svh + 40px); }
  .hero-stats { margin-top: 28px; }
}

/* ==========================================================================
   2. BUDGET EXPLORER (Signature #1)
   ========================================================================== */
.budgets {
  padding: clamp(72px, 10vw, 128px) 0;
  background: var(--sand);
  color: var(--navy);
  border-bottom: 1px solid rgba(13, 27, 42, 0.1);
}
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.sec-head h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  line-height: 1.04;
}
.sec-head p {
  color: var(--ink-muted);
  max-width: 52ch;
}

.budget-panel {
  background: var(--paper);
  border: 1px solid rgba(13, 27, 42, 0.12);
  border-radius: var(--radius-md);
  padding: clamp(20px, 3.5vw, 44px);
}
.budget-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(13, 27, 42, 0.1);
}
.tab-group, .curr-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(13, 27, 42, 0.18);
  background: transparent;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.chip-btn:hover { border-color: var(--navy); }
.chip-btn[aria-selected="true"],
.chip-btn[aria-pressed="true"],
.chip-btn.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--ivory);
}
.curr-group .chip-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-ink);
}

.budget-goals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.goal-chip {
  min-height: 44px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(13, 27, 42, 0.18);
  background: var(--sand);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 160ms var(--ease-out);
}
.goal-chip:hover { border-color: var(--navy); }
.goal-chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--ivory);
}

.budget-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: 32px;
}
.budget-readout-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.budget-figure {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.8vw, 3.45rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--navy);
  white-space: nowrap;
}
.budget-context {
  margin-top: 12px;
  font-size: 0.94rem;
  color: var(--ink-muted);
}
.budget-cta-wrap { margin-top: 24px; }

.budget-bars {
  display: grid;
  gap: 16px;
}
.bbar-row {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.bbar-row:hover { background: rgba(13, 27, 42, 0.04); }
.bbar-row.is-active {
  background: var(--sand);
  border-color: rgba(13, 27, 42, 0.14);
}
.bbar-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.88rem;
}
.bbar-name { font-weight: 600; color: var(--navy); }
.bbar-val { font-weight: 700; color: var(--gold-text); white-space: nowrap; }
.bbar-track {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(13, 27, 42, 0.1);
  overflow: hidden;
}
.bbar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--navy);
  transition: width 480ms var(--ease-out), background-color 200ms var(--ease-out);
}
.bbar-row.is-active .bbar-fill { background: var(--gold); }

@media (max-width: 900px) {
  .sec-head { grid-template-columns: 1fr; }
  .budget-stage { grid-template-columns: 1fr; }
}

/* ==========================================================================
   3. THE ASCENT (Signature #2 — Zone Picker + 6-Stop Elevator Ride)
   ========================================================================== */
.ascent {
  position: relative;
  background: var(--navy-deep);
  color: var(--ivory);
  overflow-x: clip;
}
.ascent-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--navy-deep);
}

/* Atmospheric time-of-day overlay across the ascent */
.ascent-grade {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(13, 27, 42, 0.25) 0%, rgba(7, 16, 27, 0.15) 55%, rgba(7, 16, 27, 0.72) 100%);
  transition: opacity 200ms linear;
}
.ascent-night-wash {
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(16, 34, 62, 0.28), rgba(7, 16, 27, 0.62));
  opacity: 0;
}

/* Individual stops inside desktop pinned stage */
.ascent-scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  will-change: transform, clip-path, opacity;
}
.ascent-scene[data-scene="0"] {
  z-index: 2;
  background: #0D1B2A;
}
.tower-sky-bg {
  position: absolute;
  inset: -48px;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.tower-sky-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(48px) saturate(1.12) brightness(0.68);
  transform: scale(1.16);
}
.tower-sky-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 27, 0.72) 0%, rgba(13, 27, 42, 0.25) 45%, rgba(7, 16, 27, 0.42) 100%),
    linear-gradient(180deg, rgba(7, 16, 27, 0.34) 0%, transparent 32%, transparent 72%, rgba(7, 16, 27, 0.72) 100%);
}
.ascent-scene[data-scene="1"] { z-index: 3; }
.ascent-scene[data-scene="2"] { z-index: 4; }
.ascent-scene[data-scene="3"] { z-index: 5; }
.ascent-scene[data-scene="4"] { z-index: 6; }
.ascent-scene[data-scene="5"] { z-index: 7; }
.ascent-scene[data-scene="6"] { z-index: 8; }
.ascent-scene-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.ascent-scene-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 16, 27, 0.45) 0%, rgba(7, 16, 27, 0.08) 36%, rgba(7, 16, 27, 0.22) 68%, rgba(7, 16, 27, 0.84) 100%),
    linear-gradient(90deg, rgba(7, 16, 27, 0.52) 0%, transparent 45%);
}

/* Zone Picker intro (Scene 0): Full-height hero tower + left glass card */
.tower-picker-layout {
  position: relative;
  z-index: 4;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.tower-card {
  position: relative;
  z-index: 6;
  background: rgba(13, 27, 42, 0.72);
  border: 1px solid rgba(244, 239, 230, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-md);
  padding: clamp(20px, 2.5vw, 30px);
  width: min(100%, 405px);
  box-shadow: 0 24px 60px rgba(7, 16, 27, 0.45);
}
.tower-card h2 {
  font-size: clamp(2rem, 3.3vw, 2.85rem);
  line-height: 1.04;
  color: var(--ivory);
}
.tower-card-sub {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--ivory-muted);
}
.zone-detail {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(244, 239, 230, 0.16);
}
.zone-detail-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--gold-bright);
}
.zone-detail-desc {
  margin-top: 6px;
  font-size: 0.96rem;
  color: var(--ivory);
}
.zone-btn-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.zone-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(244, 239, 230, 0.14);
  background: rgba(244, 239, 230, 0.04);
  color: var(--ivory);
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.zone-pill:hover,
.zone-pill.is-active {
  border-color: var(--gold-bright);
  background: rgba(198, 151, 73, 0.16);
}
.zone-pill span:last-child {
  font-size: 0.76rem;
  color: var(--gold-bright);
  white-space: nowrap;
}
.tower-note {
  margin-top: 14px;
  font-size: 0.76rem;
  color: var(--ivory-muted);
}

.tower-visual {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding-left: clamp(260px, 24vw, 390px);
  padding-right: clamp(72px, 8vw, 130px);
  pointer-events: none;
}
.tower-frame {
  position: relative;
  height: 100%;
  aspect-ratio: 590 / 1200;
  max-width: 100%;
  pointer-events: auto;
}
.tower-hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.tower-bands {
  position: absolute;
  inset: 0;
  z-index: 4;
}
.tower-band {
  position: absolute;
  left: -16%;
  right: -16%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--ivory);
}
.tower-band:focus-visible {
  outline: none;
}
.tower-band-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255, 224, 165, 0.16) 28%,
    rgba(255, 236, 194, 0.34) 50%,
    rgba(255, 224, 165, 0.16) 72%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  transition: opacity 200ms var(--ease-out);
}
.tower-band-line {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(244, 239, 230, 0.34) 18%, rgba(244, 239, 230, 0.34) 82%, transparent 100%);
  transition: background 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.tower-band-label {
  position: relative;
  z-index: 2;
  transform: translateX(calc(100% - 14%));
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(7, 16, 27, 0.72);
  border: 1px solid rgba(244, 239, 230, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ivory-muted);
  transition: border-color 180ms var(--ease-out), color 180ms var(--ease-out), background-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.tower-band:hover .tower-band-glow,
.tower-band:focus-visible .tower-band-glow,
.tower-band.is-active .tower-band-glow {
  opacity: 1;
}
.tower-band:hover .tower-band-line,
.tower-band:focus-visible .tower-band-line,
.tower-band.is-active .tower-band-line {
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 232, 185, 0.95) 18%, rgba(255, 232, 185, 0.95) 82%, transparent 100%);
  box-shadow: 0 0 14px rgba(221, 180, 104, 0.75);
}
.tower-band:hover .tower-band-label,
.tower-band:focus-visible .tower-band-label,
.tower-band.is-active .tower-band-label {
  border-color: var(--gold-bright);
  background: rgba(13, 27, 42, 0.92);
  color: var(--gold-bright);
}
.tower-band:focus-visible .tower-band-label {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

/* Hotspots on photo (Ref 2 signature detail) */
.hotspot {
  position: absolute;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}
.ascent-scene.is-settled .hotspot {
  opacity: 1;
  transform: translateY(0);
}
.hotspot-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(221, 180, 104, 0.28);
  flex: none;
}
.hotspot-line {
  width: 28px;
  height: 1px;
  background: rgba(244, 239, 230, 0.72);
  flex: none;
}
.hotspot-tag {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(7, 16, 27, 0.76);
  border: 1px solid rgba(244, 239, 230, 0.24);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory);
  white-space: nowrap;
}

/* HUD: Right-edge LEVEL RAIL + Bottom-right Rolling Label + Attribution */
.ascent-hud {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}
.level-rail {
  pointer-events: auto;
  position: absolute;
  right: clamp(12px, 2.2vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 6px;
}
.level-rail::before {
  content: "";
  position: absolute;
  right: 17px;
  top: 26px;
  bottom: 26px;
  width: 1px;
  background: rgba(244, 239, 230, 0.22);
}
.rail-marker {
  position: absolute;
  right: 14px;
  top: 24px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px rgba(221, 180, 104, 0.8);
  transition: transform 320ms var(--ease-out);
  pointer-events: none;
}
.rail-stop {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 44px;
  min-height: 44px;
  justify-content: flex-end;
  padding: 0 10px 0 8px;
  border: 0;
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
}
.rail-stop-label {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(7, 16, 27, 0.82);
  border: 1px solid rgba(244, 239, 230, 0.16);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.rail-stop:hover .rail-stop-label,
.rail-stop:focus-visible .rail-stop-label,
.rail-stop.is-active .rail-stop-label {
  opacity: 1;
  transform: translateX(0);
}
.rail-tick {
  width: 11px;
  height: 1px;
  background: rgba(244, 239, 230, 0.45);
  transition: width 180ms var(--ease-out), background-color 180ms var(--ease-out);
}
.rail-stop.is-active .rail-tick {
  width: 20px;
  height: 2px;
  background: var(--gold-bright);
}

.ascent-bottom-bar {
  position: absolute;
  left: var(--gutter);
  right: clamp(56px, 8vw, 110px);
  bottom: clamp(20px, 4vh, 38px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.ascent-caption {
  pointer-events: auto;
  font-size: 0.82rem;
  color: rgba(244, 239, 230, 0.84);
  background: rgba(7, 16, 27, 0.54);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(244, 239, 230, 0.14);
}
.stop-roller {
  text-align: right;
  overflow: hidden;
  height: clamp(3rem, 5.2vw, 4.5rem);
}
.stop-roller-track {
  transition: transform 420ms var(--ease-expo);
}
.stop-roller-item {
  height: clamp(3rem, 5.2vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.6vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ivory);
  text-shadow: 0 4px 24px rgba(7, 16, 27, 0.7);
}

/* Mobile & Reduced Motion Ascent: non-pinned vertical story (never traps touch) */
.ascent-mobile-stack { display: none; }
@media (max-width: 900px) {
  .ascent-stage { display: none; }
  .ascent-mobile-stack {
    display: block;
    padding: 0;
  }

  /* Full-width tower hero + tappable bands >= 44px, card below */
  .am-tower-hero {
    background: var(--navy-deep);
  }
  .am-tower-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 590 / 1200;
    overflow: hidden;
    background: #0D1B2A;
  }
  .am-tower-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .tower-bands--mobile .tower-band {
    left: 0;
    right: 0;
    min-height: 44px;
    padding-right: 14px;
  }
  .tower-bands--mobile .tower-band-line {
    left: 0;
    right: 0;
  }
  .tower-bands--mobile .tower-band-label {
    transform: none;
  }

  .am-zone-card {
    margin: -28px var(--gutter) 28px;
    position: relative;
    z-index: 6;
    background: rgba(13, 27, 42, 0.88);
    border: 1px solid rgba(244, 239, 230, 0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    padding: 20px;
  }
  .am-zone-card h2 { font-size: 1.9rem; color: var(--ivory); }

  /* Full-bleed ~85svh stops + sticky slim right LEVEL RAIL + sticky bottom-left label */
  .am-stops-wrap {
    position: relative;
    /* clip both axes: the sticky rail's -100svh margin lets it hang below the wrapper otherwise, over
       the Step inside card. clip (not hidden) keeps position: sticky working. */
    overflow: clip;
  }
  .am-rail-sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    margin-bottom: -100svh;
    z-index: 25;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 4px;
  }
  .am-rail {
    pointer-events: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 10px 4px;
    border-radius: var(--radius-pill);
    background: rgba(7, 16, 27, 0.36);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .am-rail::before {
    content: "";
    position: absolute;
    right: 17px;
    top: 28px;
    bottom: 28px;
    width: 1px;
    background: rgba(244, 239, 230, 0.28);
  }
  .am-rail-marker {
    position: absolute;
    right: 14px;
    top: 28px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold-bright);
    box-shadow: 0 0 10px rgba(221, 180, 104, 0.85);
    transition: transform 280ms var(--ease-out);
    pointer-events: none;
  }
  .am-rail-stop {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 44px;
    min-height: 44px;
    padding: 0 10px 0 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .am-rail-tick {
    width: 10px;
    height: 1.5px;
    background: rgba(244, 239, 230, 0.5);
    transition: width 180ms var(--ease-out), background-color 180ms var(--ease-out);
  }
  .am-rail-stop.is-active .am-rail-tick {
    width: 18px;
    height: 2px;
    background: var(--gold-bright);
  }

  .am-stop {
    position: relative;
    width: 100%;
    height: 54svh;
    min-height: 520px;
    overflow: clip;
    background: var(--navy-deep);
    border-top: 1px solid rgba(244, 239, 230, 0.08);
  }
  .am-stop-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: transform;
  }
  .am-stop-scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(7, 16, 27, 0.28) 0%, rgba(7, 16, 27, 0.08) 38%, rgba(7, 16, 27, 0.42) 72%, rgba(7, 16, 27, 0.88) 100%),
      linear-gradient(90deg, rgba(7, 16, 27, 0.54) 0%, transparent 62%);
  }
  .am-stop[data-stop="3"] .am-stop-scrim {
    background:
      linear-gradient(180deg, rgba(10, 22, 42, 0.34) 0%, rgba(10, 22, 42, 0.14) 38%, rgba(7, 16, 27, 0.52) 72%, rgba(7, 16, 27, 0.9) 100%),
      linear-gradient(90deg, rgba(7, 16, 27, 0.58) 0%, transparent 62%);
  }
  .am-stop[data-stop="4"] .am-stop-scrim,
  .am-stop[data-stop="5"] .am-stop-scrim {
    background:
      linear-gradient(180deg, rgba(10, 24, 48, 0.42) 0%, rgba(10, 24, 48, 0.22) 38%, rgba(7, 16, 27, 0.62) 72%, rgba(7, 16, 27, 0.92) 100%),
      linear-gradient(90deg, rgba(7, 16, 27, 0.6) 0%, transparent 62%);
  }
  .am-stop[data-stop="6"] .am-stop-scrim {
    background:
      linear-gradient(180deg, rgba(7, 16, 27, 0.48) 0%, rgba(7, 16, 27, 0.24) 40%, rgba(7, 16, 27, 0.68) 74%, rgba(7, 16, 27, 0.94) 100%),
      linear-gradient(90deg, rgba(7, 16, 27, 0.64) 0%, transparent 64%);
  }
  .am-stop.is-settled .hotspot {
    opacity: 1;
    transform: translateY(0);
  }
  .am-stop-label-pin {
    position: absolute;
    inset: 84px 54px 20px 18px;
    z-index: 12;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
  }
  .am-stop-label {
    position: sticky;
    bottom: 20px;
    align-self: flex-end;
  }
  .am-stop-title {
    font-family: var(--serif);
    font-size: clamp(2.1rem, 8.5vw, 2.8rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--ivory);
    text-shadow: 0 4px 20px rgba(7, 16, 27, 0.8);
  }
  .am-stop-sub {
    display: block;
    margin-top: 6px;
    font-size: 0.74rem;
    color: rgba(244, 239, 230, 0.84);
  }
}

html.reduced .ascent-stage { display: none; }
html.reduced .ascent-mobile-stack {
  display: grid;
  gap: 28px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px var(--gutter);
}
html.reduced .am-rail-sticky { display: none; }
html.reduced .am-tower-frame {
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 590 / 1200;
}
html.reduced .am-zone-card {
  margin: 20px 0 0;
  background: rgba(13, 27, 42, 0.85);
  border: 1px solid rgba(244, 239, 230, 0.16);
  border-radius: var(--radius-md);
  padding: 20px;
}
html.reduced .am-stops-wrap {
  display: grid;
  gap: 24px;
}
html.reduced .am-stop {
  position: relative;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
}
html.reduced .am-stop .hotspot {
  opacity: 1;
  transform: none;
}
html.reduced .am-stop-label-pin {
  position: absolute;
  inset: 16px;
  display: flex;
  align-items: flex-end;
}
html.reduced .am-stop-label { position: static; }
html.reduced .am-stop-title {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--ivory);
}
html.reduced .am-stop-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--ivory-muted);
}

/* ==========================================================================
   4. STEP INSIDE (Signature #3 — Time-of-Day Slider + Plan Viewer)
   ========================================================================== */
.inside {
  position: relative;
  background: var(--navy-deep);
  color: var(--ivory);
  padding: clamp(48px, 6vw, 84px) 0;
}
.inside-room {
  position: relative;
  min-height: clamp(560px, 84vh, 840px);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(244, 239, 230, 0.14);
  --tod: 0;
}
.inside-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(calc(1 - var(--tod) * 0.34)) contrast(calc(1 + var(--tod) * 0.12)) saturate(calc(1 - var(--tod) * 0.14));
  transition: filter 120ms linear;
}
/* Golden-hour warmth -> Night sky indigo + warm lamp pools */
.inside-golden {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 65% at 60% 35%, rgba(255, 196, 120, 0.24), transparent 70%);
  mix-blend-mode: soft-light;
  opacity: calc(1 - var(--tod));
}
.inside-twilight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 27, 58, 0.84) 0%, rgba(15, 32, 66, 0.56) 54%, rgba(8, 16, 30, 0.78) 100%);
  mix-blend-mode: multiply;
  opacity: calc(var(--tod) * 0.92);
}
.inside-lamps {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 220px at 56% 24%, rgba(255, 206, 130, 0.48), transparent 72%),
    radial-gradient(circle 190px at 78% 58%, rgba(255, 186, 102, 0.34), transparent 72%),
    radial-gradient(circle 170px at 36% 64%, rgba(255, 194, 118, 0.24), transparent 72%);
  mix-blend-mode: screen;
  opacity: calc(var(--tod) * 0.95);
}

.inside-card {
  position: absolute;
  left: clamp(16px, 3vw, 36px);
  bottom: clamp(16px, 3vw, 36px);
  z-index: 5;
  width: min(calc(100% - 32px), 390px);
  padding: clamp(20px, 2.5vw, 28px);
  border-radius: var(--radius-md);
  background: rgba(11, 22, 36, 0.78);
  border: 1px solid rgba(244, 239, 230, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.inside-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  min-height: 44px;
  background: none;
  border: 0;
  color: var(--ivory-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.inside-back:hover { color: var(--gold-bright); }
.inside-card h2 {
  margin-top: 4px;
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  color: var(--ivory);
}
.inside-loc {
  margin-top: 4px;
  font-size: 0.86rem;
  color: var(--ivory-muted);
}
.tod-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(244, 239, 230, 0.16);
}
.tod-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.tod-head label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ivory-muted);
}
.tod-time {
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--gold-bright);
}
.tod-slider {
  width: 100%;
  margin: 12px 0 6px;
  min-height: 36px;
  cursor: pointer;
}
.tod-ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--ivory-muted);
}
.inside-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Plan Viewer */
.plan-viewer {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 0.64fr);
  gap: 24px;
  background: var(--navy-mid);
  border: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: var(--radius-md);
  padding: clamp(18px, 3vw, 32px);
}
.plan-viewer[hidden] { display: none; }
.plan-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.plan-side h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  color: var(--ivory);
}
.plan-side p {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--ivory-muted);
}
.plan-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.plan-thumb {
  padding: 6px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(244, 239, 230, 0.18);
  background: var(--paper);
  cursor: pointer;
  display: grid;
  gap: 4px;
  justify-items: center;
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 600;
}
.plan-thumb img {
  width: 100%;
  height: 54px;
  object-fit: contain;
}
.plan-thumb.is-active {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 2px var(--gold-bright);
}
.plan-canvas-wrap {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-sm);
  height: clamp(360px, 56vh, 560px);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  display: grid;
  place-items: center;
}
.plan-canvas-wrap:active { cursor: grabbing; }
.plan-canvas-wrap img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  pointer-events: none;
  will-change: transform;
}
.plan-zoom-bar {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 6px;
  background: rgba(13, 27, 42, 0.88);
  padding: 6px;
  border-radius: var(--radius-pill);
}
.plan-zoom-bar button {
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ivory);
  font-weight: 600;
  cursor: pointer;
}
.plan-zoom-bar button:hover { background: rgba(244, 239, 230, 0.14); }

@media (max-width: 900px) {
  .inside-room {
    min-height: 0;
    display: grid;
    background: var(--navy-mid);
  }
  .inside-photo,
  .inside-golden,
  .inside-twilight,
  .inside-lamps {
    grid-area: 1 / 1;
    position: relative;
    width: 100%;
    height: 260px;
  }
  .inside-card {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin-top: 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border-top: 1px solid rgba(244, 239, 230, 0.14);
  }
  .plan-viewer { grid-template-columns: 1fr; }
}

/* ==========================================================================
   5. PROJECTS (Pinned horizontal on desktop, swipe carousel on mobile)
   ========================================================================== */
.atmo-dusk-band {
  background-color: var(--atmo-bg);
  color: var(--atmo-ink);
}
.atmo-dusk-band .sec-head h2 { color: var(--atmo-ink); }
.atmo-dusk-band .sec-head p { color: var(--atmo-muted); }
.projects {
  position: relative;
  background: transparent;
  color: var(--atmo-ink);
  overflow: hidden;
  padding: clamp(64px, 8vw, 108px) 0;
}
.projects-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.projects-head h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  color: var(--atmo-ink);
}
.projects-head p { color: var(--atmo-muted); }
.projects-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.projects-count {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold-bright);
}
.projects-nav {
  display: none;
  gap: 8px;
}
.proj-arrow {
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(244, 239, 230, 0.24);
  background: var(--atmo-card);
  color: var(--ivory);
  font-size: 1.1rem;
  cursor: pointer;
}
.projects-track {
  display: flex;
  gap: clamp(18px, 2.5vw, 32px);
  padding: 0 var(--gutter);
  will-change: transform;
}
.proj-card {
  flex: 0 0 clamp(300px, 31vw, 430px);
  display: flex;
  flex-direction: column;
  background: var(--atmo-card);
  border: 1px solid var(--atmo-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.proj-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--navy-deep);
  cursor: pointer;
}
.proj-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 500ms var(--ease-out);
}
.proj-card:hover .proj-media img { transform: scale(1.1); }
.proj-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.proj-area {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-bright);
}
.proj-title {
  font-family: var(--serif);
  font-size: 1.42rem;
  line-height: 1.18;
  color: var(--ivory);
}
.proj-actions {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.proj-actions .btn { min-height: 44px; padding: 0 14px; font-size: 0.8rem; }

@media (max-width: 900px) {
  .projects-nav { display: flex; }
  .projects-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
  }
  .proj-card {
    flex: 0 0 calc(100vw - (var(--gutter) * 2));
    max-width: 360px;
    scroll-snap-align: start;
  }
  .pidx { display: none; }
}

/* Desktop editorial index: title list on the left, one large frame on the right, one viewport tall */
@media (min-width: 901px) {
  .projects {
    min-height: 100vh;
    padding: 104px var(--gutter) 40px;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
    grid-template-rows: auto minmax(0, 1fr);
    column-gap: clamp(32px, 4.5vw, 72px);
  }
  .projects-head { display: block; max-width: none; padding: 0; margin: 0 0 18px; grid-column: 1; }
  .projects-head h2 { font-size: clamp(2rem, 3.2vw, 3rem); }
  .projects-head p { font-size: 0.92rem; max-width: 46ch; margin-top: 10px; }
  .projects-meta, .projects-track { display: none; }
  .pidx { display: contents; }
}
.pidx-list {
  grid-column: 1;
  grid-row: 2;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  align-self: start;
}
.pidx-row {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--atmo-line);
  color: rgba(244, 239, 230, 0.6);
  text-align: left;
  cursor: pointer;
  transition: color 300ms var(--ease-out);
}
.pidx-row-title {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.2;
  transition: transform 500ms var(--ease-out);
}
.pidx-row-area {
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}
.pidx-row:hover,
.pidx-row:focus-visible { color: rgba(244, 239, 230, 0.85); }
.pidx-row.is-active { color: var(--ivory); }
.pidx-row.is-active .pidx-row-title { transform: translateX(14px); }
.pidx-row.is-active .pidx-row-area { color: var(--gold-bright); }
.pidx-stage {
  grid-column: 2;
  grid-row: 1 / 3;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-deep);
}
.pidx-frame, .pidx-img, .pidx-open {
  position: absolute;
  inset: 0;
}
.pidx-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.pidx-open {
  z-index: 2;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 16, 27, 0.82) 100%);
}
.pidx-cap {
  position: absolute;
  left: clamp(20px, 2.5vw, 36px);
  right: clamp(20px, 2.5vw, 36px);
  bottom: clamp(20px, 2.5vw, 32px);
  z-index: 3;
  pointer-events: none;
}
.pidx-area { font-size: 0.82rem; font-weight: 600; color: var(--gold-bright); }
.pidx-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  line-height: 1.08;
  color: var(--ivory);
  margin: 6px 0 16px;
  max-width: 22ch;
}
.pidx-actions { display: flex; gap: 10px; flex-wrap: wrap; pointer-events: auto; }

/* ==========================================================================
   6. LOCATIONS (real UAE map with emirate pins; tabs are the accessible control)
   ========================================================================== */
.locations {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--atmo-ink);
  padding: clamp(72px, 9vw, 120px) 0;
  border-top: 1px solid var(--atmo-line);
}
.locations .sec-head { display: block; margin-bottom: 0; }
.locations .sec-head p { color: var(--atmo-muted); margin-top: 14px; }
.loc-map {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 34%;
  width: 64%;
  height: 100%;
  /* soften the straight clip edges of the neighbouring land */
  -webkit-mask-image: radial-gradient(ellipse 58% 62% at 55% 52%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 58% 62% at 55% 52%, #000 62%, transparent 100%);
}
.lm-nb { fill: rgba(244, 239, 230, 0.045); }
.lm-uae {
  fill: rgba(221, 180, 104, 0.07);
  stroke: var(--gold-bright);
  stroke-width: 1.2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.lm-pin { cursor: pointer; }
.lm-dot, .lm-ring { transform-box: fill-box; transform-origin: center; transition: transform 500ms var(--ease-out), opacity 500ms var(--ease-out); }
.lm-dot { fill: var(--gold-bright); }
.lm-ring { fill: rgba(221, 180, 104, 0.12); stroke: var(--gold-bright); stroke-width: 1; opacity: 0.35; transform: scale(0.7); }
.lm-label {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  fill: rgba(244, 239, 230, 0.66);
  transition: fill 300ms var(--ease-out);
}
.lm-pin.is-active .lm-ring { opacity: 1; transform: scale(1.5); }
.lm-pin.is-active .lm-dot { transform: scale(1.3); filter: drop-shadow(0 0 6px rgba(221, 180, 104, 0.9)); }
.lm-pin.is-active .lm-label { fill: var(--ivory); }
.loc-copy { position: relative; z-index: 2; width: 100%; }
.loc-copy > * { max-width: 440px; }
.loc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 22px; }
.loc-tab {
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(244, 239, 230, 0.24);
  background: transparent;
  color: var(--ivory);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.loc-tab:hover { border-color: rgba(244, 239, 230, 0.5); }
.loc-tab.is-active { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--navy); }
.loc-panel[hidden] { display: none; }
.loc-panel p { color: var(--atmo-muted); max-width: 44ch; margin-bottom: 18px; }

@media (max-width: 900px) {
  .locations { display: block; min-height: 0; }
  .loc-map { position: relative; left: 0; width: 100%; height: auto; aspect-ratio: 1000 / 640; display: block; margin-bottom: 8px; }
  .lm-label { font-size: 34px; opacity: 0; transition: opacity 300ms var(--ease-out); }
  .lm-pin.is-active .lm-label { opacity: 1; }
  .lm-dot { transform: scale(2.2); }
  .lm-pin.is-active .lm-dot { transform: scale(2.8); }
  .lm-ring { transform: scale(1.6); }
  .lm-pin.is-active .lm-ring { transform: scale(2.8); }
  .loc-copy > * { max-width: none; }
}

/* ==========================================================================
   7. PROPERTY TYPES (Compact editorial ledger, NOT 4 icon cards)
   ========================================================================== */
.ptypes {
  background: transparent;
  color: var(--atmo-ink);
  padding: clamp(64px, 8vw, 104px) 0;
  border-top: 1px solid var(--atmo-line);
}
.ptypes .sec-head p { color: var(--atmo-muted); }
.ptype-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--atmo-line);
}
.ptype-item {
  padding: clamp(22px, 3vw, 34px) clamp(16px, 2.5vw, 32px);
  border-bottom: 1px solid var(--atmo-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.ptype-item:nth-child(odd) {
  border-right: 1px solid var(--atmo-line);
  padding-left: 0;
}
.ptype-item:nth-child(even) { padding-right: 0; }
.ptype-item h3 { font-size: clamp(1.45rem, 2.2vw, 1.95rem); color: var(--ivory); }
.ptype-item p { color: var(--atmo-muted); max-width: 46ch; }
.ptype-link {
  align-self: flex-start;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--gold-bright);
  text-decoration: none;
  padding: 6px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.ptype-link:hover { color: var(--ivory); }

@media (max-width: 760px) {
  .ptype-ledger { grid-template-columns: 1fr; }
  .ptype-item:nth-child(odd) { border-right: 0; }
  .ptype-item { padding-left: 0; padding-right: 0; }
}

/* ==========================================================================
   8. DEVELOPERS (Slow text marquee, pauses on hover, static under reduced motion)
   ========================================================================== */
.developers {
  background: transparent;
  color: var(--atmo-ink);
  padding: clamp(44px, 6vw, 72px) 0;
  overflow: hidden;
  border-top: 1px solid var(--atmo-line);
}
.dev-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.dev-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.dev-head p { color: var(--ivory-muted); font-size: 0.92rem; max-width: 48ch; }
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  border-top: 1px solid rgba(244, 239, 230, 0.12);
  border-bottom: 1px solid rgba(244, 239, 230, 0.12);
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  animation: dev-marquee 34s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  white-space: nowrap;
  color: var(--ivory);
}
.marquee-track span.sep {
  color: var(--gold-bright);
  font-size: 1.2rem;
}
@keyframes dev-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
html.reduced .marquee { flex-wrap: wrap; justify-content: center; gap: 18px 32px; padding: 20px var(--gutter); }
html.reduced .marquee-track { animation: none; flex-wrap: wrap; gap: 18px 28px; padding-right: 0; }
html.reduced .marquee-track[aria-hidden="true"] { display: none; }

/* ==========================================================================
   9. MARKET INSIGHTS (Two-column editorial + pull quote, twilight shift)
   ========================================================================== */
.insights {
  background: transparent;
  color: var(--atmo-ink);
  padding: clamp(72px, 10vw, 128px) 0;
  border-top: 1px solid var(--atmo-line);
}
.insights h2 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.05;
}
.pull-quote {
  margin-top: 28px;
  padding: 20px 0 20px 20px;
  border-left: 2px solid var(--gold-bright);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  line-height: 1.38;
  color: var(--ivory);
}
.insights-body {
  display: grid;
  gap: 20px;
  color: var(--ivory-muted);
  font-size: 1.02rem;
  line-height: 1.72;
}
@media (max-width: 900px) {
}

/* ==========================================================================
   10. WHY REALSTATEHUBS + CLIENT STORIES
   ========================================================================== */
.trust {
  background: transparent;
  color: var(--atmo-ink);
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--atmo-line);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(244, 239, 230, 0.14);
}
.why-row {
  padding: clamp(22px, 3vw, 32px);
  border-bottom: 1px solid rgba(244, 239, 230, 0.14);
}
.why-row:nth-child(odd) {
  border-right: 1px solid rgba(244, 239, 230, 0.14);
  padding-left: 0;
}
.why-row:nth-child(even) { padding-right: 0; }
.why-row h3 {
  font-size: 1.5rem;
  color: var(--gold-bright);
}
.why-row p {
  margin-top: 8px;
  color: var(--ivory-muted);
  max-width: 48ch;
}

.stories {
  margin-top: clamp(56px, 8vw, 96px);
}
.stories-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.stories-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.stories-controls { display: flex; gap: 10px; align-items: center; }
.story-nav-btn {
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(244, 239, 230, 0.24);
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
  font-size: 1.1rem;
}
.story-nav-btn:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.stories-viewport { overflow: hidden; }
.stories-track {
  display: flex;
  gap: 20px;
  transition: transform 420ms var(--ease-out);
}
.story-card {
  flex: 0 0 calc((100% - 40px) / 3);
  background: var(--navy-mid);
  border: 1px solid rgba(244, 239, 230, 0.12);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.story-stars {
  color: var(--gold-bright);
  letter-spacing: 0.14em;
  font-size: 0.92rem;
}
.story-quote {
  font-family: var(--serif);
  font-size: 1.14rem;
  line-height: 1.5;
  color: var(--ivory);
}
.story-author strong { display: block; font-size: 0.94rem; color: var(--ivory); }
.story-author span { font-size: 0.82rem; color: var(--ivory-muted); }

@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-row:nth-child(odd) { border-right: 0; }
  .why-row { padding-left: 0; padding-right: 0; }
  .story-card { flex: 0 0 100%; }
}

/* ==========================================================================
   11. CONTACT / LEAD FORM (Deep night bottom)
   ========================================================================== */
.contact {
  background: transparent;
  color: var(--atmo-ink);
  padding: clamp(72px, 10vw, 124px) 0;
  border-top: 1px solid var(--atmo-line);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact-copy h2 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.05;
}
.contact-copy p {
  margin-top: 16px;
  color: var(--ivory-muted);
  max-width: 46ch;
}
.contact-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ivory);
  font-size: 0.96rem;
}
.contact-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  flex: none;
}

.lead-card {
  background: var(--navy-mid);
  border: 1px solid rgba(244, 239, 230, 0.16);
  border-radius: var(--radius-md);
  padding: clamp(22px, 3.5vw, 38px);
}
.lead-card h3 { font-size: 1.65rem; color: var(--ivory); }
.lead-sub { margin-top: 4px; font-size: 0.9rem; color: var(--ivory-muted); }

.project-pill {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(198, 151, 73, 0.16);
  border: 1px solid rgba(221, 180, 104, 0.45);
  color: var(--gold-bright);
  font-size: 0.84rem;
}
.project-pill[hidden] { display: none; }
.project-pill button {
  background: none;
  border: 0;
  color: var(--ivory);
  cursor: pointer;
  font-size: 1rem;
  min-width: 28px;
  min-height: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.form-field { display: grid; gap: 6px; align-content: start; }
.form-field.full { grid-column: 1 / -1; }
.form-field label, .form-group-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ivory);
}
.form-control {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(244, 239, 230, 0.22);
  background: rgba(7, 16, 27, 0.65);
  color: var(--ivory);
  font-size: 0.96rem;
}
.form-control::placeholder { color: rgba(192, 202, 214, 0.65); }
.form-control:focus {
  outline: none;
  border-color: var(--gold-bright);
}
.split-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
}
.split-row.direction {
  grid-template-columns: minmax(130px, 0.44fr) minmax(0, 0.56fr);
}
.field-hint {
  font-size: 0.82rem;
  color: var(--gold-bright);
  min-height: 1.2em;
}
.field-err {
  font-size: 0.82rem;
  color: var(--bad-light);
  min-height: 1.2em;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
  font-size: 0.96rem;
}
.lead-success {
  padding: 28px 0 10px;
}
.lead-success[hidden] { display: none; }
.lead-success h3 { font-size: 1.85rem; color: var(--gold-bright); }
.lead-success p { margin-top: 10px; color: var(--ivory); }
.lead-success-actions { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .form-grid, .split-row, .split-row.direction { grid-template-columns: 1fr; }
}

/* ==========================================================================
   12. FOOTER + DIALOGS (Project Lightbox & Privacy Policy)
   ========================================================================== */
.site-footer {
  background: var(--navy-deep);
  color: var(--ivory-muted);
  border-top: 1px solid rgba(244, 239, 230, 0.12);
  padding: 36px 0 44px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ivory);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.footer-links a,
.footer-links button {
  background: none;
  border: 0;
  color: var(--ivory-muted);
  font-size: 0.86rem;
  text-decoration: none;
  cursor: pointer;
  padding: 8px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-links a:hover, .footer-links button:hover { color: var(--ivory); }
.footer-copy { font-size: 0.84rem; }

/* Dialogs */
dialog.rsh-dialog {
  width: min(94vw, 1020px);
  max-height: 90vh;
  border: 1px solid rgba(244, 239, 230, 0.18);
  border-radius: var(--radius-md);
  background: var(--navy);
  color: var(--ivory);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
}
dialog.rsh-dialog::backdrop {
  background: rgba(7, 16, 27, 0.78);
  backdrop-filter: blur(8px);
}
.dlg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.14);
}
.dlg-head h2 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); color: var(--ivory); }
.dlg-close {
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(244, 239, 230, 0.22);
  background: transparent;
  color: var(--ivory);
  font-size: 1.4rem;
  cursor: pointer;
}
.dlg-close:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.dlg-body {
  padding: 20px 24px 26px;
  max-height: calc(90vh - 82px);
  overflow-y: auto;
}
.modal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.modal-stage {
  position: relative;
  background: var(--navy-deep);
  border-radius: var(--radius-sm);
  height: clamp(260px, 50vh, 460px);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.modal-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.modal-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.modal-thumb {
  width: 78px;
  height: 54px;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--navy-deep);
  cursor: pointer;
}
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumb.is-active { border-color: var(--gold-bright); }
.modal-foot {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.policy-copy { display: grid; gap: 12px; color: var(--ivory-muted); font-size: 0.94rem; }
.policy-copy h3 { font-size: 1.2rem; color: var(--ivory); margin-top: 10px; }

html.reduced *, html.reduced *::before, html.reduced *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* ==========================================================================
   10b. MIDDLE SECTIONS v3 (reference-led): full-bleed insights + glass card,
        editorial why collage, property-type portrait cards, story images
   ========================================================================== */

/* Insights: one full-bleed Dubai waterfront frame, the market note on a glass card (AMALI "serenity" scene) */
.insights {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-deep);
  padding: clamp(96px, 12vh, 140px) 0 clamp(40px, 7vh, 72px);
}
.insights-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.insights-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 16, 27, 0.62) 0%, rgba(7, 16, 27, 0.18) 55%, transparent 80%),
    linear-gradient(0deg, rgba(7, 16, 27, 0.55) 0%, transparent 45%);
}
.insights-inner { position: relative; z-index: 2; width: 100%; }
.insights-card {
  max-width: 560px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-md);
  background: rgba(7, 16, 27, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ivory);
}
.insights-card h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.insights-card .pull-quote { margin-top: 18px; padding: 10px 0 10px 18px; font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
.insights-card .insights-body { margin-top: 16px; }
.insights-card .insights-body p { font-size: 0.95rem; color: var(--ivory-muted); }

/* Why: copy + why points on the left, a three-image collage on the right drifting at different speeds */
.trust-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  margin-bottom: clamp(64px, 8vw, 112px);
}
.trust-copy .sec-head { display: block; margin-bottom: 24px; }
.trust-copy .sec-head p { margin-top: 12px; }
.trust-copy .why-grid { grid-template-columns: 1fr; }
.trust-copy .why-row,
.trust-copy .why-row:nth-child(odd),
.trust-copy .why-row:nth-child(even) {
  border-right: 0;
  padding: 16px 0;
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: baseline;
}
.trust-copy .why-row h3 { font-size: 1.15rem; }
.trust-copy .why-row p { margin-top: 0; font-size: 0.93rem; }
.trust-collage { position: relative; height: clamp(460px, 44vw, 620px); }
.tc {
  position: absolute;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.7);
  will-change: transform;
}
.tc-1 { width: 74%; aspect-ratio: 3 / 2; right: 0; top: 8%; }
.tc-2 { width: 40%; aspect-ratio: 11 / 14; left: 0; bottom: 0; z-index: 2; }
.tc-3 { width: 28%; aspect-ratio: 11 / 14; right: 6%; bottom: -4%; z-index: 3; }

/* Property types: four portrait cards (AMALI ISLAND / RESIDENCES / VILLAS row) */
.trust-sub h3 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.1;
  color: var(--ivory);
}
.trust-sub p { margin-top: 8px; color: var(--atmo-muted); font-size: 0.95rem; max-width: 52ch; }
.type-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  border-top: 0;
}
.type-cards .type-card,
.type-cards .type-card:nth-child(odd),
.type-cards .type-card:nth-child(even) {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 10 / 13;
  background: var(--navy-deep);
}
.type-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
.type-card:hover .type-img { transform: scale(1.06); }
.type-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 60px 20px 20px;
  background: linear-gradient(0deg, rgba(7, 16, 27, 0.92) 0%, rgba(7, 16, 27, 0.7) 55%, transparent 100%);
}
.type-body h3 { font-size: 1.3rem; color: var(--ivory); }
.type-body p { margin-top: 6px; font-size: 0.85rem; color: var(--ivory-muted); }
.type-body .ptype-link { display: inline-block; margin-top: 10px; }

/* Stories: an area image on each card */
.story-card { padding: 0; overflow: hidden; }
.story-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.story-card > div { padding: 22px 24px 0; }
.story-card > .story-author { padding: 12px 24px 24px; }

.stories-title { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; }
.trust .stories { margin-top: clamp(64px, 8vw, 112px); }
.trust .developers { margin-top: clamp(48px, 6vw, 80px); padding-bottom: 0; }
.trust .dev-head h3 { font-family: var(--serif); font-size: clamp(1.3rem, 1.8vw, 1.6rem); }
.trust .dev-head p { color: var(--atmo-muted); font-size: 0.92rem; max-width: 60ch; }

.insights-more { margin-top: 14px; }
.insights-more summary {
  cursor: pointer;
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold-bright);
  list-style: none;
}
.insights-more summary::-webkit-details-marker { display: none; }
.insights-more summary::after { content: "+"; font-size: 1.1rem; transition: transform 200ms var(--ease-out); }
.insights-more[open] summary::after { transform: rotate(45deg); }
.insights-more p { margin-top: 14px; }

@media (max-width: 900px) {
  .insights { display: block; min-height: 0; padding: 0 0 40px; }
  .insights-bg { position: relative; height: 46svh; }
  .insights-scrim { display: none; }
  .insights-card { margin-top: -64px; max-width: none; background: var(--navy-mid); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .trust-intro { grid-template-columns: 1fr; }
  .trust-copy .why-row,
  .trust-copy .why-row:nth-child(odd),
  .trust-copy .why-row:nth-child(even) { grid-template-columns: 1fr; gap: 4px; }
  .trust-collage { height: 92vw; }
  .type-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .type-body { padding: 40px 14px 14px; }
  .type-body p { display: none; }
}

/* Preloader facade fins (assets/js/fins.js) under a larger wordmark the bars can trace */
.pl-fins { position: absolute; inset: 0; width: 100%; height: 100%; }
.pl-inner { position: relative; z-index: 1; opacity: 0; } /* site.js shows it once the fins have traced it */
.preloader .pl-wordmark { font-size: clamp(3rem, 8.5vw, 8rem); line-height: 1; }

/* ==========================================================================
   V4 RHYTHM: the middle alternates day and night so it never reads as one long dark album.
   inside (night) / budgets (sand) / projects (paper) / map (night) / insights (photo) / why (sand) / contact (night)
   ========================================================================== */
/* light sections take the day tokens, so every rule that reads --atmo-* turns dark-on-light */
.projects, .trust { --atmo-ink: var(--navy); --atmo-muted: var(--ink-muted); --atmo-line: rgba(13, 27, 42, 0.14); }
.projects { background: var(--paper); color: var(--navy); }
.trust .sec-head h2 { color: var(--navy); }
.projects-head h2 { color: var(--navy); }
.projects-head p { color: var(--ink-muted); }
.projects-count { color: #8A6123; }
.pidx-row { color: rgba(13, 27, 42, 0.58); border-bottom-color: rgba(13, 27, 42, 0.14); }
.pidx-row:hover, .pidx-row:focus-visible { color: rgba(13, 27, 42, 0.88); }
.pidx-row.is-active { color: var(--navy); }
.pidx-row.is-active .pidx-row-area { color: #8A6123; }
.pidx-stage { box-shadow: 0 40px 80px -48px rgba(13, 27, 42, 0.55); }

.trust { background: var(--sand); color: var(--navy); border-top: 0; }
.trust .sec-head p, .trust-sub p, .trust .dev-head p { color: var(--ink-muted); }
.trust-sub h3, .stories-title, .trust .dev-head h3 { color: var(--navy); }
.trust .why-grid { border-top-color: rgba(13, 27, 42, 0.14); }
.trust .why-row { border-bottom-color: rgba(13, 27, 42, 0.14); }
.trust .why-row h3 { color: #8A6123; }
.trust .why-row p { color: var(--ink-muted); }
.trust .story-card { background: var(--paper); border-color: rgba(13, 27, 42, 0.08); box-shadow: 0 24px 48px -36px rgba(13, 27, 42, 0.45); }
.trust .story-quote, .trust .story-author strong { color: var(--navy); }
.trust .story-author span { color: var(--ink-muted); }
.trust .story-stars { color: #8A6123; }
.trust .story-nav-btn { color: var(--navy); border-color: rgba(13, 27, 42, 0.24); background: transparent; }
.trust #storyCounter { color: var(--ink-muted); }
.trust .developers { border-top-color: rgba(13, 27, 42, 0.14); }
.trust .marquee-track span { color: var(--navy); }
.trust .marquee-track span.sep { color: #8A6123; }

/* Signature: facade fins. Images open like louvres: the mask's opaque slat widens from 0 to the full pitch.
   motion.js tweens --fin-open and drops the mask once open. */
html.m-on .fin {
  --fin-open: 0px;
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 var(--fin-open), transparent var(--fin-open) 26px);
  mask-image: repeating-linear-gradient(90deg, #000 0 var(--fin-open), transparent var(--fin-open) 26px);
}
