/* ---------- Stage: two isolated objects ---------- */

.home,
.stage {
  overflow-x: clip;
}

.stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  min-height: calc(100vh - var(--header-h));
  padding: 40px clamp(20px, 4vw, 64px);
}

.stage-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.stage-art--left {
  justify-content: flex-start;
  transform: translate3d(var(--par-x-l, 0px), var(--par-y-l, 0px), 0);
  transition: transform 0.45s var(--ease-out);
}

.stage-art--right {
  justify-content: flex-end;
  margin-right: clamp(-140px, -6vw, -40px);
  transform: translate3d(var(--par-x, 0px), var(--par-y, 0px), 0);
  transition: transform 0.45s var(--ease-out);
}

/* ---------- Left object: orbit node ---------- */

.node-object {
  position: relative;
  display: grid;
  place-items: center;
  width: min(360px, 42vw);
  aspect-ratio: 1;
}

.node-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(68deg);
  pointer-events: none;
}

.node-ring-1 {
  width: 70%;
  height: 70%;
  border: 1px solid var(--iris-35);
  box-shadow: inset 0 0 40px rgba(185, 160, 126, 0.08);
  animation: nodeSpin 14s linear infinite;
}

.node-ring-2 {
  width: 92%;
  height: 92%;
  border: 1px dashed rgba(51, 214, 166, 0.18);
  animation: nodeSpin 22s linear infinite reverse;
}

.node-ring-3 {
  width: 48%;
  height: 48%;
  border: 1px solid rgba(51, 214, 166, 0.14);
  animation: nodeSpin 18s linear infinite;
}

@keyframes nodeSpin {
  from {
    transform: translate(-50%, -50%) rotateX(68deg) rotateZ(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotateX(68deg) rotateZ(360deg);
  }
}

.node-core {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-chalk);
  box-shadow:
    0 0 20px 6px rgba(185, 160, 126, 0.5),
    0 0 48px 16px rgba(185, 160, 126, 0.18);
  animation: corePulse 5s ease-in-out infinite;
}

.node-floor {
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: 150%;
  height: 55%;
  transform: translateX(-50%) perspective(680px) rotateX(66deg) rotateZ(45deg);
  transform-origin: center bottom;
  background-image:
    linear-gradient(to right, rgba(185, 160, 126, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(185, 160, 126, 0.14) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  opacity: 0.75;
  pointer-events: none;
}

/* ---------- Right object: floating disc stack ---------- */

.art-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1;
}

.art-glow {
  position: absolute;
  width: min(680px, 130%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 46%,
    rgba(185, 160, 126, 0.22),
    rgba(51, 214, 166, 0.08) 46%,
    transparent 70%
  );
  filter: blur(14px);
  pointer-events: none;
}

.art-beam {
  position: absolute;
  top: 6%;
  bottom: 6%;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(185, 160, 126, 0.5),
    rgba(51, 214, 166, 0.28),
    transparent
  );
  opacity: 0.55;
  pointer-events: none;
}

.art-grid {
  position: absolute;
  left: 50%;
  bottom: 1%;
  width: min(660px, 134%);
  height: 330px;
  transform: translateX(-50%) perspective(760px) rotateX(64deg) rotateZ(45deg);
  transform-origin: center bottom;
  background-image:
    linear-gradient(to right, rgba(185, 160, 126, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(185, 160, 126, 0.16) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
  opacity: 0.9;
  pointer-events: none;
}

.disc-stack {
  position: relative;
  width: min(600px, 100%);
  aspect-ratio: 1;
}

.disc {
  position: absolute;
  left: 50%;
  border-radius: 50%;
  border: 1px solid var(--iris-35);
  background: radial-gradient(
    circle at 40% 35%,
    rgba(185, 160, 126, 0.22),
    rgba(51, 214, 166, 0.07) 55%,
    transparent 76%
  );
  box-shadow:
    inset 0 0 60px rgba(185, 160, 126, 0.12),
    0 0 70px rgba(51, 214, 166, 0.08);
  transform: translate(-50%, -50%) rotateX(66deg);
  will-change: transform;
}

.disc-1 {
  width: 80%;
  height: 80%;
  top: 62%;
  animation: floatDisc1 11s ease-in-out infinite;
}

.disc-2 {
  width: 60%;
  height: 60%;
  top: 48%;
  animation: floatDisc2 9s ease-in-out infinite;
  animation-delay: -1.8s;
}

.disc-3 {
  width: 43.4%;
  height: 43.4%;
  top: 34%;
  animation: floatDisc3 8s ease-in-out infinite;
  animation-delay: -3.2s;
}

.disc-4 {
  width: 28.4%;
  height: 28.4%;
  top: 21%;
  animation: floatDisc4 6.5s ease-in-out infinite;
  animation-delay: -2.4s;
}

@keyframes floatDisc1 {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0) rotateX(66deg);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-9px) rotateX(66deg);
  }
}

@keyframes floatDisc2 {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0) rotateX(66deg);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-12px) rotateX(66deg);
  }
}

@keyframes floatDisc3 {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0) rotateX(66deg);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-8px) rotateX(66deg);
  }
}

@keyframes floatDisc4 {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0) rotateX(66deg);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-14px) rotateX(66deg);
  }
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(70deg);
  pointer-events: none;
}

.orbit-a {
  width: 83.3%;
  height: 83.3%;
  border: 1px solid rgba(51, 214, 166, 0.22);
}

.orbit-b {
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(185, 160, 126, 0.16);
}

.core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-chalk);
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 22px 7px rgba(185, 160, 126, 0.55),
    0 0 60px 20px rgba(51, 214, 166, 0.18);
  animation: corePulse 5s ease-in-out infinite;
}

@keyframes corePulse {
  0%,
  100% {
    box-shadow:
      0 0 22px 7px rgba(185, 160, 126, 0.55),
      0 0 60px 20px rgba(51, 214, 166, 0.18);
  }
  50% {
    box-shadow:
      0 0 26px 9px rgba(185, 160, 126, 0.7),
      0 0 74px 26px rgba(51, 214, 166, 0.26);
  }
}

.spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px rgba(51, 214, 166, 0.8);
  opacity: 0.7;
  animation: sparkDrift 9s ease-in-out infinite;
}

.spark-1 {
  top: 29%;
  left: 21%;
  animation-delay: -2s;
}

.spark-2 {
  top: 63%;
  left: 79%;
  background: var(--accent-iris);
  box-shadow: 0 0 10px rgba(185, 160, 126, 0.8);
  animation-delay: -5s;
}

.spark-3 {
  top: 16%;
  left: 63%;
  animation-delay: -7s;
}

@keyframes sparkDrift {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-10px);
    opacity: 0.85;
  }
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .stage-art--right {
    margin-right: -40px;
  }

  .art-stage {
    max-width: 540px;
  }
}

@media (max-width: 900px) {
  .stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    padding: 32px 24px;
  }

  .node-object {
    width: min(280px, 40vw);
  }

  .art-stage {
    max-width: 460px;
  }
}

@media (max-width: 700px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-content: center;
    gap: 32px;
    padding: 32px 20px 56px;
  }

  .stage-art--left {
    display: none;
  }

  .stage-art--right {
    justify-content: center;
    margin-right: 0;
  }

  .art-stage {
    max-width: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  .disc,
  .core,
  .spark,
  .node-ring,
  .node-core {
    animation: none;
  }
}
