/* case-study.css — nav/footer rules stripped (9 blocks).
   The shared Layout supplies the nav and footer, styled by
   home.css. This file's originals collided with them. */

/* case-study.css — extracted verbatim from src/templates/case-study.php (lines 39-441) */

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
        --dark:#0A0A0A; --dark-2:#0D0D0D; --dark-3:#111111;
        --amber:#D97706; --amber-hover:#B45309;
        --muted:#666; --border:rgba(255,255,255,0.08);
        --max-w:1200px; --gutter:2.5rem;
    }
    html { scroll-behavior: smooth; }
    body {
        font-family: 'DM Sans', sans-serif;
        background: var(--dark); color: #fff;
        line-height: 1.75;
        overflow-x: hidden;
        -webkit-font-smoothing: antialiased;
    }
    h1,h2,h3,h4 { font-family: 'Sora', sans-serif; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
    a { color: inherit; }

    .wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
    .wrap-wide { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }

    .fade-up { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
    .fade-up.visible { opacity: 1; transform: translateY(0); }

    /* ── HERO ── */
    .cs-hero {
        padding: 9rem var(--gutter) 5rem;
        text-align: center;
        background: radial-gradient(ellipse at 50% 50%, rgba(217,119,6,0.08) 0%, transparent 60%), var(--dark);
        position: relative;
    }
    .cs-back {
        display: inline-flex; align-items: center; gap: 6px;
        font-size: 0.82rem; color: #888; text-decoration: none;
        margin-bottom: 2.5rem;
        font-weight: 500;
        transition: color .2s;
    }
    .cs-back:hover { color: #fff; }
    .cs-eyebrow {
        display: block;
        font-family: 'DM Sans', sans-serif;
        font-size: 0.72rem; font-weight: 600;
        letter-spacing: 0.18em; text-transform: uppercase;
        color: var(--amber); margin-bottom: 1.5rem;
    }
    .cs-title {
        font-size: clamp(2.6rem, 6vw, 5rem);
        font-weight: 700;
        color: #fff;
        margin-bottom: 1rem;
        max-width: 1000px;
        margin-left: auto; margin-right: auto;
    }
    .cs-subtitle {
        font-family: 'DM Sans', sans-serif;
        font-size: clamp(.95rem, 1.4vw, 1.1rem);
        color: #888;
        max-width: 580px;
        margin: 0 auto;
    }

    /* ── COVER IMAGE ── */
    .cs-cover-wrap {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 var(--gutter);
    }
    .cs-cover {
        width: 100%;
        aspect-ratio: 16 / 9;
        background: #111;
        border-radius: 16px;
        overflow: hidden;
        margin-top: -1rem;
        box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    }
    .cs-cover img {
        width: 100%; height: 100%;
        object-fit: cover;
        display: block;
    }

    /* ── BRIEF + META SIDEBAR ── */
    .cs-brief {
        padding: 7rem var(--gutter) 4rem;
    }
    .cs-brief-grid {
        max-width: var(--max-w);
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1.4fr 1fr;
        gap: 4rem;
        align-items: start;
    }
    .cs-brief-body h2 {
        font-size: clamp(2rem, 4vw, 3.2rem);
        font-weight: 700;
        margin-bottom: 1.8rem;
        color: #fff;
    }
    .cs-brief-body p {
        font-size: 1rem;
        line-height: 1.8;
        color: #aaa;
        max-width: 540px;
    }
    .cs-meta {
        background: rgba(255,255,255,0.025);
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: 14px;
        padding: 32px 30px;
        position: sticky;
        top: 100px;
    }
    .cs-meta-block { margin-bottom: 1.5rem; }
    .cs-meta-block:last-child { margin-bottom: 0; }
    .cs-meta-label {
        font-family: 'Sora', sans-serif;
        font-size: 0.78rem;
        font-weight: 700;
        color: #fff;
        margin-bottom: 0.4rem;
        letter-spacing: -0.01em;
    }
    .cs-meta-value {
        font-family: 'DM Sans', sans-serif;
        font-size: 0.88rem;
        color: #888;
        line-height: 1.65;
    }
    .cs-meta-value ul { list-style: none; padding: 0; margin: 0; }
    .cs-meta-value li { margin-bottom: 0.3rem; }
    .cs-meta-value a { color: var(--amber); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
    .cs-meta-value a:hover { border-bottom-color: var(--amber); }@media (max-width: 900px) {
        .cs-brief-grid { grid-template-columns: 1fr; gap: 2.5rem; }
        .cs-meta { position: static; }
    }

    /* ── SECTIONS (mockup + copy) ── */
    .cs-section {
        padding: 4rem var(--gutter);
    }
    .cs-section-inner {
        max-width: var(--max-w);
        margin: 0 auto;
    }
    .cs-section-title {
        font-size: clamp(1.6rem, 3vw, 2.6rem);
        font-weight: 700;
        text-align: center;
        margin-bottom: 1.8rem;
        max-width: 780px;
        margin-left: auto; margin-right: auto;
        color: #fff;
    }
    .cs-section-body {
        font-family: 'DM Sans', sans-serif;
        font-size: 1rem;
        line-height: 1.8;
        color: #888;
        max-width: 780px;
        margin: 0 auto 3rem;
        text-align: center;
    }
    .cs-section-img {
        max-width: 1400px;
        margin: 0 auto;
    }
    .cs-section-img-frame {
        background: #0d0d0d;
        border: 1px solid var(--border);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    }
    .cs-section-img-frame img {
        width: 100%; height: auto;
        display: block;
    }

    /* ── FINAL CTA ── */
    .cs-cta {
        padding: 7rem var(--gutter) 8rem;
        text-align: center;
        background: radial-gradient(ellipse at 50% 50%, rgba(217,119,6,0.08) 0%, transparent 60%), var(--dark);
    }
    .cs-cta-eyebrow {
        font-family: 'DM Sans', sans-serif;
        font-size: 0.7rem; font-weight: 600;
        letter-spacing: 0.18em; text-transform: uppercase;
        color: var(--amber);
        display: block;
        margin-bottom: 1.4rem;
    }
    .cs-cta h2 {
        font-size: clamp(2rem, 4vw, 3.2rem);
        font-weight: 700;
        margin-bottom: 1.4rem;
        color: #fff;
        max-width: 900px;
        margin-left: auto; margin-right: auto;
    }
    .cs-cta p {
        font-size: 1rem; color: #888;
        max-width: 580px;
        margin: 0 auto 2.4rem;
    }
    .cs-cta-btn {
        display: inline-flex; align-items: center; gap: 8px;
        padding: 16px 36px;
        background: var(--amber); color: #fff;
        border-radius: 100px;
        text-decoration: none;
        font-family: 'DM Sans', sans-serif;
        font-size: 0.95rem; font-weight: 600;
        cursor: pointer;
        border: none;
        transition: background .2s, transform .2s;
    }
    .cs-cta-btn:hover { background: var(--amber-hover); transform: translateY(-2px); }

    /* ── RELATED ── */
    .cs-related {
        padding: 5rem var(--gutter);
        background: var(--dark);
        border-top: 1px solid var(--border);
    }
    .cs-related-inner {
        max-width: 1100px;
        margin: 0 auto;
    }
    .cs-related-eyebrow {
        font-family: 'DM Sans', sans-serif;
        font-size: 0.7rem; font-weight: 600;
        letter-spacing: 0.18em; text-transform: uppercase;
        color: var(--amber);
        display: block;
        margin-bottom: 0.9rem;
    }
    .cs-related-head {
        font-size: clamp(1.5rem, 3vw, 2.2rem);
        font-weight: 700;
        color: #fff;
        margin-bottom: 2.5rem;
    }
    .cs-related-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1rem;
        margin-bottom: 2.5rem;
    }
    .cs-related-card {
        display: block;
        padding: 1.5rem 1.5rem 1.4rem;
        background: rgba(255,255,255,0.02);
        border: 1px solid var(--border);
        border-radius: 14px;
        text-decoration: none;
        transition: background .2s, border-color .2s, transform .2s;
    }
    .cs-related-card:hover {
        background: rgba(217,119,6,0.04);
        border-color: rgba(217,119,6,0.35);
        transform: translateY(-2px);
    }
    .cs-related-tag {
        font-family: 'DM Sans', sans-serif;
        font-size: 0.65rem;
        font-weight: 600;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--amber);
        margin-bottom: 0.6rem;
        display: block;
    }
    .cs-related-name {
        font-family: 'Sora', sans-serif;
        font-size: 1rem;
        font-weight: 700;
        color: #fff;
        letter-spacing: -0.02em;
        margin-bottom: 0.35rem;
        line-height: 1.25;
    }
    .cs-related-desc {
        font-size: 0.85rem;
        color: #888;
        line-height: 1.55;
    }

    /* ── DEEP DIVE (long-form narrative) ── */
    .cs-deep-dive {
        background: #ffffff;
        color: #1a1a1a;
        padding: 6rem var(--gutter);
    }
    .cs-deep-dive-inner {
        max-width: 760px;
        margin: 0 auto;
        font-family: 'DM Sans', sans-serif;
    }
    .cs-deep-dive-inner h2 {
        font-family: 'Sora', sans-serif;
        font-size: clamp(1.5rem, 3vw, 2.1rem);
        color: #0A0A0A;
        margin: 3rem 0 1rem;
        letter-spacing: -0.025em;
        line-height: 1.15;
        font-weight: 800;
    }
    .cs-deep-dive-inner h2:first-child { margin-top: 0; }
    .cs-deep-dive-inner h3 {
        font-family: 'Sora', sans-serif;
        font-size: 1.15rem;
        color: #0A0A0A;
        margin: 2rem 0 0.75rem;
        letter-spacing: -0.015em;
        font-weight: 700;
    }
    .cs-deep-dive-inner p {
        font-size: 1rem;
        color: #333333;
        line-height: 1.85;
        margin-bottom: 1.25rem;
    }
    .cs-deep-dive-inner ul,
    .cs-deep-dive-inner ol {
        margin: 0 0 1.5rem 1.5rem;
        padding: 0;
    }
    .cs-deep-dive-inner li {
        font-size: 1rem;
        color: #333333;
        line-height: 1.8;
        margin-bottom: 0.5rem;
    }
    .cs-deep-dive-inner a {
        color: var(--amber);
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 3px;
    }
    .cs-deep-dive-inner strong { color: #0A0A0A; font-weight: 700; }
    .cs-deep-dive-eyebrow {
        display: block;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--amber);
        margin-bottom: 1rem;
    }
    .cs-deep-dive-intro {
        font-size: 1.05rem;
        color: #444444;
        line-height: 1.8;
        margin-bottom: 2.5rem;
    }
    .cs-deep-dive-callout {
        border-left: 3px solid var(--amber);
        padding: 0.5rem 0 0.5rem 1.5rem;
        margin: 2rem 0;
        font-size: 1.02rem;
        color: #444;
        font-style: italic;
    }

    /* ── FOOTER (minimal) ── */
    .cs-foot {
        padding: 2.5rem var(--gutter);
        text-align: center;
        border-top: 1px solid var(--border);
        color: #555;
        font-size: 0.8rem;
    }@media (max-width: 700px) {
        .cs-hero { padding: 7rem var(--gutter) 4rem; }
        .cs-brief { padding: 4rem var(--gutter) 2.5rem; }
        .cs-section { padding: 2.5rem var(--gutter); }
        .cs-cta { padding: 5rem var(--gutter); }
    }
