/* ============================================
   AGORA WELLNESS CENTER – GLOBAL STYLES
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;900&family=Cinzel+Decorative:wght@400;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

/* ── TOKENS ── */
:root {
  --gold:        #C9A84C;
  --gold-light:  #E8C96A;
  --gold-dim:    #8A6E2F;
  --gold-pale:   #F5E4A8;
  --dark:        #0A0A08;
  --dark-2:      #111109;
  --dark-3:      #1A1A15;
  --dark-4:      #242420;
  --stone:       #2C2C26;
  --text-light:  #E8E4D8;
  --text-muted:  #9A9480;
  --white:       #FDFBF4;
  --radius:      2px;
  --transition:  0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--dark);
  color: var(--text-light);
  font-family: 'Cormorant Garamond', Georgia, serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── PAGES ── */
.page {
  display: none;
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.page.active { display: flex; }

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: 'Cinzel', serif; letter-spacing: 0.12em; }
h4, h5, h6 { font-family: 'Cinzel', serif; letter-spacing: 0.08em; }

.display-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.25em;
  line-height: 1;
  text-shadow: 0 0 60px rgba(201,168,76,0.3), 0 0 120px rgba(201,168,76,0.1);
}

/* ── GOLD DIVIDER ── */
.gold-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px auto;
  max-width: 300px;
}
.gold-rule::before, .gold-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.gold-rule .diamond {
  width: 6px; height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 40px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateY(100%);
  transition: transform var(--transition);
  z-index: 0;
}

.btn:hover { color: var(--dark); }
.btn:hover::before { transform: translateY(0); }
.btn span { position: relative; z-index: 1; }

.btn-solid {
  background: var(--gold);
  color: var(--dark);
}
.btn-solid::before { background: var(--gold-light); }
.btn-solid:hover { color: var(--dark); }

.btn-light {
  background: rgba(201,168,76,0.12);
  border-color: var(--gold-light);
  color: var(--gold-light);
}

/* ── NOISE TEXTURE OVERLAY ── */
.noise-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  z-index: 10;
}

/* ── GREEK BORDER ORNAMENT ── */
.greek-border {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--gold-dim) 10%,
    var(--gold) 50%,
    var(--gold-dim) 90%,
    transparent 100%);
  position: relative;
}

/* ── SCROLL FADE IN ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   PAGE 1 – INTRO
   ============================================ */
#page1 {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  cursor: pointer;
}

.p1-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201,168,76,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(201,168,76,0.03) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(201,168,76,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.p1-stone-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  opacity: 0.5;
}

.p1-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.p1-logo-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.p1-arch-svg {
  width: clamp(240px, 42vw, 420px);
  height: auto;
  opacity: 0;
  animation: archReveal 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
  filter:
    drop-shadow(0 0 40px rgba(201,168,76,0.5))
    drop-shadow(0 0 80px rgba(201,168,76,0.2))
    drop-shadow(0 8px 24px rgba(0,0,0,0.8));
  display: block;
}

