.opening::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: url("/experience/neurones-poster.webp") 75% center / cover no-repeat;
  opacity: .55;
  mask-image: linear-gradient(95deg, transparent 7%, #0008 41%, #000 74%);
}
#neuron-film {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  pointer-events: none;
  opacity: 0;
}
.opening.has-neuron-film #neuron-film { opacity: 1; }
.opening.has-neuron-film #network { visibility: hidden; }

@media (max-width: 700px) {
  #neuron-film {
    height: 72%;
    object-position: 75% center;
    mask-image: linear-gradient(180deg, black 54%, transparent 100%);
  }
}
#exploration { --hero-art: url("/experience/hero-exploration.webp"); }
#realites { --hero-art: url("/experience/hero-reality.webp"); }
#domain-descent { --hero-art: url("/experience/hero-application.webp"); }

.chapter-intro, .descent-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #0d125b;
  border: 1px solid #526fcc66;
  border-radius: .65rem;
}
.chapter-intro {
  min-height: clamp(17rem, 29vw, 24rem);
  padding: clamp(1.3rem, 4vw, 3.65rem);
}
.chapter-intro::before, .descent-hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -2;
  background: var(--hero-art) 76% center / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent 9%, #0001 24%, #0008 51%, #000 85%);
}
.chapter-intro::after, .descent-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #0d125b 0%, #0d125bcf 33%, #0d125b37 67%, transparent 88%);
  backdrop-filter: blur(8px);
  mask-image: linear-gradient(90deg, #000 25%, #000b 45%, transparent 72%);
}
.chapter-intro :is(h1, h2) { max-width: 11ch; text-wrap: balance; }
.chapter-intro p { max-width: 49ch; color: #e4edff; }
.descent-hero { min-height: 9.5rem; padding: clamp(1rem, 3vw, 2rem); margin-bottom: .85rem; }
.descent-hero h3 { max-width: 27ch; margin: 0; }
#descent-intro { max-width: 47ch; margin: .65rem 0 0; color: #e4edff; }

@media (max-width: 700px) {
  .opening::before {
    background-position: 65% 22%;
    mask-image: linear-gradient(0deg, transparent 24%, #0006 49%, #000 81%);
  }
  .chapter-intro, .descent-hero { justify-content: end; }
  .chapter-intro { min-height: 19rem; padding-top: 7.8rem; }
  .descent-hero { min-height: 10.5rem; padding-top: 4.25rem; }
  .chapter-intro::before, .descent-hero::before {
    background-position: 68% 35%;
    mask-image: linear-gradient(0deg, transparent 3%, #0003 31%, #000c 67%, #000 94%);
  }
  .chapter-intro::after, .descent-hero::after {
    background: linear-gradient(0deg, #0d125b 0%, #0d125bd4 24%, transparent 88%);
    mask-image: linear-gradient(0deg, #000 20%, #000a 41%, transparent 73%);
  }
}

.module-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: end;
  min-height: clamp(17rem, 25vw, 23rem);
  border: 1px solid #526fcc80;
  border-radius: .48rem;
  background: #0d125b;
}
.module-hero img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.module-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #090e42 3%, #090e42e8 24%, #090e4266 52%, transparent 76%);
  backdrop-filter: blur(5px);
  mask-image: linear-gradient(0deg, black 28%, #000a 43%, transparent 72%);
}
.module-hero-copy { padding: clamp(1rem, 2vw, 1.65rem); }
.module-hero-copy h3 { font-size: clamp(1.35rem, 2.8vw, 2.3rem); }
.module-hero-copy p { max-width: 53ch; margin: 0; color: #eef4ff; }
@media (max-width: 700px) {
  .module-hero { min-height: 19rem; padding-top: 8.5rem; }
}
