/* ==========================================================================
   HERO — full viewport background video, bottom gradient, thin type
   ========================================================================== */

.hero {
  display: flex;
  align-items: flex-end;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--dur-xslow) ease;
}

.hero__media video.is-loaded { opacity: 1; }

.hero__gradient {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%; /* visually reads as ~20% strong fade tapering upward */
  background: var(--overlay-gradient-hero);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--sp-5) var(--sp-7);
  color: var(--color-white);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__eyebrow {
  color: var(--color-white);
  text-shadow: 1px 1px 0 var(--color-ink);
}

/* ---- Hero logo ----
   Resize the LOGO by resizing its CONTAINER, not the image directly: the
   img is locked to 60% of `.hero__logo`'s width, so the one number to
   tune is `--hero-logo-container-w` below. */
.hero__logo {
  --hero-logo-container-w: 640px;
  width: var(--hero-logo-container-w);
  max-width: 80%;
  margin: 0 auto var(--sp-4);
}

.hero__logo img {
  width: 80%;
  margin: 0 auto;
  display: block;
  height: auto;
}

@media (max-width: 720px) {
  .hero__logo { --hero-logo-container-w: 520px; }
}

.hero__title {
  font-size: var(--fs-hero);
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-7);
  color: var(--color-accent);
}

.hero__sub {
  font-weight: var(--fw-subheading);
  font-size: var(--fs-sub);
  max-width: 42ch;
  margin-top: var(--sp-3);
  color: rgba(255,255,255,0.9);
  text-shadow: 1px 1px 0 var(--color-ink);
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .hero__content { padding: 0 var(--sp-3) var(--sp-6); }
  .hero__title { max-width: 100%; }
}

/* ---- Compact variant — secondary-page headers (Treatments, Articles):
   same video-background mechanism, a fraction of the height, smaller type. */
.hero--compact { min-height: 58vh; }

.hero--compact .hero__title {
  font-size: var(--fs-h1);
  margin-bottom: var(--sp-3);
}

.hero--compact .hero__sub { margin-top: var(--sp-2); }

@media (max-width: 720px) {
  .hero--compact { min-height: 46vh; }
}
