/* Height-aware desktop hero. The approved MacBook Air scale is retained below. */
@media (min-width:901px) {
  :root,.about { --gutter:max(clamp(24px,6.944vw,100px),calc((100vw - 1750px)/2)); }
  #home.hero { height:100svh;min-height:650px; }

  /* Centre both groups in the space between the header and the exploration bar. */
  #home .hero-content {
    position:absolute;left:var(--gutter);top:calc(50% + 22px);bottom:auto;
    width:min(46%,760px);max-width:none;padding:0;margin:0;transform:translateY(-50%);
  }
  #home .hero-eyebrow { font-size:12px;letter-spacing:1.2px;margin-bottom:24px; }
  #home h1 { font-size:clamp(58px,min(5.8vw,10.5svh),110px); }
  #home .hero-lower { margin-top:24px; }
  #home .hero-lower>p { font-size:14px;line-height:1.9;max-width:322px; }
  #home .hero-buttons { margin-top:24px;gap:16px;--hero-action-size:14px; }
  #home .button.gradient {
    min-width:clamp(230px,18vw,264px);min-height:48px;padding:14px 24px;
    font-size:14px;gap:14px;
  }
  #home .hero-buttons .text-link { min-width:130px;min-height:48px;gap:14px; }
  #home .hero-buttons svg { width:12px;height:12px; }

  #home .planet-installation {
    position:absolute;left:auto;right:var(--gutter);top:calc(50% + 22px);bottom:auto;
    width:min(40vw,calc(100svh - 245px),740px);min-width:0;max-width:none;
    margin:0;transform:translateY(-50%);
  }
  /* Earth needs a stronger reduction; the prism retains more of its scale. */
  #home .planet-installation:not(.prism-installation) .planet-scene { width:85%;margin-inline:auto; }
  #home .prism-installation .prism-scene { width:100%; }

  #home .planet-controls {
    width:78%;grid-template-columns:48px minmax(0,1fr) 48px;gap:10px;
    margin:-12px auto 0;
  }
  #home .prism-controls { margin-top:-26px; }
  #home .planet-mode { font-size:11px;min-height:28px;padding:4px 0; }
  #home .planet-orbit { height:28px;gap:9px; }
  #home .planet-orbit .orbit-thumb { width:20px;height:20px;margin-bottom:-6px;box-shadow:0 0 0 4px #ff934522,0 0 12px #ffa24252; }
  #home .planet-orbit .orbit-thumb>span { width:8px;height:8px; }
  #home .planet-orbit .orbit-left,#home .planet-orbit .orbit-right { font-size:24px;line-height:24px;margin-bottom:-5px; }
  #home .planet-hint { font-size:12px;line-height:1.5;margin:12px 0 0;letter-spacing:.025em; }
  #home .hero-bottom { height:64px;padding:8px; }
  #home .scroll-cue { font-size:14px; }
}

/* Keep wide navigation within the same 1750 px content limit. */
@media (min-width:1790px) {
  .site-header,.site-header.scrolled {
    left:max(20px,calc((100% - 1750px)/2));
    right:max(20px,calc((100% - 1750px)/2));
  }
}

/* Preserve the exact laptop proportions approved in the previous revision. */
@media (min-width:901px) and (max-width:1800px) and (max-height:1000px) {
  #home .hero-content { width:min(46%,660px); }
  #home h1 { font-size:clamp(58px,min(5.8vw,10.5svh),100px); }
  #home .planet-installation { width:min(40vw,calc(100svh - 245px),650px); }
}
