/* ==========================================================
   지훈 개인 사이트 · Claude 디자인 (Codex 원본의 사본)
   Design read: 사장님·강의/협업 담당자를 위한 개인 소개 사이트,
   차분하고 신뢰 중심의 에디토리얼 톤. Native CSS + Pretendard.
   Dials: VARIANCE 6 / MOTION 4 / DENSITY 3
   Shape rule: 버튼 = pill(999px), 카드·이미지 = 14px, 입력칸 = 10px
   Accent lock: 에메랄드 하나만 사용 (기존 브랜드 색 유지)
   ========================================================== */

:root {
  --paper: #f6f8f7;
  --surface: #ffffff;
  --wash: #ebf3f0;
  --ink: #13201b;
  --ink-2: #33423c;
  --muted: #56645e;
  --line: #d9e1dd;
  --accent: #0a7a5e;
  --accent-ink: #065a45;
  --accent-wash: #e2f1ec;
  --danger: #b42318;
  --r-btn: 999px;
  --r-card: 14px;
  --r-input: 10px;
  --shadow: 0 1px 2px rgb(19 32 27 / .04), 0 12px 32px -12px rgb(19 32 27 / .14);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 64px;
}

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

html {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body { line-height: 1.65; overflow-x: hidden; word-break: keep-all; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-input);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 24px; border-radius: var(--r-btn);
  font-weight: 700; font-size: 15px; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 700; color: var(--accent-ink);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .3s var(--ease);
}
.text-link:hover { background-size: 100% 1.5px; }

.kicker { font-size: 14px; font-weight: 700; color: var(--accent-ink); letter-spacing: .02em; margin-bottom: 12px; }
.note { font-size: 14px; color: var(--muted); line-height: 1.6; }
.section-lead { font-size: 17px; color: var(--muted); max-width: 60ch; }
.status-pill {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px;
  border-radius: var(--r-btn); background: var(--accent-wash); color: var(--accent-ink);
  font-size: 13px; font-weight: 700;
}

h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.25; letter-spacing: -.03em; font-weight: 800; }
h3 { font-size: 18px; line-height: 1.4; letter-spacing: -.015em; font-weight: 800; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgb(246 248 247 / .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-container {
  max-width: 1160px; margin: 0 auto; padding: 0 24px; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.header-profile { width: 32px; height: 32px; border-radius: 50%; }
.logo-badge { font-size: 12px; font-weight: 700; color: var(--muted); padding: 2px 8px; border: 1px solid var(--line); border-radius: var(--r-btn); }
.desktop-nav { display: flex; gap: 28px; }
.nav-item { font-size: 15px; font-weight: 600; color: var(--ink-2); padding: 6px 0; position: relative; }
.nav-item::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-item:hover { color: var(--ink); }
.nav-item:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 8px; }

.mobile-menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.mobile-menu-btn span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-drawer { display: flex; flex-direction: column; padding: 8px 24px 20px; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-drawer[hidden] { display: none; }
.mobile-drawer-item { padding: 14px 0; font-weight: 700; font-size: 17px; border-bottom: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 56px; }
.hero-person { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 24px; }
.person-name { font-weight: 800; color: var(--accent-ink); }
.person-role { font-size: 14px; color: var(--muted); }
.hero-title { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.15; letter-spacing: -.04em; font-weight: 800; margin-bottom: 24px; }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 18px; color: var(--ink-2); max-width: 34em; margin-bottom: 36px; }

.hero-portrait { justify-self: center; position: relative; width: min(100%, 380px); }
.portrait-plate {
  aspect-ratio: 1; border-radius: 50%; padding: 14px;
  background: radial-gradient(circle at 30% 25%, #1f302a, #0c1512 70%);
  box-shadow: 0 0 0 1px rgb(10 122 94 / .35), 0 0 0 14px var(--wash), 0 30px 60px -20px rgb(19 32 27 / .45);
}
.portrait-plate img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* ---------- Index strip ---------- */
.index-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.index-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.index-item { padding: 28px 28px 30px; border-left: 1px solid var(--line); transition: background-color .25s var(--ease); }
.index-item:first-child { border-left: 0; padding-left: 0; }
.index-item:hover { background: var(--wash); }
.index-item:first-child:hover { background: none; }
.index-label { display: block; font-size: 13px; font-weight: 700; color: var(--accent-ink); margin-bottom: 6px; }
.index-item strong { display: block; font-size: 18px; letter-spacing: -.02em; margin-bottom: 4px; }
.index-item p { font-size: 14px; color: var(--muted); }

/* ---------- Story ---------- */
.story { padding: 120px 0 112px; }
.statement { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.2; letter-spacing: -.04em; max-width: 16em; margin-bottom: 48px; }
.statement-soft { color: var(--accent); }
.story-body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 920px; font-size: 17px; color: var(--ink-2); margin-bottom: 40px; }
.story-signature { display: flex; flex-direction: column; gap: 4px; padding-left: 20px; border-left: 3px solid var(--accent); color: var(--muted); max-width: 920px; }
.story-signature strong { color: var(--ink); }

/* ---------- Project ---------- */
.project { padding: 104px 0; background: var(--wash); }
.project-head { margin-bottom: 40px; }
.project-head h2 { margin-bottom: 16px; max-width: 18em; }
.project-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; margin-bottom: 72px; }
.project-shot { background: var(--surface); border-radius: var(--r-card); padding: 10px; box-shadow: var(--shadow); }
.project-shot img { border-radius: calc(var(--r-card) - 6px); border: 1px solid var(--line); }
.project-shot figcaption { font-size: 13px; color: var(--muted); padding: 12px 6px 4px; }
.project-summary .lead { font-size: 18px; color: var(--ink-2); margin-bottom: 24px; }
.feature-list { margin-bottom: 24px; }
.feature-list li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid rgb(19 32 27 / .1); }
.feature-list li:last-child { border-bottom: 1px solid rgb(19 32 27 / .1); }
.feature-list strong { font-size: 15px; }
.feature-list span { font-size: 15px; color: var(--ink-2); }
.project-summary .note { margin-bottom: 16px; }

