/* A flowing title area keeps all of the copy above the cinema, including at zoom. */
.hero {
  --stage-height: clamp(13rem, 56vw, 71rem);
  aspect-ratio: auto;
  min-height: 0;
  padding-bottom: 0;
  overflow: hidden;
  background: #f08676;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 var(--stage-height);
  background: url("./sky-header.webp") center / 100% 100% no-repeat;
}
.hero-cinema {
  --screen-x: 50%;
  --screen-y: 34%;
  position: relative;
  isolation: isolate;
  width: 100%;
  height: var(--stage-height);
  margin-top: clamp(1rem, 1.4vw, 1.75rem);
  background: #ed8179 url("./sky-seam.png") center / 100% 100% no-repeat;
}
.hero-stage {
  width: 100%;
  height: 100%;
  position: relative;
  background: url("./small-stage.webp") center / 100% 100% no-repeat;
}
.hero-stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  inset: 0;
  background: linear-gradient(to bottom, transparent 83%, var(--paper));
}
.hero-stage[data-ready] { background-image: none; }
.hero-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  visibility: hidden;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
}
.hero-stage[data-ready] canvas { visibility: visible; }
.hero-stage canvas:active { cursor: grabbing; }
.hero-stage:focus-visible {
  outline: 3px solid #18388a;
  outline-offset: -5px;
}
.hero-cinema .cinema-trigger {
  box-sizing: border-box;
  position: absolute;
  z-index: 2;
  top: var(--screen-y);
  left: var(--screen-x);
  bottom: auto;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 58%;
  display: flex;
  align-items: center;
  gap: 0;
  line-height: 1.2;
  color: #56391e;
  font-size: clamp(1rem, 1.67vw, 1.5rem);
  text-align: center;
}
.hero-cinema .cinema-trigger img {
  display: block;
  width: clamp(3.65rem, 6.25vw, 5.625rem);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  clip-path: none;
}
.hero-cinema .cinema-trigger span { margin-top: -.24em; }
@media (max-width: 620px) {
  .hero { --stage-height: clamp(11.75rem, 56vw, 22rem); }
  .hero-cinema { margin-top: 1rem; }
  .hero-cinema .cinema-trigger { font-size: .95rem; }
  .hero-cinema .cinema-trigger img { width: 3.375rem; }
}
