.editorial-hero {
  --hero-x: 50%;
  --hero-y: 50%;
  --hero-mobile-x: 50%;
  --hero-mobile-y: var(--hero-y);
  --hero-gradient: 90deg;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  overflow: hidden;
  min-height: clamp(490px, 42vw, 660px);
  background: #121713;
  color: #fbf6ec;
}

.editorial-hero--right {
  --hero-gradient: 270deg;
}

.editorial-hero--home {
  min-height: clamp(540px, 45vw, 710px);
}

.editorial-hero--compact {
  min-height: clamp(425px, 36vw, 550px);
}

.editorial-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(var(--hero-gradient), rgba(13, 17, 15, .94) 0%, rgba(13, 17, 15, .85) 27%, rgba(13, 17, 15, .71) 53%, rgba(13, 17, 15, .30) 72%, transparent 90%);
}

.editorial-hero .editorial-hero-media {
  position: absolute;
  inset: 0;
  min-height: 0;
  margin: 0;
  background: transparent;
}

.editorial-hero .editorial-hero-media::after {
  content: none;
}

.editorial-hero .editorial-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-x) var(--hero-y);
}

.editorial-hero--portrait .editorial-hero-media {
  left: 29%;
}

.editorial-hero--portrait .editorial-hero-media img {
  /* The photograph extends behind the text, while the subject stays in view. */
  mask-image: linear-gradient(90deg, transparent, #000 25%);
}

.editorial-hero--shop .editorial-hero-media {
  left: 24%;
}

.editorial-hero--shop .editorial-hero-media img {
  object-fit: contain;
  object-position: 78% center;
}

.editorial-hero .editorial-hero-media figcaption {
  position: absolute;
  z-index: 2;
  top: auto;
  right: max(24px, calc((100% - 1140px) / 2));
  bottom: 10px;
  left: auto;
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  padding: .3rem .55rem;
  border-radius: 2px;
  background: rgba(13, 17, 15, .78);
  color: #fbf6ec;
  font-size: .73rem;
  letter-spacing: .04em;
}

.editorial-hero .editorial-hero-wrap {
  width: min(1200px, calc(100% - 2 * clamp(22px, 6vw, 104px)));
  margin-inline: auto;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.editorial-hero .editorial-hero-copy {
  display: block;
  width: min(100%, 520px, 47vw);
  max-width: none;
  padding: clamp(56px, 7vw, 108px) 0;
  background: transparent;
  color: inherit;
  text-align: left;
  text-shadow: 0 1px 9px rgba(0, 0, 0, .55);
}

.editorial-hero--right .editorial-hero-copy {
  margin-left: auto;
}

.editorial-hero .eyebrow {
  display: block;
  margin: 0 0 1rem;
  color: #ead2a0;
  white-space: normal;
}

.editorial-hero h1 {
  color: inherit;
  margin: 0 0 1.15rem;
  max-width: 20ch;
  font-family: var(--serif, "Playfair Display", Georgia, serif);
  font-size: clamp(40px, 4.35vw, 72px);
  line-height: 1.05;
  letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.editorial-hero h1 em {
  color: #ead2a0;
}

.editorial-hero :is(.hero-subtitle, .hero-intro, .programme-lead, .home-masthead-intro, .shoe-intro-description) {
  margin: 0 0 1.35rem;
  max-width: 43ch;
  color: #fbf6ec;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
}

.editorial-hero :is(.actions, .home-masthead-actions, .shoe-intro-actions) {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: .55rem 1rem;
}

.editorial-hero :is(.first-visit-preflight, .home-masthead-note, .shoe-intro-note, .hero-note, .tax-note, .ai-image-label, .hero-signature, .hero-signature span) {
  color: #f1e8d8;
}

.editorial-hero .first-visit-preflight {
  flex-basis: 100%;
}

.editorial-hero :is(.back-link, .starter-entry, .shoe-intro-visit, .home-masthead-secondary) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fbf6ec;
  text-decoration: underline;
  text-underline-offset: .24em;
}

.editorial-hero .back-link {
  margin: 0 0 .55rem;
}

body .editorial-hero :is(a.button, a.programme-button) {
  width: fit-content;
  max-width: 100%;
  min-height: 46px;
  white-space: normal;
  background: #c4a35a;
  color: #163832 !important;
  border: 1px solid #c4a35a;
  text-shadow: none;
}

body .editorial-hero a.button.secondary {
  background: rgba(13, 17, 15, .62);
  color: #fbf6ec !important;
  border-color: #fbf6ec;
}

body .editorial-hero :is(a.button, a.programme-button):hover {
  background: #dfc797;
  color: #163832 !important;
  border-color: #dfc797;
}

.editorial-hero a:focus-visible {
  outline: 2px solid #fbf6ec;
  outline-offset: 4px;
}

.editorial-hero .programme-meta span:last-child {
  color: #ead2a0 !important;
}

.editorial-hero--shop .hero-signature {
  margin-top: 1.1rem;
}

.editorial-executive-portraits {
  max-width: 760px;
}

.editorial-executive-portraits figcaption {
  color: #163832;
}

@media (max-width: 760px) {
  .editorial-hero {
    min-height: 0;
    align-items: end;
  }

  .editorial-hero::before {
    background: linear-gradient(180deg, transparent 6%, rgba(13, 17, 15, .30) 27%, rgba(13, 17, 15, .76) 58%, rgba(13, 17, 15, .95) 100%);
  }

  .editorial-hero .editorial-hero-media {
    left: 0;
    bottom: auto;
    height: min(560px, 100%);
  }

  .editorial-hero .editorial-hero-media img {
    object-fit: cover;
    object-position: var(--hero-mobile-x) var(--hero-mobile-y);
    mask-image: linear-gradient(#000 53%, transparent 100%);
  }

  .editorial-hero .editorial-hero-wrap {
    width: 100%;
    padding-top: clamp(150px, 46vw, 245px);
  }

  .editorial-hero .editorial-hero-copy {
    width: 100%;
    margin-inline: 0;
    padding: 20px 22px 42px;
    position: relative;
    isolation: isolate;
  }

  .editorial-hero .editorial-hero-copy::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -30px 0 0;
    background: linear-gradient(180deg, transparent, rgba(13, 17, 15, .76) 30px, rgba(13, 17, 15, .94));
  }

  .editorial-hero h1 {
    max-width: 22ch;
    font-size: clamp(34px, 8.6vw, 54px);
    text-wrap: wrap;
  }

  .editorial-hero--shop .editorial-hero-media {
    bottom: 0;
    height: auto;
  }

  .editorial-hero--shop .editorial-hero-media img {
    height: min(560px, 100%);
  }

  .editorial-hero--shop .editorial-hero-media figcaption {
    top: 8px;
    bottom: auto;
    right: 12px;
  }
}
