/* 캔들랩 사이트 스타일
   색: 종이(배경) · 먹(글자) · 불꽃(강조) · 밤(어두운 구역). 모서리는 각지게, 숫자는 모노 글꼴. */

:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --stone: #e3ddd0;
  --card: #fbfaf6;
  --ink: #16130f;
  --ink-2: #47423a;
  --ink-3: #5f594e;
  --line: #d6cfc0;
  --line-2: #c6bdab;
  --ember: #cc4a0a;
  --ember-ink: #ffffff;
  --ember-soft: #fbe2d0;
  --ember-deep: #a63a06;
  --night: #ece3d2;
  --night-2: #f4eee1;
  --night-3: #e2d6bf;
  --night-line: #d3c6ac;
  --night-text: #2a2118;
  --night-dim: #6a5c49;
  --ok: #2f7a4f;
  --ok-soft: #dcefe2;
  --warn: #9a5b00;
  --warn-soft: #fbeccc;

  --sans: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "IBM Plex Sans KR", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 3px;
  --header-h: 68px;
  --shadow: 0 1px 0 rgba(22, 19, 15, 0.04), 0 12px 32px -18px rgba(22, 19, 15, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ember); color: var(--ember-ink); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ember); color: var(--ember-ink); padding: 10px 14px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.fx-mono { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: -0.01em; }

