.theme-page .theme-hero {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  padding: 7rem 0 3.6rem;
  display: flex;
  align-items: flex-end;
  background: #101515;
  overflow: hidden;
}

.theme-page .theme-hero-art {
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 0 !important;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

.theme-page .theme-hero-art img {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center;
  filter: none !important;
}

/* These two compositions place their visual subject on the left.
   Mirror them so all four pages can keep hero copy consistently on the left. */
.theme-page--gods .theme-hero-art img,
.theme-page--sacred .theme-hero-art img {
  transform: scaleX(-1);
}

.theme-page .theme-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,8,8,.12) 0%, rgba(5,8,8,.06) 42%, rgba(5,8,8,.62) 100%),
    linear-gradient(90deg, rgba(5,8,8,.88) 0%, rgba(5,8,8,.72) 30%, rgba(5,8,8,.38) 56%, rgba(5,8,8,.10) 78%, rgba(5,8,8,.12) 100%);
}

/* Preserve the same centered 1180px shell used by the rest of the site. */
.theme-page .theme-hero-grid {
  position: relative;
  z-index: 2;
  display: block;
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.theme-page .theme-hero-grid > div:first-child {
  max-width: 650px;
  margin-left: 0 !important;
  margin-right: auto;
  text-align: left;
}

.theme-page .theme-hero h1 {
  font-size: clamp(3.4rem, 5.6vw, 5.35rem);
  line-height: .96;
  margin-bottom: 1rem;
  text-align: left;
  text-shadow: 0 3px 20px rgba(0,0,0,.6);
}

.theme-page .theme-hero .lede {
  max-width: 620px;
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.52;
  color: #f0e7d8;
  text-align: left;
  text-shadow: 0 2px 12px rgba(0,0,0,.78);
}

.theme-page .theme-back,
.theme-page .theme-hero .eyebrow {
  text-align: left;
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
}

@media (max-width: 1000px) {
  .theme-page .theme-hero {
    min-height: 500px;
    padding: 6.4rem 0 3.25rem;
  }

  .theme-page .theme-hero-grid > div:first-child {
    max-width: 600px;
    margin-left: 0 !important;
  }

  .theme-page .theme-hero::after {
    background:
      linear-gradient(180deg, rgba(5,8,8,.14) 0%, rgba(5,8,8,.10) 34%, rgba(5,8,8,.68) 100%),
      linear-gradient(90deg, rgba(5,8,8,.80) 0%, rgba(5,8,8,.62) 48%, rgba(5,8,8,.25) 78%, rgba(5,8,8,.12) 100%);
  }
}

@media (max-width: 620px) {
  .theme-page .theme-hero {
    min-height: 460px;
    padding: 5.7rem 0 2.5rem;
  }

  .theme-page .theme-hero::after {
    background:
      linear-gradient(180deg, rgba(5,8,8,.18) 0%, rgba(5,8,8,.12) 28%, rgba(5,8,8,.82) 100%),
      linear-gradient(90deg, rgba(5,8,8,.66) 0%, rgba(5,8,8,.44) 62%, rgba(5,8,8,.18) 100%);
  }

  .theme-page--gods .theme-hero-art img { object-position: 62% center; }
  .theme-page--sacred .theme-hero-art img { object-position: 66% center; }
  .theme-page--lived .theme-hero-art img { object-position: 57% center; }
  .theme-page--kingship .theme-hero-art img { object-position: 60% center; }

  .theme-page .theme-hero h1 {
    font-size: clamp(2.9rem, 13vw, 4rem);
  }

  .theme-page .theme-hero .lede {
    font-size: 1rem;
    line-height: 1.46;
  }
}
