/* MetronTech 4.66.56 — final mobile-only polish. Desktop intentionally untouched. */
@media (max-width: 760px){
  html,body.ghg-wordpress-page{width:100%;max-width:100%;overflow-x:hidden!important}
  body.ghg-wordpress-page main,body.ghg-wordpress-page section{max-width:100%}
  body.ghg-wordpress-page h1,body.ghg-wordpress-page h2,body.ghg-wordpress-page h3{overflow-wrap:break-word;text-wrap:balance}
  body.ghg-wordpress-page p{overflow-wrap:break-word}
  body.ghg-wordpress-page .button{max-width:100%}

  /* Navigation / touch */
  body.ghg-wordpress-page .navbar{padding-left:16px!important;padding-right:16px!important}
  .ghg-mobile-menu a{min-height:46px;display:flex;align-items:center}

  /* Home — keep the cinematic 3D experience but prevent text/model collisions. */
  body.ghg-home-page .hero-section{min-height:100svh!important;padding-left:18px!important;padding-right:18px!important;padding-top:100px!important;padding-bottom:42svh!important}
  body.ghg-home-page .hero-content{max-width:100%!important;position:relative;z-index:5}
  body.ghg-home-page .hero-content h1{font-size:clamp(2.55rem,13.5vw,4rem)!important;line-height:.94!important;max-width:8.4em!important}
  body.ghg-home-page .hero-content p{font-size:.98rem!important;line-height:1.62!important;max-width:34rem}
  body.ghg-home-page .hero-buttons{grid-template-columns:1fr!important}
  body.ghg-home-page .hero-buttons .button{min-height:50px}
  body.ghg-home-page .canvas-holder{width:100vw!important;max-width:none!important;left:0!important;right:auto!important}
  body.ghg-home-page .intro-section,body.ghg-home-page .products-section,body.ghg-home-page .why-section,body.ghg-home-page .features-section{padding-left:18px!important;padding-right:18px!important}
  body.ghg-home-page .white-card{padding:25px 20px!important}
  body.ghg-home-page .info-card{grid-template-columns:40px minmax(0,1fr)!important;padding:18px!important}
  body.ghg-home-page .why-card{flex-basis:min(84vw,330px)!important;width:min(84vw,330px)!important}
  body.ghg-home-page .ghg-video-copy{width:calc(100% - 24px)!important;margin:0 12px 32px!important;padding:20px 18px 21px!important;backdrop-filter:blur(7px)!important;-webkit-backdrop-filter:blur(7px)!important}
  body.ghg-home-page .ghg-video-copy h2{font-size:clamp(27px,8vw,38px)!important}
  body.ghg-home-page .ghg-video-status{display:none!important}

  /* Large scroll-driven value scene: simplify spatial density on a narrow screen. */
  body.ghg-home-page .ghg-value-engine-section{min-height:250vh!important}
  body.ghg-home-page .ghg-value-engine-stage{height:68vh!important}
  body.ghg-home-page .ghg-value-engine-card{width:min(44vw,190px)!important;min-height:126px!important;padding:14px 12px!important}
  body.ghg-home-page .ghg-value-engine-card p{display:none!important}

  /* Our Markets — the industries stylesheet loads late, so these are deliberate final overrides. */
  body.markets-page .markets-industries-hero{padding:106px 18px 58px!important}
  body.markets-page .markets-industries-hero .markets-hero-grid{grid-template-columns:1fr!important;gap:28px!important}
  body.markets-page .markets-industries-hero h1{font-size:clamp(2.75rem,13vw,4.4rem)!important;line-height:.92!important}
  body.markets-page .markets-industries-hero p{font-size:.98rem!important;line-height:1.7!important}
  body.markets-page .markets-industry-jump{position:relative!important;top:auto!important;margin-top:18px!important;padding:0!important;overflow-x:auto!important;scrollbar-width:none}
  body.markets-page .markets-industry-jump::-webkit-scrollbar{display:none}
  body.markets-page .markets-hero-graphic{padding:17px!important;border-radius:24px!important}
  body.markets-page .markets-graphic-profile-row{grid-template-columns:1fr 1fr!important;gap:8px!important}
  body.markets-page .industry-market-section{padding:68px 18px!important}
  body.markets-page .industry-market-shell{grid-template-columns:1fr!important;gap:27px!important}
  body.markets-page .industry-market-visual,body.markets-page .industry-market-copy{min-width:0!important;width:100%!important}
  body.markets-page .industry-image-stage{border-radius:24px!important;min-height:0!important}
  body.markets-page .industry-market-copy h2{font-size:clamp(2.25rem,10.5vw,3.7rem)!important;line-height:.94!important}
  body.markets-page .industry-market-copy h3{font-size:1.12rem!important;margin-top:16px!important}
  body.markets-page .industry-market-copy>p{font-size:.96rem!important;line-height:1.72!important}
  body.markets-page .industry-use-grid{grid-template-columns:1fr!important;gap:10px!important}
  body.markets-page .industry-data-replacement,body.markets-page .industry-video-replacement{margin:10px!important;min-height:210px!important;border-radius:20px!important;overflow:hidden!important}
  body.markets-page .industry-data-canvas{height:112px!important}
  body.markets-page .industry-platform-bridge{grid-template-columns:1fr!important;padding:72px 18px 82px!important;gap:34px!important}
  body.markets-page .industry-platform-flow{grid-template-columns:1fr!important;gap:8px!important}
  body.markets-page .industry-platform-flow>i{width:2px!important;height:20px!important;margin:0 auto!important}
  body.markets-page .flow-node{width:100%!important;height:88px!important;border-radius:24px!important}
  body.markets-page .warehouse-pilot-section{padding:72px 18px 84px!important}
  body.markets-page .warehouse-video-card{min-height:300px!important;border-radius:24px!important}

  /* About / Contact / Resources — consistent mobile gutters and readable cards. */
  body.about-page .about-hero,body.contact-page .contact-hero{padding-left:18px!important;padding-right:18px!important}
  body.about-page .about-hero-actions{grid-template-columns:1fr!important}
  body.about-page .team-card,body.about-page .goal-card,body.about-page .story-metrics article{width:min(86vw,340px)!important;flex-basis:min(86vw,340px)!important}
  body.contact-page .contact-submit{min-height:52px!important}
  body.ghg-wordpress-page .ghg-resource-hero,body.ghg-wordpress-page .ghg-resource-list-section,body.ghg-wordpress-page .ghg-resource-cta{padding-left:18px!important;padding-right:18px!important}

  /* Footer / forms */
  body.ghg-wordpress-page .final-newsletter-card,body.ghg-wordpress-page .newsletter-box{padding:24px 18px!important}
  body.ghg-wordpress-page input,body.ghg-wordpress-page textarea,body.ghg-wordpress-page select{font-size:16px!important} /* avoids iOS focus zoom */
}

@media (max-width: 390px){
  body.ghg-wordpress-page .brand-text strong{max-width:43vw!important;font-size:.66rem!important;letter-spacing:.1em!important}
  body.ghg-home-page .hero-content h1{font-size:clamp(2.35rem,13vw,3.45rem)!important}
  body.markets-page .markets-graphic-profile-row{grid-template-columns:1fr!important}
  body.markets-page .industry-data-replacement,body.markets-page .industry-video-replacement{min-height:190px!important}
}
