.page-services {
    --oy-stone: #ebe8e1;
}

.cap-hero {
    padding-top: clamp(3.2rem, 6vw, 5.6rem);
    padding-bottom: clamp(3.4rem, 7vw, 6.2rem);
}

.cap-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.85fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: end;
}

.cap-hero h1 {
    max-width: 13ch;
}

.cap-hero__lead {
    max-width: 38rem;
    margin-top: 1.3rem;
    font-size: 1.08rem;
}

.cap-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.7rem;
}

.cap-hero__seo {
    max-width: 38rem;
    margin-top: 1.6rem;
    color: var(--oy-text-soft);
    font-size: 0.92rem;
}

.cap-type {
    position: relative;
    min-height: 22rem;
    overflow: hidden;
    padding: 1.4rem 0.4rem 1.6rem;
}

.cap-type__word {
    margin: 0;
    font-family: var(--oy-font-display);
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
    color: var(--oy-ink);
}

.cap-type__word--1 { margin-left: 0; }
.cap-type__word--2 { margin-left: 12%; color: var(--oy-violet); }
.cap-type__word--3 { margin-left: 4%; }
.cap-type__word--4 {
    margin-left: 18%;
    background: var(--oy-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.cap-type__word--5 { margin-left: 8%; }
.cap-type__word--6 { margin-left: 22%; }

.cap-type__line {
    position: absolute;
    left: 8%;
    right: 6%;
    top: 46%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.55), transparent);
}

.cap-type__field {
    position: absolute;
    right: -8%;
    bottom: -18%;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 68%);
    pointer-events: none;
}

.cap-chapter {
    padding-block: clamp(3.4rem, 7vw, 6.2rem);
}

.cap-chapter:nth-child(even) {
    background: var(--oy-surface-soft);
}

.cap-chapter:nth-child(3) {
    background: #f3f0e8;
}

.cap-chapter:nth-child(5) {
    background: var(--oy-stone);
}

.cap-chapter__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(14rem, 0.75fr);
    gap: clamp(2rem, 5vw, 5.5rem);
    align-items: center;
}

.cap-chapter--reverse .cap-chapter__layout {
    grid-template-columns: minmax(14rem, 0.75fr) minmax(0, 1.15fr);
}

.cap-chapter--reverse .cap-chapter__copy {
    order: 2;
}

.cap-chapter--reverse .cap-motif {
    order: 1;
}

.cap-chapter__num {
    font-family: var(--oy-font-display);
    font-size: clamp(3.4rem, 8vw, 6.2rem);
    line-height: 0.8;
    letter-spacing: -0.04em;
    background: var(--oy-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cap-chapter h2 {
    max-width: 14ch;
    margin-top: 0.7rem;
    font-size: clamp(2.2rem, 4.4vw, 3.4rem);
}

.cap-chapter__thesis {
    max-width: 24rem;
    margin-top: 1.1rem;
    color: var(--oy-ink);
    font-size: 1.18rem;
    font-weight: var(--oy-fw-semibold);
}

.cap-chapter__copy > p:not(.cap-chapter__num):not(.cap-chapter__thesis) {
    max-width: 38rem;
    margin-top: 1rem;
}

.cap-helps {
    margin-top: 1.8rem;
    max-width: 32rem;
}

.cap-helps h3 {
    margin-bottom: 0.7rem;
    font-family: var(--oy-font-body);
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cap-helps ul {
    display: grid;
    gap: 0.45rem;
}

.cap-helps li {
    padding-left: 0.9rem;
    border-left: 2px solid rgba(124, 58, 237, 0.35);
}

.cap-motif {
    position: relative;
    min-height: 18rem;
    padding: 1.6rem 1.2rem;
    overflow: hidden;
}

.cap-motif p {
    margin: 0;
    font-family: var(--oy-font-display);
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
    color: rgba(26, 24, 22, 0.12);
}

.cap-motif p:nth-child(2) {
    margin-left: 10%;
    background: var(--oy-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cap-motif p:nth-child(3) {
    margin-left: 22%;
}

.cap-motif::after {
    content: "";
    position: absolute;
    inset: auto 8% 12% 18%;
    height: 1px;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.45), rgba(37, 99, 235, 0.15));
}

.cap-chapter--reverse .cap-motif p:nth-child(2),
.cap-chapter--reverse .cap-motif p:nth-child(3) {
    margin-left: 0;
    margin-right: 12%;
    text-align: right;
}

.cap-finance {
    padding-block: clamp(3.6rem, 7vw, 6rem);
    background: var(--oy-midnight-2);
    color: #f3efe6;
}

.cap-finance h2 {
    max-width: 14ch;
    color: #f8f4ec;
}

.cap-finance p:not(.eyebrow) {
    max-width: 38rem;
    margin: 1.1rem 0 1.7rem;
    color: #b4bcd0;
}

@media (max-width: 1100px) {
    .cap-hero__layout,
    .cap-chapter__layout,
    .cap-chapter--reverse .cap-chapter__layout {
        grid-template-columns: 1fr;
    }

    .cap-hero h1,
    .cap-chapter h2 {
        max-width: none;
    }

    .cap-chapter--reverse .cap-chapter__copy,
    .cap-chapter--reverse .cap-motif {
        order: 0;
    }

    .cap-type {
        min-height: 0;
        padding-top: 0.4rem;
    }
}

@media (max-width: 640px) {
    .cap-hero__actions {
        display: grid;
    }

    .cap-hero__actions .btn {
        width: 100%;
    }
}
