:root{--ink:#111;--grey:#8A8A8A;--soft:#3D3D3D;--line:#E4E4E4;--accent:#7A3B2E;--bg:#FFF}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg)}
body{font-family:'Instrument Sans',system-ui,sans-serif;font-size:13px;line-height:1.45;color:var(--ink);-webkit-font-smoothing:antialiased}
a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:2px}
a:hover{color:var(--accent)}
button{all:unset;cursor:pointer}
button:focus-visible,a:focus-visible{outline:1px solid var(--accent);outline-offset:2px}
#page{min-height:100vh;padding:14px 16px 64px;overflow:hidden}
#intro{max-width:560px}
#intro p{margin:0 0 12px}
#intro p:last-child{margin:0}
#intro .name{text-decoration-color:var(--ink)}
.muted{color:var(--grey)}
.title{text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:3px}

/* home: index */
.index{display:flex;gap:56px;margin:22px 0 28px;align-items:flex-start}
.index .col{flex:0 1 auto;min-width:0}
.index .also{flex:0 0 auto;min-width:90px}
.index a{display:block;text-decoration:none;padding:1px 0}
.index a:hover{text-decoration:underline}

/* home: thumbnail field */
.grid{display:grid}
.cell{display:flex;align-items:center;justify-content:center}
.thumb{display:block;cursor:pointer;background:transparent}
.thumb img{display:block;width:100%;height:100%;object-fit:cover}
@keyframes pwpulse{0%,100%{transform:scale(1)}50%{transform:scale(.86)}}

