/* ==========================================================================
   후랭키배 — 따뜻한 종이 위에 걸린 작품들
   ========================================================================== */

:root {
  --paper: #f6f0e6;
  --paper-deep: #eee4d4;
  --paper-dark: #e3d6c1;
  --mat: #fffdf9;
  --ink: #2b211b;
  --ink-2: #5a4a3f;
  --ink-3: #8b7869;
  --line: #ddcfbb;
  --accent: #b0502a;
  --accent-deep: #8d3c1c;
  --accent-soft: #f0d9c8;

  --serif: 'Gowun Batang', 'Nanum Myeongjo', 'AppleMyungjo', serif;
  --sans: 'Gowun Dodum', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --hand: 'Nanum Pen Script', 'Gowun Dodum', cursive;
  --latin: 'Cormorant Garamond', 'Gowun Batang', Georgia, serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 4.5vw, 48px);
  --shadow: 0 1px 1px rgba(70, 45, 25, .08), 0 14px 30px -16px rgba(70, 45, 25, .5);
  --shadow-lift: 0 2px 2px rgba(70, 45, 25, .08), 0 24px 44px -18px rgba(70, 45, 25, .55);
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6.5C18 3.2 34 7.6 52 5.2S88 3 118 5.6' stroke='%23b0502a' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--paper);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.85;
  word-break: keep-all;
  overflow-wrap: break-word;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}

/* 종이 결 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32  0 0 0 0 .22  0 0 0 0 .12  0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main { flex: 1; }

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

a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

::selection { background: var(--accent-soft); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.35; margin: 0; letter-spacing: -.01em; }

p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }

.hand { font-family: var(--hand); }
.latin { font-family: var(--latin); font-style: italic; }
.muted { color: var(--ink-3); }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 4px;
}
.skip:focus { left: 8px; }

/* ---------- 머리글 ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.site-header .inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand b { font-size: 22px; letter-spacing: -.02em; }
.brand i { font-family: var(--latin); font-size: 17px; color: var(--ink-3); }

.nav { display: flex; gap: clamp(16px, 2.6vw, 34px); font-family: var(--sans); font-size: 15.5px; }
.nav a { position: relative; color: var(--ink-2); text-decoration: none; padding: 4px 1px; }
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: ''; position: absolute; left: -3px; right: -3px; bottom: -3px; height: 7px;
  background: var(--brush) no-repeat center / 100% 100%;
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); }
.nav a[aria-current='page'] { color: var(--ink); }

.brand i.alt-ko { font-family: var(--serif); font-style: normal; font-size: 15px; }

/* 언어 전환 */
.lang { display: flex; align-items: center; gap: 2px; font-family: var(--sans); font-size: 13px; letter-spacing: .04em; }
.lang a { padding: 3px 7px; border-radius: 999px; color: var(--ink-3); text-decoration: none; border: 1px solid transparent; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { color: var(--ink); border-color: var(--line); background: var(--mat); pointer-events: none; }

/* 메뉴가 많아 좁은 화면에서는 두 줄: 위에 이름·언어, 아래에 옆으로 넘기는 메뉴 */
@media (max-width: 1080px) {
  .site-header .inner { padding-block: 12px 0; row-gap: 4px; }
  .lang { order: 2; margin-left: auto; }
  .nav {
    order: 3; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter));
    padding: 6px var(--gutter) 12px; gap: clamp(18px, 4vw, 30px);
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; }
}
@media (max-width: 560px) {
  .brand i { display: none; }
  .nav { font-size: 15px; }
}

/* ---------- 공통 조각 ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .72em 1.35em;
  font-family: var(--sans); font-size: 15.5px; line-height: 1;
  color: var(--mat); background: var(--ink);
  border: 1px solid var(--ink); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--mat); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--mat); border-color: var(--ink); }

.kicker { font-family: var(--hand); font-size: 25px; line-height: 1.2; color: var(--accent); margin: 0 0 .25em; }

.section { padding-block: clamp(56px, 9vw, 112px); }
.section.tint { background: color-mix(in srgb, var(--paper-deep) 70%, transparent); }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.sec-head .more { font-family: var(--sans); font-size: 15px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.sec-head .more:hover { color: var(--accent-deep); }

.page-head { padding-block: clamp(48px, 8vw, 96px) clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(34px, 5.4vw, 56px); letter-spacing: -.02em; }
.page-head .lead { margin-top: 18px; max-width: 640px; color: var(--ink-2); font-size: 18px; }

.work-title { font-family: var(--latin); font-weight: 500; font-size: 1.05em; letter-spacing: .02em; font-variant-numeric: lining-nums; }

/* 액자 */
.frame {
  display: block; width: 100%;
  padding: clamp(6px, 1vw, 10px);
  background: var(--mat);
  border: 0; border-radius: 1px;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform .35s ease, box-shadow .35s ease;
}
.frame img { width: 100%; height: auto; background: var(--paper-dark); }
.frame:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.frame-cap { margin-top: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14.5px; color: var(--ink-3); }
.frame-cap .work-title { color: var(--ink); font-size: 17px; }

