/* =====================================================
   Film pages (About, Package): one V2 scene in a fixed
   stage under the header (filmpage.js fits it), a hero
   the size of the first screen over it, then the page
   in the normal flow on opaque paper or velvet.
   ===================================================== */
:root {
  --pg-hdr: 76px;
  --pg-gold: rgba(211, 193, 129, 0.75);
}

@media (max-width: 899px), (orientation: portrait) {
  :root {
    --pg-hdr: 64px;
  }
}

body.pg {
  background: var(--night);
  color: var(--pearl);
  overflow-x: hidden;
}

/* the header is an opaque velvet band: the stage starts under it */
.pg .hdr {
  background:
    linear-gradient(180deg, rgba(255, 236, 214, 0.05), rgba(0, 0, 0, 0.12)),
    radial-gradient(140% 260% at 50% 0%, #5a1215 0%, #3e0a0c 55%, #2a0507 100%);
  border-bottom: 1px solid rgba(211, 193, 129, 0.35);
  pointer-events: auto; /* an opaque band: clicks stop here */
}

.pg #film {
  top: var(--pg-hdr);
}

.film-away #film {
  visibility: hidden;
}

.pg main {
  position: relative;
  z-index: 1;
}

/* the first screen: transparent, the film shows through */
.pg-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
}

/* "Scroll": shown at every stop of the film */
.pg-hint {
  position: absolute;
  left: 50%;
  bottom: max(22px, 3svh);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 18px;
  transform: translate(-50%, 12px);
  opacity: 0;
  visibility: hidden;
  border-radius: 999px;
  background: rgba(43, 8, 10, 0.62);
  color: var(--gold-hi);
  font: 500 12px/1 var(--ff-sans);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.7s ease, transform 0.7s ease, visibility 0s linear 0.7s;
}

.pg-hint::after {
  content: "";
  width: 1px;
  height: 22px;
  background: linear-gradient(var(--gold-hi), rgba(239, 226, 176, 0));
  animation: pg-hint-drop 2.2s ease-in-out infinite;
}

.pg-hint.is-on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* once the reader scrolls, the hint has done its job */
.pg-scrolled .pg-hint {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

/* phones: above the fixed Book button */
@media (max-width: 899px), (orientation: portrait) {
  .pg-hint {
    bottom: max(86px, calc(env(safe-area-inset-bottom) + 80px));
  }
}

.pg-hint:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
}

@keyframes pg-hint-drop {
  0%,
  100% {
    transform: scaleY(0.35);
    transform-origin: 50% 0;
  }
  50% {
    transform: scaleY(1);
    transform-origin: 50% 0;
  }
}

.reduced .pg-hint::after {
  animation: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
