@font-face{font-family:"Hanken Grotesk";src:url(fonts/hanken-grotesk.woff2) format("woff2");font-weight:100 900;font-display:swap}
:root{
  --mat:#ECE5D8;--mat-light:#F6F1E7;--mat-dark:#D5CCBA;
  --paper:#F1F1F0;--ink:#23201C;--soft:#68615A;--red:#D8121F;
  --gutter:clamp(16px,3vw,44px);
  --bevel:inset 0 0 0 1px #fff,inset 2px 3px 0 1px rgba(92,80,60,.17);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:76px;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--mat);color:var(--ink);font:400 17px/1.55 "Hanken Grotesk",system-ui,sans-serif}
img{display:block;max-width:100%}
a{color:inherit}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
:focus-visible{outline:2px solid var(--red);outline-offset:3px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* a window cut in the mat: the whole page is one sheet of mount board */
.window{position:relative;background:var(--paper) url(images/paper.webp) 0 0/600px;box-shadow:var(--bevel)}
.window::after{content:"";position:absolute;inset:0;box-shadow:var(--bevel);pointer-events:none;z-index:3}

/* header */
.bar{position:sticky;top:0;z-index:20;background:var(--mat);display:flex;align-items:center;justify-content:space-between;gap:16px;height:64px;padding:0 var(--gutter)}
.bar .brand{font-size:19px;font-weight:300;letter-spacing:-.01em;text-decoration:none;white-space:nowrap}
.bar .brand span{display:inline-block;transition:opacity .25s}
.bar nav{display:flex;align-items:center;gap:clamp(14px,2.4vw,32px);font-size:15px}
.bar nav a,.bar nav button{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;white-space:nowrap}
.bar nav a:hover,.bar nav button:hover{color:var(--red)}
.bar nav [aria-current=page]{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
.count{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:6px;padding:0 5px;border-radius:50%;background:var(--red);color:#fff;font-size:12px;font-weight:600}
.count[hidden]{display:none}
.ig svg{width:20px;height:20px}

/* hero */
.hero{padding:0 var(--gutter) var(--gutter)}
.hero .window{container-type:inline-size;min-height:calc(100svh - 64px - var(--gutter));display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}
.stage{--f:min(19.6cqw,26.5svh);margin:auto;padding-top:calc(var(--f)*.56);font-size:var(--f)}
.type{position:relative}
h1{margin:0;font-weight:200;font-size:1em;line-height:.98;letter-spacing:-.045em;white-space:nowrap}
h1 span{display:block}
h1 .l2{margin-left:.0em}
.fig{position:absolute;display:block;left:calc(var(--x)*1em);top:calc(var(--y)*1em);width:calc(var(--w)*1em);z-index:2;font-size:inherit;
  filter:drop-shadow(calc(1px - var(--lx,0)*2px) calc(2px - var(--ly,0)*2px) 1.5px rgba(40,30,20,.32));
  transition:transform .28s cubic-bezier(.2,.8,.2,1),filter .6s cubic-bezier(.2,.8,.2,1)}
.fig img{width:100%}
.fig::before{content:"";position:absolute;inset:-10px}
.fig:hover{transform:translateY(-.03em) scale(1.05);z-index:4;
  filter:drop-shadow(calc(3px - var(--lx,0)*3px) calc(7px - var(--ly,0)*3px) 5px rgba(40,30,20,.26));transition:transform .28s cubic-bezier(.2,.8,.2,1),filter .28s}
.intro{display:flex;justify-content:space-between;align-items:flex-end;gap:24px 48px;flex-wrap:wrap;padding:0 clamp(18px,3.4cqw,48px) clamp(18px,2.6cqw,36px);position:relative;z-index:1}
.intro p{margin:0;max-width:32em;font-size:clamp(17px,1.6cqw,21px);line-height:1.4}
.intro small{display:block;color:var(--soft);font-size:15px;margin-top:6px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 26px;background:var(--ink);color:#fff;text-decoration:none;font-size:16px;font-weight:500;transition:background .15s}
.btn:hover{background:var(--red)}
.btn.ghost{background:none;color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.btn.ghost:hover{background:var(--ink);color:#fff}
.btn[disabled]{background:var(--mat-dark);color:var(--soft);cursor:default}

/* work */
section{padding:clamp(56px,8vw,110px) var(--gutter) 0}
.wrap{max-width:1280px;margin:0 auto}
.lede{margin:0;max-width:34em;font-size:clamp(19px,1.8vw,23px);line-height:1.42;font-weight:300}
.about .follow{margin:18px 0 0;font-size:16px;font-weight:400}
.follow a{display:inline-block;padding:10px 0;text-underline-offset:3px}
.follow a:hover{color:var(--red)}
h2{margin:0 0 clamp(28px,4vw,52px);font-weight:200;font-size:clamp(38px,5.6vw,76px);line-height:1.02;letter-spacing:-.035em}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(36px,4.6vw,64px) clamp(20px,3.6vw,52px)}
.work .frame{display:block;width:100%;aspect-ratio:var(--ratio,5/7);overflow:hidden}
.work .frame img{width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.2,.8,.2,1)}
.work .frame:hover img{transform:scale(1.07)}
.meta{display:grid;grid-template-columns:1fr auto;gap:0 12px;align-items:baseline;margin-top:14px}
.meta b{font-weight:400;font-size:18px}
.meta span{font-size:16px;font-variant-numeric:tabular-nums}
/* buying is hidden until SHOP.selling is true */
.no-sales #openCart,.no-sales .add,.no-sales #pAdd,.no-sales #pSub{display:none}
.add{grid-column:1/-1;justify-self:start;min-height:40px;font-size:15px;color:var(--soft);text-decoration:underline;text-underline-offset:3px}
.add:hover{color:var(--red)}
.add.in{color:var(--ink);text-decoration:none}
.note{grid-column:1/-1;max-width:36em;padding:0}
.note p{margin:0 0 .7em;font-size:clamp(20px,2vw,26px);line-height:1.3;font-weight:300;letter-spacing:-.01em}
.note small{color:var(--soft);font-size:15px}

/* behind the scenes */
.scenes{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:clamp(24px,5vw,72px);align-items:center}
.scenes h2{margin:0 0 clamp(16px,2vw,24px)}
.shots{display:flex;gap:clamp(10px,1.4vw,18px);align-items:flex-end}
.shots img{height:clamp(220px,28vw,380px);width:auto}

/* about */
.about{display:grid;grid-template-columns:auto minmax(0,1fr);gap:clamp(24px,5vw,72px);align-items:center}
.about h2{margin:0 0 clamp(16px,2vw,24px)}
.portrait{width:clamp(220px,26vw,340px);height:auto}
.about p{margin:0 0 1em;max-width:34em;font-size:clamp(19px,1.8vw,23px);line-height:1.42;font-weight:300}
footer{margin-top:clamp(64px,8vw,110px);padding:22px var(--gutter);display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px 24px;font-size:15px;color:var(--soft)}

/* dialogs */
dialog{border:0;padding:0;color:var(--ink);background:var(--mat);max-width:none;max-height:none}
dialog::backdrop{background:rgba(35,32,28,.55)}
.x{position:absolute;top:10px;right:10px;width:44px;height:44px;display:grid;place-items:center;font-size:26px;font-weight:200;line-height:1;z-index:5}
.x:hover{color:var(--red)}
/* the work's window: a clear Close button, top right */
.close{position:absolute;top:14px;right:14px;z-index:6;display:inline-flex;align-items:center;gap:10px;height:44px;padding:0 16px 0 18px;
  background:var(--ink);color:#fff;font-size:15px;font-weight:500;letter-spacing:.01em;box-shadow:0 2px 10px rgba(35,32,28,.18);transition:background .15s}
.close svg{width:14px;height:14px}
.close:hover{background:var(--red)}
#piece{width:min(1120px,calc(100vw - 32px));height:min(780px,calc(100dvh - 32px));margin:auto;overflow:hidden}
#piece .in{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,360px);height:100%}
.view{position:relative;padding:18px;display:flex;flex-direction:column;gap:12px;min-height:0;min-width:0}
.view .window{flex:1;min-height:0;overflow:hidden;cursor:zoom-in}
.view .window img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.thumbs{display:flex;gap:10px}
.thumbs button{width:64px;height:64px;overflow:hidden;position:relative;background:var(--paper);opacity:.72}
.thumbs button[aria-current=true]{opacity:1;box-shadow:0 0 0 2px var(--ink)}
.thumbs img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.info{padding:72px 30px 26px 12px;display:flex;flex-direction:column;overflow:auto}
.info h3{margin:0 0 6px;font-weight:200;font-size:40px;line-height:1.05;letter-spacing:-.03em}
.info .price{font-size:21px;margin:0 0 20px}
s{text-decoration-thickness:1px;color:var(--soft)}
.sold{font-style:normal;color:var(--red);margin-left:6px}
.is-sold #pAdd,.is-sold #pSub{display:none}
.info dl{margin:0 0 24px;font-size:16px}
.info dl div{display:flex;justify-content:space-between;gap:16px;padding:8px 0;border-top:1px solid var(--mat-dark)}
.info dt{color:var(--soft)}.info dd{margin:0;text-align:right}
.info .btn{width:100%}
.info .sub{margin:10px 0 0;font-size:15px;color:var(--soft)}
.info .pnote{margin:0 0 20px;padding:14px 16px;background:var(--mat-light);font-size:15px;line-height:1.45}
.info .pnote[hidden]{display:none}
.info .ask{margin-top:12px}
.no-sales .info .ask{margin-top:0;background:var(--ink);color:#fff;box-shadow:none}
.no-sales .info .ask:hover{background:var(--red)}
.info .alt[hidden]{display:none}
.info .alt a,.info .alt button{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.info .alt a:hover,.info .alt button:hover{color:var(--red)}
.step{margin-top:auto;padding-top:20px;display:flex;justify-content:space-between;font-size:15px}
.step button{min-height:44px}.step button:hover{color:var(--red)}
#cart{width:min(420px,100vw);height:100dvh;margin:0 0 0 auto;overflow:auto}
#cart[open]{animation:slide .26s cubic-bezier(.2,.8,.2,1)}
@keyframes slide{from{transform:translateX(40px);opacity:.3}}
.cart{padding:22px 24px;min-height:100%;display:flex;flex-direction:column}
.cart h3{margin:0 0 20px;font-weight:200;font-size:34px;letter-spacing:-.03em}
.line{display:grid;grid-template-columns:72px 1fr auto;gap:14px;align-items:center;padding:12px 0;border-top:1px solid var(--mat-dark)}
.line img{width:72px;aspect-ratio:var(--ratio,5/7);object-fit:cover}
.line p{margin:0;line-height:1.3}
.line button{font-size:14px;color:var(--soft);text-decoration:underline;min-height:32px}
.line button:hover{color:var(--red)}
.sum{margin-top:auto;padding-top:20px}
.sum div{display:flex;justify-content:space-between;font-size:20px;margin-bottom:14px}
.sum .btn{width:100%}
.sum p{margin:10px 0 0;font-size:15px;color:var(--soft)}

/* ---------- the digital world: the same page, on a screen instead of a sheet ---------- */
.digital{--ratio:1/1}
.digital .window{background:#F6F6F4}
.backdrop{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.backdrop i{position:absolute;inset:-8%;background:center/cover no-repeat;filter:blur(12px) saturate(.95);opacity:0;transform:scale(1.04);transition:opacity 2.8s ease,transform 9s linear}
.backdrop i.on{opacity:.58;transform:scale(1.12)}
.hero .stage{position:relative;z-index:1}
.digital .fig{filter:drop-shadow(calc(0px - var(--lx,0)*3px) calc(6px - var(--ly,0)*3px) 8px rgba(20,20,30,.22))}
.digital .fig:hover{filter:drop-shadow(calc(0px - var(--lx,0)*4px) calc(12px - var(--ly,0)*4px) 14px rgba(20,20,30,.2))}

/* load, once (both worlds): a blade cuts each line out of the sheet, then each figure is held over the type and pressed down */
@media (prefers-reduced-motion:no-preference){
  h1 span{position:relative;width:max-content;animation:cut .95s cubic-bezier(.65,0,.35,1) backwards}
  h1 span::after{content:"";position:absolute;top:.08em;bottom:.02em;left:100%;width:1px;margin-left:-1px;background:var(--ink);opacity:0;
    animation:blade .95s cubic-bezier(.65,0,.35,1) backwards}
  h1 .l2,h1 .l2::after{animation-delay:.38s}
  @keyframes cut{from{clip-path:inset(-.1em 100% -.1em 0)}to{clip-path:inset(-.1em 0 -.1em 0)}}
  @keyframes blade{0%{left:0;opacity:.7}85%{opacity:.7}100%{left:100%;opacity:0}}
  .fig{animation:press .9s cubic-bezier(.3,.7,.2,1) backwards;animation-delay:calc(var(--i)*160ms + 1.15s)}
  @keyframes press{
    0%{opacity:0;translate:0 -.1em;scale:1.12;rotate:var(--r);filter:drop-shadow(7px 16px 12px rgba(40,30,20,.2))}
    55%{opacity:1;translate:0 -.025em;scale:1.035;rotate:calc(var(--r)*.25);filter:drop-shadow(3px 6px 4px rgba(40,30,20,.26))}
  }
}

@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}

@media (max-width:900px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .note{grid-column:1/-1;padding:0}
  .scenes,.about{grid-template-columns:1fr}
  .shots img{height:min(380px,58vw)}
  .portrait{width:min(280px,64vw)}
  #piece{width:100vw;height:100dvh;overflow:auto}
  #piece .in{grid-template-columns:1fr;height:auto}
  .view .window{flex:none;aspect-ratio:var(--ratio,5/7)}
  .info{padding:8px 18px 24px}
  #piece .close{position:fixed;top:12px;right:12px}
}
@media (max-width:620px){
  body{font-size:16px}
  .bar nav .hide-s{display:none}
  .bar .brand{display:none}
  .bar nav{margin-left:auto}
  .stage{--f:21cqw;padding:calc(var(--f)*.7) 0 calc(var(--f)*.4) .14em;margin:auto 0}
  .intro{flex-direction:column;align-items:stretch}
  .btn{width:100%}
  .grid{gap:30px 14px}
  .meta{grid-template-columns:1fr}
  .meta b{font-size:16px}
}
.thumbs[hidden]{display:none}
@media (max-width:620px){.digital .stage{--f:18.5cqw}}
