/* 정적 홈페이지 기본 틀 — 토큰 · 부품 · 반응형(1180 · 1024 · 860 · 640)
   강조색 --accent 는 build 가 site.json 에서 넣는다. 면적의 5% 이하(강조 단어 · 숫자 · 버튼 하나)에만 쓴다.
   금지: 크림·베이지 바탕 · 제목 밑 장식 줄 · 색 띠 상단 바 · 그림자 카드 · 기울임 */
:root {
  --ink: #1d1e21;
  --text: #3f4249;
  --muted: #5e646b;
  --line: #e6e6ea;
  --soft: #f5f5f7;
  --night: #17181c;
  --accent: #2b50d6;
  --fs-xs: clamp(12px, 1.9vw, 14px);
  --fs-sm: clamp(14px, 1.9vw, 16px);
  --fs-md: clamp(16px, 1.9vw, 18px);
  --fs-lg: clamp(18px, 2.4vw, 21px);
  --fs-xl: clamp(21px, 2.8vw, 27px);
  --fs-2xl: clamp(26px, 3.6vw, 38px);
  --fs-h2: clamp(30px, 4.4vw, 52px);
  --fs-h1: clamp(34px, 5.2vw, 72px);
  --gut: clamp(20px, 4vw, 56px);
  --block: clamp(80px, 9vw, 136px);
  --head-gap: clamp(44px, 6vw, 84px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif; font-size: 16px; line-height: 1.65; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 800; line-height: 1.18; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
figure, dl, dd { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
em, i, cite, address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
html[lang="ko"] [data-l="en"], html[lang="en"] [data-l="ko"] { display: none !important; }
[hidden] { display: none !important; }

/* 도우미 */
.nw { white-space: nowrap; }
br.mo { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.latin { letter-spacing: .14em; text-transform: uppercase; }
.wrap { width: min(1320px, 100% - var(--gut) * 2); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff; transition: top .2s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
/* 그림: 사진은 cover(+초점 --focus), 로고·문서·화면 캡처는 contain(절대 자르지 않는다) */
.fit-cover, .fit-contain { width: 100%; height: 100%; }
.fit-cover { object-fit: cover; object-position: var(--focus, 50% 50%); }
.fit-contain { object-fit: contain; }
/* 사진 자리(시안용): 회색 판 + 무엇을 넣을지 글씨 */
.ph { position: relative; background: #e9e9ed; }
.ph::after { content: attr(data-ph); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 86%; padding: 6px 10px; border-radius: 6px; background: rgba(255, 255, 255, .88); color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.4; text-align: center; }

/* ── 상단 바: 첫 화면 위 투명 → 내리면 흰 바(가는 선 하나) ── */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 900; transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.topbar.is-solid, body.sheet-open .topbar { background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.topbar__in { width: min(1320px, 100% - var(--gut) * 2); height: 76px; margin-inline: auto; display: flex; align-items: center; gap: 24px; transition: height .4s var(--ease); }
.topbar.is-solid .topbar__in { height: 64px; }
.mark { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); transition: color .3s; }
.mark__img { height: 28px; width: auto; }
.topbar.is-solid .mark, body.sheet-open .mark { color: var(--ink); text-shadow: none; }
.nav { margin-left: auto; display: flex; gap: clamp(18px, 2.2vw, 32px); }
.nav a { position: relative; padding: 8px 0; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 10px rgba(0, 0, 0, .3); transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); opacity: 0; transition: opacity .3s; }
.nav a:hover, .nav a.is-here { color: #fff; }
.nav a.is-here::after { opacity: 1; }
.topbar.is-solid .nav a { color: var(--text); text-shadow: none; }
.topbar.is-solid .nav a:hover, .topbar.is-solid .nav a.is-here { color: var(--ink); }
.topbar__tools { display: flex; align-items: center; gap: 10px; margin-left: clamp(8px, 1.5vw, 20px); }
.mark + .topbar__tools { margin-left: auto; } /* 메뉴 없는 하위 페이지 */
.lang-seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .5); }
.lang-seg a { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; line-height: 1; color: rgba(255, 255, 255, .9); transition: background-color .3s, color .3s; }
.lang-seg a.is-on { background: #fff; color: var(--ink); }
.topbar.is-solid .lang-seg, body.sheet-open .topbar .lang-seg { border-color: var(--line); }
.topbar.is-solid .lang-seg a, body.sheet-open .topbar .lang-seg a { color: var(--muted); }
.topbar.is-solid .lang-seg a.is-on, body.sheet-open .topbar .lang-seg a.is-on { background: var(--ink); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .12); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background-color .3s, color .3s, border-color .3s; }
.chip:hover { background: #fff; color: var(--ink); }
.topbar.is-solid .chip, body.sheet-open .topbar .chip { border-color: var(--line); background: #fff; color: var(--ink); }
.chip--fill, .topbar.is-solid .chip--fill, body.sheet-open .topbar .chip--fill { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip--fill { border-color: #fff; background: #fff; color: var(--ink); }
.menu-btn { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; }
.menu-btn i { position: absolute; left: 13px; width: 18px; height: 1.6px; border-radius: 2px; background: #fff; transition: transform .35s var(--ease), top .35s var(--ease), background-color .3s; }
.menu-btn i:nth-of-type(1) { top: 17px; }
.menu-btn i:nth-of-type(2) { top: 25px; }
.topbar.is-solid .menu-btn i, body.sheet-open .menu-btn i { background: var(--ink); }
body.sheet-open .menu-btn i:nth-of-type(1) { top: 21px; transform: rotate(45deg); }
body.sheet-open .menu-btn i:nth-of-type(2) { top: 21px; transform: rotate(-45deg); }

/* 휴대폰 메뉴: 화면 전체 */
.sheet { position: fixed; inset: 0; z-index: 850; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 100px var(--gut) 36px; overflow-y: auto; background: #fff; visibility: hidden; opacity: 0; transform: translateY(-12px); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s linear .4s; }
body.sheet-open { overflow: hidden; }
body.sheet-open .sheet { visibility: visible; opacity: 1; transform: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.sheet__list li { border-bottom: 1px solid var(--line); }
.sheet__list a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; font-size: clamp(26px, 7vw, 38px); font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.sheet__no { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--accent); }
.sheet__foot { display: flex; flex-direction: column; font-size: 15px; color: var(--text); }
.sheet__foot a { display: flex; align-items: center; min-height: 40px; }
.sheet__dl { font-weight: 700; color: var(--ink); }

/* ── 첫 화면: 전체 사진 + 아래쪽 문장 + 사실 띠 ── */
.hero { position: relative; isolation: isolate; min-height: 620px; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; color: #fff; background: var(--night); }
.hero__photo { position: absolute; inset: 0; z-index: -2; }
.hero__photo img { animation: drift 26s ease-in-out infinite alternate; }
.hero__photo.ph::after { top: 30%; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12, 13, 16, .8) 0%, rgba(12, 13, 16, .4) 42%, rgba(12, 13, 16, .08) 72%, rgba(12, 13, 16, .3) 100%); }
.hero__kicker { font-size: var(--fs-sm); font-weight: 600; color: rgba(255, 255, 255, .88); }
.hero h1 { max-width: 20em; margin-top: 16px; color: #fff; font-size: var(--fs-h1); line-height: 1.16; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 7vh, 80px); margin-bottom: clamp(28px, 5vh, 52px); border-top: 1px solid rgba(255, 255, 255, .34); }
.facts li { padding: 22px 24px 0; border-left: 1px solid rgba(255, 255, 255, .2); }
.facts li:first-child { padding-left: 0; border-left: 0; }
.fig { display: flex; align-items: baseline; gap: 4px; font-size: clamp(30px, 3.4vw, 48px); font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fig small { font-size: .42em; font-weight: 600; letter-spacing: 0; }
.cap { margin-top: 12px; font-size: var(--fs-xs); line-height: 1.45; color: rgba(255, 255, 255, .8); }

/* ── 구간 공통 ── */
.block { padding-block: var(--block); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 13px; font-weight: 700; color: var(--muted); }
.eyebrow b { color: var(--accent); letter-spacing: .06em; }
.headline { font-size: var(--fs-h2); }
.headline em, .contact__h em { color: var(--accent); }
.lede { font-size: var(--fs-md); line-height: 1.7; color: var(--muted); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: var(--head-gap); }
.sec-head > .lede { justify-self: end; max-width: 470px; }

/* ── 회사 소개: 왼쪽 고정 글 + 오른쪽 2×2 사진 카드(엇갈림) ── */
.about__grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.about__lead { position: sticky; top: 120px; }
.about__lead .headline { margin-bottom: 28px; }
.about__lead .lede + .lede { margin-top: 12px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 28px; }
.card:nth-child(even) { margin-top: 84px; }
.card__pic { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; }
.card__no { display: block; margin-top: 20px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--accent); }
.card h3 { margin-top: 8px; font-size: var(--fs-lg); font-weight: 700; line-height: 1.42; letter-spacing: -.01em; }
.card p { margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); }

/* ── 하는 일: 번호 줄(번호 · 이름 · 설명 · 작은 사진) ── */
.svc-list { border-top: 1px solid var(--ink); }
.svc { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.1fr) 168px; align-items: center; gap: clamp(16px, 2.4vw, 36px); padding: 26px 0; border-bottom: 1px solid var(--line); }
.svc__no { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--accent); }
.svc__name { font-size: var(--fs-xl); font-weight: 700; line-height: 1.25; }
.svc__txt { font-size: var(--fs-sm); line-height: 1.6; color: var(--muted); }
.svc__pic { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }

/* ── 함께한 곳: 가는 선 격자 + 같은 면적 로고 ── */
.proof { background: var(--soft); }
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.logo-tile { display: flex; flex-direction: column; align-items: center; gap: 16px; min-height: 200px; padding: 28px 16px 22px; background: #fff; }
.logo-tile .fit-contain { width: var(--w, 120px); height: auto; max-width: 100%; margin-block: auto; } /* 로고는 남는 칸 가운데, 이름은 바닥에 줄 맞춤 */
.logo-tile__name { font-size: 13px; color: var(--muted); text-align: center; }
.fine { margin-top: 18px; font-size: 12px; color: #8c8c94; }

/* ── 진행 방식: 단계 줄 + 사람·장소 카드 ── */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; }
.steps::before { right: 0; background: var(--line); }
.steps::after { width: 0; background: var(--accent); transition: width 1.6s var(--ease) .2s; }
.steps.is-in::after, .steps:not(.rv)::after { width: 100%; }
.step { position: relative; padding: 36px 28px 0 0; }
.step::before { content: ""; position: absolute; left: 0; top: -5px; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px #fff; }
.step__no { display: block; font-size: clamp(40px, 4.4vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -.03em; color: #c9c9cf; }
.step h3 { margin-top: 18px; font-size: var(--fs-lg); font-weight: 700; line-height: 1.42; }
.step p { margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); }
.step p.step__who { display: inline-block; margin-top: 14px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text); }
.desks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(64px, 8vw, 112px); }
.desk { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 22px; border-radius: 18px; background: var(--soft); }
.desk__pic { aspect-ratio: 4 / 3; margin-bottom: 8px; border-radius: 12px; overflow: hidden; }
.desk p { padding-inline: 6px; font-size: var(--fs-sm); color: var(--text); }
.desk p.desk__where { font-size: var(--fs-xl); font-weight: 700; line-height: 1.25; letter-spacing: -.015em; color: var(--ink); }
.desk p.desk__fact { margin-top: auto; padding-top: 14px; border-top: 1px solid #dedee3; font-weight: 700; color: var(--ink); }

/* ── 맞지 않는 경우: 정직한 기준 3개(가는 선 목록) ── */
.misfit__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.misfit__grid .headline { margin-bottom: 24px; }
.misfit__list { border-top: 1px solid var(--ink); }
.misfit__list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.misfit__no { padding-top: 4px; font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.misfit__list h3 { font-size: var(--fs-lg); font-weight: 700; line-height: 1.42; letter-spacing: -.01em; }
.misfit__list p { margin-top: 6px; font-size: var(--fs-sm); color: var(--muted); }

/* ── 무료 소개서 ── */
.sample { background: var(--soft); }
.sample__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.sample__doc { aspect-ratio: 16 / 10; padding: clamp(16px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.sample__body .lede { margin-top: 22px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; transition: background-color .3s, color .3s, border-color .3s, opacity .3s; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; }
.btn--line { border-color: #cfcfd5; color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #fff; color: var(--ink); }
/* 시안: 메일 주소가 아직 없을 때(납품 build 는 빈 메일이면 멈춘다) — 흐리게 꺼진 버튼 대신 점선 + [메일 주소] */
.btn.is-hole { border: 1px dashed currentColor; background: transparent; cursor: default; }
.btn.is-hole svg { display: none; }
.btn.is-hole::after { content: "[메일 주소]"; font-weight: 500; opacity: .75; }
html[lang="en"] .btn.is-hole::after { content: "[Email address]"; }
.contact .btn.is-hole { color: #fff; }

/* ── 문의(맨 끝): 진한 바탕 + 연락처 표 ── */
.contact { background: var(--night); color: rgba(255, 255, 255, .86); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.contact .eyebrow { color: rgba(255, 255, 255, .6); }
.contact__h { color: #fff; font-size: var(--fs-2xl); font-weight: 700; line-height: 1.32; }
.contact__p { margin-top: 16px; font-size: var(--fs-md); color: rgba(255, 255, 255, .72); }
.contact .btns { margin-top: 36px; }
.btn[data-open-contact] ~ .btn[data-mail] { border-color: rgba(255, 255, 255, .4); background: transparent; color: #fff; } /* 서랍이 있으면 메일은 보조 버튼 */
.reach { border-top: 1px solid rgba(255, 255, 255, .32); }
.reach > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.reach dt { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .56); }
.reach dd { font-size: var(--fs-md); font-weight: 600; line-height: 1.55; color: #fff; overflow-wrap: anywhere; }
.reach a[href]:hover { color: rgba(255, 255, 255, .7); }
[data-mail-text]:empty::before { content: "—"; }

/* ── 바닥글 ── */
.foot { padding: 64px 0 32px; font-size: 14px; color: var(--muted); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.foot p { line-height: 1.75; }
.foot p.foot__name { margin-bottom: 10px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.foot p.foot__h { margin-bottom: 10px; font-size: 12px; font-weight: 700; line-height: 1.5; color: #8c8c94; }
.foot a[href]:hover { color: var(--ink); }
.foot__nav a { display: block; padding: 3px 0; }
.foot__more { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.lang-seg--foot { border-color: var(--line); }
.lang-seg--foot a { padding: 8px 12px; font-size: 13px; letter-spacing: 0; color: var(--muted); }
.lang-seg--foot a.is-on { background: var(--ink); color: #fff; }
.foot .lang-seg--foot a.is-on:hover { color: #fff; }
.foot__dl { font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.foot__base { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding: 20px 64px 0 0; border-top: 1px solid var(--line); font-size: 12px; color: #8c8c94; }
.foot--doc { padding-top: 0; }
.foot--doc .foot__base { margin-top: 0; }

/* ── 문서 페이지(개인정보 처리방침) ── */
.doc { padding: calc(64px + var(--block) * .6) 0 var(--block); }
.doc__in { max-width: 760px; }
.doc h1 { font-size: var(--fs-h2); }
.doc__lead { margin: 16px 0 40px; color: var(--muted); }
.doc section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.doc section:first-of-type { border-top: 1px solid var(--ink); }
.doc h2 { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.01em; }
.doc p, .doc li { margin-top: 8px; font-size: 15px; }
.doc ul { padding-left: 1.2em; list-style: disc; }
.doc a[href], .doc a[data-mail] { text-decoration: underline; text-underline-offset: 3px; }

/* ── 문의 서랍(선택 기능): 오른쪽 패널 · 휴대폰은 아래에서 올라오는 판 ── */
.drawer { position: fixed; inset: 0; z-index: 1000; visibility: hidden; transition: visibility 0s linear .45s; }
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer { visibility: visible; transition: none; }
.drawer__veil { position: absolute; inset: 0; background: rgba(12, 13, 16, .5); opacity: 0; transition: opacity .45s var(--ease); }
body.drawer-open .drawer__veil { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); overflow-y: auto; overscroll-behavior: contain; background: #fff; transform: translateX(100%); transition: transform .45s var(--ease); }
body.drawer-open .drawer__panel { transform: none; }
.drawer__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 10px 28px; border-bottom: 1px solid var(--line); background: #fff; }
.drawer__k { font-size: 12px; font-weight: 700; color: var(--muted); }
.drawer__x { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); }
.drawer__body { padding: 24px 28px 36px; }
.drawer__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.drawer__tab { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); }
.drawer__tab.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.drawer__title { margin-top: 26px; font-size: var(--fs-xl); }
.drawer__intro { margin-top: 8px; font-size: 15px; color: var(--muted); }
.cf { display: grid; gap: 18px; margin-top: 26px; }
.cf__field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.cf label, .cf legend { padding: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.cf .req { color: var(--accent); }
.cf input[type="text"], .cf input[type="email"], .cf select, .cf textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #d4d4da; border-radius: 10px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
.cf textarea { min-height: 132px; resize: vertical; }
.cf input:focus, .cf select:focus, .cf textarea:focus { border-color: var(--ink); }
.cf__field.is-bad input, .cf__field.is-bad select, .cf__field.is-bad textarea, .cf__field.is-bad .cf__agree { border-color: #d33a3a; box-shadow: 0 0 0 3px rgba(211, 58, 58, .12); }
.cf__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cf__chips legend { margin-bottom: 8px; }
.cf__chip { position: relative; display: inline-flex; }
.cf__chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cf__chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid #d4d4da; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text); }
.cf__chip input:checked ~ span { border-color: var(--ink); background: var(--ink); color: #fff; }
.cf__chip input:focus-visible ~ span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cf__honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf__agree { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; cursor: pointer; }
.cf__agree input { flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.cf__terms { font-size: 13px; color: var(--muted); }
.cf__terms summary { display: flex; align-items: center; min-height: 40px; font-weight: 600; cursor: pointer; }
.cf__terms ul { margin-bottom: 8px; padding-left: 1.2em; list-style: disc; }
.cf__terms li + li { margin-top: 4px; }
.cf__terms a { text-decoration: underline; text-underline-offset: 3px; }
.cf__msg p { font-size: 14px; font-weight: 600; color: #c02f2f; }
.cf__msg p[data-msg="sending"] { color: var(--muted); }
.cf__msg a[href] { text-decoration: underline; }
.cf__send { width: 100%; }
.cf__send:hover { background: var(--ink); color: #fff; }
.cf__done { margin-top: 32px; padding: 28px 0; border-top: 1px solid var(--ink); }
.cf__done h3 { font-size: var(--fs-xl); }
.cf__done p { margin: 8px 0 24px; color: var(--muted); }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 800; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: #fff; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .35s, transform .35s, visibility 0s linear .35s; }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .35s; }

/* 나타나기: JS 가 .rv 를 붙일 때만 숨긴다(JS 실패해도 글은 보인다) */
.has-js .rv { opacity: 0; }
.has-js .rv.is-in { animation: rise .9s var(--ease) var(--d, 0s) both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ── 반응형 ── */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .topbar__tools { margin-left: auto; }
  .svc { grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr) 132px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .steps::before, .steps::after { display: none; }
  .step { padding-top: 0; }
  .step::before { display: none; }
}
@media (max-width: 1024px) {
  html { scroll-padding-top: 76px; }
  .about__grid, .misfit__grid, .sample__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__lead { position: static; }
  .sample__doc { max-width: 640px; }
  .desks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__co { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .sec-head { grid-template-columns: 1fr; gap: 20px; }
  .sec-head > .lede { justify-self: start; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-tile { min-height: 150px; padding: 22px 12px 16px; }
  .logo-tile .fit-contain { width: calc(var(--w, 120px) * .8); }
  .svc { grid-template-columns: minmax(0, 1fr) 104px; grid-template-areas: "no pic" "name pic" "txt pic"; column-gap: 18px; row-gap: 6px; padding: 22px 0; }
  .svc__no { grid-area: no; }
  .svc__name { grid-area: name; }
  .svc__txt { grid-area: txt; }
  .svc__pic { grid-area: pic; align-self: center; }
  .steps { grid-template-columns: 1fr; row-gap: 0; padding-left: 28px; }
  .steps::before, .steps::after { display: block; top: 12px; bottom: 0; left: 5px; right: auto; width: 2px; height: auto; } /* 선은 첫 점 가운데(top 6 + 6)부터 — 점 위 꼬리 0 */
  .steps::after { height: 0; transition: height 1.6s var(--ease) .2s; }
  .steps.is-in::after, .steps:not(.rv)::after { width: 2px; height: calc(100% - 12px); }
  .step { padding: 0 0 36px; }
  .step:last-child { padding-bottom: 0; }
  .step::before { display: block; left: -28px; top: 6px; }
  .step__no { font-size: 40px; }
  .step h3 { margin-top: 10px; }
}
@media (max-width: 640px) {
  br.pc { display: none; }
  br.mo { display: inline; }
  .topbar__in { height: 60px; }
  .topbar.is-solid .topbar__in { height: 58px; }
  .mark { font-size: 18px; }
  .chip { display: none; }
  .lang-seg a { min-height: 40px; min-width: 40px; justify-content: center; padding: 0 11px; }
  .hero { min-height: 600px; }
  .hero h1 { font-size: clamp(30px, 8.4vw, 40px); line-height: 1.24; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 36px; }
  .facts li { padding: 16px 12px 16px 16px; } /* 오른쪽 12: 글이 세로선에 닿지 않게 */
  .facts li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .2); }
  .fig { font-size: 30px; }
  .cards { grid-template-columns: 1fr; gap: 40px; }
  .card:nth-child(even) { margin-top: 0; }
  .card__pic { aspect-ratio: 16 / 9; }
  .desks, .foot__grid { grid-template-columns: 1fr; }
  .reach > div { grid-template-columns: 1fr; gap: 4px; }
  .reach a, .foot__co a { display: inline-flex; align-items: center; min-height: 40px; }
  .desk__pic { aspect-ratio: 16 / 9; }
  .btns .btn, .contact .btn { width: 100%; }
  .foot { padding-top: 56px; }
  .foot__grid { gap: 32px; }
  .foot__nav a, .foot__dl { display: flex; align-items: center; min-height: 40px; padding: 0; }
  .foot__dl { display: inline-flex; }
  .lang-seg--foot a { min-height: 40px; }
  .foot__base { flex-direction: column-reverse; padding-right: 0; }
  .foot__base a { display: inline-flex; align-items: center; min-height: 40px; }
  .doc li a { display: inline-flex; align-items: center; min-height: 40px; } /* 처리방침 메일·전화 누르는 높이 */
  .drawer__panel { top: auto; left: 0; width: 100%; max-height: 90vh; max-height: 90dvh; border-radius: 20px 20px 0 0; transform: translateY(100%); }
  .drawer__head { padding-left: 20px; }
  .drawer__body { padding: 20px 20px 28px; }
  /* 휴대폰 글씨 바닥: 보조 문구 14px / 1.6 */
  .cap, .card p, .svc__txt, .step p, .desk p, .misfit__list p, .logo-tile__name, .contact__p { font-size: 14px; line-height: 1.6; }
  .fine, .foot__base, .reach dt { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__photo img { animation: none; }
  .has-js .rv { opacity: 1; }
  .has-js .rv.is-in { animation: none; }
  .steps::after, .topbar, .topbar__in, .sheet, .drawer, .drawer__veil, .drawer__panel { transition: none; }
}
