/* Short desktop layouts only. Footer and mobile retain their approved designs. */
@media (min-width:1100px) and (max-height:820px){
 html{--home-header:64px;--home-room:calc(var(--home-viewport,100dvh) - var(--home-header) - 24px);scroll-padding-top:var(--home-header)}
 body .future-hero{min-height:0!important;height:var(--home-viewport,100dvh)!important;max-height:none;padding:calc(var(--home-header) + 12px) 5% 20px!important;box-sizing:border-box;overflow:visible}
 body .future-copy{padding:0!important;max-width:none}
 body .future-copy h1{font-size:clamp(40px,4.1vw,58px)!important;line-height:1.06!important;margin:0 0 20px!important}
 body .future-copy .eyebrow{font-size:10px;margin-bottom:18px}
 body .future-description{font-size:16px!important;line-height:1.5;margin-bottom:22px!important}
 body .future-actions{gap:12px;flex-wrap:nowrap}
 body .hero-assistant-button{padding:12px 16px!important;font-size:12px!important;white-space:nowrap}
 body .hero-stats{margin-top:25px!important;padding-top:18px!important}
 body .hero-stats strong{font-size:28px!important}
 body .hero-trust{margin-top:14px!important}
 body .ax-challenge-home-row{margin-top:14px!important}
 body .robot-stage{height:min(530px,calc(var(--home-room) - 16px))!important;margin-top:0!important}
 body .orbital-system{scale:.78;transform-origin:center}
 body .hero-scroll{bottom:10px}
 body .ax-home section[id]{box-sizing:border-box;scroll-margin-top:var(--home-header)}
 body .ax-home :is(.ax-core-products,.ax-service-orbit,.ax-ats-fold,.ax-partner,.ax-clients,.ax-world,.ax-technologies,.ax-why,.ax-reach,.ax-contact){padding-top:24px!important;padding-bottom:24px!important;min-height:0!important}
 body .ax-home section h2{font-size:clamp(34px,3.3vw,46px)!important;line-height:1.08!important}
 body .ax-home section .ax-label{margin-bottom:12px!important}
 body .ax-journey-intro{padding:24px 6%!important;gap:5%;min-height:0}
 body .ax-tree-art{max-width:420px;margin:0 auto}
 body .ax-journey-statement>p{margin-top:14px!important;font-size:16px!important}
 body .ax-core-heading{margin-bottom:22px;gap:5%}
 body .ax-core-heading>p{font-size:16px;max-width:360px}
 body .ax-core-grid{gap:18px}
 body .ax-core-card{min-height:0!important;padding:22px 23px 20px!important}
 body .ax-home .ax-core-card h3{font-size:25px!important;min-height:56px;margin:23px 0 18px!important}
 body .ax-core-description p{font-size:15px!important;line-height:1.5!important}
 body .ax-core-description strong{font-size:16px!important}
 body .ax-core-link{margin-top:20px!important;padding-top:18px!important}
 body .ax-erp-ats-divider{margin-top:0!important;margin-bottom:20px!important}
 body .ax-orbit-heading{margin-bottom:20px}
 body .ax-orbit-stage{grid-template-columns:1fr minmax(240px,300px) 1fr;gap:22px;max-width:1000px}
 body .ax-orbit-disc{width:300px;height:300px;max-width:100%}
 body .ax-orbit-footer{margin-top:18px!important}
 body .ax-orbit-choice{padding-top:10px!important;padding-bottom:10px!important}
 body .ax-fold-layout{gap:22px;align-items:center}
 body .ax-fold-panel{min-height:0!important;padding:20px!important}
 body .ax-fold-panel-top{margin-bottom:12px}
 body .ax-fold-main-icon{width:48px;height:48px;border-radius:14px}
 body .ax-fold-progress{margin-bottom:12px}
 body .ax-fold-eyebrow{margin-bottom:16px}
 body .ax-home .ax-fold-detail h3{font-size:28px!important}
 body .ax-home .ax-fold-detail h4{font-size:18px;margin-bottom:12px}
 body .ax-fold-detail>p{font-size:14px;line-height:1.5;min-height:0;margin-bottom:12px}
 body .ax-fold-detail ul{gap:7px;margin-bottom:15px}
 body .ax-fold-lead{font-size:16px;line-height:1.6}
 body .ax-fold-link{padding:11px 16px}
 body .ax-fold-selector{align-self:center!important;top:auto!important;margin-top:0!important}
 body .ax-partner-top{margin-bottom:20px!important}
 body .ax-partner-main{gap:5%}
 body .ax-partner-copy{padding:24px!important}
 body .ax-partner-copy p{font-size:16px!important;line-height:1.55!important}
 body .ax-partner-bridge{margin:20px 0!important}
 body .ax-partner-quote{padding-top:16px!important;gap:20px}
 body .ax-partner-quote blockquote{font-size:18px!important;line-height:1.4!important}
 body .ax-brand-tile{height:84px!important}
 body .ax-client-story>p{font-size:16px!important;line-height:1.5!important}
 body .ax-world-heading{margin-bottom:20px!important}
 body .ax-world-photo{height:calc(var(--home-room) - 170px);max-height:340px}
 body .ax-world-copy p{font-size:15px!important;line-height:1.55!important;margin-bottom:14px!important}
 body .ax-world-foot{margin-top:18px}
 body .ax-tech-heading{margin-bottom:20px}
 body .ax-tech-heading>p:last-child{margin-top:14px;font-size:16px}
 body .ax-tech-fan{padding:0 0 28px!important;gap:14px}
 body .ax-tech-card{min-height:0!important;padding:22px!important}
 body .ax-home .ax-tech-card h3{font-size:30px!important;min-height:66px;margin:20px 0 14px}
 body .ax-tech-card>p{font-size:15px;line-height:1.5}
 body .ax-tech-base{margin-top:18px;padding-top:14px;gap:12px}
 body .ax-tech-apps{transform:translate(3%,8px) rotate(-3deg)}
 body .ax-tech-salesforce{transform:translate(-3%,8px) rotate(3deg)}
 body .ax-why-layout{grid-template-columns:.8fr 1.6fr;gap:4%}
 body .ax-why-intro{position:static}
 body .ax-why-reasons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
 body .ax-why-reason{min-height:0!important;display:block!important;padding:16px 0!important;margin:0!important}
 body .ax-why-reason h3{font-size:23px!important;line-height:1.15!important;margin:12px 0!important}
 body .ax-why-reason p{font-size:14px!important;line-height:1.55!important}
 body .ax-why-number{font-size:22px!important}
 body .ax-why-intro>p{font-size:16px;line-height:1.55}
 body .ax-reach-maps{height:180px!important;min-height:0!important;margin:0!important}
 body .ax-reach-stats{margin-top:24px!important;margin-bottom:20px!important}
 body .ax-reach-stats strong{font-size:42px!important}
 body .ax-reach-bottom{margin-top:16px!important}
 body .ax-contact-bottom{margin-top:25px}
 /* Preserve the full 3D composition inside its header-aware sticky stage. */
 body .ax-home .ax-local3d-interactive{padding:20px 4%!important}
 body .ax-home .ax-local3d-interactive.local3d-pinned{padding:0 4%!important}
 body .local3d-pinned .ax-local3d-pin{top:var(--home-header);height:var(--local3d-pin-height)}
 body .ax-local3d-heading>p:last-child{margin-top:12px;line-height:1.5}
 body .ax-local3d-deck{height:400px;max-width:1050px;width:100%}
 body .ax-local3d-card{height:275px;bottom:50px}
 body .ax-local3d-card:nth-of-type(2),body .ax-local3d-card:nth-of-type(4){bottom:80px}
 body .ax-local3d-card:nth-of-type(3){bottom:100px}
 body .ax-local3d-card:nth-of-type(5){bottom:50px}
 body .ax-local3d-floor{height:145px;bottom:8px}
 body .ax-local3d-face{padding:70px 18px 32px}
 body .ax-local3d-icon{width:40px;height:40px;top:18px}
 body .ax-home .ax-local3d-card h3{font-size:22px}
 body .ax-home .ax-local3d-card p{font-size:13px}
 body .ax-local3d-detail{min-height:40px;margin-top:6px;font-size:14px}
}

