:root {
  --purple-950: #1e0b47;
  --purple-990: #140830;
  --violet-500: #8b3df0;
  --magenta-500: #e0218a;
  --gold-500: #e9c55f;
  --white: #ffffff;
  --white-80: rgba(255, 255, 255, 0.8);
  --white-60: rgba(255, 255, 255, 0.6);
  --white-24: rgba(255, 255, 255, 0.24);
  --white-12: rgba(255, 255, 255, 0.12);
  --font-display: "Poppins", sans-serif;
  --font-caps: "Oswald", sans-serif;
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--purple-990);
  color: var(--white);
  font-family: var(--font-display);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 80% at 12% 0%, rgba(139, 61, 240, 0.26) 0%, transparent 65%),
    radial-gradient(75% 85% at 92% 100%, rgba(224, 33, 138, 0.2) 0%, transparent 65%),
    var(--purple-990);
}

/* ——— Header ——— */

.site-header {
  position: relative;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: 0 28px;
  pointer-events: none;
}

.site-header a { pointer-events: auto; }

.logo {
  justify-self: start;
  margin-top: 22px;
  display: block;
}

.logo img {
  width: 92px;
  height: auto;
  display: block;
}

.top-center {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.submit-tab {
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple-990);
  background: var(--white);
  text-decoration: none;
  padding: 10px 22px 9px;
  border-radius: 0 0 12px 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

.submit-tab:hover {
  background: var(--magenta-500);
  color: var(--white);
}

.next-show {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-caps);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border: 1px solid var(--white-24);
  border-radius: 999px;
  padding: 9px 18px;
  transition: border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  background: rgba(20, 8, 48, 0.55);
  backdrop-filter: blur(6px);
}

.next-show:hover {
  border-color: var(--white);
  background: var(--white-12);
}

.next-show .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 0 rgba(233, 197, 95, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(233, 197, 95, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(233, 197, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(233, 197, 95, 0); }
}

.ns-sep { color: var(--white-60); }

.ns-cta {
  color: var(--gold-500);
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.35s ease, opacity 0.25s ease, margin 0.35s ease;
  margin-left: -9px;
}

.next-show:hover .ns-cta {
  max-width: 160px;
  opacity: 1;
  margin-left: 0;
}

.ns-title {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--white-60);
  text-align: center;
  max-width: 420px;
}

.burger {
  position: fixed;
  top: 26px;
  right: 28px;
  z-index: 140;
  width: 44px;
  height: 36px;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
}

.burger span {
  display: block;
  height: 2px;
  width: 32px;
  background: var(--white);
  transition: transform 0.3s ease, width 0.3s ease;
}

.burger:hover span:nth-child(2) { width: 22px; }

body.menu-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); width: 32px; }

/* ——— Spiral stage ——— */

main {
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 5;
}

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  perspective: 1400px;
  cursor: grab;
  touch-action: none;
}

.stage.dragging { cursor: grabbing; }

.card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(300px, 34vw, 560px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--purple-950);
  will-change: transform, filter, opacity;
  backface-visibility: hidden;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-990);
  background: var(--gold-500);
  border-radius: 999px;
  padding: 5px 12px 4px;
}

/* ——— Caption pill ——— */

.caption {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--white);
  color: var(--purple-990);
  text-decoration: none;
  padding: 7px 20px 7px 7px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 13px;
  max-width: min(560px, 86vw);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
  transition: opacity 0.25s ease;
}

.caption:hover { color: var(--magenta-500); }

.caption.swapping { opacity: 0; }

