[data-screen-hero] .hero-title-accent {
  color: var(--pink);
}

/* Show the original photographs in colour while keeping the existing overlays. */
body main .menu-hero[data-screen-hero] > .menu-hero-photo > img,
body.home-page main #top[data-screen-hero] > .brand-photo > img {
  filter: none;
}

/* The same atmosphere across every photographic page hero.
   Colour, directional shade and grain each have one job. The photograph stays
   behind the entire opening, and the overlay never covers type or artwork. */
body.home-page main #top[data-hero-atmosphere],
body main section.menu-hero[data-screen-hero][data-hero-atmosphere] {
  --hero-film-exposure: .99;
  --hero-shade-top: linear-gradient(180deg,
    rgba(22, 21, 20, .86) 0%, rgba(22, 21, 20, .50) 20%,
    rgba(22, 21, 20, .16) 45%, rgba(22, 21, 20, 0) 74%);
  --hero-shade-left: linear-gradient(90deg,
    rgba(22, 21, 20, .84) 0%, rgba(22, 21, 20, .68) 20%,
    rgba(22, 21, 20, .30) 45%, rgba(22, 21, 20, 0) 76%);
}

body.home-page main #top[data-hero-atmosphere] > .brand-photo,
body main section.menu-hero[data-screen-hero][data-hero-atmosphere] > .menu-hero-photo {
  position: absolute;
  inset: 0 0 var(--hero-strip-height, 60px);
  width: 100%;
  height: calc(100% - var(--hero-strip-height, 60px));
  min-height: 0;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  mask-image: none;
}

body.home-page main #top[data-hero-atmosphere] > .brand-photo > img,
body main section.menu-hero[data-screen-hero][data-hero-atmosphere] > .menu-hero-photo > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(.06) saturate(.94) contrast(1.02) brightness(var(--hero-film-exposure));
  z-index: 0;
}

/* A static, very fine texture replaces the old extra strip of top shading. */
body.home-page main #top[data-hero-atmosphere] > .brand-photo::before,
body main section.menu-hero[data-screen-hero][data-hero-atmosphere] > .menu-hero-photo::before {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url('/assets/hero-film-grain.svg') repeat;
  background-size: 160px 160px;
  opacity: .09;
  mix-blend-mode: soft-light;
  filter: none;
  transform: none;
  z-index: 2;
  pointer-events: none;
}

body.home-page main #top[data-hero-atmosphere] > .brand-photo::after,
body main section.menu-hero[data-screen-hero][data-hero-atmosphere] > .menu-hero-photo::after {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  opacity: 1;
  background:
    var(--hero-shade-top),
    var(--hero-shade-left),
    linear-gradient(0deg, rgba(22, 21, 20, .14), rgba(22, 21, 20, 0) 26%),
    rgba(60, 43, 30, .06);
  z-index: 1;
  pointer-events: none;
}

/* At Sea now uses the whole photographic field at every width. */
body.sea-page main section.menu-hero-at-sea[data-hero-atmosphere] > .menu-hero-photo > img {
  object-position: 56% 80%;
  transform: none;
}

/* Keep the line-handling crew beside the copy on wider screens. */
@media (min-width: 761px) {
  body.about-page main section.menu-hero-about[data-hero-atmosphere] > .menu-hero-photo > img {
    transform: none;
  }
  body.code-page main section.menu-hero-code[data-hero-atmosphere] > .menu-hero-photo > img {
    object-position: left 48%;
    transform: scale(1.12);
    transform-origin: top left;
    mask-image: none;
  }
}
@media (min-width: 1050px) {
  body.code-page main section.menu-hero-code[data-hero-atmosphere] > .menu-hero-photo > img {
    transform: scale(1.2);
  }
}

/* Tablet keeps the same top-left direction, with less shade across the scene. */
@media (max-width: 1200px), (max-width: 1400px) and (pointer: coarse) {
  body.home-page main #top[data-hero-atmosphere],
  body main section.menu-hero[data-screen-hero][data-hero-atmosphere] {
    --hero-shade-top: linear-gradient(180deg,
      rgba(22, 21, 20, .90) 0%, rgba(22, 21, 20, .60) 20%,
      rgba(22, 21, 20, .18) 45%, rgba(22, 21, 20, 0) 74%);
    --hero-shade-left: linear-gradient(90deg,
      rgba(22, 21, 20, .66) 0%, rgba(22, 21, 20, .44) 22%,
      rgba(22, 21, 20, .12) 48%, rgba(22, 21, 20, 0) 76%);
  }
}

/* On phones, shade follows the text above the main action. */
@media (max-width: 760px) {
  body.home-page main #top[data-hero-atmosphere],
  body main section.menu-hero[data-screen-hero][data-hero-atmosphere] {
    --hero-shade-top: linear-gradient(180deg,
      rgba(22, 21, 20, .94) 0%, rgba(22, 21, 20, .72) 20%,
      rgba(22, 21, 20, .32) 42%, rgba(22, 21, 20, .05) 66%,
      rgba(22, 21, 20, 0) 82%);
    --hero-shade-left: linear-gradient(90deg,
      rgba(22, 21, 20, .30) 0%, rgba(22, 21, 20, .16) 30%,
      rgba(22, 21, 20, 0) 76%);
  }

  /* Home stays directional, but lighter than the deeper Logbook treatment. */
  body.home-page main #top[data-hero-atmosphere] {
    --hero-shade-top: linear-gradient(180deg,
      rgba(22, 21, 20, .96) 0%, rgba(22, 21, 20, .78) 22%,
      rgba(22, 21, 20, .40) 44%, rgba(22, 21, 20, .08) 68%,
      rgba(22, 21, 20, 0) 84%);
    --hero-shade-left: linear-gradient(90deg,
      rgba(22, 21, 20, .46) 0%, rgba(22, 21, 20, .27) 30%,
      rgba(22, 21, 20, .06) 58%, rgba(22, 21, 20, 0) 78%);
  }
}

/* Leave the main figure's face below the invitation on portrait phones. */
@media (max-width: 760px) and (max-aspect-ratio: 3 / 4) {
  body.sea-page main section.menu-hero-at-sea[data-hero-atmosphere] > .menu-hero-photo > img {
    transform: translateY(clamp(44px, 8svh, 64px));
    mask-image: linear-gradient(to bottom, transparent 0, #000 60px, #000 100%);
  }
  body.about-page main section.menu-hero-about[data-hero-atmosphere] > .menu-hero-photo > img {
    transform: translateY(clamp(58px, 11svh, 86px));
  }
  body.logbook-page main section.menu-hero-logbook[data-hero-atmosphere] > .menu-hero-photo > img {
    transform: translateY(clamp(92px, 18svh, 130px));
    mask-image: linear-gradient(to bottom, transparent, #000 110px);
  }
  body.art-page main section.menu-hero-art[data-hero-atmosphere] > .menu-hero-photo > img {
    transform: translateY(clamp(44px, 8svh, 64px));
    mask-image: linear-gradient(to bottom, transparent, #000 60px);
  }
}

/* A single sharp portrait crop centres the woman holding the microphone. */
.hero-photo-backdrop { display: none; }
@media (max-width: 760px) {
  body.shore-page main section.menu-hero-ashore[data-hero-atmosphere] > .menu-hero-photo > img {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 92% 58%;
    transform: none;
    mask-image: none;
    z-index: 0;
  }
}
