/* ==========================================================================
   DASAN — 공통 모션 (js/motion.js · 디자이너 애니메이션 가이드 01~03)
   html.js-motion : head.sub.php 인라인 스크립트가 붙임 (JS 없음이면 없음 → 모두 정적 표시. 업체 요청으로 움직임 줄이기 설정과 무관하게 적용)
   ========================================================================== */

/* 01 글자별 순차 등장 ------------------------------------------------------ */
.ch-w { display: inline-block; white-space: nowrap; }
.ch {
  display: inline-block;
  overflow: hidden;
  /* 큰 글꼴의 위·아래 획이 잘리지 않도록 여유 (레이아웃 영향 없음) */
  padding: .12em 0;
  margin: -.12em 0;
  vertical-align: top;
}
.ch__i { display: inline-block; }
/* 분할 전 깜빡임 방지 (스크립트가 실패해도 2초 뒤에는 표시) */
.js-motion [data-chars]:not(.is-split) { opacity: 0; animation: chFallback 0s 2s forwards; }
@keyframes chFallback { to { opacity: 1; } }
.js-motion [data-chars].is-split .ch__i { opacity: 0; transform: translateY(110%); }
.js-motion [data-chars].is-chars-in .ch__i { animation: chRise .78s cubic-bezier(.22, 1, .36, 1) forwards; }
@keyframes chRise { to { opacity: 1; transform: translateY(0); } }

/* 02 · 03 스크롤 Fade Up ---------------------------------------------------- */
.js-motion .rv {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
}
.js-motion .rv.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .85s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1);
}
