/* Banner copy is centered in the space below the 72px visible header. */
.hero-section.hero-section--centered {
  --hero-header-clearance: 72px;
  --hero-gutter: clamp(24px, 4svh, 48px);
  display: grid;
  align-items: stretch;
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
}

.hero-section.hero-section--centered > .hero-grid {
  height: auto;
  padding-block: calc(var(--hero-header-clearance) + var(--hero-gutter)) var(--hero-gutter);
  gap: 0;
}

.hero-section.hero-section--centered > .hero-grid > nav {
  align-self: flex-start;
  margin: 0 0 clamp(16px, 3svh, 32px);
}

.hero-section.hero-section--centered .hero-top-info {
  width: min(100%, var(--hero-copy-max, 800px));
  margin-block: auto;
}

.hero-section.hero-section--centered .hero-main-title {
  font-size: var(--hero-title-size, clamp(36px, 5.15vw, 76px));
  overflow-wrap: anywhere;
}

.hero-section.hero-section--centered .hero-ctas {
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(20px, 4svh, 32px);
}

@media (min-width: 1025px) and (max-height: 820px) {
  .hero-section.hero-section--centered .hero-main-title {
    font-size: clamp(42px, 4.2vw, 56px);
    margin-bottom: 16px;
  }
}

@media (max-width: 1024px) {
  .hero-section--centered::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgb(15 34 60 / .48), rgb(15 34 60 / .26));
    content: "";
    pointer-events: none;
  }
}

@media (max-width: 560px) {
  .hero-section.hero-section--centered .hero-ctas {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .hero-section--centered .hero-ctas .btn {
    justify-content: center;
    min-height: 48px;
    padding-inline: 16px;
    text-align: center;
    white-space: normal;
  }
}
