/* ==========================================================================
   THE RAJMAHAL PALACE  —  Stylesheet
   Design system: sapphire / ivory / royal gold / deep teal.
   Fraunces (display serif) + Manrope (UI sans). Gold used with restraint.
   ========================================================================== */

/* -----------------------------  DESIGN TOKENS  ---------------------------- */
:root {
  --sapphire:      #0A0E1A;
  --sapphire-2:    #0f1524;
  --ivory:         #F5F0E8;
  --ivory-2:       #ece5d6;
  --gold:          #C9A96E;
  --gold-soft:     rgba(201, 169, 110, 0.55);
  --gold-faint:    rgba(201, 169, 110, 0.18);
  --teal:          #1B3A4B;
  --teal-2:        #0d1f2a;

  --font-display:  "Fraunces", "Times New Roman", serif;
  --font-ui:       "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);     /* expo.out */
  --ease-power:    cubic-bezier(0.25, 0.46, 0.45, 0.94); /* power2.out */

  --pad-x:         clamp(24px, 6vw, 96px);
  --max-w:         1680px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--sapphire);
  color: var(--ivory);
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

html {
  scroll-behavior: auto; /* Lenis handles it */
}

body {
  min-height: 100vh;
  overscroll-behavior-y: none;
}

/* Lenis smooth-scroll requirements */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

/* Custom scrollbar (fallback for reduced motion) */
::-webkit-scrollbar { width: 0; height: 0; }

/* -----------------------------  TYPOGRAPHY  ---------------------------- */
.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 clamp(24px, 3vw, 40px);
  font-feature-settings: "smcp";
  font-variant-caps: all-small-caps;
}
.eyebrow--ivory { color: var(--ivory); opacity: 0.85; }

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(28px, 4vw, 56px);
  font-optical-sizing: auto;
}
.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}
.section-title--ivory { color: var(--ivory); }

.prose {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.05rem, 1.25vw, 1.35rem);
  line-height: 1.7;
  max-width: 40ch;
  color: var(--ivory);
  opacity: 0.86;
  margin: 0 0 clamp(40px, 5vw, 72px);
}

/* Line-mask reveal primitive */
.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;   /* prevent descender clipping */
  margin-bottom: -0.02em;
}
.line-mask .line {
  display: block;
  transform: translateY(105%);
  will-change: transform;
}

/* Split word helper (used by hero) */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: baseline;
  padding-bottom: 0.08em;
  margin-bottom: -0.02em;
}
.split-word > span {
  display: inline-block;
  transform: translateY(105%);
  will-change: transform;
}

/* -----------------------------  FILM GRAIN  ---------------------------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  animation: grainShift 1.6s steps(4) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-6px, 4px); }
  50%  { transform: translate(5px, -3px); }
  75%  { transform: translate(-4px, -5px); }
  100% { transform: translate(0, 0); }
}

/* -----------------------------  CUSTOM CURSOR  ---------------------------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  pointer-events: none;
  z-index: 200;
  mix-blend-mode: difference;
  transform: translate3d(-100px, -100px, 0);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
.cursor__dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.cursor__ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 40px; height: 40px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.3s var(--ease-out);
  display: grid;
  place-items: center;
}
.cursor__label {
  font-family: var(--font-ui);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.cursor.is-hover .cursor__dot { transform: translate(-50%, -50%) scale(0); }
.cursor.is-hover .cursor__ring { opacity: 1; transform: translate(-50%, -50%) scale(2.4); }
.cursor.is-hover .cursor__label { opacity: 1; }

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* Hide native cursor everywhere once the custom cursor is initialised.
   The .has-custom-cursor class is added by JS in initCursor(). */
html.has-custom-cursor,
html.has-custom-cursor * { cursor: none !important; }

