/* ===== Tokens ===== */
:root{
  --bg: #0b0a08;
  --bg-soft: #100e0b;
  --surface: #17140f;
  --surface-2: #1e1a14;
  --border: rgba(245,239,230,0.09);
  --border-strong: rgba(245,239,230,0.16);
  --text-primary: #f5efe6;
  --text-secondary: #b9ac9a;
  --text-tertiary: #867a6c;
  --accent: #d9a44e;
  --accent-bright: #f3c877;
  --accent-deep: #9c6a26;
  --accent-glow: rgba(217,164,78,0.32);
  --up: #6fbf8b;

  --radius-card: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --font-display: "Fraunces", "Plus Jakarta Sans", serif;
  --font-body: "Plus Jakarta Sans", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --gradient-gold: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 55%, var(--accent-deep) 100%);
  --max-w: 1240px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* continuous ambient background, shared across the whole page so sections never look boxed */
body::before,
body::after{
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  will-change: transform;
  transform: translateZ(0);
}
body::before{
  width: 900px; height: 900px;
  top: -320px; left: -320px;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(217,164,78,0.14) 32%, transparent 68%);
  animation: drift1 26s ease-in-out infinite alternate;
}
body::after{
  width: 820px; height: 820px;
  bottom: -10%; right: -320px;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(217,164,78,0.14) 32%, transparent 68%);
  animation: drift2 30s ease-in-out infinite alternate;
}
@keyframes drift1{
  0%{ transform: translate(0,0) scale(1); }
  100%{ transform: translate(80px, 120px) scale(1.15); }
}
@keyframes drift2{
  0%{ transform: translate(0,0) scale(1); }
  100%{ transform: translate(-100px, -80px) scale(1.1); }
}
@media (prefers-reduced-motion: reduce){
  body::before, body::after{ animation: none; }
}

/* ===== Scroll progress bar ===== */
.scroll-progress{
  position: fixed; top: 0; left: 0; height: 2px; width: 0%; z-index: 70;
  background: var(--gradient-gold); pointer-events: none;
  box-shadow: 0 0 12px rgba(217,164,78,0.6);
}
@media (prefers-reduced-motion: reduce){
  .scroll-progress{ display: none; }
}

.grain{
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #14100a; padding: 10px 16px;
  z-index: 999; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus{ left: 0; }

.container{ max-width: var(--max-w); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.container--narrow{ max-width: 760px; }

h1,h2,h3{ font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--text-primary); }
p{ margin: 0; }
a{ color: inherit; text-decoration: none; }

/* ===== Buttons (shape lock: pill radius everywhere) ===== */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  padding: 13px 26px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s cubic-bezier(0.16,1,0.3,1), border-color 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn.is-tracking{ transition: box-shadow 0.35s cubic-bezier(0.16,1,0.3,1), border-color 0.25s ease, background 0.25s ease; }
.btn i{ font-size: 1.05em; }
.btn:active{ transform: scale(0.97); }

.btn-gradient{
  background: var(--gradient-gold);
  color: #17110a;
  box-shadow: 0 8px 24px -8px rgba(217,164,78,0.55);
}
.btn-gradient:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px rgba(217,164,78,0.7);
}

