.card--locked {
  pointer-events: none;
  filter: grayscale(0.7) brightness(0.85) contrast(0.9);
  position: relative;
}

.card--locked .card-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30,30,35,0.55);
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
}

.card-lock {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 3;
  background: rgba(0,0,0,0.18);
  border-radius: 50%;
  padding: 0.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.08);
}

.card--locked .card-label,
.card--locked .card-url,
.card--locked .card-desc {
  color: #b0b0b0 !important;
  opacity: 0.7;
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #040406;
  --surface: #0f0f16;
  --border: #161621;
  --text: #f1f1f5;
  --text-dim: #8a8aa0;
}

html, body {
  height: 100%;
  font-size: 16px;
}

body {
  font-family: 'Syne', sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 100dvh;
  width: 100%;
  background: var(--surface);
}

.card {
  position: relative;
  background: var(--surface);
  border-right: none;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:last-child {
  border-right: none;
}

/* Accent color per card */
.card--portfolio { --card-accent: #00d4ff; }
.card--wiki { --card-accent: #2ecc71; }
.card--minirt { --card-accent: #9b59b6; }
.card--fdf { --card-accent: #d40000ff; }

/* Top accent line */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--card-accent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  background: #0f0f16;
}

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

.card:hover .card-label {
  color: var(--card-accent);
}

/* Preview image area */
.card-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 2.5rem 3rem;
  gap: 1.5rem;
  background: #000000;
  transition: background 0.4s ease;
  min-height: 0;
  overflow: hidden;
}

.card:hover .card-preview {
  background: #141414;
}

.card-media {
  position: relative;
  width: 85%;
  max-height: 55%;
  flex-shrink: 0;
  margin-top: 0;
  margin-bottom: auto;
  border-radius: 20px;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-video {
  display: block;
  width: 100%;
  object-fit: contain;
}

.card:hover .card-media {
  transform: scale(1.03);
}

.card-logo {
  max-width: 65%;
  max-height: 20%;
  object-fit: contain;
  height: 10%;
  margin-top: auto;
  margin-bottom: auto;
}

.card-desc {
  font-size: 0.82rem;
  color: #a4a4b7;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  margin-top: auto;
}

/* Bottom info */
.card-info {
  padding: 1.8rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #141414;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card-label {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.card-url {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  font-weight: 500;
  opacity: 0.6;
}

.card-arrow {
  width: 20px;
  height: 20px;
  stroke: var(--text-dim);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.5;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

/* Staggered entrance */
.card:nth-child(1) { animation: fadeIn 0.6s 0.05s ease both; }
.card:nth-child(2) { animation: fadeIn 0.6s 0.18s ease both; }
.card:nth-child(3) { animation: fadeIn 0.6s 0.31s ease both; }
.card:nth-child(4) { animation: fadeIn 0.6s 0.44s ease both; }

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive: stack on narrow screens */
@media (max-width: 700px) {
  .cards {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100dvh;
  }

  .card {
    border-right: none;
    border-bottom: 1px solid var(--surface);
    min-height: 33.33dvh;
  }

  .card:last-child {
    border-bottom: none;
  }

  .card-preview {
    padding: 2rem 1.5rem;
  }

  .card-info {
    padding: 1.2rem 1.5rem;
  }
}
