/* One light field for every scene. Screen blending removes the artwork's dark
   rectangle; a soft elliptical mask dissolves its light into the page. */
html,body{overflow-x:clip}
.app-shell{max-width:none;overflow:clip}
.app-shell>main,.site-header,.site-footer{width:100%;max-width:1440px;margin-inline:auto}
.app-shell main{isolation:auto}
.app-shell .pearl-art{overflow:visible;mask-image:none;mix-blend-mode:screen}
.pearl-lightfield{
  position:absolute;top:0;left:0;width:100%;aspect-ratio:941/520;
  isolation:isolate;overflow:hidden;
  mask-image:radial-gradient(ellipse 49% 48% at 50% 46%,#000 35%,#000e 53%,#0008 73%,transparent 100%);
}
/* A fixed-ratio crop keeps the sphere, sheen and light paths registered at every
   responsive size. Original 941 x 1672 image; crop starts at source y = 172. */
.app-shell .pearl-art .pearl-texture{
  inset:0;background-position:center 14.93056%;background-size:100% auto;
  mask-image:none;filter:none;animation:none;
}
.pearl-sheen{
  position:absolute;left:51%;top:45.4%;width:37.4%;aspect-ratio:1;
  transform:translate(-50%,-50%);border-radius:50%;overflow:hidden;
  mask-image:radial-gradient(circle,#000 45%,#000b 63%,transparent 72%);
  mix-blend-mode:screen;
}
.pearl-sheen::before{
  content:'';position:absolute;inset:-30%;
  background:linear-gradient(112deg,transparent 30%,#d9edff12 39%,#fff7eaba 47%,#fffefa40 51%,#c6c4ff22 57%,transparent 66%);
  animation:pearl-lustre 8.5s ease-in-out infinite;
}
.pearl-sheen::after{
  content:'';position:absolute;inset:-18%;
  background:radial-gradient(ellipse at 28% 28%,#eaf7ff75,transparent 40%),radial-gradient(ellipse at 71% 73%,#ffddb966,transparent 36%),radial-gradient(ellipse at 73% 27%,#cec2ff4d,transparent 42%);
  animation:pearl-iridescence 12s ease-in-out infinite alternate;
}
@keyframes pearl-lustre{
  0%,12%{transform:translate(-35%,14%) rotate(-12deg);opacity:0}
  38%{opacity:.6}
  72%,100%{transform:translate(35%,-14%) rotate(10deg);opacity:0}
}
@keyframes pearl-iridescence{
  from{transform:translate(-3%,2%) rotate(-12deg);opacity:.3}
  to{transform:translate(3%,-2%) rotate(14deg);opacity:.8}
}
.pearl-flow{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.pearl-flow .light-trail{
  fill:none;stroke-width:1.5;stroke-linecap:round;stroke-dasharray:35 965;
  animation:pearl-travel var(--travel,12s) linear infinite;
  animation-delay:var(--delay,0s);opacity:.65;
}
.pearl-flow .warm{stroke:#ffe3bb;filter:drop-shadow(0 0 4px #ffca8c)}
.pearl-flow .cool{stroke:#acdfff;filter:drop-shadow(0 0 4px #78bfff)}
@keyframes pearl-travel{to{stroke-dashoffset:-1000}}
.light-mote{
  fill:#fff3d9;filter:drop-shadow(0 0 4px #ffd89c);
  offset-path:var(--route);offset-distance:0%;
  animation:pearl-flight var(--travel,12s) linear infinite;
  animation-delay:var(--delay,0s);
}
.light-mote.cool{fill:#dcf4ff;stroke:none;filter:drop-shadow(0 0 4px #8ccfff)}
@keyframes pearl-flight{
  0%{offset-distance:0%;opacity:0}
  12%,78%{opacity:.9}
  100%{offset-distance:100%;opacity:0}
}
.pearl-star{fill:#fff3db;transform-box:fill-box;transform-origin:center;animation:pearl-twinkle 6s ease-in-out infinite;animation-delay:var(--delay,0s)}
@keyframes pearl-twinkle{0%,55%,100%{opacity:0;transform:scale(.35) rotate(0deg)}70%{opacity:.85;transform:scale(1) rotate(12deg)}85%{opacity:.1;transform:scale(.5) rotate(25deg)}}
/* Preserve the established desktop composition without masking only one scene. */
@media(min-width:1000px){
  .app-shell:is(:not([data-scene]),[data-scene="landing"]) .pearl-art{left:72%;top:20px;width:980px;height:556px}
}
@media(min-width:1000px) and (max-height:800px){
  .app-shell:is(:not([data-scene]),[data-scene="landing"]) .pearl-art{top:-10px;width:900px;height:510px}
}
@media(min-width:1440px){.site-header,.site-footer{padding-inline:86.4px}}
/* Stop decorative work when the artwork is hidden. The image remains a complete
   still in reduced-motion mode, without stranded light dashes or particles. */
.app-shell[data-scene="workspace"] .pearl-lightfield{display:none}
.reduced-motion .pearl-flow,.reduced-motion .pearl-sheen{display:none}
@media(prefers-reduced-motion:reduce){.pearl-flow,.pearl-sheen{display:none}}
