.hbx-section {
  --hbx-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.hbx-head-side {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 24px;
}

.hbx-head-side .n2-body {
  color: var(--b500, #9c9c9c);
}

.hbx-more {
  gap: 6px;
  overflow: hidden;
}

.hbx-more-icon {
  flex: none;
  transition: transform 0.5s var(--hbx-ease);
}

.hbx-more:hover .hbx-more-icon {
  transform: translate(2px, -2px);
}

.hbx-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 24px;
  padding-bottom: 72px;
  font-family: var(--kr, Pretendard, Arial, sans-serif);
}

.hbx-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  translate: 0 var(--hbx-lift, 0px);
  will-change: translate;
}

.hbx-card:nth-child(even) {
  --hbx-offset: 72px;
  margin-top: var(--hbx-offset);
  margin-bottom: calc(var(--hbx-offset) * -1);
}

.hbx-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
  background: var(--b100, #f6f6f6);
  isolation: isolate;
}

.hbx-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06);
  pointer-events: none;
}

.hbx-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 1.2s var(--hbx-ease);
}

.hbx-card:hover .hbx-image {
  transform: scale(1.04);
}

.hbx-media--profile {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hbx-image.hbx-image--profile {
  width: var(--hbx-profile-size);
  height: var(--hbx-profile-size);
  border-radius: 50%;
  object-position: center;
}

.hbx-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: linear-gradient(180deg, rgb(0 0 0 / 0) 35%, rgb(0 0 0 / 0.55) 70%, rgb(0 0 0 / 0.82) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--hbx-ease);
}

.hbx-card:hover .hbx-overlay,
.hbx-card:focus-visible .hbx-overlay {
  opacity: 1;
}

.hbx-stats {
  display: flex;
  gap: 20px;
  margin: 0;
  color: var(--b-white, #fff);
  transform: translateY(14px);
  transition: transform 0.6s var(--hbx-ease);
}

.hbx-card:hover .hbx-stats,
.hbx-card:focus-visible .hbx-stats {
  transform: none;
}

.hbx-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hbx-stats dt {
  font-size: 12px;
  opacity: 0.75;
}

.hbx-stats dd {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hbx-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 4px 0;
}

.hbx-title {
  display: flex;
  align-items: center;
  height: 22px;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.hbx-wordmark {
  max-width: 72%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0);
}

.hbx-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hbx-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hbx-category {
  margin: 0;
  color: var(--b500, #9c9c9c);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hbx-grid.hbx-armed .hbx-card {
  opacity: 0;
  transform: translateY(64px);
  transition:
    opacity 0.9s ease-out,
    transform 1.3s var(--hbx-ease);
  transition-delay: calc(var(--hbx-order, 0) * 90ms);
}

.hbx-grid.hbx-armed .hbx-media {
  clip-path: inset(18% 0 0 0 round 20px);
  transition: clip-path 1.3s var(--hbx-ease);
  transition-delay: calc(var(--hbx-order, 0) * 90ms);
}

.hbx-grid.hbx-armed .hbx-image {
  transform: scale(1.18);
  transition: transform 1.6s var(--hbx-ease);
  transition-delay: calc(var(--hbx-order, 0) * 90ms);
}

.hbx-grid.hbx-armed .hbx-card.is-in {
  opacity: 1;
  transform: none;
}

.hbx-grid.hbx-armed .hbx-card.is-in .hbx-media {
  clip-path: inset(0 0 0 0 round 20px);
}

.hbx-grid.hbx-armed .hbx-card.is-in .hbx-image {
  transform: none;
}

.hbx-grid.hbx-armed .hbx-card.is-in:hover .hbx-image {
  transform: scale(1.04);
  transition-delay: 0s;
  transition-duration: 1.2s;
}

.hbx-grid.hbx-settled .hbx-card,
.hbx-grid.hbx-settled .hbx-media,
.hbx-grid.hbx-settled .hbx-image {
  transition-delay: 0s;
}

@media (max-width: 991px) {
  .hbx-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 16px;
    padding-bottom: 40px;
  }

  .hbx-card:nth-child(even) {
    --hbx-offset: 40px;
  }
}

@media (max-width: 767px) {
  .hbx-head-side {
    grid-column: 1 / -1;
    gap: 16px;
  }

  .hbx-grid {
    gap: 28px 12px;
  }

  .hbx-media {
    border-radius: 14px;
  }

  .hbx-grid.hbx-armed .hbx-media {
    clip-path: inset(18% 0 0 0 round 14px);
  }

  .hbx-grid.hbx-armed .hbx-card.is-in .hbx-media {
    clip-path: inset(0 0 0 0 round 14px);
  }

  .hbx-info {
    padding-top: 12px;
    gap: 4px;
  }

  .hbx-title {
    height: 18px;
    font-size: 15px;
  }

  .hbx-category {
    font-size: 11px;
  }

  .hbx-overlay {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hbx-card {
    translate: none;
  }

  .hbx-grid.hbx-armed .hbx-card,
  .hbx-grid.hbx-armed .hbx-media,
  .hbx-grid.hbx-armed .hbx-image {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }
}
