.project-page-hpi {
  overflow-x: hidden;
  background: #000;
}

.hpi-opening {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 3.5vw, 64px);
  bottom: clamp(22px, 3.5vw, 58px);
  margin: 0;
}

.hpi-title-block h1 {
  max-width: 1180px;
  margin: 0;
  font-size: clamp(46px, 5.2vw, 84px);
  line-height: .92;
  letter-spacing: -.05em;
  font-weight: 500;
}

.hpi-title-block .project-subtitle {
  margin-top: 14px;
}

.hpi-hero {
  position: relative;
  width: 96.4vw;
  margin: 94px auto 0;
  overflow: hidden;
  background: #000;
}

.hpi-hero::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .62));
  pointer-events: none;
}

.hpi-hero img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hpi-media {
  margin: 0;
  padding: 60px 1.8vw;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.hpi-media img,
.hpi-media video {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  background: #050505;
}

.hpi-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.hpi-image-pair,
.hpi-production-pair {
  width: min(90vw, 1440px);
  margin-right: auto;
  margin-left: auto;
  padding-right: 0;
  padding-left: 0;
}

.hpi-image-pair > *,
.hpi-production-pair > * {
  width: 100%;
  height: min(40vw, 620px);
  object-fit: contain;
}

.hpi-triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  align-items: stretch;
}

.hpi-triptych > * {
  min-width: 0;
  width: 100%;
  height: clamp(220px, 24vw, 420px);
  overflow: hidden;
  background: #000;
  display: block;
}

.hpi-triptych video {
  object-fit: contain;
}

.hpi-triptych img {
  object-fit: cover;
}

.hpi-video-triptych {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.hpi-video-triptych > video {
  flex: 0 0 auto;
  min-width: 0;
  width: auto;
  max-width: none;
  height: var(--hpi-video-triptych-height, 220px);
  object-fit: contain;
}

.hpi-closing {
  width: min(90vw, 1440px);
  margin-right: auto;
  margin-left: auto;
  padding-right: 0;
  padding-left: 0;
  padding-bottom: 80px;
}

@media (max-width: 760px) {
  .hpi-opening {
    position: static;
    padding: 24px 0 0;
  }

  .hpi-title-block h1 {
    font-size: clamp(42px, 13vw, 56px);
  }

  .hpi-hero {
    width: calc(100% - 40px);
    margin-top: 94px;
    margin-bottom: 0;
  }

  .hpi-hero img {
    max-height: none;
  }

  .hpi-hero::after {
    display: none;
  }

  .hpi-info {
    padding-top: 74px;
  }

  .hpi-media {
    width: auto;
    padding: 48px 20px;
  }

  .hpi-pair,
  .hpi-triptych {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hpi-video-triptych {
    display: grid;
  }

  .hpi-video-triptych > video {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .hpi-image-pair > *,
  .hpi-production-pair > *,
  .hpi-triptych > * {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .project-page-hpi .project-next strong {
    font-size: clamp(32px, 10vw, 48px);
  }
}
