@charset "utf-8";
/* ==========================================================================
   SAMSHIN METAL — motion.css (Motion Director 소유 · 병합 금지)
   원칙: 정착(rest) 상태 = 시안. 모든 진입 모션은 transform/opacity/clip-path 만 쓰며
         JS 가 없으면(.js 클래스 없음) 처음부터 정착 상태로 보인다.
   방향성: "정밀 · 신뢰 · 인더스트리얼" — 빠른 가속 + 긴 감속(expo-out), 과장 없는 거리.
   ========================================================================== */

/* ---------- 진입 공통 ---------- */
.js [data-reveal] { opacity: 0; transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-expo), clip-path 1.3s var(--ease-expo); transition-delay: var(--d, 0s); will-change: transform, opacity; }
.js [data-reveal="up"] { transform: translate3d(0, 40px, 0); }
.js [data-reveal="left"] { transform: translate3d(-50px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(50px, 0, 0); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal="wipe"] { opacity: 1; clip-path: inset(0 0 100% 0); }
.js [data-reveal="wipe-x"] { opacity: 1; clip-path: inset(0 100% 0 0); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="wipe"].is-in,
.js [data-reveal="wipe-x"].is-in { clip-path: inset(0 0 0 0); }

/* 이미지 와이프 + 내부 스케일 다운 (금속 표면이 드러나는 느낌) */
.js [data-reveal="wipe"] img, .js [data-reveal="wipe-x"] img { transform: scale(1.15); transition: transform 1.8s var(--ease-expo); transition-delay: var(--d, 0s); }
.js [data-reveal="wipe"].is-in img, .js [data-reveal="wipe-x"].is-in img { transform: none; }

/* 스태거 자식 */
.js [data-stagger] > * { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .8s var(--ease-out), transform 1s var(--ease-expo); transition-delay: calc(var(--i, 0) * var(--step, .07s) + var(--d, 0s)); }
.js [data-stagger].is-in > * { opacity: 1; transform: none; }

/* ---------- 비주얼 ---------- */
.visual__bg img { transform-origin: 50% 50%; }
.js .visual__bg { transform: scale(1.12); transition: transform 2.6s var(--ease-expo); }
.js .is-loaded .visual__bg { transform: none; }
.js .visual__title:not(:has(.ch)) { opacity: 0; }
.js .visual__title .ch { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(4deg); filter: blur(6px); transition: opacity .7s var(--ease-out), transform .9s var(--ease-expo), filter .7s; transition-delay: calc(var(--i) * .04s); }
.js .is-loaded .visual__title .ch { opacity: 1; transform: none; filter: blur(0); }
.js .visual__tab { transform: translateY(100%); transition: transform .85s var(--ease-expo) .32s; }
.js .is-loaded .visual__tab { transform: none; }

/* ---------- 배너: 패럴랙스 + 라인 마스크 ---------- */
.banner__bg { will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }
.js .banner__title .ln, .js .banner__sub .ln { display: block; overflow: hidden; }
.js .banner__title .ln > span, .js .banner__sub .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.05s var(--ease-expo); transition-delay: calc(.62s + var(--d, 0s)); }
.js .banner.is-in .banner__title .ln > span, .js .banner.is-in .banner__sub .ln > span { transform: none; }
.js .banner::before { content: ""; position: absolute; z-index: 2; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%); transform: translateX(-100%); pointer-events: none; }
.js .banner.is-in::before { animation: sheen 2.2s var(--ease-out) .35s 1 both; }
@keyframes sheen { to { transform: translateX(100%); } }

/* ---------- 섹션 타이틀 밑줄 드로잉 ---------- */
.js .sec-title[data-reveal] { opacity: 1; transform: none; border-bottom-color: transparent; position: relative; }
.js .sec-title[data-reveal]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: #000; transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-expo) var(--d, 0s); }
.js .sec-title[data-reveal].is-in::after { transform: scaleX(1); }
.js .sec-title[data-reveal] > span { display: inline-block; opacity: 0; transform: translateX(-16px); transition: opacity .7s, transform .9s var(--ease-expo); }
.js .sec-title[data-reveal].is-in > span { opacity: 1; transform: none; }

/* ---------- 표 행 스태거 ---------- */
.js .tbl-grade[data-reveal] { opacity: 1; transform: none; overflow: hidden; }
.js .tbl-grade[data-reveal] tbody tr { opacity: 1; transform: none; transition: none; }
.js .chart[data-reveal] .zone { transform: none; opacity: 1; transition: filter .3s, box-shadow .3s; }
.js .chart[data-reveal] .rline { transform: translateX(-50%); transition: none; }
.js .chart[data-reveal] .zone > *, .js .chart[data-reveal] .rline b { opacity: 1; transition: none; }

