/* DIGIGROUPE — commercial home, visual-first v5
   Clear priority: automations/AI > business software > bespoke web/apps.
   Keep the original video, agents' portraits and software brand logos. */
:root{--dg-space:clamp(20px,4vw,70px)}
.header{z-index:180!important}
.hero{min-height:100svh!important;background:#020918!important}
.hero .dg-hero-inner{width:min(calc(100% - 80px),1480px)!important;display:grid!important;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);grid-template-rows:auto 1fr auto;align-items:center;column-gap:clamp(24px,5vw,95px);padding:clamp(115px,10vh,160px) 0 42px!important;min-height:100svh}
.dg-hero-overline{grid-column:1/-1;grid-row:1;margin:0 0 25px!important;color:#9dbce9!important}
.dg-hero-main{grid-column:1;grid-row:2;display:flex!important;flex-direction:column;align-items:flex-start;justify-content:center;gap:26px!important;padding:0!important;min-width:0}
.dg-hero-title-wrap,.dg-hero-detail{width:100%;max-width:720px}
.hero #hero-title{font:500 clamp(70px,7.2vw,116px)/1.02 'Inter','Helvetica Neue',Arial,sans-serif!important;letter-spacing:-.085em!important;margin:16px 0!important}
.hero #hero-title em{color:#84b9ff!important}
.dg-hero-detail{padding:0!important;margin:0!important}
.dg-hero-detail p{max-width:450px;font:400 clamp(15px,1.25vw,19px)/1.6 'Inter',sans-serif!important}
.dg-hero-actions{margin-top:24px!important}
.dg-hero-film{grid-column:2;grid-row:2;position:relative;width:100%;aspect-ratio:1/1.03;overflow:hidden;align-self:center;isolation:isolate;border:1px solid rgba(105,157,239,.22);background:linear-gradient(125deg,#08173a,#09266a);box-shadow:0 40px 110px rgba(4,28,79,.32)}
.dg-hero-film::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 55%,transparent 40%,rgba(1,6,20,.20));z-index:1}
.dg-hero-film-video{display:block;width:100%;height:100%;object-fit:cover;object-position:center;background:#071b42}
.dg-hero-film-label{position:absolute;z-index:2;left:23px;bottom:22px;padding:10px 12px;background:rgba(4,15,40,.72);font:500 10px 'DM Mono',monospace;color:#d5e8ff;letter-spacing:.07em}
.dg-hero-caption{grid-column:1/-1;grid-row:3;margin:35px 0 0!important}
.dg-journey.dg-journey-ready .dg-scene-inner{width:min(calc(100% - 95px),1460px)!important;align-items:center}
.dg-scene-copy h2,.dg-scene[data-stage="work"] .dg-scene-copy h2,.dg-scene[data-stage="contact"] .dg-scene-copy h2{font-size:clamp(67px,6.7vw,113px)!important;line-height:1.02!important;text-wrap:balance;letter-spacing:-.085em!important}
.dg-scene-copy>p{font-size:clamp(15px,1.25vw,19px)!important;line-height:1.52!important;max-width:440px!important}
.dg-scene-copy h2 em{color:#8ec4ff!important}
.dg-scene .dg-scene-copy{isolation:isolate;position:relative}
.dg-scene .dg-scene-copy::before{content:"";pointer-events:none;position:absolute;z-index:-1;inset:-40px -50px -40px -60px;background:radial-gradient(ellipse at 30% 40%,rgba(2,8,25,.76),rgba(2,8,25,.4) 52%,transparent 75%)}
.dg-scene[data-stage="work"] .dg-scene-copy::before{background:radial-gradient(ellipse at 30% 50%,rgba(235,244,255,.92),rgba(235,244,255,.44) 60%,transparent)}
.dg-journey.dg-journey-ready .dg-scene:not(.dg-scene-active){pointer-events:none;visibility:hidden!important}
.dg-scene-number{font-size:10px!important}
.dg-scene[data-stage="flow"] .dg-scene-inner{display:grid!important;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:5vw}
.dg-scene[data-stage="flow"] .dg-scene-copy{max-width:650px}
.dg-scene[data-stage="flow"] .dg-scene-copy h2{font-size:clamp(70px,6.8vw,112px)!important;margin:20px 0!important}
.dg-scene[data-stage="flow"] .dg-scene-interface{width:100%;margin:0}
.dg-scene[data-stage="flow"] .dg-flow-chain{gap:5px;margin:22px 0 24px;min-height:150px}
.dg-scene[data-stage="flow"] .dg-flow-chain button{min-height:128px;padding:13px 8px}
.dg-scene[data-stage="flow"] .dg-flow-chain button strong{font-size:16px}
.dg-scene[data-stage="flow"] .dg-flow-chain button small{font-size:9px}
.dg-scene[data-stage="flow"] .dg-flow-chain>i{flex-basis:8px}
.dg-scene[data-stage="flow"] .dg-ui-result{max-width:none;width:100%;min-height:98px;background:rgba(7,28,65,.85);border-color:rgba(126,195,255,.26)}
.dg-scene[data-stage="ai"] .dg-scene-inner{grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:clamp(26px,4vw,95px)}
.dg-agents-showcase{display:flex;flex-direction:column;gap:21px;width:100%}
.dg-agents-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(9px,1vw,16px)}
.dg-agent-visual{display:flex;flex-direction:column;min-width:0;position:relative;overflow:hidden;border:1px solid rgba(123,187,255,.25);background:#0b2247;color:#fff;text-decoration:none;transition:border-color .2s,transform .2s}
.dg-agent-visual:hover{border-color:#91d1ff;transform:translateY(-4px);color:#fff}
.dg-agent-visual img{width:100%;aspect-ratio:1/1.12;object-fit:cover;display:block;background:#102a55}
.dg-agent-visual>span{display:flex;flex-direction:column;gap:4px;padding:12px 13px;background:#081731}
.dg-agent-visual strong{font:600 clamp(13px,1.1vw,17px) 'Inter',sans-serif;letter-spacing:-.035em;color:#f7faff}
.dg-agent-visual small{font:500 10px 'DM Mono',monospace;color:#a0c2ec}
.dg-agents-all{align-self:flex-end;font:600 12px 'Inter',sans-serif;color:#a5d0ff;text-decoration:underline;text-underline-offset:5px}
.dg-agents-all:hover{color:#fff}
.dg-scene[data-stage="work"] .dg-scene-inner{grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:5vw}
.dg-scene[data-stage="work"] .dg-scene-copy h2,.dg-scene[data-stage="work"] .dg-scene-copy h2 em{color:#09285b!important}
.dg-scene[data-stage="work"] .dg-scene-copy h2 em{color:#1b5bd6!important}
.dg-software-collection{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:11px;width:100%}
.dg-software-logo{grid-column:span 2;min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:19px;min-height:215px;padding:22px 13px;border:1px solid rgba(25,81,160,.20);background:#fff;text-decoration:none;color:#0a2d61;box-shadow:0 16px 40px rgba(22,69,136,.08);transition:transform .2s,border-color .2s}
.dg-software-logo:nth-child(4),.dg-software-logo:nth-child(5){grid-column:span 3;min-height:190px}
.dg-software-logo:hover{transform:translateY(-6px);border-color:#3a80df;color:#0a2d61}
.dg-software-mark{display:flex;align-items:center;justify-content:center;height:88px;width:100%}
.dg-software-mark img{display:block;width:min(108px,55%);height:83px;object-fit:contain}
.dg-software-label{display:flex;flex-direction:column;text-align:center;gap:5px}
.dg-software-label strong{font:700 clamp(13px,1.15vw,18px) 'Inter',sans-serif;letter-spacing:-.04em}
.dg-software-label small{font:500 11px 'Inter',sans-serif;color:#5d7da9}
.dg-scene[data-stage="web"] .dg-scene-inner,.dg-scene[data-stage="apps"] .dg-scene-inner{grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:5vw}
.dg-service-image{margin:0;width:100%;position:relative;isolation:isolate}
.dg-service-image img{width:100%;display:block;aspect-ratio:1.42;object-fit:cover;border:1px solid rgba(143,194,248,.25);box-shadow:0 26px 70px rgba(0,22,70,.28)}
.dg-service-image figcaption{font:500 10px 'DM Mono',monospace;color:#9dbde7;letter-spacing:.07em;margin-top:15px}
.dg-scene[data-stage="method"] .dg-scene-copy h2{font-size:clamp(70px,8vw,126px)!important}
.dg-scene[data-stage="method"] .dg-scene-copy>p{max-width:690px!important}
.dg-scene[data-stage="contact"] .dg-scene-copy h2{font-size:clamp(66px,7.5vw,120px)!important}
.dg-journey.dg-journey-ready .dg-journey-beat{height:115svh}
.dg-journey.dg-journey-ready .dg-journey-beat[data-journey="work"]{height:140svh}
@media(max-width:1000px){
 .hero .dg-hero-inner{width:calc(100% - 52px)!important;gap:20px}
 .hero #hero-title{font-size:clamp(53px,7.4vw,79px)!important}
 .dg-journey.dg-journey-ready .dg-scene-inner{width:calc(100% - 52px)!important;gap:22px}
 .dg-agents-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .dg-software-logo{min-height:160px}
 .dg-scene-copy h2,.dg-scene[data-stage="work"] .dg-scene-copy h2{font-size:clamp(47px,6.6vw,70px)!important}
}
@media(max-width:700px){
 .hero{min-height:100svh!important}
 .hero .dg-hero-inner{width:calc(100% - 40px)!important;display:flex!important;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:100px 0 25px!important;gap:12px}
 .dg-hero-overline{order:0;margin:0!important}
 .dg-hero-main{order:1;gap:8px!important;width:100%}
 .hero #hero-title{font-size:clamp(45px,10.5vw,68px)!important;letter-spacing:-.079em!important;margin:9px 0!important}
 .dg-hero-detail p{font-size:12px!important;line-height:1.45!important;max-width:none}
 .dg-hero-actions{margin-top:13px!important}
 .dg-action-primary,.dg-action-alt{font-size:10px!important;min-height:36px!important;padding:9px 11px!important}
 .dg-hero-film{order:2;grid-column:auto;grid-row:auto;aspect-ratio:1.6;max-height:32svh;box-shadow:0 14px 45px rgba(2,19,56,.33)}
 .dg-hero-film-label{left:11px;bottom:10px;font-size:8px;padding:6px}
 .dg-hero-caption{order:3;margin:4px 0 0!important;font-size:7px!important}
 .dg-journey.dg-journey-ready .dg-scene-inner{width:calc(100% - 38px)!important;padding:80px 0 45px!important;display:flex!important;flex-direction:column;justify-content:center;gap:13px}
 .dg-scene-copy h2,.dg-scene[data-stage="work"] .dg-scene-copy h2,.dg-scene[data-stage="contact"] .dg-scene-copy h2,.dg-scene[data-stage="flow"] .dg-scene-copy h2{font-size:clamp(43px,10vw,60px)!important;margin:10px 0!important;line-height:1.02!important}
 .dg-scene-copy>p{font-size:12px!important;line-height:1.38!important}
 .dg-scene-link{margin-top:11px!important;padding:9px 11px!important;min-height:33px!important;font-size:10px!important}
 .dg-scene[data-stage="flow"] .dg-scene-inner,.dg-scene[data-stage="ai"] .dg-scene-inner,.dg-scene[data-stage="work"] .dg-scene-inner,.dg-scene[data-stage="web"] .dg-scene-inner,.dg-scene[data-stage="apps"] .dg-scene-inner{display:flex!important;gap:11px;justify-content:center}
 .dg-scene[data-stage="flow"] .dg-flow-chain{gap:2px;margin:14px 0;min-height:82px}
 .dg-scene[data-stage="flow"] .dg-flow-chain button{min-height:76px;padding:6px 3px}
 .dg-scene[data-stage="flow"] .dg-flow-chain button strong{font-size:10px}
 .dg-scene[data-stage="flow"] .dg-flow-chain>i{flex-basis:4px}
 .dg-scene[data-stage="flow"] .dg-ui-result{padding:11px;min-height:60px}
 .dg-scene[data-stage="ai"] .dg-scene-interface,.dg-scene[data-stage="work"] .dg-scene-interface{width:100%}
 .dg-agents-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .dg-agent-visual img{aspect-ratio:1.03}
 .dg-agent-visual>span{padding:8px}
 .dg-agent-visual strong{font-size:11px}
 .dg-agent-visual small{font-size:8px}
 .dg-agents-showcase{gap:10px}
 .dg-agents-all{font-size:11px}
 .dg-software-collection{gap:7px}
 .dg-software-logo{grid-column:span 2;min-height:132px;padding:12px 6px;gap:9px}
 .dg-software-logo:nth-child(4),.dg-software-logo:nth-child(5){grid-column:span 3;min-height:113px}
 .dg-software-mark{height:57px}
 .dg-software-mark img{height:56px;max-width:86px}
 .dg-software-label strong{font-size:11px}
 .dg-software-label small{font-size:9px}
 .dg-service-image img{aspect-ratio:1.35;max-height:38svh}
 .dg-service-image figcaption{font-size:8px;margin-top:7px}
 .dg-scene[data-stage="method"] .dg-scene-inner{justify-content:center}
 .dg-scene[data-stage="method"] .dg-scene-copy h2{font-size:clamp(44px,10.7vw,72px)!important}
 .dg-scene[data-stage="contact"] .dg-scene-copy h2{font-size:clamp(43px,10vw,60px)!important}
 .dg-scene[data-stage="contact"] .dg-ui-contact{max-height:43svh!important}
 .dg-journey.dg-journey-ready .dg-journey-beat{height:107svh}
}
@media(max-width:360px){
 .hero .dg-hero-inner{width:calc(100% - 28px)!important;padding-top:82px!important}
 .hero #hero-title{font-size:42px!important}
 .dg-hero-film{max-height:25svh}
 .dg-journey.dg-journey-ready .dg-scene-inner{width:calc(100% - 26px)!important;padding:72px 0 35px!important}
 .dg-agent-visual>span{padding:6px}
 .dg-software-logo{min-height:106px}
 .dg-software-logo:nth-child(4),.dg-software-logo:nth-child(5){min-height:95px}
 .dg-software-mark{height:46px}
 .dg-software-mark img{height:45px}
 .dg-software-label small{font-size:8px}
}
@media(prefers-reduced-motion:reduce){
 .dg-hero-film-video{display:none!important}
 .dg-hero-film{background:radial-gradient(ellipse at 64% 40%,#1450a4 0%,#071b43 55%,#020a1b 100%)!important}
 .dg-agent-visual,.dg-software-logo{transition:none}
}
