.c-home-hero {
  --c-home-hero-photo-height: 22rem;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 43rem;
  padding: 16.75rem var(--wa-space-l) var(--wa-space-2xl);
  color: var(--wr-color-text-primary);
  background: var(--wr-color-surface-default);

  @media (width >= 48rem) {
    --c-home-hero-photo-height: 27rem;

    min-height: 48rem;
    padding-block-start: 21.25rem;
  }

  @media (width >= 64rem) {
    display: flex;
    align-items: center;
    min-height: 44rem;
    padding: var(--wa-space-3xl);
    /* The hero-mode header floats over this section; keep the centered content
       clear of the enlarged logo. */
    padding-block-start: calc(var(--wa-space-3xl) + var(--wr-site-header-height));
  }

  &::before,
  &::after {
    position: absolute;
    content: "";
    pointer-events: none;
  }

  &::before {
    z-index: -2;
    inset-block-start: 0;
    inset-inline: 0;
    height: var(--c-home-hero-photo-height);
    background-image: var(--c-home-hero-background);
    background-repeat: no-repeat;
    background-position: 58% top;
    background-size: cover;

    @media (width >= 64rem) {
      inset: 0;
      height: auto;
      background-position: 20% center;
    }
  }

  /* The fade must reach full surface color above the photo's bottom edge,
     or the photo ends in a visible hard seam. */
  &::after {
    z-index: -1;
    inset: 0;
    background: linear-gradient(
      180deg,
      transparent 0,
      transparent calc(var(--c-home-hero-photo-height) - 9rem),
      color-mix(in oklab, var(--wr-color-surface-default) 50%, transparent)
        calc(var(--c-home-hero-photo-height) - 4.5rem),
      var(--wr-color-surface-default) calc(var(--c-home-hero-photo-height) - 0.5rem)
    );

    @media (width >= 64rem) {
      background:
        linear-gradient(
          90deg,
          var(--wr-color-surface-default) 0,
          color-mix(in oklab, var(--wr-color-surface-default) 86%, transparent) 27%,
          color-mix(in oklab, var(--wr-color-surface-default) 42%, transparent) 48%,
          transparent 69%
        ),
        linear-gradient(
          0deg,
          var(--wr-color-surface-default) 0,
          transparent 30%
        );
    }
  }
}

.c-home-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--wa-space-m);
  min-width: 0;
  width: 100%;
  max-width: 38rem;

  @media (width >= 64rem) {
    position: static;
    max-width: 34rem;
  }
}

.c-home-hero__content > * {
  min-width: 0;
}

.c-home-hero__kicker {
  margin: 0;
  color: var(--wr-color-brand-secondary);
  font-family: var(--wr-font-family-accent);
  font-size: 1.85rem;
  font-weight: var(--wa-font-weight-bold);
  line-height: 0.95;
  text-transform: uppercase;

  @media (width >= 64rem) {
    font-size: 1.7rem;
  }
}

.c-home-hero__artifact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--wa-space-2xs);
  width: calc(100vw - var(--wa-space-l) + 1rem);
  margin-block: 0 calc(var(--wa-space-s) * -1);
  margin-inline-end: calc(100% - 100vw + var(--wa-space-l) - 1rem);

  @media (width >= 64rem) {
    position: absolute;
    inset-inline-end: -2.5rem;
    inset-block-end: 0;
    width: clamp(33rem, 36vw, 38rem);
    margin: 0;
  }
}

.c-home-hero__artifact-image {
  flex: 0 1 auto;
  width: 16.5rem;
  min-width: 0;
  aspect-ratio: 1094 / 491;
  background-image: var(--c-home-hero-artifact);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  @media (width >= 30rem) {
    width: 20rem;
  }

  @media (width >= 64rem) {
    flex: 1 1 auto;
    width: auto;
  }
}

.c-home-hero__artifact-text {
  flex: none;
  max-width: 7rem;
  /* Aligns the label with the arrow tail baked into the artifact artwork. */
  margin-block-start: 1.5rem;
  color: var(--wr-color-brand-white);
  font-family: var(--wr-font-family-accent);
  font-size: 1.6rem;
  font-weight: var(--wa-font-weight-bold);
  line-height: 0.9;
  text-align: center;
  text-shadow: 0 0.08em 0.18em color-mix(in oklab, var(--wr-color-surface-default) 82%, transparent);
  transform: rotate(-2deg);

  @media (width >= 64rem) {
    max-width: 8rem;
    margin-block-start: 2.5rem;
    font-size: 2rem;
  }
}

.c-home-hero__title {
  margin: 0;
  color: var(--wr-color-brand-white);
  font-family: var(--wr-font-family-accent);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-2deg);
  transform-origin: left center;

  @media (width >= 48rem) {
    font-size: 5.3rem;
  }

  @media (width >= 64rem) {
    font-size: 5.1rem;
  }
}

.c-home-hero__title span {
  display: block;
}

.c-home-hero__connected {
  width: fit-content;
  margin: calc(var(--wa-space-l) * -1) 0 0;
  color: var(--wr-color-brand-secondary);
  font-family: var(--wr-font-family-accent);
  font-size: var(--wa-font-size-2xl);
  font-weight: var(--wa-font-weight-bold);
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-2deg);

  @media (width >= 64rem) {
    font-size: var(--wa-font-size-3xl);
  }
}

.c-home-hero__lede {
  max-width: 35rem;
  margin: var(--wa-space-m) 0 0;
  color: var(--wr-color-text-primary);
  font-size: var(--wa-font-size-l);
  line-height: var(--wa-line-height-normal);

  @media (width >= 64rem) {
    max-width: 24rem;
  }
}

.c-home-hero__actions {
  display: grid;
  gap: var(--wa-space-m);
  margin-block-start: var(--wa-space-m);

  @media (width >= 30rem) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
}

.c-home-hero__action {
  width: 100%;

  @media (width >= 30rem) {
    width: auto;
  }
}

.c-home-hero__privacy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--wa-space-xs);
  width: 100%;
  margin: var(--wa-space-xs) 0 0;
  color: var(--wr-color-text-muted);
  font-size: var(--wa-font-size-s);
  line-height: var(--wa-line-height-condensed);

  @media (width >= 30rem) {
    justify-content: flex-start;
    width: auto;
  }

  @media (width >= 64rem) {
    font-size: var(--wa-font-size-xs);
  }
}
