/* ─────────────────────────────────────────────
   sections.css — 구축 사례 · 교육 시트 · 진행 과정 · 문의
   (서비스 카드·가격·FAQ·교육 카드는 offer.css)
   ───────────────────────────────────────────── */

/* ── 구축 사례 ── */
.works { position: relative; padding-top: var(--sec-y); }
.works__head .label { margin-bottom: clamp(26px, 3vw, 44px); }
.works__headrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.works__side { display: grid; justify-items: end; gap: 14px; text-align: right; }
.works__side p { color: var(--text-2); font-size: 15.5px; }
.works__counter { display: flex; align-items: baseline; gap: 10px; font-family: var(--f-mono); font-size: 12px; color: var(--text-3); }
.works__counter .works__cur { font-family: var(--f-en); font-size: 38px; color: var(--text); line-height: 1; }
.works__bar { position: relative; width: 220px; height: 1px; background: var(--line-2); overflow: hidden; }
.works__bar span { position: absolute; inset: 0; background: var(--gold-deco); transform: scaleX(.2); transform-origin: left center; }
.works__viewport { margin-top: clamp(36px, 4vw, 60px); overflow-x: clip; }   /* 가로로 긴 카드 줄이 문서 폭을 늘리지 않게(세로는 그대로 — 그림자 안 잘림) */
.works__track { display: flex; gap: clamp(22px, 2.6vw, 44px); padding: 0 var(--pad-x); width: max-content; will-change: transform; }

.work {
  flex: none; position: relative; overflow: hidden;
  width: min(74vw, 1160px); height: clamp(420px, 60vh, 640px);
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow);
  transition: border-color .8s var(--ease);
}
.work:hover { border-color: rgba(160, 125, 67, .4); }
.work__visual { position: relative; overflow: hidden; border-right: 1px solid var(--line); background: #FBFAF7; }
.work__body { display: flex; flex-direction: column; padding: clamp(28px, 3vw, 50px); min-width: 0; }
.work__meta { display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 13.5px; font-weight: 600; color: var(--gold-ink); }
.status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--live { color: var(--gold-ink); }
.status--live::before { background: var(--gold-deco); animation: pulse 2.4s ease-out infinite; }
.work__title { text-wrap: balance; }
.work__title { margin: clamp(20px, 3vh, 36px) 0 16px; font-family: var(--f-kr); font-weight: 400; font-size: clamp(25px, 2.3vw, 38px); line-height: 1.3; letter-spacing: -.05em; }
.work__desc { color: var(--text-2); font-size: 15.5px; line-height: 1.82; }
.work__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.work__metrics li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.work__metrics strong { display: block; font-family: var(--f-kr); font-weight: 500; font-size: clamp(20px, 1.7vw, 27px); line-height: 1.2; letter-spacing: -.04em; white-space: nowrap; }
.work__metrics span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--text-3); }

@media (min-width: 1024px) and (min-height: 640px) {
  .works { padding-top: calc(var(--sec-y) * .45); }
  .works__pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 58px; }
  .works__title { font-size: clamp(30px, 3.4vw, 52px); }
  /* 연출이 없으면(움직임 줄이기 · GSAP 못 받음 · JS 꺼짐) 가로 줄을 넘겨 볼 방법이 없다 → 넓은 화면에서도 세로로 쌓는다 */
  html:not(.motion) .works__pin { height: auto; }
}
html:not(.motion) .works__track { flex-direction: column; width: auto; }
html:not(.motion) .work { width: 100%; }
html:not(.motion) .works__counter, html:not(.motion) .works__bar { display: none; }

/* 사례 아래 한 줄 */
.works-note { margin-top: 22px; font-size: 13px; color: var(--text-3); }

/* ── 교육 (돌색 시트) ── */
.academy { padding: 0 clamp(8px, 1.1vw, 18px); }
.academy__sheet { position: relative; overflow: hidden; padding: clamp(64px, 7.5vw, 116px) 0; border-radius: clamp(22px, 3vw, 46px); background: var(--bg-2); }
.academy__head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.academy__head > p { color: var(--text-2); font-size: 16.5px; line-height: 1.85; max-width: 28em; justify-self: end; }
.formats { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; margin-top: clamp(40px, 5vw, 64px); }
.formats p { color: var(--text-2); font-size: 14.5px; margin-right: auto; }

/* ── 진행 과정 ── */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 52px); margin-top: clamp(36px, 4.5vw, 64px); padding-top: 48px; }
.steps__rail { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.steps__rail span { position: absolute; inset: 0; background: var(--gold-grad); transform: scaleX(0); transform-origin: left center; }
.step { position: relative; }
.step::before { content: ""; position: absolute; left: 0; top: -52px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold-deco); }
.step__no { display: block; font-family: var(--f-en); font-style: italic; font-weight: 300; font-size: clamp(36px, 3.2vw, 48px); line-height: .9; color: var(--gold); letter-spacing: -.03em; }
.step h3 { margin: 14px 0 10px; font-family: var(--f-kr); font-weight: 500; font-size: clamp(21px, 1.8vw, 26px); letter-spacing: -.05em; }
.step p { color: var(--text-2); font-size: 15.5px; line-height: 1.82; }

/* ── 문의 ── */
.contact { border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 130px); align-items: start; }
.contact__title { font-size: clamp(32px, 4vw, 60px); }
.contact__lead { margin-top: 26px; color: var(--text-2); font-size: 16.5px; line-height: 1.85; max-width: 28em; }
.contact__msg { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.contact__msg .btn--kakao { margin-top: 0; }
.channels { margin-top: 48px; border-top: 1px solid var(--line); }
.channels li { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.channels li > span { font-size: 13.5px; font-weight: 600; color: var(--text-3); }
.channels a { position: relative; font-size: 16.5px; transition: color .4s; }
.channels a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--gold-deco); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.channels a:hover { color: var(--gold); }
.channels a:hover::after { transform: scaleX(1); transform-origin: left; }
.form { padding: clamp(28px, 3.4vw, 52px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.form .btn { width: 100%; justify-content: center; }

/* ── RESPONSIVE ── */
@media (max-width: 1023px), (max-height: 639px) {
  .works__headrow { grid-template-columns: 1fr; }
  .works__side { justify-items: start; text-align: left; }
  .works__counter, .works__bar { display: none; }
  .works__track { flex-direction: column; width: auto; }
  .work { width: 100%; height: auto; grid-template-columns: 1fr; }
  .work__visual { aspect-ratio: 16 / 11; border-right: 0; border-bottom: 1px solid var(--line); }
  .work__metrics { margin-top: 30px; }
}
@media (max-width: 1023px) {
  .academy__head { grid-template-columns: 1fr; gap: 24px; }
  .academy__head > p { justify-self: start; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .steps__rail, .step::before { display: none; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .steps { grid-template-columns: 1fr; row-gap: 36px; }
  .work__metrics strong { font-size: 19px; }
  .work__metrics li + li { padding-left: 12px; }
  .form { padding: 26px 20px; }
}