@keyframes archReveal {
  from { opacity: 0; transform: scale(0.88) translateY(16px); filter: drop-shadow(0 0 0px rgba(201,168,76,0)) blur(6px); }
  60%  { opacity: 1; transform: scale(1.03) translateY(-4px); }
  80%  { transform: scale(0.99) translateY(1px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Albany NY label above the arch */
.p1-city-label {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.65rem, 1.5vw, 0.85rem);
  letter-spacing: 0.5em;
  color: var(--gold-dim);
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  animation: fadeInLabel 1s ease 0.6s forwards;
  position: relative;
  /* sits inside the arch visual — overlaid on the pillar area */
  margin-bottom: -32px;
  z-index: 2;
}
@keyframes fadeInLabel {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 0.75; transform: translateY(0); }
}

/* Real AGORA wordmark PNG */
.p1-wordmark {
  width: clamp(260px, 50vw, 520px);
  height: auto;
  display: block;
  opacity: 0;
  animation: wordmarkReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1.8s forwards;
  filter:
    drop-shadow(0 0 30px rgba(201,168,76,0.4))
    drop-shadow(0 4px 16px rgba(0,0,0,0.9));
  margin-top: -8px;
}
@keyframes wordmarkReveal {
  from { opacity: 0; transform: translateY(12px) scale(0.97); filter: blur(4px) drop-shadow(0 0 0px rgba(201,168,76,0)); }
  70%  { opacity: 1; transform: translateY(-2px) scale(1.01); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}


  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: transparent;
  position: relative;
  display: inline-block;
}

.chisel-title .letter {
  display: inline-block;
  color: transparent;
  background: linear-gradient(
    180deg,
    var(--gold-pale) 0%,
    var(--gold) 40%,
    var(--gold-dim) 70%,
    #5A4010 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0;
  transform: scale(1.4) translateY(-8px);
  filter: blur(4px);
  text-shadow: none;
}








.chisel-title .letter.carved {
  animation: chiselIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes chiselIn {
  0%   { opacity: 0; transform: scale(1.4) translateY(-8px); filter: blur(6px); }
  60%  { opacity: 1; transform: scale(0.95) translateY(2px); filter: blur(0px); }
  80%  { transform: scale(1.02) translateY(-1px); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0px); }
}

/* ── WELLNESS ghost — gold, blurred, layered behind AGORA wordmark ── */
.p1-wellness-wrap {
  position: absolute;
  bottom: 2px;                 /* pulled up so AGORA wordmark overlaps it from above */
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;                  /* behind wordmark which gets z-index: 1 */
  pointer-events: none;
  width: 100%;
  text-align: center;
}

.p1-wellness-ghost {
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 3vw, 1.8rem);
  font-weight: 600;
  letter-spacing: 0.58em;
  padding-bottom: 20px;
  text-transform: uppercase;
  background: linear-gradient(
    180deg,
    var(--gold-pale)  0%,
    var(--gold)       45%,
    var(--gold-dim)   100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Soft-focus depth — feels carved/architectural, not flat */
  filter:
    blur(1.2px)
    drop-shadow(0 0 20px rgba(201,168,76,0.6))
    drop-shadow(0 4px 14px rgba(0,0,0,0.95));
  opacity: 0;
  display: inline-block;
  animation: wellnessGhostReveal 1.6s cubic-bezier(0.22, 1, 0.36, 1) 2.2s forwards;
}

@keyframes wellnessGhostReveal {
  from {
    opacity: 0;
    transform: translateY(8px) scaleX(1.05);
    filter: blur(10px) drop-shadow(0 0 0px rgba(201,168,76,0));
  }
  60%  { opacity: 0.7; }
  to   {
    opacity: 0.5;
    transform: translateY(0) scaleX(1);
    filter: blur(1.2px) drop-shadow(0 0 20px rgba(201,168,76,0.6)) drop-shadow(0 4px 14px rgba(0,0,0,0.95));
  }
}

/* Wordmark sits on top of the ghost */
.p1-wordmark {
  position: relative;
  z-index: 1;
}

.p1-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.25em;
  margin-top: -22px;
  opacity: 0;
  transition: opacity 1s ease;
}
.p1-tagline.show { opacity: 1; }

.p1-enter {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 1s ease;
  position: relative;
  padding: 14px 36px;
  border: 1px solid rgba(201,168,76,0.5);
}
.p1-enter.show { opacity: 1; }
.p1-enter::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s ease;
}
#page1:hover .p1-enter::after { width: 100%; }

.p1-enter-pulse {
  animation: pulseEnter 2s ease-in-out infinite;
}
@keyframes pulseEnter {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.p1-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 1.5s ease 3s;
}
.p1-scroll-hint.show { opacity: 0.5; }
.p1-scroll-hint span {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--gold-dim);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   PAGE 2 – ABOUT
   ============================================ */
#page2 {
  flex-direction: column;
  min-height: 100vh;
}

.p2-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  overflow: hidden;
}

