/*
  Home intro video: "What is Mount Up Media?"
  A static block that sits in normal flow between Beat 01 and Beat 02 of the
  story film. It is not a .film-beat, so film.js never pins or scrubs it.
  Tokens per DESIGN.md. Fonts are the three already loaded by index.html.
  Facade pattern: poster + play control, the Vimeo iframe mounts on click.
*/

.film-intro {
  position: relative;
  z-index: 3;
  background: #0B0B0C;
  color: #F4F1EC;
  padding: clamp(96px, 11vw, 168px) clamp(24px, 6vw, 96px);
  border-top: 1px solid rgba(244, 241, 236, 0.14);
  border-bottom: 1px solid rgba(244, 241, 236, 0.14);
  overflow: hidden;
}

.film-intro__inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.film-intro__head {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: clamp(32px, 5vw, 88px);
  align-items: end;
  margin-bottom: clamp(36px, 4.4vw, 64px);
}

.film-intro__eyebrow {
  grid-column: 1 / -1;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.66);
  margin: 0 0 28px;
}

.film-intro__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0;
  margin: 0;
  white-space: nowrap;
}
.film-intro__keep { white-space: nowrap; }

.film-intro__body {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 400;
  line-height: 1.55;
  margin: 0;
  max-width: 44ch;
  justify-self: end;
  padding-bottom: 0.5em;
  color: rgba(244, 241, 236, 0.92);
}

/* 16:9 frame. On short desktop viewports the frame narrows so the whole
   player stays on screen under the fixed nav. */
.film-intro__frame {
  position: relative;
  width: min(100%, calc((100vh - 168px) * 16 / 9));
  width: min(100%, calc((100svh - 168px) * 16 / 9));
  min-width: min(100%, 560px);
  aspect-ratio: 16 / 9;
  background: #2A2A2D;
  border: 1px solid rgba(244, 241, 236, 0.14);
  overflow: hidden;
}

.film-intro__play {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: #F4F1EC;
  text-decoration: none;
  cursor: pointer;
}

.film-intro__poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.film-intro__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 12, 0) 45%, rgba(11, 11, 12, 0.72) 100%);
  pointer-events: none;
}

/* Play control sits bottom left so it never covers the subject's face. */
.film-intro__control {
  position: absolute;
  left: clamp(16px, 2.6vw, 36px);
  bottom: clamp(16px, 2.6vw, 36px);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 24px 0 20px;
  background: #C8332A;
  border: 1px solid #C8332A;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: #F4F1EC;
  transition: background 360ms cubic-bezier(0.22, 1, 0.36, 1), border-color 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.film-intro__icon {
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #F4F1EC;
}

.film-intro__meta {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.78);
  padding-left: 14px;
  border-left: 1px solid rgba(244, 241, 236, 0.28);
}

.film-intro__play:hover .film-intro__poster,
.film-intro__play:focus-visible .film-intro__poster { opacity: 1; }
.film-intro__play:hover .film-intro__control,
.film-intro__play:focus-visible .film-intro__control { background: #A62A22; border-color: #A62A22; }
.film-intro__play:focus-visible { outline: 2px solid #C8332A; outline-offset: -4px; }

.film-intro__iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0B0B0C;
}

@media (max-width: 900px) {
  .film-intro { padding: 96px 24px; }
  .film-intro__head { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .film-intro__title { white-space: normal; }
  .film-intro__body { justify-self: start; padding-bottom: 0; }
  .film-intro__frame { width: 100%; min-width: 0; }
  .film-intro__control { min-height: 48px; padding: 0 18px 0 16px; gap: 12px; }
}

@media (max-width: 420px) {
  .film-intro__meta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .film-intro__poster,
  .film-intro__control { transition: none; }
}
