/* ===== Key Projects Section (Consolidated 3-Card Bento Grid) ===== */

.project-grid {
  display: grid;
  grid-template-columns: 5fr 4fr 3fr;
  gap: 26px;
  align-items: stretch;
  margin-bottom: 48px;
}

.project-card {
  position: relative;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 22px;
  padding: 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card.featured {
  padding: 0;
  overflow: hidden;
}

.card-media {
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg);
  position: relative;
  border-bottom: 1px solid var(--line);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-media figcaption {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(25, 42, 32, 0.85);
  backdrop-filter: blur(6px);
  color: var(--accent);
  font-family: var(--display);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.project-card.featured .card-body {
  padding: 24px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.card-kicker {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0;
}

.project-card h3 {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

.card-lede {
  font-size: 14px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--text) 82%, transparent);
  margin: 0;
}

.card-facts {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-facts li {
  font-size: 13.5px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--text) 86%, transparent);
  position: relative;
  padding-left: 18px;
}

.card-facts li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: bold;
}

.card-scene {
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.card-scene .sprite-host {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1 / 1;
}

.card-scene-note {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text);
  text-align: center;
  margin: 0;
}

.card-flow {
  background: color-mix(in srgb, var(--bg) 50%, transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-flow article {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-flow .flow-icon {
  font-size: 16px;
  color: var(--accent);
}

.card-flow h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.card-flow p {
  font-size: 12px;
  color: color-mix(in srgb, var(--text) 70%, transparent);
  margin: 0;
}

.card-flow .flow-arrow {
  text-align: center;
  color: var(--accent);
  opacity: 0.6;
  font-size: 12px;
}

.card-more {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

.card-more summary {
  cursor: pointer;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.card-more summary::-webkit-details-marker {
  display: none;
}

.card-more[open] summary span {
  transform: rotate(45deg);
}

.card-more ul {
  list-style: disc;
  padding-left: 20px;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-more li {
  font-size: 13px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--text) 80%, transparent);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-decoration: none;
  margin-top: 8px;
}

.card-link:hover {
  text-decoration: underline;
}

/* Career Highlights Chips in Experience */
.career-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed color-mix(in srgb, var(--line) 70%, transparent);
}

.highlight-chip {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Responsive Breakpoints */
@media (max-width: 1000px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .project-card.featured {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-card.featured {
    grid-column: span 1;
  }
  .project-card {
    padding: 20px;
  }
  .project-card.featured .card-body {
    padding: 20px;
  }
}
