/* Shared CRO-focused design system for service landing pages */
.cx-service-page {
    --cx-bg: #f8f9fa;
    --cx-surface: #ffffff;
    --cx-surface-strong: #eef3f7;
    --cx-heading: #0b0b26;
    --cx-text: #2d3e4a;
    --cx-text-muted: #505050;
    --cx-border: #d5dde6;
    --cx-accent: #2f5f7a;
    --cx-accent-soft: #e7f0f7;
    --cx-accent-ink: #0d3a52;
    --cx-brand: #003049;
    --cx-success: #1f6d54;
    --cx-shadow: 0 14px 30px rgba(6, 31, 47, 0.1);
    --cx-radius-lg: 1.35rem;
    --cx-radius-md: 1rem;
    --cx-section-space: clamp(3.5rem, 6vw, 6.8rem);
    background:
        radial-gradient(130rem 70rem at -15% -10%, rgba(0, 48, 73, 0.08), transparent 50%),
        radial-gradient(90rem 52rem at 120% 0%, rgba(0, 48, 73, 0.06), transparent 45%),
        var(--cx-bg);
    color: var(--cx-text);
    font-family: "Noto Sans", "Segoe UI", sans-serif;
    overflow: clip;
    display: flow-root;
    padding-bottom: clamp(1rem, 2.2vw, 2.1rem);
}

.cx-service-page,
.cx-service-page *,
.cx-service-page *::before,
.cx-service-page *::after {
    box-sizing: border-box;
}

/* Prevent global header styles from style.min.css from leaking into section headers */
.cx-service-page header {
    position: static;
    top: auto;
    z-index: auto;
    background: transparent;
}

.cx-service-page--sale {
    --cx-bg: #f8f9fa;
    --cx-sale-hero-space-top: clamp(2.3rem, 5.6vw, 4.8rem);
    --cx-sale-hero-space-bottom: clamp(1.5rem, 3.5vw, 2.8rem);
    --cx-sale-section-space: clamp(2rem, 4.5vw, 3.6rem);
    --cx-sale-final-gap: clamp(1.4rem, 3.4vw, 2.6rem);
}

.cx-service-page--sale .cx-hero {
    padding-block: var(--cx-sale-hero-space-top) var(--cx-sale-hero-space-bottom);
}

.cx-service-page--sale .cx-section {
    padding-block: var(--cx-sale-section-space);
}

.cx-service-page--sale .cx-final-cta {
    margin-block: var(--cx-sale-final-gap) 0;
}

.cx-service-page--rental .cx-hero {
    padding-block: var(--cx-sale-hero-space-top) var(--cx-sale-hero-space-bottom);
}

.cx-service-page--rental .cx-section {
    padding-block: var(--cx-sale-section-space);
}

.cx-service-page--rental .cx-final-cta {
    margin-block: var(--cx-sale-final-gap) 0;
}

.cx-service-page--valuation .cx-hero {
    padding-block: var(--cx-sale-hero-space-top) var(--cx-sale-hero-space-bottom);
}

.cx-service-page--valuation .cx-section {
    padding-block: var(--cx-sale-section-space);
}

.cx-service-page--valuation .cx-final-cta {
    margin-block: var(--cx-sale-final-gap) 0;
}

.cx-service-page--consulting .cx-hero {
    padding-block: var(--cx-sale-hero-space-top) var(--cx-sale-hero-space-bottom);
}

.cx-service-page--consulting .cx-section {
    padding-block: var(--cx-sale-section-space);
}

.cx-service-page--consulting .cx-final-cta {
    margin-block: var(--cx-sale-final-gap) 0;
}

.cx-service-page--rental {
    --cx-bg: #f5f8f8;
    --cx-accent: #2f6a5e;
    --cx-accent-soft: #e3f1ed;
    --cx-accent-ink: #16473b;
    --cx-sale-hero-space-top: clamp(2.3rem, 5.6vw, 4.8rem);
    --cx-sale-hero-space-bottom: clamp(1.5rem, 3.5vw, 2.8rem);
    --cx-sale-section-space: clamp(2rem, 4.5vw, 3.6rem);
    --cx-sale-final-gap: clamp(1.4rem, 3.4vw, 2.6rem);
}

