/* --- Case Study Extension --- */
/* This file works alongside style.css */

.cs-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5vw;
}

.italic {
    font-style: italic;
}

.mono-label {
    font-family: 'Playfair Display', monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.5;
    display: block;
}

/* Hero Section */
.cs-hero {
    padding-top: 120px; /* Space for fixed nav */
    padding-bottom: 60px;
}

.cs-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 12vw, 10rem);
    line-height: 1;
    margin: 20px 0;
    font-weight: 400;
}

.cs-hero-sub {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    max-width: 600px;
    opacity: 0.7;
    margin-bottom: 40px;
}

.cs-hero-img img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

/* Info Grid */
.cs-info {
    padding: 80px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.cs-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.cs-description {
    font-size: 1.5rem;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}

.cs-meta {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.serif-val {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    display: block;
    margin-top: 5px;
}

/* Chapter Sections */
.cs-chapter {
    padding: 100px 0;
}

.chapter-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.chapter-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    line-height: 1.1;
}

.chapter-body p {
    font-size: 1.1rem;
    opacity: 0.7;
    max-width: 900px;
    line-height: 1.8;
}

/* Visuals */
.cs-visual {
    padding: 60px 0;
}

.image-wrapper-full {
    position: relative;
    width: 100%;
}

.image-wrapper-full img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.image-wrapper-full .caption {
    position: absolute;
    bottom: -30px;
    left: 0;
}

/* Gallery Grid */
.cs-gallery {
    padding: 100px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.gallery-grid img:hover {
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 1024px) {
    .cs-grid, .chapter-layout, .gallery-grid {
        grid-template-columns: 1fr;
    }
    .cs-description {
        font-size: 1.2rem;
    }
}


/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px); /* Moves it 30px down */
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1); /* Smooth, premium feel */
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0); /* Slides up to original position */
}
