/* Each section keeps its own background still while the foreground scrolls. */
.gallery .fixed-scene {
  position: relative;
  display: block;
  isolation: isolate;
  overflow: clip;
  padding-block: 0;
}
.gallery .fixed-scene::before,
.gallery .fixed-scene::after { content: none; }
.scene-background {
  position: sticky;
  top: 0;
  z-index: 0;
  block-size: 100vh;
  block-size: 100svh;
  margin-block-end: -100vh;
  margin-block-end: -100svh;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  background: var(--section-photo) var(--photo-position, center) / cover no-repeat #231f20;
}
.scene-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--photo-veil);
}
.gallery .fixed-scene > .frame {
  position: relative;
  z-index: 1;
  min-block-size: 125vh;
  min-block-size: 125svh;
  padding-block: clamp(84px, 10vw, 144px);
}
.gallery .fixed-scene.profile > .frame {
  display: flex;
  align-items: center;
}
.gallery .fixed-scene .career-heading { position: static; }
.gallery .fixed-scene .career-layout { align-content: start; }
.gallery .fixed-scene--film {
  --scene-wash: rgb(240 235 226 / .82);
  background: #f0ebe2;
}
.fixed-scene--film .scene-background { background: #29241e; }
.fixed-scene--film .scene-background::after { background: var(--scene-wash); }
.scene-background > video {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.55);
}
.gallery .fixed-scene.contact { --scene-wash: rgb(240 235 226 / .86); }
.gallery .fixed-scene.contact > .frame {
  min-block-size: 130svh;
  padding-block-end: 0;
}
.gallery .fixed-scene .career-list details {
  background: transparent;
}
.gallery .fixed-scene .career-detail { background: rgb(248 245 238 / .38); }
.gallery .fixed-scene .career-links a { text-underline-offset: .24em; }
.gallery .fixed-scene .career-links a:hover { text-decoration: underline; }
.gallery .fixed-scene.contact :is(input, textarea) {
  background: rgb(255 252 244 / .88);
}
@media (max-width: 790px) {
  .gallery .fixed-scene > .frame {
    padding-block: 80px;
    min-block-size: 125svh;
  }
  .gallery .fixed-scene.contact > .frame { padding-block-end: 0; }
  .gallery .fixed-scene.profile > .frame { align-items: center; }
  .gallery .fixed-scene .career-layout { gap: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery .fixed-scene [data-scroll-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
