.services-section {
    position: relative;
    overflow: hidden;
    padding: 4.65rem 0 4.95rem;
    background: #050507;
    isolation: isolate;
}

.services-bg,
.services-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.services-bg {
    z-index: 0;
    background:
        radial-gradient(circle at 18% 16%, rgba(var(--accent-rgb), 0.14), transparent 22%),
        radial-gradient(circle at 44% 20%, rgba(var(--accent-soft-rgb), 0.1), transparent 18%),
        radial-gradient(circle at 72% 18%, rgba(var(--accent-deep-rgb), 0.1), transparent 20%),
        radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.028), transparent 22%),
        radial-gradient(circle at 82% 14%, rgba(var(--accent-rgb), 0.1), transparent 18%),
        radial-gradient(circle at 56% 68%, rgba(var(--accent-deep-rgb), 0.12), transparent 24%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.016) 0, rgba(255, 255, 255, 0.016) 0.0625rem, transparent 0.0625rem, transparent 33.333%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.012) 0, rgba(255, 255, 255, 0.012) 0.0625rem, transparent 0.0625rem, transparent 8rem);
    background-size: auto, auto, auto, auto, auto, auto, 34%, 100% 8rem;
    opacity: 0.88;
}

.services-overlay {
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(4, 4, 6, 0.14) 0%, rgba(4, 4, 6, 0.04) 18%, rgba(4, 4, 6, 0.06) 82%, rgba(4, 4, 6, 0.16) 100%),
        radial-gradient(circle at 52% 16%, rgba(var(--accent-rgb), 0.12), transparent 20%),
        linear-gradient(90deg, rgba(4, 4, 6, 0.22) 0%, rgba(4, 4, 6, 0.02) 28%, rgba(4, 4, 6, 0.02) 72%, rgba(4, 4, 6, 0.16) 100%);
}

.services-section .container {
    position: relative;
    z-index: 2;
}

.services-header {
    display: grid;
    grid-template-columns: minmax(0, 1.52fr) minmax(20rem, 0.72fr);
    gap: 1.45rem 1.8rem;
    align-items: start;
    margin-bottom: 1.3rem;
}

.services-heading {
    position: relative;
    max-width: 56rem;
    padding-top: 0.2rem;
}

.services-heading::before {
    content: "";
    position: absolute;
    inset: -2rem auto auto -3rem;
    width: 34rem;
    height: 19rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 22% 44%, rgba(var(--accent-rgb), 0.16) 0%, rgba(var(--accent-rgb), 0.08) 24%, transparent 62%),
        radial-gradient(circle at 68% 36%, rgba(var(--accent-soft-rgb), 0.08) 0%, transparent 44%);
    filter: blur(3.8rem);
    opacity: 0.64;
    pointer-events: none;
    z-index: 0;
}

.services-heading > * {
    position: relative;
    z-index: 1;
}

.services-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.95rem;
    color: #c0c2c8;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.services-eyebrow::before {
    content: "";
    width: 3.2rem;
    height: 0.0625rem;
    background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.95), rgba(var(--accent-rgb), 0.12));
}

.services-title {
    margin: 0;
    max-width: 18ch;
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 3vw, 3.05rem);
    line-height: 0.98;
    color: #f5f1ea;
    text-wrap: balance;
}

.services-summary {
    max-width: 26rem;
    align-self: start;
    padding-top: 0.55rem;
}

.services-kicker {
    margin: 0 0 0.85rem;
    color: rgba(228, 229, 235, 0.7);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.services-intro {
    margin: 0;
    color: rgba(226, 227, 233, 0.8);
    font-size: 0.97rem;
    line-height: 1.74;
    text-wrap: pretty;
}

.services-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.1rem;
}

.services-signals span {
    display: inline-flex;
    align-items: center;
    min-height: 2.3rem;
    padding: 0 0.9rem;
    border-radius: 999rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: #ece9e4;
    font-size: 0.81rem;
    white-space: nowrap;
}

.services-rail {
    display: grid;
    grid-template-columns: minmax(9rem, auto) minmax(0, 1fr);
    gap: 0.9rem 1.25rem;
    align-items: start;
    margin-bottom: 1.15rem;
    padding: 0.95rem 0 0;
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.08);
}

.services-rail-label {
    margin: 0;
    color: rgba(210, 211, 218, 0.62);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.services-rail-copy {
    margin: 0;
    max-width: 60rem;
    color: rgba(220, 221, 227, 0.74);
    font-size: 0.965rem;
    line-height: 1.76;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-height: 14.4rem;
    padding: 1.45rem 1.35rem 1.3rem;
    border-radius: 1.45rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.075);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.014)),
        rgba(255, 255, 255, 0.014);
    box-shadow:
        0 1rem 2.4rem rgba(0, 0, 0, 0.16),
        inset 0 0 0.08rem rgba(255, 255, 255, 0.03);
    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        background 0.28s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.35rem;
    width: 3.8rem;
    height: 0.125rem;
    border-radius: 999rem;
    background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.95), rgba(var(--accent-rgb), 0));
    opacity: 0.92;
}

.service-card:nth-child(2) {
    transform: translateY(1rem);
}

.service-card:nth-child(3) {
    transform: translateY(-1rem);
}

