/* ============================================================
   Credentials section
   ============================================================ */

.cred-section { background: var(--bg-1); }

/* ── Stats ── */
.cred-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.cred-stat {
  background: var(--bg-2);
  padding: clamp(28px, 3vw, 44px) clamp(22px, 2.5vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: background 0.3s;
}
.cred-stat:hover { background: var(--bg-3); }
.cred-stat-n {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}
.cred-stat-l {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.45;
  max-width: 18ch;
}

/* ── Badges ── */
.cred-badges {
  display: flex;
  gap: clamp(14px, 1.8vw, 20px);
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.cred-badge {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: clamp(22px, 2.5vw, 32px);
  background: var(--bg-2);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.cred-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(110% 110% at 0% 0%, var(--accent-soft), transparent 65%);
  pointer-events: none;
}
.cred-badge-platform {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.cred-badge-name {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text);
}
.cred-badge-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 38ch;
  text-wrap: pretty;
}

/* ── Sub-labels ── */
.cred-sub-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}

/* ── Notable projects ── */
.cred-proj-block { margin-bottom: clamp(40px, 5vw, 64px); }
.cred-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 20px);
}
.cred-proj {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.cred-proj:hover { border-color: var(--border-2); transform: translateY(-3px); }
.cred-proj-type {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.cred-proj-client {
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.cred-proj-work {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.68;
  text-wrap: pretty;
  margin-top: 2px;
}

/* ── Reviews marquee ── */
.cred-reviews-block { margin-bottom: clamp(40px, 5vw, 64px); }
.cred-marquee-outer {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 7%, black 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 7%, black 93%, transparent 100%);
}
.cred-marquee-track {
  display: flex;
  gap: clamp(14px, 1.5vw, 20px);
  width: max-content;
  animation: cred-marquee 55s linear infinite;
}
.cred-marquee-outer:hover .cred-marquee-track { animation-play-state: paused; }
@keyframes cred-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.cred-review {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 2.2vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  width: clamp(260px, 36vw, 400px);
  flex: none;
}
.cred-review::after {
  content: "\201C";
  position: absolute;
  top: 2px; right: 16px;
  font-size: 72px; line-height: 1;
  color: color-mix(in srgb, var(--accent) 14%, transparent);
  font-weight: 700;
  pointer-events: none;
}
.cred-stars { font-size: 12px; color: #f5a623; letter-spacing: 0.06em; }
.cred-review-text {
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.8; color: var(--text); text-wrap: pretty; flex: 1;
}
.cred-review-role {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.07em; color: var(--text-faint);
}

/* ── Tools ── */
.cred-tools {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cred-tools-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.cred-tools-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Responsive ── */
@media (max-width: 1000px) {
  .cred-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cred-projects { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .cred-badges { flex-direction: column; }
  .cred-review { width: clamp(240px, 80vw, 340px); }
}
@media (max-width: 480px) {
  .cred-stat { padding: 22px 18px; }
}
