@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;600;700&display=swap');

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

:root {
  --bg: #0d0516;
  --sidebar-bg: #130a2a;
  --accent: #f0a800;
  --accent2: #9b59f5;
  --text: #e8e0f8;
  --muted: #8878b0;
  --sidebar-w: 260px;
}

html { scroll-behavior: smooth; }
body.is-hyperspace {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* Starfield canvas */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Sidebar ── */
#sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #1a0a38 0%, #0d0516 100%);
  border-right: 1px solid rgba(155,89,245,.25);
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-inner {
  padding: 2.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  height: 100%;
}

.sidebar-brand {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-date {
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .06em;
}

.sidebar-location {
  font-size: .85rem;
  color: var(--text);
}

.sidebar-labels {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.label-tag {
  display: inline-block;
  padding: .25rem .7rem;
  background: rgba(155,89,245,.18);
  border: 1px solid rgba(155,89,245,.4);
  border-radius: 20px;
  font-size: .72rem;
  color: var(--accent2);
  text-decoration: none;
  letter-spacing: .04em;
  transition: background .2s, color .2s;
}
.label-tag:hover { background: rgba(155,89,245,.35); color: #fff; }

.sidebar-nav {
  list-style: none;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.sidebar-nav a {
  display: block;
  padding: .5rem .8rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  font-size: .88rem;
  transition: background .2s, color .2s;
}
.sidebar-nav a:hover {
  background: rgba(240,168,0,.1);
  color: var(--accent);
}

/* ── Main ── */
#main {
  margin-left: var(--sidebar-w);
  position: relative;
  z-index: 1;
}

.hs-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  position: relative;
}

/* Hero */
.hs-hero {
  background: radial-gradient(ellipse at 60% 40%, #2a1060 0%, #0d0516 70%);
}

.hero-content {
  text-align: center;
  max-width: 680px;
}

.hero-eyebrow {
  display: block;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.hero-content h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #fff 30%, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.hs-btn {
  display: inline-block;
  padding: .75rem 2rem;
  background: linear-gradient(90deg, var(--accent), #f0c800);
  color: #0d0516;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .06em;
  text-decoration: none;
  border-radius: 30px;
  transition: transform .2s, box-shadow .2s;
}
.hs-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(240,168,0,.4);
}

/* Story section */
.hs-story {
  background: linear-gradient(180deg, #0d0516 0%, #110a20 100%);
}

.hs-content {
  max-width: 720px;
  width: 100%;
}

.hs-content h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.8rem;
  color: var(--accent);
  letter-spacing: -.01em;
}

.event-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
.event-body p { margin-bottom: 1.2rem; }
.event-body img { max-width: 100%; border-radius: 8px; margin: 1rem 0; }
.event-body a { color: var(--accent); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }

  #sidebar {
    position: fixed;
    width: 100%;
    height: auto;
    bottom: 0;
    top: auto;
    border-right: none;
    border-top: 1px solid rgba(155,89,245,.25);
    flex-direction: row;
  }

  .sidebar-inner {
    flex-direction: row;
    align-items: center;
    padding: .8rem 1rem;
    gap: .8rem;
    overflow-x: auto;
    width: 100%;
  }

  .sidebar-brand { font-size: 1rem; white-space: nowrap; }
  .sidebar-nav { flex-direction: row; margin-top: 0; }
  .sidebar-nav a { padding: .3rem .6rem; font-size: .75rem; }

  #main { margin-left: 0; padding-bottom: 60px; }
}

/* ── Lightbox ── */
#lightbox{display:none;position:fixed;inset:0;background:rgba(0,0,0,.9);
  z-index:9999;align-items:center;justify-content:center;
  flex-direction:column;gap:.5rem}
#lightbox img{max-width:90vw;max-height:80vh;object-fit:contain}
.lb-close{position:fixed;top:1rem;right:1.5rem;font-size:2.5rem;
  color:#fff;cursor:pointer;line-height:1;opacity:.8}
.lb-close:hover{opacity:1}
.lb-nav{position:fixed;top:50%;transform:translateY(-50%);font-size:3rem;
  color:#fff;cursor:pointer;padding:.5rem;user-select:none;opacity:.7}
.lb-nav:hover{opacity:1}
.lb-prev{left:1rem}.lb-next{right:1rem}
.lb-caption{color:#ccc;font-size:.9rem;text-align:center;max-width:80vw}

/* ── Collection links ── */
nav.event-collections{display:flex;flex-wrap:wrap;gap:.5rem 1rem;padding:1rem 1.5rem;border-top:1px solid rgba(128,128,128,.2);font-family:var(--font-head,sans-serif);font-size:.82rem}
nav.event-collections .ec-link{color:var(--accent);text-decoration:none;opacity:.8;transition:opacity .2s}
nav.event-collections .ec-link:hover{opacity:1}
