/* ============================================================
   지노블 (G.NOBLE) — Editorial Edition
   Direction : 풀블리드 사진 · 대형 세리프 디스플레이 · 헤어라인
   Palette   : ink #16130f · off-white #f4f2ee · bronze #8c7351
   Type      : Playfair Display + Noto Serif KR (display)
               Noto Sans KR (body / tracked labels)
               Parisienne (signature)
   ============================================================ */

:root {
  --ink:        #16130f;
  --ink-soft:   #2a2521;
  --body:       #5c554d;
  --muted:      #938a7e;
  --faint:      #b3aa9e;

  --paper:      #ffffff;
  --cream:      #f4f2ee;
  --cream-deep: #e9e4dc;
  --stone:      #ded8ce;
  --dark:       #14120f;

  --bronze:      #8c7351;
  --bronze-soft: #b39a74;
  --bronze-pale: #e3d7c2;

  --line:      rgba(22, 19, 15, .16);
  --line-soft: rgba(22, 19, 15, .08);

  --shadow-sm: 0 1px 2px rgba(22, 19, 15, .04), 0 4px 16px rgba(22, 19, 15, .04);
  --shadow-md: 0 12px 40px -18px rgba(22, 19, 15, .28);
  --shadow-lg: 0 30px 70px -30px rgba(22, 19, 15, .38);

  --serif:  'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; /* 명조 → Pretendard로 통일 */
  --sans:   'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --script: 'Parisienne', cursive;

  --wrap: 1240px;
  --radius: 0px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--body);
  background: var(--paper);
  letter-spacing: -.005em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -.015em;
  margin: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 공용 요소 ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 22px;
}
.eyebrow--light { color: rgba(255, 255, 255, .58); }
.eyebrow--center { text-align: center; }

.rule { width: 46px; height: 1px; background: var(--ink); border: 0; margin: 26px 0; opacity: .35; }
.rule--light { background: #fff; opacity: .4; }
.rule--center { margin-left: auto; margin-right: auto; }

.signature { font-family: var(--script); font-size: 38px; color: var(--ink); line-height: 1.3; margin: 34px 0 0; }

/* ---------- 버튼 ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px;
  font-family: var(--sans);
  font-size: 14px; font-weight: 500; line-height: 1.2;
  letter-spacing: -.01em; /* 한글은 자간을 살짝 좁혀야 단단해 보임 — uppercase·넓은 자간은 템플릿 느낌이라 제거 */
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), opacity .35s var(--ease);
}
.btn:focus-visible { outline: 1px solid var(--bronze); outline-offset: 4px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--bronze); color: #fff; }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-soft); }

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

.btn--light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--wide { width: 100%; }
.btn--lg { padding: 17px 36px; font-size: 15px; }

/* 어두운 버튼 위를 스치는 옅은 빛 */
.btn--primary, .btn--dark { position: relative; overflow: hidden; isolation: isolate; }
.btn--shine::after {
  content: ''; position: absolute; z-index: -1;
  top: -20%; left: -80%; width: 42%; height: 140%;
  background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.22), rgba(255,255,255,0));
  transform: skewX(-18deg);
  animation: btnShine 6s var(--ease) 1.6s infinite;
}
@keyframes btnShine {
  0%   { left: -80%; opacity: 0; }
  10%  { opacity: 1; }
  45%  { opacity: 1; }
  62%  { left: 135%; opacity: 0; }
  100% { left: 135%; opacity: 0; }
}

