/* ============================================================
   VTI Service (AI) — module base.
   Builds on vti-home's stylesheet (loaded as a dependency): every section root
   carries `vti-home` for its tokens (--vh-*), theme resets and shared atoms
   (__wrap, __head, __title, __eyebrow, __lead, __linkbtn).
   Only what vti-home lacks lives here, plus the page tweaks of the reused
   vti-home / vti-service-pillar sections.
   ============================================================ */

.vsa {
    --vsa-ink: #18181b;
    --vsa-zinc: #52525b;
    --vsa-soft-bg: linear-gradient(137deg, #fcfdff 0%, #f1f7ff 67.791%);

    padding-block: var(--vh-pad);
}

/* Preview `.section > .container`: head and body stacked 64px apart. */
.vsa__inner {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

/* Section heads are VtiHomeHead (drag-and-drop) or the same markup printed from
   the section options. A single column spans the row (preview `.sec-intro`). */
.vsa .vti-home__wrap > .vti-home__head > :only-child {
    flex: 1 1 auto;
}

/* Centred heads (Actions, Solutions by default, or a head set to Stacked,
   centered): the columns span the row so the title wraps at its 800px cap. */
.vsa .vti-home__wrap > .vti-home__head--center > div {
    align-self: stretch;
}

/* Lead of a centred head (option or Section head lead) wraps at the title's 800px. */
.vsa .vti-home__head--center .vti-home__lead {
    max-width: 800px;
}

/* Decorative layer behind the content: clipped here, not on the section, so
   position: sticky inside the section keeps working. */
.vsa__stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Preview "BG Shape": a blurred circle on the 1920px design stage. A radial
   gradient gives the same soft edge without a filter repaint.
   Each section positions it with --vsa-x / --vsa-y / --vsa-size / --vsa-blob. */
.vsa__blob {
    position: absolute;
    top: var(--vsa-y, 0);
    left: calc(50% - 960px + var(--vsa-x, 0px));
    width: var(--vsa-size, 300px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--vsa-blob, rgba(45, 178, 255, .1)) 55%, transparent);
}

/* Content sits above the stage. */
.vsa > .vti-home__wrap {
    z-index: 1;
}

@media (max-width: 699px) {
    .vsa__inner {
        gap: 40px;
    }

    /* Mobile frame left-aligns the centred Actions / Solutions heads. */
    :is(.vsa-actions__inner, .vsa-solutions__inner) > .vti-home__head--center,
    :is(.vsa-actions__inner, .vsa-solutions__inner) > .vti-home__head--center > div {
        align-items: flex-start;
        text-align: left;
    }

    :is(.vsa-actions__inner, .vsa-solutions__inner) > .vti-home__head--center .vti-home__eyebrow {
        align-self: flex-start;
    }

    /* Mobile layout "Slider (swipe)" (option mobile_layout of Actions, Solutions,
       Why), like the case studies: a native swipe row bleeding into the 20px
       margins, each card snapping to the left edge with the next one peeking in.
       Every card is as tall as the tallest (flex stretch). */
    .vsa--mobile-slider .vsa-slider__viewport,
    .vsa--mobile-slider .vsa-solutions__stack {
        margin-inline: -20px;
        padding-inline: 20px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 20px;
        scrollbar-width: none;
    }

    .vsa--mobile-slider .vsa-slider__viewport::-webkit-scrollbar,
    .vsa--mobile-slider .vsa-solutions__stack::-webkit-scrollbar {
        display: none;
    }

    .vsa--mobile-slider .vsa-slider__track,
    .vsa--mobile-slider .vsa-solutions__stack {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 16px;
    }

    .vsa--mobile-slider .vsa-slider__card,
    .vsa--mobile-slider .vsa-solutions__card {
        flex: 0 0 calc(100% - 32px);
        scroll-snap-align: start;
    }
}

/* ---------- reused sections (via their `class` option) ----------
   Doubled/tripled classes beat the owning module's rules regardless of file
   order; vti-home.css and vti-service-pillar.css stay untouched. */

/* Hero (VtiSvpHero demo="2"): this page's art sits further right on the 1920px stage. */
.vsp-hero.vsa-hero .vsp-hero__bg {
    left: calc(50% - 960px + 337px);
    top: -19px;
    width: 1583px;
    height: 719px;
}

/* Industries: the centred lead wraps at 800px like the preview's .sec-head--center. */
.vsa-industries .vti-home__head--center .vti-home__lead {
    max-width: 800px;
}

/* Tech stack: the case studies above supply the top gap, the section pads its bottom. */
.vti-home.vsp-tech.vsa-tech {
    padding: 0 0 var(--vh-pad);
}

/* Cases and insights follow tinted sections, so they need their own top padding. */
.vti-home-cases.vsa-cases,
.vti-home-insights.vsa-insights {
    padding-top: var(--vh-pad);
}

@media (min-width: 700px) and (max-width: 1099px) {
    /* Three tabs share the strip evenly (the pillar page sizes them to their labels). */
    .vsa-tech.vsp-tech .vsp-tech__body {
        grid-template-columns: repeat(var(--vsp-tech-n, 3), minmax(0, 1fr));
    }
}

@media (max-width: 1099px) {
    .vsp-hero.vsa-hero .vsp-hero__bg {
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 699px) {
    /* Mobile frame 2968:48138 keeps a 20px side margin (--grid/margin); vti-home uses 24px. */
    :is(.vsa, .vsa-hero, .vsa-services, .vsa-industries, .vsa-cases, .vsa-tech, .vsa-insights, .vsa-cta) .vti-home__wrap {
        width: calc(100% - 40px);
    }

    /* Mobile frame 2968:48139: 500px hero, art raised 14px, H4-sized title. */
    .vsp-hero.vsa-hero {
        min-height: 500px;
    }

    .vsp-hero.vsa-hero .vsp-hero__bg {
        left: 50%;
        top: -14px;
        width: 1162px;
        height: 528px;
    }

    .vsp-hero.vsa-hero .vsp-hero__title {
        font-size: 24px;
        line-height: 32px;
    }

    /* The lead's line break is the desktop design's. */
    .vsp-hero.vsa-hero .vsp-hero__lead br {
        display: none;
    }

    /* Industries (2968:48215): no lead, plain text tabs 20px apart. */
    .vsa-industries .vti-home__head--center .vti-home__lead {
        display: none;
    }

    .vsa-industries .vti-home-industries__body {
        column-gap: 20px;
    }

    .vsa-industries .vti-home-industries__tab {
        padding: 0;
        font-weight: 400;
    }

    .vsa-industries .vti-home-industries__tab[aria-expanded="true"] {
        font-weight: 500;
    }

    .vsa-industries .vti-home-industries__panel {
        gap: 20px;
    }

    /* Media -> logos 16px (panel gap 20 - 4). */
    .vsa-industries .vti-home-industries__media {
        height: 129px;
        margin-bottom: -4px;
        border-radius: 8px;
        aspect-ratio: auto;
    }

    .vsa-industries .vti-home-industries__heading {
        margin: 0;
        font-size: 20px;
        line-height: 28px;
    }

    .vsa-industries .vti-home-industries__list {
        gap: 8px;
    }

    /* Cases (2968:48317, stacked via mobile_layout="stack"): full-bleed media, full description. */
    .vsa-cases .vti-home-cases__media,
    .vsa-cases .vti-home-cases__card.is-open .vti-home-cases__media {
        border-radius: 8px;
    }

    .vsa-cases .vti-home-cases__frame {
        width: 255px;
        padding: 6px 4.67px;
    }

    .vsa-cases .vti-home-cases__screen {
        height: 170px;
        border-radius: 4px 4px 0 0;
    }

    .vsa-cases .vti-home-cases__info {
        gap: 12px;
        padding: 12px 8px 0;
    }

    .vsa-cases .vti-home-cases__title {
        font-size: 20px;
        line-height: 28px;
        letter-spacing: 0;
    }

    .vsa-cases .vti-home-cases__desc {
        letter-spacing: 0;
    }

    /* CTA (2968:48560): one photo layer, box inside the 20px margin, H4 title. */
    .vti-home-cta.vsa-cta .vti-home-cta__box {
        margin-inline: 0;
        padding: 40px 20px;
    }

    .vti-home-cta.vsa-cta .vti-home-cta__wash,
    .vti-home-cta.vsa-cta .vti-home-cta__overlay,
    .vti-home-cta.vsa-cta .vti-home-cta__tint {
        display: none;
    }

    .vti-home-cta.vsa-cta .vti-home-cta__copy {
        gap: 16px;
    }

    .vti-home-cta.vsa-cta .vti-home-cta__title {
        font-size: 24px;
        line-height: 32px;
        letter-spacing: -1px;
        color: var(--vh-text);
    }

    .vti-home-cta.vsa-cta .vti-home-cta__text {
        color: var(--vh-muted);
    }

    .vti-home-cta.vsa-cta .vti-home-cta__formcard {
        gap: 20px;
        padding: 40px 16px;
    }

    .vti-home-cta.vsa-cta .vti-home-cta__formcard-title {
        color: var(--vh-text);
    }

    .vti-home-cta.vsa-cta .vti-home-cta__form .wpcf7-form .wpcf7-submit {
        min-height: 44px;
        padding: 10px 16px;
    }
}
/* Section: actions */

.vsa-actions {
    background: linear-gradient(137.43deg, #fcfdff 0%, #f1f7ff 67.791%);
}

.vsa-actions__blob--left {
    --vsa-x: 51px;
    --vsa-y: 225.96px;
    --vsa-size: 310.61px;
    --vsa-blob: rgba(45, 178, 255, .1);
}

.vsa-actions__blob--right {
    --vsa-x: 1460px;
    --vsa-y: 389px;
    --vsa-size: 400.8px;
    --vsa-blob: rgba(35, 101, 255, .1);
}

/* Card slider shared by AI in action and Why VTI (js/vti-service-ai.js): a
   clipped viewport over a flex row the script translates. */
.vsa-slider {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.vsa-slider__viewport {
    overflow: hidden;
}

/* JS sets --vsa-slider-x in px (card width + gap times the index). */
.vsa-slider__track {
    display: flex;
    gap: 24px;
    transform: translateX(var(--vsa-slider-x, 0px));
    transition: transform .3s ease-in-out;
}

/* Hidden while every card fits (no sliding): set by the server, then by JS per breakpoint. */
.vsa-slider__pager[hidden] {
    display: none;
}

/* No backdrop-filter (preview has blur(20px)): the card moves with the track, and
   a blur on moving items repaints every frame. A flat rgba keeps the look. */
.vsa-actions__card {
    --vsa-tag-color: var(--vh-muted);
    --vsa-tag-bg: var(--vh-line-soft);

    position: relative;
    /* Figma: three 464px cards + two 24px gaps fill the 1440 container exactly,
       so the card is a third of the viewport and no card is ever half cut off. */
    flex: 0 0 calc((100% - 48px) / 3);
    /* A third in % lands 0.02px short (463.98); whole pixels where round() is supported.
       Rounding up may push the third card's right edge up to 1px past the viewport. */
    flex-basis: round((100% - 48px) / 3, 1px);
    min-height: 406px;
    padding: 48px 32px;
    /* Clips the glow at the border edge, not the padding edge like overflow: hidden,
       which would cut off the hover stroke drawn over the border (::before). */
    clip-path: inset(0 round 12px);
    display: flex;
    flex-direction: column;
    gap: 24px;
    border: 1px solid var(--vh-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .7);
}

/* Hover state: gradient stroke (::before) and top-left glow (::after). */
.vsa-actions__card::before,
.vsa-actions__card::after {
    content: "";
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease-in-out;
}

.vsa-actions__card::before {
    inset: -1px;
    padding: 1px;
    border-radius: inherit;
    /* Figma Card State=Hover: darkest bottom right, lightest top left. */
    background: linear-gradient(315deg, #1947ff, #429aff);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.vsa-actions__card::after {
    left: -60px;
    top: -150px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(7, 106, 210, .1), rgba(7, 106, 210, 0));
}

/* Keyboard users get the hover look when anything inside the card has focus.
   The card only lights its frame; a chip changes colour only when it is the one
   pointed at (or focused, when it is a link). On touch screens a tap sets
   .is-active instead (js/vti-service-ai.js). */
.vsa-actions__card:focus-within::before,
.vsa-actions__card:focus-within::after,
.vsa-actions__card.is-active::before,
.vsa-actions__card.is-active::after {
    opacity: 1;
}

.vsa-actions__tag:focus-within,
.vsa-actions__tag.is-active {
    --vsa-tag-color: var(--vh-brand);
    --vsa-tag-bg: var(--vh-soft);
}

@media (hover: hover) {
    .vsa-actions__card:hover::before,
    .vsa-actions__card:hover::after {
        opacity: 1;
    }

    .vsa-actions__tag:hover {
        --vsa-tag-color: var(--vh-brand);
        --vsa-tag-bg: var(--vh-soft);
    }
}

/* Content above the ::before/::after layers. */
.vsa-actions__card > * {
    position: relative;
}

.vsa-actions__card-title {
    margin-bottom: -8px;
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    white-space: nowrap;
}

.vsa-actions__card-text {
    font-size: 16px;
    line-height: 24px;
    color: var(--vh-muted);
}

.vsa-actions__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.vsa-actions__tag {
    height: 32px;
    padding: 5px 11px;
    border: 1px solid var(--vh-line-soft);
    border-radius: 9999px;
    background: var(--vsa-tag-bg);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--vsa-tag-color);
    white-space: nowrap;
    transition: color .2s ease-in-out, background-color .3s ease-in-out;
}

/* Linked chip (`Tag | link` in the tags option): the whole pill is the link. */
.vsa-actions__tag-link {
    display: block;
    margin: -5px -11px;
    padding: 5px 11px;
    border-radius: inherit;
    color: inherit;
    text-decoration: none;
}

.vsa-actions__tag-link:hover {
    color: inherit;
}

.vsa-actions__tag-link:focus-visible {
    outline: 2px solid var(--vh-accent);
    outline-offset: 3px;
}

.vsa-slider__pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
}

.vsa-slider__count {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--vh-muted);
    white-space: nowrap;
}

.vsa-slider__count-value {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--vh-text);
}

