/* Full-width homepage hero using the supplied MetaEssenz interior image. */
.me-hero {
  isolation: isolate;
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: none;
  overflow: hidden;
  background: #0a2028;
}

.me-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  width: auto;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 253, 248, 0.99) 0%,
    rgba(252, 248, 240, 0.96) 22%,
    rgba(249, 241, 225, 0.86) 39%,
    rgba(239, 220, 187, 0.34) 55%,
    rgba(8, 31, 39, 0.06) 72%,
    transparent 100%
  );
}

.me-hero-copy {
  position: relative;
  z-index: 3;
  grid-area: 1 / 1;
  width: min(57vw, 820px);
  max-width: none;
  padding: clamp(5rem, 8vw, 7.7rem) clamp(2.5rem, 5vw, 5rem)
    clamp(5rem, 8vw, 7.7rem) max(4.5vw, calc(50vw - 680px));
}

.me-hero h1 {
  max-width: 800px;
  font-size: clamp(3.5rem, 5.65vw, 6.7rem);
}

.me-hero-lead {
  max-width: 620px;
}

.me-hero-figure {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  min-height: 100%;
  border: 0;
  background: #0a2028;
}

.me-hero-figure::before {
  display: none;
}

.me-hero-figure::after {
  background: linear-gradient(180deg, transparent 66%, rgba(4, 26, 38, 0.58));
}

.me-hero-figure img {
  object-position: center right;
  filter: brightness(1.04) saturate(0.92);
}

.me-hero-figure figcaption {
  left: auto;
  right: max(4.5vw, calc(50vw - 680px));
  justify-content: flex-end;
  gap: clamp(0.8rem, 2vw, 2.2rem);
}

@media (max-width: 1080px) {
  .me-hero-copy {
    width: min(63vw, 730px);
    padding-left: 4.5vw;
  }

  .me-hero h1 {
    font-size: clamp(3.4rem, 6.1vw, 5.6rem);
  }

  .me-hero::before {
    background: linear-gradient(
      90deg,
      rgba(255, 253, 248, 0.99) 0%,
      rgba(252, 248, 240, 0.96) 30%,
      rgba(249, 241, 225, 0.82) 49%,
      rgba(239, 220, 187, 0.22) 66%,
      transparent 100%
    );
  }
}

@media (max-width: 860px) {
  .me-hero {
    min-height: 760px;
  }

  .me-hero::before {
    right: 0;
    background: linear-gradient(
      180deg,
      rgba(255, 253, 248, 0.99) 0%,
      rgba(252, 248, 240, 0.97) 48%,
      rgba(249, 241, 225, 0.88) 70%,
      rgba(11, 38, 47, 0.24) 100%
    );
  }

  .me-hero-copy {
    width: min(100%, 720px);
    padding: clamp(4.5rem, 12vw, 6.5rem) 4.5vw;
  }

  .me-hero-figure {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 100%;
    border: 0;
  }

  .me-hero-figure img {
    object-position: 67% center;
  }

  .me-hero-figure figcaption {
    left: 4.5vw;
    right: 4.5vw;
    justify-content: space-between;
  }
}

@media (max-width: 620px) {
  .me-hero {
    min-height: 735px;
  }

  .me-hero-copy {
    padding: 4.4rem 1.25rem 7rem;
  }

  .me-hero h1 {
    font-size: clamp(2.85rem, 12.2vw, 4rem);
  }

  .me-hero-lead {
    color: rgba(9, 37, 49, 0.84);
  }

  .me-hero-figure figcaption {
    left: 1.25rem;
    right: 1.25rem;
  }
}
