/* ==========================================================================
   Meraki Luxury Spa — Design System & Styles
   Voice: Midnight Gold (Executive calm, candle-lit stone, brushed gold)
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Font Faces (Self-hosted variable WOFF2, font-display: swap)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-italic-variable.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   02. Design Tokens (:root)
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --bg: #0b0a09;
  --bg-1: #14120f;
  --bg-2: #1c1915;
  --bg-3: #26221c;

  --ivory: #f3ede2;
  --ivory-soft: #cfc6b8;
  --muted: #948b7d;

  --gold: #c9a961;
  --gold-bright: #e4c98a;
  --gold-deep: #8f7434;
  --gold-glow: rgba(201, 169, 97, 0.18);

  --line: rgba(243, 237, 226, 0.12);
  --line-gold: rgba(201, 169, 97, 0.35);
  --sage: #6f7b6c;

  /* Typography */
  --serif: "Cormorant Garamond", "Iowan Old Style", Baskerville, Georgia, serif;
  --sans: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Motion & Layout */
  --ease-luxury: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 900ms;
  --content: min(1380px, calc(100vw - 96px));
  --pad: clamp(4.5rem, 12vw, 10rem);
  --chat-launcher-size: 64px;
}

@media (max-width: 768px) {
  :root {
    --content: calc(100vw - 40px);
    --pad: clamp(3.5rem, 10vw, 6rem);
  }
}

/* --------------------------------------------------------------------------
   03. Reset & Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background-color: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--ivory-soft);
  font-family: var(--sans);
  font-size: 1.0625rem; /* ~17px */
  font-weight: 350;
  line-height: 1.7;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 300ms ease;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

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

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Skip Link */
.skip-link {
  position: fixed;
  z-index: 999;
  top: -100px;
  left: 24px;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--bg);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: top 240ms ease;
}

.skip-link:focus {
  top: 24px;
}

/* --------------------------------------------------------------------------
   04. Page Intro Curtain
   -------------------------------------------------------------------------- */
.page-intro {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--ivory);
  opacity: 1;
  transition: opacity 1.4s ease, visibility 0s linear 1.4s;
  pointer-events: all;
}

.page-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(circle at 50% 50%, rgba(201, 169, 97, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.page-intro-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
}

.page-intro-mark-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-intro-glow {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: clamp(220px, 34vw, 340px);
  height: clamp(220px, 34vw, 340px);
  transform: translate(-50%, -50%) scale(0.85);
  background: radial-gradient(circle, rgba(201, 169, 97, 0.35) 0%, transparent 70%);
  filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  animation: introGlowPulse 1.6s 150ms ease-in-out forwards;
}

.page-intro-stars {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.intro-star {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--gold-bright);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 6px rgba(228, 201, 138, 0.9));
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  animation-name: introStar;
  animation-timing-function: ease-out;
  animation-fill-mode: both;
}

.intro-star.is-gold {
  background: var(--gold);
}

.intro-star.is-twinkle {
  animation-name: introTwinkle;
}

.page-intro-mark {
  position: relative;
  z-index: 1;
  width: clamp(160px, 22vw, 240px);
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  animation: introFade 900ms 150ms var(--ease-luxury) forwards;
}

.page-intro-line {
  width: 0;
  height: 1px;
  margin: 24px 0 16px;
  background: var(--gold);
  animation: introLineWidth 800ms 350ms var(--ease-luxury) forwards;
}

.page-intro-sub {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-bright);
  opacity: 0;
  animation: introFade 700ms 550ms var(--ease-luxury) forwards;
}

@keyframes introFade {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes introLineWidth {
  to {
    width: 64px;
  }
}

@keyframes introGlowPulse {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
  }
  45% {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(1.08);
  }
  70% {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(0.96);
  }
  100% {
    opacity: 0.65;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes introStar {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(0, 0) rotate(0deg) scale(0);
  }
  45% {
    opacity: 1;
    transform: translate(-50%, -50%) translate(calc(var(--tx, 0px) * 0.6), calc(var(--ty, 0px) * 0.6)) rotate(25deg) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--tx, 0px), var(--ty, 0px)) rotate(45deg) scale(0.6);
  }
}

