/* ── Page Hero ───────────────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(60px, 10vw, 120px));
  padding-bottom: 40px;
}

.page-hero-title {
  margin: 12px 0 0;
  line-height: 0.95;
}

.page-hero-title em { font-style: normal; }

/* ── Filter Bar ──────────────────────────────────────────── */
.filter-bar {
  position: relative;
  z-index: 1;
  padding: 0 clamp(24px, 5vw, 60px) 20px;
}

.filter-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 20px;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--border-purple);
  color: var(--white);
}

.filter-btn.active {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
  box-shadow: 0 0 16px var(--purple-glow);
}

/* ── Projects Grid ───────────────────────────────────────── */
.projects-section {
  padding-top: 20px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.35s var(--ease-out), box-shadow 0.35s ease, opacity 0.4s ease;
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--border-purple);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(168, 85, 247, 0.14);
}

.project-card.filtered-out {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

.project-card--large {
  grid-column: 1 / -1;
}

/* Image area */
.project-img {
  position: relative;
  aspect-ratio: 16/7;
  overflow: hidden;
}

.project-card:not(.project-card--large) .project-img {
  aspect-ratio: 16/10;
}

.project-bg {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 30%, hsl(var(--hue1), var(--s, 60%), 18%) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, hsl(var(--hue2), var(--s, 60%), 12%) 0%, transparent 55%),
    #060608;
  transition: transform 0.6s var(--ease-out);
}

.project-card:hover .project-bg {
  transform: scale(1.04);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.0);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 24px 28px;
  transition: background 0.3s ease;
}

.project-card:hover .project-overlay {
  background: rgba(0, 0, 0, 0.35);
}

.project-tag {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: var(--purple);
  backdrop-filter: blur(8px);
}

.project-view-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}

.project-card:hover .project-view-btn {
  opacity: 1;
  transform: translateY(0);
}

/* Meta area */
.project-meta {
  padding: 24px 28px 28px;
  background: var(--surface);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.project-title {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 480px;
}

.project-stats {
  display: flex;
  gap: 32px;
  flex-shrink: 0;
}

.project-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.stat-key {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

/* Empty state */
.filter-empty {
  text-align: center;
  padding: 80px 0;
  font-size: 0.95rem;
}

/* ── Testimonials ────────────────────────────────────────── */
.section-header {
  margin-bottom: 60px;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testi-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.testi-quote {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  font-style: normal;
}

.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple-subtle);
  border: 1px solid var(--border-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--purple);
  flex-shrink: 0;
}

.testi-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  font-style: normal;
  color: var(--white);
}

.testi-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

/* ── CTA Alt ─────────────────────────────────────────────── */
.cta-alt-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 600px;
}

.cta-alt-inner em { font-style: normal; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .testi-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-card--large { grid-column: auto; }
  .project-stats { display: none; }
}

@media (max-width: 640px) {
  .testi-grid { grid-template-columns: 1fr; }
  .project-view-btn { display: none; }
}
