@font-face {
  font-family: "Pretendard Variable";
  src: url("fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   Design tokens
   색, 폰트, 간격, 반응형 값은 모두 이 블록에서만 바꿉니다.
   마케터 컨셉을 얹을 때는 color, radius, hero 토큰만 교체합니다.
   ============================================================ */
:root {
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;

  --c-bg: #ffffff;
  --c-surface: #f5f5f4;
  --c-border: #e6e6e3;
  --c-border-strong: #d2d2ce;
  --c-text: #111111;
  --c-text-2: #5f5f5b;
  --c-text-3: #8d8d88;
  --c-accent: #111111;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-6: 24px;
  --s-8: 32px;
  --s-12: 48px;
  --s-16: 64px;
  --s-24: 96px;
  --s-32: 128px;

  --maxw-home: 1120px;
  --maxw-detail: 840px;
  --margin-x: 32px;
  --gutter: 24px;
  --section-y: var(--s-32);

  --fs-display: 72px;  --lh-display: 80px;
  --fs-h1: 48px;       --lh-h1: 56px;
  --fs-h2: 32px;       --lh-h2: 40px;
  --fs-body: 18px;     --lh-body: 30px;
  --lh-text: 27px;
  --fs-caption: 14px;  --lh-caption: 20px;

  --radius-img: 16px;
  --radius-hero: 24px;
  --radius-chip: 999px;
}

@media (max-width: 1023px) {
  :root {
    --margin-x: 32px;
    --gutter: 20px;
    --section-y: var(--s-24);
    --fs-display: 56px;  --lh-display: 64px;
    --fs-h1: 40px;       --lh-h1: 48px;
    --fs-h2: 28px;       --lh-h2: 36px;
    --fs-body: 17px;     --lh-body: 28px;
    --lh-text: 26px;
  }
}

@media (max-width: 767px) {
  :root {
    --margin-x: 20px;
    --gutter: 16px;
    --section-y: var(--s-16);
    --fs-display: 40px;  --lh-display: 48px;
    --fs-h1: 32px;       --lh-h1: 40px;
    --fs-h2: 24px;       --lh-h2: 32px;
    --fs-body: 16px;     --lh-body: 28px;
    --lh-text: 25px;
    --fs-caption: 13px;  --lh-caption: 18px;
    --radius-hero: 16px;
    --radius-img: 12px;
  }
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.wrap {
  width: min(100% - 2 * var(--margin-x), var(--maxw-home));
  margin-inline: auto;
}
.wrap.detail { width: min(100% - 2 * var(--margin-x), var(--maxw-detail)); }

.caption { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--c-text-2); }

/* ============================================================
   Nav, footer
   ============================================================ */
.nav { height: 72px; border-bottom: 1px solid var(--c-border); position: sticky; top: 0; z-index: 50; background: var(--c-bg); }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: flex-end; }
.nav .brand { font-weight: 600; font-size: 17px; }
.nav .menu { display: flex; gap: var(--s-6); font-size: 15px; color: var(--c-text-2); }
.nav .menu a:hover, .nav .menu a[aria-current="page"] { color: var(--c-text); }

.footer { border-top: 1px solid var(--c-border); margin-top: var(--section-y); padding-block: var(--s-12); }
.footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-6); flex-wrap: wrap; }
.footer .name { font-weight: 600; }
.footer .links { display: flex; flex-direction: column; gap: var(--s-2); align-items: flex-end; font-size: 15px; color: var(--c-text-2); }
.footer .links a:hover { color: var(--c-text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) { .footer .links { align-items: flex-start; } }

/* ============================================================
   Home
   ============================================================ */
.hero { padding-block: var(--s-32) var(--s-24); }
@media (max-width: 1023px) { .hero { padding-block: var(--s-24) var(--s-16); } }
@media (max-width: 767px) { .hero { padding-block: var(--s-16) var(--s-12); } }
.hero .eyebrow { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--c-text-2); margin-bottom: var(--s-6); }
.hero h1 { font-size: var(--fs-display); line-height: var(--lh-display); font-weight: 700; letter-spacing: -0.03em; max-width: 14em; }
.hero .sub { margin-top: var(--s-6); color: var(--c-text-2); max-width: 32em; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-8); }
.chip {
  font-size: 14px; line-height: 20px; padding: 6px 14px;
  border: 1px solid var(--c-border-strong); border-radius: var(--radius-chip); color: var(--c-text-2);
  background: transparent;
}
button.chip:hover { border-color: var(--c-text); color: var(--c-text); }
button.chip[aria-pressed="true"] { background: var(--c-text); border-color: var(--c-text); color: var(--c-bg); }