/* 스크롤 등장 */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 홈: 첫 화면 ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 112px);
}
.hero .eyebrow { font-family: var(--hand); font-size: clamp(24px, 2.6vw, 30px); color: var(--accent); margin: 0 0 6px; }
.hero-name { font-size: clamp(56px, 9vw, 108px); line-height: 1.02; letter-spacing: -.045em; }
.hero-latin { font-family: var(--latin); font-style: italic; font-size: clamp(26px, 3.2vw, 38px); color: var(--ink-2); margin: 6px 0 26px; }
.hero-lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 30em; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-wall { display: flex; align-items: flex-start; gap: clamp(12px, 2vw, 26px); }
.hero-wall figure { margin: 0; min-width: 0; }
.hero-wall figure:nth-child(1) { margin-top: 44px; }
.hero-wall figure:nth-child(3) { margin-top: 92px; }
.hero-wall figcaption { margin-top: 10px; font-family: var(--latin); font-size: 15px; letter-spacing: .02em; color: var(--ink-3); text-align: center; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-wall { max-width: 520px; margin-inline: auto; width: 100%; }
}

/* 영어 페이지 */
html[lang='en'] .hero-name { font-size: clamp(48px, 7.2vw, 92px); letter-spacing: -.035em; }
html[lang='en'] body { word-break: normal; }
.hero-latin[lang='ko'] { font-family: var(--serif); font-style: normal; font-size: clamp(22px, 2.6vw, 30px); }
.h1-sub { font-weight: 400; font-size: .5em; color: var(--ink-3); margin-left: .25em; letter-spacing: 0; }

/* 인용 띠 */
.quote-band { text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 820px; }
.quote-band .q { font-size: clamp(28px, 4.4vw, 48px); line-height: 1.4; letter-spacing: -.02em; }
.quote-band .q::before, .quote-band .q::after { color: var(--accent); }
.quote-band .q::before { content: '“'; }
.quote-band .q::after { content: '”'; }
.quote-band p.sub { margin: 26px auto 0; max-width: 620px; color: var(--ink-2); }
.quote-band .sig { width: 92px; margin: 30px auto 0; opacity: .85; }
.quote-band .more { display: inline-block; margin-top: 16px; font-family: var(--sans); font-size: 15px; color: var(--ink-2); }

/* 대표작 카드 */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3.4vw, 44px); align-items: start; }
.feature-grid article:nth-child(2) { margin-top: clamp(0px, 5vw, 64px); }
.feature-grid h3 { font-size: 20px; margin-top: 18px; }
.feature-grid p { color: var(--ink-2); font-size: 15.5px; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid article:nth-child(2) { margin-top: 0; }
  .feature-grid article:nth-child(3) { display: none; }
}
@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; gap: 48px; }
  .feature-grid article { width: 100%; max-width: 300px; margin-inline: auto; }
  .feature-grid article:nth-child(3) { display: block; }
}

.pad-b { padding-bottom: clamp(64px, 10vw, 120px); }
.center { text-align: center; }
.center .btn { margin-top: 12px; }
.center p { max-width: 560px; margin-inline: auto; color: var(--ink-2); }

.lead-big { font-size: clamp(19px, 2vw, 22px); line-height: 1.8; }

.title-guide { padding: clamp(22px, 3vw, 34px); background: color-mix(in srgb, var(--paper-deep) 80%, transparent); border-radius: 2px; }
.title-guide p { margin: 0; }
.title-guide .kicker { margin-bottom: 4px; }

