/* Custom Font Definitions */
@font-face {
  font-family: 'Optima';
  src: local('Optima'), local('Optima-Regular'), local('Optima Regular'), local('Zapf Humanist'), local('Marcellus'), local('Tenor Sans');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'ambroise-francois';
  src: local('ambroise-francois'), local('Ambroise Francois'), local('Ambroise-Francois'), local('Ambroise Std Francois'), local('AmbroiseStd-Francois'), local('Ambroise Std');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Ambroise Std Francois';
  src: local('Ambroise Std Francois'), local('ambroise-francois'), local('Ambroise Francois'), local('Ambroise-Francois'), local('AmbroiseStd-Francois'), local('Ambroise Std');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Maison Neue Extended';
  src: local('Maison Neue Extended'), local('Maison Neue'), local('MaisonNeueExtended'), local('Montserrat');
}

:root {
  --font-optima: 'Optima', 'Zapf Humanist', 'Marcellus', 'Tenor Sans', sans-serif;
  --font-serif: 'ambroise-francois', 'Ambroise Std Francois', 'Bodoni Moda', serif;
  --font-sans: 'Maison Neue Extended', 'Maison Neue', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'MonteCarlo', 'Great Vibes', 'Alex Brush', cursive;
  --color-white: #ffffff;
  --color-muted: rgba(255, 255, 255, 0.7);
}

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

html {
  overflow-x: hidden;
  overflow-y: scroll;
  height: auto;
}

body {
  width: 100%;
  min-height: 250vh;
  overflow-x: hidden;
  background-color: #0d0f12;
  font-family: var(--font-sans);
  color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

/* Lock native scroll while intro is showing */
body.intro-active {
  overflow: hidden;
}

/* ════════════════════════════════════════════════════════════
   INTRO / LOADING SCREEN
════════════════════════════════════════════════════════════ */
.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0c0e11; /* matches website dark navy */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  will-change: transform;
  /* Slide-up exit transition */
  transition: transform 1.1s cubic-bezier(0.76, 0, 0.24, 1);
}

.intro-screen.is-out {
  transform: translateY(-100%);
}

/* ── Inset decorative frame ── */
.intro-frame {
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(220, 205, 188, 0.13);
  border-radius: 1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease 0.1s;
}
.intro-screen.is-in .intro-frame { opacity: 1; }

/* ── Top logo emblem ── */
.intro-logo-wrap {
  position: absolute;
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  opacity: 0;
  transition: opacity 0.9s ease 0.4s;
}
.intro-screen.is-in .intro-logo-wrap { opacity: 1; }

.intro-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.75;
}

/* ── Three-column middle row ── */
.intro-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 5vw, 7rem);
  width: 100%;
  padding: 0 10vw;
}

/* Side spaced labels */
.intro-geo {
  font-family: var(--font-sans);
  font-size: clamp(0.55rem, 0.9vw, 0.75rem);
  letter-spacing: 0.38em;
  color: rgba(220, 205, 188, 0.5);
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.intro-geo-left  { transition-delay: 0.85s; }
.intro-geo-right { transition-delay: 0.95s; }
.intro-screen.is-in .intro-geo { opacity: 1; }

/* Stacked title block */
.intro-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 0.88;
}

