.mf-pdh {
  --mf-pdh-u: 0.0520833333vw;
  --mf-pdh-mobile-bar: 1vh;
  position: relative;
  display: flex;
  width: 100%;
  height: 100vh;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: #000;
  font-family: var(
    --mf-font-body,
    "Schibstedgrotesk",
    "Schibsted Grotesk",
    Arial,
    sans-serif
  );
  font-weight: 400;
  letter-spacing: -0.02em;
}

.mf-pdh,
.mf-pdh *,
.mf-pdh *::before,
.mf-pdh *::after {
  box-sizing: border-box;
}

.mf-pdh__image-scale,
.mf-pdh__image-parallax,
.mf-pdh__image,
.mf-pdh__image-empty {
  display: block;
  width: 100%;
  height: 100%;
}

.mf-pdh__image-scale {
  position: absolute;
  inset: 0;
  transform: scale(1);
  transform-origin: center center;
}

.mf-pdh[data-mf-motion="pending"] .mf-pdh__image-scale {
  transform: scale(1.1);
}

.mf-pdh[data-mf-motion="pending"] [data-mf-hero-title-line] {
  transform: translateY(calc(101% + 0.2em));
}

.mf-pdh[data-mf-motion="pending"] [data-mf-metric-suffix-char] {
  transform: translateY(101%);
}

.mf-pdh[data-mf-motion="pending"] .mf-pdh__title {
  visibility: hidden;
}

.mf-pdh[data-mf-motion="pending"][data-mf-title-prepared] .mf-pdh__title {
  visibility: visible;
}

.mf-pdh[data-mf-motion="pending"] .mf-pdh__metric-reel {
  transform: translateY(var(--mf-pdh-reel-start));
}

.mf-pdh__image-parallax {
  background: #000;
  will-change: transform;
}

.mf-pdh__image {
  object-fit: cover;
  object-position: var(--mf-pdh-image-x, 50%) var(--mf-pdh-image-y, 50%);
}

.mf-pdh__image-empty {
  background: #111;
}

/* Keeps the white site header legible over bright stills; invisible on dark ones. */
.mf-pdh__scrim {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  height: calc(240 * var(--mf-pdh-u));
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.2) 45%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

.mf-pdh__content {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  align-items: flex-end;
  justify-content: space-between;
  padding: calc(38 * var(--mf-pdh-u)) calc(30 * var(--mf-pdh-u));
}

.mf-pdh__title {
  width: 100%;
  max-width: calc(550 * var(--mf-pdh-u));
  margin: 0;
  font: inherit;
  font-size: calc(80 * var(--mf-pdh-u));
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

@media (min-width: 768px) {
  .mf-pdh[data-mf-project-key="food-i-think-about-when-i-think-about-cycling"]
    .mf-pdh__title {
    max-width: calc(720 * var(--mf-pdh-u));
  }
}

.mf-pdh__title-part,
.mf-pdh__title-line,
.mf-pdh__title-line-mask {
  display: block;
}

.mf-pdh__title-part {
  text-wrap: balance;
}

/* Padding keeps descenders inside the reveal mask; the matching negative
   margin keeps masked lines on the same pitch as unsplit text. */
.mf-pdh__title-line-mask {
  padding-bottom: 0.2em;
  margin-bottom: -0.2em;
  overflow: clip;
}

.mf-pdh__suffix-mask {
  overflow: clip;
}

[data-mf-hero-title-line],
[data-mf-metric-suffix-char] {
  will-change: transform;
}

.mf-pdh__metric-wrap {
  display: flex;
  align-items: flex-start;
  gap: calc(20 * var(--mf-pdh-u));
}

.mf-pdh__metric {
  position: relative;
  display: flex;
  margin: 0;
  color: inherit;
  font-family: var(--mf-font-display, "Gambarino", Georgia, serif);
  font-size: calc(175 * var(--mf-pdh-u));
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.7;
}

.mf-pdh__metric-ghost {
  position: absolute;
  visibility: hidden;
  white-space: pre;
}

.mf-pdh__metric-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}

.mf-pdh__metric-character {
  display: block;
  height: 1em;
  margin-top: -0.15em;
  margin-bottom: -0.15em;
  overflow-x: visible;
  overflow-y: clip;
  line-height: 1;
  text-align: center;
}

.mf-pdh__metric-reel,
.mf-pdh__metric-reel > span {
  display: block;
}

.mf-pdh__metric-reel {
  transform: translateY(var(--mf-pdh-reel-end));
  will-change: transform;
}

.mf-pdh__metric-suffix {
  position: relative;
  top: -0.5em;
  display: flex;
  margin: 0;
  font-family: var(--mf-font-display, "Gambarino", Georgia, serif);
  font-size: calc(14 * var(--mf-pdh-u));
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  vertical-align: baseline;
}

.mf-pdh__suffix-mask,
.mf-pdh__suffix-mask > span {
  display: block;
}

.mf-pdh[data-mf-motion="complete"] [data-mf-hero-title-line],
.mf-pdh[data-mf-motion="complete"] [data-mf-metric-suffix-char],
.mf-pdh[data-mf-motion="complete"] .mf-pdh__metric-reel {
  will-change: auto;
}

@media (max-width: 767.98px) {
  .mf-pdh {
    --mf-pdh-u: 0.2666666667vw;
    height: calc(100vh - var(--mf-pdh-mobile-bar));
  }

  .mf-pdh__scrim {
    height: calc(140 * var(--mf-pdh-u));
  }

  .mf-pdh__content {
    align-items: flex-end;
    gap: calc(20 * var(--mf-pdh-u));
    padding: calc(20 * var(--mf-pdh-u)) calc(15 * var(--mf-pdh-u));
  }

  .mf-pdh__title {
    width: 100%;
    max-width: calc(220 * var(--mf-pdh-u));
    flex-shrink: 0;
    font-size: calc(30 * var(--mf-pdh-u));
  }

  .mf-pdh__metric-wrap {
    width: 100%;
    align-items: flex-end;
    justify-content: flex-end;
    gap: calc(5 * var(--mf-pdh-u));
  }

  .mf-pdh__metric {
    font-size: calc(26 * var(--mf-pdh-u));
  }

  .mf-pdh__metric-suffix {
    font-size: calc(12 * var(--mf-pdh-u));
  }

  .mf-pdh__image-parallax {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mf-pdh__image-scale,
  [data-mf-hero-title-line],
  [data-mf-metric-suffix-char],
  .mf-pdh__image-parallax {
    transform: none !important;
  }

  .mf-pdh__metric-reel {
    transform: translateY(var(--mf-pdh-reel-end)) !important;
  }
}