/* -----------------------------  PRELOADER  ---------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--sapphire);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  transform: translateY(-4vh);
}
.preloader__word {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  letter-spacing: 0.35em;
  color: var(--ivory);
  padding-left: 0.35em; /* balance visual center from tracking */
  display: flex;
}
.preloader__word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
}
.preloader__rule {
  width: min(320px, 46vw);
  height: 1px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.preloader__rule-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--gold);
}
.preloader__count {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  font-feature-settings: "onum";
  font-variant-numeric: oldstyle-nums;
}
.preloader__curtain {
  position: absolute;
  inset: 0;
  background: var(--sapphire);
  transform: translateY(0);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}

/* -----------------------------  NAV  ---------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  padding: 20px var(--pad-x);
  transform: translateY(-120%);
  transition: transform 0.6s var(--ease-out);
  pointer-events: none;
}
.nav.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.nav.is-hidden {
  transform: translateY(-120%);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(10, 14, 26, 0.55);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(245, 240, 232, 0.06);
  border-radius: 999px;
}
.nav__mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--ivory);
}
.nav__mark-icon {
  width: 18px; height: 18px;
  color: var(--gold);
  display: inline-block;
}
.nav__links {
  display: flex;
  gap: clamp(18px, 2.6vw, 40px);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav__links a {
  position: relative;
  padding: 4px 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.5s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); }

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__inner { border-radius: 999px; padding: 12px 18px; }
}

/* -----------------------------  CHAPTER INDEX  ---------------------------- */
.chapter-index {
  position: fixed;
  right: clamp(16px, 2.4vw, 40px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 110;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  pointer-events: none;
  font-feature-settings: "onum";
  font-variant-numeric: oldstyle-nums;
}
.chapter-index.is-visible { opacity: 1; }
.chapter-index__num {
  font-size: 1.35rem;
  min-width: 2ch;
  text-align: center;
  transition: opacity 0.4s var(--ease-out);
}
.chapter-index__slash {
  font-size: 0.7rem;
  opacity: 0.4;
  letter-spacing: 0.1em;
}
.chapter-index__total {
  font-size: 0.9rem;
  opacity: 0.5;
}

@media (max-width: 720px) {
  .chapter-index { right: 12px; }
  .chapter-index__num { font-size: 1.05rem; }
}

/* -----------------------------  CHAPTER FRAME  ---------------------------- */
.chapter {
  position: relative;
  width: 100%;
}
.chapter__pin {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* -----------------------------  MEDIA  ---------------------------- */
.media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sapphire) 0%, var(--teal-2) 100%);
}
.media__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  will-change: transform;
}
.media__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(10, 14, 26, 0.6) 100%),
    linear-gradient(180deg, rgba(10, 14, 26, 0.2), transparent 20%, transparent 80%, rgba(10, 14, 26, 0.35));
}
.media__scrim {
  position: absolute;
  left: 0; right: 0;
  pointer-events: none;
}
.media__scrim--top {
  top: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.65) 0%, transparent 100%);
}
.media__scrim--bottom {
  bottom: 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(10, 14, 26, 0.75) 0%, transparent 100%);
}
.media__scrim--full {
  inset: 0;
  background: linear-gradient(180deg, rgba(10,14,26,0.35), rgba(10,14,26,0.55) 40%, rgba(10,14,26,0.75));
}
.media__scrim--suite {
  inset: 0;
  background: linear-gradient(90deg, rgba(10,14,26,0.65) 0%, rgba(10,14,26,0.2) 40%, rgba(10,14,26,0) 60%, rgba(10,14,26,0.55) 100%),
              linear-gradient(180deg, rgba(10,14,26,0.4), transparent 25%, transparent 60%, rgba(10,14,26,0.65));
}

/* Placeholder gradient shown before video decodes / if missing */
.media--scrub .media__video:not([data-loaded]),
.media--loop  .media__video:not([data-loaded]) {
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
}
.media--scrub .media__video[data-loaded],
.media--loop  .media__video[data-loaded] {
  opacity: 1;
}

/* -----------------------------  SCRUB PROGRESS  ---------------------------- */
.scrub-progress {
  position: absolute;
  top: 20%;
  left: clamp(14px, 2vw, 32px);
  width: 1px;
  height: 60%;
  background: rgba(245, 240, 232, 0.08);
  z-index: 5;
}
.scrub-progress__fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0%;
  background: var(--gold);
  transform-origin: top;
}

