﻿:root {
  --ink: #3b2418;
  --ink-deep: #26150d;
  --paper: #fbf8f4;
  --mist: #f1e8de;
  --steel: #75594a;
  --rule: #e3d6c8;
  --text: #241811;
  --sky: #e6d3bf;
  --max: 1080px;
  --serif: "Noto Serif KR", "Batang", serif;
  --sans: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: var(--sans); color: var(--text); background: var(--paper); line-height: 1.75; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }

:focus-visible { outline: 3px solid #8a5a34; outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(20px, calc((100% - var(--max)) / 2));
  background: rgba(251,248,244,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent; transition: border-color .25s;
}
.nav.scrolled { border-color: var(--rule); }
.nav__logo { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.nav__links { display: flex; gap: 24px; font-size: .92rem; }
.nav__links a { color: var(--steel); padding: 4px 0; border-bottom: 2px solid transparent; }
.nav__links a:hover, .nav__links a.active { color: var(--ink); border-color: var(--ink); }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink); transition: transform .2s; }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* HERO */
.hero { background: var(--mist); color: var(--ink); padding: 128px 0 72px; }
.hero__name { font-size: .95rem; color: var(--steel); margin-bottom: 20px; }
.hero__title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 6vw, 4.1rem); line-height: 1.25; letter-spacing: -.03em; }
.hero__meta { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 32px; align-items: start; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--ink); }
.hero__tags li { font-size: .92rem; line-height: 1.95; }
.hero__label { display: block; font-size: .8rem; color: var(--steel); margin-bottom: 4px; }
.hero__fact p { font-size: .95rem; line-height: 1.7; }
.hero__btn { border: 1px solid var(--ink); padding: 10px 18px; font-size: .9rem; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s; }
.hero__btn:hover { background: var(--ink); color: var(--paper); }
.hero__photo { margin: 56px 0 0; }
.photo-placeholder, .hero__photo img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 2px; }
.photo-placeholder { display: grid; place-items: center; background: var(--sky); font-family: var(--serif); font-size: 3.4rem; font-weight: 700; color: var(--steel); }

/* ROUTE: 해외 경험 여정 (로드 시 한 번만 그려짐) */
.route { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 52px; padding-top: 28px; }
.route::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink);
  transform-origin: left; animation: draw 1.4s .3s cubic-bezier(.6,.05,.2,1) both;
}
.route li { position: relative; padding-right: 12px; animation: rise .6s both; }
.route li::before {
  content: ""; position: absolute; left: 0; top: -34px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--mist); border: 2px solid var(--ink);
}
.route li:nth-child(1) { animation-delay: .5s; }
.route li:nth-child(2) { animation-delay: .8s; }
.route li:nth-child(3) { animation-delay: 1.1s; }
.route strong { display: block; font-family: var(--serif); font-size: clamp(1.4rem, 3.2vw, 2.1rem); line-height: 1.2; }

.route span { font-size: .9rem; color: var(--steel); }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* BUTTONS */
.btn { display: inline-block; padding: 12px 24px; border-radius: 4px; font-size: .95rem; font-weight: 600; cursor: pointer; border: 1.5px solid transparent; font-family: inherit; transition: background .2s, color .2s, border-color .2s; }
.btn--light { background: var(--sky); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--line { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--line:hover { background: rgba(255,255,255,.12); }

/* SECTIONS */
.section { padding: 96px 0; }
.section--mist { background: var(--mist); }
.split { display: grid; grid-template-columns: 200px 1fr; gap: 48px; border-top: 1px solid var(--rule); padding-top: 28px; }
.split__title { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); line-height: 1.3; position: sticky; top: 90px; align-self: start; }
.split__body { min-width: 0; max-width: 760px; }
.lead { font-size: 1.1rem; line-height: 1.85; }
.lead--sub { color: var(--steel); font-size: 1.02rem; margin-bottom: 8px; }
.sub-title { font-family: var(--serif); color: var(--ink); font-size: 1.1rem; margin: 40px 0 12px; }
.sub-title:first-child { margin-top: 0; }

/* ABOUT */
.facts { margin-top: 36px; border-top: 1px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--steel); }
.facts__hl dt, .facts__hl dd { color: var(--ink); font-weight: 700; }
.scores { display: flex; flex-wrap: wrap; gap: 20px 40px; margin-top: 32px; }
.scores strong { display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1.1; color: var(--ink); }
.scores span { font-size: .85rem; color: var(--steel); }