/* 최근 활동 줄 */
.recent { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.recent li { list-style: none; padding: 22px 22px 6px 0; border-right: 1px solid var(--line); margin-right: 22px; }
.recent li:last-child { border-right: 0; margin-right: 0; }
.recent .d { font-family: var(--latin); font-size: 18px; color: var(--accent); }
.recent .t { margin-top: 6px; font-size: 15.5px; line-height: 1.7; }
@media (max-width: 860px) {
  .recent { grid-template-columns: 1fr 1fr; }
  .recent li:nth-child(2) { border-right: 0; margin-right: 0; }
}
@media (max-width: 520px) {
  .recent { grid-template-columns: 1fr; }
  .recent li { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
}

/* 글 목록 */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: grid; grid-template-columns: 9em 1fr auto; gap: 8px 28px; align-items: baseline; padding: 24px 0; text-decoration: none; }
.post-list time { font-family: var(--latin); font-size: 18px; color: var(--ink-3); }
.post-list h3 { font-size: 20px; }
.post-list p { grid-column: 2; margin: 4px 0 0; color: var(--ink-2); font-size: 15.5px; }
.post-list .arrow { grid-row: 1; grid-column: 3; color: var(--ink-3); transition: transform .25s, color .25s; }
.post-list a:hover h3 { color: var(--accent-deep); }
.post-list a:hover .arrow { transform: translateX(4px); color: var(--accent); }
@media (max-width: 620px) {
  .post-list a { grid-template-columns: 1fr; }
  .post-list p { grid-column: 1; }
  .post-list .arrow { display: none; }
}

.notice { padding: 20px 24px; background: var(--paper-deep); border-left: 3px solid var(--accent); font-family: var(--sans); font-size: 15px; color: var(--ink-2); }
.notice code { font-size: 14px; }

/* ---------- 바닥글 ---------- */

.site-footer { margin-top: auto; border-top: 1px solid var(--line); padding-block: 48px calc(40px + env(safe-area-inset-bottom, 0px)); font-family: var(--sans); font-size: 14.5px; color: var(--ink-2); }
.site-footer .inner { display: grid; grid-template-columns: auto 1fr auto; gap: 20px 36px; align-items: center; }
.site-footer .sig { width: 64px; opacity: .8; }
.site-footer .who b { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.site-footer .who span { font-family: var(--latin); font-style: italic; font-size: 16px; margin-left: 8px; }
.site-footer .who p { margin: 4px 0 0; color: var(--ink-3); font-size: 13.5px; }
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.site-footer .links a { text-decoration: none; color: var(--ink-2); }
.site-footer .links a:hover { color: var(--accent-deep); }
@media (max-width: 720px) {
  .site-footer .inner { grid-template-columns: auto 1fr; }
  .site-footer .links { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---------- 작품 ---------- */

.series-intro { max-width: 700px; color: var(--ink-2); }

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
}
.feature-row:nth-child(even) .fr-media { order: 2; }
.fr-media { max-width: 460px; width: 100%; justify-self: center; }
.fr-num { font-family: var(--latin); font-size: 18px; color: var(--accent); }
.fr-text h2 { font-size: clamp(26px, 3.2vw, 34px); margin: 6px 0 4px; }
.fr-text .meta { font-size: 15px; color: var(--ink-3); margin-bottom: 22px; }
.fr-text .meta .work-title { color: var(--ink-2); font-size: 18px; }
.fr-text p { color: var(--ink-2); }
@media (max-width: 760px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .fr-media { order: 0; }
  .fr-media { max-width: 380px; }
}

.notable { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.notable article { padding: 26px 28px; background: var(--mat); box-shadow: var(--shadow); border-radius: 2px; }
.notable .when { font-family: var(--latin); color: var(--accent); font-size: 17px; }
.notable h3 { font-size: 21px; margin: 4px 0 10px; }
.notable p { font-size: 15.5px; color: var(--ink-2); margin-bottom: 12px; }
.notable a { font-family: var(--sans); font-size: 14px; }
@media (max-width: 680px) { .notable { grid-template-columns: 1fr; } }

/* 제목 읽는 법 */
.title-key { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; margin: 22px 0 14px; font-family: var(--latin); }
.title-key span { display: flex; flex-direction: column; align-items: center; padding: 10px 14px 8px; background: var(--mat); box-shadow: var(--shadow); border-radius: 2px; }
.title-key b { font-size: clamp(24px, 3vw, 32px); font-weight: 500; line-height: 1.1; }
.title-key small { font-family: var(--sans); font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.title-key span:first-child b { color: var(--ink-3); }
.title-key span:nth-child(2) b { color: #3653b8; }
.title-key span:nth-child(3) b { color: #b0502a; }
.title-key span:nth-child(4) b { color: #a8791b; }
.title-key span:nth-child(5) b { color: #9a2f63; }
.title-key span:nth-child(6) b { color: #2d6a5a; }

/* ---------- 갤러리 ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip {
  font-family: var(--sans); font-size: 14.5px;
  padding: 7px 15px; border-radius: 999px;
  background: transparent; color: var(--ink-2);
  border: 1px solid var(--line); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--mat); }
.chip .n { opacity: .6; margin-left: 4px; font-size: 12.5px; }

/* 모든 작품을 같은 비율의 매트에 넣어, 최신 작품부터 왼쪽→오른쪽으로 읽히게 */
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 42vw), 1fr)); gap: clamp(26px, 3.4vw, 44px) clamp(16px, 2.4vw, 30px); }
.archive-grid figure { margin: 0; }
.archive-grid figure[hidden] { display: none; }
.archive-grid .frame { aspect-ratio: 5 / 8; display: flex; align-items: center; justify-content: center; }
.archive-grid .frame img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.archive-grid .frame-cap { font-size: 13.5px; }
.archive-grid .frame-cap .work-title { font-size: 15.5px; }

.count-line { font-family: var(--sans); font-size: 14.5px; color: var(--ink-3); margin: -18px 0 28px; }

/* ---------- 라이트박스 ---------- */

.lightbox {
  width: 100vw; height: 100vh; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(28, 22, 18, .96);
  color: #efe6d8;
}
.lightbox::backdrop { background: rgba(28, 22, 18, .6); }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; grid-template-rows: 1fr auto; align-items: center; }
.lb-stage { grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: center; height: 100%; padding: 56px 0 12px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100dvh - 190px); width: auto; height: auto; background: var(--mat); padding: 8px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.lb-cap { grid-column: 1 / -1; grid-row: 2; text-align: center; padding: 8px 24px calc(22px + env(safe-area-inset-bottom, 0px)); }
.lb-cap .work-title { font-size: 22px; color: #fff; }
.lb-cap .when { font-family: var(--sans); font-size: 14px; color: #b9a995; margin-top: 2px; }
.lb-cap .theme { font-size: 15px; color: #e6d7c3; margin-top: 4px; }
.lb-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(239, 230, 216, .25); background: rgba(239, 230, 216, .06);
  color: #efe6d8; font-size: 22px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; justify-self: center;
  transition: background .2s;
}
.lb-btn:hover { background: rgba(239, 230, 216, .18); }
.lb-prev { grid-column: 1; grid-row: 1; }
.lb-next { grid-column: 3; grid-row: 1; }
.lb-close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 14px; }
.lb-count { position: absolute; top: calc(24px + env(safe-area-inset-top, 0px)); left: 22px; font-family: var(--latin); font-size: 16px; color: #b9a995; }
@media (max-width: 620px) {
  .lightbox[open] { grid-template-columns: 0 1fr 0; }
  .lb-stage { padding-inline: 12px; }
  .lb-prev, .lb-next { position: absolute; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); top: auto; width: 42px; height: 42px; }
  .lb-prev { left: 14px; }
  .lb-next { right: 14px; }
  .lb-cap { padding-inline: 64px; }
}

/* ---------- 소개 ---------- */

.about-intro { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.portrait { background: var(--mat); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); border-radius: 1px; }
.portrait img { width: 100%; }
.portrait figcaption { margin-top: 14px; text-align: center; font-family: var(--hand); font-size: 22px; color: var(--ink-3); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); font-size: 16px; }
.facts dt { color: var(--ink-3); font-family: var(--sans); font-size: 14.5px; padding-top: 2px; }
.facts dd { margin: 0; }
@media (max-width: 760px) {
  .about-intro { grid-template-columns: 1fr; }
  .portrait { max-width: 300px; }
}

.prose p { color: var(--ink-2); }
.prose p:first-of-type::first-letter { font-size: 1.1em; }
.pull { margin: 36px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--accent); font-size: clamp(22px, 2.8vw, 28px); line-height: 1.5; }
.pull cite { display: block; margin-top: 8px; font-style: normal; font-family: var(--sans); font-size: 14.5px; color: var(--ink-3); }

.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.roles li { padding: 20px 22px; background: var(--mat); box-shadow: var(--shadow); border-radius: 2px; }
.roles b { display: block; font-size: 18px; }
.roles span { display: block; margin-top: 4px; color: var(--ink-2); font-size: 15px; }
.roles small { display: block; margin-top: 6px; color: var(--ink-3); font-family: var(--sans); font-size: 13px; }
@media (max-width: 620px) { .roles { grid-template-columns: 1fr; } }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 7.1em; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 6.4em 1fr; gap: 0 1.8em; padding: 9px 0; position: relative; }
.timeline li::before { content: ''; position: absolute; left: calc(7.1em - 4px); top: 21px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink-3); }
.timeline li.hl::before { background: var(--accent); border-color: var(--accent); }
.timeline .d { font-family: var(--latin); font-size: 17px; color: var(--ink-3); text-align: right; white-space: nowrap; padding-top: 1px; }
.timeline .t { font-size: 16px; color: var(--ink-2); }
.timeline li.hl .t { color: var(--ink); font-weight: 700; }
.timeline li.year-start { margin-top: 10px; }
@media (max-width: 520px) {
  .timeline::before { left: 5px; }
  .timeline li { grid-template-columns: 1fr; padding-left: 26px; }
  .timeline li::before { left: 1px; top: 17px; }
  .timeline .d { text-align: left; font-size: 16px; }
}

/* ---------- 활동 ---------- */

.honors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.honors article { padding: 28px 26px; background: var(--mat); box-shadow: var(--shadow); border-radius: 2px; position: relative; overflow: hidden; }
.honors article::after { content: ''; position: absolute; left: 26px; right: 40%; bottom: 18px; height: 8px; background: var(--brush) no-repeat left / 100% 100%; opacity: .55; }
.honors .d { font-family: var(--latin); font-size: 18px; color: var(--accent); }
.honors h3 { font-size: 21px; margin: 6px 0 8px; }
.honors p { font-size: 15px; color: var(--ink-2); margin-bottom: 18px; }
@media (max-width: 820px) { .honors { grid-template-columns: 1fr; } }

.acts { list-style: none; margin: 0; padding: 0; }
.acts > li { display: grid; grid-template-columns: 11em 1fr; gap: 8px 40px; padding-block: 34px; border-top: 1px solid var(--line); }
.acts .when .d { font-family: var(--latin); font-size: 19px; color: var(--ink); }
.acts .when .p { font-family: var(--sans); font-size: 13.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.5; }
.acts h3 { font-size: 22px; margin-bottom: 10px; }
.acts p { color: var(--ink-2); font-size: 16px; }
.acts blockquote { margin: 16px 0; padding: 14px 20px; background: var(--paper-deep); border-left: 3px solid var(--accent); font-size: 16px; }
.acts blockquote cite { display: block; margin-top: 6px; font-style: normal; font-family: var(--sans); font-size: 13.5px; color: var(--ink-3); }
.acts .links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--sans); font-size: 14px; }
.acts .photos { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.acts .photos button { width: 132px; padding: 5px; }
.acts .photos img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 680px) { .acts > li { grid-template-columns: 1fr; } }

