/*==================================================
CASE STUDY PAGE
==================================================*/
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --text: #334155;
    --heading: #0f172a;
    --light: #f8fafc;
    --border: #e2e8f0;
    --white: #ffffff;
    --radius: 20px;
    --shadow: 0 10px 35px rgba(15, 23, 42, .08);
    --transition: .35s ease;
}

/*==================================================
GLOBAL
==================================================*/
.section-pad {
    padding: 80px 0;
}

.container {
    width: min(1200px, 90%);
    margin: auto;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 70px;
    margin-bottom: 70px;
}

.section-head h2 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    color: var(--heading);
    line-height: 1.1;
    margin-top: 15px;
}

.section-head p {
    max-width: 500px;
    color: var(--text);
    line-height: 1.8;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: .82rem;
    text-transform: uppercase;
}

.eyebrow span {
    width: 45px;
    height: 2px;
    background: var(--primary);
}

.eyebrow.dark {
    color: var(--heading);
}

.eyebrow.dark span {
    background: var(--heading);
}

/*==================================================
HERO
==================================================*/
.case-hero {
    padding: 150px 0 90px;
    background:
        linear-gradient(135deg, #f8fbff, #edf5ff);
    overflow: hidden;
}

.case-hero-content {
    max-width: 820px;
    margin: auto;
    text-align: center;
}

.case-hero h1 {
    font-size: clamp(3rem, 6vw, 4rem);
    margin: 25px 0;
    color: var(--heading);
    line-height: 1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 30px;
}

.hero-description {
    max-width: 760px;
    margin: auto;
    color: var(--text);
    line-height: 1.9;
    font-size: 1.05rem;
}

/*==================================================
PROJECT INFO
==================================================*/
.case-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.info-card {
    background: var(--white);
    border-radius: 18px;
    padding: 35px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-8px);
}

.info-card small {
    display: block;
    color: #64748b;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.info-card h3 {
    font-size: 1.2rem;
    color: var(--heading);
    line-height: 1.5;
}

/*==================================================
FEATURE IMAGE
==================================================*/
.case-banner {
    margin-top: -70px;
    padding-bottom: 70px;
}

.banner-image {
    border-radius: 25px;
    overflow: hidden;
    box-shadow:
        0 25px 60px rgba(15, 23, 42, .18);
}

.banner-image img {
    width: 100%;
    display: block;
}

/*==================================
PROJECT OVERVIEW
==================================*/

.case-overview {
    padding: 80px 0;
    background: #fff;
    position: relative;
}

.case-overview .section-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: end;
    margin-bottom: 50px;
}

.case-overview .section-head h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    color: #081120;
    margin-top: 12px;
}

.case-overview .section-head p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.8;
    max-width: 520px;
    margin-left: auto;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 40px;
    align-items: start;
}

/*==========================
LEFT CONTENT
==========================*/

.overview-content {
    padding-right: 20px;
}

.overview-content h3 {
    font-size: 2rem;
    color: #081120;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 12px;
}

.overview-content h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px;
    height: 4px;
    border-radius: 20px;
    background: #2563eb;
}

.overview-content p {
    color: #64748b;
    line-height: 1.9;
    font-size: 16px;
    margin-bottom: 18px;
}

/*==========================
PROJECT SUMMARY
==========================*/

.project-summary {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.summary-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: #f8fafc;
    border: 1px solid #0054fd;
    border-radius: 14px;
    transition: .35s ease;
}

.summary-card:hover {
    transform: translateX(8px);
    background: #2563eb;
    border-color: #f9fafb;
}

.summary-card h4 {
    margin: 0;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #000000;
    transition: .35s;
}

.summary-card p {
    margin: 0;
    text-align: right;
    color: #0f172a;
    font-size: 15px;
    transition: .35s;
}

.summary-card:hover h4,
.summary-card:hover p {
    color: #fff;
}

/*==========================
EYEBROW
==========================*/
.case-overview .eyebrow {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #2563eb;
}

.case-overview .eyebrow span {
    width: 40px;
    height: 2px;
    background: #2563eb;
}

