/* AIoT Technologies: phone layout (loaded last on every page).
   Goals: readable text (>=13px), 44px+ tap targets, no sideways scroll, compact cards, shorter pages. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
html,body{overflow-x:clip}
img,svg,video{max-width:100%}

@media(max-width:640px){
  /* ---------- header ---------- */
  .site-header{padding:0 14px!important;gap:8px!important;height:64px!important;min-height:64px!important}
  .site-header .brand img.logo-word-art{height:auto}
  .hdr-actions{gap:8px!important}
  .menu-toggle{width:44px;height:44px;padding:0!important;display:grid!important;place-items:center;font-size:22px!important}
  .theme-toggle{width:44px!important;height:44px!important}
  .talk{font-size:14px!important;padding:11px 16px!important;min-height:44px}
  .talk-arrow{display:none!important}
  .nav{max-height:calc(100dvh - 80px);overflow-y:auto;-webkit-overflow-scrolling:touch}
  .nav a,.nav .nav-dd-btn,.nav .nav-dd-link{min-height:48px;display:flex;align-items:center;font-size:17px!important}
  .nav-dd-menu a{min-height:0}
  .nav-dd-menu strong{font-size:15.5px}
  .nav-dd-menu span{font-size:14px;line-height:1.45}

  /* ---------- type ---------- */
  .eyebrow{font-size:12px!important;letter-spacing:.16em!important;flex-wrap:wrap;row-gap:4px;white-space:normal!important}
  .eyebrow:before,.eyebrow:after{width:22px!important}
  .lead,.hero p,.svc-hero .lead{font-size:16px!important;line-height:1.6!important}
  p,li{overflow-wrap:break-word}
  .tag,.flag,.chip{font-size:12.5px!important}

  /* ---------- footer: stacked, readable ---------- */
  .footer{height:auto!important;min-height:0!important;flex-direction:row!important;flex-wrap:wrap!important;justify-content:center!important;align-items:center!important;text-align:center!important;gap:4px 22px!important;padding:20px 16px calc(18px + env(safe-area-inset-bottom))!important;font-size:13px!important;line-height:1.5}
  .footer .footer-copyright,.footer .footer-tagline{flex:0 0 100%;text-align:center!important;margin:0!important}
  .footer .footer-copyright,.footer .footer-copyright *{font-size:13px!important}
  .footer .footer-tagline{display:block!important;font-size:13px;opacity:.8}
  .footer .cookie-settings,.footer .privacy-link{font-size:13.5px!important;padding:8px 6px;min-height:40px;display:inline-flex;align-items:center}

  /* ---------- buttons ---------- */
  .btn,.cta,.hero-cta .btn{min-height:48px}
  .hero-cta,.pp-actions{gap:10px!important}
  .hero-cta .btn,.hero-cta a{flex:1 1 auto;justify-content:center}

  /* ---------- section rhythm (shorter pages) ---------- */
  .sec{padding:40px 16px!important}
  .sec-head{gap:10px!important;margin-bottom:18px!important}
  .sec-head h2,.section-title,.section-head h2{font-size:clamp(25px,7vw,30px)!important;line-height:1.15!important}
  .card{padding:18px 16px!important;border-radius:14px}

  /* capability-style cards: icon beside the title instead of above it */
  .card.cap{display:grid!important;grid-template-columns:44px minmax(0,1fr);column-gap:14px;align-items:center}
  .card.cap>.icon{grid-row:1;width:44px!important;height:44px!important;margin:0!important}
  .card.cap>.icon svg{width:22px!important;height:22px!important}
  .card.cap>h3{grid-column:2;margin:0!important;font-size:17px!important;line-height:1.25}
  .card.cap>p{grid-column:1/-1;margin:10px 0 0!important}

  /* service hero */
  .svc-hero{padding:22px 16px 34px!important}
  .svc-hero h1{font-size:clamp(32px,9.5vw,40px)!important;line-height:1.08!important}
  .outcomes{gap:10px!important;margin-top:22px!important}
  .outcomes div{padding:2px 0 2px 12px!important}
  .outcomes span{font-size:14px!important}

  /* process steps & regions: tighter */
  .proc{gap:10px!important}
  .regions{gap:10px!important}
  .regions .card p{margin-bottom:0}
  .chips{gap:8px!important}

  /* related services: slim rows */
  .related{gap:10px!important}
  .related .card{display:flex!important;align-items:center;gap:14px;padding:14px 16px!important}
  .related .card .icon{width:40px!important;height:40px!important;margin:0!important;flex:0 0 auto}
  .related .card h3{margin:0!important;font-size:16.5px!important;flex:1}
  .related .card .more{margin:0!important;white-space:nowrap}

  /* FAQ tap targets */
  .faq-item summary{min-height:56px;padding-block:14px!important}
  .faq-item summary h3{font-size:16px!important;line-height:1.35}

  /* services hub: compact tiles (no tall empty space) */
  .service-card{height:auto!important;min-height:0!important;padding:18px 18px 16px!important;display:block}
  .service-card .card-top{position:static!important;display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
  .service-card .service-icon{width:48px!important;height:48px!important}
  .service-card .service-number{font-size:26px!important}
  .service-card .card-content{position:static!important;inset:auto!important}
  .service-card .card-content h2{font-size:19px!important;margin-bottom:6px!important}
  .service-card .card-content p{min-height:0!important;max-width:none!important;font-size:14.5px!important;margin-bottom:12px!important}
  .service-grid{gap:12px!important}

  /* contact form */
  .field input,.field select,.field textarea{font-size:16px!important;min-height:48px}
  .field textarea{min-height:130px}
}

@media(max-width:380px){
  .site-header{padding:0 10px!important;gap:6px!important}
  .site-header .brand{transform:scale(.88);transform-origin:left center}
  .talk{padding:10px 13px!important;font-size:13.5px!important}
  .hdr-actions{gap:6px!important}
  .theme-toggle{width:40px!important;height:40px!important}
  .menu-toggle{width:40px;height:40px}
  .eyebrow{letter-spacing:.12em!important}
}

@media(max-width:340px){
  .site-header .talk{display:none!important}
}
