/* Final Modules header geometry and desktop/phone storyboard.
   Shared canonical header is source of truth; opened full-screen presentation
   consumes REMAINING height, never a second full viewport under the header. */
@media(min-width:901px){
 body.modules-page .modules-shell,
 body.modules-page.is-module-entry-open .modules-shell{
   padding-top:2rem!important;
   box-sizing:border-box!important;
 }
 body.modules-page.is-module-entry-open .modules-shell{
   height:100dvh!important;min-height:0!important;max-height:100dvh!important;
   display:flex!important;flex-direction:column!important;
 }
 body.modules-page.is-module-entry-open .modules-shell>.experience-header{
   flex:0 0 auto!important;
   min-height:72px!important;
   width:min(1400px,calc(100% - 2rem))!important;
   margin:0 auto!important;
   padding:0 0 1.5rem!important;
 }
 body.modules-page.is-module-entry-open .modules-landing{
   flex:1 1 0!important;min-height:0!important;
   height:auto!important;overflow:hidden!important;
 }
 body.modules-page.is-module-entry-open:has([data-module-entry="takeover"].is-open)
 section.module-entry[data-module-entry="takeover"].is-open{
   height:100%!important;max-height:100%!important;min-height:0!important;
   flex:1 1 0!important;
 }
 body.modules-page.is-module-entry-open:has([data-module-entry="takeover"].is-open)
 section.module-entry[data-module-entry="takeover"].is-open>.module-entry-trigger{
   --dd-open-banner-height:clamp(106px,13svh,126px);
   flex:0 0 var(--dd-open-banner-height)!important;
   height:var(--dd-open-banner-height)!important;
   min-height:var(--dd-open-banner-height)!important;
   padding:clamp(.65rem,1.4vh,1rem) max(2rem,calc((100vw - 1400px)/2))!important;
 }
 body.modules-page.is-module-entry-open:has([data-module-entry="takeover"].is-open)
 section.module-entry[data-module-entry="takeover"].is-open>.module-entry-panel{
   min-height:0!important;flex:1 1 0!important;
   overflow:hidden!important;
 }
 body.modules-page.is-module-entry-open [data-module-entry="takeover"] .dd-value-story{
   overflow-y:auto!important;
   align-content:center!important;
   grid-template-columns:minmax(0,.83fr) minmax(0,1.17fr)!important;
   gap:clamp(.5rem,1vw,1rem)!important;
 }
}
.modules-page .dd-film-stage-devices{
 display:grid;
 grid-template-columns:minmax(0,1.2fr) minmax(31px,.18fr) minmax(0,1fr)!important;
 gap:clamp(4px,.7vw,11px);
 align-items:center;
 min-height:clamp(175px,25vh,310px)!important;
}
.modules-page .dd-film-device-cluster{
 min-width:0;position:relative;
 display:grid;align-items:center;
 padding:6px clamp(22px,3vw,42px) 14px 0;
}
.modules-page .dd-film-pc-monitor{
 position:relative;min-width:0;
 border:4px solid #343140;border-radius:12px;
 background:#12111d;
 box-shadow:0 0 0 1px #625279,0 14px 27px #0009,inset 0 0 26px #110d22;
 transform:perspective(950px) rotateY(5deg);
}
.modules-page .dd-film-pc-bezel{
 height:23px;display:flex;align-items:center;gap:6px;
 padding:0 8px;
 border-bottom:1px solid #554669;background:linear-gradient(90deg,#2b2040,#1b1726);
 color:#cbb7e5;font:700 clamp(6px,.49vw,8px) "DM Sans",sans-serif;
 letter-spacing:.04em;white-space:nowrap;overflow:hidden;
}
.modules-page .dd-film-pc-bezel strong{flex:1;text-overflow:ellipsis;overflow:hidden}
.modules-page .dd-film-pc-dot{
 width:6px;height:6px;border-radius:50%;flex:none;
 background:#af90dd;box-shadow:0 0 10px #8a6fb5;
}
.modules-page .dd-film-device-cluster .dd-film-legacy{
 padding:8px 8px 23px;gap:6px;
 min-height:142px;background:linear-gradient(#14101e,#0a0b12);
}
.modules-page .dd-film-device-cluster .dd-film-window{
 border-color:rgba(199,166,238,.22);border-radius:5px;
 height:clamp(48px,7.5vh,91px);
 animation:dd-app-switch 9.6s infinite;
}
.modules-page .dd-film-device-cluster .dd-film-window:nth-child(2){animation-delay:-2.4s}
.modules-page .dd-film-device-cluster .dd-film-window:nth-child(3){animation-delay:-4.8s}
.modules-page .dd-film-device-cluster .dd-film-window:nth-child(4){animation-delay:-7.2s}
.modules-page .dd-film-monitor-foot{
 position:absolute;z-index:-1;left:40%;right:40%;bottom:-13px;height:13px;
 background:linear-gradient(#777189,#373143);border-radius:0 0 8px 8px;
}
.modules-page .dd-film-phone{
 position:absolute;right:0;bottom:7px;z-index:4;
 width:clamp(58px,7vw,100px);height:clamp(117px,15.5vh,182px);
 border:4px solid #555164;border-radius:16px;
 background:#11111b;
 box-shadow:0 0 0 1px #a38bc2,0 9px 22px #000a;
 transform:rotate(7deg);
 padding:12px 5px 9px;
 overflow:hidden;
}
.modules-page .dd-film-phone-notch{
 position:absolute;top:4px;left:31%;right:31%;
 height:4px;border-radius:8px;background:#736c84;
}
.modules-page .dd-film-phone-scenes{position:relative;width:100%;height:100%;overflow:hidden}
.modules-page .dd-film-phone-scene{
 position:absolute;inset:0;
 padding:clamp(5px,.7vw,10px) 3px;
 background:linear-gradient(155deg,#2b2142,#161521);
 display:flex;flex-direction:column;gap:8px;
 opacity:0;transform:translateX(23%);
 animation:dd-phone-switch 9.6s infinite;
}
.modules-page .dd-film-phone-scene:nth-child(2){animation-delay:3.2s}
.modules-page .dd-film-phone-scene:nth-child(3){animation-delay:6.4s}
.modules-page .dd-film-phone-scene b{font:850 clamp(7px,.57vw,9px) "DM Sans",sans-serif;color:#dfc5ff}
.modules-page .dd-film-phone-scene span{font-size:clamp(6px,.45vw,8px);color:#b0a1c2}
.modules-page .dd-film-phone-scene i{
 height:6px;border-radius:2px;background:#8d68b5;
}
.modules-page .dd-film-phone-scene i:nth-of-type(2){width:63%;background:#524669}
.modules-page .dd-film-phone-scene small{margin-top:auto;color:#bcabd6;font-size:clamp(6px,.44vw,8px)}
.modules-page .dd-film-phone-home{
 position:absolute;bottom:3px;left:43%;right:43%;height:3px;border-radius:4px;background:#9c91ac;
}
.modules-page .dd-film-unified{padding-bottom:17px}
.modules-page .dd-film-unified .dd-film-dd-window{
 border-radius:10px;box-shadow:0 8px 25px #000c,0 0 28px #a27af633;
}
.modules-page .dd-film-unified .dd-film-dd-window>img{
 aspect-ratio:1.62;max-height:166px;object-position:left top;
}
.modules-page .dd-film-stage-label{
 color:#c9b4df;font-size:clamp(6px,.51vw,8px);
}
@keyframes dd-app-switch{
 0%,10%,100%{border-color:#655176;box-shadow:0 3px 11px #0004;filter:brightness(.84)}
 13%,23%{border-color:#b790fb;box-shadow:0 0 15px #a57ef644;filter:brightness(1.3)}
 28%,97%{filter:brightness(.84)}
}
@keyframes dd-phone-switch{
 0%,31%{opacity:1;transform:translateX(0)}
 34%,95%{opacity:0;transform:translateX(-25%)}
 96%,100%{opacity:0;transform:translateX(20%)}
}
@media(max-width:920px){
 .modules-page .dd-film-stage-devices{grid-template-columns:minmax(0,1.18fr) 30px minmax(0,1fr)!important}
 .modules-page .dd-film-device-cluster{padding-right:24px}
 .modules-page .dd-film-phone{width:56px;height:116px}
 .modules-page .dd-film-pc-bezel{font-size:6px}
}
@media(max-width:550px){
 .modules-page .dd-film-stage-devices{grid-template-columns:minmax(0,1fr) 23px minmax(0,.9fr)!important;min-height:154px!important}
 .modules-page .dd-film-device-cluster .dd-film-legacy{padding:4px 4px 20px;min-height:112px}
 .modules-page .dd-film-device-cluster .dd-film-window{height:43px}
 .modules-page .dd-film-device-cluster{padding-right:14px}
 .modules-page .dd-film-phone{width:41px;height:91px;border-width:3px;border-radius:9px}
 .modules-page .dd-film-pc-bezel{height:18px}
 .modules-page .dd-film-unified .dd-film-dd-window>img{aspect-ratio:1.35}
}
@media(prefers-reduced-motion:reduce){
 .modules-page .dd-film-phone-scene{animation:none;transform:none}
 .modules-page .dd-film-phone-scene:not(:first-child){display:none}
 .modules-page .dd-film-window{animation:none!important}
}
