@media (max-width: 1080px) {
    .cards-grid,
    .solutions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .hero-grid,
    .experience-grid,
    .revamp-grid,
    .code-pipeline-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 440px;
    }

    .services-hero {
        min-height: 680px;
    }

    .services-hero::before {
        background:
            linear-gradient(90deg, #FFFFFF 0 48%, rgba(255, 255, 255, 0.82) 62%, rgba(255, 255, 255, 0.2) 100%),
            radial-gradient(circle at 40% 86%, rgba(225, 29, 72, 0.13), transparent 22%),
            radial-gradient(circle at 58% 19%, rgba(37, 99, 235, 0.16), transparent 26%);
    }

    .services-hero-icons {
        grid-template-columns: repeat(3, minmax(110px, 1fr));
        max-width: 560px;
    }

    .solutions-hero {
        min-height: 720px;
    }

    .solutions-hero::before {
        background:
            linear-gradient(90deg, #FFFFFF 0 46%, rgba(255, 255, 255, 0.84) 63%, rgba(255, 255, 255, 0.18) 100%),
            radial-gradient(circle at 42% 78%, rgba(225, 29, 72, 0.1), transparent 23%),
            radial-gradient(circle at 60% 18%, rgba(37, 99, 235, 0.12), transparent 26%);
    }

    .solutions-hero-cards {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
        max-width: 700px;
    }

    .mobile-mock {
        right: 1rem;
    }

    .hero-monogram {
        right: 0;
        font-size: 13rem;
    }
}

@media (max-width: 860px) {
    :root {
        --header-height: 72px;
        --space-2xl: 4rem;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 120;
    }

    .menu-toggle.is-active span:nth-child(2) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle.is-active span:nth-child(3) {
        opacity: 0;
    }

    .menu-toggle.is-active span:nth-child(4) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .site-nav {
        position: fixed;
        inset: var(--header-height) 0 auto 0;
        display: grid;
        gap: 0;
        padding: 1rem;
        background: #fff;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 24px 44px rgba(10, 37, 64, 0.12);
        transform: translateY(-130%);
        opacity: 0;
        pointer-events: none;
        transition: transform 220ms ease, opacity 220ms ease;
    }

    .site-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link,
    .nav-cta {
        width: 100%;
        justify-content: space-between;
        min-height: 52px;
        margin: 0;
        border-bottom: 1px solid var(--color-border);
        border-radius: 0;
    }

    .nav-cta {
        justify-content: center;
        margin-top: 1rem;
        border-radius: var(--radius-sm);
        border-bottom: 0;
    }

    .section-heading-grid,
    .split-section,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 3.2rem;
    }

    .services-hero {
        min-height: auto;
        align-items: stretch;
        padding: 3.2rem 0 3.8rem;
    }

    .services-hero::before {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0 62%, rgba(255, 255, 255, 0.84) 100%),
            radial-gradient(circle at 45% 18%, rgba(37, 99, 235, 0.14), transparent 28%),
            radial-gradient(circle at 22% 82%, rgba(225, 29, 72, 0.12), transparent 24%);
    }

    .services-hero-media {
        opacity: 0.32;
        background-position: 62% center;
    }

    .services-hero-copy {
        max-width: none;
        padding: 0;
    }

    .services-hero h1 {
        max-width: 720px;
    }

    .solutions-hero {
        min-height: auto;
        align-items: stretch;
        padding: 3.2rem 0 3.8rem;
    }

    .solutions-hero::before {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0 58%, rgba(255, 255, 255, 0.84) 100%),
            radial-gradient(circle at 45% 18%, rgba(37, 99, 235, 0.14), transparent 28%),
            radial-gradient(circle at 22% 82%, rgba(225, 29, 72, 0.12), transparent 24%);
    }

    .solutions-hero-media {
        opacity: 0.36;
        background-position: 66% center;
    }

    .solutions-hero-copy {
        max-width: none;
        padding: 0;
    }

    .solutions-hero h1 {
        max-width: 720px;
    }

    .hero h1 {
        max-width: 680px;
    }

    .capability-line span {
        min-height: 32px;
    }

    .revamp-visual {
        grid-template-columns: 1fr;
    }

    .mini-arrow {
        transform: rotate(90deg);
        text-align: center;
    }

    .cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 1.25rem), var(--container));
    }

    .brand em {
        display: none;
    }

    .hero-copy > p,
    .page-hero p,
    .services-hero p,
    .solutions-hero-copy > p {
        font-size: 1.02rem;
    }

    .services-hero {
        padding: 2.7rem 0 3.2rem;
    }

    .services-hero-inner {
        width: min(calc(100% - 1.25rem), var(--container));
    }

    .services-hero h1 {
        font-size: clamp(2.45rem, 12vw, 3.3rem);
    }

    .services-hero-icons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .solutions-hero {
        padding: 2.7rem 0 3.2rem;
    }

    .solutions-hero-inner {
        width: min(calc(100% - 1.25rem), var(--container));
    }

    .solutions-hero h1 {
        font-size: clamp(2.45rem, 12vw, 3.3rem);
    }

    .solutions-hero-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .solution-spotlight-card {
        min-height: 190px;
        padding: 1rem;
    }

    .solution-spotlight-icon {
        width: 54px;
        height: 54px;
        margin-bottom: 1rem;
    }

    .service-icon-tile {
        min-height: 118px;
        padding: 0.75rem 0.45rem;
    }

    .service-icon-tile svg {
        width: 64px;
        height: 52px;
    }

    .service-icon-tile strong {
        font-size: 0.84rem;
    }

    .hero-visual {
        min-height: 505px;
    }

    .browser-mock {
        inset: 0 0 auto 0;
        width: 100%;
        min-height: 300px;
    }

    .mobile-mock {
        top: 190px;
        right: 0.6rem;
        width: 92px;
        min-height: 176px;
        border-width: 7px;
    }

    .code-card {
        left: 0;
        right: auto;
        width: min(100%, 290px);
        bottom: 0;
    }

    .design-card {
        right: 0;
        bottom: 132px;
        width: 170px;
        padding: 0.9rem;
    }

    .hero-monogram {
        display: none;
    }

    .cards-grid,
    .solutions-grid,
    .process-grid,
    .work-grid,
    .detail-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .solution-card,
    .detail-card,
    .form-shell {
        padding: 1rem;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}

@media (max-width: 380px) {
    h1 {
        font-size: 2.8rem;
    }

    .services-hero h1 {
        font-size: 2.32rem;
    }

    .solutions-hero h1 {
        font-size: 2.32rem;
    }

    .services-hero-icons {
        grid-template-columns: 1fr;
    }

    .solutions-hero-cards {
        grid-template-columns: 1fr;
    }

    .solution-spotlight-card {
        min-height: auto;
    }

    .service-icon-tile {
        grid-template-columns: 58px 1fr;
        align-items: center;
        justify-items: start;
        min-height: auto;
        text-align: left;
    }

    .hero-visual {
        min-height: 520px;
    }

    .mobile-mock {
        display: none;
    }

    .design-card {
        bottom: 145px;
    }

    .code-card {
        font-size: 0.72rem;
    }
}

