/* =========================================================
 * ORBIT FX — 세로 가이드 라인 · 마우스 글로우 · 단어 순차 등장
 * index.html / contact.html 공용. 기존 레이아웃 위에 얹는 장식 레이어만 담습니다.
 * (가로선·교차점·모서리 꺾쇠·클릭 리플·원형 궤도 장식은 사용하지 않습니다)
 * ========================================================= */
:root{--fx-ease:cubic-bezier(.2,.7,.2,1);--fx-line:rgba(25,31,40,.07)}

/* 1) 세로 가이드 라인 — 히어로 배경 좌우 2줄, 천천히 그어지며 등장 */
.fx-host{position:relative;isolation:isolate}
.fx-lines{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.fx-lines i{position:absolute;display:block;background:var(--fx-line)}
.fx-lines .v{top:0;bottom:0;width:1px;transform:scaleY(0);animation:fx-grow-y 1.8s var(--fx-ease) forwards;
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 18%,#000 82%,transparent);mask-image:linear-gradient(180deg,transparent,#000 18%,#000 82%,transparent)}
.fx-lines .v1{left:max(24px,calc(50% - 570px));animation-delay:.3s}.fx-lines .v2{right:max(24px,calc(50% - 570px));animation-delay:.45s}

/* 2) 단어 순차 등장 — 흐림이 걷히며 떠오름 */
.fx-w{display:inline-block}
/* 숨김 시작 상태는 <head>의 스크립트가 html에 .js를 붙였을 때만 적용 → 스크립트가 막혀도 글자는 항상 보임 */
@media (prefers-reduced-motion:no-preference){
  html.js .fx-w{opacity:0;transform:translateY(14px);filter:blur(6px);animation:fx-word .8s var(--fx-ease) forwards;animation-delay:var(--d,0ms)}
  html.js .fx-up{opacity:0;transform:translateY(16px);animation:fx-word .9s var(--fx-ease) forwards;animation-delay:var(--d,0ms)}
  /* 하단 CTA는 화면에 들어올 때(.is-in) 재생 */
  html.js .oc .fx-w{animation:none}html.js .oc.is-in .fx-w{animation:fx-word .8s var(--fx-ease) forwards;animation-delay:var(--d,0ms)}
}

/* 3) 마우스 글로우 (JS가 생성, 정밀 포인터에서만) */
#fx-glow{position:fixed;left:0;top:0;width:560px;height:560px;margin:-280px 0 0 -280px;border-radius:50%;pointer-events:none;z-index:40;
  background:radial-gradient(circle,rgba(16,185,129,.07) 0%,rgba(16,185,129,.025) 40%,rgba(16,185,129,0) 70%);opacity:0;transition:opacity .6s ease;will-change:transform}
#fx-glow.on{opacity:1}

@keyframes fx-grow-y{to{transform:scaleY(1)}}
@keyframes fx-word{to{opacity:1;transform:none;filter:none}}

@media (max-width:768px){.fx-lines .v{display:none}}
@media (prefers-reduced-motion:reduce){
  .fx-w,.fx-up,.fx-lines i,.oc .fx-w,html.js .fx-w,html.js .fx-up{animation:none!important;opacity:1!important;transform:none!important;filter:none!important}
  #fx-glow{display:none!important}
}
