@charset "utf-8";
/* ==========================================================================
   main.css — 메인 페이지 전용 스타일
   그룹: 1.히어로 2.새소식·모집중 3.소개문구(스크롤 채우기) 4.트랙
         5.프로세스·지표 6.참여기업 띠 7.마무리 CTA
   ========================================================================== */

/* 1. 히어로: 100svh 풀스크린 비주얼 + 글자 층 + 진행바 -------------------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; background: var(--ink); color: #fff; overflow: hidden; }
.hero canvas, .hero video { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .7s ease; }
.hero video { object-fit: cover; }
.hero.is-video canvas, .hero:not(.is-video) video { opacity: 0; }
.hero canvas.is-swap { opacity: 0; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 62%; background: linear-gradient(to top, rgba(var(--ink-shade),.86), rgba(var(--ink-shade),0)); pointer-events: none; }
.hero-in { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(112px, 17vh, 170px); }
.slides { display: grid; }
.slide { grid-area: 1 / 1; visibility: hidden; transition: visibility 0s .9s; }
.slide.is-on { visibility: visible; transition-delay: 0s; }
.hero-title { font-size: clamp(40px, min(7.6vw, 11.5vh), 96px); line-height: .98; font-weight: 800; letter-spacing: .02em; }
.ln { display: block; overflow: hidden; padding-bottom: .06em; }
.ln > span { display: block; transform: translateY(108%); transition: transform .5s var(--ease); }
.slide.is-on .ln > span { transform: none; transition: transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * .11s + .2s); }
.slide:not(.is-on) .ln > span { transform: translateY(-108%); }
.hero-sub { margin-top: clamp(14px, 2.4vh, 26px); font-size: clamp(19px, 2.1vw, 30px); font-weight: 700; letter-spacing: -0.01em; }
.hero-desc { margin-top: 8px; max-width: 46ch; color: var(--on-ink-sub); font-size: clamp(15px, 1.2vw, 18px); }
.hero-sub, .hero-desc { opacity: 0; transform: translateY(18px); transition: opacity .4s, transform .4s; }
.slide.is-on .hero-sub, .slide.is-on .hero-desc { opacity: 1; transform: none; transition: opacity 1s .75s, transform 1.2s var(--ease) .75s; }
.slide.is-on .hero-desc { transition-delay: .9s; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 3.4vh, 34px); }

.hero-ctrl { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(24px, 4.4vh, 44px); }
.hero-ctrl .wrap { display: flex; align-items: center; gap: 18px; }
.hero-count { font-size: 14px; font-weight: 700; letter-spacing: .08em; color: #fff; min-width: 64px; font-variant-numeric: tabular-nums; }
.hero-dots { display: flex; gap: 10px; }
.hero-dot { position: relative; width: clamp(48px, 7vw, 84px); padding: 14px 0 8px; text-align: left; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.62); transition: color .3s; }
.hero-dot::before, .hero-dot::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; }
.hero-dot::before { width: 100%; background: rgba(255,255,255,.26); }
.hero-dot::after { width: calc(var(--p, 0) * 100%); background: var(--sky); }
.hero-dot.is-on, .hero-dot:hover { color: #fff; }
.hero-pause { position: relative; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); transition: background-color .25s; }
.hero-pause:hover { background: rgba(255,255,255,.14); }
.hero-pause::before, .hero-pause::after { content: ""; position: absolute; top: 14px; width: 3px; height: 16px; background: #fff; border-radius: 1px; }
.hero-pause::before { left: 16px; } .hero-pause::after { right: 16px; }
.hero-pause.is-paused::before { left: 17px; top: 13px; width: 13px; height: 18px; background: #fff; border-radius: 0; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.hero-pause.is-paused::after { display: none; }
.cue { margin-left: auto; display: none; align-items: center; gap: 14px; font-size: 12px; font-weight: 700; letter-spacing: .22em; color: #fff; }
.cue i { position: relative; display: block; width: 1px; height: 56px; background: rgba(255,255,255,.3); overflow: hidden; }
.cue i::after { content: ""; position: absolute; left: 0; top: -30%; width: 1px; height: 30%; background: var(--sky); animation: cue 2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }
@media (min-width: 900px) { .cue { display: flex; } }
@media (prefers-reduced-motion: reduce) {
  .ln > span, .slide.is-on .ln > span { transform: none; transition: none; }
  .hero-sub, .hero-desc, .slide.is-on .hero-sub, .slide.is-on .hero-desc { opacity: 1; transform: none; transition: none; }
  .cue i::after { animation: none; top: 0; }
}

/* 2. 새소식 + 모집 중 프로그램 -------------------------------------------- */
.news-grid { display: grid; gap: 40px; }
.sec-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.more-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--blue); }
.more-link svg { transition: transform .4s var(--ease); } .more-link:hover svg { transform: translateX(5px); }
.tabs { display: flex; gap: 6px; margin: 28px 0 8px; }
.tabs [role="tab"] { min-height: 44px; padding: 0 22px; border-radius: 999px; font-weight: 700; color: var(--text-sub); box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .25s, color .25s, box-shadow .25s; }
.tabs [role="tab"]:hover { color: var(--text); }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.nlist li { position: relative; border-bottom: 1px solid var(--line); }
.nlist li::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.nlist li:hover::after, .nlist li:focus-within::after { transform: scaleX(1); }
.nlist a { display: grid; grid-template-columns: 76px 1fr 24px; align-items: center; gap: 20px; padding: 24px 4px; }
.nlist .d { font-weight: 800; font-size: 14px; color: var(--text-sub); font-variant-numeric: tabular-nums; line-height: 1.3; }
.nlist .d b { display: block; font-size: 26px; color: var(--ink); letter-spacing: -0.02em; }
.nlist strong { font-size: clamp(16px, 1.4vw, 20px); font-weight: 700; transition: transform .5s var(--ease); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nlist a:hover strong { transform: translateX(8px); }
.nlist svg { color: var(--blue); opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .5s var(--ease); }
.nlist a:hover svg, .nlist a:focus-visible svg { opacity: 1; transform: none; }
.open-panel { position: relative; overflow: hidden; padding: clamp(28px, 3vw, 44px); border-radius: var(--radius); background: var(--ink); color: #fff; align-self: stretch; display: flex; flex-direction: column; }
.open-panel::before { content: ""; position: absolute; inset: 0; background: url("../img/main/ridge.svg") center bottom / cover no-repeat; opacity: .55; pointer-events: none; }
.open-panel > * { position: relative; }
.open-panel h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.open-panel ul { margin-top: 20px; flex: 1; }
.open-panel li { border-top: 1px solid rgba(255,255,255,.18); }
.open-panel a.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 0; }
.open-panel .t { display: block; font-weight: 700; } .open-panel .s { display: block; font-size: 13px; color: var(--on-ink-sub); }
.open-panel .badge { background: var(--sky); color: var(--ink); } .open-panel .badge--closed { background: rgba(255,255,255,.16); color: #fff; }
.open-panel .btn { align-self: flex-start; margin-top: 24px; }
@media (min-width: 1100px) { .news-grid { grid-template-columns: 1.55fr 1fr; gap: 72px; } }

/* 3. 소개 문구: 스크롤하면 단어가 채워진다 ---------------------------------- */
.statement { position: relative; padding: clamp(96px, 16vh, 180px) 0; background: #fff; }
.statement-in { position: relative; }
.statement p.big { font-size: clamp(28px, 4.6vw, 72px); line-height: 1.32; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; max-width: 22ch; }
.statement em { font-style: normal; }
.statement .w { color: #d3d8e4; transition: color .45s var(--ease); }
.statement .w.on { color: var(--ink); }
.statement .w.hl.on { color: var(--blue); }
.statement .sub { margin-top: 36px; max-width: 52ch; color: var(--text-sub); font-size: clamp(16px, 1.3vw, 19px); }
@media (prefers-reduced-motion: reduce) { .statement .w { color: var(--ink); } }

/* 4. 트랙: 엇갈린 높이의 패널, 호버·초점 시 펼쳐짐 -------------------------- */
.tracks-head { display: grid; gap: 20px; margin-bottom: 56px; }
@media (min-width: 900px) { .tracks-head { grid-template-columns: 1fr 1fr; align-items: end; } }
.tracks { display: flex; flex-direction: column; gap: 14px; }
.track { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; padding: 28px; border-radius: var(--radius); background: var(--t); color: #fff; overflow: hidden; transition: transform .9s var(--ease), box-shadow .9s var(--ease), filter .8s var(--ease); }
.track::after { content: ""; position: absolute; inset: 0; background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.26), rgba(255,255,255,0) 62%); opacity: 0; transition: opacity .8s var(--ease); pointer-events: none; }
.track:hover::after, .track:focus-within::after { opacity: 1; }
.track > * { position: relative; z-index: 1; }
.track h3 { font-size: clamp(28px, 2.6vw, 42px); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.track .ko { margin-top: 8px; font-weight: 600; opacity: .92; }
.track .lv { margin-top: 28px; }
.track .lv li { padding: 9px 0; border-top: 1px solid rgba(255,255,255,.28); font-weight: 600; display: flex; justify-content: space-between; }
.track .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 800; }
.track .go svg { transition: transform .4s var(--ease); } .track:hover .go svg { transform: translateX(6px); }
@media (min-width: 1100px) {
  .tracks { flex-direction: row; align-items: flex-start; gap: 16px; }
  .track { flex: 1 1 0; min-height: 520px; min-width: 0; will-change: transform; }
  .track:nth-child(even) { margin-top: 64px; }
  .tracks:hover .track:not(:hover):not(:focus-within) { filter: saturate(.6) brightness(.8); transform: scale(.98); }
  .track:hover, .track:focus-within { transform: translateY(-16px); box-shadow: 0 34px 64px -18px rgba(var(--ink-rgb),.45); }
  .track .lv li { transition: padding-left .7s var(--ease); }
  .track:hover .lv li, .track:focus-within .lv li { padding-left: 8px; }
}

/* 5. 프로세스(신청→이수→이수증) + 운영 지표 ---------------------------------- */
.proc { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.proc-bg { position: absolute; inset: -12% 0; background: url("../img/main/ridge.svg") center / cover no-repeat; opacity: .6; will-change: transform; pointer-events: none; }
.proc .wrap { position: relative; }
.proc .lead { color: var(--on-ink-sub); }
.steps { display: grid; gap: 0; margin-top: 64px; }
.step { position: relative; padding: 36px 0 36px 44px; border-top: 1px solid rgba(255,255,255,.22); }
.step .node { position: absolute; left: 0; top: 42px; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--sky); transition: background-color .4s, transform .5s var(--ease); }
.step:hover .node { background: var(--sky); transform: scale(1.35); }
.step h3 { font-size: clamp(24px, 2.4vw, 36px); font-weight: 800; letter-spacing: -0.02em; transition: color .3s; }
.step:hover h3 { color: var(--sky); }
.step p { margin-top: 10px; max-width: 34ch; color: var(--on-ink-sub); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
  .step { padding: 40px 0 0; }
  .step .node { left: 0; top: -8px; }
}
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 20px; margin-top: 88px; padding-top: 56px; border-top: 1px solid rgba(255,255,255,.18); }
.stats b { display: block; font-size: clamp(44px, 6vw, 88px); line-height: 1; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 10px; color: var(--on-ink-sub); font-weight: 600; }
.proc .note { color: var(--on-ink-sub); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* 6. 참여기업 띠: 좌우 드래그 · 이전/다음 · 정지 (JS가 이동 처리) ------------------ */
.mq-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.mq-ctl { display: flex; gap: 6px; }
.mq-btn { min-width: 44px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 800; font-size: 15px; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .25s, background-color .25s, color .25s; }
.mq-btn:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--ink); color: #fff; }
.mq { overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.mq.is-drag { cursor: grabbing; }
.mq ul { display: flex; gap: 16px; width: max-content; will-change: transform; }
.mq li { flex: none; display: grid; place-items: center; width: 216px; height: 76px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-sub); font-weight: 700; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .mq { -webkit-mask: none; mask: none; } }

/* 7. 마무리 CTA ------------------------------------------------------------ */
.cta-end { background: var(--blue); color: #fff; padding: 96px 0; }
.cta-end .wrap { display: grid; gap: 32px; align-items: end; }
.cta-end h2 { font-size: clamp(34px, 5.2vw, 84px); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.cta-end .btn { background: #fff; color: var(--ink); justify-self: start; } .cta-end .btn:hover { background: #fff; box-shadow: 0 14px 28px rgba(var(--ink-rgb),.35); }
@media (min-width: 900px) { .cta-end .wrap { grid-template-columns: 1fr auto; } .cta-end { padding: 140px 0; } }

/* 8. 사업성과 소제목 · 주요 페이지 바로가기(구성안의 "기타 영역") --------------- */
.stats-t { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 88px; font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.02em; }
.stats-t a { font-size: 15px; font-weight: 700; color: var(--sky); }
.stats-t + .stats { margin-top: 28px; padding-top: 36px; }

/* 9. 주요 페이지 바로가기(CELMON SERVICES 방식): 시차 배경 + 아이콘 목록 ---------- */
.srv { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: clamp(88px, 12vw, 160px) 0; }
.srv-bg { position: absolute; inset: -16% 0; background: url("../img/main/servicesBG.jpg") center / cover no-repeat; will-change: transform; }
.srv::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(5,14,38,.58); }
.srv-in { position: relative; z-index: 2; text-align: center; }
.srv h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.srv-desc { margin: 16px auto 0; max-width: 46ch; color: #dbe6ff; font-size: clamp(16px, 1.4vw, 19px); }
.srv-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.srv-list a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 100%; min-height: 170px; padding: 28px 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); transition: background-color .4s, color .4s, border-radius .6s var(--ease), box-shadow .4s, transform .6s var(--ease); }
.srv-list svg { width: 46px; height: 46px; transition: transform .8s var(--ease), color .4s; }
.srv-list .t { font-size: clamp(17px, 1.5vw, 21px); font-weight: 800; }
.srv-list .s { font-size: 13px; color: #c3d2f0; transition: color .4s; }
.srv-list a:hover, .srv-list a:focus-visible { background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 20px 44px rgba(0,0,0,.35); transform: translateY(-6px); }
.srv-list a:hover .s, .srv-list a:focus-visible .s { color: var(--text-sub); }
.srv-list a:hover svg, .srv-list a:focus-visible svg { transform: rotateY(180deg); color: var(--blue); }
@media (min-width: 900px) { .srv-list { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
