/* DIGIGROUPE HOME | Automation scene: user-supplied film follows native scroll.
   Isolated to first home service chapter; no overrides to /services/ia-automation.html. */
#dg-scene-flow{--dg-home-blue:#3b74ff;--dg-home-night:#040d28;--dg-home-ice:#a5d1ff}
#dg-scene-flow .dg-scene-inner{position:relative;display:flex;align-items:center;justify-content:flex-start;min-height:100svh;isolation:isolate}
#dg-scene-flow .dg-scene-copy{position:relative;z-index:8;flex:0 0 min(44%,660px);width:min(44%,660px);max-width:660px;padding-bottom:0}
#dg-scene-flow .dg-scene-copy h2{font-size:clamp(62px,6.4vw,116px)!important;line-height:.98!important;letter-spacing:-.085em!important;text-shadow:0 4px 34px rgba(1,6,25,.52)}
#dg-scene-flow .dg-scene-copy h2 em{color:#98bfff!important;text-shadow:0 0 26px rgba(22,99,255,.2)}
#dg-scene-flow .dg-scene-copy>p{color:#e3edff!important;max-width:480px;font-size:clamp(16px,1.3vw,21px)!important;text-shadow:0 2px 16px rgba(3,10,29,.7)}
#dg-scene-flow .dg-scene-link{background:rgba(13,57,170,.64)!important;color:#fff!important;border:1px solid rgba(124,182,255,.48)!important;box-shadow:0 16px 40px rgba(2,9,32,.3)!important;backdrop-filter:blur(12px)}
#dg-scene-flow .dg-scene-link:hover{background:#1255f3!important;border-color:#a8c9ff!important}
#dg-scene-flow .dg-scene-interface{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;min-height:0;perspective:none;transform:none!important;pointer-events:none!important;z-index:1}
#dg-scene-flow .dg-scene-interface:before{display:none!important}
#dg-scene-flow .dg-home-scroll-film{position:absolute;inset:0;overflow:hidden;background:radial-gradient(ellipse at 68% 48%,#173caa 0%,#0a205f 38%,#05132f 72%,#020a1b 100%);color:white;isolation:isolate}
#dg-scene-flow .dg-home-scroll-film:before{content:"";position:absolute;z-index:1;inset:0;opacity:.21;pointer-events:none;background:radial-gradient(circle at 76% 42%,rgba(36,111,255,.35),transparent 48%);mix-blend-mode:screen}
#dg-scene-flow .dg-home-scroll-video{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:61% 50%;pointer-events:none;z-index:0;transform:scale(1.035);background:transparent}
#dg-scene-flow .dg-home-scroll-film-shade{position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(90deg,#02091e 0%,rgba(2,10,31,.97) 18%,rgba(3,11,34,.72) 36%,rgba(3,11,34,.14) 62%,rgba(3,11,34,.01) 90%),linear-gradient(0deg,rgba(1,8,27,.83) 0%,transparent 22%,transparent 69%,rgba(1,8,27,.4) 100%);box-shadow:inset 0 -12px 100px rgba(1,7,25,.24)}
#dg-scene-flow .dg-home-scroll-film-hud{position:absolute;bottom:clamp(35px,5.5vh,70px);right:clamp(28px,6vw,96px);display:flex;align-items:center;justify-content:flex-end;gap:16px;width:min(550px,50%);z-index:4;pointer-events:none;color:#d9eaff;font:600 10px/1.4 "DM Mono",monospace;letter-spacing:.11em;text-transform:uppercase;text-shadow:0 2px 10px #031030}
#dg-scene-flow .dg-home-scroll-live{flex:none;display:flex;align-items:center;gap:9px}
#dg-scene-flow .dg-home-scroll-live i{width:6px;height:6px;border-radius:50%;background:#74d6ff;box-shadow:0 0 13px #6fceff}
#dg-scene-flow .dg-home-scroll-film-progress{width:clamp(90px,12vw,180px);height:2px;display:block;flex:none;background:rgba(147,184,253,.4);overflow:hidden}
#dg-scene-flow .dg-home-scroll-film-progress i{display:block;height:100%;width:100%;background:linear-gradient(90deg,#4b83ff,#b3edff);box-shadow:0 0 15px #78c6ff;transform:scaleX(0);transform-origin:left;will-change:transform}
#dg-scene-flow .dg-home-scroll-film-hud>span:last-child{white-space:nowrap;min-width:41px;color:#a8d1ff}
#dg-scene-flow .dg-home-scroll-fallback{display:none!important}
body.dg-home-scroll-film-failed #dg-scene-flow .dg-home-scroll-film{display:none!important}
body.dg-home-scroll-film-failed #dg-scene-flow .dg-home-scroll-fallback{display:block!important;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(49vw,800px);pointer-events:auto}
body.dg-home-scroll-film-failed #dg-scene-flow .dg-scene-interface{pointer-events:auto!important}
@media(min-width:1550px){
 #dg-scene-flow .dg-scene-copy{flex-basis:43%;width:43%}
 #dg-scene-flow .dg-home-scroll-video{object-position:66% 50%}
}
@media(min-width:701px) and (max-width:1150px){
 #dg-scene-flow .dg-scene-copy{flex-basis:49%;width:49%}
 #dg-scene-flow .dg-scene-copy h2{font-size:clamp(53px,6.4vw,82px)!important}
 #dg-scene-flow .dg-scene-copy>p{max-width:420px;font-size:15px!important}
 #dg-scene-flow .dg-home-scroll-film-shade{background:linear-gradient(90deg,#02091e 0%,rgba(3,10,30,.97) 22%,rgba(3,11,34,.81) 42%,rgba(3,11,34,.18) 75%),linear-gradient(0deg,rgba(1,8,27,.84),transparent 25%,transparent 75%,rgba(1,8,27,.5))}
 #dg-scene-flow .dg-home-scroll-film-hud{width:55%;right:30px}
}
@media(max-width:700px){
 #dg-scene-flow{background:#030a20}
 #dg-scene-flow .dg-scene-inner{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;min-height:100svh;gap:12px;width:calc(100% - 36px);padding:clamp(97px,13svh,123px) 0 22px}
 #dg-scene-flow .dg-scene-copy{width:100%;max-width:540px;flex:0 0 auto;padding:0;position:relative;z-index:8}
 #dg-scene-flow .dg-scene-copy h2{font-size:clamp(48px,11.2vw,69px)!important;line-height:.98!important;margin:14px 0 15px!important}
 #dg-scene-flow .dg-scene-copy>p{font-size:clamp(13px,3.45vw,16px)!important;line-height:1.52!important;max-width:480px}
 #dg-scene-flow .dg-scene-link{margin-top:15px!important;min-height:39px;padding:10px 16px!important;font-size:12px!important}
 #dg-scene-flow .dg-scene-interface{position:relative!important;inset:auto!important;align-self:stretch;width:calc(100vw - 0px)!important;left:-18px;flex:0 0 auto;height:clamp(207px,34svh,320px)!important;margin-top:clamp(12px,3svh,32px);z-index:3}
 #dg-scene-flow .dg-home-scroll-film{inset:0!important;background:#06112f;box-shadow:0 0 60px rgba(37,77,179,.15)}
 #dg-scene-flow .dg-home-scroll-video{object-fit:contain;object-position:center;transform:none;width:100%;height:100%}
 #dg-scene-flow .dg-home-scroll-film-shade{background:linear-gradient(180deg,rgba(2,8,26,.72) 0%,transparent 19%,transparent 80%,rgba(2,8,26,.84) 100%),linear-gradient(90deg,#02091b 0%,transparent 4%,transparent 95%,#02091b)}
 #dg-scene-flow .dg-home-scroll-film-hud{bottom:12px;left:20px;right:20px;width:auto;gap:11px;font-size:8px;justify-content:space-between}
 #dg-scene-flow .dg-home-scroll-film-progress{flex:1;width:auto;max-width:130px;min-width:45px}
 #dg-scene-flow .dg-home-scroll-live{font-size:8px}
 #dg-scene-flow .dg-home-scroll-fallback{display:none!important}
 body.dg-home-scroll-film-failed #dg-scene-flow .dg-home-scroll-fallback{position:relative;top:auto;left:auto;transform:none;width:100%}
}
@media(max-width:390px) and (max-height:760px){
 #dg-scene-flow .dg-scene-inner{padding-top:85px;gap:8px}
 #dg-scene-flow .dg-scene-copy h2{font-size:43px!important;margin:9px 0 10px!important}
 #dg-scene-flow .dg-scene-copy>p{font-size:12px!important}
 #dg-scene-flow .dg-scene-link{margin-top:9px!important}
 #dg-scene-flow .dg-scene-interface{height:clamp(175px,31svh,230px)!important;margin-top:7px}
}
@media(prefers-reduced-motion:reduce){
 #dg-scene-flow .dg-home-scroll-film-hud{display:none}
 #dg-scene-flow .dg-home-scroll-video{pointer-events:auto;transform:none}
 #dg-scene-flow .dg-home-scroll-film{pointer-events:auto}
 #dg-scene-flow .dg-scene-interface{pointer-events:auto!important}
}