.service-card:hover {
    transform: translateY(-0.25rem);
    border-color: rgba(var(--accent-rgb), 0.24);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018)),
        rgba(255, 255, 255, 0.018);
    box-shadow:
        0 1.25rem 2.8rem rgba(0, 0, 0, 0.22),
        0 0 1.9rem rgba(var(--accent-rgb), 0.07),
        inset 0 0 0.08rem rgba(255, 255, 255, 0.04);
}

.service-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.service-number {
    color: rgba(var(--accent-rgb), 0.95);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.service-label {
    margin: 0;
    color: rgba(213, 214, 221, 0.62);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: right;
}

.service-card h3 {
    margin: 0;
    max-width: 16.5ch;
    font-family: var(--font-heading);
    font-size: clamp(1.14rem, 1.65vw, 1.5rem);
    line-height: 1.14;
    color: #f2eee8;
    text-wrap: balance;
}

.service-card p {
    margin: 0;
    max-width: 36rem;
    color: rgba(217, 217, 224, 0.76);
    font-size: 0.94rem;
    line-height: 1.72;
}

.service-note {
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.08);
    color: rgba(236, 234, 228, 0.88);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.services-lower-band {
    margin-top: 1.05rem;
    padding: 1.2rem 1.2rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.07);
    border-radius: 1.35rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.012)),
        rgba(255, 255, 255, 0.012);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem 1.5rem;
    align-items: center;
}

.services-band-label {
    margin: 0 0 0.6rem;
    color: #c4c4cc;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.services-band-copy h3 {
    margin: 0;
    max-width: 36rem;
    font-family: var(--font-heading);
    font-size: clamp(0.98rem, 1.35vw, 1.24rem);
    line-height: 1.36;
    color: #f0eeeb;
}

.services-band-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.7rem;
}

.services-band-points span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0 0.88rem;
    border-radius: 999rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: #e5e5ea;
    font-size: 0.81rem;
    white-space: nowrap;
}

@media (max-width: 90rem) {
    .services-title {
        font-size: clamp(1.86rem, 2.8vw, 2.85rem);
    }
}

@media (max-width: 80rem) {
    .services-heading::before {
        left: -1.2rem;
        width: 26rem;
        height: 15rem;
        opacity: 0.56;
    }

    .services-header {
        grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.8fr);
        gap: 1.35rem 1.4rem;
    }

    .services-title {
        max-width: 16.6ch;
        font-size: clamp(1.82rem, 3vw, 2.6rem);
    }

    .services-summary {
        max-width: 24rem;
        padding-top: 0.5rem;
    }
}

@media (max-width: 64rem) {
    .services-section {
        padding: 4.35rem 0 4.65rem;
    }

    .services-heading::before {
        inset: -1rem auto auto -0.8rem;
        width: 18rem;
        height: 11rem;
        filter: blur(2.8rem);
    }

    .services-header {
        grid-template-columns: 1fr;
        gap: 1.15rem;
        align-items: start;
    }

    .services-heading,
    .services-title,
    .services-summary {
        max-width: none;
    }

    .services-summary {
        padding-top: 0;
    }

    .services-rail {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .service-card:nth-child(2),
    .service-card:nth-child(3) {
        transform: none;
    }

    .services-lower-band {
        grid-template-columns: 1fr;
    }

    .services-band-points {
        justify-content: flex-start;
    }
}

@media (max-width: 60rem) {
    .services-title {
        max-width: 13.8ch;
        font-size: clamp(1.95rem, 5vw, 2.75rem);
    }

    .services-intro,
    .services-rail-copy {
        max-width: 44rem;
    }

    .services-lower-band {
        padding: 1.15rem 1.1rem;
    }
}

@media (max-width: 48rem) {
    .services-section {
        padding: 3.85rem 0 4.15rem;
    }

    .services-heading::before {
        inset: -0.8rem auto auto -0.4rem;
        width: 12rem;
        height: 8rem;
        filter: blur(2.3rem);
        opacity: 0.48;
    }

    .services-title {
        max-width: 13.2ch;
        font-size: clamp(1.82rem, 7.4vw, 2.45rem);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .services-lower-band {
        border-radius: 1.2rem;
    }

    .service-card,
    .services-lower-band {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }

    .services-intro,
    .services-rail-copy,
    .service-card p,
    .services-band-points span {
        font-size: 0.92rem;
    }

    .service-card {
        min-height: unset;
        padding-top: 1.3rem;
        padding-bottom: 1.2rem;
    }

    .service-card::before {
        left: 1.15rem;
    }

    .service-card h3 {
        max-width: none;
    }

    .service-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.55rem;
    }

    .service-label {
        text-align: left;
    }

    .services-band-copy h3 {
        max-width: none;
        font-size: clamp(0.96rem, 5vw, 1.16rem);
    }
}

@media (max-width: 30rem) {
    .services-title {
        max-width: 11.6ch;
    }

    .services-signals,
    .services-band-points {
        gap: 0.6rem;
    }

    .services-signals span,
    .services-band-points span {
        width: 100%;
        justify-content: flex-start;
        padding: 0.72rem 0.95rem;
        border-radius: 1rem;
    }
}
