:root {
  color-scheme: dark;
  --ink: #f7fbff;
  --muted: rgba(247, 251, 255, 0.72);
  --line: rgba(247, 251, 255, 0.18);
  --aqua: #48f5d9;
  --blue: #4c7dff;
  --rose: #ff6f91;
  --deep: #05070c;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--deep);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--deep);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

.scroll-experience {
  min-height: 100vh;

}

.stage {
  height: 520vh;
  position: relative;
}

.stage__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 580px;
  overflow: hidden;
  isolation: isolate;
  background: #05070c;
}

.stage__sequence {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: saturate(1.14) contrast(1.03) brightness(1.16);
  transform: scale(var(--sequence-scale, 1.08));
  transform-origin: center;
  will-change: transform, filter;
}

.stage__wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 7, 12, 0.46), rgba(5, 7, 12, 0.05) 48%, rgba(5, 7, 12, 0.38)),
    linear-gradient(180deg, rgba(5, 7, 12, 0.2), transparent 42%, rgba(5, 7, 12, 0.32));
  pointer-events: none;
}

.stage__grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: var(--grid-opacity, 0.24);
  background-image:
    linear-gradient(rgba(247, 251, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 251, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 45%, black 0, transparent 68%);
  transform: translate3d(0, var(--grid-shift, 0px), 0);
  pointer-events: none;
}

.stage__signal {
  position: absolute;
  z-index: 3;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: linear-gradient(transparent, var(--aqua), transparent);
  opacity: var(--signal-opacity, 0.55);
  transform: scaleY(var(--signal-scale, 0.32));
  transform-origin: center;
  pointer-events: none;
}

.stage__signal::before,
.stage__signal::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(72, 245, 217, 0.72);
  border-radius: 50%;
  left: -6px;
  opacity: 0.74;
}

.stage__signal::before {
  top: 22%;
}

.stage__signal::after {
  bottom: 18%;
}

.stage__signal--left {
  left: clamp(18px, 5vw, 72px);
}

.stage__signal--right {
  right: clamp(18px, 5vw, 72px);
  background: linear-gradient(transparent, var(--rose), transparent);
}

.stage__signal--right::before,
.stage__signal--right::after {
  border-color: rgba(255, 111, 145, 0.72);
}


.motion-cue {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: clamp(34px, 7vw, 64px);
  width: 30px;
  height: 48px;
  border: 1px solid rgba(247, 251, 255, 0.5);
  border-radius: 999px;
  opacity: var(--cue-opacity, 0.82);
  transform: translateX(-50%);
  pointer-events: none;
}

.motion-cue span {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 4px;
  height: 9px;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%);
  animation: cue-drift 1.45s ease-in-out infinite;
}

@keyframes cue-drift {
  0%,
  100% {
    opacity: 0.3;
    transform: translate3d(-50%, 0, 0);
  }

  50% {
    opacity: 1;
    transform: translate3d(-50%, 14px, 0);
  }
}

@media (max-width: 720px) {
  .stage {
    height: 480vh;
  }

  .stage__sticky {
    min-height: 540px;
  }

  .stage__grid {
    background-size: 48px 48px;
  }

  .motion-cue {
    width: 26px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-cue span {
    animation: none;
  }
}
