/* Homepage promo film. Loaded only on the home page. */

.home .stage:has(.stage-film) {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header, 5.5rem) + 1.15rem) 0 2.75rem;
}

.home .stage:has(.stage-film) .sculpture {
  display: none;
}

.stage-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 1.12fr);
  grid-template-areas:
    "intro film"
    "rest  film";
  column-gap: 2.75rem;
  row-gap: 1.15rem;
  align-items: center;
}

.stage-intro { grid-area: intro; align-self: end; min-width: 0; }
.stage-film { grid-area: film; align-self: center; min-width: 0; }
.stage-copy-rest { grid-area: rest; align-self: start; min-width: 0; }

.home .stage:has(.stage-film) .stage-copy,
.home .stage:has(.stage-film) .stage-intro,
.home .stage:has(.stage-film) .stage-copy-rest {
  max-width: none;
}

.home .stage:has(.stage-film) h1 {
  font-size: clamp(2.45rem, 4.15vw, 4.35rem);
  max-width: 14ch;
  margin: 0.25rem 0 0;
  letter-spacing: -0.04em;
}

.home .stage:has(.stage-film) .vision {
  margin: 0 0 0.85rem;
}

.home .stage:has(.stage-film) .lede {
  font-size: 1.08rem;
  max-width: 36rem;
}

.hero-film-frame {
  margin: 0;
  padding: 0.55rem 0.55rem 0.5rem;
  background: #071221;
  border: 1px solid rgba(194, 160, 97, 0.62);
  box-shadow:
    0 0 0 1px rgba(11, 27, 51, 0.4),
    0 28px 64px -24px rgba(0, 0, 0, 0.72);
}

.hero-film-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  height: auto;
  background: #0b1b33;
  overflow: hidden;
}

.hero-film-box video.hero-film {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b1b33;
}

.hero-film-sound,
.hero-film-play {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.8rem 1.25rem;
  border: 0;
  border-radius: 2px;
  background: var(--paper, #f3f0e8);
  color: var(--ink, #0b1b33);
  font-family: var(--sans, "Instrument Sans", sans-serif);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.55);
}

.hero-film-sound:hover,
.hero-film-play:hover {
  background: #fff;
}

.hero-film-sound:focus-visible,
.hero-film-play:focus-visible {
  outline: 2px solid var(--gold, #c2a061);
  outline-offset: 3px;
}

.hero-film-sound[hidden],
.hero-film-play[hidden] {
  display: none !important;
}

.hero-film-sound svg,
.hero-film-play svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .home .stage:has(.stage-film) {
    min-height: 0;
    align-items: stretch;
    padding-top: calc(var(--header, 5.5rem) + 1rem);
    padding-bottom: 2.25rem;
  }

  .stage-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "film"
      "rest";
    row-gap: 1.05rem;
  }

  .stage-intro,
  .stage-film,
  .stage-copy-rest { align-self: stretch; }

  .home .stage:has(.stage-film) h1 {
    font-size: clamp(2.15rem, 8vw, 3.15rem);
    max-width: none;
  }
}

/* Keep the H1, film controls and "Tap for sound" clear of the
   Paris launcher (3.5rem + 0.85rem) in the bottom-right at 390px. */
.hero-film-box video.hero-film::-webkit-media-controls-panel {
  opacity: 1 !important;
}

@media (max-width: 430px) {
  .home .stage:has(.stage-film) {
    padding-bottom: calc(5.35rem + env(safe-area-inset-bottom, 0px));
  }

  .home .stage-copy-rest {
    padding-right: 4.6rem;
    box-sizing: border-box;
  }

  .hero-film-box {
    max-height: calc(100svh - var(--header, 5.5rem) - 12.5rem);
  }

  .hero-film-sound,
  .hero-film-play {
    padding: 0.7rem 1.05rem;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-film-sound,
  .hero-film-play {
    transition: none;
  }
}

/* About page placement (16 Nov 2026): the film moved here from the homepage. */
.about-film { padding-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: 0; }
.about-film .hero-film-frame { max-width: 980px; margin: 0 auto; }
.about-film .about-film-note { max-width: 980px; margin: 0.75rem auto 0; font-size: 0.9rem; color: var(--graphite, #34454f); }
@media (max-width: 430px) {
  .about-film .about-film-note { padding-right: 4.6rem; }
}