.case { margin-bottom: 40px; }
.case-title { font-size: 22px; margin-bottom: 28px; }
.case-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; margin-bottom: 20px; }
.case-steps li { counter-increment: step; position: relative; padding-top: 52px; }
.case-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-size: 28px; font-weight: 800; letter-spacing: -.03em;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.case-steps li::after { content: ''; position: absolute; top: 20px; left: 52px; right: -16px; height: 1px; background: rgb(10 122 94 / .3); }
.case-steps li:last-child::after { display: none; }
.case-steps strong { display: block; font-size: 17px; margin-bottom: 6px; }
.case-steps p { font-size: 15px; color: var(--ink-2); }

.calc { background: var(--surface); border-radius: var(--r-card); border: 1px solid var(--line); }
.calc summary {
  cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 800; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.calc summary::-webkit-details-marker { display: none; }
.calc summary::after { content: '+'; font-size: 24px; font-weight: 500; color: var(--accent); transition: transform .25s var(--ease); }
.calc[open] summary::after { transform: rotate(45deg); }
.example-calculator { padding: 4px 24px 24px; max-width: 640px; }
.calc-label-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.calc-label-row label { font-weight: 700; color: var(--ink-2); }
.calc-label-row strong { font-size: 24px; letter-spacing: -.02em; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.hero-slider { width: 100%; accent-color: var(--accent); height: 28px; margin-bottom: 16px; cursor: pointer; }
.ledger { margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.ledger div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.ledger dt { color: var(--ink-2); }
.ledger dd { font-weight: 700; }
.ledger .ledger-total { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 14px; }
.ledger-total dt { font-weight: 800; color: var(--ink); }
.ledger-total dd { color: var(--accent-ink); font-size: 18px; }
.ledger-total dd.is-loss { color: var(--danger); }

/* ---------- Startup Section ---------- */
.startup-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.startup-section .project-shot {
  background: var(--wash);
}

/* ---------- Workshop ---------- */
.workshop { padding: 0 0 112px; }
.notice {
  background: var(--surface); border-radius: var(--r-card); border: 1px solid var(--line);
  padding: 56px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.notice::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); }
.status-pill--soon { margin-bottom: 20px; }
.notice h2 { margin-bottom: 12px; max-width: 18em; }
.notice .section-lead { margin-bottom: 32px; }
.topics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.topics li { padding: 20px 22px; border-radius: var(--r-card); background: var(--paper); }
.topics strong { display: block; font-size: 17px; margin-bottom: 4px; }
.topics span { font-size: 15px; color: var(--ink-2); }
.notice .note { margin-bottom: 28px; max-width: 62ch; }

/* ---------- Contact ---------- */
.contact { padding: 104px 0 112px; background: var(--wash); }
.contact-intro { display: flex; align-items: center; gap: 20px; margin-bottom: 40px; }
.contact-intro img { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; }
.contact-title { margin-bottom: 6px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px; align-items: start; }
.form-card { background: var(--surface); border-radius: var(--r-card); padding: 36px; box-shadow: var(--shadow); }
.form-card > h3 { font-size: 20px; margin-bottom: 24px; }
.inquiry-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-bottom: 20px; }
.inquiry-fields label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.inquiry-fields label[hidden] { display: none; }
.inquiry-fields label > span { font-weight: 500; color: var(--muted); }
.inquiry-fields label { flex-wrap: wrap; }
.inquiry-wide { grid-column: 1 / -1; }
.inquiry-fields input, .inquiry-fields select, .inquiry-fields textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-input);
  border: 1px solid #b9c6c0; background: var(--surface); font-size: 16px; font-weight: 500; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.inquiry-fields textarea { resize: vertical; min-height: 120px; }