/* Keep the film visible for its full scroll timeline. The cinematic scene
   director crossfades UI panels early; this film owns its own late dissolve. */
.dg-journey.dg-journey-ready #dg-scene-flow .dg-scene-interface{opacity:1!important;visibility:visible!important}


/* V29: video in the second home chapter is autonomous, not scroll-scrubbed.
   Enlarge the apparent film and remove the heavy shade masking its visuals. */
#dg-scene-flow .dg-home-scroll-video{
  transform:scale(1.17);
  object-position:68% 50%;
  filter:brightness(1.09) saturate(1.12) contrast(1.035);
}
#dg-scene-flow .dg-home-scroll-film{
  background:radial-gradient(ellipse at 68% 46%,#2048b6 0%,#0b2866 52%,#04112b 100%);
}
#dg-scene-flow .dg-home-scroll-film::before{opacity:.09}
#dg-scene-flow .dg-home-scroll-film-shade{
  background:
    linear-gradient(90deg,rgba(2,10,30,.95) 0%,rgba(2,10,30,.83) 18%,rgba(2,10,30,.39) 38%,rgba(2,10,30,.08) 58%,transparent 79%),
    linear-gradient(0deg,rgba(2,10,30,.48),transparent 17%,transparent 82%,rgba(2,10,30,.19));
  box-shadow:inset 0 -12px 80px rgba(1,7,25,.15);
}
#dg-scene-flow .dg-home-scroll-film-hud{
  color:#daedff;
  text-shadow:0 2px 9px rgba(3,12,40,.7);
}
#dg-scene-flow .dg-home-scroll-film-progress i{
  background:linear-gradient(90deg,#5594ff,#b9f0ff);
}
@media(min-width:1550px){
 #dg-scene-flow .dg-home-scroll-video{object-position:69% 50%;transform:scale(1.20)}
}
@media(min-width:701px) and (max-width:1150px){
 #dg-scene-flow .dg-home-scroll-video{transform:scale(1.12);object-position:66% 50%}
 #dg-scene-flow .dg-home-scroll-film-shade{
  background:linear-gradient(90deg,rgba(2,10,30,.94),rgba(2,10,30,.79) 22%,rgba(2,10,30,.36) 45%,transparent 82%),
    linear-gradient(0deg,rgba(2,10,30,.35),transparent 22%,transparent 84%,rgba(2,10,30,.20));
 }
}
@media(max-width:700px){
 #dg-scene-flow .dg-scene-inner{
  padding-top:clamp(70px,9svh,96px);
  gap:8px;
 }
 #dg-scene-flow .dg-scene-copy h2{
  margin-top:9px!important;margin-bottom:11px!important;
 }
 #dg-scene-flow .dg-scene-copy>p{
  font-size:clamp(12px,3.3vw,15px)!important;
  line-height:1.48!important;
 }
 #dg-scene-flow .dg-scene-link{margin-top:10px!important}
 #dg-scene-flow .dg-scene-interface{
  height:clamp(285px,50svh,465px)!important;
  margin-top:clamp(2px,1.2svh,11px)!important;
  /* Align the full-bleed film with the actual viewport, not the
     content inset: otherwise the timer is cropped on the right. */
  left:-4.5vw!important;
 }
 #dg-scene-flow .dg-home-scroll-video{
  object-fit:cover!important;
  object-position:60% 50%!important;
  transform:scale(1.04)!important;
  filter:brightness(1.15) saturate(1.14) contrast(1.02);
 }
 #dg-scene-flow .dg-home-scroll-film-shade{
  background:linear-gradient(180deg,rgba(2,9,29,.36),transparent 22%,transparent 75%,rgba(2,9,29,.54));
  box-shadow:inset 0 0 36px rgba(1,12,39,.12);
 }
 #dg-scene-flow .dg-home-scroll-film-hud{
  bottom:14px;left:15px;right:15px;
  font-size:8px;letter-spacing:.04em;
 }
 #dg-scene-flow .dg-home-scroll-film-progress{max-width:90px}
}
@media(max-width:390px) and (max-height:760px){
 #dg-scene-flow .dg-scene-inner{padding-top:65px;gap:5px}
 #dg-scene-flow .dg-scene-copy h2{font-size:42px!important;margin:6px 0 8px!important}
 #dg-scene-flow .dg-scene-copy>p{font-size:11.7px!important}
 #dg-scene-flow .dg-scene-link{margin-top:7px!important}
 #dg-scene-flow .dg-scene-interface{
  height:clamp(270px,47svh,355px)!important;
  margin-top:2px!important;
 }
 #dg-scene-flow .dg-home-scroll-film-hud{font-size:7px}
}
@media(prefers-reduced-motion:reduce){
 #dg-scene-flow .dg-home-scroll-video{transform:none!important;filter:none!important}
 #dg-scene-flow .dg-home-scroll-film{pointer-events:auto!important}
 #dg-scene-flow .dg-home-scroll-film-shade{pointer-events:none}
}
