/* ============================================================
   SLS Residences at Palm Jumeirah — Roya Lifestyle Developments
   Aesthetic: editorial luxury · soft & airy · ivory + ink + gold
   ============================================================ */

:root {
  /* Palette — soft, airy, sand-and-sea */
  --ivory:       #f6f1ea;   /* page bg */
  --ivory-soft:  #efe8de;   /* sections */
  --cream:       #faf6ef;   /* cards */
  --paper:       #fffdf9;
  --sand:        #d8c9b0;
  --sand-soft:   #e7dac4;

  --ink-900:     #161513;   /* deep charcoal */
  --ink-700:     #3a3733;
  --ink-500:     #6b665e;
  --ink-300:     #b1aba0;
  --ink-200:     #d3cec3;
  --ink-100:     #e7e2d8;
  --ink-50:      #f1ece1;

  --gold:        #d5202f;   /* champagne gold accent */
  --gold-soft:   #d8b27a;
  --gold-deep:   #836a3d;

  --red:         #c8252b;   /* Roya brand red O */

  --max:        1320px;
  --gutter:     clamp(20px, 4vw, 64px);
  --section-y:  clamp(80px, 11vw, 160px);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-italic:  'Italiana', 'Cormorant Garamond', serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  /* Motion — Emil Kowalski curves (animations.dev) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease: var(--ease-out);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--ivory);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

.black-logo {
  display: none;
}
header#nav.is-scrolled .white-logo {
  display: none;
}
header#nav.is-scrolled .black-logo {
  display: block;
}
img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

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

/* ====================== Typography ====================== */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-700);
}
.display--xl { font-size: clamp(40px, 6.6vw, 96px); }
.display--light { color: var(--ivory); }
.display--light em { color: var(--ink-200); }

.lead {
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.7;
  color: var(--ink-700);
  font-weight: 300;
  max-width: 56ch;
}
.lead--center { margin-left: auto; margin-right: auto; text-align: center; }
.lead--light { color: var(--ink-200); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 24px;
}
.eyebrow--light { color: var(--gold-soft); }

.kicker {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #ffffff;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 40px;
  opacity: 0.95;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.kicker__line {
  width: 56px; height: 1px;
  background: var(--gold-soft);
  display: inline-block;
}

.section-head {
  max-width: var(--max);
  margin: 0 auto var(--gutter);
  padding: 0;
}
.section-head--center {
  text-align: center;
}
.section-head--center .lead { margin-top: 24px; }

/* ====================== Buttons ====================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 32px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out), letter-spacing 200ms var(--ease-out), transform 160ms var(--ease-out);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--ink-900);
  color: var(--ivory);
  border-color: var(--ink-900);
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    background: var(--gold-deep);
    border-color: var(--gold-deep);
    transform: none !important;
  }
}
.btn--ghost {
  color: var(--ivory);
  border-color: rgba(255,255,255,0.4);
  background: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover {
    border-color: var(--ivory);
    background: rgba(255,255,255,0.08);
    transform: none !important;
  }
}
.btn--minor {
  padding: 0; border: 0;
  letter-spacing: 0.22em;
  font-size: 11px;
  color: var(--ink-900);
  border-bottom: 1px solid var(--ink-900);
  padding-bottom: 4px;
  transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out), padding-left 200ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn--minor:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn--minor:hover {
    color: var(--gold-deep);
    border-color: var(--gold-deep);
    padding-left: 6px;
  }
}
.btn--block { width: 100%; padding: 22px; }

/* ====================== Brand Mark ====================== */

.brand-mark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.32em;
  color: var(--ink-900);
  display: block;
  line-height: 1;
}
.brand-mark--light { color: var(--ivory); }
.brand-mark__o {
  display: inline-block;
  color: inherit;
}
.brand-mark__sub {
  font-family: var(--font-body);
  font-size: 8.5px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-top: 6px;
  display: block;
}
.brand-mark__sub--light { color: var(--ink-300); }

/* ====================== Navigation ====================== */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px var(--gutter);
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(246, 241, 234, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ink-100);
  padding: 14px var(--gutter);
}
.nav.is-scrolled .nav__brand .brand-mark { color: var(--ink-900); }
.nav.is-scrolled .nav__brand .brand-mark__sub { color: var(--ink-500); }
.nav.is-scrolled .nav__links a { color: var(--ink-900); }
.nav.is-scrolled .nav__cta { color: var(--ink-900); border-color: var(--ink-900); }

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.nav__brand { display: flex; flex-direction: column; }
.nav__brand .brand-mark { color: var(--ivory); font-size: 22px; transition: color 0.4s var(--ease); }
.nav__brand .brand-mark__sub { color: rgba(255,255,255,0.7); transition: color 0.4s var(--ease); }

