/* Teaser page layout: a scene you look into, a sign mounted above center. */

/* --- Backdrop: still image always present; video fades over it when playing --- */
.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--ink-deep);
}
.scene__still,
.scene__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Slight overscale crops the clip's edge watermark out of frame. */
.scene__video { opacity: 0.9; transform: scale(1.08); }

/* No-JS fallback for reduced-motion users: hide the video outright
   (motion.js additionally unloads it when it can run). */
@media (prefers-reduced-motion: reduce) {
  .scene__video { display: none; }
}

/* Vignette: the room is glimpsed, not displayed */
.scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 90% at 50% 40%,
      rgba(5, 2, 4, 0.18) 0%,
      rgba(5, 2, 4, 0.55) 62%,
      rgba(5, 2, 4, 0.93) 100%),
    linear-gradient(to top,
      rgba(5, 2, 4, 0.85) 0%,
      rgba(5, 2, 4, 0.15) 30%);
}

/* --- Stage: sign block centered, footer pinned to the bottom --- */
.stage {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space);
}

.sign {
  margin-top: auto; /* with .foot's margin-top:auto, centers the sign block */
  display: grid;
  justify-items: center;
  font-weight: 400;
}

.sign__script {
  font-family: var(--font-script);
  font-size: var(--size-script);
  line-height: 1;
  transform: rotate(-5deg);
  margin-bottom: -0.35em; /* script overlaps the caps like a mounted sign */
  z-index: 1;
}

.sign__caps {
  font-family: var(--font-tube);
  font-size: var(--size-caps);
  line-height: 0.92;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-wrap: balance;
}

.soon {
  font-family: var(--font-script);
  font-size: var(--size-soon);
  line-height: 1.1;
  margin-top: calc(var(--space) * 0.75);
  transform: rotate(-3deg);
}

.whisper {
  margin-top: calc(var(--space) * 1.5);
  font-family: var(--font-machine);
  font-size: var(--size-whisper);
  letter-spacing: 0.08em;
  color: var(--amber);
  opacity: 0.85;
}

/* --- Footer --- */
.foot {
  margin-top: auto;
  padding-top: var(--space);
  padding-bottom: calc(var(--space) * 0.5);
  font-family: var(--font-machine);
  font-size: var(--size-fine);
  color: var(--amber-dim);
}
.foot a { text-underline-offset: 3px; }

/* Very short viewports (landscape phones): tighten the stack */
@media (max-height: 480px) {
  .sign__script { margin-bottom: -0.2em; }
  .soon { margin-top: 0.25rem; }
  .whisper { margin-top: 0.75rem; }
}
