/* v771 — "Choose a project" showcase.
   The studio scene and the two screens are a Blender render; the real site
   screenshots are placed on the screens afterwards, so they stay sharp. */
section.showcase{padding:0;position:relative;overflow:hidden;background:#c9ad97;color:#1b1815;scroll-margin-top:0}
.showcase .sc-stage{position:relative;width:100%;aspect-ratio:2000/1250}
.showcase .sc-base{position:absolute;inset:0;display:block}
.showcase .sc-base img{display:block;width:100%;height:100%;object-fit:cover}
/* screen layers, placed on the glass of each tablet (percent of the 2000x1250 scene) */
.showcase .sc-scr{position:absolute;inset:0;visibility:hidden;pointer-events:none;z-index:1}
.showcase .sc-scr.is-on{visibility:visible}
.showcase .sc-scr.is-enter{z-index:3}
.showcase .sc-scr.is-leave{z-index:2}
.showcase .sc-scr img{position:absolute;display:block;height:auto;max-width:none}
.showcase .sc-scr .f{left:46%;top:43.12%;width:39.75%}
.showcase .sc-scr .b{left:64.7%;top:27.36%;width:34%}
/* "switch on": a soft top-down wipe with a brief bright flash, front first */
.showcase .sc-scr.is-enter img{
  -webkit-mask-image:linear-gradient(to bottom,#000 0,#000 42%,transparent 58%,transparent 100%);
          mask-image:linear-gradient(to bottom,#000 0,#000 42%,transparent 58%,transparent 100%);
  -webkit-mask-size:100% 260%;mask-size:100% 260%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  animation:scOn .82s cubic-bezier(.3,.7,.2,1) both}
.showcase .sc-scr.is-enter .b{animation-delay:.2s}
.showcase .sc-scr.is-leave img{animation:scOff .9s ease both}
.showcase .sc-scr.is-leave .b{animation-delay:.2s}
@keyframes scOn{
  0%{-webkit-mask-position:0 100%;mask-position:0 100%;filter:brightness(1.7) saturate(.5)}
  70%{filter:brightness(1.12) saturate(.9)}
  100%{-webkit-mask-position:0 0;mask-position:0 0;filter:none}}
@keyframes scOff{0%{filter:none}100%{filter:brightness(.55) saturate(.7)}}
.showcase .sc-copy{position:absolute;left:6.6vw;top:50%;transform:translateY(-52%);width:clamp(300px,28vw,460px)}
.showcase h2{font-size:clamp(30px,2.9vw,48px);line-height:1.05;letter-spacing:-.04em;font-weight:650;color:#1b1815}
.showcase h2 em.s{color:#9a4517;letter-spacing:-.02em}
.showcase .sc-list{list-style:none;margin:clamp(18px,1.8vw,28px) 0 0;padding:0;border-top:1.5px solid rgba(27,24,21,.78)}
.showcase .sc-item{display:grid;grid-template-columns:44px 1fr auto;align-items:baseline;gap:0 6px;width:100%;padding:15px 0;border:0;border-bottom:1px solid rgba(27,24,21,.2);
  background:none;font:inherit;text-align:left;color:rgba(27,24,21,.52);cursor:pointer;transition:color .3s ease,padding .3s ease}
.showcase .sc-item .n{font-family:var(--serif);font-style:italic;font-size:17px}
.showcase .sc-item b{font-size:clamp(20px,1.7vw,25px);font-weight:600;letter-spacing:-.03em;transition:font-size .3s ease}
.showcase .sc-item small{font-size:14px}
.showcase .sc-item:hover{color:#1b1815}
.showcase .sc-item:focus-visible{outline:2px solid #9a4517;outline-offset:3px}
.showcase .sc-item.is-on{color:#1b1815;padding:20px 0;cursor:default}
.showcase .sc-item.is-on b{font-size:clamp(28px,2.7vw,40px);font-weight:650;letter-spacing:-.04em}
.showcase .sc-item.is-on .n{color:#9a4517}
.showcase .sc-item.is-on small{color:#3a2f27}
.showcase .sc-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 26px;margin-top:clamp(22px,2.1vw,32px)}
.showcase .sc-actions .btn{height:52px;font-size:16px;padding:0 8px 0 24px;box-shadow:0 16px 28px -16px rgba(40,20,5,.8)}
.showcase .sc-actions .btn .arr{width:36px;height:36px}
.showcase .sc-visit{font-size:16px;font-weight:500;color:#1b1815;border-bottom:1.5px solid #9a4517;padding-bottom:4px}
.showcase .sc-visit span{color:#9a4517;margin-left:4px}

/* phones and tablets: list on top, the screens below */
@media (max-width:900px){
  section.showcase{display:flex;flex-direction:column}
  .showcase .sc-copy{order:1;position:static;transform:none;width:auto;padding:96px 22px 6px}
  .showcase .sc-stage{order:2;aspect-ratio:1170/910;margin-top:-4vw;
    -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 16%);mask-image:linear-gradient(to bottom,transparent 0,#000 16%)}
  .showcase h2{font-size:34px}
  .showcase .sc-scr .f{left:7.692%;top:32.857%;width:67.949%}
  .showcase .sc-scr .b{left:39.658%;top:11.209%;width:58.12%}
  .showcase .sc-item b{font-size:21px}.showcase .sc-item.is-on b{font-size:30px}
}
@media (prefers-reduced-motion:reduce){.showcase .sc-item,.showcase .sc-item b{transition:none}.showcase .sc-scr img{animation:none!important}}

/* v772 — showcase replaces the portfolio book inside "Selected work" */
#work{padding-bottom:56px}
#work .head{margin-bottom:0}
#work-projects{padding-top:72px}
@media (max-width:900px){#work{padding-bottom:36px}#work-projects{padding-top:48px}}

/* v774 — third project has a long name: two tidy lines, label underneath */
.showcase .sc-item[data-p="pc"] b{white-space:normal;line-height:1.08;max-width:15.5ch}
.showcase .sc-item[data-p="pc"] small{grid-column:2/-1;margin-top:6px}
.showcase .sc-item[data-p="pc"].is-on b{font-size:clamp(26px,2.4vw,36px)}
@media (max-width:900px){.showcase .sc-item[data-p="pc"].is-on b{font-size:27px}}

/* v775 — "Explore project" lands with the project title clear of the fixed nav */
.proj h3[id^="proj-"]{scroll-margin-top:150px}
@media (max-width:900px){.proj h3[id^="proj-"]{scroll-margin-top:120px}}