.nav__links {
  display: flex; gap: 36px;
}
.nav__links a {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
  font-weight: 400;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 1px;
  background: currentColor;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out), opacity 200ms var(--ease-out);
  transform: translateX(-50%);
}
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  display: inline-block;
  padding: 10px 22px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--ivory);
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.nav__cta:hover {
  background: var(--ivory);
  color: var(--ink-900) !important;
  border-color: var(--ivory) !important;
}
.nav.is-scrolled .nav__cta:hover { background: var(--ink-900); color: var(--ivory) !important; border-color: var(--ink-900) !important; }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__toggle span {
  width: 22px; height: 1px; background: var(--ivory);
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out);
}
.nav.is-scrolled .nav__toggle span { background: var(--ink-900); }

/* Mobile menu open */
@media (max-width: 1024px) {
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ivory);
    padding: 32px var(--gutter);
    gap: 0;
    border-top: 1px solid var(--ink-100);
    border-bottom: 1px solid var(--ink-100);
  }
  .nav__links.is-open a {
    color: var(--ink-900);
    padding: 16px 0;
    border-bottom: 1px solid var(--ink-100);
  }
  .nav__links.is-open a:last-child { border-bottom: 0; }
}

/* ====================== Hero ====================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--gutter);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  animation: kenburns 30s ease-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.04); }
  to   { transform: scale(1.12); }
}
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15,15,12,0.4) 0%, rgba(15,15,12,0.0) 25%, rgba(15,15,12,0.0) 50%, rgba(15,15,12,0.5) 80%, rgba(15,15,12,0.95) 100%),
    linear-gradient(90deg, rgba(10,10,8,0.55) 0%, rgba(10,10,8,0.3) 30%, rgba(10,10,8,0.0) 60%);
}

.hero__content {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding-bottom: 80px;
  color: var(--ivory);
  animation: fadeUp 800ms 200ms var(--ease-out) both;
  text-shadow: 0 2px 32px rgba(0,0,0,0.4);
  position: relative;
}
.hero__content-inner {
  position: relative;
  max-width: 880px;
  padding: 55px 40px 32px 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0 -40px 0 calc(-1 * var(--gutter));
  background: linear-gradient(90deg,
    rgba(10,10,8,0.55) 0%,
    rgba(10,10,8,0.45) 60%,
    rgba(10,10,8,0.0) 100%);
  backdrop-filter: blur(2px) saturate(0.95);
  -webkit-backdrop-filter: blur(2px) saturate(0.95);
  z-index: -1;
  pointer-events: none;
}
.hero__content-inner::after {
  content: '';
  position: absolute;
  left: calc(-1 * var(--gutter) + 24px);
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-soft), transparent);
  z-index: 1;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  /* font-size: clamp(48px, 9vw, 144px); */
  font-size: 95px;
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--ivory);
  margin-bottom: 15px;
}
.hero__title-line { display: block; }
.hero__title-line--italic {
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  padding-left: 0.4em;
}

.hero__lede {
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 23px;
  color: #ffffff;
  max-width: 56ch;
  font-weight: 300;
  margin-bottom: 48px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6), 0 1px 2px rgba(0,0,0,0.5);
}

.hero__actions {
  display: flex; gap: 16px; flex-wrap: wrap;
}

