:root {
  --bg: #05070d;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --gold: #e0a83e;
  --gold-light: #f7ecd3;
  --text: #f3f4f8;
  --text-secondary: #a6acc2;
  --text-muted: #6b7189;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(255, 255, 255, 0.09);
  --radius: 16px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

html { scroll-behavior: smooth; }

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

.hidden { display: none !important; }
.admin-hidden { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sr-only a:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 16px;
  clip: auto;
  overflow: visible;
  white-space: normal;
  background: var(--bg);
  color: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  z-index: 100;
}

/* Background layers */
#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.nebula-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 12% 8%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(700px 500px at 88% 18%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(600px 500px at 50% 70%, rgba(139, 92, 246, 0.10), transparent 60%),
    radial-gradient(500px 400px at 20% 95%, rgba(224, 168, 62, 0.08), transparent 60%);
}
.noise-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  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");
}

header.nav, main, footer.footer { position: relative; z-index: 2; }

/* Nav */
.nav {
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  background: rgba(5, 7, 13, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-img {
  height: 58px;
  width: auto;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(59, 179, 224, 0.35));
}
.logo-suffix {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid var(--glass-border);
}
.logo-mark {
  width: 40px;
  height: 33px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(59, 179, 224, 0.55));
}
.logo-word {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fff, #c9c3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tab-toggle {
  display: inline-flex;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  border-radius: 999px;
  padding: 4px;
}
.tab-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.tab-btn.active {
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  color: #05070d;
}
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-link { font-size: 14px; font-weight: 600; color: var(--text-secondary); padding: 8px 4px; transition: color 0.2s; }
.nav-link:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-ghost { color: var(--text); border-color: var(--glass-border); background: var(--glass); }
.btn-glow {
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  color: #050615;
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.4), 0 0 36px rgba(34, 211, 238, 0.12);
}
.btn-glow:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.55), 0 0 50px rgba(34, 211, 238, 0.22);
}
.btn-outline { border-color: var(--glass-border); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--glass); }
.btn-lg { padding: 13px 26px; font-size: 15px; }

/* Hero */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 88px 20px 56px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #d8caff;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.hero h1 {
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero h1 .line-big { display: block; font-size: 1em; }
.hero h1 .line-small { display: block; font-size: 0.42em; font-weight: 600; margin-top: 10px; letter-spacing: 0; }
.glow-text {
  background: linear-gradient(90deg, #fff 10%, #c9c3ff 45%, #8be9fd 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 30px;
}
.lead .lead-line1 { display: block; color: var(--text); font-weight: 600; font-size: 1.05em; margin-bottom: 8px; }
.lead .lead-line2 { display: block; color: var(--text-secondary); font-size: 0.9em; }
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* AI universe orbit visual */
.universe-section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 20px;
  text-align: center;
}
.universe-heading {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
#universe-canvas {
  display: block;
  width: 100%;
  height: 460px;
  max-width: 880px;
  margin: 0 auto;
}

@media (min-width: 721px) and (max-width: 1024px) {
  .universe-heading { font-size: 30px; }
  #universe-canvas { height: 360px; max-width: 620px; }
}

