/* A vivid cartographic canvas with contours, routes and shooting spots. */
.home-page,
.release-page {
  background-color: #0b1321;
}

.home-page::before,
.release-page::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 540px at 0% 0%, #548ce866, transparent 75%),
    radial-gradient(ellipse 48% 720px at 105% 50%, #5be0c34d, transparent 74%),
    radial-gradient(ellipse 65% 400px at 15% 100%, #5e8fea59, transparent 76%),
    radial-gradient(ellipse 40% 320px at 95% 100%, #83e8d23b, transparent 75%),
    linear-gradient(145deg, #15263d 0%, #0b1423 48%, #15283a 100%);
}

.home-page::after,
.release-page::after {
  display: block;
  position: absolute;
  inset: 0;
  opacity: 1;
  background: url('assets/background-contours.svg') center top / 100% auto repeat-y;
  mask-image: linear-gradient(90deg, #000, #0009 36%, #0009 64%, #000);
  -webkit-mask-image: linear-gradient(90deg, #000, #0009 36%, #0009 64%, #000);
  will-change: auto;
}

.home-hero--slideshow {
  position: relative;
  isolation: isolate;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  border-radius: 24px;
  background: #0b0f1a;
}

.hero-background__layer,
.hero-background__layer img,
.hero-background__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-background__layer {
  display: block;
  opacity: 0;
  transition: opacity 800ms ease-in-out;
}

.hero-background__layer.is-active { opacity: 1; }
.hero-background__layer img {
  display: block;
  object-fit: cover;
  object-position: 58% center;
}

.hero-background__shade {
  background:
    linear-gradient(90deg, #081527eb, #0815279e 44%, #08152726 100%),
    linear-gradient(180deg, #0b0f1a18 55%, #0b0f1a 100%);
}

.container > main > .home-hero--slideshow {
  padding-inline: 40px;
  padding-bottom: 64px;
}

.container > main > .home-hero--slideshow .hero-copy > p { color: #e0e8f2; }
.home-hero--slideshow .hero-eyebrow,
.home-hero--slideshow .download-label { color: #edf2fa; }
.home-hero--slideshow .mock::before { display: none; }

/* Use the same standalone logo at every screen size. */
.home-page .container > header .logo-badge,
.release-page .container > header .logo-badge {
  width: 80px;
  height: 80px;
  flex-basis: 80px;
  border-radius: 0;
  border: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
.home-page .container > header .logo-icon,
.release-page .container > header .logo-icon { width: 100%; height: 100%; }
.home-page .container > header .logo > span,
.release-page .container > header .logo > span { display: none; }


@media (min-width: 701px) and (max-width: 920px) {
  .container > main > .home-hero--slideshow { padding-inline: 24px; }
}

@media (max-width: 700px) {
  /* Place the navigation over the hero photo without a separate header band. */
  .home-page .container,
  .release-page .container { position: relative; padding-top: 0; }
  .home-page .container > header,
  .release-page .container > header {
    position: absolute;
    top: calc(16px + var(--safe-top, 0px));
    left: 24px;
    right: 24px;
    z-index: 2;
    width: auto;
    padding: 0;
    gap: 16px;
  }
  /* Edge-to-edge imagery while retaining the site's original content gutters. */
  .home-page::before,
  .release-page::before {
    background:
      radial-gradient(ellipse 110% 300px at 0% 0%, #548ce84d, transparent 75%),
      radial-gradient(ellipse 100% 460px at 100% 100%, #5be0c347, transparent 75%),
      linear-gradient(155deg, #15263d, #0b1423 45%, #15283a);
  }
  .home-page::after,
  .release-page::after {
    background-size: 900px 700px;
    background-position: 42% bottom;
    opacity: .95;
    mask-image: linear-gradient(90deg, #000, #000a 50%, #000);
    -webkit-mask-image: linear-gradient(90deg, #000, #000a 50%, #000);
  }
  .hero-background {
    left: -24px;
    right: -24px;
    border-radius: 0;
    /* Fade the entire image into the page canvas, including its contour lines. */
    --hero-bottom-fade: linear-gradient(
      180deg,
      #000 calc(100% - 320px),
      #000e calc(100% - 240px),
      #0008 calc(100% - 160px),
      #0002 calc(100% - 80px),
      transparent 100%
    );
    -webkit-mask-image: var(--hero-bottom-fade);
    mask-image: var(--hero-bottom-fade);
  }
  .home-page #kontakt {
    position: relative;
    margin-top: 0;
    padding-top: 44px;
    border-top: 1px solid #ffffff0c;
  }
  .hero-background__layer img { object-position: center top; }
  .hero-background__shade {
    background: linear-gradient(180deg, #081527c9 0%, #08152799 30%, #0815273d 55%, #0b0f1ac4 80%, #0b0f1a 100%);
  }
  .container > main > .home-hero--slideshow {
    padding-top: calc(132px + var(--safe-top, 0px));
    padding-inline: 0;
    padding-bottom: 32px;
  }
}

@media (max-width: 370px) {
  .home-page .container > header,
  .release-page .container > header { left: 18px; right: 18px; }
  .hero-background { left: -18px; right: -18px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-background__layer { transition: none; }
}
