/* Case study thumbnail: a pared-down version of each case study's opening.
   The project's colour on crumpled paper, one taped photo, and the name in big type over it. */
.th{--tb:#DC9F16;--tf:#201F1C;position:relative;display:block;aspect-ratio:4/3;overflow:hidden;border-radius:18px;container-type:inline-size;isolation:isolate;
  background-color:var(--tb);background-image:url(/assets/crumple.webp?v=2);background-size:620px auto;background-blend-mode:soft-light;color:var(--tf)}
.th-lbl{position:absolute;left:6cqw;top:5.5cqw;z-index:3;font:700 clamp(8px,2.6cqw,13px)/1 var(--body,system-ui);letter-spacing:.14em;text-transform:uppercase}
.th-cut{position:absolute;right:6cqw;top:9cqw;width:44cqw;z-index:1;background:#fff;padding:1.8cqw;box-shadow:0 2.4cqw 4cqw -1cqw rgba(0,0,0,.42);transform:rotate(var(--r,3deg));transition:transform .55s cubic-bezier(.2,.8,.2,1)}
.th-cut::before{content:"";position:absolute;left:50%;top:-2.4cqw;width:30%;height:4.6cqw;transform:translateX(-50%) rotate(-3deg);background:rgba(214,196,168,.82);box-shadow:0 1px 2px rgba(0,0,0,.15)}
.th-cut img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.th-name{position:absolute;left:5cqw;right:4cqw;bottom:5cqw;z-index:2;font-family:var(--display,"Bricolage Grotesque",sans-serif);font-weight:800;font-stretch:75%;font-variation-settings:"wdth" 75;text-transform:uppercase;
  font-size:min(19cqw,calc(88cqw / (var(--len,8) * .56)));line-height:.82;letter-spacing:-.02em;transition:font-variation-settings .5s cubic-bezier(.2,.8,.2,1)}
.th-name.lc{text-transform:none}
a:hover .th-cut,a:focus-visible .th-cut,button:hover .th-cut,button:focus-visible .th-cut,.th.lift .th-cut{transform:rotate(0) translateY(-1.5cqw) scale(1.03)}
@media (prefers-reduced-motion:reduce){.th-cut,.th-name{transition:none}}
/* hold the thumbnail's look wherever it is dropped in */
.th.th{display:block!important;background-color:var(--tb)!important;background-image:url(/assets/crumple.webp?v=2)!important;background-size:620px auto!important;background-blend-mode:soft-light!important}
.th.th::before,.th.th::after{content:none!important}
.th .th-cut img{position:static!important;inset:auto!important;width:100%!important;height:auto!important;max-width:none!important;max-height:none!important;object-fit:cover!important;border:0!important;border-radius:0!important;transform:none!important;filter:none!important;box-shadow:none!important}
/* in the "Next case study" tile */
.cs2 .c-nexttile .th{grid-column:2;grid-row:1/4;align-self:center;width:100%}
@media (max-width:860px){.cs2 .c-nexttile .th{grid-column:1;grid-row:auto;margin-top:18px}}
