/* Homepage content blocks — services, apart, projects, mosaic */

@keyframes hs-rise {
    from {
        opacity: 0;
        transform: translate3d(0, 42px, 0) scale(0.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes hs-zoom {
    from {
        opacity: 0;
        transform: scale(1.08);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.js-reveal {
    opacity: 0;
}

.js-reveal.is-in {
    animation: hs-rise 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hs-block {
    padding: 36px 0;
}

.hs-wrap {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.hs-head {
    max-width: 720px;
    margin: 0 auto 22px;
    text-align: center;
}

.hs-head h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--ink, #07090f);
}

.hs-head p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

html.is-ar .hs-head h2 {
    letter-spacing: 0;
}

/* ---- why us -------------------------------------------------- */

.hs-why {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-block: 1px solid rgba(26, 114, 185, 0.08);
}

.hs-why::before {
    content: "";
    position: absolute;
    inset-inline-end: -8%;
    top: -20%;
    width: 42vw;
    height: 42vw;
    max-width: 520px;
    max-height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 114, 185, 0.1), transparent 68%);
    pointer-events: none;
}

.hs-why__top {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(28px, 4vw, 64px);
    align-items: end;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(26, 114, 185, 0.12);
}

.hs-why__intro h2 {
    margin: 0;
    max-width: 8ch;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.98;
    color: var(--ink, #07141f);
}

.hs-why__aside p {
    margin: 0 0 22px;
    font-size: 17px;
    line-height: 1.85;
    color: #5b7388;
}

.hs-why__cta {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(26, 114, 185, 0.22);
    color: var(--brand, #1a72b9);
    font-size: 14px;
    font-weight: 700;
    background: #fff;
}

.hs-why__cta:hover {
    background: var(--brand, #1a72b9);
    border-color: var(--brand, #1a72b9);
    color: #fff;
}

.hs-why__rail {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.hs-why__item {
    padding: 8px clamp(18px, 2vw, 28px);
    border-inline-start: 1px solid rgba(26, 114, 185, 0.12);
}

.hs-why__item:first-child {
    border-inline-start: 0;
    padding-inline-start: 0;
}

.hs-why__item:last-child {
    padding-inline-end: 0;
}

.hs-why__num {
    display: block;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--brand, #1a72b9);
}

.hs-why__item h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 750;
    line-height: 1.3;
    color: var(--ink, #07141f);
}

.hs-why__item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #5b7388;
}

html.is-ar .hs-why__intro h2,
html.is-ar .hs-why__item h3 {
    letter-spacing: 0;
}

/* ---- services ------------------------------------------------ */

.hs-services {
    background: #f3f6fa;
}

.hs-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.hs-service {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 16px 40px -28px rgba(15, 23, 42, 0.28);
}

.hs-service__media {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #eef3f8;
}

.hs-service__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: none;
    transition: transform 0.6s ease !important;
}

.hs-service__body {
    position: relative;
    z-index: 1;
    padding: 20px 22px 22px;
    background: #fff;
}

.hs-service__num {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    color: var(--brand);
}

.hs-service h3 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.35;
    color: #0f172a;
}

.hs-service p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hs-service:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px -28px rgba(15, 23, 42, 0.35);
}

.hs-service:hover img {
    transform: scale(1.03);
}

/* ---- what sets us apart -------------------------------------- */

.hs-apart {
    background: #fff;
}

.hs-apart-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.hs-apart-card {
    position: relative;
    padding: 28px 24px 26px;
    border-radius: 28px;
    background: #f6f8fb;
    border: 1px solid transparent;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, border-color 0.4s ease !important;
}

.hs-apart-card::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--brand-soft), var(--brand));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.45s ease;
}

.hs-apart-card__num {
    display: block;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--brand);
}

.hs-apart-card__icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px -18px rgba(15, 23, 42, 0.35);
}

.hs-apart-card__icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.hs-apart-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.hs-apart-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.hs-apart-card:hover {
    background: #fff;
    border-color: rgba(26, 114, 185, 0.16);
    box-shadow: 0 24px 50px -28px rgba(15, 23, 42, 0.28);
    transform: translateY(-6px);
}

.hs-apart-card:hover::before {
    transform: scaleY(1);
}

/* ---- projects / products ------------------------------------- */

.hs-projects {
    background: #f7f8fb;
}