.section { padding-top: var(--section-y); }
#all { scroll-margin-top: calc(72px + var(--s-8)); }
.section > .wrap > h2.section-title { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; letter-spacing: -0.02em; margin-bottom: var(--s-8); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
@media (max-width: 767px) { .cards { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); } }
.card { display: block; }
.card .thumb { aspect-ratio: 16 / 9; border-radius: var(--radius-img); background: var(--c-surface); overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--s-4); }
.card .thumb span { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--c-text-3); }
.card .meta { margin-top: var(--s-4); font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--c-text-2); }
.card h3 { margin-top: var(--s-2); font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.02em; }
.card .result { margin-top: var(--s-2); font-size: 15px; line-height: 24px; color: var(--c-text-2); }
a.card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.soon { display: inline-block; margin-top: var(--s-3); font-size: 12px; line-height: 18px; padding: 2px 8px; border-radius: 6px; background: var(--c-surface); color: var(--c-text-2); }

.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.list { border-top: 1px solid var(--c-border-strong); }
.row { display: grid; grid-template-columns: 160px minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: center; padding-block: var(--s-4); border-bottom: 1px solid var(--c-border); }
.row .rthumb { aspect-ratio: 16 / 9; border-radius: var(--radius-img); background: var(--c-surface); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--c-text-3); }
.row .title { font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: -0.02em; }
.row .org, .row .when { font-size: 15px; line-height: 24px; color: var(--c-text-2); }
.row .tags { display: block; font-size: 13px; color: var(--c-text-3); }
a.row:hover .title { text-decoration: underline; text-underline-offset: 4px; }
.row[hidden] { display: none; }
@media (max-width: 767px) {
  .row { grid-template-columns: 112px minmax(0, 1fr); column-gap: var(--s-4); row-gap: 0; align-items: start; }
  .row .rthumb { grid-row: 1 / span 3; }
}

/* ============================================================
   Detail
   ============================================================ */
.topbar { display: flex; justify-content: space-between; padding-block: var(--s-6); }
.circle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--c-border-strong); display: inline-flex; align-items: center; justify-content: center; color: var(--c-text-2); }
.circle:hover { color: var(--c-text); border-color: var(--c-text); }
.circle svg { width: 20px; height: 20px; }

.cover { aspect-ratio: 16 / 9; border-radius: var(--radius-hero); background: var(--c-surface); display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--s-6); overflow: hidden; }
.cover span, .ph span { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--c-text-3); }

.d-head { padding-top: var(--s-12); }
.d-head .tags { font-size: 15px; line-height: 24px; color: var(--c-text-2); }
.d-head h1 { margin-top: var(--s-3); font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 700; letter-spacing: -0.03em; }
.d-head .org { margin-top: var(--s-4); color: var(--c-text-2); }

.kpis { margin-top: var(--s-12); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { padding-inline: var(--s-6); border-left: 1px solid var(--c-border-strong); }
.kpi:first-child { padding-left: 0; border-left: 0; }
.kpi .label { font-size: 15px; line-height: 24px; color: var(--c-text-2); }
.kpi .value { margin-top: var(--s-2); font-size: 36px; line-height: 44px; font-weight: 700; letter-spacing: -0.03em; }
.kpi .note { margin-top: var(--s-1); font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--c-text-3); }
@media (max-width: 767px) {
  .kpis { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .kpi, .kpi:first-child { padding: var(--s-4) 0 0; border-left: 0; border-top: 1px solid var(--c-border-strong); }
  .kpi .value { font-size: 32px; line-height: 40px; }
}

.sum-wrap { margin-top: var(--s-24); }
@media (max-width: 767px) { .sum-wrap { margin-top: var(--s-16); } }
.sum-wrap .step { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--c-text-3); margin-bottom: var(--s-3); }
.sum-wrap .step b { color: var(--c-text); font-weight: 600; margin-left: 0; }
.summary { padding: var(--s-8); border-radius: var(--radius-img); background: var(--c-surface); }
@media (max-width: 767px) { .summary { padding: var(--s-6) var(--s-6); } }
.summary .srow { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--s-6); padding-block: var(--s-4); border-top: 1px solid var(--c-border-strong); font-size: 16px; line-height: 26px; }
.summary .srow:first-child { border-top: 0; padding-top: 0; }
.summary .srow:last-child { padding-bottom: 0; }
.summary dt { font-weight: 600; }
.summary dd { color: var(--c-text-2); }
@media (max-width: 767px) { .summary .srow { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); } }