/* 텍스트 링크(화살표) */
.arrow-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink); padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  transition: border-color .3s var(--ease), gap .3s var(--ease), color .3s var(--ease);
}
.arrow-link:hover { border-color: var(--ink); gap: 20px; }
.arrow-link--light { color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.28); }
.arrow-link--light:hover { color: #fff; border-color: #fff; }

/* ---------- 헤더 ---------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 28px; }

/* 히어로 위에 얹히는 투명 헤더 (메인) */
.site-header--overlay {
  position: fixed; left: 0; right: 0;
  background: transparent; backdrop-filter: none; border-bottom-color: transparent;
}
.site-header--overlay .nav a,
.site-header--overlay .header-tel { color: rgba(255, 255, 255, .82); }
.site-header--overlay .nav a::after { background: #fff; }
.site-header--overlay .nav a:hover,
.site-header--overlay .nav a[aria-current="page"],
.site-header--overlay .header-tel:hover { color: #fff; }
.site-header--overlay .brand__logo-img { filter: brightness(0) invert(1); opacity: .95; }
.site-header--overlay .brand__name { color: #fff; }
.site-header--overlay .brand__tag { color: rgba(255, 255, 255, .6); border-color: rgba(255, 255, 255, .3); }
.site-header--overlay .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.site-header--overlay .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.site-header--overlay .nav-toggle { border-color: rgba(255, 255, 255, .4); }
.site-header--overlay .nav-toggle span,
.site-header--overlay .nav-toggle span::before,
.site-header--overlay .nav-toggle span::after { background: #fff; }

/* 스크롤 후 — 투명 헤더가 흰 바탕으로 굳는다 */
.site-header--overlay.is-stuck {
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line-soft);
}
.site-header--overlay.is-stuck .nav a,
.site-header--overlay.is-stuck .header-tel { color: var(--body); }
.site-header--overlay.is-stuck .nav a::after { background: var(--ink); }
.site-header--overlay.is-stuck .nav a:hover,
.site-header--overlay.is-stuck .nav a[aria-current="page"] { color: var(--ink); }
.site-header--overlay.is-stuck .brand__logo-img { filter: none; opacity: 1; }
.site-header--overlay.is-stuck .brand__name { color: var(--ink); }
.site-header--overlay.is-stuck .brand__tag { color: var(--muted); border-color: var(--line); }
.site-header--overlay.is-stuck .btn--ghost { color: var(--ink); border-color: var(--line); }
.site-header--overlay.is-stuck .nav-toggle { border-color: var(--line); }
.site-header--overlay.is-stuck .nav-toggle span,
.site-header--overlay.is-stuck .nav-toggle span::before,
.site-header--overlay.is-stuck .nav-toggle span::after { background: var(--ink); }

.brand { display: flex; align-items: center; gap: 14px; }
.brand__logo-img { height: 40px; width: auto; transition: filter .4s var(--ease); }
.brand__name { font-family: var(--serif); font-size: 20px; color: var(--ink); letter-spacing: .14em; }
.brand__tag {
  align-self: center;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-size: 9.5px; font-weight: 400; letter-spacing: .32em;
  text-transform: uppercase; color: var(--muted);
  transition: color .4s var(--ease), border-color .4s var(--ease);
}

.nav { display: flex; align-items: center; gap: 38px; }
.nav a {
  position: relative;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--body); padding: 8px 0;
  transition: color .3s var(--ease);
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 2px; height: 1px; width: 0;
  background: var(--ink); transition: width .35s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 20px; }
.header-cta .btn { padding: 11px 20px; font-size: 13px; }
.header-tel {
  font-family: var(--serif); font-size: 16px; letter-spacing: .1em; color: var(--ink);
  transition: color .3s var(--ease);
}

.nav-toggle {
  display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 50%; width: 18px; height: 1px;
  background: var(--ink); transform: translateX(-50%);
  transition: transform .3s var(--ease), opacity .2s var(--ease), background-color .3s var(--ease);
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before { top: -6px; left: 0; transform: none; }
.nav-toggle span::after  { top: 6px;  left: 0; transform: none; }
.nav-toggle[aria-expanded="true"] span { background: transparent !important; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none; border-top: 1px solid var(--line-soft);
  background: #fff; padding: 14px 0 26px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block; padding: 15px 4px;
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-soft); color: var(--ink);
}
.mobile-nav .btn { margin-top: 20px; }

/* ---------- 히어로 ---------- */

.hero {
  position: relative;
  min-height: clamp(640px, 92vh, 980px);
  display: flex; align-items: center;
  background: var(--dark);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__media img {
  width: 100%; height: 100%;
  /* 신랑·신부가 프레임 오른쪽(55~80%)에 있어 왼쪽 카피와 겹치지 않음 */
  object-fit: cover; object-position: 62% 8%;
  transform-origin: 62% 40%;
  will-change: transform;
  animation: heroZoom 26s cubic-bezier(.22, .61, .36, 1) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.02); }
  to   { transform: scale(1.12); }
}
.hero__media::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(94deg,
      rgba(20, 17, 14, .88) 0%,
      rgba(20, 17, 14, .80) 24%,
      rgba(20, 17, 14, .62) 40%,
      rgba(20, 17, 14, .30) 56%,
      rgba(20, 17, 14, .08) 72%,
      rgba(20, 17, 14, .24) 100%),
    linear-gradient(180deg, rgba(20, 17, 14, .55) 0%, rgba(20, 17, 14, 0) 22%,
                             rgba(20, 17, 14, 0) 72%, rgba(20, 17, 14, .48) 100%);
}

.hero__inner {
  position: relative; z-index: 3;
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: 168px 32px 132px;
}
.hero__copy { max-width: 720px; }
.hero .eyebrow { color: rgba(255, 255, 255, .62); letter-spacing: .34em; }

.hero__title { margin: 0; color: #fff; font-weight: 400; font-family: 'Noto Serif KR', Georgia, serif; } /* 브랜드명만 명조 유지 */
.hero__name {
  display: block;
  font-size: clamp(46px, 8.4vw, 112px);
  line-height: .98;
  letter-spacing: .045em;
  text-transform: uppercase;
  font-weight: 400;
}
.hero__and {
  display: block;
  font-style: italic;
  font-size: clamp(24px, 3.6vw, 46px);
  line-height: 1.1;
  margin: 8px 0 4px 6px;
  color: rgba(255, 255, 255, .86);
  letter-spacing: .01em;
}
.hero__lead {
  font-family: var(--serif);
  font-size: clamp(19px, 2.3vw, 30px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .94);
  margin: 16px 0 0;
  font-weight: 400;
}
.hero__lead em { font-style: normal; font-weight: 500; color: var(--bronze-pale); } /* Pretendard는 이탤릭이 없어 가짜 기울임 대신 굵기·색으로 강조 */

.hero__rule { width: 54px; height: 1px; background: rgba(255, 255, 255, .55); border: 0; margin: 40px 0 30px; }

.hero__facts { margin: 0; display: grid; gap: 9px; }
.hero__facts span {
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

.hero__cta { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 42px; z-index: 3;
  transform: translateX(-50%);
  display: grid; place-items: center; gap: 14px;
  font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.hero__scroll i {
  display: block; width: 1px; height: 46px;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.7));
  animation: scrollCue 2.6s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollCue {
  0%   { transform: scaleY(.25); opacity: .3; }
  45%  { transform: scaleY(1);   opacity: 1; }
  100% { transform: scaleY(.25); opacity: .3; }
}

/* ---------- 섹션 공통 ---------- */

.section { padding: 118px 0; }
.section--tight { padding: 84px 0; }
.section--cream { background: var(--cream); }
.section__head { margin-bottom: 52px; }
.section__head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 300; }
.section__head p { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.section__head--center { text-align: center; }
.section__head--center p { max-width: 560px; margin-left: auto; margin-right: auto; }
.section__count { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; color: var(--faint); }

/* ---------- 웰컴(인트로) ---------- */

.welcome { background: var(--cream); padding: 118px 0; }
.welcome__grid { display: grid; grid-template-columns: .85fr 1fr; gap: 84px; align-items: center; }
.welcome__figure { position: relative; }
.welcome__figure img {
  width: 100%; height: auto; aspect-ratio: 3 / 4;
  object-fit: cover; object-position: 40% 50%;
}
.welcome__figure::after {
  content: ''; position: absolute; inset: 16px; border: 1px solid rgba(255, 255, 255, .35);
  pointer-events: none;
}
.welcome__body { max-width: 480px; }
.welcome__body h2 {
  font-family: var(--serif); /* Pretendard */
  font-size: clamp(28px, 3.6vw, 44px); font-weight: 400; line-height: 1.42; letter-spacing: -.015em;
}
.welcome__body h2 em { font-style: normal; font-weight: 600; color: var(--bronze); }
.welcome__body p { margin: 0; font-size: 15.5px; color: var(--body); line-height: 1.95; }
.welcome__meta {
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 36px;
}
.welcome__meta div strong {
  display: block; font-family: var(--serif); font-size: 36px; font-weight: 500; line-height: 1; color: var(--ink);
  letter-spacing: .02em;
}
.welcome__meta div span {
  display: block; margin-top: 4px;
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}

/* ---------- 커버(썸네일) ---------- */

.cover {
  position: relative; overflow: hidden; background: var(--ink);
  display: grid; place-items: center;
}
.cover::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(140deg, rgba(255,255,255,.09) 0%, transparent 58%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 1px, transparent 1px 14px);
}
.cover::after {
  content: ''; position: absolute; inset: 14px; border: 1px solid rgba(255, 255, 255, .18);
  pointer-events: none;
}
.cover__label {
  position: relative; z-index: 1; text-align: center; padding: 24px;
  font-family: var(--serif); color: #fff;
}
.cover__label b { display: block; font-size: 22px; font-weight: 400; letter-spacing: .02em; line-height: 1.45; }
.cover__label--lg b { font-size: clamp(26px, 3vw, 36px); }
.cover__label small {
  display: block; margin-top: 12px; font-family: var(--sans); font-size: 9.5px;
  letter-spacing: .34em; text-transform: uppercase; color: rgba(255, 255, 255, .55);
}
/* 사진 썸네일 (posts.js 의 img 값이 있을 때) */
.cover--photo::before { display: none; }
.cover--photo .cover__label { display: none; }
.cover--photo img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.cover--photo::after { border-color: rgba(255, 255, 255, .32); z-index: 1; }
.card a:hover .cover--photo img, .featured a:hover .cover--photo img { transform: scale(1.04); }

.cover--insight { background: linear-gradient(145deg, #211e1a 0%, #4f483f 100%); }
.cover--story   { background: linear-gradient(145deg, #3a2f27 0%, #7d6b58 100%); }
.cover--howto   { background: linear-gradient(145deg, #23282a 0%, #55605d 100%); }
.cover--news    { background: linear-gradient(145deg, #1c1a18 0%, #574b3c 100%); }

/* ---------- 대표 글 ---------- */

.featured {
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 0;
  background: var(--paper);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.featured .cover { min-height: 520px; }
.featured__body {
  padding: 72px clamp(28px, 7vw, 120px) 72px clamp(28px, 5vw, 84px);
  display: flex; flex-direction: column; justify-content: center;
}
.featured__body h3 {
  font-size: clamp(24px, 2.6vw, 34px); font-weight: 300; line-height: 1.48; margin: 18px 0 0;
  transition: color .3s var(--ease);
}
.featured__body h3 a:hover { color: var(--bronze); }
.featured__body p { color: var(--body); margin: 20px 0 0; font-size: 15.5px; }
.featured__link {
  margin-top: 36px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink);
  border-bottom: 1px solid var(--line); padding-bottom: 6px;
  transition: border-color .3s var(--ease), gap .3s var(--ease);
}
.featured__link:hover { border-color: var(--ink); gap: 20px; }

/* ---------- 여정(다크 타임라인) ---------- */

.journey { background: var(--dark); color: rgba(255, 255, 255, .72); padding: 108px 0 100px; }
.journey__title {
  text-align: center; color: #fff; font-weight: 300;
  font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.01em;
}
.journey__title em { font-style: normal; font-weight: 600; color: var(--bronze-pale); }
.journey__sub {
  text-align: center; margin: 18px auto 0; max-width: 560px;
  font-size: 14.5px; color: rgba(255, 255, 255, .55);
}

.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin: 62px 0 0; padding: 0; }
.step { text-align: center; padding: 0 8px; }
.step__no {
  display: block; font-family: var(--serif); font-size: 22px; font-weight: 400;
  color: rgba(255, 255, 255, .85); letter-spacing: .08em;
}
.step__dot { display: flex; align-items: center; height: 8px; margin: 20px 0 26px; }
.step__dot::before, .step__dot::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, .2); }
.step__dot i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.step:first-child .step__dot::before, .step:last-child .step__dot::after { background: transparent; }
.step__name {
  font-family: var(--sans); font-size: 11.5px; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase; color: #fff; line-height: 1.7;
}
.step__desc { margin: 14px 0 0; font-size: 13px; line-height: 1.9; color: rgba(255, 255, 255, .55); }
.journey__foot { margin-top: 64px; text-align: center; }

/* ---------- 카테고리 필터 ---------- */

.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px; margin-bottom: 44px;
  padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.chips { display: flex; flex-wrap: wrap; gap: 28px; }
.chip {
  padding: 6px 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); background: transparent; border: 0; border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.chip:hover { color: var(--ink); }
.chip:focus-visible { outline: 1px solid var(--bronze); outline-offset: 4px; }
.chip[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }

.search { position: relative; }
.search input {
  width: 250px; padding: 10px 14px 10px 30px; font: inherit; font-size: 13.5px;
  color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  transition: border-color .3s var(--ease);
}
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-bottom-color: var(--ink); }
.search svg { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* ---------- 목록 레이아웃 ---------- */

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 76px; align-items: start; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 44px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 36px; }

.card { display: flex; flex-direction: column; background: transparent; }
.card .cover { height: 260px; transition: opacity .4s var(--ease); }
.card a:hover .cover { opacity: .86; }
.card__body { padding: 22px 0 0; display: flex; flex-direction: column; flex: 1; }
.card__cat { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--bronze); }
.card h3 {
  font-family: var(--sans); letter-spacing: -.01em;
  font-size: 19px; font-weight: 500; line-height: 1.6; margin: 14px 0 0;
  transition: color .3s var(--ease);
}
.card:hover h3 { color: var(--bronze); }
.card__excerpt {
  margin: 12px 0 0; font-size: 14px; color: var(--muted); line-height: 1.85;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__meta {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft);
  display: flex; gap: 14px; font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--faint);
}
.card__meta span + span::before { content: '/'; margin-right: 14px; }

.empty { padding: 72px 20px; text-align: center; color: var(--muted); border: 1px solid var(--line); }
.empty strong { display: block; font-family: var(--serif); color: var(--ink); font-size: 20px; margin-bottom: 10px; font-weight: 400; }

.loadmore { margin-top: 64px; text-align: center; }

/* ---------- 사이드바 ---------- */

.side { display: flex; flex-direction: column; gap: 44px; position: sticky; top: 118px; }
.side__box { border-top: 1px solid var(--ink); padding: 22px 0 0; background: transparent; }
.side__box h4 {
  font-family: var(--sans); font-size: 10.5px; font-weight: 400;
  letter-spacing: .28em; text-transform: uppercase; color: var(--ink); margin: 0;
}

.ranks { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: rank; }
.ranks li { counter-increment: rank; border-bottom: 1px solid var(--line-soft); }
.ranks a { display: flex; gap: 16px; padding: 16px 0; transition: opacity .3s var(--ease); }
.ranks a:hover { opacity: .6; }
.ranks a::before {
  content: counter(rank, decimal-leading-zero);
  font-family: var(--serif); font-size: 13px; color: var(--bronze-soft); flex: none; padding-top: 3px;
}
.ranks strong { font-family: var(--serif); font-weight: 400; font-size: 14.5px; color: var(--ink); line-height: 1.65; }
.ranks small {
  display: block; margin-top: 6px; font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--faint);
}

.side-cta { background: var(--dark); border: 0; color: rgba(255, 255, 255, .7); padding: 40px 32px; }
.side-cta h4 {
  font-family: var(--serif); font-size: 22px; font-weight: 300; line-height: 1.5;
  letter-spacing: -.01em; text-transform: none; color: #fff;
}
.side-cta p { font-size: 13.5px; margin: 18px 0 26px; line-height: 1.9; }
.side-cta .btn { width: 100%; }
.side-cta__tel {
  display: block; margin-top: 22px; text-align: center;
  font-family: var(--serif); font-size: 28px; font-weight: 500; color: #fff; letter-spacing: .08em;
}
.side-cta__tel small {
  display: block; font-family: var(--sans); font-size: 9.5px; letter-spacing: .3em;
  text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 8px;
}

.taglist { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; }
.taglist a {
  font-size: 12.5px; color: var(--muted); padding: 3px 0;
  border-bottom: 1px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.taglist a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- 상담 (사진 + 폼 스플릿) ---------- */

.consult {
  display: grid; grid-template-columns: 1fr 1.12fr;
  background: var(--cream); border-top: 1px solid var(--line-soft);
}
.consult__photo { position: relative; overflow: hidden; background: var(--ink); }
.consult__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
  filter: grayscale(1) sepia(.24) contrast(1.04) brightness(1.02);
}
.consult__photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 48px;
  background: linear-gradient(180deg, rgba(20,17,14,0), rgba(20,17,14,.72));
  color: rgba(255, 255, 255, .82);
}
.consult__photo figcaption b {
  display: block; font-family: var(--serif); font-size: 24px; font-weight: 300; color: #fff;
  line-height: 1.5; margin-bottom: 10px;
}
.consult__photo figcaption span { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; }

.consult__panel { padding: 108px 72px; display: flex; align-items: center; }
.consult__inner { width: 100%; max-width: 560px; }
.consult__inner h2 { font-family: 'Noto Serif KR', Georgia, serif; font-size: clamp(28px, 3.6vw, 44px); font-weight: 400; line-height: 1.42; letter-spacing: -.015em; } /* 상담 헤드라인 명조 */
.consult__lead { margin: 0; font-size: 15px; color: var(--body); }
.consult__points { list-style: none; margin: 30px 0 44px; padding: 0; }
.consult__points li {
  position: relative; padding: 0 0 0 24px; margin-bottom: 10px;
  font-size: 14px; color: var(--ink); letter-spacing: -.005em;
}
.consult__points li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 10px; height: 1px; background: var(--bronze-soft);
}
.consult__note { margin-top: 34px; font-size: 12.5px; color: var(--muted); line-height: 1.9; }
.consult__note a { color: var(--ink); border-bottom: 1px solid var(--line); }

/* ---------- 폼 ---------- */

.form { background: transparent; padding: 0; border: 0; }
.form__step { display: none; }
.form__step.is-active { display: block; animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.form__progress { display: flex; gap: 10px; margin-bottom: 34px; }
.form__progress span { flex: 1; height: 1px; background: var(--stone); transition: background-color .4s var(--ease); }
.form__progress span.is-done { background: var(--ink); }
.form__stepno { font-size: 10px; letter-spacing: .3em; color: var(--bronze); text-transform: uppercase; }
.form h3 { font-size: 22px; font-weight: 300; margin: 14px 0 32px; }

.field { margin-bottom: 26px; }
.field > label {
  display: block; font-size: 10px; font-weight: 400; letter-spacing: .26em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.field > label .req { color: var(--bronze); margin-left: 6px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"],
.field select, .field textarea {
  width: 100%; padding: 10px 0; font: inherit; font-size: 15px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  transition: border-color .3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); font-weight: 300; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.8; }
.field select {
  appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 10px) 20px, calc(100% - 5px) 20px;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-bottom-color: #9c4b34; }
.field .err { display: none; margin-top: 8px; font-size: 11.5px; letter-spacing: .04em; color: #9c4b34; }
.field.has-error .err { display: block; }

/* 라디오 — 레퍼런스식 원형 선택 */
.choices { display: flex; flex-wrap: wrap; gap: 12px 36px; padding-top: 2px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--body); cursor: pointer;
  transition: color .3s var(--ease);
}
.choice span::before {
  content: ''; width: 13px; height: 13px; border-radius: 50%;
  border: 1px solid var(--line); flex: none;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.choice input:hover + span::before { border-color: var(--ink); }
.choice input:focus-visible + span::before { outline: 1px solid var(--bronze); outline-offset: 3px; }
.choice input:checked + span { color: var(--ink); }
.choice input:checked + span::before {
  border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 3px var(--cream);
}

.form__nav { display: flex; gap: 12px; margin-top: 40px; }
.form__nav .btn { flex: 1; }

.agree {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 10px;
}
.agree input { margin-top: 5px; accent-color: var(--ink); flex: none; }

.form__done { display: none; text-align: center; padding: 30px 10px; }
.form__done.is-active { display: block; animation: fade .5s var(--ease); }
.form__done .seal {
  width: 64px; height: 64px; margin: 0 auto 26px; display: grid; place-items: center;
  border: 1px solid var(--bronze-soft); color: var(--bronze); font-size: 24px; transform: rotate(45deg);
}
.form__done .seal i { transform: rotate(-45deg); font-style: normal; }
.form__done h3 { font-size: 26px; margin: 0 0 14px; font-weight: 300; }
.form__done p { color: var(--body); font-size: 14.5px; }
.form__done .tel {
  display: inline-block; margin-top: 26px; font-family: var(--serif); font-size: 24px;
  color: var(--ink); letter-spacing: .08em;
}

/* ---------- 아티클(본문) ---------- */

.article-head { background: var(--cream); border-bottom: 1px solid var(--line-soft); }
.article-head__inner { max-width: 780px; margin: 0 auto; padding: 108px 32px 76px; text-align: center; }
.article-head .eyebrow { display: inline-block; }
.article-head h1 { font-size: clamp(28px, 3.9vw, 46px); font-weight: 300; line-height: 1.45; margin: 18px 0 0; }
.article-head__meta {
  margin-top: 30px; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); display: flex; justify-content: center; flex-wrap: wrap; gap: 14px;
}
.article-head__meta span + span::before { content: '/'; margin-right: 14px; color: var(--faint); }

.article-cover { max-width: 980px; margin: -40px auto 0; position: relative; z-index: 2; padding: 0 32px; }
.article-cover .cover { height: 360px; }

.article { max-width: 740px; margin: 0 auto; padding: 72px 32px 20px; }
.article > p { font-size: 16.5px; line-height: 1.95; margin: 0 0 28px; }
.article h2 { font-size: 27px; font-weight: 400; margin: 62px 0 20px; }
.article h3 { font-size: 20px; font-weight: 400; margin: 40px 0 14px; }
.article ul, .article ol { margin: 0 0 28px; padding-left: 22px; }
.article li { margin-bottom: 10px; }
.article strong { color: var(--ink); font-weight: 500; }
.article a:not(.btn) { color: var(--ink); border-bottom: 1px solid var(--bronze-soft); }
.article a:not(.btn):hover { border-color: var(--ink); }
.article blockquote {
  margin: 42px 0; padding: 0 0 0 32px; border-left: 1px solid var(--bronze-soft);
  font-family: var(--serif); font-size: 20px; font-style: italic; line-height: 1.8; color: var(--ink);
}
.article blockquote p:last-child { margin-bottom: 0; }
.article figure.note { margin: 40px 0; padding: 30px 32px; border: 1px solid var(--line); background: var(--cream); }
.article figure.note b {
  display: block; font-family: var(--serif); font-weight: 400; color: var(--ink);
  margin-bottom: 12px; font-size: 17px;
}
.article figure.note p { margin: 0; font-size: 14.5px; }
.article table { width: 100%; border-collapse: collapse; margin: 34px 0; font-size: 14.5px; }
.article th, .article td { padding: 15px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.article th {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase; font-weight: 400;
  color: var(--muted); border-bottom-color: var(--line);
}

.article-tags { max-width: 740px; margin: 0 auto; padding: 24px 32px 0; }

.article-cta {
  max-width: 980px; margin: 68px auto 0; padding: 68px 40px;
  background: var(--dark); color: rgba(255, 255, 255, .7); text-align: center;
}
.article-cta h3 { color: #fff; font-size: clamp(24px, 2.8vw, 32px); font-weight: 300; }
.article-cta p { margin: 18px 0 34px; font-size: 14.5px; }

.article-nav {
  max-width: 980px; margin: 76px auto 0; padding: 0 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.article-nav > * { display: block; border-top: 1px solid var(--line); padding: 24px 0 0; transition: opacity .3s var(--ease); }
.article-nav a:hover { opacity: .6; }
.article-nav small { font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--bronze); }
.article-nav strong {
  display: block; margin-top: 12px; font-family: var(--serif); font-size: 17px;
  font-weight: 400; color: var(--ink); line-height: 1.6;
}
.article-nav .next { text-align: right; }
.article-nav .is-off { opacity: .3; pointer-events: none; }

/* ---------- 푸터 ---------- */

.site-footer { background: var(--dark); color: rgba(255, 255, 255, .55); padding: 92px 0 40px; font-size: 13px; }
.site-footer__top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.site-footer h5 {
  font-family: var(--sans); font-size: 9.5px; font-weight: 400; letter-spacing: .3em;
  text-transform: uppercase; color: #fff; margin: 0 0 22px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 12px; }
.site-footer a { transition: color .3s var(--ease); }
.site-footer a:hover { color: #fff; }
.site-footer .f-brand__logo { width: 210px; height: auto; filter: brightness(0) invert(1); opacity: .9; }
.site-footer .f-brand__name { font-family: var(--serif); font-size: 24px; color: #fff; letter-spacing: .12em; }
.site-footer .f-brand p { margin: 24px 0 0; line-height: 2; font-size: 13px; }
.site-footer .f-tel { font-family: var(--serif); font-size: 25px; color: #fff; letter-spacing: .08em; }
.site-footer .f-tel + p { margin-top: 12px; }
.site-footer__bottom {
  padding-top: 30px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .35);
}

/* ---------- 플로팅 상담 ---------- */

.floating {
  position: fixed; right: 28px; bottom: 28px; z-index: 50;
  display: flex; flex-direction: column; gap: 1px;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.floating.is-on { opacity: 1; transform: none; pointer-events: auto; }
.floating a {
  width: 62px; height: 62px; display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font-size: 10px; letter-spacing: .12em; text-align: center; line-height: 1.5;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.floating a:hover { background: var(--bronze); }
.floating a.is-gold { background: var(--bronze); }
.floating a.is-gold:hover { background: var(--ink); }

/* ============================================================
   모션 · 액션 요소
   히어로 보케 / 스크롤 진행선 / 섹션별 진입 연출
   ============================================================ */

/* ---------- 히어로 보케(빛망울) ---------- */

.sparkles { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }

.spark {
  --size: 24px;
  --blur: 2.2px;
  position: absolute; display: block;
  width: var(--size); height: var(--size); border-radius: 50%;
  /* 아웃포커스 빛망울 — 가운데가 부드럽고 테두리가 살짝 밝은 실제 보케 형태 */
  background: radial-gradient(circle at 50% 48%,
    rgba(255, 253, 246, 1) 0%,
    rgba(255, 242, 216, .90) 42%,
    rgba(255, 246, 224, .96) 72%,
    rgba(228, 198, 142, .55) 92%,
    rgba(212, 175, 95, 0) 100%);
  box-shadow: 0 0 calc(var(--size) * .85) rgba(255, 234, 196, .5);
  mix-blend-mode: screen;
  filter: blur(var(--blur));
  opacity: .45;
  animation: bokeh 9s var(--ease) infinite;
  will-change: opacity, transform;
}

/* 천천히 떠오르며 밝아졌다 사라지는 빛망울 */
@keyframes bokeh {
  0%, 100% { opacity: .10; transform: translate3d(0, 10px, 0) scale(.82); }
  22%      { opacity: .52; }
  50%      { opacity: .95; transform: translate3d(5px, -9px, 0) scale(1.08); }
  78%      { opacity: .46; }
}

/* 위치 · 크기 · 흐림 정도 (클수록 더 흐리게 = 더 멀리 있는 빛) */
.spark--1  { left: 62%; top: 12%; --size: 30px; --blur: 2.8px; animation-duration: 9.4s;  animation-delay: .2s; }
.spark--2  { left: 74%; top: 26%; --size: 17px; --blur: 1.6px; animation-duration: 7.2s;  animation-delay: 1.6s; }
.spark--3  { left: 92%; top: 14%; --size: 26px; --blur: 2.4px; animation-duration: 10.2s; animation-delay: 2.4s; }
.spark--4  { left: 55%; top: 6%;  --size: 14px; --blur: 1.3px; animation-duration: 7.8s;  animation-delay: .9s; }
.spark--5  { left: 84%; top: 8%;  --size: 21px; --blur: 2.1px; animation-duration: 9.0s;  animation-delay: 3.2s; }
.spark--6  { left: 88%; top: 62%; --size: 13px; --blur: 1.2px; animation-duration: 6.6s;  animation-delay: 2.8s; }
.spark--7  { left: 68%; top: 52%; --size: 18px; --blur: 1.8px; animation-duration: 10.6s; animation-delay: 1.9s; }
.spark--8  { left: 79%; top: 44%; --size: 11px; --blur: 1px;   animation-duration: 7.6s;  animation-delay: 4.4s; }
.spark--9  { left: 96%; top: 38%; --size: 20px; --blur: 2.2px; animation-duration: 9.8s;  animation-delay: .6s; }
.spark--10 { left: 58%; top: 84%; --size: 16px; --blur: 1.6px; animation-duration: 8.4s;  animation-delay: 3.8s; }
.spark--11 { left: 44%; top: 92%; --size: 24px; --blur: 2.6px; animation-duration: 11.0s; animation-delay: 2.1s; }
.spark--12 { left: 33%; top: 88%; --size: 12px; --blur: 1.1px; animation-duration: 7.0s;  animation-delay: 5.0s; }

/* ---------- 스크롤 진행선 ---------- */

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70;
  pointer-events: none; background: transparent;
}
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--bronze-soft), var(--bronze));
}

/* ---------- 웰컴: 숫자 카운트 (사진은 고정) ---------- */

.welcome__meta div strong { font-variant-numeric: tabular-nums; }

/* ---------- 대표 글: 커버 커튼 열림 ---------- */

html.js .featured .cover { clip-path: inset(0 100% 0 0); }
html.js .featured.is-in .cover { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease) .1s; }

/* ---------- 프로세스: 선이 그려지고 점이 켜진다 ---------- */

.step:nth-child(1) { --d: 0s; }
.step:nth-child(2) { --d: .16s; }
.step:nth-child(3) { --d: .32s; }
.step:nth-child(4) { --d: .48s; }
.step:nth-child(5) { --d: .64s; }

html.js .step__dot::before, html.js .step__dot::after {
  transform: scaleX(0);
  transition: transform .85s var(--ease) var(--d);
}
html.js .step__dot::before { transform-origin: right; }
html.js .step__dot::after  { transform-origin: left; }
html.js .steps.is-in .step__dot::before,
html.js .steps.is-in .step__dot::after { transform: scaleX(1); }

html.js .step__dot i {
  transform: scale(0);
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1) calc(var(--d) + .25s);
}
html.js .steps.is-in .step__dot i { transform: scale(1); }

html.js .step__no, html.js .step__name, html.js .step__desc {
  opacity: 0; transform: translateY(12px);
  transition: opacity .7s var(--ease) var(--d), transform .7s var(--ease) var(--d);
}
html.js .step__name { transition-delay: calc(var(--d) + .1s); }
html.js .step__desc { transition-delay: calc(var(--d) + .18s); }
html.js .steps.is-in .step__no,
html.js .steps.is-in .step__name,
html.js .steps.is-in .step__desc { opacity: 1; transform: none; }

/* 점 위에 은은하게 번지는 빛무리 */
.step__dot i { position: relative; }
.step__dot i::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  opacity: 0;
}
html.js .steps.is-in .step__dot i::after {
  animation: dotPulse 3.4s var(--ease) infinite;
  animation-delay: calc(var(--d) + .6s);
}
@keyframes dotPulse {
  0%   { opacity: .55; transform: scale(.6); }
  55%  { opacity: 0;   transform: scale(1.5); }
  100% { opacity: 0;   transform: scale(1.5); }
}

/* ---------- 저널 목록: 카드가 순서대로 올라온다 ---------- */

/* 그리드가 화면에 들어오기 전에는 카드를 감춰 둔다 (깜빡임 방지) */
html.js .grid.inview:not(.is-in) .card { opacity: 0; }
html.js .grid.is-in .card { animation: cardIn .85s var(--ease) both; }
html.js .grid.is-in .card:nth-child(1) { animation-delay: .02s; }
html.js .grid.is-in .card:nth-child(2) { animation-delay: .10s; }
html.js .grid.is-in .card:nth-child(3) { animation-delay: .18s; }
html.js .grid.is-in .card:nth-child(4) { animation-delay: .26s; }
html.js .grid.is-in .card:nth-child(5) { animation-delay: .34s; }
html.js .grid.is-in .card:nth-child(6) { animation-delay: .42s; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* 카드 hover — 안쪽 테두리가 벌어지고 제목이 살짝 밀린다 */
.cover::after { transition: inset .55s var(--ease), border-color .55s var(--ease); }
.card a:hover .cover::after,
.featured a:hover .cover::after { inset: 8px; border-color: rgba(255, 255, 255, .5); }
.card h3 { transition: color .3s var(--ease), transform .4s var(--ease); }
.card:hover h3 { transform: translateX(4px); }
.card__cat { transition: letter-spacing .4s var(--ease); }
.card:hover .card__cat { letter-spacing: .34em; }

/* 사이드바 인기글 — 번호가 앞으로 */
.ranks a::before { transition: color .3s var(--ease), transform .3s var(--ease); }
.ranks a:hover::before { color: var(--bronze); transform: translateX(3px); }

/* ---------- 상담: 사진이 아주 천천히 밀려든다 ---------- */

.consult__photo img { animation: kenburns 30s var(--ease) infinite alternate; will-change: transform; }
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

html.js .consult__photo figcaption { opacity: 0; transform: translateY(20px); }
html.js .consult__photo figcaption.is-in {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease) .2s, transform 1s var(--ease) .2s;
}

/* 상담 폼 — 입력 중인 줄에 밑줄이 그어진다 */
.field input[type="text"], .field input[type="tel"], .field input[type="email"] {
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size .45s var(--ease), border-color .3s var(--ease);
}
.field input[type="text"]:focus,
.field input[type="tel"]:focus,
.field input[type="email"]:focus { background-size: 100% 1px; }

/* ---------- 스크롤 진입 애니메이션 ---------- */

.reveal { opacity: 1; }
html.js .reveal { opacity: 0; transform: translateY(22px); }
html.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }

/* .inview 는 숨기지 않고, 화면에 들어오면 is-in 만 붙여 연출을 실행합니다 */
.inview { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal, html.js .reveal { opacity: 1; transform: none; }
  .hero__media img { animation: none; transform: none; }
  .btn--shine::after { opacity: 0 !important; }
  .spark { animation: none; opacity: .42; transform: none; }
  .consult__photo img { animation: none; transform: none; }
  html.js .featured .cover { clip-path: none; }
  html.js .grid.is-in .card { animation: none; }
  html.js .grid.inview:not(.is-in) .card { opacity: 1; }
  html.js .step__dot::before, html.js .step__dot::after { transform: scaleX(1); }
  html.js .step__dot i { transform: scale(1); }
  html.js .step__dot i::after { animation: none; opacity: 0; }
  html.js .step__no, html.js .step__name, html.js .step__desc { opacity: 1; transform: none; }
  html.js .consult__photo figcaption { opacity: 1; transform: none; }
}

/* ---------- 반응형 ---------- */

@media (max-width: 1280px) {
  .welcome__grid { gap: 56px; }
  .consult__panel { padding: 88px 56px; }
  .grid--3 { gap: 40px 28px; }
}

@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .side { position: static; flex-direction: row; flex-wrap: wrap; gap: 40px; }
  .side__box { flex: 1 1 280px; }
  .consult { grid-template-columns: 1fr; }
  .consult__photo img { height: 420px; }
  .consult__panel { padding: 76px 32px 92px; }
  .consult__inner { max-width: 620px; margin: 0 auto; }
  .featured { grid-template-columns: minmax(0, 1fr); }
  .featured .cover { min-height: 340px; }
  .featured__body { padding: 52px clamp(24px, 6vw, 56px) 60px; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcome__grid { grid-template-columns: 1fr; gap: 48px; }
  .welcome__figure img { aspect-ratio: 16 / 10; }
  .welcome__body { max-width: none; }
}

@media (max-width: 980px) {
  .nav, .header-cta .btn, .header-tel { display: none; }
  .nav-toggle { display: block; }
  .site-header__inner { height: 74px; }
  .brand__logo-img { height: 34px; }
  .hero__inner { padding: 136px 28px 116px; }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; margin-top: 44px; }
  .step {
    text-align: left; display: grid; grid-template-columns: 52px 1fr;
    align-items: baseline; gap: 0 14px;
    padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .12);
  }
  .step:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .step__dot { display: none; }
  .step__no { font-size: 18px; color: rgba(255, 255, 255, .5); }
  .step__desc { grid-column: 2; margin-top: 8px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 22px; }
  .section { padding: 76px 0; }
  .section--tight { padding: 56px 0; }
  .welcome { padding: 76px 0; }
  .journey { padding: 76px 0 68px; }
  /* 모바일: 사진 위쪽은 그대로 보여주고, 카피는 어두워지는 아래쪽에 앉힌다 */
  .hero { min-height: 92vh; align-items: flex-end; }
  .hero__media img { object-position: 64% 40%; transform-origin: 64% 45%; }
  .hero__media::after {
    background-image: linear-gradient(180deg,
      rgba(20, 17, 14, .52) 0%,
      rgba(20, 17, 14, .22) 22%,
      rgba(20, 17, 14, .50) 46%,
      rgba(20, 17, 14, .78) 72%,
      rgba(20, 17, 14, .90) 100%);
  }
  .hero__inner { padding: 180px 22px 76px; }
  .hero__name { font-size: clamp(38px, 13vw, 60px); }
  .hero__and { font-size: clamp(21px, 6.4vw, 30px); }
  .hero__lead { font-size: 18px; }
  .hero__rule { margin: 30px 0 24px; }
  .hero .eyebrow { font-size: 9.5px; letter-spacing: .22em; }
  .hero__facts span { font-size: 10px; letter-spacing: .16em; }
  .hero__cta { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 34px; }
  .hero__scroll { display: none; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .card .cover { height: 230px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search input { width: 100%; }
  .chips { overflow-x: auto; flex-wrap: nowrap; gap: 22px; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .chip { white-space: nowrap; }
  .side { flex-direction: column; }
  .featured__body { padding: 36px 22px 46px; }
  .grid--3 { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .consult__panel { padding: 62px 22px 78px; }
  .consult__photo img { height: 300px; }
  .consult__photo figcaption { padding: 32px 24px; }
  .form__nav { flex-direction: column-reverse; }
  .article-head__inner { padding: 92px 22px 60px; }
  .article { padding: 56px 22px 20px; }
  .article-cover { padding: 0 22px; }
  .article-cover .cover { height: 240px; }
  .article-cta { padding: 52px 24px; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav .next { text-align: left; }
  .site-footer__top { grid-template-columns: 1fr; gap: 36px; }
  .floating { right: 0; bottom: 0; flex-direction: row; width: 100%; gap: 0; }
  .floating a { flex: 1; height: 58px; }
}

/* =========================================================
   표준 구조용 블록 (2026-09-18 추가)
   원본 디자인 문법을 그대로 따른다 — 라운드·그림자 없이 1px 헤어라인,
   브론즈는 작은 라벨에만. 새 색을 만들지 않고 기존 토큰만 쓴다.
   ========================================================= */

/* 현재 위치 */
.crumb { max-width: 1240px; margin: 0 auto; padding: 28px 32px 0; font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.crumb a { color: var(--muted); border-bottom: 1px solid transparent; }
.crumb a:hover { color: var(--ink); border-bottom-color: var(--line); }
.crumb span[aria-hidden] { margin: 0 8px; color: var(--faint); }

/* 핵심 요약 — AI 개요가 통째로 인용해 가는 자리라 글 맨 위에 둔다 */
.article .answer { margin: 0 0 44px; padding: 30px 32px; border: 1px solid var(--line); background: var(--cream); }
.article .answer__label {
  margin: 0 0 16px; font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--bronze); font-weight: 500;
}
.article .answer p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.85; }
.article .answer p:last-child { margin-bottom: 0; }
.article .answer__toc-label {
  margin: 24px 0 10px; padding-top: 20px; border-top: 1px solid var(--line-soft);
  font-size: 10.5px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase;
}
.article .answer__toc { margin: 0; padding-left: 20px; font-size: 14px; }
.article .answer__toc li { margin-bottom: 7px; }
.article .answer__toc a { color: var(--body); border-bottom: 1px solid transparent; }
.article .answer__toc a:hover { color: var(--ink); border-bottom-color: var(--bronze-soft); }

/* 정의문(직답) — 「○○란 무엇인가」에 한 문장으로 답하는 블록 */
.article .def {
  margin: 0 0 28px; padding: 24px 28px; border-left: 2px solid var(--bronze);
  background: var(--cream); font-size: 16px; line-height: 1.9; color: var(--ink);
}

/* 머리의 질문 세 줄 */
.article .lead-qs { margin: 0 0 22px; }
.article .lead-q {
  margin: 0 0 8px; font-family: var(--serif); font-size: 17px; line-height: 1.75;
  color: var(--ink-soft);
}

/* 표 가로 스크롤 (좁은 화면) */
.article .tablewrap { overflow-x: auto; margin: 34px 0; }
.article .tablewrap table { margin: 0; min-width: 480px; }

/* 자주 묻는 질문 — 화면과 FAQPage 스키마가 글자까지 같아야 한다 */
.article .faq { margin: 8px 0 40px; border-top: 1px solid var(--line); }
.article .faq__item { border-bottom: 1px solid var(--line); }
.article .faq__item summary {
  list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative;
  font-family: var(--serif); font-size: 16.5px; line-height: 1.7; color: var(--ink);
}
.article .faq__item summary::-webkit-details-marker { display: none; }
.article .faq__item summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 18px; color: var(--bronze); transition: transform .3s var(--ease);
}
.article .faq__item[open] summary::after { content: '−'; }
.article .faq__a { padding: 0 36px 24px 0; }
.article .faq__a p { margin: 0; font-size: 15px; line-height: 1.9; color: var(--body); }

/* 출처 표기 — 수치를 쓴 문장 뒤에 붙는다 */
.article .src { display: inline-block; margin-left: 6px; font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.article .chk { display: inline-block; padding: 1px 7px; background: var(--bronze-pale); font-size: 12px; }

/* 글 하단 안내 문구 */
.article .disclaimer {
  margin: 44px 0 0; padding-top: 22px; border-top: 1px solid var(--line-soft);
  font-size: 13px; line-height: 1.8; color: var(--muted);
}

/* 스팸 봇 유인 필드 — 사람에게는 보이지 않는다 */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 검은 CTA 박스가 페이지의 마지막 요소일 때만 아래 여백을 준다 (2026-09-18).
   🚨 글 페이지에서는 뒤에 이전/다음(.article-nav)과 관련 글이 붙어 여백이 이미 있다.
      `.article-cta` 에 그냥 margin-bottom 을 주면 그쪽이 두 배로 벌어진다.
      소개·FAQ·카테고리처럼 CTA 가 끝인 페이지에서만 푸터와 붙는 것이 문제였다
      — 둘 다 var(--dark) 라 한 덩어리로 보인다. */
main > .article-cta:last-child { margin-bottom: 110px; }

@media (max-width: 720px) {
  main > .article-cta:last-child { margin-bottom: 72px; }
}

/* 같은 이유로, CTA 없이 본문이나 상담 폼으로 끝나는 페이지도 푸터와 붙는다.
   privacy(개인정보처리방침) · contact(상담 폼) 가 여기 해당한다. */
main > .article:last-child { padding-bottom: 110px; }
main > .consult:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  main > .article:last-child { padding-bottom: 72px; }
}

/* CTA 박스 — 검정에서 오프화이트로 (2026-09-18 사용자 제안).
   🚨 원래 var(--dark) 였는데 푸터와 같은 색이라 검정이 두 번 반복됐다.
      원본 디자인 규칙(잉크블랙·오프화이트·브론즈 3색 / 브론즈는 작은 라벨에만 /
      라운드·그림자 없이 1px 헤어라인)에 맞춰 오프화이트 + 헤어라인으로 바꾼다.
      버튼(.btn--primary)은 잉크 배경이라 크림 위에서 대비가 충분하고,
      호버에서 브론즈로 바뀌며 포인트색이 «작게» 들어간다. */
.article-cta {
  background: var(--cream-deep);
  color: var(--body);
  border: 1px solid var(--line);
}
.article-cta h3 { color: var(--ink); }
.article-cta p { color: var(--body); }

/* 제목 블록 안의 리드 문장 — h1 바로 아래 (2026-09-18).
   `.article-head__inner` 는 가운데 정렬이라 폭을 줄여 두 줄 안쪽으로 떨어지게 한다. */
.article-head__lead {
  max-width: 620px; margin: 22px auto 0;
  font-size: 15.5px; line-height: 1.9; color: var(--body);
}

/* 밝은 배경용 스텝 타임라인 (2026-09-18).
   🚨 새 아이콘을 만들지 않고 홈 저니 섹션의 `.steps` 컴포넌트를 그대로 쓴다 —
      원본 디자인이 「라운드·그림자 없이 1px 헤어라인」이라 픽토그램을 얹으면 톤이 깨진다.
      번호 + 점 + 연결선이 이 사이트의 «아이콘»이다. 색만 밝은 배경용으로 뒤집는다. */
.article .steps { padding-left: 0; margin: 44px 0 36px; }
.steps--light { grid-template-columns: repeat(4, 1fr); }
.steps--light .step__no { color: var(--bronze); }
.steps--light .step__dot::before,
.steps--light .step__dot::after { background: var(--line-2); }
.steps--light .step__dot i { background: var(--ink); }
.steps--light .step__dot i::after { border-color: rgba(22, 19, 15, .22); }
.steps--light .step__name { color: var(--ink); }
.steps--light .step__desc { color: var(--body); }
.article .steps--light .step { margin-bottom: 0; }

@media (max-width: 860px) {
  .steps--light { grid-template-columns: 1fr; }
  .steps--light .step__no { color: var(--bronze); font-size: 18px; }
}

/* 스텝 타임라인 간격 확대 (2026-09-18 사용자 요청).
   블록 위아래 · 칸 사이 · 번호↔점↔이름↔설명 세로 간격을 모두 키운다. */
.article .steps--light { margin: 68px 0 58px; column-gap: 14px; }
.steps--light .step { padding: 0 18px; }
.steps--light .step__dot { margin: 28px 0 34px; }
.steps--light .step__name { line-height: 1.8; }
.steps--light .step__desc { margin-top: 18px; line-height: 2.05; }

@media (max-width: 860px) {
  .article .steps--light { margin: 48px 0 42px; row-gap: 30px; }
  .steps--light .step { padding: 0; }
}

/* 본문 정렬 정리 (2026-09-18)
   ① 제목 띠와 본문의 글 폭을 맞춘다 — 780 / 740 으로 달라 좌우 끝선이 어긋났다
   ② 본문이 제목으로 시작할 때 위 여백이 겹쳐 134px 구멍이 생기던 것을 줄인다
      (.article 의 padding-top 72 + h2 의 margin-top 62)
   ③ 목록 들여쓰기를 줄여 제목·문단과 왼쪽 끝선을 가깝게 둔다 */
.article-head__inner { max-width: 740px; }

.article > h2:first-child,
.article > h3:first-child { margin-top: 0; }

.article ul, .article ol { padding-left: 18px; }
.article li { padding-left: 2px; }
.article li + li { margin-top: 12px; }

/* 목록 바로 앞 문단은 붙여서 한 덩어리로 읽히게 */
.article p + ul, .article p + ol { margin-top: -12px; }

/* 가운데 정렬 유틸 — 본문 안에서 부분적으로 쓴다 (2026-09-18). */
.article .ctr { text-align: center; }
.article h2.ctr { margin-bottom: 8px; }
.article p.ctr { max-width: 560px; margin-left: auto; margin-right: auto; line-height: 2; }

/* 제목 띠 바로 다음 섹션의 위 여백 정리 (2026-09-18).
   🚨 `.section`(118px) + `.article`(72px) 이 겹쳐 크림 띠와 첫 문단 사이가 190px 였다.
      카테고리 페이지에서 화면 한 장이 비어 보이던 원인. */
.article-head + .section { padding-top: 0; }
.article-head + .section > .wrap > .article { padding-top: 56px; }

@media (max-width: 720px) {
  .article-head + .section > .wrap > .article { padding-top: 40px; }
}

/* 고정 페이지도 카테고리와 같은 간격으로 (2026-09-18).
   buildStatic 은 `.article-head` 다음에 `.article` 을 바로 붙인다. */
.article-head + .article { padding-top: 56px; }

@media (max-width: 720px) {
  .article-head + .article { padding-top: 40px; }
}

/* 가운데 정렬하되 폭은 본문 그대로 두는 변형 (2026-09-18).
   `.article p.ctr` 은 560px 로 좁히는데, 긴 안내 문단은 그러면 너무 여러 줄이 된다. */
.article p.ctr--wide { max-width: none; }

/* 헤더 메뉴 위치 (2026-09-18 사용자 요청 — 오른쪽으로 조금).
   🚨 헤더에서 전화번호와 「무료 상담」 버튼을 빼면서 오른쪽 칸이 비어,
      space-between 상태로는 메뉴가 가운데 왼쪽에 떠 보였다.
      `margin-left:auto` 로 오른쪽에 붙이되 가장자리에서 조금 떼어 둔다.
   ⚠️ 981px 이상(데스크톱)에만 건다 — 좁은 화면은 메뉴가 숨고 햄버거만 남는다. */
@media (min-width: 981px) {
  .site-header__inner .nav { margin-left: auto; margin-right: 56px; }
}
