/* ═══════════════════ INNER PAGE STYLES ═══════════════════ */
/* Inherits all variables and base styles from styles.css */

/* ── Case Study Hero ── */
.case-hero {
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    padding: 0 0 5rem;
    position: relative;
    overflow: hidden
}

.case-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0
}

.case-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .3
}

.case-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg) 0%, rgba(8, 7, 6, 0.6) 40%, rgba(8, 7, 6, 0.3) 100%)
}

.case-hero-content {
    position: relative;
    z-index: 1;
    width: min(1400px, 90%);
    margin: 0 auto;
    padding-top: 8rem
}

.case-meta {
    font-family: var(--mono);
    font-size: .65rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px
}

.case-meta::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--gold)
}

.case-hero h1 {
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.03em;
    margin-bottom: 1.5rem
}

.case-tagline {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    line-height: 1.7
}

/* ── Back Navigation ── */
.back-nav {
    position: fixed;
    top: 2rem;
    left: 3rem;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color .3s
}

.back-nav:hover {
    color: var(--gold)
}

.back-nav span {
    transition: transform .3s var(--ease)
}

.back-nav:hover span {
    transform: translateX(-4px)
}

/* ── Case Study Content ── */
.case-body {
    width: min(1400px, 90%);
    margin: 0 auto;
    padding: 5rem 0
}

/* ── Overview Grid ── */
.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 6rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 5rem
}

.overview-text h2 {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem
}

.overview-text p {
    font-size: .95rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1rem
}

.overview-sidebar {}

.sidebar-block {
    margin-bottom: 2.5rem
}

.sidebar-label {
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .8rem;
    display: block
}

.sidebar-value {
    font-size: .88rem;
    line-height: 1.8;
    color: var(--text)
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem
}

.sidebar-tags span {
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .35rem .7rem;
    border: 1px solid var(--line);
    color: var(--muted)
}

/* ── Section Blocks ── */
.case-section {
    margin-bottom: 5rem
}

.case-section h2 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 2rem
}

.case-section h2 em {
    font-style: normal;
    color: var(--gold)
}

.case-section p {
    font-size: .92rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1rem;
    max-width: 800px
}

/* ── Challenge / Solution Cards ── */
.cs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin-top: 2rem
}

.cs-card {
    padding: 3rem;
    background: var(--bg2);
    border: 1px solid var(--line)
}

.cs-card h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .8rem
}

.cs-card h3 .icon {
    color: var(--gold);
    font-size: 1.1rem
}

.cs-card p {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.7
}

.cs-card ul {
    list-style: none;
    padding: 0
}

.cs-card li {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.7;
    padding: .3rem 0;
    display: flex;
    align-items: flex-start;
    gap: .6rem
}

.cs-card li::before {
    content: '→';
    color: var(--gold);
    flex-shrink: 0
}

/* ── Results / Impact ── */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 2rem
}

.result-card {
    padding: 2.5rem;
    background: var(--bg2);
    border: 1px solid var(--line);
    text-align: center
}

.result-num {
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
    margin-bottom: .5rem
}

.result-label {
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted)
}

/* ── Architecture / Flow ── */
.arch-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem
}

.arch-step {
    padding: 2rem;
    border: 1px solid var(--line);
    position: relative;
    counter-increment: arch
}

.arch-step::before {
    content: counter(arch, decimal-leading-zero);
    font-family: var(--mono);
    font-size: .6rem;
    color: var(--gold);
    letter-spacing: .1em;
    display: block;
    margin-bottom: .8rem
}

.arch-step h4 {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: .5rem
}

.arch-step p {
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.6
}

.case-body .arch-steps {
    counter-reset: arch
}

/* ── Next Project ── */
.next-project {
    border-top: 1px solid var(--line);
    padding: 4rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.next-project-label {
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--muted)
}

.next-project-title {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--text);
    transition: color .3s
}

.next-project a {
    text-decoration: none;
    text-align: right
}

.next-project a:hover .next-project-title {
    color: var(--gold)
}

.next-project-arrow {
    font-size: 2rem;
    color: var(--gold);
    transition: transform .3s var(--ease)
}

.next-project a:hover .next-project-arrow {
    transform: translateX(8px)
}

/* ── Inner Page Footer ── */
.inner-footer {
    border-top: 1px solid var(--line);
    padding: 3rem 0;
    background: var(--bg)
}

.inner-footer .footer-inner {
    width: min(1400px, 90%);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem
}

/* ── Responsive ── */
@media(max-width:900px) {
    .back-nav {
        left: 1.5rem
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 3rem
    }

    .cs-grid {
        grid-template-columns: 1fr
    }

    .results-grid {
        grid-template-columns: 1fr
    }

    .next-project {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center
    }

    .next-project a {
        text-align: center
    }

    .case-hero {
        min-height: 50vh
    }

    .inner-footer .footer-inner {
        flex-direction: column;
        text-align: center
    }
}