:root{--bg:#f7f7f5;--ink:#0a0a0a;--mute:#5c5c5c;--tile:#ebebe8;--line:#d4d4d0;color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
html{scroll-padding-top:env(safe-area-inset-top,0px);scroll-behavior:smooth}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;line-height:1.5}
.serif{font-family:Georgia,"Times New Roman",serif;font-style:italic}
a{color:inherit}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
header{display:flex;justify-content:space-between;align-items:center;padding:36px 6vw;position:absolute;top:0;left:0;right:0;z-index:2}
nav a{text-decoration:none;margin-right:26px;font-size:1.05rem;font-weight:300}
nav a.on{font-weight:700}
.icons{display:flex;align-items:center}.icons a{display:inline-flex;margin-left:18px;font-size:1rem;font-weight:700;text-decoration:none}
.hero{min-height:100vh;display:flex;flex-direction:column;justify-content:center;padding:0 6vw}
.hero div{max-width:1000px;margin:0 auto;width:100%}
h1{font-size:clamp(2.6rem,6.5vw,5.2rem);line-height:1.05;margin:0 0 .5em;letter-spacing:-.02em}
.hero p{font-size:clamp(1.3rem,2.6vw,2.1rem);line-height:1.25;margin:0;max-width:20em}
.down{position:absolute;bottom:28px;left:50%;transform:translateX(-50%);font-size:2rem;text-decoration:none;font-weight:200}
.grid{display:grid;grid-template-columns:repeat(2,1fr);max-width:1300px;margin:0 auto}
.tile{position:relative;aspect-ratio:4/3;background:var(--tile);overflow:hidden;display:block;text-decoration:none}
.tile .art{position:absolute;inset:0;display:grid;place-items:center;font-size:.9rem;color:var(--mute);padding:20px;text-align:center}
.tile .over{position:absolute;inset:0;background:rgba(20,20,20,.62);color:#fff;display:grid;place-items:center;padding:24px;text-align:center;font-weight:700;font-size:clamp(1.1rem,2vw,1.6rem);opacity:0;transition:opacity .2s}
.tile:hover .over,.tile:focus-visible .over{opacity:1}
section.page{max-width:760px;margin:0 auto;padding:140px 6vw 120px}
.page h2{font-size:clamp(2rem,4.5vw,3.2rem);letter-spacing:-.02em;margin:0 0 .6em;line-height:1.1}
.page p{font-size:1.15rem;max-width:36em}
dl{display:grid;grid-template-columns:140px 1fr;gap:14px 24px;margin:2em 0;border-top:1px solid var(--line);padding-top:1.4em}
dt{color:var(--mute)}dd{margin:0}
.hero-img{aspect-ratio:16/9;background:var(--tile);display:grid;place-items:center;color:var(--mute);margin:2em 0}
.page .intro+.intro{margin-top:.8em}
.page .intro{font-family:Georgia,"Times New Roman",serif;font-style:italic;font-size:1.25rem;line-height:1.45;max-width:30em}
.page h3{font-size:1.5rem;margin:2.2em 0 .4em;letter-spacing:-.01em}
.page ol{padding-left:1.2em;font-size:1.15rem;max-width:36em}
.top{position:fixed;right:18px;bottom:calc(18px + env(safe-area-inset-bottom,0px));width:52px;height:52px;border-radius:50%;border:0;background:rgba(128,128,128,.35);color:var(--ink);font-size:1.3rem;cursor:pointer}
@media(max-width:700px){.grid{grid-template-columns:1fr}header{flex-direction:column;align-items:flex-start;gap:14px}.tile .over{opacity:1;background:rgba(20,20,20,.45)}dl{grid-template-columns:1fr;gap:2px 0}dd{margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.tile .over{transition:none}}
.contact{display:grid;gap:18px;margin:2em 0;max-width:36em}
.contact label{display:grid;gap:6px;font-size:.95rem;color:var(--mute)}
.contact input,.contact textarea{font:inherit;font-size:1.05rem;color:var(--ink);background:transparent;border:0;border-bottom:1px solid var(--line);padding:8px 0;border-radius:0;resize:vertical}
.contact input:focus,.contact textarea:focus{outline:none;border-bottom-color:var(--ink)}
.contact button{justify-self:start;font:inherit;font-weight:700;font-size:1rem;padding:12px 26px;border:1px solid var(--ink);background:var(--ink);color:var(--bg);cursor:pointer;border-radius:999px}
.contact button:hover{background:transparent;color:var(--ink)}
.contact button:disabled{opacity:.5;cursor:wait}
.contact .status{margin:0;font-size:1rem}
.contact .honey{position:absolute;left:-9999px;width:1px;height:1px}
.page .alt{font-size:1rem;color:var(--mute)}
/* Project images */
.hero-shot{margin:2em 0;position:relative;overflow:hidden;background:var(--tile)}
.hero-shot img{display:block;width:100%;height:auto}
/* Hides the slide viewer's arrow buttons captured in the bottom-right of slide screenshots */
.slide{position:relative}
.slide::after{content:"";position:absolute;right:0;bottom:1%;width:8.5%;height:12%;background:#fff;pointer-events:none}
.gallery{margin:2.4em calc(50% - min(520px, 47vw));padding:0}
.gallery h4{margin:0 0 .8em;font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;color:var(--mute);font-weight:700}
.gallery figcaption{margin-top:.8em;font-size:.95rem;color:var(--mute);max-width:40em}
.shots{display:grid;gap:10px}
.shot{display:block;padding:0;border:0;background:var(--tile);cursor:zoom-in;overflow:hidden}
.shot img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s}
button.shot:hover img{transform:scale(1.03)}
.shot.still{cursor:default}
.wide .shots{grid-template-columns:1fr}
.wide .shot img{height:auto}
.pair .shots{grid-template-columns:var(--cols,1fr 1fr)}
.pair .shot img{height:auto}
.notes .shots{grid-template-columns:repeat(4,1fr)}
.notes .shot{aspect-ratio:4/3}
.lightbox{border:0;padding:0;background:transparent;max-width:94vw;max-height:94vh;overflow:visible}
.lightbox::backdrop{background:rgba(10,10,10,.85)}
.lightbox img{display:block;max-width:94vw;max-height:94vh;object-fit:contain}
.lightbox.slide::after{content:"";position:absolute;right:0;bottom:1%;width:8.5%;height:12%;background:#fff}
.lightbox .close{position:fixed;top:14px;right:18px;font-size:2.2rem;line-height:1;background:none;border:0;color:#fff;cursor:pointer}
@media(max-width:700px){.gallery{margin-inline:0}.pair .shots{grid-template-columns:1fr}.notes .shots{grid-template-columns:repeat(2,1fr)}}
@media(prefers-reduced-motion:reduce){.shot img{transition:none}}
/* Cut-out hero artwork: shown whole and centred on the page background; imageMask supplies the transparency */
.hero-shot.cutout{background:none;display:flex;justify-content:center}
.tile .art.cutout{display:flex;align-items:center;justify-content:center;padding:7%}
.tile .art.cutout img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;min-height:0;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.hero-shot.cutout img{width:auto;max-width:100%;max-height:min(480px,65vh);-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
/* About page: centred single column */
.about{text-align:center}
.about h2{margin-bottom:.2em}
.about p{margin-left:auto;margin-right:auto;max-width:34em}
.about .sub{color:var(--mute);font-size:1.1rem;margin-top:0}
.about .portrait{display:grid;place-items:center;width:min(280px,70vw);aspect-ratio:1;object-fit:cover;margin:2.4em auto;background:var(--tile);color:var(--mute);font-size:.95rem}
.about p+p{margin-top:1.2em}
.about a.btn{display:inline-block;margin-top:2em;padding:12px 30px;border:1px solid var(--ink);border-radius:10px;text-decoration:none;font-weight:700;font-size:1rem}
.about a.btn:hover{background:var(--ink);color:var(--bg)}
.about .signoff{margin-top:3.5em;color:#2b2bf5;font-weight:700;font-size:1.4rem;line-height:1.2;max-width:none}
.about .socials{display:flex;justify-content:center;align-items:center;gap:34px;margin-top:.6em}
.about .socials a{font-size:1.7rem;font-weight:700;text-decoration:none}
.about .ack{margin-top:5em;font-size:.85rem;color:var(--mute);max-width:46em}
.home-ack{text-align:center;font-size:.85rem;color:var(--mute);max-width:46em;margin:5em auto 0;padding:0 6vw 90px}
.hero-shot.cutout.small img{max-height:min(260px,40vh)}
/* CV page */
.cv-actions{display:flex;flex-wrap:wrap;align-items:center;gap:22px;margin:1.8em 0}
.cv-actions .btn{display:inline-block;padding:12px 26px;border:1px solid var(--ink);border-radius:10px;text-decoration:none;font-weight:700;font-size:1rem}
.cv-actions .btn:hover{background:var(--ink);color:var(--bg)}
.cv-actions a:not(.btn){font-size:1rem}
.cv-view{display:block;width:100%;height:min(1100px,85vh);border:1px solid var(--line);background:#fff}
@media(max-width:700px){.cv-view{display:none}}
/* Other work: smaller 3-across tiles under the main projects */
.other-work{max-width:1300px;margin:6em auto 0;padding:0 0}
.other-work h2{font-size:clamp(1.6rem,3vw,2.2rem);letter-spacing:-.02em;margin:0 6vw .8em;line-height:1.1}
.grid.small{grid-template-columns:repeat(3,1fr);gap:10px}
.grid.small .tile .over{font-size:clamp(1rem,1.5vw,1.2rem);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px}
.tile .over small{font-weight:400;font-size:.85em;opacity:.85}
.page.other .meta{color:var(--mute);margin-top:-.6em}
@media(max-width:900px){.grid.small{grid-template-columns:repeat(2,1fr)}}
@media(max-width:500px){.grid.small{grid-template-columns:1fr}}
.page.other .hero-shot{background:none}
.page.other .hero-shot img{width:auto;max-width:100%;max-height:80vh;margin:0 auto}
.page.other .book{margin-top:4.5em;padding-top:2.2em;border-top:1px solid var(--line)}
.page.other .book h3{margin:0 0 .1em}
.page.other .book .meta{margin-top:0}
.page.other .book .gallery.wide .shot img{max-height:80vh;width:auto;max-width:100%;margin:0 auto}
.page.other .book .gallery.wide .shot{background:none}
.page.other .pair .shot:last-child:nth-child(odd){grid-column:1/-1;width:calc(50% - 5px);justify-self:center}
