/* AZO V5.75 — single physical page rail, concise typography, compact active mobile mosaic.
   Preserve page order, original AZO colors, desktop partner mosaic and desktop hover behaviour. */
:root{
 --azo-page-gutter:clamp(18px,3.1vw,64px);
 --azo-page-max:1350px;
 --azo-reading-max:74ch;
}
/* Every editorial section uses the same symmetric outer rail. */
html body .container,
html body #about.about-v513 .about-shell,
html body #work.azo-work-v519 .azo-work-container{
 width:min(calc(100% - (2 * var(--azo-page-gutter))),var(--azo-page-max))!important;
 max-width:var(--azo-page-max)!important;
 margin-inline:auto!important;
 box-sizing:border-box;
}
html body #hero .hero-center{
 width:min(calc(100% - (2 * var(--azo-page-gutter))),var(--azo-page-max))!important;
 max-width:var(--azo-page-max)!important;
 box-sizing:border-box;
 padding-inline:0!important;
 margin-inline:auto!important;
}
/* Keep deliberately centered section introductions, but never let long copy overshoot its rail. */
html body :is(.azo-work-intro,.azo-services-intro,.azo-partners-intro,.azo-testimonials-head,.azo-contact-intro){
 max-width:100%;box-sizing:border-box;
}
html body #partners .azo-logo-gallery{
 max-width:var(--azo-page-max)!important;
}
html body #partners .azo-partners-action{
 width:min(calc(100% - (2 * var(--azo-page-gutter))),var(--azo-page-max))!important;
 max-width:var(--azo-page-max)!important;
 margin-inline:auto!important;
}
html body :is(.section-lead,.azo-work-description,.azo-work-declaration,.azo-service-description,.azo-route-desc,.azo-partners-description,.azo-partners-lead){
 text-wrap:pretty;
}
/* Type: less crowded, with clear differences between headings and body text. */
html body #about.about-v513 .about-heading{
 font-size:clamp(3.05rem,5.25vw,5.4rem)!important;
 line-height:1.1!important;
 letter-spacing:-.025em!important;
}
html body #about.about-v513 .about-declaration{
 font-size:clamp(1.25rem,1.65vw,1.7rem)!important;
 line-height:1.64!important;
}
html body #about.about-v513 .about-paragraph{
 font-size:clamp(1rem,1.18vw,1.2rem)!important;
 line-height:1.87!important;
}
html body #about.about-v513 .about-layout-v513{
 gap:clamp(28px,4.7vw,78px)!important;
}
html body #work .azo-work-title{
 font-size:clamp(3rem,4.7vw,4.8rem)!important;
 line-height:1.12!important;
}
html body #work .azo-work-declaration{
 font-size:clamp(1.18rem,1.48vw,1.5rem)!important;
 line-height:1.57!important;
}
html body #work .azo-work-description{
 font-size:clamp(.98rem,1.15vw,1.15rem)!important;
 line-height:1.8!important;
}
html body #work .azo-work-intro{
 margin-bottom:clamp(24px,3.1vw,48px)!important;
}
html body #services .azo-service-description,
html body #work .azo-route-desc,
html body #partners .azo-partners-description{
 font-size:clamp(.98rem,1.16vw,1.16rem)!important;
 line-height:1.83!important;
}
html body #contact .section-heading{
 font-size:clamp(2.8rem,5.2vw,5.2rem)!important;
}
/* Natural portrait media. Video is served from the real local assets directory. */
html body #videoModal .media-shell:has(.media-frame.portrait){
 width:min(94vw,500px)!important;
}
html body #videoModal .media-frame.portrait{
 width:min(100%,440px,43dvh)!important;
 max-height:78dvh;
 aspect-ratio:9 / 16!important;
 background:rgba(221,124,44,.35)!important;
 border:1px solid rgba(255,255,255,.3)!important;
 box-sizing:border-box;
 overflow:hidden;
}
html body #videoModal .media-frame.portrait video{
 display:block;width:100%!important;height:100%!important;
 max-height:78dvh!important;object-fit:contain!important;
 border-radius:inherit;background:transparent!important;
}
/* Phone: smaller but intentionally irregular tiles, not repeated same squares.
   The clicked tile changes its real grid-column and grid-row and shifts its neighbours.
   This media block does not modify the desktop partner cards. */