.vsa-slider__bar {
    position: relative;
    flex: 1;
    height: 4px;
    border-radius: 24px;
    background: var(--vh-gray);
    overflow: hidden;
}

/* Full-width fill scaled by JS (--vsa-slider-p, 0..1): transform, not width, so the
   animation stays on the compositor. */
.vsa-slider__bar-fill {
    position: absolute;
    inset: 0;
    background: #4984ed;
    transform: scaleX(var(--vsa-slider-p, .6));
    transform-origin: left;
    transition: transform .3s ease-in-out;
}

.vsa-slider__nav {
    display: flex;
    gap: 8px;
}

.vsa-slider__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--vh-gray);
    border-radius: 9999px;
    background: #fff;
    cursor: pointer;
    transition: border-color .1s linear;
}

.vsa-slider__btn img {
    width: 20px;
    height: 20px;
}

.vsa-slider__btn:focus-visible {
    outline: 2px solid var(--vh-accent);
    outline-offset: 3px;
}

@media (hover: hover) {
    .vsa-slider__btn:hover {
        border-color: var(--vh-line-soft);
    }
}

/* tablet: two cards per view (no tablet frame in the design). */
@media (min-width: 700px) and (max-width: 1099px) {
    .vsa-actions__card {
        flex-basis: calc((100% - 24px) / 2);
    }

    .vsa-actions__card-title {
        white-space: normal;
    }
}

