/* Same verified city film as CH Translations. Preserve the existing
   Diploma Recognition typography and readable, warm editorial overlay. */
.hero.hero-has-video {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #FBFAF8;
  background-image: none;
}

/* The former hero photograph is a pseudo-element at <=980px.
   Never layer it above the film or leave a photo strip on mobile. */
.hero.hero-has-video::before {
  content: none;
  display: none;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  opacity: .42;
  filter: saturate(.82) contrast(.98);
}

.hero-video-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(251, 250, 248, .97) 0%,
    rgba(251, 250, 248, .94) 36%,
    rgba(251, 250, 248, .78) 66%,
    rgba(251, 250, 248, .5) 100%);
}

.hero.hero-has-video .hero-grid {
  position: relative;
  z-index: 2;
}

.hero-video-toggle {
  position: absolute;
  right: clamp(16px, 4vw, 46px);
  bottom: 18px;
  z-index: 3;
  appearance: none;
  border: 1px solid rgba(22, 90, 66, .32);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, .82);
  color: #165A42;
  font: 600 11px/1.2 var(--al-font, system-ui, sans-serif);
  letter-spacing: .02em;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hero-video-toggle[hidden] {
  display: none !important;
}

.hero-video-toggle:hover,
.hero-video-toggle:focus-visible {
  background: #fff;
  border-color: #165A42;
}

.hero-video-credit {
  position: absolute;
  right: clamp(16px, 4vw, 46px);
  bottom: 48px;
  z-index: 3;
  color: rgba(22, 90, 66, .78);
  font: 500 10px/1.2 var(--al-font, system-ui, sans-serif);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-video-credit:hover,
.hero-video-credit:focus-visible {
  color: #165A42;
}

/* Tablet uses the film as background rather than reserving a large empty
   area above the heading for the retired hero photograph. */
@media (min-width: 901px) and (max-width: 980px) {
  .hero.hero-has-video .hero-grid {
    min-height: 0;
    padding: clamp(68px, 8vw, 94px) 0;
  }
}

/* On mobile match CH Translations: no moving background or photo strip.
   Keep a cream hero and position the heading immediately after navigation. */
@media (max-width: 900px) {
  .hero-video,
  .hero-video-scrim,
  .hero-video-toggle,
  .hero-video-credit {
    display: none !important;
  }
  .hero.hero-has-video {
    background: #FBFAF8;
    overflow: visible;
  }
  .hero.hero-has-video .hero-grid {
    min-height: 0;
    padding: 58px 0 62px;
  }
}

@media (max-width: 620px) {
  .hero.hero-has-video .hero-grid {
    padding: 48px 0 55px;
  }
}

/* Reduced-motion desktop keeps a still from the same film, not the
   unrelated original diploma photograph. The scrim remains for contrast. */
@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
  .hero-video,
  .hero-video-toggle {
    display: none !important;
  }
  .hero.hero-has-video {
    background: #FBFAF8 url("/assets/chtranslations-cities-poster-20261030.jpg") center / cover no-repeat;
  }
}