@media (max-width: 720px) {
  .scrub-progress { display: none; }
}

/* ==========================================================================
   CHAPTER 1  —  HERO
   ========================================================================== */
.chapter--hero {}
.hero__content {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 var(--pad-x);
  text-align: center;
  z-index: 3;
}
.hero__headline {
  position: relative;
  display: grid;
  grid-template-areas: "stack";
  place-items: center;
  width: 100%;
  min-height: 1.2em;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(3.4rem, 10vw, 11rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ivory);
  font-optical-sizing: auto;
}
.hero__line {
  grid-area: stack;             /* both lines stack in same cell */
  width: 100%;
  text-align: center;
  opacity: 0;
}
.hero__line--italic {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}
.hero__line[data-hero-line="1"] { opacity: 1; }  /* JS animates */

.hero__cue {
  position: absolute;
  bottom: clamp(24px, 4vw, 48px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 4;
  opacity: 0;
}
.hero__cue-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--gold));
  animation: cueLine 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cueLine {
  0%,100% { transform: scaleY(0.4); opacity: 0.5; }
  50%     { transform: scaleY(1);   opacity: 1;   }
}
.hero__cue-label {
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* ==========================================================================
   CHAPTER 2  —  ARRIVAL
   ========================================================================== */
.arrival__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad-x);
  z-index: 3;
}
.arrival__headline {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.4rem, 7vw, 7rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ivory);
  max-width: 22ch;
  font-optical-sizing: auto;
}
.arrival__word {
  display: inline-block;
  opacity: 0;
  transform: translateX(60px);
  margin-right: 0.35em;
  will-change: transform, opacity;
}
.arrival__word--left  { transform: translateX(-80px); }
.arrival__word--right { transform: translateX( 80px); }

.jali-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
}
.jali-overlay__svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   CHAPTER 3  —  DURBAR HALL
   ========================================================================== */
.chapter--durbar {
  background: var(--sapphire);
  padding: clamp(80px, 12vh, 160px) 0;
}
.durbar__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
  min-height: 82vh;
}
.durbar__media {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  min-height: 60vh;
  background: var(--teal-2);
}
.durbar__media .media { position: absolute; }
.durbar__panel {
  background: var(--ivory);
  color: var(--sapphire);
  padding: clamp(40px, 5vw, 80px);
  transform: translateX(60px);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.durbar__panel .eyebrow { color: var(--teal); }
.durbar__panel .section-title { color: var(--sapphire); }
.durbar__panel .section-title em { color: var(--gold); }
.durbar__panel .prose { color: rgba(10, 14, 26, 0.75); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 32px);
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid rgba(10, 14, 26, 0.12);
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 3.4vw, 3.4rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
  font-feature-settings: "onum";
  font-variant-numeric: oldstyle-nums;
  letter-spacing: -0.02em;
}
.stat__label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(10, 14, 26, 0.55);
  font-weight: 500;
}

@media (max-width: 900px) {
  .durbar__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .durbar__media { min-height: 55vh; }
  .durbar__panel { transform: translateY(40px); }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   CHAPTER 4  —  MAHARAJA SUITE  (horizontal card scroll inside vertical pin)
   ========================================================================== */
.chapter--suite {
  background: var(--sapphire);
}
.suite__pin {
  position: relative;
  overflow: hidden;
}
.suite__media { z-index: 0; }
.suite__video {
  transform: scale(1.12);   /* extra to allow parallax translate */
  height: 118%;
  top: -9%;
}

.suite__intro {
  position: absolute;
  top: clamp(80px, 12vh, 140px);
  left: var(--pad-x);
  z-index: 2;
  max-width: 46ch;
  pointer-events: none;
}

.suite__track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68%;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: clamp(48px, 8vh, 96px);
  z-index: 2;
}
.suite__strip {
  display: flex;
  gap: clamp(24px, 3vw, 48px);
  padding: 0 var(--pad-x);
  will-change: transform;
}
.card {
  flex: 0 0 clamp(280px, 32vw, 440px);
  aspect-ratio: 3 / 4;
  background: rgba(10, 14, 26, 0.55);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  border: 1px solid var(--gold-faint);
  padding: clamp(24px, 2.2vw, 36px);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease-out), border-color 0.5s var(--ease-out), box-shadow 0.6s var(--ease-out);
  color: var(--ivory);
}
.card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 30px 60px -30px rgba(201, 169, 110, 0.45), 0 0 0 1px var(--gold-soft) inset;
}
.card__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: auto;
  letter-spacing: 0.05em;
}
.card__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--ivory);
}
.card__poem {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(245, 240, 232, 0.78);
  margin: 0 0 24px;
  max-width: 26ch;
}
.card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 20px;
  border-top: 1px solid var(--gold-faint);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.7);
}
.card__price { color: var(--gold); }
.card__price span { color: rgba(201, 169, 110, 0.55); font-size: 0.68rem; }

