/*
Theme Name: SYHONG — Lenticular Dark
Theme URI: https://www.syhong.com
Author: Hong Sungyong
Description: 홍성용 작가 공식 홈페이지 맞춤 테마. 다크 몰입형, 3D 렌티큘러 인터랙티브 뷰어 내장.
Version: 2.0.0
Requires PHP: 7.4
Text Domain: syhong
*/

:root {
  --bg: #060607;
  --bg-soft: #0d0d10;
  --bg-card: #0a0a0d;
  --ink: #ececef;
  --ink-dim: #9a9aa4;
  --ink-faint: #5c5c66;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --accent-a: #8a5cf5;   /* 작품의 보라 노이즈 */
  --accent-b: #4d95ff;   /* 작품의 청색 노이즈 */
  --glow-a: rgba(138, 92, 245, 0.16);
  --glow-b: rgba(77, 149, 255, 0.10);
  --max: 1200px;
  --headh: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── 테마: 포스퍼 그린 (html[data-theme="green"]) — 블랙은 유지, 포인트만 인광 초록 ──
   근거: TV 브라운관 인광 = 초록 (인트로의 TV), Noise #04 등 작품의 초록 계열과 공명 */
html[data-theme="green"] {
  --bg: #050807;
  --bg-soft: #0a100c;
  --bg-card: #080d0a;
  --accent-a: #35e08a;   /* 에메랄드 인광 */
  --accent-b: #a8e063;   /* 새싹 연둣빛 */
  --glow-a: rgba(53, 224, 138, 0.13);
  --glow-b: rgba(168, 224, 99, 0.07);
}
html[data-theme="green"] ::selection { background: rgba(53, 224, 138, 0.35); }
html[data-theme="green"] .lenticular-stage::before {
  background: linear-gradient(135deg, rgba(53,224,138,.45), transparent 30%, transparent 70%, rgba(168,224,99,.30));
}
html[data-theme="green"] .works-grid a.card:hover::after { box-shadow: inset 0 0 0 1px rgba(53, 224, 138, 0.45); }
html[data-theme="green"] .site-foot { background: linear-gradient(180deg, transparent, rgba(53, 224, 138, 0.035)); }
html[data-theme="green"] .prose a { border-bottom-color: rgba(53, 224, 138, 0.45); }
html[data-theme="green"] .prose details[open] { border-color: rgba(53, 224, 138, 0.3); }

/* 테마 스위처 (푸터의 색 점 2개) */
.theme-dots { margin-top: 18px; display: flex; gap: 10px; justify-content: center; }
.theme-dots button {
  width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line);
  cursor: pointer; padding: 0; transition: transform .2s, border-color .2s;
}
.theme-dots button:hover { transform: scale(1.2); border-color: var(--ink-dim); }
.theme-dots .t-violet { background: linear-gradient(135deg, #8a5cf5, #4d95ff); }
.theme-dots .t-green { background: linear-gradient(135deg, #35e08a, #a8e063); }
.theme-dots button.on { border-color: #fff; }

* { margin: 0; padding: 0; box-sizing: border-box; }

/* 스크린리더·검색엔진 전용 (화면엔 안 보이지만 읽힘) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1100px 520px at 82% -8%, var(--glow-b), transparent 60%),
    radial-gradient(900px 620px at -12% 12%, var(--glow-a), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(138, 92, 245, 0.35); color: #fff; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
/* 이미지 가드 — 드래그 저장·iOS 롱프레스 저장 억제 (img-guard.js 와 세트) */
img, canvas {
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

:focus-visible { outline: 1px solid var(--accent-b); outline-offset: 3px; }

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

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

main { padding-top: var(--headh); position: relative; z-index: 1; }
.site-foot { position: relative; z-index: 1; }

body.home main { padding-top: 0; } /* 홈 히어로는 헤더 아래로 깔림 */

/* ── 리딩룸(밝은 페이지) — CRITIQUE·CV·NEWS·CONTACT ──
   전시장(다크)과 대비되는 따뜻한 도록 종이 톤. 악센트는 동일하게 유지. */
body.reading {
  --bg: #eae7e0;
  --bg-soft: #e0dcd3;
  --bg-card: #f6f4ef;
  --ink: #1d1c21;
  --ink-dim: #3e3c46;
  --ink-faint: #6c6875;
  --line: rgba(22, 20, 30, 0.14);
  --line-soft: rgba(22, 20, 30, 0.08);
  --glow-a: rgba(138, 92, 245, 0.07);
  --glow-b: rgba(77, 149, 255, 0.055);
  /* 깨끗한 단색 화이트큐브. 옛 radial-gradient + background-attachment:fixed 는
     스크롤할 때마다 배경 전체를 다시 칠해(비쌈) 배경이 '점점 하얗게 번지는' 느낌을 줬다
     — 제거(사용자 지시 2026-07-16). 벽처럼 균일한 배경이 작품에 더 집중된다. */
  background: var(--bg);
  color: var(--ink);
}
/* 헤더는 불투명한 순백. 반투명이면 뒤의 어두운 성운이 비쳐 '탁한 흰색'이 된다
   (사용자 지적 2026-07-14). backdrop-filter 도 끈다 — 불투명이라 의미 없고, 모바일에선 비싸다. */
body.reading .site-head { background: #fff; backdrop-filter: none; }
body.reading .brand { color: #17161b; }
body.reading .brand:hover { text-shadow: 0 0 20px rgba(138, 92, 245, 0.3); }
body.reading .site-nav a:hover,
body.reading .site-foot a:hover,
body.reading .prose a:hover,
body.reading .series-tabs a:hover,
body.reading .series-tabs a.on,
body.reading .block h2 a:hover,
body.reading .works-grid a.card:hover .meta strong,
body.reading .lenticular-cam:hover,
body.reading .intro-skip:hover,
body.reading .prose details summary:hover { color: #17161b; }
body.reading .site-foot { background: linear-gradient(180deg, transparent, rgba(138, 92, 245, 0.05)); }
body.reading .prose details { background: rgba(248, 246, 241, 0.7); }
body.reading .cv-list li:hover, body.reading .steps li:hover { background: rgba(22, 20, 30, 0.035); color: var(--ink); }
body.reading ::selection { background: rgba(138, 92, 245, 0.22); color: #17161b; }
body.reading ::-webkit-scrollbar-track { background: var(--bg); }
body.reading ::-webkit-scrollbar-thumb { background: #c4c0b6; border: 2px solid var(--bg); }
body.reading ::-webkit-scrollbar-thumb:hover { background: #b9b6ad; }

/* 화이트 큐브 — 밝은 벽에 맞춘 작품 그림자·프레임 */
body.reading .works-grid.flow a.card img {
  outline-color: rgba(22, 20, 30, 0.10);
  /* 부양 그림자 — 조명 아래 벽에서 떠 있는 액자 */
  box-shadow:
    0 34px 60px -18px rgba(38, 32, 58, 0.38),
    0 14px 28px rgba(38, 32, 58, 0.14),
    0 4px 10px rgba(38, 32, 58, 0.10);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
body.reading .works-grid.flow a.card:hover { transform: translateY(-6px); } /* 캔버스·캡션 포함 카드 전체가 떠오름 */
body.reading .works-grid.flow a.card:hover img {
  box-shadow:
    0 48px 80px -20px rgba(38, 32, 58, 0.42),
    0 20px 40px rgba(38, 32, 58, 0.16),
    0 6px 14px rgba(38, 32, 58, 0.10);
}
body.reading .hero .lenticular-stage {
  box-shadow:
    0 38px 70px -20px rgba(38, 32, 58, 0.40),
    0 16px 32px rgba(38, 32, 58, 0.15);
}
body.reading .lenticular-stage canvas { outline-color: rgba(22, 20, 30, 0.10); }
body.reading .lenticular-cam { background: rgba(240, 238, 232, 0.85); }
body.reading .works-grid a.card { background: transparent; }
/* 밝은 인트로 — 갤러리 벽 위 TV, 먹색 타이틀 */
body.reading .tv-intro { background: #eae7e0; }
body.reading .intro-title {
  background: none; -webkit-background-clip: initial; background-clip: initial;
  color: var(--ink);
  text-shadow: 0 0 26px rgba(234, 231, 224, 0.95), 0 0 8px rgba(234, 231, 224, 0.9);
  filter: blur(6px);
}
body.reading .tv-intro.arrived .intro-title { filter: blur(0); }
body.reading .intro-tag { color: #55515f; text-shadow: 0 0 14px rgba(234, 231, 224, 0.9); }
body.reading .intro-skip { background: rgba(240, 238, 232, 0.7); }
/* 흡인 이후 — 어둠 속 도착: 타이틀·UI를 다시 밝은 글자로 */
body.reading .tv-intro.gone-dark .intro-title {
  background: linear-gradient(180deg, #ffffff 30%, #8f8f9c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
}
body.reading .tv-intro.gone-dark .intro-tag { color: #cfc9f2; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.9); }
body.reading .tv-intro.gone-dark .intro-scroll { color: rgba(235, 235, 245, 0.55); }
body.reading .tv-intro.gone-dark .intro-scroll:hover { color: #fff; }
body.reading .tv-intro.gone-dark .intro-skip {
  background: rgba(9, 9, 12, 0.55); color: rgba(235, 235, 245, 0.6);
  border-color: rgba(255, 255, 255, 0.16);
}
body.reading .tv-intro.gone-dark .intro-skip:hover { color: #fff; }
/* 흰 벽에서는 그라디언트(흰) 제목 대신 먹색 */
body.reading .hero h1 {
  background: none; -webkit-background-clip: initial; background-clip: initial;
  color: var(--ink);
}
body.reading .hero .hint { color: var(--ink-faint); }

/* ── 헤더 ─────────────────────────────── */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: transform .38s var(--ease);
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(6, 6, 7, 0.66);
  border-bottom: 1px solid var(--line-soft);
}
.site-head.head-hide { transform: translateY(-100%); }
.site-head.intro-veil { transform: translateY(-100%); }   /* 인트로 동안 메뉴 숨김 — 성운 도착 후 등장 */

.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--headh);
}
.brand {
  letter-spacing: 0.22em; font-size: 22px; font-weight: 600; color: #fff;
  transition: text-shadow .3s;
}
.brand:hover { text-shadow: 0 0 22px var(--glow-a), 0 0 8px rgba(255,255,255,0.25); }
.brand small { display: block; font-size: 13px; letter-spacing: 0.34em; color: var(--ink-faint); font-weight: 400; }

.site-nav a {
  position: relative;
  margin-left: 28px; font-size: 14.5px; letter-spacing: 0.12em; color: var(--ink-dim);
  transition: color .25s;
}
.site-nav a:hover { color: #fff; }
.site-nav > a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  transition: right .35s var(--ease);
}
.site-nav > a:hover::after { right: 0; }

/* ── PORTFOLIO 메가 드롭다운 — 시리즈 대표 이미지 서브메뉴 ── */
.nav-drop { position: relative; display: inline-block; }
.nav-drop > a { position: relative; display: inline-block; padding: 21px 6px; }
.nav-drop > a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 17px; height: 1px;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  transition: right .35s var(--ease);
}
.nav-drop > a:hover::after { right: 0; }
.drop-panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  display: none; gap: 14px; padding: 18px;
  background: rgba(240, 238, 232, 0.97);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line-soft);
  box-shadow: 0 26px 60px rgba(38, 32, 58, 0.18);
  animation: dropIn .22s var(--ease);
}
@keyframes dropIn { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.drop-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* hover 다리 */
.nav-drop:hover .drop-panel, .nav-drop:focus-within .drop-panel { display: flex; }
.drop-item { display: flex; flex-direction: column; gap: 9px; margin: 0 !important; padding: 0 !important; width: 128px; }
.drop-item img {
  width: 128px; height: 128px; object-fit: cover; display: block;
  outline: 1px solid var(--line-soft);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.drop-item:hover img { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(38, 32, 58, 0.25); }
.drop-item span { font-size: 10.5px; letter-spacing: 0.2em; text-align: center; color: var(--ink-dim); line-height: 1.6; }
.drop-item:hover span { color: #17161b; }
.drop-item.drop-archive { justify-content: center; align-items: center; width: 96px; border: 1px dashed var(--line); }
@media (max-width: 900px) {
  /* 모바일 버거 메뉴: PORTFOLIO 아래 시리즈 썸네일이 가로로 펼쳐짐 */
  .nav-drop { display: block; }
  .nav-drop > a { display: block; padding: 13px 26px; }
  .nav-drop > a::after { display: none; }
  .drop-panel {
    display: flex !important; position: static; transform: none; animation: none;
    background: none; border: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    padding: 2px 26px 14px; gap: 10px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .drop-panel::before { display: none; }
  .drop-item { width: 74px; flex: 0 0 auto; gap: 6px; }
  .drop-item img { width: 74px; height: 74px; }
  .drop-item span { font-size: 8.5px; letter-spacing: 0.12em; }
  .drop-item.drop-archive { width: 74px; }
}

/* 메뉴 글자와 패널 사이 틈에서 hover가 끊기지 않도록 투명 다리 */

/* ── TV 인트로 (홈) ───────────────────── */
.tv-intro {
  position: relative; height: 100vh; height: 100svh;
  overflow: hidden; background: #060607;
}
.tv-intro canvas { position: absolute; inset: 0; display: block; }

.intro-ui {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; text-align: center; pointer-events: none;
  padding-bottom: 26vh;   /* 타이틀을 상단 별하늘 영역으로 (성운은 하단에 만개) */
}
.intro-title {
  font-size: clamp(26px, 4.6vw, 46px); font-weight: 250;
  letter-spacing: 0.32em; text-indent: 0.32em;
  background: linear-gradient(180deg, #ffffff 30%, #8f8f9c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(16px) scale(0.98);
  filter: blur(6px) drop-shadow(0 2px 18px rgba(0,0,0,.9));
  transition: opacity 1.6s var(--ease), transform 1.6s var(--ease), filter 1.6s var(--ease);
}
.intro-tag {
  font-size: 14.5px; letter-spacing: 0.42em; text-indent: 0.42em; color: #cfc9f2;
  text-shadow: 0 1px 14px rgba(0,0,0,.95);
  opacity: 0; transform: translateY(14px);
  transition: opacity 1.4s .5s var(--ease), transform 1.4s .5s var(--ease);
}
.tv-intro.arrived .intro-title { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 2px 18px rgba(0,0,0,.9)); }
.tv-intro.arrived .intro-tag { opacity: 1; transform: none; }

/* 인트로 자막 — 우주에서 떠오르는 빛의 글: 멀리서 흐릿하게 다가와 초점이 맺힌다 */
.intro-caption {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 30px; min-height: 78px; max-width: min(720px, 88vw);
  text-align: center; pointer-events: none;
  font-size: clamp(17px, 2.2vw, 24px); font-weight: 280; letter-spacing: 0.34em; line-height: 1.9;
  color: var(--ink-dim);
  opacity: 0; transform: translateY(10px) scale(0.94);
  filter: blur(9px);
  transition:
    opacity 1.7s var(--ease), transform 1.7s var(--ease),
    filter 1.7s var(--ease), letter-spacing 1.7s var(--ease);
}
.intro-caption em { font-style: normal; font-size: 13px; letter-spacing: 0.24em; color: var(--ink-faint); }
.intro-caption.show { opacity: 1; transform: none; filter: blur(0); letter-spacing: 0.14em; }
body.reading .tv-intro.gone-dark .intro-caption {
  color: #f5f2ff;   /* 성운 속에서 발광하는 별빛 글자 */
  text-shadow:
    0 0 14px rgba(196, 168, 255, 0.8),
    0 0 36px rgba(130, 110, 255, 0.5),
    0 0 70px rgba(90, 130, 255, 0.3),
    0 2px 14px rgba(0, 0, 0, 0.85);
}
body.reading .tv-intro.gone-dark .intro-caption em {
  color: rgba(226, 220, 250, 0.85);
  text-shadow: 0 0 10px rgba(170, 150, 255, 0.55), 0 2px 10px rgba(0, 0, 0, 0.8);
}

.intro-hint {
  position: absolute; left: 0; right: 0; bottom: 9vh; z-index: 2;
  text-align: center; font-size: 12.5px; letter-spacing: 0.22em; color: var(--ink-faint);
  pointer-events: none;
  animation: hintPulse 3.2s ease-in-out infinite;
  transition: opacity .8s;
}
@keyframes hintPulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.intro-hint.gone { opacity: 0 !important; animation: none; }

.intro-skip {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 19vh; z-index: 3;   /* TV 아래 잘 보이는 위치 — 다음 장면이 있음을 알린다 */
  font: inherit; font-size: 13.5px; letter-spacing: 0.2em; color: var(--ink-dim);
  background: none; border: 1px solid var(--line-soft); border-radius: 999px;
  padding: 8px 14px; cursor: pointer; transition: color .25s, border-color .25s, opacity .22s;
}
.intro-skip:hover { color: #fff; border-color: var(--line); }
.intro-skip.gone { opacity: 0; pointer-events: none; }

.intro-scroll {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 26px; z-index: 3;
  font-size: 10px; letter-spacing: 0.34em; color: var(--ink-faint);
  padding: 10px 6px 26px;
  opacity: 0; pointer-events: none; transition: opacity 1.2s 1.4s, color .25s;
}
.intro-scroll::after {
  content: ""; position: absolute; left: 50%; bottom: 8px;
  width: 1px; height: 14px; background: linear-gradient(180deg, var(--ink-faint), transparent);
  animation: scrollNudge 2.2s ease-in-out infinite;
}
@keyframes scrollNudge { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(6px); opacity: .3; } }
.intro-scroll:hover { color: #fff; }
.tv-intro.arrived .intro-scroll { opacity: 1; pointer-events: auto; }

/* 인트로 작품 라벨 — 미술관 벽 라벨처럼: 이 인트로 자체가 하나의 작품 */
.intro-credit {
  display: flex; flex-direction: column; gap: 5px; align-items: center;
  padding: 10px 20px 12px; bottom: 30px;
}
.intro-credit::after { display: none; }   /* 스크롤 유도선 제거 */
.intro-credit .ic-title { font-size: 12px; letter-spacing: 0.18em; color: rgba(240, 237, 252, 0.8); }
.intro-credit .ic-meta { font-size: 9.5px; letter-spacing: 0.24em; color: rgba(220, 215, 238, 0.6); }
body.reading .tv-intro.gone-dark .intro-credit .ic-title { color: rgba(235, 231, 248, 0.85); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8); }
body.reading .tv-intro.gone-dark .intro-credit .ic-meta { color: rgba(210, 205, 232, 0.6); }

/* ── 히어로 ───────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: 28px;
  padding: 96px 24px 48px;
}
.hero h1 {
  font-size: clamp(26px, 4vw, 46px); font-weight: 250; letter-spacing: 0.32em;
  background: linear-gradient(180deg, #ffffff 30%, #8f8f9c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: riseIn .9s var(--ease) both;
}
.hero p.tag {
  font-size: 14.5px; letter-spacing: 0.28em; color: var(--ink-dim);
  animation: riseIn .9s .12s var(--ease) both;
}
.hero .lenticular-stage {
  box-shadow:
    0 0 90px var(--glow-a),
    0 0 240px var(--glow-b),
    0 30px 80px rgba(0, 0, 0, 0.6);
  animation: riseIn 1s .22s var(--ease) both;
}
.hero .hint { font-size: 12.5px; letter-spacing: 0.2em; color: var(--ink-faint); animation: riseIn 1s .34s var(--ease) both; }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ── 렌티큘러 뷰어 ────────────────────── */
.lenticular-stage { position: relative; }
.lenticular-stage::before {
  content: ""; position: absolute; inset: -1px; z-index: 1; pointer-events: none;
  background: linear-gradient(135deg, rgba(138,92,245,.45), transparent 30%, transparent 70%, rgba(77,149,255,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 1px;
}
.lenticular-stage canvas {
  display: block; background: #000;
  outline: 1px solid var(--line);
}
.lenticular-cam {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  font: inherit; font-size: 10px; letter-spacing: 0.14em;
  color: var(--ink-dim); background: rgba(9, 9, 12, 0.72);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; cursor: pointer;
  backdrop-filter: blur(8px); transition: color .2s, border-color .2s, box-shadow .2s;
}
.lenticular-cam:hover { color: #fff; border-color: rgba(255,255,255,0.22); }
.lenticular-cam.on { color: #fff; border-color: var(--accent-b); box-shadow: 0 0 14px var(--glow-b); }
.lenticular-load {
  position: absolute; left: 0; right: 0; bottom: -14px;
  height: 2px; background: #1a1a1e; overflow: hidden;
}
.lenticular-load i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  box-shadow: 0 0 10px var(--glow-a);
}

/* ── EXHIBITIONS — 전시 기록 ──────────── */
.exh-block { padding: 96px 0; }
.exh-block.first { padding-top: 48px; border-top: 0; }
.exh-head { margin-bottom: 40px; }
.exh-title {
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 300; letter-spacing: 0.14em;
  color: var(--ink); margin-bottom: 10px;
}
.exh-meta { font-size: 13px; letter-spacing: 0.1em; color: var(--ink-dim); }
.exh-meta .sep { margin: 0 9px; color: var(--ink-faint); }
.exh-note {
  margin-top: 16px; max-width: 720px;
  font-size: 14.5px; line-height: 1.9; color: var(--ink-dim);
}

/* 사진은 한 열로 크게 — 스크롤하며 전시장을 걷듯 */
.exh-flow { display: flex; flex-direction: column; align-items: center; gap: 70px; }
.exh-photo, .exh-video {
  position: relative; margin: 0; width: 100%; max-width: 720px;
  background: var(--bg-soft); overflow: hidden;
  box-shadow: 0 26px 54px -20px rgba(38, 32, 58, 0.34), 0 10px 22px rgba(38, 32, 58, 0.10);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.exh-photo { cursor: zoom-in; }
.exh-photo img { width: 100%; height: auto; display: block; }
.exh-photo:hover {
  transform: translateY(-5px);
  box-shadow: 0 40px 74px -22px rgba(38, 32, 58, 0.42), 0 14px 30px rgba(38, 32, 58, 0.12);
}

/* 전시 영상 */
.exh-video { aspect-ratio: 16 / 9; background: #000; box-shadow: 0 30px 60px -20px rgba(38, 32, 58, 0.42); }
.exh-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.exh-video figcaption {
  position: absolute; left: 0; right: 0; bottom: -30px;
  text-align: center; font-size: 11px; letter-spacing: 0.2em; color: var(--ink-faint);
}
.exh-flow .exh-video { margin-bottom: 30px; }

/* 스크롤 등장 (지원 브라우저에서만) */
@supports (animation-timeline: view()) {
  .exh-photo {
    animation: exhIn linear both;
    animation-timeline: view();
    animation-range: entry 5% entry 42%;
  }
  @keyframes exhIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (max-width: 640px) {
  .exh-flow { gap: 54px; }
}

/* 라이트박스 */
.exh-lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  background: rgba(10, 9, 14, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  cursor: zoom-out;
}
.exh-lightbox.on { display: flex; animation: lbIn .28s var(--ease); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.exh-lightbox img {
  max-width: 92vw; max-height: 88vh; object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.exh-lightbox button {
  position: absolute; z-index: 2;
  background: rgba(255, 255, 255, 0.06); color: rgba(240, 238, 248, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px;
  cursor: pointer; transition: background .25s, color .25s;
  display: flex; align-items: center; justify-content: center;
}
.exh-lightbox button:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.lb-close { top: 22px; right: 22px; width: 42px; height: 42px; font-size: 24px; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 28px; line-height: 1; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-count {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.2em; color: rgba(226, 222, 240, 0.6);
}
@media (max-width: 640px) {
  .lb-prev, .lb-next { width: 40px; height: 40px; font-size: 22px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}

/* 작가 포트레이트는 뺐다 (2026-07-14 사용자 지시). 관련 스타일·이미지 모두 제거. */

/* ── 생성 작품 스테이지 (genart.js) ────── */
.genart-stage {
  position: relative; margin: 0 auto; background: #000;
  overflow: hidden;
  box-shadow: 0 38px 70px -20px rgba(38, 32, 58, 0.4), 0 16px 32px rgba(38, 32, 58, 0.15);
  outline: 1px solid rgba(22, 20, 30, 0.10);
}
.genart-stage canvas { width: 100%; height: 100%; display: block; }
.genart-stage:fullscreen { box-shadow: none; outline: none; aspect-ratio: auto; }
.genart-fs { z-index: 6; }

/* ── 시리즈 카테고리 탭/드롭다운 ──────── */
.series-tabs {
  display: flex; gap: 26px; flex-wrap: wrap;
  padding-top: 44px; padding-bottom: 8px;
}
.series-tabs a {
  font-size: 14px; letter-spacing: 0.24em; color: var(--ink-dim);
  padding-bottom: 5px; border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
.series-tabs a:hover { color: #fff; border-color: var(--accent-a); }
.series-tabs a.on { color: #fff; border-image: linear-gradient(90deg, var(--accent-a), var(--accent-b)) 1; border-bottom: 1px solid; }
section.block { scroll-margin-top: calc(var(--headh) + 8px); }
/* 첫 섹션은 헤더 바로 아래서 시작 — 탭 제거 후 빈 공간 없앰 */
main > section.block:first-child { padding-top: 48px; border-top: 0; }
@media (max-width: 640px) { main > section.block:first-child { padding-top: 30px; } }

/* ── 섹션 공통 ────────────────────────── */
section.block { padding: 110px 0; border-top: 1px solid var(--line-soft); }
.block h2 {
  display: flex; align-items: baseline; gap: 18px;
  font-size: 16px; letter-spacing: 0.4em; font-weight: 500;
  color: var(--ink-dim); margin-bottom: 48px;
}
/* h2 장식 선 제거 — 선이 겹쳐 어수선함 (2026-07-08) */
.block h2 a { transition: color .25s; }
.block h2 a:hover { color: #fff; }
.block h2 .series-year { color: var(--ink-dim); letter-spacing: 0.2em; font-weight: 400; }

/* ── 작품 그리드 ──────────────────────── */
.works-grid {
  display: grid; gap: 26px 20px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.works-grid a.card {
  position: relative; overflow: hidden; background: var(--bg-card);
  transition: transform .45s var(--ease);
}
.works-grid a.card:hover { transform: translateY(-5px); }
.works-grid a.card img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  outline: 1px solid var(--line-soft); outline-offset: -1px;
  transition: transform .7s var(--ease), outline-color .35s;
}
/* 호버는 색 보정 없이 인터랙션(부양·테두리)만 */
.works-grid a.card:hover img { outline-color: rgba(138, 92, 245, 0.45); }

.works-grid .meta {
  padding: 14px 2px 4px;
  font-size: 14.5px; color: var(--ink-dim); letter-spacing: 0.06em;
  line-height: 1.75;
}
.works-grid .meta strong { font-size: 15.5px; color: var(--ink); font-weight: 500; letter-spacing: 0.1em; transition: color .25s; }
.works-grid a.card:hover .meta strong { color: #fff; }

/* 카드 호버 렌티큘러 — 아틀라스 로드 완료 시 썸네일 위에 페이드인 (card-lenticular.js) */
/* 가로형(wide) 카드 — 그리드 2칸 스팬 + 원비율 그대로 (잘림 없이 길게) */
.works-grid a.card.wide { grid-column: span 2; }
.works-grid a.card.wide img { aspect-ratio: var(--ratio, 2 / 1); }

.works-grid a.card canvas.card-lenti {
  position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1 / 1;
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
.works-grid a.card canvas.card-lenti.on { opacity: 1; }

/* ── 포트폴리오 플로우 — 한 작품씩 중앙에 크게, 스크롤로 감상 ── */
.works-grid.flow { display: flex; flex-direction: column; align-items: stretch; gap: 130px; }
.works-grid.flow a.card {
  /* 세로 중앙정렬 — 카드 너비는 더 넓은 자식(보통 캡션)에 맞춰지는데, 이미지가 블록이라
     왼쪽에 붙어 캡션(가운데정렬)과 좌우가 어긋났다(사용자 지적 2026-07-16).
     flex+align-items:center 로 이미지·캡션을 같은 중심축에 정렬한다. */
  display: flex; flex-direction: column; align-items: center;
  width: fit-content; max-width: 100%; margin: 0 auto;
  background: none; overflow: visible;
}
.works-grid.flow a.card:hover { transform: none; }
.works-grid.flow a.card::after { display: none; }
.works-grid.flow a.card img {
  /* aspect-ratio 를 --ratio(작품 실제 비율, PHP가 카드마다 주입)로 고정한다.
     'auto' 로 두면 지연로딩 이미지가 로드 전 정사각 공간을 예약하지 못해 높이 1500px 세로 상자로
     부풀어, 스크롤 중 로드되며 880 으로 줄 때 아래가 확 밀리고 거대한 빈 공백이 생겼다(사용자 지적 2026-07-14).
     --ratio 로 미리 정확한 비율을 예약하면 로드 전후가 동일해 튐·공백이 없다.
     너비는 정사각 기준 880, 세로형이면 그만큼 좁아지고, 높이 상한은 svh(스크롤 중 고정). */
  width: auto; height: auto;
  max-width: min(880px, 100%);
  max-height: 76vh; max-height: 76svh;
  aspect-ratio: var(--ratio, 1); object-fit: contain;
  outline: 1px solid var(--line-soft);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55), 0 0 70px rgba(138, 92, 245, 0.10);
}
.works-grid.flow a.card:hover img { transform: none; }
.works-grid.flow a.card.wide img { max-width: min(1150px, 100%); }
.works-grid.flow .meta { text-align: center; padding-top: 18px; }

/* 작품 문의 버튼 — 갤러리식 소장 문의 동선 */
.artwork-inquire {
  display: inline-block; margin-top: 6px; padding: 11px 26px;
  font-size: 12px; letter-spacing: 0.22em; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  transition: color .25s, border-color .25s, background .25s, transform .25s;
}
.artwork-inquire:hover {
  border-color: var(--accent-b); background: rgba(77, 149, 255, 0.07);
  transform: translateY(-1px);
}

/* 아카이브 안내 — 포트폴리오 하단 */
.archive-cta { padding: 80px 0 120px; }
.archive-note { font-size: 13px; letter-spacing: 0.1em; color: var(--ink-faint); margin-bottom: 18px; }
.archive-link {
  display: inline-block; padding: 12px 30px;
  font-size: 12.5px; letter-spacing: 0.24em; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .25s, background .25s, transform .25s;
}
.archive-link:hover { border-color: var(--accent-a); background: rgba(138, 92, 245, 0.06); transform: translateY(-1px); }

/* 렌티큘러 작품 배지 — 움직이는 작품임을 알리고 인터랙션 유도 */
.lenti-badge {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 12px; padding: 5px 12px;
  font-size: 10px; letter-spacing: 0.22em; color: var(--accent-b);
  border: 1px solid rgba(77, 149, 255, 0.30); border-radius: 999px;
}
.lenti-badge::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-b);
  box-shadow: 0 0 8px var(--accent-b);
  animation: badgePulse 2.2s ease-in-out infinite;
}
.lenti-badge em {
  font-style: normal; letter-spacing: 0.06em; color: var(--ink-faint);
  opacity: 0; max-width: 0; overflow: hidden; white-space: nowrap;
  transition: opacity .4s, max-width .5s var(--ease);
}
a.card:hover .lenti-badge em { opacity: 1; max-width: 160px; }
@keyframes badgePulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

/* 스크롤 등장 — 지원 브라우저에서만 (없어도 그냥 보임) */
@supports (animation-timeline: view()) {
  .works-grid.flow a.card {
    animation: flowIn linear both;
    animation-timeline: view();
    animation-range: entry 5% entry 45%;
  }
  @keyframes flowIn {
    from { opacity: 0; transform: translateY(36px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ── CV ──────────────────────────────── */
.cv-list { max-width: 760px; }
.cv-list h3 {
  font-size: 13.5px; letter-spacing: 0.3em; color: var(--ink-dim);
  margin: 44px 0 16px; font-weight: 500;
}
/* 이름 줄(.lead)과 첫 섹션(EDUCATION)이 붙지 않도록 — 마진 상쇄를 피해 여백을 준다 */
.prose .cv-list { margin-top: 76px; }
.cv-list h3:first-child { margin-top: 0; }
@media (max-width: 640px) { .prose .cv-list { margin-top: 52px; } }
.cv-list ul { list-style: none; }
.cv-list li {
  display: flex; gap: 20px; padding: 8px 6px;
  font-size: 15.5px; color: var(--ink-dim);
  border-bottom: 1px dashed var(--line-soft);
  transition: background .25s, color .25s;
}
.cv-list li:hover { background: rgba(255, 255, 255, 0.025); color: var(--ink); }
.cv-list li b { color: var(--ink); font-weight: 500; min-width: 46px; }

/* ── 푸터 ────────────────────────────── */
.site-foot {
  border-top: 1px solid var(--line-soft);
  padding: 64px 0 72px; text-align: center;
  font-size: 13.5px; letter-spacing: 0.18em; color: var(--ink-faint);
  background: linear-gradient(180deg, transparent, rgba(138, 92, 245, 0.035));
}
.site-foot a { color: var(--ink-dim); margin: 0 10px; transition: color .25s; }
.site-foot a:hover { color: #fff; }

/* ── 본문 페이지 (About·CV 등) ────────── */
.prose { max-width: 860px; }
.prose h3 {
  font-size: 17px; letter-spacing: 0.24em; font-weight: 600; color: var(--ink);
  margin: 76px 0 12px;
}
.prose h3:first-child { margin-top: 0; }
.prose h3 small { display: block; font-size: 11.5px; letter-spacing: 0.3em; color: var(--ink-dim); margin-top: 5px; font-weight: 400; }
.prose p { font-size: 16px; color: var(--ink-dim); margin: 14px 0; }
.prose .lead { font-size: 16.5px; color: var(--ink); line-height: 1.9; }
.prose a { color: var(--ink); border-bottom: 1px solid rgba(77, 149, 255, 0.4); transition: border-color .2s, color .2s; }
.prose a:hover { color: #fff; border-color: var(--accent-b); }
.prose blockquote {
  margin: 30px 0; padding: 6px 0 6px 24px;
  border-left: 2px solid;
  border-image: linear-gradient(180deg, var(--accent-a), var(--accent-b)) 1;
  color: var(--ink); font-size: 16px; line-height: 1.95;
}
.prose blockquote cite { display: block; margin-top: 10px; font-size: 12px; color: var(--ink-faint); font-style: normal; letter-spacing: 0.12em; }

/* 한/영 병기 2단 */
.bi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin: 18px 0 8px; }
.bi-grid .lang { font-size: 10px; letter-spacing: 0.3em; color: var(--accent-b); margin-bottom: 8px; opacity: .8; }

/* 제작 과정 단계 */
.steps { list-style: none; counter-reset: step; margin: 24px 0; max-width: 720px; }
.steps li {
  counter-increment: step;
  display: flex; gap: 18px; align-items: baseline;
  padding: 17px 6px; border-bottom: 1px dashed var(--line-soft);
  font-size: 15px; color: var(--ink);
  transition: background .25s;
}
.steps li:hover { background: rgba(255, 255, 255, 0.025); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-size: 12px; letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums; min-width: 26px;
}
.steps li small { display: block; font-size: 12.5px; color: var(--ink-faint); margin-top: 3px; }
.steps li > div { flex: 1; }

/* 접이식 전문 보기 */
.prose details {
  margin: 14px 0; border: 1px solid var(--line); background: rgba(13, 13, 16, 0.6);
  transition: border-color .25s;
}
.prose details[open] { border-color: rgba(138, 92, 245, 0.3); }
.prose details summary {
  cursor: pointer; padding: 15px 18px;
  font-size: 14px; letter-spacing: 0.18em; color: var(--ink-dim);
  list-style: none; transition: color .2s;
}
.prose details summary::-webkit-details-marker { display: none; }
.prose details summary::before { content: "+ "; color: var(--accent-b); }
.prose details[open] summary::before { content: "− "; }
.prose details summary:hover { color: #fff; }
.prose details .inner { padding: 4px 22px 20px; }
.prose details .inner p { font-size: 14.5px; }

/* 품질 모드 보드는 제거했다 (2026-07-14) — 작품을 가려서. 이제 perf-mode.js 가 기기 성능으로 자동 선택한다. */

/* ── 스크롤바 ─────────────────────────── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #232329; border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #33333c; }

/* ── 모바일·태블릿 내비: ☰ 햄버거 (900px 이하) ────────── */
.nav-burger { display: none; }
@media (max-width: 900px) {
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-burger span {
    display: block; height: 1.5px; width: 100%;
    background: var(--ink-dim); border-radius: 1px;
    transition: transform .3s var(--ease), opacity .25s, background .25s;
  }
  .nav-burger:hover span { background: #fff; }
  /* ☰ → ✕ */
  .site-head.menu-open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .site-head.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
  .site-head.menu-open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* 패널: 헤더 아래로 펼쳐지는 세로 메뉴 */
  .site-nav {
    position: fixed; left: 0; right: 0; top: var(--headh);
    display: none; flex-direction: column;
    padding: 8px 0 16px;
    background: rgba(6, 6, 9, 0.96);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    max-height: calc(100vh - var(--headh)); overflow-y: auto;
  }
  .site-head.menu-open .site-nav { display: flex; animation: menuIn .25s var(--ease); }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .site-nav a { margin: 0; padding: 13px 26px; font-size: 15px; letter-spacing: 0.22em; }
  /* 드롭다운 → 인라인 서브목록 (PORTFOLIO 아래 시리즈 들여쓰기) */
}

/* ── 모바일 ───────────────────────────── */
@media (max-width: 640px) {
  .works-grid a.card.wide { grid-column: auto; }
  .works-grid.flow { gap: 84px; }
  .works-grid.flow a.card img { max-height: 66vh; max-height: 66svh; }
  .brand { font-size: 20px; letter-spacing: 0.18em; }
  .brand small { font-size: 12px; letter-spacing: 0.28em; margin-top: 2px; }

  .hero { padding-top: calc(var(--headh) + 28px); }
  section.block { padding: 72px 0; }
  .series-tabs { gap: 18px; padding-top: 32px; }
  .bi-grid { grid-template-columns: 1fr; gap: 24px; }
  .cv-list li { gap: 14px; font-size: 14.5px; }
  .prose details .inner { padding: 4px 16px 18px; }
}

/* 리딩룸 — 모바일 메뉴 패널 */
@media (max-width: 900px) {
  body.reading .site-nav {
    background: rgba(238, 235, 228, 0.97);
    box-shadow: 0 30px 60px rgba(30, 25, 60, 0.18);
  }
  body.reading .nav-burger:hover span { background: #17161b; }
}
