/* =========================================================
   주혜림 회계사 — main.css
   컬러·타이포 토큰은 the3key.com 테마에서 추출해 한글 환경에 맞게 조정.
   ========================================================= */

:root {
	/* 컬러 */
	--ink: #082620;          /* 딥그린 — 메인 */
	--ink-2: #213c36;        /* hover */
	--cream: #fef9f2;        /* 크림 — 연한 면 */
	--sand: #f3ebdd;         /* 진크림 — 강조 면, 다크 위 강조 글자 */
	--white: #ffffff;
	--muted: #83928f;
	--line: #ced4d2;

	/* 타이포 */
	--font-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", sans-serif;
	--font-display: var(--font-body); /* 제목도 Pretendard — 두께로만 위계를 나눈다 */
	--font-hand: "Nanum Pen Script", cursive;

	/* 레이아웃 */
	--wrap: 1200px;
	--wrap-narrow: 760px;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--section-y: clamp(4rem, 9vw, 7.5rem);
	--radius: 14px;
	--radius-lg: 24px;
	--header-h: 76px;
}

/* ---------- 리셋 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.75;
	color: var(--ink);
	background: var(--white);
	word-break: keep-all;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 { line-height: 1.3; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link:focus {
	position: fixed; top: 1rem; left: 1rem; z-index: 999;
	width: auto; height: auto; clip: auto;
	padding: .75rem 1.25rem; background: var(--ink); color: var(--white); border-radius: 8px;
}

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- 레이아웃 ---------- */
.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { width: min(var(--wrap-narrow), 100%); }

.section { padding-block: var(--section-y); }
.section--cream { background: var(--cream); }
.section--dark { background: var(--ink); color: var(--white); }
.section--center { text-align: center; }
.mt-lg { margin-top: 2rem; }

.section__head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--split {
	display: grid; gap: 1.5rem; max-width: none;
	grid-template-columns: 1fr; align-items: end;
}
@media (min-width: 860px) {
	.section__head--split { grid-template-columns: 1.2fr 1fr; gap: 3rem; }
}

