:root {
  --void: #05060A;
  --void-2: #0A0C14;
  --void-3: #101320;
  --magenta: #FF2E97;
  --cyan: #22E7FF;
  --off-white: #F2F2F7;
  --off-white-dim: rgba(242,242,247,0.62);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.preloader{ position:fixed; inset:0; z-index:9999; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:22px; background:var(--void); transition:opacity .5s var(--ease), visibility .5s var(--ease); }
.preloader.is-hidden{ opacity:0; visibility:hidden; pointer-events:none; }
.preloader-mark{ font-family:var(--font-display); font-weight:900; font-size:22px; letter-spacing:0.06em; color:var(--off-white); text-shadow:0 0 12px rgba(34,231,255,0.5); opacity:0; animation:preloaderIn .6s var(--ease) forwards; }
.preloader-mark-accent{ color:var(--magenta); text-shadow:0 0 12px rgba(255,46,151,0.6); }
.preloader-bar{ width:120px; height:2px; background:rgba(242,242,247,0.14); overflow:hidden; border-radius:2px; }
.preloader-bar-fill{ display:block; height:100%; width:0%; background:var(--magenta); transition:width .25s var(--ease); }
@keyframes preloaderIn{ to{ opacity:1; } }
body.is-preloading{ overflow:hidden; }
@media (prefers-reduced-motion:reduce){ .preloader-mark{ animation:none; opacity:1; } }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--off-white);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: default;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- texture layers ---------- */

.grain {
  position: fixed; inset: 0; z-index: 998; pointer-events: none;
  opacity: 0.05;
  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");
}

.scanlines {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='1' fill='%2322E7FF'/%3E%3C/svg%3E");
  background-size: 4px 4px;
}

/* ---------- header ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 40px;
  background: rgba(5,6,10,0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(242,242,247,0.08);
}

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--off-white);
  text-shadow: 0 0 12px rgba(34,231,255,0.5);
}
.logo span { color: var(--magenta); text-shadow: 0 0 12px rgba(255,46,151,0.6); }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--off-white-dim);
  position: relative;
  transition: color 0.2s var(--ease);
}
.main-nav a:hover { color: var(--cyan); }
.main-nav a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: var(--cyan); transition: width 0.25s var(--ease);
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  border: 1px solid var(--magenta);
  padding: 9px 18px;
  color: var(--off-white) !important;
  box-shadow: 0 0 14px rgba(255,46,151,0.35);
}
.nav-cta:hover { background: var(--magenta); box-shadow: 0 0 24px rgba(255,46,151,0.7); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--off-white); }

.mobile-nav {
  position: fixed; top: 0; right: -100%; width: 78%; max-width: 340px; height: 100vh;
  z-index: 250; background: var(--void-2);
  border-left: 1px solid rgba(242,242,247,0.1);
  display: flex; flex-direction: column; gap: 4px;
  padding: 100px 32px;
  transition: right 0.35s var(--ease);
}
.mobile-nav.open { right: 0; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 20px; padding: 14px 0;
  border-bottom: 1px solid rgba(242,242,247,0.08);
  color: var(--off-white);
}

/* ---------- hero ---------- */

.hero {
  position: relative; height: 100vh; min-height: 640px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--void);
}

#vizCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1;
}

.hero-grid-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M0 0 L80 0 M0 40 L80 40 M0 79 L80 79 M0 0 L0 80 M40 0 L40 80 M80 0 L80 80' stroke='%2322E7FF' stroke-opacity='0.35' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  transform: perspective(340px) rotateX(62deg);
  transform-origin: bottom;
  opacity: 0.5;
}

.hero-content {
  position: relative; z-index: 3;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: 40px 24px;
  background: rgba(5,6,10,0.42);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(34,231,255,0.6);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(64px, 15vw, 168px);
  line-height: 0.86;
  letter-spacing: 0.01em;
  color: var(--off-white);
  text-shadow:
    0 4px 0 var(--void),
    0 0 4px rgba(5,6,10,0.9),
    0 0 24px rgba(5,6,10,0.95),
    0 0 46px rgba(255,46,151,0.5);
}
.hero-title span { display: block; }
.hero-title span:last-child { color: var(--magenta); text-shadow: 0 4px 0 var(--void), 0 0 4px rgba(5,6,10,0.9), 0 0 24px rgba(5,6,10,0.95), 0 0 46px rgba(34,231,255,0.5); }

