/* =========================================================
   OPSREVIVE AGENCIES
   EDITORIAL DESIGN TEST
   ========================================================= */

.or-page--agencies {
    --agency-ink: #111315;
    --agency-text: #34393c;
    --agency-muted: #707679;

    --agency-canvas: #f5f5f1;
    --agency-soft: #fafaf7;
    --agency-white: #ffffff;

    --agency-line: #d9dcda;
    --agency-line-dark: #c6cac7;

    --agency-signal: #20c763;
}


/* =========================================================
   STACKED SECTIONS
   ========================================================= */

@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {

    .or-page--agencies {
        position: relative;
        isolation: isolate;
    }

    .or-page--agencies .agency-scroll-panel {
        position: sticky;
        top: 0;

        min-height: 100vh;
        min-height: 100svh;

        display: flex;
        align-items: center;

        transform: none !important;

        contain: paint;

        border-radius: 0;
    }

    .or-page--agencies
    .agency-scroll-panel > .or-shell {
        width: min(1240px, calc(100% - 64px));

        flex: 0 0 auto;
    }

    .or-page--agencies
    .agency-scroll-panel:nth-of-type(1) {
        z-index: 21;
    }

    .or-page--agencies
    .agency-scroll-panel:nth-of-type(2) {
        z-index: 22;
    }

    .or-page--agencies
    .agency-scroll-panel:nth-of-type(3) {
        z-index: 23;
    }

    .or-page--agencies
    .agency-scroll-panel:nth-of-type(4) {
        z-index: 24;
    }

    .or-page--agencies
    .agency-scroll-panel:nth-of-type(5) {
        z-index: 25;
    }

    .or-page--agencies
    .agency-scroll-panel:nth-of-type(6) {
        z-index: 26;
    }

    .or-page--agencies
    .agency-scroll-panel:nth-of-type(7) {
        z-index: 27;
    }

}


/* =========================================================
   CANVAS
   ========================================================= */

.or-page--agencies .or-hero {
    background: var(--agency-canvas);
}

.or-page--agencies .or-section--white {
    background: var(--agency-white);
}

.or-page--agencies .or-section--soft {
    background: var(--agency-soft);
}

.or-page--agencies .or-final {
    background: var(--agency-ink);
}


/* =========================================================
   HERO
   ========================================================= */

.or-page--agencies .or-hero__content {
    max-width: 1060px;
}

.or-page--agencies .or-hero h1 {
    max-width: 1060px;

    color: var(--agency-ink);

    font-size: clamp(4.5rem, 6.7vw, 7.15rem);
    font-weight: 690;

    line-height: .96;
    letter-spacing: -.058em;

    text-wrap: balance;
}

.or-page--agencies .or-hero__lead {
    max-width: 680px;

    margin-top: 36px;

    color: var(--agency-text);

    font-size: 1.32rem;
    line-height: 1.55;
}


/* =========================================================
   BUTTON LANGUAGE
   ========================================================= */

.or-page--agencies .or-button {
    min-height: 54px;

    padding: 0 24px;

    border-radius: 999px;

    font-size: .96rem;
    font-weight: 680;

    box-shadow: none;

    transition:
        background-color .16s ease,
        color .16s ease,
        border-color .16s ease;
}

.or-page--agencies .or-button--primary {
    background: var(--agency-ink);
    border-color: var(--agency-ink);

    color: #fff;
}

.or-page--agencies .or-button--primary::after {
    content: none !important;

    margin-left: 12px;

    font-size: 1.08em;
}

.or-page--agencies .or-button--primary:hover {
    background: #2a2e30;
    border-color: #2a2e30;

    color: #fff;
}


/*
 * Secondary action behaves like a text action,
 * not another boxed CTA.
 */
.or-page--agencies .or-button--secondary {
    min-height: auto;

    padding: 10px 2px;

    border: 0;
    border-radius: 0;

    background: transparent;

    color: var(--agency-ink);

    font-weight: 620;
}

.or-page--agencies .or-button--secondary::after {
    content: none !important;
    margin-left: 8px;
}

