/**
 * Film look for the testimonial videos: a soft, slightly cool picture with fine grain.
 * Chosen in the film look tool on 17 November 2026; these values are the model for the
 * real videos. The filter goes on the video, the layers lie on top of it in this order
 * (the container isolates them, so they blend with the video only):
 *
 *   soft      multiply     warm white 12%     calms the highlights
 *   tint      soft-light   cool blue 10.8%    the cool cast
 *   vignette  normal       dark edge 17.4%    darker corners
 *   grain     overlay      noise 5.4%         film grain, a new position 12 times a second
 *
 * The "lift" layer of the tool (matte blacks, screen) is 0 in this look and left out.
 * Grain tile: images/website/film-grain.png (256 px, shown at 358 px).
 */
.film-look {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--bs-black);
}

.film-look video {
    filter: brightness(1.008) contrast(.976) saturate(.95) blur(.13px);
}

.film-look__layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.film-look__soft {
    background: var(--film-soft);
    opacity: .12;
    mix-blend-mode: multiply;
}

.film-look__tint {
    background: var(--film-tint);
    opacity: .108;
    mix-blend-mode: soft-light;
}

.film-look__vignette {
    background: radial-gradient(ellipse at center, transparent 55%, var(--film-vignette-edge) 130%);
}

.film-look__grain {
    background-image: url('../images/website/film-grain.png');
    background-size: 358px;
    opacity: .054;
    mix-blend-mode: overlay;
    animation: film-grain 1s step-end infinite;
}

@keyframes film-grain {
    0%      { background-position: 0 0; }
    8.33%   { background-position: -117px 64px; }
    16.66%  { background-position: 83px -201px; }
    25%     { background-position: -239px 147px; }
    33.33%  { background-position: 171px 29px; }
    41.66%  { background-position: -45px -173px; }
    50%     { background-position: 222px 98px; }
    58.33%  { background-position: -163px -52px; }
    66.66%  { background-position: 31px 233px; }
    75%     { background-position: -201px -119px; }
    83.33%  { background-position: 108px 187px; }
    91.66%  { background-position: -71px 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .film-look__grain { animation: none; }
}
