:root {
  --paper: #f7f4ee;
  --ink: #1f1e1a;
  --muted: #706b61;
  --line: #d8d0c2;
  --clay: #9c6f5b;
  --moss: #596655;
  --white: #fffdf8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  backdrop-filter: blur(16px);
}

.brand {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 600;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.9rem;
}

.hero {
  min-height: calc(100svh - 66px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  position: relative;
  padding: clamp(22px, 5vw, 64px);
}

.hero-image-wrap {
  position: absolute;
  inset: clamp(18px, 4vw, 46px);
  overflow: hidden;
  background: var(--line);
}

.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(31, 30, 26, 0.62), rgba(31, 30, 26, 0.08) 62%);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 780px;
  color: var(--white);
  padding-bottom: clamp(28px, 8vh, 82px);
}

.kicker,
.section-label {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .kicker {
  color: #efe5d7;
}

h1,
h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  line-height: 1.05;
}

h1 {
  font-size: clamp(4rem, 13vw, 10rem);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.hero-statement {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 300;
}

.intro,
.about {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 96px);
  padding: clamp(64px, 12vw, 150px) clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.intro p:last-child,
.about p {
  max-width: 840px;
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 2.1rem);
  line-height: 1.65;
  word-break: keep-all;
}

.works-section {
  padding: clamp(58px, 9vw, 120px) clamp(20px, 5vw, 64px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 6vw, 72px);
}

.gallery {
  column-count: 3;
  column-gap: clamp(16px, 2.5vw, 34px);
}

.work-card {
  break-inside: avoid;
  margin: 0 0 clamp(26px, 4vw, 54px);
  cursor: zoom-in;
}

.work-card button {
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  cursor: inherit;
}

.work-card img {
  width: 100%;
  background: var(--line);
  transition: transform 240ms ease, filter 240ms ease;
}

.work-card:hover img,
.work-card:focus-within img {
  transform: translateY(-4px);
  filter: saturate(1.03) contrast(1.02);
}

.work-caption {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.work-caption strong {
  font-size: 0.98rem;
  font-weight: 600;
}

.work-caption span,
.work-caption p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.about {
  align-items: start;
  background: var(--white);
}

.contact-link {
  justify-self: start;
  align-self: end;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-weight: 600;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: clamp(18px, 4vw, 46px);
  background: rgba(20, 19, 17, 0.88);
}

.lightbox[aria-hidden="false"] {
  display: grid;
}

.lightbox figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: clamp(18px, 3vw, 38px);
  width: min(1180px, 100%);
  max-height: 88svh;
  margin: 0;
  color: var(--white);
}

.lightbox img {
  width: 100%;
  max-height: 88svh;
  object-fit: contain;
}

.lightbox figcaption {
  align-self: end;
}

.lightbox strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
}

.lightbox span,
.lightbox p {
  color: #ddd2c3;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

@media (max-width: 900px) {
  .gallery {
    column-count: 2;
  }

  .intro,
  .about {
    grid-template-columns: 1fr;
  }

  .lightbox figure {
    grid-template-columns: 1fr;
    overflow: auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-inline: 18px;
  }

  nav {
    gap: 14px;
  }

  .hero {
    min-height: 82svh;
    padding: 18px;
  }

  .hero-image-wrap {
    inset: 10px;
  }

  .hero-image-wrap::after {
    background: linear-gradient(0deg, rgba(31, 30, 26, 0.7), rgba(31, 30, 26, 0.06) 70%);
  }

  .gallery {
    column-count: 1;
  }

  .section-heading {
    display: block;
  }
}