@keyframes introTwinkle {
  0%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
  25% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
  50% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.7);
  }
  75% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

body.is-ready .page-intro {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Scroll Progress Hairline */
.scroll-progress {
  position: fixed;
  z-index: 300;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep) 0%, var(--gold-bright) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 100ms linear;
}

/* --------------------------------------------------------------------------
   05. Site Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  z-index: 250;
  top: 0;
  left: 0;
  right: 0;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4.5vw, 64px);
  background: transparent;
  transition: min-height 400ms var(--ease-luxury), background 400ms ease, border-color 400ms ease, backdrop-filter 400ms ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  min-height: 72px;
  background: rgba(11, 10, 9, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header-brand-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  transition: height 400ms var(--ease-luxury), transform 300ms ease;
}

.header-brand:hover .header-brand-logo {
  transform: scale(1.02);
}

.site-header.is-scrolled .header-brand-logo {
  height: 44px;
}

/* Desktop Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 40px);
}

.header-nav a {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  padding: 6px 0;
  transition: color 300ms ease;
}

.header-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-bright);
  transition: width 350ms var(--ease-luxury);
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--ivory);
}

.header-nav a:hover::after,
.header-nav a:focus-visible::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 6px;
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 300ms ease, background-color 300ms ease;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ivory);
  transition: transform 350ms var(--ease-luxury), opacity 250ms ease;
}

.menu-toggle:hover {
  border-color: var(--line-gold);
}

/* burger → X while the menu is open (2 bars) */
body.menu-open .menu-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
body.menu-open .menu-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
body.menu-open .menu-toggle span:nth-child(2):not(:last-child) { opacity: 0; }

/* keep the concierge launcher out of the open menu */
body.menu-open .chat-widget { visibility: hidden; opacity: 0; pointer-events: none; transition: opacity 250ms ease, visibility 0s 250ms; }

/* Mobile Menu Overlay */
.mobile-nav-overlay {
  position: fixed;
  z-index: 240;
  inset: 0;
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 110px clamp(24px, 7vw, 56px) 48px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 400ms ease, transform 400ms var(--ease-luxury), visibility 400ms;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-links a {
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 300;
  color: var(--ivory);
  line-height: 1.1;
  transition: color 300ms ease, transform 300ms ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus-visible {
  color: var(--gold-bright);
  transform: translateX(6px);
}

.mobile-nav-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.mobile-nav-footer p {
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

@media (max-width: 960px) {
  .header-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .site-header .btn-header-cta {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-brand-logo {
    height: 52px;
  }

  .site-header.is-scrolled .header-brand-logo {
    height: 38px;
  }
}

/* --------------------------------------------------------------------------
   06. Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid var(--gold);
  transition: transform 300ms var(--ease-luxury), background-color 300ms ease, color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--gold-glow);
}

.btn-outline {
  background-color: transparent;
  color: var(--ivory);
  border-color: var(--gold);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: var(--gold);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--gold-glow);
}

.btn-secondary {
  background-color: rgba(243, 237, 226, 0.04);
  color: var(--ivory);
  border-color: var(--line);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: var(--bg-2);
  border-color: var(--line-gold);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

.line-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  transition: gap 300ms ease, color 300ms ease;
}

.line-link span {
  transition: transform 300ms ease;
}

.line-link:hover,
.line-link:focus-visible {
  color: var(--ivory);
  gap: 12px;
}

.line-link:hover span,
.line-link:focus-visible span {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   07. Typography & Editorial Structure
   -------------------------------------------------------------------------- */
.container {
  width: var(--content);
  max-width: 1380px;
  margin-inline: auto;
}

.section-pad {
  padding-block: var(--pad);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ivory);
  max-width: 24ch;
}

.section-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 350;
  color: var(--gold-bright);
}

.section-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin-block: 28px 32px;
}

.lead-text {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.7;
  color: var(--ivory-soft);
  max-width: 62ch;
}

.body-text {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ivory-soft);
  max-width: 62ch;
}

.body-text + .body-text {
  margin-top: 1.25rem;
}

