/* ─────────────────────────────────────────────────────────
   FILTER PROJECTS — Towa-style highlights with branche filter
   ───────────────────────────────────────────────────────── */

.fp {
  background: #ffffff;
  padding: 120px var(--pad) 140px;
}

.fp-inner {
  max-width: 1720px;
  margin: 0 auto;
}

.fp-header {
  margin-bottom: 56px;
}

.fp-headline {
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.fp-headline .accent {
  color: #f0824b;
  font-style: italic;
  font-weight: 400;
  font-family: 'Times New Roman', Times, serif;
}

.fp-sub {
  margin-top: 14px;
  font-size: 16px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.6;
}

.fp-filterbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
  padding-top: 32px;
  border-top: 1px solid #e4e4e0;
}

.fp-filters {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fp-filter-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 18px;
}

.fp-filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.fp-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fp-pill {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #e4e4e0;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
  font-family: inherit;
}

.fp-pill:hover {
  border-color: #f0824b;
  color: #f0824b;
}

.fp-pill.active {
  background: var(--text);
  border-color: var(--text);
  color: #ffffff;
}

.fp-reset {
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid #e4e4e0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
  font-family: inherit;
  white-space: nowrap;
}

.fp-reset:hover {
  background: #fafaf7;
  border-color: var(--text);
}

/* Grid */
.fp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.fp-card {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: #1a1a1a;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fp-card.fp-hidden {
  display: none;
}

.fp-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}

.fp-card:hover .fp-card-img {
  transform: scale(1.05);
}

.fp-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.10) 35%,
    rgba(0,0,0,0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 32px;
}

.fp-card-client {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
}

.fp-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fp-card-title {
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.fp-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fp-card-tag {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.20);
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.fp-empty {
  grid-column: 1 / -1;
  padding: 80px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  border: 1px dashed #e4e4e0;
  border-radius: 18px;
}

@media (max-width: 900px) {
  .fp {
    padding: 80px var(--pad) 100px;
  }

  .fp-filterbar {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .fp-filter-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .fp-grid {
    grid-template-columns: 1fr;
  }

  .fp-card-overlay {
    padding: 20px 22px;
  }
}
