/* The film (18 October): a still frame with one play button, played in place (film.js). It
   sits in the statement, under the paragraph and above the stats, so the hero keeps one
   action, the waitlist. The frame spans the statement's width, like the stats under it. */
.film-section { padding-top: 72px; }
.statement .film-stage { max-width: none; }
.film-section .learn-heading { margin-bottom: 40px; }
.film-stage {
  position: relative; max-width: 1080px; margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 28px; background: #fbf4e4; box-shadow: inset 0 0 0 2px var(--ink, #151719), 0 30px 60px -34px rgba(21, 23, 25, .45);
}
/* The video is always shown, with the still as its poster: iPhone only goes full screen for a
   video that's visible when it starts, so hiding it until then cost a second tap. */
.film-stage video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: #fbf4e4; }
.film-stage video::cue { font: 500 20px/1.35 var(--body, Geist, Arial, sans-serif); background: rgba(15, 16, 18, .8); }
/* The ink outline stays on top of the picture. */
.film-stage::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--ink, #151719); pointer-events: none; }
.film-stage.is-playing > .film-btn { display: none; }
.film-stage:not(.is-playing) video { cursor: pointer; }
/* Full screen (phones and tablets, or the controls' button): the whole frame, letterboxed. */
.film-stage video:fullscreen { object-fit: contain; border-radius: 0; background: #000; }
.film-stage video:-webkit-full-screen { object-fit: contain; border-radius: 0; background: #000; }
.film-stage > a.film-btn { text-decoration: none; }

.film-btn { display: inline-flex; align-items: center; gap: 12px; padding: 8px 22px 8px 8px; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font: 600 18px/1 var(--body, Geist, Arial, sans-serif); color: var(--ink, #151719); background: #fffdf6;
  box-shadow: 0 14px 30px rgba(21, 23, 25, .18), inset 0 0 0 1.5px var(--ink, #151719); }
.film-stage > .film-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; }
.film-play { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--marker, #ffdc3e);
  box-shadow: inset 0 0 0 2px var(--ink, #151719); transition: transform .2s ease; }
.film-play svg { width: 19px; height: 19px; margin-left: 3px; fill: var(--ink, #151719); }
.film-len { font-weight: 400; font-size: .85em; color: var(--ink-2, #62635e); }
/* Hover only where there's a pointer that hovers, so a tap on a phone is just a tap. */
@media (hover: hover) {
  .film-btn:hover .film-play { transform: scale(1.08); }
  .film-btn:hover .film-label { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
}
.film-btn:focus-visible, .film-end button:focus-visible { outline: 3px solid var(--blue, #1f4ff5); outline-offset: 4px; }

/* When it ends: the way to get Pluck, over the middle of the last frame (clear of the controls). */
.film-end { display: none; }
.film-stage.is-ended .film-end {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; display: flex; align-items: center; gap: 22px;
  padding: 10px 10px 10px 24px; border-radius: 999px; background: #fffdf6; white-space: nowrap;
  box-shadow: 0 14px 30px rgba(21, 23, 25, .2), inset 0 0 0 1.5px var(--ink, #151719);
}
.film-end p { margin: 0; font-size: 16px; color: var(--ink-2, #4a4b47); }
.film-end p strong { color: var(--ink, #151719); font-weight: 600; }
.film-end div { display: flex; align-items: center; gap: 16px; }
.film-end .btn { font-size: 15px; padding: 12px 20px; border-radius: 999px; }
.film-again { padding: 0 10px 0 0; border: 0; background: none; color: var(--ink, #151719); cursor: pointer;
  font: 500 15px/1 var(--body, Geist, Arial, sans-serif); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 700px) {
  .film-section { padding-top: 48px; }
  .film-section .learn-heading { margin-bottom: 26px; padding: 0; }
  .film-stage { border-radius: 18px; }
  .film-btn { gap: 10px; padding: 6px 15px 6px 6px; font-size: 15px; }
  .film-play { width: 38px; height: 38px; }
  .film-play svg { width: 15px; height: 15px; }
  .film-stage video::cue { font-size: 14px; }
  /* Too narrow for the pill: the ending note sits under the frame instead. */
  .film-stage.is-ended { overflow: visible; margin-bottom: 120px; }
  .film-stage.is-ended .film-end { top: calc(100% + 14px); transform: translateX(-50%); flex-direction: column; gap: 10px; width: 100%; padding: 0; background: none; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .film-play { transition: none; } .film-btn:hover .film-play { transform: none; } }
