/* 세종 특강 페이지 1번(주소 하나로) — 역동적인 움직임. 기능(나는 …·주소 입력)은 그대로, 겉과 움직임만 더한다.
   움직임은 assets/js/sejong-s1.js 가 #s1 에 s1-go 를 붙일 때 시작한다. 움직임 줄이기 설정에서는 멈춘 채로 보인다. */

/* ── 흐르는 서류 이름 띠 (화면 가로 끝까지) ── */
.s1-marq{ position:relative; margin:30px calc(50% - 50vw) 0; overflow:hidden; background:#1b1b1f; color:#f6f1e8; border-block:1px solid rgba(255,255,255,.08); padding:15px 0; }
.s1-marq .trk{ display:flex; width:max-content; animation:s1Marq 38s linear infinite; }
.s1-marq:hover .trk{ animation-play-state:paused; }
.s1-marq span{ display:inline-flex; align-items:center; gap:22px; padding-right:22px; font-size:clamp(1.05rem,2.2vw,1.55rem); font-weight:800; letter-spacing:-.02em; white-space:nowrap; }
.s1-marq span i{ font-style:normal; color:var(--gold); font-size:.8em; }
@keyframes s1Marq{ to{ transform:translateX(-50%); } }

/* ── 나는 … 단추: 눌린 것이 통통 튄다 ── */
#s1 .who button{ transition:transform .25s cubic-bezier(.3,1.6,.5,1), background .25s, color .25s, border-color .25s; }
#s1 .who button:hover{ transform:translateY(-3px); border-color:var(--gold); }
#s1 .who button.on{ animation:s1Pop .5s cubic-bezier(.3,1.7,.5,1); }
@keyframes s1Pop{ 0%{ transform:scale(.88); } 60%{ transform:scale(1.1); } 100%{ transform:scale(1); } }
#s1 .whynote{ transition:opacity .3s, transform .3s; }
#s1 .whynote.swap{ opacity:0; transform:translateY(8px); }

/* ── 정보 카드: 차례로 튀어 들어오고, 고르면 필요한 것만 빛난다 ── */
#s1 .atlas .info.mx-rv{ opacity:0; transform:translateY(54px) scale(.9) rotate(var(--r,0deg)); transition:opacity .75s cubic-bezier(.2,.9,.2,1), transform .75s cubic-bezier(.2,.9,.2,1), border-color .3s, box-shadow .3s, filter .3s; transition-delay:calc(var(--i,0) * 55ms); }
#s1 .atlas .info.mx-rv.in{ opacity:1; transform:none; }
#s1 .atlas .info:nth-child(odd){ --r:-2.2deg; }
#s1 .atlas .info:nth-child(even){ --r:2.2deg; }
#s1 .atlas .info .ic{ display:inline-block; transition:transform .35s cubic-bezier(.3,1.7,.5,1); }
#s1 .atlas .info:hover .ic{ transform:scale(1.3) rotate(-10deg); }
#s1 .atlas .info.need{ animation:s1Need 1.8s ease-in-out infinite; }
@keyframes s1Need{ 0%,100%{ box-shadow:0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); } 50%{ box-shadow:0 0 0 9px color-mix(in srgb, var(--gold) 6%, transparent), 0 18px 40px -22px color-mix(in srgb, var(--gold) 70%, transparent); } }
#s1 .atlas .info.dim{ opacity:.3; filter:grayscale(.8) blur(.6px); transform:scale(.97); }

/* ── 가운데 주소 칸: 파동이 퍼지고 둘레가 빛난다 ── */
#s1 .atlas .center{ position:relative; overflow:hidden; isolation:isolate; }
#s1 .atlas .center::before{ content:""; position:absolute; inset:-60%; z-index:-2; background:conic-gradient(from 0deg, transparent 0 62%, color-mix(in srgb, var(--gold) 75%, #fff) 80%, transparent 96%); animation:s1Spin 5.5s linear infinite; }
#s1 .atlas .center::after{ content:""; position:absolute; inset:2px; z-index:-1; border-radius:18px; background:#1b1b1f; }
@keyframes s1Spin{ to{ transform:rotate(360deg); } }
#s1 .atlas .center .rip{ position:absolute; left:50%; top:50%; width:60px; height:60px; margin:-30px 0 0 -30px; border-radius:50%; border:1.5px solid color-mix(in srgb, var(--gold) 70%, transparent); z-index:-1; opacity:0; animation:s1Rip 3.6s ease-out infinite; }
#s1 .atlas .center .rip:nth-of-type(2){ animation-delay:1.2s; }
#s1 .atlas .center .rip:nth-of-type(3){ animation-delay:2.4s; }
@keyframes s1Rip{ 0%{ transform:scale(.4); opacity:.9; } 100%{ transform:scale(9); opacity:0; } }
#s1 .atlas .center input{ transition:box-shadow .3s, transform .3s; }
#s1 .atlas .center input:focus{ outline:none; box-shadow:0 0 0 4px color-mix(in srgb, var(--gold) 55%, transparent); transform:scale(1.03); }
#s1 .atlas .center .go{ margin-top:8px; font-size:.78rem; font-weight:700; color:rgba(246,241,232,.6); min-height:1.2em; }