.section__title { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
.section__lead { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; }
.section--dark .section__lead { color: rgba(255, 255, 255, .72); }

.kicker {
	font-family: var(--font-display);
	font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
	color: var(--ink); margin-bottom: .75rem;
}
.section--dark .kicker, .kicker--light { color: var(--sand); }

/* 한글은 넓은 자간이 오히려 흩어져 보인다 */
.kicker--ko { letter-spacing: .02em; text-transform: none; font-weight: 700; }

.empty { color: var(--muted); }

/* ---------- 버튼 ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .85rem 1.6rem;
	border: 1px solid transparent; border-radius: 999px;
	font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: .6rem 1.15rem; font-size: .875rem; }
.btn--block { display: flex; width: 100%; }

.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--ink-2); }

.btn--accent { background: var(--sand); color: var(--ink); }
.btn--accent:hover { background: var(--white); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }

.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .45); }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); }

.link-arrow {
	display: inline-flex; align-items: center; gap: .4rem;
	font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px;
}
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 헤더 (the3key: 메가메뉴 + 열리면 화면 어둡게) ---------- */
.site-header { position: relative; z-index: 100; background: var(--white); }
.site-header__inner {
	position: relative; display: flex; align-items: center; gap: 1.5rem;
	min-height: var(--header-h); transition: background-color .2s ease, border-radius .2s ease;
}
.site-logo, .custom-logo-link {
	font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1; letter-spacing: -0.04em;
	text-decoration: none; white-space: nowrap; color: inherit;
}

.site-nav { margin-inline-start: clamp(1rem, 4vw, 3.5rem); }
.site-nav__list { display: flex; gap: clamp(1rem, 2.6vw, 2.5rem); }
.site-nav__list > li > a {
	display: block; padding: .5rem 0; font-size: 1rem; font-weight: 500;
	text-decoration: none; color: inherit; transition: color .18s ease;
}
.site-header__actions { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; }

/* 메가 패널이 열리면: 다른 메뉴는 흐리게, 헤더는 둥근 흰 막대, 뒤 화면은 어둡게 */
.site-header:has(.menu-item--mega:hover, .menu-item--mega:focus-within)::after {
	content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(8, 38, 32, .14);
}
.site-header:has(.menu-item--mega:hover, .menu-item--mega:focus-within) .site-header__inner {
	background: var(--white); border-radius: 0 0 8px 8px;
}
.site-nav__list:has(.menu-item--mega:hover, .menu-item--mega:focus-within) > li > a { color: #8a9693; }
.site-nav__list > .menu-item--mega:hover > a,
.site-nav__list > .menu-item--mega:focus-within > a { color: var(--ink); }

.mega {
	position: absolute; top: calc(100% + 8px); left: 0; right: 0;
	display: grid; grid-template-columns: 1fr 300px; gap: 2rem; padding: 2rem;
	background: var(--white); color: var(--ink); border-radius: 8px;
	box-shadow: 0 24px 48px rgba(8, 38, 32, .1);
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.menu-item--mega:hover .mega,
.menu-item--mega:focus-within .mega {
	opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.mega--no-cta { grid-template-columns: 1fr; } /* 상담 CTA를 끈 경우 */
.mega__list { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 2rem; }
.mega__list a {
	display: flex; align-items: center; gap: .75rem; padding: .5rem .35rem; border-radius: 6px;
	font-size: .97rem; font-weight: 500; text-decoration: none; color: var(--ink);
	transition: background-color .15s ease;
}
.mega__list a:hover { background: #f3f6f5; }
.mega__icon {
	flex: none; display: grid; place-items: center; width: 30px; height: 30px;
	border-radius: 6px; background: var(--cream); color: var(--ink);
}
.mega--about .mega__icon { background: var(--sand); }
.mega__icon:has(.mega__art) { background: none; }
.mega__art { display: block; width: 30px; }
.mega__art svg { width: 100%; height: auto; }
.mega__blog {
	display: flex; align-items: center; gap: .75rem; margin-top: 1.75rem; padding: .7rem .8rem;
	background: var(--cream); border-radius: 6px; text-decoration: none; color: var(--ink);
}
.mega__blog-tag { padding: .3rem .55rem; background: #f6ead9; border-radius: 4px; font-size: .9rem; }
.mega__blog-title { flex: 1; font-size: .97rem; }
.mega__blog:hover .mega__blog-title { text-decoration: underline; text-underline-offset: 3px; }
.mega__cta {
	display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem;
	padding: 2rem; border-radius: 8px; background: var(--cream);
}
.mega--about .mega__cta { background: var(--sand); }
.mega__cta-title { font-size: 2.4rem; line-height: 1; }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: #e6ecea; }

.nav-toggle {
	display: none; width: 44px; height: 44px; padding: 0; color: inherit;
	background: none; border: 1px solid currentColor; border-radius: 10px; cursor: pointer; opacity: .8;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; width: 18px; height: 2px; background: currentColor; margin-inline: auto; position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

/* 헤더 CTA는 좁은 화면에서 숨기고, 대신 모바일 메뉴 안에서 노출한다. */
.site-nav__cta { display: none; }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: absolute; top: 100%; left: 0; right: 0; margin: 0;
		background: inherit; border-bottom: 1px solid var(--line);
		padding: 1rem var(--gutter) 1.5rem; display: none;
	}
	.site-header { background: var(--white); }
	.site-nav { background: var(--white); }
	.is-dark .site-nav { background: var(--ink); }
	.site-nav.is-open { display: block; }
	.site-nav__list { flex-direction: column; gap: 0; }
	.site-nav__list > li > a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
	.mega { display: none; }
	.site-header:has(.menu-item--mega:hover)::after { display: none; }
	.site-nav__cta { display: flex; margin-top: 1.25rem; }
	.site-header__phone { display: none; }
}
@media (max-width: 520px) {
	.site-header__actions .btn { display: none; }
}

/* 다크 페이지(회계사 소개) */
body.is-dark { background: var(--ink); color: var(--white); }
.is-dark .site-header { background: var(--ink); color: var(--white); }
.is-dark .site-header:has(.menu-item--mega:hover, .menu-item--mega:focus-within) .site-header__inner { background: var(--ink); }
.is-dark .site-nav__list > .menu-item--mega:hover > a,
.is-dark .site-nav__list > .menu-item--mega:focus-within > a { color: var(--white); }
.is-dark .btn--outline { color: var(--white); border-color: rgba(255, 255, 255, .55); }
.is-dark .btn--outline:hover { background: rgba(255, 255, 255, .1); }
.is-dark .site-header__cta { background: var(--sand); color: var(--ink); }

/* ---------- 서브 페이지 히어로(일반 페이지) ---------- */
.page-hero { padding-block: clamp(3rem, 6vw, 5rem) 1rem; }
.page-hero__title { font-size: clamp(2.8rem, 6vw, 5rem); }
.page-hero__lead { margin-top: 1rem; max-width: 42rem; color: var(--muted); font-size: 1.05rem; }
.page-hero + .section { padding-top: clamp(1.5rem, 3vw, 2.5rem); } /* 일반 페이지: 제목 바로 아래 본문 */

/* ---------- 글 카드 (the3key Resources) ---------- */
.post-grid {
	display: grid; gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.post-card {
	position: relative; display: flex; flex-direction: column;
	padding: 12px; background: var(--white); border-radius: 8px;
	transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(8, 38, 32, .08); }
.post-card__thumb {
	position: relative; aspect-ratio: 5 / 3; overflow: hidden; border-radius: 6px; background: var(--ink);
}
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.post-card__thumb-fallback {
	position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem;
	color: var(--white); font-size: 2.4rem; text-align: center; user-select: none;
}
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem .5rem .6rem; }
.post-card__tags { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.tag {
	padding: .25rem .6rem; border-radius: 4px; background: var(--cream);
	font-size: .85rem; text-decoration: none; color: var(--ink);
}
.tag:hover { background: var(--cream); }
.post-card__time { margin-inline-start: .3rem; font-size: .85rem; }
.post-card__title { margin: .9rem 0 .5rem; font-size: 1.55rem; line-height: 1.15; }
.post-card__link { text-decoration: none; }
.post-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card__excerpt {
	font-size: .97rem; line-height: 1.6;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-meta { font-size: .85rem; color: var(--muted); }

/* ---------- 상담 문의 ---------- */
.contact-form { display: grid; gap: 1.25rem; }
.contact-form__notice {
	background: var(--sand); border-radius: 10px; padding: .85rem 1.1rem; font-size: .9rem;
}
.field { display: grid; gap: .45rem; }
.field label { font-size: .9rem; font-weight: 600; }
.req { color: #cc4b37; }
.field input, .field select, .field textarea {
	width: 100%; padding: .8rem 1rem;
	border: 1px solid var(--line); border-radius: 10px;
	font: inherit; color: var(--ink); background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline-offset: 0; }
.field textarea { resize: vertical; }
.field--check { grid-template-columns: auto 1fr; align-items: center; gap: .6rem; }
.field--check input { width: 18px; height: 18px; }
.field--check label { font-weight: 500; }

/* 가장 큰 제목은 700, 나머지 제목은 600 — 전체를 얇은 쪽으로 맞춤 */
.hero__title, .reveal__title, .footer-cta__title, .page-intro__title, .about-hero__title,
.contact-page__title, .not-found__title, .post-list__title, .stack-card__title, .section-title,
.receipt__logo { font-weight: 700; letter-spacing: -0.04em; }
.receipt__label, .receipt__rows span, .receipt__copy, .receipt__tagline, .timeline__year,
.principles__tabs a, .tilt-photo__label, .single__meta, .mega__cta-title { font-weight: 600; }

/* Contact Form 7 출력물을 시안 폼과 같게 */
.contact-form-wrap .wpcf7-form-control-wrap { display: block; }
.contact-form-wrap .field--check .wpcf7-list-item { margin: 0; }
.contact-form-wrap .field--check label { display: flex; align-items: center; gap: .6rem; font-weight: 500; cursor: pointer; }
.contact-form-wrap .field--check input { width: 18px; height: 18px; margin: 0; }
.contact-form-wrap .wpcf7-not-valid { border-color: #cc4b37; }
.contact-form-wrap .wpcf7-not-valid-tip { display: block; margin-top: .35rem; font-size: .85rem; color: #cc4b37; }
.contact-form-wrap .wpcf7-spinner { margin: 0 0 0 .75rem; vertical-align: middle; }
.contact-form-wrap .wpcf7-response-output {
	margin: 1.25rem 0 0; padding: .85rem 1.1rem; border-radius: 10px; border: 1px solid var(--line); font-size: .93rem;
}
.contact-form-wrap.sent .wpcf7-response-output { background: var(--cream); border-color: var(--sand); }
.contact-form-wrap.invalid .wpcf7-response-output,
.contact-form-wrap.failed .wpcf7-response-output { background: var(--sand); border-color: #cc4b37; }

/* ---------- 본문 타이포(prose) ---------- */
.prose { font-size: 1.05rem; }
.prose > * + * { margin-top: 1.4em; }
.prose h2 { font-size: 1.6rem; margin-top: 2.4em; }
.prose h3 { font-size: 1.25rem; margin-top: 2em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .5em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
	border-inline-start: 3px solid var(--sand); padding-inline-start: 1.25rem; color: var(--muted);
}
.prose img { border-radius: var(--radius); }
.prose code {
	background: var(--cream); padding: .15em .4em; border-radius: 4px; font-size: .9em;
}
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: .7rem .9rem; text-align: left; }
.prose thead th { background: var(--cream); }

.single__thumb { margin-top: 2rem; }
.single__thumb img { border-radius: var(--radius-lg); width: 100%; }

/* 이전 글 | 목록 아이콘 | 다음 글 — 한쪽 글이 없어도 아이콘은 항상 가운데 */
.post-nav {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem;
	margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .95rem;
}
.post-nav a { text-decoration: none; font-weight: 600; }
.post-nav__next { text-align: right; }
.post-nav__list {
	display: grid; place-items: center; width: 48px; height: 48px;
	border: 1px solid var(--ink); color: var(--ink); transition: background-color .18s ease, color .18s ease;
}
.post-nav__list:hover { background: var(--ink); color: var(--white); }
@media (max-width: 640px) { .post-nav { gap: .75rem; font-size: .88rem; } }
.post-nav a:hover { text-decoration: underline; }

/* ---------- 검색 폼 / 페이지네이션 ---------- */
.search-form { display: flex; gap: .5rem; margin-bottom: 2.5rem; }
.search-form__input {
	flex: 1; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 999px; font: inherit;
}

.pagination { margin-top: 3rem; }
.nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.page-numbers {
	display: grid; place-items: center; min-width: 42px; height: 42px; padding-inline: .75rem;
	border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem;
}
.page-numbers.current, .page-numbers:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* =========================================================
   the3key 스타일 공통 요소 — 디스플레이 타이포, 칩, 서브헤드
   ========================================================= */
.display {
	font-family: var(--font-display);
	font-weight: 600; line-height: 1.15; letter-spacing: -0.035em;
}
.chip {
	display: inline-block; margin-bottom: 1.25rem; padding: .3rem .6rem;
	font-family: var(--font-display); font-weight: 600; font-size: .95rem; line-height: 1.2; letter-spacing: -0.01em;
	background: var(--cream); color: var(--ink); border-radius: 6px;
}
.chip--sand { background: var(--sand); }
.chip--white { background: var(--white); }
.subhead {
	margin-top: 1rem; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.025em;
	font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.2;
}
.subhead--light { color: var(--sand); }
.section-title { font-size: clamp(2.5rem, 5.2vw, 4.25rem); }

.btn--chev::after {
	content: ""; width: 7px; height: 7px; margin-inline-start: .35rem;
	border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
}

/* ---------- 히어로 ---------- */
.hero { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero__grid { position: relative; }
.hero__left { position: relative; z-index: 1; }
.hero__title { font-size: clamp(3rem, 8.2vw, 7.4rem); line-height: 1.1; }
.hero__sub { font-size: clamp(1.4rem, 2.6vw, 2.4rem); }
.hero__bottom { margin-top: clamp(2.5rem, 7vw, 6.5rem); max-width: 34rem; }
.hero__lead { line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.hero__gallery {
	position: relative; margin: 6rem auto 0; width: min(100%, 384px); height: 360px;
	cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
}
/* 겹침 순서: 민트 박스(0) < 제목(1) < 일러스트(2). 갤러리에 z-index를 주지 않아야 자식끼리 제목 사이에 끼어든다 */
.hero__gallery-bg { position: absolute; inset: 0; z-index: 0; background: var(--cream); border-radius: 8px; }
.hero__image {
	position: absolute; left: 50%; bottom: 4%; z-index: 2; width: 112%;
	transform: translateX(-50%); display: none;
}
.hero__image.is-active { display: block; animation: hero-pop .45s cubic-bezier(.34, 1.56, .64, 1); }
.hero__image svg { width: 100%; height: auto; }
@keyframes hero-pop { from { transform: translateX(-50%) scale(.86) rotate(-4deg); opacity: .4; } }

.hero__tap {
	position: absolute; left: 0; top: -2.5rem; z-index: 2;
	display: inline-flex; align-items: center; gap: .3rem;
	font-family: var(--font-hand); font-size: 1.7rem; line-height: 1; white-space: nowrap;
	animation: tap-float 4s ease-in-out infinite; pointer-events: none;
}
@keyframes tap-float { 50% { transform: translate(-4px, -6px) rotate(-3deg); } }

@media (min-width: 1025px) {
	.hero__left { min-height: 38rem; }
	.hero__gallery {
		position: absolute; right: 0; bottom: 0; margin: 0;
		width: 31.5%; max-width: 384px; height: 74%; max-height: 450px;
	}
	.hero__tap { top: 42%; left: 0; transform: translateX(-110%); }
	@keyframes tap-float { 50% { transform: translateX(-110%) translate(-4px, -6px) rotate(-3deg); } }
}

.hero__points {
	display: grid; gap: 1rem 2rem; margin-top: clamp(3rem, 6vw, 5.5rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.hero__points li {
	display: flex; align-items: center; gap: .9rem;
	padding: 1.4rem 1.6rem; background: var(--cream); border-radius: 8px;
	font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.2; letter-spacing: -0.02em;
}
.hero__points svg { flex: none; color: var(--ink); }

/* ---------- 대상 고객 (카드 쌓기) ---------- */
.reveal { padding-block: var(--section-y); }
.reveal__head { text-align: center; padding-inline: var(--gutter); margin-bottom: 2.5rem; }
.reveal__title { font-size: clamp(3rem, 8vw, 8rem); }

.reveal-card {
	display: flex; flex-direction: column; justify-content: space-between;
	width: min(100%, 22rem); aspect-ratio: .75; padding: clamp(1.75rem, 3vw, 3rem);
	border-radius: 8px; background: var(--cream); color: var(--ink);
}
.reveal-card--2 { background: var(--ink); color: var(--white); }
.reveal-card--3 { background: var(--sand); }
.reveal-card--4 { background: var(--white); border: 1px solid var(--ink); }
.reveal-card--5 { background: var(--ink); color: var(--white); }
.reveal-card--6 { background: var(--sand); }
.reveal-card__title { font-size: clamp(2rem, 3vw, 3rem); }
.reveal-card__body { font-size: 1rem; line-height: 1.55; }

/* GSAP 없이(모바일·모션 축소): 카드가 화면 위쪽에 붙으며 차례로 덮는다 */
.reveal__circles { display: grid; justify-items: center; gap: 1.5rem; padding-inline: var(--gutter); }
.reveal__circle { position: sticky; top: 1.25rem; width: 100%; display: flex; justify-content: center; }
.reveal__circle:nth-child(odd) .reveal-card { transform: rotate(-1.5deg); }
.reveal__circle:nth-child(even) .reveal-card { transform: rotate(1.5deg); }
.reveal__circles .reveal-card { aspect-ratio: auto; min-height: 18rem; justify-content: flex-start; gap: 1.5rem; }
.has-gsap .reveal__circles .reveal-card { aspect-ratio: .75; min-height: 0; justify-content: space-between; }

/* GSAP: 화면을 고정하고 거대한 원을 돌려 카드가 호를 그리며 쌓이게 한다 (the3key 방식) */
.has-gsap .reveal { padding: 0; }
.has-gsap .reveal__pin { position: relative; height: calc(var(--count) * 50vh + 100vh); }
.has-gsap .reveal__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.has-gsap .reveal__head { padding-top: 9vh; margin: 0; }
.has-gsap .reveal__circles { position: absolute; inset: 0; display: block; padding: 0; }
.has-gsap .reveal__circle {
	position: absolute; top: 58%; left: 50%; width: 250vw; height: 250vw;
	margin-left: -125vw; border-radius: 50%; pointer-events: none; will-change: transform;
}
.has-gsap .reveal-card {
	position: absolute; top: 0; left: 50%; width: min(25vw, 360px); max-height: 62vh;
	transform: translate(-50%, 60vh); will-change: transform; pointer-events: auto;
}

/* ---------- 업무분야 (다크 + 슬라이더) ---------- */
.services { overflow: hidden; }
.services__head { display: grid; gap: 2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); align-items: end; }
@media (min-width: 900px) { .services__head { grid-template-columns: 1.3fr 1fr; gap: 4rem; } }
.services__lead { color: rgba(255, 255, 255, .86); line-height: 1.7; }

.slider__track {
	display: flex; gap: 2rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
	scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__item { flex: 0 0 min(82vw, 380px); scroll-snap-align: start; }
.simple-card {
	display: block; height: 100%; padding: 2rem; border-radius: 8px;
	background: var(--ink-2); color: var(--white); text-decoration: none;
	transition: transform .25s ease, background-color .25s ease;
}
.simple-card:hover { transform: translateY(-4px) rotate(-1deg); background: #2a4a43; }
.simple-card__image { display: block; width: 7.5rem; margin-bottom: 2rem; }
.simple-card__image svg { width: 100%; height: auto; }
.simple-card__title { font-size: 1.75rem; margin-bottom: .75rem; }
.simple-card__body { color: rgba(255, 255, 255, .86); font-size: .97rem; line-height: 1.65; }

.services__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; }
.slider__nav { display: flex; gap: .6rem; }
.slider__btn {
	display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
	border: 1px solid var(--sand); border-radius: 50%; background: none; color: var(--sand); cursor: pointer;
	transition: background-color .18s ease, color .18s ease;
}
.slider__btn:hover { background: var(--sand); color: var(--ink); }

/* ---------- 일하는 방식 (기울어진 카드) ---------- */
.why { padding-top: 0; }
.why__head { text-align: center; }
.why__head .btn { margin-top: 1.75rem; }
.fix-cards {
	display: grid; gap: 1.25rem .5rem; margin-top: 3.5rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.fix-card {
	padding: 2rem 1.75rem; text-align: center;
	background: var(--ink); border: 1px solid var(--sand); border-radius: 8px;
}
/* 카드마다 각도·높이를 다르게 줘서 손으로 놓은 듯 틀어지게 */
.fix-card { position: relative; }
/* 등장 애니메이션이 transform을 덮어쓰므로 기울기는 rotate/translate 속성으로 따로 준다 */
.fix-card:nth-child(4n+1) { rotate: -3deg; translate: 0 10px; }
.fix-card:nth-child(4n+2) { rotate: 2deg; translate: 0 -14px; z-index: 1; }
.fix-card:nth-child(4n+3) { rotate: -1.2deg; translate: 0 18px; }
.fix-card:nth-child(4n+4) { rotate: 3.4deg; translate: 0 -6px; z-index: 1; }
.fix-card__title { color: var(--sand); font-size: 1.75rem; }
.fix-card__body { margin-top: .9rem; color: var(--white); font-size: .97rem; line-height: 1.6; }

/* ---------- 진행 절차 (겹쳐 쌓이는 전체 화면 카드) ---------- */
.stack-card--cream { background: var(--cream); }
.stack-card--sand { background: var(--sand); }
.stack-card--white { background: var(--white); }
.stack-card__inner { padding-block: 4rem; }
.stack-card__item { display: grid; gap: 2.5rem; }
.stack-card__title { font-size: clamp(3rem, 6.2vw, 5.5rem); }
.stack-card__body { margin-top: 2rem; max-width: 500px; line-height: 1.65; }
.stack-card__image {
	position: relative; width: min(100%, 450px); aspect-ratio: 1; margin-inline: auto;
	border-radius: 8px; display: grid; place-items: center;
}
.stack-card__image--white { background: var(--white); }
.stack-card__image--cream { background: var(--cream); }
.stack-card__image--sand { background: var(--sand); }
.stack-card__art { display: block; width: 92%; }
.stack-card__art svg { width: 100%; height: auto; }

@media (min-width: 1025px) {
	.stack-card {
		position: sticky; top: 0; height: 100vh;
		box-shadow: 3px 3px 30px rgba(0, 0, 0, .14);
	}
	.stack-card__wrapper { height: 100%; perspective: 250vw; }
	.stack-card__inner {
		position: absolute; inset: 0; display: flex; align-items: center;
		transform-style: preserve-3d; transform-origin: 50% 10%; padding-block: 3rem;
	}
	.stack-card__item { grid-template-columns: 1fr 40%; gap: 8rem; align-items: center; }
	.stack-card__text { display: flex; flex-direction: column; justify-content: space-between; min-height: 25.5rem; }
	.stack-card__image { max-height: calc(100vh - 10rem); width: 100%; }
}

/* ---------- 푸터: 민트 CTA + 영수증 ---------- */
.site-footer { background: var(--ink); }
.footer-cta { background: var(--sand); color: var(--ink); text-align: center; padding-block: clamp(5rem, 9vw, 8rem) 10rem; }
.footer-cta__title { font-size: clamp(3rem, 8.4vw, 7.6rem); }
.footer-cta .btn { margin-top: 2.5rem; }

.receipt-wrap {
	position: relative; z-index: 1; width: min(732px, calc(100% - 2 * var(--gutter)));
	margin: -5.5rem auto 0;
}
.receipt__decor {
	position: relative; height: 61px; width: calc(100% - 61px);
	background: var(--white); border: 1px solid var(--ink); border-bottom: 0; border-top-left-radius: 8px;
}
.receipt__decor::after {
	content: ""; position: absolute; top: -1px; right: 0; width: 62px; height: 62px; transform: translateX(100%);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 62 62'%3E%3Cpath d='M0 0 L61.5 61.5 L0 61.5Z' fill='%23fff'/%3E%3Cpath d='M0 .5 L61.5 61.5 M.5 0 V61.5 H62' fill='none' stroke='%23082620'/%3E%3C/svg%3E") no-repeat;
}
.receipt {
	background: var(--white); color: var(--ink);
	border-inline: 1px solid var(--ink); padding: 1.25rem clamp(2rem, 8vw, 6rem) 3rem;
}
.receipt a { text-decoration: none; }
.receipt a:hover { text-decoration: underline; }
.receipt__top {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem;
	padding-bottom: 3.5rem; margin-bottom: 3rem; border-bottom: 1px dashed #9ca8a6;
}
.receipt__logo { font-size: clamp(3rem, 7vw, 4.5rem); line-height: .95; max-width: 4.2em; }
.receipt__contact { max-width: 16.25rem; }
.receipt__tagline { font-size: 1.6rem; line-height: 1.15; }
.receipt__chips { display: flex; gap: .5rem; margin-top: 1rem; }
.receipt__chips a {
	display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
	background: var(--sand); color: var(--ink);
}
.receipt__chips a:hover { background: var(--ink); color: var(--sand); text-decoration: none; }
.receipt__middle {
	display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	padding-bottom: 2rem; margin-bottom: 3rem; border-bottom: 1px dashed #9ca8a6;
}
.receipt__label { font-size: 1.35rem; margin-bottom: .5rem; }
.receipt__col ul + .receipt__label { margin-top: 1.5rem; }
.receipt__col li { font-size: .95rem; line-height: 2.1; }
.receipt__heading { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: 1rem; }
.receipt__rows li { position: relative; display: flex; justify-content: space-between; padding-bottom: .75rem; }
.receipt__rows li::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 1.05rem; border-bottom: 1px dashed #9ca8a6;
}
.receipt__rows span { position: relative; z-index: 1; background: var(--white); font-size: 1.4rem; line-height: 1.2; }
.receipt__rows span:first-child { padding-right: .5rem; }
.receipt__rows span:last-child { padding-left: .5rem; }
.receipt__barcode {
	height: 66px; margin: .75rem 0 1.5rem;
	background: repeating-linear-gradient(90deg,
		#ced4d2 0 3px, transparent 3px 5px, #ced4d2 5px 6px, transparent 6px 9px,
		#ced4d2 9px 13px, transparent 13px 15px, #ced4d2 15px 16px, transparent 16px 19px,
		#ced4d2 19px 21px, transparent 21px 22px, #ced4d2 22px 25px, transparent 25px 28px);
}
.receipt__copy { text-align: center; font-size: 1.4rem; }
.receipt__zigzag {
	height: 30px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 30'%3E%3Cpath d='M0 0H52V30L26 0L0 30Z' fill='%23fff'/%3E%3C/svg%3E") 0 0 / 52px 30px;
	/* 영수증 좌우 테두리(1px) 안쪽 흰 면과 폭을 맞추고, 톱니 수를 정수로 맞춰 양 끝이 세로선으로 떨어지게 */
	margin-inline: 1px; background-repeat: round no-repeat;
}
/* main.js가 폭에 맞춘 한 덩어리 톱니(clip-path)로 바꾼다 — 타일 이음새 선이 생기지 않게 */
.receipt__zigzag.is-cut { position: relative; margin-top: -1px; background: var(--white); } /* 1px 겹쳐 이음새 선을 덮는다 */

.site-footer__legal {
	padding: 3rem var(--gutter) 3.5rem; text-align: center;
	color: var(--white); font-size: .95rem; line-height: 2.2;
}
.site-footer__legal a { color: var(--white); text-underline-offset: 3px; }

/* =========================================================
   하위 페이지 — the3key 구조
   ========================================================= */
/* CTA 띠가 없을 때: 영수증 위 여백을 푸터 안쪽(padding)에 준다. 자식 margin은 푸터 밖으로 빠져나가 영수증이 검정 위에 붙어 버린다 */
.site-footer--no-cta { padding-top: clamp(4rem, 8vw, 6rem); }
.site-footer--no-cta .receipt-wrap { margin-top: 0; }
.chip--dark { background: var(--ink); color: var(--white); text-decoration: none; margin: 0 .2rem; }
a.chip { text-decoration: none; }

/* 공통: 왼쪽 제목 / 오른쪽 설명 */
.split-head { display: grid; gap: 1.5rem 4rem; align-items: end; }
@media (min-width: 900px) { .split-head { grid-template-columns: 1.2fr 1fr; } }
.split-head__lead { line-height: 1.7; max-width: 34rem; }
.split-head .btn { margin-top: 1.25rem; }

/* ---------- 업무분야 ---------- */
.page-intro { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); }
.page-intro__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .page-intro__grid { grid-template-columns: 1fr .9fr; gap: 4rem; } }
.page-intro__title { font-size: clamp(3rem, 6.6vw, 5.75rem); line-height: 1.02; }
.page-intro__bottom { margin-top: clamp(2.5rem, 6vw, 5rem); max-width: 32rem; line-height: 1.6; }
.page-intro__bottom .btn { margin-top: 1.25rem; }
.page-intro__art {
	display: grid; place-items: center; aspect-ratio: 6 / 5; border-radius: 8px; overflow: visible;
}
.page-intro__art--cream { background: var(--cream); }
.page-intro__svg { display: block; width: 86%; margin-top: -12%; }
.page-intro__svg svg { width: 100%; height: auto; }

.sticky-text__grid { display: grid; gap: 3rem; }
@media (min-width: 960px) {
	.sticky-text__grid { grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
	.sticky-text__inner { position: sticky; top: 3rem; }
}
.sticky-text__lead { margin-top: 1.5rem; max-width: 30rem; line-height: 1.7; color: rgba(255, 255, 255, .88); }
.sticky-text__inner .btn { margin-top: 1.75rem; }
.sticky-text__cards { display: grid; gap: 8px; }
.outline-card {
	padding: 2rem; border: 1px solid var(--sand); border-radius: 8px; background: var(--ink);
	scroll-margin-top: 2rem;
}
.outline-card:nth-child(odd) { rotate: -1deg; }
.outline-card:nth-child(even) { rotate: 1deg; }
.outline-card__title { color: var(--sand); font-size: 1.75rem; }
.outline-card__lead { margin-top: .9rem; line-height: 1.6; }
.outline-card__list { margin-top: 1rem; display: grid; gap: .3rem; font-size: .93rem; color: rgba(255, 255, 255, .8); }
.outline-card__list li::before { content: "—"; color: var(--sand); margin-inline-end: .5rem; }

.services-learn .split-head { margin-bottom: 3rem; }
.white-card {
	height: 100%; min-height: 15rem; padding: 2rem; border-radius: 8px; background: var(--white);
	line-height: 1.65; font-size: .97rem;
}
.white-card__title { font-size: 1.6rem; margin-bottom: 1rem; }
.slider__nav--dark .slider__btn { color: var(--ink); border-color: var(--ink); }
.slider__nav--dark .slider__btn:hover { background: var(--ink); color: var(--white); }

/* ---------- 회계사 소개 (다크) ---------- */
.branch { display: block; width: min(306px, 70%); height: auto; margin: 3rem auto 0; color: var(--sand); }
.about-hero { padding-top: clamp(3rem, 6vw, 5rem); text-align: center; }
.about-hero__title { font-size: clamp(3rem, 6.4vw, 5.25rem); }

.about-lead { padding-block: 3rem clamp(4rem, 8vw, 7rem); overflow-x: clip; }
.about-lead__grid { display: grid; gap: 3rem; align-items: center; justify-items: center; }
@media (min-width: 960px) { .about-lead__grid { grid-template-columns: 1fr 1.7fr 1fr; gap: 2rem; } }
.about-lead__text { text-align: center; }
.about-lead__title { color: var(--sand); font-size: clamp(2.1rem, 3.6vw, 3.1rem); }
.about-lead__body { margin: 1.25rem auto 0; max-width: 34rem; line-height: 1.7; }
.about-lead__body p + p { margin-top: .8em; }

.tilt-photo { margin: 0; width: min(100%, 240px); rotate: -5deg; }
.tilt-photo img, .tilt-photo__placeholder {
	display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
	border-radius: 8px; background: var(--ink-2); color: var(--sand);
}
.tilt-photo__label {
	position: relative; width: fit-content; margin: -1.6rem 0 0 1.5rem; padding: .9rem 1.2rem;
	background: var(--cream); color: var(--ink); border-radius: 6px; font-size: 1.3rem;
	transform: rotate(4deg); box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}
.stat-card {
	display: grid; gap: .3rem; padding: 1.25rem 1.6rem; border-radius: 8px;
	background: var(--cream); color: var(--ink); rotate: 5deg;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}
.stat-card__num { font-size: 2.6rem; }
.stat-card__label { font-size: .93rem; }

.principles { overflow-x: clip; }
.principles__tabs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.principles__tabs a {
	display: block; padding: 1.4rem 1rem; border-radius: 6px; text-align: center;
	background: var(--ink-2); color: var(--sand); font-size: 1.5rem; text-decoration: none;
	transition: background-color .18s ease, transform .18s ease;
}
.principles__tabs a:hover { background: #2a4a43; transform: translateY(-2px); }
.zigzag { display: grid; gap: 2.5rem; align-items: center; margin-top: clamp(4rem, 8vw, 7rem); scroll-margin-top: 2rem; }
@media (min-width: 900px) {
	.zigzag { grid-template-columns: 1fr 1fr; gap: 5rem; }
	.zigzag--reverse .zigzag__art { order: 2; }
}
.zigzag__art { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; }
.zigzag__art--cream { background: var(--cream); }
.zigzag__art--sand { background: var(--sand); }
.zigzag__svg { display: block; width: 78%; }
.zigzag__svg svg { width: 100%; height: auto; }
.zigzag__title { font-size: clamp(2.2rem, 3.8vw, 3.3rem); }
.zigzag__body { margin-top: 2rem; max-width: 30rem; line-height: 1.7; }
.principles .branch { margin-top: clamp(4rem, 8vw, 6rem); }

.timeline__head { text-align: center; }
.timeline__grid {
	display: grid; gap: 2.5rem 4rem; margin-top: 3.5rem; list-style: none;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.timeline__grid li { padding-bottom: 1.25rem; border-bottom: 1px solid var(--sand); }
.timeline__year { font-size: 1.8rem; }
.timeline__grid p { margin-top: .6rem; font-size: .97rem; line-height: 1.6; }

.line-cards { display: grid; gap: 1.25rem; margin-top: 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.line-card { padding: 2rem; border: 1px solid var(--sand); border-radius: 8px; line-height: 1.6; }
.line-card__title { color: var(--sand); font-size: 1.6rem; margin-bottom: 1rem; }
#why { scroll-margin-top: 2rem; }

/* ---------- 인사이트 목록 ---------- */
.post-list { background: var(--cream); padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 6rem); }
.post-list__head {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem;
	margin-bottom: 2.5rem;
}
.post-list__title { font-size: clamp(3rem, 6vw, 5rem); max-width: 11em; }
.filter { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--white); border-radius: 6px; }
.filter__item { padding: .35rem .75rem; border-radius: 4px; font-size: .92rem; text-decoration: none; color: var(--ink); }
.filter__item:hover { background: var(--cream); }
.filter__item.is-active { background: var(--ink); color: var(--white); }

/* ---------- 글 상세 ---------- */
.post-single { background: var(--cream); padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem); }
.single__top, .single__layout, .post-single .post-nav { max-width: calc(1000px + 2 * var(--gutter)); }
.single__top { display: grid; gap: 1rem; }
@media (min-width: 860px) { .single__top { grid-template-columns: 1.8fr 1fr; } }
.single__head {
	display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
	min-height: 18rem; padding: 2rem; border-radius: 6px; background: var(--ink); color: var(--white);
}
.single__head .chip { margin-bottom: .9rem; }
.single__title { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.single__meta { margin-top: .8rem; color: var(--sand); font-size: 1.1rem; }
.single__excerpt { font-size: .95rem; line-height: 1.6; color: rgba(255, 255, 255, .86); }
.single__image { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--ink); }
/* 사진 비율과 상관없이 항상 정사각형: 칸이 행 높이에 늘어나지 않게 하고, 사진은 칸에 꽉 채운다 */
.single__image { position: relative; align-self: start; width: 100%; }
.single__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; } /* 너비에 맞추고 가운데 기준으로 크롭 */
.single__image-logo { color: var(--white); font-size: 3rem; text-align: center; padding: 1rem; }
.single__layout { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
@media (min-width: 860px) { .single__layout { grid-template-columns: 1.7fr 1fr; gap: 3rem; } }
.single__aside { align-self: start; }
@media (min-width: 860px) { .single__aside { position: sticky; top: 2rem; } }
.aside-card { padding: 1.75rem; border-radius: 6px; background: var(--white); }
.aside-card__title { font-size: 2rem; }
.aside-card p:not(.aside-card__title) { margin: .8rem 0 1.25rem; font-size: .93rem; line-height: 1.6; }
/* 글 태그 알약 — 공유 버튼 위 */
.tag-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin-top: 1.75rem; list-style: none; }
.tag-pill {
	display: inline-block; padding: .4rem .85rem; border: 1px solid var(--ink); border-radius: 999px;
	font-size: .85rem; font-weight: 500; color: var(--ink); text-decoration: none; background: var(--white);
	transition: background-color .18s ease, color .18s ease;
}
.tag-pill:hover { background: var(--ink); color: var(--white); }
.share { margin-top: 1.75rem; text-align: center; }
.share__label { font-size: .9rem; margin-bottom: .6rem; }
.share .receipt__chips { justify-content: center; }
.share .receipt__chips a { text-decoration: none; }
.share .receipt__chips a.is-copied { background: var(--ink); color: var(--sand); }
.post-single .post-nav { margin-top: 3rem; }

/* ---------- 상담 문의 ---------- */
.contact-page { background: var(--cream); padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 6rem); }
.contact-page__grid { display: grid; gap: 4rem; align-items: start; }
@media (min-width: 960px) { .contact-page__grid { grid-template-columns: 1fr 1fr; } }
.contact-page__title { font-size: clamp(3.4rem, 7vw, 6rem); line-height: 1; }
.contact-page__blocks { display: grid; gap: 2.25rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.contact-page__label { font-size: 2rem; }
.contact-page__text { margin-top: .5rem; line-height: 1.7; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.pill {
	display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1.05rem; border-radius: 999px;
	background: var(--sand); color: var(--ink); font-weight: 500; font-size: .95rem; text-decoration: none;
	transition: background-color .18s ease, color .18s ease;
}
.pill::after {
	content: ""; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg);
}
.pill:hover { background: var(--ink); color: var(--sand); }
.form-card { position: relative; margin-top: 4rem; padding: clamp(1.75rem, 4vw, 2.5rem); border-radius: 8px; background: var(--white); }
@media (min-width: 960px) { .form-card { margin-top: 5rem; } }
.form-card__peek { position: absolute; top: -5.6rem; right: 1.5rem; width: 130px; }
.form-card__peek svg { width: 100%; height: auto; }
.form-card__title { font-size: 2.4rem; }
.form-card__lead { margin: .5rem 0 1.75rem; color: var(--muted); font-size: .95rem; }

/* ---------- 404 ---------- */
.not-found { padding-block: clamp(4rem, 8vw, 6rem); text-align: center; }
.not-found__title { font-size: clamp(3rem, 8vw, 7rem); }
.not-found .subhead { font-size: clamp(1.6rem, 3vw, 2.6rem); }
.not-found__text { margin-top: 1.25rem; }

/* ---------- 모션 축소 ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =========================================================
   등장 애니메이션
   html.has-anim 이 붙었을 때만 숨긴다. JS가 없거나 모션 축소 설정이면
   클래스가 안 붙으므로 콘텐츠는 항상 보인다.
   ========================================================= */
.has-anim [data-anim] {
	opacity: 0;
	transition:
		opacity .68s cubic-bezier(.22, .61, .36, 1),
		transform .68s cubic-bezier(.22, .61, .36, 1);
	transition-delay: var(--anim-delay, 0s);
	will-change: opacity, transform;
}

.has-anim [data-anim="up"]    { transform: translate3d(0, 22px, 0); }
.has-anim [data-anim="fade"]  { transform: none; }
.has-anim [data-anim="left"]  { transform: translate3d(-24px, 0, 0); }
.has-anim [data-anim="right"] { transform: translate3d(24px, 0, 0); }
.has-anim [data-anim="scale"] { transform: scale(.94); }

.has-anim [data-anim].is-in {
	opacity: 1;
	transform: none;
	will-change: auto;
}

/* 모션 축소 설정에서는 어떤 경우에도 움직이지 않는다 */
@media (prefers-reduced-motion: reduce) {
	.has-anim [data-anim] {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}