/* --------------------------------------------------------------------------
   08. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
  overflow: hidden;
  background-color: var(--bg);
}

.hero-media-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-media-wrap picture {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  transform: scale(1.06);
  animation: kenBurns 14s ease-out forwards;
}

@keyframes kenBurns {
  to {
    transform: scale(1);
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to bottom, rgba(11, 10, 9, 0.72) 0%, rgba(11, 10, 9, 0.35) 90px, transparent 200px),
    linear-gradient(90deg, rgba(11, 10, 9, 0.86) 0%, rgba(11, 10, 9, 0.52) 42%, rgba(11, 10, 9, 0.04) 78%, rgba(11, 10, 9, 0.02) 100%),
    linear-gradient(to top, var(--bg) 0%, rgba(11, 10, 9, 0.35) 22%, transparent 55%);
}

@media (max-width: 768px) {
  .hero-media { object-position: 46% 35%; }

  .hero-scrim {
    background:
      linear-gradient(to bottom, rgba(11, 10, 9, 0.78) 0%, rgba(11, 10, 9, 0.5) 18%, rgba(11, 10, 9, 0.48) 45%, rgba(11, 10, 9, 0.9) 82%, var(--bg) 100%);
  }
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 4;
  width: var(--content);
  max-width: 1380px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 24px;
}

.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ivory);
  max-width: 14ch;
  margin-bottom: 24px;
}

.hero-h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 350;
  color: var(--gold-bright);
}

.hero-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.65;
  color: var(--ivory-soft);
  max-width: 54ch;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 8px;
}

.scroll-cue {
  position: absolute;
  z-index: 4;
  bottom: 28px;
  left: calc((100vw - var(--content)) / 2);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-bright);
  transition: opacity 300ms ease;
}

.scroll-cue::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.scroll-cue:hover {
  opacity: 0.75;
}

@media (max-width: 768px) {
  .scroll-cue {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   09. Section 01 — Experience
   -------------------------------------------------------------------------- */
.section-experience {
  position: relative;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
}

.experience-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

@media (max-width: 900px) {
  .experience-grid-layout {
    grid-template-columns: 1fr;
  }
}

.facts-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding: 28px 0;
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
}

.fact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fact-item span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

@media (max-width: 600px) {
  .facts-strip {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* --------------------------------------------------------------------------
   10. Section 02 — Rituals
   -------------------------------------------------------------------------- */
.section-rituals {
  position: relative;
  background-color: var(--bg-1);
  border-bottom: 1px solid var(--line);
}

.rituals-header {
  margin-bottom: 56px;
}

.rituals-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 36px);
}

@media (max-width: 960px) {
  .rituals-cards {
    grid-template-columns: 1fr;
  }
}

.ritual-card {
  position: relative;
  background-color: var(--bg-2);
  border: 1px solid var(--line);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 450ms ease, transform 450ms var(--ease-luxury), box-shadow 450ms ease;
}

.ritual-card:hover {
  border-color: var(--line-gold);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.ritual-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--bg-3);
}

.ritual-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-luxury);
}

.ritual-card:hover .ritual-media {
  transform: scale(1.04);
}

.ritual-content {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ritual-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.ritual-title {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 350;
  line-height: 1.2;
  color: var(--ivory);
  margin-bottom: 16px;
}

.ritual-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ivory-soft);
  margin-top: auto;
}

.rituals-footnote {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.rituals-footnote p {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 50ch;
}

/* --------------------------------------------------------------------------
   11. Section 03 — A Meraki Afternoon (Journey)
   -------------------------------------------------------------------------- */
.section-journey {
  position: relative;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
}

.journey-header {
  margin-bottom: 64px;
}

.journey-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.journey-timeline::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, var(--line) 0%, var(--gold) 50%, var(--line) 100%);
  z-index: 1;
}

.journey-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 48px;
}

.journey-num {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gold-bright);
  background-color: var(--bg);
  padding-right: 12px;
}

.journey-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 350;
  color: var(--ivory);
  margin-bottom: 10px;
}

.journey-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ivory-soft);
}

.journey-closing {
  margin-top: 56px;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gold-bright);
}

