/* ============================= */
/* CREDENTIALS PAGE — THE ARSENAL */
/* ============================= */

.cred-hero {
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12rem 0 6rem;
    position: relative;
    background: radial-gradient(ellipse at center top, rgba(197,160,89,0.04) 0%, transparent 60%);
}
.cred-hero-eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 2rem;
}
.cred-hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #fff;
    margin-bottom: 2rem;
    text-shadow: 0 0 60px rgba(197,160,89,0.15);
}
.cred-hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-style: italic;
    color: rgba(255,255,255,0.5);
    line-height: 1.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Category Sections ---- */
.cred-category {
    padding: 6rem 0;
    border-top: 1px solid rgba(255,255,255,0.04);
    position: relative;
}
.cred-category-header {
    margin-bottom: 4rem;
    text-align: center;
}
.cred-category-number {
    font-family: 'Cinzel', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: rgba(197,160,89,0.12);
    display: block;
    line-height: 1;
    margin-bottom: 1rem;
}
.cred-category-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.cred-category-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    font-style: italic;
    max-width: 550px;
    margin: 0 auto;
}

/* ---- Credential Grid ---- */
.cred-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.cred-item {
    background: #080808;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cred-item:hover {
    border-color: rgba(197,160,89,0.25);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(197,160,89,0.08);
}
.cred-logo-wrap {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: transparent;
}
.cred-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cred-item:hover .cred-logo-wrap img,
.cred-creative-item:hover .cred-logo-wrap img {
    transform: scale(1.15);
}
.cred-item-name {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.6rem;
}
.cred-item-skill {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 300;
    font-style: italic;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
}
.cred-item-relevance {
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem;
    color: rgba(197,160,89,0.55);
    margin-top: 0.8rem;
    letter-spacing: 0.08em;
    line-height: 1.6;
}
.cred-logo-dual {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.cred-logo-dual .cred-logo-wrap {
    width: 95px;
    height: 95px;
    margin-bottom: 0;
}

/* ---- Creative Engine Sub-categories ---- */
.cred-subcategory { margin-bottom: 5rem; }
.cred-sub-header {
    text-align: center;
    margin-bottom: 3rem;
}
.cred-sub-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.8rem;
}
.cred-sub-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #fff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.cred-sub-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    font-style: italic;
}
.cred-creative-grid {
    display: grid;
    gap: 1.8rem;
    justify-items: center;
}
.cred-grid-4 { grid-template-columns: repeat(4, 1fr); }
.cred-grid-5 { grid-template-columns: repeat(5, 1fr); }
.cred-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 450px; margin: 1.5rem auto 0; }
.cred-grid-1 { grid-template-columns: 1fr; max-width: 220px; margin: 0 auto; }
.cred-creative-item {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    transition: background 0.3s ease;
}
.cred-creative-item:hover { background: rgba(255,255,255,0.02); }
.cred-creative-item .cred-logo-wrap {
    width: 95px;
    height: 95px;
    margin: 0 auto 1rem;
}
.cred-creative-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.3rem;
}
.cred-creative-skill {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 300;
    font-style: italic;
    color: rgba(255,255,255,0.4);
}

.cred-separator {
    width: 60px;
    height: 1px;
    background: rgba(197,160,89,0.2);
    margin: 5rem auto;
}

/* ---- Back Link ---- */
.cred-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    color: var(--gold);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s;
    margin-bottom: 3rem;
}
.cred-back:hover { color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .cred-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .cred-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .cred-grid { grid-template-columns: 1fr; }
    .cred-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .cred-grid-5 { grid-template-columns: repeat(2, 1fr); }
    .cred-hero { padding: 10rem 0 4rem; min-height: 40vh; }
    .cred-category { padding: 4rem 0; }
}
@media (max-width: 480px) {
    .cred-grid-4 { grid-template-columns: 1fr; }
    .cred-grid-5 { grid-template-columns: 1fr; }
    .cred-grid-2 { grid-template-columns: 1fr; }
}

/* Center orphaned last item on a new row in 3-col grid */
.cred-grid > .cred-item:last-child:nth-child(3n + 1) {
    grid-column: 2;
}
@media (max-width: 768px) {
    .cred-grid > .cred-item:last-child:nth-child(3n + 1) {
        grid-column: auto;
    }
}
