:root {
  --bg: #030303;
  --bg-soft: #0b0b0b;
  --text: #f2f2f2;
  --text-dim: #bdbdbd;
  --accent: #43d4b6;
  --accent-2: #ffc769;
  --shadow-heavy: 0 24px 80px rgba(0, 0, 0, 0.65);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: "Sora", sans-serif;
  scroll-behavior: smooth;
  background: #040404;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

.bg-video-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.bg-video.is-visible {
  opacity: 1;
}

.bg-video-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.2));
}

.page-noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: radial-gradient(#ffffff 0.6px, transparent 0.6px);
  background-size: 3px 3px;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  padding: 1.1rem clamp(1rem, 3vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(8px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}

.brand,
.nav-cta {
  color: var(--text);
  text-decoration: none;
}

.brand {
  font-family: "Instrument Serif", serif;
  letter-spacing: 0.03em;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.nav-cta {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  padding: 0.75rem 1.12rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.2);
}

main {
  isolation: isolate;
  position: relative;
  z-index: 2;
}

.segment {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 100svh;
  margin: 0;
}

.segment + .segment {
  margin-top: 0 !important;
}

.hero {
  position: relative;
  padding: 6rem clamp(1rem, 3vw, 3rem) 3rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.28) 42%,
      rgba(0, 0, 0, 0.68) 100%
    ),
    linear-gradient(110deg, rgba(0, 0, 0, 0.54) 8%, rgba(0, 0, 0, 0.16) 56%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 52rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.hero h1 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.8rem, 11vw, 6.6rem);
  line-height: 0.95;
}

.hero p {
  margin: 1.2rem 0 0;
  max-width: 36rem;
  color: var(--text-dim);
  line-height: 1.65;
  font-size: clamp(1rem, 1.9vw, 1.24rem);
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #e9e9e9;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.38);
  padding: 0.4rem 0.7rem;
}

.scroll-indicator i {
  font-size: 1rem;
  animation: pulseDown 1.8s ease-in-out infinite;
}

@keyframes pulseDown {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.62;
  }

  50% {
    transform: translateY(4px);
    opacity: 1;
  }
}

.game-section,
.creator {
  position: relative;
  padding: clamp(3.4rem, 8vw, 6rem) clamp(1rem, 4vw, 4rem);
}

.game-section {
  overflow: hidden;
  --section-overlay-opacity: 0.56;
  --section-bg-scale: 1.03;
  --section-image-opacity: 0.32;
}

.game-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--section-image);
  background-position: var(--section-image-position, center center);
  background-size: cover;
  background-repeat: no-repeat;
  opacity: var(--section-image-opacity);
  filter: saturate(1.08) contrast(1.02);
  transform: scale(var(--section-bg-scale));
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.game-section::before,
.creator::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: var(--section-overlay-opacity, 1);
  transition: opacity 0.35s ease;
  background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.68) 0%,
      rgba(0, 0, 0, 0.32) 38%,
      rgba(0, 0, 0, 0.26) 60%,
      rgba(0, 0, 0, 0.72) 100%
    ),
    linear-gradient(
      110deg,
      rgba(0, 0, 0, 0.38) 5%,
      rgba(0, 0, 0, 0.16) 46%,
      rgba(0, 0, 0, 0.42) 95%
    );
}

.game-section-out {
  --section-image: url("media/second/Out Of Here.png");
  --section-image-position: center 34%;
}

.game-section-worm {
  --section-image: url("media/third/WORM LIFE WORTH LIVING.png");
  --section-image-position: center 36%;
}

.creator-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: clamp(6rem, 12vh, 8rem);
  padding-bottom: clamp(4rem, 8vh, 6rem);
}

.creator-profile-card {
  width: min(100%, 44rem);
  background: rgba(9, 9, 9, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-heavy);
  overflow: hidden;
  position: relative;
}

.creator-profile-cover {
  height: clamp(84px, 14vw, 132px);
  background: radial-gradient(circle at 14% 8%, rgba(67, 212, 182, 0.35), transparent 42%),
    linear-gradient(125deg, #0a1324 0%, #11120f 48%, #171317 100%);
}

.creator-profile-body {
  text-align: center;
  padding: clamp(3.2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem) clamp(1.2rem, 3vw, 2rem);
}

.creator-avatar {
  width: clamp(62px, 8vw, 82px);
  height: clamp(62px, 8vw, 82px);
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: clamp(50px, 11vw, 88px);
  left: 50%;
  transform: translateX(-50%);
  background: #121212;
  padding: 2px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.55);
}

.creator-hero h2 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
}

.creator-hero p {
  margin-top: 0.55rem;
  line-height: 1.62;
}

.creator-profile-body .eyebrow {
  margin-bottom: 0.45rem;
}

.social-links-row {
  margin-top: 1rem;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-links-row a {
  min-width: 8.2rem;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
}

.social-links-row span {
  font-size: 1rem;
}

.section-heading {
  margin: 0 auto 1.8rem;
  max-width: 80rem;
}

.section-heading h2,
.creator h2 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  line-height: 1;
}

.game-section .section-heading h2 {
  font-size: clamp(2.2rem, 7vw, 4rem);
}

.game-grid {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
  align-items: start;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.video-card {
  position: relative;
  min-height: clamp(15rem, 33vw, 25rem);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: var(--shadow-heavy);
  overflow: hidden;
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details-card {
  display: flex;
  align-items: flex-start;
  min-height: 0;
  padding: 0;
  margin-top: -0.55rem;
}

.details-card p,
.creator p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.75;
}

.details-card p {
  max-width: 26rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  background: rgba(0, 0, 0, 0.58);
  padding: 0.95rem 1rem;
}

.alt-layout {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.creator-panel {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: clamp(1rem, 3vw, 2.3rem);
  align-items: center;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow-heavy);
  padding: clamp(1rem, 2.4vw, 2rem);
}

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

.social-links {
  margin-top: 1.2rem;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.65rem;
}

.social-links a {
  width: fit-content;
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 1rem;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.14);
  transition: transform 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.social-links i {
  font-size: 1.1rem;
}

.social-links span {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.social-links a:hover {
  transform: translateY(-3px);
  color: var(--accent-2);
  background: rgba(255, 255, 255, 0.24);
}

.has-gsap .reveal {
  opacity: 0;
  transform: translateY(36px);
}

@media (max-width: 980px) {
  .game-grid,
  .alt-layout,
  .creator-panel {
    grid-template-columns: 1fr;
  }

  .details-card {
    min-height: 0;
    padding: 0;
    margin-top: 0;
  }

  .scroll-indicator {
    bottom: 1rem;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .nav-cta {
    font-size: 0.78rem;
    padding: 0.62rem 0.85rem;
  }

  .hero {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    padding-bottom: 2rem;
  }

  .game-section,
  .creator {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
}
