/* V31.1 — desktop-only fitting. Mobile/phone layout is deliberately untouched. */
@media (min-width: 851px) {
  .ct31-layout {
    height: 100svh;
    min-height: 680px;
    padding: clamp(10px, 1.6vh, 24px) clamp(24px, 4vw, 96px) clamp(8px, 1.2vh, 20px);
    gap: clamp(7px, 1vh, 14px);
  }
  .ct31-main-area {
    flex: 1 1 auto;
    min-height: 0;
    padding-top: clamp(3px, .65vh, 10px);
  }
  .ct31-top {
    width: min(100%, 1280px);
    gap: 20px;
  }
  .ct31-brand {width: clamp(340px, 44vw, 730px);max-width: 64%;}
  .ct31-mark {
    width: clamp(72px, 8.4vh, 98px);
    height: clamp(72px, 8.4vh, 98px);
    padding: 6px;
    border-radius: 21px;
    margin-bottom: clamp(6px, .9vh, 12px);
  }
  .ct31-wordmark {font-size: clamp(40px, 3.75vw, 69px);}
  .ct31-brand p {
    font-size: clamp(16px, 1.2vw, 22px);
    margin-top: 4px;
    line-height: 1.28;
  }
  .ct31-lang {min-width: clamp(180px, 15vw, 230px);margin-top: 2px;}
  .ct31-lang a {min-height: clamp(36px, 4.6vh, 47px);font-size: clamp(14px, 1.1vw, 18px);}
  .ct31-content {
    width: min(100%, 1120px);
    max-width: 61%;
    margin-top: auto;
    margin-bottom: clamp(3px, .75vh, 12px);
  }
  .ct31-feature-grid {
    gap: clamp(11px, 1.4vw, 22px);
    margin-bottom: clamp(11px, 1.7vh, 23px);
  }
  .ct31-feature {
    min-height: clamp(99px, 13vh, 150px);
    padding: 11px 10px;
    border-radius: clamp(16px, 1.5vw, 25px);
    gap: clamp(5px, .65vh, 9px);
    font-size: clamp(15px, 1.16vw, 21px);
    line-height: 1.22;
  }
  .ct31-feature svg {width: clamp(30px, 2.6vw, 44px);height: clamp(30px, 2.6vw, 44px);}
  .ct31-actions {gap: clamp(8px, 1vh, 12px);}
  .ct31-primary {
    min-height: clamp(64px, 8vh, 87px);
    font-size: clamp(21px, 1.65vw, 29px);
    padding: 10px 18px;
  }
  .ct31-secondary {
    min-height: clamp(49px, 6.4vh, 68px);
    font-size: clamp(18px, 1.38vw, 25px);
    padding: 9px 18px;
  }
  .ct31-primary svg,.ct31-secondary svg {
    width: clamp(22px, 1.8vw, 28px);
    height: clamp(22px, 1.8vw, 28px);
  }
  .ct31-clients {flex: 0 0 auto;margin: 0;padding: 0;}
  .ct31-section-heading {gap: 13px;margin-bottom: clamp(4px, .8vh, 10px);}
  .ct31-section-heading h2 {font-size: clamp(15px, 1.2vw, 20px);}
  .ct31-client-group {gap: clamp(17px, 2vw, 36px);padding-right: clamp(17px, 2vw, 36px);}
  .ct31-client {flex-basis: clamp(96px, 7.6vw, 144px);gap: clamp(4px, .6vh, 8px);}
  .ct31-client-logo {
    width: clamp(68px, 9vh, 108px);
    height: clamp(68px, 9vh, 108px);
  }
  .ct31-client-name {font-size: clamp(10px, .85vw, 14px);line-height: 1.18;}
  .ct31-footer {padding: clamp(3px, .6vh, 8px) 0 clamp(3px, .5vh, 8px);gap: 2px;}
  .ct31-sport-icons span {width: clamp(42px, 5.5vh, 61px);height: clamp(42px, 5.5vh, 61px);}
  .ct31-sport-icons svg {width: clamp(21px, 2vw, 28px);height: clamp(21px, 2vw, 28px);}
  .ct31-footer p {font-size: clamp(11px, .9vw, 14px);margin-top: 2px;}
  .ct31-photo-mask {top: -34px;height: min(55vh, 630px);}
  .ct31-photo-arc {top: -20px;height: min(57vh, 650px);}
}
/* Short computer screens: preserve the entire welcome screen without clipped clients. */
@media (min-width: 851px) and (max-height: 790px) {
  .ct31-layout {gap: 6px;padding-top: 9px;padding-bottom: 6px;}
  .ct31-main-area {padding-top: 1px;}
  .ct31-mark {width: 66px;height: 66px;margin-bottom: 5px;}
  .ct31-wordmark {font-size: clamp(35px, 3.55vw, 57px);}
  .ct31-brand p {font-size: clamp(14px, 1.12vw, 18px);}
  .ct31-feature-grid {margin-bottom: 10px;}
  .ct31-feature {min-height: 90px;padding: 7px 8px;font-size: clamp(13px, 1.08vw, 17px);}
  .ct31-actions {gap: 7px;}
  .ct31-primary {min-height: 60px;font-size: clamp(19px, 1.6vw, 25px);}
  .ct31-secondary {min-height: 46px;font-size: clamp(17px, 1.3vw, 22px);}
  .ct31-client-logo {width: 67px;height: 67px;}
  .ct31-client {gap: 3px;}
  .ct31-section-heading {margin-bottom: 4px;}
  .ct31-footer {padding: 1px 0;}
  .ct31-sport-icons span {width: 40px;height: 40px;}
  .ct31-photo-mask {height: min(53vh, 500px);}
  .ct31-photo-arc {height: min(55vh, 520px);}
}
/* Very large desktop monitors: use the space for stronger, readable controls. */
@media (min-width: 1800px) and (min-height: 900px) {
  .ct31-content {max-width: 60%;width: min(100%, 1180px);}
  .ct31-photo-mask {width: 53vw;}
  .ct31-photo-arc {width: 55vw;}
}
/* The login form is taller than the welcome buttons: when opened, let the page
   grow naturally rather than placing the form above the client carousel. */
@media (min-width: 851px) {
  .ct31-page.ct31-open .ct31-layout,
  .ct31-page.ct31-has-feedback .ct31-layout {height: auto;min-height: 100svh;}
  .ct31-page.ct31-open .ct31-main-area,
  .ct31-page.ct31-has-feedback .ct31-main-area {flex: 1 0 auto;min-height: 0;}
  .ct31-page.ct31-open .ct31-content,
  .ct31-page.ct31-has-feedback .ct31-content {margin-top: clamp(12px, 2vh, 24px);}
}
