:root {
  --bg: #05070d;
  --bg-2: #0a0e18;
  --ink: #eef2ff;
  --muted: #9aa4bf;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #5eead4;
  --accent-2: #7c93ff;
  --accent-3: #f0abfc;
  --card: rgba(255, 255, 255, 0.035);
  --radius: 18px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .brand-text { font-family: "Space Grotesk", sans-serif; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }

/* Aurora background */
.aurora {
  position: fixed; inset: -20% 0 auto 0; height: 80vh; z-index: 0;
  background:
    radial-gradient(45% 55% at 20% 0%, rgba(94, 234, 212, 0.18), transparent 60%),
    radial-gradient(40% 60% at 80% 10%, rgba(124, 147, 255, 0.18), transparent 60%),
    radial-gradient(50% 50% at 50% 40%, rgba(240, 171, 252, 0.10), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  animation: drift 22s var(--ease) infinite alternate;
}
@keyframes drift {
  to { transform: translate3d(3%, -5%, 0) scale(1.08); }
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 48px);
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(5, 7, 13, 0.6);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-family: "Space Grotesk"; }
.brand-mark {
  font-size: 20px; color: var(--accent);
  filter: drop-shadow(0 0 14px rgba(94, 234, 212, 0.6));
  animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.nav-links { display: flex; gap: clamp(14px, 2.4vw, 34px); align-items: center; }
.nav-links a { color: var(--muted); font-size: 15px; transition: color 0.25s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px;
  color: var(--ink) !important;
}
.nav-cta:hover { background: var(--accent); color: var(--bg) !important; border-color: var(--accent); }

main { position: relative; z-index: 1; }

/* Hero */
.hero { padding: clamp(80px, 14vw, 150px) clamp(20px, 5vw, 48px) 80px; max-width: var(--maxw); margin: 0 auto; }
.hero-banner {
  width: 100%; margin-bottom: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.hero-banner img {
  display: block; width: 100%; height: auto;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.28em; font-size: 12px;
  color: var(--accent); font-weight: 600; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1.02; margin-bottom: 26px; }
.hero h1 .glow {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lede { font-size: clamp(1rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 620px; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
}
.btn-primary {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #05121a; box-shadow: 0 10px 30px rgba(94, 234, 212, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(94, 234, 212, 0.4); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--card); transform: translateY(-2px); }

/* Sections */
.section { padding: clamp(70px, 10vw, 120px) clamp(20px, 5vw, 48px); max-width: var(--maxw); margin: 0 auto; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 8px; }
.section-sub { color: var(--accent); font-weight: 500; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform 0.3s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(94, 234, 212, 0.4); }
.card-icon { font-size: 32px; margin-bottom: 16px; }
.card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* Events */
.events { scroll-margin-top: 80px; }
.events-filters { display: flex; gap: 10px; justify-content: center; margin: 28px 0 30px; flex-wrap: wrap; }
.chip {
  background: var(--card); color: var(--muted); border: 1px solid var(--line);
  padding: 8px 20px; border-radius: 999px; font-size: 14px; cursor: pointer;
  font-family: inherit; transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.chip:hover { color: var(--ink); }
.chip.is-active { color: var(--bg); background: var(--accent); border-color: var(--accent); font-weight: 600; }
.events-status { text-align: center; color: var(--muted); min-height: 24px; padding: 40px 0; display: flex; align-items: center; justify-content: center; gap: 12px; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12); border-top-color: var(--accent);
  animation: spin 0.9s linear infinite; display: inline-block; }
.events-list { list-style: none; display: grid; gap: 14px; max-width: 720px; margin: 0 auto; }
.event-item {
  display: grid; grid-template-columns: 118px 1fr; gap: 18px; align-items: start;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); position: relative; overflow: hidden;
}
.event-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent-2);
}
.event-item[data-state="current"]::before { background: var(--accent); }
.event-item[data-state="past"]::before { background: rgba(255,255,255,0.14); }
.event-date { text-align: center; }
.event-date .day { font-family: "Space Grotesk"; font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--ink); display: block; }
.event-date .month { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.event-date .year { font-size: 12px; color: rgba(255,255,255,0.15); }
.event-body { min-width: 0; }
.event-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-body .notes { font-size: 14px; color: rgba(238,242,255,0.6); }
.event-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.event-filter-hidden { display: none !important; }

@media (max-width: 520px) {
  .event-item { grid-template-columns: 92px 1fr; gap: 14px; }
  .event-date .day { font-size: 1.5rem; }
}
.studio-block {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; position: relative; overflow: hidden;
}
.block-num { position: absolute; top: 18px; right: 22px; font-family: "Space Grotesk"; font-size: 2.4rem; font-weight: 700; color: rgba(255,255,255,0.05); }
.block-a { border-color: rgba(94, 234, 212, 0.3); }
.block-b { border-color: rgba(124, 147, 255, 0.3); }
.block-c { border-color: rgba(240, 171, 252, 0.3); }
.studio-block h3 { margin-bottom: 10px; font-size: 1.4rem; }
.studio-block p { color: var(--muted); font-size: 15px; }

/* Manifesto */
.manifesto-list { list-style: none; display: grid; gap: 14px; counter-reset: m; }
.manifesto-list li {
  counter-increment: m;
  padding: 22px 22px 22px 74px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--card); position: relative;
}
.manifesto-list li::before {
  content: counter(m);
  position: absolute; left: 22px; top: 22px;
  font-family: "Space Grotesk"; font-weight: 700; font-size: 1.2rem; color: var(--accent);
}

/* Contact */
.contact { text-align: center; }
.contact-inner { max-width: 620px; margin: 0 auto; }
.contact-inner h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: 34px; }
.contact-form { display: grid; gap: 18px; text-align: left; }
.contact-form label { display: grid; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 500; }
.contact-form input, .contact-form textarea {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; color: var(--ink); font-family: inherit; font-size: 15px;
  transition: border-color 0.25s; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form .btn { justify-self: start; }
.form-note { font-size: 14px; color: var(--accent); min-height: 20px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 50px clamp(20px, 5vw, 48px) 34px; position: relative; z-index: 1; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.footer-brand { font-family: "Space Grotesk"; font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 24px; }
.footer-domain { font-family: "Space Grotesk"; color: var(--accent); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 620px) {
  .footer-bottom { flex-direction: column; }
}