.hs-product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.hs-product {
    padding: 28px 18px 24px;
    text-align: center;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 14px 36px -28px rgba(15, 23, 42, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease !important;
}

.hs-product__logo {
    height: 92px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.hs-product__logo img {
    width: auto;
    max-width: 78%;
    max-height: 64px;
    object-fit: contain;
}

.hs-product h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.hs-product p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.hs-product:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px -24px rgba(15, 23, 42, 0.3);
}

/* ---- our services modules ------------------------------------ */

.hs-modules {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 8% 0%, rgba(26, 114, 185, 0.12), transparent 58%),
        radial-gradient(760px 380px at 100% 100%, rgba(140, 196, 237, 0.22), transparent 52%),
        var(--paper, #f3f7fb);
    color: var(--text, #16324a);
}

.hs-modules .hs-head h2 {
    color: var(--ink, #07141f);
}

.hs-modules .hs-head p {
    color: var(--muted, #5b7388);
}

.hs-modules__toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 36px;
}

.hs-modules__tab {
    height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(26, 114, 185, 0.14);
    border-radius: 999px;
    background: #fff;
    color: var(--text, #16324a);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px -16px rgba(7, 20, 31, 0.4);
}

.hs-modules__tab:hover {
    border-color: var(--brand, #1a72b9);
    color: var(--brand, #1a72b9);
}

.hs-modules__tab.is-on {
    background: var(--brand, #1a72b9);
    border-color: var(--brand, #1a72b9);
    color: #fff;
    box-shadow: 0 14px 28px -16px rgba(26, 114, 185, 0.7);
}

.hs-modules__grid,
#faster-services-cards {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.hs-mod {
    position: relative;
    min-height: 176px;
    padding: 22px 20px 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(26, 114, 185, 0.1);
    box-shadow: 0 16px 36px -28px rgba(7, 20, 31, 0.4);
    visibility: visible !important;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease !important;
}

.hs-mod::before {
    content: "";
    position: absolute;
    inset-inline-end: -36px;
    top: -42px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 114, 185, 0.14), transparent 70%);
    pointer-events: none;
}

.hs-mod.is-off {
    display: none;
}

.hs-mod__icon {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, var(--brand-tint, #e8f3fb) 100%);
    border: 1px solid rgba(26, 114, 185, 0.12);
}

.hs-mod__icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.hs-mod h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink, #07141f);
}

.hs-mod:hover {
    transform: translateY(-7px);
    background: var(--brand, #1a72b9);
    border-color: var(--brand, #1a72b9);
    box-shadow: 0 24px 48px -20px rgba(26, 114, 185, 0.55);
}

.hs-mod:hover h3 {
    color: #fff;
}

.hs-mod:hover .hs-mod__icon {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
}

.hs-mod:hover .hs-mod__icon img {
    filter: brightness(0) invert(1);
}

html.is-ar .hs-mod h3 {
    letter-spacing: 0;
}

/* ---- logos: clients + trademarks (static grid) --------------- */

.hs-logos {
    background: #fff;
}

.hs-logos--brands {
    background: #f3f6fa;
}

.hs-logo-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.hs-logo {
    min-height: 110px;
    padding: 18px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #f6f8fb;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.hs-logos--brands .hs-logo {
    background: #fff;
}

.hs-logo img {
    width: auto;
    max-width: 100%;
    max-height: 52px;
    object-fit: contain;
    filter: none;
    opacity: 1;
}

html.is-ar .hs-apart-card h3,
html.is-ar .hs-service h3,
html.is-ar .hs-project__info h3 {
    letter-spacing: 0;
}

@media (max-width: 1100px) {
    .hs-why__top {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 20px;
    }

    .hs-why__intro h2 {
        max-width: none;
    }

    .hs-why__rail {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .hs-why__item,
    .hs-why__item:first-child,
    .hs-why__item:last-child {
        padding: 0;
        border: 0;
        padding-block: 4px 18px;
        border-bottom: 1px solid rgba(26, 114, 185, 0.1);
    }

    .hs-why__item:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .hs-logo-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hs-service-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hs-apart-grid,
    .hs-product-grid {
        grid-template-columns: 1fr 1fr;
    }

    #faster-services-cards,
    .hs-modules__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 760px) {
    .hs-modules__toolbar {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .hs-modules__tab {
        flex: 0 0 auto;
    }

    .hs-service-grid,
    .hs-apart-grid,
    .hs-product-grid,
    #faster-services-cards,
    .hs-modules__grid {
        grid-template-columns: 1fr;
    }

    #faster-services-cards,
    .hs-modules__grid,
    .hs-logo-grid,
    .hs-product-grid {
        grid-template-columns: 1fr 1fr;
    }
}