.or-page--agencies .or-button--secondary:hover {
    background: transparent;
    color: #555b5e;
}


/* =========================================================
   SECTION TYPOGRAPHY
   ========================================================= */

.or-page--agencies .or-section {
    padding:
        clamp(100px, 9vw, 148px)
        0;
}

.or-page--agencies .or-section-head {
    max-width: 1000px;
}

.or-page--agencies .or-section-head h2,
.or-page--agencies .or-final h2 {
    max-width: 950px;

    margin: 0;

    color: var(--agency-ink);

    font-size: clamp(3.15rem, 4.8vw, 5rem);
    font-weight: 680;

    line-height: 1;
    letter-spacing: -.048em;

    text-wrap: balance;
}

.or-page--agencies
.or-section-head > p:not(.or-eyebrow) {
    max-width: 690px;

    margin-top: 28px;

    color: var(--agency-text);

    font-size: 1.17rem;
    line-height: 1.62;
}


/* =========================================================
   OPEN GRID
   No floating cards.
   ========================================================= */

.or-page--agencies .or-card-grid,
.or-page--agencies .or-card-grid--four {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    column-gap: clamp(42px, 6vw, 86px);
    row-gap: 0;

    margin-top: clamp(58px, 7vw, 92px);
}

.or-page--agencies .or-card {
    min-height: 0;

    padding:
        28px
        0
        34px;

    border: 0;
    border-top:
        1px solid
        var(--agency-line);

    border-radius: 0;

    background: transparent;

    box-shadow: none;

    transition: none;
}

.or-page--agencies .or-card:hover {
    border-top-color: var(--agency-line-dark);

    background: transparent;

    box-shadow: none;

    transform: none;
}

.or-page--agencies .or-card::before {
    display: none !important;
    content: none !important;
}

.or-page--agencies .or-card h3 {
    max-width: 440px;

    margin: 0 0 14px;

    color: var(--agency-ink);

    font-size: clamp(1.3rem, 1.6vw, 1.55rem);
    font-weight: 670;

    line-height: 1.22;
    letter-spacing: -.022em;
}

.or-page--agencies .or-card p {
    max-width: 500px;

    margin: 0;

    color: var(--agency-muted);

    font-size: 1.06rem;
    line-height: 1.62;
}


/* =========================================================
   PROCESS
   ========================================================= */

.or-page--agencies .or-process {
    counter-reset: agency-step;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 0;

    margin-top: clamp(62px, 7vw, 96px);

    border-top:
        1px solid
        var(--agency-line);
}

.or-page--agencies .or-process__item {
    counter-increment: agency-step;

    position: relative;

    min-width: 0;

    padding:
        34px
        clamp(26px, 3vw, 46px)
        10px
        0;

    border: 0;
    border-radius: 0;

    background: transparent;

    box-shadow: none;
}

.or-page--agencies
.or-process__item + .or-process__item {
    padding-left:
        clamp(26px, 3vw, 46px);

    border-left:
        1px solid
        var(--agency-line);
}

.or-page--agencies
.or-process__item::before {
    content:
        "0"
        counter(agency-step);

    display: block;

    margin-bottom: 58px;

    color: var(--agency-signal);

    font-size: .82rem;
    font-weight: 760;

    line-height: 1;

    letter-spacing: .08em;
}

.or-page--agencies
.or-process__item::after {
    display: none !important;
    content: none !important;
}

.or-page--agencies .or-process__item strong {
    display: block;

    color: var(--agency-ink);

    font-size: 1.34rem;
    font-weight: 670;

    line-height: 1.2;
    letter-spacing: -.022em;
}

.or-page--agencies .or-process__item p {
    max-width: 310px;

    margin-top: 13px;

    color: var(--agency-muted);

    font-size: 1.04rem;
    line-height: 1.62;
}


/* =========================================================
   SMALL SIGNAL DETAILS
   ========================================================= */

.or-page--agencies
.or-section--soft
.or-card:first-child {
    position: relative;
}