/* Each short-desktop scene owns the complete space beneath the header. */
@media (min-width:1100px) and (max-height:820px){
 body .ax-home :is(.ax-core-products,.ax-service-orbit,.ax-ats-fold,.ax-partner,.ax-clients,.ax-world,.ax-technologies,.ax-why,.ax-reach,.ax-contact){
  min-height:calc(var(--home-viewport,100dvh) - var(--home-header,64px))!important;
 }
 body .ax-home :is(.ax-service-orbit,.ax-ats-fold){
  display:flex;flex-direction:column;justify-content:center;
  padding-top:28px!important;padding-bottom:28px!important;
 }
 body .ax-home .ax-service-orbit>.ax-orbit-heading,
 body .ax-home .ax-service-orbit>.ax-orbit-stage,
 body .ax-home .ax-service-orbit>.ax-orbit-footer{flex-shrink:0;width:100%}
 body .ax-home .ax-service-orbit>.ax-orbit-stage{margin:0 auto}
 body .ax-home .ax-ats-fold>.ax-fold-layout{width:100%;margin:0 auto;flex-shrink:0}
 body .ax-home .ax-local3d-wrap{max-width:1050px}
 body .ax-local3d-heading{margin-bottom:24px}
 body .local3d-pinned .ax-local3d-deck{overflow:visible}
 body .ax-local3d-pin{overflow:hidden}
}


