/* ═══════════════════════════════════════════════════════════
   LASCIVIOUS VIBRATIONS — MAIN STYLESHEET
   Digital Cathedral · Art Installation · Dream Archive
   ═══════════════════════════════════════════════════════════ */

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

:root {
  /* Core palette */
  --void: #050208;
  --void-deep: #020105;
  --cream: #f0e6d3;
  --cream-soft: rgba(240, 230, 211, 0.7);
  --cream-dim: rgba(240, 230, 211, 0.3);
  --gold: #c9a84c;
  --gold-soft: rgba(201, 168, 76, 0.4);
  --rose: #d4788c;
  --rose-soft: rgba(212, 120, 140, 0.3);

  /* Realm colors (overridden per realm) */
  --realm-primary: #b48ce8;
  --realm-secondary: #e088b0;
  --realm-glow: rgba(180, 140, 232, 0.15);
  --realm-glow-strong: rgba(180, 140, 232, 0.4);

  /* Typography */
  --font-display: 'Cinzel', serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-xxl: 12rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--void);
}

body {
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--void);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: default;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection {
  background: var(--realm-primary);
  color: var(--void);
}

/* ── VOID CANVAS (Layer 1) ── */
#void-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── REALM GLOW (Layer 2) ── */
#realm-glow {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, var(--realm-glow) 0%, transparent 70%);
  transition: background 1.5s var(--ease-in-out);
}

/* ── MOUSE GLOW (Layer 4) ── */
#mouse-glow {
  position: fixed;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--realm-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s, background 1.5s var(--ease-in-out);
  opacity: 0;
  will-change: transform;
}

body:hover #mouse-glow { opacity: 1; }

/* ── TRANSITION OVERLAY (Layer 5) ── */
#transition-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1000;
  background: var(--void-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-in-out);
}

#transition-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.transition-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  color: var(--cream-dim);
  animation: pulse-soft 2s infinite;
}

/* ── NAVIGATION ── */
#main-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.2rem 2rem;
  background: linear-gradient(to bottom, rgba(5, 2, 8, 0.95) 0%, rgba(5, 2, 8, 0) 100%);
  transition: transform 0.6s var(--ease-out), opacity 0.6s;
}

#main-nav.nav-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.nav-crown {
  font-size: 1.4rem;
  color: var(--gold);
  filter: drop-shadow(0 0 8px var(--gold-soft));
}

.nav-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  font-weight: 500;
  color: var(--cream);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--cream-dim);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--realm-primary);
  transition: width 0.4s var(--ease-out);
}

.nav-link:hover {
  color: var(--cream);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px; height: 1.5px;
  background: var(--cream);
  transition: 0.3s;
}

/* ── REALMS ── */
.realm {
  display: none;
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

.realm.active {
  display: block;
}

/* ── HERO VOID ── */
.hero-void {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: var(--space-md);
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-crown {
  font-size: 3rem;
  color: var(--gold);
  filter: drop-shadow(0 0 20px var(--gold-soft));
  margin-bottom: var(--space-md);
  animation: float 6s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.title-line {
  display: block;
  font-size: clamp(3rem, 10vw, 8rem);
  letter-spacing: 0.15em;
  opacity: 0;
  transform: translateY(30px);
  animation: title-reveal 1.2s var(--ease-out) forwards;
}

.title-line:nth-child(2) {
  animation-delay: 0.3s;
  font-size: clamp(2.4rem, 8vw, 6.5rem);
  color: var(--cream-soft);
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  letter-spacing: 0.3em;
  color: var(--cream-dim);
  text-transform: uppercase;
}

.hero-divider {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: var(--space-md) auto;
  animation: divider-glow 3s ease-in-out infinite;
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--cream-dim);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: float 4s ease-in-out infinite;
}

.scroll-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--cream-dim);
}

.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--cream-dim), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

/* ── SECTIONS ── */
.section {
  padding: var(--space-xl) var(--space-md);
  position: relative;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-lg);
  position: relative;
}

.section-heading::after {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--realm-primary);
  margin: var(--space-sm) auto 0;
  opacity: 0.6;
}

.section-sub {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--cream-dim);
  margin-bottom: var(--space-md);
}

.label-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--realm-primary);
  border: 1px solid rgba(180, 140, 232, 0.2);
  padding: 0.4rem 1.2rem;
  margin-bottom: var(--space-md);
}

/* ── ENTRY STATEMENT ── */
.entry-statement {
  padding: var(--space-xxl) var(--space-md);
  text-align: center;
}

.statement-text {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 300;
  line-height: 2;
  color: var(--cream-dim);
  margin-bottom: var(--space-lg);
}

.statement-emphasis {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--cream);
  margin-bottom: var(--space-lg);
  text-shadow: 0 0 40px var(--realm-glow-strong);
}

.statement-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--cream-dim);
}

/* ── PORTALS ── */
.portals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.portal {
  position: relative;
  cursor: pointer;
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.6s var(--ease-out);
}

.portal:hover {
  transform: translateY(-8px) scale(1.02);
}

