@media (max-width: 1440px) {
}

@media (max-width: 1199.98px) {
    .site-nav__link {
        padding: 0 0.7rem;
        font-size: 0.86rem;
    }

    .home-banner__person {
        width: min(100%, 360px);
        margin-right: clamp(2rem, 8vw, 6rem);
    }

    .home-banner__dashboard {
        width: min(82%, 430px);
    }

    .home-banner__inquiry {
        grid-template-columns: 1fr 1fr;
        width: 100%;
        max-width: 820px;
        border-radius: 28px;
        padding: 0.85rem;
        gap: 0.55rem;
    }

    .home-banner__field:nth-child(odd)::before,
    .home-banner__field:nth-child(even)::before {
        display: none;
    }

    .home-banner__field {
        min-height: 54px;
        padding: 0 1rem;
        border-radius: 16px;
        background: #f5f7fb;
    }

    .home-banner__field + .home-banner__field::before {
        display: none;
    }

    .home-banner__submit {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 54px;
        border-radius: 16px;
    }

    .services-overview__content h2 {
        font-size: clamp(2rem, 4vw, 2.75rem);
        line-height: 1.08;
    }

    .results-summary__heading h2 {
        font-size: clamp(2rem, 4vw, 3rem);
        line-height: 1.08;
    }

    .automation-slide__content h3 {
        font-size: clamp(2rem, 4vw, 3rem);
        line-height: 1.08;
    }

    .work-showcase__heading h2,
    .case-studies__heading h2,
    .faq-section__heading h2,
    .contact-section__intro h2 {
        font-size: clamp(2rem, 4vw, 3rem);
        line-height: 1.08;
    }
}

