/* 서체 SUIT Variable — 자체 호스팅 부분 서체(굵기 400~600 · 쓰는 글자만 · 만드는 법 tools/subset_font.py · SUIT = SIL OFL 1.1) · font-display: swap */
@font-face { font-family: 'SUIT Variable'; font-weight: 400 600; font-display: swap; src: url('fonts/SUIT-Variable-subset.woff2') format('woff2'); }
/* tokens:start — tools/build_tokens.py 가 onmaru-brand/02_가이드/tokens.json 에서 만든다. 손으로 고치지 않는다 */
:root {
  --ink: #000000;
  --ink-mute: rgba(0, 0, 0, 0.4);
  --ink-soft: rgba(0, 0, 0, 0.64);
  --paper: #ffffff;
  --badge: rgb(242, 242, 242);
  --accent: #b5622a;
  --accent-soft: rgba(181, 98, 42, 0.12);
  --accent-ink: #7a4119;
  --accent-text: #a4551f; /* 작은 글씨용 — 흰 · 연한 바탕에서 4.5:1 이상 */
  --tint-1: #F7F1E8;
  --tint-2: #EEF2E9;
  --tint-3: #EAF1F5;
  --tint-1-hover: #F2E4CF;
  --tint-2-hover: #DFE9D3;
  --tint-3-hover: #D3E4EE;
  --sans: "SUIT Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --fs-display-home: 52px; --lh-display-home: 1.22; --fw-display-home: 400; --fs-display-home-phone: 34px;
  --fs-display: 44px; --lh-display: 1.25; --fw-display: 400; --fs-display-phone: 30px;
  --fs-section: 32px; --lh-section: 1.3; --fw-section: 400; --fs-section-phone: 24px;
  --fs-title: 18px; --lh-title: 1.5; --fw-title: 600;
  --fs-title-lg: 24px; --lh-title-lg: 1.35; --fw-title-lg: 600;
  --fs-numeral: 28px; --lh-numeral: 1.2; --fw-numeral: 400;
  --fs-body: 16px; --lh-body: 1.5; --fw-body: 400;
  --fs-aux: 14px; --lh-aux: 1.5; --fw-aux: 400;
  --fs-caption: 13px; --lh-caption: 1.4; --fw-caption: 400;
  --space-gutter: 24px;
  --space-wrap: 1328px;
  --space-section: 120px; --space-section-phone: 72px;
  --space-head-gap: 24px;
  --space-column-gap: 48px;
  --space-card-pad: 32px; --space-card-pad-phone: 20px;
  --space-hero-gap: 16px;
  --radius-pill: 999px;
  --radius-card: 16px;
  --radius-photo: 24px;
  --shadow-none: none;
  --shadow-float: 0 0 14px rgba(13, 32, 47, 0.04);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-hover: 0.25s;
  --dur-rise: 0.5s;
  --move-rise-distance: 10px;
}
/* tokens:end */

/* ── 기본 ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: var(--fs-body); line-height: var(--lh-body);
  word-break: keep-all; overflow-wrap: break-word; /* 한글이 단어 중간에서 끊기지 않게 */
}
h1, h2, h3, p, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--space-wrap); margin: 0 auto; padding: 0 var(--space-gutter); }

.ink-mute { color: var(--ink-mute); }
.ink-soft { color: var(--ink-soft); }
.accent { color: var(--accent); }

.display-home { font-size: var(--fs-display-home); line-height: var(--lh-display-home); font-weight: var(--fw-display-home); letter-spacing: -0.02em; }
.display { font-size: var(--fs-display); line-height: var(--lh-display); font-weight: var(--fw-display); letter-spacing: -0.02em; }
.section { font-size: var(--fs-section); line-height: var(--lh-section); font-weight: var(--fw-section); }
.title { font-size: var(--fs-title); line-height: var(--lh-title); font-weight: var(--fw-title); }
.title-lg { font-size: var(--fs-title-lg); line-height: var(--lh-title-lg); font-weight: var(--fw-title-lg); }
.body { font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--fw-body); }
.aux { font-size: var(--fs-aux); line-height: var(--lh-aux); font-weight: var(--fw-aux); color: var(--ink-soft); }
.caption { font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: var(--fw-caption); color: var(--ink-soft); }

