.project-card {
  position: relative;
  grid-template-columns: minmax(210px, .78fr) minmax(0, 1.22fr);
  gap: 38px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(105, 179, 208, .2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 2% 0%, rgba(255, 120, 145, .09), transparent 32%),
    linear-gradient(145deg, rgba(7, 31, 70, .98), rgba(2, 24, 58, .97));
  box-shadow: 0 26px 70px rgba(0, 8, 28, .25);
  color: inherit;
  text-decoration: none;
  isolation: isolate;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 45%, rgba(105, 179, 208, .055));
  pointer-events: none;
}

.project-card:hover {
  border-color: rgba(255, 120, 145, .46);
  box-shadow: 0 34px 86px rgba(0, 8, 28, .4);
  transform: translateY(-5px);
}

.project-card:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 5px;
}

.project-mark {
  position: relative;
  display: flex;
  min-height: 292px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 22px 18px 18px;
  border: 1px solid rgba(232, 238, 248, .15);
  border-radius: 16px;
  background:
    radial-gradient(circle at 68% 22%, rgba(255, 120, 145, .15), transparent 28%),
    linear-gradient(155deg, #0c2b51 0%, #071d3c 65%, #061832 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .04),
    0 20px 42px rgba(0, 8, 28, .3);
}

.project-mark::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(105, 179, 208, .12);
  border-radius: 11px;
  pointer-events: none;
}

.beauty-shelf-mark {
  width: min(168px, 82%);
  height: auto;
  margin-top: -8px;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .45s cubic-bezier(.2, .75, .25, 1);
}

.mark-orbit {
  stroke: rgba(105, 179, 208, .26);
  stroke-width: 1.4;
  stroke-dasharray: 2 7;
}

.mark-profile {
  stroke: #e8eef8;
  stroke-width: 3;
}

.mark-detail {
  stroke: rgba(232, 238, 248, .62);
  stroke-width: 2;
}

.mark-shelf {
  stroke: var(--accent);
  stroke-width: 2;
}

.mark-sparkles {
  stroke: var(--warm);
  stroke-width: 1.8;
}

.project-mark-name {
  position: relative;
  z-index: 1;
  margin-top: -8px;
  text-align: center;
}

.project-mark-name span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font: 400 8px/1.4 "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.project-mark-name strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.015em;
}

.project-mark-name em {
  color: var(--warm);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 400;
}

.project-mark-action {
  position: absolute;
  right: 15px;
  bottom: 13px;
  color: rgba(154, 172, 202, .78);
  font: 400 8px/1 "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: color .25s ease;
}

.project-mark-action i {
  display: inline-block;
  margin-left: 3px;
  color: var(--warm);
  font-style: normal;
  transition: transform .25s ease;
}

.project-card:hover .beauty-shelf-mark {
  transform: translateY(-3px) scale(1.025);
}

.project-card:hover .project-mark-action {
  color: var(--text);
}

.project-card:hover .project-mark-action i {
  transform: translate(2px, -2px);
}

.project-content {
  align-self: center;
}

.project-label {
  margin-bottom: 10px;
  letter-spacing: .09em;
}

.project-content h3 {
  margin-bottom: 14px;
  font-size: clamp(23px, 2.5vw, 30px);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.project-content h3 em {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08em;
  font-weight: 400;
}

.project-content > p:not(.project-label):not(.project-note) {
  max-width: 570px;
  font-size: 15px;
  line-height: 1.75;
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid rgba(105, 179, 208, .15);
  border-radius: 10px;
  background: rgba(105, 179, 208, .15);
}

.project-stats span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 12px 10px;
  background: rgba(0, 22, 56, .76);
  color: var(--muted);
  font: 400 9px/1.4 "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .045em;
}

.project-stats strong {
  margin-bottom: 2px;
  color: var(--text);
  font: 600 17px/1.2 Inter, Arial, sans-serif;
}

.project-card .tags {
  margin-top: 18px;
}

.project-content .project-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  padding: 10px 15px;
  border: 1px solid rgba(255, 120, 145, .4);
  border-radius: 999px;
  background: rgba(255, 120, 145, .07);
  color: var(--warm);
  font-weight: 500;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.project-content .project-note span {
  transition: transform .2s ease;
}

.project-card:hover .project-note {
  border-color: var(--warm);
  background: var(--warm);
  color: var(--bg);
}

.project-card:hover .project-note span {
  transform: translate(2px, -2px);
}

@media (max-width: 1100px) {
  .project-card {
    grid-template-columns: minmax(190px, .72fr) minmax(0, 1.28fr);
    gap: 26px;
    padding: 24px;
  }

  .project-mark {
    min-height: 270px;
  }

  .project-stats {
    grid-template-columns: 1fr;
  }

  .project-stats span {
    flex-direction: row;
    align-items: baseline;
    gap: 7px;
    padding: 8px 10px;
  }
}

@media (max-width: 620px) {
  .project-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 18px;
    border-radius: 16px;
  }

  .project-mark {
    min-height: 278px;
  }

  .beauty-shelf-mark {
    width: 158px;
  }

  .project-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-stats span {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card,
  .beauty-shelf-mark,
  .project-mark-action i,
  .project-content .project-note span {
    transition: none;
  }
}
