.scene--cards .scene-title {
  letter-spacing: 0.03em;
}

.scene--pie .scene-chip,
.scene--pills .scene-chip {
  opacity: 0.95;
}

.scene--page-curl .scene-header {
  z-index: 6;
}

.page-curl-scene {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 96px 24px 32px;
}

.page-curl-scene__rails {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-curl-scene__rail {
  position: absolute;
  display: block;
  border-radius: 999px;
  overflow: hidden;
  opacity: 0.9;
  mix-blend-mode: screen;
  will-change: transform, opacity, background-position;
}

.page-curl-scene__rail::before,
.page-curl-scene__rail::after {
  content: "";
  position: absolute;
  border-radius: inherit;
}

.page-curl-scene__rail::before {
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.9) 46%, rgba(255, 255, 255, 0.15) 52%, transparent 62%);
  opacity: 0.55;
  animation: pageCurlRailSweep 3.4s linear infinite;
}

.page-curl-scene__rail::after {
  inset: -10px;
  border-radius: inherit;
  background: inherit;
  filter: blur(10px);
  opacity: 0.65;
}

.page-curl-scene__rail--top-magenta {
  top: 26px;
  left: 148px;
  width: 390px;
  height: 3px;
  background: linear-gradient(90deg, rgba(155, 60, 255, 0.15), rgba(197, 75, 255, 0.96), rgba(155, 60, 255, 0.12));
  animation: pageCurlRailFloatX 4.8s ease-in-out infinite alternate;
}

.page-curl-scene__rail--top-blue {
  top: 76px;
  left: 154px;
  width: 334px;
  height: 2px;
  background: linear-gradient(90deg, rgba(62, 140, 255, 0.12), rgba(86, 166, 255, 0.9), rgba(62, 140, 255, 0.1));
  animation: pageCurlRailFloatX 5.2s ease-in-out infinite alternate-reverse;
}

.page-curl-scene__rail--left-magenta {
  top: 94px;
  left: 20px;
  width: 3px;
  height: 400px;
  background: linear-gradient(180deg, rgba(155, 60, 255, 0.1), rgba(197, 75, 255, 0.96), rgba(155, 60, 255, 0.08));
  animation: pageCurlRailFloatY 4.6s ease-in-out infinite alternate;
}

.page-curl-scene__rail--left-blue {
  top: 74px;
  left: 52px;
  width: 2px;
  height: 474px;
  background: linear-gradient(180deg, rgba(62, 140, 255, 0.1), rgba(86, 166, 255, 0.92), rgba(62, 140, 255, 0.08));
  animation: pageCurlRailFloatY 5.4s ease-in-out infinite alternate-reverse;
}

.page-curl-scene__rail--bottom-blue {
  right: 82px;
  bottom: 72px;
  width: 1120px;
  max-width: 72vw;
  height: 2px;
  background: linear-gradient(90deg, rgba(62, 140, 255, 0.08), rgba(86, 166, 255, 0.88), rgba(62, 140, 255, 0.08));
  animation: pageCurlRailFloatX 5.8s ease-in-out infinite alternate;
}

.page-curl-scene__rail--bottom-magenta {
  left: 114px;
  bottom: 18px;
  width: 920px;
  max-width: 62vw;
  height: 3px;
  background: linear-gradient(90deg, rgba(155, 60, 255, 0.08), rgba(197, 75, 255, 0.94), rgba(155, 60, 255, 0.08));
  animation: pageCurlRailFloatX 5s ease-in-out infinite alternate-reverse;
}

.page-curl-scene__stage {
  position: relative;
  z-index: 1;
  width: min(460px, calc(100vw - 96px));
  aspect-ratio: 3 / 4;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.page-curl-scene__stage:active {
  cursor: grabbing;
}

.page-curl-scene__gl {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  box-shadow:
    0 18px 80px rgba(0, 0, 0, 0.4),
    0 4px 22px rgba(0, 0, 0, 0.28);
}

.page-curl-scene__staging {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.page-curl-scene__staging-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 600px;
  height: 800px;
}

.page-curl-scene__fallback {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(320px, calc(100% - 32px));
  padding: 16px 18px;
  border-radius: 16px;
  transform: translate(-50%, -50%);
  text-align: center;
}

.scene--tech-depth .scene-header {
  z-index: 6;
}

.scene--agent-birth .scene-header {
  z-index: 6;
}

.tech-depth-scene {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 96px 24px 32px;
}

.tech-depth-scene__hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tech-depth-scene__beam,
.tech-depth-scene__ring {
  position: absolute;
  display: block;
  pointer-events: none;
}

.tech-depth-scene__beam {
  border-radius: 999px;
  mix-blend-mode: screen;
}

.tech-depth-scene__beam::before,
.tech-depth-scene__beam::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.tech-depth-scene__beam::before {
  background: inherit;
  filter: blur(14px);
  opacity: 0.8;
}

.tech-depth-scene__beam::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.85) 48%, transparent 62%);
  animation: techBeamSweep 3.2s linear infinite;
}

