/* ============================================================
   CERTIFICATE PAGE HEADER
   ============================================================ */

.cert-page-header {
  padding: clamp(120px, 18vw, 180px) 0 clamp(48px, 7vw, 76px);
}
.cert-page-header h1 {
  font-size: clamp(36px, 5.5vw, 68px);
  margin: 18px 0 22px;
}
.cert-page-header .lede { max-width: 60ch; }

/* ============================================================
   CERTIFICATE GALLERY
   ============================================================ */

.cert-gallery { padding: 0 0 clamp(100px, 14vw, 160px); }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 44px);
}
@media (max-width: 860px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cert-grid { grid-template-columns: 1fr; }
}

.cert-item .cert-frame {
  aspect-ratio: 3/4;
  overflow: hidden;
  margin-bottom: 16px;
  background: #eceae4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-item .cert-frame img {
  width: auto;
  height: 94%;
  max-width: 94%;
  object-fit: contain;
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  transition: transform .5s var(--ease);
}
.cert-item:hover .cert-frame img { transform: scale(1.02); }

.cert-item h3 { font-size: 17px; margin-bottom: 4px; }
.cert-item .v-role {
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}
