/* ── Case Study — Cinematic Edition ─────────────────────────── */

/* ── Scroll Animations ─────────────────────────────────────── */

.anim-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-fade {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim-visible {
    opacity: 1 !important;
    transform: none !important;
}

/* ── Cinematic Hero ────────────────────────────────────────── */

.cs-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #0a0e1a;
}

.cs-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.cs-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: 0.45;
    transform: scale(1.1);
    will-change: transform;
}

.cs-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,14,26,0.1) 0%,
        rgba(10,14,26,0.5) 50%,
        rgba(10,14,26,0.95) 100%
    );
}

.cs-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 0 5rem 0;
    max-width: 720px;
}

.cs-hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--cisd-yellow);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cs-hero-eyebrow::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--cisd-yellow);
}

.cs-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.12;
    margin-bottom: 1.5rem;
}

.cs-hero-lead {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    max-width: 580px;
}

.cs-hero-scroll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    margin-top: 2rem;
    animation: cs-bounce 2s infinite;
    transition: border-color 0.3s;
}

.cs-hero-scroll:hover {
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}

@keyframes cs-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(8px); }
}

/* ── Stats Grid ────────────────────────────────────────────── */

.cs-stats {
    background: #fff;
    padding: 0;
    position: relative;
    z-index: 3;
    margin-top: -3rem;
}

.cs-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
}

.cs-stats-item {
    padding: 2.5rem 2rem;
    text-align: center;
    border-right: 1px solid #f0f0f0;
    background: #fff;
    transition: background 0.3s;
}

.cs-stats-item:last-child {
    border-right: none;
}

.cs-stats-item:hover {
    background: #f8f9fa;
}

.cs-stats-value {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--cisd-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.cs-stats-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    line-height: 1.4;
}

/* ── Narrative Sections ────────────────────────────────────── */

.cs-section {
    padding: 5rem 0;
}

.cs-section--alt {
    background: #f8f9fa;
}

.cs-section-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cisd-red);
    margin-bottom: 1rem;
}

.cs-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 1.5rem;
    line-height: 1.25;
}

.cs-section-body {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
    max-width: 680px;
}

.cs-section-body p {
    margin-bottom: 1.25rem;
}

.cs-section-body strong {
    color: #222;
}

/* ── Parallax Photo ────────────────────────────────────────── */

.cs-photo-parallax {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.cs-photo-parallax-img {
    position: absolute;
    inset: -60px 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
    transform: scale(1.08);
}

.cs-photo-parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,14,26,0.6) 0%, rgba(10,14,26,0.1) 50%, rgba(10,14,26,0.3) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem 3rem;
}

.cs-photo-parallax-caption {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.8);
    font-style: italic;
    letter-spacing: 0.5px;
}

/* ── Photo Band ────────────────────────────────────────────── */

.cs-photo-band {
    display: flex;
    height: 280px;
    overflow: hidden;
}

.cs-photo-band-item {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: flex 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-photo-band-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10,14,26,0.15);
    transition: background 0.4s;
}

.cs-photo-band:hover .cs-photo-band-item {
    flex: 0.8;
}

.cs-photo-band .cs-photo-band-item:hover {
    flex: 2;
}

.cs-photo-band .cs-photo-band-item:hover::after {
    background: rgba(10,14,26,0);
}

/* ── Pull Quote ────────────────────────────────────────────── */

.cs-quote {
    background: var(--cisd-blue);
    padding: 5rem 0;
}

.cs-quote--alt {
    background: linear-gradient(135deg, #0f1d45 0%, var(--cisd-blue) 100%);
}

.cs-quote-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.cs-quote-mark {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: rgba(255,255,255,0.15);
    line-height: 1;
    margin-bottom: -1rem;
}

.cs-quote blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 400;
    font-style: italic;
    color: #fff;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    border: none;
    padding: 0;
}

.cs-quote-attr {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
}

/* ── Feature Grid ──────────────────────────────────────────── */

.cs-features {
    padding: 5rem 0;
    background: #fff;
}

.cs-features h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 3rem;
    text-align: center;
}

.cs-feature-card {
    padding: 2rem;
    border: 1px solid #eee;
    height: 100%;
    transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s;
}

.cs-feature-card:hover {
    border-color: var(--cisd-blue);
    box-shadow: 0 8px 32px rgba(30,58,138,0.1);
    transform: translateY(-4px);
}

.cs-feature-icon {
    width: 52px;
    height: 52px;
    background: rgba(30,58,138,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--cisd-blue);
    transition: background 0.3s;
}

.cs-feature-card:hover .cs-feature-icon {
    background: var(--cisd-blue);
    color: #fff;
}

.cs-feature-icon svg {
    width: 24px;
    height: 24px;
    transition: stroke 0.3s;
}

.cs-feature-card:hover .cs-feature-icon svg {
    stroke: #fff;
}

.cs-feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.75rem;
}

.cs-feature-card p {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.65;
    margin: 0;
}