.p2-bg-img {
  position: absolute;
  inset: 0;
  background:
    url('https://images.unsplash.com/photo-1545569341-9eb8b30979d9?w=1800&q=80') center/cover no-repeat;
  filter: brightness(0.25) saturate(0.5);
  transform: scale(1.05);
  transition: transform 12s ease;
}
#page2.active .p2-bg-img { transform: scale(1); }

.p2-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(10,10,8,0.5) 0%, rgba(10,10,8,0.85) 100%),
    linear-gradient(to bottom, rgba(10,10,8,0.3) 0%, rgba(10,10,8,0.6) 100%);
}

.p2-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.p2-logo-small {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.6rem;
  color: var(--gold);
  letter-spacing: 0.3em;
  opacity: 0.7;
}

.p2-section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  color: var(--gold-dim);
  text-transform: uppercase;
}

.p2-headline {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1.3;
  font-weight: 400;
}
.p2-headline em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold-light);
  font-size: 1.1em;
}

.p2-body {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.9;
  color: var(--text-muted);
  max-width: 600px;
  font-weight: 300;
}
.p2-body strong {
  color: var(--text-light);
  font-weight: 400;
  font-style: italic;
}

.p2-btn-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}

.p2-pillars {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 60px;
  pointer-events: none;
  opacity: 0.12;
}
.p2-pillar {
  width: 3px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  border-radius: 2px 2px 0 0;
}

/* Nav bar top */
.p2-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.p2-nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.25em;
  cursor: pointer;
}
.p2-nav-links {
  display: flex;
  gap: 32px;
}
.p2-nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s ease;
}
.p2-nav-links a:hover { color: var(--gold); }

/* ============================================
   PAGE 3 – VIRTUAL TOUR
   ============================================ */

#p3-viewer {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.p3-video-inner {
  position: relative;
}










#page3 {
  flex-direction: column;
  background: var(--dark-2);
}

.p3-layout {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

.p3-header {
  padding: 48px 60px 32px;
  text-align: center;
  border-bottom: 1px solid rgba(201,168,76,0.15);
  position: relative;
}

.p3-section-tag {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.p3-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--white);
  letter-spacing: 0.15em;
  font-weight: 400;
  margin-bottom: 12px;
}

.p3-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
}

.p3-tour-area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 60px 24px;
  flex: 1;
}

/* ── VIDEO FRAME – overflow visible so native controls always show ── */
.p3-video-frame {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16/9;
  background: var(--dark-3);
  border: 1px solid rgba(201,168,76,0.2);
  position: relative;
  overflow: visible;          /* was: hidden — clipped controls & fullscreen btn */
  box-shadow: 0 0 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,168,76,0.05);
}

.p3-video-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background:
    linear-gradient(135deg, rgba(201,168,76,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(201,168,76,0.06) 0%, transparent 70%);
}

.p3-play-btn {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.p3-play-btn::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.2);
  animation: ripple 2s ease-in-out infinite;
}
.p3-play-btn::after {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.1);
  animation: ripple 2s ease-in-out infinite 0.5s;
}
@keyframes ripple {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}
.p3-play-btn:hover { background: rgba(201,168,76,0.1); transform: scale(1.05); }
.p3-play-arrow {
  width: 0; height: 0;
  border-style: solid;
  border-width: 12px 0 12px 22px;
  border-color: transparent transparent transparent var(--gold);
  margin-left: 4px;
}

.p3-video-label {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-align: center;
}

/* Countdown overlay inside frame */
.p3-countdown-bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  width: 100%;
  transform-origin: left;
  animation: countdownBar 10s linear forwards;
}
@keyframes countdownBar {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

.p3-countdown-text {
  position: absolute;
  bottom: 16px; right: 16px;
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
}

/* ── GALLERY ROW — wraps progress dots + thumbnail strip ── */
.p3-gallery-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 60px 10px;
  margin-bottom: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Progress dots — now inline beside thumbnails */
.p3-progress-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 20px 0 0;
  border-right: 1px solid rgba(201,168,76,0.15);
  margin-right: 16px;
  flex-shrink: 0;
}

