/* ==========================================================================
   Science Hero — Full-bleed hero with background media + left-anchored copy
   ========================================================================== */

.science-hero {
  position: relative;
  width: 100%;
  min-height: clamp(560px, 80vh, 860px);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

/* --- Background media layer --- */
.science-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.science-hero__image,
.science-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

/* Darken the left edge so the copy stays legible over the photo */
.science-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.35) 35%,
      rgba(0, 0, 0, 0.1) 60%,
      rgba(0, 0, 0, 0) 80%
    );
  pointer-events: none;
}

/* --- Copy block --- */
.science-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: inherit;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px;
}

.science-hero__copy {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.science-hero__eyebrow {
  font-family: new-science-mono, monospace;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.science-hero__headline {
  font-family: termina, sans-serif;
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.science-hero__subtitle {
  font-family: new-science-mono, monospace;
  font-weight: 400;
  font-size: 0.8125rem;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 480px;
}

/* --- Mobile --- */
@media (max-width: 767px) {
  .science-hero {
    min-height: clamp(520px, 90vh, 720px);
  }

  /* Pull focus off the subject's face and onto the empty sky so copy overlays cleanly */
  .science-hero__image,
  .science-hero__video {
    object-position: 70% center;
  }

  /* Add a stronger top-down overlay on mobile to support stacked copy */
  .science-hero__overlay {
    background:
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.45) 100%
      );
  }

  .science-hero__inner {
    padding: 60px 24px;
    align-items: flex-end;
  }

  .science-hero__copy {
    gap: 20px;
    max-width: 100%;
  }

  .science-hero__headline {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .science-hero__subtitle {
    font-size: 0.75rem;
  }
}

/* --- Respect reduced motion (pause background video for users who prefer it) --- */
@media (prefers-reduced-motion: reduce) {
  .science-hero__video {
    display: none;
  }
}
