:root {
  color-scheme: dark;
  --black: #050607;
  --veil: rgba(5, 6, 7, 0.72);
  --text: #f6f1e6;
  --muted: #b7b0a4;
  --lime: #c6ff27;
  --line: rgba(246, 241, 230, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--black);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body:not(.is-entered) {
  overflow: hidden;
}

#luma-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  background: #050607;
}

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

button {
  font: inherit;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(198, 255, 39, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(5, 6, 7, 0.36), rgba(5, 6, 7, 0.92));
  transition: opacity 900ms ease, filter 900ms ease, transform 1200ms ease;
}

body.is-entered .intro {
  opacity: 0;
  pointer-events: none;
  filter: blur(16px);
  transform: scale(1.08);
}

.intro__inner {
  width: min(920px, 100%);
  text-align: center;
}

.intro__sigil {
  margin-bottom: 18px;
  color: var(--lime);
  font-size: 56px;
  text-shadow: 0 0 44px rgba(198, 255, 39, 0.95);
}

.kicker {
  margin: 0 0 14px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro h1 {
  margin: 0 auto 20px;
  max-width: 820px;
  font-size: clamp(48px, 8vw, 118px);
  line-height: 0.95;
}

.intro p:not(.kicker) {
  max-width: 660px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

#begin {
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid rgba(198, 255, 39, 0.58);
  border-radius: 999px;
  background: rgba(198, 255, 39, 0.12);
  color: var(--lime);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(198, 255, 39, 0.18);
}

#begin:hover {
  background: var(--lime);
  color: #101110;
}

.hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 6, 7, 0.76), transparent);
  transition: opacity 600ms ease;
}

body.is-entered .hud {
  opacity: 1;
  pointer-events: auto;
}

.hud__brand {
  color: var(--lime);
  font-weight: 900;
}

.hud nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.hud a {
  color: var(--muted);
  font-size: 14px;
}

.hud a:hover,
.hud__brand:hover {
  color: var(--lime);
}

.chapter-copy {
  position: fixed;
  left: 5vw;
  bottom: 8vh;
  z-index: 8;
  width: min(560px, 88vw);
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

body.is-entered .chapter-copy {
  opacity: 1;
  transform: translateY(0);
}

.chapter-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1.04;
  text-shadow: 0 18px 54px rgba(0, 0, 0, 0.72);
}

.chapter-copy p:not(.kicker) {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.78;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.88);
}

.progress {
  position: fixed;
  right: 32px;
  top: 50%;
  z-index: 9;
  width: 2px;
  height: 34vh;
  background: rgba(246, 241, 230, 0.12);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 600ms ease;
}

body.is-entered .progress {
  opacity: 1;
}

.progress span {
  display: block;
  width: 100%;
  height: 0%;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(198, 255, 39, 0.9);
}

.scroll-track {
  position: relative;
  z-index: 1;
}

.scroll-track section {
  height: 100vh;
  min-height: 720px;
}

.noscript {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 30;
  color: var(--text);
}

@media (max-width: 760px) {
  .hud {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-top: 14px;
  }

  .hud nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .chapter-copy {
    left: 20px;
    bottom: 6vh;
  }

  .chapter-copy h2 {
    font-size: 38px;
  }

  .progress {
    right: 16px;
  }
}
