/* hero-science — section 3 of 19 · Figma D 1817:4353 (1920 x 940) / M 1817:4981 (390 x 701.5)
   Pattern B-edge: .container.container--bleed on the <section> (1920 cap, no gutter); the red panel
   (.hero-science__content) owns its padding. Mobile-first: base = mobile (< 768), pseudo-tablet 768–1023
   (split row from 768, D-HS-8), desktop 1024+. Fluid values: brief/hero-science.md §2 (FD-184, anchor 390).
   Scoped ONLY to .hero-science / .hero-science__* (GLOBAL-SCOPE LOCK). */

/* ---------- mobile (base, < 768) ---------- */
.hero-science {
  display: flex;
  flex-direction: column;            /* 1817:4981 vertical, gap 0: image on top, panel below */
}

/* photo half — 1817:4982: 390 x 292.5 (4:3, fixed height = width x 0.75) */
.hero-science__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.hero-science__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-science__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* red panel — 1817:4983: #9E2122 + texture @60 % graded, BAKED (D-HS-1) — no opacity/filter/overlay on top */
.hero-science__content {
  display: flex;
  flex-direction: column;
  justify-content: center;           /* primaryAxisAlignItems: CENTER */
  padding-block: clamp(46px, calc(56px + (var(--max-vw) - 390px) * 0.015), 80px);
  padding-inline: var(--gutter);     /* 16 @390 — the site gutter */
  background: #9E2122 url("../../assets/images/hero-science-panel-bg-mobile.webp") center / cover no-repeat;
}

/* copy group — 1817:4984: column, centred, gap 16 */
.hero-science__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(13px, calc(16px + (var(--max-vw) - 390px) * 0.015), 48px);
  width: 100%;
}

/* TUDO coin mark — 1817:4986: 79.31 x 80 (one file for both layers, D-HS-3) */
.hero-science__mark {
  width: clamp(65px, calc(79.31px + (var(--max-vw) - 390px) * 0.015), 148.71px);
  height: auto;
  aspect-ratio: 148.71 / 150;
  object-fit: contain;
  flex: 0 0 auto;
}

/* text group — 1817:4987: column, gap 12, fills the copy column */
.hero-science__text {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, calc(12px + (var(--max-vw) - 390px) * 0.015), 20px);
  width: 100%;
  text-align: center;
  color: var(--color-white);
}

/* title — the page's single <h1> (D-HS-6): Bethany 400, h1 token on every band */
.hero-science__title {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  font-size: var(--text-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
}

/* lead — body-lg below 1024, body-xl from 1024 (D-HS-5) */
.hero-science__lead {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-size: var(--text-body-lg);
  line-height: var(--lh-body-lg);
  letter-spacing: var(--ls-body-lg);
}

/* desktop-only forced break after "1957." (D-HS-4) */
.hero-science__br { display: none; }

/* ---------- split row from 768 (D-HS-8) ---------- */
@media (min-width: 768px) {
  .hero-science {
    display: grid;
    grid-template-columns: 1fr 1fr; /* image half | panel half, gap 0 */
    align-items: stretch;
  }

  .hero-science__media {
    aspect-ratio: auto;              /* stretches to the panel-driven row height */
    min-width: 0;
  }

  .hero-science__media picture {
    position: absolute;
    inset: 0;
  }

  .hero-science__content {
    min-width: 0;
    background-image: url("../../assets/images/hero-science-panel-bg-desktop.webp");
  }
}

/* ---------- pseudo-tablet 768–1023 (continues from M-767) ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-science__content {
    padding-block: clamp(61.66px, calc(61.66px + (var(--max-vw) - 768px) * 0.025), 80px);
    padding-inline: var(--gutter);   /* 21.66 → 28 (site tablet gutter) */
  }
  .hero-science__copy { gap: clamp(21.66px, calc(21.66px + (var(--max-vw) - 768px) * 0.025), 48px); }
  .hero-science__mark { width: clamp(84.97px, calc(84.97px + (var(--max-vw) - 768px) * 0.025), 148.71px); }
  .hero-science__text { gap: clamp(17.66px, calc(17.66px + (var(--max-vw) - 768px) * 0.025), 20px); }
}

/* ---------- desktop (1024+; drawn at 1920) ---------- */
@media (min-width: 1024px) {
  .hero-science {
    min-height: clamp(501px, calc(940px * (var(--max-vw) / var(--vw-base))), 940px);   /* D-HS-7 */
  }

  /* 1817:4355: padding 80 all sides — NOT the page gutter */
  .hero-science__content {
    padding-block: clamp(43px, calc(80px * (var(--max-vw) / var(--vw-base))), 80px);
    padding-inline: clamp(43px, calc(80px * (var(--max-vw) / var(--vw-base))), 80px);
  }

  .hero-science__copy { gap: clamp(26px, calc(48px * (var(--max-vw) / var(--vw-base))), 48px); }
  .hero-science__mark { width: clamp(79px, calc(148.71px * (var(--max-vw) / var(--vw-base))), 148.71px); }
  .hero-science__text { gap: clamp(11px, calc(20px * (var(--max-vw) / var(--vw-base))), 20px); }

  .hero-science__lead {
    font-size: var(--text-body-xl);
    line-height: var(--lh-body-xl);
    letter-spacing: var(--ls-body-xl);
  }

  .hero-science__br { display: inline; }
}
