/* Coward: the film teaser on the homepage and the film's own page */

/* the teaser (it borrows the .reel film styles) */
.film-teaser[hidden]{display:none}
.reel-kicker{display:block;margin-bottom:14px;font-family:"Lexend Tera","Helvetica Neue",Arial,sans-serif;font-size:11px;letter-spacing:.04em;color:rgba(255,255,255,.8)}
.film-teaser .reel-t,.cw-hero .reel-t{font-size:clamp(32px,6vw,96px);line-height:.95;letter-spacing:0}
.film-teaser .reel-s,.cw-hero .reel-s{margin-top:14px}
.reel-role{display:block;margin-top:6px;font-size:clamp(16px,1.3vw,19px);line-height:1.25;color:rgba(255,255,255,.75)}
.reel-role[hidden]{display:none}

/* the page */
html.cw{background:#000;scroll-snap-type:none}
.cw .ap-top{position:fixed;left:0;right:0;top:0;background:linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,0));-webkit-backdrop-filter:none;backdrop-filter:none;transition:background .35s ease}
.cw .ap-top.solid{background:rgba(0,0,0,.86);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.cw-hero .reel-t{font-size:clamp(44px,9vw,148px)}
.cw-hero .reel-cap{bottom:calc(clamp(28px,5vw,64px) + env(safe-area-inset-bottom,0px))}
.cw-status{position:absolute;inset:0;display:grid;place-items:center;margin:0;color:#a3a3a3}
.cw-status[hidden]{display:none}

.cw-sketches{background:#fff;color:#111;padding:clamp(80px,11vw,150px) 0}
.cw-photos{background:#000;color:#fff;padding:clamp(80px,11vw,150px) 0 0}
.cw-sketches[hidden],.cw-photos[hidden],.cw-block[hidden]{display:none}
.cw-h{margin:0 0 clamp(32px,4.4vw,64px);font-family:"Lexend Tera","Helvetica Neue",Arial,sans-serif;font-size:clamp(22px,3.4vw,44px);font-weight:600;line-height:1.1;letter-spacing:0;text-transform:uppercase}
.cw-block+.cw-block{margin-top:clamp(80px,10vw,140px)}
.cw-grid{--gx:clamp(16px,2.4vw,40px);list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:var(--gx);align-items:center}
@media (min-width:700px){
  .cw-grid{grid-template-columns:1fr 1fr}
  .cw-grid--feature>li:first-child{grid-column:1/-1}
}
/* sketches: equal portrait frames, three in a row on a wide screen, the last row centred */
.cw-grid--sketch{display:flex;flex-wrap:wrap;justify-content:center;gap:clamp(32px,4vw,64px) var(--gx)}
.cw-grid--sketch>li{width:100%}
@media (min-width:700px){.cw-grid--sketch>li{width:calc((100% - var(--gx)) / 2)}}
@media (min-width:1000px){.cw-grid--sketch>li{width:calc((100% - 2 * var(--gx)) / 3)}}
.cw-grid--sketch .cw-look{aspect-ratio:4/5}
.cw-grid--sketch .cw-look img{width:100%;height:100%;object-fit:contain}
.cw-grid>li.rv{opacity:0;transform:translateY(32px);transition:opacity .9s ease,transform 1.1s cubic-bezier(.2,.7,.2,1)}
.cw-grid>li.rv.in{opacity:1;transform:none}
.cw-look{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.cw-photos .cw-look{background:#111}
.cw-look img{display:block;width:100%;height:auto;opacity:0;transition:opacity .7s ease}
.cw-look img.ok{opacity:1}
.cw-look:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.cw-credit{margin:18px 0 0;font-size:16px;color:#a3a3a3}
.cw-credit[hidden]{display:none}
.cw-photos .ap-nav{margin-top:clamp(80px,10vw,140px)}

/* the large view of a sketch is white */
.apv.light{background:#fff}
.apv.light .apv-nav{color:#111}
.apv.light .apv-nav svg{filter:none}
.apv.light .apv-count{color:#555}
.apv.light .apv-x{background:rgba(0,0,0,.08);color:#111}

@media (prefers-reduced-motion: reduce){.cw-grid>li.rv{opacity:1;transform:none;transition:none}.cw-look img{transition:none}}
.cw-allwork{justify-self:end}
.cw-allwork:hover svg{transform:translateX(4px)}
/* on a narrow screen the sound button drops below the big title instead of off the edge */
.film-teaser .reel-cap,.cw-hero .reel-cap{flex-wrap:wrap;row-gap:18px}

/* extra credits under the role */
.reel-credits{display:block;font-size:clamp(16px,1.3vw,19px);line-height:1.25;color:rgba(255,255,255,.75)}
.reel-credits span{display:block;margin-top:4px}
.reel-credits[hidden]{display:none}

/* easier to read over the film: a deeper shade at the bottom, Jasmien's credit in white, the others softer */
.film-teaser::after,.cw-hero::after{height:65%;background:linear-gradient(to top,rgba(0,0,0,.8),rgba(0,0,0,.4) 55%,rgba(0,0,0,0))}
.film-teaser .reel-cap,.cw-hero .reel-cap{text-shadow:0 1px 14px rgba(0,0,0,.55)}
.film-teaser .reel-s,.cw-hero .reel-s{color:#fff}
#cowardrole,#cwrole{margin-top:10px;color:#fff}
.reel-credits .reel-role{margin-top:3px;font-size:clamp(15px,1.15vw,17px);color:rgba(255,255,255,.72)}
.film-teaser .reel-more{margin-top:22px}
