/* Compact photographic headers for the site's interior pages. */
.page-masthead__visual {
  position: relative;
  height: 200px;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-sm);
  background: var(--color-dark);
}

.page-masthead__visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  animation: masthead-zoom-out 18s ease-out both;
}

/* Settle into the full frame once, without a visible loop or reverse zoom. */
@keyframes masthead-zoom-out {
  from { transform: scale(1.14); }
  to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .page-masthead__visual > img {
    animation: none;
  }
}

.page-masthead__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 20, 20, 0.64), rgba(20, 20, 20, 0.12) 80%);
}

.page-masthead__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: var(--space-xl) var(--space-2xl);
  color: var(--color-white);
}

.page-masthead__content .label {
  margin-bottom: var(--space-sm);
  color: rgba(255, 255, 255, 0.88);
}

.page-masthead__content h1 {
  max-width: 760px;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  line-height: var(--lh-snug);
  text-transform: uppercase;
}

.page-masthead + .section {
  padding-top: var(--space-2xl);
}

.page-intro {
  max-width: 800px;
  margin-bottom: var(--space-xl);
  color: var(--color-text-muted);
  font-size: var(--fs-md);
  font-weight: var(--fw-light);
}

@media (max-width: 767px) {
  .page-masthead__visual {
    height: 150px;
  }

  .page-masthead__content {
    padding: var(--space-lg);
  }

  .page-masthead__content .label {
    font-size: 10px;
    letter-spacing: var(--ls-wide);
  }

  .page-masthead + .section {
    padding-top: var(--space-xl);
  }

  .page-intro {
    font-size: var(--fs-base);
    margin-bottom: var(--space-lg);
  }
}
