/* "Peek" button v2 on the Creator slideshow: links to /films/ */
.peek{position:absolute;z-index:40;top:calc(var(--header,90px) + 22px);right:var(--gutter);display:block;text-decoration:none;-webkit-tap-highlight-color:transparent;animation:peek-bob 3.4s ease-in-out infinite}
.peek-pill{display:flex;align-items:center;gap:14px;padding:9px 10px 9px 9px;border-radius:999px;background:#f0eee8;color:#070707;box-shadow:0 14px 34px rgba(0,0,0,.5),inset 0 -4px 0 rgba(0,0,0,.08);transform:rotate(-4deg);transition:background .3s,color .3s,transform .45s cubic-bezier(.3,1.6,.5,1);animation:peek-wiggle 6s ease-in-out 1.5s infinite}

/* Face */
.peek-face{position:relative;flex:none;width:58px;height:58px;border-radius:50%;background:#254be8;transition:background .3s,transform .45s cubic-bezier(.3,1.6,.5,1)}
.peek-eye{position:absolute;top:14px;width:19px;height:19px;border-radius:50%;background:#fff;overflow:hidden;animation:peek-blink 4.2s infinite}
.peek-eye--l{left:9px}.peek-eye--r{right:9px;animation-delay:.05s}
.peek-pupil{position:absolute;left:50%;top:50%;width:9px;height:9px;margin:-4.5px 0 0 -4.5px;border-radius:50%;background:#070707;transform:translate(var(--px,0px),var(--py,0px));transition:transform .12s ease-out,opacity .2s}
.peek-pupil::after{content:"";position:absolute;left:1.5px;top:1.5px;width:2.5px;height:2.5px;border-radius:50%;background:#fff}
.peek-mouth{position:absolute;left:50%;bottom:11px;width:14px;height:7px;margin-left:-7px;border:2.5px solid #fff;border-top:0;border-radius:0 0 14px 14px;transition:width .35s cubic-bezier(.3,1.6,.5,1),height .35s,margin .35s,background .3s}

/* Words */
.peek-text{display:flex;flex-direction:column;gap:4px;padding-right:4px;min-width:0}
.peek-small{position:relative;height:16px;overflow:hidden;font:500 13px/16px var(--sans,Arial,sans-serif);color:#58564f;transition:color .3s}
.peek-line{display:block;white-space:nowrap;transition:transform .45s cubic-bezier(.3,1.4,.5,1),opacity .3s}
.peek-line.is-out{transform:translateY(-110%);opacity:0}
.peek-line.is-in{transform:translateY(110%);opacity:0}
.peek-line+.peek-line{position:absolute;left:0;top:0}
.peek-hover-line{display:none}
.peek-big{font:400 22px/1 var(--serif,Georgia,serif);letter-spacing:-.01em;white-space:nowrap}

/* Arrow */
.peek-arrow{flex:none;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#070707;color:#f0eee8;font:500 20px/1 var(--sans,Arial,sans-serif);transition:background .3s,color .3s}
.peek-arrow span{display:block;animation:peek-nudge 2.4s ease-in-out infinite}

/* Hover / focus: goes blue, grins, says yes */
.peek:hover .peek-pill,.peek:focus-visible .peek-pill{background:#254be8;color:#fff;transform:rotate(2deg) scale(1.06);animation:none}
.peek:hover .peek-face,.peek:focus-visible .peek-face{background:#f0eee8;transform:rotate(-10deg)}
.peek:hover .peek-eye,.peek:focus-visible .peek-eye{animation:none;height:10px;margin-top:4px;border-radius:19px 19px 0 0;background:#070707}
.peek:hover .peek-pupil,.peek:focus-visible .peek-pupil{opacity:0}
.peek:hover .peek-mouth,.peek:focus-visible .peek-mouth{width:26px;height:13px;margin-left:-13px;background:#070707;border-color:#070707}
.peek:hover .peek-small,.peek:focus-visible .peek-small{color:rgba(255,255,255,.85)}
.peek:hover .peek-line,.peek:focus-visible .peek-line{display:none}
.peek:hover .peek-hover-line,.peek:focus-visible .peek-hover-line{display:block}
.peek:hover .peek-arrow,.peek:focus-visible .peek-arrow{background:#f0eee8;color:#254be8}
.peek:hover .peek-arrow span,.peek:focus-visible .peek-arrow span{animation:peek-go .7s ease-in-out infinite}
.peek:active .peek-pill{transform:rotate(-2deg) scale(.95)}
.peek:focus-visible{outline:none}
.peek:focus-visible .peek-pill{box-shadow:0 0 0 3px #070707,0 0 0 5px #f0eee8}
.peek.is-leaving .peek-pill{transform:translateX(30px) rotate(6deg) scale(1.05);opacity:0;transition:transform .4s ease-in,opacity .4s ease-in}

@keyframes peek-bob{0%,100%{translate:0 0}50%{translate:0 -6px}}
@keyframes peek-blink{0%,92%,100%{height:19px;margin-top:0}95%{height:2px;margin-top:8px}}
@keyframes peek-wiggle{0%,80%,100%{transform:rotate(-4deg)}84%{transform:rotate(-10deg)}88%{transform:rotate(3deg)}92%{transform:rotate(-7deg)}96%{transform:rotate(-3deg)}}
@keyframes peek-nudge{0%,70%,100%{transform:translateX(0)}80%{transform:translateX(5px)}90%{transform:translateX(-1px)}}
@keyframes peek-go{0%{transform:translateX(-4px)}50%{transform:translateX(5px)}100%{transform:translateX(-4px)}}

/* When the slideshow becomes a plain list (phones/touch), sit above the cards instead of over them */
.peek.peek--inline{position:relative;top:auto;right:auto;width:fit-content;margin:calc(16svh + 12px) var(--gutter) 40px auto}

@media (max-width:700px){
 .peek-pill{gap:11px;padding:7px 8px 7px 7px}
 .peek-face{width:50px;height:50px}
 .peek-eye{top:12px;width:17px;height:17px}.peek-eye--l{left:7px}.peek-eye--r{right:7px}
 .peek-mouth{bottom:9px}
 .peek-big{font-size:19px}
 .peek-small{font-size:12px}
 .peek-arrow{width:40px;height:40px;font-size:18px}
}
@media (prefers-reduced-motion:reduce){.peek,.peek-pill,.peek-eye,.peek-arrow span{animation:none!important}.peek-line{transition:none}}
html.motion-paused .peek,html.motion-paused .peek-pill,html.motion-paused .peek-eye,html.motion-paused .peek-arrow span{animation-play-state:paused}