@media (max-width: 699px) {
    .vsa-actions {
        background: linear-gradient(95.95deg, #fcfdff 0%, #f1f7ff 67.791%);
    }

    .vsa-actions .vsa__stage {
        display: none;
    }

    .vsa-slider__viewport {
        overflow: visible;
    }

    .vsa-slider__track {
        flex-direction: column;
        gap: 20px;
        transform: none;
    }

    /* Mobile frame 3245:250243: blue-tinted chips, grey text. */
    .vsa-actions__card {
        --vsa-tag-bg: var(--vh-soft);

        flex: none;
        min-height: 0;
        padding: 16px 20px;
        border-radius: 8px;
        clip-path: inset(0 round 8px);
    }

    .vsa-actions__card-title {
        font-size: 20px;
        line-height: 28px;
        white-space: normal;
    }

    .vsa-actions__card-text {
        font-size: 14px;
        line-height: 20px;
    }

    .vsa-actions__tag {
        height: 24px;
        padding: 3px 9px;
        font-size: 12px;
        line-height: 16px;
    }

    .vsa-slider__pager {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vsa-slider__track,
    .vsa-slider__bar-fill,
    .vsa-actions__card::before,
    .vsa-actions__card::after,
    .vsa-actions__tag {
        transition: none;
    }
}
/* Section: process */
.vsa-process {
    /* Follows the industries section, which already pads its bottom. */
    padding-top: 0;
    padding-bottom: var(--vh-pad);
    --vsa-x: 162px;
    --vsa-y: 408px;
    --vsa-size: 263px;
    --vsa-blob: rgba(45, 178, 255, .1);
}

/* Head and photo stack on the left, the steps span both rows on the right. */
.vsa-process__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 707px;
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 64px 120px;
}

.vsa-process__media {
    height: 373px;
    border-radius: 8px;
    overflow: hidden;
}

/* Two columns: the photo keeps its height and sits at the foot of its row, level
   with the last step (the steps span both rows and set the height). */
@media (min-width: 1100px) {
    .vsa-process__media {
        align-self: end;
    }
}

/* The preview cropped the photo by hand; cover is the equivalent for any uploaded image. */
.vsa-process__img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
}

