:root {
    --teal: #2cbaa1;
    --teal-soft: rgba(44, 186, 161, 0.1);
    --ink: #030213;
    --muted: #6f6f6f;
    --navy: #0e4970;
    --bg-soft: #f8f8f8;
    --line: #d4d4d4;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--ink);
    background: #f3f3f3;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.section-space {
    padding-block: 80px;
}

.section-space-sm {
    padding-block: 56px;
}

.serif-italic {
    font-family: "Source Serif 4", serif;
    font-style: italic;
    font-weight: 700;
}

.text-teal {
    color: var(--teal);
}

.badge-teal {
    background: var(--teal-soft);
    color: var(--teal);
    border-radius: 12px;
    font-size: 1.25rem;
}

.btn-pill {
    border-radius: 999px;
    padding: 12px 24px;
    min-height: 48px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.btn-teal {
    background: var(--teal);
    color: var(--white);
}

.btn-teal:hover {
    background: #24a88f;
    color: var(--white);
}

.btn-teal:focus-visible,
.btn-navy:focus-visible,
.social-row a:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

.btn-navy {
    background: #0d446d;
    border: 1px solid #0d446d;
    color: var(--white);
    min-height: 56px;
    padding: 8px 24px;
    font-weight: 700;
    font-size: 1rem;
}

.btn-navy:hover {
    background: #0a3758;
    color: var(--white);
}

.hero {
    background: #efefef;
}


.hero-copy {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.services-wrap {
    background: #efefef;
    padding-top: 28px;
}

.services-stack {
    display: flex;
    flex-direction: column;
    gap: 84px;
}

.service-row {
    display: flex;
    width: 100%;
}

.service-row--split {
    align-items: stretch;
    justify-content: space-between;
    gap: 50px;
}

.service-row--reverse {
    flex-direction: row-reverse;
}

.service-row--boxed {
    border: 1px solid var(--line);
    background: var(--bg-soft);
    border-radius: 40px;
    padding: 16px;
}

.service-row--card {
    border: 1px solid var(--line);
    background: var(--bg-soft);
    border-radius: 40px;
    padding: 16px;
    flex-direction: column;
    height: fit-content;
}

.service-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 84px;
}

.service-panel {
    padding: 30px;
    border-radius: 20px;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.service-panel--plain {
    padding: 40px;
    width: 590px;
}

.service-panel--wide {
    width: 630px;
}

.service-media {
    width: 556px;
    min-width: 556px;
    border: 4px solid #fafbfc;
    border-radius: 35px;
    overflow: hidden;
}

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.service-row:hover .service-media img {
    transform: scale(1.03);
}

.service-media--card {
    width: 100%;
    min-width: 100%;
    margin-top: 8px;
    margin-bottom: 0;
}

.service-tag {
    width: fit-content;
    background: var(--teal-soft);
    color: var(--teal);
    border-radius: 12px;
    padding: 10px 24px;
    font-size: 1.25rem;
    line-height: 28px;
    font-weight: 500;
}

.service-title {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.875rem, 2.8vw, 2.5rem);
    line-height: 1.134;
    letter-spacing: -0.02em;
    font-weight: 600;
}

.service-desc,
.service-note {
    margin: 0;
    color: var(--muted);
    font-size: 1.25rem;
    line-height: 28px;
    letter-spacing: -0.01em;
}

.service-note strong,
.service-desc strong {
    color: var(--ink);
}

.service-note--top {
    margin-top: -4px;
}

.check-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    line-height: 35px;
    letter-spacing: -1%;
    font-family: "Inter", sans-serif;
    color: var(--ink);
    font-weight: 500;
}
.check-list li:hover {
    transform: translatey(-4px)
}

.check-list li::before {
    content: "\f4b5";
    font-family: "bootstrap-icons";
    font-size: 1.375rem;
    line-height: 1;
}

.check-list--teal li::before {
    color: #10b79e;
}

.check-list--mint li::before {
    color: #58ce95;
}

.check-list--blue li::before {
    color: #47b8df;
}

.works-section {
    background: #ffffff;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.title-block {
    max-width: 860px;
}

.display-title {
    margin: 16px 0;
    font-size: clamp(2.375rem, 5vw, 4.5rem);
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 600;
}

.subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 1.25rem;
    line-height: 28px;
}

.flow-wrap {
    margin-top: 80px;
    position: relative;
    /* height: 580px; */
    height: 565px;
    width: 100%;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.flow-mark {
    width: 76px;
    height: 104.85px;
    margin-top: -20px;
    margin-bottom: -20px;
    display: block;
}

.flow-curve-wrap {
    position: absolute;
    top: 77.91px;
    left: 50%;
    transform: translateX(-50%);
    /* width: 1048px;
    height: 298px; */
        width: 100%;
    height: 290px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.flow-curve {
    /* width: 409px;
    height: 1175px; */
    width: 416px;
    height: 1000px;
    display: block;
    transform: rotate(90deg) scaleY(-1);
    transform-origin: center;
}

.flow-grid {
    /* width: 1312px; */
    width: 100%;
    max-width: none;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: -20px;
}

.flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 262.4px;
}

.flow-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: #0e4970;
    display: grid;
    place-items: center;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.flow-icon img {
    width: 47.692px;
    height: 47.692px;
    display: block;
}

.flow-item:hover .flow-icon {
    transform: translateY(-4px);
    background: #0d446d;
}

.flow-item h3 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 32px;
    letter-spacing: -2%;
    font-weight: 600;
    color: #030213;
}

