:root {
  --ink: #231f20;
  --ink-2: #4a4a4c;
  --muted: #6d6e71;
  --line: #e6e6e8;
  --soft: #f5f5f6;
  --red: #dc2525;
  --red-dark: #b81d1d;
  --yellow: #f2c811;
  --blue: #2563eb;
  --bg: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(35, 31, 32, 0.06), 0 8px 24px rgba(35, 31, 32, 0.06);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; word-break: keep-all; overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.sr-only, .skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
.muted { color: var(--muted); }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.j2e-logo { height: 28px; width: auto; }
.brand-divider { width: 1px; height: 18px; background: #d9d9dc; }
.brand-text { display: flex; align-items: baseline; gap: 7px; line-height: 1; white-space: nowrap; }
.brand-name { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; color: #55555a; }
.brand-sub { font-size: 13px; font-weight: 500; color: #9b9ba0; }
.main-nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.main-nav a:hover { background: var(--soft); color: var(--ink); }
.main-nav a[aria-current='page'] { background: var(--ink); color: #fff; }
.search-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: var(--ink-2); }
.search-btn:hover { background: var(--soft); }

/* 히어로 */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgba(220, 37, 37, 0.10), transparent 60%), radial-gradient(900px 400px at 0% 110%, rgba(242, 200, 17, 0.14), transparent 60%), #fff; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--red); margin: 0 0 16px; }
.hero h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.18; letter-spacing: -0.035em; margin: 0 0 20px; font-weight: 800; }
.hl { background: linear-gradient(transparent 62%, rgba(242, 200, 17, 0.55) 62%); padding: 0 2px; }
.lead { font-size: 18px; color: var(--ink-2); margin: 0 0 28px; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: transform 0.15s, background 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); flex-shrink: 0; }
.hero-stats { display: flex; gap: 36px; list-style: none; padding: 0; margin: 40px 0 0; }
.hero-stats strong { display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.hero-stats span { font-size: 13px; color: var(--muted); }
.hero-art img { width: 100%; height: auto; border-radius: 24px; background: #fff; box-shadow: 0 24px 48px -28px rgba(35, 31, 32, 0.25); }

/* 섹션 */
section { margin: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: 26px; letter-spacing: -0.025em; margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.more { font-weight: 600; color: var(--red); font-size: 14px; white-space: nowrap; }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* 카드 */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-link { display: flex; flex-direction: column; height: 100%; }
.card-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-cat { position: absolute; left: 12px; top: 12px; background: rgba(35, 31, 32, 0.82); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 18px; line-height: 1.4; letter-spacing: -0.02em; margin: 0 0 8px; }
.card-big h3 { font-size: 20px; }
.card p { margin: 0 0 16px; color: var(--ink-2); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; gap: 12px; font-size: 13px; color: var(--muted); margin-top: auto; flex-wrap: wrap; }

/* 분류별 목록 */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.cat-section { margin: 40px 0; }
.cat-section h2 a:hover { color: var(--red); }
.post-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.list-item a { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.list-item a:hover .li-title { color: var(--red); }
.li-cat { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.li-title { font-weight: 600; font-size: 15.5px; }
.list-item time { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* 분류 색 */
.cat-powerbi-ai .li-cat, .li-cat.cat-powerbi-ai { background: #fef6d6; color: #7a5d00; }
.li-cat.cat-fabric { background: #e3f1ef; color: #0b6b5e; }
.li-cat.cat-ax { background: #fde8e8; color: #a51c1c; }
.li-cat.cat-fde { background: #ece9fd; color: #4b33b5; }
.li-cat.cat-practice { background: #e6eefc; color: #1e4fb8; }
.li-cat.cat-cases { background: #efefef; color: #3a3a3a; }
.li-cat.cat-news { background: #fff0e0; color: #9a4a00; }

/* 태그 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.tag-cloud a:hover { border-color: var(--ink); color: var(--ink); }
.tag-cloud span { color: var(--muted); font-weight: 500; margin-left: 2px; }

/* 문의 상자 */
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 32px; background: linear-gradient(120deg, #231f20 0%, #3a2223 60%, #5a1d1d 100%); color: #fff; border-radius: 24px; padding: 40px 44px; margin: 72px 0; }
.cta-box h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: -0.02em; }
.cta-box p { margin: 0; color: rgba(255, 255, 255, 0.78); }
.cta-box .eyebrow { color: var(--yellow); margin-bottom: 10px; }

/* 목록 머리 */
.list-head { margin: 0; padding: 56px 0 40px; background: var(--soft); border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.list-head h1 { font-size: 36px; letter-spacing: -0.03em; margin: 0 0 10px; }
.list-head p { margin: 0; color: var(--ink-2); font-size: 17px; }
.list-head .count { margin-top: 12px; font-size: 14px; color: var(--muted); }
.search-box input { width: 100%; height: 56px; margin-top: 20px; border: 2px solid var(--ink); border-radius: 14px; padding: 0 20px; font: inherit; font-size: 17px; }

/* 글 */
.post-head { margin: 0; padding: 64px 0 44px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--soft), #fff); }
.post-head.cat-powerbi-ai { background: linear-gradient(180deg, #fff8dc, #fff); }
.post-head.cat-fabric { background: linear-gradient(180deg, #e8f4f1, #fff); }
.post-head.cat-ax { background: linear-gradient(180deg, #fdeeee, #fff); }
.post-head.cat-fde { background: linear-gradient(180deg, #f0edfe, #fff); }
.post-head.cat-practice { background: linear-gradient(180deg, #ebf1fd, #fff); }
.post-cat { display: inline-block; font-size: 13px; font-weight: 700; color: var(--red); margin-bottom: 14px; }
.post-head h1 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.25; letter-spacing: -0.035em; margin: 0 0 16px; }
.post-summary { font-size: 18px; color: var(--ink-2); margin: 0 0 20px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 760px) 240px; gap: 56px; justify-content: center; padding-top: 48px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; border-left: 2px solid var(--line); padding-left: 18px; }
.toc p { font-weight: 800; margin: 0 0 10px; font-size: 13px; letter-spacing: 0.06em; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 8px 0; }
.toc a { color: var(--ink-2); }
.toc a:hover, .toc a.active { color: var(--red); }

.prose { font-size: 17px; line-height: 1.85; }
.prose h2 { font-size: 26px; letter-spacing: -0.025em; line-height: 1.35; margin: 56px 0 16px; padding-top: 8px; }
.prose h3 { font-size: 20px; letter-spacing: -0.02em; margin: 36px 0 12px; }
.prose h4 { font-size: 17px; margin: 28px 0 8px; }
.prose p { margin: 0 0 20px; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 20px; }
.prose li { margin: 6px 0; }
.prose strong { font-weight: 700; }
.prose code { font-family: var(--mono); font-size: 0.88em; background: #f1f1f3; padding: 2px 6px; border-radius: 6px; }
.prose pre { background: #1d1b1c; color: #f2f2f2; padding: 20px 22px; border-radius: 12px; overflow-x: auto; margin: 0 0 24px; font-size: 14px; line-height: 1.65; position: relative; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.prose pre[data-lang]::before { content: attr(data-lang); position: absolute; top: 8px; right: 12px; font-size: 11px; color: #9b9b9e; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font); }
.prose blockquote { margin: 0 0 24px; padding: 4px 0 4px 20px; border-left: 4px solid var(--yellow); color: var(--ink-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose img { border-radius: 12px; margin: 8px 0 24px; }
.table-wrap { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.6; }
.prose th { background: var(--soft); font-weight: 700; text-align: left; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.callout { border-radius: 12px; padding: 18px 22px 2px; margin: 0 0 24px; background: var(--soft); border: 1px solid var(--line); font-size: 16px; }
.callout-title { font-weight: 800; margin-bottom: 8px !important; }
.callout-tip { background: #fffbea; border-color: #f4e3a1; }
.callout-warn { background: #fff1f1; border-color: #f5c6c6; }
.callout-case { background: #f3f1fe; border-color: #d9d2fb; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-tags a { font-size: 14px; padding: 6px 12px; background: var(--soft); border-radius: 999px; color: var(--ink-2); text-decoration: none; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 48px 0 0; }
.post-nav a { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; font-weight: 600; font-size: 15px; }
.post-nav a:hover { border-color: var(--ink); }
.post-nav span { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.post-nav .next { text-align: right; }
.page-body { padding-bottom: 24px; }

/* 푸터 */
.site-footer { background: #1b1819; color: #c7c8ca; margin-top: 80px; padding: 56px 0 28px; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand { max-width: 440px; }
.j2e-logo-footer { height: 30px; margin-bottom: 16px; }
.footer-links { display: flex; gap: 56px; }
.footer-links h2 { font-size: 13px; color: #fff; letter-spacing: 0.06em; margin: 0 0 12px; }
.footer-links a { display: block; margin: 7px 0; color: #c7c8ca; }
.footer-links a:hover { color: #fff; }
.copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid #333; font-size: 12.5px; color: #939598; }
.site-footer .muted { color: #939598; }

@media (max-width: 1080px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: 1fr; }
  .header-inner { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 8px; gap: 8px 16px; }
  .main-nav { order: 3; width: 100%; margin-left: 0; }
  .search-btn { margin-left: auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .grid-3 { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .j2e-logo { height: 26px; }
  .hero-stats { gap: 24px; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 32px 26px; }
  .list-item a { grid-template-columns: 1fr; gap: 4px; }
  .post-nav { grid-template-columns: 1fr; }
  .prose { font-size: 16.5px; }
  .footer-links { gap: 32px; }
}

.author-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 32px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); font-size: 15px; line-height: 1.65; }
.author-box img { border-radius: 12px; flex-shrink: 0; margin: 0; }
.author-box p { margin: 0; color: var(--ink-2); }
.author-box .author-name { font-weight: 800; color: var(--ink); margin-bottom: 4px; }

.prose .post-cover { margin: 0 0 40px; }
.prose .post-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; margin: 0; background: var(--soft); box-shadow: 0 20px 40px -24px rgba(35, 31, 32, 0.35); }

/* 문의 폼 */
.contact-form { margin: 8px 0 80px; }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.cf-grid label, .cf-hp { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.cf-grid label b, .cf-privacy b { color: var(--red); font-weight: 700; }
.cf-wide { grid-column: 1 / -1; }
.contact-form input:not([type=checkbox]), .contact-form select, .contact-form textarea { font: inherit; font-size: 15px; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.contact-form textarea { resize: vertical; line-height: 1.6; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid rgba(35, 31, 32, 0.15); border-color: #8a8a8f; }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-privacy { margin: 22px 0 8px; font-size: 14px; color: var(--muted); }
.cf-privacy { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.cf-agree { display: inline-flex; gap: 8px; align-items: center; color: var(--ink); font-weight: 600; cursor: pointer; }
.cf-privacy details { flex-basis: 100%; }
.cf-privacy summary { cursor: pointer; font-size: 13px; text-decoration: underline; width: fit-content; }
.cf-privacy p { margin: 10px 0 0; padding: 12px 14px; background: var(--soft); border-radius: 10px; line-height: 1.6; }
.cf-msg { min-height: 22px; margin: 10px 0; font-size: 14px; color: var(--red); }
.btn-dark { background: var(--ink); color: #fff; border: 0; cursor: pointer; }
.btn-dark:disabled { opacity: 0.5; cursor: default; }
.contact-done { margin: 8px 0 80px; padding: 40px; border: 1px solid var(--line); border-radius: 18px; text-align: center; }
.contact-done h2 { margin: 0 0 8px; font-size: 22px; }
.contact-done p { margin: 0 0 20px; color: var(--muted); }
@media (max-width: 720px) { .cf-grid { grid-template-columns: 1fr; } }

/* 카드: 그림 전체가 보이게(흰 바탕, 자르지 않음), 분류는 제목 위 글자로 */
.card { border: 0; background: #f6f6f8; border-radius: 22px; padding: 12px; }
.card-thumb { aspect-ratio: 3 / 2; background: #fff; border-radius: 16px; }
.card-thumb img { object-fit: contain; }
.card:hover .card-thumb img { transform: scale(1.02); }
.card-body { padding: 18px 10px 8px; }
.card-cat { position: static; display: block; background: none; color: #8a3ffc; color: var(--red); padding: 0; margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; border-radius: 0; }
.prose .post-cover img { aspect-ratio: 3 / 2; object-fit: contain; background: #fff; box-shadow: none; border: 1px solid var(--line); }
