/* =====================================================================
   삼기연 첫 화면 — 영상처럼 움직이는 히어로 (19초 반복 · 4장면)
   ① 연합회 이름  ② 기록으로 보는 삼기연  ③ 절기마다 한자리에(2011년 행사 보고)  ④ 걸어온 길 · 말씀
   숫자와 연도는 모두 자료실 기록(총회자료 · 회의록 · 행사 보고)에서 옮겼습니다
   index.html 의 .hero-default.mv · assets/hero-motion.js
   ===================================================================== */
.hero:not(.walk-focus){background:radial-gradient(ellipse 80% 70% at 50% 35%,#4a3527 0%,#2e2016 62%,#22170f 100%)!important;}
.hero:not(.walk-focus) .hero-logo{filter:brightness(0) invert(1);opacity:.9;}
.hero:not(.walk-focus) .hero-contact{color:rgba(245,239,229,.55)!important;}
.hero:not(.walk-focus) .hero-contact a{color:inherit;}
.hero .in{max-width:1080px;}
.hero:not(.walk-focus) .in{padding:44px 24px 36px;}
.hero:not(.walk-focus) .hero-logo{margin-bottom:8px!important;height:38px!important;}
.hero:not(.walk-focus) .hero-contact{margin-top:22px;}

.mv{--cream:#f5efe5;--cream-2:rgba(245,239,229,.72);--cream-3:rgba(245,239,229,.45);--rust:#b5562f;--rust-2:#e8c4a6;--line:rgba(245,239,229,.14);
  position:relative;color:var(--cream);text-align:center;}
.mv-stage{position:relative;height:440px;margin:0 auto;max-width:980px;}
.mv-scene{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  opacity:0;visibility:hidden;transition:opacity .55s ease,visibility 0s linear .55s;}
.mv-scene.on{opacity:1;visibility:visible;transition:opacity .55s ease,visibility 0s;}

/* 공통 등장: .on 이 붙으면 아래에서 올라오며 나타남 (data-d 로 순서) */
.mv-up{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .8s cubic-bezier(.2,.8,.2,1);}
.mv-scene.on .mv-up{opacity:1;transform:none;}
.mv-scene.on .mv-up[data-d="1"]{transition-delay:.15s;} .mv-scene.on .mv-up[data-d="2"]{transition-delay:.35s;}
.mv-scene.on .mv-up[data-d="3"]{transition-delay:.55s;} .mv-scene.on .mv-up[data-d="4"]{transition-delay:.75s;}
.mv-scene.on .mv-up[data-d="5"]{transition-delay:.95s;} .mv-scene.on .mv-up[data-d="6"]{transition-delay:1.15s;}

.mv-kick{display:inline-flex;align-items:center;gap:14px;margin:0 0 22px;font-size:13px;font-weight:600;letter-spacing:.24em;color:var(--rust-2);}
.mv-kick::before,.mv-kick::after{content:"";width:28px;height:1px;background:currentColor;opacity:.6;}
.mv-h{margin:0 0 6px;font-size:clamp(24px,3.2vw,34px)!important;line-height:1.3;color:var(--cream)!important;}
.mv-cap{margin:0 0 14px;font-size:14px;color:var(--cream-3);}

/* ① 이름 — 줄마다 아래에서 밀려 올라옴 */
.hero .mv-title{margin:0;font-size:clamp(40px,6.6vw,76px)!important;line-height:1.18!important;color:var(--cream)!important;letter-spacing:-0.02em!important;}
.mv-title .ln{display:block;overflow:hidden;padding:.04em 0;}
.mv-title .ln>span{display:inline-block;transform:translateY(105%);transition:transform 1s cubic-bezier(.2,.8,.2,1);}
.mv-scene.on .mv-title .ln>span{transform:none;}
.mv-scene.on .mv-title .ln:nth-child(2)>span{transition-delay:.25s;}
.mv-title em{font-style:normal;color:var(--rust-2);}
.mv-rule{width:0;height:2px;margin:30px auto 22px;background:var(--rust);transition:width 1.1s cubic-bezier(.2,.8,.2,1) .6s;}
.mv-scene.on .mv-rule{width:120px;}
.mv-sub{margin:0;font-size:clamp(15px,1.8vw,18px);color:var(--cream-2);letter-spacing:.02em;}
.mv-sub b{color:var(--cream);font-weight:700;}

/* ② 숫자 */
.mv-kpis{display:grid;grid-template-columns:repeat(4,1fr);width:100%;max-width:900px;margin-top:26px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.mv-kpi{padding:28px 10px 24px;border-left:1px solid var(--line);}
.mv-kpi:first-child{border-left:0;}
.mv-kpi b{display:block;font-family:"Cormorant Garamond","Noto Serif KR",serif;font-size:clamp(46px,6vw,72px);font-weight:600;line-height:1;color:var(--cream);font-variant-numeric:lining-nums tabular-nums;}
.mv-kpi b i{font-style:normal;font-size:.42em;margin-left:4px;color:var(--rust-2);font-family:"Noto Serif KR",serif;}
.mv-kpi span{display:block;margin-top:12px;font-size:15px;font-weight:700;color:var(--cream);}
.mv-kpi span,.mv-kpi small{word-break:keep-all;}
.mv-kpi small{display:block;margin-top:5px;font-size:12.5px;color:var(--cream-3);}

/* ③ 절기마다 한자리에 — 행사 보고의 모인 수를 가로 막대로 (막대가 차례로 자람) */
.mv-rows{display:grid;gap:9px;width:100%;max-width:720px;margin-top:22px;text-align:left;}
.mv-row{display:grid;grid-template-columns:44px 190px 1fr 70px;align-items:center;gap:14px;}
.mv-row .m{font-family:"Cormorant Garamond","Noto Serif KR",serif;font-size:17px;font-weight:600;color:var(--cream-3);}
.mv-row .n{font-size:14.5px;font-weight:600;color:var(--cream-2);white-space:nowrap;}
.mv-row .tr{position:relative;height:10px;border-radius:2px;background:rgba(245,239,229,.07);overflow:hidden;}
.mv-row .tr i{position:absolute;left:0;top:0;bottom:0;width:var(--w);border-radius:2px;background:rgba(232,196,166,.5);
  transform:scaleX(0);transform-origin:0 50%;transition:transform 1s cubic-bezier(.2,.8,.2,1);}
.mv-row .v{text-align:right;font-family:"Cormorant Garamond","Noto Serif KR",serif;font-size:22px;font-weight:600;line-height:1;color:var(--cream);
  font-variant-numeric:lining-nums tabular-nums;opacity:0;transition:opacity .5s ease;}
.mv-row .v small{margin-left:2px;font-family:"Noto Serif KR",serif;font-size:12px;color:var(--cream-3);}
.mv-row.hi .n{color:var(--cream);}
.mv-row.hi .tr i{background:var(--rust);}
.mv-row.hi .v{color:var(--rust-2);}
.mv-scene.on .mv-row .tr i{transform:scaleX(1);}
.mv-scene.on .mv-row .v{opacity:1;}
.mv-scene.on .mv-row:nth-child(1) .tr i{transition-delay:.3s;}  .mv-scene.on .mv-row:nth-child(1) .v{transition-delay:.8s;}
.mv-scene.on .mv-row:nth-child(2) .tr i{transition-delay:.45s;} .mv-scene.on .mv-row:nth-child(2) .v{transition-delay:.95s;}
.mv-scene.on .mv-row:nth-child(3) .tr i{transition-delay:.6s;}  .mv-scene.on .mv-row:nth-child(3) .v{transition-delay:1.1s;}
.mv-scene.on .mv-row:nth-child(4) .tr i{transition-delay:.75s;} .mv-scene.on .mv-row:nth-child(4) .v{transition-delay:1.25s;}
.mv-scene.on .mv-row:nth-child(5) .tr i{transition-delay:.9s;}  .mv-scene.on .mv-row:nth-child(5) .v{transition-delay:1.4s;}
.mv-scene.on .mv-row:nth-child(6) .tr i{transition-delay:1.05s;} .mv-scene.on .mv-row:nth-child(6) .v{transition-delay:1.55s;}
.mv-foot{margin:20px 0 0;font-size:13.5px;color:var(--cream-3);}
.mv-foot b{color:var(--cream);font-weight:700;}

/* ④ 걸어온 길 — 선이 그어지며 점이 차례로 켜짐 */
.mv-line{position:relative;display:grid;grid-template-columns:repeat(6,1fr);width:100%;max-width:960px;margin:8px 0 34px;}
.mv-line::before{content:"";position:absolute;left:8.33%;right:8.33%;top:9px;height:2px;background:var(--line);}
.mv-line::after{content:"";position:absolute;left:8.33%;top:9px;height:2px;width:0;background:var(--rust);transition:width 2.2s cubic-bezier(.4,0,.2,1) .2s;}
.mv-scene.on .mv-line::after{width:83.33%;}
.mv-pt{position:relative;padding-top:32px;}
.mv-pt::before{content:"";position:absolute;left:50%;top:2px;width:16px;height:16px;margin-left:-8px;border-radius:50%;background:#2e2016;border:2px solid var(--cream-3);
  transition:background .3s ease,border-color .3s ease;}
.mv-scene.on .mv-pt::before{background:var(--rust);border-color:var(--rust-2);}
.mv-scene.on .mv-pt:nth-child(1)::before{transition-delay:.2s;} .mv-scene.on .mv-pt:nth-child(2)::before{transition-delay:.7s;}
.mv-scene.on .mv-pt:nth-child(3)::before{transition-delay:1.2s;} .mv-scene.on .mv-pt:nth-child(4)::before{transition-delay:1.7s;}
.mv-scene.on .mv-pt:nth-child(5)::before{transition-delay:2.2s;} .mv-scene.on .mv-pt:nth-child(6)::before{transition-delay:2.6s;}
.mv-pt b{display:block;font-family:"Cormorant Garamond","Noto Serif KR",serif;font-size:30px;font-weight:600;line-height:1;color:var(--cream);}
.mv-pt span{display:block;margin-top:8px;font-size:13px;line-height:1.5;color:var(--cream-2);word-break:keep-all;padding:0 6px;}
.mv-verse{margin:0;font-family:"Noto Serif KR",serif;font-size:clamp(17px,2.2vw,22px);line-height:1.7;color:var(--cream);}
.mv-verse small{display:block;margin-top:6px;font-size:14px;color:var(--rust-2);}

/* 영상 조작 줄 — 재생 · 멈춤, 장면 고르기, 진행 막대 */
.mv-bar{display:flex;align-items:center;gap:14px;max-width:760px;margin:26px auto 0;}
.mv-play{flex:none;width:36px;height:36px;border-radius:50%;border:1px solid rgba(245,239,229,.3);background:transparent;color:var(--cream);cursor:pointer;display:grid;place-items:center;padding:0;}
.mv-play:hover{border-color:var(--rust-2);color:var(--rust-2);}
.mv-play svg{width:14px;height:14px;fill:currentColor;}
.mv-play .i-play{display:none;} .mv.paused .mv-play .i-play{display:block;} .mv.paused .mv-play .i-pause{display:none;}
.mv-chap{flex:1;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;}
.mv-chap button{position:relative;border:0;background:none;padding:0 0 10px;color:var(--cream-3);font:inherit;font-size:12.5px;font-weight:600;letter-spacing:.02em;cursor:pointer;text-align:left;}
.mv-chap button::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;border-radius:2px;background:rgba(245,239,229,.16);}
.mv-chap button i{position:absolute;left:0;bottom:0;height:3px;width:0;border-radius:2px;background:var(--rust-2);z-index:1;}
.mv-chap button.on{color:var(--cream);}
.mv-chap button:hover{color:var(--cream);}

.mv-cta{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:30px;}
.mv-btn{display:inline-flex;align-items:center;justify-content:center;height:50px;padding:0 28px;border-radius:999px;font-size:15px;font-weight:700;transition:background .15s,border-color .15s,color .15s;}
.mv-btn.solid{background:var(--rust);color:#fff;}
.mv-btn.solid:hover{background:#a43e1b;}
.mv-btn.ghost{border:1.5px solid rgba(245,239,229,.35);color:var(--cream);}
.mv-btn.ghost:hover{border-color:var(--rust-2);color:var(--rust-2);}

@media (max-width:760px){
  .mv-stage{height:520px;}
  .mv-rows{gap:12px;margin-top:16px;}
  .mv-row{grid-template-columns:36px 1fr auto;grid-template-areas:"m n v" "m t t";gap:5px 10px;}
  .mv-row .m{grid-area:m;font-size:15px;align-self:start;}
  .mv-row .n{grid-area:n;font-size:13.5px;white-space:normal;}
  .mv-row .tr{grid-area:t;height:7px;}
  .mv-row .v{grid-area:v;font-size:18px;}
  .mv-foot{font-size:12.5px;margin-top:14px;}
  .mv-kpis{grid-template-columns:repeat(2,1fr);}
  .mv-kpi{padding:20px 8px 18px;}
  .mv-kpi:nth-child(3){border-left:0;}
  .mv-kpi:nth-child(n+3){border-top:1px solid var(--line);}
  .mv-line{grid-template-columns:1fr;gap:12px;max-width:340px;margin:0 0 22px;text-align:left;}
  .mv-line::before,.mv-line::after{left:9px;right:auto;top:6px;width:2px;height:calc(100% - 12px);}
  .mv-line::after{height:0;transition:height 2.2s cubic-bezier(.4,0,.2,1) .2s;}
  .mv-scene.on .mv-line::after{width:2px;height:calc(100% - 12px);}
  .mv-pt{padding:0 0 0 34px;display:flex;align-items:baseline;gap:12px;}
  .mv-pt::before{left:0;top:3px;margin-left:2px;}
  .mv-pt b{font-size:22px;flex:none;width:52px;}
  .mv-pt span{margin:0;padding:0;}
  .mv-chap button{font-size:11.5px;}
}
@media (max-width:420px){ .mv-stage{height:540px;} .mv-kick{letter-spacing:.14em;font-size:12px;} }

/* 움직임 줄이기: 자동 재생 없이, 장면은 단추로 넘김 · 전환 효과 없음 */
@media (prefers-reduced-motion: reduce){
  .mv *,.mv *::before,.mv *::after{transition:none!important;}
}