.body-sec { margin-top: var(--s-24); }
@media (max-width: 767px) { .body-sec { margin-top: var(--s-16); } }
.body-sec .step { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--c-text-3); margin-bottom: var(--s-3); }
.body-sec .step b { color: var(--c-text); font-weight: 600; margin-left: var(--s-2); }
.body-sec h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; letter-spacing: -0.02em; }
.body-sec .text { margin-top: var(--s-6); color: var(--c-text-2); line-height: var(--lh-text); }
.body-sec .text p + p { margin-top: var(--s-3); }
.body-sec .text ul { display: grid; gap: var(--s-3); }
.body-sec .text li { position: relative; padding-left: var(--s-4); }
.body-sec .text li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 5px; height: 5px; border-radius: 50%; background: var(--c-text-3); }
.body-sec .text li b { color: var(--c-text); font-weight: 600; }
.ph { margin-top: var(--s-8); aspect-ratio: 16 / 9; border-radius: var(--radius-img); background: var(--c-surface); border: 1px dashed var(--c-border-strong); display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--s-6); }
.chain { margin-top: var(--s-6); display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 0; border: 1px solid var(--c-border); border-radius: var(--radius-img); overflow: hidden; }
.chain div { padding: var(--s-4) var(--s-6); font-size: 15px; line-height: 24px; color: var(--c-text-2); border-left: 1px solid var(--c-border); }
.chain div:first-child { border-left: 0; }
.chain b { display: block; font-size: 13px; color: var(--c-text-3); font-weight: 500; }
@media (max-width: 767px) {
  .chain { grid-template-columns: minmax(0, 1fr); }
  .chain div { border-left: 0; border-top: 1px solid var(--c-border); }
  .chain div:first-child { border-top: 0; }
}
.callout { margin-top: var(--s-8); padding: var(--s-6); border-radius: var(--radius-img); background: var(--c-surface); font-size: 16px; line-height: 26px; color: var(--c-text-2); }
.callout .tag { display: inline-block; font-size: 12px; line-height: 18px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--c-bg); color: var(--c-text); margin-bottom: var(--s-3); }
.callout p + p { margin-top: var(--s-2); }
.back-list { margin-top: var(--s-24); padding-top: var(--s-6); border-top: 1px solid var(--c-border); display: flex; justify-content: space-between; font-size: 15px; color: var(--c-text-2); }
.back-list a:hover { color: var(--c-text); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   About
   ============================================================ */
.about h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 700; letter-spacing: -0.03em; padding-top: var(--s-16); }
.about .lead { margin-top: var(--s-6); color: var(--c-text-2); max-width: 34em; }
.about h2 { margin-top: var(--s-24); font-size: 22px; line-height: 30px; font-weight: 700; letter-spacing: -0.02em; }
.timeline { margin-top: var(--s-6); border-top: 1px solid var(--c-border-strong); }
.timeline .trow { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s-6); padding-block: var(--s-4); border-bottom: 1px solid var(--c-border); }
.timeline .when { color: var(--c-text-2); font-size: 15px; line-height: 26px; }
.timeline .what b { font-weight: 600; }
.timeline .what span { display: block; color: var(--c-text-2); font-size: 15px; line-height: 24px; }
@media (max-width: 767px) { .timeline .trow { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); } }

.thumb img, .rthumb img, .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rthumb { overflow: hidden; }

.cover, .thumb { padding: 0; }
.cover span, .thumb span { padding: var(--s-4); }
.card .thumb { padding: 0; }

.flow { margin-top: var(--s-8); display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); }
.flow .node { padding: var(--s-2) var(--s-4); border: 1px solid var(--c-border-strong); border-radius: var(--radius-chip); font-size: 15px; line-height: 24px; color: var(--c-text); }
.flow .node:last-child { background: var(--c-text); color: var(--c-bg); border-color: var(--c-text); }
.flow .arr { color: var(--c-text-3); }
.fnote { margin-top: var(--s-3); font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--c-text-3); }
.report { margin-top: var(--s-8); display: grid; gap: var(--s-3); padding: var(--s-6); background: var(--c-surface); border-radius: var(--radius-img); }
.rrow { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: var(--s-4); align-items: center; }
.rlabel { font-size: 14px; line-height: 20px; font-weight: 600; }
.rtiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
.rtiles i { font-style: normal; font-size: 12px; line-height: 18px; color: var(--c-text-3); background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 8px; padding: var(--s-3) var(--s-2); text-align: center; }
@media (max-width: 767px) { .rrow { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); } .report { padding: var(--s-4); } }
.body-sec .text p + ul { margin-top: var(--s-4); }

.compare { margin-top: var(--s-8); border: 1px solid var(--c-border); border-radius: var(--radius-img); overflow: hidden; }
.crow { display: grid; grid-template-columns: 96px repeat(var(--cols, 2), minmax(0, 1fr)); border-top: 1px solid var(--c-border); }
.crow:first-child { border-top: 0; }
.crow > div { padding: var(--s-4); font-size: 15px; line-height: 24px; color: var(--c-text-2); border-left: 1px solid var(--c-border); }
.crow > div:first-child { border-left: 0; }
.chead > div { background: var(--c-surface); color: var(--c-text); font-weight: 600; font-size: 14px; line-height: 20px; }
.crow .clabel { font-weight: 600; color: var(--c-text); font-size: 14px; }
@media (max-width: 767px) { .crow { grid-template-columns: minmax(0, 1fr); } .crow > div { border-left: 0; border-top: 1px solid var(--c-border); } .crow > div:first-child { border-top: 0; } .chead { display: none; } }