.hero__meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(15,15,12,0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 24px var(--gutter);
  display: flex; justify-content: center; align-items: center;
  gap: clamp(16px, 4vw, 64px);
  color: var(--ivory);
}
.hero__meta-item {
  display: flex; flex-direction: column; gap: 4px;
}
.hero__meta-item span {
  font-size: 9px; letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.hero__meta-item strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 21px);
  letter-spacing: 0.02em;
  font-style: italic;
}
.hero__meta-divider {
  width: 1px; height: 28px;
  background: rgba(255,255,255,0.15);
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 110px;
  color: var(--ivory);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 9px; letter-spacing: 0.32em; text-transform: uppercase;
  opacity: 0.7;
}
.hero__scroll-line {
  width: 1px; height: 60px;
  background: rgba(255,255,255,0.4);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute; left: 0; top: -60px;
  width: 100%; height: 60px;
  background: linear-gradient(180deg, transparent, var(--ivory), transparent);
  animation: scroll-down 2.4s ease-in-out infinite;
}
@keyframes scroll-down {
  0%   { top: -60px; }
  100% { top: 60px; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ====================== Marquee ====================== */

.marquee {
  background: var(--ink-900);
  color: var(--ivory);
  padding: 22px 0;
  overflow: hidden;
  border-top: 1px solid var(--ink-700);
  border-bottom: 1px solid var(--ink-700);
}
.marquee__track {
  display: flex; gap: 48px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--cream);
}
.marquee__track .dot { color: var(--gold); font-size: 14px; align-self: center; font-style: normal; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ====================== Residence (intro section) ====================== */

.residence {
  padding: var(--section-y) var(--gutter);
  background: var(--ivory);
}
.residence__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.residence__copy .display {
  margin-bottom: 32px;
}
.residence__copy .lead + .lead {
  margin-top: 20px;
}
.residence__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--ink-200);
}
.residence__stats > div {
  display: flex; flex-direction: column; gap: 6px;
}
.residence__stats strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 44px);
  color: var(--ink-900);
  line-height: 1;
}
.residence__stats span {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-500);
}
.residence__media {
  position: relative;
}
.residence__media img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
}
.residence__media figcaption {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(255,253,249,0.92);
  padding: 10px 16px;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-700);
}

/* ====================== Pull Quote ====================== */

.pull-quote {
  padding: var(--section-y) var(--gutter);
  background: var(--ivory-soft);
  text-align: center;
}
.pull-quote__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.pull-quote .display {
  text-wrap: balance;
}
.pull-quote__rule {
  display: block;
  width: 60px; height: 1px;
  background: var(--gold);
  margin: 40px auto 24px;
}
.pull-quote__cite {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-500);
}

/* ====================== Architecture — Scroll-Driven Cinematic ====================== */

.reveal-arch {
  background: var(--ink-900);
  height: 320vh;
  position: relative;
}
.reveal-arch__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}
.reveal-arch__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.reveal-arch__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--arch-scale, 1.4));
  filter: brightness(var(--arch-brightness, 0.4)) saturate(var(--arch-saturate, 0.8));
  will-change: transform, filter;
}
.reveal-arch__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,15,12,0.5) 0%, rgba(15,15,12,0.1) 30%, rgba(15,15,12,0.4) 70%, rgba(15,15,12,0.85) 100%),
    linear-gradient(90deg, rgba(15,15,12,0.55) 0%, rgba(15,15,12,0.0) 50%);
  opacity: var(--arch-veil, 0.85);
  transition: opacity 200ms linear;
  pointer-events: none;
}
.reveal-arch__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.85;
}
.arch-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  filter: drop-shadow(0 0 4px rgba(216, 178, 122, 0.5));
}
.arch-line:nth-child(1) { transition: stroke-dashoffset 600ms var(--ease-out); }
.arch-line:nth-child(2) { transition: stroke-dashoffset 600ms 80ms var(--ease-out); }
.arch-line:nth-child(3) { transition: stroke-dashoffset 600ms 160ms var(--ease-out); }
.arch-line:nth-child(4) { transition: stroke-dashoffset 600ms 240ms var(--ease-out); }
.arch-line:nth-child(5) { transition: stroke-dashoffset 600ms 320ms var(--ease-out); }
.reveal-arch.is-drawing .arch-line { stroke-dashoffset: 0; }

.arch-dot {
  opacity: 0;
  transition: opacity 400ms var(--ease-out);
}
.arch-dot circle:last-child {
  transform-origin: center;
  transform-box: fill-box;
  animation: archPulse 2.4s var(--ease-in-out) infinite;
}
@keyframes archPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.6); opacity: 0; }
}
.reveal-arch.is-drawing .arch-dot:nth-of-type(1) { opacity: 1; transition-delay: 600ms; }
.reveal-arch.is-drawing .arch-dot:nth-of-type(2) { opacity: 1; transition-delay: 750ms; }
.reveal-arch.is-drawing .arch-dot:nth-of-type(3) { opacity: 1; transition-delay: 900ms; }
.reveal-arch.is-drawing .arch-dot:nth-of-type(4) { opacity: 1; transition-delay: 1050ms; }

