/* ============================================================
      SLS Residences at Palm Jumeirah — Roya Lifestyle Developments
      Aesthetic: editorial luxury · soft & airy · ivory + ink + gold
      ============================================================ */
* {
  user-select: none;
}

input,
textarea,
select {
  user-select: text;
}

:root {
  /* Palette — soft, airy, sand-and-sea */
  --obsidian: #0B0B0C;
  /* Primary 60% — deep black */
  --ivory: #F5F1EA;
  /* Primary 30% — warm white */
  --roya-red: #C8102E;
  /* Signature 5% — ROYA Red */
  --ash: #6E6A63;
  /* Neutral Ash */
  --dune: #B89B6A;
  /* Accent: Warm Dune */
  --sand: #D9C9A7;
  /* Accent: Warm Sand */
  --lagoon: #C8102E;
  /* Accent: Cool Lagoon */
  --arabian: #C8102E;
  /* Accent: Cool Arabian */

  /* Semantic remaps */
  --ivory-soft: #EDE8DE;
  --cream: #FAF6EF;
  --paper: #FFFDF9;
  --sand-soft: #EDE3CE;

  --ink-900: #0B0B0C;
  --ink-700: #2E2D2A;
  --ink-500: #6E6A63;
  --ink-300: #B0AA9F;
  --ink-200: #D3CEC3;
  --ink-100: #E7E2D8;
  --ink-50: #F1ECE1;

  --gold: #B89B6A;
  --gold-soft: #D9C9A7;
  --gold-deep: #B89B6A;
  --red: #C8102E;

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

  /* Fonts */
  --font-display: 'Bodoni Moda', 'Times New Roman', serif;
  --font-normal: 'Bodoni Moda', serif;
  --font-body: 'Inter', 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: normal;
  font-weight: 300;
  color: var(--ink-700);
}

.display--xl {
  font-size: clamp(40px, 6.6vw, 96px);
}

.display--light {
  color: #fff;
}

.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: #fff;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--roya-red);
  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: 20px;
  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: #d5202f;
  color: var(--ivory);
  border-color: var(--ink-900);
}


.btn--ghost {
  color: var(--ivory);
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
}


.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);
}


.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: #fff;
  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 */


/* ====================== 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: 40px;
  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, rgb(10 10 8 / 86%) 0%, rgb(10 10 8 / 47%) 42%, rgba(10, 10, 8, 0.0) 100%);
  backdrop-filter: blur(0px) 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: 108px;
  letter-spacing: -0.02em;
  color: var(--ivory);
  margin-bottom: 15px;
}

.hero__title-line {
  display: block;
}

.hero__title-line--italic {
  font-style: normal;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  padding-left: 0;
}

.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: normal;
}

.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 5s linear infinite;
  font-family: var(--font-display);
  font-style: normal;
  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: 200vh;
  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__bg-video {
  transition: filter 0.05s linear, transform 0.05s linear;
  transform-origin: center center;
  will-change: filter, transform;
}

.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: normal;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0;
  border: 1px solid #fff;
  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: 13ch;
}

.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;
}



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

.gallery {
  padding: var(--section-y) 0;
  background: var(--ivory-soft);
  position: relative;
}

.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: 100%;
  color: var(--ivory);
  background: linear-gradient(180deg, #06060600, rgb(15 15 12 / 98%)), linear-gradient(360deg, rgb(15 15 12 / 98%), #00000000 80%);
  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, #06060600, rgb(15 15 12 / 98%)), linear-gradient(270deg, rgb(15 15 12 / 0%), #00000000 80%);
  text-align: right;
  margin-left: auto;
}

.gal:hover .gal__overlay {
  transform: translateY(0);
}

.gal__num {
  font-family: var(--font-display);
  font-style: normal;
  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: normal;
  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: normal;
  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: normal;
  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: normal;
  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(--roya-red);
  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: normal;
  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: normal;
  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(rgb(0 0 0 / 0%), rgb(15, 15, 12));
  padding: 100px 32px 24px;
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 11;
}

.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: normal;
  font-weight: 400;
  font-size: 22px;
  color: var(--ivory);
}

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

.enquire {
  position: relative;
  padding: var(--section-y) var(--gutter);
  color: var(--ivory);
  isolation: isolate;
  overflow: hidden;
  /* Important */
  min-height: 100vh;
  background: var(--obsidian);
  background-attachment: fixed;
  /* Optional: Adjust as needed */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Background Container */
