:root {
  --bg: #07050d;
  --bg-2: #0d0a18;
  --panel: #120d24;
  --violet: #6b2cff;
  --violet-deep: #2a1060;
  --violet-glow: #8f5bff;
  --text: #ece8f6;
  --muted: #a49cbc;
  --line: rgba(236, 232, 246, 0.35);
  --display: "Space Grotesk", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; }

/* Nothing should ever scroll the page sideways (glitch slices, wide glyphs).
   clip, unlike hidden, doesn't create a scroll container. */
html, body { overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-weight: 300; text-transform: uppercase; }

.rule {
  width: 56px;
  border: 0;
  border-top: 1px solid var(--text);
}

.small {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Gate (gate.js): covers the page until the visitor confirms they're 18+ */
.is-gated { overflow: hidden; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  overflow-y: auto;
  background: var(--bg);
}

.gate-panel {
  max-width: 460px;
  display: grid;
  gap: 22px;
}

.gate-title {
  font-size: clamp(40px, 8vw, 64px);
  letter-spacing: 0.3em;
  line-height: 1;
}

.gate-copy,
.gate-warning p,
.gate-ask {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.gate-copy { color: var(--muted); }

.gate-warning {
  padding: 16px 18px;
  border: 1px solid #ff0040;
  border-left-width: 4px;
}
.gate-warning .gate-label {
  margin-bottom: 8px;
  color: #ff3366;
  letter-spacing: 0.25em;
}

.gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Nav */
.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--gutter);
}

.logo {
  font-size: 24px;
  letter-spacing: 0.25em;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 14px;
  margin-left: auto;
  margin-right: 36px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav-links span { color: var(--muted); }
.nav-links a:hover { color: var(--violet-glow); }

.menu {
  display: grid;
  gap: 6px;
  width: 32px;
  background: none;
  border: 0;
  cursor: pointer;
}
.menu span { height: 1px; background: var(--text); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--violet-deep);
}

.hero-reel,
.hero-tears,
.hero-noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero.is-inverted .hero-reel,
.hero.is-inverted .hero-tears { filter: invert(1); }

.hero-noise {
  /* above the hero copy and the nav overlay; clicks pass through */
  z-index: 11;
  opacity: 0.14; /* matches hero-fx.js config */
  image-rendering: pixelated;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 5, 13, 0.85) 0%, rgba(7, 5, 13, 0.3) 55%, rgba(7, 5, 13, 0.2) 100%),
    linear-gradient(180deg, rgba(7, 5, 13, 0) 60%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  padding: 120px var(--gutter) 80px;
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 68px);
  line-height: 1.12;
  letter-spacing: 0.35em;
}

/* text-fx.js: per-letter cipher flicker, whole-word tears and chromatic
   aberration (red/cyan fringes split by --ab, set live per word) */
.glitch-text .word {
  /* declared on the word so each word's own --ab is what gets substituted */
  --ab: 0px;
  text-shadow:
    calc(var(--ab) * -1) 0 rgba(255, 0, 64, 0.85),
    var(--ab) 0 rgba(0, 224, 255, 0.85);
}
.glitch-text .word {
  position: relative;
  display: block;
  width: max-content;
}
.glitch-text .char {
  display: inline-block;
  text-align: center;
}
.glitch-text .slice {
  position: absolute;
  inset: 0;
  white-space: nowrap;
  pointer-events: none;
}
.glitch-text .word.is-torn > .char { visibility: hidden; }

.hero .rule { margin: 36px 0; }

.lede {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  max-width: 420px;
}

.scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.scroll-line { width: 1px; height: 90px; background: var(--line); }
.scroll-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.scroll-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--text);
  border-radius: 50%;
  font-size: 13px;
}

/* Shared */
.section-head {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 28px;
  max-width: 66%;
}
.section-head h2 {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.25em;
  white-space: nowrap;
}
.head-line { flex: 1; height: 1px; background: var(--line); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border: 1px solid var(--text);
  background: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--violet); border-color: var(--violet); }
.btn-solid { background: var(--violet); border-color: var(--violet); }
.btn-solid:hover { background: var(--violet-glow); border-color: var(--violet-glow); }

.nav-links .nav-cta { color: var(--violet-glow); }

