/* Preserve the scroll distance between services for eight cards. */
.js .products:not(.is-static) { min-height: 677.5svh; }

/* Keep all cases in normal reading flow when motion or space is limited. */
@media (prefers-reduced-motion: reduce), (max-height: 600px) {
  .js .cases { min-height: auto !important; }
  .js .cases__stage { position: relative; display: block; height: auto; padding-top: var(--header-height); }
  .js .cases__rail { display: none; }
  .js .case-study { position: relative; inset: auto; grid-template-rows: auto; overflow: visible; opacity: 1; pointer-events: auto; }
  .js .case-study + .case-study { border-top: 1px solid var(--line); }
  .js .case-study__story-viewport { max-height: none; overflow: visible; }
  .js .case-study__story { animation: none; transform: none !important; }
}

@media (max-width: 767px) and (max-height: 690px) {
  .hero-wordmark { top: 41%; }
}

@media (min-width: 768px) and (min-aspect-ratio: 3/2) {
  .hero-wordmark { top: 40%; width: min(90.43vw, 143svh); }
}

@media (orientation: landscape) and (max-height: 550px) {
  .hero-wordmark-stage { display: none; }
  .hero { min-height: 32rem; }
}