@media(max-width:600px){
 :root{--azo-page-gutter:clamp(16px,4.7vw,21px)}
 html body .container,
 html body #about.about-v513 .about-shell,
 html body #work.azo-work-v519 .azo-work-container,
 html body #hero .hero-center{
  width:calc(100% - (2 * var(--azo-page-gutter)))!important;
  max-width:none!important;
  margin-inline:auto!important;
  padding-inline:0!important;
 }
 html body #about.about-v513 .about-heading{
  font-size:clamp(2.85rem,11.8vw,4rem)!important;
  margin-bottom:14px!important;
 }
 html body #about.about-v513 .about-declaration{
  font-size:clamp(1.12rem,4.85vw,1.35rem)!important;
  line-height:1.54!important;
 }
 html body #about.about-v513 .about-paragraph{
  font-size:clamp(.95rem,4vw,1.06rem)!important;
  line-height:1.78!important;
 }
 html body #about.about-v513 .about-layout-v513{gap:22px!important}
 html body #work .azo-work-title{font-size:clamp(2.9rem,12vw,4rem)!important}
 html body #work .azo-work-declaration{font-size:clamp(1.09rem,4.5vw,1.25rem)!important;line-height:1.55!important}
 html body #work .azo-work-description{font-size:clamp(.92rem,3.8vw,1.03rem)!important;line-height:1.75!important}
 html body :is(#services .azo-service-description,#work .azo-route-desc,#partners .azo-partners-description){
  font-size:clamp(.92rem,3.9vw,1.04rem)!important;line-height:1.7!important;
 }
 html body #contact .section-heading{font-size:clamp(2.65rem,11vw,4rem)!important}
 html body #partners .azo-logo-gallery{
  width:calc(100% - (2 * var(--azo-page-gutter)))!important;
  max-width:520px!important;
  margin:12px auto 0!important;
  overflow:visible!important;
 }
 html body #partners #partnerTrack>.azo-logo-sequence:first-child{
  width:100%!important;max-width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  grid-auto-rows:clamp(37px,10.4vw,46px)!important;
  grid-auto-flow:row dense!important;
  gap:5px!important;
  align-items:stretch!important;
 }
 html body #partners #partnerTrack>.azo-logo-sequence:first-child>.azo-partner-cell{
  grid-column:span 1!important;grid-row:span 1!important;
  border-radius:11px!important;padding:3px!important;
  min-height:0!important;min-width:0!important;
  transform:none!important;
  overflow:hidden!important;
  touch-action:manipulation;
 }
 /* Mixed miniature shapes for rhythm and efficient space usage. */
 html body #partners #partnerTrack>.azo-logo-sequence:first-child>.azo-partner-cell:nth-child(1),
 html body #partners #partnerTrack>.azo-logo-sequence:first-child>.azo-partner-cell:nth-child(6),
 html body #partners #partnerTrack>.azo-logo-sequence:first-child>.azo-partner-cell:nth-child(11),
 html body #partners #partnerTrack>.azo-logo-sequence:first-child>.azo-partner-cell:nth-child(18),
 html body #partners #partnerTrack>.azo-logo-sequence:first-child>.azo-partner-cell:nth-child(21){
  grid-column:span 2!important;grid-row:span 1!important;
 }
 html body #partners #partnerTrack>.azo-logo-sequence:first-child>.azo-partner-cell:nth-child(3),
 html body #partners #partnerTrack>.azo-logo-sequence:first-child>.azo-partner-cell:nth-child(15){
  grid-column:span 1!important;grid-row:span 2!important;
 }
 html body #partners #partnerTrack>.azo-logo-sequence:first-child>.azo-partner-cell:nth-child(9),
 html body #partners #partnerTrack>.azo-logo-sequence:first-child>.azo-partner-cell:nth-child(20){
  grid-column:span 2!important;grid-row:span 2!important;
 }
 html body #partners #partnerTrack>.azo-logo-sequence:first-child>.azo-partner-cell img{
  display:block;max-width:85%!important;max-height:80%!important;
  object-fit:contain!important;width:auto!important;height:auto!important;
 }
 /* Higher specificity than the default nth-child layout: any tapped logo really grows. */
 html body #partners #partnerTrack>.azo-logo-sequence:first-child>.azo-partner-cell.azo-logo-expanded.azo-logo-landscape{
  grid-column:span 3!important;grid-row:span 2!important;
  border-color:rgba(255,255,255,.54)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.5),0 12px 26px rgba(221,124,44,.23)!important;
 }
 html body #partners #partnerTrack>.azo-logo-sequence:first-child>.azo-partner-cell.azo-logo-expanded.azo-logo-portrait{
  grid-column:span 2!important;grid-row:span 3!important;
  border-color:rgba(255,255,255,.54)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.5),0 12px 26px rgba(221,124,44,.23)!important;
 }
 html body #partners #partnerTrack>.azo-logo-sequence:first-child>.azo-partner-cell.azo-logo-selected{transform:none!important}
 html body #partners #partnerTrack>.azo-logo-sequence:first-child>.azo-partners-cta-wrap{
  grid-column:span 2!important;grid-row:span 1!important;
 }
 html body #partners #partnerTrack>.azo-logo-sequence:first-child>.azo-partners-cta-wrap>.azo-partners-cta{
  padding:5px 6px!important;border-radius:11px!important;
  font-size:clamp(9px,2.65vw,11px)!important;
  line-height:1.25!important;
 }
 html body #partners #partnerTrack>.azo-logo-sequence:first-child>.azo-partners-cta-wrap .azo-partners-cta-icon{
  width:19px!important;height:19px!important;border-radius:7px!important;
 }
 html body #partners #partnerTrack>.azo-logo-sequence:first-child>.azo-partners-cta-wrap .azo-partners-cta-icon svg{
  width:12px!important;height:12px!important;
 }
 html body #videoModal .media-modal{padding:14px!important}
 html body #videoModal .media-frame.portrait{width:min(88vw,42dvh)!important}
}
@media(prefers-reduced-motion:reduce){html body #partners .azo-partner-cell{animation:none!important}}
/* Keep the approved editorial order in Work, but align its outer edge to the same page rail. */
html body #work.azo-work-v528 .azo-work-intro{
 width:100%!important;
 max-width:100%!important;
 margin-inline:0!important;
}
/* Preserve testimonial motion, but clip its cards inside the shared page edges. */
html body #testimonials .azo-feedback-marquee{
 width:min(calc(100% - (2 * var(--azo-page-gutter))),var(--azo-page-max))!important;
 max-width:var(--azo-page-max)!important;
 margin-inline:auto!important;
 box-sizing:border-box;
}
