/* Full-bleed page banner with photographic background. */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-dark);
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  color: var(--color-on-dark);
}

/* Blue edge accent drawn as an overlay rather than a border, so it does not
   narrow the banner's containing block and nudge the centred container out of
   line with the sections below. */
.hero::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 6px;
  background: var(--color-blue);
  z-index: 2;
}

.hero--large {
  /* Compensated for --page-zoom so the banner keeps the same share of the
     screen at every zoom level. */
  min-height: calc(74vh / var(--page-zoom));
  padding-block: var(--space-10);
}

.hero--compact {
  min-height: 320px;
  padding-block: var(--space-8);
}

/* Darkening layer keeps headline contrast legible over any photograph. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(8, 12, 18, 0.86) 0%,
    rgba(8, 12, 18, 0.62) 45%,
    rgba(8, 12, 18, 0.34) 100%
  );
}

/* Keeps the container's centring and padding so the headline starts on the
   same vertical line as the section content below it. */
.hero__inner {
  position: relative;
}

.hero__title,
.hero__eyebrow {
  max-width: 780px;
}

.hero__title {
  font-size: var(--text-4xl);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.hero__title-line {
  display: block;
}

.hero__eyebrow {
  color: var(--color-blue);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.hero__subtitle {
  max-width: 46ch;
  color: var(--color-on-dark-muted);
  font-size: var(--text-md);
  margin-bottom: var(--space-6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

@media (max-width: 860px) {
  .hero--large {
    min-height: calc(60vh / var(--page-zoom));
  }

  .hero__scrim {
    background: linear-gradient(
      180deg,
      rgba(8, 12, 18, 0.78) 0%,
      rgba(8, 12, 18, 0.68) 100%
    );
  }
}
