/* 박퇴 고른 모션 마저 넣기(11/29) — 섹션마다 하나씩만. motion.js 가 대상에 클래스를 붙인다
   이미 있던 것: 줄 단위 솟음(.h2 .ln) · 숫자 세기 · 선 긋고 점등(.pst · .pth) · 막대 차오름(.cbar) · 원형 게이지(.st4) · 낱말 순환(히어로) · 순차 올라옴(.rv .d1~)
   여기서 넣는 것: 글자 굴림 · 빛 스침 · 흐림→선명 · 글자 순차 · 확대 등장 · 흐름 점 이동 · 기울기 펴짐 · 사진 펼침 · 떠오르는 카드 · 요금 막대 차오름 */

/* CTA ③ 글자 굴림 — 보조 버튼에 마우스를 올리면 글자가 한 줄 굴러 올라감 */
.mo-rl{display:inline-grid;overflow:hidden;line-height:1.35;vertical-align:bottom}
.mo-rl>span{grid-area:1/1;transition:transform .45s var(--ease)}
.mo-rl>span+span{transform:translateY(118%)}
:hover>.mo-rl>span:first-child{transform:translateY(-118%)}:hover>.mo-rl>span+span{transform:none}

/* CTA ④ 빛 스침 — 주 버튼. 올리면 한 번, 따라오는 네비·마무리 띠·모서리 카드의 주 버튼은 몇 초에 한 번 저절로 */
.mo-sh{position:relative;overflow:hidden}
.mo-sh::before{content:"";position:absolute;top:0;bottom:0;left:-60%;width:40%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.42),transparent);transform:skewX(-18deg);pointer-events:none}
.mo-sh:hover::before{animation:moSh 1s var(--ease)}
.mo-sh.auto::before{animation:moShA 6s var(--ease) var(--d,1.2s) infinite}
@keyframes moSh{to{left:130%}}@keyframes moShA{0%{left:-60%}16%,100%{left:130%}}

/* 헤드라인 ② 흐림 → 선명 — 제목 아래 설명 줄 */
.lead.rv{transition:filter .9s var(--ease),opacity .9s var(--ease)}
.js .lead.rv:not(.in){filter:blur(12px);opacity:.001;transform:none}

/* 헤드라인 ③ 글자 순차 — 어두운 섹션 제목(줄 단위 솟음 대신) */
.js .h2.mo-chs.rv:not(.in) .ln span{transform:none}
.mo-w{display:inline-block;white-space:nowrap}
.h2 .ln .mo-w,.h2 .ln .mo-c{display:inline-block}
.h2.mo-chs .ln .mo-w{transition:none}
.h2.mo-chs .ln .mo-c{transition:opacity .5s,transform .7s var(--ease);transition-delay:calc(var(--k)*26ms)}
.js .h2.mo-chs.rv:not(.in) .ln .mo-c{opacity:0;transform:translateY(.55em) rotate(4deg)}

/* 카드 ② 확대 등장 — 요금 · 증명 숫자 · 사례집 */
.js .pl.rv:not(.in),.js .st4 li.rv:not(.in),.js .kc2.rv:not(.in),.js .mo-zm:not(.in){opacity:.001;transform:scale(.9)}
.mo-zm{transition:opacity .7s var(--ease),transform .8s var(--ease)}

/* 도식 ④ 막대 차오름 — 요금 묶음 크기 막대 */
.pl .tb i{transform-origin:50% 100%;transition:transform .7s var(--ease)}
.pl .tb i:nth-child(2){transition-delay:.07s}.pl .tb i:nth-child(3){transition-delay:.14s}.pl .tb i:nth-child(4){transition-delay:.21s}.pl .tb i:nth-child(5){transition-delay:.28s}.pl .tb i:nth-child(6){transition-delay:.35s}
.js .pl.rv:not(.in) .tb i{transform:scaleY(0)}

/* 도식 ③ 흐름 점 이동 — 선 위를 점이 흘러감(svg animateMotion · 가로 줄은 .mo-fl) */
.mo-dot{fill:#fff;stroke:var(--blue);stroke-width:2.5}
.mo-fl{position:relative}
.mo-fl::after{content:"";position:absolute;left:0;top:50%;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:var(--blue);animation:moFl var(--t,3.2s) linear infinite}
@keyframes moFl{0%{left:0;opacity:0}8%,92%{opacity:1}100%{left:100%;opacity:0}}

/* 화면 ② 기울기 펴짐 — 누워 있던 화면이 일어남 */
.mo-tilt{transition:opacity .8s var(--ease),transform 1.15s var(--ease);transform-origin:50% 100%}
.js .mo-tilt:not(.in){opacity:.001;transform:perspective(1500px) rotateX(20deg) translateY(48px) scale(.96)}

/* 사진 ④ 사진 펼침 — 왼쪽에서 오른쪽으로 열림 */
.mo-unf{transition:clip-path 1s var(--ease);clip-path:inset(0 0 0 0)}
.js .rv:not(.in) .mo-unf,.js .mo-unf.mo-io:not(.in){clip-path:inset(0 100% 0 0)}
.rv.d2 .mo-unf{transition-delay:.1s}.rv.d3 .mo-unf{transition-delay:.2s}

/* 사진 ⑤ 떠오르는 카드 — 등장한 뒤 천천히 떠 있음 */
.dq.in,.mo-flt.in,.mo-flt.always{animation:moFlt 6.5s ease-in-out 1s infinite}
.mo-flt.b{animation-delay:2.4s}
@keyframes moFlt{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}

/* 화면 밖 섹션은 반복 움직임을 쉰다(motion.js 가 mo-pz 를 붙였다 뗀다) — 긴 페이지에서 보이지 않는 띠·점·떠 있는 카드가 계속 돌지 않게 */
.mo-pz,.mo-pz *,.mo-pz *::before,.mo-pz *::after{animation-play-state:paused!important}

@media (prefers-reduced-motion:reduce){.mo-sh::before,.mo-fl::after{display:none}.dq.in,.mo-flt{animation:none!important}.js .lead.rv:not(.in),.js .mo-tilt:not(.in),.js .h2.mo-chs:not(.in) .mo-c{filter:none;opacity:1;transform:none}.js .mo-unf{clip-path:none!important}}
