/* The industry films (November 15, owner: "i want that film to be in the hero of that trade landing section like
   surplusos marketing site repo has done and use clean native player like surplusos").
   A button in the hero opens the page's film in a lightbox with the site's own player: play, scrub, time, mute, full
   screen, and nothing else. The player is adapted from the SurplusOS marketing site's (read only there), in this
   site's tokens and without a framework. The films are recordings of a white UI, so the controls float on their own
   dark glass. A phone held upright plays the tall cut. */

/* The hero button: this site's quiet button with a play mark. */
.film-open svg{flex:none;width:10px;height:11px;margin-left:1px}
/* Beside Start free trial on one line at every width: two words and a mark never wrap. */
.actions .button.film-open{white-space:nowrap}
@media (max-width:360px){.actions:has(>.film-open) .button{padding-inline:10px}.actions .button.film-open{gap:6px}}

/* The lightbox. Above the header (50) and the chat (70). */
html.film-on{overflow:hidden}
.film-box{position:fixed;inset:0;z-index:4000;display:grid;place-items:center;padding:24px;background:rgb(0 0 0 / .78);
  -webkit-backdrop-filter:blur(18px) saturate(140%);backdrop-filter:blur(18px) saturate(140%);animation:film-in .25s ease both}
@keyframes film-in{from{opacity:0}}
@keyframes film-rise{from{opacity:0;transform:translateY(18px) scale(.985)}}
.film-close{position:fixed;top:20px;right:20px;z-index:2;display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid rgb(255 255 255 / .22);border-radius:50%;
  background:rgb(255 255 255 / .1);color:#fff;cursor:pointer;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);transition:transform .2s ease,background-color .2s ease}
.film-close:hover{transform:scale(1.08);background:rgb(255 255 255 / .18)}
.film-close:focus-visible{outline:2px solid #fff;outline-offset:3px}
.film-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}

/* The player. Wide: as large as the window allows, up to 1120px. Tall: the phone's height. */
.vp{position:relative;width:min(1120px,100%,calc((100vh - 96px) * 16 / 9));width:min(1120px,100%,calc((100dvh - 96px) * 16 / 9));border-radius:16px;overflow:hidden;background:#000;box-shadow:0 40px 120px rgb(0 0 0 / .6);
  animation:film-rise .32s cubic-bezier(.2,.8,.2,1) both;color:#fff;font-family:var(--font);-webkit-tap-highlight-color:transparent}
.vp video{display:block;width:100%;height:auto;aspect-ratio:16 / 9;background:#fff;cursor:pointer}
.film-box.is-tall{padding:12px}
.film-box.is-tall .vp{width:min(calc(100vw - 24px),calc((100vh - 24px) * 9 / 16));width:min(calc(100vw - 24px),calc((100dvh - 24px) * 9 / 16))}
.film-box.is-tall .vp video{aspect-ratio:9 / 16}
.film-box.is-tall .film-close{top:22px;right:22px;background:rgb(0 0 0 / .45)}
.vp:fullscreen{display:grid;place-items:center;width:100%;height:100%;border-radius:0}
.vp:fullscreen video{width:auto;height:auto;max-width:100vw;max-height:100vh}

/* A large centre button while paused, the way a poster invites a play. Ink on these films' white frames, where a
   white button would disappear. */
.vp-big{position:absolute;left:50%;top:50%;display:grid;place-items:center;width:84px;height:84px;padding:0 0 0 5px;border:0;border-radius:50%;background:rgb(17 17 17 / .92);color:#fff;
  box-shadow:0 12px 40px rgb(0 0 0 / .28);cursor:pointer;transform:translate(-50%,-50%);transition:transform .26s cubic-bezier(.16,1,.3,1),background-color .2s ease}
.vp-big:hover{background:#111;transform:translate(-50%,-50%) scale(1.06)}
.vp-big:focus-visible{outline:2px solid #111;outline-offset:4px}
.vp-big svg{width:26px;height:30px}
.vp-big[hidden]{display:none}

/* The end. Every film closes on the logo card with its lower third empty, so the page's own button goes there, in the
   card's ink, with Watch again beside it. The controls step aside until the film plays again. */
.vp-end{position:absolute;inset:auto 0 max(20%,64px);display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;padding:0 12px;animation:film-rise .45s cubic-bezier(.2,.8,.2,1) both}
.vp-end[hidden]{display:none}
.vp-go,.vp-again{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 22px;border:0;border-radius:999px;font:500 15px/1.2 var(--font);text-decoration:none;white-space:nowrap;cursor:pointer;transition:background-color .16s ease}
.vp-go{background:#111;color:#fff}
.vp-go:hover{background:#2b2b2b}
.vp-again{padding:0 16px;background:transparent;color:#111}
.vp-again:hover{background:rgb(0 0 0 / .06)}
.vp-go:focus-visible,.vp-again:focus-visible{outline:2px solid #111;outline-offset:3px}
.film-box.is-tall .vp-end{inset:66% 0 auto;flex-direction:column;gap:4px}
@media (max-height:480px){.vp-end{bottom:44px}.vp-go,.vp-again{min-height:36px;font-size:14px}}

/* The controls: one floating glass capsule, as a Mac's own player draws them. A gradient scrim suits dark footage; on
   these white films it reads as a smudge, so the controls carry their own surface and cover as little as they can.
   One row on a wide player: play, time, track, sound, full screen. On a narrow one the track takes its own row. */
.vp-bar{position:absolute;left:50%;bottom:14px;display:flex;align-items:center;gap:2px;width:min(720px,calc(100% - 28px));padding:5px 8px;border-radius:16px;background:rgb(22 22 22 / .8);
  box-shadow:0 10px 34px rgb(0 0 0 / .22),inset 0 0 0 1px rgb(255 255 255 / .1);-webkit-backdrop-filter:blur(24px) saturate(170%);backdrop-filter:blur(24px) saturate(170%);
  opacity:0;transform:translate(-50%,8px);pointer-events:none;transition:opacity .26s ease,transform .26s cubic-bezier(.16,1,.3,1)}
.vp-awake .vp-bar{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.vp-track{position:relative;display:flex;flex:1;align-items:center;min-width:0;height:34px;margin:0 10px 0 12px;cursor:pointer;touch-action:none}
.vp-track::before{content:'';position:absolute;inset:auto 0;height:3px;border-radius:2px;background:rgb(255 255 255 / .22)}
.vp-buf,.vp-fill{position:absolute;left:0;height:3px;border-radius:2px}
.vp-buf{background:rgb(255 255 255 / .34)}
.vp-fill{background:#fff}
.vp-knob{position:absolute;width:13px;height:13px;border-radius:50%;background:#fff;box-shadow:0 1px 6px rgb(0 0 0 / .5);transform:translateX(-50%) scale(.85);transition:transform .16s ease}
.vp-track:hover .vp-knob,.vp-track:focus-visible .vp-knob{transform:translateX(-50%) scale(1.15)}
.vp-track:hover::before,.vp-track:hover .vp-fill,.vp-track:hover .vp-buf{height:5px}
.vp-track:focus-visible{outline:2px solid #fff;outline-offset:-4px;border-radius:8px}
.vp-btn{display:grid;flex:none;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:11px;background:transparent;color:#fff;cursor:pointer;transition:background-color .16s ease}
.vp-btn:hover{background:rgb(255 255 255 / .14)}
.vp-btn:focus-visible{outline:2px solid #fff;outline-offset:-2px}
.vp-btn svg{display:block}
.vp-time{flex:none;margin-left:6px;color:rgb(255 255 255 / .92);font-size:13px;font-variant-numeric:tabular-nums;letter-spacing:.01em;white-space:nowrap}
.vp-time i{margin:0 2px;color:rgb(255 255 255 / .42);font-style:normal}
.film-box.is-tall .vp-bar{flex-wrap:wrap;bottom:10px;width:calc(100% - 20px);padding:4px 6px 5px}
.film-box.is-tall .vp-track{order:-1;flex:0 0 calc(100% - 24px);height:28px;margin:0 12px}
.film-box.is-tall .vp-time{margin-right:auto}
.film-box.is-tall .vp-btn{width:40px;height:40px}
@media (max-width:560px){.vp-bar{flex-wrap:wrap;bottom:10px;width:calc(100% - 20px);padding:4px 6px 5px}.vp-track{order:-1;flex:0 0 calc(100% - 24px);height:28px;margin:0 12px}.vp-time{margin-right:auto}.vp-btn{width:40px;height:40px}}
@media (max-width:640px){.film-box{padding:12px}.film-close{top:14px;right:14px}.vp{border-radius:14px}.vp-big{width:68px;height:68px}.vp-big svg{width:21px;height:24px}}
@media (prefers-reduced-motion:reduce){.film-box,.vp,.vp-end{animation:none}.vp-bar,.vp-big,.vp-knob,.film-close{transition:none}}
