/* Desktop hero height shared by the homepage, inner pages and project stories. */
@media (min-width: 981px) {
  body[data-hf-hero="viewport"] :is(.hero, .inner-hero-visual, .agni-story-hero, .aquasub-story-hero, .jsauto-story-hero) {
    box-sizing: border-box;
    height: 100vh !important;
    min-height: 100vh !important;
    height: 100svh !important;
    min-height: 100svh !important;
    max-height: none !important;
  }

  body[data-hf-hero="viewport"] .hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-hf-hero="viewport"] .inner-hero-overlay {
    min-height: 0 !important;
    height: auto !important;
    align-content: end;
  }

  body[data-hf-hero="viewport"][data-hf-industry="compact"] .inner-hero-overlay {
    padding-top: calc(var(--header) + 44px);
    padding-bottom: clamp(42px, 5vw, 64px);
  }

  body[data-hf-hero="viewport"][data-hf-industry="compact"] .inner-hero-overlay h1 {
    font-size: clamp(48px, 5vw, 74px);
  }
}

/* Keep text clear of the fixed navigation on laptop screens. */
@media (min-width: 981px) and (max-height: 760px) {
  body[data-hf-hero="viewport"] .inner-hero-overlay {
    padding-top: calc(var(--header) + 28px);
    padding-bottom: 40px;
    gap: clamp(32px, 5vw, 72px);
  }

  body[data-hf-hero="viewport"] .inner-hero-overlay .breadcrumbs {
    margin-bottom: 20px;
  }

  body[data-hf-hero="viewport"] .inner-hero-overlay h1 {
    font-size: clamp(44px, min(6.5vw, 11svh), 86px);
    margin-top: 18px;
  }

  body[data-hf-hero="viewport"][data-hf-industry="compact"] .inner-hero-overlay h1 {
    font-size: clamp(44px, min(5vw, 10svh), 74px);
  }

  body[data-hf-hero="viewport"] .inner-hero-overlay .inner-lead {
    font-size: clamp(18px, 1.65vw, 22px);
  }

  body[data-hf-hero="viewport"] .hero-grid {
    padding-top: calc(var(--header) + 36px) !important;
    padding-bottom: 42px !important;
  }

  body[data-hf-hero="viewport"] :is(.agni-story-hero-content, .aquasub-story-hero-content, .jsauto-story-hero-content) {
    padding-top: calc(var(--header) + 24px);
    padding-bottom: 28px;
  }

  body[data-hf-hero="viewport"] :is(.agni-story-hero, .aquasub-story-hero, .jsauto-story-hero) h1 {
    font-size: clamp(52px, min(7vw, 12svh), 92px);
  }

  body[data-hf-hero="viewport"] :is(.agni-story-hero-bottom, .aquasub-story-hero-bottom, .jsauto-story-hero-bottom) {
    margin-top: 26px;
    gap: 40px;
  }

  body[data-hf-hero="viewport"] :is(.agni-story-hero-metrics, .aquasub-story-hero-metrics, .jsauto-story-hero-metrics) {
    margin-top: 24px;
  }
}