/*.enquire::before {*/
/*  content: '';*/
/*  position: absolute;*/
/*  inset: 0;*/
/*  background:*/
/*    linear-gradient(90deg, rgb(10 10 8 / 93%) 0%, rgb(10 10 8 / 80%) 22%, rgba(10, 10, 8, 0.0) 100%);*/
/*  z-index: -1;*/
/*  animation: slowZoom 28s ease-in-out infinite alternate;*/
/*}*/

.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: normal;
  font-size: 22px;
  color: #fff;
  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;
  /*-webkit-backdrop-filter: var(--tw-backdrop-blur, )var(--tw-backdrop-brightness, )var(--tw-backdrop-contrast, )var(--tw-backdrop-grayscale, )var(--tw-backdrop-hue-rotate, )var(--tw-backdrop-invert, )var(--tw-backdrop-opacity, )var(--tw-backdrop-saturate, )var(--tw-backdrop-sepia, );*/
  /*backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) --tw-backdrop-contrast is not defined var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );*/
  background-color: transparent;
  /*backdrop-filter: blur(3px);*/
  /*-webkit-backdrop-filter: blur(3px);*/
  /*box-shadow: 0 4px 30px rgb(255 255 255 / 10%);*/
}

.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: #fff;
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  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: #ffffff;
  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: normal;
  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: #fff;
  color: #000;
  border-color: #fff !important;
}

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

.footer {
  background: #000;
  color: var(--ivory);
  padding: 80px var(--gutter) 32px;
}

.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: normal;
  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: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #d5202f;
  font-weight: 400;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer__cols a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: #fff;
  transition: color 0.3s var(--ease);
}

.footer__cols a:hover {
  color: var(--roya-red);
}

.footer__bottom {
  max-width: var(--max);
  margin: 32px auto 0;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #ffffff;
  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));
  }
}

/* pull quote blur */
.pull-quote {
  height: 100vh;
  /* Makes it take full viewport height for sticky effect */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* Adjust as needed */
  overflow: hidden;
}

.pull-quote__inner {
  text-align: center;
  padding: 2rem;
  will-change: transform, filter, opacity;
}

/* Initial hidden state */
.pull-quote__inner {
  filter: blur(2px);
  opacity: 0;
  transform: translateY(60px);
}

/* arch__media blur bg  */
.reveal-arch__media img#archImg {
  filter: blur(10px);
  transition: filter 0.8s ease-out;
}

.reveal-arch.is-drawing img#archImg {
  filter: blur(0px);
}

/* For very large text */
.display--xl {
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 1.1;
  font-weight: 700;
}

/* stick image */
.image-reveal-container {
  height: 620px;
  overflow: hidden;
  position: relative;
}

.reveal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;

  /* Initial State - Hidden */
  opacity: 1;
  scale: 1.12;
  clip-path: inset(50% 0% 50% 0%);
  will-change: transform, opacity, clip-path;
}

.no-ratio.gal--portrait {
  aspect-ratio: 0;
}

.floating-contact {
  position: fixed;
  right: 0;
  bottom: 38%;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  overflow: hidden;
  box-shadow: -4px 6px 15px rgba(0, 0, 0, 0.35);
  transition: all 0.4s ease;
}

.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 11px 10px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 50px;
}

.contact-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.08);
}

.contact-btn svg {
  width: 22px;
  height: 22px;
}

.contact-btn span {
  font-size: 7px;
  font-weight: 600;
  font-family: system-ui, -apple-system, sans-serif;
  letter-spacing: 0.3px;
}

/* Mobile Adjustments */


.residence__media {
  position: relative;
  overflow: hidden;
}

.residence__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.gal__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* This is the key - like background-size: cover */
  object-position: center center;
  /* Like background-position: center */
  z-index: 1;
}

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

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

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

.day {
  background: var(--ivory);
  padding: 0px var(--section-y) var(--section-y);
}

.day__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.day__head {
  text-align: center;
  margin-bottom: clamp(30px, 8vw, 20px);
  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: normal;
  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: normal;
  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--wide .mood__media.auto-height {
  aspect-ratio: auto !important;
  height: 100%;
}

.location__map.reveal.is-visible {
  height: 100%;
}

/* location scale effect */
.location__photo {
  position: relative;
  overflow: hidden;
}

.location__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(0.85);
  /* Starting scale */
  transition: transform 0.1s ease-out;
  /* Smooth feel */
  will-change: transform;
}

