/* DIGIGROUPE V39 — Celestial gallery | art direction pass
   Scoped to the existing homepage DOM. V37 GPU-safety remains intact:
   no scene isolation, no fullscreen layer, no blend/backdrop filter, no
   replacement of V9 carousel transforms, and no extra WebGL contexts. */

/* A light STARFIELD, not an overexposed white gradient. Stars, restrained
   orbital tracery and atmospheric depth are painted into ONE CSS background
   on the original software scene (no separate composited elements). */
body.dg-bg-safe.dg-atmosphere-home .dg-journey.dg-journey-ready .dg-scene[data-stage="work"] {
 background-color:#c3d9ef!important;
 background-image:
  radial-gradient(circle at 7% 17%,rgba(255,255,255,.92) 0 1.1px,transparent 1.9px),
  radial-gradient(circle at 14% 49%,rgba(255,255,255,.86) 0 1.3px,transparent 2.1px),
  radial-gradient(circle at 22% 73%,rgba(255,255,255,.77) 0 .9px,transparent 1.7px),
  radial-gradient(circle at 26% 12%,rgba(255,255,255,.86) 0 1px,transparent 1.9px),
  radial-gradient(circle at 33% 38%,rgba(255,255,255,.90) 0 .9px,transparent 1.7px),
  radial-gradient(circle at 39% 89%,rgba(255,255,255,.82) 0 1px,transparent 1.8px),
  radial-gradient(circle at 43% 20%,rgba(255,255,255,.85) 0 1.4px,transparent 2.1px),
  radial-gradient(circle at 49% 56%,rgba(255,255,255,.88) 0 .9px,transparent 1.8px),
  radial-gradient(circle at 57% 11%,rgba(255,255,255,.87) 0 1px,transparent 1.8px),
  radial-gradient(circle at 60% 78%,rgba(255,255,255,.80) 0 1.2px,transparent 2px),
  radial-gradient(circle at 68% 25%,rgba(255,255,255,.91) 0 1.1px,transparent 1.9px),
  radial-gradient(circle at 72% 66%,rgba(255,255,255,.82) 0 1.2px,transparent 2px),
  radial-gradient(circle at 81% 14%,rgba(255,255,255,.94) 0 1.2px,transparent 2px),
  radial-gradient(circle at 86% 49%,rgba(255,255,255,.90) 0 .9px,transparent 1.8px),
  radial-gradient(circle at 94% 83%,rgba(255,255,255,.86) 0 1.3px,transparent 2px),
  radial-gradient(circle at 9% 93%,rgba(36,103,178,.27) 0 .8px,transparent 1.6px),
  radial-gradient(circle at 36% 65%,rgba(35,105,181,.26) 0 .9px,transparent 1.7px),
  radial-gradient(circle at 75% 91%,rgba(35,109,183,.26) 0 .9px,transparent 1.7px),
  radial-gradient(circle at 90% 33%,rgba(35,105,181,.25) 0 .8px,transparent 1.7px),
  radial-gradient(ellipse 52% 74% at 76% 45%,transparent 69.2%,rgba(76,125,185,.095) 69.35%,rgba(76,125,185,.095) 69.55%,transparent 69.8%),
  radial-gradient(ellipse 30% 51% at 76% 45%,transparent 70%,rgba(94,148,200,.09) 70.2%,transparent 70.6%),
  radial-gradient(ellipse 67% 72% at 77% 39%,rgba(246,251,255,.65) 0%,rgba(223,237,251,.15) 57%,transparent 82%),
  radial-gradient(ellipse 64% 58% at 8% 105%,rgba(118,164,217,.23),transparent 88%),
  linear-gradient(142deg,#c6d8ec 0%,#d9e8f6 49%,#b9d1ec 100%)!important;
 background-repeat:no-repeat!important;
 background-attachment:scroll!important;
 background-size:cover!important;
}
/* Make the text editorial and deliberately less massive; do not reduce
   accessible size or override original 3D content animations. */
body.dg-bg-safe.dg-atmosphere-home .dg-scene:is([data-stage="ai"],[data-stage="work"]) .dg-scene-copy h2{
 font-size:clamp(53px,4.8vw,88px)!important;
 line-height:1.025!important;
 letter-spacing:-.066em!important;
 margin-block:18px 22px!important;
 text-wrap:balance;
}
body.dg-bg-safe.dg-atmosphere-home .dg-scene:is([data-stage="ai"],[data-stage="work"]) .dg-scene-copy>p{
 max-width:49ch!important;
 line-height:1.62!important;
 font-size:clamp(15px,1.13vw,18px)!important;
}
body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-scene-copy h2{
 color:#102f53!important;
}
body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-scene-copy h2 em{
 color:#135cbb!important;
}
body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-scene-copy>p{
 color:#365679!important;
}
body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-scene-number,
body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-v11-carousel-hint,
body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-v9-carousel-status{
 color:#2e5c91!important;
}
/* Rebalance the visual grid with softer space between copy and planets. */
@media(min-width:1001px){
 body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-scene-inner{
  grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  column-gap:clamp(40px,4.2vw,82px)!important;
 }
}
/* The V9 orbital card owns 'transform' and the V12 director owns its
   selection. Size actual pearls, never override either camera transform. */
@media(prefers-reduced-motion:no-preference){
 body.dg-bg-safe.dg-atmosphere-home .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-logo:nth-child(n){
  width:min(34%,218px)!important;
  height:clamp(206px,29svh,263px)!important;
  gap:8px!important;
 }
 body.dg-bg-safe.dg-atmosphere-home .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-logo:nth-child(n) .dg-software-mark{
  width:clamp(121px,12vw,164px)!important;
  height:clamp(121px,12vw,164px)!important;
  flex-shrink:0!important;
 }
 body.dg-bg-safe.dg-atmosphere-home .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-logo{
  scale:.91!important;
 }
 body.dg-bg-safe.dg-atmosphere-home .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-logo.dg-v9-selected{
  scale:1.015!important;
 }
}
/* Real overlap: visible light can pass through each pearl, rather than
   covering the adjacent one with an opaque disc. SVG logos remain crisp. */
body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-software-logo .dg-software-mark,
body.dg-bg-safe.dg-atmosphere-home .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-logo:nth-child(n) .dg-software-mark{
 background:
  radial-gradient(circle at 25% 20%,rgba(255,255,255,.58) 0%,rgba(255,255,255,.14) 34%,transparent 56%),
  radial-gradient(circle at 44% 39%,
   rgba(var(--dg-v23-orb-rgb,102,157,220),.28) 0%,
   rgba(var(--dg-v23-orb-rgb,102,157,220),.17) 46%,
   rgba(var(--dg-v23-orb-rgb,102,157,220),.09) 79%,
   rgba(60,104,158,.06) 100%)!important;
 border:1px solid rgba(var(--dg-v23-orb-rgb,102,157,220),.34)!important;
 box-shadow:
  inset 0 1px 10px rgba(255,255,255,.38),
  inset -9px -14px 27px rgba(57,91,134,.09),
  0 14px 34px rgba(38,83,135,.12),
  0 0 0 7px rgba(var(--dg-v23-orb-rgb,102,157,220),.025)!important;
 backdrop-filter:none!important;
}
/* Override the desktop WebGL mark's older white/flat material rules while
   retaining the actual 3D sphere, its shading, and animated Three.js ring. */
html.dg-v23-spheres-webgl body.dg-bg-safe .dg-scene[data-stage="work"] .dg-software-logo .dg-software-mark{
 background:radial-gradient(circle at 29% 24%,rgba(255,255,255,.18),rgba(var(--dg-v23-orb-rgb,102,157,220),.045) 66%,transparent 100%)!important;
 border-color:rgba(var(--dg-v23-orb-rgb,102,157,220),.18)!important;
}
html.dg-v23-spheres-webgl body.dg-bg-safe .dg-scene[data-stage="work"] .dg-software-logo:not(.dg-v9-selected) .dg-v23-sphere-canvas{
 opacity:.66!important;
}
html.dg-v23-spheres-webgl body.dg-bg-safe .dg-scene[data-stage="work"] .dg-software-logo.dg-v9-selected .dg-v23-sphere-canvas{
 opacity:.91!important;
}
body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-software-logo:not(.dg-v9-selected) .dg-software-mark{
 opacity:.83;
}
body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-software-logo.dg-v9-selected .dg-software-mark{
 opacity:1;
 box-shadow:
  inset 0 2px 13px rgba(255,255,255,.48),
  0 20px 42px rgba(var(--dg-v23-orb-rgb,102,157,220),.17),
  0 0 0 9px rgba(var(--dg-v23-orb-rgb,102,157,220),.05)!important;
}
body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-software-logo .dg-software-mark img{
 width:75%!important;height:75%!important;object-fit:contain!important;
 opacity:1!important;
}
/* Local, slow breathing only: 'translate' is independent of the 3D
   carousel 'transform' managed by JS. Animations pause off-stage. */
@media(prefers-reduced-motion:no-preference){
 body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-software-logo .dg-software-mark{
  animation:dg-v39-orbit-breathe 9.2s ease-in-out infinite!important;
  animation-play-state:paused!important;
 }
 body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"].dg-scene-active .dg-software-logo .dg-software-mark{
  animation-play-state:running!important;
 }
 body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-software-logo:nth-child(2) .dg-software-mark{
  animation-duration:10.1s!important;animation-delay:-3s!important;
 }
 body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-software-logo:nth-child(3) .dg-software-mark{
  animation-duration:8.4s!important;animation-delay:-5.1s!important;
 }
 body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-software-logo:nth-child(4) .dg-software-mark{
  animation-duration:9.7s!important;animation-delay:-6.7s!important;
 }
 body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-software-logo:nth-child(5) .dg-software-mark{
  animation-duration:10.7s!important;animation-delay:-1.5s!important;
 }
 body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-software-logo:nth-child(6) .dg-software-mark{
  animation-duration:8.9s!important;animation-delay:-4.2s!important;
 }
}
@keyframes dg-v39-orbit-breathe{
 0%,100%{translate:0 0}
 50%{translate:0 -5px}
}
/* On mobile the sphere is the stable translucent CSS glass, not the
   problematic old offscreen GPU atlas. Its existing orbit halo can move. */
