/* ============================================
   Case Study — Shared Styles
   ============================================ */

/* Nav */
.cs-nav-back {
    font-size: 0.9rem;
    color: #666;
    transition: color 0.3s ease;
}

.cs-nav-back:hover {
    color: #1a1a1a;
}

/* ============================================
   Hero — TL;DR
   ============================================ */
.cs-hero {
    padding: 7rem 0 5rem;
    background-color: #ffffff;
}

.cs-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    transition: color 0.3s ease;
}

.cs-back:hover {
    color: #1a1a1a;
}

.cs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.cs-hero h1 {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    max-width: 800px;
}

.cs-company {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.cs-hook {
    font-size: 1.15rem;
    color: #444;
    line-height: 1.7;
    max-width: 680px;
    margin-bottom: 2.5rem;
}

/* At a Glance */
.cs-at-a-glance {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 3.5rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.cs-glance-item {
    padding: 1.25rem 1.5rem;
    border-right: 1px solid #e5e5e5;
}

.cs-glance-item:last-child {
    border-right: none;
}

.cs-glance-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.cs-glance-value {
    font-size: 0.92rem;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.4;
}

/* Hero image */
.cs-hero-image {
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.cs-hero-image img {
    width: 100%;
    display: block;
}

/* ============================================
   Sections — shared
   ============================================ */
.cs-section {
    padding: 6rem 0;
}

.cs-section--gray {
    background-color: #fafafa;
}

.cs-section--white {
    background-color: #ffffff;
}

.cs-section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #999;
    font-weight: 500;
    margin-bottom: 0.6rem;
}

.cs-section-title {
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
    line-height: 1.2;
}

.cs-section-body {
    max-width: 720px;
}

.cs-section-body p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.cs-section-body p:last-child {
    margin-bottom: 0;
}

.cs-section-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cs-section-body ul li {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.85;
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.cs-section-body ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #999;
}

.cs-sub-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 2.25rem;
    margin-bottom: 0.6rem;
}

.cs-sub-heading:first-of-type {
    margin-top: 0;
}

/* ============================================
   The Work — images
   ============================================ */
.cs-work-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.cs-work-image {
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.cs-work-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.cs-work-image:hover img {
    transform: scale(1.05);
}

.cs-work-caption {
    font-size: 0.82rem;
    color: #888;
    margin-top: 0.6rem;
    line-height: 1.5;
}

.cs-work-image--full {
    grid-column: 1 / -1;
}

/* ============================================
   The Human Result
   ============================================ */
.cs-metric-box {
    display: inline-block;
    padding: 1.75rem 2.25rem;
    background-color: #f7f7f7;
    border-radius: 8px;
    margin-bottom: 2.5rem;
}

.cs-metric-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.cs-metric-value {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
}

.cs-quote {
    max-width: 680px;
    padding: 0 0 0 2rem;
    border-left: 3px solid #1a1a1a;
    margin-bottom: 2rem;
}

.cs-quote p {
    font-size: 1.05rem;
    color: #444;
    font-style: italic;
    line-height: 1.8;
    margin: 0 0 1rem;
}

.cs-quote-author {
    font-size: 0.84rem;
    color: #888;
}

.cs-quote-author strong {
    color: #1a1a1a;
    font-weight: 600;
}

.cs-so-what {
    max-width: 680px;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid #e5e5e5;
}

.cs-so-what p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.85;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .cs-hero {
        padding: 5rem 0 3rem;
    }

    .cs-hero h1 {
        font-size: 2.25rem;
    }

    .cs-at-a-glance {
        grid-template-columns: 1fr;
    }

    .cs-glance-item {
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
    }

    .cs-glance-item:last-child {
        border-bottom: none;
    }

    .cs-section {
        padding: 4rem 0;
    }

    .cs-work-images {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cs-hero {
        padding: 5.5rem 0 2.5rem;
    }

    .cs-hero h1 {
        font-size: 1.75rem;
    }

    .cs-hook {
        font-size: 1rem;
    }

    .cs-section-title {
        font-size: 1.75rem;
    }

    .cs-section {
        padding: 3rem 0;
    }
}

@media (max-width: 768px) {
    .cs-hero {
        padding: 6rem 0 3rem;
    }
}

/* ============================================
   NEW TEMPLATE STYLES
   ============================================ */

/* Quick Scan Strip */
.cs-scan-strip {
    background-color: #fafafa;
    padding: 2rem 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.cs-scan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.cs-scan-item {
    text-align: left;
}

.cs-scan-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.cs-scan-value {
    font-size: 0.92rem;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.4;
}

/* Body Layout with Sidebar */
.cs-body {
    padding: 3rem 0 5rem;
    background-color: #ffffff;
}

.cs-body-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
}

/* Sidebar / Table of Contents */
.cs-sidebar {
    position: relative;
}

.cs-toc {
    position: sticky;
    top: 100px;
}

.cs-toc-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    font-weight: 500;
    margin-bottom: 1rem;
}

.cs-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cs-toc-list li {
    margin-bottom: 0.75rem;
}

.cs-toc-link {
    font-size: 0.88rem;
    color: #666;
    transition: color 0.3s ease;
    display: block;
}

.cs-toc-link:hover {
    color: #1a1a1a;
}

/* Main Content */
.cs-main {
    max-width: 800px;
}

.cs-content-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
}

