/* The Film page (founder 2026-11-23): the Sajter page's parts (sajter.css) plus what is its own here. */

/* the opening: the lead, then the four kinds of film as two-by-two cards, each window playing one of ours */
.is-film .fm-open { padding-top: 0; }
.is-film .fm-lead { max-width: 40em; margin: 0 auto; text-align: center; }
.is-film .fm-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: calc(72 * var(--px)); }
.is-film .fm-kinds .vi__vis { height: calc(460 * var(--px)); min-height: 240px; }
.fm-kind__text { margin: calc(12 * var(--px)) calc(26 * var(--ux)) 0; max-width: 30em; font-size: max(15px, calc(17 * var(--px))); line-height: 1.5; color: rgba(0, 0, 0, 0.6); }
.fm-kind__case { margin: calc(22 * var(--px)) calc(26 * var(--ux)) 0; padding-top: calc(16 * var(--px)); border-top: 1px solid rgba(0, 0, 0, 0.09); font-size: max(13px, calc(15 * var(--px))); color: rgba(0, 0, 0, 0.45); }

/* the short clips: three vertical windows side by side on the dark ground */
.fm-reels { display: flex; justify-content: center; gap: calc(14 * var(--ux)); padding: calc(26 * var(--px)) 18px; }
.fm-reel { position: relative; height: 100%; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 14px; background: #1a1a1c; }

.is-film .fm-inc { padding-top: calc(260 * var(--px)); }

/* film into ads: a dark panel, the text left, one film in its three formats right, at one height, captions under */
.fm-ads { padding: calc(260 * var(--px)) var(--side-r) 0 var(--side-l); }
.fm-ads__panel { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: calc(64 * var(--ux)); align-items: end; padding: calc(64 * var(--px)) calc(64 * var(--ux)); border-radius: 28px; background: #0b0b0c; color: #fff; }
.fm-ads__text { align-self: center; }
.fm-ads__text .sq { margin-inline: 0; text-align: left; color: #fff; }
.fm-ads__text .slead { max-width: 30em; margin-inline: 0; text-align: left; color: rgba(255, 255, 255, 0.72); }
.fm-ads__ask { margin-top: calc(34 * var(--px)); font-size: max(15px, calc(17 * var(--px))); }
.fm-fmt { display: flex; align-items: flex-start; gap: calc(14 * var(--ux)); }
.fm-fmt__item { margin: 0; min-width: 0; }
.fm-fmt__item--wide { flex: 1.7778 1 0; }
.fm-fmt__item--tall { flex: 0.5625 1 0; }
.fm-fmt__item--square { flex: 1 1 0; }
.fm-fmt__win { position: relative; overflow: hidden; border-radius: 14px; background: #1a1a1c; }
.fm-fmt__item--wide .fm-fmt__win { aspect-ratio: 16 / 9; }
.fm-fmt__item--tall .fm-fmt__win { aspect-ratio: 9 / 16; }
.fm-fmt__item--square .fm-fmt__win { aspect-ratio: 1; }
.fm-fmt figcaption { display: grid; gap: 2px; margin-top: 12px; font-size: max(13px, calc(15 * var(--px))); line-height: 1.35; color: rgba(255, 255, 255, 0.55); }
.fm-fmt figcaption b { font-weight: 400; color: #fff; }

@media (max-width: 1100px) {
  .is-film .fm-inc, .fm-ads { padding-top: 150px; }
  .is-film .fm-kinds { margin-top: 40px; gap: 14px; }
  .is-film .fm-kinds .vi__vis { height: 300px; }
  .fm-ads__panel { grid-template-columns: minmax(0, 1fr); row-gap: 40px; padding: 40px 28px; }
}
@media (max-width: 720px) {
  .is-film .fm-inc, .fm-ads { padding-top: 112px; }
  .is-film .fm-kinds { grid-template-columns: minmax(0, 1fr); }
  .is-film .fm-kinds .vi__vis { height: 240px; }
  .fm-kind__text, .fm-kind__case { margin-inline: 22px; }
  .fm-reels { gap: 8px; padding: 16px 12px; }
  .fm-ads__panel { margin-inline: -8px; padding: 32px 22px; border-radius: 22px; }
  /* on a phone: the wide format on its own row, the tall and the square side by side under it */
  .fm-fmt { display: grid; grid-template-columns: 0.5625fr 1fr; align-items: start; gap: 12px; }
  .fm-fmt__item--wide { grid-column: 1 / -1; }
}
