/* ============================================================
   ON2UP — 2026 리뉴얼
   콘셉트: 석고(plaster)와 흑연(graphite), 그리고 한 줄의 울트라마린.
   ● 원 = 조형/공간   ■ 사각 = 소프트웨어   ▲ 삼각 = 시제품   ◆ 마름모 = 미디어아트
   색상 4개는 관리자 > 테마에서 바꿀 수 있습니다 (includes/theme.php).
   ============================================================ */

:root {
  --bg-dark: #1D2027;
  --bg-light: #E6E5E0;
  --line: #9AA5FF;
  --accent: #2E3BEA;

  --ink: var(--bg-dark);
  --ink-soft: color-mix(in srgb, var(--bg-dark) 68%, var(--bg-light));
  --rule: color-mix(in srgb, var(--bg-dark) 16%, transparent);
  --plaster-2: color-mix(in srgb, var(--bg-light) 92%, var(--bg-dark));
  --on-dark: var(--bg-light);
  --on-dark-soft: color-mix(in srgb, var(--bg-light) 62%, var(--bg-dark));
  --rule-dark: color-mix(in srgb, var(--bg-light) 14%, transparent);

  --f-sans: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --f-disp: 'Archivo', 'IBM Plex Sans KR', sans-serif;

  /* 1.333 비율 타입 스케일 */
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.375rem;
  --t-xl: clamp(1.75rem, 1.2rem + 2vw, 2.4rem);
  --t-2xl: clamp(2.3rem, 1.4rem + 3.6vw, 3.9rem);
  --t-3xl: clamp(2.1rem, 1rem + 6vw, 6rem);

  --gut: clamp(16px, 4.5vw, 64px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: var(--t-md);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.atlas :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; }
.skip:focus { top: 12px; }

/* ---------- 종류 표시 (지도·필터·작업 카드에서 공통) ---------- */
.mk { display: inline-block; width: 10px; height: 10px; flex: none; background: currentColor; }
.mk-physical { border-radius: 50%; }
.mk-software { color: var(--accent); }
.mk-prototype { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.mk-art { transform: rotate(45deg) scale(.82); color: var(--accent); background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.glyph { width: .55em; height: .55em; display: inline-block; margin-right: .45em; vertical-align: .12em; fill: currentColor; }

/* ---------- 버튼 & 링크 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  background: var(--accent); color: #fff;
  font-weight: 500; font-size: var(--t-sm); text-decoration: none;
  border-radius: 999px;
  transition: transform .25s var(--ease), background-color .25s;
}
.btn:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--accent) 85%, #000); }
.btn-lg { padding: 18px 30px; font-size: var(--t-md); }
.text-link {
  font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color .2s;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- 머리말 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gut);
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; fill: currentColor; }
.brand-word { font-family: var(--f-disp); font-weight: 800; font-size: 1.15rem; font-variation-settings: 'wdth' 112; letter-spacing: 0.01em; }
.site-nav ul { display: flex; gap: clamp(18px, 3vw, 40px); }
.site-nav a { display: grid; text-decoration: none; font-size: var(--t-sm); line-height: 1.2; overflow: hidden; height: 1.2em; }
.site-nav .en, .site-nav .ko { transition: transform .35s var(--ease); }
.site-nav a:hover .en, .site-nav a:hover .ko, .site-nav a:focus-visible .en, .site-nav a:focus-visible .ko { transform: translateY(-100%); }
.site-nav .en { font-family: var(--f-disp); font-weight: 500; }
.site-nav a[aria-current="page"] .en::before { content: ''; display: inline-block; width: 6px; height: 6px; background: currentColor; border-radius: 50%; margin-right: 7px; vertical-align: .18em; }
.nav-toggle { display: none; width: 34px; height: 34px; position: relative; }
.nav-toggle span { position: absolute; left: 5px; right: 5px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.nav-toggle span:first-child { top: 12px; }
.nav-toggle span:last-child { top: 20px; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0; z-index: -1;
    background: var(--bg-dark); color: var(--bg-light);
    display: flex; align-items: flex-end; padding: 0 var(--gut) 48px;
    clip-path: circle(0 at calc(100% - 36px) 36px);
    transition: clip-path .6s var(--ease);
  }
  .site-nav ul { flex-direction: column; gap: 6px; }
  .site-nav a { height: auto; display: block; font-family: var(--f-disp); font-size: 3rem; font-weight: 800; font-variation-settings: 'wdth' 80; }
  .site-nav .ko { display: none; }
  .site-nav a:hover .en { transform: none; }
  body.nav-open .site-header { mix-blend-mode: normal; color: var(--bg-light); }
  body.nav-open .site-nav { clip-path: circle(150% at calc(100% - 36px) 36px); }
  body.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  body.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* ============================================================
   HOME — 히어로
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--bg-dark); color: var(--on-dark);
  display: grid; grid-template-rows: 1fr auto;
  overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero-copy {
  position: relative; grid-row: 2;
  padding: 0 var(--gut) clamp(32px, 7vh, 72px);
  max-width: 820px;
  pointer-events: none;
}
.hero-title { font-size: var(--t-2xl); font-weight: 700; line-height: 1.18; letter-spacing: -0.035em; }
.hero-title[lang="en"], .page-title[lang="en"], #atlas-title[lang="en"] { font-family: var(--f-disp); font-weight: 800; font-variation-settings: 'wdth' 88; letter-spacing: -0.03em; line-height: 1.02; }
.hero-word { font-family: var(--f-disp); font-variation-settings: 'wdth' 110; letter-spacing: 0.02em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-sub { margin-top: 20px; max-width: 34em; color: var(--on-dark-soft); font-size: var(--t-md); animation: fade 1s .5s both; }
.hero-state {
  position: absolute; right: var(--gut); bottom: clamp(32px, 7vh, 72px);
  text-align: right; display: grid; gap: 2px;
  animation: fade 1s .8s both;
}
.hero-word { font-size: var(--t-lg); font-weight: 700; color: var(--line); }
.hero-word-sub { font-size: var(--t-xs); color: var(--on-dark-soft); }
.hero-hint { position: absolute; top: 84px; right: var(--gut); font-size: var(--t-xs); color: var(--on-dark-soft); animation: fade 1s 1.4s both; }
@media (hover: none) { .hero-hint { display: none; } }
@media (max-width: 760px) {
  .hero-state { position: relative; right: auto; bottom: auto; text-align: left; grid-row: 3; padding: 0 var(--gut) 28px; }
  .hero-copy { padding-bottom: 18px; }
}
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   HOME — SCULPT + CODE
   ============================================================ */
.duo { padding: clamp(80px, 14vw, 180px) var(--gut) clamp(64px, 10vw, 140px); max-width: var(--max); margin: 0 auto; }
.duo-type {
  --wa: 62; --wb: 125;
  display: grid;
  font-family: var(--f-disp); font-weight: 900; line-height: .86;
  font-size: var(--duo-size, 14vw);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.duo-word { display: block; }
.duo-a { justify-self: start; font-variation-settings: 'wdth' var(--wa); }
.duo-b { justify-self: end; font-variation-settings: 'wdth' var(--wb); color: var(--accent); }
.duo-amp { font-weight: 200; font-variation-settings: 'wdth' 100; color: var(--ink-soft); margin-right: .12em; }
.duo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); margin-top: clamp(48px, 7vw, 96px); }
.duo-col h2 { font-size: var(--t-xl); margin-bottom: 18px; }
.duo-col:last-child h2 { color: var(--accent); }
.duo-col p { max-width: 36em; color: var(--ink-soft); }
.duo-col ul { margin-top: 24px; border-top: 1px solid var(--rule); }
.duo-col li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: var(--t-sm); }
@media (max-width: 760px) { .duo-cols { grid-template-columns: 1fr; } }

/* ============================================================
   HOME — 가로 릴
   ============================================================ */
.reel { background: var(--plaster-2); padding: clamp(64px, 9vw, 120px) 0 48px; position: relative; }
.reel.is-pinned { padding: 0; }
.reel.is-pinned .reel-pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 40px; }
.reel.is-pinned .reel-item { width: clamp(220px, 26vw, 400px); }
.reel.is-pinned .reel-img { aspect-ratio: auto; height: min(48vh, 34vw); }
.reel.is-pinned .reel-item:nth-child(3n+2) { margin-top: 6vh; }
.reel.is-pinned .reel-more { aspect-ratio: auto; height: min(48vh, 34vw); }
.reel:not(.is-pinned) .reel-pin { overflow: hidden; }
.reel-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding: 0 var(--gut); margin-bottom: 40px; }
.reel-head h2 { font-size: var(--t-2xl); letter-spacing: -0.035em; }
.reel-head p { color: var(--ink-soft); max-width: 30em; }
.reel-track { display: flex; gap: clamp(16px, 2vw, 28px); padding: 0 var(--gut); width: max-content; will-change: transform; }
.reel-item { width: clamp(250px, 30vw, 460px); flex: none; }
.reel-item:nth-child(3n+2) { margin-top: clamp(24px, 6vh, 72px); }
.reel-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--rule); }
.reel-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: filter .4s; }
.reel figcaption { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding-top: 14px; }
.reel-year { font-family: var(--f-disp); font-size: var(--t-sm); color: var(--ink-soft); grid-row: span 2; font-variant-numeric: tabular-nums; }
.reel-title { font-weight: 700; }
.reel-desc { font-size: var(--t-xs); color: var(--ink-soft); }
.reel-more {
  display: grid; place-items: center; align-self: stretch; text-decoration: none;
  background: var(--accent); color: #fff; font-size: var(--t-xl); font-weight: 700; line-height: 1.25; text-align: center;
  aspect-ratio: 4 / 5; margin-top: 0 !important;
  transition: background-color .3s;
}
.reel-more:hover { background: var(--bg-dark); }
.reel-progress { margin: 36px var(--gut) 0; height: 2px; background: var(--rule); }
.reel-progress span { display: block; height: 100%; width: 0; background: var(--ink); }
@media (max-width: 800px) {
  .reel-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; }
  .reel-track::-webkit-scrollbar { display: none; }
  .reel-item { width: 74vw; scroll-snap-align: start; }
  .reel-item:nth-child(3n+2) { margin-top: 0; }
  .reel-img img { transform: none; }
}