/* ── CSO Cards Grid ────────────────────────────────────────── */

.cs-cso-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 780px;
}

.cs-cso-card {
    padding: 2rem;
    background: #fff;
    border-left: 4px solid var(--cisd-blue);
    transition: box-shadow 0.4s, transform 0.4s;
}

.cs-cso-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.cs-cso-icon {
    width: 40px;
    height: 40px;
    background: rgba(30,58,138,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--cisd-blue);
    font-size: 0.9rem;
}

.cs-cso-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.5rem;
}

.cs-cso-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ── CTA Section ───────────────────────────────────────────── */

.cs-cta {
    background: linear-gradient(135deg, var(--cisd-blue) 0%, #0f1d45 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cs-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30h60M30 0v60' stroke='rgba(255,255,255,0.03)' fill='none'/%3E%3C/svg%3E");
    pointer-events: none;
}

.cs-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.cs-cta p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.cs-cta-btn {
    display: inline-block;
    background: var(--cisd-red);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 16px 40px;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
    position: relative;
    z-index: 2;
}

.cs-cta-btn:hover {
    background: #b91c1c;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.cs-cta-btn i { margin-left: 8px; font-size: 0.7rem; }

.cs-cta-secondary {
    display: inline-block;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s;
    position: relative;
    z-index: 2;
}

.cs-cta-secondary:hover {
    color: #fff;
    text-decoration: none;
}

/* ── Naira Visual ──────────────────────────────────────────── */

.cs-naira {
    background: #fff;
    padding: 4rem 0;
}

.cs-naira-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cs-naira-coin {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cisd-yellow) 0%, #d97706 100%);
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 32px rgba(217,119,6,0.25);
    animation: cs-coin-glow 3s ease-in-out infinite alternate;
}

@keyframes cs-coin-glow {
    0%   { box-shadow: 0 8px 32px rgba(217,119,6,0.25); }
    100% { box-shadow: 0 12px 48px rgba(217,119,6,0.4); }
}

.cs-naira-coin-inner {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cs-naira-symbol {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.cs-naira-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    margin-top: 4px;
}

.cs-naira-bar-wrap {
    margin-bottom: 0.75rem;
}

.cs-naira-bar {
    display: flex;
    height: 36px;
    border-radius: 4px;
    overflow: hidden;
}

.cs-naira-interest {
    background: var(--cisd-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-naira-principal {
    background: var(--cisd-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.cs-naira-caption {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

.cs-naira-caption strong {
    color: var(--cisd-red);
}

/* ── Funder ────────────────────────────────────────────────── */

.cs-funder {
    padding: 3rem 0;
    background: #f8f9fa;
}

.cs-funder-inner {
    text-align: center;
}

.cs-funder-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 1.25rem;
}

.cs-funder img {
    max-height: 60px;
    opacity: 0.7;
    transition: opacity 0.3s;
    display: block;
    margin: 0 auto;
}

.cs-funder img:hover {
    opacity: 1;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 991px) {
    .cs-hero { min-height: 75vh; }
    .cs-hero h1 { font-size: 2.75rem; }
    .cs-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .cs-stats-item:nth-child(2) { border-right: none; }
    .cs-photo-parallax { height: 350px; }
    .cs-photo-band { height: 200px; }
    .cs-cso-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .cs-hero { min-height: 65vh; }
    .cs-hero h1 { font-size: 2rem; }
    .cs-hero-lead { font-size: 1rem; }
    .cs-hero-content { padding-bottom: 3rem; }
    .cs-stats { margin-top: -2rem; }
    .cs-stats-grid { grid-template-columns: 1fr 1fr; }
    .cs-stats-value { font-size: 1.75rem; }
    .cs-stats-item { padding: 1.5rem 1rem; }
    .cs-section { padding: 3rem 0; }
    .cs-section h2 { font-size: 1.75rem; }
    .cs-quote blockquote { font-size: 1.25rem; }
    .cs-quote { padding: 3rem 0; }
    .cs-photo-parallax { height: 260px; }
    .cs-photo-band { height: 160px; }
    .cs-photo-band-item:nth-child(4) { display: none; }
    .cs-naira-coin { width: 160px; height: 160px; }
    .cs-naira-coin-inner { width: 135px; height: 135px; }
    .cs-naira-symbol { font-size: 2.25rem; }
}

@media (max-width: 576px) {
    .cs-hero h1 { font-size: 1.75rem; }
    .cs-stats-grid { grid-template-columns: 1fr 1fr; }
    .cs-stats-value { font-size: 1.5rem; }
    .cs-stats-label { font-size: 0.65rem; }
    .cs-cta h2 { font-size: 1.75rem; }
    .cs-cta-secondary { display: block; margin: 1rem auto 0; }
    .cs-photo-parallax { height: 200px; }
    .cs-photo-parallax-overlay { padding: 1rem 1.5rem; }
    .cs-photo-band { height: 120px; }
    .cs-photo-band-item:nth-child(3) { display: none; }
}
