/* DIGIGROUPE V16 — Software identities enlarged, product value made tangible.
 * Only the WORK chapter changes. Every card remains a native, clickable link.
 */
@media (prefers-reduced-motion:no-preference){
  .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-collection{
    height:clamp(265px,39svh,395px)!important;
  }
  .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-logo:nth-child(n){
    width:min(38%,260px)!important;
    height:clamp(235px,33svh,295px)!important;
    top:47%!important;
    padding:0 3px!important;
    gap:10px!important;
    justify-content:center;
  }
  /* Increase the actual symbol, not just its decorative orbit. */
  .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-logo:nth-child(n) .dg-software-mark{
    width:clamp(162px,15.6vw,208px)!important;
    height:clamp(162px,15.6vw,208px)!important;
    flex:0 0 auto;
    border:1px solid rgba(51,118,215,.26)!important;
    background:radial-gradient(circle at 30% 20%,rgba(255,255,255,.99),
      rgba(227,243,255,.67) 49%,rgba(130,192,252,.30) 78%,rgba(68,139,243,.08))!important;
    box-shadow:0 23px 60px rgba(20,92,196,.17),
      inset 0 2px 2px rgba(255,255,255,.94),
      0 0 0 13px rgba(77,151,238,.044)!important;
  }
  .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-logo:nth-child(n) .dg-software-mark img{
    width:84%!important;
    height:84%!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:contain;
    filter:drop-shadow(0 8px 9px rgba(17,56,125,.15))!important;
  }
  .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-logo.dg-v9-selected .dg-software-mark{
    box-shadow:0 30px 74px rgba(34,104,230,.30),
      0 0 0 16px rgba(37,131,248,.08),
      inset 0 2px rgba(255,255,255,1)!important;
  }
  .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-logo.dg-v9-selected .dg-software-label strong{
    font-size:clamp(17px,1.5vw,22px)!important;
    letter-spacing:-.045em;
  }
  .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-logo.dg-v9-selected .dg-software-label small{
    font-size:11px!important;
    letter-spacing:.015em;
  }
}
/* Information hierarchy: who / what / how / next action. */
.dg-scene[data-stage="work"] .dg-v16-product-info{
  width:min(100%,730px)!important;
  max-width:730px!important;
  margin:8px auto 0!important;
  padding:16px 19px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end!important;
  gap:12px 17px!important;
  border:1px solid rgba(54,125,222,.32)!important;
  border-radius:15px!important;
  background:linear-gradient(120deg,rgba(241,248,255,.97),rgba(214,232,255,.88))!important;
  box-shadow:0 16px 42px rgba(35,91,182,.14), inset 0 1px rgba(255,255,255,.94)!important;
  color:#123765;
}
.dg-scene[data-stage="work"] .dg-v16-product-info>div{
  display:grid!important;
  gap:5px!important;
  min-width:0;
  align-content:start;
}
.dg-scene[data-stage="work"] .dg-v16-product-audience{
  font:700 9px/1.3 'DM Mono',monospace;
  letter-spacing:.11em;
  color:#4276b8;
}
.dg-scene[data-stage="work"] .dg-v16-product-info strong{
  font:800 clamp(18px,1.75vw,24px)/1.05 Inter,Arial,sans-serif!important;
  letter-spacing:-.05em;
  color:#082c70!important;
}
.dg-scene[data-stage="work"] .dg-v16-product-promise{
  font:650 clamp(12px,1.05vw,15px)/1.24 Inter,Arial,sans-serif!important;
  letter-spacing:-.015em;
  margin:0!important;
  color:#1653a3!important;
}
.dg-scene[data-stage="work"] .dg-v16-product-description{
  font:400 12px/1.48 Inter,Arial,sans-serif!important;
  color:#3b5d8b!important;
  margin:1px 0 3px!important;
  max-width:56ch;
}
.dg-scene[data-stage="work"] .dg-v16-product-features{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:5px;
  list-style:none;
  padding:0!important;
  margin:1px 0 0!important;
}
.dg-scene[data-stage="work"] .dg-v16-product-features li{
  font:600 10px/1.24 Inter,Arial,sans-serif;
  border-radius:100px;
  padding:5px 9px;
  border:1px solid rgba(45,109,206,.15);
  background:rgba(68,132,233,.08);
  color:#245ba2;
  white-space:nowrap;
}
.dg-scene[data-stage="work"] .dg-v16-product-info .dg-v10-carousel-open{
  min-width:126px!important;
  max-width:150px!important;
  border-radius:9px!important;
  padding:10px 13px!important;
  font-size:11px!important;
  align-self:end!important;
  margin-bottom:2px;
}
@media(max-width:1100px) and (min-width:701px){
  .dg-scene[data-stage="work"] .dg-v16-product-info{padding:13px 14px!important;gap:9px!important}
  .dg-scene[data-stage="work"] .dg-v16-product-info .dg-v10-carousel-open{
    min-width:100px!important;
    max-width:114px!important;
    padding:9px 7px!important;
  }
  .dg-scene[data-stage="work"] .dg-v16-product-features li{font-size:9px;padding:4px 7px}
}
@media(max-width:700px){
  .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-collection{
    height:clamp(188px,24.5svh,220px)!important;
  }
  .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-logo:nth-child(n){
    width:min(52%,172px)!important;
    height:clamp(165px,22.5svh,195px)!important;
    top:47%!important;
    padding:0!important;
    gap:5px!important;
  }
  .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-logo:nth-child(n) .dg-software-mark{
    width:min(142px,88%)!important;
    height:auto!important;
    aspect-ratio:1/1;
  }
  .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-logo:nth-child(n) .dg-software-mark img{
    width:86%!important;
    height:86%!important;
  }
  .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-logo.dg-v9-selected .dg-software-label strong{
    font-size:13px!important;
    line-height:1.1;
  }
  .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-logo.dg-v9-selected .dg-software-label small{font-size:9px!important}
  .dg-scene[data-stage="work"] .dg-v16-product-info{
    width:100%!important;
    max-width:none!important;
    grid-template-columns:1fr;
    align-items:start!important;
    gap:7px!important;
    margin-top:7px!important;
    border-radius:12px!important;
    padding:11px 13px!important;
  }
  .dg-scene[data-stage="work"] .dg-v16-product-info>div{gap:3px!important}
  .dg-scene[data-stage="work"] .dg-v16-product-audience{
    font-size:8px!important;
    letter-spacing:.08em;
  }
  .dg-scene[data-stage="work"] .dg-v16-product-info strong{font-size:17px!important}
  .dg-scene[data-stage="work"] .dg-v16-product-promise{font-size:12px!important;line-height:1.22}
  .dg-scene[data-stage="work"] .dg-v16-product-description{
    font-size:10.2px!important;
    line-height:1.39!important;
    max-width:none!important;
    margin:0!important;
  }
  .dg-scene[data-stage="work"] .dg-v16-product-features{gap:4px!important}
  .dg-scene[data-stage="work"] .dg-v16-product-features li{
    font-size:9px!important;
    padding:4px 7px!important;
  }
  .dg-scene[data-stage="work"] .dg-v16-product-info .dg-v10-carousel-open{
    justify-self:start;
    align-self:start!important;
    max-width:none!important;
    min-width:118px!important;
    min-height:30px!important;
    padding:6px 11px!important;
    font-size:10px!important;
    margin:0;
  }
}
@media(max-width:360px){
  .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-collection{
    height:185px!important;
  }
  .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-logo:nth-child(n){
    width:min(55%,154px)!important;
    height:162px!important;
  }
  .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-logo:nth-child(n) .dg-software-mark{
    width:min(116px,90%)!important;
  }
  .dg-scene[data-stage="work"] .dg-v16-product-info{padding:9px 10px!important;gap:5px!important}
  .dg-scene[data-stage="work"] .dg-v16-product-info strong{font-size:15px!important}
  .dg-scene[data-stage="work"] .dg-v16-product-promise{font-size:11px!important}
  .dg-scene[data-stage="work"] .dg-v16-product-description{font-size:9.4px!important;line-height:1.34!important}
  .dg-scene[data-stage="work"] .dg-v16-product-features li{font-size:8.2px!important;padding:3px 5px!important}
}
@media(prefers-reduced-motion:reduce){
  /* Preserve the existing accessible, full grid fallback. */
  .dg-scene[data-stage="work"] .dg-v16-product-info{display:none!important}
}