/* Steps sit 53.67px apart (Figma justify-between); the connector runs from
   12px under the icon to 12px above the next step. */
.vsa-process__steps {
    --vsa-step-gap: 53.67px;

    display: flex;
    grid-column: 2;
    grid-row: 1 / span 2;
    flex-direction: column;
    gap: var(--vsa-step-gap);
    margin: 0;
    padding: 20px 0 0;
    list-style: none;
}

.vsa-process__step {
    --vsa-icon: 56px;

    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 0;
    list-style: none;
}

/* Line joining this icon to the next one. */
.vsa-process__step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: calc(var(--vsa-icon) + 12px);
    bottom: calc(12px - var(--vsa-step-gap));
    left: calc(var(--vsa-icon) / 2 - 1px);
    width: 2px;
    background: #dee8ff;
}

/* Figma ghost icon button: soft fill, white on hover (100ms linear). */
.vsa-process__icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: var(--vsa-icon);
    height: var(--vsa-icon);
    border: 1px solid var(--vh-line-soft);
    border-radius: 9999px;
    background: var(--vh-soft);
    transition: background-color .1s linear;
}

@media (hover: hover) {
    .vsa-process__icon:hover {
        background: #fff;
    }
}

.vsa-process__icon-img {
    width: 20px;
    height: 20px;
}