/* ---------- 버튼과 링크 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ember); color: var(--ember-ink); }
.btn--primary:hover { background: var(--ember); color: var(--ember-ink); }
.btn--ember { background: var(--ember); color: var(--ember-ink); }
.btn--ember:hover { background: var(--paper); color: var(--ink); }
.btn--ghost { border-color: var(--line-2); background: transparent; color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--line-light { border-color: var(--night-line); color: var(--night-text); }
.btn--line-light:hover { border-color: var(--night-text); }
.btn--plain { background: none; border: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; padding: 0 8px; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.text-link::after { content: "→"; transition: transform .18s ease; }
.text-link:hover::after { transform: translateX(4px); }
.text-link:hover { color: var(--ember-deep); }
.text-link--light { color: var(--night-text); }
.text-link--light:hover { color: #ffb07f; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0;
  color: var(--ember-deep); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--ember); flex: none; }
.eyebrow--light { color: var(--ember); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); display: inline-block; flex: none; }
.dot--on { background: #2fa35f; box-shadow: 0 0 0 3px rgba(47, 163, 95, .18); }
.dot--wait { background: #e09a1d; box-shadow: 0 0 0 3px rgba(224, 154, 29, .18); }
.pill { display: inline-block; min-width: 26px; padding: 1px 8px; border-radius: 99px; font-family: var(--mono); font-size: 12px; text-align: center; }
.pill--ok { background: var(--ok-soft); color: var(--ok); }
.pill--warn { background: var(--warn-soft); color: var(--warn); }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 241, 234, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark__mark { width: 26px; height: 26px; }
.mark-flame { fill: var(--ember); transform-origin: 14px 14px; }
.mark-wick { fill: var(--ink); }
.mark-body { fill: var(--ink); }
.wordmark--light .mark-wick, .wordmark--light .mark-body { fill: var(--night-text); }
.wordmark__name { font-family: var(--mono); font-weight: 500; font-size: 15px; letter-spacing: .14em; }
@media (prefers-reduced-motion: no-preference) {
  .wordmark:hover .mark-flame { animation: flicker 1.2s ease-in-out infinite; }
}
@keyframes flicker { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(.94, 1.06); } 60% { transform: scale(1.04, .96); } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link { padding: 8px 14px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-2); border-radius: var(--radius); }
.nav__link:hover { color: var(--ink); background: var(--paper-2); }
.nav__link[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ember); border-radius: 0; }
.nav__link--cta { margin-left: 10px; background: var(--ember); color: var(--ember-ink); padding: 9px 18px; }
.nav__link--cta:hover, .nav__link--cta[aria-current="page"] { background: var(--ember); color: var(--ember-ink); box-shadow: none; border-radius: var(--radius); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 11px; margin-right: -11px; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle__bar { display: block; height: 2px; background: var(--ink); transition: transform .2s ease; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--ember); padding-left: 14px; }
  .nav__link--cta { margin: 16px 0 0; text-align: center; border-bottom: 0; border-radius: var(--radius); }
}

/* ---------- 구역 공통 ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tight { padding-top: clamp(32px, 5vw, 56px); }
.section--line { border-top: 1px solid var(--line); }
.section--stone { background: var(--paper-2); }
.section--night { background: var(--night); color: var(--night-text); }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__title { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.3; letter-spacing: -0.025em; font-weight: 700; }
.section__text { margin-top: 18px; color: var(--ink-2); max-width: 520px; }
.section--night .section__text { color: var(--night-dim); }
.section--night .text-link, .section--night .section__text + .text-link { margin-top: 28px; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--wide { align-items: center; }
.split__side { position: sticky; top: calc(var(--header-h) + 32px); }
.split--wide .split__side { position: static; }
.split__side .text-link { margin-top: 28px; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split__side { position: static; }
}

/* ---------- 첫 화면 ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; pointer-events: none;
  width: 720px; height: 720px; right: -220px; top: -260px;
  background: radial-gradient(closest-side, rgba(228, 87, 14, .16), rgba(228, 87, 14, 0));
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 88px); align-items: center; position: relative; }
.hero__title { font-size: clamp(36px, 5.4vw, 66px); line-height: 1.16; letter-spacing: -0.035em; font-weight: 700; }
.hero__lead { margin-top: 26px; font-size: clamp(16px, 1.4vw, 18px); color: var(--ink-2); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__actions--center { justify-content: center; }
.hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.hero__facts div { padding: 16px 16px 0 0; }
.hero__facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.hero__facts dt { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.hero__facts dd { margin-top: 4px; font-size: 14px; font-weight: 600; }
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__facts { margin-top: 40px; }
}
@media (max-width: 520px) {
  .hero__facts { grid-template-columns: 1fr; }
  .hero__facts div, .hero__facts div + div { padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
  .hero__facts dd { margin: 0; text-align: right; }
}

/* ---------- 상담창 ---------- */
.assistant {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
}
.assistant__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.assistant__avatar { display: grid; place-items: center; width: 40px; height: 40px; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 50%; flex: none; }
.assistant__avatar .wordmark__mark { width: 22px; height: 22px; }
.assistant__avatar .mark-wick, .assistant__avatar .mark-body { fill: var(--ink); }
.assistant__name { font-weight: 700; font-size: 15px; line-height: 1.4; }
.assistant__status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.assistant__log { height: 300px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 11px 14px; font-size: 15px; line-height: 1.6; border-radius: 4px; }
.msg p + p { margin-top: 6px; }
.msg--bot { background: var(--paper-2); align-self: flex-start; border-top-left-radius: 0; }
.msg--me { background: var(--ember); color: var(--ember-ink); align-self: flex-end; border-top-right-radius: 0; }
.msg__link { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--ember-deep); text-underline-offset: 3px; }
.msg__options { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 10px; }
.msg--typing { display: inline-flex; gap: 4px; padding: 14px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: typing 1s infinite ease-in-out; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .msg--typing i { animation: none; opacity: .6; } }
.chip {
  display: inline-flex; align-items: center; min-height: 34px; padding: 4px 12px;
  border: 1px solid var(--line-2); border-radius: 99px; background: var(--card);
  font-size: 13.5px; cursor: pointer; text-align: left;
  transition: border-color .15s ease, background-color .15s ease;
}
.chip:hover { border-color: var(--ink); }
.assistant__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 12px; }
.assistant__form { display: flex; gap: 8px; padding: 12px 12px 12px 18px; border-top: 1px solid var(--line); }
.assistant__form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 0; font-size: 15px; outline: none; }
.assistant__form:focus-within { box-shadow: inset 0 2px 0 var(--ember); }
.assistant__send { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius); background: var(--ember); color: var(--ember-ink); cursor: pointer; flex: none; }
.assistant__send:hover { background: var(--ember); }
.assistant__note { padding: 12px 18px 16px; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); background: var(--paper); border-top: 1px solid var(--line); }
@media (max-width: 520px) { .assistant__log { height: 250px; } }

