/**
 * Laptop / HD: 961px–1366px only.
 * Balanced scaling (~81% @ 1366). No zoom. Desktop (1367px+) & mobile untouched.
 */

@media (min-width: 961px) and (max-width: 1366px) {
  html {
    font-size: clamp(12px, calc(100vw * 13 / 1366), 13px);
  }

  /* ── Hero: full viewport (header floats on top) ── */
  #orbital-hero {
    height: 100dvh !important;
    height: 100svh !important;
    min-height: 480px !important;
    max-height: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  #orbital-slides-frame {
    height: 100% !important;
    min-height: 100% !important;
  }

  /* ── Header: compact ── */
  .lmh-wrap {
    padding: 5px 14px 0 !important;
  }

  .lmh-wrap.scrolled {
    padding: 4px 14px 0 !important;
  }

  .lmh-inner {
    height: 46px !important;
    padding: 0 6px 0 14px !important;
  }

  .lmh-wrap.scrolled .lmh-inner {
    height: 44px !important;
  }

  .lmh-logo img {
    height: 26px !important;
  }

  .lmh-wrap.scrolled .lmh-logo img {
    height: 24px !important;
  }

  .lmh-nav-link {
    font-size: 0.75rem !important;
    padding: 4px 7px !important;
  }

  .lmh-cta {
    font-size: 0.75rem !important;
    padding: 5px 11px !important;
  }

  .lmh-cta i {
    font-size: 0.62rem !important;
  }

  /* ── Large section headings only ── */
  .text-7xl {
    font-size: 3.5rem !important;
    line-height: 1.06 !important;
  }

  .text-6xl {
    font-size: 3rem !important;
    line-height: 1.08 !important;
  }

  .text-5xl {
    font-size: 2.5rem !important;
    line-height: 1.1 !important;
  }

  section.py-32,
  .section.py-32,
  .md\:py-32 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  /* ── Chat: fixed between header and bottom bar (prevents top crop) ── */
  .lm-chat {
    font-size: 13px !important;
    right: 16px !important;
    bottom: 76px !important;
  }

  .lm-chat.lm-chat-panel-open {
    contain: none !important;
  }

  .lm-chat .lm-chat-panel {
    position: fixed !important;
    top: 58px !important;
    right: 16px !important;
    bottom: 84px !important;
    left: auto !important;
    width: 300px !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 16px !important;
    z-index: calc(var(--lm-z-chat, 9500) + 1) !important;
  }

  .lm-chat .lm-chat-open {
    width: 48px !important;
    height: 48px !important;
  }

  /* ── Global reach globe ── */
  .gr-scene {
    height: 460px !important;
  }

  .gr-orbit-svg {
    width: 340px !important;
    height: 340px !important;
  }

  .gr-hub {
    width: 150px !important;
    height: 150px !important;
  }
}

@media (min-width: 961px) and (max-width: 1366px) and (max-height: 768px) {
  html {
    font-size: clamp(11.5px, calc(100vw * 12.5 / 1366), 12.5px);
  }

  #orbital-hero {
    min-height: 420px !important;
  }

  section.py-32,
  .section.py-32,
  .md\:py-32 {
    padding-top: 3.25rem !important;
    padding-bottom: 3.25rem !important;
  }

  .gr-scene {
    height: 380px !important;
  }

  .lm-chat .lm-chat-panel {
    top: 54px !important;
    bottom: 80px !important;
    width: 280px !important;
  }
}