.portal-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s;
  z-index: 0;
}

.portal:hover .portal-glow {
  opacity: 1;
}

.portal-drops .portal-glow {
  background: radial-gradient(ellipse at center, rgba(0, 255, 255, 0.08), rgba(255, 0, 200, 0.05), transparent);
}

.portal-btc .portal-glow {
  background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.08), rgba(255, 255, 255, 0.03), transparent);
}

.portal-signals .portal-glow {
  background: radial-gradient(ellipse at center, rgba(60, 80, 200, 0.1), rgba(100, 140, 255, 0.05), transparent);
}

.portal-frame {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(240, 230, 211, 0.08);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  background: rgba(5, 2, 8, 0.6);
  backdrop-filter: blur(10px);
  transition: border-color 0.6s;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.portal:hover .portal-frame {
  border-color: rgba(240, 230, 211, 0.2);
}

.portal-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  opacity: 0.6;
  transition: opacity 0.4s, transform 0.6s var(--ease-out);
}

.portal:hover .portal-icon {
  opacity: 1;
  transform: scale(1.1);
}

.portal-drops .portal-icon { color: #00e5ff; text-shadow: 0 0 20px rgba(0, 229, 255, 0.4); }
.portal-btc .portal-icon { color: var(--gold); text-shadow: 0 0 20px var(--gold-soft); }
.portal-signals .portal-icon { color: #6488ff; text-shadow: 0 0 20px rgba(100, 136, 255, 0.4); }

.portal-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.portal-desc {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--cream-dim);
  margin-bottom: var(--space-md);
}

.portal-cta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--cream-dim);
  transition: color 0.3s, letter-spacing 0.4s;
}

.portal:hover .portal-cta {
  color: var(--cream);
  letter-spacing: 0.5em;
}

/* ── FEATURED DROP ── */
.featured-drop {
  text-align: center;
}

.featured-image-wrap {
  max-width: 800px;
  margin: var(--space-md) auto var(--space-lg);
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.featured-image {
  width: 100%;
  transition: transform 8s var(--ease-out);
}

.featured-image-wrap:hover .featured-image {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--void) 100%);
  pointer-events: none;
}

.featured-desc {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--cream-soft);
  margin-bottom: var(--space-lg);
}

/* ── BUTTONS ── */
.btn-portal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  padding: 1rem 2.5rem;
  border: 1px solid rgba(240, 230, 211, 0.15);
  background: rgba(240, 230, 211, 0.03);
  color: var(--cream);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-out);
}

.btn-portal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--realm-glow) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s;
}

.btn-portal:hover {
  border-color: var(--realm-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 30px var(--realm-glow);
}

.btn-portal:hover::before {
  opacity: 1;
}

.btn-portal span {
  position: relative;
  z-index: 1;
}

.btn-warm {
  border-color: rgba(201, 168, 76, 0.2);
}

.btn-warm:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 30px var(--gold-soft);
}

.btn-cool {
  border-color: rgba(100, 136, 255, 0.2);
}

.btn-cool:hover {
  border-color: #6488ff;
  box-shadow: 0 4px 30px rgba(100, 136, 255, 0.3);
}

/* ── MANIFESTO PREVIEW ── */
.manifesto-preview {
  text-align: center;
  padding: var(--space-xxl) var(--space-md);
}

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.quote-mark {
  color: var(--gold);
  opacity: 0.4;
}

.manifesto-sub {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--cream-dim);
  margin-bottom: var(--space-lg);
}

/* ── FOOTER ── */
.footer-void {
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  text-align: center;
  border-top: 1px solid rgba(240, 230, 211, 0.05);
  margin-top: var(--space-xl);
}

.footer-inner { max-width: 600px; margin: 0 auto; }

.footer-crown {
  font-size: 1.5rem;
  color: var(--gold);
  opacity: 0.4;
  margin-bottom: var(--space-md);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  margin-bottom: var(--space-xs);
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--cream-dim);
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: var(--space-md);
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--cream-dim);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--cream); }

.footer-copy {
  font-size: 0.7rem;
  color: rgba(240, 230, 211, 0.15);
}

/* ── REALM HEADER ── */
.realm-header {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.realm-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  color: var(--realm-primary);
  margin-bottom: var(--space-md);
}

.realm-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.realm-desc {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--cream-dim);
  max-width: 600px;
}

.back-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--cream-dim);
  cursor: pointer;
  margin-bottom: var(--space-lg);
  transition: color 0.3s;
}

.back-link:hover { color: var(--cream); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .portals-grid { grid-template-columns: 1fr; max-width: 500px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  /* Mobile menu */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(5, 2, 8, 0.97);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    gap: 3rem;
    z-index: 200;
  }

  .nav-links.open .nav-link {
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    color: var(--cream-soft);
  }
}

@media (max-width: 600px) {
  :root {
    --space-xl: 5rem;
    --space-xxl: 7rem;
  }

  .hero-crown { font-size: 2rem; }
  .section { padding: var(--space-lg) var(--space-sm); }
}
