:root {
  --ivory: #f4efe6;
  --paper: #faf7f1;
  --ink: #141210;
  --mute: #7b736a;
  --line: rgba(20, 18, 16, .14);
  --yellow: #f2c230;
  --sage: #5d6b4c;
  --gutter: clamp(20px, 4vw, 64px);
  --serif: "Instrument Serif", "Pretendard Variable", serif;
  --sans: "Inter Tight", "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --body: "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ivory) var(--grain);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px; line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; }
em { font-style: normal; }
::selection { background: var(--yellow); color: var(--ink); }

/* ── header ── */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 20px var(--gutter);
  transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.bar.solid {
  padding-block: 14px;
  background: rgba(244, 239, 230, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.logo { position: relative; font: 400 28px/1 var(--serif); letter-spacing: -.01em; }
.logo i { font-style: italic; }
.logo-dot { position: absolute; top: -2px; right: -10px; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.bar nav { display: flex; gap: 28px; margin-left: auto; }
.bar nav a { position: relative; font: 500 14px var(--sans); letter-spacing: .01em; }
.bar nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.bar nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.clock { color: var(--mute); min-width: 96px; text-align: right; }
.menu-btn { display: none; margin-left: auto; padding: 8px 14px; border: 1px solid var(--ink); border-radius: 999px; }
@media (max-width: 760px) {
  .clock { display: none; }
  .menu-btn { display: block; }
  .bar nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 8px; padding: var(--gutter);
    background: var(--ivory);
    opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  .bar nav a { font: 400 48px/1.15 var(--serif); }
  .bar.open nav { opacity: 1; pointer-events: auto; }
  /* backdrop-filter가 있으면 fixed 메뉴가 바 크기에 갇혀 찌그러진다 → 열려 있는 동안 끄기 */
  .bar.open, .bar.open.solid { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; }
  .bar nav { height: 100vh; height: 100dvh; }
}

/* ── hero : 3D 작업실 ── */
.hero {
  position: relative; height: 100svh; min-height: 600px;
  overflow: hidden; background: #efe7da;
}
#room { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero.ready #room { opacity: 1; }
.sky-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 42%; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(244, 239, 230, .94), rgba(244, 239, 230, .55) 45%, rgba(244, 239, 230, 0));
}
.loading {
  position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%);
  color: var(--mute); transition: opacity .6s;
}
.loading::after { content: ""; display: block; height: 1px; margin-top: 10px; background: var(--ink); animation: load 1.4s var(--ease) infinite; transform-origin: left; }
@keyframes load { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); transform-origin: left; } 61% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
.hero.ready .loading { opacity: 0; pointer-events: none; }
.tip {
  position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none;
  padding: 7px 12px; border-radius: 999px; white-space: nowrap;
  background: var(--ink); color: var(--ivory);
}

.hero-meta { position: absolute; bottom: 40px; z-index: 2; pointer-events: none; }
.hero-meta * { pointer-events: auto; }
.hero-meta.left { left: var(--gutter); max-width: 560px; }
.hero-meta.right { right: var(--gutter); text-align: right; max-width: 340px; }
.hero-name {
  font: 400 clamp(72px, 10vw, 168px)/.82 var(--serif); letter-spacing: -.04em;
  margin: 0 0 18px -.04em; animation: up 1.4s var(--ease) both .3s;
}
.hero-name i { font-style: italic; }
@keyframes up { from { opacity: 0; transform: translateY(30px); } }
.kicker { color: var(--mute); margin-bottom: 12px; }
.hero-copy { font-size: 15px; line-height: 1.75; }
.hero-copy em { background: linear-gradient(transparent 62%, rgba(242, 194, 48, .6) 62%); }
.scene-title { font: 400 30px/1.1 var(--serif); }
.scene-title span { font: 400 11px var(--mono); vertical-align: 12px; margin-right: 6px; color: var(--mute); }
.scene-title b { font-weight: 400; }
.scene-dots { display: flex; justify-content: flex-end; gap: 6px; margin-top: 16px; }
.scene-dots button { position: relative; width: 36px; height: 14px; }
.scene-dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line); }
.scene-dots button::after { content: ""; position: absolute; left: 0; top: 6px; height: 1px; width: 0; background: var(--ink); }
.scene-dots button[aria-selected="true"]::after { animation: prog var(--dur, 14s) linear forwards; }
@keyframes prog { to { width: 100%; } }
.hint {
  position: absolute; left: 50%; top: 92px; z-index: 2; transform: translateX(-50%);
  padding: 7px 14px; border-radius: 999px;
  background: rgba(244, 239, 230, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--mute); white-space: nowrap; pointer-events: none;
  transition: opacity .6s;
}
.hint.gone { opacity: 0; }
.hero.no-webgl .hint { display: none; }

@media (max-width: 760px) {
  .hero-meta { bottom: 28px; }
  .hero-meta.left { right: var(--gutter); }
  .hero-name { font-size: 64px; margin-bottom: 12px; }
  .hero-copy { font-size: 14px; }
  .hero-meta.right { top: 76px; bottom: auto; }
  .hero-meta.right .kicker { display: none; }
  .scene-title { font-size: 18px; }
  .scene-dots { margin-top: 8px; }
  .scene-dots button { width: 24px; }
  .hint { top: auto; bottom: 230px; font-size: 10px; }
}

/* ── section shell ── */
section:not(.hero) { padding: clamp(90px, 12vw, 170px) var(--gutter); }
.sec-head {
  display: grid; grid-template-columns: 80px 1fr auto; align-items: end; gap: 20px;
  padding-bottom: 28px; margin-bottom: clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--ink);
}
.sec-head .idx { align-self: start; padding-top: 1.2em; color: var(--mute); }
.sec-head h2 { font: 500 clamp(56px, 9vw, 150px)/.85 var(--sans); letter-spacing: -.055em; }
.sec-head .note { color: var(--mute); padding-bottom: 8px; }
@media (max-width: 640px) {
  .sec-head { grid-template-columns: 1fr; gap: 8px; }
  .sec-head .idx { padding: 0; }
}

