@media(min-width:768px) and (min-height:560px) and (prefers-reduced-motion:no-preference){
  #main>section:not(#home,#contact){min-height:calc(100svh - var(--home-header))}
  #main>:is(#services,#systems,#support,#business){display:flex;flex-direction:column;justify-content:center}
  #main>:is(#systems,#support,#contact)>.wrap{width:min(88%,1180px);margin-inline:auto}
  #support {padding-block:clamp(12px,2.5vh,28px)}
  #support h2 {margin-bottom:clamp(10px,2vh,22px)}
  #support .quality-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
  #support .quality-grid img {display:block;height:clamp(90px,23vh,230px)}
  #support h3 {margin:10px 0 4px}
  #support .work-welfare {margin-top:clamp(10px,2vh,22px)}
  #contact {padding-block:clamp(24px,4vh,48px)}
}
@media(min-width:768px) and (min-height:560px) and (prefers-reduced-motion:no-preference){
  #main>:is(#services,#business) {padding-block:clamp(16px,2.5vh,30px)}
  #main>#systems {padding-block:clamp(8px,1.2vh,20px)}
  #systems h2 {margin-bottom:18px}
  #systems .tools-grid article {padding:clamp(14px,2vh,22px)}
  #systems .tools-grid h3 {margin-bottom:12px}
  #systems .leave-preview,#systems .office-preview {height:clamp(148px,20vh,190px)}
  #systems .office-preview {padding-block:8px}
  #systems .field-examples {margin-top:18px}
  #systems .work-more {margin-top:12px}
  #systems .field-examples dl {grid-template-columns:repeat(3,minmax(0,1fr))}
  @media (max-height:620px) {
    #main>#systems {padding-block:5px}
    #systems h2 {font-size:32px;margin-bottom:8px}
    #systems .tools-grid article {padding:10px}
    #systems .tools-grid h3,#systems .field-examples h3 {margin-bottom:6px}
    #systems .leave-preview,#systems .office-preview {height:132px}
    #systems .tool-copy,#systems .field-examples {margin-top:8px}
    #systems .field-examples dl>div {padding-top:5px}
  }
  #portfolio {padding-block:clamp(16px,2.5vh,28px)}
  #portfolio #stage:not(.finished) {height:clamp(320px,calc(100svh - var(--home-header) - 250px),720px)}
}

@media(min-width:1100px) and (max-width:1499px) {
  #main>:is(#systems,#support,#contact)>.wrap {width:min(1180px,calc(100% - 240px))}
}

#portfolio .case-bar,.case-controls,.case-bar nav {display:flex;align-items:center;gap:10px}
#portfolio .case-bar {justify-content:space-between;flex-wrap:wrap;border-bottom:1px solid #dbe2ea;padding-bottom:8px}
.case-bar nav button {border:0;border-radius:0;color:#42546b;font-weight:650;font-size:17px}
.case-bar nav button[aria-pressed=true] {color:#185aad;box-shadow:inset 0 -3px}
.case-controls output {min-width:4ch;text-align:center;font-variant-numeric:tabular-nums}
.case-window {overflow:clip;touch-action:pan-y;user-select:none}
.case-strip {display:flex;transition:transform .28s ease-out}
.case-page {flex:0 0 100%;min-width:0;display:grid;grid-template-columns:repeat(var(--case-columns),minmax(0,1fr));gap:20px 14px;align-content:start;padding:18px 0}
#portfolio .case-page figure {opacity:1}
#portfolio .case-page img {width:100%;height:clamp(72px,16svh,155px);object-fit:cover;border-radius:5px;pointer-events:none}
@media(max-width:767px){.case-bar nav button{padding:8px 5px;font-size:16px}.case-page{gap:12px}.case-controls{margin-left:auto}}
@media(prefers-reduced-motion:reduce){.case-strip{transition:none}}
