/* STUDIO HONG — shared styles */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600&family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Noto+Serif+KR:wght@400;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  --paper-hero: #D2C8BC;   /* 로고 영상 배경색과 동일 */
  --paper: #EEE8DE;
  --paper-2: #E5DDD1;
  --paper-3: #DAD0C3;
  --ink: #1C1A17;
  --ink-2: #3B3732;
  --muted: #7B7369;
  --line: rgba(28, 26, 23, .14);
  --line-strong: rgba(28, 26, 23, .32);
  --red: #C02A1E;          /* 다홍 포인트 */
  --red-deep: #9E2117;
  --gold: #9B7A44;         /* 로고·작은 강조에만 */
  --serif-ko: 'Noto Serif KR', serif;
  --serif-en: 'Cormorant Garamond', 'Noto Serif KR', serif;
  --wordmark: 'Cinzel', 'Cormorant Garamond', serif;
  --sans: 'Pretendard', system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1440px;
  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.005em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--red); color: var(--paper); }

/* subtle hanji grain over everything */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 200;
  opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.4 0 0 0 0 0.34 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: var(--wordmark); font-weight: 600;
  letter-spacing: .22em; font-size: 15px; line-height: 1;
  color: var(--ink); white-space: nowrap;
}
.wordmark.gold { color: var(--gold); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(238, 232, 222, .88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav .wrap { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; gap: clamp(24px, 3vw, 48px); list-style: none; }
.nav-links a {
  font-size: 12.5px; font-weight: 600; letter-spacing: .18em;
  position: relative; padding: 6px 0; color: var(--ink-2);
}
.nav-links a::after {
  content: ''; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; border-radius: 50%;
  background: var(--red); transform: translateX(-50%) scale(0); transition: transform .25s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: translateX(-50%) scale(1); }

.nav-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .3s ease, top .3s ease; }
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-open .nav-toggle span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--paper);
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.nav-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--serif-en); font-size: 44px; font-weight: 500; letter-spacing: .06em;
  padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline;
}
.mobile-menu a small { font-family: var(--sans); font-size: 13px; color: var(--muted); letter-spacing: 0; }
.mobile-menu .mm-foot { margin-top: 40px; font-size: 14px; color: var(--muted); display: grid; gap: 4px; }

@media (max-width: 760px) {
  :root { --nav-h: 60px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .wordmark { font-size: 13px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 52px; padding: 0 28px; font-size: 15px; font-weight: 600; letter-spacing: .01em;
  border: 1px solid var(--ink); transition: background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn .arr { display: inline-block; transition: transform .25s ease; font-family: var(--sans); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--red); border-color: var(--red); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; color: var(--ink-2); text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-bottom: 28px; border-bottom: 1px solid var(--line-strong); margin-bottom: clamp(28px, 4vw, 48px);
}
.sec-title {
  font-family: var(--serif-en); font-weight: 500; font-size: clamp(44px, 6.4vw, 92px);
  line-height: .95; letter-spacing: .01em; margin-top: 14px;
}
.sec-title .ko { display: block; font-family: var(--serif-ko); font-size: clamp(16px, 1.4vw, 19px); font-weight: 400; letter-spacing: 0; color: var(--ink-2); margin-top: 14px; line-height: 1.5; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600;
  padding: 10px 0; border-bottom: 1px solid var(--ink); white-space: nowrap;
}
.link-arrow:hover { color: var(--red); border-color: var(--red); }
.link-arrow .arr { transition: transform .25s ease; }
.link-arrow:hover .arr { transform: translateX(4px); }

/* ---------- Work cards ---------- */
.work { display: block; text-align: left; width: 100%; cursor: pointer; }
.work-thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-3);
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.work:hover .work-thumb img { transform: scale(1.03); }
.work-thumb::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,18,15,.35), transparent 45%);
  opacity: 0; transition: opacity .4s ease;
}
.work:hover .work-thumb::after { opacity: 1; }
.play {
  position: absolute; left: 20px; bottom: 20px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 12px;
  background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .14em;
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease;
}
.play i { width: 0; height: 0; border-left: 9px solid var(--red); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.work:hover .play, .work:focus-visible .play { opacity: 1; transform: none; }
@media (hover: none) { .play { opacity: 1; transform: none; } }

/* placeholder thumbnail (자료 미입력) */
.thumb-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background:
    repeating-linear-gradient(135deg, rgba(28,26,23,.045) 0 1px, transparent 1px 14px),
    var(--paper-2);
  color: var(--muted); font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 12px; letter-spacing: .04em; text-align: center; padding: 16px;
  border: 1px dashed var(--line-strong);
}
.thumb-empty b { font-family: var(--serif-en); font-weight: 500; font-size: clamp(28px, 3vw, 44px); color: rgba(28,26,23,.18); letter-spacing: .12em; font-style: italic; }

.work-meta { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; padding-top: 18px; }
.work-genre { font-size: 11.5px; font-weight: 700; letter-spacing: .2em; color: var(--red); text-transform: uppercase; }
.work-genre span { color: var(--muted); font-weight: 500; letter-spacing: .04em; margin-left: 8px; text-transform: none; }
.work-genre.tbd-genre { color: var(--muted); font-weight: 500; letter-spacing: .02em; border-bottom: 1px dashed var(--line-strong); justify-self: start; }
.work-genre.tbd-genre::before { content: '✎ '; }
.work-info { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.work-title { grid-column: 1 / -1; font-family: var(--serif-ko); font-weight: 600; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.35; letter-spacing: -.01em; }
.work-desc { grid-column: 1 / -1; font-size: 15px; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.tbd { color: var(--muted); font-weight: 400; }
.tbd::before { content: '✎ '; font-size: .8em; }
.work-title.tbd { font-family: var(--sans); font-weight: 500; font-size: 17px; border-bottom: 1px dashed var(--line-strong); justify-self: start; }

.work.lead .work-thumb { aspect-ratio: 2.39 / 1; }
.work.lead .work-title { font-size: clamp(26px, 3vw, 40px); }
@media (max-width: 760px) { .work.lead .work-thumb { aspect-ratio: 16 / 9; } }

/* ---------- Genre filter ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  height: 40px; padding: 0 18px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px; transition: all .2s ease; background: transparent;
}
.filter small { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter[aria-pressed="true"] small { color: rgba(238,232,222,.6); }

/* ---------- Video modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 300; background: rgba(20, 18, 15, .92);
  display: flex; align-items: center; justify-content: center; padding: var(--pad);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-inner { width: min(1280px, 100%); }
.modal-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-cap { display: flex; justify-content: space-between; gap: 20px; color: var(--paper); padding-top: 16px; font-size: 14px; }
.modal-cap .work-genre { color: #E0574A; }
.modal-cap a { color: rgba(238,232,222,.7); border-bottom: 1px solid rgba(238,232,222,.3); }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; color: var(--paper);
  font-size: 28px; line-height: 1; font-weight: 300;
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(238,232,222,.62); padding: 56px 0 40px; font-size: 13px; }
.footer .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.footer .wordmark { color: var(--gold); font-size: 18px; }
.footer nav { display: flex; gap: 28px; letter-spacing: .16em; font-weight: 600; font-size: 12px; }
.footer nav a:hover { color: var(--paper); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