@media (max-width: 720px) {
  .suite__intro { max-width: 92%; top: 100px; }
}

/* ==========================================================================
   CHAPTER 5  —  POOL & GARDENS  (expanding scalloped-arch)
   ========================================================================== */
.chapter--pool {
  background: var(--sapphire);
}
.pool__pin { display: block; }
.pool__arch-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Mughal cusped-arch clip via SVG path — expands to 100% on scroll */
  --arch-scale: 0.28;
  clip-path: path("M 720 900 C 480 900 460 780 460 640 C 460 460 500 340 550 260 C 620 150 720 100 720 100 C 720 100 820 150 890 260 C 940 340 980 460 980 640 C 980 780 960 900 720 900 Z");
  transform: none;
  will-change: clip-path;
  overflow: hidden;
}
.pool__arch-wrap .media { position: absolute; }

.pool__frame {
  position: absolute;
  top: 8vh;
  left: 0;
  right: 0;
  padding: 0 var(--pad-x);
  text-align: center;
  z-index: 3;
  pointer-events: none;
}
.pool__frame .section-title { max-width: 22ch; margin-left: auto; margin-right: auto; }

.floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.floater {
  position: absolute;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 4.5rem);
  color: var(--ivory);
  opacity: 0.85;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 40px rgba(10, 14, 26, 0.6);
  mix-blend-mode: normal;
  will-change: transform;
}
.floater:nth-child(1) { top: 22%; left: 8%;  }
.floater:nth-child(2) { top: 46%; right: 10%; color: var(--gold); }
.floater:nth-child(3) { bottom: 22%; left: 20%; }

/* ==========================================================================
   CHAPTER 6  —  NIGHT FINALE
   ========================================================================== */
.chapter--finale {}
.finale__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 var(--pad-x);
  z-index: 3;
}
.finale__headline {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.2rem, 6vw, 6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(48px, 8vh, 96px);
  color: var(--ivory);
  max-width: 22ch;
  font-optical-sizing: auto;
}
.finale__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  margin: 0 0.18em;
}
.finale__word--italic {
  font-style: italic;
  color: var(--gold);
}
.finale__cta-wrap {
  opacity: 0;
  transform: translateY(20px);
}

/* -----------------------------  CTA  ---------------------------- */
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 22px 44px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ivory);
  background: transparent;
  overflow: hidden;
  cursor: none;
  isolation: isolate;
  will-change: transform;
}
.cta__label { position: relative; z-index: 2; }

/* Four borders that draw on hover */
.cta__border {
  position: absolute;
  background: var(--gold);
  z-index: 1;
  transform-origin: center;
}
.cta__border--t { top: 0;    left: 0;   height: 1px; width: 100%; transform: scaleX(0); transform-origin: left; }
.cta__border--r { top: 0;    right: 0;  width: 1px;  height: 100%; transform: scaleY(0); transform-origin: top; }
.cta__border--b { bottom: 0; right: 0;  height: 1px; width: 100%; transform: scaleX(0); transform-origin: right; }
.cta__border--l { bottom: 0; left: 0;   width: 1px;  height: 100%; transform: scaleY(0); transform-origin: bottom; }

