/* The film on the Founder's Vision page (founders-vision.html only; to-B 068, design D "contained box", 3 Dec 2026).
   Loaded after founders-vision.css. Measures are the design's, in px at the default text size. */

/* ---- the section: the closing strip's colour, so the two read as one surface; the box sits in the page's own .container ---- */
.fv-film { padding-block: 72px; background: var(--lavender-light); font-family: var(--font-body); }
.fv-film + .fv-thanks { border-top-color: transparent; }      /* no gold line between the two; its 1px stays, nothing moves */
.fv-film__box { position: relative; overflow: hidden; overflow: clip; padding: 40px 48px; border-radius: 24px; background: linear-gradient(180deg, #2E2159 0%, #3A2A66 45%, #4A3884 100%); box-shadow: 0 24px 60px rgba(58, 42, 102, 0.20); text-align: center; color: var(--white); }
@media (min-width: 70rem) { .fv-film__box { padding: 56px 140px 52px; } }      /* from 1120px the content column has its full width */
@media (max-width: 47.49rem) {      /* under 760px: the phone */
  .fv-film { padding-block: 40px; }
  .fv-film__box { padding: 32px 16px 28px; border-radius: 18px; }
}
.fv-film__inner { position: relative; z-index: 1; }

/* Chinese: the design's font stacks; no added letter-spacing; taller small lines */
.fv-film:lang(zh) { --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; --font-head: "Lora", "Noto Serif SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
.fv-film [data-story-lang="zh"] { letter-spacing: 0; line-height: 1.5; }
.fv-film__title [data-story-lang="zh"] { line-height: inherit; }
.fv-film .zh-keep { white-space: nowrap; }      /* a line break only between the title's two halves */

/* ---- decoration, behind everything, clipped by the box ---- */
.fv-film__decor, .fv-film__decor > * { position: absolute; pointer-events: none; }
.fv-film__decor { top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; }      /* cut off here already, so the box has nothing to scroll to in browsers without overflow: clip */
.fv-film__glow { border-radius: 50%; }
.fv-film__glow--top { top: -300px; left: -300px; width: 760px; height: 760px; background: radial-gradient(circle, rgba(196, 176, 240, 0.24) 0%, rgba(196, 176, 240, 0.09) 40%, rgba(196, 176, 240, 0) 72%); }
.fv-film__glow--left, .fv-film__glow--right { bottom: -260px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(201, 184, 240, 0.40) 0%, rgba(201, 184, 240, 0) 68%); }
.fv-film__glow--left { left: -180px; }
.fv-film__glow--right { right: -180px; }
.fv-film__lav { bottom: -30px; width: auto; max-width: none; height: 150px; opacity: 0.48; transform-origin: 50% 100%; }
@media (min-width: 70rem) { .fv-film__lav { height: 230px; } }      /* the tall pair only beside the wide margins */
@media (max-width: 47.49rem) { .fv-film__lav { height: 100px; opacity: 0.4; } }
.fv-film__lav--right { right: -34px; transform: rotate(14deg); }
.fv-film__lav--left { left: -34px; transform: scaleX(-1) rotate(14deg); }
@media (max-width: 24.5rem) { .fv-film__lav--left { left: -46px; } .fv-film__lav--right { right: -46px; } }      /* clear of the credits on the narrowest phones */

/* ---- label, title, rule ---- */
.fv-film__label { margin: 0; max-width: none; font-size: 0.75rem; font-weight: 600; line-height: 1.5; letter-spacing: 0.24em; text-transform: uppercase; color: #E2C277; }
.fv-film__title { margin: 12px 0 0; font-family: var(--font-head); font-size: 2.25rem; font-weight: 600; line-height: 1.15; color: var(--white); }
.fv-film__title::after { content: ""; display: block; width: 48px; height: 2px; margin: 20px auto 0; background: #B0851C; }

/* ---- the player: 16:9 from the start, so nothing moves when the film arrives ---- */
.fv-film__player { max-width: 800px; margin: 32px auto 0; }
.fv-film__stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: rgb(18, 12, 38); box-shadow: 0 0 0 1px rgba(217, 180, 90, 0.40), 0 30px 70px rgba(16, 8, 40, 0.50); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.fv-film__stage iframe, .fv-film__stage video, .fv-film__cover, .fv-film__img, .fv-film__shade { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; border: 0; }
.fv-film__stage video { background: #000; object-fit: contain; }
.fv-film__stage iframe:focus-visible, .fv-film__stage video:focus-visible { outline: 3px solid #E2C277; outline-offset: -3px; }
.fv-film__img { object-fit: cover; }
.fv-film__shade { background: linear-gradient(180deg, rgba(20, 10, 40, 0.24) 0%, rgba(20, 10, 40, 0) 30%, rgba(20, 10, 40, 0) 60%, rgba(20, 10, 40, 0.30) 100%); }
/* the glass button, low enough to leave the title on the picture free */
.fv-film__btn { position: absolute; top: 78%; left: 50%; box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; margin: -34px 0 0 -34px; padding: 0; border: 1.5px solid rgba(226, 194, 119, 0.85); border-radius: 50%; background: rgba(46, 33, 89, 0.60); color: var(--white); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 24px rgba(10, 5, 30, 0.35); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.fv-film__btn svg { width: 50%; height: 50%; }
.fv-film__btn:hover, .fv-film__btn:focus-visible { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(196, 176, 240, 0.18), 0 0 40px rgba(196, 176, 240, 0.45); }
.fv-film__btn:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; }
.fv-film__stage[aria-busy="true"] .fv-film__btn { opacity: 0.75; cursor: progress; }
.fv-film__time { position: absolute; right: 16px; bottom: 14px; padding: 3px 9px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 8px; background: linear-gradient(rgba(20, 10, 40, 0.30), rgba(20, 10, 40, 0.30)), rgba(255, 255, 255, 0.16); font-size: 0.8125rem; font-weight: 600; line-height: 1.5; color: var(--white); }

/* ---- credits ---- */
.fv-film__credits { display: inline-flex; align-items: baseline; justify-content: center; margin: 24px 0 0; padding: 10px 26px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; background: rgba(36, 24, 69, 0.30); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); list-style: none; }
.fv-film__credits li { margin: 0; max-width: none; line-height: 1.5; white-space: nowrap; }
.fv-film__credits li + li::before { content: "\00B7"; margin: 0 14px; font-weight: 700; color: #E2C277; }
.fv-film__role { margin-inline-end: 0.2em; font-size: 0.65625rem; letter-spacing: 0.12em; text-transform: uppercase; color: #EDE6FB; }
.fv-film__name { white-space: nowrap; font-size: 0.8125rem; font-weight: 600; color: var(--white); }
@media (max-width: 59.99rem) {      /* under 960px the three credits no longer fit on one line */
  .fv-film__credits { display: table; margin-inline: auto; border-radius: 16px; }
  .fv-film__credits li { white-space: normal; }
  .fv-film__credits li + li { margin-top: 4px; }
  .fv-film__credits li + li::before { content: none; }
}
@media (max-width: 47.49rem) {
  .fv-film__title { font-size: 1.625rem; }
  .fv-film__player { margin-top: 24px; }
  .fv-film__stage { border-radius: 12px; }
  .fv-film__btn { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
  .fv-film__credits { padding-inline: 12px; }
}

/* ---- glass, where the browser has it ---- */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .fv-film__btn { background: rgba(46, 33, 89, 0.42); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }
  .fv-film__time { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .fv-film__credits { -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
}

/* ---- nothing could be played ---- */
.fv-film__error { position: absolute; top: 0; left: 0; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0.75rem 1.25rem; background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 100%); }
.fv-film__error p { margin: 0 0 0.75rem; max-width: 30rem; font-size: 0.9375rem; line-height: 1.4; color: var(--white); }
.fv-film__error button { flex: none; min-height: 44px; padding: 0.5rem 1.4rem; border: 0; border-radius: 999px; background: var(--white); font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--purple-deep); cursor: pointer; }
.fv-film__error button:focus-visible { outline: 3px solid #E2C277; outline-offset: 3px; }

/* ---- effects: none with reduced motion. founders-film.js adds is-below only when the section is still out of view ---- */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .fv-film__player:hover .fv-film__stage { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(217, 180, 90, 0.40), 0 38px 84px rgba(16, 8, 40, 0.62); }
}
@media screen and (prefers-reduced-motion: no-preference) {
  .fv-film__inner { transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
  .fv-film.is-below .fv-film__inner { opacity: 0; transform: translateY(16px); transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fv-film__stage, .fv-film__btn { transition: none; }
  .fv-film__btn:hover, .fv-film__btn:focus-visible { transform: none; }
}

/* The film's own link, founders-vision.html#courage-in-silence (to-A 136, 5 Dec 2026: Maggie's Perspectives card).
   The page's anchor padding is html { scroll-padding-top: 124px } (styles.css); the pinned header's real height is
   --header-h (measured by ui.js). Whatever the header's height at this width, zoom or language, the film box lands
   16px below it: the margin is the header's height minus 124px plus 16px, negative when the header is shorter (a
   negative scroll margin is allowed and pulls the box up to the header). The same id works on /zh-cn/ and every
   other language address. The player is still asked for only after the play button. */
#courage-in-silence { scroll-margin-top: calc(var(--header-h, 124px) - 124px + 16px); }
