.page-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 620px;
    padding: 150px 0 90px;
    color: var(--white);
    background: var(--night);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, transparent, #000 24%, transparent 95%);
}

.page-hero__glow {
    position: absolute;
    width: min(650px, 70vw);
    aspect-ratio: 1;
    top: 20%;
    right: -15%;
    border-radius: 50%;
    background: var(--mint);
    filter: blur(180px);
    opacity: .17;
}

.page-hero__inner {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    max-width: 950px;
    margin: 0;
    font: 700 clamp(52px, 7.4vw, 104px) / .98 "Manrope", sans-serif;
    letter-spacing: -.075em;
}

.page-hero__inner>p:not(.eyebrow) {
    max-width: 680px;
    margin: 30px 0 0;
    color: rgba(255, 255, 255, .68);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.6;
}

.page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
    margin-top: 40px;
}

.page-hero--standard {
    min-height: 500px;
}

.page-hero--standard h1 {
    font-size: clamp(48px, 6.5vw, 86px);
}

.widget-section {
    position: relative;
    padding: clamp(90px, 11vw, 150px) 0;
    color: var(--ink);
    background: var(--paper);
}

.widget-section--soft {
    background: #eef1ee;
}

.widget-section--dark {
    color: var(--white);
    background: var(--night);
}

.widget-section__heading {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .65fr);
    gap: clamp(45px, 9vw, 130px);
    align-items: end;
    margin-bottom: clamp(52px, 7vw, 85px);
}

.widget-section__heading h2 {
    max-width: 760px;
    margin: 0;
    font: 700 clamp(40px, 5.7vw, 72px) / 1.05 "Manrope", sans-serif;
    letter-spacing: -.06em;
}

.widget-section__heading>p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.75;
}

.widget-section--dark .widget-section__heading>p {
    color: rgba(255, 255, 255, .62);
}

.widget-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.widget-section--compact .widget-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.widget-card {
    --card-accent: var(--mint);
    position: relative;
    min-height: 470px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: clamp(30px, 3.5vw, 44px);
    background: var(--white);
    border: 1px solid rgba(17, 20, 38, .1);
    border-radius: var(--radius-md);
    box-shadow: 0 18px 60px rgba(11, 16, 32, .07);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.widget-card:hover {
    z-index: 1;
    transform: translateY(-8px);
    border-color: color-mix(in srgb, var(--card-accent) 55%, transparent);
    box-shadow: 0 28px 75px rgba(11, 16, 32, .15);
}

.widget-card__topline {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--card-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.widget-card:hover .widget-card__topline {
    transform: scaleX(1);
}

.widget-card__icon {
    display: grid;
    width: 64px;
    aspect-ratio: 1;
    place-items: center;
    margin-bottom: 45px;
    color: var(--night);
    background: color-mix(in srgb, var(--card-accent) 33%, white);
    border-radius: 20px 20px 5px 20px;
}

.widget-card__icon svg {
    width: 31px;
    height: 31px;
}

.widget-card h3 {
    margin: 0 0 17px;
    font: 700 clamp(23px, 2.3vw, 30px) / 1.15 "Manrope", sans-serif;
    letter-spacing: -.045em;
}

.widget-card__body {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.72;
}

.widget-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 27px 0 35px;
    padding: 0;
    list-style: none;
}

.widget-card__tags li {
    padding: 7px 10px;
    color: #4e586a;
    background: #f0f3f1;
    border: 1px solid rgba(17, 20, 38, .06);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .025em;
}

.widget-card__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    padding-top: 20px;
    color: var(--ink);
    border-top: 1px solid rgba(17, 20, 38, .1);
    font-size: 14px;
    font-weight: 700;
}

.widget-card__cta span:last-child {
    display: grid;
    width: 34px;
    aspect-ratio: 1;
    place-items: center;
    color: var(--night);
    background: var(--card-accent);
    border-radius: 50%;
    transition: transform .2s ease;
}

.widget-card__cta:hover span:last-child {
    transform: translate(2px, -2px);
}

.widget-section--dark .widget-card {
    color: var(--white);
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .12);
    box-shadow: none;
}

.widget-section--dark .widget-card__body {
    color: rgba(255, 255, 255, .62);
}

.widget-section--dark .widget-card__tags li {
    color: rgba(255, 255, 255, .76);
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .1);
}

.widget-section--dark .widget-card__cta {
    color: var(--white);
    border-color: rgba(255, 255, 255, .13);
}

.widget-section--compact .widget-card {
    min-height: 390px;
    padding: 30px;
}

.widget-section--compact .widget-card__icon {
    margin-bottom: 32px;
}