/*==========================
RESPONSIVE
==========================*/
@media(max-width:992px) {
    .case-overview .section-head {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .case-overview .section-head p {
        margin-left: 0;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media(max-width:768px) {
    .case-overview {
        padding: 60px 0;
    }

    .case-overview .section-head {
        margin-bottom: 35px;
    }

    .case-overview .section-head h2 {
        font-size: 2rem;
    }

    .overview-content h3 {
        font-size: 1.7rem;
    }

    .summary-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .summary-card p {
        text-align: left;
    }
}

/*==================================
Responsive
==================================*/
@media(max-width:991px) {
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .overview-content::before {
        display: none;
    }
}

@media(max-width:768px) {
    .case-overview {
        padding: 80px 0;
    }

    .overview-content h3 {
        font-size: 1.9rem;
    }

    .overview-content p {
        font-size: 16px;
    }

    .summary-card {
        padding: 24px;
    }
}

/*==================================================
PROJECT OBJECTIVES
==================================================*/
.project-goals {
    background: #f8fafc;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.goal-card {
    background: #fff;
    padding: 40px;
    border-radius: 22px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.goal-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: .4s;
}

.goal-card:hover::before {
    transform: scaleY(1);
}

.goal-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 45px rgba(37, 99, 235, .12);
}

.goal-number {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.goal-card h3 {
    font-size: 1.45rem;
    color: var(--heading);
    margin-bottom: 18px;
}

.goal-card p {
    color: var(--text);
    line-height: 1.8;
}

/*==================================================
COMMON CARD HOVER EFFECT
==================================================*/
.summary-card,
.goal-card {
    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

@media(max-width:992px) {
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .goals-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }
}

@media(max-width:768px) {
    .overview-content h3 {
        font-size: 1.8rem;
    }

    .goal-card {
        padding: 30px;
    }

    .goal-number {
        width: 60px;
        height: 60px;
        font-size: 1.1rem;
    }
}

/*==================================================
THE CHALLENGE
==================================================*/
.case-challenge {
    background: var(--white);
}

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.challenge-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 40px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}

.challenge-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow:
        0 20px 45px rgba(37, 99, 235, .12);
}

.challenge-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #eff6ff;
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.challenge-card h3 {
    font-size: 1.5rem;
    color: var(--heading);
    margin-bottom: 18px;
}

.challenge-card p {
    color: var(--text);
    line-height: 1.8;
}

/*==================================================
OUR SOLUTION
==================================================*/
.case-solution {
    background: #f8fafc;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.solution-card {
    background: #fff;
    border-radius: 22px;
    padding: 40px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.solution-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: .4s;
    transform-origin: left;
}

.solution-card:hover::after {
    transform: scaleX(1);
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 45px rgba(37, 99, 235, .12);
}

.solution-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    margin-bottom: 25px;
}

.solution-card h3 {
    font-size: 1.45rem;
    margin-bottom: 20px;
    color: var(--heading);
}

.solution-card ul {
    padding-left: 20px;
}

.solution-card li {
    margin-bottom: 14px;
    color: var(--text);
    line-height: 1.7;
}

/*==================================================
PROCESS TIMELINE
==================================================*/
.case-process {
    background: #fff;
}

.timeline {
    position: relative;
    margin-top: 60px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #dbeafe;
}

.timeline-item {
    position: relative;
    padding-left: 110px;
    margin-bottom: 55px;
}

.timeline-dot {
    position: absolute;
    left: 12px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    box-shadow:
        0 10px 25px rgba(37, 99, 235, .25);
}

.timeline-item h3 {
    font-size: 1.45rem;
    color: var(--heading);
    margin-bottom: 15px;
}

.timeline-item p {
    color: var(--text);
    line-height: 1.8;
}

/*==================================================
TECHNOLOGIES
==================================================*/
.case-technologies {
    background: #f8fafc;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.tech-card {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 18px;
    border: 1px solid var(--border);
    font-weight: 600;
    color: var(--heading);
    transition: var(--transition);
    cursor: default;
}

.tech-card:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-8px);
    box-shadow:
        0 15px 35px rgba(37, 99, 235, .18);
}

