.intro_body {
  height: 100vh;
  overflow: hidden;
}

.intro_noscript_summary {
  min-height: 100vh;
  padding: clamp(32px, 8vw, 96px);
  background: #050815;
  color: var(--ink);
  font-family: var(--font_sans);
}

.intro_noscript_inner {
  max-width: 720px;
}

.intro_noscript_summary h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: 1.04;
}

.intro_noscript_summary p {
  margin: 0 0 16px;
  color: var(--ink_muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.75;
}

.intro_noscript_summary a {
  display: inline-flex;
  margin-top: 12px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
}

.intro_body.is_exiting .intro_scene {
  opacity: 0;
  transition: opacity 920ms cubic-bezier(0.4, 0, 0.2, 1);
}

.intro_body.is_preparing_main,
.intro_body.is_preparing_main .intro_canvas {
  cursor: progress;
}

.intro_body.is_preparing_main .intro_canvas {
  pointer-events: none;
}

.intro_scene {
  --intro_progress: 0;
  --scene_fade: 1;
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 980px 680px at 50% 50%, rgba(245, 192, 75, 0.038), transparent 64%),
    radial-gradient(ellipse 760px 520px at 18% 82%, rgba(159, 183, 255, 0.082), transparent 64%),
    linear-gradient(135deg, #050815 0%, #0a1024 48%, #050712 100%);
  opacity: var(--scene_fade);
}

.intro_canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  display: block;
  cursor: grab;
  touch-action: none;
}

.intro_canvas:active {
  cursor: grabbing;
}

.scene_grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(244, 239, 227, 0.018) 1px, transparent 1px) 0 0 / 92px 92px,
    linear-gradient(to bottom, rgba(244, 239, 227, 0.018) 1px, transparent 1px) 0 0 / 92px 92px;
}

.scene_aura {
  position: absolute;
  inset: 4vh 18vw auto;
  z-index: 0;
  height: 82vh;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(245, 192, 75, 0.045), rgba(115, 154, 255, 0.058) 44%, transparent 72%);
  filter: blur(28px);
  opacity: calc(0.28 + var(--intro_progress) * 0.06);
}

.scene_orbit {
  position: absolute;
  left: 50%;
  top: 53%;
  z-index: 2;
  width: 84vw;
  height: 28vh;
  border: 1px solid rgba(245, 192, 75, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-7deg);
  pointer-events: none;
  mix-blend-mode: screen;
}

.orbit_secondary {
  width: 94vw;
  height: 36vh;
  border-color: rgba(159, 183, 255, 0.13);
  transform: translate(-50%, -50%) rotate(-22deg);
}

.intro_camera {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  padding: 120px 40px 70px;
  pointer-events: none;
}

.scene_kicker {
  /*   position: absolute;
  top: 96px;
  left: 40px;
  margin: 0; */
  color: var(--ink_muted);
  font-family: var(--font_mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: flex;
  justify-content: flex-end;
}

.intro_copy {
  position: absolute;
  left: clamp(24px, 7vw, 110px);
  bottom: clamp(72px, 9vh, 110px);
  width: min(480px, 78vw);
  opacity: calc(0.82 - var(--intro_progress) * 1.12);
  transform: translateY(calc(var(--intro_progress) * 16px));
}

.intro_meta_list {
  display: grid;
  gap: 1px;
  margin: 16px 0 0;
  border-top: 1px solid var(--line_soft);
  border-bottom: 1px solid var(--line_soft);
  background: var(--line_soft);
}

.intro_meta_list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  padding: 9px 0;
  background: rgba(5, 8, 21, 0.34);
}

.intro_meta_list dt,
.intro_meta_list dd {
  margin: 0;
  font-family: var(--font_mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.intro_meta_list dt {
  color: var(--ink_muted);
}

.intro_meta_list dd {
  color: var(--ink_warm);
}

.intro_hud {
  position: fixed;
  right: 40px;
  bottom: 38px;
  z-index: 5;
  width: min(180px, calc(100vw - 80px));
  color: var(--ink_dim);
  font-family: var(--font_mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.68;
}

.hud_line {
  display: flex;
  justify-content: space-between;
  gap: 22px;
}

.hud_line strong {
  color: var(--gold);
  font-weight: 600;
}

.hud_meter {
  height: 2px;
  margin-top: 12px;
  background: var(--line_soft);
}

.hud_meter span {
  display: block;
  width: calc(var(--intro_progress) * 100%);
  height: 100%;
  background: linear-gradient(90deg, var(--gold_deep), var(--gold), var(--periwinkle));
}

.scroll_hint {
  position: fixed;
/*   right: 40px;
  bottom: 338px; */
  left: 50%;
  bottom: 76px;
  z-index: 6;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  transform: translateX(-50%);
  color: var(--ink_dim);
  font-family: var(--font_mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: clamp(0, calc(1 - var(--intro_progress) * 24), 1);
  transition: transform 160ms ease;
}

.scroll_hint.is_hidden {
  opacity: 0;
  transform: translate(-50%, 12px);
}

.scroll_glyph {
  width: 24px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  position: relative;
}

.scroll_glyph::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateX(-50%);
  animation: scroll_dot 1.3s ease-in-out infinite;
}

@keyframes scroll_dot {

  0%,
  100% {
    opacity: 0.3;
    transform: translate(-50%, 0);
  }

  45% {
    opacity: 1;
    transform: translate(-50%, 8px);
  }
}

@media (max-width: 760px) {
  .scene_grid {
    background-position: 46px 0, 0 46px;
  }

  .scroll_hint {
    left: 24px;
    bottom: 102px;
    align-items: flex-start;
    gap: 8px;
    transform: none;
    opacity: clamp(0, calc(1 - var(--intro_progress) * 18), 0.78);
  }

  .scroll_hint.is_hidden {
    transform: translateY(10px);
  }

  .scroll_glyph {
    order: 2;
    width: 56px;
    height: 2px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold_deep), var(--gold), var(--periwinkle));
  }

  .scroll_glyph::after {
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    animation: scroll_dot_mobile 1.45s ease-in-out infinite;
  }

  .scene_kicker {
    top: 84px;
    left: 22px;
  }

  .intro_copy {
    left: 32px;
    right: auto;
    bottom: 84px;
    width: min(300px, calc(100vw - 64px));
    display: none;
  }

  .intro_meta_list div {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
  }

  .intro_meta_list dt,
  .intro_meta_list dd {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .intro_hud {
    right: 22px;
    bottom: 24px;
    /* display: none; */
  }
}

@keyframes scroll_dot_mobile {
  0%,
  100% {
    opacity: 0.3;
    transform: translate(0, -50%);
  }

  45% {
    opacity: 1;
    transform: translate(52px, -50%);
  }
}