/* ============================================================
   HOME — 플랫폼 목록
   ============================================================ */
.platforms { padding: clamp(80px, 12vw, 160px) var(--gut); max-width: var(--max); margin: 0 auto; }
.pf-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 48px; }
.pf-head h2 { font-size: var(--t-2xl); letter-spacing: -0.035em; }
.pf-head p { color: var(--ink-soft); max-width: 30em; }
.pf-list { border-top: 1px solid var(--ink); }
.pf-row { border-bottom: 1px solid var(--rule); }
.pf-toggle {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 4.5em 28px; align-items: center; gap: 20px;
  padding: clamp(14px, 2vw, 22px) 0;
}
.pf-name {
  font-family: var(--f-disp); font-weight: 800; line-height: 1;
  font-size: clamp(2rem, 4.4vw, 4.2rem); letter-spacing: -0.02em;
  font-variation-settings: 'wdth' 78;
  transition: font-variation-settings .5s var(--ease), color .3s;
}
.pf-toggle:hover .pf-name, .pf-row.is-open .pf-name { font-variation-settings: 'wdth' 112; color: var(--accent); }
.pf-domain { color: var(--ink-soft); font-size: var(--t-sm); }
.pf-year { font-family: var(--f-disp); font-size: var(--t-sm); color: var(--ink-soft); text-align: right; font-variant-numeric: tabular-nums; }
.pf-plus { width: 22px; height: 22px; position: relative; justify-self: end; }
.pf-plus::before, .pf-plus::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: currentColor; transition: transform .35s var(--ease); }
.pf-plus::after { transform: rotate(90deg); }
.pf-row.is-open .pf-plus::after { transform: rotate(0); }
.pf-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.pf-row.is-open .pf-body { grid-template-rows: 1fr; }
.pf-body-inner { overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 56px); }
.pf-row.is-open .pf-body-inner { padding-bottom: 36px; }
.pf-viz { width: 100%; aspect-ratio: 16 / 10; background: var(--bg-dark); }
.pf-text { display: grid; gap: 14px; align-content: start; max-width: 40em; }
.pf-problem { font-size: var(--t-lg); line-height: 1.5; font-weight: 500; }
.pf-meta { font-size: var(--t-sm); color: var(--ink-soft); }
.pf-text .btn { justify-self: start; margin-top: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: var(--t-xs); padding: 3px 10px; border: 1px solid var(--rule); border-radius: 999px; }
@media (max-width: 760px) {
  .pf-head { grid-template-columns: 1fr; }
  .pf-toggle { grid-template-columns: 1fr 28px; row-gap: 4px; }
  .pf-name { grid-column: 1; }
  .pf-domain { grid-column: 1; grid-row: 2; }
  .pf-year { display: none; }
  .pf-plus { grid-column: 2; grid-row: 1 / span 2; }
  .pf-body-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   HOME — 20년 지도
   ============================================================ */
.atlas { background: var(--bg-dark); color: var(--on-dark); padding: clamp(72px, 10vw, 130px) 0 40px; position: relative; }
.atlas-head { padding: 0 var(--gut); display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; align-items: end; }
.atlas-head h2 { font-size: var(--t-2xl); letter-spacing: -0.035em; font-family: var(--f-sans); }
.atlas-head p { color: var(--on-dark-soft); max-width: 32em; }
.atlas-legend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.legend-btn {
  display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-sm);
  padding: 7px 14px; border: 1px solid var(--rule-dark); border-radius: 999px;
  transition: opacity .25s, border-color .25s;
}
.legend-btn[aria-pressed="false"] { opacity: .38; }
.legend-btn:hover { border-color: var(--on-dark-soft); }
.atlas .mk-physical { color: var(--on-dark); }
.atlas .mk-software, .atlas .mk-art { color: var(--line); }
.atlas .mk-prototype { color: var(--on-dark-soft); }
.atlas-stage {
  position: relative; height: clamp(380px, 62vh, 620px); margin-top: 36px;
  overflow: hidden; cursor: grab; touch-action: pan-y;
  border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark);
  user-select: none;
}
.atlas-stage.is-drag { cursor: grabbing; }
.atlas-axis, .atlas-dots { position: absolute; inset: 0; }
.atlas-tick { position: absolute; bottom: 0; top: 0; border-left: 1px solid var(--rule-dark); }
.atlas-tick span { position: absolute; bottom: 10px; left: 8px; font-family: var(--f-disp); font-size: var(--t-xs); color: var(--on-dark-soft); font-variant-numeric: tabular-nums; }
.atlas-tick.is-major span { font-size: var(--t-sm); color: var(--on-dark); font-weight: 600; }
.atlas-dot {
  position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  display: grid; place-items: center;
  transition: opacity .3s, transform .35s var(--ease);
}
.atlas-dot .mk { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.atlas-dot:hover .mk, .atlas-dot:focus-visible .mk, .atlas-dot.is-active .mk { transform: scale(1.8); }
.atlas-dot.is-hidden { opacity: 0; pointer-events: none; }
.atlas-dot .lbl {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: var(--t-xs); color: var(--on-dark-soft);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.atlas.is-zoomed .atlas-dot .lbl { opacity: 1; }
.atlas-card {
  position: absolute; z-index: 3; width: min(300px, 80vw);
  background: var(--bg-light); color: var(--ink);
  pointer-events: none;
  animation: pop .25s var(--ease);
}
.atlas-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.atlas-card .c-body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.atlas-card .c-meta { font-size: var(--t-xs); color: var(--ink-soft); display: flex; gap: 8px; align-items: center; }
.atlas-card .c-title { font-weight: 700; line-height: 1.35; }
.atlas-card .c-sub { font-size: var(--t-xs); color: var(--ink-soft); line-height: 1.5; }
.atlas-card .c-go { font-size: var(--t-xs); color: var(--accent); font-weight: 500; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.atlas-lane { position: absolute; left: var(--gut); font-size: var(--t-xs); color: var(--on-dark-soft); display: flex; align-items: center; gap: 8px; pointer-events: none; z-index: 2; transform: translateY(-50%); background: color-mix(in srgb, var(--bg-dark) 85%, transparent); padding: 2px 8px 2px 0; }
.img-missing { background: repeating-linear-gradient(135deg, var(--rule) 0 1px, transparent 1px 12px); }
.img-missing img { visibility: hidden; }
.atlas-tools { display: flex; gap: 8px; justify-content: flex-end; padding: 14px var(--gut) 0; }
.atlas-tools button { min-width: 40px; height: 40px; padding: 0 14px; border: 1px solid var(--rule-dark); border-radius: 999px; font-size: var(--t-sm); }
.atlas-tools button:hover { border-color: var(--on-dark-soft); }
@media (max-width: 760px) { .atlas-head { grid-template-columns: 1fr; } }

/* ============================================================
   HOME — 작가 / CTA
   ============================================================ */
/* ---------- HOME — DIOSOFT ---------- */
.dio { background: var(--plaster-2); padding: clamp(80px, 11vw, 150px) var(--gut); overflow: hidden; }
.dio > * { max-width: calc(var(--max) - 2 * var(--gut)); margin-left: auto; margin-right: auto; }
.dio-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px clamp(28px, 5vw, 80px); align-items: end; }
.dio-kicker { grid-column: 1 / -1; font-family: var(--f-disp); font-size: var(--t-sm); color: var(--accent); font-weight: 600; }
.dio-name { font-family: var(--f-disp); font-weight: 900; font-size: clamp(3.4rem, 11vw, 10rem); line-height: .85; letter-spacing: -0.03em; font-variation-settings: 'wdth' 100; }
.dio-intro { display: grid; gap: 14px; max-width: 34em; padding-bottom: .4em; }
.dio-lead { font-size: var(--t-lg); font-weight: 700; line-height: 1.45; }
.dio-intro > p:not(.dio-lead) { color: var(--ink-soft); }
.dio-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg-light); }
.dio-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(36px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--ink); }
.dio-kinds li { font-size: var(--t-sm); padding: 7px 16px; border-radius: 999px; background: var(--bg-dark); color: var(--bg-light); }
.dio-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(32px, 4vw, 56px); }
.dio-points h3 { font-size: var(--t-md); margin-bottom: 8px; }
.dio-points p { font-size: var(--t-sm); color: var(--ink-soft); }
@media (max-width: 860px) { .dio-head { grid-template-columns: 1fr; } .dio-points { grid-template-columns: 1fr; } }

