/* Desktop homepage: size the composition to the usable window, not width alone.
   Keep the approved palette, images and mobile layout unchanged. */
@media (min-width: 1101px) {
  html[data-view="home"] {
    --home-header-top: clamp(76px, 9svh, 92px);
    --home-header-nav: 48px;
    --home-hero-height: clamp(480px, calc(100svh - var(--home-header-top) - var(--home-header-nav) - 106px), 760px);
    --home-pad-top: clamp(28px, 3.8svh, 48px);
    --home-pad-bottom: clamp(64px, 7.6svh, 84px);
    --home-media-height: clamp(380px, calc(var(--home-hero-height) - var(--home-pad-top) - var(--home-pad-bottom)), 640px);
  }

  html[data-view="home"] .site-header {
    padding-inline: max(var(--gutter), calc((100% - 1680px) / 2 + var(--gutter)));
  }

  html[data-view="home"] .header-top {
    height: var(--home-header-top);
  }

  html[data-view="home"] .desktop-nav {
    min-height: var(--home-header-nav);
  }

  html[data-view="home"] .desktop-nav a {
    padding-block: 10px;
  }

  html[data-view="home"] .menu-toggle {
    display: none;
  }

  .hero-inner {
    max-width: 1680px;
    min-height: var(--home-hero-height);
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(36px, 4vw, 64px);
    padding: var(--home-pad-top) var(--gutter) var(--home-pad-bottom);
    align-items: center;
  }

  .hero-copy {
    min-width: 0;
    max-width: 600px;
    padding: 0;
  }

  .hero .eyebrow {
    max-width: 560px;
    white-space: normal;
    font-size: 12px;
    line-height: 1.65;
  }

  .hero .copy-rule {
    width: 150px;
    margin: 20px 0 27px;
  }

  .hero h1 {
    font-size: clamp(54px, min(5.15vw, 9svh), 90px);
    line-height: 1.03;
    letter-spacing: -.055em;
  }

  html[lang="zh-CN"] .hero h1 {
    font-size: clamp(58px, min(5.1vw, 9.2svh), 88px);
    line-height: 1.17;
    letter-spacing: -.015em;
  }

  .hero-description,
  html[lang="zh-CN"] .hero-description {
    max-width: 490px;
    font-size: clamp(17px, 1.25vw, 21px);
    line-height: 1.65;
    margin: 23px 0 30px;
  }

  .hero-actions {
    max-width: 535px;
    gap: 16px;
    flex-wrap: nowrap;
  }

  .hero-actions .button {
    flex: 1;
    min-width: 0;
    min-height: 57px;
    padding: 16px 21px;
    font-size: 14px;
    gap: 18px;
    white-space: normal;
    letter-spacing: 0;
  }

  .material-story {
    width: 100%;
    max-width: calc(var(--home-media-height) * 1.28);
    height: var(--home-media-height);
    max-height: none;
    align-self: center;
    justify-self: end;
    grid-template-columns: 1.05fr 1fr;
    grid-template-rows: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 16px;
  }

  .material-story .visual-tile { min-height: 0; }
  .tile-fiber { margin-bottom: 20px; }
  .detail-pair { gap: 16px; }
  .hero-curve { height: 64px; }

  .hero + .film-section .section-cue {
    margin-top: 6px;
    margin-bottom: 48px;
  }
}

/* Short laptop windows still retain readable copy and both primary actions. */
@media (min-width: 1101px) and (max-height: 800px) {
  .hero .copy-rule { margin: 15px 0 21px; }
  .hero-description,
  html[lang="zh-CN"] .hero-description { margin: 18px 0 24px; font-size: 17px; }
  .hero-actions .button { min-height: 54px; padding: 14px 18px; }
}