.caption img {
  width: 52px;
  height: 34px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.caption span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ——— Footer (bottom-left, like the reference) ——— */

.site-footer {
  position: fixed;
  left: 28px;
  bottom: 24px;
  z-index: 80;
  pointer-events: none;
}

.site-footer a { pointer-events: auto; }

.sub {
  font-size: 12px;
  color: var(--white-60);
}

.sub a {
  color: var(--white-80);
  text-decoration: none;
  border-bottom: 1px solid var(--white-24);
}

.sub a:hover { color: var(--white); border-color: var(--white); }

/* ——— Menu ——— */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(10, 4, 26, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

body.menu-open .scrim { opacity: 1; }

.menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 130;
  width: min(420px, 88vw);
  background: var(--purple-950);
  border-left: 1px solid var(--white-12);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px 48px 44px;
}

body.menu-open .menu { transform: translateX(0); }

.menu-links {
  list-style: none;
}

.menu-links a {
  display: block;
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
  text-decoration: none;
  padding: 12px 0;
  transition: color 0.2s ease, transform 0.25s ease;
}

.menu-links a:hover {
  color: var(--magenta-500);
  transform: translateX(8px);
}

.menu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.socials {
  display: flex;
  gap: 14px;
}

.socials a {
  color: var(--white-80);
  transition: color 0.2s ease;
  padding: 8px;
  margin: -8px 0;
}

.socials a:hover { color: var(--white); }

.socials svg {
  width: 22px;
  height: 22px;
  display: block;
}

.powered {
  font-size: 12px;
  color: var(--white-60);
  text-decoration: none;
}

.powered:hover { color: var(--white); }

/* ——— Lightbox ——— */

.lightbox[hidden] { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(10, 4, 26, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vmin;
}

.lb-frame {
  width: min(1080px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.lb-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 40px;
  line-height: 1;
  font-weight: 300;
  color: var(--white);
  background: none;
  border: 0;
  cursor: pointer;
}

/* ——— Subpages (about / sponsorship) ——— */

body.subpage {
  /* html is overflow:hidden (for the home spiral), so the subpage body
     itself is the scroll container. */
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
}

.page {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 56px 28px 0;
  /* Override the home layout's `main { flex:1; min-height:0 }`, which would
     let this shrink below its content and push the footer mid-page. */
  flex: none;
  min-height: auto;
}

.kicker {
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 14px;
}

.page-title {
  font-weight: 800;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}

.page-title em {
  font-style: normal;
  color: var(--gold-500);
}

.lede {
  color: var(--white-80);
  font-size: 15px;
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 8px;
}

.lede strong, .card-blurb strong { color: var(--white); }

.section-title {
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-note {
  font-family: var(--font-caps);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--white-60);
  margin: 30px 0 14px;
}

.page-section { margin-top: 88px; }

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: center;
  min-height: calc(100vh - 240px);
  padding: 40px 0;
}

.about-copy p:not(.kicker):not(.cta-note) {
  color: var(--white-80);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-990);
  background: var(--gold-500);
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover { background: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white-24);
}

.btn-ghost:hover { background: var(--white-12); border-color: var(--white); }

.cta-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--white-60);
}

/* Floating glass logo */

.logo3d-space {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
  position: relative;
}

.logo3d-space::before {
  /* soft glow, not a box — the logo floats in space */
  content: "";
  position: absolute;
  inset: -12%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(139, 61, 240, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.logo3d-space canvas {
  display: block;
  position: relative;
  max-width: 100%;
}

/* Sponsorship */

.page-hero { padding-top: 26px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 30px;
  border-top: 1px solid var(--white-24);
  border-bottom: 1px solid var(--white-12);
  padding: 30px 0;
  margin-top: 40px;
}

.stat b {
  display: block;
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1;
}

.stat b em {
  font-style: normal;
  color: var(--gold-500);
}

.stat span {
  display: block;
  font-family: var(--font-caps);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--white-60);
  margin-top: 9px;
}

.stat p {
  font-size: 12px;
  color: var(--white-60);
  line-height: 1.55;
  margin-top: 8px;
  max-width: 240px;
}

.pages-grid {
  /* Fixed thirds so the two founder cards line up with the brand-page cards. */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.page-card {
  border: 1px solid var(--white-12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  padding: 24px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.page-card:hover { border-color: var(--white-24); transform: translateY(-3px); }

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--white-12);
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar-ailive {
  background: linear-gradient(135deg, #3b1a7e 0%, #8b3df0 55%, #e0218a 100%);
}

.avatar-ailive img { width: 62%; height: auto; object-fit: contain; }

.avatar-text {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--white);
}

.avatar-yubnub { background: #1747e0; }

.page-card h3, .placement h3, .pkg h3 {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}

.card-kicker {
  font-family: var(--font-caps);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-60);
  margin-bottom: 12px;
}

.followers { margin: 10px 0 12px; color: var(--white-80); }

.followers b {
  font-weight: 800;
  font-size: 30px;
  color: var(--white);
  margin-right: 6px;
}

.card-blurb, .placement p:not(.card-kicker) {
  font-size: 13px;
  line-height: 1.6;
  color: var(--white-60);
}

/* Audience data */

.stat-row-4 { border-top: 1px solid var(--white-24); }

.data-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  margin-top: 44px;
}

.data-col h3 {
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin: 0 0 16px;
}

.data-col h3 + .data-note { margin-top: 0; }

.data-col h3:not(:first-child) { margin-top: 34px; }

.drow {
  display: grid;
  grid-template-columns: 82px 1fr 46px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--white-80);
  margin: 10px 0;
}

.drow span:last-child { text-align: right; color: var(--white-60); }

.bar {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: var(--white-12);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--violet-500);
}