.mood.no-bg .mood__media::after,
.mood.no-bg .mood__media,
.mood.no-bg {
  background: transparent;
}

/* effect ened location */
.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);
}


.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);
}


.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: normal;
  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);
}


/* 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;
}

/* ---------- Pinned section shell ---------- */
#horiz-gallery-section {
  position: relative;
  overflow: hidden;
}

/* ---------- Wrapper & strip (match reference) ---------- */
#horiz-gallery-section .horiz-gallery-wrapper,
#horiz-gallery-section .horiz-gallery-strip {
  display: flex;
  flex-wrap: nowrap;
  will-change: transform;
  position: relative;
}

/* ---------- Each slide ---------- */
#horiz-gallery-section .project-wrap {
  /* Desktop: 3 across, tablet: 2 across, mobile: 1 full screen */
  width: clamp(280px, 50vw, 33vw);
  flex-shrink: 0;
  padding: clamp(0.75rem, 2vw, 2rem);
  padding-left: 0px;
  padding-top: 80px;
  box-sizing: border-box;
  /* change from content-box to border-box */
}

#horiz-gallery-section .project-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}





#horiz-gallery-section .project-wrap figure {
  margin: 0;
  width: 100%;
  position: relative;
}



/* ---------- Caption (your existing figcaption style, scoped) ---------- */
#horiz-gallery-section figcaption {
  margin-top: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* opacity: 0.55; */
  display: flex;
  align-items: center;
  gap: 0.6em;
}

#horiz-gallery-section figcaption span {
  font-variant-numeric: tabular-nums;
  opacity: 0.45;
}


/* ---------- Blur text reveal ---------- */
/*
        Apply  class="blur-reveal"  to any block-level element whose
        direct children (p, h3, span, etc.) should reveal line by line.
        Each word becomes a span; JS groups them into visual lines and
        staggers the unblur on scroll.
      */
.blur-reveal__word {
  display: inline-block;
  filter: blur(6px);
  opacity: 0;
  will-change: filter, opacity;
  transition: filter 0.55s ease, opacity 0.55s ease;
}

.blur-reveal__word.is-visible {
  filter: blur(0px);
  opacity: 1;
}

/* ─── Grid ───────────────────────────────────────── */
/* ─── Section ────────────────────────────────────── */

/* ─── Header ─────────────────────────────────────── */
.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

/* ─── Grid ───────────────────────────────────────── */
/*
          Layout: 4 cols × 3 rows = 12 slots
          Row 1: items 01 02 03 04  (data-row="0", data-col="0..3")
          Row 2: items 05 06 07 08  (data-row="1", data-col="0..3")
          Row 3: item 09 spans cols 0-1, item 10 spans cols 2-3  (data-row="2")
    
          On hover, the hovered column expands (active col = 2fr, others = 1fr)
          and the hovered row expands (active row = 2fr, others = 1fr).
        */
.bento {
  display: grid;
  gap: 8px;
  width: 100%;
  height: clamp(480px, 70vh, 650px);

  /* default: col 0 active, row 0 active — overridden by JS */
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
}

/* Column expansion classes */
.bento.col-0 {
  grid-template-columns: 2fr 1fr 1fr 1fr;
}

.bento.col-1 {
  grid-template-columns: 1fr 2fr 1fr 1fr;
}

.bento.col-2 {
  grid-template-columns: 1fr 1fr 2fr 1fr;
}

.bento.col-3 {
  grid-template-columns: 1fr 1fr 1fr 2fr;
}

/* Row expansion classes */
.bento.row-0 {
  grid-template-rows: 2fr 1fr 1fr;
}

.bento.row-1 {
  grid-template-rows: 1fr 2fr 1fr;
}

.bento.row-2 {
  grid-template-rows: 1fr 1fr 2fr;
}

/* ─── Mood Item ──────────────────────────────────── */
.mood {
  border-radius: 0px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  cursor: pointer;
  background: #1a1a17;
}

/* Row 3 wide items */
.mood--span2 {
  grid-column: span 2;
}

.mood img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
  opacity: 0.82;
}

.mood:hover img {
  transform: scale(1.06);
  opacity: 0.95;
}

.mood__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(5, 4, 2, 0.88) 0%,
      rgba(5, 4, 2, 0.3) 45%,
      transparent 100%);
  z-index: 1;
}