.or-page--agencies
.or-section--soft
.or-card:first-child::after {
    content: "";

    position: absolute;

    top: -4px;
    left: 0;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--agency-signal);
}


/* =========================================================
   FINAL
   One deliberate dark moment.
   ========================================================= */

.or-page--agencies .or-final {
    padding:
        clamp(110px, 10vw, 160px)
        0;
}

.or-page--agencies .or-final h2 {
    color: #fff;
}

.or-page--agencies
.or-final .or-button--primary {
    margin-top: 42px;

    background: #fff;
    border-color: #fff;

    color: var(--agency-ink);
}

.or-page--agencies
.or-final .or-button--primary:hover {
    background: #e9ebe8;
    border-color: #e9ebe8;

    color: var(--agency-ink);
}


/* =========================================================
   MOBILE / TABLET
   Normal document flow.
   ========================================================= */

@media (max-width: 900px) {

    .or-page--agencies .agency-scroll-panel {
        position: relative !important;

        top: auto !important;

        min-height: 0 !important;

        transform: none !important;
    }

    .or-page--agencies .or-card-grid,
    .or-page--agencies .or-card-grid--four {
        grid-template-columns: 1fr;
    }

    .or-page--agencies .or-process {
        grid-template-columns: 1fr;
    }

    .or-page--agencies
    .or-process__item {
        padding:
            30px
            0
            34px !important;

        border-left: 0 !important;
        border-bottom:
            1px solid
            var(--agency-line);
    }

    .or-page--agencies
    .or-process__item::before {
        margin-bottom: 28px;
    }

}


@media (max-width: 700px) {

    .or-page--agencies .or-hero h1 {
        font-size:
            clamp(3rem, 13vw, 4rem);

        line-height: .99;

        letter-spacing: -.045em;
    }

    .or-page--agencies .or-hero__lead {
        margin-top: 25px;

        font-size: 1.08rem;
        line-height: 1.58;
    }

    .or-page--agencies .or-section {
        padding:
            76px
            0 !important;
    }

    .or-page--agencies .or-section-head h2,
    .or-page--agencies .or-final h2 {
        font-size:
            clamp(2.45rem, 11vw, 3.25rem)
            !important;

        line-height: 1.03 !important;

        letter-spacing: -.036em !important;
    }

    .or-page--agencies .or-card-grid,
    .or-page--agencies .or-card-grid--four {
        margin-top: 48px;
    }

    .or-page--agencies .or-card {
        padding:
            24px
            0
            29px;
    }

    .or-page--agencies .or-card h3 {
        font-size: 1.28rem;
    }

    .or-page--agencies .or-card p {
        font-size: 1rem;
    }

    .or-page--agencies .or-actions {
        gap: 18px;
    }

}

/* =========================================================
   PROCESS CLEANUP TEST
   ========================================================= */

.or-page--agencies .or-process {
    counter-reset: none;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: clamp(48px, 6vw, 88px);

    margin-top: clamp(64px, 7vw, 92px);

    border-top: 0;
}

.or-page--agencies .or-process__item,
.or-page--agencies .or-process__item + .or-process__item {
    padding: 0;

    border: 0;

    background: transparent;
}

.or-page--agencies .or-process__item::before,
.or-page--agencies .or-process__item::after {
    content: none !important;
    display: none !important;
}

.or-page--agencies .or-process__item strong {
    font-size: clamp(1.45rem, 1.8vw, 1.8rem);

    font-weight: 660;

    line-height: 1.16;
    letter-spacing: -.025em;
}

.or-page--agencies .or-process__item p {
    max-width: 340px;

    margin-top: 15px;

    font-size: 1.06rem;
    line-height: 1.62;
}

@media (max-width: 900px) {

    .or-page--agencies .or-process {
        grid-template-columns: 1fr;

        gap: 38px;
    }

    .or-page--agencies .or-process__item,
    .or-page--agencies .or-process__item + .or-process__item {
        padding: 0 !important;

        border: 0 !important;
    }

}