/* Story */
.story {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8be9fd;
  margin: 0 0 10px;
}
.kicker.center { text-align: center; }
.story-text p:not(.kicker) {
  color: var(--text);
  font-size: 21px;
  line-height: 1.55;
  font-weight: 500;
}
.video-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.video-card:hover { border-color: rgba(139, 92, 246, 0.4); box-shadow: 0 0 30px rgba(139, 92, 246, 0.15); }
.play-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #05070d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.45);
}
.video-label { font-size: 13px; color: var(--text-secondary); }
.video-embed {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Connect with us */
.connect {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 20px 44px;
  text-align: center;
}
.connect-heading {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 4px 0 30px;
}
.social-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 26px;
  flex-wrap: wrap;
}
.social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-secondary);
}
.social-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.social-icon-circle svg { width: 26px; height: 26px; }
.social-name { font-size: 13px; transition: color 0.25s ease; }
.social-btn:hover .social-icon-circle { transform: translateY(-4px); }
.social-linkedin:hover .social-icon-circle { border-color: #0A66C2; box-shadow: 0 0 22px rgba(10, 102, 194, 0.4); color: #4098e6; }
.social-linkedin:hover .social-name { color: #4098e6; }
.social-youtube:hover .social-icon-circle { border-color: #ff3b3b; box-shadow: 0 0 22px rgba(255, 59, 59, 0.4); color: #ff5c5c; }
.social-youtube:hover .social-name { color: #ff5c5c; }
.social-facebook:hover .social-icon-circle { border-color: #1877f2; box-shadow: 0 0 22px rgba(24, 119, 242, 0.4); color: #4a9bff; }
.social-facebook:hover .social-name { color: #4a9bff; }
.social-instagram:hover .social-icon-circle { border-color: #e1306c; box-shadow: 0 0 22px rgba(225, 48, 108, 0.4); color: #ef5b8f; }
.social-instagram:hover .social-name { color: #ef5b8f; }
.social-tiktok:hover .social-icon-circle { border-color: #25f4ee; box-shadow: 0 0 22px rgba(37, 244, 238, 0.4); color: #25f4ee; }
.social-tiktok:hover .social-name { color: #25f4ee; }

@media (max-width: 720px) {
  .connect-heading { font-size: 26px; }
  .social-grid { gap: 16px; }
  .social-icon-circle { width: 50px; height: 50px; }
  .social-icon-circle svg { width: 22px; height: 22px; }
  .social-name { font-size: 12px; }
  .logo-img { height: 44px; }
  .logo-suffix { font-size: 12px; padding-left: 8px; }
}

/* Past-events gallery */
.events-gallery-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 20px 44px;
  text-align: center;
}
.section-heading {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 4px 0 8px;
}
.section-sub {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto 28px;
}
.event-gallery {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.event-gallery-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 4px 20px;
  animation: gallery-scroll 36s linear infinite;
}
.event-gallery:hover .event-gallery-track { animation-play-state: paused; }
@keyframes gallery-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.event-photo {
  position: relative;
  width: 260px;
  height: 180px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-border);
}
.event-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.event-photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
}
.event-photo-icon { font-size: 26px; opacity: 0.6; }
.event-photo.has-photo .event-photo-fallback { display: none; }
.events-cta { margin-top: 30px; }

@media (max-width: 720px) {
  .section-heading { font-size: 24px; }
  .event-photo { width: 200px; height: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .event-gallery-track { animation: none; }
}

.card-link { display: block; text-decoration: none; }

/* Partner strip */
.partners {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 32px 20px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.badge {
  font-size: 13px;
  font-weight: 600;
  color: #f3ecff;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 9px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dot2 {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

/* Ecosystem */
.ecosystem {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 20px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  border-radius: var(--radius);
  padding: 22px;
  overflow: hidden;
  scroll-margin-top: 90px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:target {
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2), 0 12px 40px rgba(139, 92, 246, 0.22);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.18);
}
.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(34, 211, 238, 0.2));
  margin-bottom: 14px;
  font-size: 17px;
}
.card-title { font-weight: 700; margin: 0 0 8px; font-size: 15px; color: var(--text); }
.card-desc { font-size: 13px; color: var(--text-secondary); margin: 0; line-height: 1.55; }

/* Stats */
.stats {
  max-width: var(--max-width);
  margin: 0 auto 72px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
}
.stat-num {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px;
  background: linear-gradient(90deg, #fff, #c9c3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: 12px; color: var(--text-muted); margin: 0; }

/* CTA band */
.cta-band {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto 72px;
  border-radius: 24px;
  text-align: center;
  padding: 56px 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 220%;
  background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.22), transparent 60%);
  pointer-events: none;
}
.cta-title { position: relative; font-size: 21px; font-weight: 700; margin: 0 0 24px; }

/* Sign-up forms */
.signup-form {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.signup-form input,
.signup-form select {
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 14px;
}
.signup-form input:focus,
.signup-form select:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.signup-form input::placeholder { color: var(--text-muted); }
.signup-form select { color: rgba(255, 255, 255, 0.85); }
.signup-form select option { color: #1a1a1a; }
.signup-form .btn { margin-top: 4px; border: none; justify-content: center; }
.form-thanks {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  font-size: 14px;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 18px;
}

/* Events page */
.events-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 20px 20px;
  text-align: center;
}
.events-hero h1 { font-size: 40px; margin: 8px 0 14px; font-weight: 700; letter-spacing: -0.01em; }
.events-hero .lead { margin: 0 auto; }
.events-list {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 80px;
}
.event-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.event-card {
  position: relative;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.event-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.18);
}
.event-card-image {
  width: calc(100% + 44px);
  margin: -22px -22px 4px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
}
.event-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.event-price-badge,
.event-mode-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
}
.event-price-badge.is-free { color: #93c5fd; background: rgba(59, 130, 246, 0.14); border: 1px solid rgba(59, 130, 246, 0.4); }
.event-price-badge.is-paid { color: #fde047; background: rgba(234, 179, 8, 0.14); border: 1px solid rgba(234, 179, 8, 0.4); }
.event-mode-badge.is-online { color: #4ade80; background: rgba(34, 197, 94, 0.14); border: 1px solid rgba(34, 197, 94, 0.4); }
.event-mode-badge.is-in-person { color: #f8fafc; background: rgba(248, 250, 252, 0.1); border: 1px solid rgba(248, 250, 252, 0.35); }
.event-tag-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--tag-color, #22d3ee);
  background: var(--tag-bg, rgba(139, 92, 246, 0.1));
  border: 1px solid var(--tag-border, rgba(139, 92, 246, 0.3));
}
.event-tag-badge.tag-ai { --tag-color: #c4b5fd; --tag-bg: rgba(139, 92, 246, 0.16); --tag-border: rgba(139, 92, 246, 0.4); }
.event-tag-badge.tag-agentic { --tag-color: #a5b4fc; --tag-bg: rgba(99, 102, 241, 0.16); --tag-border: rgba(99, 102, 241, 0.4); }
.event-tag-badge.tag-cloud { --tag-color: #7dd3fc; --tag-bg: rgba(14, 165, 233, 0.16); --tag-border: rgba(14, 165, 233, 0.4); }
.event-tag-badge.tag-media { --tag-color: #f9a8d4; --tag-bg: rgba(236, 72, 153, 0.16); --tag-border: rgba(236, 72, 153, 0.4); }
.event-tag-badge.tag-coding { --tag-color: #fdba74; --tag-bg: rgba(249, 115, 22, 0.16); --tag-border: rgba(249, 115, 22, 0.4); }
.event-tag-badge.tag-security { --tag-color: #fca5a5; --tag-bg: rgba(239, 68, 68, 0.16); --tag-border: rgba(239, 68, 68, 0.4); }
.event-tag-badge.tag-business { --tag-color: #5eead4; --tag-bg: rgba(20, 184, 166, 0.16); --tag-border: rgba(20, 184, 166, 0.4); }
.event-tag-badge.tag-startups { --tag-color: #fda4af; --tag-bg: rgba(244, 63, 94, 0.16); --tag-border: rgba(244, 63, 94, 0.4); }
.event-tag-badge.tag-investors { --tag-color: #fcd34d; --tag-bg: rgba(217, 119, 6, 0.16); --tag-border: rgba(217, 119, 6, 0.4); }
.event-tag-badge.tag-hackathon { --tag-color: #f0abfc; --tag-bg: rgba(217, 70, 239, 0.16); --tag-border: rgba(217, 70, 239, 0.4); }
.event-title { font-size: 17px; font-weight: 700; margin: 0; color: var(--text); }
.event-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}
.event-meta svg { flex-shrink: 0; opacity: 0.8; }
.event-desc-wrap { margin: 2px 0 0; }
.event-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.event-card.is-expanded .event-desc {
  -webkit-line-clamp: unset;
  overflow: visible;
}
.event-desc-toggle {
  display: inline-block;
  color: var(--cyan, #22d3ee);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  margin-top: 4px;
}
.event-desc-toggle:hover { text-decoration: underline; }
.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.event-actions .btn { flex: 1; justify-content: center; white-space: nowrap; }
.events-sentinel {
  height: 1px;
  grid-column: 1 / -1;
}
.events-load-more-status {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  padding: 12px 0 0;
}
.event-ms-placeholder {
  width: calc(100% + 44px);
  margin: -22px -22px 4px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(34, 211, 238, 0.08));
}
.ms-logo {
  display: grid;
  grid-template-columns: repeat(2, 13px);
  grid-template-rows: repeat(2, 13px);
  gap: 3px;
}
.ms-logo-sq { width: 13px; height: 13px; }
.ms-logo-sq1 { background: #f25022; }
.ms-logo-sq2 { background: #7fba00; }
.ms-logo-sq3 { background: #00a4ef; }
.ms-logo-sq4 { background: #ffb900; }
.ms-placeholder-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  max-width: 90%;
}
.ms-placeholder-caption {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}
.events-empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 40px 20px;
}

@media (max-width: 1024px) {
  .event-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .events-hero h1 { font-size: 30px; }
  .event-card-grid { grid-template-columns: 1fr; }
}

/* Footer */
.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
}
.footer-links a, .footer-social a { margin-right: 16px; color: var(--text-secondary); transition: color 0.2s; }
.footer-links a:hover, .footer-social a:hover { color: #8be9fd; }
.footer-social a:last-child, .footer-links a:last-child { margin-right: 0; }

@media (max-width: 720px) {
  .story { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 32px; }
  .hero h1 .line-small { font-size: 0.48em; }
  .universe-heading { font-size: 24px; }
  #universe-canvas { height: 300px; max-width: 420px; }
  .story-text p:not(.kicker) { font-size: 18px; }
}

@media (max-width: 420px) {
  #universe-canvas { height: 260px; }
}
