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

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

.tm {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  box-sizing: border-box;
  width: min(100%, 440px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tm__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
}

.tm__face {
  display: grid;
  place-items: center;
  width: clamp(28px, 9vw, 40px);
  height: clamp(28px, 9vw, 40px);
  border-radius: 50%;
  background: #2f6df6;
  color: #17141a;
  font-size: clamp(18px, 6vw, 26px);
}

.tm__name {
  margin: 0;
  color: #17141a;
  font-weight: 700;
  font-size: clamp(12px, 3.4vw, 15px);
  line-height: 1.25;
}

.tm__role {
  margin: 0;
  color: rgba(23, 20, 26, 0.72);
  font-weight: 500;
  font-size: clamp(8px, 2.4vw, 10px);
  line-height: 1.3;
}

.tm__contact {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid rgba(23, 20, 26, 0.14);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tm__card:hover .tm__contact,
.tm__card:focus-within .tm__contact {
  clip-path: inset(0 0 0 0);
}

.tm__ic {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #2f6df6;
  font-size: 12px;
}

.tm__link {
  color: #17141a;
  font-weight: 700;
  font-size: clamp(8px, 2.4vw, 10px);
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tm__link:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 2px;
  border-radius: 4px;
}

.tm.is-demo .tm__contact {
  animation-name: tmOpen;
  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:nth-child(2) .tm__contact {
  animation-delay: 0.6s;
}

.tm.is-demo .tm__card:nth-child(3) .tm__contact {
  animation-delay: 1.2s;
}

@keyframes tmOpen {
  0% {
    clip-path: inset(0 0 100% 0);
  }
  8% {
    clip-path: inset(0 0 0 0);
  }
  22% {
    clip-path: inset(0 0 0 0);
  }
  30%, 100% {
    clip-path: inset(0 0 100% 0);
  }
}
@media (max-width: 340px) {
  .tm {
    gap: 4px;
  }
  .tm__card {
    padding: 4px;
  }
  .tm__ic {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tm.is-demo .tm__contact {
    animation: none !important;
    clip-path: inset(0 0 0 0) !important;
    transition: none !important;
  }
}