@media (max-width: 991.98px) {
    .site-header {
        z-index: 60;
    }

    .site-header.is-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 55;
    }

    .site-header__toggle {
        display: inline-flex;
        position: relative;
        z-index: 62;
    }

    .site-header__logo {
        position: relative;
        z-index: 62;
    }

    .site-header__right {
        position: fixed;
        inset: 0 0 0 auto;
        top: 0;
        right: 0;
        z-index: 61;
        width: min(100%, 320px);
        height: 100vh;
        height: 100dvh;
        padding: 5.25rem 1.25rem 1.5rem;
        background: var(--er-navy-deep);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        transform: translateX(105%);
        transition: transform 0.3s ease;
        box-shadow: -20px 0 50px rgba(0, 0, 0, 0.35);
        overflow-y: auto;
    }

    .site-header.is-open .site-header__right {
        transform: translateX(0);
    }

    .site-nav {
        position: static;
        transform: none;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        flex: 1 1 auto;
        background: transparent;
        border-radius: 0;
        padding: 0;
        gap: 0.35rem;
        box-shadow: none;
    }

    .site-nav__item {
        width: 100%;
    }

    .site-nav__link {
        width: 100%;
        justify-content: space-between;
        min-height: 50px;
        padding: 0 1rem;
        border-radius: 12px;
        color: rgba(255, 255, 255, 0.92);
        font-size: 0.95rem;
        white-space: normal;
    }

    .site-nav__link:hover,
    .site-nav__link.is-active,
    .site-nav a.is-active {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }

    .site-nav__link i {
        color: rgba(255, 255, 255, 0.65);
        opacity: 1;
    }

    .site-nav__dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 12px;
        margin: 0.15rem 0 0.35rem;
        padding: 0.35rem;
    }

    .site-nav__dropdown a {
        color: rgba(255, 255, 255, 0.82);
        font-size: 0.88rem;
        padding: 0.65rem 0.85rem;
    }

    .site-nav__dropdown a:hover,
    .site-nav__dropdown a.is-active {
        background: rgba(255, 255, 255, 0.08);
        color: var(--er-orange);
    }

    .site-nav__item--dropdown.is-open .site-nav__dropdown {
        display: grid;
        gap: 0.15rem;
    }

    .site-header__actions {
        flex-shrink: 0;
        margin-top: auto;
        padding-top: 1.5rem;
    }

    .site-header__cta {
        width: 100%;
        min-height: 48px;
    }

    .home-banner {
        min-height: auto;
        padding-bottom: 3.5rem;
    }

    .home-banner__grid {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 1.5rem;
    }

    .home-banner__copy {
        max-width: 640px;
        padding-bottom: 0;
        text-align: left;
    }

    .home-banner__visual {
        min-height: 360px;
        justify-content: center;
        max-width: 560px;
        margin-inline: auto;
        width: 100%;
    }

    .home-banner__person {
        left: 8%;
        bottom: 0;
        margin-right: 4.5rem;
        margin-bottom: 0;
        width: min(70%, 320px);
    }

    .home-banner__dashboard {
        width: min(72%, 360px);
        right: 0;
        top: 48%;
    }

    .home-banner__inquiry {
        grid-template-columns: 1fr;
        border-radius: 28px;
        padding: 0.85rem;
        gap: 0.55rem;
    }

    .home-banner__field {
        min-height: 54px;
        padding: 0 1rem;
        border-radius: 16px;
        background: #f5f7fb;
    }

    .home-banner__field + .home-banner__field::before {
        display: none;
    }

    .home-banner__submit {
        width: 100%;
        min-height: 54px;
        border-radius: 16px;
    }

    .index-sec3 {
        padding: 3.75rem 0;
    }

    .services-overview {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .services-overview__content {
        max-width: 600px;
    }

    .services-overview__content h2 br {
        display: none;
    }

    .services-grid {
        max-width: 640px;
        margin-inline: auto;
    }

    .index-service3 .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }

    .results-summary__stats {
        grid-template-columns: 1fr;
        max-width: 430px;
    }

    .results-stat + .results-stat {
        border-top: 1px solid rgba(255, 255, 255, 0.45);
    }

    .results-ratings {
        gap: 1.25rem;
        max-width: 560px;
    }

    .automation-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        min-height: 0;
        padding-bottom: 1rem;
    }

    .automation-slide__content {
        max-width: 620px;
        margin-inline: auto;
        padding: 0;
        text-align: center;
    }

    .automation-image-slider {
        width: 100%;
        max-width: 480px;
        margin-inline: auto;
    }

    .automation-image-stack {
        height: 440px;
    }

    .automation-image-slide {
        width: 270px;
        left: 50%;
        bottom: 0;
        margin-left: -150px;
    }

    .automation-image-slide img {
        height: auto;
    }

    .automation-image-slide.stack-position-0 {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    .automation-image-slide.stack-position-1 {
        transform: translate(28px, 0) rotate(5deg) scale(0.98);
    }

    .automation-image-slide.stack-position-2 {
        transform: translate(52px, 0) rotate(9deg) scale(0.96);
    }

    .automation-image-slide.stack-position-3 {
        transform: translate(74px, 0) rotate(12deg) scale(0.94);
    }

    .automation-image-slide.stack-position-4 {
        transform: translate(94px, 0) rotate(15deg) scale(0.92);
    }

    .work-phone-slide img {
        height: 360px;
    }

    .case-study-slide {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .case-study-slide__visual {
        width: min(100%, 430px);
        max-width: 100%;
    }

    .case-study-slide__visual img {
        position: static;
        left: auto;
        top: auto;
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .case-study-slide__content {
        max-width: 620px;
        margin-inline: auto;
        padding: 0;
    }

    .platform-integrations {
        gap: 1.5rem;
    }

    .platform-integrations h2 {
        width: 280px;
        font-size: 1.4rem;
    }

    .platform-integrations__logos img {
        width: 110px;
    }

    .process-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .index-service7__inner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        text-align: center;
        padding-bottom: 0;
    }

    .index-service7__copy {
        max-width: 640px;
        margin-inline: auto;
    }

    .index-service7__copy p {
        margin-inline: auto;
    }

    .index-service7__visual {
        margin-top: 0;
        margin-bottom: 0;
    }

    .index-service7__visual img {
        margin-inline: auto;
        width: min(100%, 480px);
    }

    .process-section__content {
        max-width: 620px;
        margin: 0 auto;
        width: 100%;
    }

    .process-section__screens {
        width: min(100%, 650px);
        margin: 0 auto;
    }

    .faq-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .faq-section__certifications {
        display: flex;
        justify-content: center;
        gap: 4rem;
    }

    .contact-section {
        grid-template-columns: 1fr;
        gap: 2.75rem;
    }

    .contact-section__intro > p {
        max-width: 560px;
    }

    .site-footer__top {
        grid-template-columns: 180px 1fr;
        gap: 2rem;
    }

    .site-footer__columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .site-footer__col:not(:last-child)::after {
        display: none;
    }

    .site-footer__col {
        padding: 0;
    }
}

@media (max-width: 767.98px) {
    .home-banner__inner {
        padding-top: 4.5rem;
    }

    .home-banner__text {
        max-width: none;
    }

    .results-summary__stats {
        max-width: 100%;
    }

    .results-ratings {
        grid-template-columns: 1fr 1fr;
        max-width: 430px;
        text-align: center;
    }

    .rating-brand {
        text-align: center;
    }

    .rating-brand strong {
        justify-content: center;
    }

    .automation-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 2.5rem;
    }

    .automation-slide__content {
        max-width: 540px;
        padding: 0;
        text-align: center;
    }

    .automation-image-slider {
        max-width: min(100%, 420px);
        overflow: visible;
    }

    .automation-image-stack {
        height: 380px;
    }

    .automation-image-slide {
        width: 230px;
        bottom: 0;
        margin-left: -130px;
    }

    .automation-image-slide.stack-position-1 {
        transform: translate(22px, 0) rotate(4deg) scale(0.98);
    }

    .automation-image-slide.stack-position-2 {
        transform: translate(42px, 0) rotate(8deg) scale(0.96);
    }

    .automation-image-slide.stack-position-3 {
        transform: translate(60px, 0) rotate(11deg) scale(0.94);
    }

    .automation-image-slide.stack-position-4 {
        transform: translate(76px, 0) rotate(14deg) scale(0.92);
    }

    .case-study-slide {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .case-study-slide__visual {
        width: min(100%, 430px);
        max-width: 100%;
    }

    .case-study-slide__visual img {
        position: static;
        left: auto;
        top: auto;
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .case-study-slide__content {
        max-width: 600px;
        margin: 0 auto;
        padding: 0;
    }

    .platform-integrations {
        flex-direction: column;
        text-align: center;
    }

    .platform-integrations h2 {
        width: auto;
    }

    .process-section__screens {
        min-height: 400px;
        top: 0;
    }

    .process-screen {
        width: min(92%, 420px);
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-inline: 0.75rem;
    }

    .site-header {
        padding-top: 0.9rem;
    }

    .home-banner__title {
        font-size: 32px;
        line-height: 36px;
    }

    .home-banner__eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.12em;
    }

    .home-banner__visual {
        min-height: 280px;
    }

    .home-banner__person {
        left: 0;
        margin-right: 3rem;
        width: min(68%, 250px);
    }

    .home-banner__dashboard {
        width: min(78%, 280px);
    }

    .index-sec2 {
        padding: 1.5rem 0;
    }

    .brand-slider__item {
        height: 58px;
        padding: 0 1rem;
    }

    .index-sec3 {
        padding: 3rem 0;
    }

    .services-overview__content h2 {
        font-size: clamp(1.75rem, 8vw, 2rem);
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .index-service3 .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 205px;
    }

    .results-summary {
        padding: 2.5rem 0 2.8rem;
    }

    .results-summary__heading h2 {
        font-size: clamp(1.75rem, 8vw, 2rem);
    }

    .results-showcase {
        padding-top: 3.25rem;
        min-height: 0;
    }

    .results-ratings {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 280px;
    }

    .results-ratings img {
        height: auto;
        max-height: 58px;
    }

    .rating-brand strong {
        font-size: 1.25rem;
    }

    .rating-score__stars {
        font-size: 1rem;
    }

    .automation-slide__content h3 {
        font-size: clamp(1.75rem, 8vw, 2.35rem);
    }

    .automation-image-stack {
        height: 320px;
    }

    .automation-image-slide {
        width: 200px;
        bottom: 0;
        margin-left: -110px;
    }

    .automation-image-slide.stack-position-1 {
        transform: translate(18px, 0) rotate(4deg) scale(0.98);
    }

    .automation-image-slide.stack-position-2 {
        transform: translate(34px, 0) rotate(7deg) scale(0.96);
    }

    .automation-image-slide.stack-position-3 {
        transform: translate(48px, 0) rotate(10deg) scale(0.94);
    }

    .automation-image-slide.stack-position-4 {
        transform: translate(60px, 0) rotate(13deg) scale(0.92);
    }

    .index-sec5 {
        padding: 3.25rem 0 2.5rem;
    }

    .work-showcase__heading {
        margin-bottom: 2rem;
    }

    .work-showcase__heading h2 {
        font-size: clamp(1.75rem, 8vw, 2rem);
    }

    .work-showcase__heading p {
        margin-bottom: 2rem;
    }

    .work-phone-slide {
        padding: 0 0.5rem;
    }

    .work-phone-slide img {
        height: clamp(240px, 62vw, 300px);
    }

    .index-sec6 {
        padding: 3rem 0 2.5rem;
    }

    .case-studies__heading h2 {
        font-size: clamp(1.75rem, 8vw, 2rem);
    }

    .case-studies__ai-links {
        gap: 0.6rem;
    }

    .case-studies__ai-links a {
        min-height: 36px;
        padding: 0 0.9rem;
        font-size: 0.7rem;
    }

    .case-study-slide__visual {
        width: 100%;
        height: auto;
    }

    .case-study-slide__visual img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .case-study-slide__content h3 {
        font-size: 1.45rem;
    }

    .index-sec7 {
        padding: 2.5rem 0;
    }

    .platform-integrations__logos {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }

    .platform-integrations__logos img {
        width: min(100%, 125px);
        height: 58px;
        margin-inline: auto;
    }

    .index-sec8 {
        padding: 3.5rem 0;
    }

    .process-section__heading h2 {
        font-size: clamp(1.75rem, 8vw, 2rem);
    }

    .index-service4 .process-section__heading h2 {
        font-size: 32px;
        line-height: 36px;
    }

    .compare-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-inline: auto;
    }

    .index-service7__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        padding-top: 3rem;
        padding-bottom: 0;
    }

    .index-service7__copy {
        max-width: 640px;
        margin-inline: auto;
    }

    .index-service7__copy p {
        max-width: 560px;
        margin-inline: auto;
    }

    .index-service7__visual {
        margin-top: 0;
        margin-bottom: 0;
    }

    .index-service7__visual img {
        margin-inline: auto;
        width: min(100%, 420px);
    }

    .index-service7__copy h2 {
        font-size: 32px;
        line-height: 36px;
    }

    .process-card {
        grid-template-columns: 38% 62%;
        min-height: 108px;
        padding: 0.75rem 0.85rem;
    }

    .process-card__details {
        padding-left: 0.85rem;
    }

    .process-card__intro > img {
        width: 38px;
        height: 38px;
    }

    .process-section__screens {
        min-height: 260px;
    }

    .process-screen {
        width: min(88%, 300px);
        max-width: 88%;
    }

    .process-screen--two {
        top: 75px;
    }

    .index-sec9 {
        padding: 3.5rem 0;
    }

    .faq-section__heading h2 {
        font-size: clamp(1.75rem, 8vw, 2rem);
    }

    .faq-item summary {
        padding-right: 2rem;
        font-size: 0.95rem;
    }

    .faq-section__certifications {
        gap: 2rem;
    }

    .faq-section__certifications img {
        width: 100px;
        height: 100px;
    }

    .index-sec10 {
        padding: 3.25rem 0 3.75rem;
    }

    .contact-section__intro h2 {
        font-size: clamp(1.75rem, 8vw, 2rem);
    }

    .contact-form__row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .contact-form__submit {
        flex: 1 1 auto;
    }

    .site-footer {
        padding-top: 3rem;
    }

    .site-footer__top {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        text-align: center;
    }

    .site-footer__logo img {
        margin: 0 auto;
    }

    .site-footer__intro {
        text-align: center;
    }

    .site-footer__intro p,
    .site-footer__badges {
        margin-left: auto;
        margin-right: auto;
    }

    .site-footer__columns {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .site-footer__col {
        padding: 0;
    }

    .site-footer__col:not(:last-child)::after {
        display: none;
    }

    .site-footer__col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .site-footer__contact li {
        justify-content: center;
    }

    .site-footer__payment {
        margin: 0 auto;
    }

    .site-footer__inner {
        padding-bottom: 5.5rem;
    }
}