.cx-service-page--valuation {
    --cx-bg: #f4f8fc;
    --cx-accent: #2a648b;
    --cx-accent-soft: #e3eff7;
    --cx-accent-ink: #093d5c;
    --cx-sale-hero-space-top: clamp(2.3rem, 5.6vw, 4.8rem);
    --cx-sale-hero-space-bottom: clamp(1.5rem, 3.5vw, 2.8rem);
    --cx-sale-section-space: clamp(2rem, 4.5vw, 3.6rem);
    --cx-sale-final-gap: clamp(1.4rem, 3.4vw, 2.6rem);
}

.cx-service-page--consulting {
    --cx-bg: #f8f7f3;
    --cx-accent: #7b5b38;
    --cx-accent-soft: #efe6d9;
    --cx-accent-ink: #4b351e;
    --cx-sale-hero-space-top: clamp(2.3rem, 5.6vw, 4.8rem);
    --cx-sale-hero-space-bottom: clamp(1.5rem, 3.5vw, 2.8rem);
    --cx-sale-section-space: clamp(2rem, 4.5vw, 3.6rem);
    --cx-sale-final-gap: clamp(1.4rem, 3.4vw, 2.6rem);
}

.cx-shell {
    width: min(100% - clamp(1rem, 4vw, 4rem), 79rem);
    margin-inline: auto;
}

.cx-hero {
    position: relative;
    padding-block: clamp(2.8rem, 7vw, 6rem) clamp(2.4rem, 5vw, 4.2rem);
}

.cx-hero-layout {
    display: grid;
    gap: clamp(1.4rem, 3vw, 2.6rem);
    align-items: stretch;
}

.cx-hero-copy {
    align-self: center;
}

.cx-eyebrow {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--cx-accent-soft);
    color: var(--cx-accent-ink);
    font-weight: 700;
    letter-spacing: 0.03em;
    font-size: clamp(0.74rem, 1.6vw, 0.86rem);
    text-transform: uppercase;
    display: none;
}

.cx-hero-title {
    margin: 0 0 0.85rem;
    font-family: "Noto Serif", Georgia, serif;
    font-size: clamp(2rem, 5.2vw, 3.4rem);
    line-height: 1.08;
    color: var(--cx-heading);
    text-wrap: balance;
}

.cx-lead {
    margin: 0;
    max-width: 61ch;
    color: var(--cx-text-muted);
    line-height: 1.72;
    font-size: clamp(1rem, 2.3vw, 1.18rem);
}

.cx-checklist {
    margin: 1.4rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.cx-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: var(--cx-heading);
    line-height: 1.5;
    font-size: clamp(0.95rem, 1.9vw, 1.02rem);
}

.cx-checklist li::before {
    content: "";
    inline-size: 0.65rem;
    block-size: 0.65rem;
    border-radius: 999px;
    margin-top: 0.45rem;
    flex-shrink: 0;
    background: var(--cx-brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--cx-brand) 16%, white);
}

.cx-cta-group {
    margin-top: 1.65rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: stretch;
}

.cx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    border: 1px solid transparent;
    border-radius: 0.82rem;
    text-decoration: none;
    font-weight: 700;
    padding: 0.88rem 1.15rem;
    line-height: 1.2;
    font-size: clamp(0.95rem, 2vw, 1.02rem);
    transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.cx-btn--primary {
    background: var(--cx-brand);
    color: #ffffff;
    box-shadow: 0 10px 18px color-mix(in srgb, var(--cx-brand) 34%, transparent);
}

.cx-btn--ghost {
    border-color: var(--cx-border);
    background: #ffffff;
    color: var(--cx-heading);
}

.cx-btn:hover,
.cx-btn:focus-visible {
    transform: translateY(-2px);
}

.cx-btn--primary:hover,
.cx-btn--primary:focus-visible {
    background: color-mix(in srgb, var(--cx-brand) 88%, black);
    box-shadow: 0 14px 24px color-mix(in srgb, var(--cx-brand) 40%, transparent);
}

.cx-btn--ghost:hover,
.cx-btn--ghost:focus-visible {
    border-color: var(--cx-accent);
    color: var(--cx-accent-ink);
}

.cx-btn:focus-visible,
.cx-faq-trigger:focus-visible,
.cx-link-inline:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--cx-brand) 40%, white);
    outline-offset: 2px;
}