/* Short mobile viewports: reserve the bottom of the scene for the full
 * explanation and working CTA, never crop the last lines. */
@media(max-width:700px) and (max-height:760px) and (prefers-reduced-motion:no-preference){
  .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-collection{
    height:156px!important;
  }
  .dg-journey-ready .dg-scene[data-stage="work"] .dg-software-logo:nth-child(n){
    height:151px!important;
    top:47%!important;
  }
  .dg-scene[data-stage="work"] .dg-v16-product-info{
    padding:8px 10px!important;
    gap:4px!important;
  }
  .dg-scene[data-stage="work"] .dg-v16-product-info>div{gap:2px!important}
  .dg-scene[data-stage="work"] .dg-v16-product-audience{
    font-size:7.5px!important;
  }
  .dg-scene[data-stage="work"] .dg-v16-product-promise{line-height:1.17!important}
  .dg-scene[data-stage="work"] .dg-v16-product-description{
    line-height:1.29!important;
  }
  .dg-scene[data-stage="work"] .dg-v16-product-features li{
    padding:3px 6px!important;
  }
  .dg-scene[data-stage="work"] .dg-v16-product-info .dg-v10-carousel-open{
    min-height:27px!important;
    padding:5px 9px!important;
  }
}

/* Keep the fuller product explanations comfortable to read on standard
 * phones; the shorter-screen and 320px rules above stay compact. */
@media (min-width:361px) and (max-width:700px) and (min-height:761px){
  .dg-scene[data-stage="work"] .dg-v16-product-audience{font-size:8.5px!important}
  .dg-scene[data-stage="work"] .dg-v16-product-description{
    font-size:11.1px!important;
    line-height:1.42!important;
  }
  .dg-scene[data-stage="work"] .dg-v16-product-features li{
    font-size:9.4px!important;
    padding:4px 7px!important;
  }
}
