/* Light forms travel continuously; the original finite burst stays a separate layer. */
.living-background{position:absolute;inset:-10%;z-index:0;overflow:hidden;pointer-events:none;opacity:1;contain:layout paint}
.living-background>span{position:absolute;display:block;mix-blend-mode:screen;animation-play-state:paused}
.living-background .aurora-a{width:78%;height:85%;left:12%;top:-5%;background:radial-gradient(ellipse,#9351ef88,transparent 67%);animation:aurora-violet 6.5s ease-in-out -1.8s infinite alternate}
.living-background .aurora-b{width:58%;height:100%;right:-5%;bottom:-26%;background:radial-gradient(ellipse,#5f88e56c,transparent 62%);animation:aurora-blue 8s ease-in-out -4.5s infinite alternate}
.living-background .aurora-c{width:88%;height:66%;left:-9%;top:8%;background:radial-gradient(ellipse at 24% 40%,#c68cff66,transparent 54%),radial-gradient(ellipse at 65% 55%,#864ee54a,transparent 62%);animation:aurora-lilac 5.5s ease-in-out -2s infinite alternate}
.living-background .aurora-c::after{content:'';position:absolute;left:6%;top:14%;width:55%;height:72%;border:1px solid #d4b5ff24;border-radius:50%;transform:rotate(-26deg)}
.living-background .orbit-band{right:7%;top:12%;width:65%;height:70%;border-radius:50%;border:1px solid #d4b5ff30;box-shadow:inset 0 0 80px #9b5bff24,0 0 60px #9b5bff20;animation:aurora-orbit 10s ease-in-out -4s infinite alternate}
.hero[data-ambient='paused'] .living-background>span{animation-play-state:paused}
.hero[data-ambient='running'] .living-background>span{animation-play-state:running}
@keyframes aurora-violet{from{transform:translate3d(-5%,-6%,0) rotate(-14deg) scale(.9);opacity:.55}to{transform:translate3d(14%,14%,0) rotate(22deg) scale(1.16);opacity:1}}
@keyframes aurora-blue{from{transform:translate3d(12%,8%,0) rotate(15deg) scale(1.1);opacity:.85}to{transform:translate3d(-22%,-22%,0) rotate(-20deg) scale(.82);opacity:.45}}
@keyframes aurora-lilac{from{transform:translate3d(-15%,20%,0) rotate(-28deg) scale(.85);opacity:.4}to{transform:translate3d(24%,-18%,0) rotate(18deg) scale(1.2);opacity:.9}}
@keyframes aurora-orbit{from{transform:rotate(-28deg) scale(.9,.72);opacity:.28}to{transform:rotate(22deg) scale(1.18,.9);opacity:.65}}
.hero-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.ambient-toggle{min-height:44px;border:1px solid var(--line);border-radius:999px;padding:9px 16px;background:#ffffff08;color:var(--gray);font:12px var(--body);cursor:pointer;transition:background .2s,color .2s}
.ambient-toggle:hover{background:var(--control);color:var(--paper)}.ambient-toggle:active{background:var(--green)}.ambient-toggle:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
@media(max-width:760px){.living-background{opacity:.85}.living-background .orbit-band{display:none}.hero-tools{justify-content:flex-start;gap:8px}.hero-foot{flex-wrap:wrap;gap:14px}.ambient-toggle{padding:8px 14px}}
@media(prefers-reduced-motion:reduce),(forced-colors:active){.living-background,.ambient-toggle{display:none}}
[data-motion='off'] .living-background,[data-motion='off'] .ambient-toggle{display:none}
