:root {
  color-scheme: dark;
  --bg: #05070d;
  --bg-rgb: 5, 7, 13;
  --text: #f5f7ff;
  --muted: #a9b6d6;
  --soft: rgba(245, 247, 255, 0.72);
  --blue: #5066FF;
  --pink: #FF4D79;
  --cyan: #46e6ff;
  --line: rgba(255, 255, 255, 0.14);
  --gradient: linear-gradient(135deg, #5066ff 0%, #ff4d79 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  content: "";
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 140px 140px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 72%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  content: "";
  opacity: 0.055;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.62) 0 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: screen;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  gap: 22px;
  background: #05070d;
  transition: opacity 520ms ease, visibility 520ms ease;
}

.loader img {
  width: min(260px, 54vw);
  filter: drop-shadow(0 0 34px rgba(80, 102, 255, 0.5));
}

.loader span {
  width: min(320px, 60vw);
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.loader span::after {
  display: block;
  width: 42%;
  height: 100%;
  content: "";
  background: var(--gradient);
  animation: loadingSlide 1.1s ease-in-out infinite;
}

body.is-loaded .loader {
  visibility: hidden;
  opacity: 0;
}

@keyframes loadingSlide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(260%); }
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 60;
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(5, 7, 13, 0.45);
  box-shadow: 0 24px 100px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(80, 102, 255, 0.38);
  background: rgba(5, 7, 13, 0.74);
}

.brand {
  width: 112px;
  display: flex;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 38px);
}

.nav-links a {
  color: rgba(245, 247, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.film {
  background:
    radial-gradient(circle at 16% 10%, rgba(80, 102, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 90% 24%, rgba(255, 77, 121, 0.18), transparent 32rem),
    var(--bg);
}

.scene {
  position: relative;
  z-index: 1;
  min-height: 108vh;
  display: grid;
  align-items: center;
  overflow: clip;
  isolation: isolate;
  padding: clamp(86px, 9vw, 128px) clamp(20px, 6vw, 88px);
  margin-top: -10vh;
}

.scene:first-child {
  min-height: 102vh;
  margin-top: 0;
}

.scene::before,
.projects-scene::before {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 3;
  height: clamp(52px, 7vw, 88px);
  pointer-events: none;
  content: "";
  background: linear-gradient(0deg, #05070d 0%, rgba(5, 7, 13, 0.7) 38%, transparent 100%);
}

.scene::after,
.projects-scene::after {
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  z-index: 3;
  height: clamp(42px, 6vw, 82px);
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.78) 0%, rgba(5, 7, 13, 0.36) 48%, transparent 100%);
}

.hero-scene::after {
  display: none;
}

.scene-media,
.scene-shade,
.particle-canvas {
  position: absolute;
  inset: 0;
}

.scene-media {
  z-index: 0;
  overflow: hidden;
  background: #05070d;
}

.scene-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.92;
  filter: saturate(1.08) contrast(1.06);
  transform: scale(1.035);
}

.hero-scene .scene-media img {
  object-position: center;
}

.reverse .scene-media img {
  object-position: center right;
}

.scene-shade {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.9), rgba(5, 7, 13, 0.32) 46%, rgba(5, 7, 13, 0.72)),
    radial-gradient(circle at 68% 48%, rgba(80, 102, 255, 0.18), transparent 34rem),
    radial-gradient(circle at 82% 58%, rgba(255, 77, 121, 0.14), transparent 30rem);
}

.reverse .scene-shade {
  background:
    linear-gradient(270deg, rgba(5, 7, 13, 0.9), rgba(5, 7, 13, 0.2) 48%, rgba(5, 7, 13, 0.74)),
    radial-gradient(circle at 28% 48%, rgba(80, 102, 255, 0.18), transparent 34rem),
    radial-gradient(circle at 18% 58%, rgba(255, 77, 121, 0.12), transparent 30rem);
}

.particle-canvas {
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0.24;
}

.hero-stage {
  position: absolute;
  inset: 82px clamp(6px, 3vw, 54px) 0 auto;
  z-index: 4;
  width: min(700px, 50vw);
  pointer-events: auto;
}

#bang-hero-3d {
  width: 100%;
  height: 100%;
  min-height: 640px;
  display: block;
  filter: drop-shadow(0 0 48px rgba(80, 102, 255, 0.32));
}

