/* DIGIGROUPE — shared spatial world
   The WebGL field anchors to the positions of the *actual* HTML products.
   Native links stay accessible, but the objects no longer sit on opaque cards. */

/* Material is continuous: translucent pale mist instead of a full-size paper
   rectangle that hides the canvas when business products enter the scene. */
.dg-journey.dg-journey-ready .dg-journey-backdrop{
 background:radial-gradient(ellipse at 8% 60%,rgba(238,247,255,.51),rgba(226,240,255,.22) 57%,transparent 88%)!important;
 opacity:calc(var(--dg-journey-light,0) * .36)!important;
}
.dg-journey.dg-journey-ready .dg-journey-backdrop::before{
 opacity:.055!important;
 background-size:135px 135px!important;
}
#dg-cinematic-stage[data-chapter="work"]{
 opacity:.93!important;
}
#dg-cinematic-stage[data-chapter="work"] canvas{
 opacity:.72!important;
}
#dg-cinematic-stage[data-chapter="ai"],
#dg-cinematic-stage[data-chapter="flow"],
#dg-cinematic-stage[data-chapter="web"],
#dg-cinematic-stage[data-chapter="apps"]{opacity:.97!important;}
.dg-journey.dg-journey-ready .dg-scene[data-stage="work"] .dg-scene-inner{
 overflow:visible;position:relative;
}
.dg-journey.dg-journey-ready .dg-scene[data-stage="work"] .dg-scene-copy::before{
 background:radial-gradient(ellipse at 32% 50%,rgba(236,247,255,.80),rgba(232,242,255,.34) 65%,transparent 88%)!important;
}

/* Brand marks are independent volumetric objects arranged in a loose
   orbital constellation. No flat five-card software dashboard. */