/* ── artist ── */
.artist-grid { display: grid; grid-template-columns: clamp(220px, 24vw, 320px) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); max-width: 1180px; }
.portrait {
  position: sticky; top: 100px; align-self: start;
  aspect-ratio: 3 / 4; background: #e6dfd2 center 20% / cover; border-radius: 4px;
  display: grid; place-items: end start; padding: 18px; color: var(--mute);
  overflow: hidden;
}
.portrait.has-photo span { display: none; }
.name-en { font: 400 clamp(64px, 8vw, 120px)/.9 var(--serif); letter-spacing: -.03em; }
.name-ko { font: 600 22px var(--body); margin: 14px 0 34px; }
.name-ko span { font-weight: 400; font-size: 15px; color: var(--mute); margin-left: 10px; }
.bio { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.8; max-width: 620px; }
.career { margin: 56px 0 44px; border-top: 1px solid var(--line); }
.career div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.career dt { padding-top: 4px; color: var(--mute); }
.career b { display: block; font-weight: 600; font-size: 17px; }
.career span { color: var(--mute); font-size: 15px; }
.label { color: var(--mute); margin-bottom: 14px; }
.titles-group { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.titles-group > .mono { padding-top: 10px; color: var(--mute); }
.label + .titles-group { margin-top: 14px; }
.titles { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.titles button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; transition: background .25s, border-color .25s; }
.titles button::after { content: "↗"; font-size: 12px; color: var(--mute); transition: transform .25s; }
.titles button svg { width: 13px; height: 13px; order: 2; color: var(--mute); }
.titles button:hover { background: var(--yellow); border-color: var(--yellow); }
.titles button:hover::after { transform: translate(2px, -2px); color: var(--ink); }
.titles button:disabled { opacity: .5; cursor: default; }
@media (max-width: 640px) { .titles-group { grid-template-columns: 1fr; gap: 6px; } .titles-group > .mono { padding-top: 0; } }
@media (max-width: 860px) {
  .artist-grid { grid-template-columns: 1fr; }
  .portrait { position: relative; top: 0; width: min(62vw, 260px); }
  .career div { grid-template-columns: 1fr; gap: 4px; }
}

/* ── archive / shelf ── */
.archive { padding-right: 0 !important; }
.archive .sec-head { margin-right: var(--gutter); grid-template-columns: 80px 1fr auto auto; }
.arrows { display: flex; gap: 8px; padding-bottom: 4px; }
.arrows button { width: 46px; height: 46px; border: 1px solid var(--ink); border-radius: 50%; font-size: 16px; transition: background .3s, color .3s; }
.arrows button:hover { background: var(--ink); color: var(--ivory); }
@media (max-width: 640px) { .archive .sec-head { grid-template-columns: 1fr auto; } .archive .sec-head .idx, .archive .sec-head h2 { grid-column: 1 / -1; } }
.shelf {
  display: flex; gap: clamp(16px, 2vw, 28px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 0;
  padding: 14px var(--gutter) 30px 0;
  scrollbar-width: none;
}
.shelf::-webkit-scrollbar { display: none; }
.cover {
  --c: #d9a520;
  position: relative; flex: 0 0 clamp(230px, 23vw, 320px); aspect-ratio: 3 / 4.1;
  scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px 26px 24px 22px; text-align: left;
  background: var(--c) var(--grain);
  color: var(--ivory);
  border-radius: 3px 10px 10px 3px;
  box-shadow: inset 6px 0 0 rgba(0, 0, 0, .12), 0 1px 0 rgba(0, 0, 0, .05);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.cover::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 22px; width: 7px;
  background: rgba(20, 18, 16, .28);
}
.cover:hover, .cover:focus-visible {
  transform: translateY(-12px) rotate(var(--tilt, 0deg));
  box-shadow: inset 6px 0 0 rgba(0, 0, 0, .12), 0 30px 40px -24px rgba(20, 18, 16, .55);
  outline: none;
}
.cover:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.cover.light { color: var(--ink); }
.cover .top { display: flex; justify-content: space-between; padding-right: 18px; }
.cover .en { font: 400 clamp(34px, 3vw, 44px)/1 var(--serif); letter-spacing: -.02em; padding-right: 18px; }
.cover .ko { margin-top: 10px; font-size: 14px; opacity: .85; }
.cover .open {
  position: absolute; right: 40px; bottom: 24px;
  opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .4s var(--ease);
}
.cover:hover .open { opacity: 1; transform: none; }
.shelf .count { opacity: .75; }
/* 프로젝트 표지 (게임 아트): 스케치북과 같은 계열 + 파일철 탭, 조금 더 크게 */
.cover.project {
  flex-basis: clamp(330px, 36vw, 500px); margin-top: 18px;
  border-radius: 3px 10px 10px 10px;
}
.cover.project::after { right: auto; left: 0; width: 100%; height: 6px; top: 0; bottom: auto; background: rgba(20, 18, 16, .12); }
.pf-tab {
  position: absolute; top: -20px; left: 0; height: 22px; padding: 4px 16px 0;
  background: var(--c) var(--grain); color: inherit; border-radius: 8px 8px 0 0; opacity: .95;
}
.pf-top { display: flex; justify-content: space-between; }
.pf-art { position: absolute; inset: 0; pointer-events: none; }
.px { position: absolute; width: 6px; height: 6px; background: transparent; }
.px.heart { box-shadow: 6px 0px 0 rgba(250,247,241,.55), 12px 0px 0 rgba(250,247,241,.55), 24px 0px 0 rgba(250,247,241,.55), 30px 0px 0 rgba(250,247,241,.55), 0px 6px 0 rgba(250,247,241,.55), 6px 6px 0 rgba(250,247,241,.55), 12px 6px 0 rgba(250,247,241,.55), 18px 6px 0 rgba(250,247,241,.55), 24px 6px 0 rgba(250,247,241,.55), 30px 6px 0 rgba(250,247,241,.55), 36px 6px 0 rgba(250,247,241,.55), 0px 12px 0 rgba(250,247,241,.55), 6px 12px 0 rgba(250,247,241,.55), 12px 12px 0 rgba(250,247,241,.55), 18px 12px 0 rgba(250,247,241,.55), 24px 12px 0 rgba(250,247,241,.55), 30px 12px 0 rgba(250,247,241,.55), 36px 12px 0 rgba(250,247,241,.55), 6px 18px 0 rgba(250,247,241,.55), 12px 18px 0 rgba(250,247,241,.55), 18px 18px 0 rgba(250,247,241,.55), 24px 18px 0 rgba(250,247,241,.55), 30px 18px 0 rgba(250,247,241,.55), 12px 24px 0 rgba(250,247,241,.55), 18px 24px 0 rgba(250,247,241,.55), 24px 24px 0 rgba(250,247,241,.55), 18px 30px 0 rgba(250,247,241,.55); transform: rotate(-8deg); }
.px.coin { box-shadow: 6px 0px 0 rgba(250,247,241,.55), 12px 0px 0 rgba(250,247,241,.55), 18px 0px 0 rgba(250,247,241,.55), 0px 6px 0 rgba(250,247,241,.55), 24px 6px 0 rgba(250,247,241,.55), 0px 12px 0 rgba(250,247,241,.55), 12px 12px 0 rgba(250,247,241,.55), 24px 12px 0 rgba(250,247,241,.55), 0px 18px 0 rgba(250,247,241,.55), 24px 18px 0 rgba(250,247,241,.55), 6px 24px 0 rgba(250,247,241,.55), 12px 24px 0 rgba(250,247,241,.55), 18px 24px 0 rgba(250,247,241,.55); }
.px.buddy { box-shadow: 12px 0px 0 rgba(250,247,241,.55), 18px 0px 0 rgba(250,247,241,.55), 24px 0px 0 rgba(250,247,241,.55), 30px 0px 0 rgba(250,247,241,.55), 6px 6px 0 rgba(250,247,241,.55), 36px 6px 0 rgba(250,247,241,.55), 0px 12px 0 rgba(250,247,241,.55), 12px 12px 0 rgba(250,247,241,.55), 30px 12px 0 rgba(250,247,241,.55), 42px 12px 0 rgba(250,247,241,.55), 0px 18px 0 rgba(250,247,241,.55), 42px 18px 0 rgba(250,247,241,.55), 0px 24px 0 rgba(250,247,241,.55), 18px 24px 0 rgba(250,247,241,.55), 24px 24px 0 rgba(250,247,241,.55), 42px 24px 0 rgba(250,247,241,.55), 6px 30px 0 rgba(250,247,241,.55), 36px 30px 0 rgba(250,247,241,.55), 6px 36px 0 rgba(250,247,241,.55), 18px 36px 0 rgba(250,247,241,.55), 24px 36px 0 rgba(250,247,241,.55), 36px 36px 0 rgba(250,247,241,.55); }
.px.heart { top: 28%; left: 14%; scale: 1.6; } .px.coin { top: 20%; right: 22%; scale: 1.4; } .px.buddy { top: 42%; right: 16%; scale: 1.7; }
.cover.project.light .px { filter: invert(1) opacity(.5); }
.pf-title { display: block; }
.pf-title .en { display: block; font: 400 clamp(52px, 5vw, 76px)/.95 var(--serif); letter-spacing: -.02em; }
.pf-title .ko { display: block; margin-top: 10px; font-size: 14px; opacity: .85; }
.pf-title .mono { display: block; margin-top: 2px; }

/* 프로젝트 글 (세로 스크롤 블로그) */
.article { width: 100vw; height: 100dvh; max-width: none; max-height: none; border: 0; padding: 0; background: var(--ivory); color: var(--ink); }
.article[open] { animation: bookin .5s var(--ease); }
.article::backdrop { background: var(--ivory); }
.article .close-btn { position: fixed; }
.ar-scroll { height: 100%; overflow-y: auto; }
.ar-body { max-width: 880px; margin: 0 auto; padding: clamp(70px, 9vw, 120px) var(--gutter) 120px; }
.ar-head { padding-bottom: 40px; margin-bottom: 60px; border-bottom: 1px solid var(--ink); }
.ar-head .mono { color: var(--mute); }
.ar-head h2 { font: 400 clamp(56px, 9vw, 120px)/.9 var(--serif); letter-spacing: -.03em; margin: 12px 0 10px; }
.ar-head h2::after { content: ""; display: block; width: 64px; height: 8px; margin-top: 20px; background: var(--c, var(--yellow)); }
.ar-ko { font-weight: 700; font-size: 18px; }
.ar-desc { margin-top: 14px; font-size: 18px; color: var(--mute); max-width: 640px; }
.ar-blocks { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 90px); }
.ar-image img, .ar-image canvas, .ar-image video { width: 100%; height: auto; display: block; border-radius: 4px; }
.ar-reel { margin: 0; }
.ar-image figcaption, .ar-video figcaption, .ar-reel > figcaption { display: flex; justify-content: space-between; gap: 20px; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.ar-image figcaption span, .ar-reel > figcaption span, .ar-video figcaption span { color: var(--mute); text-align: right; }
.ar-anims { display: flex; flex-direction: column; gap: 18px; padding: 28px 20px; background: #fefefe; border: 1px solid var(--line); border-radius: 6px; }
.ar-row { display: flex; justify-content: center; align-items: flex-end; gap: 18px 22px; }
.ar-row.wrap { flex-wrap: wrap; }
.ar-anim { margin: 0; text-align: center; flex: 0 1 auto; min-width: 0; }
.ar-anim img { display: block; width: 100%; height: auto; }
.ar-anim figcaption { margin-top: 8px; font: 11px/1.2 var(--mono, ui-monospace, monospace); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.ar-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; background: #000; display: block; }
.ar-video.short { max-width: 380px; margin: 0 auto; width: 100%; }
.ar-video.short iframe { aspect-ratio: 9 / 16; border-radius: 16px; }
.ar-text { font-size: 18px; line-height: 1.85; max-width: 680px; }
.ar-text h3 { font: 400 36px/1.1 var(--serif); margin-bottom: 14px; }
.ar-text p + p { margin-top: 1em; }
.ar-end { text-align: center; margin-top: 100px; color: var(--mute); }

/* 캠코더: VHS 효과는 기본으로 끄고 버튼으로 켠다. 쇼츠는 세로 화면 */
.tapes:not(.fx) .tp-scan, .tapes:not(.fx) .tp-osd { display: none; }
.fx-toggle { margin-left: auto; padding: 8px 14px; border: 1px solid rgba(244, 239, 230, .35); border-radius: 999px; color: var(--ivory); }
.tapes.fx .fx-toggle { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.tp-screen.vertical { aspect-ratio: 9 / 16; width: auto; height: min(100%, calc(100dvh - 140px)); }

/* 오래 쓴 스케치북: 기울기, 바램, 닳은 모서리, 스티커 */
.cover:not(.vhs) { transform: rotate(var(--tilt, 0deg)); }
.cover.old { filter: saturate(.86) sepia(.08); border-radius: 3px 12px 8px 4px; }
.cover.older { filter: saturate(.72) sepia(.2) contrast(.96); border-radius: 4px 14px 6px 3px; }
.cover.old::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 250, 235, .22), transparent 7% 93%, rgba(255, 250, 235, .2)),
    linear-gradient(rgba(255, 250, 235, .18), transparent 6% 94%, rgba(255, 250, 235, .22)),
    radial-gradient(ellipse 40% 8% at 30% 62%, rgba(255, 250, 235, .14), transparent),
    radial-gradient(ellipse 30% 5% at 70% 30%, rgba(255, 250, 235, .12), transparent),
    repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 250, 235, .05) 22px 23px);
}
.cover.older::before { opacity: 1.6; }
.stickers { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.st { position: absolute; font-style: normal; display: grid; place-items: center; box-shadow: 0 2px 3px rgba(0, 0, 0, .18); }
.st.p0 { top: 22%; right: 54px; transform: rotate(-12deg); }
.st.p1 { top: 40%; right: 76px; transform: rotate(8deg); }
.st.p2 { top: 12%; left: 46%; transform: rotate(-4deg); }
.st-star { width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 20px; }
.st-dot { width: 18px; height: 18px; border-radius: 50%; background: #e0573e; }
.st-label { padding: 4px 10px; background: #fbf8f1; color: #3a3631; font: 500 12px var(--mono); border-radius: 2px; }
.st-tape { width: 72px; height: 20px; background: rgba(240, 228, 190, .78); box-shadow: none; }

/* ── projects ── */
.plist { list-style: none; }
.plist li {
  position: relative;
  display: grid; grid-template-columns: 80px minmax(0, 1.2fr) minmax(0, 1fr) 200px; align-items: center; gap: 20px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.plist li::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--yellow);
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.plist li:hover::before { transform: scaleY(1); }
.plist .n { color: var(--mute); }
.plist b { font: 400 clamp(32px, 4.4vw, 64px)/1 var(--serif); letter-spacing: -.02em; }
.plist .ko { color: var(--mute); }
.plist .y { text-align: right; }
.plist a.y:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .plist li { grid-template-columns: 40px 1fr; gap: 4px 12px; }
  .plist .ko, .plist .y { grid-column: 2; text-align: left; }
}

/* ── store ── */
.store-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.store-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 300px; padding: 30px;
  border: 1px solid var(--ink); background: var(--paper);
  transition: background .4s, color .4s;
}
.store-card span:first-child { color: var(--mute); }
.store-card b { font: 400 clamp(40px, 5vw, 72px)/1 var(--serif); letter-spacing: -.02em; }
.store-card .state { align-self: start; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--mute); }
.store-card.open { cursor: pointer; }
.store-card.open:hover { background: var(--yellow); }
.store-card.open .state { border-color: var(--ink); color: var(--ink); }
@media (max-width: 640px) { .store-grid { grid-template-columns: 1fr; } .store-card { min-height: 200px; } }

