/* One curved strip: all three exposures, separators and film edges share one native clock and one bend. */
.inspiration-stage button.inspiration-prop[data-source="reel"] {
  --edge-air:4px;
  /* The old strip already grazed the right edge. Keep the three windows intact:
     buy the slight shift from the paper-side gutter, not by clipping the film. */
  --film-nudge:clamp(9px,1.5vw,24px);
  --strip-ideal:clamp(154px,min(38vw,64vh),552px);
  --film-row:min(30.9%,calc(var(--stock-y) - var(--strip-ideal)*.179));
  /* Where the right edge of the tilted note meets the bottom of this strip.
     Take whichever is farther right: the two-thirds target or the safe gutter. */
  --paper-rail:calc(var(--stock-x) + var(--stock-width)*.501 + 5px + var(--film-nudge)
                   + clamp(-20px,(var(--screen)*.309 + var(--strip-ideal)*.179 - var(--stock-y))*tan(-1 * var(--stock-angle)),0px));
  --strip-width:min(var(--strip-ideal),calc(100% - var(--paper-rail) - var(--edge-air)));
  --spot-x:clamp(calc(var(--paper-rail) + var(--strip-width)*.5),calc(66.667% + var(--film-nudge)),calc(100% - var(--strip-width)*.5 - var(--edge-air)));
  --spot-y:var(--film-row);
  display:block;width:var(--strip-width);aspect-ratio:1408/504;
  min-width:0;min-height:0;padding:0;border:0;background:none;
  border-radius:0;appearance:none;overflow:visible;touch-action:manipulation;
  cursor:pointer;isolation:isolate;
}
.inspiration-stage button[data-source="reel"][aria-disabled="true"] {cursor:default;}

.film-silhouette,.film-edge-matte { position:absolute; inset:0; display:block; pointer-events:none; }
.film-edge-matte { visibility:hidden; }
[data-source="reel"]:is([data-film-aligned],[data-projecting]) .film-silhouette { clip-path:url(#oe-film-contour); }
[data-source="reel"]:is([data-film-aligned],[data-projecting]) .film-edge-matte { visibility:visible; clip-path:url(#oe-film-rim-matte); }
.film-edge-matte::before { content:""; position:absolute; inset:-13% 0; background:#14110e; }
.film-ribbon { position:absolute; inset:0; display:block; filter:url(#oe-film-bend); pointer-events:none; }
.film-curvature-definitions { position:absolute; inset:0 auto auto 0; width:0; height:0; overflow:hidden; pointer-events:none; }
.inspiration-prop[data-source="reel"] :is(.film-stock,.film-projection) {
  position:absolute; inset:0; width:100%; height:100%; display:block; object-fit:contain;
  pointer-events:none;user-select:none;
}
.inspiration-stage .inspiration-prop[data-source="reel"] .film-stock,
.inspiration-stage .inspiration-prop[data-source="reel"]:hover .film-stock {
  filter:grayscale(.88) brightness(.76);
  transition:filter .13s ease-out;
}
.inspiration-stage .inspiration-prop[data-source="reel"][data-film-lit] .film-stock {
  filter:grayscale(0) brightness(1);
}
@media (prefers-reduced-motion:reduce) {
  .inspiration-stage .inspiration-prop[data-source="reel"] .film-stock,
  .inspiration-stage .inspiration-prop[data-source="reel"]:hover .film-stock {transition:none;}
}
html[data-cloud-motion="off"] .inspiration-stage .inspiration-prop[data-source="reel"] .film-stock,
html[data-cloud-motion="off"] .inspiration-stage .inspiration-prop[data-source="reel"]:hover .film-stock {transition:none;}
.inspiration-prop[data-source="reel"] .film-projection {opacity:0;}
.inspiration-prop[data-source="reel"][data-projecting] .film-projection {opacity:1;}
.inspiration-prop[data-source="reel"][data-projecting] .film-stock {opacity:0;}
@media (max-aspect-ratio:17/20) {
  .inspiration-stage button.inspiration-prop[data-source="reel"] {
    /* Reserve the whole right-opening book spread before sizing the film. */
    --portrait-book:calc(clamp(48px,18vw,84px) * 1.38);
    --portrait-book-edge:calc(max(13.1vw,var(--portrait-book)*.73 + 3px) + var(--portrait-book)*1.32);
    --strip-width:min(clamp(148px,51vw,267px),calc(100vw - var(--portrait-book-edge) - 16px));
    --spot-x:calc(100% - var(--strip-width)*.5 - 3px);
    --spot-y:min(34.7%,calc(var(--stock-y) - var(--stock-width)*.708 - var(--strip-width)*.31 - 9px));
  }
}
@media (max-height:460px) and (min-aspect-ratio:5/4) {
  .inspiration-stage button.inspiration-prop[data-source="reel"] {--strip-ideal:clamp(146px,40vh,183px);}
}
