@charset "UTF-8";
/* 순천웨딩 Knowledge Hub — 웨디아순천점
   에디토리얼 모노크롬. 크림지(#fbf9f3) ↔ 페이퍼(#fff) 교대, 잉크(#1e1e1e) 한 색.
   그림자 없음. 카드·이미지 radius 0, 버튼만 20px. */

/* ── 한글 줄바꿈 전역 규칙 (필수) ───────────────────────── */
body, p, h1, h2, h3, h4, h5, h6, li, td, th, a, span, div, button {
  word-break: keep-all;
  overflow-wrap: break-word;
}

:root {
  --ink: #1e1e1e;
  --paper: #ffffff;
  --cream: #fbf9f3;
  --line: #e5e2d9;

  /* 배경 밝기에 따라 이 두 변수만 골라 쓴다. 색을 개별 클래스에 하드코딩하지 않는다. */
  --text-on-light: #1a1a1a;
  --text-on-dark: #ffffff;
  --muted-on-light: #5a5a5a;
  --muted-on-dark: #d6d2c8;

  /* 라틴과 한글을 일부러 갈라 쓴다. 앞선 폰트에 없는 글자만 다음으로 넘어가는
     per-glyph 폴백을 이용해, 라틴은 에디토리얼 세리프로 한글은 조선명조로 그린다.
     조선명조를 앞에 두면 라틴까지 명조 라틴으로 그려져 갤러리 톤이 죽는다. */
  --font-display: 'Instrument Serif', 'Chosunilbo', 'Noto Serif KR', 'Times New Roman', serif;

  /* 커커·라벨용 와이드 그로테스크. 한글은 원티드산스로 떨어진다. */
  --font-ui: 'Archivo', 'Wanted Sans Variable', 'Wanted Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: 'Archivo', 'Wanted Sans Variable', 'Wanted Sans', -apple-system, BlinkMacSystemFont, system-ui, 'Malgun Gothic', sans-serif;

  /* 인터페이스 목소리. 코딩용 JetBrains Mono 보다 획이 정제된 DM Mono 를 쓴다.
     DM Mono 에 한글이 없어 버튼 라벨이 임의의 시스템 모노로 떨어지므로
     원티드산스를 바로 뒤에 둬서 한글만 받아 준다. */
  --font-mono: 'DM Mono', 'Wanted Sans Variable', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1360px;
  --sec-gap: 132px;   /* 여백이 이 시스템의 주 구조재다. 구분선 대신 공간으로 나눈다 */
  --gap: 20px;
  --pad-x: 48px;      /* 좌우 여백도 넉넉히 — 본문이 화면 가장자리에 붙지 않게 한다 */
  --dp-radius: 20px;
}

/* 조선명조(조선일보명조체) — 웹폰트. 단일 웨이트라 400/500 모두 이 파일을 쓴다. */
@font-face {
  font-family: 'Chosunilbo';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_one@1.0/Chosunilbo_myungjo.woff') format('woff');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-on-light);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--text-on-dark);
  padding: 12px 20px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad-x); }
.wrap.narrow { max-width: 720px; }   /* 읽기 폭은 오히려 좁혀 행 길이를 지킨다 */

/* ── 타이포 ─────────────────────────────────────────── */
/* 잡지 department header. mono 가 아니라 와이드 그로테스크다 */
.kicker {
  margin: 0 0 22px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  font-stretch: 112%;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-on-light);
}
.sec-ink .kicker { color: var(--muted-on-dark); }

.h-xl, .h-lg, .h-md {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;   /* 한글 기준. 라틴 -0.05em 을 그대로 쓰면 자간이 붕괴한다 */
  margin: 0 0 44px;
  line-height: 1.12;
}
.h-xl { font-size: clamp(46px, 10vw, 152px); line-height: 1.0; }
.h-lg { font-size: clamp(31px, 5.2vw, 54px); }
.h-md { font-size: clamp(23px, 3vw, 34px); margin-top: 72px; }

.lead { font-size: 20px; line-height: 1.85; margin: 0 0 8px; max-width: 46ch; }
.sec p { margin: 0 0 30px; max-width: 66ch; }   /* 행 길이를 묶어 두면 여백이 저절로 생긴다 */
.sec p.center { text-align: center; margin-left: auto; margin-right: auto; }
.sec p.btn-row, .sec p.kicker, .sec p.lead-xl { max-width: none; }
.sec .btn-row { margin: 56px 0 0; }             /* .sec p 가 특이도로 이기므로 같은 수준으로 맞춘다 */

