/* yunmin.dev — 아이보리 벽 + 컬러 홀드 */

:root {
  --bg: #FBF8F1;
  --bg-2: #F4EFE3;
  --card: #FFFDF8;
  --ink: #1F1C18;
  --ink-2: #4E4940;
  --muted: #8C8577;
  --line: #E7E0D1;
  --line-2: #D9D0BD;
  --tnut: rgba(90, 78, 58, 0.16);
  --radius: 18px;
  --shadow: 0 1px 0 rgba(60, 48, 30, .04), 0 8px 24px -14px rgba(60, 48, 30, .25);
  --wrap: 1120px;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
/* 벽의 T-너트 구멍 패턴 */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(circle, var(--tnut) 1.4px, transparent 1.8px);
  background-size: 34px 34px;
  pointer-events: none;
  z-index: -1;
  mask-image: linear-gradient(to bottom, #000 0, rgba(0,0,0,.45) 60%, rgba(0,0,0,.25));
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 2.5px solid #2F6BDB; outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background .2s, box-shadow .2s, border-color .2s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(251, 248, 241, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--mono); font-weight: 600; font-size: 15px; }
.logo b { color: #E5483B; font-weight: 600; }
.logo .hold-svg { transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.logo:hover .hold-svg { transform: rotate(-35deg) scale(1.1); }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  padding: 6px 11px; border-radius: 999px; white-space: nowrap; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.nav .ext { font-size: 11px; margin-left: 2px; opacity: .6; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.hero-meta { display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; color: var(--ink-2); margin-bottom: 18px; }
.hero-meta span { border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 11px; background: var(--card); }
.hero-meta span:first-child::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2E9E5B; margin-right: 7px; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(46,158,91,.18); }
.hero-hello { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-2); font-weight: 500; margin-bottom: 4px; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1.05; }
.hero h1 .dot { color: #F2BE22; }
.hero-tagline { font-size: clamp(1.1rem, 2.2vw, 1.35rem); font-weight: 600; margin-top: 18px; letter-spacing: -0.02em; }
.hero-intro { color: var(--ink-2); margin-top: 12px; max-width: 34em; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1.5px solid var(--ink); background: var(--card); color: var(--ink);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink); }
.btn.primary { background: var(--ink); color: var(--bg); }

/* 클라이밍 벽 */
.wall {
  position: relative;
  aspect-ratio: 1 / 1.02;
  border-radius: 26px;
  background:
    radial-gradient(circle, rgba(70, 58, 40, .28) 1.6px, transparent 2.2px) 0 0 / 9% 9%,
    linear-gradient(160deg, #F7F1E4, #EFE6D3);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.35), var(--shadow);
  overflow: hidden;
}
/* 합판 이음새 */
.wall::before, .wall::after { content: ''; position: absolute; background: rgba(90, 74, 50, .12); pointer-events: none; }
.wall::before { left: 50%; top: 0; bottom: 0; width: 1.5px; }
.wall::after { top: 50%; left: 0; right: 0; height: 1.5px; }
.wall-inner { position: absolute; inset: 5% 5% 16% 5%; }
.wall-hold {
  position: absolute; transform: translate(-50%, -50%);
  width: var(--w); aspect-ratio: 1; height: auto;
  padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
  transition: opacity .25s, filter .25s, transform .25s;
  filter: drop-shadow(0 3px 0 rgba(60,45,25,.14));
  z-index: 1;
}
.wall-hold .hold-svg { width: 100%; height: 100%; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.wall-hold:hover .hold-svg, .wall-hold:focus-visible .hold-svg { transform: scale(1.12); }
.wall[data-focus] .wall-hold { opacity: .28; filter: grayscale(.6); }
.wall[data-focus="0"] .wall-hold[data-route="0"],
.wall[data-focus="1"] .wall-hold[data-route="1"],
.wall[data-focus="2"] .wall-hold[data-route="2"],
.wall[data-focus="3"] .wall-hold[data-route="3"],
.wall[data-focus="4"] .wall-hold[data-route="4"] { opacity: 1; filter: drop-shadow(0 4px 0 rgba(60,45,25,.18)); }
.wall-hold.touched::after {
  content: ''; position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.75), rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.wall-hold.grab .hold-svg { animation: grab .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes grab { 0% { transform: scale(1); } 35% { transform: scale(.86) rotate(-6deg); } 100% { transform: scale(1.12); } }
.start-tape, .top-tape {
  position: absolute; left: 50%; transform: translateX(-50%) rotate(-3deg);
  font-family: var(--mono); font-size: 10px; font-weight: 700; line-height: 1;
  padding: 3px 6px; white-space: nowrap; pointer-events: none;
}
.start-tape { top: 100%; margin-top: 2px; background: var(--c); color: #fff; }
.top-tape { bottom: 100%; margin-bottom: 0; background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.wall-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-2);
  background: rgba(255, 253, 248, .9); border: 1px solid var(--line-2);
  padding: 5px 12px; border-radius: 999px; white-space: nowrap; transition: transform .2s, background .2s;
}
.wall-hint.sent { background: var(--ink); color: var(--bg); transform: translateX(-50%) scale(1.06); }

.chalk {
  position: fixed; width: 7px; height: 7px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06); pointer-events: none; z-index: 90;
  animation: chalk .9s ease-out forwards;
}
@keyframes chalk { from { transform: translate(-50%,-50%); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.3); opacity: 0; } }

/* ---------- sections ---------- */
main section { padding: 56px 0; scroll-margin-top: 70px; }
.sec-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 800; }
.sec-sub { color: var(--muted); font-size: 15px; }
.sec-more { margin-left: auto; font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.sec-more:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
/* 루트 시작 테이프 */
.tape {
  display: inline-block; background: var(--c); color: #fff;
  font-family: var(--mono); font-weight: 700; font-size: 13px; line-height: 1;
  padding: 7px 12px 7px 10px; transform: rotate(-3deg);
  clip-path: polygon(0 0, 100% 0, 96% 25%, 100% 50%, 96% 75%, 100% 100%, 0 100%, 4% 70%, 0 40%, 4% 15%);
}

.page-hero { padding: 56px 0 8px; }
.page-hero .eyebrow { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 800; letter-spacing: -0.045em; }
.page-hero p.lead { color: var(--ink-2); margin-top: 14px; max-width: 40em; font-size: 1.05rem; }

.ph {
  display: inline-block; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0;
  color: #9A6B00; background: #FFF1C7; border: 1px dashed #E2B740;
  padding: 1px 6px; border-radius: 6px; margin-left: 8px; vertical-align: 3px;
}

/* about (홈) */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.panel-title { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.cv { margin: 0; }
.cv div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--line-2); }
.cv div:first-child { border-top: 0; padding-top: 0; }
.cv dt { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 2px; }
.cv dd { margin: 0; font-weight: 500; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fact {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 18px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s;
}
.fact:hover { transform: translateY(-3px) rotate(-.4deg); border-color: var(--c); }
.fact-hold { margin-bottom: 8px; transition: transform .4s cubic-bezier(.3,1.6,.5,1); width: max-content; }
.fact:hover .fact-hold { transform: rotate(25deg); }
.fact h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.fact p { color: var(--ink-2); font-size: 15px; }

.now-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.now { list-style: none; margin: 0; padding: 0; }
.now li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--line-2); }
.now li:first-child { border-top: 0; padding-top: 0; }
.now .hold-svg { flex: none; }

.stack { display: grid; gap: 12px; }
.stack-row { display: grid; grid-template-columns: 124px 1fr; gap: 12px; align-items: baseline; }
.stack-group { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--c); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13.5px; padding: 3px 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); }