/* ---------- 차트 수치는 바로 보인다 ---------- */
.js .chart[data-reveal] { opacity: 1; transform: none; }

/* ---------- 공정도: 원판 회전 진입 + 단계 순차 점등 ---------- */
.js .flow[data-reveal] { opacity: 1; transform: none; clip-path: none; }
.js .flow[data-reveal] .flow__circle { transform: rotate(-24deg) scale(.86); opacity: 0; transition: transform 1.6s var(--ease-expo), opacity .8s; }
.js .flow[data-reveal] .flow__lines { opacity: 0; transition: opacity 1.4s .3s; }
.js .flow[data-reveal] .flow__logo { opacity: 0; transform: scale(.9); transition: opacity .8s .7s, transform 1s var(--ease-expo) .7s; }
.js .flow[data-reveal] .flow__step { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .9s var(--ease-expo); transition-delay: calc(.5s + var(--i, 0) * .12s); }
.js .flow[data-reveal] .flow__arrow { opacity: 0; transition: opacity .5s; transition-delay: calc(.62s + var(--i, 0) * .12s); }
.js .flow[data-reveal].is-in .flow__circle { transform: none; opacity: 1; }
.js .flow[data-reveal].is-in .flow__lines, .js .flow[data-reveal].is-in .flow__logo { opacity: 1; transform: none; }
.js .flow[data-reveal].is-in .flow__step, .js .flow[data-reveal].is-in .flow__arrow { opacity: 1; transform: none; }
@media (min-width: 1280px) {
  .flow__arrow img { animation: nudge 2.4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .22s); }
}
@keyframes nudge { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (max-width: 1279px) {
  .js .flow[data-reveal] .flow__step { transition-delay: .1s; }
  .js .flow[data-reveal] .flow__step.is-in { opacity: 1; transform: none; }
}

/* ---------- 품질보증 체계: 연결선 드로잉 ---------- */
.js .qa__list[data-reveal] { opacity: 1; transform: none; --line: 0; }
.js .qa__list[data-reveal]::before { transition: transform 1.6s var(--ease-expo) .2s; }
.js .qa__list[data-reveal].is-in { --line: 1; }
.js .qa__list[data-reveal] .qa__item { opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .7s, transform 1s var(--ease-expo); transition-delay: calc(.3s + var(--i, 0) * .15s); }
.js .qa__list[data-reveal].is-in .qa__item { opacity: 1; transform: none; }

/* ---------- 연혁: 연도 라인 + 항목 스태거 ---------- */
.js .history__row[data-reveal] { opacity: 1; transform: none; border-bottom-color: transparent; position: relative; }
.js .history__row[data-reveal]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--c-line); transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease-expo); }
.js .history__row[data-reveal].is-in::after { transform: scaleX(1); }
.js .history__row[data-reveal] .history__year { opacity: 0; transform: translateX(-20px); transition: opacity .7s, transform 1s var(--ease-expo); }
.js .history__row[data-reveal].is-in .history__year { opacity: 1; transform: none; }

/* ---------- 연결 하이라이트 (차트 ↔ 범례) ---------- */
.zone, .rline::before { transition-property: transform, opacity, box-shadow, filter; }

/* ---------- 접근성: 동작 줄이기 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-stagger] > *, .js .visual__bg, .js .visual__title, .js .visual__title .ch, .js .visual__tab,
  .js .banner__title .ln > span, .js .banner__sub .ln > span, .js .tbl-grade[data-reveal] tbody tr,
  .js .chart[data-reveal] .zone, .js .chart[data-reveal] .rline, .js .chart[data-reveal] .zone > *, .js .chart[data-reveal] .rline b,
  .js .flow[data-reveal] *, .js .qa__list[data-reveal] .qa__item, .js .history__row[data-reveal] .history__year,
  .js [data-reveal="wipe"] img, .js [data-reveal="wipe-x"] img {
    opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; transition: none !important; animation: none !important;
  }
  .js .chart[data-reveal] .rline { transform: translateX(-50%) !important; }
  .js .sec-title[data-reveal]::after, .js .history__row[data-reveal]::after { transform: none !important; transition: none !important; }
  .js .sec-title[data-reveal] > span { opacity: 1 !important; transform: none !important; }
  .js .qa__list[data-reveal] { --line: 1; }
  .banner__bg { transform: none !important; }
  .js .banner::before { display: none; }
  .flow__arrow img { animation: none !important; }
}