/* ── 섹션 ───────────────────────────────────────────── */
.sec { padding: var(--sec-gap) 0; }
.sec-cream { background: var(--cream); color: var(--text-on-light); }
.sec-paper { background: var(--paper); color: var(--text-on-light); }
.sec-ink   { background: var(--ink);   color: var(--text-on-dark); }
.sec-ink a { color: var(--text-on-dark); }

/* ── 버튼 ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 9px 18px 8px;
  border: 1px solid var(--ink);
  border-radius: var(--dp-radius);
  background: var(--ink);
  color: var(--text-on-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .3px;
  text-decoration: none;
  transition: opacity .2s ease;
}
.btn-ghost { background: transparent; color: var(--text-on-light); }
.sec-ink .btn { background: var(--paper); color: var(--text-on-light); border-color: var(--paper); }
.sec-ink .btn-ghost { background: transparent; color: var(--text-on-dark); border-color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 56px 0 0; }
.btn:active { opacity: .7; }

/* ── 헤더 ───────────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
}
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.hdr-logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1.2; }
.hdr-logo-1 { font-family: var(--font-display); font-size: 19px; }
.hdr-logo-2 { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; color: var(--muted-on-light); }
.hdr-nav { display: flex; gap: 26px; }
.hdr-nav a { text-decoration: none; font-size: 15px; }
/* 햄버거 — 빈 <span> 없이 배경과 의사요소로 3줄을 그린다 */
.hdr-burger {
  display: none; position: relative;
  width: 40px; height: 40px;
  border: 0; cursor: pointer; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) center / 22px 2px no-repeat;
}
.hdr-burger::before, .hdr-burger::after {
  content: ''; position: absolute; left: 9px;
  width: 22px; height: 2px; background: currentColor;
}
.hdr-burger::before { top: 12px; }
.hdr-burger::after { bottom: 12px; }
.mob-nav { display: none; flex-direction: column; background: var(--cream); }
.mob-nav a { padding: 14px 24px; text-decoration: none; border-top: 1px solid var(--line); }
.mob-nav.open { display: flex; }

/* ── 브레드크럼 ─────────────────────────────────────── */
.crumb { padding-top: 24px; padding-bottom: 0; font-size: 13px; color: var(--muted-on-light); }
.crumb a { text-decoration: none; }
.crumb span { margin: 0 6px; }
.crumb-now { color: var(--text-on-light); }

/* ── 히어로 (영상) ──────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;          /* 정중앙이 아니라 하단에 앉힌다 — 타이틀 카드 구성 */
  height: 92svh; min-height: 540px;
  overflow: hidden;
  background: var(--ink);
}
.hero-media { position: absolute; inset: 0; }
.hero-poster, .hero-frame {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;
  min-width: 178svh; min-height: 100%;
  border: 0;
  transform: translate(-50%, -50%) scale(1.35); /* 유튜브 타이틀·워터마크를 화면 밖으로 밀어낸다 */
}
.hero-poster { object-fit: cover; transition: opacity .6s ease; }
.hero-frame { opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.hero.is-playing .hero-poster { opacity: 0; }
.hero.is-playing .hero-frame { opacity: 1; }

/* 사진 전체를 덮는 스크림은 쓰지 않는다. 타입이 앉는 하단만 눌러
   밝은 프레임에서도 글자가 읽히게 한다 — 가독성은 양보하지 않는 항목이다. */
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  background: linear-gradient(to top, rgba(16,16,16,.78) 0%, rgba(16,16,16,.42) 42%, rgba(16,16,16,0) 100%);
  pointer-events: none;
}

.hero-in {
  position: relative; z-index: 1;
  width: 100%;
  padding-bottom: 118px;   /* line-height .9 로 글리프가 상자를 넘치므로 아래를 넉넉히 */
  display: grid;
  grid-template-columns: 1fr auto;   /* 타입 좌측 · 메타 우측 하단 */
  align-items: end;
  gap: 48px;
  color: var(--text-on-dark);
}
.hero-type .kicker { color: rgba(255,255,255,.78); margin-bottom: 26px; }

/* 페이지에서 유일하게 이만큼 커도 되는 요소 */
.h-hero {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(54px, 12.5vw, 184px);
  line-height: .92;
  letter-spacing: -0.045em;
  padding-bottom: .06em;   /* 받침 글자가 잘리지 않게 */
}

.hero-meta { text-align: right; padding-bottom: 34px; max-width: 26ch; }
.hero-sub { font-size: 16px; line-height: 1.7; margin: 0 0 18px; color: rgba(255,255,255,.92); }
.hero-note { font-family: var(--font-mono); font-size: 12px; line-height: 1.7; letter-spacing: .02em; margin: 0; color: rgba(255,255,255,.66); }