/* Hero extras */
.hero-meta {
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Intro */
.intro { padding: 96px var(--gutter) 72px; }
.intro-big {
  max-width: 900px;
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.intro-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
  max-width: 1100px;
}
.intro-cols p {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.intro-cols p:last-child { color: var(--violet-glow); }

/* Spaces */
.spaces { padding: 24px var(--gutter) 72px; }

.space-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.space {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  overflow: hidden;
  background: var(--panel) center / cover no-repeat;
}
.space::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 5, 13, 0.2) 30%, rgba(7, 5, 13, 0.92) 100%);
}
.space > * { position: relative; z-index: 1; }

.space-dungeon { background-image: url(assets/hero/05.jpg); }
.space-void { background-image: url(assets/hero/01.jpg); }

.space-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.25em; color: var(--muted); }
.space h3 { font-size: 22px; letter-spacing: 0.2em; font-weight: 400; }
.space-sub {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--violet-glow);
}
.space-desc {
  margin-top: 16px;
  max-width: 300px;
  min-height: 5.1em; /* three lines, so the headings line up across cards */
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Production */
.experience {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  min-height: 420px;
  background: var(--bg-2);
}
.experience-media {
  align-self: stretch;
  min-height: 420px;
  background: #1f0f45 url(assets/hero/03.jpg) center / cover no-repeat;
}
.experience-copy { padding: 48px var(--gutter); }
.experience h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.2;
  letter-spacing: 0.35em;
}
.production-list {
  list-style: none;
  margin: 32px 0;
  display: grid;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.production-list li::before { content: "/ "; color: var(--violet-glow); }

/* Access / Where & when */
.info {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  background: var(--bg);
  border-top: 1px solid rgba(143, 91, 255, 0.15);
}

.access, .event { padding: 56px var(--gutter); }
.corridor { min-height: 360px; background: #1a0c3c url(assets/hero/12.jpg) center / cover no-repeat; }

.info h2 {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.25em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  display: inline-block;
  min-width: 70%;
}

.access ul {
  list-style: none;
  margin: 26px 0 40px;
  display: grid;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.event { border-left: 1px solid var(--line); margin: 48px 0; padding-top: 8px; padding-bottom: 8px; }
.event h2 { border-bottom: 0; }
.where {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 24px;
  margin: 24px 0 26px;
  font-family: var(--mono);
  text-transform: uppercase;
}
.where dt { font-size: 11px; letter-spacing: 0.25em; color: var(--muted); padding-top: 6px; }
.where dd { font-size: 20px; letter-spacing: 0.2em; }
.event .rule { margin-top: 32px; }

/* Sign up */
.register {
  padding: 96px var(--gutter);
  border-top: 1px solid rgba(143, 91, 255, 0.15);
  background: var(--bg-2);
}
.register-big {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.register-copy {
  margin-top: 24px;
  max-width: 420px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Footer */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 40px var(--gutter);
  border-top: 1px solid rgba(143, 91, 255, 0.15);
}
.logo-lg { font-size: 26px; color: var(--muted); }
.footer-right { display: flex; align-items: center; gap: 28px; }
.icon { width: 20px; height: 20px; color: var(--muted); transition: color 0.2s; }
.icon svg { width: 100%; height: 100%; fill: currentColor; }
.icon:hover { color: var(--violet-glow); }
.divider { width: 1px; height: 40px; background: var(--line); }
.enter { display: inline-flex; align-items: center; gap: 16px; color: var(--text); }
.enter-line { width: 30px; height: 1px; background: var(--text); }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .section-head { max-width: 100%; }
  .intro { padding: 72px var(--gutter) 56px; }
  .intro-cols { grid-template-columns: 1fr; gap: 18px; margin-top: 32px; }
  .space-grid { grid-template-columns: 1fr; }
  .space { aspect-ratio: 16 / 10; }
  .experience { grid-template-columns: 1fr; }
  .experience-media { min-height: 280px; }
  .info { grid-template-columns: 1fr; }
  .corridor { min-height: 240px; order: -1; }
  .event { border-left: 0; border-top: 1px solid var(--line); margin: 0 var(--gutter); padding: 40px 0; }
  .register { padding: 72px var(--gutter); }
}

@media (max-width: 560px) {
  .logo { font-size: 18px; }
  .hero h1 { letter-spacing: 0.25em; }
  .scroll { display: none; }
  .space { aspect-ratio: 4 / 5; }
  .footer-right { flex-wrap: wrap; gap: 20px; }
  .divider { display: none; }
}