/* 언론보도 */
.press-featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.press-card {
  display: flex; flex-direction: column; gap: 10px; min-height: 210px;
  padding: 26px 26px 22px; background: var(--mat); box-shadow: var(--shadow); border-radius: 2px;
  text-decoration: none; color: var(--ink); transition: transform .3s ease, box-shadow .3s ease;
}
.press-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--ink); }
.press-card .outlet { font-family: var(--sans); font-size: 13.5px; letter-spacing: .04em; color: var(--accent); }
.press-card .ttl { font-size: 19px; line-height: 1.55; flex: 1; }
.press-card .d { font-family: var(--sans); font-size: 13px; color: var(--ink-3); }
@media (max-width: 820px) { .press-featured { grid-template-columns: 1fr; } .press-card { min-height: 0; } }
.press-year .orig { display: block; font-size: 14px; color: var(--ink-3); margin-top: 2px; }

.press-year { display: grid; grid-template-columns: 5em 1fr; gap: 0 32px; padding-block: 18px; border-top: 1px solid var(--line); }
.press-year > h3 { font-family: var(--latin); font-weight: 500; font-size: 26px; color: var(--accent); line-height: 1.4; }
.press-year ul { list-style: none; margin: 0; padding: 0; }
.press-year li + li { margin-top: 10px; }
.press-year a { text-decoration: none; display: block; }
.press-year a:hover .ttl { color: var(--accent-deep); text-decoration: underline; text-decoration-color: var(--accent-soft); }
.press-year .ttl { font-size: 16.5px; }
.press-year .src { display: block; font-family: var(--sans); font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 560px) { .press-year { grid-template-columns: 1fr; } }