/* 번호 리스트 카드 */
.rows { display: grid; gap: 10px; }
.row-card {
  display: grid; grid-template-columns: 34px 44px 1fr auto auto 22px; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; text-decoration: none; box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
a.row-card:hover { transform: translateY(-2px); border-color: var(--c); box-shadow: 0 6px 0 -1px var(--c); }
a.row-card:hover .row-hold .hold-svg { transform: rotate(-30deg) scale(1.08); }
.row-card.is-disabled { opacity: .7; }
.row-num { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.row-hold .hold-svg { transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.row-main { display: flex; flex-direction: column; min-width: 0; }
.row-title { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.row-sub { color: var(--muted); font-size: 14.5px; }
.row-date { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.row-arrow { font-size: 18px; color: var(--muted); }
a.row-card:hover .row-arrow { color: var(--c); }
.tag {
  font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px;
  color: color-mix(in srgb, var(--c) 78%, #000); background: color-mix(in srgb, var(--c) 14%, transparent); white-space: nowrap;
}
.status { font-family: var(--mono); font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.status.live { color: #2E9E5B; border-color: rgba(46,158,91,.4); background: rgba(46,158,91,.08); }

.elsewhere { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.else-card {
  display: grid; grid-template-columns: 56px 1fr 22px; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none;
  box-shadow: var(--shadow); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.else-card:hover { transform: translateY(-2px); border-color: var(--c); box-shadow: 0 6px 0 -1px var(--c); }
.else-title { font-family: var(--mono); font-weight: 700; font-size: 15.5px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.else-card p.muted { font-size: 14.5px; }

.contact {
  text-align: center; padding: 56px 24px; border-radius: 28px; background: var(--ink); color: var(--bg);
  position: relative; overflow: hidden;
}
.contact h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
.contact p { color: rgba(251,248,241,.7); margin-top: 10px; }
.contact .hero-cta { justify-content: center; }
.contact .btn { background: transparent; color: var(--bg); border-color: rgba(251,248,241,.5); }
.contact .btn:hover { box-shadow: 0 4px 0 rgba(251,248,241,.5); }
.contact > :not(.contact-holds) { position: relative; z-index: 1; }
.contact-holds { position: absolute; inset: 0; pointer-events: none; opacity: .9; }
.contact-holds .hold-svg { position: absolute; }

/* ---------- projects page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 24px; }
.filter {
  font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
  padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink-2);
  transition: all .15s;
}
.filter span { font-family: var(--mono); font-size: 12px; opacity: .7; margin-left: 2px; }
.filter:hover { border-color: var(--c); color: var(--ink); }
.filter.on { background: var(--c); border-color: var(--c); color: #fff; }
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.p-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px;
  border-top: 5px solid var(--c); transition: transform .2s;
}
.p-card { text-decoration: none; color: inherit; }
.p-card:hover { transform: translateY(-3px); box-shadow: 0 6px 0 -1px var(--c); border-color: var(--c); border-top-color: var(--c); }
.p-more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: color-mix(in srgb, var(--c) 80%, #000); }
.p-card:hover .p-more { text-decoration: underline; text-underline-offset: 3px; }
.p-card[hidden] { display: none; }
.p-top { display: flex; align-items: center; gap: 10px; }
.p-top .row-date { margin-left: auto; }
.p-hold { position: absolute; right: 14px; top: 44px; opacity: .95; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.p-card:hover .p-hold { transform: rotate(-25deg); }
.p-card h3 { font-size: 1.25rem; font-weight: 800; padding-right: 76px; margin-top: 6px; }
.p-event { color: var(--muted); font-size: 14.5px; padding-right: 76px; }
.p-result { font-weight: 600; font-size: 14.5px; }
.p-card > p:not(.p-event):not(.p-result):not(.p-role) { color: var(--ink-2); font-size: 15px; }
.p-role { font-size: 14.5px; color: var(--ink-2); }
.p-role b { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-right: 6px; }
.p-links { display: flex; gap: 12px; margin-top: auto; padding-top: 6px; }
.p-links a { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--c); }
.p-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- about page ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 10px; bottom: 10px; border-left: 2px dashed var(--line-2); }
.timeline li { position: relative; display: grid; grid-template-columns: 30px 150px 1fr; gap: 16px; align-items: start; padding: 10px 0; }
.tl-hold { position: relative; z-index: 1; }
.tl-date { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 4px; white-space: nowrap; }
.tl-title { font-weight: 700; }

/* ---------- climbing page ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats .small { grid-column: 1 / -1; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; border-left: 5px solid var(--c); box-shadow: var(--shadow); }
.stat-k { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.stat-v { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(40px, 9.5em) 1fr 36px; gap: 12px; align-items: center; }
.bar-k, .bar-v { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.bar-k { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-v { text-align: right; }
.bar { height: 16px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; min-width: 4px; background: var(--c); border-radius: 999px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.climb-log { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.climb-log li { display: grid; grid-template-columns: 34px auto 1fr auto; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

/* ---------- lab: hold generator ---------- */
.gen { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.gen-stage {
  aspect-ratio: 1; border-radius: 26px; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(70,58,40,.26) 1.6px, transparent 2.2px) 0 0 / 10% 10%, linear-gradient(160deg, #F7F1E4, #EFE6D3);
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.gen-stage .hold-svg { width: 62%; height: 62%; filter: drop-shadow(0 6px 0 rgba(60,45,25,.14)); animation: pop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { from { transform: scale(.6) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.gen-controls { display: grid; gap: 18px; }
.gen-controls label { font-family: var(--mono); font-size: 12.5px; color: var(--muted); display: block; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--card); box-shadow: 0 0 0 1.5px var(--line-2); background: var(--c); cursor: pointer; padding: 0; }
.swatch.on { box-shadow: 0 0 0 2.5px var(--ink); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { font: inherit; font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); cursor: pointer; color: var(--ink-2); }
.seg button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.gen-seed { font-family: var(--mono); font-size: 14px; color: var(--ink-2); }
.gen-history { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; margin-top: 8px; }
.gen-history button { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; cursor: pointer; aspect-ratio: 1; }
.gen-history .hold-svg { width: 100%; height: 100%; }


/* ---------- project detail ---------- */
.page-hero .eyebrow a { color: inherit; }
.proj-title { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.proj-title h1 { margin-top: 10px; }
.proj-title .p-top .row-date { margin-left: 0; }
.proj-hold { filter: drop-shadow(0 6px 0 rgba(60,45,25,.14)); transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.proj-hold:hover { transform: rotate(-30deg) scale(1.05); }
.proj-body-sec { padding-top: 32px; }
.proj-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }
.proj-layout > * { min-width: 0; }
.proj-side { position: sticky; top: 84px; }
.proj-side .cv div { grid-template-columns: 72px 1fr; }
.proj-tags { margin-top: 14px; }
.proj-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.proj-links .btn { font-size: 14px; padding: 8px 14px; }
.proj-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.proj-nav .row-card { grid-template-columns: 1fr; }
.proj-nav .row-card.next { text-align: right; }

/* 마크다운 본문 */
.prose { max-width: 720px; font-size: 16.5px; line-height: 1.85; color: var(--ink); }
.prose > * + * { margin-top: 1em; }
.prose h2 { display: flex; align-items: center; gap: 10px; font-size: 1.55rem; font-weight: 800; margin-top: 2.2em; padding-bottom: 8px; border-bottom: 1px dashed var(--line-2); }
.prose h2:first-child { margin-top: 0; }
.prose h2 .hold-svg { flex: none; }
.prose h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.8em; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose a { color: #2F6BDB; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--muted); }
.prose img { border-radius: 14px; border: 1px solid var(--line); margin: 1.4em 0; }
.prose blockquote { margin: 1.4em 0; padding: 12px 18px; border-left: 4px solid #F2BE22; background: var(--card); border-radius: 0 12px 12px 0; }
.prose blockquote p { color: var(--ink-2); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--bg-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.prose pre { background: #1F1C18; color: #F4EFE3; padding: 16px 18px; border-radius: 14px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 1.5px dashed var(--line-2); margin: 2.2em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--bg-2); font-weight: 700; }

/* ---------- route nav (오른쪽) ---------- */
.route-nav {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column; gap: 14px; padding: 12px 0;
}
.route-nav::before { content: ''; position: absolute; left: 50%; top: 8px; bottom: 8px; border-left: 1.5px dashed var(--line-2); z-index: -1; }
.route-nav a { position: relative; display: block; text-decoration: none; }
.route-nav .hold-svg { filter: grayscale(1) opacity(.35); transition: filter .3s, transform .3s; }
.route-nav a.reached .hold-svg { filter: none; }
.route-nav a.active .hold-svg { transform: scale(1.35); }
.route-nav span {
  position: absolute; right: 30px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 12px; background: var(--ink); color: var(--bg); padding: 2px 8px; border-radius: 6px;
  opacity: 0; pointer-events: none; transition: opacity .15s; white-space: nowrap;
}
.route-nav a:hover span, .route-nav a:focus-visible span { opacity: 1; }

/* ---------- footer ---------- */
.site-footer { margin-top: 56px; padding: 36px 0 28px; border-top: 1px solid var(--line); background: linear-gradient(to bottom, transparent, rgba(244,239,227,.7)); }
.footer-holds { display: flex; gap: 10px; margin-bottom: 26px; }
.footer-holds .hold-svg { transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.footer-holds .hold-svg:hover { transform: translateY(-6px) rotate(30deg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 24px; }
.footer-grid a { display: block; text-decoration: none; color: var(--ink-2); font-size: 14.5px; padding: 2px 0; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-title { font-family: var(--mono); font-weight: 700; margin-bottom: 6px; }
.footer-title b { color: #E5483B; }
.footer-grid .muted { font-size: 14.5px; }
.footer-label { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 32px; padding-top: 18px; border-top: 1px dashed var(--line-2); font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }

/* ---------- 404 ---------- */
.fall { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.fall .falling { width: 110px; margin: 0 auto 18px; animation: fall 2.4s cubic-bezier(.5,0,.75,0) infinite; }
@keyframes fall { 0% { transform: translateY(-30px) rotate(0); opacity: 0; } 15% { opacity: 1; } 80% { transform: translateY(40px) rotate(160deg); opacity: 1; } 100% { transform: translateY(50px) rotate(180deg); opacity: 0; } }
.fall h1 { font-size: clamp(2.6rem, 7vw, 4rem); font-weight: 800; }
.fall p { color: var(--ink-2); margin: 10px 0 24px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

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

/* ---------- responsive ---------- */
@media (max-width: 1240px) { .route-nav { display: none; } }
@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero-grid, .about-grid, .now-grid, .two-col, .gen, .proj-layout { grid-template-columns: 1fr; gap: 32px; }
  .proj-side { position: static; }
  .wall { aspect-ratio: 1 / .9; max-width: 560px; width: 100%; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .elsewhere { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-inner { height: auto; padding-top: 10px; padding-bottom: 8px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav { width: calc(100% + 16px); margin-right: -16px; }
  .nav a { padding: 5px 10px; font-size: 14px; }
  main section { padding: 40px 0; }
  .facts { grid-template-columns: 1fr; }
  .row-card { grid-template-columns: 36px 1fr auto; grid-template-areas: "hold main arrow" "hold meta meta"; gap: 4px 12px; padding: 14px; }
  .row-card .row-num { display: none; }
  .row-card .row-hold { grid-area: hold; align-self: start; }
  .row-card .row-hold .hold-svg { width: 36px; height: 36px; }
  .row-card .row-main { grid-area: main; }
  .row-card .row-arrow { grid-area: arrow; align-self: start; }
  .row-card .tag, .row-card .status { grid-area: meta; justify-self: start; }
  .row-card .row-date { grid-area: meta; justify-self: end; }
  .cv div { grid-template-columns: 72px 1fr; }
  .timeline li { grid-template-columns: 30px 1fr; }
  .timeline li > div { grid-column: 2; }
  .stack-row { grid-template-columns: 1fr; gap: 6px; }
  .climb-log li { grid-template-columns: 34px 1fr auto; }
  .climb-log li .tag { display: none; }
  .p-grid { grid-template-columns: 1fr; }
  .proj-title { grid-template-columns: 1fr; }
  .proj-hold { display: none; }
  .proj-nav { grid-template-columns: 1fr; }
  .proj-nav .row-card { grid-template-columns: 1fr; grid-template-areas: none; }
  .proj-nav .row-card .row-main { grid-area: auto; }
  .wall-hint { font-size: 11.5px; bottom: 8px; }
}

/* ---------- 메인: 한 화면 + 루트 고르기 ---------- */
.home-hero { min-height: calc(100svh - 64px); display: flex; align-items: center; padding: 28px 0 40px; }
.home-hero > .wrap { width: 100%; }
.hero-hook { font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.4; margin-top: 22px; }
.hero-hook mark { background: linear-gradient(transparent 58%, rgba(242, 190, 34, .55) 58%); color: inherit; padding: 0 2px; }
.hero-how { color: var(--ink-2); margin-top: 18px; max-width: 30em; }
.hero-how b { font-family: var(--mono); font-size: .82em; background: #fff; border: 1px solid var(--line-2); padding: 1px 6px; }
.how-narrow { display: none; }
.hero-skip { display: inline-block; margin-top: 20px; font-size: 14.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.hero-skip:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.wall-hold.is-top .top-tape { font-size: 11px; padding: 4px 7px; border-bottom: 3px solid var(--c); box-shadow: 0 2px 6px -3px rgba(60,45,25,.35); }

.routes-sec { padding-top: 24px; }
.route-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.route-card {
  display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px;
  background: var(--card); color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); border-top: 5px solid var(--c); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: opacity .6s ease, transform .2s, box-shadow .2s;
}
.route-card:hover, .route-card.lit { transform: translateY(-4px); box-shadow: 0 6px 0 var(--c), var(--shadow); }
.route-top { display: flex; justify-content: space-between; align-items: center; min-height: 46px; }
.route-card .start-tape { position: static; transform: rotate(-3deg); font-size: 12px; padding: 4px 8px; }
.route-hold .hold-svg { width: 46px; height: 46px; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.route-card:hover .route-hold .hold-svg { transform: rotate(-12deg) scale(1.1); }
.route-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; }
.route-title .ext { font-size: .7em; color: var(--muted); }
.route-teaser { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; flex: 1; }
.route-go { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.route-card:hover .route-go { color: var(--ink); }

@media (max-width: 1000px) { .route-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .home-hero { min-height: 0; display: block; padding-top: 28px; }
  .how-wide { display: none; }
  .how-narrow { display: inline; }
}
@media (max-width: 640px) {
  .route-cards { grid-template-columns: 1fr; }
  .wall-hold.is-top .top-tape { font-size: 9.5px; padding: 3px 5px; }
}

/* ---------- 언어 전환 ---------- */
html.lang-en:not(.i18n-ready) body { visibility: hidden; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 4px; flex: none; cursor: pointer;
  font: 500 12px/1 var(--mono); color: var(--muted);
  background: none; border: 1px solid transparent; border-radius: 999px; padding: 6px 9px;
  transition: border-color .15s, color .15s;
}
.lang-toggle .on { color: var(--ink); font-weight: 700; }
.lang-toggle .sep { opacity: .5; }
.lang-toggle:hover { border-color: var(--line-2); color: var(--ink-2); }
.header-right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.header-right .nav { min-width: 0; }
@media (max-width: 640px) {
  .header-inner { position: relative; }
  .header-right { width: 100%; }
  .lang-toggle { position: absolute; top: 8px; right: 10px; }
}
.lang-note { font-family: var(--mono); font-size: 13px; color: var(--muted); background: var(--card); border: 1px dashed var(--line-2); border-radius: 12px; padding: 8px 12px; }
html.lang-en .cv div { grid-template-columns: 112px 1fr; }
@media (max-width: 640px) { html.lang-en .cv div { grid-template-columns: 1fr; gap: 2px; } }
