:root {
  --bg: #030811;
  --text: #edf6ff;
  --muted: #93a9c4;
  --line: rgba(137, 211, 255, 0.14);
  --cyan: #86e8ff;
  --teal: #8cffc9;
  --gold: #ffd985;
  --panel: rgba(7, 15, 27, 0.68);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, rgba(134, 232, 255, 0.08), transparent 26%), #030811;
  overflow-x: hidden;
}

#sceneCanvas,
.backdrop {
  position: fixed;
  inset: 0;
}

#sceneCanvas {
  z-index: 0;
}

.backdrop {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 7, 14, 0.38) 0%, rgba(3, 7, 14, 0.12) 20%, rgba(3, 7, 14, 0.25) 75%, rgba(3, 7, 14, 0.75) 100%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, 84px 84px, 84px 84px;
}

.topbar,
main {
  position: relative;
  z-index: 2;
}

.topbar {
  width: min(1280px, calc(100% - 28px));
  margin: 18px auto 0;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(5, 11, 21, 0.55);
  backdrop-filter: blur(18px);
}

.brand,
.menu,
.hero-pills,
.panel-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-badge {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(134, 232, 255, 0.24), rgba(255, 217, 133, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.brand strong,
.brand span,
.hero p,
.chapter p,
.info-card p,
.info-card span,
.pitch-box p,
.story-panel p {
  display: block;
  margin: 0;
}

.brand span {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 4px;
}

.menu a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
}

main {
  width: min(1280px, calc(100% - 28px));
  margin: 0 auto;
}

.eyebrow {
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero {
  padding: 110px 0 170px;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1,
.story-panel h2,
.section-head h2,
.pitch-box h2 {
  font-family: "Outfit", sans-serif;
  line-height: 0.97;
  margin: 18px 0;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 6.2rem);
  max-width: 11ch;
}

.lead,
.story-panel p:last-of-type,
.chapter p,
.info-card span,
.pitch-box p:last-of-type {
  color: var(--muted);
  line-height: 1.86;
}

.hero-pills span,
.panel-meta span {
  padding: 11px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(330px, 0.78fr);
  gap: 28px;
  padding-bottom: 140px;
}

.story-stage {
  position: relative;
}

.story-panel {
  position: sticky;
  top: 106px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--panel);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  min-height: 290px;
}

.story-panel h2 {
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  max-width: 11ch;
}

.chapters {
  display: grid;
  gap: 18px;
}

.chapter,
.info-card,
.pitch-box {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(6, 14, 24, 0.66);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.chapter {
  min-height: 240px;
  padding: 24px;
  opacity: 0.54;
  transform: translateY(18px);
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}

.chapter.is-active {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(134, 232, 255, 0.32);
}

.chapter span,
.info-card p {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chapter h3,
.info-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.grid-section,
.pitch {
  padding: 40px 0 120px;
}

.section-head {
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  max-width: 12ch;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.pitch-box {
  padding: 24px;
}

.pitch-box {
  text-align: center;
  padding: 42px;
}

.pitch-box h2 {
  font-size: clamp(2.1rem, 4vw, 4.6rem);
  max-width: 12ch;
  margin-left: auto;
  margin-right: auto;
}

.pitch-box p:last-of-type {
  max-width: 68ch;
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .story,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .story-panel {
    position: relative;
    top: 0;
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 82px;
  }

  .hero h1,
  .story-panel h2,
  .section-head h2,
  .pitch-box h2 {
    max-width: 100%;
  }
}
