:root {
    --hayfinn-green: #2f6843;
    --hayfinn-orange: #e87725;
    --hayfinn-cream: #f7f5ef;
}

.case-hero::before {
    width: 560px;
    height: 320px;
    right: 130px;
    background-image: url("Hayfinn_Logo.svg");
    opacity: 0.035;
}

.case-hero-logo {
    max-width: 760px;
    margin-left: 0;
    margin-bottom: 42px;
}

.case-hero-logo img {
    max-height: 270px;
    object-fit: contain;
    object-position: left center;
}

.case-intro-content h2,
.brand-section .section-heading h2,
.applications-section .section-heading h2,
.outcome-section h2 {
    color: var(--hayfinn-green);
}

.case-intro-content h2 em,
.brand-section .section-heading h2 em,
.applications-section .section-heading h2 em,
.outcome-section h2 em {
    color: var(--hayfinn-orange);
}

.hayfinn-logo-grid {
    grid-template-columns: minmax(0, 1fr);
}

.hayfinn-logo-card {
    min-height: 440px;
    background:
        linear-gradient(135deg, rgba(47, 104, 67, 0.04), transparent 52%),
        var(--hayfinn-cream);
}

.hayfinn-logo-card img {
    max-width: 680px;
}

.brand-details {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 72px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid #d6d2c9;
}

.brand-detail-copy > span,
.brand-palette span {
    display: block;
    margin-bottom: 10px;
    color: #5f6b73;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.brand-detail-copy p {
    max-width: 520px;
    color: #242a30;
    font-size: 1rem;
    line-height: 1.7;
}

.brand-palette {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.brand-palette > div {
    min-width: 0;
}

.swatch {
    display: block;
    width: 100%;
    height: 74px;
    margin-bottom: 16px;
    border: 1px solid #d6d2c9;
    border-radius: 6px;
}

.swatch-green { background: var(--hayfinn-green); }
.swatch-orange { background: var(--hayfinn-orange); }
.swatch-cream { background: var(--hayfinn-cream); }

.brand-palette small {
    color: #242a30;
    font-size: 0.72rem;
}

.hayfinn-application-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hayfinn-application-grid .application-image {
    aspect-ratio: 3 / 2;
}

.system-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 40px;
    border-top: 1px solid #e2e0da;
}

.system-story {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
    gap: 72px;
    align-items: center;
    margin-top: 48px;
}

.system-story__visual .application-image {
    aspect-ratio: 3 / 2;
}

.system-story__content h2 {
    margin-bottom: 26px;
    color: var(--hayfinn-green);
    font-family: "DM Serif Display", serif;
    font-size: clamp(2.8rem, 4.6vw, 4.7rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.system-story__content > p:not(.eyebrow) {
    color: #242a30;
    font-size: 1.05rem;
    line-height: 1.7;
}

.system-story__content ul {
    margin-top: 28px;
    padding: 0;
    border-top: 1px solid #d6d2c9;
    list-style: none;
}

.system-story__content li {
    padding: 12px 0;
    border-bottom: 1px solid #d6d2c9;
    color: var(--hayfinn-green);
    font-size: 0.88rem;
    font-weight: 700;
}

.system-story__content li::before {
    content: "/";
    margin-right: 9px;
    color: var(--hayfinn-orange);
}

.outcome-card {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
}

.outcome-card--logo img {
    padding: 42px;
    object-fit: contain;
}

.outcome-gallery img:nth-child(3) {
    padding: 0;
    object-fit: cover;
}

.final-cta {
    background-color: var(--hayfinn-green);
}

.cta-button {
    color: var(--hayfinn-green);
}

@media (max-width: 768px) {
    .case-hero::before {
        width: 390px;
        height: 210px;
        right: -150px;
        top: 38%;
    }

    .case-hero-logo {
        max-width: 100%;
        margin-bottom: 34px;
    }

    .case-hero-logo .hero-logo-horizontal {
        display: block;
    }

    .case-hero-logo .hero-logo-stacked {
        display: none;
    }

    .hayfinn-logo-card {
        min-height: 260px;
        padding: 38px 28px;
    }

    .brand-details {
        grid-template-columns: 1fr;
        gap: 38px;
        margin-top: 44px;
    }

    .brand-palette {
        gap: 10px;
    }

    .swatch {
        height: 58px;
    }

    .brand-palette span {
        font-size: 0.56rem;
        line-height: 1.4;
    }

    .hayfinn-application-grid,
    .system-story {
        grid-template-columns: 1fr;
    }

    .system-section {
        padding: 80px 24px;
    }

    .system-story {
        gap: 48px;
        margin-top: 36px;
    }

    .system-story__content h2 {
        font-size: clamp(3rem, 13vw, 4.5rem);
    }

    .outcome-card--logo img {
        padding: 44px 32px;
    }
}