/* ── contact ── */
.contact { background: var(--ink); color: var(--ivory); padding: clamp(90px, 12vw, 160px) var(--gutter) 30px; }
.contact .kicker { color: rgba(244, 239, 230, .5); }
.stay { font: 400 clamp(84px, 17vw, 300px)/.85 var(--serif); letter-spacing: -.04em; margin: 10px 0 clamp(60px, 8vw, 110px); }
.stay em { font-style: italic; color: var(--yellow); }
.social { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; border-top: 1px solid rgba(244, 239, 230, .2); }
.social a {
  display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; row-gap: 2px; align-items: center; padding: 26px 20px 26px 0;
  border-bottom: 1px solid rgba(244, 239, 230, .2);
  transition: color .3s, padding .4s var(--ease);
}
.social a:hover { color: var(--yellow); padding-left: 10px; }
.social .ico { grid-row: 1 / 4; width: 44px; height: 44px; padding: 9px; border: 1px solid rgba(244, 239, 230, .3); border-radius: 50%; transition: border-color .3s; }
.social a:hover .ico { border-color: var(--yellow); }
.social a > :not(.ico) { grid-column: 2; }
.social .mono { color: rgba(244, 239, 230, .5); }
.social b { font: 500 24px var(--sans); letter-spacing: -.02em; }
.social span:last-child { font-size: 14px; color: rgba(244, 239, 230, .6); }
.foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 90px; color: rgba(244, 239, 230, .5); }
@media (max-width: 1000px) { .social { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .social { grid-template-columns: 1fr; } .social b { font-size: 19px; } }
@media (max-width: 440px) { .foot { flex-direction: column; gap: 4px; } }

/* ── sketchbook overlay ── */
.book {
  --c: #d9a520;
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  border: 0; background: var(--ivory) var(--grain); color: var(--ink);
}
.book[open] { animation: bookin .6s var(--ease); }
@keyframes bookin { from { opacity: 0; transform: translateY(24px); } }
.book::backdrop { background: var(--ivory); }
.book-inner { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; height: 100%; }
.book-side {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 40px var(--gutter) 40px; border-right: 1px solid var(--line);
  background: var(--c) var(--grain); color: var(--ivory);
}
.book-side.light { color: var(--ink); }
.book-side { justify-content: flex-end; }
.book > .close-btn { position: fixed; }
.book-side h2 { font: 400 clamp(48px, 5vw, 76px)/.95 var(--serif); letter-spacing: -.03em; }
.book-ko { font-size: 18px; font-weight: 600; }
.book-desc { opacity: .85; font-size: 15px; }
.book-grid {
  overflow-y: auto; padding: 40px var(--gutter);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 44px 28px; align-content: start;
}
.work { text-align: left; }
.work .thumb { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #e6dfd2; }
.work .thumb > * { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.work:hover .thumb > *, .work:focus-visible .thumb > * { transform: scale(1.04); }
.work:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.work .cap { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 12px; }
.work b { font-weight: 600; font-size: 15px; }
.work small { color: var(--mute); }
.work .badge { position: absolute; left: 12px; top: 12px; padding: 4px 10px; background: var(--ivory); border-radius: 999px; }

.zoom {
  position: absolute; inset: 0; z-index: 3;
  display: grid; grid-template-columns: 1fr 380px;
  background: var(--ivory) var(--grain);
  animation: fadein .4s var(--ease);
}
.zoom[hidden] { display: none; }
@keyframes fadein { from { opacity: 0; } }
.zoom-media { display: grid; place-items: center; padding: clamp(20px, 4vw, 60px); min-height: 0; background: #e9e3d8; }
.zoom-media img, .zoom-media video, .zoom-media canvas { max-width: 100%; max-height: 100%; object-fit: contain; }
.zoom-media iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.zoom-info { display: flex; flex-direction: column; gap: 14px; padding: 40px 32px; }
.zoom-info .mono { color: var(--mute); }
.zoom-info h3 { font: 400 48px/1 var(--serif); letter-spacing: -.02em; }
.zoom-sale:empty { display: none; }
.zoom-sale { padding: 12px 14px; border: 1px solid var(--ink); font-weight: 600; }
.zoom-link { align-self: start; padding: 10px 16px; background: var(--ink); color: var(--ivory) !important; border-radius: 999px; }
.zoom-link:hover { background: var(--yellow); color: var(--ink) !important; }
.zoom-nav { margin-top: auto; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 16px; }
.zoom-nav button { color: var(--ink); }
.zoom-nav button:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .book-inner { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .book-side { padding: 20px var(--gutter) 24px; gap: 8px; }
  .book-side h2 { font-size: 44px; }
  .book-desc { display: none; }
  .book-grid { padding: 24px var(--gutter); grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .zoom { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .zoom-info { padding: 20px var(--gutter); gap: 8px; }
  .zoom-info h3 { font-size: 34px; }
}

/* ── 넘겨 보는 스케치북 ── */
.flip {
  --c: #7d93a8;
  width: 100vw; height: 100dvh; max-width: none; max-height: none; border: 0;
  background: #2a2521 var(--grain); color: var(--ivory);
  display: none; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden;
}
.flip[open] { display: grid; animation: bookin .6s var(--ease); }
.flip::backdrop { background: #2a2521; }
.flip-top { display: flex; align-items: center; gap: 20px; min-height: 88px; padding: 20px 90px 20px var(--gutter); }
.flip-top p { color: rgba(244, 239, 230, .6); }
.flip-stage { display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); }
.sb {
  --pw: min(42vw, calc((100dvh - 190px) * .74), 560px);
  position: relative; width: calc(var(--pw) * 2); height: calc(var(--pw) / .74);
  perspective: 2600px; transition: transform .9s cubic-bezier(.3, .1, .2, 1);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45));
}
.sb.closed { transform: translateX(calc(var(--pw) * -.5)); }
.sb-side { position: absolute; top: 0; width: 50%; height: 100%; cursor: pointer; }
.sb-left { left: 0; } .sb-right { left: 50%; }
.pg {
  position: absolute; inset: 0; overflow: hidden;
  display: flex; flex-direction: column; padding: 7% 8% 6%;
  background: #fbf8f1 var(--grain); color: var(--ink);
}
.sb-left .pg, .sb-leaf .back .pg { border-radius: 6px 0 0 6px; box-shadow: inset -26px 0 30px -18px rgba(60, 40, 20, .28); }
.sb-right .pg, .sb-leaf .front .pg { border-radius: 0 6px 6px 0; box-shadow: inset 26px 0 30px -18px rgba(60, 40, 20, .28); }
.pg-cover {
  justify-content: space-between; padding: 9% 12% 10% 14%;
  background: var(--c) var(--grain); color: var(--ivory); border-radius: 0 10px 10px 0 !important;
  box-shadow: inset 10px 0 0 rgba(0, 0, 0, .14) !important;
}
.pg-cover::after { content: ""; position: absolute; top: 0; bottom: 0; right: 9%; width: 3.5%; background: rgba(20, 18, 16, .3); }
.pg-cover b { display: block; font: 400 clamp(34px, 4.2vw, 64px)/.95 var(--serif); letter-spacing: -.02em; }
.pg-cover .ko { display: block; margin-top: 10px; font-weight: 600; }
.pg-title { justify-content: center; gap: 12px; padding: 12%; }
.pg-title h3 { font: 400 clamp(32px, 3.4vw, 52px)/1 var(--serif); letter-spacing: -.02em; }
.pg-title .d { color: var(--mute); font-size: 14px; }
.pg-title .mono { color: var(--mute); }
/* 그림이 페이지보다 길어도 잘리지 않게: 남은 칸 안에 비율대로 맞춘다 */
.pg-work .art { flex: 1; min-height: 0; position: relative; }
.pg-work .art > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pg-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: 12px; }
.sb-left .pg-foot, .sb-leaf .back .pg-foot { flex-direction: row-reverse; }   /* 왼쪽 쪽은 번호가 바깥(왼쪽) */
.pg-work .cap { margin: 0; min-width: 0; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg .no { flex: none; color: var(--mute); }
.pg-work .art { cursor: zoom-in; }
.sb-side { cursor: pointer; }
/* 넘길 때 종이 음영 · 밑 쪽에 드리운 그림자 */
.shade { position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 3; }
.sb-leaf .front .shade { background: linear-gradient(90deg, rgba(40, 28, 16, .55), rgba(40, 28, 16, .12) 45%, rgba(255, 255, 255, .08)); }
.sb-leaf .back .shade { background: linear-gradient(270deg, rgba(40, 28, 16, .55), rgba(40, 28, 16, .12) 45%, rgba(255, 255, 255, .08)); }
.cast { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.cast.from-l { background: linear-gradient(90deg, rgba(20, 14, 8, .38), rgba(20, 14, 8, .1) 40%, transparent 75%); }
.cast.from-r { background: linear-gradient(270deg, rgba(20, 14, 8, .38), rgba(20, 14, 8, .1) 40%, transparent 75%); }
.sb-rings {
  position: absolute; left: 50%; top: 3%; bottom: 3%; width: 22px; transform: translateX(-50%); z-index: 6; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 4px, #b5ab9d 4px 6.5px, transparent 7px) 0 0 / 22px 26px;
}
.sb-leaf {
  position: absolute; left: 50%; top: 0; width: 50%; height: 100%; z-index: 5;
  transform-origin: left center; transform-style: preserve-3d; will-change: transform;
}
.sb-leaf[hidden] { display: none; }
.sb-leaf .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.sb-leaf .back { transform: rotateY(180deg); }
.sb-leaf .face::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .12), transparent 40%); }
.sb.single { --pw: min(86vw, calc((100dvh - 190px) * .74)); width: var(--pw); }
.sb.single .sb-left { display: none; }
.sb.single .sb-right, .sb.single .sb-leaf { left: 0; width: 100%; }
.sb.single .sb-rings { left: 0; }
.flip-count { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 0 22px; color: rgba(244, 239, 230, .75); }
.flip-hint { color: rgba(244, 239, 230, .4); letter-spacing: .04em; text-transform: none; }
.nav-btn:disabled { opacity: .25; cursor: default; pointer-events: none; }
.fzoom { position: absolute; inset: 0; z-index: 10; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; padding: 30px; background: rgba(28, 24, 21, .96); cursor: zoom-out; }
.fzoom[hidden] { display: none; }
.fzoom-media { position: relative; min-height: 0; }
.fzoom-media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fzoom p { text-align: center; color: rgba(244, 239, 230, .7); }

/* ── VHS 테이프 표지 (영상 작품) ── */
.cover.vhs {
  aspect-ratio: auto; flex-basis: clamp(300px, 30vw, 420px); align-self: center; height: auto;
  padding: 18px 18px 14px; gap: 14px;
  background: #1c1b1d linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 30%);
  border-radius: 8px; color: var(--ivory);
  box-shadow: inset 0 0 0 2px #2b2a2d, 0 1px 0 rgba(0, 0, 0, .05);
}
.cover.vhs::after { display: none; }
.vhs-label { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 4px; background: #f4efe6; color: var(--ink); border-left: 10px solid var(--c); }
.vhs-label .en { font: 400 34px/1 var(--serif); letter-spacing: -.02em; }
.vhs-label .ko { font-size: 14px; font-weight: 600; }
.vhs-label .mono { color: var(--mute); }
.vhs-window { display: flex; justify-content: center; gap: 70px; padding: 16px; border-radius: 6px; background: #0c0c0d; box-shadow: inset 0 2px 8px rgba(0, 0, 0, .8); }
.vhs-window i { width: 46px; height: 46px; border-radius: 50%; background: repeating-conic-gradient(#2d2c2f 0 30deg, #1a191b 30deg 60deg); box-shadow: 0 0 0 6px #3a2f27; transition: transform 1.2s linear; }
.cover.vhs:hover .vhs-window i { transform: rotate(360deg); }
.vhs-foot { display: flex; justify-content: space-between; color: rgba(244, 239, 230, .6); }
.cover.vhs:hover .vhs-foot span:last-child { color: var(--yellow); }

/* ── 캠코더 화면 ── */
.tapes {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; border: 0;
  background: #161517; color: var(--ivory); padding: 0;
}
.tapes[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); animation: fadein .4s var(--ease); }
.tapes::backdrop { background: #161517; }
.tp-top { display: flex; align-items: center; gap: 20px; padding: 20px var(--gutter); color: rgba(244, 239, 230, .6); }
.tp-top { min-height: 88px; padding-right: 90px; }
.tp-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; padding: 0 var(--gutter) 30px; min-height: 0; }
.tp-cam { display: grid; place-items: center; min-height: 0; }
.tp-screen {
  position: relative; width: min(100%, calc((100dvh - 140px) * 4 / 3)); aspect-ratio: 4 / 3;
  background: #000; border-radius: 22px; overflow: hidden;
  box-shadow: 0 0 0 10px #2a292c, 0 0 0 12px #3a393d, 0 30px 60px rgba(0, 0, 0, .6);
}
.tp-media, .tp-media > * { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; }
.tp-osd { position: absolute; inset: 18px 24px; pointer-events: none; color: #fff; font-size: 14px; letter-spacing: .12em; text-shadow: 0 0 6px rgba(0, 0, 0, .8); }
.tp-osd span { position: absolute; }
.tp-osd .play { top: 0; left: 0; animation: blink 1.2s steps(1) infinite; }
.tp-osd #tp-time { top: 0; right: 0; }
.tp-osd .date { bottom: 0; left: 0; color: #ffd36a; }
.tp-osd .bat { bottom: 0; right: 0; }
@keyframes blink { 50% { opacity: 0; } }
.tp-scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, .18) 2px 3px), radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, .45)); mix-blend-mode: multiply; }
.bars { background: linear-gradient(90deg, #c0c0c0 0 14.28%, #c0c000 0 28.57%, #00c0c0 0 42.85%, #00c000 0 57.14%, #c000c0 0 71.42%, #c00000 0 85.71%, #0000c0 0); display: grid; place-items: center; }
.bars span { padding: 8px 18px; background: #000; color: #fff; font-size: 18px; letter-spacing: .3em; }
.tp-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.tp-side > .mono { color: rgba(244, 239, 230, .55); }
.tp-side h3 { font: 400 40px/1 var(--serif); letter-spacing: -.02em; }
.tp-desc { color: rgba(244, 239, 230, .75); font-size: 15px; }
.tp-link { align-self: start; padding: 8px 14px; border-radius: 999px; background: var(--yellow); color: var(--ink); }
.tp-nav { display: flex; gap: 8px; margin: 6px 0 4px; }
.tp-nav button { flex: 1; padding: 10px; border: 1px solid rgba(244, 239, 230, .3); border-radius: 6px; color: var(--ivory); }
.tp-nav button:hover { background: var(--ivory); color: var(--ink); }
.tp-list { list-style: none; overflow-y: auto; min-height: 0; border-top: 1px solid rgba(244, 239, 230, .15); padding-top: 6px; }
.tp-group { color: rgba(244, 239, 230, .45); padding: 14px 0 6px; }
.tp-list button {
  width: 100%; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; text-align: left;
  padding: 10px 12px; margin-bottom: 6px; border-radius: 4px; color: var(--ink);
  background: #f4efe6; border-left: 8px solid var(--c);
}
.tp-list button .mono { color: var(--mute); }
.tp-list button.on { outline: 2px solid var(--yellow); outline-offset: 2px; }
.tp-list button:hover { background: #fff; }
@media (max-width: 860px) {
  .tp-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 18px; padding-bottom: 16px; }
  .tp-screen { width: 100%; border-radius: 14px; }
  .tp-osd { inset: 10px 14px; font-size: 11px; }
  .tp-side h3 { font-size: 28px; }
}

/* ── 쇼츠 플레이어: 방 안의 하얀 스탠드 TV가 다가와 켜지는 느낌 ── */
.shorts {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; border: 0;
  background: radial-gradient(120% 90% at 40% 45%, rgba(58, 50, 42, .9), rgba(20, 18, 16, .97)); color: var(--ivory);
  display: none; place-items: center; padding: 24px var(--gutter); overflow: auto;
}
.shorts:focus { outline: none; }
.shorts[open] { display: grid; animation: fadein .45s var(--ease); }
.shorts::backdrop { background: rgba(20, 18, 16, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sh-wrap { display: grid; grid-template-columns: auto minmax(260px, 340px); gap: 44px; align-items: center; }
/* TV 본체 */
.sh-tv { display: grid; justify-items: center; transform-origin: center 40%; }
.shorts[open] .sh-tv { animation: tv-in .7s cubic-bezier(.2, .8, .2, 1); }
@keyframes tv-in { from { opacity: 0; transform: translate(calc(var(--ox, 50vw) - 50vw), calc(var(--oy, 50vh) - 50vh)) scale(.32); } }
.sh-bezel {
  padding: 16px 16px 0; border-radius: 22px;
  background: linear-gradient(160deg, #fbf9f5, #e9e4dc); color: #8c857a;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .7), inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0, 0, 0, .06);
}
.sh-screen { position: relative; height: min(74dvh, 720px); aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: #0d0c0b; box-shadow: inset 0 0 0 2px #1d1b19; }
.sh-player, .sh-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
/* 켜질 때: 가운데 한 줄 빛이 위아래로 펼쳐진다 */
.shorts[open] .sh-player { animation: crt-on .75s .25s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes crt-on {
  0% { transform: scale(1, .004); filter: brightness(6); opacity: 1; }
  45% { transform: scale(1, .004); filter: brightness(6); }
  100% { transform: none; filter: none; }
}
.sh-static {
  position: absolute; inset: -20%; pointer-events: none; opacity: 0;
  background: repeating-radial-gradient(circle at 17% 32%, rgba(255,255,255,.55) 0 1px, transparent 1px 3px), repeating-radial-gradient(circle at 71% 64%, rgba(0,0,0,.6) 0 1px, transparent 1px 2px), #777;
}
.shorts.zap .sh-static { animation: zap .45s steps(6) both; }
@keyframes zap { 0% { opacity: .95; transform: translate(0, 0); } 50% { opacity: .9; transform: translate(-3%, 2%); } 100% { opacity: 0; transform: translate(2%, -2%); } }
.sh-ch { position: absolute; top: 14px; right: 16px; color: #9df59d; font-size: 15px; text-shadow: 0 0 6px rgba(120, 255, 120, .7); opacity: 0; pointer-events: none; }
.shorts[open] .sh-ch, .shorts.zap .sh-ch { animation: ch 2.2s .9s both; }
.shorts.zap .sh-ch { animation-delay: 0s; }
@keyframes ch { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
.sh-chin { display: flex; justify-content: center; align-items: center; gap: 10px; height: 34px; }
.sh-brand { font: 400 15px/1 var(--serif); letter-spacing: .01em; }
.sh-brand i { font-style: italic; }
.sh-led { width: 5px; height: 5px; border-radius: 50%; background: #e2564b; box-shadow: 0 0 6px #e2564b; }
.sh-neck { width: 34px; height: 22px; background: linear-gradient(90deg, #ddd7ce, #f4f1ec, #ddd7ce); }
.sh-base { width: 170px; height: 10px; border-radius: 6px; background: linear-gradient(#f4f1ec, #d9d3c9); box-shadow: 0 16px 24px -10px rgba(0, 0, 0, .7); }
/* 옆 안내: 지금 나오는 쇼츠 + 채널표 */
.sh-info { display: flex; flex-direction: column; gap: 12px; max-height: min(80dvh, 780px); min-height: 0; }
.shorts[open] .sh-info { animation: fadein .6s .5s var(--ease) both; }
.sh-now { color: #e2564b; }
.sh-now::before { content: "● "; }
.sh-info h3 { font: 600 21px/1.4 var(--body); }
.sh-date { color: rgba(244, 239, 230, .55); }
.sh-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sh-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; font: 600 14px var(--sans); border: 1px solid rgba(244, 239, 230, .35); color: var(--ivory); transition: background .2s, color .2s; }
.sh-btn svg { width: 18px; height: 18px; }
.sh-btn.primary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.sh-btn:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.sh-guide-h { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(244, 239, 230, .18); color: rgba(244, 239, 230, .5); }
.sh-guide { list-style: none; margin: 0; padding: 0 4px 0 0; overflow: auto; min-height: 0; display: grid; gap: 4px; scrollbar-width: thin; }
.sh-guide button { width: 100%; display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 6px; border-radius: 10px; color: rgba(244, 239, 230, .75); }
.sh-guide img { grid-row: 1 / 3; width: 64px; height: 36px; object-fit: cover; border-radius: 4px; background: #000; }
.sh-guide .mono { font-size: 10px; color: rgba(244, 239, 230, .45); }
.sh-guide b { font: 500 13px/1.35 var(--body); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sh-guide button:hover { background: rgba(244, 239, 230, .08); }
.sh-guide li.on button { background: rgba(244, 239, 230, .14); color: var(--ivory); }
.sh-guide li.on .mono { color: #9df59d; }
@media (max-width: 760px) {
  .shorts { padding: 70px 14px 24px; place-items: start center; }
  .sh-wrap { grid-template-columns: 1fr; gap: 18px; justify-items: center; }
  .sh-screen { height: min(58dvh, 560px); }
  .sh-bezel { padding: 10px 10px 0; border-radius: 16px; }
  .sh-chin { height: 26px; }
  .sh-info { width: 100%; max-height: none; gap: 8px; }
  .sh-info h3 { font-size: 17px; }
  .sh-guide { overflow: visible; }
}

/* ── 크게 보기 공통 버튼: 크고, 그림과 겹치지 않고, 어떤 배경에서도 보이게 ── */
.nav-btn, .close-btn {
  display: grid; place-items: center; z-index: 5;
  border-radius: 50%; background: rgba(250, 247, 241, .96); color: var(--ink);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22), 0 0 0 1px rgba(20, 18, 16, .08);
  transition: background .2s, transform .2s;
}
.nav-btn { position: absolute; top: 50%; width: 56px; height: 56px; transform: translateY(-50%); }
.nav-btn.prev { left: 18px; } .nav-btn.next { right: 18px; }
.close-btn { position: absolute; top: 18px; right: 18px; width: 52px; height: 52px; }
.nav-btn svg, .close-btn svg { width: 24px; height: 24px; }
.nav-btn:hover, .close-btn:hover { background: var(--yellow); }
.nav-btn:active { transform: translateY(-50%) scale(.94); }
.close-btn:active { transform: scale(.94); }
.nav-btn:focus-visible, .close-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.zoom-stage { position: relative; min-height: 0; display: grid; }
.zoom-stage .zoom-media { padding: clamp(20px, 4vw, 60px) 100px; }
.zoom-info { padding-top: 90px !important; }
.zoom-hint { margin-top: auto; color: var(--mute); }
.fzoom .close-btn { position: absolute; }
.sh-stage { display: grid; grid-template-columns: 56px auto 56px; gap: 22px; align-items: center; }
.sh-stage .nav-btn { position: static; transform: none; }
.sh-stage .nav-btn:active { transform: scale(.94); }
.shorts .close-btn { position: fixed; }
@media (max-width: 760px) {
  .zoom-stage .zoom-media { padding: 14px 14px 84px; }
  .nav-btn { top: auto; bottom: 14px; transform: none; width: 52px; height: 52px; }
  .nav-btn:active { transform: scale(.94); }
  .nav-btn.prev { left: 14px; } .nav-btn.next { right: 14px; }
  .close-btn { top: 12px; right: 12px; width: 48px; height: 48px; }
  .zoom-info { padding-top: 16px !important; }
  .sh-stage { grid-template-columns: 1fr 1fr; grid-template-areas: "player player" "prev next"; gap: 12px; justify-items: center; }
  .sh-stage .sh-tv { grid-area: player; }
  .sh-stage .prev { grid-area: prev; justify-self: start; } .sh-stage .next { grid-area: next; justify-self: end; }
}

/* ── reveal ── */
.reveal { opacity: 0; translate: 0 36px; transition: opacity 1s var(--ease), translate 1s var(--ease); }
.reveal.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: 0 0; }
}

/* 크게 보기가 열려 있으면 바깥 닫기 버튼은 숨긴다 (닫기 버튼은 항상 하나만) */
.book:has(.zoom:not([hidden])) > .close-btn { display: none; }

/* ── 잠긴 프로젝트 ── */
.work.locked .thumb > img, .work.locked .thumb > canvas { filter: blur(14px) saturate(.8); transform: scale(1.15); }
.work.locked .thumb { overflow: hidden; position: relative; }
.work .thumb > .lock-badge { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--ink); background: rgba(250, 247, 241, .35); }
.lock-badge svg { width: 30px; height: 30px; padding: 12px; box-sizing: content-box; border-radius: 50%; background: rgba(250, 247, 241, .92); box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.work.locked:hover .lock-badge svg { background: var(--yellow); }
.lock { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100dvh; display: none; place-items: center; }
.lock[open] { display: grid; animation: fadein .3s var(--ease); }
.lock::backdrop { background: rgba(20, 18, 16, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lock-card { position: relative; width: min(380px, calc(100vw - 32px)); display: grid; justify-items: center; gap: 10px; text-align: center; padding: 40px 28px 26px; border-radius: 18px; background: var(--ivory) var(--grain); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.lock-card .close-btn { top: 10px; right: 10px; width: 40px; height: 40px; box-shadow: none; }
.lock-card .close-btn svg { width: 18px; height: 18px; }
.lock-icon svg { width: 30px; height: 30px; padding: 14px; box-sizing: content-box; border-radius: 50%; background: var(--yellow); }
.lock-card .mono { color: var(--mute); }
.lock-card h3 { font: 400 30px/1.1 var(--serif); }
.lock-desc { font-size: 14px; color: var(--mute); margin-bottom: 6px; }
.lock-card input { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: 500 16px var(--sans); text-align: center; letter-spacing: .08em; }
.lock-card input:focus { outline: 2px solid var(--yellow); outline-offset: 1px; }
.lock-go { width: 100%; padding: 13px; border-radius: 12px; background: var(--ink); color: var(--ivory); font: 600 15px var(--sans); }
.lock-go:hover { background: #000; }
.lock-go:disabled { opacity: .6; }
.lock-msg { min-height: 14px; color: #c0473d !important; }
.lock-ask { font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }

/* 보기 창이 열려 있는 동안 뒤 페이지는 움직이지 않는다 */
html { scrollbar-gutter: stable; }
html:has(dialog[open]) { overflow: hidden; }
dialog, .ar-scroll, .book-grid, .sh-guide, .tp-list { overscroll-behavior: contain; }

/* ── 스케치북 표지: 분류별 모양 + 안의 그림 콜라주 ── */
.cover .top, .cover .ttl { position: relative; z-index: 3; }
.cover .open { z-index: 3; }
.cover .ttl { display: block; }
/* 콜라주: 오려 붙인 그림 조각 */
.collage { position: absolute; left: 9%; right: 13%; top: 14%; bottom: 42%; z-index: 2; pointer-events: none; }
.cut { position: absolute; display: block; aspect-ratio: 1; transform: rotate(var(--r)); background: #fbf8f2; padding: 5px; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .45), 0 1px 2px rgba(0, 0, 0, .2); transition: transform .5s var(--ease); }
.cut img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.92); }
.cut.photo { padding: 5px 5px 16px; aspect-ratio: .86; }
.cut.torn { padding: 0; clip-path: polygon(0 3%, 9% 0, 22% 4%, 37% 1%, 51% 4%, 66% 0, 80% 3%, 100% 1%, 98% 18%, 100% 36%, 97% 55%, 100% 74%, 98% 100%, 82% 97%, 64% 100%, 47% 96%, 30% 100%, 14% 97%, 0 100%, 2% 78%, 0 58%, 3% 38%, 0 20%); }
.cut.tape::before, .cut.photo::before { content: ""; position: absolute; top: -9px; left: 50%; width: 46%; height: 16px; transform: translateX(-50%) rotate(-4deg); background: rgba(246, 232, 170, .78); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.cut.pin::before { content: ""; position: absolute; top: 4px; left: 50%; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff9b8a, #c0392b 60%); box-shadow: 0 2px 3px rgba(0, 0, 0, .35); z-index: 2; }
.cover:hover .cut { transform: rotate(calc(var(--r) * .4)) translateY(-3px); }

/* 크로키: 크래프트지 포켓 패드, 위쪽 스프링 + 고무줄 */
.cover.k-croquis {
  background: linear-gradient(color-mix(in srgb, var(--c) 30%, #c9a77c), color-mix(in srgb, var(--c) 30%, #b8946a)), var(--grain);
  background-blend-mode: multiply; color: #2a2016; border-radius: 4px; padding-top: 34px;
}
.cover.k-croquis::before { content: ""; position: absolute; left: 8%; right: 8%; top: 7px; height: 16px; z-index: 4; background: radial-gradient(circle at 50% 70%, transparent 3.2px, #4b4844 3.4px 5.2px, transparent 5.6px) 0 0 / 15px 16px repeat-x; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .5)); }
.cover.k-croquis::after { right: 16%; width: 6px; background: color-mix(in srgb, var(--c) 70%, #111); box-shadow: 1px 0 0 rgba(255, 255, 255, .15); }
.cover.k-croquis .en { font-style: italic; }

/* 잉크: 검은 가죽 노트, 둥근 모서리 + 색 고무줄 */
.cover.k-ink {
  background: radial-gradient(120% 80% at 30% 20%, #34302d, #151413 70%), var(--grain);
  color: #f1ebe0; border-radius: 8px 12px 12px 8px;
  box-shadow: inset 5px 0 0 rgba(255, 255, 255, .04), inset 0 0 0 1px rgba(255, 255, 255, .05), 0 1px 0 rgba(0, 0, 0, .05);
}
.cover.k-ink::after { right: 14%; width: 9px; background: var(--c); box-shadow: inset 1px 0 0 rgba(255, 255, 255, .25), inset -1px 0 0 rgba(0, 0, 0, .3); }
.cover.k-ink .top { color: rgba(241, 235, 224, .55); }
.cover.k-ink .yr { color: var(--c); filter: brightness(1.6); }

/* 드로잉: 리넨 천 양장본 + 아이보리 이름표 */
.cover.k-drawing {
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px 3px), var(--c);
  color: var(--ink); border-radius: 3px 6px 6px 3px;
  box-shadow: inset 14px 0 0 rgba(0, 0, 0, .14), inset 15px 0 0 rgba(255, 255, 255, .12), 0 1px 0 rgba(0, 0, 0, .05);
}
.cover.k-drawing::after { display: none; }
.cover.k-drawing .top { color: rgba(255, 255, 255, .8); }
.cover.k-drawing .ttl { margin: 0 6% 0 10%; padding: 14px 16px 12px; background: #f6f0e3 var(--grain); border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), inset 0 0 0 4px #f6f0e3, inset 0 0 0 5px rgba(0, 0, 0, .18), 0 1px 2px rgba(0, 0, 0, .15); }
.cover.k-drawing .en { font-size: clamp(26px, 2.4vw, 34px); padding-right: 0; }
.cover.k-drawing .open { color: #fff; }

/* 페인팅: 두꺼운 수채화 블록 + 물감 번짐 */
.cover.k-paint {
  background:
    radial-gradient(42% 30% at 72% 26%, color-mix(in srgb, var(--c) 55%, transparent), transparent 70%),
    radial-gradient(38% 28% at 24% 58%, color-mix(in srgb, #3f6f8f 40%, transparent), transparent 70%),
    radial-gradient(30% 22% at 80% 74%, color-mix(in srgb, #e3b23c 45%, transparent), transparent 70%),
    #f4efe4 var(--grain);
  color: var(--ink); border-radius: 2px;
  box-shadow: 1px 1px 0 #e6dfd2, 2px 2px 0 #d9d1c3, 3px 3px 0 #e6dfd2, 4px 4px 0 #cfc6b6, 5px 5px 0 #e1d9cb, 6px 7px 12px -4px rgba(0, 0, 0, .35);
}
.cover.k-paint::after { right: auto; left: 0; width: 100%; top: 0; bottom: auto; height: 10px; background: repeating-linear-gradient(90deg, #2b2724 0 2px, transparent 2px 4px); opacity: .25; }
.cover.k-paint .top { color: var(--mute); }
.cover.k-croquis { background: linear-gradient(color-mix(in srgb, var(--c) 14%, #cfac7e), color-mix(in srgb, var(--c) 14%, #bd986b)), var(--grain); }

/* 그림 저장 막기: 끌기·길게 눌러 저장 메뉴·선택 끄기 */
img, video, canvas { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

/* 만화(웹툰·웹만화): 흰 종이에 굵은 칸 테두리, 망점, 말풍선 제목 */
.cover.k-comic {
  background:
    radial-gradient(circle, color-mix(in srgb, var(--c) 55%, transparent) 1.3px, transparent 1.6px) 0 0 / 9px 9px,
    #fffdf7;
  color: #141210; border-radius: 4px;
  box-shadow: inset 0 0 0 3px #141210, inset 0 0 0 9px #fffdf7, inset 0 0 0 11px #141210, 0 1px 0 rgba(0, 0, 0, .05);
}
/* 칸 나눔 선 */
.cover.k-comic::before { content: ""; position: absolute; inset: 11px; z-index: 1; pointer-events: none;
  background: linear-gradient(#141210, #141210) 0 36% / 100% 3px no-repeat, linear-gradient(#141210, #141210) 58% 0 / 3px 36% no-repeat; }
.cover.k-comic::after { display: none; }
.cover.k-comic .top { color: #141210; padding: 4px 6px 0; }
.cover.k-comic .top::after { content: "WEBTOON"; position: absolute; right: -6px; top: -22px; padding: 3px 9px; background: var(--c); color: #fff; font-weight: 700; transform: rotate(4deg); box-shadow: 2px 2px 0 #141210; }
.cover.k-comic .top .count { display: none; }
.cover.k-comic .ttl { position: relative; margin: 0 4% 6px; padding: 16px 18px 14px; background: #fff; border: 3px solid #141210; border-radius: 26px; box-shadow: 4px 4px 0 #141210; }
.cover.k-comic .ttl::after { content: ""; position: absolute; left: 26px; bottom: -17px; width: 20px; height: 20px; background: #fff; border-right: 3px solid #141210; border-bottom: 3px solid #141210; transform: skewY(36deg) rotate(36deg); }
.cover.k-comic .en { font: 800 clamp(26px, 2.5vw, 34px)/1 var(--sans); letter-spacing: -.02em; padding-right: 0; }
.cover.k-comic .ko { font-weight: 700; }
.cover.k-comic .yr:empty { display: none; }
.cover.k-comic .open { color: #141210; bottom: 30px; }
.cover.k-comic .collage { top: 13%; bottom: 40%; }
.cover.k-comic .cut { padding: 0; border: 3px solid #141210; border-radius: 0; box-shadow: 3px 3px 0 #141210; aspect-ratio: 3 / 1; transform: rotate(calc(var(--r) * .25)); width: 78% !important; left: 8% !important; }
.cover.k-comic .cut::before { display: none; }
.cover.k-comic .cut img { object-fit: cover; }
/* 웹툰 보기: 컷을 위에서 아래로 붙여서 */
.article.comic .ar-body { max-width: 760px; }
.article.comic .ar-blocks { display: grid; gap: 26px; }
.article.comic .ar-image img { border-radius: 0; }
.article.comic .ar-image figcaption { border-top: 0; margin-top: 6px; padding-top: 0; font-size: 13px; }

/* ── 프로젝트 묶음 표지: 박스 세트 (색깔 케이스 + 위로 삐져나온 프로젝트 카드) ── */
.cover.boxset {
  flex-basis: clamp(300px, 30vw, 420px); padding: 0; background: none; box-shadow: none; border-radius: 0;
  color: var(--ivory);
}
.cover.boxset::after { display: none; }
.cover.boxset:hover, .cover.boxset:focus-visible { transform: none; box-shadow: none; }
.bx-cards { position: absolute; left: 9%; right: 9%; top: 2%; height: 40%; z-index: 1; }
.bx-card { position: absolute; width: 74%; aspect-ratio: 4 / 3; padding: 5px; background: #fbf8f2; border-radius: 6px;
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .05); transition: transform .6s var(--ease); }
.bx-card img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 3px; }
.bx-card.is-locked img { filter: blur(6px) saturate(.8); }
.bx-card:nth-child(1) { left: 0; top: 14%; transform: rotate(-7deg); }
.bx-card:nth-child(2) { right: 0; top: 6%; transform: rotate(6deg); }
.bx-card:nth-child(3) { left: 13%; top: 20%; transform: rotate(-1deg); }
.cover.boxset:hover .bx-card:nth-child(1) { transform: rotate(-10deg) translate(-6px, -14px); }
.cover.boxset:hover .bx-card:nth-child(2) { transform: rotate(9deg) translate(6px, -18px); }
.cover.boxset:hover .bx-card:nth-child(3) { transform: rotate(-1deg) translateY(-24px); }
.bx-case {
  position: absolute; left: 0; right: 0; bottom: 0; top: 34%; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 26px 26px 22px;
  background: var(--c) var(--grain); border-radius: 6px 6px 8px 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -3px 0 rgba(0, 0, 0, .12), 0 22px 34px -22px rgba(20, 18, 16, .6);
}
/* 케이스 입구: 카드가 들어가 있는 안쪽 그림자 */
.bx-case::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16px; border-radius: 6px 6px 0 0;
  background: linear-gradient(rgba(0, 0, 0, .22), rgba(0, 0, 0, 0)); }
.bx-ttl .en { display: block; font: 400 clamp(38px, 3.4vw, 50px)/.95 var(--serif); letter-spacing: -.02em; font-weight: 400; }
.bx-ttl .ko { display: block; margin-top: 8px; font-size: 14px; opacity: .85; }
.bx-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 12px; border-top: 1px solid currentColor; opacity: .8; }
.cover.boxset.light { color: var(--ink); }

/* ── 프로젝트 묶음 안쪽: 큰 색 상자 없이 종이 바탕 + 얇은 선 ── */
.book.portfolio .book-inner { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
.book.portfolio .book-side {
  background: none; color: var(--ink); border-right: 0; margin: 0 var(--gutter); padding: 64px 70px 22px 0;
  border-bottom: 1px solid var(--ink);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); grid-template-areas: "no no" "title desc" "ko count"; gap: 6px 40px; align-items: end;
}
.book.portfolio #book-no { grid-area: no; color: var(--mute); }
.book.portfolio .book-side h2 { grid-area: title; font-size: clamp(48px, 6vw, 88px); }
.book.portfolio .book-ko { grid-area: ko; font-weight: 500; color: var(--mute); font-size: 16px; }
.book.portfolio .book-desc { grid-area: desc; opacity: 1; color: var(--mute); text-align: right; }
.book.portfolio #book-count { grid-area: count; text-align: right; color: var(--mute); }
.book.portfolio .book-side::before { content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 5px; background: var(--c); }
.book.portfolio .book-side { position: relative; }
.book.portfolio .book-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); padding-top: 32px; }
.book.portfolio .work .thumb { aspect-ratio: 4 / 3; border-radius: 6px; }
.book.portfolio .work .cap { border-top: 0; padding-top: 10px; margin-top: 0; }
.book.portfolio .work .role { display: block; margin-top: 2px; font-size: 13px; color: var(--mute); }
@media (max-width: 760px) {
  .book.portfolio .book-side { padding: 64px 0 16px; grid-template-columns: 1fr; grid-template-areas: "no" "title" "ko" "count"; }
  .book.portfolio .book-desc { display: none; }
  .book.portfolio #book-count { text-align: left; }
  .book.portfolio .book-grid { grid-template-columns: 1fr 1fr; }
}

/* 스크롤 영역이 포커스를 받아도 테두리는 안 보이게 */
.book-grid:focus, .ar-scroll:focus, .tp-list:focus, .sh-guide:focus { outline: none; }
.book:focus { outline: none; }

/* ── 같은 책은 어디서나 같은 재질: 크래프트지는 책 색을 섞지 않은 순수 크래프트 ── */
.cover.k-croquis { background: #c7a275 var(--grain); }

/* ── 넘겨보기 첫 표지도 아카이브와 같은 재질 ── */
.pg-cover.k-croquis { background: #c7a275 var(--grain); color: #2a2016; }
.pg-cover.k-croquis::after { right: 16%; width: 2.6%; background: var(--c); }
.pg-cover.k-croquis b { font-style: italic; }
.pg-cover.k-ink { background: radial-gradient(120% 80% at 30% 20%, #34302d, #151413 70%), var(--grain); color: #f1ebe0; }
.pg-cover.k-ink::after { right: 14%; width: 3%; background: var(--c); }
.pg-cover.k-drawing {
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px 3px), var(--c);
  color: #1c1916;
}
.pg-cover.k-drawing::after { display: none; }
.pg-cover.k-drawing > .mono { color: rgba(255, 255, 255, .85); }
.pg-cover.k-drawing > span:last-child { padding: 18px 20px 16px; background: #f6f0e3 var(--grain); border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), inset 0 0 0 5px #f6f0e3, inset 0 0 0 6px rgba(0, 0, 0, .18); }
.pg-cover.k-paint {
  background: radial-gradient(42% 30% at 72% 26%, color-mix(in srgb, var(--c) 55%, transparent), transparent 70%),
    radial-gradient(38% 28% at 24% 58%, color-mix(in srgb, #3f6f8f 40%, transparent), transparent 70%),
    radial-gradient(30% 22% at 80% 74%, color-mix(in srgb, #e3b23c 45%, transparent), transparent 70%), #f2ece0 var(--grain);
  color: #1c1916;
}
.pg-cover.k-paint::after { display: none; }
.pg-cover.k-comic { background: radial-gradient(circle, color-mix(in srgb, var(--c) 55%, transparent) 1.3px, transparent 1.6px) 0 0 / 9px 9px, #fffdf7; color: #141210;
  box-shadow: inset 0 0 0 4px #141210, inset 0 0 0 11px #fffdf7, inset 0 0 0 13px #141210 !important; }
.pg-cover.k-comic::after { display: none; }

/* ── 아카이브 입체감: 책장에 비스듬히 선 책 (왼쪽 옆면 = 책등·케이스 옆·테이프 두께) ── */
.shelf { perspective: 1800px; perspective-origin: 30% 40%; padding-top: 30px; padding-bottom: 46px; }
.cover { transform-style: preserve-3d; transform: rotateY(14deg) rotate(var(--tilt, 0deg)); transform-origin: 50% 100%; }
.cover:hover, .cover:focus-visible { transform: rotateY(3deg) translateY(-12px) rotate(var(--tilt, 0deg)); }
.cover.boxset, .cover.boxset:hover, .cover.boxset:focus-visible { transform: rotateY(14deg); }
.cover.boxset:hover { transform: rotateY(6deg); }
.cover .spn { position: absolute; left: 0; top: 0; bottom: 0; width: 16px; transform-origin: 0 50%; transform: rotateY(90deg);
  background: var(--side, #8a7f70); pointer-events: none; }
.cover .spn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .25)); }
.cover.k-paint .spn { width: 20px; background: repeating-linear-gradient(90deg, #f3ecdf 0 2px, #d8cdb9 2px 3px); }
.cover.vhs .spn { width: 22px; }
.cover.boxset .spn { top: 34%; width: 26px; border-radius: 0 0 0 6px; }
.cover .flr { position: absolute; left: 4%; right: -6%; bottom: -16px; height: 22px; transform: translateZ(-1px);
  background: radial-gradient(50% 50% at 50% 50%, rgba(40, 30, 20, .32), rgba(40, 30, 20, 0) 70%); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .cover, .cover:hover { transform: none; } }

/* ── Press: 기사 · 인터뷰 · 글 ── */
.press-list { list-style: none; margin: 0; padding: 0; }
.press-item { display: grid; grid-template-columns: 160px minmax(0, 1fr) 40px; gap: 28px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); transition: background .3s; }
.press-item:hover { background: rgba(242, 194, 48, .12); }
.pi-img { aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #e6dfd2; display: grid; place-items: center; font: 400 40px var(--serif); color: var(--mute); }
.pi-img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9); }
.pi-meta { display: flex; gap: 14px; color: var(--mute); }
.pi-type { color: var(--ink); padding: 2px 8px; border: 1px solid var(--ink); border-radius: 999px; }
.pi-title { display: block; margin-top: 10px; font: 400 clamp(22px, 2.2vw, 30px)/1.25 var(--serif); }
.pi-desc { display: block; margin-top: 6px; color: var(--mute); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pi-go { font-size: 24px; text-align: right; transition: transform .3s var(--ease); }
.press-item:hover .pi-go { transform: translate(4px, -4px); }
@media (max-width: 640px) {
  .press-item { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .pi-go { display: none; }
  .pi-desc { display: none; }
  .pi-meta { flex-wrap: wrap; gap: 6px 10px; }
}
/* 프로젝트 글 아래: 이 작업을 다룬 기사 */
.ar-press { margin-top: 70px; border-top: 1px solid var(--ink); padding-top: 14px; }
.ar-press > .mono { color: var(--mute); margin-bottom: 6px; }
.ar-press a { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ar-press a .mono { grid-column: 1; color: var(--mute); }
.ar-press a b { grid-column: 1; font: 400 22px/1.3 var(--serif); }
.ar-press a .go { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 20px; }
.ar-press a:hover b { text-decoration: underline; text-underline-offset: 4px; }

/* Ongoing: 줄 전체가 버튼 (누르면 설명 페이지) */
.plist li { display: block; padding: 0; }
.pl-item { width: 100%; display: grid; grid-template-columns: 80px minmax(0, 1.2fr) minmax(0, 1fr) 120px 40px; align-items: center; gap: 20px; padding: 26px 0; text-align: left; color: inherit; }
.pl-item .go { font-size: 24px; text-align: right; transition: transform .4s var(--ease); }
.pl-item:hover .go { transform: translateX(6px); }
.pl-item:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (max-width: 760px) {
  .pl-item { grid-template-columns: 40px 1fr 24px; gap: 4px 12px; }
  .pl-item .ko, .pl-item .y { grid-column: 2; text-align: left; }
  .pl-item .go { grid-column: 3; grid-row: 1; }
}
/* 프로젝트 글 속 링크 버튼 (예: 한옥 작업실 열어 보기) */
.ar-link { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 22px 24px; border: 1px solid var(--ink); border-radius: 10px; transition: background .3s; }
.ar-link .mono { color: var(--mute); }
.ar-link b { font: 400 26px/1.2 var(--serif); }
.ar-link .go { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 24px; }
.ar-link:hover { background: var(--yellow); }
.tp-more { align-self: start; padding: 9px 14px; border-radius: 999px; background: var(--ivory); color: var(--ink); }
.tp-more:hover { background: var(--yellow); }
/* 옆면이 붙는 왼쪽 모서리는 각지게 → 앞면과 옆면 이음새가 딱 맞게 (오른쪽 모서리만 둥글게) */
.shelf .cover { border-top-left-radius: 1px; border-bottom-left-radius: 1px; }
.shelf .cover .spn { top: 0; bottom: 0; }
.shelf .cover.boxset .bx-case { border-top-left-radius: 1px; border-bottom-left-radius: 1px; }
.shelf .cover.boxset .spn { border-radius: 0; }
/* VHS: 앞면 테두리와 같은 색 옆면 → 이음새가 밝은 틈처럼 보이지 않게 */
.shelf .cover.vhs { --side: #2b2a2d; }
.shelf .cover.vhs .spn::after { background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .3)); }
/* 오래된 책: filter 는 입체(옆면)를 납작하게 만들어서 빼고, 바랜 느낌은 덧입힌 질감으로만 */
.shelf .cover.old, .shelf .cover.older { filter: none; }
.shelf .cover.old .spn { filter: saturate(.85) sepia(.1); }
/* 박스 세트 옆면은 케이스 높이만큼 (카드가 있는 위쪽은 비움) */
.shelf .cover.boxset .spn { top: 34%; bottom: 0; }
