/* Home only: let the logo and nav sit over the opening image, then scroll away. */
.jp-home > .jp-head {
  position: absolute;
  inset-inline: 0;
  z-index: 10;
  background: transparent;
  border-bottom: 0;
}

/* Blend the links into the image instead of putting a band behind the header. */
.jp-home .jp-spot .film__shade {
  background-image:
    linear-gradient(180deg, #1e140ee8 0, #1e140ecc 54px, #1e140ea6 98px, #1e140e00 178px),
    linear-gradient(90deg, #1e140ef5 0%, #1e140ee8 20%, #1e140e8a 48%, #1e140e00 75%),
    linear-gradient(0deg, #1e140e6e, transparent 26%);
}

@media (max-width: 760px) {
  .jp-home .jp-spot .film__shade {
    background-image:
      linear-gradient(180deg, #1e140ee8 0, #1e140ecc 54px, #1e140ea6 98px, #1e140e00 178px),
      linear-gradient(0deg, #1e140e 0%, #1e140eea 28%, #1e140e9c 53%, #1e140e1a 88%),
      linear-gradient(90deg, #1e140e50, transparent 70%);
  }
}

/* Give the existing spotlight portrait more room under the transparent nav. */
.jp-home .jp-spot .film__img { object-position: 50% 22%; }
.jp-home .jp-spot .film__shade {
  background-image:
    linear-gradient(180deg, #1e140ee8 0, #1e140ecc 52px, #1e140e8c 81px, #1e140e00 144px),
    linear-gradient(90deg, #1e140ef5 0%, #1e140ee8 20%, #1e140e8a 48%, #1e140e00 75%),
    linear-gradient(0deg, #1e140e6e, transparent 26%);
}
.jp-home .jp-topics {
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px clamp(5px, 1.6vw, 23px);
  margin-block: 0;
  text-align: center;
}
.jp-home .jp-topics li { white-space: nowrap; }
.jp-home .jp-topics li:not(:first-child)::before { margin-inline-end: clamp(5px, 1.6vw, 23px); }
@media (max-width: 760px) {
  .jp-home .jp-spot .film__img { object-position: 43% 29%; transform: translateY(12px); }
  .jp-home .jp-spot .film__shade {
    background-image:
      linear-gradient(180deg, #1e140e 0, #1e140e 12px, #1e140ecc 52px, #1e140e8c 81px, #1e140e00 144px),
      linear-gradient(0deg, #1e140e 0%, #1e140eea 28%, #1e140e9c 53%, #1e140e1a 88%),
      linear-gradient(90deg, #1e140e50, transparent 70%);
  }
}
@media (max-width: 480px) {
  /* Four on the first line, three on the second: no lone last topic. */
  .jp-home .jp-topics { row-gap: 0; }
  .jp-home .jp-topics::after { content: ''; order: 1; flex: 0 0 100%; }
  .jp-home .jp-topics li:nth-child(n+5) { order: 2; margin-block-start: 6px; }
  .jp-home .jp-topics li:nth-child(5)::before { content: none; }
}
@media (max-width: 350px) {
  .jp-home .jp-topics { column-gap: 4px; }
  .jp-home .jp-topics li:not(:first-child)::before { margin-inline-end: 3px; }
}

/* Home only, after the standalone opener: give the portrait and copy space below the menu. */
.jp-home .jp-spot {
  --hero-photo-drop: clamp(18px, 1.8vw, 36px);
  /* The nav overlays this section, so the photo itself owns the first viewport. */
  min-height: 100vh;
  min-height: 100dvh;
}
.jp-home .jp-spot .film__img {
  object-position: 50% 11%;
  transform: translateY(var(--hero-photo-drop));
}
.jp-home .jp-spot .film__shade {
  background-image:
    linear-gradient(180deg, #1e140e 0, #1e140e var(--hero-photo-drop), #1e140ecc 58px, #1e140e8c 91px, #1e140e00 160px),
    linear-gradient(90deg, #1e140ef5 0%, #1e140ee8 20%, #1e140e8a 48%, #1e140e00 75%),
    linear-gradient(0deg, #1e140e6e, transparent 26%);
}
.jp-home .jp-spotcopy {
  padding-block-start: calc(48px + clamp(34px, 6svh, 72px));
}
@media (max-width: 1023px) {
  /* Tablets use the portrait source rather than the wider desktop plate. */
  .jp-home .jp-spot .film__img { object-position: 45% 17%; }
}
@media (max-width: 760px) {
  .jp-home .jp-spot {
    --hero-photo-drop: 32px;
  }
  .jp-home .jp-spot .film__img { object-position: 43% 25%; }
  .jp-home .jp-spot .film__shade {
    background-image:
      linear-gradient(180deg, #1e140e 0, #1e140e var(--hero-photo-drop), #1e140ecc 58px, #1e140e8c 91px, #1e140e00 160px),
      linear-gradient(0deg, #1e140e 0%, #1e140eea 28%, #1e140e9c 53%, #1e140e1a 88%),
      linear-gradient(90deg, #1e140e50, transparent 70%);
  }
  .jp-home .jp-spotcopy {
    padding-block-start: 104px;
  }
}
@media (max-width: 359px) {
  .jp-home .jp-spotcopy { padding-block-start: 118px; }
}
