/* MasterHub public pages: focused mobile usability enhancements. Scoped to known public templates. */
html{ -webkit-text-size-adjust:100%; }
body{overflow-x:clip}
img,svg,video{max-width:100%}
a,button,input,select,textarea{touch-action:manipulation}
:where(a,button,input,select,textarea):focus-visible{outline:3px solid #7fb83a;outline-offset:3px}
@media(max-width:760px){
  .site-header,.mh-header{isolation:isolate}
  .primary-nav.is-open{z-index:70;box-shadow:0 16px 36px #0004}
  .hero-heading h1,.hero h1,.mh-portfolio-hero h1,.mh-case-heading h1{overflow-wrap:anywhere}
  .hero-heading h1>span{white-space:normal}
  .browser-screen,.project-window-screen,.work-tile-preview{contain:layout paint}
  .project-visual{min-height:0}
  .project-caption{align-items:flex-start}
  .work-end{flex-wrap:wrap}
  .section-heading,.services-heading{gap:20px}
  .process-intro{position:static}
  .mh-portfolio-body .mh-header{height:70px}
  .mh-portfolio-body .mh-head-inner{position:relative}
  .mh-portfolio-body .mh-mobile-toggle{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;width:44px;height:44px;flex:none;border:1px solid #d8dce8;background:#fff;border-radius:10px;cursor:pointer}
  .mh-portfolio-body .mh-mobile-toggle span{display:block;width:20px;height:2px;background:#202439;border-radius:2px}
  .mh-portfolio-body .mh-head-inner nav{display:none;position:absolute;top:calc(100% + 1px);left:-17px;right:-17px;background:#fff;box-shadow:0 22px 36px #1b1b321c;padding:15px 20px 23px;flex-direction:column;align-items:stretch;gap:0;border-top:1px solid #eaebf0;z-index:80}
  .mh-portfolio-body .mh-head-inner nav.is-open{display:flex}
  .mh-portfolio-body .mh-head-inner nav a{display:block;padding:14px 10px;font-size:14px;min-height:44px}
  .mh-portfolio-body .mh-head-inner nav a:nth-child(3){display:block}
  .mh-portfolio-body .mh-head-inner nav .mh-head-cta{margin-top:9px;text-align:center;padding:14px!important;font-size:13px}
  .mh-portfolio-body .mh-filter-row{display:flex;overflow-x:auto;flex-wrap:nowrap;overscroll-behavior-x:contain;scrollbar-width:thin;padding-bottom:10px;-webkit-overflow-scrolling:touch}
  .mh-portfolio-body .mh-filter{white-space:nowrap;flex:none;min-height:42px}
  .mh-case-heading,.mh-case-summary{min-width:0}
  .mh-case-browser{overflow:hidden}
  .order-smart .order-form-grid{min-width:0}
  .order-smart .order-form-grid > label{min-width:0}
  .order-smart input,.order-smart select,.order-smart textarea{max-width:100%;min-width:0;font-size:16px}
  .order-smart .smart-controls{flex-wrap:wrap;gap:12px}
  .order-smart .smart-controls-right{min-width:0;flex:1;justify-content:flex-end}
}
@media(max-width:480px){
 .wrap{width:calc(100% - 32px)}
 .hero-heading h1{font-size:clamp(36px,10vw,49px);letter-spacing:-.073em}
 .hero-actions .button{max-width:100%;white-space:normal}
 .browser-screen{height:185px}
 .hero-project-stamp{width:62px;height:62px;right:8px;bottom:8px}
 .hero-showcase-heading,.hero-showcase-footer{letter-spacing:0}
 .project-visual{padding:18px 16px 0}
 .project-window{height:228px}
 .project-window-screen{height:200px}
 .project-caption h3{font-size:24px}
 .service-row{grid-template-columns:35px 1fr 35px;gap:8px;padding:25px 0}
 .service-icon{width:35px;height:35px;font-size:18px}
 .service-row h3{font-size:22px}
 .section,.process-section{padding-block:64px}
 .mh-portfolio-hero h1{font-size:clamp(34px,10vw,54px);letter-spacing:-.05em}
 .mh-case-heading h1{font-size:clamp(38px,11vw,54px)}
 .mh-gallery-head h2{font-size:clamp(31px,9vw,44px)}
 .mh-portfolio-body .mh-shell,.mh-portfolio-body .mh-case-shell{width:calc(100% - 30px)}
 .mh-portfolio-body .mh-head-inner nav{left:-15px;right:-15px}
 .mh-portfolio-body .work-tile-preview{height:205px}
 .order-smart .order-page-shell{padding-inline:9px}
 .order-smart .order-hero{padding:27px 19px}
 .order-smart .order-hero h1{font-size:clamp(27px,8vw,39px)}
 .order-smart .order-form-container{padding:20px 14px}
 .order-smart .order-form-grid{grid-template-columns:minmax(0,1fr)}
 .order-smart .smart-controls .smart-back,.order-smart .smart-controls-right button{min-height:44px}
}
@media(max-width:350px){
 .hero-heading h1{font-size:34px}
 .mh-brand{gap:5px;letter-spacing:-.8px}
 .mh-portfolio-body .mh-shell,.mh-portfolio-body .mh-case-shell{width:calc(100% - 24px)}
 .order-smart .order-form-container{padding:16px 10px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}
