/* Mobile/tablet landscape only.
   This file is intentionally isolated from portrait and desktop. */
@media (orientation: landscape) and (max-width: 1180px) and (max-height: 620px),
       (orientation: landscape) and (max-device-width: 1368px) and (max-device-height: 1024px),
       (orientation: landscape) and (any-pointer: coarse) and (max-width: 1368px) and (max-height: 920px) {
  html,
  body.home-page {
    width: 100% !important;
    height: 100vh !important;
    min-height: 100vh !important;
    height: 100svh !important;
    min-height: 100svh !important;
    overflow: hidden !important;
    background: var(--cream-light, #f7f2e8) !important;
  }

  body.home-page {
    --header-height: clamp(82px, 24vh, 122px);
    --landscape-footer-height: clamp(24px, 6vh, 34px);
  }

  body.home-page .site {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: var(--header-height, 124px) !important;
    bottom: var(--landscape-footer-height, 34px) !important;
    height: auto !important;
    height: calc(100vh - var(--header-height, 124px) - var(--landscape-footer-height, 34px)) !important;
    height: calc(100svh - var(--header-height, 124px) - var(--landscape-footer-height, 34px)) !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 58fr) minmax(260px, 42fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    gap: clamp(8px, 1.6vw, 14px) !important;
    padding: clamp(5px, 1.2vh, 9px) clamp(10px, 1.8vw, 18px) !important;
    padding: clamp(5px, 1.2svh, 9px) clamp(10px, 1.8vw, 18px) !important;
    overflow: hidden !important;
    background: var(--cream-light, #f7f2e8) !important;
    box-sizing: border-box !important;
  }

  body.home-page .desktop-home-panel,
  body.home-page .desktop-slide-caption,
  body.home-page .home-scroll-indicator {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.home-page .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    display: block !important;
    height: var(--header-height, 124px) !important;
    min-height: var(--header-height, 124px) !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 70 !important;
    overflow: hidden !important;
    background: var(--olive-mid, #858b6c) !important;
    transform: none !important;
  }

  body.home-page .site-header .header-inner,
  body.home-page .site-header .header-logo,
  body.home-page .site-header .header-contact,
  body.home-page .site-header .menu-toggle {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none;
  }

  body.home-page .site-header .header-inner {
    min-height: var(--header-height, 124px) !important;
  }

  body.home-page .site-header .header-logo {
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  body.home-page .site-header .header-contact,
  body.home-page .site-header .menu-toggle {
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  body.home-page .hero-slideshow {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  body.home-page .hero-slideshow .slide-layer {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    background: var(--cream-light, #f7f2e8) !important;
    box-shadow: 0 10px 24px rgba(32, 37, 27, .12) !important;
  }

  body.home-page .hero-slideshow .slide-layer img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: var(--cream-light, #f7f2e8) !important;
  }

  body.home-page .hero-slideshow .slide-dots {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    bottom: clamp(8px, 2.2svh, 12px) !important;
    transform: translateX(-50%) !important;
    z-index: 6 !important;
  }

  body.home-page .home-about-section.home-main-services-section {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  body.home-page .home-main-services-section > .svc-line-section {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: clamp(4px, 1.0svh, 7px) clamp(6px, 1.2vw, 10px) !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, #fbf7ee 0%, #f7f2e8 100%) !important;
    border: 1px solid rgba(80, 88, 63, .20) !important;
    box-shadow: 0 10px 24px rgba(32, 37, 27, .12) !important;
    box-sizing: border-box !important;
  }

  body.home-page .svc-line-content-fit {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.home-page .home-main-services-section .svc-line-caption {
    display: none !important;
  }

  body.home-page .home-main-services-section .svc-line-title-art {
    flex: 0 0 auto !important;
    width: 100% !important;
    margin: 0 auto clamp(2px, .55svh, 5px) !important;
  }

  body.home-page .home-main-services-section .svc-line-title-art img {
    width: min(70%, 300px) !important;
    max-height: clamp(28px, 8.5svh, 44px) !important;
    height: auto !important;
    object-fit: contain !important;
  }

  body.home-page .home-main-services-section .svc-line-grid {
    flex: 0 1 auto !important;
    width: min(100%, 390px) !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    row-gap: clamp(0px, .35svh, 3px) !important;
    column-gap: 0 !important;
    margin: 0 auto !important;
  }

  body.home-page .home-main-services-section .svc-line-item {
    min-height: clamp(39px, 12.2svh, 58px) !important;
    padding: 0 2px !important;
  }

  body.home-page .home-main-services-section .svc-line-item:not(:nth-child(3n))::after {
    top: 8% !important;
    height: 68% !important;
  }

  body.home-page .home-main-services-section .svc-line-icon {
    width: clamp(20px, 5.9svh, 30px) !important;
    height: clamp(20px, 5.9svh, 30px) !important;
    min-width: clamp(20px, 5.9svh, 30px) !important;
    margin-bottom: 2px !important;
  }

  body.home-page .home-main-services-section .svc-line-rule {
    width: clamp(14px, 3.8svh, 20px) !important;
    margin-bottom: 2px !important;
  }

  body.home-page .home-main-services-section .svc-line-name {
    font-size: clamp(7px, 2.15svh, 9.5px) !important;
    line-height: .88 !important;
  }

  body.home-page #homeAboutJump {
    position: relative !important;
    width: 100% !important;
    min-height: clamp(18px, 5.2svh, 25px) !important;
    margin: clamp(1px, .45svh, 3px) auto 0 !important;
    padding: 0 !important;
  }

  body.home-page #homeAboutJump .svc-area-jump-text {
    font-size: clamp(8px, 2.5svh, 11px) !important;
  }

  body.home-page #homeAboutJump .svc-area-jump-arrow {
    width: clamp(13px, 3.5svh, 18px) !important;
    height: clamp(7px, 2svh, 10px) !important;
    margin-top: 0 !important;
  }

  body.home-page .home-services-overlay.home-about-overlay {
    display: none !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    position: static !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: auto !important;
    z-index: 20 !important;
    background: transparent !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-about-panel-section {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: clamp(8px, 1.7svh, 12px) !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, #fbf7ee 0%, #f7f2e8 100%) !important;
    border: 1px solid rgba(80, 88, 63, .20) !important;
    box-shadow: 0 10px 24px rgba(32, 37, 27, .12) !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-services-close,
  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-services-panel-handle,
  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .about-bottom-wrap-step49 {
    display: none !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-about-content-fit {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-section-up-jump {
    min-height: clamp(22px, 6svh, 30px) !important;
    margin: 0 auto clamp(3px, 1svh, 6px) !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-about-card.about-card-step49 {
    width: 100% !important;
    margin: 0 auto !important;
    padding: clamp(8px, 1.8svh, 12px) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .about-top-wrap-step49 img {
    width: min(72%, 300px) !important;
    max-height: clamp(36px, 10svh, 52px) !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-about-copy.about-copy-step49 p {
    font-size: clamp(9px, 2.5svh, 12px) !important;
    line-height: 1.14 !important;
    margin: 0 0 clamp(4px, 1svh, 7px) !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-about-footer {
    display: none !important;
  }

  body.home-page .desktop-footer {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 100% !important;
    min-height: var(--landscape-footer-height, 34px) !important;
    margin: 0 auto !important;
    padding: 3px 10px max(3px, env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
    z-index: 75 !important;
    background: var(--cream-light, #f7f2e8) !important;
    color: rgba(32, 37, 27, .78) !important;
    text-align: center !important;
    font-size: clamp(9px, 2.4svh, 12px) !important;
    line-height: 1.1 !important;
  }

  body.home-page .desktop-footer .home-footer-links {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: clamp(20px, 4vw, 34px) !important;
    margin: 0 0 2px !important;
  }


  body.home-page .desktop-footer nav.home-footer-links a + a {
    margin-left: clamp(18px, 4vw, 32px) !important;
  }

  body.home-page .desktop-footer a {
    color: var(--olive-dark, #50583f) !important;
    font-size: clamp(10px, 2.5svh, 13px) !important;
  }

  body.home-page .desktop-footer p {
    margin: 0 !important;
    font-size: clamp(8.5px, 2.2svh, 11px) !important;
  }

  @media (orientation: landscape) and (max-height: 520px) {
    body.home-page {
      --header-height: clamp(74px, 22vh, 106px);
      --landscape-footer-height: clamp(22px, 5vh, 30px);
    }
    body.home-page .home-main-services-section .svc-line-title-art img {
      max-height: clamp(24px, 7.5vh, 36px) !important;
      width: min(66%, 260px) !important;
    }
    body.home-page .home-main-services-section .svc-line-item {
      min-height: clamp(34px, 11vh, 50px) !important;
    }
    body.home-page .home-main-services-section .svc-line-icon {
      width: clamp(18px, 5.2vh, 26px) !important;
      height: clamp(18px, 5.2vh, 26px) !important;
      min-width: clamp(18px, 5.2vh, 26px) !important;
    }
    body.home-page .home-main-services-section .svc-line-name {
      font-size: clamp(6.5px, 1.95vh, 8.8px) !important;
      line-height: .86 !important;
    }
  }

}

@supports (height: 100svh) {
  @media (orientation: landscape) and (max-width: 1180px) and (max-height: 620px),
         (orientation: landscape) and (max-device-width: 1368px) and (max-device-height: 1024px),
         (orientation: landscape) and (any-pointer: coarse) and (max-width: 1368px) and (max-height: 920px) {
    body.home-page {
      --header-height: clamp(82px, 24svh, 122px);
      --landscape-footer-height: clamp(24px, 6svh, 34px);
    }
  }
}


/* v2: cross-browser landscape fit pass - isolated to mobile/tablet landscape only. */
@media (orientation: landscape) and (max-width: 1180px) and (max-height: 700px),
       (orientation: landscape) and (max-device-width: 1368px) and (max-device-height: 1024px),
       (orientation: landscape) and (any-pointer: coarse) and (max-width: 1368px) and (max-height: 920px) {
  body.home-page {
    --header-height: clamp(56px, 17vh, 88px) !important;
    --landscape-footer-height: clamp(20px, 4.8vh, 26px) !important;
  }

  html,
  body.home-page {
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
  }

  body.home-page .site-header {
    height: var(--header-height, 78px) !important;
    min-height: var(--header-height, 78px) !important;
    max-height: var(--header-height, 78px) !important;
  }

  body.home-page .site-header .header-inner {
    height: var(--header-height, 78px) !important;
    min-height: var(--header-height, 78px) !important;
  }

  body.home-page .site-header .header-logo img {
    max-height: calc(var(--header-height, 78px) - 12px) !important;
    width: auto !important;
    max-width: min(26vw, 158px) !important;
    object-fit: contain !important;
  }

  body.home-page .site-header .menu-toggle {
    width: clamp(34px, 8.5vh, 46px) !important;
    height: clamp(34px, 8.5vh, 46px) !important;
    left: clamp(8px, 2vw, 18px) !important;
  }

  body.home-page .site-header .header-contact {
    right: clamp(8px, 2vw, 18px) !important;
  }

  body.home-page .site-header .header-icon-link {
    width: clamp(20px, 5.2vh, 28px) !important;
    height: clamp(20px, 5.2vh, 28px) !important;
  }

  body.home-page .site-header .header-book-button {
    min-height: clamp(20px, 5.4vh, 27px) !important;
    padding: 0 clamp(12px, 2.7vw, 22px) !important;
    font-size: clamp(9px, 2.5vh, 13px) !important;
  }

  body.home-page .site {
    top: var(--header-height, 78px) !important;
    bottom: var(--landscape-footer-height, 24px) !important;
    height: calc(100vh - var(--header-height, 78px) - var(--landscape-footer-height, 24px)) !important;
    grid-template-columns: minmax(0, 56fr) minmax(230px, 44fr) !important;
    gap: clamp(5px, 1.1vw, 10px) !important;
    padding: clamp(3px, .8vh, 6px) clamp(7px, 1.4vw, 12px) !important;
  }

  body.home-page .hero-slideshow .slide-layer {
    border-radius: 12px !important;
  }

  body.home-page .hero-slideshow .slide-dots {
    bottom: clamp(5px, 1.4vh, 9px) !important;
  }

  body.home-page .desktop-footer {
    min-height: var(--landscape-footer-height, 24px) !important;
    height: var(--landscape-footer-height, 24px) !important;
    padding: 1px 8px max(1px, env(safe-area-inset-bottom)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(8px, 2vw, 18px) !important;
    line-height: 1 !important;
    overflow: hidden !important;
  }

  body.home-page .desktop-footer .home-footer-links {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(12px, 2.6vw, 24px) !important;
    margin: 0 !important;
  }

  body.home-page .desktop-footer nav.home-footer-links a + a {
    margin-left: 0 !important;
  }

  body.home-page .desktop-footer a,
  body.home-page .desktop-footer p {
    font-size: clamp(7.5px, 1.8vh, 10px) !important;
    line-height: 1 !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  body.home-page .home-main-services-section > .svc-line-section {
    padding: clamp(3px, .7vh, 5px) clamp(4px, .9vw, 8px) !important;
    border-radius: 12px !important;
  }

  body.home-page .svc-line-content-fit {
    justify-content: center !important;
    gap: 0 !important;
  }

  body.home-page .home-main-services-section .svc-line-title-art {
    margin-bottom: clamp(1px, .3vh, 3px) !important;
  }

  body.home-page .home-main-services-section .svc-line-title-art img {
    width: min(62%, 250px) !important;
    max-height: clamp(21px, 6.4vh, 34px) !important;
  }

  body.home-page .home-main-services-section .svc-line-grid {
    width: min(100%, 355px) !important;
    row-gap: 0 !important;
  }

  body.home-page .home-main-services-section .svc-line-item {
    min-height: clamp(29px, 8.6vh, 42px) !important;
    padding: 0 1px !important;
  }

  body.home-page .home-main-services-section .svc-line-icon {
    width: clamp(15px, 4.6vh, 23px) !important;
    height: clamp(15px, 4.6vh, 23px) !important;
    min-width: clamp(15px, 4.6vh, 23px) !important;
    margin-bottom: 1px !important;
  }

  body.home-page .home-main-services-section .svc-line-rule {
    width: clamp(10px, 2.7vh, 16px) !important;
    margin-bottom: 1px !important;
  }

  body.home-page .home-main-services-section .svc-line-name {
    font-size: clamp(5.8px, 1.72vh, 8px) !important;
    line-height: .82 !important;
    letter-spacing: -.01em !important;
  }

  body.home-page #homeAboutJump {
    min-height: clamp(13px, 3.7vh, 18px) !important;
    margin: clamp(0px, .2vh, 2px) auto 0 !important;
  }

  body.home-page #homeAboutJump .svc-area-jump-text {
    font-size: clamp(6.8px, 1.95vh, 9px) !important;
    line-height: 1 !important;
  }

  body.home-page #homeAboutJump .svc-area-jump-arrow {
    width: clamp(9px, 2.5vh, 13px) !important;
    height: clamp(5px, 1.5vh, 8px) !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-about-panel-section {
    padding: clamp(3px, .75vh, 6px) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-about-content-fit {
    justify-content: center !important;
    gap: 0 !important;
    overflow: hidden !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-section-up-jump {
    min-height: clamp(13px, 3.7vh, 18px) !important;
    margin: 0 auto clamp(1px, .35vh, 3px) !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-section-up-jump .svc-area-jump-text {
    font-size: clamp(6.8px, 1.95vh, 9px) !important;
    line-height: 1 !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-section-up-jump .svc-area-jump-arrow {
    width: clamp(9px, 2.5vh, 13px) !important;
    height: clamp(5px, 1.5vh, 8px) !important;
    margin: 0 !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-about-card.about-card-step49 {
    width: 100% !important;
    max-height: calc(100% - clamp(15px, 4vh, 20px)) !important;
    padding: clamp(4px, .85vh, 7px) clamp(5px, 1vw, 8px) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .about-top-wrap-step49 img {
    width: min(58%, 225px) !important;
    max-height: clamp(22px, 6vh, 32px) !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-about-copy.about-copy-step49 p {
    font-size: clamp(6.5px, 1.78vh, 8.4px) !important;
    line-height: 1.02 !important;
    margin: 0 0 clamp(1px, .35vh, 3px) !important;
  }
}

@supports (height: 100svh) {
  @media (orientation: landscape) and (max-width: 1180px) and (max-height: 700px),
         (orientation: landscape) and (max-device-width: 1368px) and (max-device-height: 1024px),
         (orientation: landscape) and (any-pointer: coarse) and (max-width: 1368px) and (max-height: 920px) {
    html,
    body.home-page {
      height: 100svh !important;
      min-height: 100svh !important;
    }

    body.home-page {
      --header-height: clamp(56px, 17svh, 88px) !important;
      --landscape-footer-height: clamp(20px, 4.8svh, 26px) !important;
    }

    body.home-page .site {
      height: calc(100svh - var(--header-height, 78px) - var(--landscape-footer-height, 24px)) !important;
      padding: clamp(3px, .8svh, 6px) clamp(7px, 1.4vw, 12px) !important;
    }
  }
}

@media (orientation: landscape) and (max-height: 430px) and (max-width: 1180px) {
  body.home-page {
    --header-height: clamp(50px, 15vh, 70px) !important;
    --landscape-footer-height: clamp(18px, 4.2vh, 22px) !important;
  }

  body.home-page .site-header .header-logo img {
    max-height: calc(var(--header-height, 64px) - 8px) !important;
    max-width: min(24vw, 135px) !important;
  }

  body.home-page .site {
    grid-template-columns: minmax(0, 55fr) minmax(210px, 45fr) !important;
    gap: 6px !important;
    padding: 3px 6px !important;
  }

  body.home-page .home-main-services-section > .svc-line-section,
  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-about-panel-section {
    padding: 3px 4px !important;
  }

  body.home-page .home-main-services-section .svc-line-title-art img {
    max-height: 23px !important;
    width: min(58%, 210px) !important;
  }

  body.home-page .home-main-services-section .svc-line-item {
    min-height: 31px !important;
  }

  body.home-page .home-main-services-section .svc-line-icon {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
  }

  body.home-page .home-main-services-section .svc-line-name {
    font-size: 6.2px !important;
    line-height: .8 !important;
  }

  body.home-page #homeAboutJump,
  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-section-up-jump {
    min-height: 14px !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .about-top-wrap-step49 img {
    max-height: 24px !important;
    width: min(54%, 195px) !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-about-card.about-card-step49 {
    padding: 3px 5px !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-about-copy.about-copy-step49 p {
    font-size: 6.5px !important;
    line-height: .98 !important;
    margin-bottom: 1px !important;
  }

  body.home-page .desktop-footer a,
  body.home-page .desktop-footer p {
    font-size: 7px !important;
  }
}


/* v3: readability rebalance. Keeps the same isolated landscape scope, but gives
   the services/about panels more width and restores readable type sizes. */
@media (orientation: landscape) and (max-width: 1180px) and (max-height: 700px),
       (orientation: landscape) and (max-device-width: 1368px) and (max-device-height: 1024px),
       (orientation: landscape) and (any-pointer: coarse) and (max-width: 1368px) and (max-height: 920px) {
  body.home-page {
    --header-height: clamp(54px, 15.8vh, 82px) !important;
    --landscape-footer-height: clamp(20px, 4.6vh, 25px) !important;
  }

  body.home-page .site {
    grid-template-columns: minmax(0, 52fr) minmax(255px, 48fr) !important;
    gap: clamp(6px, 1.2vw, 11px) !important;
    padding: clamp(4px, .9vh, 7px) clamp(8px, 1.5vw, 13px) !important;
  }

  body.home-page .home-main-services-section > .svc-line-section {
    padding: clamp(5px, .95vh, 8px) clamp(6px, 1.05vw, 10px) !important;
  }

  body.home-page .home-main-services-section .svc-line-title-art img {
    width: min(72%, 300px) !important;
    max-height: clamp(28px, 7.6vh, 42px) !important;
  }

  body.home-page .home-main-services-section .svc-line-grid {
    width: min(100%, 430px) !important;
    row-gap: clamp(1px, .35vh, 4px) !important;
  }

  body.home-page .home-main-services-section .svc-line-item {
    min-height: clamp(38px, 10.4vh, 54px) !important;
    padding: 0 2px !important;
  }

  body.home-page .home-main-services-section .svc-line-icon {
    width: clamp(21px, 5.6vh, 29px) !important;
    height: clamp(21px, 5.6vh, 29px) !important;
    min-width: clamp(21px, 5.6vh, 29px) !important;
    margin-bottom: 2px !important;
  }

  body.home-page .home-main-services-section .svc-line-rule {
    width: clamp(13px, 3.2vh, 19px) !important;
    margin-bottom: 2px !important;
  }

  body.home-page .home-main-services-section .svc-line-name {
    font-size: clamp(7.4px, 2.05vh, 9.6px) !important;
    line-height: .88 !important;
    letter-spacing: 0 !important;
  }

  body.home-page #homeAboutJump {
    min-height: clamp(17px, 4.4vh, 23px) !important;
    margin: clamp(1px, .35vh, 3px) auto 0 !important;
  }

  body.home-page #homeAboutJump .svc-area-jump-text {
    font-size: clamp(8.4px, 2.25vh, 11px) !important;
    line-height: 1.02 !important;
  }

  body.home-page #homeAboutJump .svc-area-jump-arrow {
    width: clamp(12px, 3.1vh, 17px) !important;
    height: clamp(7px, 1.75vh, 10px) !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-about-panel-section {
    padding: clamp(5px, 1vh, 8px) !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-section-up-jump {
    min-height: clamp(17px, 4.4vh, 23px) !important;
    margin-bottom: clamp(2px, .45vh, 4px) !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-section-up-jump .svc-area-jump-text {
    font-size: clamp(8.4px, 2.25vh, 11px) !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-section-up-jump .svc-area-jump-arrow {
    width: clamp(12px, 3.1vh, 17px) !important;
    height: clamp(7px, 1.75vh, 10px) !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-about-card.about-card-step49 {
    padding: clamp(6px, 1.15vh, 9px) clamp(7px, 1.25vw, 11px) !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .about-top-wrap-step49 img {
    width: min(66%, 260px) !important;
    max-height: clamp(29px, 7.4vh, 40px) !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-about-copy.about-copy-step49 p {
    font-size: clamp(7.8px, 2.05vh, 9.8px) !important;
    line-height: 1.08 !important;
    margin-bottom: clamp(2px, .45vh, 4px) !important;
  }

  body.home-page .desktop-footer a {
    font-size: clamp(8.5px, 2.15vh, 11px) !important;
  }

  body.home-page .desktop-footer p {
    font-size: clamp(7.7px, 1.95vh, 10px) !important;
  }
}

/* Extra-short landscape browser chrome: keep readable, but do not return to the tiny v2 sizes. */
@media (orientation: landscape) and (max-height: 430px) and (max-width: 1180px) {
  body.home-page {
    --header-height: clamp(50px, 14.7vh, 68px) !important;
    --landscape-footer-height: clamp(18px, 4.1vh, 22px) !important;
  }

  body.home-page .site {
    grid-template-columns: minmax(0, 51fr) minmax(250px, 49fr) !important;
    gap: 6px !important;
    padding: 3px 7px !important;
  }

  body.home-page .home-main-services-section .svc-line-title-art img {
    max-height: 27px !important;
    width: min(66%, 245px) !important;
  }

  body.home-page .home-main-services-section .svc-line-item {
    min-height: 36px !important;
  }

  body.home-page .home-main-services-section .svc-line-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
  }

  body.home-page .home-main-services-section .svc-line-rule {
    width: 13px !important;
  }

  body.home-page .home-main-services-section .svc-line-name {
    font-size: 7.1px !important;
    line-height: .84 !important;
  }

  body.home-page #homeAboutJump .svc-area-jump-text,
  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-section-up-jump .svc-area-jump-text {
    font-size: 8px !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .about-top-wrap-step49 img {
    max-height: 28px !important;
    width: min(60%, 220px) !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-about-copy.about-copy-step49 p {
    font-size: 7.25px !important;
    line-height: 1.04 !important;
    margin-bottom: 1px !important;
  }

  body.home-page .desktop-footer a,
  body.home-page .desktop-footer p {
    font-size: 7.8px !important;
  }
}

/* v4: readability bump while keeping landscape fit. Landscape file only. */
@media (orientation: landscape) and (max-width: 1180px) and (max-height: 700px),
       (orientation: landscape) and (max-device-width: 1368px) and (max-device-height: 1024px),
       (orientation: landscape) and (any-pointer: coarse) and (max-width: 1368px) and (max-height: 920px) {
  body.home-page {
    --header-height: clamp(50px, 14.5vh, 76px) !important;
    --landscape-footer-height: clamp(18px, 4.1vh, 23px) !important;
  }

  body.home-page .site {
    grid-template-columns: minmax(0, 47fr) minmax(270px, 53fr) !important;
    gap: clamp(5px, 1vw, 9px) !important;
    padding: clamp(3px, .75vh, 6px) clamp(6px, 1.2vw, 10px) !important;
  }

  body.home-page .home-main-services-section > .svc-line-section {
    padding: clamp(4px, .85vh, 7px) clamp(5px, 1vw, 9px) !important;
  }

  body.home-page .home-main-services-section .svc-line-title-art img {
    width: min(78%, 330px) !important;
    max-height: clamp(31px, 8.4vh, 48px) !important;
  }

  body.home-page .home-main-services-section .svc-line-grid {
    width: min(100%, 465px) !important;
    row-gap: clamp(1px, .3vh, 3px) !important;
  }

  body.home-page .home-main-services-section .svc-line-item {
    min-height: clamp(42px, 10.8vh, 58px) !important;
    padding: 0 2px !important;
  }

  body.home-page .home-main-services-section .svc-line-icon {
    width: clamp(23px, 5.9vh, 32px) !important;
    height: clamp(23px, 5.9vh, 32px) !important;
    min-width: clamp(23px, 5.9vh, 32px) !important;
    margin-bottom: 2px !important;
  }

  body.home-page .home-main-services-section .svc-line-rule {
    width: clamp(14px, 3.4vh, 21px) !important;
    margin-bottom: 2px !important;
  }

  body.home-page .home-main-services-section .svc-line-name {
    font-size: clamp(8.2px, 2.17vh, 10.6px) !important;
    line-height: .89 !important;
    letter-spacing: 0 !important;
  }

  body.home-page #homeAboutJump {
    min-height: clamp(18px, 4.4vh, 24px) !important;
    margin: clamp(1px, .3vh, 3px) auto 0 !important;
  }

  body.home-page #homeAboutJump .svc-area-jump-text {
    font-size: clamp(9px, 2.35vh, 11.8px) !important;
    line-height: 1.02 !important;
  }

  body.home-page #homeAboutJump .svc-area-jump-arrow {
    width: clamp(13px, 3.2vh, 18px) !important;
    height: clamp(8px, 1.85vh, 10px) !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-about-panel-section {
    padding: clamp(4px, .85vh, 7px) !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-section-up-jump {
    min-height: clamp(17px, 4.2vh, 23px) !important;
    margin-bottom: clamp(1px, .35vh, 3px) !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-section-up-jump .svc-area-jump-text {
    font-size: clamp(8.8px, 2.25vh, 11.5px) !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-about-card.about-card-step49 {
    padding: clamp(5px, 1vh, 8px) clamp(6px, 1.15vw, 10px) !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .about-top-wrap-step49 img {
    width: min(70%, 290px) !important;
    max-height: clamp(31px, 7.8vh, 43px) !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-about-copy.about-copy-step49 p {
    font-size: clamp(8.3px, 2.12vh, 10.4px) !important;
    line-height: 1.07 !important;
    margin-bottom: clamp(1px, .38vh, 3px) !important;
  }

  body.home-page .desktop-footer {
    height: var(--landscape-footer-height, 22px) !important;
    min-height: var(--landscape-footer-height, 22px) !important;
    padding: 1px 8px max(1px, env(safe-area-inset-bottom)) !important;
  }

  body.home-page .desktop-footer .home-footer-links {
    gap: clamp(18px, 3.4vw, 36px) !important;
  }

  body.home-page .desktop-footer a {
    font-size: clamp(9.5px, 2.25vh, 12px) !important;
    font-weight: 700 !important;
  }

  /* Landscape has very limited height; the links are the useful footer actions. */
  body.home-page .desktop-footer p {
    display: none !important;
  }
}

/* v4 extra-short browser chrome: keep all content visible but less tiny than v3. */
@media (orientation: landscape) and (max-height: 430px) and (max-width: 1180px) {
  body.home-page {
    --header-height: clamp(48px, 13.8vh, 64px) !important;
    --landscape-footer-height: clamp(17px, 3.9vh, 21px) !important;
  }

  body.home-page .site {
    grid-template-columns: minmax(0, 46fr) minmax(270px, 54fr) !important;
    gap: 5px !important;
    padding: 3px 6px !important;
  }

  body.home-page .site-header .header-logo img {
    max-height: calc(var(--header-height, 60px) - 8px) !important;
    max-width: min(24vw, 138px) !important;
  }

  body.home-page .home-main-services-section > .svc-line-section {
    padding: 4px 5px !important;
  }

  body.home-page .home-main-services-section .svc-line-title-art img {
    max-height: 30px !important;
    width: min(72%, 270px) !important;
  }

  body.home-page .home-main-services-section .svc-line-grid {
    width: min(100%, 450px) !important;
  }

  body.home-page .home-main-services-section .svc-line-item {
    min-height: 39px !important;
  }

  body.home-page .home-main-services-section .svc-line-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
  }

  body.home-page .home-main-services-section .svc-line-rule {
    width: 14px !important;
  }

  body.home-page .home-main-services-section .svc-line-name {
    font-size: 8px !important;
    line-height: .85 !important;
  }

  body.home-page #homeAboutJump,
  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-section-up-jump {
    min-height: 17px !important;
  }

  body.home-page #homeAboutJump .svc-area-jump-text,
  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-section-up-jump .svc-area-jump-text {
    font-size: 8.8px !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .about-top-wrap-step49 img {
    max-height: 30px !important;
    width: min(66%, 250px) !important;
  }

  body.home-page .home-services-overlay.home-about-overlay[aria-hidden="false"] .home-about-copy.about-copy-step49 p {
    font-size: 7.9px !important;
    line-height: 1.03 !important;
    margin-bottom: 1px !important;
  }

  body.home-page .desktop-footer a {
    font-size: 9px !important;
  }
}