.artist { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--gut); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.artist-quote p { font-size: clamp(2.6rem, 1.2rem + 4.6vw, 5rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.045em; }
.artist-body > p { color: var(--ink-soft); max-width: 34em; }
.artist-works { margin: 28px 0; border-top: 1px solid var(--ink); }
.artist-works a { display: grid; grid-template-columns: 4em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; transition: padding .3s var(--ease), color .2s; }
.artist-works a:hover { padding-left: 10px; color: var(--accent); }
.aw-year { font-family: var(--f-disp); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.aw-title { font-weight: 500; }
@media (max-width: 860px) { .artist { grid-template-columns: 1fr; } }

.cta { padding: clamp(80px, 12vw, 170px) var(--gut); text-align: center; border-top: 1px solid var(--rule); }
.cta-title { font-size: var(--t-2xl); letter-spacing: -0.035em; margin-bottom: 36px; }

/* ---------- 꼬리말 ---------- */
.site-footer { background: var(--bg-dark); color: var(--on-dark); padding: 0 var(--gut) 28px; overflow: hidden; }
.foot-big {
  font-family: var(--f-disp); font-weight: 900; line-height: .78;
  font-size: clamp(4rem, 18vw, 20rem); letter-spacing: -0.03em;
  font-variation-settings: 'wdth' var(--fw, 62);
  color: var(--accent);
  margin: 0 -0.04em; padding-top: .12em;
  white-space: nowrap;
}
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; padding-top: 40px; margin-top: 28px; border-top: 1px solid var(--rule-dark); font-size: var(--t-sm); color: var(--on-dark-soft); }
.foot-name { color: var(--on-dark); font-weight: 700; margin-bottom: 4px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 4px; }
.foot-links { display: grid; gap: 4px; }
.foot-copy { margin-top: 40px; font-size: var(--t-xs); color: var(--on-dark-soft); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ============================================================
   하위 페이지 공통
   ============================================================ */
.page-hero { padding: clamp(130px, 20vh, 220px) var(--gut) clamp(48px, 7vw, 90px); max-width: var(--max); margin: 0 auto; }
.page-title { font-size: var(--t-3xl); letter-spacing: -0.045em; line-height: 1.08; }
.page-title .ch { display: inline-block; }
.page-lede { margin-top: 24px; max-width: 36em; color: var(--ink-soft); font-size: var(--t-lg); line-height: 1.6; }
.sec-title { font-size: var(--t-xl); margin-bottom: 36px; }
.empty-note { color: var(--ink-soft); padding: 24px 0; }

/* ---------- WORK ---------- */
.work { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) clamp(60px, 8vw, 120px); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--ink); margin-bottom: 40px; position: sticky; top: 62px; z-index: 5; background: var(--bg-light); box-shadow: 0 -62px 0 var(--bg-light); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--rule); border-radius: 999px; font-size: var(--t-sm); transition: background-color .25s, color .25s, border-color .25s; }
.chip span { font-family: var(--f-disp); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg-light); border-color: var(--ink); }
.chip[aria-pressed="true"] span { color: var(--on-dark-soft); }
.chip[aria-pressed="true"] .mk-software, .chip[aria-pressed="true"] .mk-art { color: var(--line); }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.w-item.is-hidden { display: none; }
.w-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--plaster-2); position: relative; }
.w-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.w-item:hover .w-media img { transform: scale(1.04); }
.w-media-case { background: var(--bg-dark); }
.w-media-case .pf-viz { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.w-case-name { position: absolute; left: 16px; bottom: 12px; font-family: var(--f-disp); font-weight: 800; font-size: var(--t-xl); color: var(--bg-light); font-variation-settings: 'wdth' 90; line-height: 1; }
.gen-cover { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: .5; opacity: .5; }
.w-text { padding-top: 14px; display: grid; gap: 6px; }
.w-meta { display: flex; align-items: center; gap: 8px; font-size: var(--t-xs); color: var(--ink-soft); }
.w-title { font-size: var(--t-lg); line-height: 1.35; }
.w-desc { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.65; }
.w-status { font-size: var(--t-xs); color: var(--accent); font-weight: 500; }
.w-text .text-link { font-size: var(--t-sm); justify-self: start; }

/* ---------- ABOUT ---------- */
.services, .history, .profile { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gut); }
.services { border-top: 1px solid var(--ink); }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-left: 1px solid var(--rule); }
.svc { padding: 8px clamp(16px, 2vw, 28px) 24px; border-right: 1px solid var(--rule); display: grid; gap: 12px; align-content: start; }
.svc .mk { width: 14px; height: 14px; }
.svc h3 { font-size: var(--t-lg); }
.svc p { font-size: var(--t-sm); color: var(--ink-soft); }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; } }
@media (max-width: 520px) { .svc-grid { grid-template-columns: 1fr; } }

