:root {
  --bg: #050814;
  --bg-elevated: #0b1224;
  --card: rgba(16, 28, 58, 0.72);
  --blue: #3b82f6;
  --blue-bright: #60a5fa;
  --cyan: #22d3ee;
  --text: #e8eefc;
  --muted: #9aa8c7;
  --border: rgba(96, 165, 250, 0.22);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Manrope", system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(59,130,246,.22), transparent 50%),
              radial-gradient(900px 500px at 100% 0%, rgba(34,211,238,.12), transparent 45%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(5, 8, 20, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; letter-spacing: .04em;
}
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: grid; place-items: center; font-weight: 800;
  box-shadow: 0 0 24px rgba(59,130,246,.45);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(16, 26, 51, 0.8);
  padding: 10px 11px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav.open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav.open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 8px 16px; border-radius: 999px;
  color: var(--muted); font-weight: 600;
}
.nav-links a.active, .nav-links a:hover {
  color: white;
  background: rgba(59,130,246,.18);
}
.nav-links a.live-queues,
.nav-links a.live-queues:hover,
.nav-links a.live-queues.active {
  color: #fff;
  background: linear-gradient(120deg, #3b82f6, #7c3aed, #c026d3, #2563eb, #7c3aed);
  background-size: 300% 300%;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.live-queues {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid #fff;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(120deg, #3b82f6, #7c3aed, #c026d3, #2563eb, #7c3aed);
  background-size: 300% 300%;
  animation: liveShift 6s ease infinite;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
  white-space: nowrap;
}
.live-queues:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
@keyframes liveShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.jumbotron {
  position: relative;
  margin: 28px auto 48px;
  max-width: 1160px;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.slides { position: relative; height: 480px; }
.slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .8s ease;
  background-size: cover; background-position: center;
}
.slide.active { opacity: 1; }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,8,20,.15) 0%, rgba(5,8,20,.78) 100%);
}
.jumbo-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 48px;
}
.eyebrow {
  color: var(--cyan); font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; font-size: 12px; margin-bottom: 8px;
}
.jumbo-content h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; margin-bottom: 10px; }
.jumbo-content p { max-width: 640px; color: #d5def3; font-size: 18px; }
.dots {
  position: absolute; z-index: 3; bottom: 18px; right: 24px;
  display: flex; gap: 8px;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.35); border: 0; cursor: pointer;
}
.dot.active { background: white; }

section { padding: 24px 0 56px; }
.section-title {
  font-size: 32px; margin-bottom: 8px;
}
.lead { color: var(--muted); margin-bottom: 28px; max-width: 720px; }

