:root { --ink: #1a1a1a; --muted: #6b6b6b; --line: #e6e6e3; --bg: #fdfdfb; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 300; }
img { max-width: 100%; display: block; }

.top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 2rem; padding: 1rem 2rem; background: rgba(253,253,251,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); text-decoration: none; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; font-weight: 500; }
nav a { color: var(--muted); text-decoration: none; margin-left: 1.5rem; font-size: .85rem; letter-spacing: .04em; }
nav a:hover { color: var(--ink); }

section { max-width: 1200px; margin: 0 auto; padding: 5rem 2rem 2rem; scroll-margin-top: 3rem; }
h1 { font-weight: 300; font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: .02em; margin: 1.5rem 0 .25rem; }
h2 { font-weight: 300; font-size: 1.6rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 2rem; }

.hero { text-align: center; padding-top: 3rem; }
.hero img { max-height: 65vh; width: auto; margin: 0 auto; box-shadow: 0 2px 24px rgba(0,0,0,.08); }
.hero p { color: var(--muted); font-size: 1.1rem; margin: 0; }

.intro { max-width: 640px; color: var(--muted); margin: -1rem 0 2.5rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2.5rem 2rem; }
.grid.selected { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
figure { margin: 0; }
.thumb { all: unset; display: block; width: 100%; cursor: zoom-in; background: #f1f1ee; aspect-ratio: 4 / 5; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
figcaption { padding-top: .75rem; font-size: .9rem; }
figcaption p { margin: .2rem 0; }
.num { color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.process { color: var(--muted); }
figure.missing .thumb { display: grid; place-items: center; cursor: default; }
figure.missing .thumb img { display: none; }
figure.missing .thumb::after { content: "Image coming soon"; color: var(--muted); font-size: .85rem; }

.statement { max-width: 640px; font-size: 1.05rem; }
footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 4rem 1rem 3rem; }

#lightbox { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(253,253,251,.97); cursor: zoom-out; padding: 2rem; }
#lightbox[hidden] { display: none; }
#lightbox img { max-height: 85vh; max-width: 95vw; object-fit: contain; }
#lightbox p { color: var(--muted); font-size: .85rem; margin: .75rem 0 0; }
#close { position: absolute; top: .75rem; right: 1.25rem; background: none; border: 0; font-size: 2.2rem; color: var(--ink); cursor: pointer; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 380px)); gap: 2rem; }
.tile { color: inherit; text-decoration: none; border: 1px solid var(--line); padding: 1rem; transition: box-shadow .2s; }
.tile:hover { box-shadow: 0 2px 20px rgba(0,0,0,.1); }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f1f1ee; }
.tile h3 { font-weight: 400; font-size: 1.1rem; margin: 1rem 0 .25rem; }
.tile p { margin: 0; color: var(--muted); font-size: .9rem; }
.project { max-width: 760px; margin: 0 auto; padding: 4rem 2rem 1rem; }
.project h1 { margin-top: 0; }
.project .kind { color: var(--muted); margin-top: 0; }
.button { display: inline-block; border: 1px solid var(--ink); padding: .5rem 1.25rem; color: var(--ink); text-decoration: none; font-size: .9rem; }
.button:hover { background: var(--ink); color: var(--bg); }
.project h2 { margin: 2.5rem 0 1rem; font-size: 1.2rem; }
.project ul { padding-left: 1.2rem; } .project li { margin: .3rem 0; }
.figs { display: grid; gap: 1.5rem; margin: 1.5rem 0; }
.figs img { width: 100%; max-width: 100%; }
.docs { display: flex; flex-wrap: wrap; gap: .75rem; }
.previews { display: grid; gap: 1.5rem; margin-top: 2rem; }
.previews img { width: 100%; border: 1px solid var(--line); }

nav a[aria-current] { color: var(--ink); }
.about-page { max-width: 1000px; text-align: left; }
.about-row { display: grid; grid-template-columns: 1fr minmax(0, 360px); gap: 3rem; align-items: center; }
.about-photo img { width: 100%; height: auto; display: block; }
.about-page .portrait { max-height: 50vh; width: auto; max-width: 100%; margin: 0 0 1.5rem; box-shadow: 0 2px 24px rgba(0,0,0,.08); }
.about-page h1 { margin-top: 0; }
.lede { font-size: 1.15rem; margin: 0 0 2rem; }
.facts h3 { font-weight: 400; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 2rem 0 .5rem; }
.facts ul { margin: 0; padding-left: 1.2rem; } .facts li { margin: .35rem 0; }
footer a { color: var(--muted); }

.social { display: flex; gap: 1.25rem; margin: 2rem 0 0; }
.social a { color: var(--muted); } .social a:hover { color: var(--ink); }
.resume { max-width: 760px; margin: 0 auto; padding: 4rem 2rem 1rem; }
.resume h1 { margin-top: 0; } .resume .kind { color: var(--muted); margin-top: 0; }
.resume h2 { font-size: 1rem; letter-spacing: .1em; border-bottom: 1px solid var(--line); padding-bottom: .4rem; margin: 2.5rem 0 1rem; }
.resume h3 { display: flex; justify-content: space-between; gap: 1rem; font-weight: 500; font-size: 1rem; margin: 1.25rem 0 .2rem; }
.resume h3 .date { color: var(--muted); font-weight: 300; white-space: nowrap; }
.resume .sub { font-style: italic; color: var(--muted); margin: 0 0 .3rem; }
.resume ul { padding-left: 1.2rem; margin: .3rem 0; } .resume li { margin: .25rem 0; }

@media (max-width: 700px) { .about-row { grid-template-columns: 1fr; gap: 1.5rem; } .about-photo { order: -1; } }

@media (max-width: 600px) {
  .top { padding: .75rem 1rem; } nav a { margin: 0 1rem 0 0; }
  section { padding: 3.5rem 1rem 1rem; }
  .grid, .grid.selected { grid-template-columns: 1fr; }
}