@media (max-width: 900px) {
  .journey-timeline {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-left: 36px;
    margin-top: 24px;
  }

  .journey-timeline::before {
    top: 10px;
    bottom: 10px;
    left: 12px;
    right: auto;
    width: 1px;
    height: auto;
    background: var(--line-gold);
  }

  .journey-step {
    padding-top: 0;
  }

  .journey-num {
    position: static;
    margin-bottom: 4px;
    padding-right: 0;
  }
}

/* --------------------------------------------------------------------------
   12. Section 04 — Spaces (Editorial Gallery)
   -------------------------------------------------------------------------- */
.section-spaces {
  position: relative;
  background-color: var(--bg-1);
  border-bottom: 1px solid var(--line);
}

.spaces-header {
  margin-bottom: 56px;
}

.spaces-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-2);
  border: 1px solid var(--line);
}

.gallery-item picture {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item picture,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 900ms var(--ease-luxury), filter 600ms ease;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 10, 9, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0.9;
  transition: opacity 400ms ease;
}

.gallery-item-caption {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.gallery-item:hover picture img,
.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item:hover {
  border-color: var(--line-gold);
}

/* Asymmetric Magazine Layout — rows share a height so bottoms align */
.gallery-item { aspect-ratio: auto; }
.gallery-item-1 { grid-column: span 7; height: clamp(320px, 39vw, 560px); }
.gallery-item-2 { grid-column: span 5; height: clamp(320px, 39vw, 560px); }
.gallery-item-3,
.gallery-item-4,
.gallery-item-5 { grid-column: span 4; height: clamp(220px, 24vw, 340px); }
.gallery-item-6 { grid-column: span 5; height: clamp(260px, 30vw, 430px); }
.gallery-item-7 { grid-column: span 7; height: clamp(260px, 30vw, 430px); }

/* Typographic tile (no photo) */
.gallery-item-quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(28px, 4vw, 56px);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(201, 169, 97, 0.10), transparent 60%),
    var(--bg-2);
}

.gallery-item-quote .gallery-quote-mark {
  width: 56px;
  height: auto;
  opacity: 0.9;
}

.gallery-item-quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  line-height: 1.15;
  color: var(--ivory);
}

.gallery-item-quote blockquote em {
  font-style: italic;
  color: var(--gold-bright);
}

.gallery-item-quote .gallery-quote-note {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.gallery-item-quote:hover { border-color: var(--line-gold); }

@media (max-width: 900px) {
  .spaces-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    grid-column: span 1 !important;
    height: auto;
    aspect-ratio: 16 / 11;
  }

  .gallery-item-quote {
    aspect-ratio: auto;
    min-height: 220px;
  }
}

.spaces-note {
  margin-top: 32px;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   13. Section 05 — Family of 16
   -------------------------------------------------------------------------- */
.section-family {
  position: relative;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
}

.family-content {
  margin-bottom: 48px;
}

.family-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.family-tile {
  background-color: var(--bg-2);
  border: 1px solid var(--line);
  padding: 24px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ivory);
  transition: transform 300ms var(--ease-luxury), border-color 300ms ease, background-color 300ms ease;
  min-height: 90px;
}

a.family-tile:hover,
a.family-tile:focus-visible {
  border-color: var(--gold);
  background-color: var(--bg-3);
  transform: translateY(-2px);
  color: var(--gold-bright);
}

.family-tile.is-muted {
  color: var(--muted);
  border-style: dashed;
}

@media (max-width: 960px) {
  .family-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .family-tiles {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   14. Section 06 — Location
   -------------------------------------------------------------------------- */
.section-location {
  position: relative;
  background-color: var(--bg-1);
  border-bottom: 1px solid var(--line);
}

.location-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

@media (max-width: 900px) {
  .location-layout {
    grid-template-columns: 1fr;
  }
}

.location-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-block: 36px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.location-detail-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  font-size: 0.9375rem;
}

.location-detail-row dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.location-detail-row dd {
  color: var(--ivory-soft);
}

.location-detail-row dd a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.location-detail-row dd a:hover {
  color: var(--ivory);
}

/* --------------------------------------------------------------------------
   15. Section 07 — Enquire (Dark Luxury Panel)
   -------------------------------------------------------------------------- */
.section-enquire {
  position: relative;
  background-color: var(--bg);
  padding-block: var(--pad);
}

.enquire-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line-gold);
  padding: clamp(40px, 8vw, 88px) clamp(24px, 6vw, 72px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.enquire-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(201, 169, 97, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.enquire-mark {
  width: 56px;
  height: 27px;
  object-fit: contain;
  margin-bottom: 28px;
  opacity: 0.9;
}

.enquire-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ivory);
  margin-bottom: 20px;
  max-width: 18ch;
}

