.page-hero {
  position: relative;
  height: 88vh;
  height: 88svh;
  min-height: 560px;
  overflow: hidden;
  background-color: var(--night);
  color: var(--offwhite);
}

/* ============================================ */
/* MEDIA */
/* ============================================ */

.page-hero__media {
  position: absolute;
  inset: 0;
  margin: 0;
  animation: page-hero-settle 2400ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes page-hero-settle {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}

/* Shading gathers behind the statement at the lower left, so the type holds on bright photographs
   (measured at 3:1 or better for the headline and 4.5:1 for smaller text), and the rest of the image stays clear */
.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse 85% 85% at 18% 88%, rgba(10, 26, 18, 0.9) 0%, rgba(10, 26, 18, 0.76) 50%, rgba(10, 26, 18, 0) 82%), linear-gradient(to top, rgba(10, 26, 18, 0.92) 0%, rgba(10, 26, 18, 0.72) 40%, rgba(10, 26, 18, 0.2) 70%, rgba(10, 26, 18, 0) 84%), linear-gradient(to bottom, rgba(10, 26, 18, 0.5) 0%, rgba(10, 26, 18, 0) 24%);
}

.page-hero__media img,
.page-hero__film {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__media figcaption {
  position: absolute;
  right: 20px;
  bottom: 1.75rem;
  z-index: 1;
  color: rgba(244, 242, 236, 0.7);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* Tablet Portrait Up - Min 600px */
@media (min-width: 600px) {
  .page-hero__media figcaption {
    right: 32px;
  }
}

/* Desktop Up - Min 1200px */
@media (min-width: 1200px) {
  .page-hero__media figcaption {
    right: 40px;
    bottom: 2rem;
  }
}

/* ============================================ */
/* STATEMENT */
/* ============================================ */

.page-hero__wrapper {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 4.5rem;
}

/* Tablet Portrait Up - Min 600px */
@media (min-width: 600px) {
  .page-hero__wrapper {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* Desktop Up - Min 1200px */
@media (min-width: 1200px) {
  .page-hero__wrapper {
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 5rem;
  }
}

.page-hero__label {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--secondary-color-lighter);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  animation: page-hero-fade 1200ms cubic-bezier(0.16, 1, 0.3, 1) 200ms both;
}

.page-hero__title {
  max-width: 1300px;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 46px;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

/* Tablet Portrait Up - Min 600px */
@media (min-width: 600px) {
  .page-hero__title {
    font-size: 68px;
  }
}

/* Tablet Landscape Up - Min 900px */
@media (min-width: 900px) {
  .page-hero__title {
    font-size: 84px;
  }
}

/* Desktop Up - Min 1200px */
@media (min-width: 1200px) {
  .page-hero__title {
    font-size: 112px;
  }
}

/* Big Desktop Up - Min 1800px */
@media (min-width: 1800px) {
  .page-hero__title {
    font-size: 148px;
  }
}

.page-hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.page-hero__line > span {
  display: block;
  animation: page-hero-line 1400ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--line) * 110ms + 250ms);
}

@keyframes page-hero-line {
  from {
    transform: translateY(110%);
  }
  to {
    transform: translateY(0);
  }
}

.page-hero__description {
  max-width: 560px;
  margin-top: 2rem;
  margin-bottom: 0;
  color: rgba(244, 242, 236, 0.86);
  font-size: 17px;
  line-height: 1.55;
  animation: page-hero-fade 1400ms cubic-bezier(0.16, 1, 0.3, 1) 600ms both;
}

/* Desktop Up - Min 1200px */
@media (min-width: 1200px) {
  .page-hero__description {
    font-size: 18px;
  }
}

@keyframes page-hero-fade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced motion shows the opening at rest */
@media (prefers-reduced-motion: reduce) {
  .page-hero__media,
  .page-hero__label,
  .page-hero__line > span,
  .page-hero__description {
    animation: none;
  }
}
