.project-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-4);
  align-items: center;
}

.credits-secondary {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-faint);
}

.mvx-banner {
  margin-top: var(--space-3);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.mvx-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.media-frame {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16/9;
  background: var(--surface);
}

.media-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.tweet-frame {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.5rem;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tweet-frame .twitter-tweet {
  margin: 0 !important;
  width: 100%;
}

.project-feature-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0.5rem 0 1rem;
}

.project-multi-feature-text h3 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0.5rem 0 1rem;
}

.credits-head {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  margin-top: 0.6rem;
}

.project-feature-text p {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.project-feature-text .tag-row {
  margin: 1.2rem 0 1rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

@media (max-width: 900px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .project-grid { grid-template-columns: 1fr; }
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.project-card > .img-slot {
  border-radius: 0;
  border-width: 0 0 1px 0;
  margin: 0;
}

.project-card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.project-card > *:not(.img-slot):not(.project-card-img) {
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

.project-card > .img-slot + *,
.project-card > .project-card-img + * {
  padding-top: var(--space-3);
}

.project-card > *:first-child:not(.img-slot):not(.project-card-img) {
  padding-top: var(--space-3);
}

.project-card > *:last-child {
  padding-bottom: var(--space-3);
}

.project-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}

.project-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

.project-card-head h3 {
  font-size: 1.15rem;
}

.project-date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--wire);
  margin-bottom: 0.8rem;
}

.project-card p:not(.project-date) {
  color: var(--text-dim);
  font-size: 0.94rem;
  line-height: 1.65;
  flex: 1;
}

.project-card .inline-link {
  margin-top: 1.1rem;
}

.project-multi-feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.project-multi-feature-text p {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: 72ch;
}

.project-multi-feature-text .tag-row {
  margin: 1.2rem 0 0;
}

.embed-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.embed-item {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.embed-platform-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.embed-platform-label svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.embed-fallback-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--wire);
  border-bottom: 1px solid var(--wire-dim);
  align-self: flex-start;
}

.embed-setup-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  line-height: 1.5;
}

.embed-setup-banner {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-dim);
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-radius: 6px;
  padding: 1rem 1.2rem;
}

.embed-setup-banner strong {
  color: var(--accent);
}

.embed-setup-banner code {
  font-family: var(--font-mono);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  color: var(--text);
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .embed-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .project-feature {
    grid-template-columns: 1fr;
  }
}