.bar i.bar-alt { background: var(--white-60); }

.data-note {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--white-60);
  margin: 14px 0 0;
}

.gender-bar {
  display: flex;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gender-bar span {
  display: flex;
  align-items: center;
  padding: 0 12px;
  white-space: nowrap;
}

.g-male { background: var(--violet-500); color: var(--white); }
.g-female { background: var(--gold-500); color: var(--purple-990); }

/* CTA */

.page-cta {
  border-top: 1px solid var(--white-24);
  padding: 64px 0 8px;
  margin-bottom: 24px;
}

.partners {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 30px;
  margin-bottom: 36px;
}

.partners img {
  display: block;
  height: 28px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.partners li:nth-child(2) img,
.partners li:nth-child(4) img,
.partners li:nth-child(6) img {
  height: 52px; /* emblem-style marks (WAIFF, Lisbon Loras, Glassberries) read smaller */
}

.partners li:hover img { opacity: 1; }

/* Subpage footer sits in the flow at the end of the content. */

.subpage .site-footer {
  position: static;
  text-align: center;
  padding: 64px 28px 40px;
}

/* ——— Mobile ——— */

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: auto 1fr;
    grid-template-areas: "logo ." "center center";
    padding: 0 16px;
  }

  .logo { grid-area: logo; margin-top: 16px; }
  .logo img { width: 56px; }
  .burger { right: 16px; top: 18px; width: 40px; }
  .burger span { width: 28px; }
  body.menu-open .burger span:nth-child(2) { width: 28px; }

  /* Two compact pills on one row: "next show" + "submit work". */
  .top-center {
    grid-area: center;
    margin-top: 10px;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
  }

  .submit-tab {
    order: 2;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .label-ext { display: none; }

  .next-show {
    padding: 8px 15px;
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .ns-sep, .ns-when, .ns-cta, .ns-title { display: none; }

  .card { width: 68vw; }

  .site-footer {
    left: 0;
    right: 0;
    bottom: 16px;
    text-align: center;
  }

  .sub { font-size: 11px; }

  .caption {
    bottom: calc(46px + env(safe-area-inset-bottom, 0px));
    font-size: 12px;
    max-width: 88vw;
    padding: 6px 16px 6px 6px;
  }

  .caption img { width: 44px; height: 29px; }

  .site-footer { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }

  .page { padding: 36px 18px 0; }
  .page-section { margin-top: 60px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: 0;
    padding: 16px 0;
  }

  .logo3d-space { max-width: 340px; margin: 0 auto; width: 100%; }

  .data-cols { grid-template-columns: 1fr; gap: 36px; }

  .pages-grid { grid-template-columns: 1fr; }

  .partners { gap: 18px 30px; }
  .partners img { height: 26px; }
  .partners li:nth-child(2) img,
  .partners li:nth-child(4) img,
  .partners li:nth-child(6) img { height: 46px; }

  .subpage .site-footer { position: static; bottom: auto; padding: 52px 18px 32px; }

  /* Slimmer menu panel on phones. */
  .menu {
    width: min(300px, 78vw);
    padding: 84px 28px calc(30px + env(safe-area-inset-bottom, 0px));
  }

  .menu-links a {
    font-size: 23px;
    padding: 10px 0;
  }

  .menu-foot {
    gap: 14px;
  }

  .socials { gap: 10px; }
  .socials svg { width: 20px; height: 20px; }
  .powered { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .next-show .dot { animation: none; }
}
