:root {
    --twp-how-blue: #1769e0;
    --twp-how-violet: #6f5bd3;
    --twp-how-cyan: #12a8c7;
    --twp-how-orange: #f08a24;
    --twp-how-navy: #071426;
    --twp-how-muted: #617189;
    --twp-how-border: #dce5f1;
    --twp-how-soft: #f5f8fd;
}

/* =========================================================
   SECTION 05 — HOW WE WORK
   ========================================================= */

.twp-how-work {
    position: relative;
    overflow: hidden;
    padding: 110px 0 105px;
    background:
        radial-gradient(circle at 78% 18%, rgba(23,105,224,.07), transparent 27%),
        linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.twp-how-work::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -260px;
    top: 120px;
    border: 1px solid rgba(23,105,224,.07);
    border-radius: 50%;
}

.twp-how-work__container {
    width: min(calc(100% - 48px), 1240px);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.twp-how-work__header {
    max-width: 850px;
    margin: 0 auto 76px;
    text-align: center;
}

.twp-how-work__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 17px;
    border: 1px solid #d9e6fb;
    border-radius: 999px;
    background: #eef5ff;
    color: var(--twp-how-blue);
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .13em;
}

.twp-how-work__title {
    margin: 22px 0 16px;
    color: var(--twp-how-navy);
    font-size: clamp(38px, 4.5vw, 58px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.twp-how-work__title span {
    color: var(--twp-how-blue);
}

.twp-how-work__intro {
    max-width: 760px;
    margin: 0 auto;
    color: var(--twp-how-muted);
    font-size: 17px;
    line-height: 1.75;
}

/* Process */

.twp-how-work__process {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 72px;
}

.twp-how-work__line {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 225px;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--twp-how-blue),
        var(--twp-how-violet),
        var(--twp-how-cyan),
        var(--twp-how-orange),
        var(--twp-how-blue)
    );
    opacity: .8;
}

.twp-how-work__line-fill {
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(8px);
    opacity: .25;
}

.twp-process-step {
    position: relative;
    z-index: 2;
    text-align: center;
}

.twp-process-step__number {
    margin-bottom: 12px;
    color: var(--twp-how-blue);
    font-size: 28px;
    line-height: 1;
    font-weight: 850;
}

.twp-process-step--violet .twp-process-step__number { color: var(--twp-how-violet); }
.twp-process-step--cyan .twp-process-step__number { color: var(--twp-how-cyan); }
.twp-process-step--orange .twp-process-step__number { color: var(--twp-how-orange); }

.twp-process-step__icon {
    width: 94px;
    height: 94px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border: 1px solid var(--twp-how-border);
    border-radius: 50%;
    background: rgba(255,255,255,.96);
    box-shadow: 0 14px 32px rgba(7,20,38,.08);
    position: relative;
}

.twp-process-step__icon::after {
    content: "";
    position: absolute;
    inset: -8px;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: .12;
}

.twp-process-step--blue .twp-process-step__icon { color: var(--twp-how-blue); }
.twp-process-step--violet .twp-process-step__icon { color: var(--twp-how-violet); }
.twp-process-step--cyan .twp-process-step__icon { color: var(--twp-how-cyan); }
.twp-process-step--orange .twp-process-step__icon { color: var(--twp-how-orange); }

.twp-process-step--featured .twp-process-step__icon {
    width: 104px;
    height: 104px;
    margin-top: -5px;
    border: 7px solid rgba(18,168,199,.13);
    box-shadow:
        0 0 0 1px rgba(18,168,199,.28),
        0 18px 45px rgba(18,168,199,.17);
}

.twp-process-step--featured .twp-process-step__icon::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    border: 1px solid rgba(18,168,199,.3);
}

/* CSS line icons */

.twp-icon-search {
    width: 28px;
    height: 28px;
    border: 3px solid currentColor;
    border-radius: 50%;
    position: relative;
}
.twp-icon-search::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 3px;
    right: -9px;
    bottom: -5px;
    background: currentColor;
    transform: rotate(45deg);
    border-radius: 3px;
}

.twp-icon-design {
    width: 28px;
    height: 28px;
    border: 3px solid currentColor;
    border-radius: 4px;
    position: relative;
}
.twp-icon-design::before {
    content: "";
    position: absolute;
    width: 4px;
    height: 25px;
    right: -7px;
    top: -7px;
    background: currentColor;
    transform: rotate(45deg);
    border-radius: 2px;
}
.twp-icon-design::after {
    content: "";
    position: absolute;
    width: 11px;
    height: 3px;
    left: 6px;
    top: 10px;
    background: currentColor;
}

