.gradient-hero {
  --gradient-hero-start-color: var(--color-brand-primary);
  --gradient-hero-middle-color: #0875a9;
  --gradient-hero-end-color: var(--color-brand-secondary);
  --gradient-hero-angle: 105deg;
  --gradient-hero-opacity: 1;
  --gradient-hero-image-x: 50%;
  --gradient-hero-image-y: 48%;

  position: relative;
  display: flex;
  min-height: 34rem;
  align-items: flex-end;
  padding: 9rem 0 3.5rem;
  overflow: hidden;
  background-color: var(--gradient-hero-start-color);
  background-image: linear-gradient(
    var(--gradient-hero-angle),
    var(--gradient-hero-start-color),
    var(--gradient-hero-end-color)
  );
  color: var(--color-text-on-dark);
  isolation: isolate;
}

@media (min-width: 600px) {
  .gradient-hero {
    min-height: 36rem;
    padding-top: 10rem;
    padding-bottom: 4rem;
  }
}

@media (min-width: 1200px) {
  .gradient-hero {
    min-height: 36.25rem;
    padding-top: 10.5rem;
    padding-bottom: 4.75rem;
  }
}

/* Matches the shared Slider Hero responsive height contract. */
.gradient-hero--height-slider {
  height: auto;
  min-height: clamp(35rem, 166.667vw, 48rem);
}

@media (min-width: 600px) {
  .gradient-hero--height-slider {
    height: auto;
    min-height: clamp(26rem, calc(19.16rem + 12.92vw), 45.5rem);
  }
}

@media (min-width: 900px) and (max-width: 1299px) and (hover: hover) and (pointer: fine) {
  .gradient-hero--height-slider {
    min-height: 28rem;
  }
}

@media (min-width: 1200px) {
  .gradient-hero--height-slider {
    height: auto;
    min-height: clamp(28rem, 38.46vw, 45.5rem);
    max-height: none;
  }
}

.gradient-hero__media,
.gradient-hero__scrim {
  position: absolute;
  inset: 0;
}

.gradient-hero__media {
  z-index: -2;
  background-color: var(--color-brand-primary);
}

.gradient-hero__picture {
  display: block;
  width: 100%;
  height: 100%;
}

.gradient-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--gradient-hero-image-x) var(--gradient-hero-image-y);
}

/* Complete artwork sits below the copy rather than behind it. */
.gradient-hero.is-contained-image {
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  padding-bottom: 0;
}

.gradient-hero.is-contained-image .gradient-hero__inner {
  order: -1;
  padding-bottom: 2.5rem;
}

.gradient-hero.is-contained-image .gradient-hero__media {
  position: relative;
  z-index: 0;
  inset: auto;
}

.gradient-hero.is-contained-image .gradient-hero__picture {
  height: auto;
}

.gradient-hero.is-contained-image .gradient-hero__image {
  display: block;
  height: auto;
  object-fit: contain;
}

.gradient-hero.is-contained-image .gradient-hero__scrim {
  display: none;
}

.gradient-hero--image-left {
  --gradient-hero-image-x: 30%;
}

.gradient-hero--image-center {
  --gradient-hero-image-x: 50%;
}

.gradient-hero--image-right {
  --gradient-hero-image-x: 70%;
}

.gradient-hero--image-y-top {
  --gradient-hero-image-y: 0%;
}

.gradient-hero--image-y-center {
  --gradient-hero-image-y: 48%;
}

.gradient-hero--image-y-bottom {
  --gradient-hero-image-y: 100%;
}

.gradient-hero--gradient-to-right {
  --gradient-hero-angle: 90deg;
}

.gradient-hero--gradient-to-left {
  --gradient-hero-angle: 270deg;
}

.gradient-hero--gradient-to-bottom {
  --gradient-hero-angle: 180deg;
}

.gradient-hero--gradient-diagonal-right {
  --gradient-hero-angle: 105deg;
}

.gradient-hero--gradient-diagonal-left {
  --gradient-hero-angle: 255deg;
}

.gradient-hero--gradient-soft {
  --gradient-hero-opacity: 0.72;
}

.gradient-hero--gradient-medium {
  --gradient-hero-opacity: 0.86;
}

.gradient-hero--gradient-strong {
  --gradient-hero-opacity: 1;
}

.gradient-hero__scrim {
  z-index: -1;
  background-image: linear-gradient(
    180deg,
    rgb(5 24 89 / 24%) 0%,
    rgb(10 22 98 / 58%) 100%
  );
}

.gradient-hero__scrim::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    var(--gradient-hero-angle),
    color-mix(in srgb, var(--gradient-hero-start-color) 94%, transparent) 0%,
    color-mix(in srgb, var(--gradient-hero-middle-color) 82%, transparent) 54%,
    color-mix(in srgb, var(--gradient-hero-end-color) 86%, transparent) 100%
  );
  content: "";
  opacity: var(--gradient-hero-opacity);
}

.gradient-hero.is-missing-image .gradient-hero__scrim {
  background-image: radial-gradient(
    circle at 18% 8%,
    rgb(255 255 255 / 18%),
    transparent 30%
  );
}

.gradient-hero.is-missing-image .gradient-hero__scrim::before {
  opacity: 1;
}

.gradient-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 144rem);
  padding-inline: clamp(1.25rem, 5.25vw, 7.75rem);
  margin-inline: auto;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .gradient-hero__inner {
    align-items: end;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 900px) {
  .gradient-hero.is-without-update .gradient-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

.gradient-hero__updated {
  display: grid;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  gap: 0.15rem;
  letter-spacing: 0.045em;
  line-height: 1.35;
  text-transform: uppercase;
}

.gradient-hero__updated time {
  font-weight: 400;
}

.gradient-hero__content {
  max-width: 47rem;
}

.gradient-hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}

.gradient-hero__title {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(2.35rem, 9vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}

@media (min-width: 900px) {
  .gradient-hero__title {
    font-size: clamp(3rem, 4vw, 3.5rem);
  }
}

.gradient-hero__body {
  max-width: 44rem;
  margin: 1.25rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
  text-wrap: pretty;
}

@media (min-width: 900px) {
  .gradient-hero__body {
    font-size: 1.125rem;
    line-height: 1.45;
  }
}

.gradient-hero__cta {
  --button-background-color: var(--color-brand-accent);
  --button-background-image: none;
  --button-action-font-size: 1.1875rem;
  --button-action-font-weight: 700;
  --button-shadow-color: rgb(255 94 0 / 22%);
  --button-text-color: var(--color-text-on-action);

  min-width: 12rem;
  margin-top: 1.5rem;
}

html[data-resolved-theme="dark"] .gradient-hero__cta {
  --button-shadow-color: transparent;
}