/* 얇은 세로선 — 아래에 더 있다는 유일한 그래픽 신호 */
.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; z-index: 1;
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.85));
  overflow: hidden;
}
.js .hero-scroll::after {
  content: ''; position: absolute; left: 0; top: -52px;
  width: 1px; height: 52px; background: var(--paper);
  animation: scroll-drop 2.6s var(--ease-out) infinite;
}
@keyframes scroll-drop {
  0%   { transform: translateY(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(104px); opacity: 0; }
}

/* 텍스트 전용 히어로 (하위 페이지) — 영상 히어로와 같은 하단 좌측 리듬을 따른다 */
.hero-text { background: var(--cream); padding: 136px 0 118px; }
.js .hero-text .kicker, .js .hero-text h1, .js .hero-text .lead { animation: hero-rise 1s var(--ease-out) both; }
.js .hero-text h1 { animation-delay: .1s; }
.js .hero-text .lead { animation-delay: .22s; }
/* 21개 세부페이지 전부 히어로+바로 다음 섹션이 wrap.narrow(720px)라, 넓은 데스크탑에서
   가운데에 작은 덩어리로 몰려 보인다. 본문 요소는 이미 ch 단위로 자체 폭 제한이 있어
   (.lead 46ch, .lead-xl 38ch, .sec p 66ch) 컨테이너를 넓혀도 줄바꿈엔 영향이 없다. */
.hero-text .wrap.narrow,
.hero-text + section .wrap.narrow { max-width: var(--wrap); }

/* ── 그리드 (인라인 style 금지 — 반드시 이 클래스로) ── */
.dp-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 0 0 48px; }
.dp-g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; margin: 0 0 48px; }
.dp-stat3 {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 32px; text-align: center; align-items: center;
  /* 같은 섹션 안의 글 블록과 붙지 않게 — 섹션 패딩이 없는 자리라 직접 띄운다 */
  margin-top: clamp(72px, 9vw, 132px);
}
.dp-split { display: grid; grid-template-columns: 35fr 65fr; gap: 96px; align-items: start; }

/* ── 갤러리 5분할 (첫 장을 크게 앉힌 모자이크) ───────── */
.gallery-5 { display: grid; grid-template-columns: repeat(4,1fr); grid-auto-rows: 140px; gap: 12px; }
.gallery-5 figure { margin: 0; overflow: hidden; grid-column: span 1; grid-row: span 2; }
.gallery-5 figure:first-child { grid-column: span 2; grid-row: span 4; }
.gallery-5 img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 720px) {
  .gallery-5 { grid-template-columns: repeat(2,1fr); grid-auto-rows: 120px; }
  .gallery-5 figure, .gallery-5 figure:first-child { grid-column: span 1; grid-row: span 2; }
  .gallery-5 figure:first-child { grid-column: span 2; grid-row: span 3; }
}

/* ── 카드 ───────────────────────────────────────────── */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 34px 30px;
}
.sec-paper .card { background: var(--cream); }
.card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 400; margin: 0 0 10px; }
.card p { font-size: 16px; margin: 0; color: var(--muted-on-light); }
.card-link { text-decoration: none; display: block; transition: border-color .2s ease; }

.card-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.badge {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .3px;
  padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--dp-radius);
  color: var(--muted-on-light);
}

/* ── 하이라이트 / 주의 박스 ─────────────────────────── */
.box { padding: 32px 34px; border-left: 2px solid var(--ink); background: var(--cream); margin: 52px 0 52px; max-width: 74ch; }
.sec-cream .box { background: var(--paper); }
.box-warn { border-left-color: #8a5a2b; }
.box h3 { font-size: 17px; margin: 0 0 8px; font-family: var(--font-body); font-weight: 600; }
.box p { margin: 0; font-size: 16px; }

/* ── 체크리스트 ─────────────────────────────────────── */
.checks { list-style: none; margin: 0 0 52px; padding: 0; }
.checks li { position: relative; padding: 15px 0 15px 32px; border-bottom: 1px solid var(--line); font-size: 16px; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 22px;
  width: 14px; height: 14px; border: 1.5px solid var(--ink);
}

/* ── 표 ─────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 0 0 60px; }
caption { text-align: left; caption-side: top; padding: 0 0 18px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 20px 18px 20px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-mono); font-size: 12px; letter-spacing: .3px; text-transform: uppercase; white-space: nowrap; }

/* ── 프로세스 / 타임라인 ────────────────────────────── */
.proc-list { display: flex; list-style: none; margin: 0 0 76px; padding: 0; }
.proc-step { flex: 1; position: relative; padding: 0 12px; text-align: center; }
.proc-step:not(:last-child)::after {
  content: ''; position: absolute; top: 24px; left: 50%;
  width: 100%; height: 2px; background: var(--line); z-index: 0;
}
.proc-num {
  position: relative; z-index: 1; margin: 0 auto 20px;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--text-on-dark);
  font-family: var(--font-mono); font-size: 14px;
}
.proc-step p { font-size: 15px; margin: 0; }