.mood__body {
  position: relative;
  z-index: 2;
  padding: 16px 18px;
  width: 100%;
}

.mood__num {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 1);
  font-weight: 300;
  margin-bottom: 5px;
}

.mood__body h3 {
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 400;
  color: #f5ede0;
  line-height: 1.2;
  position: absolute;
  bottom: 16px;
  left: 18px;
}

.mood:hover h3 {
  position: initial;
}

.mood__body p {
  font-size: 11px;
  color: rgba(245, 237, 224, 0.55);
  line-height: 1.5;
  font-weight: 300;
  margin-top: 5px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease 0.05s;
}

.mood:hover .mood__body p {
  max-height: 48px;
  opacity: 1;
}

/* gold accent line on hover */
.mood::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #c9a96e;
  z-index: 3;
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mood:hover::after {
  width: 100%;
}

.amenities-section {
  overflow: hidden;
}

.padding-top-section {
  padding-top: var(--section-y);
}

/* ============================================================
      AMENITIES BENTO — RESPONSIVE STYLES
      amenities-responsive.css

      Link AFTER your main stylesheet:
      <link rel="stylesheet" href="amenities-responsive.css" />

      Breakpoints
      ───────────
      ≥ 1200px   Desktop large    — 4-col × 3-row Flip grid (default)
      900–1199px Desktop small    — 4-col × 3-row, tighter spacing
      600–899px  Tablet           — 2-col × 5-row static grid, no Flip
      < 600px    Mobile           — 1-col stack, no Flip
    ============================================================ */

/* ────────────────────────────────────────────────────────────
      DESKTOP LARGE  ≥ 1200px
      Default state — no overrides needed, base styles apply.
      Listed here only for clarity.
    ──────────────────────────────────────────────────────────── */


/* ────────────────────────────────────────────────────────────
      DESKTOP SMALL  900px – 1199px
      4-col grid still works, slightly reduced spacing.
    ──────────────────────────────────────────────────────────── */


/* ────────────────────────────────────────────────────────────
      TABLET  600px – 899px
      Switch to a static 2-column grid — 5 rows of 2 items each.
      Items 09 & 10 lose their span-2 and become normal cells.
      GSAP Flip hover effect is disabled (touch-first viewport).
    ──────────────────────────────────────────────────────────── */


/* ────────────────────────────────────────────────────────────
      MOBILE  < 600px
      Single-column vertical stack.
      Fixed height per card for consistency.
      GSAP Flip fully disabled.
    ──────────────────────────────────────────────────────────── */


/* ────────────────────────────────────────────────────────────
      TOUCH DEVICE OVERRIDE  (any pointer: coarse)
      Disables hover-dependent show/hide of description text
      on any touch device regardless of screen width.
    ──────────────────────────────────────────────────────────── */


/* ────────────────────────────────────────────────────────────
      REDUCED MOTION
      Respects system accessibility preference.
    ──────────────────────────────────────────────────────────── */


/* ────────────────────────────────────────────────────────────
      PRINT
      Simple readable list — no grid, no images as backgrounds.
    ──────────────────────────────────────────────────────────── */


/* horizontal scroll responsive */

/* end horizontal scroll responsive */
/* ────────────────────────────────────────────────────────────
      USAGE NOTES
      ─────────────────────────────────────────────────────────

      1. Link order in <head>:
          <link rel="stylesheet" href="your-main-styles.css" />
          <link rel="stylesheet" href="amenities-responsive.css" />

      2. To also disable GSAP Flip on touch / small screens,
          add this snippet inside your existing <script> block,
          just before the forEach loop:

          // Disable Flip on touch or narrow screens
          const noFlip = () =>
            window.matchMedia('(pointer: coarse)').matches ||
            window.innerWidth < 900;

          items.forEach(el => {
            el.addEventListener('mouseenter', () => {
              if (noFlip()) return;  // ← add this guard
              // ... rest of existing mouseenter code
            });
          });

          bento.addEventListener('mouseleave', () => {
            if (noFlip()) return;   // ← add this guard
            // ... rest of existing mouseleave code
          });

      3. The grid height uses clamp() on desktop so it scales
          gracefully between 900px and 1200px without jumps.

      4. On tablet (600–899px) items 09 & 10 lose their
          grid-column:span 2 — each becomes a normal 1×1 cell,
          giving you a clean 2×5 grid of equal-sized cards.
    ──────────────────────────────────────────────────────────── */
/* ====================== Responsive ====================== */







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