/* Full-height photographic banner: homepage and explicitly opted-in heroes. */
.hero-splash.homepage-hero {
  --warm-hero-overlay: linear-gradient(0deg, rgba(65,47,30,.95), rgba(97,70,39,.84) 39%, rgba(151,112,62,.48) 62%, rgba(193,158,104,.18) 100%);
  position: sticky;
  top: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--hero-chrome, 150px));
  min-height: 360px;
  overflow: hidden;
}

.hero-splash.homepage-hero > .wrap {
  display: flex;
  width: 100%;
  max-width: none;
  min-height: 0;
  flex: 1;
  margin: 0;
  padding: 0;
}

.hero-splash.homepage-hero .hero-art {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  flex: 1;
}

.hero-splash.homepage-hero .hero-art > :first-child {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  box-sizing: border-box;
  padding: clamp(30px, 5vw, 64px) max(var(--gut), calc((100vw - var(--maxw)) / 2 + var(--gut)));
  padding-bottom: calc(clamp(30px, 5vw, 64px) + 12px);
}

.hero-splash.homepage-hero .hero-copy > * {
  width: 100%;
  max-width: 590px;
}

.hero-splash.homepage-hero .hero-copy h1.display {
  max-width: 12ch;
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 4.1vw, 54px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.04;
  text-wrap: balance;
}

.hero-splash.homepage-hero .hero-copy .lead {
  margin: 13px 0 8px;
  color: rgba(255,255,255,.94);
  font-size: 15px;
  line-height: 1.5;
}

.hero-splash.homepage-hero .hero-copy .body {
  margin: 7px 0 18px;
  color: rgba(255,255,255,.84);
  font-size: 13.5px;
  line-height: 1.55;
}

.hero-splash.homepage-hero .hero-copy .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

/* Homepage only: give actions the same breathing room as the hero inset. */
.mh-editorial-home .hero-splash.homepage-hero .hero-copy .btn-row {
  margin-top: clamp(30px, 5vw, 64px);
}

.hero-splash.homepage-hero .hero-copy .btn {
  color: #fff;
  border-color: rgba(255,255,255,.74);
}

.hero-splash.homepage-hero .hero-copy .btn:hover {
  background: rgba(255,255,255,.16);
  border-color: #fff;
}

.hero-splash.homepage-hero .hero-copy .btn-fill {
  color: #282216;
  border-color: #fff;
  background: #fff;
}

.hero-splash.homepage-hero .hero-copy .btn-fill:hover {
  color: #282216;
  border-color: #f2eee8;
  background: #f2eee8;
}

.hero-splash.homepage-hero .hero-art > :last-child {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100% !important;
  overflow: hidden;
}

.hero-splash.homepage-hero .hero-art > :last-child .media-card {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.hero-splash.homepage-hero .hero-art > :last-child .media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-splash.homepage-hero .hero-art > :last-child .media-cap {
  display: none;
}

.hero-splash.homepage-hero .hero-art::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(20,16,10,.78) 0%, rgba(20,16,10,.45) 38%, rgba(20,16,10,.06) 82%),
    linear-gradient(90deg, rgba(20,16,10,.43) 0%, rgba(20,16,10,.15) 60%, transparent 100%);
}

.hero-splash.homepage-hero .hero-copy .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@supports (height: 100svh) {
  .hero-splash.homepage-hero {
    height: calc(100svh - var(--hero-chrome, 150px));
  }
}

@media (max-width: 680px) {
  .hero-splash.homepage-hero {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .hero-splash.homepage-hero > .wrap {
    display: flex;
    min-height: 0;
  }

  .hero-splash.homepage-hero .hero-art {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(min-content, auto);
    min-height: max(390px, calc(100vh - var(--hero-chrome, 150px)));
    height: auto;
    flex: none;
  }

  .hero-splash.homepage-hero .hero-art > :first-child {
    position: relative;
    z-index: 2;
    inset: auto;
    grid-area: 1 / 1;
    align-self: stretch;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: max(390px, calc(100vh - var(--hero-chrome, 150px)));
    padding: clamp(22px, 4.5svh, 38px) 22px clamp(24px, 5svh, 42px);
    padding-bottom: calc(clamp(24px, 5svh, 42px) + 8px);
    background: transparent;
  }

  .hero-splash.homepage-hero .hero-art > :last-child {
    position: absolute;
    z-index: 0;
    inset: 0;
    grid-area: 1 / 1;
    width: 100%;
    height: 100% !important;
    aspect-ratio: auto;
  }

  .hero-splash.homepage-hero .hero-art > :last-child .media-card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .hero-splash.homepage-hero .hero-art::after {
    display: block;
    background:
      linear-gradient(0deg, rgba(20,16,10,.86) 0%, rgba(20,16,10,.68) 43%, rgba(20,16,10,.16) 100%),
      linear-gradient(90deg, rgba(20,16,10,.25), transparent 100%);
  }

  .hero-splash.homepage-hero .hero-copy h1.display {
    max-width: 13ch;
    font-size: clamp(29px, 9.2vw, 38px);
    line-height: 1.04;
  }

  .hero-splash.homepage-hero .hero-copy .lead {
    margin: 11px 0 7px;
    font-size: 14px;
    line-height: 1.43;
  }

  .hero-splash.homepage-hero .hero-copy .body {
    margin: 6px 0 15px;
    font-size: 12.5px;
    line-height: 1.48;
  }

  .hero-splash.homepage-hero .hero-copy .btn-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
  }

  .hero-splash.homepage-hero .hero-copy .btn-row .btn {
    display: inline-flex;
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: 11px 7px;
    min-height: 44px;
    box-sizing: border-box;
    font-size: clamp(10px, 2.75vw, 11px);
    letter-spacing: .25px;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
  }
}

@supports (height: 100svh) {
  @media (max-width: 680px) {
    .hero-splash.homepage-hero .hero-art,
    .hero-splash.homepage-hero .hero-art > :first-child {
      min-height: max(390px, calc(100svh - var(--hero-chrome, 150px)));
    }
  }
}

@media (max-width: 360px) {
  .hero-splash.homepage-hero .hero-art > :first-child {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-splash.homepage-hero .hero-copy .btn-row {
    gap: 6px;
  }

  .hero-splash.homepage-hero .hero-copy .btn-row .btn {
    padding-right: 5px;
    padding-left: 5px;
    font-size: 10px;
    letter-spacing: 0;
  }
}

@media (max-width: 680px) {
  .mh-editorial.mh-editorial-home .hero-splash.homepage-hero .hero-art > :last-child .media-card img {
    object-position: 32% top;
  }
  .mh-editorial-home .hero-splash.homepage-hero .hero-copy .btn-row {
    margin-top: 22px;
  }
}

@media (max-width: 360px) {
  .mh-editorial-home .hero-splash.homepage-hero .hero-copy .btn-row {
    margin-top: 18px;
  }
}