/* Taller ATS detail card with equal breathing room above and below its content. */
@media (min-width:1100px) and (max-height:820px){
 body .ax-home .ax-ats-fold .ax-fold-panel{
  min-height:min(480px,calc(var(--home-viewport,100dvh) - var(--home-header,64px) - 100px))!important;
  align-self:center;
 }
 body .ax-home .ax-ats-fold .ax-fold-link{margin-top:auto}
}

/* Browser chrome can leave a 768px laptop with only 600–700px of content height. */
@media (min-width:1100px) and (max-height:700px){
 body .ax-home :is(.ax-core-products,.ax-service-orbit,.ax-ats-fold,.ax-partner,.ax-clients,.ax-world,.ax-technologies,.ax-why,.ax-reach,.ax-contact){padding-top:16px!important;padding-bottom:16px!important}
 body .future-copy h1{font-size:clamp(38px,3.5vw,48px)!important;margin-bottom:14px!important}
 body .future-description{font-size:15px!important;margin-bottom:14px!important}
 body .future-copy .eyebrow{margin-bottom:12px}
 body .hero-stats{margin-top:16px!important;padding-top:12px!important}
 body .hero-trust,body .ax-challenge-home-row{margin-top:10px!important}
 body .ax-home section h2{font-size:clamp(32px,3vw,40px)!important}
 body .ax-core-heading,body .ax-orbit-heading,body .ax-tech-heading,body .ax-world-heading{margin-bottom:14px!important}
 body .ax-core-card,body .ax-tech-card{padding:16px!important}
 body .ax-home .ax-core-card h3,body .ax-home .ax-tech-card h3{margin-top:14px!important;margin-bottom:12px!important;min-height:0!important}
 body .ax-core-link{margin-top:14px!important;padding-top:12px!important}
 body .ax-orbit-stage{grid-template-columns:1fr minmax(220px,260px) 1fr}
 body .ax-orbit-disc{width:260px;height:260px}
 body .ax-fold-panel{padding:16px!important}
 body .ax-fold-eyebrow{margin-bottom:10px}
 body .ax-fold-detail ul{gap:5px;margin-bottom:10px}
 body .ax-fold-detail>p{line-height:1.4;margin-bottom:10px}
 body .ax-fold-selector{max-width:min(100%,calc(var(--home-room) - 36px));justify-self:center}
 body .ax-partner-copy{padding:18px!important}
 body .ax-partner-bridge{margin:12px 0!important}
 body .ax-partner-quote{padding-top:12px!important}
 body .ax-brand-tile{height:68px!important}
 body .ax-tree-art{max-width:350px}
 body .ax-why-reasons{gap:12px}
 body .ax-why-reason{padding:10px 0!important}
 body .ax-reach-maps{height:140px!important}
 body .ax-reach-stats{margin-top:16px!important;margin-bottom:12px!important}
 body .ax-contact-bottom{margin-top:16px}
 body .ax-local3d-heading{margin-bottom:12px}
 body .ax-local3d-deck{height:360px}
 body .ax-local3d-card{height:255px;bottom:40px}
 body .ax-local3d-card:nth-of-type(2),body .ax-local3d-card:nth-of-type(4){bottom:65px}
 body .ax-local3d-card:nth-of-type(3){bottom:85px}
 body .ax-local3d-card:nth-of-type(5){bottom:40px}
 body .ax-local3d-face{padding:60px 16px 24px}
 body .ax-local3d-number{font-size:44px}
 body .ax-local3d-icon{width:32px;height:32px;top:16px}
 body .ax-local3d-floor{height:125px}
}

