/* =====================
   Case Study: Hero
   ===================== */
.cs-hero {
    min-height: 65vh;
    display: flex;
    align-items: flex-end;
    background-color: #0f172a;
    background-image: var(--hero-img);
    background-size: cover;
    background-position: center;
    position: relative;
}

.cs-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(15, 23, 42, 0.55) 55%,
        rgba(15, 23, 42, 0.2) 100%
    );
}

.cs-hero-inner {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 60px 72px;
    width: 100%;
}

.cs-hero .project-tag {
    color: var(--accent-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    display: block;
    margin-bottom: 16px;
}

.cs-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: white;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 24px;
}

.cs-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 580px;
    line-height: 1.65;
    margin-bottom: 24px;
}

.cs-visit-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cs-visit-link:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.cs-visit-link svg {
    width: 14px;
    height: 14px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 40px;
    transition: color 0.2s;
}

.back-link:hover {
    color: white;
}

.back-link svg {
    width: 16px;
    height: 16px;
}

/* =====================
   Case Study: Stats Strip
   ===================== */
.cs-stats {
    background: var(--accent-color);
}

.cs-stats-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

.cs-stat-value {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.04em;
    line-height: 1;
}

.cs-stat-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
    font-weight: 500;
}

/* =====================
   Case Study: Body
   ===================== */
.cs-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 96px 60px;
}

.cs-section {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 56px;
    padding-bottom: 72px;
    margin-bottom: 72px;
    border-bottom: 1px solid #f1f5f9;
}

.cs-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cs-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-color);
    font-weight: 700;
    padding-top: 8px;
}

.cs-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.625rem;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    margin-top: 0;
}

.cs-section p {
    color: #334155;
    font-size: 1.0625rem;
    line-height: 1.8;
    margin: 0;
}

/* =====================
   Case Study: Footer CTA
   ===================== */
.cs-cta {
    background: #f8fafc;
    text-align: center;
    padding: 96px 20px;
    border-top: 1px solid #f1f5f9;
}

.cs-cta p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.03em;
    margin-bottom: 32px;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 1024px) {
    .cs-hero-inner { padding: 120px 30px 60px; }
    .cs-stats-inner { padding: 40px 30px; }
    .cs-body { padding: 72px 30px; }
}

@media (max-width: 768px) {
    .cs-hero { min-height: 55vh; }
    .cs-hero-inner { padding: 100px 20px 48px; }
    .cs-stats-inner {
        grid-template-columns: 1fr 1fr;
        padding: 40px 20px;
        gap: 24px;
    }
    .cs-body { padding: 56px 20px; }
    .cs-section {
        grid-template-columns: 1fr;
        gap: 6px;
        padding-bottom: 48px;
        margin-bottom: 48px;
    }
    .cs-label { padding-top: 0; }
    .cs-cta { padding: 64px 20px; }
    .cs-cta p { font-size: 1.375rem; }
}
