/* Native menu controls retain the original desktop typography and roll effect. */
button.menu-open,button.menu-close{appearance:none;-webkit-appearance:none;background:none;border:0;color:inherit;font:inherit;letter-spacing:inherit;padding:0;text-align:inherit;}

/* These overrides improve phone layouts without changing the desktop composition. */
@media (max-width:768px){
  :is(#produx-root,#aegis-root){-webkit-text-size-adjust:100%;text-size-adjust:100%;}
  :is(#produx-root,#aegis-root),:is(#produx-root,#aegis-root) *{cursor:auto!important;}
  :is(#produx-root,#aegis-root) :is(a,button){cursor:pointer!important;}
  :is(#produx-root,#aegis-root) :is(a,button,input):focus-visible{outline:2px solid #d5e2b2!important;outline-offset:4px;}
  :is(#produx-root,#aegis-root) :is(input,textarea,select){font-size:16px!important;max-width:100%;min-width:0;}

  /* Keep the wordmark and menu on one baseline, including notched phones. */
  :is(#produx-root,#aegis-root) header{padding:calc(10px + env(safe-area-inset-top,0px)) 20px 0!important;}
  #produx-root .wordmark-wrap{padding:calc(22px + env(safe-area-inset-top,0px)) 20px 0!important;}
  #aegis-root .wordmark-wrap{padding:calc(10px + env(safe-area-inset-top,0px)) 20px 0!important;}
  #aegis-root .wordmark-wrap>a{display:inline-flex;align-items:center;min-height:44px;}
  :is(#produx-root,#aegis-root) :is(.menu-open,.menu-close){height:44px!important;min-height:44px;min-width:76px;align-items:center;justify-content:center;font-size:14px!important;touch-action:manipulation;}
  :is(#produx-root,#aegis-root) :is(.menu-open,.menu-close) .roll-inner,
  :is(#produx-root,#aegis-root) footer .roll-inner{display:block!important;transform:none!important;line-height:1.2!important;}
  :is(#produx-root,#aegis-root) :is(.menu-open,.menu-close) .roll-inner>span:nth-child(2),
  :is(#produx-root,#aegis-root) footer .roll-inner>span:nth-child(2){display:none!important;}

  /* Only the menu content scrolls; close and footer stay reachable. */
  :is(#produx-root,#aegis-root) .menu-overlay{display:flex!important;flex-direction:column;max-height:100vh;max-height:100dvh;}
  :is(#produx-root,#aegis-root) .menu-overlay>div:first-child{position:absolute!important;top:calc(10px + env(safe-area-inset-top,0px))!important;left:20px!important;z-index:20;}
  :is(#produx-root,#aegis-root) .nav-overlay-scroll{flex:1 1 auto!important;min-height:0!important;height:auto!important;width:100%!important;padding:calc(82px + env(safe-area-inset-top,0px)) 20px 24px!important;gap:24px!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;}
  :is(#produx-root,#aegis-root) .nav-overlay-scroll>div:first-child{min-width:0;}
  :is(#produx-root,#aegis-root) .menu-link{min-height:52px;line-height:1.1!important;font-size:clamp(34px,11vw,52px)!important;padding:10px 0!important;}
  :is(#produx-root,#aegis-root) .menu-promo{flex:none;min-width:0;gap:16px!important;}
  :is(#produx-root,#aegis-root) .menu-promo>a{min-height:44px;overflow-wrap:anywhere;}
  :is(#produx-root,#aegis-root) .menu-promo>div:last-child{flex-wrap:wrap;gap:12px 20px!important;}
  :is(#produx-root,#aegis-root) .menu-promo>div:last-child>a{display:inline-flex;align-items:center;min-height:44px;}
  :is(#produx-root,#aegis-root) .menu-foot{position:static!important;flex:0 0 auto;gap:6px!important;padding:12px 20px calc(12px + env(safe-area-inset-bottom,0px))!important;border-top:1px solid #505a4d;font-size:11px!important;line-height:1.5;}

  /* Linked-page content: viewport-sized desktop text must not shrink on phones. */
  #aegis-root>.page-hero{padding:120px 20px 56px!important;}
  #aegis-root .page-h1{max-width:100%!important;font-size:clamp(36px,11vw,52px)!important;line-height:1.07!important;overflow-wrap:normal;}
  #aegis-root .page-intro{max-width:100%!important;font-size:16px!important;line-height:1.6!important;}
  #aegis-root .page-hero>div[style*="justify-content:"]{align-items:flex-start!important;gap:24px!important;flex-wrap:wrap!important;}
  #aegis-root .page-hero>div[style*="justify-content:"]>span{font-size:12px!important;line-height:1.5;}
  #aegis-root .page-hero>div>div.reveal-up{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:12px!important;font-size:12px!important;line-height:1.5;letter-spacing:0!important;max-width:100%;}
  #aegis-root .page-hero>div>div.reveal-up>div{min-width:0;gap:6px!important;}
  #aegis-root .page-hero>div>div.reveal-up>div>span{font-size:clamp(22px,7vw,28px)!important;line-height:1.15!important;}
  #aegis-root>section:not(.page-hero){padding:56px 20px!important;}
  #aegis-root section :is(h2,h3,h4,p){max-width:100%!important;}
  #aegis-root section h2{font-size:28px!important;line-height:1.2!important;}
  #aegis-root section h3{font-size:22px!important;line-height:1.25!important;}
  #aegis-root section h4{font-size:13px!important;line-height:1.4!important;}
  #aegis-root section p{font-size:16px!important;line-height:1.6!important;}
  #aegis-root section :is([style*="min-width:60vw"],[style*="min-width: 60vw"]){min-width:0!important;width:100%;flex-basis:100%;}
  #aegis-root section [style*="max-width:"]{max-width:100%!important;}
  #aegis-root section [style*="grid-template-columns:"]{grid-template-columns:minmax(0,1fr)!important;gap:24px!important;}
  #aegis-root section [style*="grid-template-columns:"]>*{min-width:0;grid-column:auto!important;grid-row:auto!important;}
  #aegis-root section>span.reveal-up,
  #aegis-root section span:is([style*="font-size:."],[style*="font-size: ."],[style*="font-size: 0."]){font-size:12px!important;line-height:1.5!important;}
  #aegis-root section[data-screen-label="Included"] .reveal-up{gap:14px!important;}
  #aegis-root section[data-screen-label="Included"] .reveal-up>span:last-child{font-size:18px!important;line-height:1.4!important;}
  #aegis-root section[data-screen-label="How we work"]>div>div>span{font-size:13px!important;}
  #aegis-root section[data-screen-label="Marks"] [style*="min-height:"]{min-height:220px!important;padding:24px!important;}
  #aegis-root section[data-screen-label="Marks"] span:is([style*="font-size:2.2vw"],[style*="font-size: 2.2vw"]){font-size:28px!important;}
  #aegis-root section[data-screen-label="Studios"] [style*="grid-template-columns:"] .reveal-up>span:first-child{font-size:20px!important;}
  #aegis-root .disc-card>div:first-child>span{font-size:13px!important;}
  #aegis-root .disc-card>div:first-child>.arw{font-size:22px!important;}
  #aegis-root section[data-screen-label="Featured"] a>div>div:last-child>span{font-size:14px!important;line-height:1.5!important;}
  #aegis-root section:is([data-screen-label="Sectors"],[data-screen-label="Applies"])>div.reveal-up{gap:10px!important;}
  #aegis-root section:is([data-screen-label="Sectors"],[data-screen-label="Applies"])>div.reveal-up>span{gap:8px!important;padding:8px 12px!important;font-size:14px!important;line-height:1.4!important;}
  #aegis-root section:is([data-screen-label="Sectors"],[data-screen-label="Applies"])>div.reveal-up>span>span{width:5px!important;height:5px!important;flex:none;}
  #aegis-root .page-hero>div.reveal-up{gap:10px!important;}
  #aegis-root .page-hero>div.reveal-up>span{font-size:13px!important;padding:8px 12px!important;line-height:1.4!important;}

  /* Services retain number, title, scope and arrow without four narrow columns. */
  #aegis-root #certify .svc-row{grid-template-columns:24px minmax(0,1fr) 20px!important;gap:10px 12px!important;padding:24px 0!important;align-items:start!important;}
  #aegis-root #certify .svc-row>span:first-child{grid-column:1;grid-row:1;font-size:13px!important;padding-top:3px;}
  #aegis-root #certify .svc-row>div{grid-column:2;grid-row:1;gap:10px!important;min-width:0;}
  #aegis-root #certify .svc-row>span:nth-child(3){grid-column:2;grid-row:2;font-size:13px!important;line-height:1.6!important;}
  #aegis-root #certify .svc-row>.arw{grid-column:3;grid-row:1;font-size:22px!important;justify-self:end;}
  #aegis-root #certify .svc-row h3{font-size:22px!important;}
  #aegis-root #certify .svc-row p{font-size:15px!important;}
  #aegis-root section .ins-row{grid-template-columns:24px minmax(0,1fr)!important;gap:10px 14px!important;padding:24px 0!important;align-items:start!important;}
  #aegis-root section .ins-row>span:first-child{grid-column:1;grid-row:1 / 4;font-size:13px!important;}
  #aegis-root section .ins-row>span:nth-child(2){grid-column:2;grid-row:1;font-size:12px!important;}
  #aegis-root section .ins-row>div{grid-column:2;grid-row:2;gap:10px!important;}
  #aegis-root section .ins-row>span:last-child{grid-column:2;grid-row:3;text-align:left!important;font-size:12px!important;}
  #aegis-root section .ins-row h3{font-size:21px!important;}
  #aegis-root section .ins-row p{font-size:15px!important;}
  #aegis-root .case h2{font-size:30px!important;}
  #aegis-root .case-visual{min-width:0!important;max-width:100%!important;}
  #aegis-root .case-metrics{flex-wrap:wrap!important;}
  #aegis-root .case-metrics span{font-size:12px!important;line-height:1.4!important;}
  #aegis-root .cta-band>a{display:inline-flex;align-items:center;min-height:44px;font-size:16px!important;line-height:1.4;}

  /* Home keeps its cinematic media and existing single-column card treatment. */
  #produx-root .hero-desc{font-size:15px!important;line-height:1.6!important;}
  #produx-root .hero-text>div>div{font-size:13px!important;line-height:1.6!important;}
  #produx-root :is(.projects-section-header,.about-section,.contribution-section,.testimonials-section-header) a{font-size:14px!important;line-height:1.5;min-height:44px;display:inline-flex;align-items:center;}
  #produx-root .contribution-section .svc-item{min-width:0;min-height:80px;gap:12px!important;}
  #produx-root .contribution-section .svc-item>div{min-width:0;}
  #produx-root .svc-name{font-size:clamp(23px,6vw,28px)!important;line-height:1.25!important;overflow-wrap:normal;}
  #produx-root .svc-arw{flex:none;}
  #produx-root .single-project-card .project-img{filter:none!important;transform:none!important;}
  #produx-root .sprint-wrap{height:clamp(260px,46vh,420px)!important;height:clamp(260px,46svh,420px)!important;}
  #produx-root .cookie-banner{right:12px!important;left:12px!important;bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;width:auto!important;max-width:none!important;max-height:38vh;max-height:38svh;overflow:auto;padding:16px!important;}
  #produx-root .cookie-banner>div{font-size:13px!important;line-height:1.5!important;}
  #produx-root .cookie-banner a{display:inline-flex;align-items:center;min-height:44px;font-size:13px!important;}

  :is(#produx-root,#aegis-root) footer{padding:0 20px calc(32px + env(safe-area-inset-bottom,0px))!important;}
  :is(#produx-root,#aegis-root) .m-foot{gap:28px!important;}
  :is(#produx-root,#aegis-root) .m-foot>*{min-width:0;max-width:100%;gap:6px!important;}
  :is(#produx-root,#aegis-root) .m-foot a{min-height:44px;height:auto!important;display:inline-flex!important;align-items:center;font-size:15px!important;line-height:1.4!important;overflow-wrap:anywhere;}
  :is(#produx-root,#aegis-root) .m-foot input{width:100%;min-height:44px;}
  :is(#produx-root,#aegis-root) .footer-bottom{gap:16px!important;font-size:12px!important;line-height:1.6!important;}
  :is(#produx-root,#aegis-root) .footer-bottom :is(a,span){font-size:12px!important;line-height:1.6!important;}
  :is(#produx-root,#aegis-root) .footer-bottom>div{gap:20px!important;flex-wrap:wrap;}
  :is(#produx-root,#aegis-root) .footer-bottom a{display:inline-flex;align-items:center;min-height:44px;}
}
