/* Troodon Exodus daughter-page cinematic heroes — Aurora 43.1 overlay */
.sub-hero {
  --hero-focus-x: 50%;
  --hero-focus-y: 50%;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 560px;
  height: clamp(560px, 42vw, 650px);
  overflow: hidden;
  background: #071522;
}

.sub-hero::before,
.sub-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sub-hero::before {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 9, 16, .92) 0%, rgba(3, 12, 21, .76) 28%, rgba(3, 12, 21, .30) 53%, rgba(3, 12, 21, .04) 76%),
    linear-gradient(0deg, rgba(2, 9, 16, .88) 0%, rgba(2, 9, 16, .08) 57%);
}

.sub-hero::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 9, 16, .12), transparent 30%, rgba(2, 9, 16, .20));
}

.sub-hero .sub-media {
  position: absolute;
  z-index: -2;
  inset: 0;
  min-height: 0;
}

.sub-hero .sub-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--hero-focus-x) var(--hero-focus-y);
  filter: saturate(1.04) contrast(1.03);
}

.sub-hero .sub-media::after {
  display: none;
}

.sub-hero .sub-copy {
  position: relative;
  z-index: 2;
  width: min(610px, 50%);
  padding: 58px 54px 50px;
  background: transparent;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .80);
}

.sub-hero .sub-copy h1 {
  max-width: 600px;
  margin-bottom: 16px;
  font-size: clamp(3.4rem, 4.5vw, 4rem);
  line-height: .96;
}

.sub-hero .sub-copy .subtitle {
  max-width: 560px;
  margin-bottom: 22px;
  color: #edf8ff;
  font-size: 1.02rem;
  line-height: 1.62;
}

.sub-hero .action-row {
  margin: 24px 0 0;
}

.sub-hero--right {
  justify-content: flex-end;
}

.sub-hero--right::before {
  background:
    linear-gradient(270deg, rgba(2, 9, 16, .92) 0%, rgba(3, 12, 21, .76) 28%, rgba(3, 12, 21, .30) 53%, rgba(3, 12, 21, .04) 76%),
    linear-gradient(0deg, rgba(2, 9, 16, .88) 0%, rgba(2, 9, 16, .08) 57%);
}

.sub-hero--species { --hero-focus-y: 52%; }
.sub-hero--civilizations { --hero-focus-y: 48%; }
.sub-hero--technology { --hero-focus-y: 54%; }
.sub-hero--exodus-program { --hero-focus-y: 48%; }
.sub-hero--timeline { --hero-focus-y: 50%; }
.sub-hero--archaeology { --hero-focus-y: 53%; }
.sub-hero--religion { --hero-focus-y: 48%; }
.sub-hero--military { --hero-focus-y: 52%; }

@media (max-width: 1160px) {
  .sub-hero {
    display: flex;
    min-height: 540px;
    height: clamp(540px, 58vw, 620px);
  }

  .sub-hero .sub-copy {
    width: min(660px, 62%);
  }
}

@media (max-width: 720px) {
  .sub-hero,
  .sub-hero--right {
    justify-content: flex-start;
    min-height: 500px;
    height: auto;
  }

  .sub-hero::before,
  .sub-hero--right::before {
    background:
      linear-gradient(90deg, rgba(2, 9, 16, .92), rgba(2, 9, 16, .48)),
      linear-gradient(0deg, rgba(2, 9, 16, .92), rgba(2, 9, 16, .08) 68%);
  }

  .sub-hero .sub-copy {
    width: 100%;
    padding: 36px 24px 30px;
  }

  .sub-hero .sub-copy h1 {
    font-size: clamp(2.55rem, 12vw, 3.2rem);
  }

  .sub-hero .sub-copy .subtitle {
    max-width: 520px;
    font-size: .98rem;
  }
}
