
/* CASE STUDIES PAGE
   Shared header, footer and global typography stay in style.css.
*/

.cs-page {
    background: #f7f4eb;
    color: #111;
    font-family: "Comic Neue", cursive;
}

.cs-page *,
.cs-page *::before,
.cs-page *::after {
    box-sizing: border-box;
}

.cs-container {
    width: min(1120px, calc(100% - 64px));
    margin: 0 auto;
}

/* Hero */

.cs-hero {
    padding: 45px 0 28px;
}

.cs-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #9a855c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.cs-hero-content {
    display: grid;
    grid-template-columns: 1.6fr 0.8fr;
    align-items: center;
    gap: 65px;
}

.cs-hero-content h1 {
    margin: 0;
    font-family: "Sniglet", cursive;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.5px;
}

.cs-hero-content p {
    margin: 0;
    color: #656158;
    font-size: 15px;
    line-height: 1.55;
}

/* Filters */

.cs-projects {
    padding: 0 0 55px;
}

.cs-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 27px;
}

.cs-filter {
    padding: 7px 17px;
    border: 1px solid #e8e3d9;
    border-radius: 30px;
    background: #fff;
    color: #28251f;
    font-family: "Comic Neue", cursive;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.cs-filter:hover {
    border-color: #111;
}

.cs-filter.active {
    border-color: #111;
    background: #111;
    color: #fff;
}

/* Cards */

.cs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.cs-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e8e3da;
    border-radius: 12px;
    background: #fff;
    transition: transform 0.2s ease;
}

.cs-card:hover {
    transform: translateY(-3px);
}

.cs-card[hidden] {
    display: none !important;
}

/* Artwork panels */

.cs-card-visual {
    display: flex;
    min-height: 105px;
    align-items: flex-end;
    padding: 13px 14px;
    overflow: hidden;
}

.cs-visual-title {
    font-family: "Sniglet", cursive;
    font-size: clamp(23px, 2.7vw, 32px);
    font-weight: 400;
    line-height: 1.1;
}

.cs-luxol {
    background: #303030;
    color: #c6a66c;
}

.cs-elastic {
    background: #f7f4eb;
    color: #171717;
}

.cs-deeptam {
    background: #050505;
    color: #f5e6c4;
}

.cs-astroyadu {
    background: #d2d0d5;
    color: #161616;
}

.cs-astroyadu .cs-visual-title span {
    color: #b69552;
}

.cs-aria {
    background: #111;
    color: #c9ad76;
}

.cs-visibility {
    background: #818181;
    color: #fff;
}

/* Card information */

.cs-card-content {
    padding: 12px 14px 13px;
}

.cs-location {
    display: none;
}

.cs-category {
    display: block;
    margin-bottom: 6px;
    color: #9b875f;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.25px;
    line-height: 1.5;
}

.cs-card-content h2 {
    margin: 0 0 7px;
    font-family: "Sniglet", cursive;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.2;
}

.cs-card-content p {
    min-height: 57px;
    margin: 0 0 10px;
    color: #57534b;
    font-size: 12px;
    line-height: 1.45;
}

.cs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.cs-tags span {
    padding: 3px 8px;
    border: 1px solid #e8e4da;
    border-radius: 15px;
    background: #f8f6ef;
    color: #57534b;
    font-size: 10px;
    line-height: 1.2;
}

.cs-view-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.cs-view-link span {
    display: inline-block;
    transition: transform 0.2s;
}

.cs-view-link:hover span {
    transform: translateX(4px);
}

.cs-view-link:focus-visible,
.cs-filter:focus-visible {
    outline: 2px solid #ad915d;
    outline-offset: 3px;
}

/* Call to action */

.cs-cta {
    padding: 48px 24px 50px;
    background: #050505;
    color: #fff;
    text-align: center;
}

.cs-cta-inner {
    max-width: 800px;
    margin: 0 auto;
}

.cs-cta h2 {
    margin: 0 0 12px;
    font-family: "Sniglet", cursive;
    font-size: clamp(27px, 3.5vw, 36px);
    font-weight: 400;
    line-height: 1.25;
}

.cs-cta p {
    max-width: 690px;
    margin: 0 auto 20px;
    color: #dedbd5;
    font-size: 13px;
    line-height: 1.6;
}

.cs-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cs-cta-primary,
.cs-cta-secondary {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 8px 19px;
    border: 1px solid #fff;
    border-radius: 5px;
    font-family: "Comic Neue", cursive;
    font-size: 12px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.cs-cta-primary {
    background: #fff;
    color: #111;
}

.cs-cta-primary:hover {
    background: transparent;
    color: #fff;
}

.cs-cta-secondary {
    border-color: transparent;
    background: transparent;
    color: #fff;
}

.cs-cta-secondary:hover {
    border-color: #fff;
}

/* Tablet */

@media (max-width: 900px) {
    .cs-container {
        width: calc(100% - 48px);
    }

    .cs-hero-content {
        grid-template-columns: 1.3fr 1fr;
        gap: 30px;
    }

    .cs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .cs-card-content p {
        min-height: auto;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .cs-container {
        width: calc(100% - 36px);
    }

    .cs-hero {
        padding: 35px 0 25px;
    }

    .cs-hero-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cs-hero-content h1 {
        font-size: 34px;
    }

    .cs-hero-content p {
        max-width: 420px;
        font-size: 14px;
    }

    .cs-filters {
        gap: 7px;
        margin-bottom: 20px;
    }

    .cs-filter {
        padding: 7px 12px;
        font-size: 11px;
    }

    .cs-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .cs-card-visual {
        min-height: 120px;
    }

    .cs-visual-title {
        font-size: 29px;
    }

    .cs-card-content {
        padding: 14px;
    }

    .cs-card-content h2 {
        font-size: 20px;
    }

    .cs-card-content p {
        font-size: 13px;
    }

    .cs-tags span {
        font-size: 11px;
    }

    .cs-cta {
        padding: 40px 20px;
    }

    .cs-cta h2 {
        font-size: 28px;
    }

    .cs-cta p {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cs-card,
    .cs-view-link span,
    .cs-filter,
    .cs-cta-primary,
    .cs-cta-secondary {
        transition: none;
    }
}