.history { background: var(--bg-dark); color: var(--on-dark); max-width: none; }
.history > * { max-width: calc(var(--max) - 2 * var(--gut)); margin-left: auto; margin-right: auto; }
.hist-wrap { position: relative; }
.hist-line { position: absolute; left: 7.5em; top: 0; bottom: 0; width: 1px; background: var(--rule-dark); }
.hist-line span { display: block; width: 100%; height: 100%; background: var(--line); transform-origin: top; transform: scaleY(var(--hp, 1)); }
.hist-row { display: grid; grid-template-columns: 7.5em 1fr; gap: 0 2em; padding: 18px 0; position: relative; }
.hist-row::before { content: ''; position: absolute; left: calc(7.5em - 4px); top: 28px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg-dark); border: 1px solid var(--line); }
.hist-year { font-family: var(--f-disp); font-weight: 700; font-size: var(--t-lg); line-height: 1.3; font-variant-numeric: tabular-nums; padding-right: 1em; }
.hist-desc { color: var(--on-dark-soft); max-width: 46em; padding-left: 1.2em; }
.hist-row.is-lit .hist-desc { color: var(--on-dark); }
.hist-row.is-lit::before { background: var(--line); }
@media (max-width: 600px) {
  .hist-line { left: 4px; }
  .hist-row { grid-template-columns: 1fr; padding-left: 24px; }
  .hist-row::before { left: 0; top: 26px; }
  .hist-desc { padding-left: 0; }
}

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.profile-name { font-size: var(--t-xl); font-weight: 700; color: var(--ink); margin-bottom: 20px !important; }
.profile-name span { display: block; font-size: var(--t-sm); font-weight: 400; color: var(--ink-soft); }
.profile-text p + p { margin-top: 1em; }
.profile-text { color: var(--ink-soft); }
.profile-links { margin-top: 28px !important; color: var(--ink); }
.cv { display: grid; gap: 36px; }
.cv h3 { font-size: var(--t-md); padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.cv dl div { display: grid; grid-template-columns: 4em 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: var(--t-sm); }
.cv dt { font-family: var(--f-disp); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .profile-grid { grid-template-columns: 1fr; } }

/* ---------- CONTACT ---------- */
.contact { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) clamp(80px, 10vw, 140px); display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 6vw, 96px); border-top: 1px solid var(--ink); padding-top: 48px; }
.contact-form { display: grid; gap: 22px; }
.kind-pick { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kind-pick legend { font-weight: 500; margin-bottom: 12px; padding: 0; }
.kind-pick input { position: absolute; opacity: 0; }
.kind-pick span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--rule); border-radius: 999px; font-size: var(--t-sm); cursor: pointer; transition: background-color .2s, color .2s; }
.kind-pick input:checked + span { background: var(--ink); color: var(--bg-light); }
.kind-pick input:checked + span .mk-software, .kind-pick input:checked + span .mk-art { color: var(--line); }
.kind-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--t-sm); font-weight: 500; }
.field input, .field textarea {
  font: inherit; color: inherit; background: transparent;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  padding: 10px 0; transition: border-color .2s;
}
.field textarea { resize: vertical; border: 1px solid var(--ink); padding: 12px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #C2261B; }
.form-error { color: #B3241A; font-size: var(--t-sm); }
.contact-form .btn { justify-self: start; }
.form-note { font-size: var(--t-xs); color: var(--ink-soft); }
.contact-info { display: grid; gap: 22px; align-content: start; }
.contact-info dt { font-size: var(--t-xs); color: var(--ink-soft); }
.contact-info dd { font-size: var(--t-lg); font-weight: 500; }
@media (max-width: 760px) { .contact, .field-row { grid-template-columns: 1fr; } }

/* ---------- 움직임 줄이기 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
