/* Stage lighting stays behind the content; the studio itself keeps a clean graphite base. */
body {
  --ambient-line-opacity: .48;
  --ambient-glow-opacity: .8;
  background: #0c0b10;
}

body[data-view="home"] {
  --ambient-line-opacity: .72;
  --ambient-glow-opacity: 1;
}

.ambient-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  contain: strict;
  pointer-events: none;
  user-select: none;
  background:
    radial-gradient(ellipse at 62% -25%, #3b2338 0, transparent 62%),
    radial-gradient(ellipse at 100% 70%, #29213624 0, transparent 55%),
    linear-gradient(145deg, #100d14 0%, #0c0b11 50%, #121019 100%);
}

.ambient-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, #0c0b1133 75%, #0c0b1166);
  pointer-events: none;
}

.ambient-glow {
  position: absolute;
  opacity: var(--ambient-glow-opacity);
  border-radius: 50%;
  transform-origin: center;
}

.ambient-glow-one {
  width: min(1080px, 100vw);
  height: min(900px, 110vh);
  left: -32%;
  top: -14%;
  background: radial-gradient(ellipse at center,
    #ff3e9c38 0%, #e63c9322 23%, #a3317d12 44%, transparent 70%);
  animation: ambient-breathe-left 36s ease-in-out infinite alternate;
}

.ambient-glow-two {
  width: min(1250px, 100vw);
  height: min(1000px, 110vh);
  right: -30%;
  top: 5%;
  background: radial-gradient(ellipse at center,
    #ed54ac2e 0%, #9b63cb1c 26%, #9256b30d 47%, transparent 71%);
  animation: ambient-breathe-right 43s ease-in-out infinite alternate;
}

.ambient-lines {
  position: absolute;
  inset: 0;
  opacity: var(--ambient-line-opacity);
  background-image: url("/assets/ambient-lines.svg");
  background-repeat: no-repeat;
  background-position: center 19vh;
  background-size: max(1440px, 112vw) auto;
}

.page-shell { position: relative; z-index: 1; }

@keyframes ambient-breathe-left {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(24px, -18px, 0) scale(1.045); }
}

@keyframes ambient-breathe-right {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-20px, 22px, 0); }
}

@media (max-width: 760px) {
  body { --ambient-line-opacity: .42; }
  body[data-view="home"] { --ambient-line-opacity: .62; }
  .ambient-glow-one { width: 900px; height: 850px; left: -620px; top: 7%; }
  .ambient-glow-two { width: 850px; height: 800px; right: -590px; top: -20%; }
  .ambient-glow { animation: none; }
  .ambient-lines { background-size: 1180px auto; background-position: 58% 18vh; }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-glow { animation: none; transform: none; }
}

@media (forced-colors: active) {
  .ambient-scene { display: none; }
}