.tl { list-style: none; margin: 0 0 56px; padding: 0; border-left: 1px solid var(--line); }
.tl li { position: relative; padding: 0 0 42px 34px; }
.tl li::before {
  content: ''; position: absolute; left: -5px; top: 9px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--ink);
}
.tl h3 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .5px; margin: 0 0 6px; }
.tl p { font-size: 16px; margin: 0; }

/* ── FAQ 아코디언 ───────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 26px 44px 26px 0; position: relative;
  font-family: var(--font-body); font-size: 17px; color: inherit; line-height: 1.6;
}
.faq-q::after {
  content: '+'; position: absolute; right: 8px; top: 18px;
  font-family: var(--font-mono); font-size: 20px;
}
.faq-item.open .faq-q::after { content: '\2212'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { font-size: 16px; margin: 0 0 20px; color: var(--muted-on-light); }

/* ── 웨디아 카드 (광고 배너 아님 — 정보형 카드) ────── */
.wedia {
  border: 1px solid var(--ink);
  padding: 40px;
  background: var(--paper);
  margin: 0 0 24px;
}
.sec-paper .wedia { background: var(--cream); }
/* 이미지는 radius 0 · 컨테이너 꽉 채움 · 오버레이 없음.
   aspect-ratio 고정으로 로드 전에도 자리를 잡아 CLS 를 만들지 않는다. */
.wedia-img, .fig-img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 0; margin: 0 0 20px; background: var(--cream);
}
/* 세로 화보컷은 4:3으로 강제 크롭하면 얼굴이 잘린다 — 원본 비율에 가깝게 둔다 */
.fig-img.is-portrait { aspect-ratio: 3 / 4; }
/* .fig — 본문 중간에 끼워 넣는 사진 한 장. 본문 흐름을 끊는 "에디토리얼 브레이크"로 다룬다 —
   위아래 룰선 + 넉넉한 여백으로 문단 사이에 그냥 끼워 넣은 것처럼 보이지 않게 한다.
   wrap(1360px)·wrap narrow(720px) 어디에 놓여도 크기가 늘어나지 않도록 상한을 둔다. */
.fig {
  max-width: 460px; margin: 48px 0;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.fig figcaption {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .3px;
  color: var(--muted-on-light); margin-top: 14px;
}
.fig figcaption::before { content: '— '; }
.sec-ink .fig { border-top-color: rgba(255,255,255,.18); }
.sec-ink .fig figcaption { color: var(--muted-on-dark); }
@media (min-width: 900px) {
  .fig { max-width: 520px; margin: 64px 0; }
}

.wedia h3 { font-family: var(--font-display); font-size: 25px; font-weight: 400; margin: 0 0 12px; }
.wedia p { font-size: 16px; margin: 0 0 18px; }
.wedia-why { list-style: none; margin: 0 0 20px; padding: 0; }
.wedia-why li { font-size: 15px; padding: 5px 0 5px 18px; position: relative; color: var(--muted-on-light); }
.wedia-why li::before { content: '—'; position: absolute; left: 0; }

/* ── 관련 페이지 ────────────────────────────────────── */
.rel-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.rel-card { border: 1px solid var(--line); padding: 30px 26px; text-decoration: none; display: block; }
.rel-card .kicker { margin-bottom: 8px; }
.rel-card strong { font-family: var(--font-display); font-size: 19px; font-weight: 400; display: block; }

.sm-block { margin: 0 0 48px; }
.sm-block .checks a { text-decoration: none; }

/* 도입부 리드 — 인용문처럼 다룬다. 왼쪽 룰선이 '이 문단이 핵심 요약이다'를
   라벨 없이도 드러낸다(.box와 같은 언어: border-left 2px solid ink). */
.lead-xl {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.1vw, 28px);
  line-height: 1.6;
  letter-spacing: -0.012em;
  max-width: 38ch;
  margin: 0 0 52px;
  padding-left: 28px;
  border-left: 2px solid var(--ink);
}
.sec .lead-xl { max-width: 38ch; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a {
  font-family: var(--font-mono); font-size: 12px; text-decoration: none;
  padding: 6px 13px; border: 1px solid var(--line); border-radius: var(--dp-radius);
}


/* ── 읽기 진행 표시 ─────────────────────────────────
   구분선이 아니라 상태 표시다. 헤더 바로 아래 1px. */
.progress {
  position: fixed; left: 0; top: 0; z-index: 60;
  height: 2px; width: 0; background: var(--ink);
  transition: width .12s linear;
}

/* ── 목차 레일 ──────────────────────────────────────
   섹션 안에 넣으면 그 구간을 벗어날 때 sticky 가 풀린다.
   전체 문서를 따라와야 하므로 화면에 고정한다. 폭이 좁으면 감춘다. */
.toc {
  position: fixed; left: 16px; top: 50%; transform: translateY(-50%);
  width: 44px;              /* 폭을 고정해야 본문 좌측 여백을 침범하지 않는다 */
  z-index: 40; display: none;
  opacity: 0; transition: opacity .5s var(--ease);
  pointer-events: none;
}
.toc.show { opacity: 1; pointer-events: auto; }
.toc-h { position: absolute; left: -9999px; }   /* 화면에는 안 보이되 스크린리더는 읽는다 */
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.toc li { height: 12px; display: flex; align-items: center; }
.toc a {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--muted-on-light);
  font-family: var(--font-ui); font-size: 11px; letter-spacing: .06em;
}
.toc a::before {   /* 눈금 — 활성 항목만 길어진다 */
  content: ''; display: block; width: 14px; height: 1px;
  background: currentColor; opacity: .45;
  transition: width .4s var(--ease-out), opacity .4s var(--ease);
}
.toc-label {
  max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  transition: max-width .45s var(--ease-out), opacity .35s var(--ease);
}
.toc a.on::before { width: 30px; opacity: 1; }
.toc a.on { color: var(--text-on-light); }