.vsa-process__step-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.vsa-process__step-title {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    white-space: nowrap;
    color: var(--vh-text);
}

.vsa-process__step-text {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    color: var(--vh-muted);
}

/* Figma frame 3197:41039 (fixed 707px steps column): head + 373px photo set the
   height and the steps stretch to it, the spare room going between the steps
   (justify space-between, 40px at least). Taller steps leave the photo at 373px. */
@media (min-width: 1401px) {
    .vsa-process__inner > .vti-home__head .vti-home__title {
        align-self: stretch;
    }

    .vsa-process__steps {
        --vsa-step-gap: 40px;

        align-self: stretch;
    }

    /* The spare room joins each step but the last, so the connector spans it too. */
    .vsa-process__step:not(:last-child) {
        flex-grow: 1;
    }
}

/* Preview fallback: the fixed 707px column no longer fits next to the photo. */
@media (min-width: 1100px) and (max-width: 1400px) {
    /* Same split as the preview's flex 1 / flex 1 1 55% columns. */
    .vsa-process__inner {
        grid-template-columns: minmax(0, 1fr) calc(77.5% - 24px);
        column-gap: 48px;
    }

    .vsa-process__step-title {
        white-space: normal;
    }
}

@media (min-width: 700px) and (max-width: 1099px) {
    /* One column: head, photo, steps (head -> photo 64px as on desktop). */
    .vsa-process__inner {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        align-items: stretch;
        row-gap: 48px;
    }

    .vsa-process__inner > .vti-home__head {
        margin-bottom: 16px;
    }

    .vsa-process__steps {
        grid-column: auto;
        grid-row: auto;
    }

    .vsa-process__step-title {
        white-space: normal;
    }
}

