/* 첫 화면 움직임 (2026-11-16 대표 「집지니 강조 모션 · 로딩에 집지니 로고」)
   한 번에 하나만 크게: ① 첫 화면 글이 차례로 올라옴 ② 도면이 「읽히듯」 그려짐(훑는 선 + 방 채움 + 벽) ③ 금액이 세어 올라감.
   움직임을 줄이도록 설정한 사람에게는 모두 끔. 색은 jj-tokens.css */
@media (prefers-reduced-motion:no-preference){
  /* ① 첫 화면 — 한 번만 */
  .jm .f1 .fh>*{opacity:0;transform:translateY(14px);animation:jmUp .7s cubic-bezier(.2,.7,.2,1) forwards}
  .jm .f1 .fh>.doors{animation-delay:.05s}
  .jm .f1 .fh>.fk{animation-delay:.15s}
  .jm .f1 .fh>h1{animation-delay:.28s}
  .jm .f1 .fh>h1+p{animation-delay:.46s}
  .jm .f1 .fh>.ff{animation-delay:.6s}
  .jm .f1 .fh>.fmeta{animation-delay:.72s}
  .f1 .fh h1{isolation:isolate}
  .f1 .fh h1 .jm-u{position:relative;display:inline-block}
  .f1 .fh h1 .jm-u::after{content:"";position:absolute;left:0;right:0;bottom:.08em;height:.14em;background:var(--jj-g);opacity:.9;transform:scaleX(0);transform-origin:left;animation:jmLine .8s cubic-bezier(.6,0,.2,1) 1.05s forwards;z-index:-1}
  .jm .f1 .ff input{transition:box-shadow .25s}
  .jm .f1 .ff input:focus{box-shadow:0 0 0 4px var(--jj-gl)}

  /* ② 도면이 읽히듯 */
  .f1 .fplan{position:relative;overflow:hidden}
  .f1 .fplan .jm-scan{position:absolute;top:14px;bottom:58px;width:2px;left:14px;background:var(--jj-g);box-shadow:0 0 0 6px rgba(31,94,46,.08);opacity:0;pointer-events:none}
  .f1 .fplan.jm-draw .jm-scan{animation:jmScan 1.15s cubic-bezier(.45,0,.25,1) forwards}
  .f1 .fplan.jm-draw svg polygon{opacity:0;animation:jmFade .45s ease-out forwards}
  .f1 .fplan.jm-draw svg path{clip-path:inset(0 100% 0 0);animation:jmWipe 1.1s cubic-bezier(.45,0,.25,1) forwards}
  .f1 .fplan.jm-draw svg rect{opacity:0;animation:jmFade .4s ease-out .9s forwards}
  .f1 .fplan.jm-draw svg text{opacity:0;animation:jmFade .5s ease-out 1.05s forwards}

  /* ③ 막대가 0에서 자람 */
  .f1 .bars.jm-grow .b i{animation:jmBar .9s cubic-bezier(.2,.7,.2,1) both}
  .f1 .bars.jm-grow li:nth-child(2) .b i{animation-delay:.18s}
  .f1 .tl .b i{transition:width .35s}

  /* 근거 숫자 — 보일 때 한 번 */
  .f1 .fproof .three>div{opacity:0;transform:translateY(10px);transition:opacity .6s,transform .6s cubic-bezier(.2,.7,.2,1)}
  .f1 .fproof.jm-in .three>div{opacity:1;transform:none}
  .f1 .fproof.jm-in .three>div:nth-child(2){transition-delay:.12s}
  .f1 .fproof.jm-in .three>div:nth-child(3){transition-delay:.24s}

  /* 머리 로고 — 처음 한 번 획이 돌아감 */
  .jm .top .brand .mark{position:relative}
  .jm .top .brand .mark::after{content:"";position:absolute;inset:-3px;border:1.5px solid var(--jj-g);border-radius:6px;clip-path:inset(0 100% 100% 0);animation:jmBox 1s cubic-bezier(.6,0,.2,1) .2s forwards,jmFadeOut .4s ease 1.4s forwards}
}
@keyframes jmUp{to{opacity:1;transform:none}}
@keyframes jmFade{to{opacity:1}}
@keyframes jmFadeOut{to{opacity:0}}
@keyframes jmLine{to{transform:scaleX(1)}}
@keyframes jmWipe{to{clip-path:inset(0 0 0 0)}}
@keyframes jmScan{0%{opacity:1;left:14px}88%{opacity:1}100%{opacity:0;left:calc(100% - 16px)}}
@keyframes jmBar{from{width:0}}
@keyframes jmBox{0%{clip-path:inset(0 100% 100% 0)}50%{clip-path:inset(0 0 100% 0)}75%{clip-path:inset(0 0 0 0)}100%{clip-path:inset(0 0 0 0)}}

/* 로딩 — 집지니 표(집)를 획으로 그림. 도면이 오기 전 #f1-plan 자리에 */
.jm-load{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:300px;color:var(--jj-pencil);font-size:14px}
.jm-load svg{width:64px;height:64px;overflow:visible}
.jm-load .o{fill:none;stroke:var(--jj-g);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:240;stroke-dashoffset:240;animation:jmDraw 1.6s cubic-bezier(.6,0,.2,1) infinite}
.jm-load .k{fill:var(--jj-g);font:700 26px var(--jjf,sans-serif);opacity:.15;animation:jmPulse 1.6s ease-in-out infinite}
@keyframes jmDraw{0%{stroke-dashoffset:240}55%{stroke-dashoffset:0}100%{stroke-dashoffset:-240}}
@keyframes jmPulse{50%{opacity:1}}
@media (prefers-reduced-motion:reduce){.jm-load .o{stroke-dashoffset:0;animation:none}.jm-load .k{opacity:1;animation:none}}
