:root {
  --ink: #0b0a09;
  --ink-2: #14120f;
  --ivory: #f4efe6;
  --muted: rgba(244, 239, 230, 0.62);
  --gold: #d6bd8a;
  --gold-2: #f0dcb0;
  --line: rgba(244, 239, 230, 0.14);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }

/* —— Stage —— */
#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, transparent 40%, rgba(11, 10, 9, 0.75) 100%),
    linear-gradient(180deg, rgba(11, 10, 9, 0.35), transparent 22%, transparent 70%, rgba(11, 10, 9, 0.6));
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* —— Loader —— */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.25rem;
  background: var(--ink);
  transition: opacity 1s var(--ease), visibility 1s;
}

.loader.is-done { opacity: 0; visibility: hidden; }

.loader__mark {
  font-family: var(--serif);
  font-size: 3rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.loader__bar {
  width: 11rem;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}

.loader__bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}

.loader__text {
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* —— Cursor —— */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 2.25rem;
  height: 2.25rem;
  margin: -1.125rem 0 0 -1.125rem;
  border: 1px solid rgba(214, 189, 138, 0.7);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), background 0.3s, opacity 0.4s;
  mix-blend-mode: difference;
}

.cursor.is-on { opacity: 1; }
.cursor.is-hover {
  width: 4rem;
  height: 4rem;
  margin: -2rem 0 0 -2rem;
  background: rgba(214, 189, 138, 0.18);
}

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

/* —— Nav —— */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem);
  mix-blend-mode: normal;
}

.nav__brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
}

.nav__brand em { font-style: italic; color: var(--gold); }

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2.25rem); }

.nav__links a {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.nav__links a:hover { color: var(--ivory); }

.nav__cta {
  padding: 0.7rem 1.4rem;
  color: var(--ink) !important;
  background: var(--gold);
  border-radius: 999px;
}

.nav__cta:hover { background: var(--gold-2); }

@media (max-width: 700px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* —— Progress —— */
.progress {
  position: fixed;
  right: clamp(1rem, 2.2vw, 2rem);
  top: 50%;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  transform: translateY(-50%);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.progress__track {
  position: relative;
  width: 1px;
  height: 7rem;
  background: var(--line);
}

.progress__fill {
  position: absolute;
  inset: 0 0 auto 0;
  height: 0;
  background: var(--gold);
}

.progress__label { color: var(--gold); }

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

/* —— Layout —— */
main { position: relative; z-index: 10; }

.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7rem clamp(1.25rem, 6vw, 6rem) 5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.75rem, 7.5vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.display--sm { font-size: clamp(2.25rem, 5.4vw, 5rem); }
.display em, .hero__title em { font-style: italic; color: var(--gold-2); }

/* —— Hero —— */
.panel--hero { align-items: flex-end; padding-bottom: 7vh; }

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 9.5vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  max-width: 14ch;
}

.line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.line > span {
  display: block;
  transform: translateY(110%);
  animation: rise 1.4s var(--ease) forwards;
  animation-play-state: paused;
}
.line:nth-child(2) > span { animation-delay: 0.14s; }
body.is-ready .line > span { animation-play-state: running; }

@keyframes rise { to { transform: none; } }

.hero__lead {
  margin-top: 1.75rem;
  max-width: 30ch;
  font-size: 1.0625rem;
  color: var(--muted);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.25rem; }

.eyebrow, .hero__lead, .hero__actions, .scroll-cue {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.2s var(--ease) 0.5s, transform 1.2s var(--ease) 0.5s;
}
body.is-ready .eyebrow,
body.is-ready .hero__lead,
body.is-ready .hero__actions,
body.is-ready .scroll-cue { opacity: 1; transform: none; }

.scroll-cue {
  position: absolute;
  right: clamp(1.25rem, 6vw, 6rem);
  bottom: 7vh;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue span {
  width: 3.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  animation: cue 2.4s var(--ease) infinite;
  transform-origin: right;
}

@keyframes cue {
  0%, 100% { transform: scaleX(0.35); }
  50% { transform: scaleX(1); }
}

/* —— Buttons —— */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}

.btn--solid { color: var(--ink); background: var(--gold); }
.btn--solid:hover { background: var(--gold-2); }
.btn--ghost { color: var(--ivory); border-color: var(--line); background: rgba(244, 239, 230, 0.04); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }

/* —— Story —— */
.panel--story { justify-content: flex-end; text-align: left; }
.panel--story::before,
.panel--rituals::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(270deg, rgba(11, 10, 9, 0.82), rgba(11, 10, 9, 0.35) 45%, transparent 75%);
}
.panel--rituals::before { background: linear-gradient(90deg, rgba(11, 10, 9, 0.85), rgba(11, 10, 9, 0.4) 55%, transparent 90%); }
.story { max-width: 46rem; margin-left: auto; }
.story .display { margin-bottom: 3rem; }
.story__cols { display: grid; gap: 2.5rem; }
.story__cols > p { max-width: 34ch; font-size: 1.1875rem; color: var(--muted); }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 3.5rem;
  margin: 0;
  padding: 2rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.facts li { display: grid; gap: 0.2rem; }
.facts strong {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  color: var(--gold-2);
}
.facts span {
  font-size: 0.6875rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

/* —— Suites —— */
.suites { width: 100%; max-width: 78rem; margin: 0 auto; }
.suites__head { margin-bottom: 3rem; }

.suites__grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.75rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  perspective: 1400px;
}

.suite {
  position: relative;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--ink-2);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease), border-color 0.4s;
  will-change: transform;
}