/* ---------- 서비스 줄 ---------- */
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.row:last-child { border-bottom: 1px solid var(--line); }
.row__num { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.row__title { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; line-height: 1.35; margin-bottom: 12px; }
.row__text p:not(.row__num) { color: var(--ink-2); }
.row__text .text-link { margin-top: 22px; }
.row__stage { padding: clamp(24px, 4vw, 48px); display: flex; justify-content: center; align-items: center; min-height: 300px; border-radius: 4px; }
.row__stage--paper { background: var(--paper-2); }
.row__stage--ember { background: var(--ember-soft); }
.row__stage--stone { background: var(--stone); }
.row:nth-child(2) .row__stage { order: -1; }
@media (max-width: 900px) {
  .row { grid-template-columns: minmax(0, 1fr); }
  .row:nth-child(2) .row__stage { order: 0; }
  .row__stage { min-height: 0; }
}

/* ---------- 원칙 ---------- */
.principles { counter-reset: p; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 56px 1fr; column-gap: 8px; padding: 28px 0; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles li::before { content: counter(p, decimal-leading-zero); grid-row: span 2; font-family: var(--mono); font-size: 13px; color: var(--ember-deep); padding-top: 4px; }
.principles h3 { font-size: 19px; letter-spacing: -0.015em; margin-bottom: 6px; }
.principles p { color: var(--ink-2); }

/* ---------- 작업 카드 ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }
.work-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.work-card__link:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.work-card__stage { height: 300px; background: var(--paper-2); display: flex; align-items: center; justify-content: center; padding: 28px; overflow: hidden; position: relative; }
.work-card:nth-child(4n+2) .work-card__stage { background: var(--ember-soft); }
.work-card:nth-child(4n+3) .work-card__stage { background: var(--stone); }
.work-card:nth-child(4n+4) .work-card__stage { background: var(--night); }
.work-card__stage .fx { pointer-events: none; transform: scale(.86); transform-origin: center; flex: none; }
.work-card__stage .fx-ops { transform: scale(.78); }
.work-card__stage .shot { width: 100%; height: 100%; object-fit: cover; object-position: left top; border: 1px solid var(--line); border-radius: 3px; }
.work-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.work-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.work-card__meta span:first-child { color: var(--ember-deep); }
.work-card__title { font-size: 20px; line-height: 1.4; letter-spacing: -0.02em; }
.work-card__summary { color: var(--ink-2); font-size: 15px; }
@media (max-width: 520px) { .work-card__stage { height: 240px; padding: 18px; } .work-card__stage .fx { transform: scale(.84); } }

/* ---------- 어두운 구역 ---------- */
.night-stage { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 6px; padding: clamp(20px, 4vw, 44px); display: flex; justify-content: center; }

/* ---------- 진행 순서 ---------- */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.process li { padding: 24px 20px 8px 0; position: relative; }
.process li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.process__num { display: block; font-size: 13px; color: var(--ember-deep); margin-bottom: 14px; }
.process h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -0.01em; }
.process p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 980px) {
  .process { grid-template-columns: 1fr; }
  .process li, .process li + li { display: grid; grid-template-columns: 48px 1fr; padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .process__num { grid-row: span 2; margin: 3px 0 0; }
}

/* ---------- 마무리 안내 ---------- */
.cta { background: var(--night); color: var(--night-text); padding: clamp(64px, 9vw, 112px) 0; position: relative; overflow: hidden; }
.cta::after {
  content: ""; position: absolute; pointer-events: none; width: 560px; height: 560px; left: -180px; bottom: -340px;
  background: radial-gradient(closest-side, rgba(228, 87, 14, .32), rgba(228, 87, 14, 0));
}
.cta__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta__title { font-size: clamp(28px, 3.8vw, 46px); line-height: 1.25; letter-spacing: -0.03em; max-width: 680px; }
.cta__text { margin-top: 16px; color: var(--night-dim); max-width: 560px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--night); color: var(--night-dim); border-top: 1px solid var(--night-line); padding: 56px 0 32px; font-size: 14px; }
.site-footer__top { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; }
.site-footer__slogan { margin-top: 18px; color: var(--night-text); font-weight: 600; font-size: 17px; }
.site-footer__about { margin-top: 6px; max-width: 360px; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.site-footer__heading { font-family: var(--mono); font-size: 12px; color: var(--night-text); margin-bottom: 4px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--night-text); text-decoration: underline; text-underline-offset: 4px; }
.site-footer .wordmark { color: var(--night-text); }
.site-footer__copy { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--night-line); font-family: var(--mono); font-size: 12px; }
@media (max-width: 760px) { .site-footer__top { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- 하위 페이지 머리 ---------- */
.page-head { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-head--compact { padding-bottom: clamp(28px, 4vw, 48px); }
.page-head--center { text-align: center; border-bottom: 0; padding: clamp(96px, 16vw, 200px) 0; }
.page-head--center .eyebrow { justify-content: center; }
.page-head__title { font-size: clamp(34px, 5vw, 60px); line-height: 1.18; letter-spacing: -0.035em; max-width: 900px; }
.page-head--center .page-head__title { margin: 0 auto; }
.page-head__lead { margin-top: 24px; color: var(--ink-2); max-width: 640px; font-size: clamp(16px, 1.4vw, 18px); }
.page-head--center .page-head__lead { margin-left: auto; margin-right: auto; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.jump a { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 99px; text-decoration: none; font-size: 14px; }
.jump a:hover { border-color: var(--ink); }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 36px; max-width: 760px; }
.legend div { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; }
.legend dt { font-weight: 700; font-size: 14px; }
.legend dd { font-size: 14px; color: var(--ink-2); }
@media (max-width: 620px) { .legend { grid-template-columns: 1fr; } }

/* ---------- 서비스 상세 ---------- */
.service__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-bottom: 28px; }
.service__cols h3 { font-size: 15px; font-family: var(--mono); font-weight: 500; color: var(--ink-3); margin-bottom: 12px; }
.service__aside { padding: 14px 16px; background: var(--ember-soft); border-left: 3px solid var(--ember); font-size: 15px; margin-bottom: 24px; }
@media (max-width: 620px) { .service__cols { grid-template-columns: 1fr; } }
.checklist li { position: relative; padding: 9px 0 9px 26px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 6px; border-left: 2px solid var(--ember); border-bottom: 2px solid var(--ember); transform: rotate(-45deg); }

/* ---------- 업무 진단 ---------- */
.diag { background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.diag__tasks { border: 0; margin: 0; padding: 24px; border-right: 1px solid var(--line); min-width: 0; }
.diag__tasks legend { font-family: var(--mono); font-size: 12px; color: var(--ink-3); padding: 0; margin-bottom: 14px; float: left; width: 100%; }
.diag__options { clear: both; display: flex; flex-direction: column; gap: 6px; }
.diag__option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-size: 14.5px; line-height: 1.45; transition: border-color .15s, background-color .15s; }
.diag__option:hover { border-color: var(--ink-3); }
.diag__option input { accent-color: var(--ember); width: 18px; height: 18px; flex: none; margin: 0; }
.diag__option:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.diag__result { padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.diag__empty { color: var(--ink-3); margin: auto 0; text-align: center; }
.diag__item { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.diag__item h4 { font-size: 16px; margin: 0 0 4px; }
.diag__item p { font-size: 14.5px; color: var(--ink-2); }
.diag__tag { display: inline-block; font-family: var(--mono); font-size: 11.5px; color: var(--ember-deep); margin-bottom: 4px; }
.diag__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 760px) { .diag { grid-template-columns: 1fr; } .diag__tasks { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- 가격 ---------- */
.packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.package { display: flex; flex-direction: column; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; }
.package--featured { border-color: var(--ink); box-shadow: inset 0 3px 0 var(--ember); }
.package__name { font-weight: 700; font-size: 17px; }
.package__price { margin-top: 14px; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.package__period { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.package__fit { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.package__items { margin: 16px 0 24px; display: flex; flex-direction: column; gap: 6px; }
.package__items li { font-size: 14.5px; padding-left: 16px; position: relative; }
.package__items li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; background: var(--ember); }
.package .btn { margin-top: auto; }
.fine { margin-top: 20px; font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 900px) { .packages { grid-template-columns: 1fr; } }

/* ---------- 자주 묻는 질문 ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--mono); font-size: 22px; color: var(--ember-deep); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 640px; }

/* ---------- 사례 상세 ---------- */
.case__head { padding-top: clamp(32px, 5vw, 64px); }
.back-link { display: table; margin-bottom: 32px; font-size: 14px; color: var(--ink-3); text-decoration: none; }
.back-link:hover { color: var(--ink); }
.case__title { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.2; letter-spacing: -0.035em; max-width: 900px; }
.case__lead { margin-top: 20px; color: var(--ink-2); max-width: 680px; font-size: clamp(16px, 1.4vw, 18px); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.tags li { font-family: var(--mono); font-size: 12.5px; padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 99px; }
.case__stage { margin-top: clamp(32px, 5vw, 56px); }
.case__stage-inner { background: var(--paper-2); border-radius: 6px; padding: clamp(28px, 6vw, 80px); display: flex; justify-content: center; }
.case__stage-inner .fx { transform: scale(1.12); margin: 24px 0; }
.case__stage-inner .shot { max-width: 920px; width: 100%; border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); }
@media (max-width: 620px) { .case__stage-inner .fx { transform: none; margin: 0; } }
.case__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.case__block h2 { font-size: 15px; font-family: var(--mono); font-weight: 500; color: var(--ember-deep); margin-bottom: 14px; }
.case__block p { font-size: 17px; color: var(--ink-2); }
.case__block--wide { grid-column: 1 / -1; }
.case__block--wide .checklist { columns: 2; column-gap: 40px; }
.case__block--wide .checklist li { break-inside: avoid; }
.case__note { grid-column: 1 / -1; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 4px; font-size: 15px; color: var(--ink-2); }
.case__note-title { font-weight: 700; color: var(--ink); margin-bottom: 4px; font-size: 14px; }
.case__pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: clamp(56px, 8vw, 96px); }
.case__pager a { display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; font-weight: 600; transition: border-color .2s; }
.case__pager a:last-child { text-align: right; }
.case__pager a:hover { border-color: var(--ink); }
.case__pager span { display: block; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--ink-3); margin-bottom: 4px; }
@media (max-width: 760px) {
  .case__grid { grid-template-columns: 1fr; }
  .case__block--wide .checklist { columns: 1; }
  .case__pager { grid-template-columns: 1fr; }
  .case__pager a:last-child { text-align: left; }
}

/* ---------- 캔들랩 소개 ---------- */
.name-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.name-card { padding: clamp(28px, 4vw, 48px); background: var(--card); border: 1px solid var(--line); border-radius: 4px; }
.name-card--dark { background: var(--night); color: var(--night-text); border-color: var(--night); }
.name-card__word { font-family: var(--mono); font-size: clamp(40px, 6vw, 72px); letter-spacing: .08em; line-height: 1; }
.name-card:first-child .name-card__word { color: var(--ember); }
.name-card__ko { margin: 14px 0 18px; font-weight: 700; font-size: 18px; }
.name-card p:last-child { color: var(--ink-2); }
.name-card--dark p:last-child { color: var(--night-dim); }
@media (max-width: 760px) { .name-split { grid-template-columns: 1fr; } }
.prose p { color: var(--ink-2); font-size: 17px; }
.prose p + p { margin-top: 18px; }
.prose h2 { font-size: 19px; margin: 36px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose--narrow { max-width: 760px; }
.spec li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-2); }
.spec li:last-child { border-bottom: 1px solid var(--line-2); }
.spec span { font-family: var(--mono); font-size: 13px; color: var(--ink-3); padding-top: 2px; }
.spec b { font-weight: 500; }

/* ---------- 문의 ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.contact__card { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; font-size: 15px; color: var(--ink-2); }
.contact__label { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.contact__mail { display: inline-block; font-weight: 700; color: var(--ink); font-size: 17px; margin-bottom: 4px; text-underline-offset: 4px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .contact__side { position: static; } }
.form { display: flex; flex-direction: column; gap: 24px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 20px; }
@media (max-width: 620px) { .form__grid { grid-template-columns: 1fr; } }
.form__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.form__label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.form__hint { font-weight: 400; color: var(--ink-3); font-size: 13px; margin-left: 4px; }
.req { font-family: var(--mono); font-weight: 500; font-size: 11.5px; color: var(--ember-deep); margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius);
  font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 160px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(228, 87, 14, .18); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field__error { color: #b3261e; font-size: 13.5px; margin-top: 6px; min-height: 0; }
.field__error:empty { display: none; }
.field__count { text-align: right; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choice span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--card); font-size: 14.5px; transition: all .15s; }
.choice input:checked + span { background: var(--ember); color: var(--ember-ink); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.consent input { accent-color: var(--ember); width: 18px; height: 18px; margin: 3px 0 0; flex: none; }
.form__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form__note { font-size: 13.5px; color: var(--ink-3); max-width: 420px; }
.result { grid-column: 1 / -1; padding: clamp(24px, 4vw, 40px); background: var(--card); border: 1px solid var(--ink); border-radius: 6px; }
.result:focus { outline: none; }
.result__title { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 18px; }
.result__text { white-space: pre-wrap; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; background: var(--paper); padding: 18px; border: 1px solid var(--line); border-radius: 4px; max-height: 360px; overflow: auto; margin: 0; }
.result__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.result__hint { margin-top: 10px; font-size: 14px; color: var(--ok); min-height: 1.4em; }

/* ---------- 화면 조각 (fx) ---------- */
.fx { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); font-size: 13.5px; line-height: 1.5; color: var(--ink); text-align: left; }
.night-stage .fx, .work-card:nth-child(4n+4) .fx { border-color: var(--night-line); }

.fx-ops__head { display: flex; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 700; }
.fx-ops__head .fx-mono { font-weight: 400; font-size: 11.5px; color: var(--ink-3); }
.fx-ops__list li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; grid-template-areas: "dot name time" "dot step time"; column-gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.fx-ops__list .dot { grid-area: dot; margin-top: 6px; }
.fx-ops__list b { grid-area: name; font-size: 13.5px; }
.fx-ops__list span:nth-of-type(2) { grid-area: step; color: var(--ink-3); font-size: 12.5px; }
.fx-ops__list .fx-mono { grid-area: time; font-size: 12px; color: var(--ink-3); align-self: center; }
.fx-ops__done { padding: 10px 16px; font-size: 12.5px; color: var(--ink-2); background: var(--paper); border-radius: 0 0 6px 6px; }
.fx-ops__done .fx-mono { color: var(--ok); margin-right: 6px; }

.fx-chat { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.fx-chat__head { display: flex; align-items: center; gap: 8px; font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.fx-chat__head .fx-mono { margin-left: auto; font-weight: 400; font-size: 11px; color: var(--ink-3); }
.fx-chat__msg { padding: 9px 12px; background: var(--paper-2); border-radius: 4px; border-top-left-radius: 0; max-width: 90%; }
.fx-chat__msg--me { align-self: flex-end; background: var(--ember); color: var(--ember-ink); border-radius: 4px; border-top-right-radius: 0; }
.fx-chat__src { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--ember-deep); }
.fx-chat__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-chat__chips span { padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 12px; }

.fx-report__head { display: flex; justify-content: space-between; padding: 12px 16px; font-weight: 700; border-bottom: 1px solid var(--line); }
.fx-report__head .fx-mono { font-weight: 400; font-size: 11.5px; color: var(--ink-3); }
.fx-report__table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.fx-report__table th { text-align: left; font-weight: 500; font-family: var(--mono); font-size: 11px; color: var(--ink-3); padding: 8px 16px; background: var(--paper); }
.fx-report__table td { padding: 9px 16px; border-top: 1px solid var(--line); }
.fx-report__table td:nth-child(2), .fx-report__table td:nth-child(3), .fx-report__table th:nth-child(2), .fx-report__table th:nth-child(3) { text-align: right; }
.fx-report__alert { margin: 0; padding: 10px 16px; background: var(--warn-soft); color: var(--warn); font-size: 12.5px; border-radius: 0 0 6px 6px; }

.fx-site { overflow: hidden; }
.fx-site__nav { display: flex; align-items: center; gap: 12px; white-space: nowrap; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.fx-site__nav b { font-family: var(--mono); color: var(--ink); letter-spacing: .06em; margin-right: auto; font-size: 12px; }
.fx-site__btn { background: var(--ember); color: var(--ember-ink); padding: 3px 10px; border-radius: 2px; }
.fx-site__body { padding: 14px; }
.fx-site__filter { display: flex; gap: 6px; margin-bottom: 12px; }
.fx-site__filter span { padding: 2px 10px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 11.5px; }
.fx-site__filter .is-on { background: var(--ember); color: var(--ember-ink); border-color: var(--ink); }
.fx-site__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fx-site__grid div { display: flex; flex-direction: column; gap: 2px; }
.fx-site__grid i { display: block; aspect-ratio: 1; border-radius: 2px; background: linear-gradient(135deg, #cfc7b6, #e9e3d6); position: relative; margin-bottom: 4px; }
.fx-site__grid i::after { content: ""; position: absolute; inset: 30% 22%; border-radius: 2px; background: linear-gradient(90deg, #8d8577, #c9c1b2 45%, #8d8577); }
.fx-site__grid div:nth-child(2) i::after { inset: 24% 26%; border-radius: 50%; }
.fx-site__grid div:nth-child(3) i::after { inset: 36% 18% 28%; clip-path: polygon(0 0, 100% 0, 100% 100%, 70% 100%, 70% 30%, 0 30%); }
.fx-site__grid b { font-size: 11.5px; line-height: 1.35; }
.fx-site__grid .fx-mono { font-size: 10.5px; color: var(--ink-3); }

.fx-auth { padding: 16px; }
.fx-auth__title { font-weight: 700; margin-bottom: 10px; }
.fx-auth__list li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name action" "time action"; padding: 10px 0; border-top: 1px solid var(--line); }
.fx-auth__list b { grid-area: name; }
.fx-auth__list span:not(.pill) { grid-area: time; color: var(--ink-3); font-size: 12px; }
.fx-auth__list .pill, .fx-auth__list button { grid-area: action; align-self: center; }
.fx-auth__list button { border: 1px solid var(--line-2); background: var(--card); border-radius: 2px; padding: 3px 10px; font-size: 12px; }
.fx-auth__note { margin-top: 8px; font-size: 11px; color: var(--ember-deep); }

.fx-steps { padding: 16px; }
.fx-steps__bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 14px; }
.fx-steps__bar li { font-size: 11px; padding-top: 8px; border-top: 3px solid var(--line); color: var(--ink-3); }
.fx-steps__bar .is-done { border-color: var(--ink); color: var(--ink-2); }
.fx-steps__bar .is-on { border-color: var(--ember); color: var(--ink); font-weight: 700; }
.fx-steps__rows p { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.fx-steps__rows p:nth-child(2) .fx-mono, .fx-steps__rows p:nth-child(3) .fx-mono { color: var(--ember-deep); }
.fx-steps__total { font-weight: 700; font-size: 14px !important; border-bottom: 0 !important; }
.fx-steps__left { margin-top: 10px; font-size: 12px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }

.fx-blog { padding: 14px; }
.fx-blog__search { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--ink); border-radius: 3px; }
.fx-blog__search .fx-mono { font-size: 11px; color: var(--ink-3); }
.fx-blog__count { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }
.fx-blog__list li { padding: 10px 2px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.fx-blog__list b { font-weight: 600; }
.fx-blog__list span { font-size: 11.5px; color: var(--ink-3); }
.fx-blog mark { background: var(--ember-soft); color: inherit; padding: 0 2px; }

/* ---------- 나타나기 효과 ---------- */
@media (prefers-reduced-motion: no-preference) {
}

@media (max-width: 420px) {
  .fx-site__nav span:not(.fx-site__btn) { display: none; }
}

/* 한글이 들어가는 작은 제목은 모노 글꼴의 넓은 띄어쓰기를 피해서 본문 글꼴로 */
.case__block h2, .service__cols h3, .contact__label, .diag__tasks legend, .site-footer__heading,
.hero__facts dt, .work-card__meta, .package__period, .diag__tag, .spec span, .case__pager span,
.fx-ops__head .fx-mono, .fx-chat__head .fx-mono, .fx-report__head .fx-mono, .fx-blog__search .fx-mono, .fx-chat__src,
.fx-ops__done .fx-mono, .fx-auth__note, .name-card__ko, .tags li { font-family: var(--sans); letter-spacing: 0; }
.case__block h2, .service__cols h3 { font-weight: 600; font-size: 14px; }