.reveal-arch__callouts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.arch-callout {
  position: absolute;
  top: var(--top);
  left: var(--left);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ivory);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.arch-callout__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--gold-soft);
  letter-spacing: 0;
  border: 1px solid var(--gold-soft);
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.arch-callout__label {
  background: rgba(15,15,12,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 14px;
  border: 1px solid rgba(216, 178, 122, 0.25);
}
.reveal-arch.is-drawing .arch-callout { opacity: 1; transform: translateX(0); }
.reveal-arch.is-drawing .arch-callout:nth-of-type(1) { transition-delay: 800ms; }
.reveal-arch.is-drawing .arch-callout:nth-of-type(2) { transition-delay: 950ms; }
.reveal-arch.is-drawing .arch-callout:nth-of-type(3) { transition-delay: 1100ms; }
.reveal-arch.is-drawing .arch-callout:nth-of-type(4) { transition-delay: 1250ms; }

.reveal-arch__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(60px, 8vh, 120px);
  max-width: var(--max);
  margin: 0 auto;
}
.reveal-arch__title {
  font-size: clamp(48px, 7vw, 110px);
  line-height: 1.0;
  margin-bottom: 28px;
  max-width: 14ch;
  text-shadow: 0 4px 32px rgba(0,0,0,0.5);
}
.reveal-arch__title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  margin-right: 0.18em;
}
.reveal-arch__title .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 700ms var(--ease-out);
}
.reveal-arch.is-drawing .reveal-arch__title .word > span { transform: translateY(0); }
.reveal-arch__title .word > span[data-word="0"] { transition-delay: 100ms; }
.reveal-arch__title .word > span[data-word="1"] { transition-delay: 180ms; }
.reveal-arch__title .word > span[data-word="2"] { transition-delay: 260ms; }
.reveal-arch__title .word > span[data-word="3"] { transition-delay: 340ms; }
.reveal-arch__title .word > span[data-word="4"] { transition-delay: 420ms; }
.reveal-arch__title .word > span[data-word="5"] { transition-delay: 500ms; }
.reveal-arch__title .word > span[data-word="6"] { transition-delay: 580ms; }

.reveal-arch__lede {
  color: rgba(255,253,249,0.85);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  font-weight: 300;
  max-width: 52ch;
  margin-bottom: 40px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms 700ms var(--ease-out), transform 700ms 700ms var(--ease-out);
}
.reveal-arch.is-drawing .reveal-arch__lede {
  opacity: 1;
  transform: translateY(0);
}

.reveal-arch__progress {
  height: 1px;
  background: rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}
.reveal-arch__progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gold-soft);
  transition: width 100ms linear;
}

@media (max-width: 1024px) {
  .reveal-arch { height: auto; }
  .reveal-arch__pin { position: relative; height: 80vh; }
  .reveal-arch__title { font-size: clamp(40px, 9vw, 64px); }
  .arch-callout { font-size: 9px; }
  .arch-callout__num { width: 28px; height: 28px; font-size: 12px; }
}

/* ====================== Gallery — Editorial ====================== */

.gallery {
  padding: var(--section-y) 0;
  background: var(--ivory-soft);
}
.gallery__editorial {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.5vw, 56px);
}
.gallery__row {
  display: grid;
  gap: clamp(16px, 2vw, 32px);
}
.gallery__row--text-image {
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(24px, 4vw, 48px) 0;
}
.gallery__row--duo {
  grid-template-columns: 1fr 1fr;
}

.gal {
  position: relative;
  overflow: hidden;
  background: var(--ink-100);
}
.gal img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.6s var(--ease);
}
.gal:hover img { transform: scale(1.05); }

/* Hero feature image — full-width tall */
.gal--hero {
  aspect-ratio: 21 / 9;
  min-height: 400px;
}
.gal--hero img { aspect-ratio: 21/9; height: 100%; }

/* Portrait — paired with text */
.gal--portrait {
  aspect-ratio: 4 / 5;
}

/* Standard duo — equal squares */
.gallery__row--duo .gal {
  aspect-ratio: 4 / 5;
}

/* Wide feature — penthouse */
.gal--wide-feature {
  aspect-ratio: 16 / 8;
  min-height: 380px;
}

/* Wide — single row */
.gal--wide {
  aspect-ratio: 21 / 9;
  min-height: 360px;
}