/* .final-cta {
    position: relative;
    overflow: hidden;
    border: 10px solid #fff;
    border-radius: 32px;
    min-height: 500px;
    background:
        radial-gradient(circle at center, rgba(44, 186, 161, 0.18), rgba(44, 186, 161, 0) 58%),
        radial-gradient(circle, rgba(6, 31, 40, 0.07) 1px, transparent 1px);
    background-size: auto, 16px 16px;
    background-position: center, center;
    box-shadow: 0 0 64px rgba(0, 0, 0, 0.12);
}

.final-cta-corner {
    --arc-start: 255deg;
    --arc-span: 98deg;
    --arc-thickness: 64px;
    position: absolute;
    display: block;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: conic-gradient(
        from var(--arc-start),
        rgba(44, 186, 161, 0) 0deg,
        rgba(44, 186, 161, 0.38) 12deg,
        #2cbaa1 30deg,
        #2cbaa1 calc(var(--arc-span) - 30deg),
        rgba(44, 186, 161, 0.38) calc(var(--arc-span) - 12deg),
        rgba(44, 186, 161, 0) var(--arc-span),
        transparent var(--arc-span) 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--arc-thickness)), #000 calc(100% - var(--arc-thickness)), #000 calc(100% - 1px), transparent 100%);
    mask: radial-gradient(farthest-side, transparent calc(100% - var(--arc-thickness)), #000 calc(100% - var(--arc-thickness)), #000 calc(100% - 1px), transparent 100%);
    box-shadow: 0 0 16px rgba(44, 186, 161, 0.2);
    pointer-events: none;
}

.final-cta-corner-left {
    top: 15px;
    left: -200px;
    transform: rotate(49deg);
}

.final-cta-corner-right {
    --arc-start: 75deg;
    right: -200px;
    top: -42px;
    transform: rotate(49deg);
}

.final-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    min-height: 480px;
    margin: 0 auto;
    padding: 42px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 24px;
}

.final-cta h2 {
    margin: 0;
    max-width: 640px;
    font-size: clamp(2.5rem, 5vw, 3.875rem);
    line-height: 1.14;
    letter-spacing: -0.03em;
    font-weight: 600;
}

.final-cta p {
    margin: 0;
    max-width: 503px;
    color: var(--muted);
    font-size: 1.125rem;
    line-height: 1.625;
} */

@media (max-width: 1199px) {
    .service-row--split,
    .service-row--reverse {
        flex-direction: column;
        gap: 24px;
    }

    .service-grid-2 {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .service-panel,
    .service-panel--plain,
    .service-panel--wide,
    .service-media {
        width: 100%;
        min-width: 100%;
    }

    /* .service-media,
    .service-media--card {
        min-height: 440px;
    } */

    .service-tag {
        font-size: 1.125rem;
    }

    .check-list li {
        font-size: 1.375rem;
    }

    .flow-wrap {
        margin-top: 56px;
        height: auto;
        padding-bottom: 0;
        gap: 28px;
    }

    .flow-curve-wrap {
        display: none;
    }

    .flow-mark {
        margin: 0;
    }

    .flow-grid {
        width: 100%;
        max-width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 0;
        row-gap: 34px;
    }

    .flow-item {
        width: 100%;
    }
}

@media (max-width: 1198.98px) {

    .section-space {
        padding-block: 44px;
    }

    .service-row-reverse {
        flex-direction: column-reverse;
    }

    .section-space-sm {
        padding-block: 36px;
    }

    .badge-soft,
    .badge-teal,
    .service-tag {
        min-height: 40px;
        padding: 6px 16px;
        font-size: 0.875rem;
        line-height: 22px;
    }

    .hero-title {
        margin: 16px 0;
    }

    .hero-copy,
    .service-desc,
    .service-note,
    .subtitle,
    .flow-item p {
        font-size: 1rem;
        line-height: 24px;
    }

    .services-stack {
        gap: 36px;
    }

    .service-row--boxed,
    .service-row--card {
        border-radius: 20px;
        padding: 10px;
        flex-direction: column !important;
    }

    .service-panel,
    .service-panel--plain,
    .service-panel--wide {
        padding: 18px;
        gap: 12px;
    }

    .service-title {
        font-size: 1.875rem;
        line-height: 1.2;
    }

    .check-list li {
        align-items: flex-start;
        font-size: 1rem;
        line-height: 22px;
    }

    .check-list li::before {
        margin-top: 1px;
        font-size: 1rem;
    }

    .service-media,
    .service-media--card {
        border-radius: 20px;
        /* min-height: 280px; */
    }

    .flow-mark {
        width: 60px;
        height: 60px;
        margin-bottom: 0;
    }

    .flow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 0;
        row-gap: 20px;
    }

    .flow-icon {
        width: 58px;
        height: 58px;
        border-radius: 10px;
    }

    .flow-icon img {
        width: 34px;
        height: 34px;
    }

    .flow-item {
        gap: 10px;
    }

    .flow-item h3 {
        font-size: 1.25rem;
        line-height: 24px;
    }

    .final-cta {
        border-width: 6px;
        border-radius: 20px;
        min-height: 420px;
    }

    .final-cta-corner {
        width: 320px;
        height: 320px;
        --arc-thickness: 40px;
    }

    .final-cta-corner-left {
        top: 18px;
        left: -140px;
    }

    .final-cta-corner-right {
        top: -16px;
        right: -160px;
    }

    .final-cta-inner {
        min-height: 390px;
        padding: 20px;
        gap: 16px;
    }

    .final-cta h2 {
        font-size: 2.375rem;
    }

    .final-cta p {
        font-size: 1rem;
        line-height: 24px;
    }
}