.hero-next {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: 1px solid rgba(34,231,255,0.4);
  padding: 16px 32px;
  background: rgba(10,12,20,0.6);
  box-shadow: 0 0 24px rgba(34,231,255,0.15);
}
.hero-next-label {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--off-white-dim);
}
.hero-next-date {
  font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--cyan);
  text-shadow: 0 0 14px rgba(34,231,255,0.7);
}
.hero-next-name { font-size: 14px; color: var(--off-white); }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.btn {
  font-family: var(--font-body);
  font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  display: inline-block;
}
.btn-primary {
  background: var(--magenta); color: var(--void);
  box-shadow: 0 0 24px rgba(255,46,151,0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(255,46,151,0.75); }
.btn-ghost {
  border-color: rgba(242,242,247,0.35); color: var(--off-white);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 18px rgba(34,231,255,0.3); }
.btn-large { padding: 20px 44px; font-size: 15px; }

/* ---------- marquee ---------- */

.marquee-section {
  border-top: 1px solid rgba(242,242,247,0.1);
  border-bottom: 1px solid rgba(242,242,247,0.1);
  background: var(--void-2);
  padding: 26px 0;
  overflow: hidden;
}
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap; }
.marquee-group span {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 3.4vw, 34px);
  color: var(--off-white-dim);
}
.marquee-group .dot { color: var(--magenta); text-shadow: 0 0 10px rgba(255,46,151,0.6); font-family: var(--font-body); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- section shared ---------- */

.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: 0.01em;
  text-shadow: 0 0 18px rgba(34,231,255,0.3);
}
.section-sub {
  margin-top: 14px;
  font-size: 16px; color: var(--off-white-dim); max-width: 560px;
}

/* ---------- room ---------- */

.room-section { padding: 120px 40px; }
.room-header { max-width: 960px; margin: 0 auto 56px; }

.room-grid {
  max-width: 1240px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
}
.room-card {
  position: relative; overflow: hidden;
  border: 1px solid rgba(242,242,247,0.1);
}
.room-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.room-card:hover img { transform: scale(1.06); }
.room-card figcaption {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 16px 18px;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--off-white);
  background: rgba(5,6,10,0.55);
  border-top: 1px solid rgba(34,231,255,0.3);
}
.room-card--tall { grid-row: 1 / 3; grid-column: 1 / 2; }
.room-card--wide { grid-column: 2 / 4; }

/* ---------- video section ---------- */

.video-section {
  position: relative; min-height: 88vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.video-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.video-scrim { position: absolute; inset: 0; background: rgba(5,6,10,0.72); z-index: 2; }
.video-content { position: relative; z-index: 3; max-width: 820px; padding: 0 40px; margin: 0 auto; }
.video-eyebrow { font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--magenta); text-shadow: 0 0 10px rgba(255,46,151,0.6); margin-bottom: 18px; }
.video-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.15;
  margin-bottom: 24px;
}
.video-copy { font-size: 17px; line-height: 1.6; color: var(--off-white-dim); max-width: 620px; }

/* ---------- residents ---------- */

.residents-section { padding: 120px 40px; text-align: center; }
.residents-section .section-sub { margin-left: auto; margin-right: auto; }

.residents-grid {
  max-width: 1100px; margin: 64px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  text-align: left;
  perspective: 1000px;
}
.resident-card {
  border: 1px solid rgba(242,242,247,0.1);
  background: var(--void-2);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.resident-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(34,231,255,0.15); }