/* Editorial overlays for hero/wide-feature gals */
.gal__overlay {
  position: absolute;
  bottom: 0; left: 0;
  padding: clamp(28px, 4vw, 56px);
  max-width: 580px;
  color: var(--ivory);
  background: linear-gradient(180deg, transparent, rgba(15,15,12,0.7));
  width: 100%;
  z-index: 2;
  transform: translateY(8px);
  opacity: 0.96;
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out);
}
.gal__overlay--right {
  left: auto; right: 0;
  background: linear-gradient(180deg, transparent, rgba(15,15,12,0.7)),
              linear-gradient(270deg, rgba(15,15,12,0.55), transparent 80%);
  text-align: right;
  margin-left: auto;
}
.gal:hover .gal__overlay { transform: translateY(0); }

.gal__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--gold-soft);
  display: block;
  margin-bottom: 8px;
}
.gal__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.5vw, 38px);
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}
.gal__caption {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,253,249,0.85);
  max-width: 50ch;
}
.gal__overlay--right .gal__caption { margin-left: auto; }

/* Standard small caption (duo grid) */
.gal figcaption {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(255,253,249,0.95);
  padding: 12px 18px;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-700);
  display: flex; gap: 12px;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out);
}
.gal:hover figcaption { transform: translateY(0); opacity: 1; }
.gal figcaption span {
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0;
}

/* Editorial text block paired with portrait */
.gal-text {
  padding: 24px 0;
}
.gal-text__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 24px;
}
.gal-text__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 56px);
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}
.gal-text__body {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-700);
  margin-bottom: 28px;
  max-width: 50ch;
}
.gal-text__meta {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-top: 24px;
  border-top: 1px solid var(--ink-200);
}

/* ====================== Amenities ====================== */

.amenities {
  padding: var(--section-y) var(--gutter);
  background: var(--ivory);
}
.am-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.am-card {
  background: var(--cream);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  grid-column: span 2;
  transition: transform 0.6s var(--ease);
}
.am-card--feature { grid-column: span 2; grid-row: span 2; }
.am-card--wide { grid-column: span 4; }
.am-card:hover { transform: translateY(-4px); }
.am-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.am-card--feature img { aspect-ratio: 4/5; }
.am-card--wide img { aspect-ratio: 21/9; }
.am-card:hover img { transform: scale(1.05); }
.am-card__body {
  padding: 28px clamp(20px, 2.5vw, 36px) 36px;
}
.am-card__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 8px;
}
.am-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 1.6vw, 28px);
  margin-bottom: 12px;
  color: var(--ink-900);
  letter-spacing: -0.005em;
}
.am-card p {
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.6;
  font-weight: 300;
  max-width: 52ch;
}

.am-list {
  max-width: var(--max);
  margin: 64px auto 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
}
.am-list li {
  padding: 28px 24px;
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--ink-900);
  display: flex; gap: 16px; align-items: baseline;
  border-left: 1px solid var(--ink-200);
}
.am-list li:first-child { border-left: 0; }
.am-list li span {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 10px; letter-spacing: 0.22em;
  color: var(--gold-deep);
}

/* ====================== Floor Plans ====================== */

.plans {
  padding: var(--section-y) var(--gutter);
  background: var(--ivory-soft);
}
.plans__tabs {
  max-width: var(--max);
  margin: 0 auto 48px;
  display: flex; flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--ink-200);
}
.plans__tab {
  padding: 18px 24px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 400;
  position: relative;
  transition: color 0.3s var(--ease);
}
.plans__tab::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--ink-900);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.plans__tab.is-active {
  color: var(--ink-900);
}
.plans__tab.is-active::after { transform: scaleX(1); }
.plans__tab:hover { color: var(--ink-900); }

.plans__panels {
  max-width: var(--max);
  margin: 0 auto;
}
.plans__panel {
  display: none;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
  animation: fadeUp 0.7s var(--ease);
}
.plans__panel.is-active { display: grid; }
.plans__art {
  background: var(--paper);
  padding: 40px;
  color: var(--ink-700);
  position: relative;
}
.plans__art::before {
  content: 'NORTH';
  position: absolute; top: 16px; right: 16px;
  font-size: 9px; letter-spacing: 0.32em; color: var(--ink-300);
}
.plans__art::after {
  content: '';
  position: absolute; top: 32px; right: 32px;
  width: 1px; height: 30px;
  background: var(--ink-300);
}
.plans__art svg {
  width: 100%;
  height: auto;
  max-height: 420px;
}
.plans__detail h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 44px);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.plans__sub {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink-200);
}
.plans__detail dl {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 32px;
}
.plans__detail dl > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dotted var(--ink-200);
}
.plans__detail dt {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-500);
}
.plans__detail dd {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-900);
}