@media(max-width:700px) and (prefers-reduced-motion:no-preference){
 body.dg-bg-safe.dg-atmosphere-home .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-collection{
  height:clamp(180px,23svh,213px)!important;
 }
 body.dg-bg-safe.dg-atmosphere-home .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-logo:nth-child(n){
  width:min(46%,154px)!important;
  height:clamp(152px,20svh,180px)!important;
  gap:4px!important;
  top:46%!important;
 }
 body.dg-bg-safe.dg-atmosphere-home .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-logo:nth-child(n) .dg-software-mark{
  width:min(121px,78%)!important;
  height:auto!important;
  aspect-ratio:1/1;
 }
 body.dg-bg-safe.dg-atmosphere-home .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-logo{
  scale:.88!important;
 }
 body.dg-bg-safe.dg-atmosphere-home .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-logo.dg-v9-selected{
  scale:.99!important;
 }
 body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-software-logo .dg-software-mark{
  animation-duration:10s!important;
 }
 body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-software-logo.dg-v9-selected .dg-software-mark::before{
  inset:-11%;
  border:1px solid rgba(var(--dg-v23-orb-rgb,102,157,220),.34)!important;
  background:radial-gradient(ellipse at center,rgba(var(--dg-v23-orb-rgb,102,157,220),.07),transparent 73%)!important;
  animation:dg-v39-local-ring 26s linear infinite;
 }
}
@keyframes dg-v39-local-ring{
 from{transform:scale(1.16) rotateX(68deg) rotateZ(-16deg)}
 to{transform:scale(1.16) rotateX(68deg) rotateZ(344deg)}
}
/* Match the vertical rhythm to actual mobile real estate, and keep all
   interaction controls comfortably visible. */
