/* Standalone film landing: Group 761 (1710 × 1106) and Group 760 (409 × 883). */
* {
    box-sizing: border-box;
}
html {
    color-scheme: dark;
    background: #30350d;
}
body {
    margin: 0;
    background: url(../assets/w_video-background.svg?v=0e7eee4f) center / 100% 100% no-repeat;
    color: #f8ffac;
    font-family: "Outfit", system-ui, sans-serif;
}
.film-landing {
    /* --ui-u: the reference unit for the button. --film-u: the cover's unit, as tall as the window allows. */
    --pad: 20px;
    --gap: 20px;
    --ui-u: min(1px, calc(100svh / 1106), calc(100vw / 1710));
    --btn-h: calc(50 * var(--ui-u));
    --film-u: min(calc((100svh - 2 * var(--pad) - var(--gap) - var(--btn-h)) / 598), calc((100vw - 2 * var(--pad)) / 336));
    display: flex;
    min-height: 100svh;
    align-items: center;
    justify-content: center;
    padding: var(--pad);
}
.film-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap);
}
.film-cover {
    position: relative;
    width: calc(336 * var(--film-u));
    aspect-ratio: 336 / 598;
    border-radius: calc(20 * var(--film-u));
    overflow: hidden;
    box-shadow: calc(4 * var(--film-u)) calc(6 * var(--film-u)) calc(3 * var(--film-u)) #00000040;
}
.film-video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: #000;
    --media-object-fit: contain;
}
/* at the end, the player's replay button moves up into the last frame's empty band (under "for yourself."), off the text */
.film-video.is-ended::part(center play button) {
    translate: 0 calc(-130 * var(--film-u));
}
.film-poster {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}
.film-brand {
    position: absolute;
    top: 41.11524%;
    left: 50%;
    width: calc(113.433 * var(--film-u));
    height: auto;
    transform: translateX(-50%);
}
.film-play {
    position: absolute;
    top: 57.94314%;
    left: calc(50% - var(--film-u));
    display: grid;
    place-items: center;
    width: calc(55 * var(--film-u));
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background:
        linear-gradient(#292d19, #292d19) padding-box,
        linear-gradient(140deg, #fffce5, #97996a 45%, #292d19 70%, #b1b281) border-box;
    transform: translateX(-50%);
    opacity: 1;
    cursor: pointer;
}
.film-play:hover {
    filter: brightness(1.15);
}
.film-play:focus-visible {
    outline: 2px solid #f8ffac;
    outline-offset: 5px;
}
.film-play:disabled {
    cursor: progress;
}
.film-play.is-loading svg {
    visibility: hidden;
}
.film-play.is-loading::after {
    content: "";
    position: absolute;
    width: 45%;
    aspect-ratio: 1;
    border: 2px solid #f8ffac44;
    border-top-color: #f8ffac;
    border-radius: 50%;
    animation: film-loading 0.8s linear infinite;
}
.film-play svg {
    width: calc(20 * var(--film-u));
    height: calc(22 * var(--film-u));
    margin-left: calc(4 * var(--film-u));
    fill: #b5b5b5;
}
.film-website {
    display: grid;
    place-items: center;
    width: calc(164 * var(--ui-u));
    height: var(--btn-h);
    padding: 0 calc(12 * var(--ui-u));
    border-radius: calc(15 * var(--ui-u));
    border: 1px solid transparent;
    background:
        linear-gradient(110deg, #85894e, #8a8d52) padding-box,
        linear-gradient(120deg, #fffdec, #cdd29a 45%, #9fa65c) border-box;
    color: #f8ffac;
    font-size: calc(18.333 * var(--ui-u));
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: filter 180ms ease;
}
.film-website:hover {
    filter: brightness(1.1);
}
.film-website:focus-visible {
    outline: 2px solid #f8ffac;
    outline-offset: 5px;
}
/* Try Live Demo: takes no room until the film reaches 95%. Then weddings-video.js gives it its place in one frame and
   animates only transforms (FLIP): it scales and fades in while Visit Website slides from its old spot to the right. */
.film-actions {
    display: flex;
    justify-content: center;
}
.film-demo {
    display: none;
    width: auto;
    min-width: calc(164 * var(--ui-u));
    margin-right: var(--gap);
    padding-inline: calc(22 * var(--ui-u));
    white-space: nowrap;
    background: #f8ffac;
    color: #30350d;
    transform-origin: right center;
    transition:
        opacity 600ms cubic-bezier(0.65, 0, 0.35, 1),
        scale 700ms cubic-bezier(0.65, 0, 0.35, 1),
        filter 180ms ease;
}
.film-demo.is-shown {
    display: grid;
}
.film-demo.is-entering {
    opacity: 0;
    scale: 0.6;
}
.film-demo:focus-visible {
    outline-color: #f8ffac;
}
.film-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.film-error,
.film-direct {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    margin: 0;
    padding: 10px;
    border-radius: 8px;
    background: #1b1e0ee6;
    color: #f8ffac;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
}
.film-cover [hidden] {
    display: none;
}
@keyframes film-loading {
    to {
        transform: rotate(360deg);
    }
}
@media (max-width: 860px) {
    .film-landing {
        --pad: 10px;
        --gap: 10px;
        --ui-u: min(1.2px, calc(100vw / 409), calc(100svh / 883));
        --btn-h: max(44px, calc(50 * var(--ui-u)));
    }
    .film-play {
        min-width: 44px;
    }
    .film-website {
        min-width: 140px;
        font-size: max(14px, calc(18.333 * var(--ui-u)));
    }
    .film-demo {
        min-width: 140px;
        padding-inline: 16px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .film-website,
    .film-demo {
        transition: none;
    }
    .film-play.is-loading::after {
        animation: none;
    }
}
