/* Hero: full-screen image (edge to edge, top bar floating over it) with the split "Omatidio / media" heading.
   The 250vh scroll block keeps the hero pinned while the 5 black panels rise over it (js/scroll-timelines.js). */

.hero-scroll-block {
  width: 100%;
  height: 250vh;
  position: relative;
}

.hero-section {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-container {
  height: 100%;
  max-width: none;
}

.hero-block {
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
}

.hero-image-block {
  flex-flow: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  /* Headings keep their original inset: 60px inside the content column the logo aligns to. */
  padding: 60px calc(var(--content-edge) + 60px);
  display: flex;
  position: relative;
  overflow: hidden;
}

.hero-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: auto auto auto 0;
}

.hero-shadow-1,
.hero-shadow-2 {
  opacity: .8;
  width: 100%;
  height: 30%;
  position: absolute;
}
.hero-shadow-1 {
  background-image: linear-gradient(#000, #fff0);
  inset: 0% auto auto 0%;
}
.hero-shadow-2 {
  background-image: linear-gradient(0deg, #000, #fff0);
  inset: auto auto 0% 0%;
}

.hero-heading {
  font-size: var(--h1);
  text-transform: uppercase;
  color: var(--color-yellow);
  margin: 0;
  font-weight: 500;
  line-height: 1em;
  position: relative;
}

.hero-image-stack {
  background-color: var(--color-bg);
  width: 20%;
  height: 100%;
  position: absolute;
  inset: auto auto 0% 0%;
  transform: translate(0, 100%);
}
.hero-image-stack._2 { left: 20%; }
.hero-image-stack._3 { left: 40%; }
.hero-image-stack._4 { left: 60%; }
.hero-image-stack._5 { left: 80%; }

/* Page-load intro (js/intro.js adds .is-loaded): headings slide in unblurred over 1s,
   the image opens from its centre over 2s. Scoped to .js so the page still shows without JavaScript. */
.js .hero-image {
  height: 0%;
  transition: height 2s var(--ease);
}
.js .hero-heading {
  opacity: 0;
  filter: blur(5px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
}
.js .hero-heading.from-right { transform: translateX(50%); }
.js .hero-heading.from-left { transform: translateX(-50%); }

.js.is-loaded .hero-image { height: 100%; }
.js.is-loaded .hero-heading {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}

@media screen and (max-width: 991px) {
  .hero-image-block {
    flex-flow: column;
    justify-content: center;
  }
  .hero-heading {
    font-size: var(--h3);
    margin-top: 10px;
  }
}

@media screen and (max-width: 479px) {
  .hero-heading { font-size: var(--h4); }
}
