:root {
  --bg: #f7f6f2;
  --paper: #ffffff;
  --ink: #24231f;
  --muted: #757169;
  --line: #dedad1;
  --olive: #6d7258;
  --clay: #b98969;
  --black: #121212;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 44px;
  border-bottom: 1px solid rgba(36, 35, 31, 0.1);
  background: rgba(247, 246, 242, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border: 1px solid var(--ink);
  background: linear-gradient(135deg, var(--olive) 0 50%, var(--clay) 50% 100%);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 12px;
  color: #49463f;
  text-transform: uppercase;
}

.nav a {
  padding: 24px 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100vh - 68px);
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(18, 18, 18, 0.52), rgba(18, 18, 18, 0.12) 52%, rgba(247, 246, 242, 0.1)),
    linear-gradient(0deg, rgba(247, 246, 242, 0.7), rgba(247, 246, 242, 0) 42%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 68px);
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: end;
  max-width: 680px;
  padding: 0 44px 12vh;
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--olive);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-copy .eyebrow {
  color: #e9e3d8;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 640px;
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
}

.hero-actions,
.blog-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button,
.blog-links a,
.contact-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 650;
}

.button.primary {
  background: white;
  color: var(--black);
}

.button.secondary {
  color: white;
}

.intro,
.portfolio-section,
.archive,
.process,
.contact {
  padding: 96px 44px;
}