.cx-inline-proof {
    margin-top: 1.15rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
    color: var(--cx-text-muted);
    font-size: 0.92rem;
}

.cx-inline-proof strong {
    color: var(--cx-heading);
}

.cx-hero-media {
    position: relative;
    border-radius: var(--cx-radius-lg);
    overflow: hidden;
    min-height: 16rem;
    box-shadow: var(--cx-shadow);
    isolation: isolate;
}

.cx-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cx-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 19, 28, 0.08), rgba(7, 19, 28, 0.44));
}

.cx-floating-stat {
    position: absolute;
    left: clamp(0.9rem, 3vw, 1.4rem);
    right: clamp(0.9rem, 3vw, 1.4rem);
    bottom: clamp(0.9rem, 3vw, 1.4rem);
    z-index: 1;
    padding: 0.9rem 1rem;
    border-radius: 0.8rem;
    background: color-mix(in srgb, white 88%, transparent);
    backdrop-filter: blur(3px);
    color: var(--cx-heading);
    font-weight: 600;
    line-height: 1.45;
    font-size: 0.92rem;
}

.cx-metrics {
    padding-bottom: clamp(2.6rem, 5.6vw, 4rem);
}

.cx-metric-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.82rem;
}

.cx-metric {
    border: 1px solid var(--cx-border);
    border-radius: 0.95rem;
    background: color-mix(in srgb, #ffffff 90%, var(--cx-accent-soft));
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.cx-metric h3 {
    margin: 0;
    color: var(--cx-heading);
    font-size: clamp(1.3rem, 4vw, 1.9rem);
    font-family: "Noto Serif", Georgia, serif;
}

.cx-metric p {
    margin: 0.3rem 0 0;
    color: var(--cx-text-muted);
    font-size: 0.95rem;
}

.cx-section {
    padding-block: clamp(2.8rem, 6vw, 5rem);
}

.cx-section--tint {
    background: linear-gradient(
        140deg,
        color-mix(in srgb, var(--cx-accent-soft) 52%, white) 0%,
        color-mix(in srgb, var(--cx-bg) 82%, white) 100%
    );
}

.cx-section-head {
    max-width: 50rem;
    margin-bottom: clamp(1.3rem, 3vw, 2rem);
    background: transparent;
}

.cx-section-kicker {
    margin: 0;
    color: var(--cx-brand);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    font-size: 0.76rem;
}

.cx-section-title {
    margin: 0.45rem 0 0.65rem;
    font-family: "Noto Serif", Georgia, serif;
    color: var(--cx-heading);
    font-size: clamp(1.58rem, 4.2vw, 2.38rem);
    text-wrap: balance;
}

.cx-section-copy {
    margin: 0;
    color: var(--cx-text-muted);
    line-height: 1.68;
    font-size: clamp(0.98rem, 2.1vw, 1.06rem);
}

.cx-process-grid,
.cx-feature-grid,
.cx-proof-grid,
.cx-faq-grid {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

/* Service detail pages reuse .faq-grid markup from style.min.css; keep it left aligned here. */
.cx-service-page .faq-grid {
    width: 100%;
    max-width: none;
    margin: 0;
}

.cx-service-page .faq-item {
    width: 100%;
}

.cx-process-card,
.cx-feature-card,
.cx-proof-card,
.cx-faq-item {
    border: 1px solid var(--cx-border);
    border-radius: var(--cx-radius-md);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(10, 30, 44, 0.06);
    position: relative;
    overflow: hidden;
}

.cx-faq-item {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: box-shadow 220ms ease, border-color 220ms ease;
}

.cx-faq-item:hover {
    border-color: color-mix(in srgb, var(--cx-accent) 40%, var(--cx-border));
    box-shadow: 0 16px 26px rgba(10, 30, 44, 0.11);
}

.cx-process-card,
.cx-feature-card,
.cx-proof-card {
    padding: 1rem;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.cx-process-card:hover,
.cx-feature-card:hover,
.cx-proof-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--cx-accent) 40%, var(--cx-border));
    box-shadow: 0 16px 26px rgba(10, 30, 44, 0.11);
}

.cx-step-number {
    display: inline-grid;
    place-items: center;
    inline-size: 2rem;
    block-size: 2rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--cx-brand) 12%, white);
    color: var(--cx-brand);
    font-family: "Noto Serif", Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
}

