.other-projects.container {
    max-width: 1240px;
    gap: var(--home-heading-content-gap);
    padding-top: 3rem;
    padding-bottom: var(--home-section-gap);
}

.other-projects-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.other-projects-eyebrow {
    color: var(--color-text-light);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.other-projects-divider {
    flex: 1;
    height: 0;
    border-top: 1px solid #b9c7d8;
}

/* The light rule reads as a bright white hairline on a dark page, so the
   divider drops to the same weight the card borders carry in dark mode. */
.dark-theme .other-projects-divider {
    border-top-color: #3a4150;
}

.other-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--home-card-gap);
}

.other-project-card {
    min-height: 459px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--home-card-border);
    border-radius: 10px;
    background: var(--color-white);
    box-shadow: 0 24px 60px -42px rgba(30, 50, 120, 0.26);
}

/* Placeholder behind the lazy-loaded screenshot; it flashes on every card, so
   it tracks the page background rather than staying pale blue in dark mode. */
.other-project-image {
    aspect-ratio: 405 / 211;
    overflow: hidden;
    background: #e9eef7;
}

.dark-theme .other-project-image {
    background: #1c212b;
}

.other-project-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.other-project-card:hover .other-project-image img {
    transform: scale(1.025);
}

.other-project-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
    padding: var(--home-card-padding);
}

.other-project-title {
    margin: 0;
    color: var(--color-text);
    font-size: var(--home-card-title-size);
    font-weight: 600;
}

.other-project-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.other-project-content .read-more {
    margin-top: auto;
    color: var(--color-primary);
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: none;
}

.other-project-content .read-more svg {
    fill: var(--color-primary) !important;
}

.other-project-cta {
    justify-content: space-between;
    gap: 2rem;
    padding: var(--home-card-padding);
    border: none;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(123, 156, 255, 0.7), transparent 45%),
        linear-gradient(145deg, #2d61ce 0%, #416dea 100%);
}

.other-project-cta-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.other-project-cta-eyebrow {
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.other-project-cta-title {
    margin: 0;
    color: #fff;
    font-size: var(--home-card-title-size);
    font-weight: 600;
}

.other-project-cta-description {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.5;
}

.other-project-cta-button {
    align-self: flex-start;
    min-width: 238px;
    padding: 1.25rem 1.5rem;
    box-sizing: border-box;
    border-radius: 10px;
    background: #fff;
    color: #111;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s;
}

.other-project-cta-button:hover {
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .other-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .other-project-cta {
        grid-column: 1 / -1;
        min-height: 320px;
    }
}

@media (max-width: 650px) {
    .other-projects-header {
        align-items: flex-start;
    }

    .other-projects-eyebrow {
        white-space: normal;
    }

    .other-projects-grid {
        grid-template-columns: 1fr;
    }

    /* The desktop min-height only keeps a row of cards even; stacked, it leaves
       a blank gap above the read-more link. */
    .other-project-card {
        min-height: 0;
    }

    .other-project-cta {
        grid-column: auto;
        min-height: 390px;
        padding: 2rem;
    }

    /* A 20px-tall inline link is a hard target to hit with a thumb; give it a
       full touch row without moving where the text sits. */
    .other-project-content .read-more {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        margin-top: auto;
        margin-bottom: -0.75rem;
    }
}
