@font-face{font-family:'Special Elite';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/special-elite-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/inter-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/inter-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/inter-latin-600-normal.woff2) format('woff2')}
:root{
  --ink:#141210;
  --ink-soft:#3b3129;
  --paper:#efe4c9;
  --veil:#141210;
  --gutter:clamp(20px,4.7vw,72px);
  --stencil:'Special Elite','Courier New',monospace;
  --body:'Inter',system-ui,-apple-system,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;min-height:100dvh;color:var(--ink);font-family:var(--body);line-height:1.6;background:#cfcfcf;overflow-x:hidden}
img{max-width:100%;display:block}
a{color:var(--ink);text-decoration:none}
:focus-visible{outline:2px dashed var(--ink);outline-offset:6px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* stencil words (images from the PSD) */
.word{display:inline-flex;align-items:center;min-height:44px;transition:opacity .5s ease}
.word img{height:100%;width:auto}
a.word:hover,a.word:focus-visible{opacity:.62}

/* ---------- HOME ---------- */
body.home{background:#c4c4c4 url(img/bg-home-light.jpg) 58% 42%/cover no-repeat;height:100vh;height:100dvh;overflow:hidden}
.home nav{position:fixed;left:var(--gutter);top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:3.4vh}
.home nav .word{height:min(8vh,4.6vw,62px)}

/* ---------- INNER PAGES ---------- */
body.inner{background:#cfcfcf;position:relative;isolation:isolate}
/* background as a fixed layer: same size on every screen, never stretched over long pages */
body.inner::before{content:"";position:fixed;bottom:0;left:0;width:100%;height:100vh;height:100lvh;z-index:-1;transform:translateZ(0);background:url(img/bg-inner-light.jpg) center/cover no-repeat;pointer-events:none}
.inner{--h1h:clamp(48px,10vw,95px)}
/* HOME sits on the same row as the page title, centred on it, instead of taking a row of its own */
.top{position:absolute;top:0;left:0;right:0;z-index:2;max-width:1280px;margin:0 auto;padding:calc(20px + (var(--h1h) - 44px) / 2) var(--gutter) 0;display:flex;justify-content:flex-end;pointer-events:none}
.top .back{pointer-events:auto}
.top .back{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-family:var(--stencil);font-size:15px;letter-spacing:.5px;transition:opacity .5s ease}
.top .back img{height:30px;width:auto}
.top .back:hover,.top .back:focus-visible{opacity:.62}
main{max-width:1280px;margin:0 auto;padding:20px var(--gutter) 96px}
main h1{margin:0 0 20px;height:var(--h1h);max-width:calc(100% - 90px)}
main h1 img{height:100%;width:auto;max-width:100%;object-fit:contain;object-position:left center}
.intro{margin:0 0 36px;max-width:60ch;font-size:18px;font-weight:500;line-height:1.55}
.ph{background:var(--ink);color:#e8dccb;display:flex;align-items:center;justify-content:center;font-family:var(--stencil);font-size:15px;text-align:center;padding:12px}

/* photobook covers */
.books{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:48px 40px;margin-top:24px;align-items:end}
.book{display:flex;flex-direction:column;gap:12px;background:none;border:0;padding:0;text-align:left;cursor:pointer;font:inherit;color:inherit}
.book img{width:100%;height:auto;filter:drop-shadow(0 22px 22px rgba(20,18,16,.45));transition:transform 1.2s cubic-bezier(.22,1,.36,1)}
.book:hover img,.book:focus-visible img{transform:scale(1.03)}
.book span{font-family:var(--stencil);font-size:20px;display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.book small{font-family:var(--body);font-size:14px;color:var(--ink)}

/* flipbook viewer */
.viewer{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;overflow:hidden;overscroll-behavior:contain;background:var(--veil);color:var(--paper)}
.viewer::backdrop{background:transparent}
.viewer[open]{display:flex;flex-direction:column}
.viewer header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px var(--gutter);font-family:var(--stencil);font-size:18px}
.stage{flex:1 1 auto;min-height:0;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:8px clamp(6px,6vw,96px)}
.flip-wrap{width:100%;max-width:var(--fw,1400px);touch-action:none}
html.lock,html.lock body{overflow:hidden}
.flip-wrap .page{background:transparent}
.flip-wrap .page img{width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}
.viewer footer{display:flex;align-items:center;justify-content:center;gap:20px;padding:12px var(--gutter) max(16px,env(safe-area-inset-bottom));font-family:var(--stencil)}
.vbtn{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;background:none;border:1px solid rgba(239,228,201,.5);color:var(--paper);font:inherit;font-size:18px;cursor:pointer;padding:0 14px}
.vbtn:hover{background:var(--paper);color:var(--ink)}
.vbtn:focus-visible{outline-color:var(--paper)}
.count{min-width:110px;text-align:center}

/* projects */
.projects{display:flex;flex-direction:column;gap:72px}
.project{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:32px;align-items:end}
.project:nth-child(even){grid-template-columns:minmax(0,2fr) minmax(0,3fr)}
.project:nth-child(even) .ph{order:2}
.project .ph{aspect-ratio:3/2}
.project .num{font-family:var(--stencil);font-size:15px;color:var(--ink-soft)}
.project h2{margin:4px 0 8px;font-family:var(--stencil);font-weight:400;font-size:clamp(26px,3vw,36px);line-height:1.15}
.project p{margin:0 0 16px}

/* art */
.art{columns:3 260px;column-gap:24px}
.art figure{break-inside:avoid;margin:0 0 24px}
.art figcaption{font-size:14px;color:var(--ink-soft);padding-top:8px}

/* ---------- RESPONSIVE ---------- */
@media (max-aspect-ratio:4/5){
  body.home{background-image:url(img/bg-home-s-light.jpg);background-position:74% 45%}
  .home .home-info{position:fixed;left:var(--gutter);right:var(--gutter);bottom:max(36px,calc(env(safe-area-inset-bottom) + 24px));z-index:2;display:flex;flex-direction:column;gap:30px}
  .home .home-info nav{position:static;transform:none;gap:16px}
  .home nav .word{height:clamp(44px,11vw,52px)}
  .home-info .who{position:static;font-size:13px;line-height:1.6;max-width:none;white-space:nowrap}
  .who br{display:inline}
  .home nav .word{height:clamp(44px,10vw,48px)}
}
@media (max-width:820px){
  .project,.project:nth-child(even){grid-template-columns:1fr;gap:20px}
  .project:nth-child(even) .ph{order:0}
  .projects{gap:56px}
}
@media (max-width:480px){
  .books{grid-template-columns:1fr;gap:40px}
  .viewer header{font-size:16px}
  .viewer footer{gap:10px}
  .count{min-width:84px;font-size:15px}
  .viewer header{padding:8px 12px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* home: the whole tag lights up on hover and links to /contact/ (assets/js/glow.js) */
.glow{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:1;mix-blend-mode:screen;opacity:0;transition:opacity 2.2s ease;filter:drop-shadow(0 0 3px #ffe08a) drop-shadow(0 0 12px rgba(255,200,90,.9)) drop-shadow(0 0 32px rgba(255,180,60,.6))}
.home nav{z-index:2}

/* viewer close: stencil X */
.vclose{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:4px;background:none;border:0;cursor:pointer;transition:transform 2s cubic-bezier(.25,.1,.25,1)}
.vclose img{height:30px;width:auto}
.vclose:hover,.vclose:focus-visible{transform:scale(1.06)}
.vclose:focus-visible{outline-color:var(--paper)}
.home.tag-on .glow{opacity:1;transition:opacity .9s ease}
.tag-link{position:fixed;z-index:2;left:35%;top:27%;width:58%;height:36%;cursor:pointer}
.tag-link:focus-visible{outline:2px dashed var(--ink);outline-offset:8px}

/* projects: photobooks block */
main h2.section{display:flex;align-items:center;gap:16px;margin:8px 0 0;font-family:var(--stencil);font-weight:400;font-size:17px;letter-spacing:.12em;text-transform:uppercase}

/* photography: masonry grid */
.masonry{columns:5 210px;column-gap:14px;margin-top:8px}
.masonry figure{break-inside:avoid;margin:0 0 14px}
main.wide{max-width:none;padding-left:clamp(16px,2.5vw,40px);padding-right:clamp(16px,2.5vw,40px)}
body:has(main.wide) .top,body:has(main.wide) .foot{max-width:none;padding-left:clamp(16px,2.5vw,40px);padding-right:clamp(16px,2.5vw,40px)}
.masonry .ph,.masonry img{width:100%;height:auto;display:block}
.shot{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in;transition:opacity .5s ease}
.shot:hover,.shot:focus-visible{opacity:.85}
/* photo detail: the photo grows from the grid, text at the side */
.lb{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#cfcfcf url(img/bg-inner-light.jpg) center/cover no-repeat;color:var(--ink);overflow:auto}
.lb::backdrop{background:transparent}
.lb[open]{display:block}
.lb-inner{min-height:100%;box-sizing:border-box;display:grid;grid-template-columns:auto minmax(240px,340px);justify-content:center;align-items:end;gap:56px;padding:88px var(--gutter) 56px;margin:0 auto}
.lb-fig{margin:0;display:flex;justify-content:flex-end;align-items:center;min-height:0}
.lb-img{display:block;max-width:min(62vw,1100px);max-height:calc(100dvh - 144px);width:auto;height:auto;object-fit:contain;will-change:transform}
.lb-info{opacity:0;transition:opacity .45s ease;padding-bottom:4px}
.lb.ready .lb-info{opacity:1}
.lb-num{margin:0 0 10px;font-family:var(--stencil);font-size:14px;letter-spacing:.12em}
.lb-title{margin:0 0 12px;font-family:var(--stencil);font-weight:400;font-size:clamp(22px,2vw,28px);line-height:1.15}
.lb-text{margin:0 0 16px;font-size:16px;font-weight:500;line-height:1.6}
.lb-credit{margin:0 0 24px;font-family:var(--stencil);font-size:14px}
.lb-navs{display:flex;gap:12px}
.lb-nav{min-width:44px;min-height:44px;background:none;border:1px solid rgba(20,18,16,.45);color:var(--ink);font-size:18px;cursor:pointer;transition:opacity .5s ease}
.lb-nav:hover{opacity:.62}
.lb-close{position:fixed;top:14px;right:var(--gutter);z-index:3}
@media (max-width:860px){
  .lb-inner{grid-template-columns:1fr;justify-content:stretch;gap:24px;align-items:start;padding-top:72px}
  .lb-fig{justify-content:center}
  .lb-img{max-width:100%;max-height:62dvh}
}

/* contact */
.about{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:56px;align-items:start;margin-top:8px}
.about .portrait{order:2;width:100%;height:auto;aspect-ratio:4/5;max-height:78vh;object-fit:cover;border:6px solid #141210}
.bio h2.section{margin:0 0 18px}
.bio h2.section:not(:first-child){margin-top:40px}
.bio p{margin:0 0 16px;font-size:18px;font-weight:500;line-height:1.6;max-width:58ch}
.links{list-style:none;margin:0;padding:0;font-size:18px;font-weight:600}
.links a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;transition:opacity .5s ease}
.links a:hover{opacity:.62}
@media (max-width:760px){.about{grid-template-columns:1fr;gap:28px}}

/* home: who is Phole (on wide screens the wrapper does not affect layout) */
.home-info{display:contents}
.who{position:fixed;left:var(--gutter);bottom:max(28px,4vh);z-index:2;margin:0;font-family:var(--stencil);font-size:15px;line-height:1.5;letter-spacing:.02em;max-width:none;white-space:nowrap}

/* footer on inner pages */
.foot{max-width:1280px;margin:0 auto;padding:28px var(--gutter) 40px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px;font-family:var(--stencil);font-size:14px}
.foot p{margin:0}
.foot a{display:inline-flex;align-items:center;min-height:44px;margin-right:18px;transition:opacity .5s ease}
.foot a:last-child{margin-right:0}
.foot a:hover{opacity:.62}

/* 404 */
.nf-title{font-family:var(--stencil);font-weight:400;font-size:clamp(32px,5vw,56px);height:auto;margin:0 0 12px}
.nf-links{display:flex;flex-wrap:wrap;gap:12px 40px}
.nf-links .word{height:clamp(40px,6vw,62px)}


/* flip: softer, grainy page shadows instead of glossy gradients */
.flip-wrap .stf__outerShadow,.flip-wrap .stf__innerShadow,.flip-wrap .stf__hardShadow,.flip-wrap .stf__hardInnerShadow{
  -webkit-mask-image:url(img/grain-soft.png);mask-image:url(img/grain-soft.png);-webkit-mask-size:180px;mask-size:180px;mix-blend-mode:multiply;filter:grayscale(1)}

/* touch: no blue tap highlight or selection on links, buttons and images */
html{-webkit-tap-highlight-color:transparent}
a,button,.tag-link,.word,.shot,.book{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
a img,button img,.lb-img{-webkit-user-drag:none;-webkit-user-select:none;user-select:none}
a:focus:not(:focus-visible),button:focus:not(:focus-visible){outline:none}

@media (max-aspect-ratio:4/5) and (max-height:700px){.home .home-info{gap:22px}.home .home-info nav{gap:10px}.home nav .word{height:40px}}
@media (max-width:360px){.home-info .who{font-size:12px}}

/* projects: diaries you can flip right on the page */
.diaries{display:flex;flex-direction:column;gap:72px;margin-top:24px}
.diary{max-width:960px}
.diary-book{position:relative;width:100%;filter:drop-shadow(0 22px 22px rgba(20,18,16,.4))}
.diary-book .page{background:transparent}
.diary-book .page img,.flip-wrap .page img{color:transparent;font-size:0;}
.diary-book .page img{width:100%;height:100%;object-fit:contain;-webkit-user-select:none;user-select:none}
.diary-cover{width:100%;height:auto;display:block}
.diary-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;margin-top:18px}
.diary-name{margin:0;font-family:var(--stencil);font-weight:400;font-size:18px;letter-spacing:.06em}
.diary-ctrl{display:flex;align-items:center;gap:10px;font-family:var(--stencil);font-size:15px}
.dbtn{display:inline-flex;align-items:center;justify-content:center;line-height:1;min-width:44px;min-height:44px;padding:0 12px;background:none;border:1px solid rgba(20,18,16,.45);color:var(--ink);font:inherit;font-size:16px;cursor:pointer;transition:opacity .5s ease}
.dbtn:hover{opacity:.62}
.dcount{min-width:88px;text-align:center}
.dfull{margin-left:8px}
@media (max-width:560px){.diaries{gap:56px}.diary-bar{flex-direction:column;align-items:flex-start}.dfull{margin-left:auto}}
