/* 스크롤 3D 모션 v2 (Blender 렌더 프레임 시퀀스 168장) — 테마와 무관하게 네이비 무대.
   높이 250vh = 고정 무대 150vh 스크롤 동안 168프레임 → 속도감. 유압 흐름 단계에서 --seq-glow(0→1) */
.seq { position: relative; height: 250vh; background: radial-gradient(120% 80% at 50% 45%, var(--navy-800) 0%, var(--navy-900) 50%, var(--ink-950) 100%); color: #fff; }
/* 블루프린트 그리드 — 무대(sticky) 안쪽에 1장 */
.seq__stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 50%, #000, transparent); mask-image: radial-gradient(70% 60% at 50% 50%, #000, transparent); }
.seq__head, .seq__canvas-wrap, .seq__steps { position: relative; z-index: 1; }
.seq__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; }
.seq__head { padding: calc(var(--header-h, 64px) + 12px) 16px 0; text-align: center; max-width: 720px; margin: 0 auto; }
.seq__eyebrow { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--ls-mono); text-transform: uppercase; color: var(--orange-400); display: inline-flex; align-items: center; gap: 10px; }
.seq__eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 1px; background: var(--orange-500); box-shadow: 0 0 10px 1px rgb(255 122 46 / 0.6); }
.seq__title, .seq__step h3 { color: #fff; }
.seq__title { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.75rem); font-weight: 800; line-height: 1.12; margin: .35em 0 0; letter-spacing: -0.04em; }
.seq__canvas-wrap { position: relative; min-height: 0; display: grid; place-items: center; }
/* 남은 높이에 맞춰 축소(object-fit) — 캡션·진행바와 겹치지 않게 */
.seq:not(.seq--static) .seq__canvas { position: absolute; inset: 0; margin: 0 auto; width: 100%; max-width: 1600px; height: 100%; aspect-ratio: auto; max-height: none; }
.seq__canvas { width: min(100%, 1600px); height: auto; aspect-ratio: 16 / 9; position: relative; z-index: 1; max-height: 100%; object-fit: contain; display: block; }
.seq__glow { position: absolute; inset: 22% 4%; z-index: 0; pointer-events: none; opacity: calc(.25 + var(--seq-glow, 0) * .75);
  background: radial-gradient(48% 30% at 50% 50%, rgb(255 138 66 / calc(var(--seq-glow, 0) * .42)), transparent 72%),
              radial-gradient(60% 46% at 50% 50%, rgb(124 196 255 / .07), transparent 70%);
  filter: blur(18px); }
/* 유압 흐름 단계: 진행바·번호 글로우 강화 */
.seq.is-flow .seq__bar i { box-shadow: 0 0 calc(10px + var(--seq-glow, 0) * 14px) rgb(255 122 46 / 0.85); }
.seq.is-flow .seq__step.is-on .seq__num { box-shadow: 0 0 calc(16px + var(--seq-glow, 0) * 16px) -2px rgb(255 122 46 / 0.85); }
.seq__steps { position: relative; padding: 0 16px; max-width: 720px; margin: 0 auto; width: 100%; height: calc(var(--seq-cap-h, 232px) + var(--bottom-ui, 0px)); }
.seq__step { position: absolute; inset: 34px 16px auto; opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .35s ease; pointer-events: none; text-align: center; }
.seq__step.is-on { opacity: 1; transform: none; pointer-events: auto; }
.seq__num { display: inline-block; font-family: var(--font-mono); font-weight: 700; font-size: .75rem; letter-spacing: .08em; color: var(--on-grad-accent); background: var(--grad-accent); border-radius: 6px; padding: .3em .7em; margin-bottom: .6em; box-shadow: 0 0 16px -2px rgb(255 122 46 / 0.6); }
.seq__step h3 { font-size: clamp(1.125rem, 1rem + .8vw, 1.5rem); font-weight: 800; margin: 0 0 .3em; }
.seq__step p { margin: 0 auto; color: var(--navy-200); font-size: 1rem; line-height: 1.55; max-width: 34em; }
.seq__step .btn { margin-top: .9em; }
.seq__bar { position: absolute; left: 16px; right: 16px; top: 12px; height: 3px; background: rgba(255,255,255,.12); border-radius: 3px; max-width: 720px; margin: 0 auto; }
.seq__bar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--seq-p, 0)); background: var(--grad-accent-h); border-radius: inherit; box-shadow: 0 0 10px rgb(255 122 46 / 0.7); }
.seq__dots { display: flex; justify-content: space-between; position: absolute; inset: -5px 0 auto; }
.seq__dots b { width: 13px; height: 13px; border-radius: 50%; background: var(--navy-800); border: 2px solid rgba(255,255,255,.3); transition: background .25s, border-color .25s; }
.seq__dots b.is-done { background: var(--orange-500); border-color: var(--orange-300); box-shadow: 0 0 10px rgb(255 122 46 / 0.7); }
.seq__loading { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); letter-spacing: .1em; font-size: .6875rem; color: var(--navy-300); }
.seq__loading[hidden] { display: none; }
@media (min-width: 1024px) {
  .seq__steps { --seq-cap-h: 240px; z-index: 2; }
  /* 데스크톱: 렌더 하단은 투명 여백 → 캔버스를 캡션 영역 아래로 확장해 피사체를 크게 */
  .seq:not(.seq--static) .seq__canvas-wrap { margin: -16px 0 -64px; }
}
/* 모션 축소: 스크롤 고정 없이 완성 프레임 + 단계 목록 */
.seq--static { height: auto; }
.seq--static .seq__stage { position: static; height: auto; }
.seq--static .seq__steps { position: static; height: auto; min-height: 0; display: grid; gap: 20px; padding-bottom: 48px; }
.seq--static .seq__step { position: static; opacity: 1; transform: none; }
.seq--static .seq__bar { display: none; }
/* 히어로 → 3D 무대 경계를 부드럽게 */
.seq::before { content: ""; position: absolute; left: 0; right: 0; top: -36px; height: 36px; background: linear-gradient(to bottom, transparent, var(--navy-900)); pointer-events: none; z-index: 1; }
@media (min-width: 1024px) { .seq::before { top: -56px; height: 56px; } }
/* 3D 무대 → 다음 섹션(페이지 바탕) 경계 페이드 */
.seq::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 96px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; z-index: 1; }
.seq--static::after { display: none; }
/* 05단계 CTA 노출 중에는 모바일 상담 FAB 를 잠시 숨김 */
@media (max-width: 1023.98px) {
  .fab { transition: opacity .2s, transform .2s; }
  html.seq-cta .fab:not(.is-open) { opacity: 0; transform: scale(.85); pointer-events: none; }
}