.tech-depth-scene__beam--top {
  top: 48px;
  left: 12vw;
  width: 34vw;
  min-width: 320px;
  height: 3px;
  background: linear-gradient(90deg, rgba(85, 205, 255, 0.04), rgba(85, 205, 255, 0.92), rgba(85, 205, 255, 0.04));
  animation: techBeamDriftX 6s ease-in-out infinite alternate;
}

.tech-depth-scene__beam--side {
  top: 16vh;
  right: 10vw;
  width: 2px;
  height: 40vh;
  min-height: 280px;
  background: linear-gradient(180deg, rgba(94, 255, 214, 0.04), rgba(94, 255, 214, 0.94), rgba(94, 255, 214, 0.04));
  animation: techBeamDriftY 7s ease-in-out infinite alternate;
}

.tech-depth-scene__beam--bottom {
  left: 14vw;
  bottom: 44px;
  width: 42vw;
  min-width: 420px;
  height: 3px;
  background: linear-gradient(90deg, rgba(78, 113, 255, 0.04), rgba(78, 113, 255, 0.9), rgba(78, 113, 255, 0.04));
  animation: techBeamDriftX 6.8s ease-in-out infinite alternate-reverse;
}

.tech-depth-scene__ring {
  border-radius: 999px;
  border: 1px solid rgba(78, 205, 255, 0.18);
  box-shadow: 0 0 40px rgba(78, 205, 255, 0.08), inset 0 0 24px rgba(78, 205, 255, 0.04);
}

.tech-depth-scene__ring--one {
  left: 9vw;
  top: 26vh;
  width: 180px;
  height: 180px;
  animation: techRingPulse 7.5s ease-in-out infinite;
}

.tech-depth-scene__ring--two {
  right: 11vw;
  bottom: 18vh;
  width: 240px;
  height: 240px;
  animation: techRingPulse 8.8s ease-in-out infinite reverse;
}

.tech-depth-scene__stage {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100vw - 88px));
  height: min(760px, calc(100vh - 140px));
}

.tech-depth-scene__gl {
  width: 100%;
  height: 100%;
  display: block;
}

.tech-depth-scene__staging {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.tech-depth-scene__staging-canvas {
  position: absolute;
  top: 0;
  left: 0;
}

.tech-depth-scene__fallback {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(320px, calc(100% - 32px));
  padding: 16px 18px;
  border-radius: 16px;
  transform: translate(-50%, -50%);
  text-align: center;
}

.tech-join-scene__stage {
  isolation: isolate;
}

.tech-join-scene__links {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.tech-join-scene__link {
  position: absolute;
  display: block;
  opacity: 0;
  transform-origin: left center;
  transform: scaleX(var(--line-progress, 0));
  transition: opacity 160ms ease;
  isolation: isolate;
}

.tech-join-scene__link::before,
.tech-join-scene__link::after,
.tech-join-scene__link > span,
.tech-join-scene__link > i {
  content: "";
  position: absolute;
  border-radius: inherit;
}

.tech-join-scene__link::before {
  inset: -8px;
  background: inherit;
  filter: blur(14px);
  opacity: 0.72;
}

.tech-join-scene__link::after {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.24) 24%, rgba(255, 255, 255, 0.82) 50%, rgba(255, 255, 255, 0.2) 72%, rgba(255, 255, 255, 0));
  animation: techBeamSweep 2.2s linear infinite;
}

.tech-join-scene__link--join {
  top: 300px;
  left: calc(50% - 208px);
  width: 416px;
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(83, 151, 255, 0.02), rgba(87, 180, 255, 0.92) 22%, rgba(129, 255, 225, 1) 52%, rgba(87, 180, 255, 0.92) 82%, rgba(83, 151, 255, 0.02));
  box-shadow:
    0 0 0 1px rgba(129, 255, 225, 0.08),
    0 0 24px rgba(87, 180, 255, 0.18);
}

