/* film.css: /film ("About the film"). Every block is placed absolutely, with the same rules as the
   live Framer page (read from its page code, 31 Oct 2026): fixed pixel offsets from the left,
   tops as a percentage of the section height, and text blocks centred on a line with
   translateY(-50%). Desktop numbers first; the phone design (used below 1200px, tablets included,
   as live) at the end of each section. */

.fm { position: relative; }
.fm-narrow-br { display: none; }
.fm-narrow { display: none; }

/* ---------- 1. Hero: looping mountain video, title, question ---------- */
.fm-hero { position: relative; height: 494px; overflow: hidden; background: #000; }
.fm-hero-video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.fm-hero-logo { position: absolute; left: 79px; top: 71px; width: 519px; height: 253px; object-fit: contain; }
.fm-hero-text { position: absolute; left: 90px; top: 324px; width: 518px; font: 400 24px/1.2 var(--sans); color: var(--white); }
.fm-hero-logo-narrow { display: none; }

.fm-gap { height: 365px; background: var(--white); }

/* ---------- 2. The story (4 chapters, trailer, quote) ---------- */
.fm-story { position: relative; height: 4525px; background: var(--white); }
.fm-story > * { position: absolute; z-index: 1; }
.fm-title { left: 78px; top: -270px; width: 877px; font: 400 65px/80px var(--sans); letter-spacing: -3px; color: rgb(5, 5, 13); font-feature-settings: "ss02", "salt"; }
.fm-copy { font: 300 25px/30px var(--sans); color: #000; }
.fm-copy b { font-weight: 400; }                 /* live sets bold words in Poppins Regular */
.fm-copy p + p { margin-top: 30px; }             /* the empty line between paragraphs */
.fm-intro-1 { left: 77px; top: 3%; width: 531px; transform: translateY(-50%); }
.fm-intro-2 { left: 647px; top: 3%; width: 487px; transform: translateY(-50%); }
.fm-watch { left: 50%; bottom: 820px; transform: translateX(-50%); font: 400 24px/28.8px var(--mono); color: var(--gold); white-space: pre; }

/* each chapter: a white block with the yellow label, a photo and the text */
.fm-chapter { width: 100%; background: var(--white); overflow: hidden; }
.fm-chapter > * { position: absolute; z-index: 1; }
.fm-label { font: 400 24px/28.8px var(--mono); color: var(--gold); white-space: pre; }
.fm-label b { font-weight: 700; }
.fm-photo { object-fit: cover; }

.fm-ch1 { left: calc(49.9167% - 49.9583%); top: calc(15.7919% - 423px); height: 846px; }
.fm-ch1 .fm-label { left: 78px; top: 63px; }
.fm-ch1 .fm-photo { left: 647px; top: 63px; width: 451px; height: calc(100% - 135px); object-position: 28.9% 16.4%; }
.fm-ch1 .fm-copy { left: 79px; top: 54%; width: 400px; transform: translateY(-50%); }

.fm-ch2 { left: calc(50% - 49.875%); top: calc(34.9774% - 411px); height: 822px; }
.fm-ch2 .fm-label { left: 645px; top: 46px; }
.fm-ch2 .fm-photo { left: 78px; top: calc(48.2968% - 335.5px); width: 450px; height: 671px; }
.fm-ch2 .fm-copy { left: 646px; top: 52%; width: 400px; transform: translateY(-50%); }

.fm-ch3 { left: 0; top: calc(52.5566% - 366.5px); height: 733px; }
.fm-ch3 .fm-label { left: 79px; top: 11px; }
.fm-ch3 .fm-photo { left: 640px; top: calc(50.2046% - 342.5px); width: 450px; height: 685px; object-fit: contain; }
.fm-ch3 .fm-copy { left: 75px; top: 54%; width: 400px; transform: translateY(-50%); }

.fm-ch4 { left: 0; right: 1px; width: auto; top: 2777px; bottom: 873px; }
.fm-ch4 .fm-label { left: 640px; top: 45px; }
.fm-ch4 .fm-photo { left: 75px; top: calc(46.4% - 360.5px); width: 450px; height: 721px; object-position: 67.1% 49.4%; }
.fm-ch4 .fm-copy { left: 640px; top: 50%; width: 425px; transform: translateY(-50%); }

/* the trailer (YouTube thumbnail; a click swaps in the player) */
.fm-yt { left: calc(50% - 424px); bottom: 295px; width: 848px; height: 475px; overflow: hidden; cursor: pointer; background: #000; }
.fm-yt img { width: 100%; height: 100%; object-fit: cover; }
.fm-yt button { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; transform: translate(-50%, -50%); }
.fm-yt svg { display: block; width: 100%; height: 100%; }
.fm-yt .yt-bg { fill: #212121; fill-opacity: 0.8; transition: fill .1s cubic-bezier(0.4, 0, 1, 1), fill-opacity .1s cubic-bezier(0.4, 0, 1, 1); }
.fm-yt:hover .yt-bg { fill: #f00; fill-opacity: 1; }
.fm-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.fm-quote { left: 50%; bottom: 137px; width: 600px; max-width: 100%; transform: translateX(-50%); margin: 0;
  font: 400 32px/1 "Inter Variable", "Inter", sans-serif; letter-spacing: -0.03em; color: #000; text-align: center; text-wrap: balance;
  font-variation-settings: "opsz" 32, "wght" 700; font-feature-settings: "cv01", "cv09", "cv11", "cv05", "ss03"; }

/* the heading fades in from a blur when it comes into view (film.js adds .is-waiting first) */
.fm-title { transition: opacity .4s cubic-bezier(0.25, 1, 0.5, 1), filter .4s cubic-bezier(0.25, 1, 0.5, 1), translate .4s cubic-bezier(0.25, 1, 0.5, 1); }
.fm-title.is-waiting { opacity: 0.001; filter: blur(10px); translate: 0 10px; }
@media (prefers-reduced-motion: reduce) { .fm-title { transition: none; } }

/* ---------- 3. Credits and sign-up ---------- */
.fm-end { position: relative; height: 1709px; overflow: hidden; }
.fm-end-bg img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.fm-end-fade { position: absolute; left: 0; top: 0; width: 100%; height: 311px; object-fit: cover; }
.fm-credits { position: absolute; left: 0; right: 0; top: 6px; height: 910px; }
.fm-credits > * { position: absolute; }
.fm-credits-fade { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.fm-director { left: 50%; top: 67px; transform: translateX(-50%); font: 400 24px/28.8px var(--mono); color: var(--white); white-space: pre; }
.fm-cast { left: calc(50% - 559px); top: 147px; width: 1118px; height: 92px; display: flex; align-items: center; justify-content: center; gap: 92px; overflow: clip; }
.fm-cast p { flex: none; font: 700 21px/25.2px var(--mono); color: var(--white); text-align: center; white-space: pre; }
.fm-end-logo { left: calc(51.25% - 357.5px); top: calc(50.8791% - 163px); width: 715px; height: 326px; object-fit: contain; }
.fm-streaming { left: 50%; bottom: 168px; transform: translateX(-50%); font: 400 50px/60px var(--sans); color: var(--white); white-space: pre; }
.fm-join { position: absolute; left: 50%; bottom: 620px; transform: translateX(-50%); font: 400 24px/28.8px var(--mono); color: var(--white); text-align: center; white-space: pre; }
.fm-join b, .fm-director b { font-weight: 700; }
.fm-form { position: absolute; left: 50%; top: 1121px; width: 465px; transform: translateX(-50%); }
.fm-form .consent { width: 427px; margin: 13.4px 0 0 -1px; }   /* live keeps the consent box just under the form */

/* ================= Phone design (below 1200px; tablets get it too, as live) ================= */
@media (max-width: 1199.98px) {
  .fm-narrow-br { display: inline; }
  .fm-narrow { display: block; }

  .fm-hero-logo { display: none; }
  .fm-hero-text { left: 27px; top: 333px; width: 312px; font-size: 20px; }
  .fm-hero-logo-narrow { display: block; position: absolute; z-index: 1; left: 20px; top: 49px; width: 310px; height: 198px; object-fit: contain; }

  .fm-story { height: 8365px; }
  .fm-title { left: 20px; top: -288px; width: 350px; font-size: 44px; line-height: 48px; }
  .fm-intro-1 { left: 20px; top: 80px; width: 326px; transform: none; }
  .fm-intro-2 { left: 20px; top: 395px; width: 326px; transform: none; }
  .fm-watch { bottom: 738px; }
  .fm-chapter .fm-copy { top: auto; transform: none; }
  .fm-chapter .fm-photo { left: 0; width: 100%; }

  .fm-ch1 { left: 0; top: 701px; height: 1634px; }
  .fm-ch1 .fm-label { left: 20px; top: 42px; }
  .fm-ch1 .fm-photo { top: 112px; height: 705px; object-position: 28.6% 12.3%; }
  .fm-ch1 .fm-copy { left: 20px; bottom: 13px; width: 340px; }

  .fm-ch2 { left: auto; right: 1px; top: 2335px; height: 1695px; }
  .fm-ch2 .fm-label { left: 20px; top: 68px; }
  .fm-ch2 .fm-photo { top: 135px; }
  .fm-ch2 .fm-copy { left: 20px; bottom: 77px; width: 340px; }

  .fm-ch3 { left: auto; right: 0; top: auto; bottom: 2624px; height: 1721px; }
  .fm-ch3 .fm-label { left: 19px; top: 31px; }
  .fm-ch3 .fm-photo { top: 147px; height: 681px; }
  .fm-ch3 .fm-copy { left: 20px; bottom: 88px; width: 340px; }

  .fm-ch4 { right: 0; top: 5681px; bottom: 850px; }
  .fm-ch4 .fm-label { left: 20px; top: 76px; }
  .fm-ch4 .fm-photo { left: -1px; width: calc(100% + 1px); top: 160px; height: 757px; object-position: 62.4% 43.8%; }
  .fm-ch4 .fm-copy { left: 29px; bottom: 82px; width: 331px; }

  .fm-yt { left: calc(48.9744% - 182px); bottom: 488px; width: 364px; height: 205px; }
  .fm-quote { left: 0; bottom: 187px; transform: none; }

  .fm-end { height: 1220px; }
  .fm-credits { top: 20px; height: 626px; }
  .fm-director { top: 47px; font-size: 18px; line-height: 21.6px; }
  .fm-director b { font-weight: 400; }          /* live phone design: not bold */
  .fm-cast { left: -16px; right: -15px; width: auto; top: 52px; gap: 12px; }
  .fm-cast p { font-size: 10px; line-height: 12px; }
  .fm-end-logo { left: calc(50% - 174px); top: 132px; width: 348px; height: 212px; }
  .fm-streaming { left: calc(50% - 174px); top: 341px; bottom: auto; width: 348px; height: 60px; transform: none; font-size: 26px; line-height: 31.2px; text-align: center; white-space: normal; }
  .fm-join { bottom: 443px; width: 332px; font-size: 18px; line-height: 21.6px; white-space: pre-wrap; }   /* pre-wrap as live: the space before the line break counts when centring */
  .fm-form { top: 765.1px; width: 304px; }
  .fm-form .consent { width: auto; margin: 0; }
}
/* the title on the video sits in a box that is shorter on tablets (live: 198px tall at 810-1199, 253px on phones) */
@media (max-width: 809.98px) {
  .fm-hero-logo-narrow { height: 253px; }
}