/* ====================== Location ====================== */

.location {
  padding: var(--section-y) 0;
  background: var(--ivory);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  max-width: var(--max);
  margin: 0 auto;
  align-items: center;
}
.location__copy .display { margin-bottom: 24px; }
.location__list {
  list-style: none;
  margin-top: 40px;
  display: flex; flex-direction: column;
}
.location__list li {
  padding: 20px 0;
  border-top: 1px solid var(--ink-200);
  display: flex; align-items: baseline; gap: 24px;
}
.location__list li:last-child { border-bottom: 1px solid var(--ink-200); }
.location__list li strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  font-style: italic;
  color: var(--ink-900);
  min-width: 120px;
}
.location__list li span {
  font-size: 14px;
  color: var(--ink-700);
  letter-spacing: 0.02em;
}
.location__map {
  position: relative;
  aspect-ratio: 1/1;
}
.location__photo {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--ivory-soft);
}
.location__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}
.location__photo:hover img { transform: scale(1.04); }
.location__photo figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, transparent, rgba(15,15,12,0.7));
  color: var(--ivory);
  padding: 40px 32px 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.location__photo figcaption span {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.location__photo figcaption strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--ivory);
}

/* ====================== Enquire ====================== */

.enquire {
  background: var(--ink-900);
  color: var(--ivory);
  padding: var(--section-y) var(--gutter);
  background-image:
    radial-gradient(circle at 80% 20%, rgba(176,142,81,0.12), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(176,142,81,0.08), transparent 60%);
}
.enquire__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.enquire__copy .lead { max-width: 50ch; }
.enquire__contacts {
  margin-top: 48px;
  display: flex; flex-direction: column; gap: 24px;
}
.enquire__contacts > div {
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.enquire__contacts span {
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-soft);
}
.enquire__contacts a {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ivory);
  transition: color 0.3s var(--ease);
}
.enquire__contacts a:hover { color: var(--gold-soft); }

.enquire__form {
  background: rgba(255,253,249,0.04);
  padding: clamp(28px, 3.5vw, 48px);
  border: 1px solid rgba(255,255,255,0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.field {
  display: flex; flex-direction: column; gap: 8px;
}
.field--full { grid-column: 1 / -1; }
.field--actions { margin-top: 8px; }
.field label {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding: 12px 0;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.01em;
  transition: border-color 0.3s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-bottom-color: var(--gold-soft);
}
.field textarea { resize: vertical; min-height: 80px; }
.field select option { background: var(--ink-900); color: var(--ivory); }
.field__note {
  font-size: 11px;
  color: var(--ink-300);
  margin-top: 14px;
  text-align: center;
  letter-spacing: 0.04em;
}
.field__success {
  grid-column: 1 / -1;
  background: rgba(176,142,81,0.15);
  border: 1px solid var(--gold);
  padding: 20px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--gold-soft);
  text-align: center;
}

.enquire .btn--primary {
  background: var(--ivory);
  color: var(--ink-900);
  border-color: var(--ivory);
}
.enquire .btn--primary:hover {
  background: var(--gold);
  color: var(--ivory);
  border-color: var(--gold);
}

/* ====================== Footer ====================== */

.footer {
  background: var(--ink-900);
  color: var(--ivory);
  padding: 80px var(--gutter) 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__top {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(40px, 6vw, 80px);
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand p {
  margin-top: 28px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-200);
  max-width: 28ch;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__cols h4 {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 400;
  margin-bottom: 20px;
}
.footer__cols a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-200);
  transition: color 0.3s var(--ease);
}
.footer__cols a:hover { color: var(--ivory); }
.footer__bottom {
  max-width: var(--max);
  margin: 32px auto 0;
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
  font-size: 11px;
  color: var(--ink-300);
  letter-spacing: 0.02em;
}
.footer__disclaimer {
  max-width: 60ch;
  font-size: 10px;
}

/* ====================== Reveal Animations ====================== */

/* Default fade up */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Clip-path image reveal — sweeps from left to right like a curtain */
[data-reveal="clip"] {
  opacity: 0;
  transform: scale(0.96) translateY(30px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
[data-reveal="clip"].is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Up reveal with optional staggered delay */
[data-reveal="up"] {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal="up"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Split-words reveal — for display headlines */
.split-words .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.split-words .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease);
  transition-delay: var(--word-delay, 0ms);
}
.split-words.is-visible .word > span {
  transform: translateY(0);
}

/* ====================== Scroll Progress Bar ====================== */

.nav__progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  background: var(--gold);
  width: 0%;
  transition: width 0.1s linear;
  z-index: 5;
}

/* ====================== Hero Parallax ====================== */

.hero__media img {
  width: 100%; height: 110%;
  object-fit: cover; object-position: center;
  transform: translateY(var(--parallax-y, 0));
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1.04) translateY(var(--parallax-y, 0)); }
  to   { transform: scale(1.12) translateY(var(--parallax-y, 0)); }
}