.cs-content-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cs-content-section .cs-hero-image {
    margin-top: 2.5rem;
}

.cs-content-section .cs-hero-image img {
    transition: transform 0.5s ease;
}

.cs-content-section .cs-hero-image:hover img {
    transform: scale(1.05);
}

/* Constraints Grid */
.cs-constraints-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cs-constraint-card {
    background-color: #fafafa;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.cs-constraint-card h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.cs-constraint-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Feature Blocks */
.cs-feature-blocks {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.cs-feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.cs-feature-block .cs-feature-image {
    display: flex;
}

.cs-feature-block .cs-feature-image img {
    object-fit: cover;
    height: 100%;
}

.cs-feature-image {
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.cs-feature-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.cs-feature-image:hover img {
    transform: scale(1.05);
}

.cs-feature-image--full {
    margin-bottom: 1.5rem;
}

.cs-feature-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.cs-feature-what {
    font-size: 1rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.cs-feature-why,
.cs-feature-change {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.cs-feature-why strong,
.cs-feature-change strong {
    color: #1a1a1a;
}

/* System Block */
.cs-system-block {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.cs-system-block p {
    font-size: 1rem;
    color: #444;
    line-height: 1.75;
}

/* Outcomes Grid */
.cs-outcomes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cs-outcome-card {
    background-color: #fafafa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.cs-outcome-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.cs-outcome-value {
    font-size: 0.9rem;
    font-weight: 400;
    color: #555;
    line-height: 1.6;
}

/* Responsive for new template */
@media (max-width: 1024px) {
    .cs-body-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cs-sidebar {
        display: none;
    }

    .cs-main {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .cs-scan-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .cs-constraints-grid {
        grid-template-columns: 1fr;
    }

    .cs-feature-block {
        grid-template-columns: 1fr;
    }

    .cs-outcomes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cs-content-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .cs-body {
        padding: 2rem 0 3rem;
    }
}

@media (max-width: 480px) {
    .cs-scan-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cs-scan-strip {
        padding: 1.5rem 0;
    }

    .cs-body {
        padding: 1.5rem 0 2.5rem;
    }

    .cs-content-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1.25rem;
    }
}

/* ============================================
   Carousel
   ============================================ */
.cs-carousel {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f0f0;
    margin-top: 2.5rem;
}

.cs-carousel-track {
    position: relative;
    width: 100%;
}

.cs-carousel-slide {
    width: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cs-carousel-slide.active {
    display: block;
    opacity: 1;
}

.cs-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 2;
}

.cs-carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
}

.cs-carousel-prev {
    left: 12px;
}

.cs-carousel-next {
    right: 12px;
}

.cs-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.cs-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
}

.cs-carousel-dot.active {
    background: #fff;
}