/* ========== FX 레이어 (2026-10-25) ==========
   style.css는 그대로 두고, 그 위에 얹는 움직임만 모았다. js/fx.js가 html에 .fx를 붙였을 때만 켜진다.
   동작 줄이기 설정이면 fx.js가 아무것도 하지 않으므로 기존 사이트 그대로 보인다. */

/* Lenis 부드러운 스크롤: 브라우저 기본 smooth와 겹치지 않게 끈다 */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* 첫 화면 3D 오브젝트: 워드마크 뒤에서 천천히 움직이는 오렌지 덩어리 */
.fx-hero-canvas {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease);
}
.fx-hero-canvas.is-ready { opacity: 1; }

/* 위쪽 스크롤 진행 막대 */
.fx-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120; height: 3px;
  background: var(--color-brand); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}

/* 마우스를 따라오는 링(마우스가 있는 기기만). 기본 커서는 그대로 둔다 */
.fx-cursor {
  position: fixed; top: 0; left: 0; z-index: 130; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1.5px solid var(--color-brand); border-radius: 50%; pointer-events: none;
  display: grid; place-items: center; opacity: 0;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s var(--ease), opacity .3s;
}
.fx-cursor.is-on { opacity: 1; }
.fx-cursor.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 75, 31, 0.14); }
.fx-cursor.is-view { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--color-brand); border-color: var(--color-brand); }
.fx-cursor__label { font-family: var(--font-latin); font-size: 14px; letter-spacing: 0.04em; color: var(--color-ink); opacity: 0; transition: opacity .2s; }
.fx-cursor.is-view .fx-cursor__label { opacity: 1; }

/* 검정 섹션은 둥근 카드에서 화면 전체로 펼쳐진다(clip-path는 fx.js가 스크롤에 맞춰 바꾼다) */
.fx .section--dark { will-change: clip-path; }

/* 패키지 카드 3D 기울기 */
.fx .channels--core { perspective: 1200px; }
.fx .channel--core { transform-style: preserve-3d; will-change: transform; }

/* 서비스: 화면 가운데를 지나는 패키지 이름이 오렌지로 켜진다 */
.fx .method__name { transition: color .5s var(--ease); }
.fx .method__name.is-lit { color: var(--color-brand); }

/* 흐르는 카드 줄: 스크롤 속도만큼 살짝 기울어진다 */
.fx .pf-row { will-change: transform; }