/* Gallery strip */
.p3-gallery-strip {
  display: flex;
  gap: 0;
  overflow: hidden;
  justify-content: center;
  min-width: 0;
}

.p3-gallery-item {
  flex: 0 0 120px;
  height: 72px;
  background: var(--dark-3);
  border: 1px solid rgba(201,168,76,0.1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.p3-gallery-item:hover,
.p3-gallery-item.active {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
}
.p3-gallery-item.active .p3-gallery-label { opacity: 1; color: var(--gold-light); }
.p3-gallery-item:hover .p3-gallery-label  { opacity: 1; }
.p3-gallery-label {
  font-family: 'Cinzel', serif;
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-align: center;
  padding: 6px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  line-height: 1.5;
}

/* ── AMENITIES STRIP ── */
.p3-amenities {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 0;
  padding: 10px 60px;
  border-top: 1px solid rgba(201,168,76,0.1);
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

.p3-amenity-item {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  padding: 0 12px;
}

.p3-amenity-dot {
  color: var(--gold);
  font-size: 0.45rem;
  opacity: 0.7;
  flex-shrink: 0;
}

.p3-footer-bar {
  padding: 20px 60px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-top: 1px solid rgba(201,168,76,0.12);
}

.p3-progress-label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
}
.p3-progress-dots {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.p3-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--stone);
  border: 1px solid var(--gold-dim);
  transition: background 0.3s ease;
}
.p3-dot.active { background: var(--gold); }

/* ============================================
   PAGE 4 – SIGN UP (single unified page)
   ============================================ */
#page4 {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: var(--dark);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.p4-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 20%, rgba(201,168,76,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(201,168,76,0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.p4-single-layout {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.p4-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
  text-transform: uppercase;
  padding: 0;
  align-self: flex-start;
}
.p4-back-btn:hover { color: var(--gold); }

/* Hero banner */
.p4-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.p4-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  color: var(--gold-dim);
  text-transform: uppercase;
}
.p4-banner-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  color: var(--gold);
  letter-spacing: 0.1em;
  font-weight: 400;
  line-height: 1.25;
}

/* Quote */
.p4-quote-block {
  text-align: center;
  padding: 0 8px;
}
.p4-quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-style: italic;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.7;
  letter-spacing: 0.02em;
}
.p4-quote-attr {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--gold-dim);
  margin-top: 10px;
}

/* Benefits */
.p4-perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 auto;
  width: 100%;
  max-width: 480px;
}
.p4-perk {
  display: flex;
  align-items: center;
  gap: 14px;
}
.p4-perk-icon {
  width: 28px; height: 28px;
  border: 1px solid var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 0.75rem;
}
.p4-perk-text {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* Sacred label */
.p4-sacred-label {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  text-align: center;
}

/* Form */
.p4-form {
  width: 100%;
}

/* Form fields */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field.full { grid-column: 1 / -1; }

.form-label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--gold-dim);
  text-transform: uppercase;
}

.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201,168,76,0.25);
  padding: 10px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--text-light);
  outline: none;
  transition: border-color 0.3s ease;
  width: 100%;
}
.form-input::placeholder { color: rgba(154,148,128,0.4); }
.form-input:focus { border-bottom-color: var(--gold); }

.form-input-line {
  position: relative;
}
.form-input-line::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s ease;
}
.form-input-line:focus-within::after { width: 100%; }

.form-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  padding-top: 8px;
  opacity: 0.7;
  grid-column: 1 / -1;
}

.p4-submit-wrap {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

/* ============================================
   PAGE 5 – THANK YOU
   ============================================ */
#page5 {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--dark);
}

.p5-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(201,168,76,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.p5-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.p5-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.08);
}

.p5-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 60px 40px;
  max-width: 700px;
}

.p5-icon {
  width: 80px; height: 80px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.p5-icon::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.2);
}
.p5-icon-inner {
  color: var(--gold);
  font-size: 1.8rem;
}

.p5-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  color: var(--gold-dim);
  text-transform: uppercase;
}