.enquire-body {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  color: var(--ivory-soft);
  max-width: 52ch;
  margin-bottom: 40px;
}

.enquire-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   16. Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg);
  border-top: 1px solid var(--line);
  padding-top: clamp(48px, 8vw, 80px);
  padding-bottom: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  margin-bottom: clamp(48px, 7vw, 72px);
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.footer-logo-wordmark {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.footer-brand-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 32ch;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--ivory-soft);
  transition: color 250ms ease, transform 250ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold-bright);
  transform: translateX(2px);
}

.footer-bottom {
  padding-top: 32px;
  padding-right: calc(var(--chat-launcher-size) + 40px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-back-top {
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-back-top:hover {
  color: var(--ivory);
}

/* --------------------------------------------------------------------------
   17. Legal Pages & 404 (Privacy, Terms, Not Found)
   -------------------------------------------------------------------------- */
.legal-page-header {
  padding-top: 150px;
  padding-bottom: 48px;
  background-color: var(--bg-1);
  border-bottom: 1px solid var(--line);
}

.legal-article {
  max-width: 760px;
  margin-inline: auto;
  padding-block: clamp(48px, 8vw, 80px);
}

.legal-article h2 {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 350;
  color: var(--ivory);
  margin-top: 48px;
  margin-bottom: 18px;
}

.legal-article p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ivory-soft);
  margin-bottom: 20px;
}

.legal-article ul {
  margin-bottom: 24px;
  padding-left: 24px;
  color: var(--ivory-soft);
}

.legal-article li {
  margin-bottom: 10px;
}

.not-found-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  background-color: var(--bg);
}

.not-found-inner {
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.not-found-mark {
  width: 72px;
  height: 35px;
  object-fit: contain;
  margin-bottom: 32px;
}

.not-found-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ivory);
  margin-bottom: 20px;
}

.not-found-desc {
  font-size: 1.0625rem;
  color: var(--ivory-soft);
  margin-bottom: 36px;
  max-width: 44ch;
}

/* --------------------------------------------------------------------------
   18. Chat Widget (Concierge)
   -------------------------------------------------------------------------- */
.chat-widget {
  position: relative;
  z-index: 400;
}

.chat-launcher,
.chat-close,
.chat-form button,
.chat-quick-action {
  appearance: none;
  border: 0;
  cursor: pointer;
}

.chat-launcher {
  position: fixed;
  z-index: 400;
  right: clamp(16px, 2.5vw, 36px);
  bottom: clamp(16px, 2.5vw, 36px);
  width: var(--chat-launcher-size);
  height: var(--chat-launcher-size);
  display: grid;
  place-items: center;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--gold-bright);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  transition: transform 400ms var(--ease-luxury), background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.chat-launcher::before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: inherit;
  transition: inset 400ms var(--ease-luxury), opacity 400ms ease;
}

.chat-launcher:hover,
.chat-launcher:focus-visible,
.chat-launcher.is-open {
  transform: translateY(-3px);
  background: var(--bg-3);
  border-color: var(--gold-bright);
  color: var(--ivory);
  box-shadow: 0 20px 56px var(--gold-glow);
}

.chat-launcher:hover::before,
.chat-launcher:focus-visible::before,
.chat-launcher.is-open::before {
  inset: -8px;
  opacity: 0.6;
}

.chat-launcher svg,
.chat-close svg,
.chat-form button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.chat-panel {
  position: fixed;
  z-index: 399;
  right: clamp(16px, 2.5vw, 36px);
  bottom: calc(clamp(16px, 2.5vw, 36px) + 76px);
  width: min(420px, calc(100vw - 32px));
  height: min(620px, calc(100svh - 110px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-gold);
  background: var(--bg-1);
  color: var(--ivory);
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.7);
  transform-origin: right bottom;
  animation: chatPanelIn 420ms var(--ease-luxury) both;
}