/* ====================== Counter ====================== */

[data-count] {
  font-variant-numeric: tabular-nums;
}

/* ====================== A Day in the Life ====================== */

.day {
  background: var(--ivory);
  padding: var(--section-y) var(--gutter);
}
.day__inner {
  max-width: var(--max);
  margin: 0 auto;
}
.day__head {
  text-align: center;
  margin-bottom: clamp(60px, 8vw, 120px);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.day__timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.day__sticky {
  position: sticky;
  top: 100px;
  height: 80vh;
  max-height: 720px;
}
.day__media {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--ink-100);
}
.day__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.7s var(--ease), transform 1.6s var(--ease);
}
.day__media img.is-fading {
  opacity: 0;
}
.day__overlay {
  position: absolute;
  top: 32px; left: 32px;
  z-index: 2;
  pointer-events: none;
}
.day__time {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 3vw, 44px);
  color: var(--ivory);
  letter-spacing: 0.05em;
  background: rgba(15,15,12,0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 24px;
  border-left: 1px solid var(--gold-soft);
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.day__chapters {
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 10vh, 140px);
  padding: 30vh 0;
}
.day__chapter {
  opacity: 0.3;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  border-left: 1px solid var(--ink-200);
  padding-left: 32px;
  position: relative;
}
.day__chapter::before {
  content: '';
  position: absolute;
  left: -1px; top: 0;
  width: 1px; height: 0;
  background: var(--gold);
  transition: height 0.7s var(--ease);
}
.day__chapter.is-active {
  opacity: 1;
  transform: translateY(0);
}
.day__chapter.is-active::before {
  height: 100%;
}
.day__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 16px;
}
.day__chapter h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin-bottom: 20px;
}
.day__chapter p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-700);
  font-weight: 300;
  max-width: 50ch;
}

/* ====================== Amenities — Editorial Mood Grid ====================== */

.moods {
  background: var(--ivory);
  padding: var(--section-y) var(--gutter);
}
.moods__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
}
.mood {
  position: relative;
  display: block;
  background: var(--cream);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  /* Stagger reveal — each mood declared its --i index */
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
  cursor: pointer;
}
.mood.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Layout breaks */
.mood--feature {
  grid-column: span 2;
  grid-row: span 2;
}
.mood--wide {
  grid-column: span 2;
}

.mood__media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--ink-100);
}
.mood--feature .mood__media { aspect-ratio: 1/1; }
.mood--wide .mood__media { aspect-ratio: 16/9; }

.mood__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 700ms var(--ease-out), filter 300ms var(--ease-out);
  filter: saturate(0.95);
}
@media (hover: hover) and (pointer: fine) {
  .mood:hover .mood__media img {
    transform: scale(1.06);
    filter: saturate(1.05);
  }
}
.mood:active { transform: translateY(0) scale(0.99); }

/* Subtle vignette to anchor caption */
.mood__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15,15,12,0.0) 70%, rgba(15,15,12,0.35) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 250ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .mood:hover .mood__media::after { opacity: 1; }
}

.mood__body {
  padding: clamp(20px, 2vw, 32px) clamp(20px, 2vw, 32px) clamp(24px, 2.5vw, 36px);
}
.mood__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 8px;
  transition: color 200ms var(--ease-out);
}
.mood h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 1.6vw, 26px);
  margin-bottom: 10px;
  color: var(--ink-900);
  letter-spacing: -0.005em;
  line-height: 1.15;
}
.mood--feature h3 { font-size: clamp(28px, 2.6vw, 40px); }
.mood p {
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.55;
  font-weight: 300;
  max-width: 38ch;
}