.resident-photo { aspect-ratio: 4/5; overflow: hidden; border-bottom: 1px solid rgba(34,231,255,0.25); }
.resident-photo img { width: 100%; height: 100%; object-fit: cover; }
.resident-info { padding: 22px 22px 26px; }
.resident-info h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 6px; color: var(--off-white); }
.resident-role { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.resident-bio { font-size: 14px; line-height: 1.55; color: var(--off-white-dim); }

/* ---------- nights ---------- */

.nights-section { padding: 120px 40px; }
.nights-section .section-title { text-align: center; margin-bottom: 60px; }

.nights-list { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: 2px; }

.night-row {
  display: grid;
  grid-template-columns: 92px 1fr auto auto;
  align-items: center; gap: 28px;
  padding: 26px 22px;
  background: var(--void-2);
  border: 1px solid rgba(242,242,247,0.08);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.night-row:hover { border-color: rgba(255,46,151,0.45); background: var(--void-3); }

.night-date { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.night-day { font-size: 11px; letter-spacing: 0.14em; color: var(--off-white-dim); }
.night-num { font-family: var(--font-display); font-weight: 900; font-size: 34px; color: var(--magenta); text-shadow: 0 0 12px rgba(255,46,151,0.55); }
.night-mon { font-size: 11px; letter-spacing: 0.14em; color: var(--off-white-dim); }

.night-info h3 { font-family: var(--font-display); font-size: 17px; margin-bottom: 6px; }
.night-info p { font-size: 13.5px; line-height: 1.5; color: var(--off-white-dim); max-width: 440px; }

.night-tiers { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.tier { font-size: 11.5px; letter-spacing: 0.04em; color: var(--off-white-dim); text-decoration: line-through; opacity: 0.5; }
.tier--active { color: var(--cyan); text-decoration: none; opacity: 1; font-weight: 500; }

.night-cta {
  border: 1px solid var(--cyan); padding: 10px 20px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cyan);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.night-cta:hover { background: var(--cyan); color: var(--void); box-shadow: 0 0 20px rgba(34,231,255,0.6); }

/* ---------- tickets ---------- */

.tickets-section {
  padding: 140px 40px;
  text-align: center;
  border-top: 1px solid rgba(242,242,247,0.1);
  background: var(--void-2);
}
.tickets-inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.tickets-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.2; }
.tickets-sub { font-size: 16px; color: var(--off-white-dim); }
.tickets-note { font-size: 13px; color: var(--off-white-dim); margin-top: 8px; }

/* ---------- footer ---------- */

.site-footer { padding: 80px 40px 40px; border-top: 1px solid rgba(242,242,247,0.1); }
.footer-top { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 48px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.footer-col p { font-size: 14px; color: var(--off-white-dim); margin-bottom: 8px; }
.footer-col a:hover { color: var(--magenta); }
.footer-bottom { max-width: 1240px; margin: 60px auto 0; padding-top: 24px; border-top: 1px solid rgba(242,242,247,0.08); font-size: 12px; color: var(--off-white-dim); }

/* ---------- demo pill ---------- */

.demo-pill {
  position: fixed; left: 16px; bottom: 16px; z-index: 500;
  font-size: 11px; letter-spacing: 0.04em;
  padding: 8px 14px;
  background: rgba(10,12,20,0.75);
  border: 1px solid rgba(242,242,247,0.18);
  color: var(--off-white-dim);
  backdrop-filter: blur(6px);
}
.demo-pill:hover { color: var(--cyan); border-color: var(--cyan); }

/* ---------- reveal ---------- */

.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* no-js fallback: everything visible */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: opacity 0.3s linear; transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .room-grid { grid-template-columns: 1fr 1fr; }
  .room-card--tall { grid-row: auto; grid-column: 1 / 3; }
  .room-card--wide { grid-column: 1 / 3; }
  .residents-grid { grid-template-columns: 1fr; max-width: 420px; }
  .night-row { grid-template-columns: 70px 1fr; grid-template-rows: auto auto; row-gap: 14px; }
  .night-tiers { grid-column: 1 / 3; flex-direction: row; align-items: center; }
  .night-cta { grid-column: 1 / 3; justify-self: start; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header { padding: 18px 20px; }
  .room-section, .residents-section, .nights-section { padding: 80px 20px; }
  .video-content { padding: 0 24px; }
  .tickets-section { padding: 90px 24px; }
  .site-footer { padding: 60px 20px 30px; }
  .hero-next { padding: 14px 22px; }
}

@media (max-width: 480px) {
  .room-grid { grid-template-columns: 1fr; }
  .room-card--tall, .room-card--wide { grid-column: 1 / 2; }
  .hero-title { font-size: clamp(52px, 17vw, 90px); }
}