.suite--lift { margin-top: -2.5rem; margin-bottom: 2.5rem; }
.suite:hover { border-color: rgba(214, 189, 138, 0.55); }

.suite img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.2s var(--ease);
}
.suite:hover img { transform: scale(1.16); }

.suite__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 10, 9, 0.05) 30%, rgba(11, 10, 9, 0.88) 100%);
}

.suite__body {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 0.35rem;
  padding: 1.75rem;
  transform: translateZ(50px);
}

.suite__tag {
  justify-self: start;
  padding: 0.35rem 0.8rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  border-radius: 999px;
}

.suite h3 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.1; margin-top: 0.5rem; }
.suite p { font-size: 0.8125rem; letter-spacing: 0.1em; color: var(--gold-2); }

@media (max-width: 900px) {
  .suites__grid { grid-template-columns: 1fr; }
  .suite { aspect-ratio: 16 / 11; }
  .suite--lift { margin: 0; }
}

/* —— Rituals —— */
.rituals { width: 100%; max-width: 44rem; margin: 0 auto 0 0; }
@media (min-width: 1100px) { .rituals { margin-left: 2vw; } }
.rituals .display { margin-bottom: 3.5rem; }

.rituals__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.rituals__list li {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  align-items: baseline;
  gap: 0.35rem 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.5s var(--ease), background 0.5s;
}

.rituals__list li:hover { padding-left: 1.25rem; background: linear-gradient(90deg, rgba(214, 189, 138, 0.07), transparent); }
.rituals__list span { font-size: 0.75rem; letter-spacing: 0.2em; color: var(--gold); }
.rituals__list h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1; }
.rituals__list p { grid-column: 2; color: var(--muted); }
.rituals__list span { grid-row: 1 / span 2; }

@media (max-width: 700px) {
  .rituals__list li { grid-template-columns: 2.5rem 1fr; }
}

/* —— Reserve —— */
.panel--reserve { flex-direction: column; justify-content: center; text-align: center; }
.panel--reserve::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 45% at 50% 52%, rgba(11, 10, 9, 0.78), transparent 75%);
}
.reserve { width: 100%; max-width: 62rem; margin: auto; }
.reserve .eyebrow { justify-content: center; }
.reserve .eyebrow::before { display: none; }

.booking {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 1rem;
  align-items: end;
  margin: 3rem auto 0;
  padding: 1.25rem;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: rgba(20, 18, 15, 0.55);
  backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.booking label { display: grid; gap: 0.45rem; }
.booking label span {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.booking input,
.booking select {
  width: 100%;
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ivory);
  color-scheme: dark;
  background: rgba(244, 239, 230, 0.05);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.booking input:focus,
.booking select:focus { outline: none; border-color: var(--gold); }
.booking select option { color: #111; }

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

.reserve__note { margin-top: 2rem; font-size: 0.8125rem; letter-spacing: 0.08em; color: var(--muted); }

.foot {
  width: 100%;
  padding-top: 3rem;
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(244, 239, 230, 0.4);
}

/* —— Reveal on scroll —— */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal-up.is-in { opacity: 1; transform: none; }

.noscript { position: fixed; inset: auto 0 1rem; z-index: 200; text-align: center; color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-cue span { animation: none; }
  .line > span { animation-duration: 0.01s; }
}
