/* October Lanhu homepage revision. Loaded only on the front page at 801px+.
   Preserve the existing mobile artboard; desktop sections fill the viewport
   while their content stays within the approved 1280px reading width. */
@media (min-width: 801px) {
  .keyway-home .site-shell { font-family: 'KeywayMobileInter', Inter, Arial, sans-serif; }
  .keyway-home .hero { background-image: url('images/desktop-home-202610/hero-factory.webp'); }
  .keyway-home .hero h1 { line-height: 61px; letter-spacing: 0; }
  .keyway-home .hero-copy { max-width: 100%; line-height: 22px; font-weight: 500; }
  .keyway-home .hero-actions .button { min-width: 153px; min-height: 48px; border-radius: 8px; font-size: 18px; }
  .keyway-home .hero-actions .text-link { align-self: flex-end; font-size: 18px; font-weight: 700; line-height: 22px; }
  .keyway-home .intro { min-height: 724px; }
  .keyway-home .intro .section-kicker, .keyway-home .intro .orange-rule,
  .keyway-home .applications .section-kicker, .keyway-home .applications .orange-rule { display: none; }
  .keyway-home .intro-grid { margin-top: 0; }
  .keyway-home .intro-copy h2 { font-weight: 600; }
  .keyway-home .intro-copy p { font-weight: 500; }
  .keyway-home .intro-copy .inline-link { font-size: 18px; line-height: 28px; }
  /* The desktop Design envelope table retains the previously approved style. */
  .keyway-home .spec-card { font-family: Inter, Arial, Helvetica, sans-serif; }
  .keyway-home .applications { min-height: 925px; }
  .keyway-home .applications h2 { margin-top: 0; line-height: 53px; }
  .keyway-home .applications .section-lead { font-weight: 500; }
  .keyway-home .application-card { height: auto; min-height: 136px; padding-bottom: 7px; }
  .keyway-home .process { height: 723px; background-image: url('images/desktop-home-202610/process-factory.webp'); background-size: 100% 563px; }
  .keyway-home .process h2 { max-width: 100%; }
  .keyway-home .process-lead { display: block; margin: 24px 0 0; font-size: 18px; line-height: 24px; }
  .keyway-home .process-grid { margin-top: 48px; }
  .keyway-home .process-step h3 { font-weight: 600; }
  .keyway-home .process-step:nth-child(4) { color: var(--ink); background: rgba(255, 255, 255, .9); }
  .keyway-home .process-grid:has(.process-step:hover) .process-step:nth-child(4):not(:hover) { color: #fff; background: transparent; }
  .keyway-home .builds { min-height: 990px; }
  .keyway-home .builds h2 { line-height: 56px; font-weight: 700; }
  .keyway-home .builds .section-lead { margin-top: 24px; line-height: 30px; }
  .keyway-home .build-grid { margin-top: 56px; }
  .keyway-home .build-card { height: auto; min-height: 320px; }
  .keyway-home .build-visual > picture { display: block; }
  .keyway-home .build-overlay span { letter-spacing: 0; }
  .keyway-home .build-card .accent { font-weight: 600; }
  .keyway-home .reasons { background-image: url('images/desktop-home-202610/certificates-showroom.webp'); }
  .keyway-home .reasons-panel { overflow: visible; background-color: rgba(0, 0, 0, .7); }
  .keyway-home .reason { width: min(579px, calc(100% - 128px)); }
  .keyway-home .reason h3 { width: auto; white-space: normal; }
  .keyway-home .reasons-panel > article:nth-of-type(4) h3 { width: 476px; max-width: 100%; white-space: normal; }
  .keyway-home .reason p { max-width: calc(50.7292vw - 128px); }
  .keyway-home .reason:first-of-type p { width: 564px; }
  .keyway-home .certifications { padding-bottom: 80px; }
  .keyway-home .certifications h2 { min-height: 56px; }
  .keyway-home .certifications .section-lead { min-height: 30px; }
  .keyway-home .cert-column h3 { margin-bottom: 12px; line-height: 34px; font-weight: 600; }
  .keyway-home .cert-column h3::after { content: ''; display: block; width: 80px; height: 3px; margin-top: 2px; background: var(--orange); }
  .keyway-home .cert-table td { padding-block: 12px; white-space: normal; }
  .keyway-home .cert-badge { align-items: flex-start; justify-content: flex-start; text-align: left; }
  .keyway-home .cert-badge strong { min-height: 26px; }
  .keyway-home .cert-badge span { min-height: 58px; }
  .keyway-home .cert-note { line-height: 25px; }
  .keyway-home .cert-note .inline-link { line-height: 26px; }
}

@media (min-width: 801px) and (max-width: 1600px) {
  .keyway-home .reason { width: auto; }
  .keyway-home .reason p, .keyway-home .reason:first-of-type p { width: auto; max-width: 100%; }
  .keyway-home .reasons-panel > article:nth-of-type(4) h3 { width: auto; }
  .keyway-home .reasons-inner { background: url('images/desktop-home-202610/certificates-showroom.webp') center / cover no-repeat; }
}

@media (min-width: 801px) and (max-width: 1200px) {
  .keyway-home .reasons { background: #fff; }
  .keyway-home .reasons-inner { background: none; }
  .keyway-home .reasons-inner > div:first-child { background-image: url('images/desktop-home-202610/certificates-showroom.webp'); }
  .keyway-home .process { height: auto; background-position: center; background-size: cover; }
  .keyway-home .process h2 { margin-top: 0; padding-top: 56px; }
  .keyway-home .process-grid { margin-top: 40px; }
  .keyway-home .cert-table td:first-child { width: 42%; }
}

@media (min-width: 1601px) {
  .keyway-home .reason .desktop-break { display: none; }
}