/*==================================================
RESPONSIVE
==================================================*/
@media(max-width:992px) {

    .challenge-grid,
    .solution-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:768px) {
    .timeline::before {
        left: 28px;
    }

    .timeline-item {
        padding-left: 85px;
    }

    .timeline-dot {
        width: 45px;
        height: 45px;
        left: 6px;
        font-size: .9rem;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }
}

/*==================================================
PROJECT RESULTS
==================================================*/
.case-results {
    background: var(--white);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.result-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 45px 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow:
        0 10px 30px rgba(15, 23, 42, .05);
}

.result-card:hover {
    transform: translateY(-10px);
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.result-card h3 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--primary);
    transition: .3s;
}

.result-card:hover h3 {
    color: #fff;
}

.result-card p {
    color: var(--text);
    line-height: 1.8;
    transition: .3s;
}

.result-card:hover p {
    color: #fff;
}

/*==================================================
PROJECT GALLERY
==================================================*/
.case-gallery {
    background: #f8fafc;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 22px;
    box-shadow:
        0 20px 45px rgba(15, 23, 42, .08);
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: .5s;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/*==================================================
TESTIMONIAL
==================================================*/
.case-testimonial {
    padding: 50px 0;
    background: #ffffff;
}

.testimonial-card {
    max-width: 950px;
    margin: auto;
    border-left: 6px solid #2563eb;
    padding: 10px 0 10px 30px;
}

.testimonial-card i {
    display: none;
}

.testimonial-card p {
    font-size: 1.5rem;
    line-height: 1.5;
    color: #111827;
    font-weight: 300;
    margin-bottom: 35px;
}

.testimonial-card h4 {
    font-size: 1.2rem;
    color: #2563eb;
    margin-bottom: 5px;
}

.testimonial-card span {
    color: #6b7280;
    font-size: .95rem;
}

/*==================================
CALL TO ACTION
==================================*/
.case-cta {
    padding: 90px 0;
    background: #ffffff;
}

.cta-box {
    position: relative;
    display: grid;
    grid-template-columns: 2fr auto;
    align-items: center;
    gap: 50px;
    padding: 55px 60px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    overflow: hidden;
}

.cta-box::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
}

.cta-box::after {
    content: "";
    position: absolute;
    bottom: -120px;
    left: -120px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(37, 99, 235, .15);
}

.cta-box>div {
    position: relative;
    z-index: 2;
}

.cta-box .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #60a5fa;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta-box .eyebrow span {
    width: 40px;
    height: 2px;
    background: #60a5fa;
}

.cta-box h2 {
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    color: #fff;
    line-height: 1.15;
    margin: 18px 0;
    max-width: 620px;
}

.cta-box p {
    max-width: 620px;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.8;
}

.btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 34px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    background: #2563eb;
    color: #fff;
    transition: .35s ease;
    white-space: nowrap;
}

.btn:hover {
    background: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, .35);
}

.btn span {
    font-size: 18px;
}

/*=========================
Responsive
=========================*/

@media(max-width:992px) {
    .cta-box {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 45px;
    }

    .cta-box h2,
    .cta-box p {
        max-width: 100%;
    }

    .cta-box .eyebrow {
        justify-content: center;
    }
}

@media(max-width:576px) {
    .case-cta {
        padding: 70px 0;
    }

    .cta-box {
        padding: 35px 25px;
        border-radius: 18px;
    }

    .cta-box h2 {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/*==================================================
FOOTER
==================================================*/

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .75s ease, transform .75s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: .1s;
}

.delay-2 {
    transition-delay: .2s;
}

.delay-3 {
    transition-delay: .3s;
}

/*==================================================
RESPONSIVE
==================================================*/
@media(max-width:992px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        flex-direction: column;
        text-align: center;
    }

}

@media(max-width:768px) {
    .results-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 45px 30px;
    }

    .cta-box {
        padding: 45px 30px;
    }

}

@media(max-width:576px) {
    .section-pad {
        padding: 80px 0;
    }

    .section-head {
        margin-bottom: 50px;
    }

    .section-head h2 {
        font-size: 2.2rem;
    }

    .testimonial-card p {
        font-size: 1rem;
        line-height: 1.8;
    }
}

/* =========================================================
   CASE STUDY — FINAL RESPONSIVE OVERRIDES
   Covers headings,
images,
cards,
icons,
grids,
timeline,
technology cards,
results,
CTA,
footer and navigation.
   ========================================================= */

