/* ASTRIA 095 CLEAN MASTER
   Phone base rules are preserved from the approved build.
   Phone portrait rules are consolidated into one block.
   iPad portrait/landscape, phone landscape, and desktop styles are not changed here. */
@media screen and (max-width:700px){
  html,body{overflow-x:hidden!important;max-width:100%!important;}
  body{font-size:16px!important;}
  *{box-sizing:border-box;}

  /* Header / navigation */
  .site-header{min-height:100px!important;padding:0 30px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;position:relative!important;}
  .brand{font-size:30px!important;letter-spacing:.22em!important;line-height:1!important;}
  .menu-toggle{display:flex!important;flex-direction:column!important;gap:5px!important;width:42px!important;height:42px!important;padding:8px 4px!important;align-items:flex-end!important;justify-content:center!important;position:relative!important;z-index:1002!important;background:transparent!important;border:0!important;}
  .menu-toggle span{display:block!important;width:34px!important;height:1px!important;background:var(--gold)!important;transition:.2s ease!important;}
  .nav[hidden]{display:none!important;}
  .site-header.menu-open{align-items:flex-start!important;padding-top:24px!important;padding-bottom:10px!important;min-height:430px!important;border-bottom:0!important;}
  .site-header.menu-open .nav:not([hidden]){position:absolute!important;left:0!important;right:0!important;top:86px!important;display:grid!important;grid-template-columns:1fr!important;gap:0!important;padding:4px 30px 8px!important;background:#050505!important;border:0!important;z-index:1000!important;}
  .site-header.menu-open .nav a{font-size:14px!important;line-height:1.2!important;letter-spacing:.08em!important;text-align:left!important;padding:3px 0!important;min-height:34px!important;height:auto!important;border:0!important;white-space:normal!important;}
  body.menu-locked{overflow:hidden!important;}

  /* Shared page containers */
  .page-wrap,.home-stage,.cap-final{width:100%!important;max-width:none!important;margin:0!important;padding-left:30px!important;padding-right:30px!important;}
  .page-wrap,.cap-final{padding-top:48px!important;}
  .home-stage{padding-top:40px!important;}
  .eyebrow{font-size:13px!important;letter-spacing:.18em!important;margin-bottom:16px!important;}

  /* Shared hero: copy first, image second */
  .home-hero,.about-media,.global-hero,.ai-hero,.cap-hero,.company-hero{display:grid!important;grid-template-columns:1fr!important;gap:28px!important;align-items:start!important;margin:0!important;padding:0!important;}
  .home-copy,.global-copy,.cap-hero-copy,.company-copy,.ai-hero>div,.about-media>div{width:100%!important;max-width:none!important;min-width:0!important;}
  .home-title,.global-hero h1,.about-media h1,.ai-hero h1,.cap-hero h1,.company-title{font-size:39px!important;line-height:1.08!important;font-weight:400!important;letter-spacing:-.02em!important;margin:0 0 20px!important;max-width:none!important;white-space:normal!important;}
  .home-subtitle{font-size:24px!important;line-height:1.25!important;margin:0 0 20px!important;}
  .home-copy p,.global-hero p,.about-media p,.ai-hero p,.cap-hero p,.company-copy p{font-size:16px!important;line-height:1.55!important;margin:0!important;max-width:none!important;}
  .home-visual,.cap-visual,.company-visual{width:100%!important;max-width:none!important;margin:0!important;}
  .home-visual img,.global-hero img,.about-media img,.ai-hero img,.cap-visual img,.company-visual img{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;aspect-ratio:16/9!important;object-fit:cover!important;margin:0!important;}

  /* Home */
  .home-hero{gap:30px!important;}
  .home-cards{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:34px 24px!important;margin:42px 0 0!important;align-items:start!important;}
  .home-card{display:block!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important;}
  .home-card img{width:70px!important;height:62px!important;object-fit:contain!important;margin:0 0 16px!important;}
  .home-card h2{font-size:20px!important;line-height:1.15!important;font-weight:400!important;margin:0 0 10px!important;white-space:normal!important;}
  .home-card p{font-size:14px!important;line-height:1.48!important;margin:0!important;}
  .home-ai{margin-top:52px!important;}

  /* Four-pillar grids */
  .global-cards,.about-cards,.ai-cards,.cap-services,.company-cards{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:38px 24px!important;margin:42px 0 0!important;align-items:start!important;}
  .global-cards article,.about-cards article,.ai-cards article,.cap-service,.company-cards article{display:block!important;min-width:0!important;width:auto!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;}
  .global-card-icon,.about-cards img,.ai-cards .project-icon,.cap-icon img,.company-cards img{display:block!important;width:68px!important;height:60px!important;object-fit:contain!important;margin:0 0 16px!important;}
  .cap-icon{width:auto!important;height:auto!important;margin:0!important;}
  .global-cards h2,.about-cards h3,.ai-cards h3,.cap-service h3,.company-cards h3{font-size:20px!important;line-height:1.18!important;font-weight:400!important;margin:0 0 10px!important;white-space:normal!important;}
  .global-cards p,.about-cards p,.ai-cards p,.cap-service p,.company-cards p{font-size:14px!important;line-height:1.5!important;margin:0!important;max-width:none!important;word-break:normal!important;overflow-wrap:break-word!important;}
  .cap-service>div:last-child{width:100%!important;min-width:0!important;}

  /* Sports phone title should read naturally */
  .page-sports .ai-hero h1{font-size:37px!important;line-height:1.1!important;white-space:normal!important;}
  .page-sports .ai-hero h1 br{display:none!important;}

  /* Ask Astria: readable phone stack */
  .ask,.home-ai .ask,.global-ask,.capabilities-ask{display:grid!important;grid-template-columns:1fr!important;gap:28px!important;width:100%!important;max-width:none!important;margin:54px 0 0!important;padding:0!important;align-items:start!important;}
  .page-capabilities .capabilities-ask{box-sizing:border-box!important;width:auto!important;max-width:none!important;margin:54px 30px 0!important;padding:0!important;}
  .ask>div:first-child,.global-ask>div:first-child,.capabilities-ask>div:first-child{width:100%!important;min-width:0!important;}
  .ask h1,.ask h2,.home-ai .ask h2,.global-ask h1,.capabilities-ask h1{font-size:39px!important;line-height:1.08!important;font-weight:400!important;margin:12px 0 20px!important;}
  .ask p,.home-ai .ask p,.global-ask p,.capabilities-ask p{font-size:16px!important;line-height:1.55!important;margin:0!important;max-width:none!important;}
  .ask .answer,.home-ai .ask .answer,.global-ask .answer,.capabilities-ask .answer{width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;border:0!important;background:transparent!important;padding:22px 0 8px!important;font-size:15px!important;line-height:1.5!important;}
  .ask .questions,.home-ai .ask .questions,.global-ask .questions,.capabilities-ask .questions{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:none!important;gap:0!important;width:100%!important;min-width:0!important;}
  .ask .questions button,.home-ai .ask .questions button,.global-ask .questions button,.capabilities-ask .questions button{display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:18px 0!important;border:0!important;border-bottom:0!important;background:transparent!important;text-align:left!important;font-size:15px!important;line-height:1.45!important;white-space:normal!important;overflow:visible!important;}

  /* Footer */
  .footer,.home-unified-footer,.company-footer{display:block!important;width:100%!important;max-width:100%!important;margin:48px 0 0!important;padding:24px 30px 18px!important;border-top:1px solid rgba(176,154,122,.55)!important;text-align:center!important;white-space:normal!important;font-size:12px!important;line-height:1.65!important;overflow:hidden!important;}
  .astria-footer-global{display:block!important;white-space:normal!important;}
  .footer-line-1,.footer-line-2{display:block!important;}
  .footer-mid-dot{display:none!important;}

  /* Contact */
  .contact-grid{display:grid!important;grid-template-columns:1fr!important;gap:14px!important;}
  .contact-grid input,.contact-grid textarea{width:100%!important;min-width:0!important;}

  /* Prevent any inherited horizontal desktop geometry */
  .global-hero>* ,.cap-hero>* ,.ai-hero>* ,.home-hero>*{min-width:0!important;}
  img{max-width:100%!important;}
}

/* Single authoritative phone-portrait block */
@media screen and (max-width:700px) and (orientation:portrait){
  /* Keep the approved compact menu and reduce the gap before page content. */
  .site-header.menu-open{min-height:408px!important;}
  .site-header.menu-open + main.page-wrap,
  .site-header.menu-open + main.cap-final,
  .site-header.menu-open + main.company-shell,
  .site-header.menu-open + main.home-stage{
    padding-top:18px!important;
  }

  /* Shared page top rhythm */
  .page-wrap,.cap-final{padding-top:34px!important;}
  .home-stage{padding-top:30px!important;}
  .eyebrow{margin-bottom:12px!important;}

  /* Hero */
  .home-hero,.about-media,.global-hero,.ai-hero,.cap-hero,.company-hero{
    gap:20px!important;
  }
  .home-title,.global-hero h1,.about-media h1,.ai-hero h1,.cap-hero h1,.company-title{
    margin-bottom:16px!important;
  }
  .home-subtitle{margin-bottom:16px!important;}

  /* Four-pillar sections */
  .home-cards{
    margin-top:30px!important;
    gap:26px 24px!important;
  }
  .global-cards,.about-cards,.ai-cards,.cap-services,.company-cards{
    margin-top:30px!important;
    gap:28px 24px!important;
  }
  .home-card img,
  .global-card-icon,.about-cards img,.ai-cards .project-icon,.cap-icon img,.company-cards img{
    margin-bottom:12px!important;
  }
  .home-card h2,
  .global-cards h2,.about-cards h3,.ai-cards h3,.cap-service h3,.company-cards h3{
    margin-bottom:8px!important;
  }

  /* Ask Astria */
  .home-ai{margin-top:36px!important;}
  .ask,.home-ai .ask,.global-ask,.capabilities-ask{
    margin-top:38px!important;
    gap:20px!important;
  }
  .page-capabilities .capabilities-ask{margin-top:38px!important;}
  .ask h1,.ask h2,.home-ai .ask h2,.global-ask h1,.capabilities-ask h1{
    margin-top:8px!important;
    margin-bottom:16px!important;
  }
  .ask .answer,.home-ai .ask .answer,.global-ask .answer,.capabilities-ask .answer{
    padding-top:16px!important;
    padding-bottom:6px!important;
  }
  .ask .questions button,.home-ai .ask .questions button,.global-ask .questions button,.capabilities-ask .questions button{
    padding-top:14px!important;
    padding-bottom:14px!important;
  }

  /* Footer: keep the approved top divider, but finish the page sooner. */
  .footer,.home-unified-footer,.company-footer{
    margin-top:55px!important;
    padding-top:20px!important;
    padding-bottom:20px!important;
  }
  /* Approved phone-portrait navigation frame */
  .site-header.menu-open .nav:not([hidden]){
    border-top:1px solid rgba(176,154,122,.55)!important;
    border-bottom:1px solid rgba(176,154,122,.55)!important;
  }

  /* Approved phone-portrait Ask Astria: no question separator lines */
  .ask .questions,.home-ai .ask .questions,.global-ask .questions,.capabilities-ask .questions{border:0!important;box-shadow:none!important;}
  .ask .questions button,.home-ai .ask .questions button,.global-ask .questions button,.capabilities-ask .questions button{
    border:0!important;box-shadow:none!important;outline:0!important;text-decoration:none!important;background-image:none!important;
  }
  .ask .questions button::before,.ask .questions button::after,
  .home-ai .ask .questions button::before,.home-ai .ask .questions button::after,
  .global-ask .questions button::before,.global-ask .questions button::after,
  .capabilities-ask .questions button::before,.capabilities-ask .questions button::after{
    content:none!important;display:none!important;border:0!important;height:0!important;box-shadow:none!important;
  }
  .ask .questions button:last-child,.home-ai .ask .questions button:last-child,
  .global-ask .questions button:last-child,.capabilities-ask .questions button:last-child{padding-bottom:0!important;}

}

/* Contact layout for tablet-width screens */
@media (min-width:701px) and (max-width:1024px){
  .contact-intro-final{
    display:block !important;
    box-sizing:border-box !important;
    width:auto !important;
    max-width:calc(100vw - 40px) !important;
    margin:0 auto 28px !important;
    padding:0 !important;
    text-align:center !important;
    font-size:17px !important;
    line-height:1.45 !important;
    white-space:normal !important;
  }
}
