/* ═══════════════════════════════════════════════════
   CASE STUDY STYLES — Santiago Portfolio
   ═══════════════════════════════════════════════════ */

:root {
    --accent: #fbd000;
    --bg-dark: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-dim: #a0a0a0;
    --font-pixel: 'Press Start 2P', cursive;
    --font-body: 'Inter', sans-serif;
    --container: 900px;
}

body {
    background: var(--bg-dark);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.7;
    padding: 0;
    margin: 0;
}

.case-study-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 40px 24px;
}

/* Header & Back */
header {
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    color: var(--accent);
    text-decoration: none;
    font-family: var(--font-pixel);
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hero Section */
.hero {
    margin-bottom: 80px;
    text-align: left;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-family: var(--font-body);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff;
}

.hero-impact {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--accent);
    font-weight: 500;
    max-width: 700px;
}

/* Sections */
section {
    margin-bottom: 100px;
}

.section-label {
    font-family: var(--font-pixel);
    color: var(--accent);
    font-size: 10px;
    margin-bottom: 20px;
    display: block;
}

h2 {
    font-size: 32px;
    margin-bottom: 24px;
    font-weight: 700;
}

p {
    color: var(--text-dim);
    font-size: 18px;
    margin-bottom: 24px;
}

/* Project Meta Card */
.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 24px;
    margin-bottom: 80px;
}

.meta-item h4 {
    font-family: var(--font-pixel);
    font-size: 8px;
    color: var(--accent);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.meta-item p {
    color: #fff;
    font-size: 14px;
    margin: 0;
}

/* Visuals */
.case-image {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid var(--border);
}

.case-image img {
    width: 100%;
    display: block;
}

/* Process Section (Uncut & Raw) */
.uncut-process {
    background: #111;
    padding: 60px 40px;
    border-radius: 24px;
    border-left: 4px solid var(--accent);
}

.uncut-process h2 {
    color: #fff;
}

/* Impact Metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.metric-card {
    background: rgba(251, 208, 0, 0.1);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(251, 208, 0, 0.2);
}

.metric-value {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
}

.metric-label {
    font-size: 14px;
    color: var(--text-dim);
}

/* Responsive */
@media (max-width: 768px) {
    .project-meta-grid {
        padding: 24px;
        gap: 20px;
    }

    .uncut-process {
        padding: 30px 20px;
    }

    h2 {
        font-size: 24px;
    }
}

/* ─── Case Container Visibility ─── */
.case-study-container {
    opacity: 1;
}