.dg-scene[data-stage="work"] .dg-software-collection{
 display:block!important;
 position:relative;
 width:100%;
 height:min(61svh,540px);
 min-height:385px;
 perspective:1400px;
 transform-style:preserve-3d;
}
.dg-scene[data-stage="work"] .dg-software-logo{
 position:absolute!important;
 display:flex!important;
 align-items:center;
 justify-content:center;
 gap:11px!important;
 top:auto;left:auto;
 width:30.5%!important;
 min-width:0;
 min-height:0!important;
 height:43%!important;
 padding:5px 4px!important;
 background:transparent!important;
 border:0!important;
 box-shadow:none!important;
 transform-style:preserve-3d;
 --dg-rest-depth:0px;
 --dg-rest-tilt:0deg;
 transform:
   translate3d(calc((1 - var(--dg-scene-amount,1)) * var(--dg-lx)),
               calc((1 - var(--dg-scene-amount,1)) * var(--dg-ly)),
               calc(var(--dg-rest-depth) + (var(--dg-scene-amount,1) - 1) * 260px))
   rotateY(calc(var(--dg-rest-tilt) + (1 - var(--dg-scene-amount,1)) * var(--dg-lr)))
   scale(calc(.75 + var(--dg-scene-amount,1) * .25))!important;
 opacity:calc(.22 + var(--dg-scene-amount,1) * .78);
}
.dg-scene[data-stage="work"] .dg-software-logo:hover{
 filter:brightness(1.08) drop-shadow(0 0 18px rgba(70,147,244,.24));
}
.dg-scene[data-stage="work"] .dg-software-logo:nth-child(1){left:0;top:0;--dg-rest-depth:44px;--dg-rest-tilt:-9deg}
.dg-scene[data-stage="work"] .dg-software-logo:nth-child(2){left:35%;top:6%;--dg-rest-depth:95px;--dg-rest-tilt:4deg}
.dg-scene[data-stage="work"] .dg-software-logo:nth-child(3){left:70%;top:0;--dg-rest-depth:-15px;--dg-rest-tilt:9deg}
.dg-scene[data-stage="work"] .dg-software-logo:nth-child(4){left:17%;top:53%;--dg-rest-depth:130px;--dg-rest-tilt:-7deg}
.dg-scene[data-stage="work"] .dg-software-logo:nth-child(5){left:55%;top:53%;--dg-rest-depth:43px;--dg-rest-tilt:8deg}
.dg-scene[data-stage="work"] .dg-software-mark{
 position:relative;width:clamp(85px,10vw,149px)!important;height:clamp(85px,10vw,149px)!important;
 display:grid;place-items:center;
 border-radius:50%;
 background:radial-gradient(circle at 34% 27%,rgba(255,255,255,.72),rgba(237,248,255,.43) 55%,rgba(89,155,242,.07) 76%,transparent 95%);
 border:1px solid rgba(75,139,229,.14);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 15px 38px rgba(31,89,174,.12),0 0 0 14px rgba(138,200,252,.035);
 backdrop-filter:blur(2px);
 transform-style:preserve-3d;
 animation:dg-orbit-lift 6.7s ease-in-out infinite;
}
.dg-scene[data-stage="work"] .dg-software-logo:nth-child(2) .dg-software-mark{animation-delay:-1.5s}
.dg-scene[data-stage="work"] .dg-software-logo:nth-child(3) .dg-software-mark{animation-delay:-3.4s}
.dg-scene[data-stage="work"] .dg-software-logo:nth-child(4) .dg-software-mark{animation-delay:-2.4s}
.dg-scene[data-stage="work"] .dg-software-logo:nth-child(5) .dg-software-mark{animation-delay:-4.2s}
.dg-scene[data-stage="work"] .dg-software-mark::before{
 content:"";position:absolute;inset:-11px;border-radius:50%;
 border:1px solid rgba(66,125,208,.14);
 transform:rotateX(66deg);pointer-events:none;
}
.dg-scene[data-stage="work"] .dg-software-mark img{
 width:64%!important;max-width:none!important;height:63%!important;max-height:none!important;
 object-fit:contain;
 filter:drop-shadow(0 6px 7px rgba(21,57,112,.13));
}
.dg-scene[data-stage="work"] .dg-software-label{
 gap:4px!important;transform:translateZ(30px);
}
.dg-scene[data-stage="work"] .dg-software-label strong{font-size:clamp(12px,1.08vw,17px)!important}
.dg-scene[data-stage="work"] .dg-software-label small{font-size:10px!important;color:#5279ae!important}

/* Human-readable agent artwork remains real clickable DOM, freed from
   thumbnail/card frames and given depth while the world connects to it. */
.dg-scene[data-stage="ai"] .dg-agents-showcase{
 position:relative;isolation:isolate;
}
.dg-scene[data-stage="ai"] .dg-agents-grid{
 gap:clamp(13px,1.8vw,27px)!important;
 perspective:1500px;transform-style:preserve-3d;
}
.dg-scene[data-stage="ai"] .dg-agent-visual{
 background:transparent!important;
 border:0!important;
 box-shadow:none!important;
 overflow:visible!important;
 isolation:isolate;
 --dg-rest-z:0px;--dg-rest-yaw:0deg;
 transform:
    translate3d(calc((1 - var(--dg-scene-amount,1)) * var(--dg-ax)),
                calc((1 - var(--dg-scene-amount,1)) * var(--dg-ay)),
                calc(var(--dg-rest-z) + (var(--dg-scene-amount,1) - 1) * 190px))
    rotateY(calc(var(--dg-rest-yaw) + (1 - var(--dg-scene-amount,1)) * var(--dg-r)))
    scale(calc(.80 + var(--dg-scene-amount,1) * .20))!important;
}
.dg-scene[data-stage="ai"] .dg-agent-visual:nth-child(1){--dg-rest-z:46px;--dg-rest-yaw:-5deg}
.dg-scene[data-stage="ai"] .dg-agent-visual:nth-child(2){--dg-rest-z:105px;--dg-rest-yaw:2deg}
.dg-scene[data-stage="ai"] .dg-agent-visual:nth-child(3){--dg-rest-z:24px;--dg-rest-yaw:6deg}
.dg-scene[data-stage="ai"] .dg-agent-visual:nth-child(4){--dg-rest-z:5px;--dg-rest-yaw:-7deg}
.dg-scene[data-stage="ai"] .dg-agent-visual:nth-child(5){--dg-rest-z:74px;--dg-rest-yaw:2deg}
.dg-scene[data-stage="ai"] .dg-agent-visual:nth-child(6){--dg-rest-z:28px;--dg-rest-yaw:7deg}
.dg-scene[data-stage="ai"] .dg-agent-visual img{
 display:block;width:100%;height:auto;
 aspect-ratio:1/1.13;object-fit:cover;
 border-radius:3px;
 box-shadow:0 23px 55px rgba(0,13,47,.35),0 0 0 1px rgba(151,218,255,.18);
 -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 78%,rgba(0,0,0,.6) 92%,transparent 100%);
 mask-image:linear-gradient(to bottom,#000 0%,#000 78%,rgba(0,0,0,.6) 92%,transparent 100%);
}
.dg-scene[data-stage="ai"] .dg-agent-visual>span{
 position:relative;z-index:1;
 margin:-34px 4px 0;padding:7px 7px 5px!important;
 background:transparent!important;
 text-shadow:0 2px 9px #01112e;
}
.dg-scene[data-stage="ai"] .dg-agent-visual small{color:#a9ddff!important}
.dg-scene[data-stage="ai"] .dg-agent-visual:hover img{filter:brightness(1.12) saturate(1.12)}

/* Workflows stay real buttons, but their surrounding dashboard is gone. */
.dg-scene[data-stage="flow"] .dg-ui-flow,
.dg-journey.dg-journey-ready .dg-scene[data-stage="flow"] .dg-ui-flow{
 border:0!important;background:transparent!important;
 box-shadow:none!important;overflow:visible!important;
}
.dg-scene[data-stage="flow"] .dg-ui-flow .dg-ui-inner{
 padding:0!important;overflow:visible!important;
}
.dg-scene[data-stage="flow"] .dg-flow-chain{perspective:1400px}
.dg-scene[data-stage="flow"] .dg-flow-chain button{
 border-color:rgba(97,174,255,.36)!important;
 background:linear-gradient(140deg,rgba(10,61,139,.47),rgba(4,28,79,.22))!important;
 box-shadow:0 12px 43px rgba(2,38,109,.17),inset 0 0 23px rgba(69,167,245,.075)!important;
 backdrop-filter:blur(4px);
 border-radius:6px;
}
.dg-scene[data-stage="flow"] .dg-ui-result{
 border:1px solid rgba(90,176,245,.23)!important;
 border-radius:5px;
 box-shadow:0 18px 45px rgba(2,13,49,.19)!important;
 backdrop-filter:blur(9px);
 background:rgba(5,31,81,.58)!important;
}
.dg-scene[data-stage="flow"] .dg-flow-chain>i{box-shadow:0 0 15px rgba(104,201,255,.75)!important}

/* The two editorial images become lightweight floating surfaces. */
.dg-scene[data-stage="web"] .dg-service-image img,
.dg-scene[data-stage="apps"] .dg-service-image img{
 border:0!important;
 box-shadow:0 38px 75px rgba(0,14,49,.23)!important;
 border-radius:3px;
}
.dg-scene[data-stage="web"] .dg-service-image::before,
.dg-scene[data-stage="apps"] .dg-service-image::before{
 content:"";position:absolute;inset:12% -8% -13% 4%;z-index:-1;
 background:radial-gradient(ellipse,rgba(60,145,255,.22),transparent 72%);
 filter:blur(19px);pointer-events:none;
}

/* The camera's spatial objects drift in their own light, not with a stack
   of cards. Disable on accessibility / battery-sensitive reduced motion. */
@keyframes dg-orbit-lift{
  0%,100%{transform:translate3d(0,0,0) rotateX(1deg)}
  50%{transform:translate3d(0,-8px,9px) rotateX(4deg)}
}
@media(max-width:900px){
 .dg-scene[data-stage="work"] .dg-software-collection{height:min(54svh,420px);min-height:330px}
 .dg-scene[data-stage="work"] .dg-software-mark{width:clamp(69px,10vw,105px)!important;height:clamp(69px,10vw,105px)!important}
 .dg-scene[data-stage="ai"] .dg-agents-grid{gap:11px!important}
}
@media(max-width:700px){
 .dg-scene[data-stage="work"] .dg-software-collection{height:min(37svh,310px);min-height:200px}
 .dg-scene[data-stage="work"] .dg-software-logo{gap:1px!important;height:45%!important;width:31%!important;padding:0!important}
 .dg-scene[data-stage="work"] .dg-software-logo:nth-child(1){left:0;top:0}
 .dg-scene[data-stage="work"] .dg-software-logo:nth-child(2){left:35%;top:0}
 .dg-scene[data-stage="work"] .dg-software-logo:nth-child(3){left:70%;top:0}
 .dg-scene[data-stage="work"] .dg-software-logo:nth-child(4){left:19%;top:50%}
 .dg-scene[data-stage="work"] .dg-software-logo:nth-child(5){left:54%;top:50%}
 .dg-scene[data-stage="work"] .dg-software-mark{width:clamp(54px,15vw,77px)!important;height:clamp(54px,15vw,77px)!important}
 .dg-scene[data-stage="work"] .dg-software-label strong{font-size:9px!important}
 .dg-scene[data-stage="work"] .dg-software-label small{font-size:8px!important}
 .dg-scene[data-stage="ai"] .dg-agent-visual{--dg-rest-z:0px!important;--dg-rest-yaw:0deg!important}
 .dg-scene[data-stage="ai"] .dg-agent-visual img{box-shadow:0 7px 19px rgba(1,16,47,.3)}
 .dg-scene[data-stage="ai"] .dg-agent-visual>span{margin:-21px 0 0;padding:4px!important}
 .dg-scene[data-stage="ai"] .dg-agents-grid{gap:9px!important}
 .dg-scene[data-stage="ai"] .dg-agent-visual strong{font-size:11px!important}
}
@media(max-width:360px){
 .dg-scene[data-stage="work"] .dg-software-collection{min-height:195px}
 .dg-scene[data-stage="work"] .dg-software-mark{width:50px!important;height:50px!important}
 .dg-scene[data-stage="work"] .dg-software-label small{display:none}
}
@media(prefers-reduced-motion:reduce){
 .dg-software-mark{animation:none!important}
 .dg-agent-visual,.dg-software-logo{transform:none!important}
}

/* These original illustrated agent posters already contain their title and
   a summary. Do not repeat that writing as another overlay on the artwork. */
.dg-scene[data-stage="ai"] .dg-agent-visual>span{display:none!important}
.dg-scene[data-stage="ai"] .dg-agent-visual img{
 mask-image:linear-gradient(to bottom,#000 0%,#000 91%,rgba(0,0,0,.6) 97%,transparent 100%);
 -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 91%,rgba(0,0,0,.6) 97%,transparent 100%);
}
/* Avoid drawing solid dark grid strokes through the light floating logos. */
.dg-scene[data-stage="work"] .dg-software-logo:focus-visible{outline:2px solid #1069e9;outline-offset:5px;border-radius:12px}
@media(prefers-reduced-motion:reduce){
 .dg-scene[data-stage="ai"] .dg-agent-visual,
 .dg-scene[data-stage="work"] .dg-software-logo,
 .dg-scene[data-stage="web"] .dg-service-image,
 .dg-scene[data-stage="apps"] .dg-service-image{
   transform:none!important;opacity:1!important;
 }
 .dg-software-mark{animation:none!important}
}