/* ── 부품 · 배지 · 버튼 ───────────────────────────── */
.badge {
  display: inline-block; background: var(--badge); color: var(--ink);
  border-radius: var(--radius-pill); padding: 10px 16px; font-size: var(--fs-body);
}
.pill {
  display: inline-block; border-radius: var(--radius-pill); padding: 16px 20px;
  font-size: var(--fs-body); transition: opacity var(--dur-hover) var(--ease-out);
}
.pill-ink { background: var(--ink); color: var(--paper); }
.pill-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pill:hover { opacity: .72; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: var(--space-hero-gap); }

.card-link { display: inline-block; margin-top: 12px; font-size: var(--fs-aux); }
.card-link:hover { color: var(--accent); }
.card-link-arrow::after { content: " →"; display: inline-block; transition: transform var(--dur-hover) var(--ease-out); }
.card-link-arrow:hover::after { transform: translateX(3px); }

/* ── 머리·꼬리 ─────────────────────────────────────── */
.site-header { position: relative; }
.site-header-row { display: flex; align-items: center; justify-content: space-between; padding: 24px var(--space-gutter); }
.wordmark { font-size: var(--fs-title); font-weight: 600; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 10px; }
.wordmark-mk { height: 28px; width: auto; display: block; }
.site-nav { display: flex; gap: 32px; }
.site-nav a { font-size: var(--fs-aux); color: var(--ink-soft); transition: color var(--dur-hover) var(--ease-out); }
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-nav .nav-mail { display: none; }

/* 폰 메뉴 — 스크립트 없이 체크박스로 */
.nav-toggle { display: none; position: relative; width: 32px; height: 32px; flex: none; }
.nav-toggle-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; z-index: 2; }
.nav-toggle-btn { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 5px; pointer-events: none; }
.nav-toggle-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-toggle-input:focus-visible ~ .nav-toggle-btn { outline: 2px solid var(--accent); outline-offset: 4px; }

.site-footer { border-top: 1px solid var(--badge); margin-top: var(--space-section); }
.site-footer-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; padding: 40px var(--space-gutter); }
.site-footer-info p { font-size: var(--fs-caption); color: var(--ink-soft); margin: 4px 0; }
.site-footer-links a { font-size: var(--fs-caption); color: var(--ink-soft); }
.site-footer-links a:hover { color: var(--ink); }

/* ── 첫화면-분할 ──────────────────────────────────── */
.hero-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-column-gap);
  align-items: start; padding: 64px var(--space-gutter) 0;
}
.hero-split-text > * + * { margin-top: var(--space-hero-gap); }
.hero-split-text .badge { margin-bottom: 8px; }
.hero-split-photo {
  aspect-ratio: 1.2; border-radius: var(--radius-photo); background: var(--badge); overflow: hidden;
}
.hero-split-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── 절 구분 — 선을 긋지 않는다(10회차, 2026-09-22 지적: 히어로 바로 아래처럼 이미 구분되는 자리까지 선이 붙어 군더더기였다). 위쪽 여백(120px) + 새 제목만으로 구분한다 ── */

/* ── 세카드 ───────────────────────────────────────── */
.three-card { padding: var(--space-section) var(--space-gutter) 0; }
.three-card .section { margin-bottom: var(--space-head-gap); }
.card-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card { display: flex; flex-direction: column; }
.card > * + * { margin-top: 10px; }
.card .card-link { margin-top: auto; padding-top: 12px; }

/* 테두리 카드 — 파스텔(가장 중요한 세 가지)이 아닌, 4개 이상의 보조 근거를 묶어 보일 때(13회차, 2026-09-22) */
.card-outline { border: 1px solid var(--badge); border-radius: var(--radius-card); padding: var(--space-card-pad); }

