.tm {
  --tm-fig-h: 380px;
  --tm-head-room: 20px;
  --tm-feet-gap: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  max-width: 920px;
  margin: 0 auto var(--space-3xl);
}

.tm-member {
  --tm-tint: var(--g2);
  --tm-tint-mix: 9%;
  --tm-feet-x: 53%;
  --tm-feet-w: 78%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.tm-member--sara {
  --tm-tint: var(--g1);
  --tm-feet-x: 60%;
  --tm-feet-w: 70%;
}

.tm-stage {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: calc(var(--tm-fig-h) + var(--tm-head-room) + var(--tm-feet-gap));
  padding-bottom: var(--tm-feet-gap);
}
.tm-stage::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 8% -12% 0;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--tm-tint) var(--tm-tint-mix), transparent),
    transparent
  );
  pointer-events: none;
}
.tm-body {
  position: relative;
  display: block;
  height: var(--tm-fig-h);
}
.tm-figure {
  position: relative;
  z-index: 2;
  display: block;
  width: auto;
  height: 100%;
  filter: drop-shadow(0 1px 2px rgba(8, 11, 24, 0.08));
  transition: opacity 900ms var(--ease-out);
}
.tm-ground {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 0;
  transition: opacity 900ms var(--ease-out);
}
.tm-ground::before {
  content: '';
  position: absolute;
  bottom: -9px;
  left: var(--tm-feet-x);
  width: var(--tm-feet-w);
  height: 20px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--tm-ambient), transparent);
}
.tm-shoe {
  position: absolute;
  bottom: calc(var(--tm-fig-h) * var(--y));
  left: var(--x);
  width: calc(var(--w) * 1.15);
  height: 14px;
  transform: translate(-50%, 60%);
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    var(--tm-contact),
    var(--tm-contact-soft) 60%,
    transparent
  );
  filter: blur(1.2px);
}
.tm-member {
  --tm-contact: rgba(8, 11, 24, 0.42);
  --tm-contact-soft: rgba(8, 11, 24, 0.12);
  --tm-ambient: rgba(8, 11, 24, 0.09);
}
:root[data-theme='dark'] .tm-member {
  --tm-contact: rgba(0, 0, 0, 0.65);
  --tm-contact-soft: rgba(0, 0, 0, 0.22);
  --tm-ambient: rgba(0, 0, 0, 0.3);
}
:root[data-theme='dark'] .tm-member {
  --tm-tint-mix: 16%;
}
.tm-member[data-state='waiting'] .tm-figure,
.tm-member[data-state='waiting'] .tm-ground {
  opacity: 0;
}
.tm-clip {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
  pointer-events: none;
}
.tm-member.is-clip .tm-clip {
  opacity: 1;
}
.tm-member.is-clip .tm-figure {
  opacity: 0;
}
.tm-member[data-tap] .tm-stage {
  cursor: pointer;
}

.tm-card {
  position: relative;
  z-index: 3;
  margin-top: var(--space-xs);
  padding: var(--space-lg);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-1);
  box-shadow:
    0 1px 2px rgba(8, 11, 24, 0.04),
    0 18px 44px -28px rgba(8, 11, 24, 0.22);
}
.tm-role {
  margin: 0;
  color: color-mix(in srgb, var(--tm-tint) 80%, var(--text));
  font-size: var(--text-body-s);
  line-height: var(--leading-body-s);
  font-weight: 600;
}
.tm-name {
  margin: 2px 0 0;
  color: var(--text);
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  font-weight: 700;
}
.tm-points {
  display: grid;
  gap: 8px;
  margin: var(--space-sm) 0 0;
  padding: 0;
  list-style: none;
}
.tm-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}
.tm-points .ic {
  flex: none;
  color: color-mix(in srgb, var(--tm-tint) 85%, var(--text));
}
.tm-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-md);
  color: var(--interactive);
  font-size: var(--text-body-s);
  line-height: var(--leading-body-s);
  font-weight: 600;
  text-decoration: none;
}
.tm-link .ic {
  transition: transform var(--motion-base);
}
.tm-link:hover .ic {
  transform: translateX(-3px);
}
html[dir='ltr'] .tm-link .ic {
  transform: scaleX(-1);
}
html[dir='ltr'] .tm-link:hover .ic {
  transform: scaleX(-1) translateX(-3px);
}

@media (max-width: 767px) {
  .tm {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
  }
  .tm {
    --tm-fig-h: 320px;
  }
  .tm-figure {
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tm-figure,
  .tm-ground {
    transition: none;
  }
}
