: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: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.bg-lightgray {
    background: var(--bg-soft);
}

.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: var(--white);
}


.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;
}

.steps-grid {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-left: 1px solid #c2c2c2;
}

.step-col {
    min-height: 430px;
    padding: 8px 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid #c2c2c2;
}

.step-col-mid {
    padding-top: 104px;
}

.step-col-last {
    padding-top: 214px;
}

.step-num {
    margin: 0;
    font-size: clamp(96px, 10vw, 144px);
    line-height: 0.92;
    font-weight: 600;
    letter-spacing: -3px;
    background: linear-gradient(180deg, #030213 0%, rgba(3, 2, 19, 0) 95%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.45;
}

.step-heading {
    margin: 0;
    color: var(--muted);
    font-size: 2.5rem;
    line-height: 50px;
    font-weight: 600;
    letter-spacing: -2%;
        font-family: 'Inter', sans-serif;
    /* max-width: 290px; */
}

.card-soft,
.card-white {
    border-radius: 20px;
    padding: 30px;
}

.card-soft {
    background: var(--bg-soft);
}

.brand-slider {
  overflow: hidden;
  position: relative;
}
 .brand-track {
  display: flex;
  width: max-content;
  gap: 5rem;
  animation: scrollLeft 10s linear infinite;
}

/* Continuous Right → Left Motion */
@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.card-white {
    background: var(--white);
}

.card-lg {
    min-height: 360px;
}

.card-copy {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 1.25rem;
    line-height: 1.4;
}

.para-graph.strong {
    color: var(--ink);
    font-weight: 700;
}

.card-icons {
    display: grid;
    place-items: center;
    min-height: 180px;
}

.icon-tiles {
    width: min(100%, 470px);
    display: grid;
    gap: 18px;
}

.card-quote {
    line-height: 51px;
    font-size: 2.25rem;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    color: #030213;
    letter-spacing: -2%;
}
.photo-panel {
    width: 100%;
    height: 100%;
    min-height: 330px;
    background: #d9d9d9;
    border-radius: 30px;
}

.photo-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    max-height: 380px;
}

.problem-card {
    height: 100%;
    border-radius: 24px;
    padding: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 48%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 228px;
}
.problem-card:hover {
    transform: translateY(-3px);
    box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

.problem-card h4 {
    margin: 0 0 10px;
        font-size: 1.625rem;
    line-height: 32px;
    letter-spacing: -2%;
    font-weight: 600;
}

.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;
}


@media (max-width: 2560px)  and (min-width: 1399.98px) {
    .flow-curve {
    width: 416px;
    height: 1163px;
    }
}

@media (max-width: 1199px) {
    .service-row--split,
    .service-row--reverse {
        flex-direction: column;
        gap: 24px;
    }

    .step-col {
        min-height: 290px;
    }

    .step-col-mid,
    .step-col-last {
        padding-top: 12px;
    }

    .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-inner {
        min-height: 390px;
        padding: 20px;
        gap: 16px;
    }

    .final-cta h2 {
        font-size: 2.375rem;
    }

    .final-cta p {
        font-size: 1rem;
        line-height: 24px;
    }
}

@media (max-width: 991.98px) {
 .steps-grid,
    .matrix-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 767.98px) {
    .steps-grid,
    .matrix-grid {
        grid-template-columns: 1fr;
    }

    .step-col {
        border-right: 0;
        border-bottom: 1px solid #c2c2c2;
        min-height: auto;
        padding: 20px !important
    }

    .step-col:last-child {
        border-bottom: 0;
    }
}