.intro {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.intro p {
  max-width: 760px;
  margin: 0;
  color: #3f3c35;
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.45;
  text-align: center;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1220px;
  margin: 0 auto 34px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1220px;
  margin: 0 auto 28px;
}

.filter {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.filter.is-active {
  border-color: var(--black);
  background: var(--black);
  color: white;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1220px;
  margin: 0 auto;
}

.project-card {
  background: var(--paper);
  border: 1px solid rgba(36, 35, 31, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 180ms ease, opacity 180ms ease;
}

.project-card.is-hidden {
  display: none;
}

.project-card:hover {
  transform: translateY(-3px);
}

.project-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.project-card a {
  display: grid;
}

.project-meta {
  margin: 16px 16px 5px;
  color: var(--muted);
  font-size: 12px;
}

.project-card h3 {
  margin: 0 16px 18px;
}

.archive {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 44px;
  max-width: 1220px;
  margin: 0 auto;
}

.archive-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.archive-feature img {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  object-fit: cover;
}

.archive-feature p:not(.eyebrow),
.archive-list p,
.process-list p,
.contact-panel p {
  color: var(--muted);
}

.archive-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.archive-list div {
  display: grid;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.archive-list span {
  color: var(--clay);
  font-size: 12px;
  font-weight: 700;
}

.archive-list strong {
  font-size: 17px;
}

.archive-list p,
.process-list p,
.contact-panel p {
  margin: 0;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.process-list li {
  min-height: 210px;
  padding: 24px;
  background: var(--bg);
}

.process-list span {
  display: block;
  margin-bottom: 42px;
  color: var(--olive);
  font-size: 13px;
  font-weight: 750;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 44px;
  align-items: start;
  max-width: 1310px;
  margin: 0 auto;
}

.contact-panel {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.contact-panel a {
  width: 100%;
  justify-content: flex-start;
  background: var(--paper);
  color: var(--ink);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.project-hero img {
  width: 100%;
  max-height: 78vh;
  object-fit: cover;
}

.project-title {
  display: grid;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  padding: 72px 44px 84px;
  text-align: center;
}

.project-title h1 {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 68px);
}

.project-title p:not(.eyebrow) {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
}

.project-summary {
  padding: 0 44px;
  border-bottom: 1px solid var(--line);
}

.project-summary dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1220px;
  margin: 0 auto;
  border-left: 1px solid var(--line);
}

.project-summary div {
  min-height: 124px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.project-summary dt {
  margin-bottom: 18px;
  color: var(--olive);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.project-summary dd {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.project-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.48fr) minmax(0, 1fr);
  gap: 46px;
  align-items: start;
  max-width: 1220px;
  margin: 0 auto;
  padding: 96px 44px;
}

.project-section.split {
  align-items: center;
  border-top: 1px solid var(--line);
}

.project-section-copy {
  position: sticky;
  top: 96px;
}

.project-section-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(26px, 3.2vw, 42px);
}

.project-section-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.drawing-image {
  border: 1px solid var(--line);
  background: white;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 18px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 44px 96px;
}

.project-gallery figure {
  margin: 0;
}

.project-gallery .gallery-wide {
  grid-column: 1 / -1;
}

.project-gallery img,
.detail-pair img {
  border-radius: var(--radius);
  object-fit: cover;
}

.project-gallery img {
  aspect-ratio: 4 / 3;
}

.project-gallery .gallery-wide img {
  aspect-ratio: 16 / 9;
}

.project-gallery figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.detail-pair {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 18px;
}

.detail-pair img {
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: cover;
}

.next-project {
  display: flex;
  justify-content: center;
  padding: 24px 44px 96px;
}

.next-project a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
}

.basic-detail {
  background: var(--bg);
}

.basic-title {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
  padding: 92px 24px 48px;
  text-align: center;
}

.basic-title h1 {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.12;
}

.basic-title p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.basic-stack {
  display: grid;
  gap: 38px;
  width: min(960px, calc(100% - 44px));
  margin: 0 auto;
  padding-bottom: 72px;
}

.basic-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: white;
}

.basic-photo::after {
  position: absolute;
  right: 22px;
  bottom: 20px;
  width: clamp(74px, 10vw, 132px);
  aspect-ratio: 300 / 96;
  content: "";
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.72;
  pointer-events: none;
}

.basic-photo.watermark-light::after {
  background-image: url("assets/brand/watermark-corner-white.png");
}

.basic-photo.watermark-dark::after {
  background-image: url("assets/brand/watermark-corner-charcoal.png");
  opacity: 0.58;
}

.basic-photo img {
  width: 100%;
  max-height: 76vh;
  object-fit: cover;
}

.basic-photo.drawing-card {
  padding: 18px;
  border: 1px solid var(--line);
}

.basic-photo.drawing-card img {
  max-height: none;
  object-fit: contain;
}

.basic-photo.portrait-photo {
  width: min(620px, 100%);
  justify-self: center;
}

.basic-photo.portrait-photo img {
  max-height: 82vh;
}

.detail-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 24px 96px;
}

.detail-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding: 18px 22px 0;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    gap: 18px;
  }

  .nav a {
    padding: 14px 0;
    white-space: nowrap;
  }

  .hero {
    min-height: 720px;
  }

  .hero-media img {
    min-height: 720px;
  }

  .hero-copy {
    padding: 0 22px 72px;
  }

  .intro,
  .portfolio-section,
  .archive,
  .process,
  .contact {
    padding: 72px 22px;
  }

  .project-grid,
  .archive-layout,
  .archive-feature,
  .process-list,
  .contact {
    grid-template-columns: 1fr;
  }

  .project-grid {
    gap: 14px;
  }

  .project-card img {
    aspect-ratio: 16 / 11;
  }

  .process-list li {
    min-height: 170px;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 22px;
  }

  .project-title,
  .project-section,
  .project-gallery,
  .project-summary,
  .next-project {
    padding-left: 22px;
    padding-right: 22px;
  }

  .project-summary dl,
  .project-section,
  .project-gallery,
  .detail-pair {
    grid-template-columns: 1fr;
  }

  .project-section-copy {
    position: static;
  }

  .project-gallery .gallery-wide {
    grid-column: auto;
  }

  .basic-stack {
    width: calc(100% - 28px);
    gap: 24px;
  }

  .basic-photo::after {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 560px) {
  .brand-text {
    font-size: 12px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-media img {
    min-height: 680px;
  }

  h1 {
    font-size: 40px;
  }

  .button,
  .blog-links a {
    width: 100%;
  }

  .section-heading {
    display: block;
  }
}