/* ROWS (해외 경험, 음악, 대외활동) */
.rows { border-top: 1px solid var(--ink); margin-top: 20px; }
.row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.row__key { font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.row h3 { font-size: 1.02rem; color: var(--ink); margin-bottom: 2px; }
.row p { font-size: .95rem; color: #4a3a30; }
.row--plain { grid-template-columns: 1fr; }
.rows--plain { margin-top: 20px; }

/* 하는 일 */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.duo__item { padding: 22px 0 30px; border-top: 1px solid var(--ink); }
.duo__item h3 { color: var(--ink); font-size: 1.08rem; margin-bottom: 10px; line-height: 1.45; }
.bul li { position: relative; padding-left: 14px; font-size: .94rem; color: #4a3a30; margin-bottom: 3px; }
.bul li::before { content: ""; position: absolute; left: 0; top: .78em; width: 5px; height: 1.5px; background: var(--steel); }
.skill-line { margin-top: 12px; font-size: .88rem; color: var(--steel); font-weight: 600; }

/* 주요 사례 */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-top: 20px; }
.case { padding: 22px 0 30px; border-top: 1px solid var(--ink); }
.case__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.case__tag { font-size: .8rem; color: var(--steel); margin-bottom: 2px; }
.case h3 { color: var(--ink); font-size: 1.08rem; line-height: 1.4; }
.case__stat { text-align: right; flex-shrink: 0; }
.case__stat strong { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; color: var(--ink); }
.case__stat span { font-size: .78rem; color: var(--steel); }
.case__rows div { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--rule); }
.case__rows dt { font-size: .85rem; font-weight: 700; color: var(--ink); }
.case__rows dd { font-size: .93rem; color: #4a3a30; }

/* 경력 타임라인 */
.timeline { border-top: 1px solid var(--ink); }
.timeline__item { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.timeline__date { font-size: .88rem; color: var(--steel); font-weight: 600; padding-top: 2px; }
.timeline h3 { color: var(--ink); font-size: 1.08rem; }
.timeline small { font-size: .88rem; font-weight: 400; color: var(--steel); margin-left: 8px; }
.timeline p { font-size: .95rem; color: #4a3a30; margin-top: 4px; }

/* 포트폴리오 */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.work { display: block; }
.work__thumb { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--sky); color: var(--steel); font-size: .88rem; border-radius: 2px; }
.work h3 { margin-top: 10px; font-size: .98rem; color: var(--ink); line-height: 1.4; }
.work p { font-size: .85rem; color: var(--steel); }
.work:hover h3 { text-decoration: underline; text-underline-offset: 3px; }

/* 스킬 */
.skills { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); font-size: .94rem; }
.skills th, .skills td { padding: 12px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.skills th { width: 150px; color: var(--steel); font-weight: 500; }

.footer__mail { color: var(--sky); border-bottom: 1px solid var(--sky); }
.footer__mail:hover { color: #fff; border-color: #fff; }
.footer p + p { margin-top: 6px; }
.footer { background: var(--ink-deep); color: #b9a08c; font-size: .85rem; padding: 24px 0; text-align: center; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 6px 20px; display: none; }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 13px 0; border-bottom: 1px solid var(--rule); }
  .hero { padding: 112px 0 56px; }
  .hero__meta { grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
  .hero__btn { justify-self: start; }
  .hero__photo { margin-top: 40px; }
  .photo-placeholder, .hero__photo img { aspect-ratio: 4 / 3; }
  .photo-placeholder { font-size: 2.4rem; }
  .route { margin-top: 44px; }
  .section { padding: 64px 0; }
  .split { grid-template-columns: 1fr; gap: 20px; }
  .split__title { position: static; }
  .duo, .works, .cases { grid-template-columns: 1fr; }
  .case__stat strong { font-size: 1.6rem; }
  .row, .timeline__item, .facts div { grid-template-columns: 1fr; gap: 4px; }
  .row--plain { grid-template-columns: 1fr; }
  .scores { gap: 28px; }
  .skills th { width: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route::before, .route li { animation: none; }
}