.callout p + p { margin-top: var(--s-3); }
.callout .lead { color: var(--c-text); font-weight: 600; }
.steps { margin-top: var(--s-8); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); list-style: none; padding: 0; }
.steps li { position: relative; padding: var(--s-6); border-radius: var(--radius-img); background: var(--c-surface); font-size: 15px; line-height: 24px; color: var(--c-text); }
.steps .n { display: block; margin-bottom: var(--s-3); font-size: 13px; line-height: 18px; font-weight: 600; color: var(--c-text-3); }
.steps li:not(:last-child)::after { content: "\2192"; position: absolute; right: calc(var(--s-6) / -2 - 8px); top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--c-text-3); }
@media (max-width: 1023px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li:nth-child(2)::after { content: none; } }
@media (max-width: 767px) { .steps { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } .steps li:not(:last-child)::after { content: "\2193"; right: auto; left: 50%; top: auto; bottom: calc(var(--s-6) / -2 - 10px); transform: translateX(-50%); } }

.body-sec .text2 { margin-top: var(--s-6); color: var(--c-text-2); line-height: var(--lh-text); }
.body-sec .text2 p + p { margin-top: var(--s-3); }

.chain.many div { padding: var(--s-4); }
@media (max-width: 1023px) { .chain.many { grid-template-columns: minmax(0, 1fr); } .chain.many div { border-left: 0; border-top: 1px solid var(--c-border); } .chain.many div:first-child { border-top: 0; } }
.steps li b { display: block; margin-bottom: var(--s-1); font-weight: 600; }

.fig { margin-top: var(--s-8); }
.fig img { display: block; width: 100%; height: auto; border-radius: var(--radius-img); background: var(--c-surface); }
.fig figcaption { margin-top: var(--s-3); font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--c-text-3); }

.a-head { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--s-12); align-items: end; padding-top: var(--s-16); }
.a-head h1 { padding-top: 0; }
.a-photo { aspect-ratio: 4 / 5; border-radius: var(--radius-hero); background: var(--c-surface); overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.a-photo span { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--c-text-3); }
.a-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-contact { margin-top: var(--s-6); font-size: 15px; line-height: 24px; color: var(--c-text-2); }
.a-contact a:hover { color: var(--c-text); text-decoration: underline; text-underline-offset: 3px; }
.timeline .what p { margin-top: var(--s-1); font-size: 15px; line-height: 24px; color: var(--c-text-3); }
.about .sum-wrap { margin-top: var(--s-6); }
@media (max-width: 767px) { .a-head { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); padding-top: var(--s-8); } .a-photo { width: 160px; order: -1; } .about h2 { margin-top: var(--s-16); } }


.d-head .tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.d-head .tags span { font-size: 13px; line-height: 20px; padding: 4px 12px; border: 1px solid var(--c-border); border-radius: 999px; color: var(--c-text-2); background: var(--c-bg); }

.body-sec .text p.lead { color: var(--c-text); line-height: var(--lh-text); margin-bottom: var(--s-4); }
.body-sec .text p.lead b { font-weight: 700; }
.body-sec .text p.lead + p { margin-top: 0; }

