/* The how-it-works film: a 1600x900 stage scaled to its box. */
.film { position: relative; width: 100%; overflow: hidden; border-radius: 16px; background: var(--bg, #fff);
        box-shadow: 0 0 0 1px var(--hair, #e3e3e8), 0 40px 80px -40px rgba(0,0,0,.35); }
.film-fit { position: absolute; inset: 0; }
.film-stage { position: absolute; top: 0; left: 0; transform-origin: 0 0; background: #fff; overflow: hidden; }
.film-stage iframe { border: 0; display: block; pointer-events: none; background: #fff; }
.film-scene { position: absolute; inset: 0; opacity: 0; transition: opacity 450ms ease; }
.film-scene.on { opacity: 1; }
/* the browser */
/* A Chrome window (macOS, light): tab strip 42px + toolbar 46px */
.film-chrome { height: 88px; background: #dfe4ec; font: 13px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1f1f1f; }
.film-chrome .crow { display: flex; align-items: center; }
.film-chrome .tabs { height: 42px; padding: 0 8px 0 14px; align-items: flex-end; gap: 0; }
.film-chrome .lights { display: flex; gap: 8px; align-self: center; margin-right: 18px; }
.film-chrome .lights i { width: 12px; height: 12px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.18); }
.film-chrome .lights i:nth-child(1) { background: #ff5f57; } .film-chrome .lights i:nth-child(2) { background: #febc2e; } .film-chrome .lights i:nth-child(3) { background: #28c840; }
.film-chrome .tsearch { align-self: center; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; margin-right: 6px; }
.film-chrome .ic { width: 18px; height: 18px; fill: #474747; flex: none; }
.film-chrome .ctab { position: relative; display: flex; align-items: center; gap: 8px; width: 238px; height: 34px; padding: 0 10px 0 14px; margin-bottom: 0;
                     border-radius: 10px 10px 0 0; color: #3c3c3c; }
.film-chrome .ctab + .ctab::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 1px; background: #a9b0bb; }
.film-chrome .ctab.on + .ctab::before, .film-chrome .ctab.on::before { display: none; }
.film-chrome .ctab.on { background: #fff; color: #1f1f1f; z-index: 1; }
/* the flared bottom corners of the active tab */
.film-chrome .ctab.on::after { content: ""; position: absolute; left: -10px; right: -10px; bottom: 0; height: 10px; pointer-events: none;
  background: radial-gradient(circle at 0 0, transparent 9.5px, #fff 10px) left bottom / 10px 10px no-repeat,
              radial-gradient(circle at 100% 0, transparent 9.5px, #fff 10px) right bottom / 10px 10px no-repeat; }
.film-chrome .ctab img { width: 16px; height: 16px; flex: none; }
.film-chrome .ctab .tt { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12.5px; }
.film-chrome .ctab .tx { width: 16px; height: 16px; padding: 2px; border-radius: 50%; }
.film-chrome .tnew { align-self: center; width: 28px; height: 28px; margin-left: 6px; display: grid; place-items: center; border-radius: 50%; }
.film-chrome .bar { height: 46px; gap: 14px; padding: 0 12px 0 14px; background: #fff; border-bottom: 1px solid #e3e3e3; }
.film-chrome .bar > .ic { width: 20px; height: 20px; }
.film-chrome .bar > .ic.dim { fill: #b9b9b9; }
.film-chrome .omni { flex: 1; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px 0 14px; margin: 0 6px; border-radius: 17px;
                     background: #edf1f7; color: #1f1f1f; font-size: 14px; }
.film-chrome .omni .u { flex: 1; } .film-chrome .omni .p { color: #5e5e5e; }
.film-chrome .omni .ic.sm { width: 18px; height: 18px; }
.film-chrome .ext { width: 22px; height: 22px; border-radius: 6px; }
.film-chrome .prof { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 4px; border-radius: 15px; background: #e7ebf3; font-size: 13px; }
.film-chrome .prof b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #7e57c2; color: #fff; font-size: 11.5px; }
.film-browser-body { position: absolute; top: 88px; left: 0; right: 0; bottom: 0; display: flex; }
.film-jira { position: relative; overflow: hidden; flex: none; }
.film-jira iframe { transform-origin: 0 0; }
.film-side { flex: none; width: 380px; border-left: 1px solid #dadce0; background: #fff; display: flex; flex-direction: column; }
.film-side .sp-head { height: 40px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 14px; border-bottom: 1px solid #e3e3e3;
                      font: 600 13px -apple-system, BlinkMacSystemFont, sans-serif; color: #1f1f1f; }
.film-side .sp-head img { width: 18px; height: 18px; border-radius: 5px; }
.film-side .sp-head .sp { flex: 1; }
.film-side .sp-head .ic { width: 18px; height: 18px; fill: #474747; }
.film-panel { flex: none; }
.film-browser-body.off { visibility: hidden; }
/* the Studio tab slides open beside Jira, the way a new Chrome tab does */
.film-chrome .ctab.st { width: 0; padding: 0; opacity: 0; overflow: hidden; transition: width 320ms cubic-bezier(.4,0,.2,1), padding 320ms cubic-bezier(.4,0,.2,1), opacity 200ms ease; }
.film-chrome .ctab.st.open { width: 238px; padding: 0 10px 0 14px; opacity: 1; overflow: visible; }
.film-chrome .ctab.st img { border-radius: 4px; }
/* the cursor */
.film-cursor { position: absolute; top: 0; left: 0; z-index: 10; width: 30px; height: 30px; margin: -4px 0 0 -6px; pointer-events: none;
               filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.film-cursor svg { display: block; transition: transform 120ms ease; transform-origin: 20% 15%; }
.film-cursor.down svg { transform: scale(.86); }
.film-ripple { position: absolute; top: 0; left: 0; z-index: 9; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
               background: rgba(104,151,212,.35); pointer-events: none; animation: film-ripple 560ms ease-out forwards; }
@keyframes film-ripple { from { scale: .3; opacity: 1; } to { scale: 1.4; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .film-scene { transition: none; } }
