/*
 * Consolidated mobile-only fixes.
 * Deliberately does not change overflow, position, sticky behavior,
 * touch-action, scroll snapping, or any desktop rules.
 */
@media (hover: none), (pointer: coarse) {
    html.aestf-touch .home-expertise__card:hover img,
    html.aestf-touch .home-expertise__button:hover,
    html.aestf-touch a.studio-project-card:hover figure img,
    html.aestf-touch a.studio-project-card:hover::after,
    html.aestf-touch a.portfolio-band:hover img,
    html.aestf-touch a.portfolio-band:hover::after,
    html.aestf-touch a.studio-portfolio-nav-card:hover,
    html.aestf-touch a.portfolio-card:hover,
    html.aestf-touch a.project-card:hover,
    html.aestf-touch a.linked-card:hover {
        transform: none !important;
    }

    html.aestf-touch .home-expertise__button,
    html.aestf-touch .home-expertise__image,
    html.aestf-touch .home-expertise a[href],
    html.aestf-touch .my-expertise a[href],
    html.aestf-touch .expertise-card a[href],
    html.aestf-touch .studio-project-card,
    html.aestf-touch .portfolio-band,
    html.aestf-touch .studio-portfolio-nav-card,
    html.aestf-touch .portfolio-card,
    html.aestf-touch .project-card,
    html.aestf-touch .linked-card {
        -webkit-tap-highlight-color: rgba(0, 0, 0, .08);
        cursor: pointer;
    }
}

@media (hover: none), (pointer: coarse), (max-width: 900px) {
    /* Existing inner-page mobile-menu arrows. */
    html.aestf-touch .site-nav__list--mobile a::after,
    .site-nav__list--mobile a::after,
    html.aestf-touch a.aestf-mobile-menu-item-link::after {
        content: "" !important;
        position: relative !important;
        display: block !important;
        flex: 0 0 34px !important;
        width: 34px !important;
        height: 34px !important;
        margin-left: 18px !important;
        box-sizing: border-box !important;
        border: 1px solid rgba(23, 22, 20, .22) !important;
        border-radius: 999px !important;
        background-color: transparent !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M5 13L13 5M7 5h6v6' stroke='%23171614' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 18px 18px !important;
        opacity: 1 !important;
        transform: none !important;
        box-shadow: none !important;
    }

    html.aestf-touch a.aestf-mobile-menu-item-link {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* The branding/name link must never receive a menu arrow. */
    html.aestf-touch .custom-logo-link::after,
    html.aestf-touch .site-branding > a::after,
    html.aestf-touch .site-title > a::after,
    html.aestf-touch .site-logo > a::after,
    html.aestf-touch .header-brand > a::after,
    html.aestf-touch .brand > a::after {
        content: none !important;
        display: none !important;
        background: none !important;
        border: 0 !important;
    }

    html.aestf-touch .aestf-premium-arrow-icon {
        display: inline-block !important;
        position: relative !important;
        flex: 0 0 auto !important;
        width: 18px !important;
        height: 18px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background-color: currentColor !important;
        background-image: none !important;
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17L17 7M9 7h8v8' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17L17 7M9 7h8v8' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
        -webkit-mask-repeat: no-repeat !important;
        mask-repeat: no-repeat !important;
        -webkit-mask-position: center !important;
        mask-position: center !important;
        -webkit-mask-size: contain !important;
        mask-size: contain !important;
        transform: none !important;
        opacity: 1 !important;
        vertical-align: middle !important;
        font-size: 0 !important;
        line-height: 0 !important;
    }

    html.aestf-touch .aestf-premium-arrow-icon::before,
    html.aestf-touch .aestf-premium-arrow-icon::after {
        content: none !important;
        display: none !important;
    }

    html.aestf-touch .project-preview__arrow,
    html.aestf-touch .studio-case-next a,
    html.aestf-touch .case-next a,
    html.aestf-touch .aestf-arrow-only {
        -webkit-appearance: none !important;
        appearance: none !important;
        display: grid !important;
        place-items: center !important;
        font-size: 0 !important;
        font-family: Arial, sans-serif !important;
        text-shadow: none !important;
        box-shadow: none !important;
    }

    html.aestf-touch .studio-project-card__body > span {
        align-items: center !important;
        column-gap: 18px !important;
    }

    html.aestf-touch .studio-project-card__body > span .aestf-premium-arrow-icon {
        width: 17px !important;
        height: 17px !important;
        margin: 0 0 0 auto !important;
    }

    html.aestf-touch .project-preview__arrow {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        border-width: 1px !important;
        transform: none !important;
    }

    html.aestf-touch .project-preview__arrow .aestf-premium-arrow-icon {
        width: 18px !important;
        height: 18px !important;
    }

    html.aestf-touch .studio-case-next a,
    html.aestf-touch .case-next a {
        width: 72px !important;
        height: 72px !important;
        min-width: 72px !important;
        min-height: 72px !important;
        flex: 0 0 72px !important;
        aspect-ratio: 1 !important;
        padding: 0 !important;
        border: 1px solid rgba(255,255,255,.38) !important;
        border-radius: 50% !important;
        background: transparent !important;
        color: #fff !important;
        transform: none !important;
        font-size: 0 !important;
        line-height: 0 !important;
        box-shadow: none !important;
    }

    html.aestf-touch .studio-case-next a .aestf-premium-arrow-icon,
    html.aestf-touch .case-next a .aestf-premium-arrow-icon {
        width: 25px !important;
        height: 25px !important;
        margin: 0 !important;
    }
}

@media (max-width: 430px) {
    html.aestf-touch .studio-case-next a,
    html.aestf-touch .case-next a {
        width: 68px !important;
        height: 68px !important;
        min-width: 68px !important;
        min-height: 68px !important;
        flex-basis: 68px !important;
    }

    html.aestf-touch .studio-case-next a .aestf-premium-arrow-icon,
    html.aestf-touch .case-next a .aestf-premium-arrow-icon {
        width: 23px !important;
        height: 23px !important;
    }
}