@media (min-width: 1400px) { .toc { display: block; } }

/* ── 비대칭 반전 — 레이아웃이 항상 같은 쪽으로 기울지 않게 ── */
.dp-split.rev { grid-template-columns: 65fr 35fr; }
.dp-split.rev > *:first-child { order: 2; }
.dp-split.rev > *:last-child { order: 1; }

/* ── 패럴랙스 — translateY 만. 가로 이동은 쓰지 않는다 ── */
.js .par { will-change: transform; }

/* ── 푸터 ───────────────────────────────────────────── */
.ft { background: var(--ink); color: var(--text-on-dark); padding: 104px 0 120px; }
.ft a { color: var(--text-on-dark); text-decoration: none; }
.ft-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.ft-col { min-width: 0; }
.ft-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 18px; color: var(--muted-on-dark); }
.ft-dl { margin: 0; font-size: 14px; line-height: 1.9; }
.ft-dl dt { display: inline; color: var(--muted-on-dark); }
.ft-dl dt::after { content: ' '; }
.ft-dl dd { display: inline; margin: 0; }
.ft-dl dd::after { content: ''; display: block; }
.ft-ul { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 2.1; }
.ft-copy { max-width: var(--wrap); margin: 48px auto 0; padding: 0 24px; font-family: var(--font-mono); font-size: 11px; color: var(--muted-on-dark); }

/* ── 플로팅 / 모바일 바 ─────────────────────────────── */
.float-cta {
  position: fixed; right: 28px; bottom: 28px; z-index: 40;
  background: var(--ink); color: var(--text-on-dark);
  padding: 13px 22px; border-radius: var(--dp-radius);
  font-family: var(--font-mono); font-size: 12px; text-decoration: none;
}
.mob-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--ink); }
.mob-bar-btn { display: block; padding: 19px; text-align: center; color: var(--text-on-dark); text-decoration: none; font-size: 16px; }

/* ── 모션 ───────────────────────────────────────────
   Fade / Slide / Hover 만 쓴다. translateX 는 뷰포트를 넘겨
   가로 스크롤을 유발하므로 어디에서도 쓰지 않는다. */
:root {
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* 기본 리빌 — 아래에서 올라오며 페이드 */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* 자식 요소를 차례로 — 카드 그리드용 */
.js .stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2) { transition-delay: .09s; }
.stagger.in > *:nth-child(3) { transition-delay: .18s; }
.stagger.in > *:nth-child(4) { transition-delay: .27s; }
.stagger.in > *:nth-child(5) { transition-delay: .36s; }
.stagger.in > *:nth-child(6) { transition-delay: .45s; }

/* 헤드라인 마스크 리빌 — 활자가 아래에서 밀려 올라온다. 가장 에디토리얼한 동작 */
.mask { display: block; overflow: hidden; }
.js .mask > span { display: block; transform: translateY(105%); transition: transform 1.05s var(--ease-out); }
.js .mask.in > span { transform: none; }