.p5-headline {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  color: var(--gold);
  letter-spacing: 0.1em;
  font-weight: 400;
  line-height: 1.2;
}

.p5-quote-block {
  text-align: center;
  padding: 0 12px;
  max-width: 560px;
}
.p5-quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-style: italic;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.75;
  letter-spacing: 0.02em;
}
.p5-quote-attr {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--gold-dim);
  margin-top: 10px;
  text-transform: uppercase;
}

.p5-sub {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
}

.p5-member-id {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--gold-dim);
  padding: 12px 28px;
  border: 1px solid rgba(201,168,76,0.15);
  background: rgba(201,168,76,0.04);
}

.p5-btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.p5-footer {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
}
.p5-footer-text {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}

/* ============================================
   TRANSITIONS BETWEEN PAGES
   ============================================ */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.page-transition-overlay.fade-in  { opacity: 1; pointer-events: all; }
.page-transition-overlay.fade-out { opacity: 0; }

/* ── NAV DOTS (persistent) ── */
.nav-dots {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nav-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--stone);
  border: 1px solid rgba(201,168,76,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.nav-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.4);
}
.nav-dot:hover { border-color: var(--gold); }
.nav-dot[title]:hover::after {
  content: attr(title);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  white-space: nowrap;
  background: var(--dark-3);
  padding: 4px 10px;
  border: 1px solid rgba(201,168,76,0.2);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  /* ── PAGE 2 ── */
  .p2-nav-links { display: none; }
  .p2-hero { padding: 100px 24px 60px; }
  .p2-btn-group { flex-direction: column; align-items: center; }

  /* ── PAGE 3 – FULL RESPONSIVE FIX ── */
  #page3 { overflow-x: hidden; }

  .p3-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
  }

  .p3-header {
    padding: 32px 20px 20px;
  }

  .p3-tour-area {
    padding: 16px 16px;
    flex: 1;
  }

  .p3-video-frame {
    max-width: 100%;
    width: 100%;
  }

  /* Gallery row: stack vertically on small screens */
  .p3-gallery-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 16px 12px;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* Progress dots: go horizontal on mobile */
  .p3-progress-inline {
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid rgba(201,168,76,0.15);
    padding: 0 0 8px 0;
    margin-right: 0;
    margin-bottom: 0;
    width: 100%;
    gap: 10px;
  }

  .p3-progress-dots {
    margin-top: 0;
  }

  /* Gallery strip: scrollable row of thumbnails */
  .p3-gallery-strip {
    display: flex;
    flex-direction: row;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex: unset;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .p3-gallery-strip::-webkit-scrollbar { display: none; }

  .p3-gallery-item {
    flex: 0 0 80px;
    height: 60px;
  }

  /* Amenities: allow wrapping with smaller text */
  .p3-amenities {
    padding: 12px 16px;
    gap: 8px 0;
  }

  .p3-amenity-item {
    font-size: 0.8rem;
    padding: 0 8px;
  }

  /* Footer bar */
  .p3-footer-bar {
    padding: 16px 20px;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .p3-footer-bar .btn {
    width: 100%;
    text-align: center;
  }

  /* ── PAGE 4 ── */
  .p4-single-layout { gap: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: 1; }
  .p4-perks { max-width: 100%; }

  /* ── PAGE 5 ── */
  .p5-content { padding: 40px 24px; }

  /* ── NAV DOTS ── */
  .nav-dots { right: 16px; }
}

@media (max-width: 400px) {
  .p3-gallery-item { flex: 0 0 70px; height: 52px; }
  .p3-gallery-label { font-size: 0.42rem; }
  .p3-title { font-size: 1.5rem; }
}

/* ── UTILITY ── */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Success state */
.form-success {
  text-align: center;
  padding: 40px;
  display: none;
}
.form-success.show { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.form-success-icon {
  font-size: 3rem;
  color: var(--gold);
}
.form-success-text {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.1em;
}

/* Loading spinner */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(201,168,76,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.spinner.show { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