@media (max-width: 960px) {

    .widget-grid,
    .widget-section--compact .widget-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .widget-section__heading {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .page-hero {
        min-height: 650px;
        padding-top: 125px;
    }

    .page-hero h1 {
        font-size: clamp(48px, 15vw, 66px);
    }

    .page-hero__actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .widget-grid,
    .widget-section--compact .widget-grid {
        grid-template-columns: 1fr;
    }

    .widget-card {
        min-height: 430px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .widget-card,
    .widget-card__topline,
    .widget-card__cta span:last-child {
        transition: none;
    }
}

/* Reusable non-service content blocks */
.home-content-block {
    padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

.home-testimonial {
    padding-top: clamp(2rem, 4vw, 3.5rem);
    background: #f5f7f6;
}

.home-testimonial__card {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem);
    overflow: hidden;
    border: 1px solid rgba(21, 26, 45, 0.1);
    border-radius: 1.75rem;
    background: #fff;
    box-shadow: 0 1.5rem 4rem rgba(21, 26, 45, 0.08);
}

.home-testimonial__mark {
    position: absolute;
    top: -1.5rem;
    right: 1.5rem;
    color: rgba(15, 122, 118, 0.12);
    font-family: Georgia, serif;
    font-size: clamp(8rem, 20vw, 14rem);
    line-height: 1;
}

.home-testimonial blockquote,
.home-testimonial p {
    position: relative;
    margin: 0;
}

.home-testimonial blockquote p {
    max-width: 760px;
    color: #151a2d;
    font-size: clamp(1.45rem, 3vw, 2.3rem);
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -0.025em;
}

.home-testimonial figcaption {
    position: relative;
    margin-top: 1.5rem;
    color: #556b6a;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.home-partner {
    background: #fff;
}

.home-partner__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: clamp(3rem, 8vw, 7rem);
    align-items: center;
}

.home-partner__copy h2,
.home-process__heading h2,
.home-closing-cta h2 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.home-partner__lead {
    max-width: 680px;
    margin: 1.5rem 0 0;
    color: #556b6a;
    font-size: 1.1rem;
    line-height: 1.8;
}

.partner-badge {
    display: inline-flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.75rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(21, 26, 45, 0.12);
    border-radius: 999px;
    color: #151a2d;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.partner-badge__colours {
    display: flex;
    gap: 0.18rem;
}

.partner-badge__colours span {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 0.15rem;
    background: #ef4444;
}

.partner-badge__colours span:nth-child(2) {
    background: #3b82f6;
}

.partner-badge__colours span:nth-child(3) {
    background: #f59e0b;
}

.partner-badge__colours span:nth-child(4) {
    background: #22c55e;
}

.home-partner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
    margin-top: 2rem;
}

.partner-capabilities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.partner-capabilities li {
    min-height: 150px;
    padding: 1.5rem;
    border: 1px solid rgba(21, 26, 45, 0.1);
    border-radius: 1.25rem;
    background: #f5f7f6;
    color: #151a2d;
    font-weight: 750;
}

.partner-capabilities__icon {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1.4rem;
    place-items: center;
    border-radius: 0.8rem;
    background: #151a2d;
    color: #66e3c4;
}

.partner-capabilities__icon svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-process {
    background: #0b1020;
    color: #fff;
}

.home-process__heading {
    margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.home-process__heading h2 {
    color: #fff;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: process;
}

.process-step {
    position: relative;
    padding: 0 1.5rem 0 0;
}

.process-step:not(:last-child)::after {
    position: absolute;
    top: 1.35rem;
    right: 1rem;
    left: 3.8rem;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
    content: "";
}

.process-step__number {
    position: relative;
    z-index: 1;
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1.75rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: #0b1020;
    color: #66e3c4;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.process-step h3 {
    min-height: 3.2em;
    margin: 0;
    color: #fff;
    font-size: 1rem;
    line-height: 1.35;
    text-transform: uppercase;
}

.process-step p {
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.92rem;
    line-height: 1.7;
}

.home-closing-cta {
    background: #151a2d;
    color: #fff;
}

.home-closing-cta__inner {
    display: flex;
    gap: 3rem;
    align-items: end;
    justify-content: space-between;
}

.home-closing-cta h2 {
    color: #fff;
}

.home-closing-cta p:not(.eyebrow) {
    max-width: 650px;
    margin: 1.25rem 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 1.05rem;
    line-height: 1.7;
}

.home-closing-cta .button {
    flex: 0 0 auto;
}

@media (max-width: 960px) {
    .home-partner__grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr 1fr;
        gap: 2.25rem 1.5rem;
    }

    .process-step:not(:last-child)::after {
        display: none;
    }

    .process-step h3 {
        min-height: auto;
    }
}

@media (max-width: 640px) {

    .partner-capabilities,
    .process-steps {
        grid-template-columns: 1fr;
    }

    .partner-capabilities li {
        min-height: 0;
    }

    .home-closing-cta__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}