/* ---------- 영상 ---------- */

.vframe { background: var(--mat); padding: clamp(6px, 1vw, 10px); box-shadow: var(--shadow); border-radius: 1px; }
.vframe iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }

.vthumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; overflow: hidden; background: #1c1612; cursor: pointer; color: #fff; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.vthumb:hover img { transform: scale(1.035); }
.vthumb .play {
  position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(28, 22, 18, .7);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3); transition: background .25s, transform .25s;
}
.vthumb .play::before { content: ''; margin-left: 4px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.vthumb:hover .play, .vthumb:focus-visible .play { background: var(--accent); transform: scale(1.07); }
.vthumb .dur { position: absolute; right: 8px; bottom: 8px; padding: 1px 7px; border-radius: 3px; background: rgba(0, 0, 0, .75); color: #fff; font-family: var(--sans); font-size: 12.5px; line-height: 1.6; }
.vthumb .ext { position: absolute; left: 8px; top: 8px; padding: 1px 8px; border-radius: 3px; background: rgba(255, 253, 249, .92); color: var(--ink); font-family: var(--sans); font-size: 12px; line-height: 1.6; }

.video-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(48px, 7vw, 88px); }
.video-feature .vthumb .play { width: 76px; height: 76px; }
.video-feature .vthumb .play::before { border-width: 13px 0 13px 22px; }
.video-feature h2 { font-size: clamp(24px, 3vw, 32px); margin: 4px 0 10px; }
.video-feature .meta { font-family: var(--sans); font-size: 14.5px; color: var(--ink-3); }
.video-feature p { color: var(--ink-2); margin-top: 16px; }
@media (max-width: 820px) { .video-feature { grid-template-columns: 1fr; } }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: clamp(28px, 3.4vw, 44px) clamp(18px, 2.4vw, 30px); }
.vcard[hidden] { display: none; }
.vcard h3 { font-size: 17px; line-height: 1.5; margin-top: 14px; }
.vcard .meta { font-family: var(--sans); font-size: 13.5px; color: var(--ink-3); margin-top: 4px; }
.video-note { margin-top: clamp(40px, 5vw, 64px); font-family: var(--sans); font-size: 14px; color: var(--ink-3); }