@media (max-width: 699px) {
    .vsa-process .vsa__stage {
        display: none;
    }

    /* Mobile frame 2968:48216 sets the title on one line. */
    .vsa-process .vti-home__title br {
        display: none;
    }

    .vsa-process__inner {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        align-items: stretch;
        row-gap: 40px;
    }

    .vsa-process__steps {
        grid-column: auto;
        grid-row: auto;
    }

    .vsa-process__media {
        height: auto;
        aspect-ratio: 327 / 278;
    }

    /* 16px between steps; the connector fills the step's own height. */
    .vsa-process__steps {
        --vsa-step-gap: 16px;

        padding-top: 0;
    }

    .vsa-process__step:not(:last-child)::before {
        top: calc(var(--vsa-icon) + 4px);
        bottom: 0;
    }

    .vsa-process__step-title {
        font-size: 18px;
        line-height: 28px;
        white-space: normal;
    }

    .vsa-process__step-text {
        font-size: 14px;
        line-height: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vsa-process__icon {
        transition: none;
    }
}
/* Section: solutions */
.vsa-solutions {
    background: linear-gradient(123.02deg, #fcfdff 0%, #f1f7ff 67.791%);
}

/* Preview glow boxes on the 1920 stage (blurred #C2DAFF circles). */
.vsa-solutions__glow {
    --vsa-blob: rgba(194, 218, 255, .4);
}

.vsa-solutions__glow--1 {
    --vsa-x: -198px;
    --vsa-y: -138px;
    --vsa-size: 990px;
}

.vsa-solutions__glow--2 {
    --vsa-x: 1093px;
    --vsa-y: 102px;
    --vsa-size: 994px;
}

.vsa-solutions__glow--3 {
    --vsa-x: 252px;
    --vsa-y: 1158px;
    --vsa-size: 824px;
}

.vsa-solutions__stack {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.vsa-solutions__card {
    display: flex;
    gap: 20px;
    height: 540px;
    padding: 20px;
    border: 1px solid var(--vh-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .8);
    -webkit-backdrop-filter: blur(8.5px);
    backdrop-filter: blur(8.5px);
}

.vsa-solutions__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: 40px 32px;
}

.vsa-solutions__head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 586px;
    max-width: 100%;
}

.vsa-solutions__title {
    margin: 0;
    font-size: 36px;
    font-weight: 500;
    line-height: 44px;
    letter-spacing: -.5px;
    color: var(--vsa-ink);
}

.vsa-solutions__subtitle {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    color: var(--vsa-zinc);
}

.vsa-solutions__caps {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.vsa-solutions__label {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-transform: uppercase;
    color: #667085;
}

.vsa-solutions__list {
    display: flex;
    align-self: stretch;
    gap: 24px;
    margin: 0;
    padding: 0 16px 0 0;
    list-style: none;
}

.vsa-solutions__cap {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding-right: 16px;
    border-right: 1px solid var(--vh-gray);
}

.vsa-solutions__cap:last-child {
    border-right: 0;
}

.vsa-solutions__cap-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--vh-text);
}

.vsa-solutions__cap-text {
    font-size: 12px;
    line-height: 16px;
    color: var(--vsa-zinc);
}

.vsa-solutions__media {
    flex: none;
    width: 704px;
    height: 500px;
    overflow: hidden;
    border-radius: 20px;
}

.vsa-solutions__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Preview "Stacking Scroll – Project Cards": each card sticks 8px under the
   header (--vsa-header-h, measured by the script), 24px lower per card (--vsa-k),
   and the script scales/fades the covered one.
   No overflow on the section or its wrap: it would break position: sticky. */
@media (min-width: 1100px) {
    .vsa-solutions__card {
        position: sticky;
        top: calc(var(--vsa-header-h, 92px) + 8px + var(--vsa-k, 0) * 24px);
        transform-origin: 50% 0;
        transform: scale(var(--vsa-s, 1));
        opacity: var(--vsa-o, 1);
    }
}

@media (min-width: 700px) and (max-width: 1400px) {
    .vsa-solutions__media {
        width: 50%;
    }
}

@media (min-width: 700px) and (max-width: 1099px) {
    .vsa-solutions__card {
        flex-direction: column;
        height: auto;
    }

    .vsa-solutions__media {
        width: 100%;
        height: 360px;
    }
}