.twp-icon-build {
    width: 29px;
    height: 25px;
    border: 3px solid currentColor;
    border-radius: 4px;
    position: relative;
}
.twp-icon-build::before,
.twp-icon-build::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 3px solid currentColor;
    border-radius: 3px;
    background: #fff;
}
.twp-icon-build::before {
    left: -9px;
    bottom: -9px;
}
.twp-icon-build::after {
    right: -9px;
    bottom: -9px;
}

.twp-icon-implement {
    width: 31px;
    height: 22px;
    border: 3px solid currentColor;
    border-radius: 4px;
    position: relative;
}
.twp-icon-implement::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-left: 3px solid currentColor;
    border-top: 3px solid currentColor;
    right: 4px;
    top: -12px;
    transform: rotate(45deg);
}
.twp-icon-implement::after {
    content: "";
    position: absolute;
    width: 38px;
    height: 3px;
    left: -7px;
    bottom: -9px;
    background: currentColor;
    border-radius: 3px;
}

.twp-icon-grow {
    width: 31px;
    height: 24px;
    border-left: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    position: relative;
}
.twp-icon-grow::before {
    content: "";
    position: absolute;
    width: 26px;
    height: 3px;
    right: -1px;
    top: 4px;
    background: currentColor;
    transform: rotate(-35deg);
    transform-origin: right center;
}
.twp-icon-grow::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    right: -3px;
    top: 0;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
}

.twp-process-step h3 {
    margin: 0 0 6px;
    color: var(--twp-how-navy);
    font-size: 20px;
    line-height: 1.2;
    text-transform: uppercase;
}

.twp-process-step--blue h3 { color: var(--twp-how-blue); }
.twp-process-step--violet h3 { color: var(--twp-how-violet); }
.twp-process-step--cyan h3 { color: var(--twp-how-cyan); }
.twp-process-step--orange h3 { color: var(--twp-how-orange); }

.twp-process-step > strong {
    display: block;
    min-height: 44px;
    color: var(--twp-how-navy);
    font-size: 14px;
    line-height: 1.45;
}

.twp-process-step > p {
    min-height: 92px;
    margin: 18px 0 18px;
    color: var(--twp-how-muted);
    font-size: 13px;
    line-height: 1.65;
}

.twp-process-step ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.twp-process-step li {
    position: relative;
    padding-left: 23px;
    color: #35455d;
    font-size: 12px;
    line-height: 1.35;
}

.twp-process-step li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -1px;
    width: 15px;
    height: 15px;
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 800;
}

.twp-process-step--blue li { color: var(--twp-how-blue); }
.twp-process-step--violet li { color: var(--twp-how-violet); }
.twp-process-step--cyan li { color: var(--twp-how-cyan); }
.twp-process-step--orange li { color: var(--twp-how-orange); }

.twp-process-step li::first-line { color: #35455d; }

/* Principles */

.twp-how-work__principles {
    position: relative;
    border: 1px solid #dbe6f5;
    border-radius: 18px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 18px 45px rgba(7,20,38,.055);
}

.twp-principles__heading {
    position: absolute;
    left: 50%;
    top: -15px;
    transform: translateX(-50%);
    padding: 5px 22px;
    border: 1px solid #dbe6f5;
    border-radius: 999px;
    background: #fff;
    color: var(--twp-how-navy);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .12em;
    white-space: nowrap;
}

.twp-principles__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.twp-principle {
    display: flex;
    gap: 16px;
    min-height: 130px;
    align-items: center;
    padding: 27px 26px;
}

.twp-principle + .twp-principle {
    border-left: 1px solid #dbe6f5;
}

.twp-principle__icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid #cfe0f7;
    border-radius: 50%;
    background: #eff5ff;
    color: var(--twp-how-blue);
    font-size: 11px;
    font-weight: 850;
}

.twp-principle:nth-child(2) .twp-principle__icon {
    color: var(--twp-how-violet);
    background: #f4f1ff;
    border-color: #dfd8fb;
}
.twp-principle:nth-child(3) .twp-principle__icon {
    color: var(--twp-how-cyan);
    background: #eefbfd;
    border-color: #cceef4;
}
.twp-principle:nth-child(4) .twp-principle__icon {
    color: var(--twp-how-orange);
    background: #fff6ed;
    border-color: #f8dfc7;
}

