.case-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e2e8f0;
    backdrop-filter: blur(10px);
}

.case-nav > div,
.case-shell {
    width: 100%;
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
}

.case-nav>div {
    padding: 0.85rem 0;
}

.case-nav a,
.bottom-nav a {
    display: inline-block;
    text-decoration: none;
    color: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.case-shell {
    padding: 3.6rem 0 3.5rem;
}

.case-hero {
    padding-bottom: 1rem;
}

.eyebrow-blue,
.section-label,
.workflow small,
.flow small,
.model-grid small,
.conclusions small {
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.case-hero h1 {
    font-size: clamp(2.3rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
    margin: 0.7rem 0 1.2rem;
}

.lead,
.copy {
    color: #475569;
    line-height: 1.65;
    max-width: 800px;
}

.lead {
    font-size: 1.05rem;
}

.tech-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin: 1.5rem 0 1rem;
}

.tech-panel b {
    color: #1e40af;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tech-panel span {
    color: #1e3a8a;
    background: white;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.case-shell section {
    padding: 2.4rem 0;
    border-top: 1px solid #eee;
}

.case-shell h2 {
    font-size: 1.55rem;
    letter-spacing: -0.025em;
    margin: 0.45rem 0 0.65rem;
}

.metrics,
.data-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin: 1.4rem 0;
}

.metrics>div,
.data-grid>div,
.workflow>div,
.flow>div,
.model-grid>div,
.conclusions>div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.05rem;
}

.metrics strong,
.data-grid strong {
    display: block;
    font-size: 1.55rem;
    letter-spacing: -0.04em;
}

.metrics span,
.data-grid span {
    display: block;
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.data-grid>div {
    border-top: 3px solid #2563eb;
    text-align: center;
}

.notice {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 5px solid #f59e0b;
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    color: #78350f;
    line-height: 1.6;
    margin-top: 1.3rem;
}

.workflow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-top: 1.3rem;
}

.workflow strong,
.workflow span,
.flow b,
.flow span,
.conclusions b,
.conclusions span {
    display: block;
}

.workflow strong {
    margin: 0.45rem 0;
}

.workflow span,
.conclusions span,
.model-grid span {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.55;
}

.flow {
    display: grid;
    grid-template-columns: 2fr 0.35fr 2fr 0.35fr 2fr;
    align-items: center;
    margin: 1.3rem 0;
}

.flow>div {
    text-align: center;
}

.flow i {
    text-align: center;
    color: #2563eb;
    font-size: 1.7rem;
    font-style: normal;
}

.flow b {
    margin: 0.45rem;
}

.two-col,
.model-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.two-col p {
    color: #475569;
    line-height: 1.6;
}

.equation {
    text-align: center;
    font-family: serif;
    font-size: 1.2rem;
    padding: 1rem;
}

.subhead {
    margin-top: 2rem;
}

figure {
    max-width: 760px;
    margin: 1.5rem auto;
}

figure.medium {
    max-width: 650px;
}

figure img {
    display: block;
    width: 100%;
    height: auto;
}

figcaption {
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.5;
    margin-top: 0.45rem;
}

.model-grid>div {
    min-height: 250px;
}

.model-grid h3 {
    margin: 0.8rem 0 1.2rem;
}

.model-grid strong {
    display: block;
    font-size: 1.5rem;
    margin: 0.15rem 0 0.9rem;
}

.conclusions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin: 1.4rem 0;
}

.conclusions b {
    margin: 0.8rem 0;
}

.final {
    color: #475569;
    line-height: 1.65;
}

.bottom-nav {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
}

.bottom-nav a:hover,
.case-nav a:hover {
    background: #2563eb;
    color: white;
}

@media (max-width: 760px) {

    .case-nav>div,
    .case-shell {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .case-shell {
        padding-top: 3rem;
    }

    .metrics,
    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .workflow,
    .conclusions {
        grid-template-columns: 1fr;
    }

    .two-col,
    .model-grid {
        grid-template-columns: 1fr;
    }

    .flow {
        grid-template-columns: 1fr;
    }

    .flow i {
        transform: rotate(90deg);
        padding: 0.4rem;
    }

    .case-hero h1 {
        font-size: 2.5rem;
    }
}