.tech-join-scene__link--left-result {
  top: 430px;
  left: calc(50% - 238px);
  width: 198px;
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(92, 170, 255, 0.02), rgba(92, 170, 255, 0.96) 34%, rgba(165, 226, 255, 0.88) 100%);
  box-shadow:
    0 0 0 1px rgba(92, 170, 255, 0.08),
    0 0 20px rgba(92, 170, 255, 0.16);
  transform: rotate(36deg) scaleX(var(--line-progress, 0));
}

.tech-join-scene__link--right-result {
  top: 430px;
  left: calc(50% + 40px);
  width: 198px;
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(117, 255, 220, 0.02), rgba(117, 255, 220, 0.96) 34%, rgba(187, 255, 239, 0.88) 100%);
  box-shadow:
    0 0 0 1px rgba(117, 255, 220, 0.08),
    0 0 20px rgba(117, 255, 220, 0.16);
  transform: rotate(-36deg) scaleX(var(--line-progress, 0));
}

.agent-birth-scene {
  overflow: hidden;
}

.agent-birth-scene__particles,
.agent-birth-scene__waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.agent-birth-scene__particles {
  --particle-pull: 0;
  --particle-energy: 0;
}

.agent-birth-scene__particle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--particle-size, 6px);
  height: var(--particle-size, 6px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(178, 255, 247, 0.96) 0%, rgba(76, 194, 255, 0.52) 56%, rgba(76, 194, 255, 0) 100%);
  box-shadow: 0 0 16px rgba(94, 220, 255, 0.28);
  opacity: calc(0.08 + var(--particle-energy) * 0.8);
  transform: translate(
    calc(var(--particle-x) * (1 - var(--particle-pull) * 0.78)),
    calc(var(--particle-y) * (1 - var(--particle-pull) * 0.78))
  );
  animation: agentBirthParticleFloat 8.2s ease-in-out infinite;
  animation-delay: var(--particle-delay, 0s);
}

.agent-birth-scene__wave {
  --wave-scale: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(118, 255, 231, 0.26);
  box-shadow:
    0 0 32px rgba(94, 220, 255, 0.12),
    inset 0 0 22px rgba(118, 255, 231, 0.05);
  transform: translate(-50%, -50%) scale(var(--wave-scale));
}

.agent-birth-scene__wave--two {
  width: 320px;
  height: 320px;
}

@keyframes agentBirthParticleFloat {
  0% {
    margin-top: 0;
    opacity: 0.2;
  }

  50% {
    margin-top: -18px;
    opacity: 0.74;
  }

  100% {
    margin-top: 0;
    opacity: 0.22;
  }
}

@keyframes pageCurlRailFloatX {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0.64;
  }

  100% {
    transform: translate3d(34px, 0, 0);
    opacity: 0.98;
  }
}

@keyframes pageCurlRailFloatY {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0.58;
  }

  100% {
    transform: translate3d(0, 28px, 0);
    opacity: 0.96;
  }
}

@keyframes pageCurlRailSweep {
  0% {
    transform: translate3d(-120%, 0, 0);
    opacity: 0;
  }

  20% {
    opacity: 0.52;
  }

  60% {
    opacity: 0.28;
  }

  100% {
    transform: translate3d(140%, 0, 0);
    opacity: 0;
  }
}

@keyframes techBeamDriftX {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0.72;
  }

  100% {
    transform: translate3d(38px, 0, 0);
    opacity: 1;
  }
}

@keyframes techBeamDriftY {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0.66;
  }

  100% {
    transform: translate3d(0, 34px, 0);
    opacity: 0.98;
  }
}

@keyframes techBeamSweep {
  0% {
    transform: translate3d(-135%, 0, 0);
    opacity: 0;
  }

  18% {
    opacity: 0.62;
  }

  100% {
    transform: translate3d(135%, 0, 0);
    opacity: 0;
  }
}

@keyframes techRingPulse {
  0% {
    transform: scale(0.94);
    opacity: 0.28;
  }

  50% {
    transform: scale(1.04);
    opacity: 0.5;
  }

  100% {
    transform: scale(0.96);
    opacity: 0.3;
  }
}