@media (max-width: 699px) {
    .vsa-solutions {
        background: linear-gradient(96.73deg, #fcfdff 0%, #f1f7ff 67.791%);
    }

    .vsa-solutions .vsa__stage {
        display: none;
    }

    .vsa-solutions__stack {
        gap: 40px;
    }

    .vsa-solutions__card {
        flex-direction: column;
        gap: 0;
        height: auto;
        padding: 0;
        overflow: hidden;
    }

    .vsa-solutions__body {
        justify-content: flex-start;
        gap: 20px;
        padding: 24px 20px;
    }

    .vsa-solutions__title {
        font-size: 24px;
        line-height: 32px;
        color: var(--vh-text);
    }

    .vsa-solutions__subtitle {
        font-size: 14px;
        line-height: 20px;
    }

    .vsa-solutions__label {
        display: none;
    }

    .vsa-solutions__list {
        flex-direction: column;
    }

    .vsa-solutions__cap {
        padding: 0 16px 16px 0;
        border-right: 0;
        border-bottom: 1px solid var(--vh-gray);
    }

    .vsa-solutions__cap:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .vsa-solutions__cap-title {
        font-size: 14px;
        line-height: 20px;
    }

    .vsa-solutions__media {
        width: 100%;
        height: 240px;
        border-radius: 0 0 12px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vsa-solutions__card {
        transform: none;
        opacity: 1;
    }
}
/* Section: why */

.vsa-why {
    background: linear-gradient(146.27deg, #fcfdff 0%, #f1f7ff 67.791%);
}

.vsa-why__blob--left {
    --vsa-x: -72px;
    --vsa-y: -102px;
    --vsa-size: 310.61px;
    --vsa-blob: rgba(45, 178, 255, .1);
}

.vsa-why__blob--right {
    --vsa-x: 1460px;
    --vsa-y: 389px;
    --vsa-size: 400.8px;
    --vsa-blob: rgba(35, 101, 255, .1);
}

/* The preview lead spans the full width, unlike the capped section heads. */
.vsa-why .vti-home__lead {
    max-width: none;
}

.vsa-why__slider {
    gap: 24px;
}

.vsa-why__grid {
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Four cards fill the row (fewer grow to fill it); from the fifth on the row
   slides like the Industry page's Why VTI. Stretch keeps every card as tall as
   the tallest. */
.vsa-why__card {
    flex: 1 0 calc((100% - 72px) / 4);
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 32px 24px 56px;
    text-align: center;
    border: 1px solid #fff;
    border-radius: 20px;
    background: rgba(255, 255, 255, .6);
}

.vsa-why__media {
    flex: none;
    width: 80px;
    height: 80px;
    margin: 20px 0;
    overflow: hidden;
}

/* Images are pre-cropped to the visible box, so they only need to fill it. */
.vsa-why__img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.vsa-why__card-title {
    margin: 0 0 -14px;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    color: var(--vsa-ink);
}

.vsa-why__card-text {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: var(--vsa-zinc);
}

/* The preview title is the plain (non-ink) colour at every width; beats
   vti-home's mobile #18181b. */
.vsa-why .vti-home__title {
    color: var(--vh-ink);
}

@media (min-width: 700px) and (max-width: 1099px) {
    /* Every card in a 2-column grid, rows as tall as the tallest card; no sliding. */
    .vsa-why__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 1fr;
        transform: none;
    }
}

@media (max-width: 699px) {
    .vsa-why {
        background: linear-gradient(98.1deg, #fcfdff 0%, #f1f7ff 67.791%);
    }

    /* Preview `.why > .container { gap: 64px }` beats the 40px of the shared mobile frame. */
    .vsa-why .vsa__inner {
        gap: 64px;
    }

    .vsa-why .vsa__stage {
        display: none;
    }

    /* Vertical list: every card as tall as the tallest. */
    .vsa-why__grid {
        display: grid;
        grid-auto-rows: 1fr;
    }

    .vsa-why__card {
        flex: none;
        padding: 32px 24px;
        border-radius: 12px;
    }

    .vsa-why__media {
        width: 120px;
        height: 120px;
        margin: 0;
        border-radius: 9.714px;
    }

    .vsa-why__card-title {
        font-size: 18px;
    }
}