/* series */
.back{margin:22px 0 14px}
.back a{text-decoration-color:var(--ink);padding:4px 0}
.shead{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.about{margin:14px 0 0}
.about-text{margin:6px 0 0;max-width:560px;color:var(--soft)}
.about-text p{margin:0 0 10px}
.about-text .q{font-family:'EB Garamond',Georgia,serif;font-size:16px;line-height:1.4;color:var(--ink)}
.about-text .links a{display:inline-block;margin:0 16px 4px 0}
.frame{position:relative;margin-top:22px;width:100%}
.frame img,.fs-frame img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.ph{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:#A8A39B;font-size:11px}
.half{position:absolute;top:0;width:50%;height:100%}
.half.l{left:0;cursor:w-resize}.half.r{right:0;cursor:e-resize}
.counter{text-align:center;margin:22px 0 0;color:#555}

/* full screen */
#fs{position:fixed;inset:0;z-index:50;background:var(--bg);display:flex;flex-direction:column;padding:14px 16px}
#fs[hidden]{display:none}
.fs-top{display:flex;justify-content:space-between;gap:16px}
.fs-frame{position:relative;flex:1 1 auto;min-height:0;margin:14px 0}
#fs .counter{margin:0}

/* words and cv */
.list{max-width:620px}
.row{padding:14px 0;border-top:1px solid var(--line)}
.row .in{display:flex;gap:14px;align-items:baseline}
.row .no{color:var(--grey);width:22px;flex:none}
.row .body{flex:1 1 auto;min-width:0}
.line{margin:10px 0 0;font-family:'EB Garamond',Georgia,serif;font-style:italic;font-size:17px;line-height:1.35}
.row .read{margin:8px 0 0}
.cvg{padding:12px 0 14px;border-top:1px solid var(--line)}
.cvg .head{color:var(--grey);margin-bottom:6px}
.cvr{display:flex;gap:14px;padding:2px 0}
.cvr .y{width:72px;flex:none;color:#555}
.cvr .t{flex:1 1 auto;min-width:0}
.pagehead{display:flex;justify-content:space-between;gap:16px;max-width:620px;margin-bottom:24px}

/* darkroom */
.frame canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.thumb.bleach{transition:opacity 650ms ease-in;opacity:0}
.thumb.latent{opacity:0;filter:brightness(2.4) contrast(.55)}
.thumb.develop{transition:opacity 700ms ease-out,filter 1500ms cubic-bezier(.2,.6,.3,1);opacity:1;filter:none}
/* transition */
.enter{opacity:0;transform:translateY(16px)}
.enter.go{opacity:1;transform:none;transition:opacity 380ms ease-out 120ms,transform 420ms cubic-bezier(.2,.7,.2,1) 120ms}
.face{position:absolute;top:0;left:0;transform-origin:50% 50%;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:var(--bg)}

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

/* sub pages: only the name stays at the top, so the image gets the screen */
#intro .short{display:none}
body.sub #intro p{display:none}
body.sub #intro p.short{display:block}
body.sub .back{margin-top:12px}
#intro{transition:opacity 320ms ease}

/* contact sheet: Bridge content view */
.sheet{margin:80px -16px -64px;padding:14px 16px 56px;background:#2b2b2b;color:#c8c8c8;font-size:12px}
.sheet-head{display:flex;justify-content:space-between;gap:16px;padding-bottom:10px;margin-bottom:22px;border-bottom:1px solid #3c3c3c}
.sheet-head span:first-child{color:#e6e6e6;text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:5px}
.sheet-grid{display:grid;grid-template-columns:repeat(var(--cols,6),minmax(0,1fr));gap:26px 18px}
.sheet-cell{display:flex;flex-direction:column;min-width:0;text-align:left;color:inherit}
.sheet-pic{position:relative;display:block;aspect-ratio:1/1;width:100%}
.sheet-pic img{position:absolute;inset:0;margin:auto;display:block;max-width:100%;max-height:100%;width:auto;height:auto;box-shadow:0 0 0 1px #1d1d1d}
.sheet-label{height:16px;margin:8px 0 4px;font-size:11px;line-height:16px;padding:0 6px;color:#fff}
.sheet-cell.on .sheet-label{background:var(--accent)}
.sheet-name{font-size:11px;color:#b4b4b4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sheet-cell{cursor:zoom-in}
.sheet-cell.on{cursor:pointer}
.sheet-cell:hover .sheet-name,.sheet-cell:focus-visible .sheet-name{color:#fff}
.sheet-cell:focus-visible{outline:1px solid #e6e6e6;outline-offset:4px}
.sheet{position:relative}
.loupe{position:fixed;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;background:rgba(30,30,30,.55)}
.loupe[hidden]{display:none}
.loupe-in{display:flex;flex-direction:column;align-items:center;gap:10px;cursor:zoom-out;padding:14px;background:#2b2b2b;box-shadow:0 12px 40px rgba(0,0,0,.45)}
.loupe-in img{display:block;max-width:min(70vw,900px);max-height:72vh;width:auto;height:auto}
.loupe-cap{font-size:11px;color:#b4b4b4}
@media(max-width:1000px){.sheet-grid{grid-template-columns:repeat(min(var(--cols,6),5),minmax(0,1fr))}}
@media(max-width:600px){.sheet-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 12px}.loupe-in img{max-width:88vw}}

/* series view: one collage on a worn surface */
.board{position:relative;margin:22px -16px 0;background:linear-gradient(rgba(20,20,20,.38),rgba(20,20,20,.38)),url(img/surface.webp) center/cover #2e2e2e;overflow:hidden}
.feature{position:absolute;z-index:8;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.5),0 12px 30px rgba(0,0,0,.35)}
.feature canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.ctile{position:absolute;display:block;padding:0;cursor:pointer;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.55)}
.ctile img{display:block;width:100%;height:100%;object-fit:cover}
.ctile:hover{outline:1px solid #e8e2da;outline-offset:2px;z-index:6!important}
.ctile.active{outline:2px solid var(--accent);outline-offset:-2px}
.ctile.active img{opacity:.88}
.ctile.bleach{transition:opacity 380ms ease-in;opacity:0}
.ctile.latent{opacity:0;filter:brightness(2.4) contrast(.55)}
.ctile.develop{transition:opacity 700ms ease-out,filter 1500ms cubic-bezier(.2,.6,.3,1);opacity:1;filter:none}
.feature-cap{margin:10px 0 0;text-align:right;color:#555}

.sheet-cell .sheet-pic{transition:transform 260ms cubic-bezier(.2,.7,.2,1);transform-origin:inherit}
.sheet-cell.off{cursor:zoom-in}
.sheet-cell.zoom{position:relative;z-index:20;cursor:zoom-out}
.sheet-cell.zoom .sheet-pic{transform:scale(var(--z,1.35))}
.sheet-cell.zoom .sheet-pic img{box-shadow:0 10px 30px rgba(0,0,0,.6)}

/* worn work prints (series with wear: true) */
.board.worn .ctile{overflow:hidden}
.board.worn .ctile img{filter:grayscale(1) contrast(.78) brightness(1.1)}
.board.worn .ctile::after{content:'';position:absolute;inset:0;pointer-events:none;background:url(img/surface.webp) var(--bx,0) var(--by,0)/var(--bs,500px) auto;mix-blend-mode:screen;opacity:var(--bo,0);-webkit-mask-image:var(--mk,none);mask-image:var(--mk,none)}
.board.worn .ctile::before{content:'';position:absolute;inset:0;pointer-events:none;z-index:1;background:var(--edge,none)}
.board.worn .ctile.active{outline:2px solid var(--accent);outline-offset:-2px}
.board.worn .feature{padding:10px 10px 16px;background:#ece9e2}
.board.worn .feature canvas{inset:10px 10px 16px;width:calc(100% - 20px);height:calc(100% - 26px)}

.about-text.open{margin-top:16px;color:var(--ink)}
.about-text.open > p.facts{color:var(--grey)}

/* long texts */
.tbody p{margin:0 0 2px}
.tbody .tsec{margin:14px 0 4px;color:var(--grey)}
.tbody.long{max-width:560px;font-family:'EB Garamond',Georgia,serif;font-size:17px;line-height:1.45}
.excerpt{margin-top:18px;max-width:560px;color:var(--ink)}
.excerpt .tbody{font-family:'EB Garamond',Georgia,serif;font-size:16px;line-height:1.4}
.excerpt .more{text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:2px;margin-right:16px}
.about-text .links a,.about-text .links button{display:inline-block;margin:0 16px 4px 0}

.board.spread{background-size:cover;background-position:center}
/* the poem page (The Suit): text left, one print right */
.poemboard{background-size:cover!important;background-position:center!important}
.poemboard .verse{position:absolute;left:6%;top:50%;transform:translateY(-50%);width:32%;z-index:3;font-family:Georgia,'Times New Roman',serif;font-size:clamp(17px,1.45vw,23px);line-height:1.55;color:#efebe3;text-shadow:0 1px 2px #000,0 0 14px rgba(0,0,0,.9),0 0 32px rgba(0,0,0,.7)}
.poemboard .verse .vl{display:block;opacity:0;filter:blur(4px);transition:opacity 1700ms ease,filter 1700ms ease,color 1700ms ease}
.poemboard .verse .vl.on{opacity:.42;filter:none}
.poemboard .verse .vl.now{opacity:1}
.poemboard .verse .num{font-size:.7em;letter-spacing:.2em;margin-top:.2em}
.poemboard .verse .gap{display:block;height:1.1em}
.poemboard .feature{transition:left 0s,top 0s;cursor:pointer}
.poemboard .feature.paused::after{content:'❚❚';position:absolute;right:12px;bottom:-1px;font-size:9px;color:#888}
.poemboard.mob .verse{position:relative;left:auto;top:auto;transform:none;width:auto;padding:24px 18px 0}
.poemboard .verse .credit{display:block;margin-top:1.6em;font-size:.62em;letter-spacing:.04em;opacity:.55;font-style:italic}
/* 04/12 the poem stands still: all lines visible from the start */
.poemboard .verse .vl,.poemboard .verse .vl.on,.poemboard .verse .vl.now{opacity:1;filter:none;transition:none}
/* 05/12 Kharkiv: the film on the surface, the text below */
.filmboard{display:flex;align-items:center;justify-content:center}
.filmbox{position:relative;background:#000;box-shadow:0 6px 30px rgba(0,0,0,.55)}
.filmbox iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.filmtext{max-width:620px;margin:34px 0 10px}
/* 05/12 a collage without the surface (Another Part of Berlin) */
.board.plain{background:none}
/* 05/12 a row of works, enlarged on click (I'll Cry Later) */
.row4{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;margin:26px 0 10px;align-items:end}
.row4 figure{margin:0}
.row4 .rimg{display:block;padding:0;border:0;background:none;cursor:zoom-in;width:100%}
.row4 img{display:block;width:100%;height:auto}
.row4 figcaption{margin-top:8px;color:var(--grey);font-size:13px}
@media (max-width:760px){.row4{grid-template-columns:1fr 1fr;gap:14px}}
.lightbox{position:fixed;inset:0;z-index:50;background:rgba(250,249,246,.98);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px}
.lightbox img{max-width:100%;max-height:calc(100vh - 90px);object-fit:contain;cursor:zoom-out}
.lightbox .cap{margin:10px 0 0;color:var(--grey);font-size:13px}
.lightbox button{position:absolute;border:0;background:none;font-size:30px;line-height:1;color:#333;cursor:pointer;padding:10px}
.lightbox .lbx{top:10px;right:14px}.lightbox .lbp{left:8px;top:50%}.lightbox .lbn{right:8px;top:50%}
/* 05/12 text under the collage (Fredrikshavn, The Washing Line); the kind of work beside each title in the index */
.about-text.below{max-width:620px;margin:26px 0 10px}
.about-text.below p.dash{padding-left:1.1em;text-indent:-1.1em}
.index .kind{color:var(--grey)}
/* 05/12 Light Explains Nothing, laid out as its catalogue */
.chapters{margin:30px 0 10px}
.chapter{margin:0 0 54px}
.chead{display:flex;gap:18px;align-items:baseline;margin:0 0 16px;max-width:620px}
.cnum{font-family:'EB Garamond',Georgia,serif;font-size:30px;line-height:1;min-width:38px}
.ctype{color:var(--grey);font-size:11px;letter-spacing:.14em;text-transform:uppercase;margin-top:4px}
.cworks{display:grid;gap:22px}
.cworks.n3{grid-template-columns:repeat(3,1fr)}
.cworks.n2{grid-template-columns:repeat(2,1fr);max-width:66.6%}
.cworks figure{margin:0}
.cworks .rimg{display:block;padding:0;border:0;background:none;cursor:zoom-in;width:100%}
.cworks img{display:block;width:100%;height:auto;box-shadow:0 0 0 10px #111,0 0 0 11px #333}
.cworks figure{padding:11px}
.cworks figcaption{margin-top:16px;font-size:13px;line-height:1.4}
.cworks .wnum{color:var(--grey);margin-right:4px}
.tbody.fr{max-width:560px}
@media (max-width:760px){.cworks.n3,.cworks.n2{grid-template-columns:1fr;max-width:none}}
/* 05/12 more life on the index: each stamp has its own slow movement */
@keyframes pwdrift{0%,100%{transform:translate(0,0)}50%{transform:translate(7px,-6px)}}
@keyframes pwdrift2{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(-6px,5px) scale(.93)}}
@keyframes pwtilt{0%,100%{transform:rotate(0) scale(1)}50%{transform:rotate(-3deg) scale(1.06)}}
@keyframes pwbreath{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.9)}}
/* 06/12 registrations as a grid; the index in three groups */
.rgrid{display:grid;grid-template-columns:repeat(var(--cols),1fr);gap:10px;margin:24px 0 10px}
.rgrid figure{margin:0}
.rgrid .rimg{display:block;padding:0;border:0;background:none;cursor:zoom-in;width:100%}
.rgrid img{display:block;width:100%;height:auto}
.rgrid figcaption{margin-top:4px;color:var(--grey);font-size:11px}
.rgrid.stills{gap:18px;margin-top:40px}
@media (max-width:760px){.rgrid{grid-template-columns:repeat(3,1fr)}.rgrid.stills{grid-template-columns:1fr 1fr}}
.index .ghead{display:block;margin-top:14px}
.index .ghead:first-child{margin-top:0}
/* 06/12 Kharkiv: text and stills side by side; equal frames for The Washing Line; e-mail copied note */
.khwrap{display:grid;grid-template-columns:minmax(0,620px) 1fr;gap:48px;align-items:start;margin-top:34px}
.khwrap .filmtext{margin:0}
.khwrap .rgrid.stills{margin:0}
@media (max-width:900px){.khwrap{grid-template-columns:1fr}}
.rgrid.same img{aspect-ratio:var(--ar);object-fit:cover}
.copied{color:var(--grey);font-size:12px}
/* 06/12 a quoted song line, added by the artist himself in quote.txt */
.tbody .tquote{padding-left:1.4em;color:var(--grey);font-style:italic}
.tbody .tquote.lyric{color:inherit}
.poemboard .verse .credit a{color:inherit}
/* 06/12 a dark veil behind the verse where the surface is busy (Behind the Sofa's threads) */
.poemboard.shade:not(.mob) .verse{padding:70px 80px;margin-left:-80px;width:calc(32% + 160px);background:radial-gradient(closest-side,rgba(6,10,10,.9) 0%,rgba(6,10,10,.82) 70%,rgba(6,10,10,0) 100%)}
.poemboard.shade.mob .verse{background:rgba(6,10,10,.72)}
.poemboard.shade .verse .credit{opacity:.8}
.poemboard .verse.prose{font-size:clamp(15px,1.15vw,19px);line-height:1.6}
/* 06/12 installations: the room first, standing still */
.room{margin:24px 0 34px}
.room img{display:block;width:100%;height:auto}
.room .rhero{max-height:86vh;width:auto;max-width:100%;margin:0 auto 14px;object-fit:contain}
.room .rrest{display:grid;grid-template-columns:repeat(var(--cols),1fr);gap:14px;align-items:start}
@media (max-width:760px){.room .rrest{grid-template-columns:1fr 1fr}}
.room .rrest img{aspect-ratio:4/3;object-fit:cover}
.room.row{display:flex;gap:14px;align-items:flex-start}
.room.row img{min-width:0;width:100%}
@media (max-width:760px){.room.row{flex-wrap:wrap}.room.row img{flex:1 1 45%!important}}