.intro-t1,
.intro-t2 {
  font-family: var(--font-optima);
  font-size: clamp(3.6rem, 8.5vw, 10rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #e0d5c8;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.intro-t1 { transition-delay: 0.55s; margin-bottom: 0.04em; }
.intro-t2 { transition-delay: 0.70s; }

.intro-t3 {
  font-family: var(--font-script);
  font-size: clamp(2.8rem, 6.5vw, 7.5rem);
  font-weight: 400;
  color: #e0d5c8;
  text-transform: none;
  margin-top: 0.12em;
  opacity: 0;
  transform: scale(0.65) translateY(30px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.85s;
}

.intro-screen.is-in .intro-t1,
.intro-screen.is-in .intro-t2 {
  opacity: 1;
  transform: translateY(0);
}
.intro-screen.is-in .intro-t3 {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ── Growing vertical rule below title ── */
.intro-rule {
  width: 1px;
  height: 0;
  background: linear-gradient(to bottom, rgba(220,205,188,0.35), rgba(220,205,188,0.05));
  margin-top: 2.2rem;
  transition: height 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.1s;
}
.intro-screen.is-in .intro-rule { height: 70px; }

/* ── Bottom footer strip ── */
.intro-footer {
  position: absolute;
  bottom: 44px;
  left: 50px;
  right: 50px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.intro-footer-text {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-family: var(--font-sans);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: rgba(220, 205, 188, 0.45);
  text-transform: uppercase;
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.8s ease 1.3s;
}
.intro-screen.is-in .intro-footer-text { opacity: 1; }

/* Loading counter */
.intro-counter {
  font-family: var(--font-sans);
  font-size: clamp(4.5rem, 8vw, 8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(220, 205, 188, 0.18);
  line-height: 1;
  user-select: none;
  opacity: 0;
  transition: opacity 0.7s ease 0.8s;
}
.intro-screen.is-in .intro-counter { opacity: 1; }

/* ════════════════════════════════════════════════════════════ */

/* Hero Section Container */
.hero-section {
  position: relative;
  width: 100vw;
  min-height: 250vh;
}

.scroll-spacer {
  height: 250vh;
  width: 100%;
  pointer-events: none;
  visibility: hidden;
}

/* Background Image & Overlay */
.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden; /* clips the translateY pan so image doesn't bleed */
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  display: block;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 20, 35, 0.35) 0%,
    rgba(10, 20, 35, 0.15) 50%,
    rgba(10, 20, 35, 0.45) 100%
  );
}

/* Header / Navigation Bar */
.hero-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 3.5rem;
  width: 100vw;
}

.header-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Circular Seal Badge */
@keyframes rotateTextRing {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.circular-badge {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-text-svg {
  width: 100%;
  height: 100%;
  transform-origin: center;
  will-change: transform;
}

.badge-text-svg text {
  fill: var(--color-white);
  font-family: var(--font-sans);
  font-size: 7.2px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.badge-logo-icon {
  position: absolute;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.room-counter {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--color-white);
  opacity: 0.85;
}

/* Right Nav Links */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--color-white);
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.nav-link:hover {
  opacity: 0.75;
}

.nav-link-primary {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  font-weight: 400;
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  padding-bottom: 2px;
  margin-bottom: 0.4rem;
}

/* Hero Center Content Area */
.hero-center-content {
  position: fixed;
  top: 48vh;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  width: 100%;
  max-width: 1200px;
  overflow: visible; /* allow children to slide out beyond container */
}

.hero-title {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.85;
  user-select: none;
}

.title-line2-container {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
}

.title-line1,
.title-line2 {
  font-family: var(--font-optima);
  font-size: clamp(3.8rem, 9.5vw, 10.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-white);
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.title-line1 {
  margin-bottom: 0.05em;
}

.title-script {
  position: relative;
  margin-left: 0.15em;
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 8vw, 8.5rem);
  font-weight: 400;
  color: var(--color-white);
  text-transform: none;
  z-index: 2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Sub-bar Floating Elements */
.hero-subbar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 900px;
  margin-top: 3.5rem;
  padding: 0 1rem;
  text-align: center;
}

.subbar-text {
  font-family: var(--font-optima);
  font-size: clamp(1rem, 2.2vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--color-white);
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.toggle-option {
  cursor: pointer;
  transition: color 0.3s ease;
}

.toggle-option.active,
.toggle-option:hover {
  color: var(--color-white);
}

.toggle-line {
  display: inline-block;
  width: 45px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.4);
}

/* Bottom Left Scroll Indicator */
.hero-scroll {
  position: fixed;
  bottom: 3.5rem;
  left: 3.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  transition: opacity 0.2s ease;
}

.scroll-text {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--color-white);
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.scroll-line {
  width: 1px;
  height: 35px;
  background: linear-gradient(to bottom, var(--color-white), rgba(255, 255, 255, 0.1));
}

/* Page Entrance & Reveal Motion System */
.hero-bg img {
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.circular-badge {
  opacity: 0;
  transform: scale(0.65) rotate(-20deg);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.2s;
}

.nav-link {
  opacity: 0;
  transform: translateY(-15px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.header-right .nav-link:nth-child(1) { transition-delay: 0.3s; }
.header-right .nav-link:nth-child(2) { transition-delay: 0.42s; }
.header-right .nav-link:nth-child(3) { transition-delay: 0.54s; }

.title-line1 {
  display: inline-block;
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.38s;
}

.title-line2 {
  display: inline-block;
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.52s;
}

.title-script {
  display: inline-block;
  opacity: 0;
  transform: scale(0.6) translateY(20px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.68s;
}

.subbar-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.85s;
}

.hero-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 1s;
}

/* Triggered reveal state */
body.is-loaded .hero-bg img {
  opacity: 1;
}

body.is-loaded .circular-badge {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

body.is-loaded .nav-link {
  opacity: 1;
  transform: translateY(0);
}

body.is-loaded .title-line1,
body.is-loaded .title-line2 {
  opacity: 1;
  transform: translateY(0);
}

body.is-loaded .title-script {
  opacity: 1;
  transform: scale(1) translateY(0);
}

body.is-loaded .subbar-text {
  opacity: 1;
  transform: translateY(0);
}

body.is-loaded .hero-scroll {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-header {
    padding: 1.5rem 1.8rem;
  }

  .header-right {
    gap: 0.4rem;
  }

  .nav-link {
    font-size: 0.62rem;
  }

  .nav-link-primary {
    font-size: 0.82rem;
  }

  .hero-subbar {
    margin-top: 2rem;
    flex-direction: column;
    gap: 1rem;
  }

  .hero-scroll {
    bottom: 1.5rem;
    left: 1.8rem;
  }
}

/* ================================================================
   CIRCULAR VIEW ALL AMENITIES CTA
   Scroll-driven: JS controls opacity and scale 1:1 with scroll.
================================================================ */

@keyframes ctaRingSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes ctaPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}

.amenities-cta {
  position: fixed;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%) scale(0.2);
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  text-decoration: none;
}

.amenities-cta:hover .amenities-inner {
  animation: ctaPulse 2.4s ease-in-out infinite;
}

.amenities-inner {
  position: relative;
  width: clamp(170px, 16vw, 230px);
  height: clamp(170px, 16vw, 230px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.amenities-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.amenities-ring-spin {
  animation: ctaRingSpin 22s linear infinite;
  transform-origin: center;
}

.amenities-cta:hover .amenities-ring-svg:first-child circle {
  stroke: rgba(255, 255, 255, 0.9);
  transition: stroke 0.4s ease;
}

.amenities-label {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  font-family: var(--font-sans);
  font-size: clamp(0.58rem, 0.85vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
  line-height: 1.6;
}

.amenities-cta:hover .amenities-label {
  color: #ffffff;
}

/* ════════════════════════════════════════════════════════════
   CUSTOM SCROLLBAR
════════════════════════════════════════════════════════════ */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0d0f12; 
}
::-webkit-scrollbar-thumb {
  background: rgba(220, 205, 188, 0.3);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(220, 205, 188, 0.6);
}

/* ════════════════════════════════════════════════════════════
   CUSTOM CURSOR
════════════════════════════════════════════════════════════ */
a, button, .toggle-option, .amenities-cta {
  cursor: none;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background-color: #e0d5c8;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background-color 0.3s, border 0.3s;
  mix-blend-mode: difference;
}

.custom-cursor.hover {
  width: 40px;
  height: 40px;
  background-color: transparent;
  border: 1px solid #e0d5c8;
  mix-blend-mode: normal;
}