/* The trailer is the first screen: a black stage fixed to the visible screen, which the page
   slides over as visitors scroll. On iPhone, Safari colours its status bar and toolbar from a black
   element fixed at those edges, so they turn black and the film ends above the toolbar. */
.bakery-page{--hero-top:100vh}
html{background:#000}
.trailer{position:relative;height:var(--hero-top);background:#000}
.trailer-stage{position:fixed;top:0;left:0;width:100%;height:100vh;height:100dvh;background:#000;color:#fff}
/* Once the trailer is scrolled past, the stage is hidden so Safari's bars follow the page again. */
.trailer.is-away .trailer-stage,.trailer.is-away .trailer-edge{visibility:hidden}
/* A black strip just below the screen's bottom edge, under Safari's toolbar, brings the black toolbar
   back when a visitor returns to the trailer from further down. */
.trailer-edge{position:fixed;left:0;right:0;bottom:-80px;z-index:70;height:80px;background:#000;pointer-events:none}
/* Taps land on a plain layer over the film: Safari takes its bar colour from what sits at the screen
   edge, and a video there would show through the bars instead of black. */
.trailer-video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.trailer-surface{position:absolute;inset:0;cursor:pointer}
.trailer-controls{position:absolute;right:max(24px,env(safe-area-inset-right,0px));bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:1;display:flex;gap:10px}
.trailer-button,.trailer-next{display:grid;place-items:center;color:#ffffffe6;transition:color .2s ease}
.trailer-button{width:44px;height:44px;padding:0;border-radius:50%;background:#0003}
.trailer-button svg{width:20px;height:20px}
.trailer-next{position:absolute;left:50%;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:1;width:44px;height:44px;margin-left:-22px}
.trailer-next svg{width:28px;height:28px;animation:trailer-nudge 2.6s ease-in-out infinite}
@media(hover:hover){.trailer-button:hover,.trailer-next:hover{color:#ffd77d}}
.creative-page .trailer :focus-visible{outline:2px solid #fff;outline-offset:3px}
.trailer .when-paused,.trailer .when-sound,.trailer.is-paused .when-playing,.trailer.has-sound .when-muted{display:none}
.trailer.is-paused .when-paused,.trailer.has-sound .when-sound{display:block}
@keyframes trailer-nudge{0%,100%{transform:none}50%{transform:translateY(5px)}}
