/* Shared screen-aware layout for the remaining pages. Artwork scales uniformly. */
.screen-fit-page{--site-header-height:104px}
.site-art-frame,.site-home-scene-frame{display:contents}
@media(max-width:1150px){.screen-fit-page{--site-header-height:92px}}
@media(max-width:760px){.screen-fit-page{--site-header-height:78px}}
@media(max-height:500px) and (min-width:600px){.screen-fit-page{--site-header-height:64px}}

/* Text introductions retain their own content flow and a visible lower margin. */
@media(min-width:761px){
  .screen-fit-page .page-intro{display:flex;flex-direction:column;height:calc(100svh - var(--site-header-height));padding-top:30px;padding-bottom:65px}
  .site-intro-breadcrumb{flex:none}
  .site-intro-copy{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-height:0}
  .site-intro-copy>.eyebrow{margin-top:0}
  .fit-contact .page-intro{height:auto;min-height:clamp(280px,55svh,440px)}
  .m365-intro{display:flex;flex-direction:column;height:calc(100svh - var(--site-header-height));min-height:0}
  .m365-intro-grid{flex:1;min-height:0}
}

/* Microsoft 365: one shared scale for the complete app constellation. */
.screen-fit-page .site-art-frame[data-site-art=m365-hero]{display:block;position:relative;width:100%;height:var(--site-art-height,340px);min-width:0}
.screen-fit-page [data-site-art=m365-hero]>.m365-orbit{position:absolute;left:50%;top:50%;width:500px;height:420px;transform:translate(-50%,-50%) scale(var(--site-art-scale,1));transform-origin:center}
.screen-fit-page [data-site-art=m365-hero] .m365-window-bar>span{font-size:8px}
.screen-fit-page [data-site-art=m365-hero] .m365-hub-heading strong{font-size:12px}
.screen-fit-page [data-site-art=m365-hero] .m365-hub-rows{gap:7px}
.screen-fit-page [data-site-art=m365-hero] .m365-hub-rows>span{font-size:9px}
.screen-fit-page [data-site-art=m365-hero] .m365-hub-rows b{font-size:10px}
@media(min-width:1500px) and (min-height:801px){
  .screen-fit-page [data-site-art=m365-hero]>.m365-orbit{width:700px;height:588px}
  .screen-fit-page [data-site-art=m365-hero] .m365-window-bar>span{font-size:10px}
  .screen-fit-page [data-site-art=m365-hero] .m365-hub-heading strong{font-size:14px}
  .screen-fit-page [data-site-art=m365-hero] .m365-hub-rows>span{font-size:11px}
}

@media(min-width:761px) and (max-height:800px){
  .screen-fit-page main>.section:not(.m365-intro):not(.page-intro){padding-block:clamp(60px,10svh,80px)}
  .screen-fit-page main>.section:not(.m365-intro):not(.page-intro) h2{font-size:clamp(34px,5.5svh,43px)}
  .screen-fit-page .body-section-head,.screen-fit-page .m365-section-head{gap:40px;margin-bottom:26px;align-items:center}
  .screen-fit-page .body-section-head>p,.m365-section-head>p{max-width:420px;line-height:1.8}
  .screen-fit-page .home-fit,.screen-fit-page .home-personal,.screen-fit-page .home-faq,.screen-fit-page .project-timeline{gap:40px}
  .screen-fit-page .timeline-step>div{padding:22px 25px}
  .screen-fit-page .timeline-step h3{font-size:24px}
  .screen-fit-page .timeline-intro{padding-block:0}
  .screen-fit-page .visual-service{min-height:0;padding:30px}
  .screen-fit-page .catalog-copy{padding:28px}
  .screen-fit-page .services-scope{gap:40px}
  .screen-fit-page .services-intro .eyebrow{margin:0 0 16px}
  .screen-fit-page .page-intro h1{font-size:clamp(40px,7.5svh,64px);margin-bottom:22px}
  .screen-fit-page .services-intro-note{margin-top:22px}
  .screen-fit-page .page-split,.screen-fit-page .contact-page-grid{gap:40px;align-items:center}
  .screen-fit-page .process-list article{padding-block:27px;gap:30px}
  .screen-fit-page .scope-box{padding:28px}
  .m365-intro{padding-top:30px;padding-bottom:60px}
  .m365-intro-grid{padding-top:16px;gap:30px;grid-template-columns:1.08fr .92fr}
  .m365-intro .eyebrow{margin-bottom:12px}
  .m365-intro h1{font-size:clamp(40px,7svh,58px);margin:12px 0 20px;letter-spacing:-2px}
  .fit-title-break{display:none}
  .m365-lead{line-height:1.75;margin-bottom:22px}
  .m365-actions{gap:14px}
  .m365-trust{margin-top:14px}
  .m365-workspace figcaption{padding:12px 0 0}
  .m365-animation-bottom{flex-wrap:wrap;gap:8px 18px}
  .m365-animation-bottom button{margin-left:auto}
  .m365-service-grid{gap:24px}
  .m365-service>div:last-child{padding:26px}
  .m365-onboarding,.m365-agreements,.m365-faq{gap:40px}
  .m365-demo-panel{padding:22px}
  .m365-demo-top{padding-bottom:16px}
  .m365-colleague{padding-block:20px}
  .m365-demo-tasks li{padding-block:12px}
  .m365-process-list{gap:22px}
  .m365-process-list li>span{margin-bottom:18px}
}