/* Underline arrow appears on hover */
.mood__body::after {
  content: '→';
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  color: var(--gold-deep);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .mood:hover .mood__body::after {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Dead old cine styles — keep harmless empty rules removed */
.cine, .cine__pin, .cine__bg, .cine__img, .cine__veil, .cine__content,
.cine__head, .cine__panels, .cine__panel, .cine__num, .cine__progress,
.cine__dots, .cine__dot, .cine__more { display: none !important; }

/* ====================== Responsive ====================== */

@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }

  .residence__grid { grid-template-columns: 1fr; }
  .residence__stats { grid-template-columns: repeat(2, 1fr); }

  .architecture { grid-template-columns: 1fr; }
  .architecture__media { height: 60vh; }
  .architecture__copy { padding: 60px var(--gutter); }

  .gallery__row--text-image,
  .gallery__row--duo {
    grid-template-columns: 1fr;
  }
  .gal--hero, .gal--wide-feature, .gal--wide {
    aspect-ratio: 16/10;
    min-height: 320px;
  }

  .am-grid { grid-template-columns: repeat(2, 1fr); }
  .am-card, .am-card--feature, .am-card--wide { grid-column: span 2; grid-row: auto; }

  .am-list { grid-template-columns: repeat(2, 1fr); }
  .am-list li { border-left: 0 !important; border-top: 1px solid var(--ink-200); }
  .am-list li:nth-child(1), .am-list li:nth-child(2) { border-top: 0; }
  .am-list li:nth-child(2n) { border-left: 1px solid var(--ink-200) !important; }

  .plans__panel.is-active { grid-template-columns: 1fr; }
  .plans__tabs { overflow-x: auto; flex-wrap: nowrap; }
  .plans__tab { white-space: nowrap; }

  .location { grid-template-columns: 1fr; }
  .location__map { aspect-ratio: 4/3; }

  .enquire__inner { grid-template-columns: 1fr; }

  .footer__top { grid-template-columns: 1fr; }
  .gallery__editorial, .section-head, .location {
  padding: 0 var(--gutter);
  }
  .location {
    padding: var(--section-y) var(--gutter);
  }
  .hero {
    justify-content: center;
  }
  .hero__content-inner::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero__meta { gap: 12px; padding: 20px 16px; flex-wrap: wrap; justify-content: flex-start; }
  .hero__meta-divider { display: none; }
  .hero__meta-item { min-width: calc(50% - 8px); }
  .hero__scroll { display: none; }

  .residence__stats { grid-template-columns: repeat(2, 1fr); }

  .gallery__editorial { gap: 24px; }
  .gal--hero, .gal--wide-feature, .gal--wide {
    aspect-ratio: 4/5;
    min-height: 0;
  }
  .gal__overlay { padding: 24px; }
  .gal__title { font-size: 22px; }

  .day__timeline { grid-template-columns: 1fr; }
  .day__sticky { position: relative; height: 60vh; top: 0; }
  .day__chapters { padding: 40px 0; gap: 60px; }
  .day__chapter { opacity: 1; transform: none; }

  .moods__grid { grid-template-columns: repeat(2, 1fr); }
  .mood--feature { grid-column: span 2; grid-row: auto; }
  .mood--feature .mood__media { aspect-ratio: 16/9; }
  .mood--wide { grid-column: span 2; }

  .am-grid { grid-template-columns: 1fr; }
  .am-card, .am-card--feature, .am-card--wide { grid-column: span 1; }

  .am-list { grid-template-columns: 1fr; }
  .am-list li { border-left: 0 !important; }
  .am-list li:nth-child(1) { border-top: 0; }

  .enquire__form { grid-template-columns: 1fr; }
  .field--full { grid-column: span 1; }

  .footer__cols { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 16px; }

}

@media (max-width: 480px) {
  .hero__title { font-size: clamp(40px, 11vw, 60px); }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; }
  .hero__meta-item span { font-size: 8px; }
  .hero__meta-item strong { font-size: 13px; }

  .marquee__track { font-size: 16px; gap: 32px; }

  .moods__grid { grid-template-columns: 1fr; }
  .mood--feature, .mood--wide { grid-column: span 1; }

  .am-list li { padding: 20px 16px; font-size: 16px; }

  .plans__detail dl > div { flex-direction: column; gap: 4px; }
}

/* ====================== Reduced Motion ====================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