/* 인용문(핵심 문장 강조) — 7회차: 중요한 문장이 본문에 묻힌다는 지적(2026-09-22), Ditto·Dropbox 참고 */
.pullquote { max-width: 680px; margin: 48px auto 0; text-align: center; }
.pullquote::before { content: "“"; display: block; font-size: 40px; line-height: 1; color: var(--accent); margin-bottom: 4px; }
.pullquote p { font-size: var(--fs-title-lg); line-height: var(--lh-title-lg); font-weight: var(--fw-title-lg); color: var(--ink); }

/* 소제목 자리(lede) — 절 제목 바로 아래, 결론을 먼저 말할 때(8회차, v2 비교 · 2026-09-22) */
.pullquote-lede { max-width: none; margin: 14px 0 0; text-align: left; padding-left: 14px; text-indent: -14px; } /* 내어쓰기 — 여는 따옴표(≈13.6px) 만큼, 둘째 줄부터 첫 글자에 맞춘다 */
.pullquote-lede::before { content: "“"; display: inline; font-size: 26px; color: var(--accent); margin-right: 3px; }
.pullquote-lede::after { content: "\2060”"; display: inline; font-size: 26px; color: var(--accent); margin-left: 3px; }
.pullquote-lede p { display: inline; font-size: var(--fs-title); line-height: var(--lh-title); font-weight: 500; color: var(--ink-soft); }

/* 파스텔 세카드 — 3회차: 홈 "온마루가 하는 일"(Complex Law 참고, 2026-09-22) */
.card-tint-1, .card-tint-2, .card-tint-3 {
  border-top: none; border: 1px solid transparent; border-radius: var(--radius-card); padding: var(--space-card-pad);
  transition: background-color var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out);
}
.card-tint-1 { background-color: var(--tint-1); }
.card-tint-2 { background-color: var(--tint-2); }
.card-tint-3 { background-color: var(--tint-3); }
/* 호버 — 색만 짙어지고 테두리만 나타난다. 이동·그림자 확대는 쓰지 않는다(16회차, 가이드 §5) */
.card-tint-1:hover { background-color: var(--tint-1-hover); border-color: var(--accent); }
.card-tint-2:hover { background-color: var(--tint-2-hover); border-color: var(--accent); }
.card-tint-3:hover { background-color: var(--tint-3-hover); border-color: var(--accent); }

/* ── 번호단계 ─────────────────────────────────────── */
.step-band { padding: var(--space-section) var(--space-gutter) 0; }
.step-band .section { max-width: 640px; }
.step-band > .body { margin-top: var(--space-hero-gap); max-width: 640px; }
.step-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: var(--space-head-gap) 0 24px; }
.step { padding-top: 20px; border-top: 1px solid var(--badge); }
.step > * + * { margin-top: 8px; }

/* 담백한 글줄 — 홈 "제안하는 방식을"(4회차, Craft Agency 참고, 2026-09-22) */
.process-rows { margin-top: var(--space-head-gap); }
.process-row {
  display: grid; grid-template-columns: 72px 1fr; gap: 24px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--badge);
}
.process-num { font-size: var(--fs-numeral); line-height: 1; font-weight: 400; color: var(--accent); }
.process-row .title { margin-bottom: 6px; }

/* ── 끝카드 ───────────────────────────────────────── */
.closing-card {
  display: grid; grid-template-columns: 1fr minmax(320px, 560px) 1fr; align-items: center; gap: 24px;
  padding: var(--space-section) var(--space-gutter) 0; text-align: center;
}
.closing-body > * + * { margin-top: var(--space-hero-gap); }
.closing-body .btn-row { justify-content: center; }
.closing-photo { aspect-ratio: 3 / 4; border-radius: var(--radius-photo); background: var(--badge); opacity: .75; overflow: hidden; }
.closing-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── 안쪽 페이지 부품 ─────────────────────────────── */
.eyebrow { font-size: var(--fs-caption); color: var(--accent-text); font-weight: 500; letter-spacing: .02em; margin-bottom: 4px; }
.hero-simple { padding: 64px var(--space-gutter) 0; }
.hero-simple > * + * { margin-top: var(--space-hero-gap); }