/* 커커는 자간이 벌어지며 등장 */
.js .kicker.reveal { transform: none; letter-spacing: .34em; transition: opacity .8s var(--ease), letter-spacing 1.1s var(--ease-out); }
.js .kicker.reveal.in { letter-spacing: .18em; }

/* 이미지는 살짝 확대된 상태에서 제자리로 — 정지 사진에 시간축을 준다 */
.img-reveal { overflow: hidden; }
.js .img-reveal img { transform: scale(1.08); opacity: 0; transition: transform 1.4s var(--ease-out), opacity .9s var(--ease); }
.js .img-reveal.in img { transform: none; opacity: 1; }

/* 표는 행 단위로 */
.js .tbl-reveal tbody tr { opacity: 0; transform: translateY(12px); transition: opacity .55s var(--ease), transform .55s var(--ease-out); }
.js .tbl-reveal.in tbody tr { opacity: 1; transform: none; }
.tbl-reveal.in tbody tr:nth-child(2) { transition-delay: .07s; }
.tbl-reveal.in tbody tr:nth-child(3) { transition-delay: .14s; }
.tbl-reveal.in tbody tr:nth-child(4) { transition-delay: .21s; }
.tbl-reveal.in tbody tr:nth-child(5) { transition-delay: .28s; }
.tbl-reveal.in tbody tr:nth-child(6) { transition-delay: .35s; }

/* 체크리스트·타임라인 항목 */
.js .list-reveal > li { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease-out); }
.js .list-reveal.in > li { opacity: 1; transform: none; }
.list-reveal.in > li:nth-child(2) { transition-delay: .06s; }
.list-reveal.in > li:nth-child(3) { transition-delay: .12s; }
.list-reveal.in > li:nth-child(4) { transition-delay: .18s; }
.list-reveal.in > li:nth-child(5) { transition-delay: .24s; }
.list-reveal.in > li:nth-child(6) { transition-delay: .30s; }
.list-reveal.in > li:nth-child(7) { transition-delay: .36s; }
.list-reveal.in > li:nth-child(8) { transition-delay: .42s; }

/* 프로세스 연결선이 왼쪽에서 자라난다 */
.proc-list.in .proc-step::after { animation: proc-line .9s var(--ease-out) both; }
@keyframes proc-line { from { width: 0; } to { width: 100%; } }
.proc-list .proc-num { transition: transform .6s var(--ease-out), opacity .6s var(--ease); }
.js .proc-list:not(.in) .proc-num { opacity: 0; transform: scale(.86); }

/* 카운터 */
.stat { display: block; font-family: var(--font-display); font-size: clamp(40px, 5vw, 66px); line-height: 1; letter-spacing: -.02em; }
.stat-unit { font-family: var(--font-ui); font-size: 13px; letter-spacing: .06em; margin-left: 4px; }
.stat-label { font-family: var(--font-ui); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-light); margin: 22px 0 0; }

/* 히어로 배경 미세 드리프트 — 정지 프레임에서도 화면이 숨을 쉬게 한다 */
@keyframes hero-drift {
  0%   { transform: translate(-50%, -50%) scale(1.35); }
  50%  { transform: translate(-50%, -51%) scale(1.42); }
  100% { transform: translate(-50%, -50%) scale(1.35); }
}
.hero-poster, .hero-frame { animation: hero-drift 26s ease-in-out infinite; }

