/* Inner-page layout: the gradient / photo page header and the content column. */

.page-header {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(60px, 9vw, 120px);
}

.page-header__bg {
  position: absolute;
  inset: -4%;
  background:
    radial-gradient(60% 70% at 86% 76%, rgba(249, 150, 84, .8), transparent 70%),
    radial-gradient(50% 60% at 32% 105%, rgba(222, 150, 200, .5), transparent 70%),
    linear-gradient(#F8DCC7, #F9CBA9);
  animation: drift 14s ease-in-out infinite alternate;
}

/* Fine film grain over the gradient. */
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .18;
  mix-blend-mode: multiply;
  pointer-events: none;
  background-image: url("../img/grain.svg");
}

/* Crossfading background photos (Get data page). */
.page-header__slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity .9s ease;
}
.page-header__slide.is-active { opacity: 1; }

/* Photo variant (sector pages): cover image plus a dark scrim for legibility. */
.page-header.on-photo .page-header__bg {
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: none;
}
.page-header.on-photo::before { display: none; }
.page-header.on-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 12, .55), rgba(13, 13, 12, .35) 40%, rgba(13, 13, 12, .7));
}

.page-header__body {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(60px, 10vw, 120px) 32px 0;
}
.page-header__body small { font-size: 15px; color: var(--muted); }
.page-header__body h1 {
  margin-top: 14px;
  font-size: clamp(44px, 8vw, 120px);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.032em;
}
.page-header__body .lede {
  max-width: 560px;
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.4;
  color: var(--muted);
}
.page-header.on-photo small,
.page-header.on-photo .lede { color: #fff; }

.back-link { text-decoration: none; }
.back-link:hover { color: var(--ink); }
.on-photo .back-link:hover { color: #fff; }

.page-content {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 56px 32px 120px;
}

@media (max-width: 760px) {
  .page-header { padding-bottom: 48px; }
  .page-header__body { padding: 48px 20px 0; }
  .page-header__body h1 { font-size: clamp(34px, 10.5vw, 56px); overflow-wrap: break-word; }
  .page-header__body .lede { font-size: 16px; margin-top: 18px; }
  .page-content { padding: 28px 20px 72px; }
}