body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-v16-product-info{
 border-radius:14px!important;
 background:rgba(237,247,255,.90)!important;
 border-color:rgba(77,117,169,.27)!important;
 box-shadow:0 14px 34px rgba(24,70,121,.12)!important;
}
body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-v16-product-info strong{
 color:#143f70!important;
 letter-spacing:-.035em!important;
}
body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-v16-product-description{
 color:#3b5b7c!important;
 line-height:1.51!important;
}
body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-v16-product-promise{
 color:#174b86!important;
}
body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-v16-product-features li{
 background:rgba(216,233,250,.70)!important;
 color:#245886!important;
 border-color:rgba(83,133,186,.23)!important;
}
/* Use a consistent accessible button grammar; keep the carousel's direct
   click/touch actions and active item indicators. */
body.dg-bg-safe.dg-atmosphere-home .dg-journey .dg-scene-link{
 border-radius:10px!important;
 min-height:43px!important;
 font-weight:650!important;
 transition:background-color .2s ease,border-color .2s ease!important;
}
body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-v9-carousel-controls>button{
 min-height:39px!important;
 border-radius:12px!important;
 background:rgba(232,243,255,.96)!important;
 color:#143e71!important;
 border:1px solid rgba(62,108,166,.32)!important;
 box-shadow:0 4px 12px rgba(35,88,147,.07)!important;
}
body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-v9-carousel-controls>button:is(:hover,:focus-visible){
 background:#d6e9ff!important;border-color:#3171bb!important;
}
body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-v9-carousel-controls .dg-v14-item-choice{
 background:rgba(218,234,251,.73)!important;
 border:1px solid rgba(56,111,181,.29)!important;
 color:#245589!important;
}
body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-v9-carousel-controls .dg-v14-item-choice.is-active{
 background:#1565dc!important;border-color:#1565dc!important;
 color:#fff!important;
}
body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-v10-carousel-open{
 background:#1168dd!important;
 color:#fff!important;
 border-radius:10px!important;
 border-color:#1168dd!important;
 font-weight:650!important;
 min-height:38px!important;
}
body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-v10-carousel-open:is(:hover,:focus-visible){
 background:#0854b8!important;border-color:#0854b8!important;
}
body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] a:focus-visible,
body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] button:focus-visible{
 outline:2px solid #155fcb!important;outline-offset:3px!important;
}
@media(max-width:700px){
 body.dg-bg-safe.dg-atmosphere-home .dg-scene:is([data-stage="ai"],[data-stage="work"]) .dg-scene-copy h2{
  font-size:clamp(35px,9.3vw,49px)!important;
  margin-block:11px 14px!important;
  line-height:1.05!important;
  letter-spacing:-.062em!important;
 }
 body.dg-bg-safe.dg-atmosphere-home .dg-scene:is([data-stage="ai"],[data-stage="work"]) .dg-scene-copy>p{
  font-size:clamp(12.5px,3.35vw,15px)!important;
  line-height:1.49!important;
  max-width:44ch!important;
 }
 body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-v16-product-info{
  padding:12px 13px!important;
  gap:7px!important;
  margin-top:8px!important;
 }
 body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-v9-carousel-controls>button{
  min-height:36px!important;padding:7px 9px!important;
 }
 body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-v10-carousel-open{
  min-height:34px!important;
 }
}
@media(max-width:360px){
 body.dg-bg-safe.dg-atmosphere-home .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-logo:nth-child(n) .dg-software-mark{
  width:min(102px,74%)!important;
 }
 body.dg-bg-safe.dg-atmosphere-home .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-collection{
  height:177px!important;
 }
}
@media(prefers-reduced-motion:reduce){
 body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-software-mark,
 body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="work"] .dg-software-mark::before{
  animation:none!important;translate:none!important;
 }
}


/* Agent cards share the same optical discipline as the software gallery.
   Only the chosen agent gently breathes; the native 3D card positioning
   stays completely under the original carousel controller. */
body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="ai"] .dg-agent-visual img{
 border-radius:10px!important;
 box-shadow:0 18px 42px rgba(0,16,52,.34),0 0 0 1px rgba(148,201,255,.25)!important;
}
body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="ai"] .dg-agent-visual.dg-v9-selected img{
 box-shadow:0 23px 52px rgba(15,61,141,.39),0 0 0 1px rgba(161,215,255,.54)!important;
}
@media(prefers-reduced-motion:no-preference){
 body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="ai"] .dg-agent-visual img{
  animation:dg-v39-agent-breathe 10.5s ease-in-out infinite;
  animation-play-state:paused;
 }
 body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="ai"].dg-scene-active .dg-agent-visual.dg-v9-selected img{
  animation-play-state:running;
 }
}
@keyframes dg-v39-agent-breathe{
 0%,100%{translate:0 0}
 50%{translate:0 -3px}
}
@media(prefers-reduced-motion:reduce){
 body.dg-bg-safe.dg-atmosphere-home .dg-scene[data-stage="ai"] .dg-agent-visual img{
  animation:none!important;translate:none!important;
 }
}