.inquiry-fields ::placeholder { color: #6b7873; }
.inquiry-fields input:focus, .inquiry-fields select:focus, .inquiry-fields textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(10 122 94 / .2);
}
.inquiry-fields :disabled { background: var(--paper); }
.inquiry-help { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.inquiry-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 600; margin-bottom: 20px; cursor: pointer; }
.inquiry-consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.inquiry-consent small { color: var(--muted); font-weight: 500; }
.inquiry-submit { width: 100%; margin-bottom: 12px; }
.inquiry-status { font-size: 14px; font-weight: 700; color: var(--accent-ink); min-height: 1px; margin-bottom: 12px; outline: none; }
.inquiry-status:empty { margin-bottom: 0; }
.inquiry-status.is-error { color: var(--danger); }
.inquiry-fallback { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.inquiry-fallback a { font-weight: 800; font-size: 16px; }
.copy-status { font-size: 13px; color: var(--accent-ink); margin-top: 8px; }
.contact-aside { display: flex; flex-direction: column; }
.contact-aside > div { padding: 24px 0; border-top: 1px solid rgb(19 32 27 / .12); }
.contact-aside > div:first-child { padding-top: 0; border-top: 0; }
.contact-aside h3 { font-size: 16px; margin-bottom: 6px; }
.contact-aside p { font-size: 15px; color: var(--ink-2); margin-bottom: 8px; }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: start; }
.footer-logo { font-weight: 800; font-size: 18px; }
.footer-slogan { font-size: 14px; color: var(--muted); margin-top: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.footer-links a:hover { color: var(--accent-ink); }
.footer-copy { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }

/* ---------- Disclosure Showcase ---------- */
.disclosure-showcase { margin-top: 64px; margin-bottom: 84px; padding-top: 56px; border-top: 1px solid var(--line); }
.disclosure-head { margin-bottom: 28px; }
.disclosure-head h3 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; letter-spacing: -.025em; margin-bottom: 8px; color: var(--ink); }
.disclosure-head .note { max-width: 65ch; line-height: 1.6; margin-bottom: 20px; }
.disclosure-tab-pills { display: flex; flex-wrap: nowrap; gap: 10px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.disclosure-pill { flex-shrink: 0; white-space: nowrap; border: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: 9px 18px; border-radius: var(--r-btn); font-size: 14px; font-weight: 700; cursor: pointer; transition: all .2s var(--ease); }
.disclosure-pill:hover { border-color: var(--accent); color: var(--accent-ink); }
.disclosure-pill.active { background: var(--accent); color: #ffffff; border-color: var(--accent); box-shadow: 0 2px 6px rgb(10 122 94 / .25); }
.disclosure-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px; align-items: start; }
.disclosure-tab-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px 24px; box-shadow: var(--shadow); position: relative; }
.disclosure-tab-card h4 { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 8px; letter-spacing: -.015em; }
.disclosure-tab-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.disclosure-metrics-list { display: flex; flex-direction: column; gap: 10px; }
.disclosure-metrics-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-top: 1px dashed var(--line); font-size: 14px; }
.disclosure-metrics-list li:first-child { border-top: 0; padding-top: 0; }
.disclosure-metrics-list strong { color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.disclosure-metrics-list span { color: var(--accent-ink); font-weight: 700; text-align: right; }
@media (max-width: 900px) {
  .disclosure-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Motion (motivated: entry hierarchy + scroll reveal) ---------- */
.js .enter { opacity: 0; transform: translateY(14px); animation: enter .8s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 90ms + 60ms); }
@keyframes enter { to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .enter, .js .reveal { opacity: 1; transform: none; animation: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: flex; }
}
@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-portrait { order: -1; justify-self: start; width: 160px; }
  .portrait-plate { padding: 8px; box-shadow: 0 0 0 1px rgb(10 122 94 / .35), 0 0 0 8px var(--wash), 0 20px 40px -16px rgb(19 32 27 / .4); }
  .project-grid, .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .case-steps { grid-template-columns: 1fr; gap: 24px; }
  .case-steps li::after { display: none; }
}
@media (max-width: 720px) {
  .wrap, .header-container { padding: 0 20px; }
  .header-actions .btn-sm { display: none; }
  .index-grid { grid-template-columns: 1fr; }
  .index-item, .index-item:first-child { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .index-item:first-child { border-top: 0; }
  .index-item:hover { background: none; }
  .story { padding: 80px 0; }
  .project, .contact { padding: 80px 0; }
  .story-body { grid-template-columns: 1fr; gap: 16px; }
  .feature-list li { grid-template-columns: 1fr; gap: 2px; }
  .form-card { padding: 24px 20px; }
  .inquiry-fields { grid-template-columns: 1fr; }
  .contact-intro { align-items: flex-start; }
  .contact-intro img { width: 48px; height: 48px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 auto; }
}
.header-actions .header-login { display: inline-flex; }
