:root {
  --ink: #141414;
  --ink-soft: #555;
  --line: #e4e4e4;
  --paper: #fff;
  --ph: #ececec;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Noto Sans KR", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: 48px;
  height: 76px; padding: 0 var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background .4s, color .4s, border-color .4s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.logo {
  font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: .01em; white-space: nowrap;
}
.logo .amp { font-style: italic; font-weight: 500; }
.nav { display: flex; gap: 30px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.nav a { position: relative; padding: 4px 0; opacity: .85; transition: opacity .2s; }
.nav a:hover, .nav a.is-current { opacity: 1; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); }

/* header over hero */
body.on-home .site-header { background: transparent; color: #fff; border-bottom-color: transparent; }

.menu-btn { display: none; margin-left: auto; width: 36px; height: 36px; position: relative; }
.menu-btn span { position: absolute; left: 7px; right: 7px; height: 1.5px; background: currentColor; transition: transform .3s, top .3s; }
.menu-btn span:first-child { top: 14px; }
.menu-btn span:last-child { top: 21px; }
.menu-open .menu-btn span:first-child { top: 17px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 17px; transform: rotate(-45deg); }

/* ---------- Pages ---------- */
main { min-height: 100vh; }
.page { display: none; padding: 150px var(--gutter) 120px; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; }
.page.is-active { display: block; animation: fade .6s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.page-head { margin-bottom: 64px; }
.eyebrow { font-size: 12px; letter-spacing: .14em; color: var(--ink-soft); margin-bottom: 8px; text-transform: uppercase; }
.page-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 7vw, 80px); line-height: 1; }

.prose { max-width: 680px; font-size: 15px; color: #333; }
.prose p + p { margin-top: 1.2em; }
.lead { font-size: 19px; line-height: 1.7; color: var(--ink); margin-bottom: 1.4em; font-weight: 500; }

.facts { margin-top: 48px; border-top: 1px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 140px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt { font-family: var(--serif); font-size: 17px; font-weight: 600; }

/* ---------- Home hero ---------- */
.page.page-home { padding: 0; max-width: none; }
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: #222; }
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: 70% center;
  opacity: 0; transform: scale(1.04);
  transition: opacity 1.6s ease, transform 7s ease-out;
}
.slide.is-active { opacity: 1; transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.08) 45%, rgba(0,0,0,0) 70%), linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,0) 40%); }
.hero-title { position: absolute; left: var(--gutter); bottom: 13vh; color: #fff; }
.hero-title h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(40px, 6.4vw, 96px); line-height: .98; letter-spacing: -.01em; }
.hero-sub { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 34px); margin-top: 10px; opacity: .9; }
.hero-line { display: block; width: 56px; height: 1px; background: #fff; margin-top: 28px; }
.hero-dots { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 10px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); transition: background .3s, transform .3s; }
.dot.is-active { background: #fff; transform: scale(1.15); }
.credit { position: absolute; right: var(--gutter); bottom: 24px; font-size: 11px; color: rgba(255,255,255,.75); letter-spacing: .04em; }
body.on-home .site-footer { display: none; }

/* ---------- Director ---------- */
.director { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.director-photo { position: sticky; top: 120px; }
.director-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.name-ko { font-size: clamp(36px, 4.6vw, 54px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.name-en { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--ink-soft); margin-bottom: 40px; }
.cv { margin-top: 56px; }
.cv h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; padding-bottom: 8px; border-bottom: 1px solid var(--ink); margin: 36px 0 10px; }
.cv ul { list-style: none; font-size: 14px; }
.cv li { display: grid; grid-template-columns: 90px 1fr; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cv li span { color: var(--ink-soft); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 48px 28px; }
.partners-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.projects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ph { background: var(--ph); aspect-ratio: 3 / 4; margin-bottom: 16px; filter: grayscale(1); transition: opacity .3s; }
.ph.wide { aspect-ratio: 4 / 3; }
.card-person h3, .card-project h3 { font-size: 16px; font-weight: 500; }
.card-person p { font-size: 13px; color: var(--ink-soft); }
.card-project .meta { font-size: 12px; color: var(--ink-soft); letter-spacing: .04em; }
.card-project { cursor: pointer; }
.card-project:hover .ph { opacity: .8; }

.filters { display: flex; gap: 22px; margin: -32px 0 40px; font-size: 13px; letter-spacing: .06em; }
.filters button { color: var(--ink-soft); padding-bottom: 2px; border-bottom: 1px solid transparent; }
.filters button.is-active { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); }
.contact .facts { margin-top: 32px; }
.contact-form { display: grid; gap: 22px; }
.contact-form label { display: grid; gap: 6px; font-size: 12px; letter-spacing: .08em; color: var(--ink-soft); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-size: 15px; color: var(--ink); letter-spacing: 0;
  border: 0; border-bottom: 1px solid #bbb; padding: 8px 0; background: transparent; border-radius: 0; outline: none; resize: vertical;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-bottom-color: var(--ink); }
.contact-form button[type=submit] { justify-self: start; padding: 12px 36px; background: var(--ink); color: #fff; font-size: 13px; letter-spacing: .14em; transition: opacity .2s; }
.contact-form button[type=submit]:hover { opacity: .8; }
.form-note { font-size: 13px; color: var(--ink-soft); min-height: 1em; }

/* ---------- Notice ---------- */
.notice-list { list-style: none; border-top: 1px solid var(--ink); }
.notice-list a { display: grid; grid-template-columns: 60px 1fr auto; gap: 16px; padding: 20px 4px; border-bottom: 1px solid var(--line); transition: background .2s; }
.notice-list a:hover { background: #fafafa; }
.n-no, .n-date { color: var(--ink-soft); font-size: 13px; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px var(--gutter); border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-soft); text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .site-header { height: 64px; }
  .logo { font-size: 19px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 64px 0 0 0; flex-direction: column; gap: 0;
    padding: 24px var(--gutter); background: var(--paper); color: var(--ink);
    font-family: var(--serif); font-size: 32px; font-weight: 600; text-transform: none; letter-spacing: 0;
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .3s, transform .3s;
  }
  .nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .menu-open .nav { opacity: 1; pointer-events: auto; transform: none; }
  body.menu-open.on-home .site-header { background: var(--paper); color: var(--ink); }
  .page { padding-top: 112px; }
  .director, .contact { grid-template-columns: 1fr; }
  .director-photo { position: static; max-width: 460px; }
  .slide { background-position: 68% center; }
  .hero-title { bottom: 16vh; }
}
@media (max-width: 520px) {
  .credit { display: none; }
  .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .projects-grid { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 100px 1fr; }
  .notice-list a { grid-template-columns: 1fr; gap: 2px; }
  .n-no { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .page.is-active { transition: none; animation: none; transform: none; }
}

/* ---------- Empty state ---------- */
.empty { border-top: 1px solid var(--ink); padding: 72px 0; font-size: 15px; color: var(--ink-soft); }
.empty span { display: block; font-family: var(--serif); font-style: italic; font-size: 20px; margin-top: 4px; color: #999; }

/* ---------- Contact CTA ---------- */
.facts a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.facts a:hover { border-bottom-color: currentColor; }
.contact-cta { background: #f4f4f2; padding: clamp(28px, 4vw, 48px); align-self: start; }
.cta-label { font-family: var(--serif); font-size: 28px; font-weight: 600; margin-bottom: 12px; }
.cta-text { font-size: 14px; color: #444; margin-bottom: 32px; }
.cta-btn { display: inline-flex; gap: 10px; align-items: center; padding: 14px 32px; background: var(--ink); color: #fff; font-size: 13px; letter-spacing: .12em; transition: opacity .2s; }
.cta-btn:hover { opacity: .8; }
.cta-btn span { transition: transform .2s; }
.cta-btn:hover span { transform: translateX(4px); }

/* ---------- Line breaks ---------- */
[data-page="studio"] .prose { max-width: 760px; }
.prose p, .lead { text-wrap: pretty; }
@media (max-width: 860px) {
  .br-pc { display: none; }
}
