/* TYKAIRO AI — site-wide responsive QA layer
   Loaded after page styles to prevent clipping and layout collisions on small screens. */
*,*::before,*::after{box-sizing:border-box}
html{max-width:100%;overflow-x:hidden;scroll-padding-top:92px}
body{max-width:100%;min-width:0;overflow-x:hidden}
img,video,iframe,canvas{max-width:100%;height:auto}
svg{max-width:100%}
:where(main,header,footer,section,article,aside,nav,form,fieldset,figure,.wrap,.container,.shell,.content,.section,.section-inner,.hero,.hero-grid,.hero-inner,.hero-content,.hero-copy,.page-hero,.sectionhead,.section-heading,.section-header,.card,.panel,.product-card,.product-info,.featured,.details-split,.footer-main){min-width:0}
:where(h1,h2,h3,h4,h5,p,a,button,label,li,small,strong,span,td,th){overflow-wrap:anywhere}
:where(input,select,textarea,button){max-width:100%;font:inherit}
pre,code{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere}
table{max-width:100%}
@media(max-width:900px){
 html{scroll-padding-top:82px}
 .wrap,.container,.shell{max-width:100%}
 :where(.grid,.cards,.card-grid,.product-grid,.projects-grid,.features-grid,.feature-grid,.stats-grid,.service-strip,.trip-grid,.resource-grid,.workflow-grid,.process-grid,.gallery-grid,.pricing-grid,.plans-grid,.footer-grid){min-width:0}
 :where(.grid,.cards,.card-grid,.product-grid,.projects-grid,.features-grid,.feature-grid,.stats-grid,.service-strip,.trip-grid,.resource-grid,.workflow-grid,.process-grid,.gallery-grid,.pricing-grid,.plans-grid,.footer-grid){grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
 :where(.hero-grid,.hero-inner,.details-split,.founder-grid,.founder-columns,.contact-layout,.product-story-intro,.product-story-workspace){min-width:0}
 :where(.hero-grid,.hero-inner,.details-split,.founder-grid,.founder-columns,.contact-layout,.product-story-intro,.product-story-workspace){grid-template-columns:minmax(0,1fr)}
 :where(.hero-art,.hero-visual,.visual-feature,.featured-media,.product-art,.media,.card-media){max-width:100%;min-width:0}
 :where(.nav,.head-in,.nav-actions,.header-actions,.hero-actions,.btnrow,.page-actions,.modal-actions){min-width:0;flex-wrap:wrap}
}
@media(max-width:760px){
 html,body{width:100%;overflow-x:hidden}
 body{font-size:15px}
 main{width:100%;max-width:100%;min-width:0}
 .wrap,.container,.shell{width:calc(100% - 32px)!important;max-width:100%!important;margin-inline:auto}
 :where(section,article,footer){max-width:100%;min-width:0}
 :where(h1){font-size:clamp(30px,8.8vw,46px);line-height:1.2;max-width:100%}
 :where(h2){font-size:clamp(24px,6.8vw,34px);line-height:1.25}
 :where(h3){font-size:clamp(19px,5.2vw,25px);line-height:1.3}
 p,li{line-height:1.75}
 img,video,iframe{max-width:100%!important}
 :where(.grid,.cards,.card-grid,.product-grid,.projects-grid,.features-grid,.feature-grid,.stats-grid,.service-strip,.trip-grid,.resource-grid,.workflow-grid,.process-grid,.gallery-grid,.pricing-grid,.plans-grid,.footer-grid){grid-template-columns:minmax(0,1fr)}
 :where(.hero-grid,.hero-inner,.details-split,.founder-grid,.founder-columns,.contact-layout,.product-story-intro,.product-story-workspace){grid-template-columns:minmax(0,1fr)}
 :where(.hero-actions,.btnrow,.page-actions,.modal-actions){flex-wrap:wrap}
 :where(.hero-actions>*,.btnrow>*,.page-actions>*){min-width:0;max-width:100%}
 :where(input,select,textarea){width:100%;min-width:0}
 table{display:block;width:100%;overflow-x:auto;white-space:normal}
}
@media(max-width:420px){
 .wrap,.container,.shell{width:calc(100% - 24px)!important}
 :where(h1){font-size:clamp(28px,8.2vw,37px)}
 :where(.card,.panel,.product-info){min-width:0}
 :where(.hero-actions,.btnrow){align-items:stretch}
 :where(.hero-actions>*,.btnrow>*){width:100%}
 button,.button,.btn,.pill-btn{white-space:normal;min-width:0}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Homepage-specific responsive refinements */
@media(max-width:940px){
  .hub-hero{min-height:82svh;padding:92px 0 58px}
  .hub-hero .hero-inner{min-height:calc(82svh - 110px);padding-top:clamp(150px,24vh,250px);align-items:flex-end}
  .hub-hero .hero-copy{max-width:760px}
  .hub-hero .hero-bottomline{left:24px;right:24px;bottom:18px;gap:12px}
  .hub-hero .hero-micro{margin-top:24px;flex-wrap:wrap}
}
@media(max-width:760px){
  .hub-hero{min-height:78svh;padding:82px 0 62px}
  .hub-hero .hero-inner{min-height:0;padding-top:clamp(140px,22vh,205px);padding-bottom:12px}
  .hub-hero .hero-copy{width:100%}
  .hub-hero .hero-copy .btnrow{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
  .hub-hero .hero-copy .btnrow .button{width:100%;min-height:46px}
  .hub-hero .hero-micro{font-size:9px;letter-spacing:.1em;margin-top:22px}
  .hub-hero .hero-bottomline{position:relative;left:auto;right:auto;bottom:auto;margin:20px 16px 0;justify-content:center;text-align:center;flex-wrap:wrap;font-size:9px;letter-spacing:.1em}
  .section-header,.showcase-head{align-items:flex-start;flex-direction:column;gap:12px}
  .featured{grid-template-columns:minmax(0,1fr);padding:20px;gap:18px}
  .featured .featured-media{min-height:190px;width:100%}
  .featured .featured-media img{max-width:100%;max-height:230px;object-fit:contain}
  .process-grid,.showcase-grid{grid-template-columns:minmax(0,1fr);gap:14px}
  .process-step{min-height:0;padding:20px}
  .process-step h3{margin:18px 0 8px}
  .showcase-tile img{height:auto;max-height:260px;min-height:170px;object-fit:contain}
  .showcase-tile-content{padding:18px}
  .footer-main{grid-template-columns:minmax(0,1fr);gap:26px}
  .footer-bottom{align-items:flex-start;flex-direction:column}
}
@media(max-width:420px){
  .hub-hero{min-height:74svh;padding-top:76px}
  .hub-hero .hero-inner{padding-top:135px}
  .hub-hero .hero-bottomline{margin-inline:12px}
  .featured{padding:16px;border-radius:16px}
  .featured .featured-media{min-height:160px}
  .process-step{padding:17px}
  .showcase-tile-content{padding:15px}
  .footer{padding:34px 0 24px}
}