.tag-list { list-style: none; margin: 12px 0 0; padding: 0; }
.tag-list li { font-size: var(--fs-aux); color: var(--ink-soft); padding: 7px 0 7px 16px; position: relative; }
.tag-list li::before { content: ""; position: absolute; left: 0; top: 15px; width: 5px; height: 5px; border-radius: 999px; background: var(--accent); }

/* 체크 아이콘 목록 — 패키지 카드(5회차, Speakeasy·1Password 참고, 2026-09-22) */
.tag-list-check { list-style: none; margin: 16px 0 0; padding: 0; }
.tag-list-check li { font-size: var(--fs-aux); color: var(--ink-soft); padding: 5px 0 5px 22px; position: relative; }
.tag-list-check li::before { content: "✓"; position: absolute; left: 0; top: 5px; color: var(--accent); font-size: 13px; font-weight: 600; }

/* 마커 없는 목록 — 만드는 것(5회차, Analogue Agency 참고) */
.tag-list-plain { list-style: none; margin: 12px 0 0; padding: 0; }
.tag-list-plain li { font-size: var(--fs-aux); color: var(--ink-soft); padding: 8px 0; border-top: 1px solid var(--badge); }
.tag-list-plain li:first-child { border-top: none; }

/* 세로 구분선 칸 — 만드는 것(5회차) */
.capability-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: var(--space-head-gap); }
.capability-col { padding: 0 32px; }
.capability-col:first-child { padding-left: 0; }
.capability-col:last-child { padding-right: 0; }
.capability-col:not(:last-child) { border-right: 1px solid var(--badge); }

.card-row-4 { grid-template-columns: repeat(4, 1fr); }
.card-row-2 { grid-template-columns: repeat(2, 1fr); }

/* 번호 원형 마커 + 세로 연결선 — 진행 절차처럼 흐름을 보이는 목록(보완 1회차 #4) */
.numbered-list { list-style: none; counter-reset: step; margin: 20px 0 0; padding: 0; position: relative; }
.numbered-list::before {
  content: ""; position: absolute; left: 12px; top: 13px; bottom: 13px; width: 1px; background: rgba(0, 0, 0, .13);
}
.numbered-list li {
  position: relative; padding-left: 40px; margin-top: 18px; counter-increment: step;
  font-size: var(--fs-aux); color: var(--ink-soft);
}
.numbered-list li:first-child { margin-top: 0; }
.numbered-list li::marker { content: none; }
.numbered-list li::before {
  content: counter(step); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; z-index: 1;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink);
  font-size: var(--fs-caption); font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.numbered-list-lg li { font-size: var(--fs-body); color: var(--ink); margin-top: 16px; }
.numbered-list-lg strong { font-weight: 600; }

/* 번호단계 — 원형 배지(교육과정 등 카드형 단계) */
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink);
  font-size: var(--fs-aux); font-weight: 600; margin-bottom: 8px;
}

/* 화살표로 잇는 작은 흐름(칩) — 요약용 시퀀스(보완 1회차 #2) */
.chip-steps { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; list-style: none; margin: 10px 0 0; padding: 0; }
.chip-steps li { background: var(--paper); box-shadow: inset 0 0 0 1px var(--badge); border-radius: 999px; padding: 6px 14px; font-size: var(--fs-caption); }
.chip-steps li:not(:last-child)::after { content: "→"; margin-left: 10px; color: var(--ink-mute); }

.step-row-4 { grid-template-columns: repeat(4, 1fr); }
.step-row-5 { grid-template-columns: repeat(5, 1fr); }

