/*
VOICE   the same quiet room as the galleries, seen from the doorway
IDEA    a wall of prints, each with its paper label tucked underneath
PICTURE every gallery's cover, arriving in black and white and warming into colour as you scroll
COLOUR  dark room, ivory labels, ink-dark words
LAYOUT  one column on phones, two or three on wider screens
*/
.still-hub{--paper:#f1ebdf;--pink:#1b1a18;--pdim:#6b655b;--out:cubic-bezier(.16,1,.3,1)}
.still-hub *,.still-hub *::before,.still-hub *::after{box-sizing:border-box}

/* full hub page */
.still-hub-page{margin:0;min-height:100vh;background:#0a0a0b;color:#f2ede4;font:400 16px/1.55 Manrope,system-ui,sans-serif;-webkit-font-smoothing:antialiased;overflow-x:clip}
.hub-wash{position:fixed;inset:-15%;background-size:cover;background-position:center;filter:blur(60px) saturate(1.2) brightness(.32);z-index:0}
.hub-grain{position:fixed;inset:-50%;pointer-events:none;opacity:.05;mix-blend-mode:overlay;z-index:1;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
.hub-head,.still-hub-page .still-hub,.hub-foot{position:relative;z-index:2}
.hub-head{padding:calc(env(safe-area-inset-top,0px) + 22px) max(5vw,22px) 10px;max-width:1300px;margin:0 auto}
.hub-site{display:inline-block;font-family:var(--f-name,"Instrument Serif",serif);font-size:22px;color:#f2ede4;text-decoration:none;opacity:.8}
.hub-head h1{font-family:var(--f-hub,"Instrument Serif",serif);font-weight:400;font-size:clamp(68px,17vw,180px);line-height:.88;letter-spacing:-.03em;margin:clamp(40px,10vh,110px) 0 0;
 opacity:0;transform:translateY(24px);animation:rise 1.8s var(--out,cubic-bezier(.16,1,.3,1)) .1s forwards}
.hub-head p{max-width:46ch;margin:22px 0 0;color:rgba(242,237,228,.66);font-size:16.5px;opacity:0;animation:fade 1.4s ease .7s forwards}
@keyframes rise{to{opacity:1;transform:none}}
@keyframes fade{to{opacity:1}}
.still-hub-page .still-hub{max-width:1300px;margin:0 auto;padding:clamp(40px,8vh,90px) max(5vw,22px) 60px}
.hub-foot{text-align:center;padding:30px 20px calc(env(safe-area-inset-bottom,0px) + 34px);font-size:13px;color:rgba(242,237,228,.4)}

/* cards: a print with its label tucked underneath */
.still-cards{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(44px,7vw,80px) clamp(24px,3vw,44px);align-items:start}
@media (min-width:760px){.still-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1200px){.still-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
.still-card{display:block;position:relative;text-decoration:none;color:var(--pink);-webkit-tap-highlight-color:transparent}
.still-print{display:block;position:relative;z-index:2;overflow:hidden;border-radius:4px 4px 0 0;background:#141414;
 box-shadow:0 -24px 44px -16px rgba(0,0,0,.5);transform:translateY(30px) scale(1.03);opacity:0;
 transition:transform 1.6s var(--out) var(--d,0ms),opacity 1.2s ease var(--d,0ms),box-shadow .5s}
.still-print img{display:block;width:100%;height:100%;object-fit:cover;filter:grayscale(1) brightness(.2);transition:filter 2.2s ease calc(var(--d,0ms) + .3s),transform 1.2s var(--out)}
.still-label{display:block;position:relative;z-index:1;background:var(--paper);padding:16px 20px 18px;border-radius:0 0 6px 6px;box-shadow:0 24px 50px rgba(0,0,0,.45);
 margin-top:-2px;transform:translateY(-100%);opacity:0;transition:transform 1.1s var(--out) calc(var(--d,0ms) + 1.3s),opacity .1s linear calc(var(--d,0ms) + 1.3s)}
.still-label>span{display:block;opacity:0;transform:translateY(10px);transition:opacity 1s ease,transform 1.2s var(--out)}
.still-count{font-size:12px;color:var(--pdim);font-variant-numeric:tabular-nums}
.still-title{font-family:var(--f-title,"Instrument Serif",serif);font-size:clamp(28px,3.2vw,38px);line-height:1.04;margin-top:6px;text-wrap:balance}
.still-title em{font-style:italic}
.still-intro{margin-top:8px;font-size:14.5px;line-height:1.5;color:#3d3a35;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.still-card.in .still-print{transform:none;opacity:1}
.still-card.in .still-print img{filter:none}
.still-card.in .still-label{transform:none;opacity:1}
.still-card.in .still-label>span{opacity:1;transform:none}
.still-card.in .still-label>span:nth-child(1){transition-delay:calc(var(--d,0ms) + 1.8s)}
.still-card.in .still-label>span:nth-child(2){transition-delay:calc(var(--d,0ms) + 1.95s)}
.still-card.in .still-label>span:nth-child(3){transition-delay:calc(var(--d,0ms) + 2.15s)}
@media (hover:hover){
 .still-card.in:hover .still-print img{transform:scale(1.03)}
 .still-card.in:hover .still-print{box-shadow:0 -30px 50px -14px rgba(0,0,0,.6)}
}
.still-card:focus-visible{outline:2px solid #f2ede4;outline-offset:6px;border-radius:6px}
.still-empty{color:rgba(242,237,228,.7)}
.still-embedded .still-empty{color:inherit}

/* leaving for a gallery: the room goes dark */
.hub-curtain{position:fixed;inset:0;z-index:50;background:#0a0a0b;opacity:0;pointer-events:none;transition:opacity .55s ease}
.leaving .hub-curtain{opacity:1}
.still-card.chosen .still-print img{transform:scale(1.06);transition:transform .8s var(--out)}

@media (prefers-reduced-motion:reduce){
 .still-print,.still-print img,.still-label,.still-label>span{transition:none!important;transform:none!important;opacity:1!important;filter:none!important}
 .hub-head h1,.hub-head p{animation:none;opacity:1;transform:none}
}
