/* Fluid layouts between the desktop and mobile compositions. */
html, body { max-width: 100%; overflow-x: clip; }
img, svg { max-width: 100%; }

@media (min-width: 761px) and (max-width: 1240px) {
  .home { width: min(960px, calc(100% - 48px)); padding-block: clamp(72px, 9vw, 120px) clamp(96px, 12vw, 160px); }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 24px); margin-left: 0; }
  .case-card { width: 100%; height: auto; aspect-ratio: 626 / 263; min-width: 0; }
  .case-topline { top: 17.49%; left: 6.71%; right: 6.71%; gap: 3.19%; }
  .case-card h3 { font-size: 32px; }
  .tag-list { gap: .96%; }
  .tag-list span { min-height: auto; padding: .64% 1.6%; font-size: clamp(10px, 1.12vw, 14px); line-height: 1.28; }
  .case-bottomline > img { top: 34.22%; left: 6.71%; width: 30.35%; }
  .pie-illustration { top: 34.22%; left: 6.71%; width: 30.35%; height: 53.99%; }
  .case-bottomline p { top: 43.35%; left: 41.21%; width: 50.32%; font-size: clamp(14px, 1.6vw, 20px); line-height: 1.3; }
  .box-pair { top: 31.18%; left: 6.71%; width: 26.2%; height: 46.39%; }
  .box-pair .box-back { width: 73.17%; }
  .box-pair .box-front { top: 43.44%; left: 56.71%; width: 46.34%; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .wb-page { min-width: 0; padding: 32px 0 96px; overflow-x: clip; }
  .wb-back, .wb-content, .wb-footer { width: min(960px, calc(100% - 48px)); }
  .wb-content { margin-top: clamp(72px, 10vw, 110px); }
  .wb-content > section { margin-bottom: clamp(88px, 12vw, 120px); }
  .wb-content h1 { font-size: clamp(36px, 4.4vw, 44px); }
  .wb-feature { padding: clamp(24px, 3.2vw, 32px); }
  .wb-feature header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; }
  .wb-feature h2 { font-size: clamp(24px, 2.8vw, 28px); }
  .wb-feature header p, .wb-feature:nth-child(n) header p { width: auto; max-width: none; }
  .cascade { width: 100%; height: auto; aspect-ratio: 896 / 435; }
  .cascade { overflow: hidden; }
  .cascade .counter-screen {
    width: 52.46%;
    height: 48.05%;
    border: 0;
    box-shadow: none;
  }
  .cascade .counter-screen:nth-child(2) { top: 17.24%; left: 15.85%; }
  .cascade .counter-screen:nth-child(3) { top: 34.48%; left: 31.7%; }
  .cascade .counter-screen:nth-child(4) { top: 51.95%; left: 47.43%; }
  .cascade .counter-screen img { width: 100%; height: 100%; margin: 0; object-fit: contain; }
  .wide-shot, .wide-shot.tall { width: 100%; height: auto; }
  .training { width: 100%; }
  .training > img, .training > img:last-child { width: 100%; height: auto; }
  .training > div { display: grid; grid-template-columns: minmax(0, .423fr) minmax(0, .577fr); gap: 2%; }
  .training > div img:first-child, .training > div img:last-child { width: 100%; height: auto; }
  .wb-footer { gap: 16px; }
}

@media (min-width: 761px) and (max-width: 900px) {
  .case-header, .case-main { width: calc(100% - 48px); }
  .case-main { padding-top: 72px; }
  .case-section { margin-top: 96px; }
  .case-intro > h1, .case-section > h2 { font-size: clamp(40px, 5.8vw, 56px); }
  .brief-cards { grid-template-columns: 1fr; }
  .core-features .feature-card-head { grid-template-columns: minmax(0, 1fr) minmax(180px, .7fr) !important; gap: 20px; }
  .core-features .feature-card-head p { white-space: normal; }
  .core-features .feature-card .image-stage,
  .core-features .feature-card .core-personalization-static,
  .core-features .feature-card .basket-crops { width: 100%; }
  .scale-grid { width: 100%; }
}

@media (max-width: 420px) {
  .case-footer { width: 100% !important; }
  .wb-footer { width: calc(100% - 32px); }
}