.chat-panel[hidden] {
  display: none;
}

@keyframes chatPanelIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.chat-header {
  min-height: 84px;
  display: grid;
  grid-template-columns: 48px 1fr 36px;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.chat-header-mark {
  width: 44px;
  height: 21px;
  object-fit: contain;
}

.chat-header-info p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--ivory);
}

.chat-header-info span {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--gold-bright);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
}

.chat-header-info span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6f7b6c;
  box-shadow: 0 0 0 3px rgba(111, 123, 108, 0.2);
}

.chat-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(243, 237, 226, 0.06);
  color: var(--ivory);
  transition: background-color 250ms ease, transform 250ms ease;
}

.chat-close:hover,
.chat-close:focus-visible {
  background: rgba(243, 237, 226, 0.12);
  transform: rotate(5deg);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 18px 12px;
  scrollbar-color: var(--bg-3) transparent;
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--bg-3);
}

.chat-message-row {
  display: flex;
  margin: 0 0 12px;
}

.chat-message-row.is-user {
  justify-content: flex-end;
}

.chat-message {
  max-width: 86%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ivory-soft);
  font-size: 0.875rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.chat-message-row.is-user .chat-message {
  border-color: var(--line-gold);
  background: var(--bg-3);
  color: var(--ivory);
}

.chat-message strong {
  color: var(--gold-bright);
  font-weight: 600;
}

.chat-message em {
  font-style: italic;
}

.chat-message.is-loading {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
}

.chat-message.is-loading span {
  width: 6px;
  height: 6px;
  background: var(--gold-bright);
  border-radius: 50%;
  animation: chatDotPulse 1.2s infinite ease-in-out both;
}

.chat-message.is-loading span:nth-child(1) { animation-delay: -0.32s; }
.chat-message.is-loading span:nth-child(2) { animation-delay: -0.16s; }

@keyframes chatDotPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.chat-email-link {
  display: inline-block;
  color: var(--gold-bright);
  font-size: 0.8125rem;
  text-decoration: underline;
  margin-top: 4px;
}

.chat-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 18px 12px;
}

.chat-quick-action {
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ivory-soft);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 2px;
  transition: border-color 250ms ease, background-color 250ms ease, color 250ms ease;
}

.chat-quick-action:hover,
.chat-quick-action:focus-visible {
  border-color: var(--gold);
  background-color: var(--bg-3);
  color: var(--ivory);
}

.chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.chat-form input {
  flex: 1;
  background: transparent;
  color: var(--ivory);
  font-size: 0.875rem;
  outline: none;
  border-radius: 2px;
}

.chat-form input:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.chat-form input::placeholder {
  color: var(--muted);
}

.chat-form button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  background: var(--bg-3);
  border-radius: 2px;
  transition: background-color 250ms ease, transform 250ms ease;
}

.chat-form button:hover:not(:disabled),
.chat-form button:focus-visible:not(:disabled) {
  background: var(--gold);
  color: var(--bg);
  transform: translateX(2px);
}

.chat-form button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.chat-disclaimer {
  padding: 8px 18px 12px;
  font-size: 0.6875rem;
  color: var(--muted);
  text-align: center;
  background: var(--bg-2);
}

/* --------------------------------------------------------------------------
   19. Motion & Scroll Reveal System
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur) var(--ease-luxury), transform var(--dur) var(--ease-luxury);
  will-change: opacity, transform;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js [data-reveal-delay="1"] { transition-delay: 120ms; }
.js [data-reveal-delay="2"] { transition-delay: 240ms; }
.js [data-reveal-delay="3"] { transition-delay: 360ms; }

/* --------------------------------------------------------------------------
   20. Reduced Motion (WCAG AAA Accessibility)
   -------------------------------------------------------------------------- */
@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;
  }

  .page-intro {
    display: none !important;
  }

  .hero-media {
    transform: none !important;
  }

  .hero-canvas {
    display: none !important;
  }

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