/* 패키지 카드 */
.packages { padding: var(--space-section) var(--space-gutter) 0; }
.package-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: var(--space-head-gap); }
.package-card { border: 1px solid var(--badge); border-radius: var(--radius-card); padding: var(--space-card-pad); }
.package-price { font-size: var(--fs-numeral); line-height: var(--lh-numeral); font-weight: var(--fw-numeral); margin: 4px 0 8px; }

/* 나눔카드(A·B) */
.split-two { padding: var(--space-section) var(--space-gutter) 0; }
.split-two-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-column-gap); margin-top: var(--space-head-gap); }
.split-two-row:first-child { margin-top: 0; } /* 절 제목 없이 바로 오면(문의하기) head-gap 을 더하지 않는다 — 11회차, 히어로→콘텐츠 간격이 다른 페이지보다 24px 더 컸다 */
.split-card { border: 1px solid var(--badge); border-radius: var(--radius-card); padding: var(--space-card-pad); }
.split-card .title-lg { margin-top: 10px; }
.split-card .aux { margin-top: 8px; }
/* 12회차(2026-09-22) — split-card 안에 spacing 규칙이 없어 글이 다 붙어 있었다 */
.split-card > * + * { margin-top: 10px; }
.split-card .pill { margin-top: 20px; }
.contact-value { display: block; font-size: var(--fs-title-lg); font-weight: 600; transition: color var(--dur-hover) var(--ease-out); }
.contact-value:hover { color: var(--accent); }
/* 옵션 이름표 — 6회차: 제목·본문 구분이 안 된다는 지적(2026-09-22). 작은 원 대신 뚜렷한 알약 배지 */
.split-tag {
  display: inline-block; background: var(--accent-soft); color: var(--accent-ink);
  border-radius: 999px; padding: 5px 14px; font-size: var(--fs-caption); font-weight: 600;
}
/* 통계 카드 — 키·값을 칸으로 나눈다(보완 1회차 #7: 「성의없는 텍스트 · 크기 언밸런스」) */
.kv-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; margin-top: 24px;
  padding-top: 24px; border-top: 1px solid var(--badge);
}
.kv-list > div { display: flex; flex-direction: column; gap: 6px; }
.kv-list dt { font-size: var(--fs-caption); color: var(--ink-mute); }
.kv-list dd { margin: 0; font-size: var(--fs-title); font-weight: 600; line-height: 1.3; }
.kv-list-row { grid-template-columns: repeat(4, 1fr); }

.info-card { padding: var(--space-section) var(--space-gutter) 0; }
.info-card .kv-list { max-width: 760px; }

/* 대표 숫자 하나를 크게, 나머지는 작게 — 8회차(2026-09-22, v2 비교 지적: 4칸이 전부 같은 무게라 목록처럼 보임) */
.price-lead { display: flex; align-items: baseline; gap: 10px; margin-top: var(--space-head-gap); }
.price-lead-label { font-size: var(--fs-body); color: var(--ink-mute); }
.price-lead-num { font-size: var(--fs-display); line-height: var(--lh-display); font-weight: var(--fw-display); letter-spacing: -0.02em; color: var(--ink); }
.kv-list-minor { grid-template-columns: repeat(3, 1fr); max-width: 760px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--badge); }
.kv-list-minor dd { font-size: var(--fs-aux); font-weight: 400; }

/* FAQ */
.faq { padding: var(--space-section) var(--space-gutter) 0; }
.faq-list { margin-top: var(--space-head-gap); }
.faq-list details { border-top: 1px solid var(--badge); padding: 18px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--badge); }
.faq-list summary { cursor: pointer; font-size: var(--fs-body); font-weight: 500; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--ink-mute); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { margin-top: 10px; font-size: var(--fs-aux); color: var(--ink-soft); }