.twp-principle h3 {
    margin: 0 0 5px;
    color: var(--twp-how-navy);
    font-size: 14px;
}

.twp-principle p {
    margin: 0;
    color: var(--twp-how-muted);
    font-size: 12px;
    line-height: 1.55;
}

/* CTA */

.twp-how-work__cta {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
    margin-top: 24px;
    padding: 30px 34px;
    border: 1px solid #d8e5f8;
    border-radius: 18px;
    background:
        radial-gradient(circle at 90% 50%, rgba(23,105,224,.10), transparent 30%),
        #f5f9ff;
}

.twp-how-work__cta::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 150px;
    right: -45px;
    bottom: -80px;
    border: 1px dotted rgba(23,105,224,.35);
    border-radius: 50%;
    transform: rotate(-12deg);
}

.twp-how-work__cta-mark {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--twp-how-blue);
    box-shadow: 0 12px 28px rgba(23,105,224,.22);
}

.twp-how-work__cta-mark span {
    position: absolute;
    width: 27px;
    height: 19px;
    border: 2px solid #fff;
    border-radius: 6px;
}
.twp-how-work__cta-mark span:nth-child(2) {
    width: 18px;
    height: 12px;
    margin: 18px 0 0 17px;
}
.twp-how-work__cta-mark span:nth-child(3) {
    width: 5px;
    height: 5px;
    margin: 0 0 0 -10px;
    border-radius: 50%;
    background: #fff;
    border: 0;
}

.twp-how-work__cta-copy {
    position: relative;
    z-index: 1;
}

.twp-how-work__cta-copy > span {
    color: var(--twp-how-blue);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .12em;
}

.twp-how-work__cta-copy h3 {
    margin: 3px 0 3px;
    color: var(--twp-how-navy);
    font-size: 24px;
    line-height: 1.2;
}

.twp-how-work__cta-copy p {
    margin: 0;
    color: var(--twp-how-muted);
    font-size: 13px;
}

.twp-how-work__cta-button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 54px;
    padding: 13px 25px;
    border-radius: 7px;
    background: var(--twp-how-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(23,105,224,.18);
    transition: transform .2s ease, background .2s ease;
}

.twp-how-work__cta-button:hover {
    transform: translateY(-2px);
    background: var(--twp-how-navy);
}

.twp-how-work__cta-button span {
    font-size: 20px;
    line-height: 1;
}

/* Responsive */

@media (max-width: 1050px) {
    .twp-how-work__process {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 55px;
    }

    .twp-how-work__line {
        display: none;
    }

    .twp-process-step > p {
        min-height: auto;
    }

    .twp-principles__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .twp-principle:nth-child(3) {
        border-left: 0;
        border-top: 1px solid #dbe6f5;
    }

    .twp-principle:nth-child(4) {
        border-top: 1px solid #dbe6f5;
    }
}

@media (max-width: 720px) {
    .twp-how-work {
        padding: 75px 0 70px;
    }

    .twp-how-work__container {
        width: min(calc(100% - 32px), 1240px);
    }

    .twp-how-work__header {
        margin-bottom: 52px;
    }

    .twp-how-work__title {
        font-size: 38px;
    }

    .twp-how-work__intro {
        font-size: 15px;
    }

    .twp-how-work__process {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .twp-process-step {
        max-width: 430px;
        margin-inline: auto;
    }

    .twp-process-step__icon,
    .twp-process-step--featured .twp-process-step__icon {
        width: 88px;
        height: 88px;
    }

    .twp-process-step > strong {
        min-height: auto;
    }

    .twp-process-step ul {
        max-width: 250px;
        margin-inline: auto;
    }

    .twp-principles__grid {
        grid-template-columns: 1fr;
    }

    .twp-principle,
    .twp-principle:nth-child(3),
    .twp-principle:nth-child(4) {
        border-left: 0;
        border-top: 1px solid #dbe6f5;
    }

    .twp-principle:first-child {
        border-top: 0;
    }

    .twp-how-work__cta {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        padding: 30px 24px;
    }

    .twp-how-work__cta-button {
        width: 100%;
    }
}
