/* Layout: a white gallery wall. One slim sticky header, one centered column up to 1240px,
   photos framed by white margins like prints. Single light theme by design (Gallery white). */
:root {
  --paper: #FFFFFF;
  --ink: #111111;
  --mute: #9A9A9A;
  --line: #E5E5E5;
  --tone: #F0F0EE;
  --tone-deep: #E4E4E1;

  --sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1240px;
  --gut: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- header ---------- */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
}
.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px 32px;
  padding-block: 26px;
}
.brand {
  font-size: 13px; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase;
}
.nav { display: flex; gap: clamp(16px, 3vw, 36px); flex-wrap: wrap; }
.nav a {
  font-size: 14px; color: var(--mute);
  padding-block: 2px;
  background: linear-gradient(var(--ink), var(--ink)) no-repeat left bottom / 0 1px;
  transition: color .3s var(--ease), background-size .4s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background-size: 100% 1px; }

/* ---------- page transitions ---------- */
main { min-height: 70vh; padding-block: 24px 96px; }
.view { animation: rise .55s var(--ease) both; }
main.out .view { opacity: 0; transform: translateY(6px); transition: opacity .16s ease, transform .16s ease; }
@keyframes rise { from { opacity: .01; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- type ---------- */
.lede {
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 300; line-height: 1.18; letter-spacing: -.015em;
  max-width: 18ch; margin: 48px 0 80px;
  text-wrap: balance;
}
.page-title {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 300; letter-spacing: -.02em; line-height: 1.1;
  margin: 40px 0 12px; text-wrap: balance;
}
.meta {
  font: 400 12px/1.6 var(--mono);
  color: var(--mute); letter-spacing: .02em;
}
.prose { max-width: 62ch; color: #2a2a2a; }
.prose p { margin: 0 0 1em; }
.label {
  font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
}

.sec-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; margin-bottom: 24px;
}
.sec-head a { font-size: 14px; color: var(--mute); transition: color .25s; }
.sec-head a:hover { color: var(--ink); }

/* ---------- cover grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px clamp(16px, 2.4vw, 32px);
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

.card { display: block; }
.cover { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--tone); max-width: 100%; }
.cover.wide { aspect-ratio: 16 / 9; }
.cover img, .cover .ph {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease), opacity .6s ease;
}
.card:hover .cover img, .card:hover .cover .ph { transform: scale(1.025); }
.cap {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-top: 14px; font-size: 15px;
}
.cap .t { min-width: 0; }
.cap .y { font: 400 12px var(--mono); color: var(--mute); flex: none; }
.card .cap .t { background: linear-gradient(var(--ink), var(--ink)) no-repeat left bottom / 0 1px; transition: background-size .45s var(--ease); }
.card:hover .cap .t { background-size: 100% 1px; }

/* images fade in when loaded */
img.fade { opacity: 0; transition: opacity .7s ease; }
img.fade.in { opacity: 1; }

/* placeholder frame, numbered like a contact sheet */
.ph {
  position: relative; width: 100%; max-width: 100%;
  background: var(--tone);
}
.ph::after {
  content: attr(data-n);
  position: absolute; left: 12px; bottom: 10px;
  font: 400 11px var(--mono); color: var(--mute); letter-spacing: .08em;
}
.ph.d { background: var(--tone-deep); }

.play {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.play span {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: grid; place-items: center;
  transition: transform .4s var(--ease);
}
.play span::before {
  content: ""; margin-left: 4px;
  border-left: 14px solid var(--ink);
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}
.card:hover .play span, .player-btn:hover .play span { transform: scale(1.08); }

/* ---------- filters ---------- */
.filters { display: flex; gap: 24px; flex-wrap: wrap; margin: 28px 0 16px; }
.filters a { font-size: 14px; color: var(--mute); padding-block: 2px; transition: color .25s; }
.filters a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.filters a:hover { color: var(--ink); }
.gal-intro { color: var(--mute); margin: 0 0 48px; max-width: 60ch; min-height: 1.6em; }

/* ---------- project page ---------- */
.back { display: inline-block; font-size: 14px; color: var(--mute); margin-top: 24px; transition: color .25s; }
.back:hover { color: var(--ink); }
.proj-head { display: grid; gap: 4px; margin-bottom: 40px; }
.proj-head .prose { margin-top: 20px; }

.sheet { display: grid; gap: clamp(16px, 3vw, 40px); max-width: 1100px; margin-inline: auto; }
.row { display: grid; gap: clamp(16px, 3vw, 40px); align-items: start; }
.row.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .row.pair { grid-template-columns: minmax(0, 1fr); } }
.shot { display: block; width: 100%; cursor: zoom-in; }
.shot img { width: auto; max-width: 100%; max-height: 88vh; height: auto; margin-inline: auto; }
.row.pair .shot img { width: 100%; max-height: none; }

.credits { margin-top: 56px; }
.pn {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px;
  margin-top: 96px; padding-top: 24px; border-top: 1px solid var(--line);
}
.pn a { display: grid; gap: 4px; font-size: 15px; min-width: 0; }
.pn a:last-child { text-align: right; }
.pn a:hover .t { box-shadow: inset 0 -1px 0 var(--ink); }

/* ---------- video page ---------- */
.player { position: relative; aspect-ratio: 16 / 9; background: var(--tone); max-width: 100%; margin-bottom: 32px; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-btn { position: absolute; inset: 0; width: 100%; }
.player-btn img { width: 100%; height: 100%; object-fit: cover; }
.player .note {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 24px; color: var(--mute); font-size: 14px;
}

/* ---------- about / contact ---------- */
.about {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 6vw, 96px); align-items: start; margin-top: 40px;
}
@media (max-width: 760px) { .about { grid-template-columns: minmax(0, 1fr); } }
.portrait { aspect-ratio: 4 / 5; background: var(--tone); max-width: 100%; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.about .page-title { margin-top: 0; }
.kit { margin-top: 40px; display: grid; gap: 6px; }

.contact-lines { display: grid; margin-top: 48px; max-width: 720px; }
.cline {
  display: grid; grid-template-columns: 28px 110px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding-block: 20px; border-top: 1px solid var(--line);
  transition: background-color .3s var(--ease), padding .3s var(--ease);
}
.cline:last-child { border-bottom: 1px solid var(--line); }
.cline .v { font-size: 18px; overflow-wrap: anywhere; }
.cline .go { color: var(--mute); transition: transform .3s var(--ease), color .3s; }
.cline:hover .go { color: var(--ink); transform: translate(2px, -2px); }
.cline:hover .v { box-shadow: inset 0 -1px 0 var(--ink); }
.ico svg, .ficon svg {
  width: 22px; height: 22px; display: block;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.ico svg .dot, .ficon svg .dot { fill: currentColor; stroke: none; }
@media (max-width: 560px) {
  .cline { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .cline .label { display: none; }
  .cline .v { font-size: 16px; }
}

.spotify { margin-top: 28px; max-width: 520px; display: grid; gap: 10px; }
.spotify iframe { width: 100%; border: 0; border-radius: 12px; background: var(--tone); }

/* ---------- footer ---------- */
.foot .wrap {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-block: 32px 40px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--mute);
}
.foot a:hover { color: var(--ink); }
.foot .links { display: flex; gap: 20px; align-items: center; }
.ficon { color: var(--mute); transition: color .25s, transform .3s var(--ease); }
.ficon:hover { color: var(--ink); transform: translateY(-2px); }
.ficon svg { width: 20px; height: 20px; }

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 50; height: 100vh; height: 100dvh;
  background: var(--paper);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) var(--gut) calc(env(safe-area-inset-bottom, 0px) + 16px);
  animation: lbIn .35s ease both;
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-bar { display: flex; justify-content: space-between; align-items: center; }
.lb-stage { display: grid; place-items: center; min-height: 0; position: relative; touch-action: pan-y; }
.lb-stage { overflow: hidden; }
.lb-stage img, .lb-stage .ph {
  display: block; width: auto; height: auto; object-fit: contain;
  max-width: 100%;
  max-height: calc(100vh - 150px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - 150px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  animation: lbIn .4s ease both;
}
.lb-stage .ph { height: 70vh; }
.lb-nav { display: flex; justify-content: space-between; align-items: center; }
.lb .like { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); padding: 8px 12px; }
.lb .like svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; transition: fill .2s, stroke .2s; }
.lb .like[aria-pressed="true"] svg { fill: #C8352B; stroke: #C8352B; }
.lb .like .like-n { font: 400 13px var(--mono); color: var(--mute); min-width: 1ch; }
.lb .like.pop svg { animation: pop .35s var(--ease); }
@keyframes pop { 40% { transform: scale(1.25); } }

.comments { margin-top: 80px; max-width: 640px; }
.comments h2 { margin: 0 0 20px; }
.c-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 0; }
.c-list li { padding-block: 16px; border-top: 1px solid var(--line); }
.c-list li:last-child { border-bottom: 1px solid var(--line); }
.c-list .c-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.c-list b { font-weight: 500; }
.c-list p { margin: 6px 0 0; color: #2a2a2a; white-space: pre-line; overflow-wrap: anywhere; }
.c-list .c-empty { color: var(--mute); }
.c-form { display: grid; gap: 14px; }
.c-row { display: grid; gap: 6px; }
.c-row label { font-size: 13px; color: var(--mute); }
.c-row label span { color: #bdbdbd; }
.c-form input, .c-form textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 0; padding: 10px 12px; width: 100%;
  transition: border-color .2s;
}
.c-form input:focus, .c-form textarea:focus { outline: none; border-color: var(--ink); }
.c-form textarea { resize: vertical; min-height: 88px; }
.c-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.c-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.c-foot button { background: var(--ink); color: var(--paper); padding: 10px 18px; font-size: 14px; transition: opacity .2s; }
.c-foot button:hover { opacity: .85; }
.c-foot button:disabled { opacity: .5; cursor: default; }
.c-msg { font-size: 13px; color: var(--mute); }
.lb button { font-size: 14px; color: var(--mute); padding: 8px 4px; transition: color .25s; }
.lb button:hover { color: var(--ink); }

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