.cx-process-card h3,
.cx-feature-card h3,
.cx-proof-card h3 {
    margin: 0.85rem 0 0.5rem;
    color: var(--cx-heading);
    font-size: 1.1rem;
}

.cx-process-card p,
.cx-feature-card p,
.cx-proof-card p {
    margin: 0;
    color: var(--cx-text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.cx-proof-card blockquote {
    margin: 0;
}

.cx-proof-card::after,
.cx-metric::after {
    content: "";
    position: absolute;
    right: -1.8rem;
    bottom: -2.4rem;
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--cx-accent-soft) 62%, transparent);
    opacity: 0.5;
    pointer-events: none;
    transition: transform 360ms ease, opacity 360ms ease;
}

.cx-proof-card:hover::after,
.cx-metric:hover::after {
    transform: translate3d(-0.4rem, -0.35rem, 0);
    opacity: 0.75;
}

.cx-proof-meta {
    margin-top: 0.7rem;
    color: var(--cx-heading);
    font-size: 0.88rem;
    font-weight: 700;
}

.cx-proof-result {
    margin-top: 0.62rem;
    display: inline-flex;
    align-items: flex-start;
    gap: 0.35rem;
    max-width: 100%;
    padding: 0.42rem 0.88rem;
    border-radius: 0.88rem;
    background: color-mix(in srgb, var(--cx-accent-soft) 84%, white);
    color: var(--cx-accent-ink);
    font-size: 0.83rem;
    font-weight: 700;
    line-height: 1.38;
    text-wrap: pretty;
}

.cx-faq-trigger {
    width: 100%;
    border: 0;
    border-radius: var(--cx-radius-md);
    background: transparent;
    text-align: left;
    padding: 1rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: flex-start;
    color: var(--cx-heading);
    font: inherit;
    font-weight: 700;
    line-height: 1.32;
    cursor: pointer;
    min-height: 60px;
    transition: background-color 220ms ease;
}

.cx-faq-trigger:focus-visible {
    outline: 2px solid var(--cx-brand);
    outline-offset: 0;
}

.cx-faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1ch;
    flex-shrink: 0;
    line-height: 1.32;
    margin-top: 0;
    color: var(--cx-accent-ink);
    transition: color 220ms ease;
}

.cx-faq-symbol {
    display: inline-block;
    width: 1ch;
    text-align: center;
    line-height: 1;
    font-size: 0;
    transform: none;
}

.cx-faq-symbol::before {
    content: "+";
    display: block;
    font-size: 2.05rem;
    font-weight: 500;
    line-height: 1;
}

.cx-faq-item.is-open .cx-faq-symbol::before {
    content: "-";
}

.cx-faq-item.is-open .cx-faq-icon {
    color: var(--cx-brand);
}

.cx-faq-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 1rem;
    transition: max-height 400ms cubic-bezier(0.4, 0, 0.2, 1), opacity 300ms ease, padding 300ms ease;
    visibility: hidden;
}

.cx-faq-item.is-open .cx-faq-panel {
    max-height: 2000px;
    opacity: 1;
    visibility: visible;
    padding: 0 1rem 1rem;
    transition: max-height 600ms cubic-bezier(0.4, 0, 0.2, 1), opacity 400ms ease, padding 400ms ease, visibility 0ms;
}

