:root {
  --bg: #fff;
  --fg: #161616;
  --muted: #777;
  --line: #e8e8e8;
  --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.75 -apple-system, "Apple SD Gothic Neo", "Pretendard", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px;
  padding: 20px var(--gutter);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
}
.name { font-weight: 700; font-size: 17px; }
.name span { font-weight: 400; color: var(--muted); font-size: 13px; letter-spacing: .08em; margin-left: 6px; }
nav a { margin-left: 22px; font-size: 14px; color: var(--muted); }
nav a:hover, nav a.on { color: var(--fg); }

main { padding: 0 var(--gutter) 80px; min-height: 70vh; }
h1 { font-size: 26px; margin: 32px 0 20px; }

/* 홈 */
.hero { margin: 8px 0 48px; }
.hero img { width: 100%; max-height: 78vh; object-fit: contain; background: #f4f4f4; }
.hero p { color: var(--muted); font-size: 14px; }

/* 목록 */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filters button {
  border: 1px solid var(--line); background: none; border-radius: 99px;
  padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; color: var(--muted);
}
.filters button.on { border-color: var(--fg); color: var(--fg); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 24px; }
.card .thumb { aspect-ratio: 4/5; overflow: hidden; background: #f4f4f4; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover img { transform: scale(1.03); }
.card h3 { font-size: 15px; margin: 12px 0 0; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 13px; }

/* 상세 */
.work { max-width: 1100px; margin: 0 auto; }
.work .meta { color: var(--muted); margin-top: -12px; }
.work .text { max-width: 680px; white-space: pre-line; margin: 24px 0 40px; }
.gallery { display: grid; gap: 20px; }
.gallery img { width: 100%; cursor: zoom-in; background: #f4f4f4; }
.video { position: relative; aspect-ratio: 16/9; margin: 32px 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.review { max-width: 680px; margin: 56px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.review h2 { font-size: 16px; }
.review p { white-space: pre-line; }
.pager { display: flex; justify-content: space-between; margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }

/* About / Contact */
.about, .contact { max-width: 760px; }
.lead { color: var(--muted); }
.cv h2 { font-size: 15px; margin: 36px 0 8px; }
.cv ul { list-style: none; padding: 0; margin: 0; }
.cv li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.cv li b { display: inline-block; width: 56px; font-weight: 500; color: var(--muted); }
.contact .big { font-size: 22px; }
.contact a { border-bottom: 1px solid currentColor; }

/* 확대 보기 */
#lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
#lightbox[hidden] { display: none; }
#lightbox img { max-width: 94vw; max-height: 94vh; object-fit: contain; }
#lightbox button { position: absolute; top: 12px; right: 18px; background: none; border: 0; color: #fff; font-size: 36px; cursor: pointer; }

.bottom { padding: 24px var(--gutter); color: var(--muted); font-size: 12px; }