/* Lenis owns homepage easing; native snapping causes abrupt competing jumps. */
/* Final CTA needs a compact closing beat rather than a full-height scene. */
@media(min-width:1100px) and (max-height:820px){
 body .ax-home .ax-contact{
  min-height:clamp(390px,62dvh,490px)!important;
  height:auto!important;
  display:flex;flex-direction:column;justify-content:center;
  padding-top:40px!important;padding-bottom:40px!important;
 }
 body .ax-home .ax-contact>.ax-big-cta,
 body .ax-home .ax-contact>.ax-contact-bottom{width:100%;flex-shrink:0}
}

/* Core products: portrait rectangles at every breakpoint. */
body .ax-home .ax-core-grid{max-width:1320px;gap:24px;align-items:stretch}
body .ax-home .ax-core-card{aspect-ratio:.72;min-height:390px!important;box-sizing:border-box;min-width:0;padding:30px 24px 24px}
body .ax-home .ax-core-card h3{overflow-wrap:normal}
body .ax-home .ax-core-description{flex:1}
@media(min-width:1101px) and (max-height:820px){
 body .ax-home .ax-core-grid{max-width:1200px;gap:20px}
 body .ax-home .ax-core-card{aspect-ratio:.78;min-height:340px!important}
}
@media(min-width:1101px) and (max-height:700px){
 body .ax-home .ax-core-card{aspect-ratio:.82;min-height:320px!important}
}
@media(min-width:651px) and (max-width:1100px){
 body .ax-home .ax-core-grid{max-width:740px;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
 body .ax-home .ax-core-card{aspect-ratio:.72;min-height:390px!important}
}
@media(max-width:650px){
 body .ax-home .ax-core-grid{max-width:340px;grid-template-columns:minmax(0,1fr);gap:24px}
 body .ax-home .ax-core-card{aspect-ratio:.72;min-height:390px!important;padding:28px 24px}
}

/* Review: narrow every core-product card by 15%, retaining its portrait height. */
body .ax-home .ax-core-card{width:85%;justify-self:center;aspect-ratio:.612}
@media(min-width:1101px) and (max-height:820px){body .ax-home .ax-core-card{aspect-ratio:.663}}
@media(min-width:1101px) and (max-height:700px){body .ax-home .ax-core-card{aspect-ratio:.697}}
@media(max-width:1100px){body .ax-home .ax-core-card{aspect-ratio:.612}}

/* Keep the narrowed deck content-safe, with shared title and footer rows. */
body .ax-home .ax-core-card{aspect-ratio:auto!important;height:auto;min-height:470px!important;display:grid;grid-template-rows:auto 74px minmax(min-content,1fr) auto;row-gap:20px;align-content:stretch}
body .ax-home .ax-core-card .ax-core-index{align-self:start;line-height:1.4}
body .ax-home .ax-core-card h3{margin:0!important;min-height:0!important;align-self:start}
body .ax-home .ax-core-card .ax-core-description{min-height:min-content}
body .ax-home .ax-core-card .ax-core-description h4{min-height:51px;margin:0 0 10px;line-height:1.5}
body .ax-home .ax-core-card .ax-core-description p{margin:0;line-height:1.6}
body .ax-home .ax-core-card .ax-core-link{margin-top:0!important;padding-top:18px!important;min-height:52px;box-sizing:border-box;align-self:end;align-items:center;flex-shrink:0}
@media(min-width:1101px) and (max-height:820px){
 body .ax-home .ax-core-card{min-height:420px!important;grid-template-rows:auto 58px minmax(min-content,1fr) auto;row-gap:12px}
 body .ax-home .ax-core-card .ax-core-description h4{font-size:15px;min-height:42px;line-height:1.4;margin-bottom:8px}
 body .ax-home .ax-core-card .ax-core-description p{font-size:14px!important;line-height:1.5!important}
 body .ax-home .ax-core-card .ax-core-link{padding-top:14px!important;font-size:12px;min-height:50px}
}
@media(min-width:1101px) and (max-height:700px){
 body .ax-home .ax-core-card{min-height:395px!important;row-gap:10px}
 body .ax-home .ax-core-card .ax-core-description p{line-height:1.4!important}
}
@media(max-width:650px){
 body .ax-home .ax-core-card{min-height:450px!important;grid-template-rows:auto 66px minmax(min-content,1fr) auto;row-gap:18px}
}
