:root {
  color-scheme: light;
  --ink: #17120e;
  --muted: #695d51;
  --paper: #fbf4e9;
  --paper-deep: #eee1d0;
  --line: rgba(23, 18, 14, 0.16);
  --accent: #c24f2f;
  --accent-dark: #7b2d1d;
  --night: #17120e;
  --white: #fffaf2;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Gowun Dodum", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 1px 1px, rgba(23, 18, 14, 0.14) 1px, transparent 0) 0 0 / 24px 24px, var(--paper);
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, padding 180ms ease;
}
.site-header.scrolled {
  padding-block: 14px;
  background: rgba(245, 240, 232, 0.9);
  color: var(--ink);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand, .nav-links { display: flex; align-items: center; }
.brand { gap: 10px; font-weight: 800; }
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-family: "Fraunces", serif;
}
.nav-links { gap: clamp(16px, 3vw, 34px); font-size: 14px; font-weight: 700; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #15110e;
  border-bottom: 2px solid rgba(255, 250, 242, 0.24);
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto clamp(22px, 5vw, 70px) clamp(22px, 5vw, 70px) auto;
  width: clamp(130px, 19vw, 250px);
  aspect-ratio: 1; border: 1px solid rgba(255, 250, 242, 0.36); border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, var(--accent) 0 10px, transparent 11px), radial-gradient(circle at 31% 34%, rgba(255, 250, 242, 0.58) 0 3px, transparent 4px), radial-gradient(circle at 68% 31%, rgba(255, 250, 242, 0.38) 0 3px, transparent 4px), radial-gradient(circle at 70% 69%, rgba(255, 250, 242, 0.28) 0 3px, transparent 4px), rgba(255, 250, 242, 0.08);
  box-shadow: inset 0 0 0 18px rgba(255, 250, 242, 0.12), 0 30px 90px rgba(0, 0, 0, 0.36);
  z-index: 2;
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(circle at 18% 42%, rgba(194, 79, 47, 0.2), transparent 28%), linear-gradient(90deg, rgba(21, 17, 14, 0.96) 0 43%, rgba(21, 17, 14, 0.82) 57%, rgba(21, 17, 14, 0.18) 100%); }
.hero-image {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(62vw, 900px);
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: sepia(0.12) saturate(0.82) contrast(1.04);
  opacity: 0.78;
  transform: scale(1.03);
  animation: settle 1400ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-content {
  position: relative;
  z-index: 3;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding-top: 82px;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.42);
}
.eyebrow, .section-kicker, .project-type {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-family: "Fraunces", "Gowun Batang", serif;
  font-size: clamp(74px, 15vw, 188px);
  line-height: 0.82;
}
.hero h2 {
  max-width: 780px;
  margin: 36px 0 0;
  font-family: "Gowun Batang", serif;
  font-size: clamp(34px, 5.6vw, 78px);
  line-height: 1.18;
  font-weight: 700;
}
.hero p:not(.eyebrow) {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 250, 242, 0.76);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}
.hero-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  font-size: clamp(19px, 2.7vw, 32px); font-weight: 700;
  color: var(--white);
}
.hero-dots span::before {
  content: "";
  display: inline-block;
  width: 0.45em; height: 0.45em;
  margin-right: 0.32em;
  border-radius: 999px;
  background: var(--accent);
  vertical-align: 0.08em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 2px solid var(--ink);
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.button:hover, .text-link:hover { transform: translateY(-2px); }
.button.primary { border-color: var(--white); background: var(--white); color: var(--ink); }
.button.secondary { border-color: rgba(255, 250, 242, 0.5); color: var(--white); background: rgba(255, 250, 242, 0.08); }
.button.dark { margin-top: 34px; border-color: var(--ink); background: var(--ink); color: var(--white); }

.section, .lab {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(82px, 11vw, 140px) 0;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.7fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
  margin-bottom: 58px;
}
.section-head h2, .story-block h2, .archive-copy h2, .works-copy h2, .lab h2 {
  margin: 0;
  font-family: "Gowun Batang", serif;
  font-size: clamp(34px, 5vw, 70px);
  line-height: 1.12;
}
.section-head p, .story-block p, .archive-copy p, .works-copy p, .lab-project p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.78;
}

