/* Desktop rhythm follows usable height, including the WordPress toolbar.
   These are minimum heights, never clipping ceilings: longer CMS copy and
   enlarged text can still extend the page with ordinary scrolling. */
@media (min-width: 1001px) {
  :root {
    --site-header-height: clamp(76px, 10svh, 94px);
    --wp-toolbar-height: 0px;
    --viewport-room: calc(100svh - var(--site-header-height) - var(--wp-toolbar-height));
    --desktop-section-space: clamp(44px, 8svh, 104px);
  }
  :root:has(#wpadminbar) {
    --wp-toolbar-height: var(--wp-admin--admin-bar--height, 32px);
  }
  html { scroll-padding-top: calc(var(--site-header-height) + var(--wp-toolbar-height) + 16px); }
  .site-header { top: var(--wp-toolbar-height); }
  .header-row { height: auto; min-height: clamp(76px, 10svh, 94px); padding-block: 12px; }
  .section { padding-block: var(--desktop-section-space); }

  .home-hero { height: auto; min-height: var(--viewport-room); max-height: none; }
  .home-hero .hero-content {
    min-height: var(--viewport-room);
    padding-top: clamp(20px, 3svh, 44px);
    padding-bottom: clamp(76px, 10svh, 100px);
    gap: clamp(32px, 4vw, 64px);
  }
  .home-hero .hero-audience-toggle { height: 48px; margin-bottom: clamp(16px, 2.8svh, 30px); }
  .home-hero .hero-content .eyebrow { margin-bottom: clamp(14px, 2.3svh, 25px); }
  .home-hero #hero-title { font-size: clamp(2rem, 4.8svh, 2.8125rem); }
  .home-hero #hero-title strong { font-size: clamp(2.25rem, min(3.85vw, 6.7svh), 3.4375rem); margin-top: 10px; }
  .home-hero #hero-business-title { font-size: clamp(2.5rem, min(4.45vw, 7svh), 4rem); }
  .home-hero .hero-copy-panel > p:not(.eyebrow) { margin-top: clamp(16px, 2.8svh, 28px); line-height: 1.6; }
  .home-hero .hero-actions { margin-top: clamp(20px, 3svh, 35px); }
  .home-hero .hero-chat { padding-top: 28px; }
  .home-hero .hero-chat-header { padding: clamp(10px, 1.5svh, 14px) 18px; }
  .home-hero .hero-chat-messages { gap: clamp(6px, 1svh, 9px); padding: clamp(10px, 1.6svh, 17px) 16px; }
  .home-hero .hero-chat-bubble { padding: 7px 11px 6px; }
  .home-hero .hero-chat-bubble p { font-size: 1rem; line-height: 1.35; }
  .home-hero .hero-chat-time { margin-top: 2px; }
  .home-hero .hero-chat-contact { padding-block: 9px; }
  .home-hero .hero-chat-availability { top: -32px; }
  .home-hero .hero-chat-caption { margin-top: 10px; }
  .home-hero .hero-location { bottom: 18px; }
  .home-hero .hero-bottom-note { bottom: 27px; }

  .history-hero { display: flex; flex-direction: column; min-height: var(--viewport-room); padding-top: clamp(24px, 4svh, 60px); }
  .history-hero-layout { flex: 1; gap: clamp(36px, 4vw, 64px); }
  .history-hero-copy { padding-bottom: 0; }
  .history-hero-copy h1 { margin-block: 18px 22px; font-size: clamp(2.375rem, min(4.55vw, 7.8svh), 4.25rem); }
  .history-hero-copy .lead { margin-bottom: 22px; line-height: 1.6; }
  .history-hero-visual { padding: 0 0 18px; }
  .history-facade-photo img { height: clamp(230px, calc(var(--viewport-room) - 198px), 500px); aspect-ratio: auto; }
  .history-facade-photo figcaption { min-height: 54px; padding-top: 12px; margin-top: 0; }
  .history-anniversary { width: clamp(130px, 20svh, 180px); bottom: 18px; }
  .history-anniversary-face { min-height: clamp(136px, 20svh, 182px); padding: 12px 16px 16px; }
  .history-anniversary-number { font-size: clamp(4rem, 10svh, 5.875rem); }
  .history-anniversary-label { margin-top: 8px; }
  .history-hero-footer { margin-top: 12px; }
  .history-scroll-row, .history-scroll-hint { min-height: 32px; }
  .history-presence-group { min-height: 44px; }

  .solutions-hero { display: flex; align-items: center; min-height: var(--viewport-room); padding-block: clamp(28px, 5svh, 64px); }
  .solutions-hero h1 { font-size: clamp(2.625rem, min(4.3vw, 7svh), 3.625rem); }
  .solutions-hero .hero-audience-toggle { margin-bottom: 20px; }
  .solutions-hero-images { height: clamp(280px, calc(var(--viewport-room) - 140px), 540px); }
  .by-hero { display: flex; align-items: center; min-height: calc(var(--viewport-room) - 88px); padding-block: clamp(28px, 4svh, 60px); }
  .by-hero h1 { font-size: clamp(2.875rem, min(5.3vw, 8svh), 5rem); }
  .by-hero-copy > .eyebrow { margin-bottom: 22px; }
  .by-hero .lead { margin-top: 22px; }
  .by-hero .button { margin-top: 24px; }
  .by-hero-visual > img { height: clamp(240px, calc(var(--viewport-room) - 190px), 520px); }
  .by-index a { min-height: 86px; }
  .by-page [id] { scroll-margin-top: 0; }
}

/* A shorter desktop needs less chrome, not smaller message text. Timestamps
   share a line when there is room, as in a compact conversation window. */
@media (min-width: 1001px) and (max-height: 700px) {
  .home-hero .hero-content { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; padding-top: 18px; padding-bottom: 68px; }
  .home-hero .hero-audience-toggle { margin-bottom: 16px; }
  .home-hero .hero-chat { padding-top: 26px; }
  .home-hero .hero-chat-header { padding-block: 8px; }
  .home-hero .hero-chat-avatar { width: 34px; height: 34px; }
  .home-hero .hero-chat-messages { gap: 6px; padding-block: 9px; }
  .home-hero .hero-chat-bubble { padding: 7px 10px; max-width: 91%; }
  .home-hero .hero-chat-bubble p { display: inline; }
  .home-hero .hero-chat-time { display: inline-flex; float: right; margin: 5px 0 0 10px; }
  .home-hero .hero-chat-bubble::after { content: ''; display: block; clear: both; }
  .home-hero .hero-chat-contact { padding-block: 8px; }
  .home-hero .hero-chat-caption { margin-top: 8px; }
  .home-hero .hero-actions .button { min-height: 48px; padding-block: 7px; }
  .home-hero .hero-location { padding-block: 0; bottom: 12px; }
}
