html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.tm {
  width: min(100%, 432px);
}

.tm__eyebrow {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-weight: 700;
  font-size: clamp(8px, 2.4vw, 10px);
  line-height: 1;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}

.tm__ico {
  display: inline-flex;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  color: #2f6df6;
}

.tm__ico svg {
  width: 100%;
  height: 100%;
}

.tm__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 12px 0 0;
}

.tm__card {
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tm__orb {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  opacity: 0.78;
  transform-origin: 50% 50%;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tm__orb--first {
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 44%), radial-gradient(circle at 52% 56%, #2f6df6 0%, rgba(47, 109, 246, 0.5) 58%, rgba(23, 20, 26, 0.92) 100%);
  box-shadow: 0 0 12px rgba(47, 109, 246, 0.42);
}

.tm__orb--second {
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 44%), radial-gradient(circle at 52% 56%, #ff9ebb 0%, rgba(255, 158, 187, 0.5) 58%, rgba(23, 20, 26, 0.92) 100%);
  box-shadow: 0 0 12px rgba(255, 158, 187, 0.42);
}

.tm__orb--third {
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 44%), radial-gradient(circle at 52% 56%, #4cd4a6 0%, rgba(76, 212, 166, 0.5) 58%, rgba(23, 20, 26, 0.92) 100%);
  box-shadow: 0 0 12px rgba(76, 212, 166, 0.42);
}

.tm__quote {
  margin: 8px 0 0;
  font-weight: 600;
  font-size: clamp(8px, 2.6vw, 10px);
  line-height: 1.45;
  color: #fff7e6;
}

.tm__role {
  margin: 8px 0 0;
  font-weight: 500;
  font-size: clamp(7px, 2vw, 9px);
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.68);
}

.tm__card:hover, .tm__card:active {
  transform: translateY(-4px);
}

.tm__card:hover .tm__orb, .tm__card:active .tm__orb {
  opacity: 1;
  transform: scale(1.18);
}

.tm.is-demo .tm__card,
.tm.is-demo .tm__orb {
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.tm.is-demo .tm__card {
  animation-name: tmLift;
}

.tm.is-demo .tm__orb {
  animation-name: tmOrbPop;
}

.tm.is-demo .tm__card:nth-child(2), .tm.is-demo .tm__card:nth-child(2) .tm__orb {
  animation-delay: 667ms;
}

.tm.is-demo .tm__card:nth-child(3), .tm.is-demo .tm__card:nth-child(3) .tm__orb {
  animation-delay: 1334ms;
}

@keyframes tmLift {
  0% {
    transform: translateY(0);
  }
  12% {
    transform: translateY(-4px);
  }
  28% {
    transform: translateY(-4px);
  }
  40% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes tmOrbPop {
  0% {
    opacity: 0.78;
    transform: scale(1);
  }
  12% {
    opacity: 1;
    transform: scale(1.18);
  }
  28% {
    opacity: 1;
    transform: scale(1.14);
  }
  40% {
    opacity: 0.78;
    transform: scale(1);
  }
  100% {
    opacity: 0.78;
    transform: scale(1);
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .tm__eyebrow {
    font-size: 8px;
  }
  .tm__ico {
    width: 10px;
    height: 10px;
  }
  .tm__grid {
    gap: 8px;
    margin-top: 8px;
  }
  .tm__card {
    padding: 8px;
  }
  .tm__orb {
    width: 20px;
    height: 20px;
  }
  .tm__quote {
    font-size: 8px;
    margin-top: 4px;
  }
  .tm__role {
    font-size: 7px;
    margin-top: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tm.is-demo .tm__card,
  .tm.is-demo .tm__orb {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .tm__card, .tm__orb {
    transition: none !important;
  }
}