.story-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.story-card p { margin-bottom: 16px; color: #d7e0f5; }
.names {
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.names .sep {
  color: rgba(154, 168, 199, 0.55);
  font-weight: 500;
  margin: 0 8px;
}
.names .current {
  color: var(--blue-bright);
  font-weight: 800;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.social-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; min-height: 56px;
  border-radius: 16px; font-weight: 700;
  background: #101a33; border: 1px solid var(--border);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.social-btn:hover {
  transform: translateY(-3px);
  background: #162445;
  box-shadow: 0 12px 30px rgba(37,99,235,.25);
}

.projects {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.project {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  min-height: 240px;
  display: flex; flex-direction: column;
}
.badge {
  align-self: flex-start;
  font-size: 12px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; margin-bottom: 14px;
}
.badge.soon { background: rgba(34,211,238,.15); color: var(--cyan); }
.badge.ea { background: rgba(59,130,246,.2); color: var(--blue-bright); }
.project h3 { font-size: 24px; margin-bottom: 8px; }
.project p { color: var(--muted); flex: 1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 18px; padding: 12px 16px; border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: white; font-weight: 700;
}

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 28px 24px 40px;
  text-align: center;
}

@media (max-width: 820px) {
  .nav-inner {
    position: relative;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 12px 16px;
  }
  .menu-toggle { display: flex; margin-left: auto; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px 16px 18px;
    background: rgba(5, 8, 20, 0.96);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 30px rgba(0,0,0,.35);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a {
    padding: 12px 14px;
    width: 100%;
    text-align: center;
  }
  .live-queues {
    padding: 12px 14px;
    font-size: 13px;
    letter-spacing: 0.08em;
    width: 100%;
  }
  .jumbotron {
    margin: 16px 12px 32px;
    min-height: 320px;
    border-radius: 18px;
  }
  .slides { height: 340px; }
  .jumbo-content { padding: 22px 20px 36px; }
  .jumbo-content h1 { font-size: clamp(28px, 9vw, 44px); }
  .jumbo-content p { font-size: 16px; }
  .dots { right: 16px; bottom: 14px; }
  .container { padding: 0 16px; }
  .section-title { font-size: 26px; }
  .story-card, .project { padding: 22px; }
  .names {
    line-height: 1.8;
    font-size: 14px;
  }
  .names .sep { margin: 0 6px; }
  .social-grid {
    grid-template-columns: 1fr 1fr;
  }
  .projects {
    grid-template-columns: 1fr;
  }
  section { padding: 12px 0 40px; }
}

@media (max-width: 520px) {
  .brand { font-size: 15px; }
  .logo-mark { width: 32px; height: 32px; border-radius: 10px; }
  .nav-links a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .jumbotron {
    margin: 12px 10px 24px;
    border-radius: 16px;
  }
  .slides { height: 300px; }
  .jumbo-content { padding: 18px 16px 34px; }
  .jumbo-content p { font-size: 15px; }
  .social-grid { grid-template-columns: 1fr; }
  .social-btn { min-height: 52px; }
  .story-card { padding: 18px; }
  footer { padding: 22px 16px 32px; font-size: 14px; }
}

@media (hover: none) {
  .social-btn:hover,
  .live-queues:hover {
    transform: none;
  }
}


/* XSprays video-style transition:
   blue/purple diagonal stripe -> solid purple full-screen background -> fade to site. */
.site-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
  visibility: visible;
  opacity: 1;
  background: transparent;
}
.site-transition::before {
  content: "";
  position: absolute;
  top: -35%;
  left: -80%;
  width: 70vw;
  min-width: 440px;
  height: 170%;
  transform: skewX(-18deg);
  background: linear-gradient(110deg,
    #00dfff 0%,
    #2874ff 28%,
    #6844ff 62%,
    #a52cff 100%);
  animation: xspraysStripePurpleHold 5.5s cubic-bezier(.55,0,.35,1) forwards;
}
.site-transition::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #24105b;
  opacity: 0;
  animation: xspraysPurpleReveal 5.5s ease-in-out forwards;
}
.site-transition.is-done {
  visibility: hidden;
  opacity: 0;
}
@keyframes xspraysStripePurpleHold {
  0% {
    left: -80%;
    width: 70vw;
    transform: skewX(-18deg);
    opacity: 1;
  }
  48% {
    left: 112%;
    width: 70vw;
    transform: skewX(-18deg);
    opacity: 1;
  }
  68% {
    left: -8%;
    width: 116vw;
    transform: skewX(-8deg);
    opacity: 1;
  }
  82% {
    left: 0;
    top: 0;
    width: 100vw;
    height: 100%;
    transform: skewX(0deg);
    opacity: 0;
  }
  100% {
    left: 0;
    top: 0;
    width: 100vw;
    height: 100%;
    transform: skewX(0deg);
    opacity: 0;
  }
}
@keyframes xspraysPurpleReveal {
  0%, 64% { opacity: 0; }
  82%, 90% { opacity: 1; }
  100% { opacity: 0; }
}
@media (max-width: 700px) {
  .site-transition::before { width: 84vw; min-width: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-transition::before,
  .site-transition::after { animation-duration: .01ms; }
}