/* ── 흐름 5단계: 선이 이어지고 차례로 불이 켜진다 ── */
#s1 .pipe .p{ transition:transform .45s cubic-bezier(.3,1.5,.5,1), box-shadow .45s, border-color .45s; }
#s1 .pipe .p::before{ transition:transform .45s cubic-bezier(.3,1.8,.5,1), background .3s; }
#s1 .pipe .p.lit{ border-color:var(--gold); box-shadow:0 22px 44px -26px color-mix(in srgb, var(--gold) 80%, #000); transform:translateY(-8px); }
#s1 .pipe .p.lit::before{ transform:scale(1.35); }
@media (min-width:901px){
  #s1 .pipe .p:not(:last-child)::after{ content:""; position:absolute; left:calc(100% + 1px); top:34px; width:8px; height:2px; background:var(--gold); transform:scaleX(0); transform-origin:left; transition:transform .5s ease .35s; z-index:2; }
  #s1 .pipe.s1-go .p:not(:last-child)::after{ transform:scaleX(1); }
  #s1 .pipe .p:nth-child(2)::after{ transition-delay:.6s; } #s1 .pipe .p:nth-child(3)::after{ transition-delay:.85s; } #s1 .pipe .p:nth-child(4)::after{ transition-delay:1.1s; }
}

/* ── 대시보드 예시: 한 줄씩 켜지고 숫자가 올라간다 ── */
#s1 .dash{ position:relative; overflow:hidden; }
#s1 .dash::after{ content:""; position:absolute; inset:0 auto 0 -40%; width:40%; background:linear-gradient(100deg, transparent, color-mix(in srgb, var(--gold) 20%, transparent), transparent); transform:skewX(-14deg); pointer-events:none; opacity:0; }
#s1 .dash.s1-go::after{ animation:s1Scan 1.6s ease-out .3s 1 both; }
@keyframes s1Scan{ 0%{ opacity:1; left:-40%; } 100%{ opacity:0; left:120%; } }
#s1 .dash .kpi{ opacity:0; transform:translateY(22px) scale(.94); transition:opacity .6s cubic-bezier(.2,.9,.2,1), transform .6s cubic-bezier(.2,.9,.2,1), box-shadow .3s; transition-delay:calc(var(--k,0) * 90ms + .2s); }
#s1 .dash.s1-go .kpi{ opacity:1; transform:none; }
#s1 .dash .tbl tr{ opacity:0; transform:translateX(-18px); transition:opacity .5s ease, transform .5s ease; transition-delay:calc(var(--k,0) * 140ms + .7s); }
#s1 .dash.s1-go .tbl tr{ opacity:1; transform:none; }
#s1 .dash .badge{ transition:transform .4s cubic-bezier(.3,1.8,.5,1); }
#s1 .dash.s1-go .tbl .badge{ animation:s1Badge .55s cubic-bezier(.3,1.8,.5,1) both; animation-delay:calc(var(--k,0) * 140ms + 1s); }
@keyframes s1Badge{ 0%{ transform:scale(0); } 100%{ transform:scale(1); } }
#s1 .dash .dh .badge.warn{ animation:s1Warn 2s ease-in-out infinite; }
@keyframes s1Warn{ 0%,100%{ box-shadow:0 0 0 0 rgba(168,91,0,.35); } 50%{ box-shadow:0 0 0 8px rgba(168,91,0,0); } }

/* ── 큰 번호가 스크롤을 따라 천천히 움직인다 ── */
#s1[data-no]::after{ transform:translateY(var(--par,0px)); transition:transform .2s linear; }

@media (prefers-reduced-motion:reduce){
  .s1-marq .trk{ animation:none; }
  #s1 .atlas .info.mx-rv, #s1 .dash .kpi, #s1 .dash .tbl tr{ opacity:1 !important; transform:none !important; transition:none !important; }
  #s1 .atlas .info.need, #s1 .atlas .center::before, #s1 .atlas .center .rip, #s1 .dash .dh .badge.warn, #s1 .dash::after{ animation:none !important; }
  #s1 .dash .tbl .badge{ animation:none !important; }
}

/* 전폭 마퀴(calc(50%-50vw))가 세로 스크롤바 폭만큼 오른쪽으로 삐져나와 가로 스크롤이 8px 생겼다(2026-10-22 점검). clip 은 sticky·fixed 를 깨지 않는다 */
html, body{ overflow-x:clip; }