/* Faint permanent frame so button is visible before hover */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold-faint);
  z-index: 0;
}

.cta__sheen {
  position: absolute;
  top: 0; left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(201,169,110,0.22), transparent);
  z-index: 0;
  pointer-events: none;
}
.cta:hover .cta__border--t { transform: scaleX(1); transition: transform 0.35s var(--ease-out); }
.cta:hover .cta__border--r { transform: scaleY(1); transition: transform 0.35s var(--ease-out) 0.28s; }
.cta:hover .cta__border--b { transform: scaleX(1); transition: transform 0.35s var(--ease-out) 0.56s; }
.cta:hover .cta__border--l { transform: scaleY(1); transition: transform 0.35s var(--ease-out) 0.84s; }
.cta:hover .cta__sheen {
  left: 160%;
  transition: left 1.6s var(--ease-out) 1s;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--ivory);
  color: var(--sapphire);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.footer__jali-top, .footer__jali-bottom {
  color: var(--gold);
  height: 20px;
  overflow: hidden;
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 120px) var(--pad-x);
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(40px, 6vw, 96px);
}
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__logo {
  width: 32px; height: 32px;
  color: var(--gold);
}
.footer__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}
.footer__tag {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(10, 14, 26, 0.55);
  font-size: 0.95rem;
  margin: 0;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 56px);
}
.footer__col h4 {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  margin: 0 0 20px;
}
.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col a {
  position: relative;
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--sapphire);
  font-size: 1.05rem;
}
.footer__col a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 1px;
  width: 100%;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.5s var(--ease-out);
}
.footer__col a:hover::after { transform: scaleX(1); }
.footer__col address {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(10, 14, 26, 0.75);
}
.footer__legal {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px var(--pad-x);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(10, 14, 26, 0.5);
  border-top: 1px solid rgba(10, 14, 26, 0.08);
}

@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols  { grid-template-columns: 1fr 1fr; }
  .footer__legal { flex-direction: column; text-align: left; }
}

/* ==========================================================================
   REDUCED MOTION  —  disable scrubs & heavy motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .grain { display: none; }
  .cursor { display: none; }
  .hero__cue-line { animation: none; }

  .chapter__pin { height: auto; min-height: 100vh; }
  .hero__line { position: relative; opacity: 1 !important; transform: none !important; padding: 0; }
  .hero__line--italic { display: none; }

  .arrival__word { opacity: 1 !important; transform: none !important; }
  .finale__word  { opacity: 1 !important; transform: none !important; }
  .finale__cta-wrap { opacity: 1 !important; transform: none !important; }

  .line-mask { overflow: visible; }
  .line-mask .line { transform: none !important; }

  .split-word > span { transform: none !important; }

  .durbar__panel { transform: none !important; opacity: 1 !important; }

  .pool__arch-wrap { clip-path: none !important; }

  .media__video { transform: none !important; }
}

/* ==========================================================================
   MOBILE ADJUSTMENTS  (JS also swaps scrubbed sections to Ken-Burns posters)
   ========================================================================== */
@media (max-width: 768px) {
  .hero__headline { font-size: clamp(2.6rem, 12vw, 5rem); }
  .arrival__headline { font-size: clamp(2rem, 8vw, 4rem); }
  .finale__headline  { font-size: clamp(1.6rem, 7vw, 3.4rem); }
}

/* Ken-Burns fallback for scrubbed sections on mobile */
.media--scrub.is-touch-fallback .media__video { display: none; }
.media--scrub.is-touch-fallback {
  background-image: var(--kb-bg);
  background-size: cover;
  background-position: center;
}
.media--scrub.is-touch-fallback::before {
  content: "";
  position: absolute;
  inset: -8%;
  background-image: var(--kb-bg);
  background-size: cover;
  background-position: center;
  animation: kenBurns 18s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  from { transform: scale(1.02) translate(0, 0); }
  to   { transform: scale(1.15) translate(-2%, 1%); }
}