html {
    overflow-x: hidden;
}

body {
    min-width: 0;
    overflow-x: hidden;
}

img,
svg,
video {
    max-width: 100%;
}

.container {
    width: min(1240px, calc(100% - 48px));
}

/* ---------------- HERO ---------------- */

.case-hero {
    overflow: hidden;
}

.case-hero h1 {
    overflow-wrap: anywhere;
}

.case-hero-content,
.case-info-grid,
.case-banner,
.case-overview,
.case-challenge,
.case-solution,
.case-process,
.case-technologies,
.case-results {
    min-width: 0;
}

.banner-image {
    width: 100%;
}

.banner-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ---------------- LARGE TABLET ---------------- */

@media (max-width: 1200px) {
    .container {
        width: min(1080px, calc(100% - 48px));
    }

    .case-info-grid {
        gap: 18px;
    }

    .info-card {
        padding: 28px 20px;
    }

    .challenge-grid,
    .solution-grid,
    .results-grid {
        gap: 20px;
    }
}

/* ---------------- TABLET ---------------- */

@media (max-width: 992px) {
    .container {
        width: min(760px, calc(100% - 40px));
    }

    /* Hero */
    .case-hero {
        padding: 110px 0 75px;
    }

    .case-hero-content {
        max-width: 720px;
    }

    .case-hero h1 {
        font-size: clamp(2.8rem, 8vw, 4rem);
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.8;
    }

    .case-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-banner {
        margin-top: -45px;
        padding-bottom: 55px;
    }

    .banner-image {
        border-radius: 20px;
    }

    /* Section heads */
    .section-head,
    .case-overview .section-head {
        grid-template-columns: 1fr;
        gap: 20px;
        align-items: start;
    }

    .section-head>p,
    .case-overview .section-head p {
        margin-left: 0;
        max-width: none;
    }

    /* Main grids */
    .overview-grid,
    .challenge-grid,
    .solution-grid {
        grid-template-columns: 1fr;
    }

    .overview-content {
        padding-right: 0;
    }

    .project-summary {
        width: 100%;
    }

    /* Results */
    .results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Process */
    .timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Technologies */
    .tech-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ---------------- MOBILE ---------------- */

@media (max-width: 768px) {
    .container {
        width: calc(100% - 32px);
    }

    /* Hero */
    .case-hero {
        padding: 72px 0 60px;
    }

    .eyebrow {
        font-size: 10px;
        letter-spacing: 1.5px;
        justify-content: center;
        margin-top: 50px;
    }

    .case-hero-content {
        text-align: center;
    }

    .case-hero h1 {
        font-size: clamp(2.2rem, 10vw, 3rem);
        line-height: 1.08;
        margin: 18px 0;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: .95rem;
        line-height: 1.75;
    }

    /* Project information cards */
    .case-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-top: 35px;
    }

    .info-card {
        min-width: 0;
        padding: 20px 12px;
        border-radius: 14px;
    }

    .info-card small {
        font-size: 9px;
        letter-spacing: 1px;
        margin-bottom: 7px;
    }

    .info-card h3 {
        font-size: .9rem;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    /* Feature image */
    .case-banner {
        margin-top: -25px;
        padding-bottom: 40px;
    }

    .banner-image {
        border-radius: 16px;
        box-shadow: 0 18px 38px rgba(15, 23, 42, .14);
    }

    .banner-image img {
        min-height: 220px;
        object-fit: cover;
    }

    /* All section spacing */
    .section-pad,
    .case-overview,
    .case-challenge,
    .case-solution,
    .case-process,
    .case-technologies,
    .case-results {
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .section-head,
    .case-overview .section-head {
        margin-bottom: 34px;
        gap: 16px;
    }

    .section-head h2,
    .case-overview .section-head h2 {
        font-size: clamp(1.9rem, 8vw, 2.5rem);
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .section-head p,
    .case-overview .section-head p {
        font-size: 15px;
        line-height: 1.7;
    }

    /* Overview */
    .overview-grid {
        gap: 32px;
    }

    .overview-content h3 {
        font-size: 1.65rem;
        line-height: 1.2;
    }

    .overview-content p {
        font-size: 15px;
        line-height: 1.8;
    }

    .summary-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 18px;
    }

    .summary-card h4 {
        font-size: .75rem;
    }

    .summary-card p {
        text-align: left;
        font-size: 14px;
        overflow-wrap: anywhere;
    }

    /* Challenge cards + icons */
    .challenge-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .challenge-card {
        padding: 24px 20px;
        min-height: 0;
    }

    .challenge-icon {
        width: 50px;
        height: 50px;
        display: grid;
        place-items: center;
        flex: 0 0 50px;
    }

    .challenge-icon i,
    .challenge-icon svg {
        font-size: 20px;
    }

    .challenge-card h3 {
        font-size: 20px;
        line-height: 1.25;
    }

    .challenge-card p {
        font-size: 14px;
        line-height: 1.7;
    }

    /* Solution cards */
    .solution-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .solution-card {
        padding: 24px 20px;
    }

    .solution-number {
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        font-size: 14px;
    }

    .solution-card h3 {
        font-size: 20px;
    }

    .solution-card li {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Goals */
    .goals-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .goal-card {
        padding: 24px 20px;
    }

    .goal-number {
        font-size: 42px;
    }

    .goal-card h3 {
        font-size: 20px;
    }

    /* Timeline */
    .timeline {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .timeline-item {
        min-width: 0;
        padding: 0 0 30px 50px;
    }

    .timeline-item:last-child {
        padding-bottom: 0;
    }

    .timeline-dot {
        left: 0;
        top: 0;
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        font-size: 11px;
    }

    .timeline-item::before {
        left: 18px;
        top: 38px;
        bottom: 0;
    }

    .timeline-item h3 {
        font-size: 19px;
        line-height: 1.25;
    }

    .timeline-item p {
        font-size: 14px;
        line-height: 1.65;
    }

    /* Technologies */
    .tech-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .tech-card {
        min-width: 0;
        padding: 16px 10px;
        text-align: center;
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    /* Results */
    .results-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .result-card {
        min-width: 0;
        padding: 22px 12px;
        text-align: center;
    }

    .result-card h3 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .result-card p {
        font-size: 12px;
        line-height: 1.45;
    }

    /* Any project screenshots/gallery images */
    .project-gallery,
    .case-gallery,
    .image-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .project-gallery img,
    .case-gallery img,
    .image-grid img {
        width: 100%;
        height: auto;
        display: block;
    }
}

/* ---------------- SMALL PHONES ---------------- */

@media (max-width: 480px) {
    .container {
        width: calc(100% - 24px);
    }

    .case-hero {
        padding: 56px 0 48px;
    }

    .case-hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.7;
    }

    .case-info-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        padding: 18px 15px;
    }

    .info-card h3 {
        font-size: 1rem;
    }

    .case-banner {
        margin-top: -15px;
        padding-bottom: 30px;
    }

    .banner-image {
        border-radius: 12px;
    }

    .banner-image img {
        min-height: 190px;
    }

    .section-pad,
    .case-overview,
    .case-challenge,
    .case-solution,
    .case-process,
    .case-technologies,
    .case-results {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .section-head h2,
    .case-overview .section-head h2 {
        font-size: 28px;
    }

    .challenge-card,
    .solution-card,
    .goal-card {
        padding: 21px 17px;
    }

    .challenge-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .challenge-icon i,
    .challenge-icon svg {
        font-size: 18px;
    }

    .challenge-card h3,
    .solution-card h3,
    .goal-card h3 {
        font-size: 18px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .result-card {
        padding: 20px 15px;
    }

    .timeline-item {
        padding-left: 46px;
    }

    .timeline-dot {
        width: 34px;
        height: 34px;
    }

    .timeline-item::before {
        left: 16px;
        top: 34px;
    }
}

/* ---------------- LANDSCAPE PHONES ---------------- */

@media (max-height: 520px) and (orientation: landscape) and (max-width: 900px) {
    .case-hero {
        padding: 48px 0;
    }

    .case-info-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .banner-image img {
        max-height: 360px;
        object-fit: cover;
    }
}

/* ---------------- ACCESSIBILITY ---------------- */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}