@media (max-width: 399.98px) {
    .home-banner__person {
        width: min(62%, 210px);
        margin-right: 2rem;
    }

    .home-banner__dashboard {
        width: min(72%, 230px);
    }

    .case-studies__ai-links a {
        width: 100%;
        justify-content: center;
    }

    .contact-section__services span {
        font-size: 0.75rem;
    }
}

/* Consultation modal + thank you */
@media (max-width: 991px) {
    .get-started-modal__content {
        grid-template-columns: 1fr;
    }

    .get-started-modal__aside {
        padding: 2rem 1.5rem 1.5rem;
    }

    .get-started-modal__aside-title {
        font-size: 1.35rem;
    }

    .get-started-modal__main {
        padding: 1.5rem 1.5rem 1.75rem;
    }

    .get-started-modal__close {
        top: 0.85rem;
        right: 0.85rem;
    }
}

@media (max-width: 575px) {
    .get-started-modal .modal-dialog {
        margin: 0.75rem;
    }

    .get-started-modal__content {
        border-radius: 18px;
    }

    .get-started-modal__title {
        font-size: 1.35rem;
    }

    .thankyou-card {
        padding: 2rem 1.25rem 1.75rem;
        border-radius: 18px;
    }

    .thankyou-card__actions {
        flex-direction: column;
    }

    .thankyou-card__btn {
        width: 100%;
    }

    .thankyou-hero__inner {
        min-height: calc(100vh - 260px);
    }
}
