/* Homepage project card. Original TopicPair mark, with a clean public wordmark image. */
.active-project {
  margin-top: 22px;
}

.active-project-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 24px;
  column-gap: 24px;
  row-gap: 7px;
  align-items: center;
  padding: 25px 28px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(3, 8, 5, 0.86);
  color: var(--text-strong);
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.active-project-icon {
  position: relative;
  grid-row: 1 / 3;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 21px;
  background: #080b0a;
}

/* The public asset is a clean original logo + wordmark, without a homescreen. */
.active-project-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.active-project-copy {
  min-width: 0;
}

.active-project-label {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.4;
}

.active-project-copy h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.active-project-status {
  margin: 7px 0 0;
  color: var(--muted-strong);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.035em;
  line-height: 1.5;
}

.active-project-line {
  grid-column: 2;
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.88rem;
  line-height: 1.65;
}

.active-project-arrow {
  grid-column: 3;
  grid-row: 1 / 3;
  justify-self: end;
  color: var(--muted-strong);
  font-size: 1.2rem;
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease;
}

.active-project-card:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .active-project-card:hover {
    border-color: rgba(184, 255, 61, 0.3);
    background: rgba(8, 14, 10, 0.94);
    color: var(--text-strong);
    transform: translateY(-2px);
  }

  .active-project-card:hover .active-project-arrow {
    color: var(--accent);
    transform: translate(1px, -1px);
  }
}

@media (max-width: 680px) {
  .active-project {
    margin-top: 16px;
  }

  .active-project-card {
    grid-template-columns: 62px minmax(0, 1fr) 16px;
    column-gap: 15px;
    row-gap: 17px;
    padding: 21px 19px;
  }

  .active-project-icon {
    grid-row: 1;
    width: 62px;
    height: 62px;
    border-radius: 17px;
  }

  .active-project-line {
    grid-column: 1 / -1;
    font-size: 0.85rem;
  }

  .active-project-arrow {
    grid-row: 1;
    align-self: center;
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .active-project-card,
  .active-project-arrow {
    transition: none;
  }

  .active-project-card:hover,
  .active-project-card:hover .active-project-arrow {
    transform: none;
  }
}
