/* 2주차 개념 장면 — Reveal의 fragment 진행에 맞춰 한 단계씩 움직인다. */
.reveal.week2-focused .course-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 92px;
  border-bottom: 1px solid #232c37;
  background: #080c11;
  font-size: 23px;
}

.course-part {
  font-family: 'JetBrains Mono','SF Mono','D2Coding',ui-monospace,monospace;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .18em;
  color: #d97757;
}

.course-part-name { color: #8b949e; }

.course-progress {
  margin-left: auto;
  width: 520px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.course-progress > span {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #1c232b;
}

.course-progress > .done { background: #39424e; }
.course-progress > .now {
  background: linear-gradient(90deg, #d97757 var(--fill), #1c232b var(--fill));
}

.motion-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 92px 58px;
}

.motion-kicker {
  margin-bottom: 12px;
  font: 800 22px/1.2 'JetBrains Mono','SF Mono','D2Coding',ui-monospace,monospace;
  letter-spacing: .18em;
  color: #d97757;
}

.motion-title {
  margin: 0 0 28px;
  font-size: 52px;
  line-height: 1.14;
  letter-spacing: -.025em;
  color: #e6edf3;
}

.motion-stage {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid #232c37;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 38%, rgba(217,119,87,.09), transparent 34%),
    #0e141b;
}

.motion-stage .fragment.custom {
  visibility: visible;
  opacity: 0;
}

.motion-stage .fragment.custom.visible { opacity: 1; }

.motion-node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid #2c3642;
  border-radius: 18px;
  background: #12181f;
  color: #e6edf3;
  box-shadow: 0 18px 50px rgba(0,0,0,.24);
}

.motion-node strong { color: #d97757; }

.motion-caption {
  position: absolute;
  font-size: 24px;
  line-height: 1.48;
  color: #8b949e;
}

.install-first-slide { padding-bottom: 82px; }

.install-first-layout {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 34px;
  align-items: stretch;
}

.install-chat {
  padding: 34px 38px;
  border: 2px solid #3fb950;
  border-radius: 20px;
  background: #0e1713;
  box-shadow: 0 22px 65px rgba(0,0,0,.28);
}

.install-chat-label {
  margin-bottom: 22px;
  font: 800 21px/1.2 'JetBrains Mono','SF Mono','D2Coding',ui-monospace,monospace;
  letter-spacing: .1em;
  color: #3fb950;
}

.install-chat p {
  margin: 0 0 13px;
  font-size: 29px;
  line-height: 1.48;
  color: #e6edf3;
  word-break: keep-all;
}

.install-chat a {
  display: inline-block;
  margin-top: 18px;
  color: #58a6ff;
  font: 700 20px/1.3 'JetBrains Mono','SF Mono','D2Coding',ui-monospace,monospace;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.install-steps { display: flex; flex-direction: column; gap: 14px; }

.install-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 17px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #2c3642;
  color: #8b949e;
  font-size: 25px;
  line-height: 1.45;
}

.install-step b {
  color: #d97757;
  font: 800 31px/1 'JetBrains Mono','SF Mono','D2Coding',ui-monospace,monospace;
}

.install-step strong { color: #e6edf3; }

.install-option {
  margin-top: 5px;
  padding: 21px 24px;
  border: 1px solid #39424e;
  border-radius: 14px;
  background: #12181f;
  color: #8b949e;
  font-size: 23px;
  line-height: 1.52;
}

.install-option strong { color: #d29922; }
.install-option b { color: #e6edf3; }

.resource-links {
  position: absolute;
  right: 34px;
  bottom: 16px;
  z-index: 8;
  display: flex;
  gap: 10px;
  align-items: center;
}

.resource-links a {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid #39424e;
  border-radius: 9px;
  background: rgba(8,12,17,.94);
  color: #58a6ff;
  font: 700 17px/1.2 'JetBrains Mono','SF Mono','D2Coding',ui-monospace,monospace;
  text-decoration: none;
}

.resource-links a:hover,
.resource-links a:focus-visible {
  border-color: #58a6ff;
  color: #e6edf3;
}

.step-rise {
  transform: translateY(34px) scale(.96);
  transition: opacity .4s ease, transform .65s cubic-bezier(.22,1,.36,1);
}
.step-rise.visible { transform: translateY(0) scale(1); }

.step-slide-left {
  transform: translateX(130px);
  transition: opacity .4s ease, transform .7s cubic-bezier(.22,1,.36,1);
}
.step-slide-left.visible { transform: translateX(0); }

.step-pop {
  transform: scale(.74);
  transition: opacity .35s ease, transform .55s cubic-bezier(.2,1.45,.35,1);
}
.step-pop.visible { transform: scale(1); }

.skill-desk {
  position: absolute;
  inset: 0 0 158px;
  border-bottom: 2px solid #2c3642;
}

.skill-drawer {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 520px;
  height: 108px;
  transform: translateX(-50%);
  border: 2px solid #39424e;
  border-radius: 14px;
  background: #0a0f15;
  box-shadow: inset 0 13px 30px rgba(0,0,0,.42);
}

.skill-drawer::after {
  content: 'SKILLS · 필요할 때 꺼내는 서랍';
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  white-space: nowrap;
  font: 800 20px/1 'JetBrains Mono','SF Mono','D2Coding',ui-monospace,monospace;
  letter-spacing: .11em;
  color: #5a6472;
}

.skill-manual {
  left: calc(50% - 225px);
  top: 180px;
  width: 450px;
  height: 145px;
  padding: 26px 30px;
  justify-content: flex-start;
  transform: translateY(210px) scale(.78);
  transition: opacity .4s ease, transform .8s cubic-bezier(.22,1,.36,1), box-shadow .5s ease;
  border: 2px solid #3fb950;
  font-size: 27px;
  line-height: 1.45;
}
.skill-manual.visible {
  transform: translateY(-76px) scale(1);
  box-shadow: 0 0 0 1px rgba(63,185,80,.18), 0 24px 70px rgba(0,0,0,.48);
}

.skill-input { left: 55px; top: 86px; width: 310px; height: 120px; font-size: 27px; }
.skill-output { right: 55px; top: 86px; width: 310px; height: 120px; font-size: 27px; }
.skill-arrow { position: absolute; top: 122px; font-size: 42px; color: #5a6472; }
.skill-arrow.left { left: 390px; }
.skill-arrow.right { right: 390px; }

.mcp-ai {
  left: 86px;
  top: 118px;
  width: 300px;
  height: 210px;
  flex-direction: column;
  gap: 12px;
  font-size: 34px;
  border: 2px solid #d97757;
}

.mcp-source {
  right: 72px;
  width: 310px;
  height: 96px;
  font-size: 25px;
}
.mcp-source.one { top: 58px; }
.mcp-source.two { top: 184px; }
.mcp-source.three { top: 310px; }

.mcp-cable {
  position: absolute;
  left: 390px;
  top: 222px;
  width: 420px;
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, #d97757, #3fb950);
  transform: scaleX(0);
  transform-origin: left center;
  transition: opacity .2s ease, transform .8s cubic-bezier(.22,1,.36,1);
}
.mcp-cable.visible { transform: scaleX(1); }
.mcp-cable::after {
  content: 'MCP';
  position: absolute;
  left: 50%;
  top: -42px;
  transform: translateX(-50%);
  font: 800 23px/1 'JetBrains Mono','SF Mono','D2Coding',ui-monospace,monospace;
  letter-spacing: .16em;
  color: #3fb950;
}

.mcp-packet {
  position: absolute;
  top: 194px;
  width: 92px;
  height: 58px;
  border: 1px solid #3fb950;
  border-radius: 10px;
  background: #102018;
  color: #3fb950;
  font: 800 20px/58px 'JetBrains Mono','SF Mono','D2Coding',ui-monospace,monospace;
  text-align: center;
}
.mcp-packet.p1 { left: 665px; }
.mcp-packet.p2 { left: 555px; transition-delay: .12s; }
.mcp-packet.p3 { left: 445px; transition-delay: .24s; }

.mcp-answer {
  position: absolute;
  left: 72px;
  bottom: 28px;
  width: 330px;
  padding: 15px 22px;
  border-radius: 13px;
  background: #102018;
  border: 1px solid #3fb950;
  color: #c7f0cf;
  font-size: 22px;
}

.combo-flow {
  display: grid;
  grid-template-columns: 1fr 90px 1fr 90px 1fr 90px 1fr;
  align-items: center;
  gap: 0;
  min-height: 340px;
  padding: 40px 50px;
}
.combo-box {
  min-height: 178px;
  padding: 26px 22px;
  border: 1px solid #2c3642;
  border-radius: 18px;
  background: #12181f;
  text-align: center;
  font-size: 25px;
  line-height: 1.45;
  color: #8b949e;
}
.combo-box b { display: block; margin-bottom: 13px; font-size: 30px; color: #e6edf3; }
.combo-arrow { text-align: center; font-size: 42px; color: #5a6472; }

.desk-surface {
  position: absolute;
  left: 55px;
  right: 55px;
  bottom: 78px;
  height: 16px;
  border-radius: 4px;
  background: #39424e;
  box-shadow: 0 18px 0 #171e26;
}
.desk-paper {
  position: absolute;
  width: 330px;
  height: 176px;
  padding: 25px;
  box-sizing: border-box;
  border: 1px solid #39424e;
  border-radius: 14px;
  background: #151c24;
  color: #8b949e;
  font-size: 24px;
  line-height: 1.45;
  box-shadow: 0 18px 35px rgba(0,0,0,.35);
}
.desk-paper b { display: block; margin-bottom: 10px; color: #e6edf3; }
.desk-paper.p1 { left: 95px; bottom: 94px; transform: rotate(-3deg); }
.desk-paper.p2 { left: 350px; bottom: 102px; transform: rotate(2deg); }
.desk-paper.p3 { left: 610px; bottom: 91px; transform: rotate(-2deg); }
.desk-paper.p4 { left: 875px; bottom: 100px; transform: rotate(3deg); }
.desk-paper.important { border: 2px solid #d97757; }

.desk-meter {
  position: absolute;
  left: 58px;
  right: 58px;
  top: 40px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #8b949e;
  font: 700 22px/1 'JetBrains Mono','SF Mono','D2Coding',ui-monospace,monospace;
}
.desk-meter-track { flex: 1; height: 12px; overflow: hidden; border-radius: 99px; background: #1c232b; }
.desk-meter-fill { display: block; width: 76%; height: 100%; background: linear-gradient(90deg,#3fb950,#d29922,#d97757); }

.cleanup-stage { min-height: 410px; }
.cleanup-state {
  position: absolute;
  inset: 48px 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  border-radius: 18px;
  background: #0e141b;
}
.cleanup-state.fragment.custom { pointer-events: none; }
.cleanup-state.fragment.custom.visible { pointer-events: auto; }
.cleanup-sheet {
  width: 190px;
  height: 245px;
  padding: 24px;
  box-sizing: border-box;
  border: 1px solid #39424e;
  border-radius: 13px;
  background: #151c24;
  color: #8b949e;
  font-size: 23px;
}
.cleanup-summary {
  width: 430px;
  padding: 34px;
  border: 2px solid #3fb950;
  border-radius: 16px;
  background: #102018;
  color: #c7f0cf;
  font-size: 27px;
  line-height: 1.5;
}
.cleanup-empty {
  color: #5a6472;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.usage-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.usage-box {
  padding: 34px 38px;
  border: 1px solid #232c37;
  border-radius: 18px;
  background: #12181f;
}
.usage-command {
  margin-bottom: 30px;
  color: #3fb950;
  font: 800 34px/1 'JetBrains Mono','SF Mono','D2Coding',ui-monospace,monospace;
}
.usage-track { height: 20px; overflow: hidden; border-radius: 99px; background: #1c232b; }
.usage-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg,#3fb950,#d29922,#d97757);
  transition: width 1s cubic-bezier(.22,1,.36,1);
}
.usage-fill.visible { width: var(--usage); }

.hero-orbit {
  position: absolute;
  right: 120px;
  top: 160px;
  width: 610px;
  height: 610px;
}
.hero-core {
  position: absolute;
  left: 205px;
  top: 205px;
  width: 200px;
  height: 200px;
  border: 2px solid #d97757;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #12181f;
  color: #e6edf3;
  font-size: 38px;
  font-weight: 800;
  box-shadow: 0 0 70px rgba(217,119,87,.18);
}
.hero-token {
  position: absolute;
  width: 190px;
  padding: 20px 16px;
  border: 1px solid #39424e;
  border-radius: 16px;
  background: #10161d;
  color: #8b949e;
  text-align: center;
  font-size: 24px;
  opacity: 0;
}
.hero-token b { display: block; margin-bottom: 6px; color: #e6edf3; font-size: 29px; }
.hero-token.skill { left: 5px; top: 60px; }
.hero-token.mcp { right: 5px; top: 60px; }
.hero-token.context { left: 180px; bottom: 35px; width: 250px; }
.hero-token.context b { white-space: nowrap; }
.present .hero-token { animation: hero-in .7s cubic-bezier(.22,1,.36,1) forwards; }
.present .hero-token.mcp { animation-delay: .24s; }
.present .hero-token.context { animation-delay: .48s; }
@keyframes hero-in { from { opacity:0; transform:translateY(35px) scale(.9); } to { opacity:1; transform:none; } }

.reveal .slide-number { font-family: 'JetBrains Mono','SF Mono','D2Coding',ui-monospace,monospace; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