/* 컨태그 서비스 목록 */
.service-list { padding: var(--space-section) var(--space-gutter) 0; display: flex; flex-direction: column; gap: 80px; }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-column-gap); align-items: center; }
.service-row-rev .service-photo { order: 2; }
.service-photo { aspect-ratio: 1.2; }
.service-phones { display: flex; align-items: center; justify-content: center; background: var(--tint-1); perspective: 1200px; padding: 0 4%; }
.phone { flex: 0 0 31%; margin: 0 -1.5%; transform-style: preserve-3d; }
.phone-c { z-index: 2; flex-basis: 34%; }
.phone-l { transform: rotateY(-22deg); } .phone-r { transform: rotateY(22deg); }
.dev { position: relative; aspect-ratio: 71.9 / 150; container-type: inline-size; filter: drop-shadow(0 22px 28px rgba(31,32,35,.26)); }
.dev-body { position: absolute; inset: 0; box-sizing: border-box; border-radius: 16cqw; border: 1.3cqw solid transparent; background: linear-gradient(#050505, #050505) padding-box, linear-gradient(135deg, #b9b5ae, #5f5d59 22%, #d6d2cb 48%, #4c4a47 74%, #a6a29b) border-box; box-shadow: inset 0 0 0 .3cqw #1a1a1a; }
.dev-scr { position: absolute; inset: 4.4cqw; border-radius: 11.8cqw; overflow: hidden; background: #000; }
.dev-scr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dev-island { position: absolute; top: 7.2cqw; left: 50%; width: 30cqw; height: 8.8cqw; transform: translateX(-50%); border-radius: 6cqw; background: #000; }
.dev-k { position: absolute; left: -.8cqw; width: 1.1cqw; border-radius: .7cqw; background: linear-gradient(90deg, #4c4a47, #c9c5bf, #6d6a66); }
.dev-k.a { top: 17%; height: 5.5%; } .dev-k.v1 { top: 26%; height: 10%; } .dev-k.v2 { top: 38.5%; height: 10%; }
.dev-k.p { left: auto; right: -.8cqw; top: 29%; height: 15%; background: linear-gradient(90deg, #6d6a66, #c9c5bf, #4c4a47); }
.service-soon { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--tint-1); border: 1px dashed rgba(0,0,0,.18); text-align: center; }
.service-soon p { font-size: var(--fs-title-lg); font-weight: var(--fw-title-lg); color: var(--accent-ink); }
.service-soon span { font-size: var(--fs-aux); color: var(--ink-soft); }
.service-row .caption, .case-card .caption { color: var(--accent-text); font-weight: 500; letter-spacing: .02em; }
.service-row .body { margin-top: 12px; }

/* 포트폴리오 사례 */
.case-grid { padding: var(--space-section) var(--space-gutter) 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-column-gap); }
.case-card { padding-bottom: 28px; border-bottom: 1px solid var(--badge); }
.case-card > * + * { margin-top: 8px; }
.case-photo { aspect-ratio: 1.4; margin-bottom: 4px; }

/* 문의하기 체크리스트 */
.checklist { padding: var(--space-section) var(--space-gutter) 0; }
.checklist > .caption { display: block; margin-top: 28px; }

/* 개인정보처리방침 */
.legal { padding: var(--space-section) var(--space-gutter) 0; max-width: 760px; }
.legal h2 { margin-top: 40px; margin-bottom: 8px; }
.legal p, .legal ul { margin-top: 8px; }
.legal > *:first-child { margin-top: 0; } /* 11회차 — 첫 문단까지 8px 가 더해져 히어로→본문 간격이 다른 페이지(120px)보다 128px 로 컸다 */
.legal .tag-list li { padding: 2px 0 2px 16px; }
.legal .tag-list li::before { top: 10px; }

/* ── 폰 · 좁은 태블릿(≤760px) — 전체 화면 메뉴(2026-10-08) ─────────────
   메뉴 4개가 한 줄에 안 들어가는 폭부터 햄버거로 접고, 열면 화면을 채운다.
   열린 동안 머리 줄은 위에 고정하고(그 아래 쪽은 가려진다), 뒤 페이지는 스크롤하지 않는다. */
@media (max-width: 760px) {
  .nav-toggle { display: block; order: 2; }
  .wordmark { order: 1; }
  .site-header-row .pill { order: 3; padding: 12px 16px; font-size: var(--fs-aux); }
  .site-nav {
    display: none; position: fixed; inset: 0; z-index: 20;
    flex-direction: column; gap: 0; background: var(--paper);
    padding: 112px var(--space-gutter) max(32px, env(safe-area-inset-bottom)); overflow-y: auto;
  }
  .site-nav a {
    padding: 20px 0; font-size: var(--fs-title-lg); line-height: var(--lh-title-lg); font-weight: var(--fw-title-lg);
    letter-spacing: -0.01em; border-top: 1px solid var(--badge);
  }
  .site-nav a:first-child { border-top: none; }
  .site-nav .nav-mail {
    display: block; margin-top: auto; padding: 24px 0 0; border-top: none;
    font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: 400; color: var(--ink-soft);
  }
  .site-header-row:has(.nav-toggle-input:checked) { position: fixed; top: 0; left: 0; right: 0; z-index: 30; background: var(--paper); }
  .site-header-row:has(.nav-toggle-input:checked) .site-nav { display: flex; }
  body:has(.nav-toggle-input:checked) { overflow: hidden; }
  .wordmark, .nav-toggle, .site-header-row .pill { position: relative; z-index: 25; } /* 열린 메뉴 배경(z 20) 위에 머리 줄이 보이게 */
  .nav-toggle-btn span { transition: transform var(--dur-hover) var(--ease-out), opacity var(--dur-hover) var(--ease-out); }
  .nav-toggle-input:checked ~ .nav-toggle-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle-input:checked ~ .nav-toggle-btn span:nth-child(2) { opacity: 0; }
  .nav-toggle-input:checked ~ .nav-toggle-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── 폰(≤600px) ───────────────────────────────────── */
@media (max-width: 600px) {
  .display-home { font-size: var(--fs-display-home-phone); }
  .display { font-size: var(--fs-display-phone); }
  .section { font-size: var(--fs-section-phone); }
  .hero-split { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-split-photo { aspect-ratio: 4 / 3; } /* 문구를 먼저 읽게 한다 — DOM 순서 그대로(사진에 order:-1 쓰지 않는다) */
  .card-row, .card-row-2, .card-row-4, .step-row, .step-row-4, .step-row-5 { grid-template-columns: 1fr; gap: 24px; }
  .capability-row { grid-template-columns: 1fr; gap: 24px; }
  .capability-col { padding: 0 !important; border-right: none !important; }
  .closing-card { grid-template-columns: 1fr; }
  .closing-photo { display: none; }
  .package-row { grid-template-columns: 1fr; }
  .split-two-row { grid-template-columns: 1fr; }
  .kv-list-row { grid-template-columns: 1fr 1fr; }
  .kv-list-minor { grid-template-columns: 1fr; }
  .price-lead-num { font-size: var(--fs-display-phone); }
  .service-row { grid-template-columns: 1fr; }
  .service-row-rev .service-photo { order: 0; }
  .case-grid { grid-template-columns: 1fr; }
}

/* ── 움직임 — html.motion 아래에서만(가이드 §5) ───────────── */
html.motion [data-motion="rise"],
html.motion [data-motion="stagger"] > * {
  opacity: 0; translate: 0 var(--move-rise-distance);
  transition: opacity var(--dur-rise) var(--ease-out), translate var(--dur-rise) var(--ease-out);
}
html.motion [data-motion="stagger"] > * { transition-delay: calc(var(--i, 0) * 50ms); }
html.motion [data-motion].in,
html.motion [data-motion="stagger"].in > * { opacity: 1; translate: 0 0; }
html.motion [data-motion].at-once,
html.motion [data-motion="stagger"].at-once > * { transition: none; }