.story-block {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}
.story-block p + p { margin-top: 18px; }
.meaning-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 58px;
  border-block: 2px solid var(--ink);
}
.meaning-list article { min-height: 210px; padding: 30px; background: rgba(251, 244, 233, 0.82); }
.meaning-list article + article { border-left: 2px solid var(--ink); }
.meaning-list span { display: block; margin-bottom: 18px; color: var(--accent-dark); font-family: "Fraunces", serif; font-size: 34px; }
.meaning-list p, .archive-list span, .portfolio-item span, .request-grid p { margin: 0; color: var(--muted); line-height: 1.75; }

.archive {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 90px);
  padding: clamp(86px, 10vw, 140px) max(20px, calc((100vw - var(--max)) / 2));
  background: var(--paper-deep);
  border-block: 2px solid var(--ink);
}
.archive-list { display: grid; border-top: 2px solid var(--ink); }
.archive-list article { padding: 28px 0; border-bottom: 2px solid var(--ink); background: transparent; }
.archive-list p, .portfolio-item p {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.archive-list h3, .portfolio-item h3 { margin: 0 0 10px; font-size: clamp(22px, 2.4vw, 32px); }

.works {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: center;
  padding: clamp(86px, 10vw, 150px) max(20px, calc((100vw - var(--max)) / 2));
  background: var(--night);
  color: var(--white);
}
.works-copy p { margin-top: 22px; color: rgba(255, 250, 242, 0.72); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.portfolio-item { display: grid; gap: 18px; align-content: start; }
.portfolio-item img {
  width: 100%;
  aspect-ratio: 0.72;
  object-fit: cover;
  object-position: top;
  background: #fffdf7;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
  transition: transform 220ms ease;
}
.portfolio-item:hover img { transform: translateY(-6px); }
.portfolio-item h3 { color: var(--white); }
.portfolio-item span { color: rgba(255, 250, 242, 0.72); }

.request-guide { padding-bottom: clamp(64px, 8vw, 110px); }
.request-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 2px solid var(--ink);
}
.request-grid article { min-height: 210px; padding: 28px; background: rgba(251, 244, 233, 0.82); }
.request-grid article + article { border-left: 2px solid var(--ink); }
.request-grid h3 { margin: 0 0 14px; font-size: 22px; }

.lab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 54px; border: 2px solid var(--ink); }
.lab-project { min-height: 320px; padding: clamp(28px, 5vw, 54px); background: rgba(251, 244, 233, 0.86); }
.lab-project + .lab-project { border-left: 2px solid var(--ink); }
.muted-project { background: var(--paper-deep); }
.lab-project p:not(.project-type) { margin: 18px 0 28px; }
.text-link { display: inline-flex; color: var(--accent-dark); font-weight: 800; transition: transform 180ms ease; }

.footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 24px;
  align-items: end;
  padding: 44px clamp(20px, 4vw, 56px);
  background: var(--ink);
  color: rgba(255, 250, 242, 0.72);
}
.footer p { margin: 0 0 6px; }
.footer-brand { color: var(--white); font-family: "Fraunces", serif; font-size: 24px; }
.footer address { font-style: normal; font-weight: 800; color: var(--white); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1.03); } }

@media (max-width: 820px) {
  .site-header { padding: 18px 20px; }
  .nav-links { display: none; }
  .hero { min-height: 92svh; }
  .hero::before { opacity: 0.72; transform: translate(34%, 18%); }
  .hero::after { background: rgba(21, 17, 14, 0.76); }
  .hero-image { width: 100%; opacity: 0.38; }
  .hero-content { margin-inline: 20px; padding-top: 84px; }
  .section-head, .story-block, .meaning-list, .archive, .works, .request-grid, .lab-grid, .footer { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 34px; }
  .archive, .works { padding-inline: 20px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .meaning-list article + article, .request-grid article + article, .lab-project + .lab-project { border-left: 0; border-top: 2px solid var(--ink); }
  .footer { align-items: start; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .portfolio-item img { aspect-ratio: 0.78; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; scroll-behavior: auto !important; transition-duration: 1ms !important; }
}