.btn-outline{
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-outline:hover{
  border-color: var(--accent);
  color: var(--accent-bright);
  transform: translateY(-2px);
}

.btn-ghost{
  background: rgba(245,239,230,0.05);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-ghost:hover{ background: rgba(245,239,230,0.09); }

.btn-lg{ padding: 16px 32px; font-size: 1rem; }
.btn-block{ width: 100%; }

/* ===== Header ===== */
/* always fully transparent, no backing bar, on purpose */
.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 12px 0;
  transition: padding 0.3s ease;
  background: transparent;
}
.site-header.scrolled,
.site-header.past-hero{
  padding: 9px 0;
}
.header-inner{
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand{ display: flex; align-items: center; gap: 10px; }
.brand-logo{
  display: block; height: 54px; width: auto;
  transition: height 0.3s ease;
}
.site-header.scrolled .brand-logo{ height: 46px; }
.brand-logo--footer{ height: 68px; }

.main-nav{ display: flex; align-items: center; gap: 28px; }
.main-nav a{
  position: relative; font-size: 0.92rem; color: var(--text-secondary); font-weight: 600;
  transition: color 0.2s ease; padding-bottom: 3px;
}
.main-nav a::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--gradient-gold); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.main-nav a:hover{ color: var(--text-primary); }
.main-nav a:hover::after{ transform: scaleX(1); transform-origin: left; }

.header-actions{ display: flex; align-items: center; gap: 10px; }
.header-actions .btn{ padding: 10px 18px; font-size: 0.88rem; }

.nav-toggle{
  display: none; background: none; border: 1px solid var(--border-strong); color: var(--text-primary);
  width: 40px; height: 40px; border-radius: var(--radius-sm); font-size: 1.1rem; cursor: pointer;
}

.mobile-nav{
  display: none; flex-direction: column; gap: 4px; padding: 16px 24px 20px;
}
.mobile-nav a:not(.btn){
  padding: 12px 4px; color: var(--text-secondary); font-weight: 600; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.mobile-nav .btn{ margin-top: 10px; }

/* ===== Hero ===== */
.hero{
  position: relative; min-height: 100dvh; display: flex; align-items: flex-end;
  overflow: hidden; padding: 140px 0 96px;
}
.hero-video-wrap{ position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.hero-video{
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  display: none; border-radius: 0;
}
.hero-photo{
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%;
  display: block; border-radius: 0;
  filter: grayscale(30%) saturate(85%) brightness(0.94) contrast(1.04);
}
/* subtle grey wash over the desktop photo for a more muted, professional tone */
.hero-tint{
  position: absolute; inset: 0; z-index: 1;
  background: rgba(90,90,95,0.22); mix-blend-mode: multiply;
  pointer-events: none;
}
.hero-scrim{
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(8,7,5,0.5) 0%, rgba(8,7,5,0.08) 26%, rgba(8,7,5,0.35) 62%, rgba(8,7,5,0.95) 100%);
}
.hero-vignette{
  position: absolute; inset: 0; z-index: 3;
  background: radial-gradient(ellipse at center, transparent 32%, rgba(8,7,5,0.6) 100%);
}
.hero-content{
  position: relative; z-index: 4; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; width: 100%;
}
.eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-bright); margin-bottom: 18px;
  opacity: 0; animation: heroFadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.1s forwards;
}
.eyebrow i{ font-size: 1rem; display: inline-block; animation: crownFloat 3s ease-in-out infinite; }
@keyframes crownFloat{ 0%,100%{ transform: translateY(0) rotate(0deg); } 50%{ transform: translateY(-2px) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce){ .eyebrow i{ animation: none; } }

.hero-title{
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.06; max-width: 780px;
  color: #fff; margin: 0;
}
.hero-title .line{ display: block; overflow: hidden; padding-bottom: 0.1em; }
.hero-title .word{
  display: inline-block;
  opacity: 0; transform: translateY(100%);
  animation: wordUp 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.hero-title .line:nth-child(1) .word:nth-child(1){ animation-delay: 0.15s; }
.hero-title .line:nth-child(1) .word:nth-child(2){ animation-delay: 0.24s; }
.hero-title .line:nth-child(1) .word:nth-child(3){ animation-delay: 0.33s; }
.hero-title .line:nth-child(2) .word:nth-child(1){ animation-delay: 0.42s; }
.hero-title .line:nth-child(2) .word:nth-child(2){ animation-delay: 0.5s; }
.hero-title .line:nth-child(2) .word:nth-child(3){ animation-delay: 0.58s; }

.word-accent{
  background: linear-gradient(100deg, var(--accent-bright) 0%, var(--accent) 30%, var(--accent-bright) 50%, var(--accent-deep) 70%, var(--accent-bright) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--accent-bright);
  animation: wordUp 0.7s cubic-bezier(0.16,1,0.3,1) forwards, shimmer 5s linear 1s infinite;
  text-shadow: none;
}

@keyframes wordUp{ to{ opacity: 1; transform: translateY(0); } }
@keyframes heroFadeUp{ to{ opacity: 1; } }
@keyframes shimmer{
  0%{ background-position: 200% 0; }
  100%{ background-position: -50% 0; }
}
@media (prefers-reduced-motion: reduce){
  .hero-title .word, .eyebrow{ animation: none; opacity: 1; transform: none; }
  .word-accent{ animation: none; }
}

.hero-sub{
  font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--text-secondary); max-width: 480px;
  margin-top: 20px; line-height: 1.55;
  opacity: 0; transform: translateY(14px); animation: heroFadeUp2 0.8s cubic-bezier(0.16,1,0.3,1) 0.68s forwards;
}
.hero .hero-actions{
  opacity: 0; transform: translateY(14px); animation: heroFadeUp2 0.8s cubic-bezier(0.16,1,0.3,1) 0.78s forwards;
}
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-actions--center{ justify-content: center; }
@keyframes heroFadeUp2{ to{ opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce){
  .hero-sub, .hero .hero-actions{ animation: none; opacity: 1; transform: none; }
}

/* ===== Stat marquee ===== */
.stat-band{
  position: relative; z-index: 1; overflow: hidden;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(245,239,230,0.02);
  padding: 18px 0;
}
.stat-track{ display: flex; width: max-content; animation: scrollX 34s linear infinite; }
.stat-set{ display: flex; align-items: center; }
.stat-item{
  font-family: var(--font-mono); font-size: 0.92rem; color: var(--text-secondary);
  padding: 0 28px; border-right: 1px solid var(--border); white-space: nowrap;
}
.stat-item strong{ color: var(--accent-bright); font-weight: 600; margin-right: 6px; }
@keyframes scrollX{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
.stat-band:hover .stat-track{ animation-play-state: paused; }
@media (prefers-reduced-motion: reduce){
  .stat-track{ animation: none; overflow-x: auto; }
}

/* ===== Sections (no hard dividers, continuous flow) ===== */
.section{ position: relative; z-index: 1; padding: 108px 0; }
.section--flush{ padding-bottom: 40px; }
.section-head{ max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-head--left{ text-align: left; margin-left: 0; }
.section-head h2{ font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section-head p{ color: var(--text-secondary); font-size: 1.05rem; margin-top: 14px; }

/* ===== Feature bento (4 items, exact cell count) ===== */
.feature-bento{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.feature-card{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 32px; transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease;
}
.feature-card:hover{ transform: translateY(-4px); border-color: var(--border-strong); }
.feature-card--wide{ grid-column: span 2; }
.feature-icon{ font-size: 1.7rem; color: var(--accent); margin-bottom: 18px; display: block; }
.feature-card h3{ font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p{ color: var(--text-secondary); font-size: 0.96rem; line-height: 1.55; max-width: 46ch; }

/* ===== Testimonial marquee ===== */
.marquee-wrap{ display: flex; flex-direction: column; gap: 16px; }
.marquee{ overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track{ display: flex; gap: 16px; width: max-content; }
.marquee--right .marquee-track{ animation: mqRight 62s linear infinite; }
.marquee--left .marquee-track{ animation: mqLeft 62s linear infinite; }
@keyframes mqRight{ from{ transform: translateX(-50%); } to{ transform: translateX(0); } }
@keyframes mqLeft{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
.marquee:hover .marquee-track{ animation-play-state: paused; }
@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation: none; }
  .marquee{ overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
}

.t-card{
  flex: 0 0 auto; width: 340px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 24px;
}
.t-quote-icon{ color: var(--accent); font-size: 1.3rem; opacity: 0.8; margin-bottom: 10px; display: block; }
.t-body{ font-size: 0.96rem; line-height: 1.55; color: var(--text-primary); }
.t-foot{ display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.t-avatar{
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--gradient-gold); color: #17110a; font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
}
.t-name{ font-weight: 700; font-size: 0.88rem; }
.t-source{ font-size: 0.78rem; color: var(--text-tertiary); }

/* ===== Pricing rooms ===== */
.rooms{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.room-card{
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 34px 30px; display: flex; flex-direction: column; gap: 20px;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.room-card--featured{
  background: var(--surface-2); border-color: var(--accent-deep);
  box-shadow: 0 0 0 1px rgba(217,164,78,0.18), 0 30px 60px -24px rgba(217,164,78,0.35);
  transform: translateY(-14px);
}
.room-card--featured:hover{ transform: translateY(-18px); }
.room-card--locked{ opacity: 0.94; }
.room-tag{
  position: absolute; top: -13px; left: 30px;
  background: var(--gradient-gold); color: #17110a; font-size: 0.72rem; font-weight: 800;
  padding: 5px 14px; border-radius: var(--radius-pill); letter-spacing: 0.02em;
}
.room-label{ font-family: var(--font-mono); font-size: 0.76rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.room-top h3{ font-size: 1.5rem; margin: 8px 0 14px; }
.room-price{ font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; display: flex; align-items: baseline; gap: 6px; }
.room-price span{ color: var(--accent-bright); }
.room-price--lock{ font-size: 1.4rem; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.room-price--lock i{ color: var(--accent); }
.room-terms{ color: var(--text-tertiary); font-size: 0.84rem; margin-top: 6px; }
.room-desc{ color: var(--text-secondary); font-size: 0.94rem; line-height: 1.55; }
.room-features{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.room-features li{ display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.4; }
.room-features i{ color: var(--accent); margin-top: 3px; flex-shrink: 0; }
.room-alt{ text-align: center; font-size: 0.82rem; color: var(--text-tertiary); }
.room-alt a{ color: var(--accent-bright); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ===== Apply form ===== */
.apply-hp{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply-form{ display: flex; flex-direction: column; gap: 22px; }
.form-row{ display: flex; flex-direction: column; gap: 8px; }
.form-row label{ font-size: 0.92rem; font-weight: 700; color: var(--text-primary); }
.req{ color: var(--accent); }
.field-hint{ font-size: 0.82rem; color: var(--text-tertiary); margin-top: -4px; }

.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea{
  font-family: var(--font-body); font-size: 0.96rem; color: var(--text-primary);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 16px; width: 100%; transition: border-color 0.2s ease, background 0.2s ease;
}
.form-row textarea{ resize: vertical; min-height: 90px; font-family: inherit; line-height: 1.5; }
.form-row input::placeholder, .form-row textarea::placeholder{ color: var(--text-tertiary); }
.form-row input:focus, .form-row textarea:focus{
  outline: none; border-color: var(--accent); background: var(--surface-2);
}
.form-row input:invalid:not(:placeholder-shown), .form-row textarea:invalid:not(:placeholder-shown){
  border-color: #c0654f;
}

.choice-group{ display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.choice-card{
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 16px; transition: border-color 0.2s ease, background 0.2s ease;
}
.choice-card:hover{ border-color: var(--border-strong); }
.choice-card input{ position: absolute; opacity: 0; width: 0; height: 0; }
.choice-letter{
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 700;
  background: rgba(245,239,230,0.06); color: var(--text-secondary);
  transition: background 0.2s ease, color 0.2s ease;
}
.choice-text{ font-size: 0.9rem; color: var(--text-secondary); transition: color 0.2s ease; }
.choice-card.is-selected{ border-color: var(--accent); background: var(--surface-2); }
.choice-card.is-selected .choice-letter{ background: var(--gradient-gold); color: #17110a; }
.choice-card.is-selected .choice-text{ color: var(--text-primary); }

.apply-note{ text-align: center; font-size: 0.82rem; color: var(--text-tertiary); }
.apply-error{
  background: rgba(192,101,79,0.12); border: 1px solid rgba(192,101,79,0.35); color: #e2a393;
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.88rem; text-align: center;
}
#applySubmit[disabled]{ opacity: 0.6; pointer-events: none; }

.apply-success{ text-align: center; padding: 40px 0; }
.apply-success-icon{ font-size: 2.6rem; color: var(--accent); margin-bottom: 16px; display: block; }
.apply-success h3{ font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 10px; }
.apply-success p{ color: var(--text-secondary); max-width: 46ch; margin: 0 auto 24px; line-height: 1.55; }

/* standalone apply page has no hero above it, so its first section needs its own clearance under the fixed header */
.apply-page{ padding-top: 148px; }
.back-link{
  display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary);
  font-size: 0.9rem; font-weight: 600; margin-bottom: 32px; transition: color 0.2s ease;
}
.back-link i{ transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); }
.back-link:hover{ color: var(--accent-bright); }
.back-link:hover i{ transform: translateX(-4px); }

/* live completion progress for the apply form */
.apply-progress{
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
  padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill);
}
.apply-progress-track{ flex: 1; height: 5px; border-radius: var(--radius-pill); background: rgba(245,239,230,0.08); overflow: hidden; }
.apply-progress-fill{
  height: 100%; width: 0%; border-radius: var(--radius-pill); background: var(--gradient-gold);
  transition: width 0.4s cubic-bezier(0.16,1,0.3,1);
}
.apply-progress-label{ font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-tertiary); white-space: nowrap; }

.form-row input:focus, .form-row textarea:focus{ transform: translateY(-1px); }
.form-row input, .form-row textarea{ transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease; }

.choice-card{ transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s cubic-bezier(0.34,1.56,0.64,1); }
.choice-card.is-selected{ animation: choicePop 0.35s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes choicePop{ 0%{ transform: scale(0.96); } 60%{ transform: scale(1.02); } 100%{ transform: scale(1); } }

.apply-success{ animation: successIn 0.5s cubic-bezier(0.16,1,0.3,1); }
.apply-success-icon{ animation: successPop 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.1s both; }
@keyframes successIn{ from{ opacity: 0; transform: translateY(12px); } }
@keyframes successPop{ 0%{ transform: scale(0); opacity: 0; } 60%{ transform: scale(1.15); opacity: 1; } 100%{ transform: scale(1); } }
@media (prefers-reduced-motion: reduce){
  .choice-card.is-selected, .apply-success, .apply-success-icon{ animation: none; }
  .form-row input:focus, .form-row textarea:focus{ transform: none; }
}
@media (max-width: 640px){
  .apply-page{ padding-top: 120px; }
}

/* ===== Legal pages (privacy policy, terms) ===== */
.legal-copy{ display: flex; flex-direction: column; gap: 16px; color: var(--text-secondary); font-size: 0.98rem; line-height: 1.7; }
.legal-copy h3{ font-size: 1.15rem; color: var(--text-primary); margin-top: 18px; }
.legal-copy ul{ margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-copy li{ line-height: 1.6; }
.legal-copy strong{ color: var(--text-primary); }
.legal-copy a{ color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; }
.legal-copy a:hover{ color: var(--accent); }

/* ===== Terms & risk acknowledgment gate ===== */
html.consent-locked, html.consent-locked body{ overflow: hidden; }
.consent-overlay{
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,7,5,0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: consentFadeIn 0.35s ease both;
}
.consent-modal{
  max-width: 480px; width: 100%; background: var(--surface-2); border: 1px solid var(--accent-deep);
  border-radius: var(--radius-card); padding: 36px; text-align: center;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
  animation: consentPopIn 0.4s cubic-bezier(0.16,1,0.3,1) both;
}
.consent-modal .room-label{ display: block; margin-bottom: 10px; }
.consent-modal h2{ font-size: 1.4rem; margin-bottom: 14px; }
.consent-modal p{ color: var(--text-secondary); font-size: 0.94rem; line-height: 1.6; }
.consent-modal .legal-copy a, .consent-modal p a{ color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; }
.consent-modal p a:hover{ color: var(--accent); }
.consent-actions{ display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.consent-declined{ margin-top: 20px; }
.consent-declined p{ margin-bottom: 14px; }
@keyframes consentFadeIn{ from{ opacity: 0; } }
@keyframes consentPopIn{ from{ opacity: 0; transform: scale(0.94) translateY(10px); } }
@media (prefers-reduced-motion: reduce){
  .consent-overlay, .consent-modal{ animation: none; }
}

/* ===== 404 ===== */
.not-found{ min-height: 100dvh; display: flex; align-items: center; padding-top: 140px; }
.not-found-content{ max-width: 560px; margin: 0 auto; text-align: center; }
.not-found-code{
  font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 14vw, 8rem); line-height: 1;
  background: var(--gradient-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin: 10px 0;
}
.not-found-content h2{ font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 14px; }
.not-found-content p{ color: var(--text-secondary); font-size: 1.02rem; line-height: 1.6; max-width: 46ch; margin: 0 auto; }
.not-found .hero-actions--center{ margin-top: 34px; }
@media (max-width: 640px){
  .not-found{ padding-top: 120px; }
}

/* ===== Challenge ===== */
.challenge-card{
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--accent-deep); border-radius: var(--radius-card);
  padding: 52px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.challenge-card::before{
  content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  top: -140px; right: -100px; pointer-events: none;
}
.live-pill{
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--up); background: rgba(111,191,139,0.12); border: 1px solid rgba(111,191,139,0.3);
  padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 18px;
}
.live-dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--up); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse{ 0%,100%{ opacity: 1; } 50%{ opacity: 0.3; } }
@media (prefers-reduced-motion: reduce){ .live-dot{ animation: none; } }
.challenge-copy h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 16px; }
.challenge-copy > p{ color: var(--text-secondary); font-size: 1rem; line-height: 1.6; max-width: 56ch; }
.challenge-features{ list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.challenge-features li{ display: flex; gap: 10px; font-size: 0.92rem; color: var(--text-secondary); }
.challenge-features i{ color: var(--accent); }

.challenge-stats{ display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.challenge-stat{
  background: rgba(11,10,8,0.5); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
}
.challenge-stat-label{ font-size: 0.82rem; color: var(--text-tertiary); font-family: var(--font-mono); }
.challenge-stat-value{ font-family: var(--font-mono); font-weight: 600; font-size: 1.15rem; }
.challenge-stat-value--up{ color: var(--up); }

/* ===== FAQ ===== */
.faq-list{ display: flex; flex-direction: column; gap: 12px; }
.faq-item{ background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q{
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; color: var(--text-primary); font-family: var(--font-body);
  font-weight: 600; font-size: 1rem; padding: 20px 24px; cursor: pointer; text-align: left;
}
.faq-q i{ color: var(--accent); transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1); flex-shrink: 0; }
.faq-q[aria-expanded="true"] i{ transform: rotate(180deg); }
.faq-item:hover .faq-q{ background: rgba(245,239,230,0.02); }
.faq-a{ max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.16,1,0.3,1); }
.faq-a p{
  padding: 0 24px 20px; color: var(--text-secondary); font-size: 0.94rem; line-height: 1.6; max-width: 62ch;
  opacity: 0; transform: translateY(-6px); transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
}
.faq-q[aria-expanded="true"] + .faq-a p{ opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  .faq-q i{ transition: transform 0.2s ease; }
  .faq-a p{ transition: none; }
}

/* ===== Final CTA ===== */
.final-cta{ text-align: center; padding-top: 60px; }
.final-cta h2{ font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }

/* ===== Footer ===== */
.site-footer{ position: relative; z-index: 1; padding: 56px 0 40px; }
.footer-top{ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.footer-links{ display: flex; gap: 22px; }
.footer-links a{ display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-weight: 600; font-size: 0.92rem; transition: color 0.2s ease; }
.footer-links a:hover{ color: var(--accent-bright); }
.footer-disclaimer{ color: var(--text-tertiary); font-size: 0.8rem; line-height: 1.6; max-width: 900px; margin: 26px 0 0; }
.footer-copy{ color: var(--text-tertiary); font-size: 0.8rem; margin-top: 16px; }
.footer-copy a{ color: var(--text-tertiary); text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s ease; }
.footer-copy a:hover{ color: var(--accent-bright); }

/* ===== Spotlight cards: cursor-tracked glow, position set via --sx/--sy from JS ===== */
.feature-card, .room-card, .t-card, .faq-item, .choice-card{ position: relative; overflow: hidden; }
.feature-card::before, .room-card::before, .t-card::before, .faq-item::before, .choice-card::before{
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(220px circle at var(--sx, 50%) var(--sy, 50%), rgba(217,164,78,0.14), transparent 70%);
  opacity: 0; transition: opacity 0.4s ease;
}
.feature-card:hover::before, .room-card:hover::before, .t-card:hover::before, .faq-item:hover::before, .choice-card:hover::before{ opacity: 1; }
.feature-card > *, .room-card > *, .t-card > *, .choice-card > *{ position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce){
  .feature-card::before, .room-card::before, .t-card::before, .faq-item::before, .choice-card::before{ display: none; }
}

/* ===== Reveal on scroll (staggered per group via --stagger set from JS) ===== */
.reveal{
  opacity: 0; transform: translateY(28px) scale(0.97);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
  transition-delay: calc(var(--stagger, 0) * 70ms);
}
.reveal.in-view{ opacity: 1; transform: translateY(0) scale(1); }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px){
  .main-nav{ display: none; }
  .header-actions{ display: none; }
  .nav-toggle{ display: flex; align-items: center; justify-content: center; }
  .mobile-nav{ display: none; }
  .mobile-nav.open{ display: flex; }
  .site-header.menu-open{ background: rgba(11,10,8,0.96); backdrop-filter: blur(16px); }

  .feature-bento{ grid-template-columns: 1fr 1fr; }
  .feature-card--wide{ grid-column: span 2; }
  .rooms{ grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .room-card--featured{ transform: none; order: -1; }
  .challenge-card{ grid-template-columns: 1fr; padding: 36px 28px; }
}

@media (max-width: 640px){
  .container{ padding: 0 18px; }
  .hero{ padding: 120px 0 64px; align-items: flex-end; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-actions .btn{ width: 100%; }
  .section{ padding: 72px 0; }
  .feature-bento{ grid-template-columns: 1fr; }
  .feature-card--wide{ grid-column: span 1; }
  .t-card{ width: 280px; }
  .challenge-card{ padding: 28px 20px; }
  .hero-actions--center{ flex-direction: column; }

  /* mobile hero: full-bleed video. desktop keeps the static photo instead (see JS: video sources only load on phones) */
  .brand-logo{ height: 34px; }
  .hero-video{ display: block; }
  .hero-photo{ display: none; }
  .hero-tint{ display: none; }
  .hero-title{ font-size: clamp(1.7rem, 7.8vw, 2.35rem); }
}