.cx-faq-panel p {
    margin: 0;
    color: var(--cx-text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.cx-faq-panel p {
    margin: 0;
    color: var(--cx-text-muted);
    line-height: 1.66;
    font-size: 0.95rem;
}

.cx-final-cta {
    margin-block: clamp(2.2rem, 5.2vw, 4rem) 0;
}

.cx-final-card {
    border: 1px solid color-mix(in srgb, var(--cx-brand) 26%, var(--cx-border));
    border-radius: var(--cx-radius-lg);
    background: linear-gradient(145deg, color-mix(in srgb, var(--cx-accent-soft) 72%, white), #ffffff);
    box-shadow: var(--cx-shadow);
    padding: clamp(1.3rem, 3vw, 2.25rem);
}

.cx-final-card h2 {
    margin: 0;
    color: var(--cx-heading);
    font-family: "Noto Serif", Georgia, serif;
    font-size: clamp(1.45rem, 4vw, 2.15rem);
}

.cx-final-card p {
    margin: 0.75rem 0 0;
    color: var(--cx-text-muted);
    line-height: 1.7;
    max-width: 63ch;
}

.cx-final-actions {
    margin-top: 1.3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cx-link-inline {
    color: var(--cx-accent-ink);
    font-weight: 700;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2rem;
    display: none;
}

@media (max-width: 47.99rem) {
    .cx-shell {
        width: min(100% - 1.5rem, 38rem);
    }

    .cx-hero {
        padding-block: 1.35rem 2rem;
    }

    .cx-hero-layout {
        gap: 1rem;
    }

    .cx-hero-media {
        min-height: 13.3rem;
    }

    .cx-floating-stat {
        left: 0.65rem;
        right: 0.65rem;
        bottom: 0.65rem;
        padding: 0.65rem 0.75rem;
        font-size: 0.82rem;
        line-height: 1.38;
    }

    .cx-cta-group,
    .cx-final-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.6rem;
        width: 100%;
    }

    .cx-btn {
        width: 100%;
        min-width: 0;
        white-space: normal;
        word-break: break-word;
    }

    .cx-hero-copy,
    .cx-hero-media,
    .cx-final-card,
    .cx-process-card,
    .cx-feature-card,
    .cx-proof-card {
        min-width: 0;
    }

    .cx-inline-proof {
        margin-top: 0.95rem;
        font-size: 0.86rem;
    }

    .cx-section {
        padding-block: 2.05rem;
    }

    .cx-section-head {
        margin-bottom: 1.15rem;
    }

    .cx-section-title {
        font-size: clamp(1.42rem, 7vw, 1.9rem);
        line-height: 1.15;
    }

    .cx-section-copy {
        font-size: 0.97rem;
    }

    .cx-process-grid,
    .cx-feature-grid,
    .cx-proof-grid,
    .cx-faq-grid {
        gap: 0.72rem;
    }

    .cx-process-card,
    .cx-feature-card,
    .cx-proof-card {
        padding: 1.02rem;
    }

    .cx-metric {
        padding: 1.05rem;
    }

    .cx-proof-result {
        display: flex;
        width: 100%;
        padding: 0.58rem 0.86rem;
        border-radius: 0.82rem;
        line-height: 1.42;
    }

    .cx-faq-trigger {
        padding: 1.05rem;
        min-height: 65px;
    }

    .cx-faq-panel {
        padding: 0 1.05rem;
    }

    .cx-faq-item.is-open .cx-faq-panel {
        padding: 0 1.05rem 1.05rem;
    }

    .cx-final-card {
        padding: 1.1rem;
    }

    .cx-service-page--sale .cx-hero {
        padding-block: 1.15rem 1.4rem;
    }

    .cx-service-page--sale .cx-section {
        padding-block: 1.45rem;
    }

    .cx-service-page--sale .cx-final-cta {
        margin-block: 1.1rem 0;
    }

    .cx-service-page--rental .cx-hero {
        padding-block: 1.15rem 1.4rem;
    }

    .cx-service-page--rental .cx-section {
        padding-block: 1.45rem;
    }

    .cx-service-page--rental .cx-final-cta {
        margin-block: 1.1rem 0;
    }

    .cx-service-page--valuation .cx-hero {
        padding-block: 1.15rem 1.4rem;
    }

    .cx-service-page--valuation .cx-section {
        padding-block: 1.45rem;
    }

    .cx-service-page--valuation .cx-final-cta {
        margin-block: 1.1rem 0;
    }

    .cx-service-page--consulting .cx-hero {
        padding-block: 1.15rem 1.4rem;
    }

    .cx-service-page--consulting .cx-section {
        padding-block: 1.45rem;
    }

    .cx-service-page--consulting .cx-final-cta {
        margin-block: 1.1rem 0;
    }

    /* Hero elements are already in the viewport on page load.
       Skip the data-reveal animation so the image doesn't shift
       during the first scroll (browser chrome collapse / CLS). */
    .cx-service-page.is-animated .prd-hero-copy[data-reveal],
    .cx-service-page.is-animated .prd-hero-visual[data-reveal] {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
        will-change: auto;
    }
}

.cx-service-page.is-animated [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.985);
    filter: blur(2px);
    transition: opacity 300ms ease-out, transform 300ms ease-out, filter 300ms ease-out;
    will-change: transform, opacity, filter;
}

.cx-service-page.is-animated [data-reveal][data-reveal-style="left"] {
    transform: translate3d(-26px, 16px, 0) scale(0.982);
}

.cx-service-page.is-animated [data-reveal][data-reveal-style="right"] {
    transform: translate3d(26px, 16px, 0) scale(0.982);
}

.cx-service-page.is-animated [data-reveal][data-reveal-style="lift"] {
    transform: translate3d(0, 22px, 0) scale(0.988);
}

.cx-service-page.is-animated [data-reveal][data-reveal-style="zoom"] {
    transform: translate3d(0, 14px, 0) scale(0.955);
}

.cx-service-page.is-animated [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

@keyframes cxBubbleFloatA {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -4px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@keyframes cxBubbleFloatB {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -3px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

.cx-proof-card.is-visible::after {
    animation: cxBubbleFloatA 6.2s ease-in-out infinite;
}

.cx-proof-grid .cx-proof-card:nth-child(2n).is-visible::after,
.cx-metric.is-visible::after {
    animation: cxBubbleFloatB 7s ease-in-out infinite;
}

.cx-proof-card:hover::after,
.cx-metric:hover::after {
    animation-play-state: paused;
}

@media (min-width: 48rem) {
    .cx-hero-layout {
        grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    }

    .cx-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cx-process-grid,
    .cx-feature-grid,
    .cx-proof-grid,
    .cx-faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 64rem) {
    .cx-shell {
        width: min(100% - clamp(2rem, 5vw, 5rem), 84rem);
    }

    .cx-hero {
        padding-block: clamp(3.2rem, 8vw, 6.4rem) clamp(2.7rem, 7vw, 4.6rem);
    }

    .cx-hero-layout {
        gap: clamp(2rem, 2.6vw, 2.8rem);
    }

    .cx-metric-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .cx-process-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .cx-feature-grid,
    .cx-proof-grid,
    .cx-faq-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 90rem) {
    .cx-shell {
        width: min(100% - 8rem, 92rem);
    }

    .cx-hero-title {
        max-width: 18ch;
    }

    .cx-hero-media {
        min-height: 28rem;
    }

    .cx-section-head {
        margin-bottom: 2.35rem;
    }
}

@media (min-width: 120rem) {
    .cx-shell {
        width: min(100% - 10rem, 106rem);
    }

    .cx-hero-layout {
        grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    }

    .cx-hero-media {
        min-height: 31rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .cx-btn,
    .cx-process-card,
    .cx-feature-card,
    .cx-proof-card,
    .cx-metric,
    [data-reveal] {
        transition: none !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
    }

    [data-reveal] {
        opacity: 1;
    }

    .cx-proof-card::after,
    .cx-metric::after {
        animation: none !important;
        transform: none !important;
    }
}

/* ============================================================
   Mobile hero stability — service detail pages
   Prevents the hero image from shifting / stretching on the
   first scroll on mobile (browser-chrome collapse, reveal
   transitions, image-decode reflow). Applied to all
   .cx-service-page templates that use the .prd-hero layout.
   ============================================================ */
@media (max-width: 47.99rem) {
    .cx-service-page {
        overflow-x: clip;
    }

    .cx-service-page .prd-hero {
        contain: layout paint;
    }

    .cx-service-page .prd-hero-visual {
        contain: layout paint;
        transform: translateZ(0);
        backface-visibility: hidden;
        will-change: auto;
    }

    .cx-service-page .prd-hero-visual img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        transform: translateZ(0);
        backface-visibility: hidden;
        image-rendering: -webkit-optimize-contrast;
    }

    /* Hero copy/visual are above the fold; never animate them on
       mobile — eliminates intersection-observer jitter that
       triggered the perceived "shift" on the first scroll. */
    .cx-service-page.is-animated .prd-hero-copy[data-reveal],
    .cx-service-page.is-animated .prd-hero-visual[data-reveal],
    .cx-service-page.is-animated .prd-hero-copy[data-reveal].is-visible,
    .cx-service-page.is-animated .prd-hero-visual[data-reveal].is-visible {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
        will-change: auto !important;
    }
}