.stage-label {
  position: absolute;
  z-index: 2;
  border-left: 1px solid rgba(255, 77, 121, 0.72);
  padding: 8px 0 8px 14px;
  color: rgba(245, 247, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(80, 102, 255, 0.8);
}

.label-a {
  top: 24%;
  right: 4%;
}

.label-b {
  top: 48%;
  left: 5%;
}

.label-c {
  right: 12%;
  bottom: 22%;
}

.scene-copy {
  position: relative;
  z-index: 6;
  width: min(760px, 100%);
  display: grid;
  gap: 18px;
  color: #ffffff;
}

.hero-scene .scene-copy {
  max-width: 64vw;
}

.reverse .scene-copy {
  justify-self: end;
}

.reverse {
  justify-items: end;
}

.hero-copy {
  width: min(820px, 100%);
  gap: 20px;
}

.eyebrow {
  margin: 0;
  color: rgba(245, 247, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 940px;
  margin-bottom: 0;
  font-size: clamp(4.1rem, 8vw, 9.6rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 0 5px 44px rgba(0, 0, 0, 0.72);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(3rem, 6.4vw, 7.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: 0 5px 44px rgba(0, 0, 0, 0.72);
}

h3 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 3.1rem);
  font-weight: 900;
  line-height: 1;
}

p {
  margin-bottom: 0;
  color: var(--soft);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.62;
}

.hero-copy p {
  width: min(600px, 100%);
  color: rgba(245, 247, 255, 0.84);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
}

.text-link {
  width: fit-content;
  margin-top: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  padding-bottom: 8px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wordline,
.chapter-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 12px;
}

.wordline span,
.chapter-line span {
  color: #ffffff;
  font-size: clamp(0.88rem, 1.3vw, 1rem);
  font-weight: 900;
  text-shadow: 0 0 22px rgba(80, 102, 255, 0.78);
}

.chapter-line {
  gap: clamp(18px, 3vw, 44px);
}

.chapter-line span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.scroll-cue {
  position: absolute;
  right: clamp(22px, 6vw, 88px);
  bottom: clamp(82px, 10vw, 132px);
  z-index: 7;
  display: grid;
  gap: 10px;
  justify-items: center;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.participation-array,
.systems-console {
  position: absolute;
  z-index: 6;
  pointer-events: none;
}

.participation-array {
  right: clamp(20px, 7vw, 100px);
  top: 50%;
  bottom: auto;
  width: min(460px, 42vw);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(80, 102, 255, 0.22), transparent 46%),
    radial-gradient(circle at 50% 50%, rgba(255, 77, 121, 0.14), transparent 60%);
  box-shadow: inset 0 0 80px rgba(80, 102, 255, 0.12), 0 28px 110px rgba(0, 0, 0, 0.36);
  transform: translateY(-28%);
}

.participation-array::before,
.participation-array::after {
  position: absolute;
  inset: 14%;
  content: "";
  border: 1px solid rgba(80, 102, 255, 0.28);
  border-radius: 50%;
}

.participation-array::after {
  inset: 31%;
  border-color: rgba(255, 77, 121, 0.26);
}

.node {
  position: absolute;
  min-width: 86px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(5, 7, 13, 0.58);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 0 34px rgba(80, 102, 255, 0.22);
  backdrop-filter: blur(12px);
}

.node-player { left: 4%; top: 46%; }
.node-stream { left: 34%; top: 4%; }
.node-creator { right: 0; top: 36%; }
.node-audience { left: 24%; bottom: 5%; }
.node-game {
  left: 50%;
  top: 50%;
  color: #05070d;
  background: linear-gradient(135deg, rgba(70, 230, 255, 0.94), rgba(255, 77, 121, 0.86));
  transform: translate(-50%, -50%);
}

.systems-console {
  left: clamp(20px, 6vw, 88px);
  top: 62%;
  bottom: auto;
  width: min(500px, 44vw);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background:
    linear-gradient(135deg, rgba(80, 102, 255, 0.34), rgba(255, 77, 121, 0.22)),
    rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
  transform: translateY(-8%);
}

.systems-console div {
  min-height: 92px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 18px;
  background: rgba(5, 7, 13, 0.66);
}

.systems-console span {
  color: rgba(245, 247, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.systems-console strong {
  color: #ffffff;
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  line-height: 1;
}

.scroll-cue span {
  width: 1px;
  height: 68px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.scroll-cue span::after {
  display: block;
  width: 100%;
  height: 40%;
  content: "";
  background: var(--gradient);
  animation: cueDrop 1.6s ease-in-out infinite;
}

@keyframes cueDrop {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

.projects-scene {
  position: relative;
  z-index: 2;
  scroll-margin-top: 96px;
  min-height: 96vh;
  display: grid;
  gap: clamp(22px, 4vw, 44px);
  overflow: hidden;
  isolation: isolate;
  padding: clamp(82px, 9vw, 124px) clamp(20px, 6vw, 88px);
  margin-top: -10vh;
  background:
    radial-gradient(circle at 22% 20%, rgba(80, 102, 255, 0.2), transparent 34rem),
    radial-gradient(circle at 82% 28%, rgba(255, 77, 121, 0.16), transparent 32rem),
    #05070d;
}

.projects-intro {
  position: relative;
  z-index: 6;
  width: min(820px, 100%);
  display: grid;
  gap: 16px;
}

.projects-intro p {
  width: min(720px, 100%);
}

.project-strip {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
}

.proof-rail {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.proof-rail span {
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(80, 102, 255, 0.12), rgba(255, 77, 121, 0.08)),
    rgba(5, 7, 13, 0.84);
  color: rgba(245, 247, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.project-frame {
  position: relative;
  min-height: clamp(500px, 50vw, 700px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #05070d;
  box-shadow: 0 40px 140px rgba(0, 0, 0, 0.46);
}

.project-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.88;
  filter: saturate(0.72) contrast(1.12) brightness(0.9);
  transform: scale(1.02);
  transition: transform 700ms ease, opacity 700ms ease;
}

.project-frame:first-child img {
  object-position: center 62%;
}

.project-frame:nth-child(2) img {
  object-position: center 56%;
}

.project-frame:hover img {
  opacity: 1;
  transform: scale(1.06);
}

.project-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(0deg, rgba(5, 7, 13, 0.97) 0%, rgba(5, 7, 13, 0.58) 38%, rgba(5, 7, 13, 0.12) 70%),
    linear-gradient(135deg, rgba(80, 102, 255, 0.34), rgba(255, 77, 121, 0.24) 70%, rgba(5, 7, 13, 0.18)),
    radial-gradient(circle at 25% 18%, rgba(70, 230, 255, 0.2), transparent 36rem);
  mix-blend-mode: normal;
}

.project-frame div {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  padding: clamp(22px, 4vw, 46px);
}

.project-frame span {
  color: rgba(245, 247, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-frame p {
  width: min(520px, 100%);
  font-size: 0.98rem;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #05070d;
}

.site-footer img {
  width: 112px;
}

.site-footer p {
  font-size: 0.88rem;
}

.site-footer a {
  color: rgba(245, 247, 255, 0.72);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 900ms ease, transform 900ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 980px) {
  .project-strip {
    grid-template-columns: 1fr;
  }

  .reverse .scene-copy {
    justify-self: start;
  }

  .hero-stage {
    width: min(680px, 72vw);
    opacity: 0.74;
  }

  .hero-scene .scene-copy {
    max-width: 72vw;
  }

  .participation-array,
  .systems-console {
    opacity: 0.58;
  }

  .project-frame {
    min-height: 560px;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .brand {
    width: 104px;
  }

  .scene {
    min-height: 96vh;
    padding: 92px 18px 82px;
    margin-top: -4vh;
  }

  .scene:first-child {
    min-height: 100vh;
  }

  .scene-shade,
  .reverse .scene-shade {
    background:
      linear-gradient(90deg, rgba(5, 7, 13, 0.9), rgba(5, 7, 13, 0.48)),
      linear-gradient(0deg, rgba(5, 7, 13, 0.88), transparent 46%);
  }

  .hero-stage {
    inset: 92px -70px 8% auto;
    width: 460px;
    opacity: 0.44;
  }

  #bang-hero-3d {
    min-height: 520px;
  }

  .stage-label {
    display: none;
  }

  .hero-scene .scene-copy {
    max-width: 100%;
  }

  h1 {
    font-size: clamp(3.2rem, 15vw, 5.2rem);
  }

  h2 {
    font-size: clamp(2.55rem, 12vw, 4.8rem);
  }

  .scroll-cue {
    display: none;
  }

  .projects-scene {
    min-height: auto;
    padding: 88px 18px;
    margin-top: -4vh;
  }

  .participation-array,
  .systems-console {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    top: auto;
    width: 100%;
    margin-top: 28px;
    transform: none;
  }

  .participation-array {
    aspect-ratio: 1;
    opacity: 0.9;
  }

  .systems-console {
    grid-template-columns: 1fr 1fr;
    opacity: 1;
  }

  .systems-console div {
    min-height: 92px;
    padding: 14px;
  }

  .proof-rail {
    grid-template-columns: 1fr 1fr;
  }

  .project-frame {
    min-height: 500px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}