/* chips, logo, toc, activity */
.d-head .tags span, .row .tags span { display: inline-block; font-size: 12px; line-height: 18px; padding: 4px 10px; border: 0; border-radius: 8px; background: var(--c-surface); color: var(--c-text-2); }
.row .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-2); }
.d-head .org { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.logo { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none; display: inline-flex; background: var(--c-surface); border: 1px solid var(--c-border); }
.logo.sm { width: 22px; height: 22px; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo.empty { border: 1px dashed var(--c-border-strong); }
.card .meta, .row .org { display: flex; align-items: center; gap: var(--s-2); }
.toc { margin-top: var(--s-12); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.toc b { font-size: 13px; color: var(--c-text-3); font-weight: 500; margin-right: var(--s-2); }
.toc a { font-size: 14px; line-height: 20px; padding: 6px 14px; border-radius: 8px; background: var(--c-surface); color: var(--c-text); text-decoration: none; }
.about h2 { scroll-margin-top: 24px; }

/* cases */
.cases { margin-top: var(--s-8); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-4); }
.case { border: 1px solid var(--c-border); border-radius: var(--radius-img); padding: var(--s-6); }
.case b { display: block; margin-bottom: var(--s-3); font-size: 13px; line-height: 18px; font-weight: 600; color: var(--c-text-3); }
.case .opts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.case .opts i { font-style: normal; font-size: 14px; line-height: 20px; padding: 8px 12px; border-radius: 8px; background: var(--c-surface); color: var(--c-text); }
/* about toc rail */
.toc-rail { display: none; }
@media (min-width: 1240px) {
  .toc-rail { display: block; position: fixed; left: max(24px, calc((100vw - 840px) / 2 - 230px)); top: 150px; width: 170px; border-left: 1px solid var(--c-border); z-index: 5; }
  .toc-rail a { display: block; margin-left: -1px; padding: 14px 0 14px 28px; border-left: 2px solid transparent; font-size: 15px; line-height: 22px; color: var(--c-text-3); text-decoration: none; }
  .toc-rail a[aria-current="true"] { color: var(--c-text); font-weight: 600; border-left-color: var(--c-text); }
  .toc-chips { display: none; }
}

/* product table */
.ptable { margin: var(--s-6) 0 var(--s-2); border: 1px solid var(--c-border); border-radius: var(--radius-img); overflow: hidden; }
.ptable .phead, .ptable .prow { display: grid; grid-template-columns: 56px 1fr 64px; gap: var(--s-4); padding: 14px 20px; align-items: center; }
.ptable .phead { background: var(--c-surface); font-size: 13px; line-height: 18px; font-weight: 600; color: var(--c-text); }
.ptable .prow { border-top: 1px solid var(--c-border); font-size: 15px; line-height: 22px; color: var(--c-text); }
.ptable .pn { font-size: 13px; color: var(--c-text-3); }
.ptable .pq { font-size: 13px; color: var(--c-text-2, var(--c-text-3)); text-align: right; }
/* combo */
.combo-label { margin-top: var(--s-8); font-size: 13px; line-height: 18px; font-weight: 600; color: var(--c-text-3); }
.combo { margin-top: var(--s-3); display: flex; align-items: stretch; gap: 0; }
.combo .ccol { flex: 1 1 0; min-width: 0; border: 1px solid var(--c-border); border-radius: var(--radius-img); overflow: hidden; background: var(--c-bg); }
.combo .chd { padding: 14px 12px; background: var(--c-text); color: var(--c-bg); font-size: 15px; line-height: 22px; font-weight: 600; text-align: center; }
.combo ul { list-style: none; margin: 0; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.combo li { font-size: 13px; line-height: 19px; padding: 8px 10px; border-radius: 8px; background: var(--c-surface); color: var(--c-text); }
.combo .cx { flex: 0 0 28px; align-self: flex-start; margin-top: 12px; text-align: center; font-size: 20px; line-height: 30px; color: var(--c-text-3); }
.steps-label { margin-top: 80px; padding-top: var(--s-8); border-top: 1px solid var(--c-border); font-size: 13px; line-height: 18px; font-weight: 600; color: var(--c-text-3); }
.steps-label + .steps { margin-top: var(--s-4); }
@media (max-width: 860px) { .combo { flex-direction: column; } .combo .cx { flex: none; align-self: center; margin: 4px 0; } }

/* goal */
.goalbox { margin-top: var(--s-6); padding: var(--s-6) var(--s-8); border-radius: var(--radius-img); background: var(--c-text); color: var(--c-bg); }
.goalbox .tag { display: inline-block; padding: 2px 10px; border-radius: 8px; background: var(--c-bg); color: var(--c-text); font-size: 12px; line-height: 20px; font-weight: 600; }
.goalbox p { margin: var(--s-3) 0 0; font-size: 22px; line-height: 32px; font-weight: 700; color: var(--c-bg); letter-spacing: -0.01em; }

/* sub sections */
.sub { margin-top: var(--s-12, 64px); }
.sub:first-of-type { margin-top: var(--s-8); }
.sub-h { display: flex; align-items: baseline; gap: var(--s-3); padding-top: var(--s-6); border-top: 1px solid var(--c-border); }
.sub-h .sn { font-size: 14px; line-height: 24px; font-weight: 600; color: var(--c-text-3); }
.sub-h h3 { margin: 0; font-size: 22px; line-height: 32px; font-weight: 700; color: var(--c-text); }
.sub > p { margin: var(--s-3) 0 0; font-size: 17px; line-height: 28px; color: var(--c-text-2); }

/* combo alignment */
.combo li { height: 52px; display: flex; align-items: center; box-sizing: border-box; padding: 0 12px; }
.combo ul { gap: 8px; }

/* hero art */
.hero .wrap { position: relative; }
.hero-art { display: none; }
@media (min-width: 1100px) { .hero-art { display: block; position: absolute; right: 0; top: 50%; transform: translateY(-46%); width: 300px; height: auto; } }
.body-sec .text, .body-sec .text2 { font-size: 16px; line-height: 27px; }
.body-sec .text p.lead { font-size: 18px; line-height: 28px; }
.about .bio { margin-top: var(--s-4); color: var(--c-text-2); max-width: 34em; font-size: 16px; line-height: 27px; }
.toc.toc-chips { gap: 0 var(--s-6); padding: 0; border-bottom: 1px solid var(--c-border); }
.toc.toc-chips b { padding-bottom: 12px; }
.toc.toc-chips a { background: none; border-radius: 0; padding: 0 0 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--c-text-2); font-size: 15px; }
.toc.toc-chips a:hover { color: var(--c-text); border-bottom-color: var(--c-text); }
.orglink { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--c-border-strong, #bbb); }
.orglink:hover { text-decoration-color: currentColor; }
.orglink .ext { margin-left: 3px; vertical-align: 0.05em; }
.orglines { display: grid; gap: 6px; }
.orglines .ol { display: flex; align-items: center; gap: 8px; }

/* accent colors (tag): orange = 기획·제작, green = 운영·유입, blue = 분석 */
:root { --tg-o: #ee6a2c; --tg-o-bg: #fff1e8; --tg-g: #1d9d63; --tg-g-bg: #eaf7f0; --tg-b: #2f7be8; --tg-b-bg: #eaf2fe; }
.hero h1 { max-width: 17em; line-height: 1.42; }
.tg { display: inline-block; white-space: nowrap; line-height: 1.2; padding: 0.1em 0.22em 0.16em; margin-block: 0.08em; border-radius: 0.26em; }
.tg.coral { background: var(--tg-o-bg); }
.tg.mint { background: var(--tg-b-bg); }
.chip.c-coral, .row .tags span.t-coral, .d-head .tags span.t-coral { background: var(--tg-o-bg); color: var(--tg-o); border-color: transparent; }
.chip.c-butter, .row .tags span.t-butter, .d-head .tags span.t-butter { background: var(--tg-g-bg); color: var(--tg-g); border-color: transparent; }
.chip.c-mint, .row .tags span.t-mint, .d-head .tags span.t-mint { background: var(--tg-b-bg); color: var(--tg-b); border-color: transparent; }
button.chip[aria-pressed="true"] { background: var(--c-text); color: var(--c-bg); }
.goalbox .tag { background: var(--tg-g-bg); color: var(--tg-g); }
.hero h1 { max-width: 21em; line-height: 1.38; }
.tg { padding: 0.07em 0.18em 0.13em; margin-block: 0.06em; }
button.chip.c-coral:hover { background: #ffe3d2; border-color: var(--tg-o); color: var(--tg-o); }
button.chip.c-butter:hover { background: #d9f1e5; border-color: var(--tg-g); color: var(--tg-g); }
button.chip.c-mint:hover { background: #d8e7fd; border-color: var(--tg-b); color: var(--tg-b); }
button.chip.c-coral[aria-pressed="true"] { background: var(--tg-o); border-color: var(--tg-o); color: #fff; }
button.chip.c-butter[aria-pressed="true"] { background: var(--tg-g); border-color: var(--tg-g); color: #fff; }
button.chip.c-mint[aria-pressed="true"] { background: var(--tg-b); border-color: var(--tg-b); color: #fff; }
.row:hover .tags span.t-coral { background: #ffe3d2; } .row:hover .tags span.t-butter { background: #d9f1e5; } .row:hover .tags span.t-mint { background: #d8e7fd; }
.logo.nb { border: 0; }

/* post-submit additions */
.tg.coral { color: var(--tg-o); }
.tg.mint { color: var(--tg-b); }
.statgrp { margin-top: var(--s-8); }
.stat-t { font-size: 15px; font-weight: 600; margin-bottom: var(--s-2); }
.statgrp .chain { margin-top: 0; }
.statgrp .chain div { font-size: 18px; font-weight: 600; color: var(--c-text); }
.statgrp .chain b { font-size: 13px; font-weight: 500; color: var(--c-text-3); }
.xflow { margin-top: var(--s-4); border: 1px solid var(--c-border); border-radius: var(--radius-img); overflow: hidden; }
.xhead { display: grid; grid-template-columns: 1fr 1fr; background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
.xhead div { padding: var(--s-4) var(--s-6); }
.xhead div:last-child { text-align: right; border-left: 1px solid var(--c-border); }
.xhead b { display: block; font-size: 16px; }
.xhead span { font-size: 13px; color: var(--c-text-3); }
.xbody { padding: var(--s-2) var(--s-6); }
.xrow { padding: var(--s-4) 0; border-top: 1px dashed var(--c-border); }
.xrow:first-child { border-top: 0; }
.xtxt { font-size: 15px; line-height: 24px; }
.xtxt b { display: block; font-weight: 600; }
.xtxt small { display: block; font-size: 13px; color: var(--c-text-3); line-height: 20px; }
.xrow.l .xtxt { text-align: right; }
.xarrow { position: relative; height: 2px; margin-top: 12px; background: var(--c-text); }
.xarrow::after { content: ""; position: absolute; top: -4px; border: 5px solid transparent; }
.xrow.r .xarrow::after { right: -1px; border-left: 9px solid var(--c-text); border-right: 0; }
.xrow.l .xarrow::after { left: -1px; border-right: 9px solid var(--c-text); border-left: 0; }
@media (max-width: 640px) { .xhead div, .xbody { padding-left: var(--s-4); padding-right: var(--s-4); } .statgrp .chain { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.mosaic { margin-top: var(--s-8); display: flex; flex-direction: column; gap: 12px; }
.mrow { display: flex; gap: 12px; }
.mrow figure { margin: 0; min-width: 0; }
.mrow img { display: block; width: 100%; height: auto; border-radius: var(--radius-img); background: var(--c-surface); }
@media (max-width: 640px) { .mosaic, .mrow { gap: 6px; } }

.a-title h1 { max-width: none; }
.about .a-head { padding-top: var(--s-10, 40px); }
@media (max-width: 767px) { .about .a-head { padding-top: var(--s-6); } }

/* balanced line breaks everywhere */
h1,h2,h3,.card h3,.row .title,.what b,.what span,.what p,.d-head h1,.org,.result,.lead,.bio,.summary dd,.text p,.stat-t,.callout p{word-break:keep-all;text-wrap:balance}
.text p,.bio,.lead,.what p{text-wrap:pretty}
.a-title h1{line-height:1.38}
.sublab{font-size:15px;font-weight:700;letter-spacing:-.01em;margin:var(--s-8,32px) 0 var(--s-3,12px);color:var(--c-text,#111)}
.sublab.first{margin-top:var(--s-4,16px)}
.mosaic{margin-top:var(--s-6,24px)}
.row .title{display:block}

.goalbox{background:#fff;color:#111;border:1px solid var(--c-border-strong)}
.goalbox .tag,.goalbox .tag.x{background:transparent;color:#111;padding:0;font-size:13px;letter-spacing:0}
.goalbox p{color:#111}
.body-sec h2.h2b{margin-top:var(--s-16,64px)}
.facts{margin-top:var(--s-6,24px);border-top:1px solid var(--c-border-strong)}
.facts .srow:first-child{padding-top:var(--s-4)}
.pgroups{margin:var(--s-5,20px) 0 0;padding:var(--s-4) var(--s-5);border-radius:var(--radius-img);background:var(--c-surface)}
.pg{display:grid;grid-template-columns:110px minmax(0,1fr);gap:var(--s-4);padding:6px 0;font-size:13px;line-height:20px;color:var(--c-text-2,#555)}
.pg b{font-weight:600;color:var(--c-text)}
.tree,.tree ul{list-style:none;margin:0;padding:0}
.tree{margin-top:var(--s-6,24px)}
.tree ul{margin-left:14px;padding-left:22px;border-left:1.5px solid var(--c-border-strong)}
.tree li{position:relative;margin:10px 0}
.tree ul li::before{content:"";position:absolute;left:-22px;top:19px;width:16px;border-top:1.5px solid var(--c-border-strong)}
.tree .tn{display:inline-block;padding:8px 14px;border-radius:8px;background:var(--c-surface);font-size:14px;line-height:20px;color:var(--c-text)}
.tree>li>.tn{background:#111;color:#fff;font-weight:600}
.tree small{display:inline-block;margin-left:10px;font-size:13px;color:var(--c-text-3)}
.funnel{margin-top:var(--s-6,24px);display:flex;flex-direction:column;align-items:center;gap:8px}
.fstep{width:var(--w);padding:16px 22px;border-radius:12px;background:var(--c-surface);text-align:left}
.fstep .fl{display:block;font-size:12px;line-height:18px;font-weight:600;color:var(--c-text-3)}
.fstep b{display:block;font-size:17px;line-height:26px;font-weight:700;color:var(--c-text)}
.fstep p{margin:2px 0 0;font-size:15px;line-height:24px;color:var(--c-text-2,#555)}
.fstep.last{background:#111}
.fstep.last .fl,.fstep.last p{color:#cfcfcf}.fstep.last b{color:#fff}
@media (max-width:767px){.fstep{width:100%!important}}
.split{margin-top:var(--s-6,24px);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--s-8,32px);align-items:center}
.split.one{grid-template-columns:minmax(0,1fr)}
.split .stext p{margin:0 0 var(--s-3)}
.split .sfig{margin:0;border-radius:var(--radius-img);overflow:hidden}.split .sfig img{width:100%;display:block}
@media (max-width:767px){.split{grid-template-columns:minmax(0,1fr)}}

/* hero fade-in */
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero .eyebrow, .hero h1, .hero .sub { opacity: 0; animation: heroIn .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero h1 { animation-delay: .15s; }
.hero .sub { animation-delay: .55s; }
.hero .eyebrow { animation-delay: 0s; }
.hero-art { animation: heroIn 1.1s .5s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) { .hero .eyebrow, .hero h1, .hero .sub, .hero-art { animation: none; opacity: 1; } }

/* about hobby */
.hobby { margin-top: var(--s-6); }
.hobby-text b { display: block; font-weight: 600; }
.hobby-text span { display: block; color: var(--c-text-2); font-size: 15px; line-height: 24px; }
.hobby-text p { margin-top: var(--s-1); font-size: 15px; line-height: 24px; color: var(--c-text-3); max-width: 38em; }
.hobby-grid { margin-top: var(--s-6); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hobby-grid.n1 { grid-template-columns: minmax(0, 1fr); } .hobby-grid.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hobby-grid.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hobby-grid figure, .hobby-grid .ph { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius-img); overflow: hidden; background: var(--c-surface); display: flex; align-items: center; justify-content: center; text-align: center; }
.hobby-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hobby-grid .ph span { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--c-text-3); }
@media (max-width: 767px) { .hobby-grid, .hobby-grid.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

/* funnel: boxed, left aligned */
.funnel { align-items: stretch; gap: 8px; padding: var(--s-5, 20px); border: 1px solid var(--c-border); border-radius: 16px; background: #fff; }
.fstep { width: 100%; }
.fstep { background: var(--c-surface); }
.fstep { position: relative; }
.fstep:not(.last)::after { content: ""; position: absolute; left: 24px; bottom: -9px; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid var(--c-border-strong); }
.fstep.last { background: #111; }
@media (max-width: 767px) { .funnel { padding: 12px; } }
.nw{white-space:nowrap}

/* about: round photo beside greeting, one column */
.a-title { display: flex; align-items: center; gap: var(--s-8, 32px); }
.a-photo.round { flex: none; width: 132px; height: 132px; aspect-ratio: 1 / 1; border-radius: 50%; }
.a-head.one { display: block; padding-top: var(--s-10, 40px); }
.a-head.one .a-text { max-width: 42em; }
@media (max-width: 767px) { .a-title { flex-direction: column; align-items: flex-start; gap: var(--s-4); } .a-photo.round { width: 104px; height: 104px; order: 0; width: 104px; } }

/* toc rail vertically centered */
@media (min-width: 1240px) { .toc-rail { top: 50% !important; transform: translateY(-50%); } }

/* etude step cards */
.scards { margin-top: var(--s-6, 24px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.scard { position: relative; padding: 20px 18px; border-radius: 14px; background: var(--c-surface); }
.scard:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); z-index: 2; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--c-border-strong); font-size: 12px; line-height: 20px; text-align: center; color: var(--c-text-2); }
.scard .sn { display: block; font-size: 12px; font-weight: 600; color: var(--c-text-3); margin-bottom: 10px; }
.scard svg { width: 36px; height: 36px; display: block; margin-bottom: 12px; padding: 7px; border-radius: 10px; background: #fff; box-sizing: border-box; }
.scard b { display: block; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--c-text); }
.scard p { margin: 4px 0 0; font-size: 14px; line-height: 22px; color: var(--c-text-2); }
@media (max-width: 1023px) { .scards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .scard:nth-child(2)::after { display: none; } }
@media (max-width: 560px) { .scards { grid-template-columns: minmax(0, 1fr); } .scard::after { display: none; } }

/* image rows inside figures */
.fig .mosaic { margin-top: 0; }
.hobby-grid figure { aspect-ratio: 9 / 16; }
.hobby-grid img { object-position: top; }

/* feedback round: hover, widths, about header, toc */
@media (hover: hover) {
  a.card, a.row { transition: opacity .22s ease; }
  a.card:hover, a.row:hover { opacity: .55; }
  a.card:hover h3, a.row:hover .title { text-decoration: none; }
}
.fig { margin-inline: 0; }
.steps { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
@media (max-width: 1023px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.about .lead, .about .bio, .a-head.one .a-text, .hobby-text p { max-width: none; }
.a-title { align-items: stretch; }
.a-title h1 { margin: 0; align-self: center; }
.a-photo.round { position: relative; width: auto; height: auto; aspect-ratio: 1 / 1; display: block; border-radius: 50%; }
.a-photo.round img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .a-photo.round { width: 104px; height: 104px; align-self: flex-start; } }
.hobby-text .xlink { color: inherit; text-decoration: none; }
.hobby-text .xlink i { font-style: normal; margin-left: 4px; display: inline-block; transition: transform .2s ease; }
.hobby-text .xlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.hobby-text .xlink:hover i { transform: translate(2px, -2px); }
@media (min-width: 1280px) { .toc-rail { left: max(24px, calc((100vw - 840px) / 2 - 262px)) !important; width: 168px; } }
@media (min-width: 1240px) and (max-width: 1279px) { .toc-rail { display: none !important; } }

.a-photo.round { width: var(--ph, 132px); height: var(--ph, 132px); aspect-ratio: auto; align-self: center; }
@media (max-width: 767px) { .a-photo.round { width: 104px; height: 104px; align-self: flex-start; } }

.a-photo.round { --ph: 197px; }
.a-title h1, .about .a-title h1 { padding: 0 !important; margin: 0 !important; }
.a-title { padding-top: var(--s-12, 48px); }
@media (max-width: 767px) { .a-title { padding-top: var(--s-8, 32px); } }