/* 영상 크게 보기 */
.vbox .vb-stage { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; justify-content: center; height: 100%; min-height: 0; padding: 64px 16px 8px; }
.vbox .vb-frame { width: min(100%, calc((100dvh - 190px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.vbox .vb-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.vbox .lb-cap .ttl { font-size: 18px; color: #fff; }
.vbox .lb-cap a { color: #d9c9b3; }

/* ---------- 아버지 배동신의 방 ---------- */

/* 수채화 물빛 — 이 방에서는 강조색이 무등산의 푸른빛으로 바뀝니다 */
.room-dongshin {
  --accent: #3f6190;
  --accent-deep: #2c4569;
  --accent-soft: #d6e1ef;
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6.5C18 3.2 34 7.6 52 5.2S88 3 118 5.6' stroke='%233f6190' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.ds-hero-wrap { position: relative; overflow: hidden; }
.ds-hero-wrap::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 55% at 80% 28%, rgba(74, 118, 170, .17), transparent 70%),
    radial-gradient(26% 40% at 62% 78%, rgba(214, 138, 118, .15), transparent 70%),
    radial-gradient(30% 45% at 12% 12%, rgba(222, 190, 110, .14), transparent 70%);
}
.ds-hero { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(48px, 8vw, 104px); }
.ds-portrait { margin: 0; background: var(--mat); padding: clamp(10px, 1.4vw, 16px); box-shadow: var(--shadow); max-width: 380px; transform: rotate(-1.2deg); }
.ds-portrait img { width: 100%; height: auto; filter: sepia(.12); }
.ds-intro h1 { font-size: clamp(48px, 7.5vw, 88px); line-height: 1.05; letter-spacing: -.04em; }
.ds-intro .hanja { font-size: .42em; font-weight: 400; color: var(--ink-3); letter-spacing: .06em; margin-left: .2em; }
.ds-years { font-family: var(--latin); font-size: clamp(22px, 2.6vw, 30px); color: var(--ink-2); margin: 10px 0 28px; }
.ds-quote { margin: 0; padding-left: 22px; border-left: 3px solid var(--accent); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.8; color: var(--ink-2); max-width: 34em; }
.ds-quote cite, .ds-essay cite { display: block; margin-top: 10px; font-style: normal; font-family: var(--sans); font-size: 14px; color: var(--ink-3); }
@media (max-width: 760px) {
  .ds-hero { grid-template-columns: 1fr; }
  .ds-portrait { max-width: 260px; }
}

.prose-h { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 28px; }

.ds-group { display: flex; align-items: center; gap: 14px; font-size: 19px; margin: clamp(36px, 5vw, 56px) 0 20px; }
.ds-group:first-of-type { margin-top: 0; }
.ds-group::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.ds-grid { display: grid; gap: clamp(24px, 3vw, 40px) clamp(16px, 2.4vw, 30px); }
.ds-grid.people { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1000px) { .ds-grid.people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ds-grid.people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ds-grid.land { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.ds-grid figure { margin: 0; }
.ds-grid .frame { display: flex; align-items: center; justify-content: center; }
.ds-grid.people .frame { aspect-ratio: 3 / 4; }
.ds-grid.land .frame { aspect-ratio: 4 / 3; }
.ds-grid .frame img { width: auto; height: auto; max-width: 100%; max-height: 100%; background: transparent; }
.ds-cap { margin-top: 12px; }
.ds-cap b { font-size: 16.5px; }
.ds-cap span { display: block; font-family: var(--sans); font-size: 13px; color: var(--ink-3); line-height: 1.5; margin-top: 2px; }

.ds-essay { margin: 0 0 clamp(36px, 5vw, 56px); max-width: 820px; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.85; color: var(--ink-2); padding-left: 24px; border-left: 3px solid var(--accent); }

/* 인증 작품 갤러리 */
.ds-archive { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 42vw), 1fr)); gap: clamp(22px, 3vw, 36px) clamp(14px, 2vw, 24px); }
.ds-archive figure { margin: 0; }
.ds-archive figure[hidden] { display: none; }
.ds-archive .frame { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; }
.ds-archive .frame img { width: 100%; height: 100%; object-fit: contain; background: transparent; }
.ds-archive .frame.static { cursor: default; }
.ds-archive .frame.static:hover { transform: none; box-shadow: var(--shadow); }
.ds-archive figcaption { margin-top: 10px; }
.ds-archive figcaption b { display: block; font-size: 15.5px; }
.ds-archive figcaption span { display: block; font-family: var(--sans); font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.ds-archive-note { margin-top: 28px; font-family: var(--sans); font-size: 13.5px; color: var(--ink-3); }

/* 연혁 — 탭 */
.tl-tabs { display: flex; gap: 8px; margin-bottom: 28px; }
.tl-tabs [role='tab'] {
  font-family: var(--sans); font-size: 15px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
}
.tl-tabs [role='tab'][aria-selected='true'] { background: var(--ink); border-color: var(--ink); color: var(--mat); }
.tl-tabs .n { margin-left: 6px; font-size: 12.5px; opacity: .65; }

/* 대표 성과 — 가로 타임라인 */
.ms-wrap { position: relative; }
.milestones {
  list-style: none; margin: 0; padding: 4px 2px 18px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 0;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.tl-panel .decade { max-width: 820px; }
.milestones li { position: relative; padding: 34px 26px 0 0; scroll-snap-align: start; }
.milestones li::before { content: ''; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--line); }
.milestones li::after { content: ''; position: absolute; top: 3px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--paper); }
.milestones .y { display: block; font-family: var(--latin); font-size: 34px; line-height: 1; color: var(--accent); }
.milestones .d { display: block; min-height: 1.4em; font-family: var(--latin); font-size: 15px; color: var(--ink-3); margin-top: 4px; }
.milestones .t { display: block; margin-top: 8px; font-size: 15.5px; line-height: 1.7; color: var(--ink); }
.ms-nav {
  position: absolute; top: -62px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--mat); color: var(--ink); font-size: 20px; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.ms-nav.prev { right: 48px; }
.ms-nav.next { right: 0; }
.ms-nav:disabled { opacity: .35; cursor: default; }
@media (max-width: 560px) { .ms-nav { display: none; } .milestones { grid-auto-columns: 78%; } }

/* 전체 연혁 — 10년 단위 */
.decade { border-top: 1px solid var(--line); }
.decade:last-child { border-bottom: 1px solid var(--line); }
.decade summary {
  display: flex; align-items: baseline; gap: 10px; padding: 16px 4px; cursor: pointer; list-style: none;
  font-family: var(--latin); font-size: 24px; color: var(--ink);
}
.decade summary::-webkit-details-marker { display: none; }
.decade summary small { font-family: var(--sans); font-size: 13px; color: var(--ink-3); }
.decade summary::after { content: '+'; margin-left: auto; font-family: var(--sans); font-size: 22px; color: var(--ink-3); transition: transform .25s; }
.decade[open] summary::after { transform: rotate(45deg); }
.decade .timeline { padding-bottom: 18px; }

.ds-words { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ds-words figure { margin: 0; padding: 28px 30px; background: var(--mat); box-shadow: var(--shadow); border-radius: 2px; }
.ds-words blockquote { margin: 0; font-size: clamp(20px, 2.2vw, 25px); line-height: 1.55; letter-spacing: -.01em; }
.ds-words blockquote::before { content: '“'; color: var(--accent); }
.ds-words blockquote::after { content: '”'; color: var(--accent); }
.ds-words .wide { grid-column: 1 / -1; }
.ds-words .wide blockquote { font-size: clamp(18px, 1.8vw, 21px); }
.ds-words figcaption { margin-top: 14px; font-family: var(--sans); font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 680px) { .ds-words { grid-template-columns: 1fr; } }

.hwaju { margin: 0 auto 26px; max-width: 520px; background: var(--mat); padding: 12px; box-shadow: var(--shadow); }
.hwaju img { width: 100%; height: auto; }

.ds-son { max-width: 820px; }
.ds-son { margin-top: 56px; padding: clamp(24px, 3vw, 36px); background: color-mix(in srgb, var(--accent-soft) 45%, transparent); border-radius: 2px; }
.ds-son p { color: var(--ink-2); }
.ds-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-family: var(--sans); font-size: 14px; }

/* 홈의 '아버지, 배동신' 띠 */
.ds-band-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.ds-band .frame { cursor: pointer; }
.ds-band h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 18px; }
.ds-band p { color: var(--ink-2); }
.ds-band .btn { margin-top: 8px; }
@media (max-width: 760px) { .ds-band-inner { grid-template-columns: 1fr; } }

/* ---------- 글 ---------- */

.post-head { padding-block: clamp(48px, 8vw, 96px) 12px; }
.post-head time { font-family: var(--latin); font-size: 19px; color: var(--accent); }
.post-head h1 { font-size: clamp(30px, 4.6vw, 46px); margin-top: 8px; letter-spacing: -.02em; }
.post-head .summary { color: var(--ink-3); margin-top: 14px; }

.article { padding-bottom: 72px; font-size: 18px; line-height: 1.95; }
.article h2 { font-size: 24px; margin: 1.8em 0 .6em; }
.article h3 { font-size: 20px; margin: 1.6em 0 .5em; }
.article p { margin: 0 0 1.2em; }
.article blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); color: var(--ink-2); }
.article blockquote p:last-child { margin-bottom: 0; }
.article img { margin: 1.6em auto; background: var(--mat); padding: 8px; box-shadow: var(--shadow); }
.article hr { border: 0; height: 10px; margin: 2.4em auto; width: 120px; background: var(--brush) no-repeat center / 100% 100%; opacity: .6; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article a { color: var(--accent-deep); }

.back { display: inline-block; margin-top: 8px; font-family: var(--sans); font-size: 15px; color: var(--ink-2); text-decoration: none; }
.back:hover { color: var(--accent-deep); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