/* 히어로 활자 등장 */
.js .hero-type > *, .js .hero-meta > * { animation: hero-rise 1.15s var(--ease-out) both; }
.js .hero-type > *:nth-child(2) { animation-delay: .13s; }
.js .hero-meta > *:nth-child(1) { animation-delay: .30s; }
.js .hero-meta > *:nth-child(2) { animation-delay: .40s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* 스크롤하면 헤더가 얇아진다 */
.hdr { transition: height .4s var(--ease), background-color .4s var(--ease); }
.hdr-in { transition: height .4s var(--ease); }
.hdr.shrink .hdr-in { height: 56px; }
.hdr.shrink { box-shadow: none; background: rgba(255,255,255,.97); }

/* FAQ 부호 회전 */
.faq-q::after { transition: transform .35s var(--ease), content 0s; }
.faq-item.open .faq-q::after { transform: rotate(180deg); }
.js .faq-a { transition: max-height .45s var(--ease-out), opacity .35s var(--ease); opacity: 0; }
.js .faq-item.open .faq-a { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > *, .mask > span, .img-reveal img,
  .tbl-reveal tbody tr, .list-reveal > li, .proc-list .proc-num, .hero-type > * {
    opacity: 1 !important; transform: none !important;
    transition: none !important; animation: none !important;
  }
  .hero-poster, .hero-frame { animation: none; transform: translate(-50%, -50%) scale(1.35); }
  .kicker.reveal { letter-spacing: .18em; }
  .faq-a { opacity: 1; }
  .hero-scroll::after { animation: none; }
  .par { transform: none !important; }
  body, .lead-xl, .img-reveal img, .checks li::before, .tl, .tl li::before,
  .card-badges .badge, .stat, .ft-col, .mob-bar, .float-cta, .tbl-reveal thead th {
    animation: none !important; transition: none !important;
    opacity: 1 !important; transform: none !important;
    clip-path: none !important; background-size: auto !important;
  }
  .tl { border-left-color: var(--line) !important; }
}

/* ── 호버는 반드시 이 가드 안에서만 정의한다 ────────── */
@media (hover: hover) and (pointer: fine) {
  /* 밑줄은 붙는 게 아니라 그려진다 */
  .hdr-nav a, .ft a, .crumb a {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat;
    transition: background-size .38s var(--ease-out);
  }
  .hdr-nav a:hover, .ft a:hover, .crumb a:hover { background-size: 100% 1px; }

  /* 카드는 그림자 없이 잉크선과 크림면으로만 반응한다 */
  .card-link, .rel-card { transition: border-color .35s var(--ease), background-color .35s var(--ease), transform .35s var(--ease-out); }
  .card-link:hover, .rel-card:hover { border-color: var(--ink); transform: translateY(-4px); }
  .rel-card:hover { background: var(--cream); }
  .sec-paper .card-link:hover { background: var(--paper); }

  .card-link img, .rel-card img { transition: transform .7s var(--ease-out); }
  .card-link:hover img { transform: scale(1.03); }

  /* 다크 필 버튼은 색이 아니라 밀도로 반응한다 */
  .btn { transition: opacity .25s var(--ease), transform .25s var(--ease-out); }
  .btn:hover { opacity: .84; transform: translateY(-2px); }
  .btn:hover::after { width: 14px; margin-left: 8px; }

  .tags a { transition: border-color .3s var(--ease), background-color .3s var(--ease); }
  .tags a:hover { border-color: var(--ink); background: var(--cream); }

  .faq-q { transition: opacity .25s var(--ease); }
  .faq-q:hover { opacity: .62; }

  .mob-nav a:hover { background: var(--paper); }

  /* 목차 레일 — 평소엔 눈금만, 가리켰을 때만 제목을 펼친다 */
  .toc a:hover { color: var(--text-on-light); }
  .toc a:hover::before { width: 30px; opacity: 1; }
  .toc a:hover .toc-label { max-width: 16ch; opacity: 1; }
  .wedia-img, .fig-img { transition: transform .8s var(--ease-out); }
  .wedia:hover .wedia-img, .fig:hover .fig-img { transform: scale(1.02); }
}


/* ── 모션 확장 ──────────────────────────────────────
   전부 opacity / translateY / scale / clip-path 만 쓴다. */

/* 문서 진입 */
.js body { animation: page-in .7s var(--ease) both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

/* 리드 문단 — 아래에서 닦아 올리듯 */
.js .lead-xl { clip-path: inset(0 0 100% 0); opacity: 0;
  transition: clip-path 1.1s var(--ease-out), opacity .8s var(--ease), transform 1.1s var(--ease-out);
  transform: translateY(16px); }
.js .lead-xl.in { clip-path: inset(0 0 0 0); opacity: 1; transform: none; }

/* 이미지 — 확대 복귀에 더해 아래에서 닦아 올린다 */
.js .img-reveal img { clip-path: inset(14% 0 0 0); }
.js .img-reveal.in img { clip-path: inset(0 0 0 0); transition: transform 1.4s var(--ease-out), opacity .9s var(--ease), clip-path 1.2s var(--ease-out); }

/* 체크박스가 그려진다 */
.js .checks li::before { transform: scale(.4); opacity: 0; transition: transform .5s var(--ease-out), opacity .4s var(--ease); }
.js .list-reveal.in li::before { transform: none; opacity: 1; }
.js .list-reveal.in li:nth-child(2)::before { transition-delay: .06s; }
.js .list-reveal.in li:nth-child(3)::before { transition-delay: .12s; }
.js .list-reveal.in li:nth-child(4)::before { transition-delay: .18s; }
.js .list-reveal.in li:nth-child(5)::before { transition-delay: .24s; }
.js .list-reveal.in li:nth-child(6)::before { transition-delay: .30s; }

/* 표 머리 밑줄이 그려진다 */
.js .tbl-reveal thead tr { position: relative; }
.js .tbl-reveal thead th { background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .9s var(--ease-out); }
.js .tbl-reveal.in thead th { background-size: 100% 1px; }

/* 타임라인 점이 자라고 축이 흐른다 */
.js .tl { background-image: linear-gradient(var(--line), var(--line));
  background-size: 1px 0; background-position: 0 0; background-repeat: no-repeat;
  border-left-color: transparent; transition: background-size 1.4s var(--ease-out); }
.js .tl.in { background-size: 1px 100%; }
.js .tl li::before { transform: scale(0); transition: transform .55s var(--ease-out); }
.js .list-reveal.in li::before { transform: scale(1); }

/* 뱃지가 하나씩 */
.js .card-badges .badge { opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease-out); }
.js .in .card-badges .badge, .js .card-badges.in .badge { opacity: 1; transform: none; }
.js .in .card-badges .badge:nth-child(2) { transition-delay: .08s; }
.js .in .card-badges .badge:nth-child(3) { transition-delay: .16s; }

/* 버튼에 화살표가 자란다 */
.btn::after { content: ''; display: inline-block; width: 0; height: 1px;
  background: currentColor; vertical-align: middle; margin-left: 0;
  transition: width .35s var(--ease-out), margin-left .35s var(--ease-out); }

/* 숫자 지표가 살짝 떠오른다 */
.js .stat { display: block; transition: transform .8s var(--ease-out); }
.js .dp-stat3:not(.in) .stat { transform: translateY(10px); }

/* 섹션 경계에서 배경이 부드럽게 바뀌도록 */
.sec { transition: background-color .6s var(--ease); }

/* 푸터가 아래에서 올라온다 */
.js .ft-col { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease-out); }
.js .ft-col.in { opacity: 1; transform: none; }
.js .ft-col:nth-child(2) { transition-delay: .1s; }
.js .ft-col:nth-child(3) { transition-delay: .2s; }