/* Artwork frames: never stretch width and height independently. */
@media(max-height:800px),(max-width:760px){
  .screen-fit-page .site-art-frame{display:block;position:relative;width:100%;height:var(--site-art-height,180px);min-width:0}
  .screen-fit-page .site-art-frame>[data-site-art-canvas]{position:absolute;left:50%;top:50%;width:var(--site-art-width,500px);max-width:none;margin:0;transform:translate(-50%,-50%) scale(var(--site-art-scale,1)) rotate(var(--site-art-angle,0deg));transform-origin:center}
  .screen-fit-page .site-art-frame[data-site-art=catalog]{overflow:hidden;background:var(--site-art-background)}
  .screen-fit-page .site-art-frame[data-site-art=catalog]>.catalog-visual{width:500px;height:260px;padding:48px 30px 18px}
  .screen-fit-page .site-art-frame[data-site-art=m365-card]{overflow:hidden;background:var(--site-art-background)}
  .screen-fit-page .site-art-frame[data-site-art=m365-card]>.m365-service-art{width:500px;height:165px}
  .screen-fit-page .site-art-frame[data-site-art^=home-]{margin-block:20px 28px}
  .screen-fit-page .site-art-frame[data-site-art=home-browser]{--site-art-angle:-3deg}
  .screen-fit-page .site-art-frame[data-site-art=home-browser]>.browser-demo{width:420px}
  .screen-fit-page .site-art-frame[data-site-art=home-apps]>.apps-demo{width:420px}
  .screen-fit-page .site-art-frame[data-site-art=home-call]>.call-demo{width:420px}
  .screen-fit-page .site-art-frame[data-site-art=home-flow]>.flow-demo{width:420px}
}

/* Homepage keeps its service strip inside the first desktop screen. */
@media(min-width:761px) and (max-height:800px){
  .fit-home .hero{height:calc(100svh - var(--hero-header-height,104px) - var(--hero-bar-height,82px));min-height:0;padding-block:45px}
  .fit-home .hero-content{height:100%;min-height:0;gap:30px;grid-template-columns:1.08fr .92fr}
  .fit-home .hero-copy h1{font-size:clamp(46px,9svh,72px);letter-spacing:-2.5px;margin-bottom:16px}
  .fit-home .hero-copy .intro{font-size:17px;line-height:1.75;margin-bottom:18px}
  .fit-home .hero-actions{flex-wrap:wrap;gap:14px}
  .fit-home .hero-actions .button{font-size:15px;padding:15px 18px}
  .fit-home .hero-actions .text-link{font-size:14px}
  .fit-home .hero-trust{margin-top:16px;font-size:14px}
  .fit-home .site-home-scene-frame{display:block;position:relative;width:100%;height:100%;min-height:0}
  .fit-home .hero-content .site-home-scene-frame .scene{position:absolute;left:50%;top:50%;width:600px;height:480px;max-width:none;margin:0;transform:translate(-50%,-50%) scale(var(--site-scene-scale,1));transform-origin:center}
}
@media(min-width:1151px) and (min-height:480px) and (max-height:560px){
  .fit-home .hero{padding-top:18px;padding-bottom:45px}
  .fit-home .hero-copy h1{font-size:46px}
  .fit-home .hero-copy .intro{line-height:1.65}
  .fit-home .service-bar a{padding-block:14px}
  .m365-intro{padding-top:12px;padding-bottom:60px}
  .m365-intro-grid{padding-top:8px}
  .m365-intro h1{font-size:clamp(36px,8svh,45px);margin-top:0;margin-bottom:12px}
  .m365-intro .eyebrow{margin-bottom:4px}
  .m365-lead{line-height:1.65;margin-bottom:14px}
  .m365-actions .button{padding-block:14px}
  .m365-trust{margin-top:8px}
  .screen-fit-page .page-intro{padding-top:20px}
  .screen-fit-page .page-intro h1{font-size:40px;line-height:1.1;margin-bottom:18px}
  .screen-fit-page .site-intro-copy>.eyebrow{margin-bottom:14px}
  .screen-fit-page .page-lead{line-height:1.65}
}
@media(max-width:760px){
  .screen-fit-page .page-intro{padding-bottom:38px}
  .site-intro-copy{margin-top:28px}
  .screen-fit-page .site-intro-copy>.eyebrow{margin-top:0}
  .screen-fit-page .page-split,.screen-fit-page .contact-page-grid{grid-template-columns:1fr;gap:30px}
  .m365-intro{min-height:calc(100svh - var(--site-header-height))}
}
@media(min-width:761px) and (max-height:479px){
  .screen-fit-page .page-intro,.m365-intro,.fit-home .hero{height:auto;min-height:calc(100svh - var(--site-header-height))}
  .fit-home .site-home-scene-frame{height:300px}
}