/* 모바일 하단 바 진입 */
.js .mob-bar { transform: translateY(100%); transition: transform .45s var(--ease-out); }
.js .mob-bar.up { transform: none; }

/* 플로팅 CTA 진입 */
.js .float-cta { opacity: 0; transform: translateY(14px) scale(.96);
  transition: opacity .5s var(--ease), transform .5s var(--ease-out); }
.js .float-cta.up { opacity: 1; transform: none; }

/* ── 반응형 ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --sec-gap: 92px; --pad-x: 32px; }
  .dp-split, .dp-split.rev { grid-template-columns: 1fr; gap: 32px; }
  .rel-grid { grid-template-columns: repeat(2,1fr); }
  .ft-in { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  :root { --sec-gap: 76px; --pad-x: 24px; }
  body { padding-bottom: 64px; }

  .hdr-nav { display: none; }
  .hdr-burger { display: flex; }
  .float-cta { display: none; }
  .mob-bar { display: block; }

  .dp-g2, .dp-g3 { grid-template-columns: 1fr; }
  .dp-split.rev { grid-template-columns: 1fr; }
  .dp-split.rev > *:first-child, .dp-split.rev > *:last-child { order: 0; }
  .rel-grid { grid-template-columns: 1fr; }
  .ft-in { grid-template-columns: 1fr; gap: 32px; }

  .proc-list { flex-direction: column; gap: 10px; margin-bottom: 52px; }
  .box { margin: 36px 0; }
  .btn-row { margin-top: 40px; }
  .proc-step { padding: 24px 0; }
  .proc-step::after { display: none; }

  .card-badges { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* 표는 좁은 화면에서 눌러 줄이지 않고 래퍼가 가로로 스크롤되게 한다 */
  .table-wrap table { min-width: 540px; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
  .table-wrap::after {
    content: '→ 옆으로 넘겨 보세요';
    display: block; padding: 10px 0 0;
    font-family: var(--font-ui); font-size: 11px; letter-spacing: .1em;
    color: var(--muted-on-light);
  }

  .br-desktop { display: none; }
  .lead { font-size: 18px; }
  .hero { height: 82svh; }
  .hero-in { grid-template-columns: 1fr; gap: 26px; padding-bottom: 64px; }
  .hero-meta { text-align: left; padding-bottom: 0; }
  .hero-scroll { display: none; }
  .h-md { margin-top: 52px; }
  .hero-text { padding: 92px 0 76px; }
}

@media (min-width: 769px) {
  .br-mobile { display: none; }
}

@media (max-width: 480px) {
  :root { --pad-x: 20px; --sec-gap: 60px; }
  .dp-stat3 { grid-template-columns: 1fr; gap: 16px; }
  .wedia { padding: 26px; }
  .h-md { margin-top: 44px; }
}
