/* ==========================================================================
   Wronit — Case study single page
   ========================================================================== */

:root {
    --cs-ink: #020207;
    --cs-ink-2: #111118;
    --cs-muted: #5a5a68;
    --cs-line: #e6e6ea;
    --cs-soft: #f5f5f7;
    --cs-radius: 20px;
    --cs-nav-h: 64px;
    --cs-font: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --cs-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Header on dark hero ----------------------------------------------------- */
body.single-case_studies .main-header {
    height: auto !important;
    min-height: 85px !important;
    position: relative !important;
    background-color: var(--cs-ink) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    z-index: 999 !important;
    display: block !important;
}

body.single-case_studies .main-header header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    background-color: transparent !important;
    z-index: 999 !important;
    display: block !important;
}

body.single-case_studies .main-header-block {
    height: 85px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
}

body.single-case_studies .site-logo img.custom-logo {
    max-height: 48px !important;
    width: auto !important;
}

body.single-case_studies #mega-menu-wrap-primary-menu {
    background: transparent !important;
}

body.single-case_studies .mega-menu-link {
    font-size: 16px !important;
    font-weight: 500 !important;
}

body.single-case_studies .contact-btn .btn {
    background-color: #ffffff !important;
    color: var(--cs-ink) !important;
    border-radius: 8px !important;
    padding: 0 24px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* Base -------------------------------------------------------------------- */
.w-cs-wrapper {
    --ink: var(--cs-ink);
    --muted: var(--cs-muted);
    --line: var(--cs-line);
    --surface: #ffffff;
    font-family: var(--cs-font);
    color: var(--ink);
    background: #ffffff;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

.w-cs-wrapper *,
.w-cs-wrapper *::before,
.w-cs-wrapper *::after {
    box-sizing: border-box;
}

.w-cs-wrapper h1,
.w-cs-wrapper h2,
.w-cs-wrapper h3,
.w-cs-wrapper h4 {
    font-family: var(--cs-font);
}

.w-cs-block {
    scroll-margin-top: calc(var(--cs-nav-h) + 8px);
}

.csx-sec {
    position: relative;
    padding: 70px 0;
    background: var(--surface);
    color: var(--ink);
}

.w-cs-block.is-plain + .w-cs-block.is-plain > .csx-sec {
    padding-top: 0;
}

.w-cs-block.is-plain + .w-cs-block.is-plain > .csx-sec > .container {
    border-top: 1px solid var(--line);
    padding-top: 50px;
}

/* Custom section colours from ACF */
.w-cs-block.has-bg > section,
.w-cs-block.has-bg > div {
    background-color: var(--cs-bg) !important;
}

.w-cs-block.cs-on-dark {
    --ink: #ffffff;
    --muted: rgba(255, 255, 255, 0.72);
    --line: rgba(255, 255, 255, 0.14);
    --surface: transparent;
}

.w-cs-block.cs-on-light {
    --ink: var(--cs-ink);
    --muted: var(--cs-muted);
    --line: rgba(2, 2, 7, 0.1);
}

/* Section head ------------------------------------------------------------ */
.csx-split {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 72px;
    align-items: start;
}

.csx-aside {
    position: sticky;
    top: calc(var(--cs-nav-h) + 40px);
}

.csx-client .csx-aside,
.csx-outcomes .csx-aside,
.csx-sec--dark .csx-aside,
.csx-sec--highlight .csx-aside,
.csx-solution .csx-aside,
.csx-capabilities .csx-aside {
    position: static;
}

.csx-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.csx-eyebrow:empty {
    display: none;
}

.csx-no {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.csx-no::after {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.4;
}

.csx-title {
    font-size: clamp(28px, 2.9vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0;
    text-wrap: balance;
}

.csx-lead {
    font-size: clamp(18px, 1.5vw, 21px);
    line-height: 1.65;
    color: var(--ink);
    margin: 0;
    font-weight: 400;
    letter-spacing: -0.005em;
}

.csx-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--muted);
    margin: 0;
}

.csx-sub {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 80px 0 32px;
}

.csx-sub::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* Hero -------------------------------------------------------------------- */
.csx-hero {
    position: relative;
    isolation: isolate;
    background: var(--cs-ink);
    color: #ffffff;
    padding: 40px 0 168px;
    overflow: hidden;
}

.csx-hero-media {
    position: absolute;
    inset: 0 0 0 auto;
    width: 68%;
    z-index: -2;
    background-size: cover;
    background-position: center right;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 30%, #000 60%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 30%, #000 60%);
    opacity: 0.8;
}

.csx-hero.has-image .csx-hero-deco {
    background:
        radial-gradient(560px 380px at 84% 14%, rgba(255, 255, 255, 0.07), transparent 70%),
        linear-gradient(90deg, rgba(2, 2, 7, 0.92) 0%, rgba(2, 2, 7, 0.78) 38%, rgba(2, 2, 7, 0.2) 70%, rgba(2, 2, 7, 0) 100%),
        linear-gradient(0deg, rgba(2, 2, 7, 0.85) 0%, rgba(2, 2, 7, 0) 35%);
}

.csx-hero-deco {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(560px 380px at 84% 14%, rgba(255, 255, 255, 0.09), transparent 70%),
        radial-gradient(480px 340px at 66% 96%, rgba(140, 140, 170, 0.1), transparent 70%);
}

.csx-hero-deco::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 78% 40%, #000 10%, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 70% at 78% 40%, #000 10%, transparent 75%);
}

.csx-hero-deco::after {
    content: "";
    position: absolute;
    right: -6%;
    top: 46%;
    width: min(820px, 64vw);
    aspect-ratio: 1;
    transform: translateY(-50%);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 0, transparent 22%),
        repeating-radial-gradient(circle, transparent 0, transparent 69px, rgba(255, 255, 255, 0.09) 70px, transparent 71px);
    -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
    mask-image: radial-gradient(circle, #000 30%, transparent 70%);
}

.csx-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 72px;
}

.csx-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.csx-crumbs li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.csx-crumbs li + li::before {
    content: "/";
    opacity: 0.4;
}

.csx-crumbs a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.csx-crumbs a:hover {
    color: #ffffff;
}

.csx-crumbs .is-current {
    color: #ffffff;
    max-width: 360px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.csx-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.csx-read::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
}

.csx-hero-inner {
    width: 72%;
}

.csx-badge {
    display: inline-flex;
    padding: 7px 14px;
    margin-bottom: 26px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.csx-hero h1 {
    font-size: clamp(38px, 4.8vw, 66px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: #ffffff;
    margin: 0 0 26px;
    text-wrap: balance;
}

.csx-hero-sub {
    font-size: clamp(18px, 1.6vw, 22px);
    line-height: 1.5;
    font-weight: 500;
    color: #ffffff;
    margin: 0 0 20px;
    max-width: 880px;
}

.csx-hero-lead {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.72);
    max-width: 880px;
}

.csx-hero-lead p {
    margin: 0 0 14px;
}

.csx-hero-lead p:last-child {
    margin-bottom: 0;
}

.csx-meta {
    display: grid;
    grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
    margin: 44px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.csx-meta > div {
    padding: 20px 24px;
}

.csx-meta > div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.csx-meta dt {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 6px;
}

.csx-meta dd {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    color: #ffffff;
}

/* Stats panel ------------------------------------------------------------- */
.w-stats-overlap {
    position: relative;
    z-index: 20;
    display: flow-root;
    background: #ffffff;
    padding-bottom: 40px;
}

.w-stats-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    max-width: 880px;
    margin: -96px 0 0 auto;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 80px -32px rgba(2, 2, 7, 0.45), 0 0 0 1px rgba(2, 2, 7, 0.06);
    counter-reset: wstat;
}

.w-stat-box {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 28px 32px;
    counter-increment: wstat;
    transition: background-color 0.3s ease;
}

.w-stat-box + .w-stat-box,
.w-stat-info {
    border-left: 1px solid var(--cs-line);
}

.w-stat-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--cs-ink);
    transition: width 0.5s var(--cs-ease);
}

.w-stat-box:hover {
    background: #fafafa;
}

.w-stat-box:hover::before {
    width: 100%;
}

.w-stat-num {
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--cs-ink);
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
}

.w-stat-label {
    font-size: 14px;
    line-height: 1.5;
    color: var(--cs-muted);
}

.w-stats-row--text .w-stat-box::after {
    content: counter(wstat, decimal-leading-zero);
    order: -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--cs-ink);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.w-stats-row--text .w-stat-num {
    font-size: 19px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.w-stat-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 24px 26px;
    min-width: 300px;
}

.w-info-row {
    display: grid;
    grid-template-columns: 92px 1fr;
    align-items: start;
    gap: 12px;
}

.w-info-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cs-ink);
    padding-top: 4px;
}

.w-info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.w-info-tags span {
    font-size: 12px;
    font-weight: 500;
    color: var(--cs-ink);
    background: var(--cs-soft);
    border: 1px solid var(--cs-line);
    border-radius: 999px;
    padding: 3px 10px;
}

/* Sticky section menu ----------------------------------------------------- */
.csx-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    height: var(--cs-nav-h);
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--cs-line);
}

body.admin-bar .csx-nav {
    top: 32px;
}

.csx-nav .container {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

.csx-nav-label {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cs-muted);
}

.csx-nav-list {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 48px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 48px), transparent);
    padding: 0 24px 0 0;
}

.csx-nav-list li {
    list-style: none;
    margin: 0;
}

.csx-nav-list li::before,
.csx-nav-list li::after {
    content: none !important;
}

.csx-nav-list::-webkit-scrollbar {
    display: none;
}

.csx-nav-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--cs-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.csx-nav-list a span {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.55;
    font-variant-numeric: tabular-nums;
}

.csx-nav-list a:hover {
    color: var(--cs-ink);
    background: var(--cs-soft);
}

.csx-nav-list a.is-active {
    color: #ffffff;
    background: var(--cs-ink);
}

.csx-progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 100%;
    background: var(--cs-ink);
    transform: scaleX(0);
    transform-origin: 0 50%;
}

/* Client ------------------------------------------------------------------ */
.csx-client {
    --surface: var(--cs-soft);
}

.csx-client .csx-lead {
    font-size: clamp(20px, 1.8vw, 26px);
    line-height: 1.55;
    letter-spacing: -0.012em;
}

.csx-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.csx-facts dt {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.csx-facts dd {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}

/* Challenge points -------------------------------------------------------- */
.csx-points {
    list-style: none;
    margin: 40px 0 0;
    padding: 0;
    counter-reset: cspt;
    border-top: 1px solid var(--line);
}

.csx-points li {
    counter-increment: cspt;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 8px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted);
    transition: padding-left 0.35s var(--cs-ease);
}

.csx-points li::before {
    content: counter(cspt, decimal-leading-zero);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    padding-top: 3px;
    font-variant-numeric: tabular-nums;
}

.csx-points li:hover {
    padding-left: 8px;
}

.csx-points strong {
    color: var(--ink);
}

/* Solution steps & capability cards -------------------------------------- */
.csx-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    counter-reset: cscard;
}

.csx-split + .csx-cards {
    margin-top: 35px;
}

.csx-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 30px;
    border: 1px solid var(--line);
    border-radius: var(--cs-radius);
    background: #ffffff;
    counter-increment: cscard;
    transition: transform 0.45s var(--cs-ease), box-shadow 0.45s var(--cs-ease), border-color 0.3s ease;
}

.csx-card:hover {
    transform: translateY(-6px);
    border-color: rgba(2, 2, 7, 0.22);
    box-shadow: 0 30px 60px -28px rgba(2, 2, 7, 0.28);
}

.csx-card-no {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.csx-card-no span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--cs-ink);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    transition: transform 0.45s var(--cs-ease);
}

.csx-card:hover .csx-card-no span {
    transform: rotate(-6deg) scale(1.05);
}

.csx-card-no::after {
    content: "";
    flex: 1;
    height: 1px;
    margin-left: 18px;
    background: linear-gradient(90deg, var(--cs-line), transparent);
}

.csx-card h3,
.csx-card h4 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--cs-ink);
    margin: 0;
}

.csx-card p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--cs-muted);
    margin: 0;
}

.csx-card ul {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.csx-card ul li {
    position: relative;
    padding-left: 18px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--cs-muted);
}

.csx-card ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--cs-ink);
}

.csx-callout {
    margin-top: auto;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--cs-soft);
    border-left: 3px solid var(--cs-ink);
    font-size: 14px;
    line-height: 1.65;
    color: var(--cs-ink);
}

/* Rich content ------------------------------------------------------------ */
.csx-rich {
    font-size: 17px;
    line-height: 1.8;
    color: var(--muted);
}

.csx-rich > *:first-child {
    margin-top: 0;
}

.csx-rich > *:last-child {
    margin-bottom: 0;
}

.csx-rich p {
    margin: 0 0 20px;
}

.csx-rich h3 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 56px 0 16px;
}

.csx-rich h3::before {
    content: "";
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 3px;
    background: var(--ink);
}

.csx-rich strong {
    color: var(--ink);
    font-weight: 700;
}

.csx-rich a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.csx-rich ul,
.csx-rich ol {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.csx-rich ul li {
    position: relative;
    padding-left: 30px;
}

.csx-rich ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.csx-rich ol {
    counter-reset: csol;
}

.csx-rich ol li {
    counter-increment: csol;
    position: relative;
    padding-left: 36px;
}

.csx-rich ol li::before {
    content: counter(csol, decimal-leading-zero);
    position: absolute;
    left: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

.csx-rich p:has(> em:only-child) {
    position: relative;
    padding: 4px 0 4px 20px;
    font-size: 15px;
    line-height: 1.75;
    border-left: 2px solid var(--line);
}

.csx-rich img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 8px 0 24px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--cs-radius);
    background: var(--cs-soft);
}

.csx-rich blockquote {
    position: relative;
    margin: 24px 0;
    padding: 34px 36px 30px 76px;
    border-radius: var(--cs-radius);
    background: var(--cs-ink);
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
    line-height: 1.75;
}

.csx-rich blockquote::before {
    content: "\201C";
    position: absolute;
    left: 28px;
    top: 14px;
    font-size: 64px;
    line-height: 1;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
}

.csx-rich blockquote p {
    margin: 0;
}

.csx-rich table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 12px 0 28px;
    font-size: 15px;
    line-height: 1.6;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}

.csx-rich th,
.csx-rich thead td {
    padding: 14px 20px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cs-ink);
    background: var(--cs-soft);
    border-bottom: 1px solid var(--cs-line);
}

.csx-rich td {
    padding: 16px 20px;
    vertical-align: top;
    color: var(--cs-muted);
    border-top: 1px solid var(--cs-line);
    transition: background-color 0.2s ease;
}

.csx-rich tbody tr:first-child td {
    border-top: 0;
}

.csx-rich tbody tr:hover td {
    background: #fafafb;
}

.csx-rich td:first-child {
    width: 34%;
    color: var(--cs-ink);
    font-weight: 600;
}

.csx-rich table.w-table-compare td {
    width: 50%;
    font-size: 14.5px;
}

.csx-rich table.w-table-compare td:first-child {
    color: var(--cs-muted);
    font-weight: 400;
    background: #fbfbfc;
}

.csx-rich table.w-table-compare td + td {
    color: var(--cs-ink);
    border-left: 1px solid var(--cs-line);
}

.csx-rich table.w-table-compare th + th {
    background: var(--cs-ink);
    color: #ffffff;
    border-bottom-color: var(--cs-ink);
}

/* Highlight & dark callout variants -------------------------------------- */
.csx-sec--highlight {
    --surface: var(--cs-soft);
}

.csx-sec--highlight .csx-rich,
.csx-sec--dark .csx-rich {
    font-size: clamp(18px, 1.5vw, 21px);
    line-height: 1.7;
}

.csx-sec--highlight .csx-rich {
    color: #2a2a35;
}

.csx-outcomes .csx-rich ul li::before,
.csx-sec--dark .csx-rich ul li::before,
.cs-on-dark .csx-rich ul li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23020207' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.csx-sec--dark {
    --ink: #ffffff;
    --muted: rgba(255, 255, 255, 0.74);
    --line: rgba(255, 255, 255, 0.14);
    --surface: var(--cs-ink);
    overflow: hidden;
    isolation: isolate;
}

.csx-sec--dark::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(520px 320px at 88% 10%, rgba(255, 255, 255, 0.1), transparent 70%),
        radial-gradient(420px 300px at 0% 100%, rgba(140, 140, 170, 0.14), transparent 70%);
}

.csx-sec--dark .csx-rich p:first-child::first-line {
    color: #ffffff;
}

/* Outcomes band ----------------------------------------------------------- */
.csx-outcomes {
    --ink: #ffffff;
    --muted: rgba(255, 255, 255, 0.7);
    --line: rgba(255, 255, 255, 0.14);
    --surface: var(--cs-ink);
    overflow: hidden;
    isolation: isolate;
}

.csx-outcomes::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent 75%);
}

.csx-figures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-top: 64px;
    border-top: 1px solid var(--line);
}

.csx-figure {
    padding: 36px 28px 8px 0;
}

.csx-figure + .csx-figure {
    padding-left: 28px;
    border-left: 1px solid var(--line);
}

.csx-figure-val {
    font-size: clamp(48px, 5vw, 76px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.045em;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

.csx-figure-label {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted);
}

.csx-outcomes .csx-after {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}

/* References -------------------------------------------------------------- */
.csx-refs {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.csx-refs a,
.csx-refs span.csx-ref {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

.csx-refs a i {
    font-style: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.4s var(--cs-ease);
}

.csx-refs a:hover i {
    background: var(--ink);
    color: #ffffff;
    transform: rotate(-45deg);
}

.csx-note {
    margin: 18px 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
}

/* Prompt ------------------------------------------------------------------ */
.csx-code {
    margin: 0;
    padding: 28px 30px;
    border-radius: var(--cs-radius);
    background: var(--cs-ink);
    color: #e2e8f0;
    font-family: "Fira Code", ui-monospace, monospace;
    font-size: 14px;
    line-height: 1.75;
    white-space: pre-wrap;
}

/* Related ----------------------------------------------------------------- */
.csx-related {
    --surface: var(--cs-soft);
}

.csx-related-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 44px;
}

.csx-related-head a {
    font-size: 15px;
    font-weight: 600;
    color: var(--cs-ink);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

.csx-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.csx-rel-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--cs-radius);
    background: #ffffff;
    border: 1px solid var(--cs-line);
    overflow: hidden;
    color: var(--cs-ink);
    text-decoration: none;
    transition: transform 0.45s var(--cs-ease), box-shadow 0.45s var(--cs-ease);
}

.csx-rel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -28px rgba(2, 2, 7, 0.3);
}

.csx-rel-media {
    position: relative;
    aspect-ratio: 16 / 8;
    background:
        radial-gradient(360px 220px at 80% 20%, rgba(255, 255, 255, 0.16), transparent 70%),
        linear-gradient(135deg, #020207, #1b1b26);
    overflow: hidden;
}

.csx-rel-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--cs-ease);
}

.csx-rel-card:hover .csx-rel-media img {
    transform: scale(1.05);
}

.csx-rel-body {
    padding: 26px 28px 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.csx-rel-body h3 {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--cs-ink);
}

.csx-rel-body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--cs-muted);
}

.csx-rel-more {
    margin-top: auto;
    padding-top: 8px;
    font-size: 14px;
    font-weight: 700;
}

/* Contact ----------------------------------------------------------------- */
.cs-contact.csx-sec {
    padding: 112px 0;
}

.csx-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 72px;
    align-items: start;
}

.cs-contact .csx-title {
    margin-bottom: 18px;
}

.cs-contact .main-cont {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cs-contact .main-cont .wpcf7-form-control-wrap {
    position: relative;
    width: 100%;
}

.cs-contact form.wpcf7-form .main-cont .sub-cont > p {
    display: flex;
    gap: 20px;
    margin: 0;
}

.cs-contact form.wpcf7-form .main-cont .sub-cont > p input.wpcf7-form-control {
    width: 100%;
    height: 54px;
    border-radius: 10px;
    text-indent: 20px;
    border: 1px solid transparent;
    background-color: #02020714;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cs-contact form.wpcf7-form .main-cont textarea.wpcf7-form-control {
    width: 100%;
    min-height: 180px;
    padding: 18px 0;
    border-radius: 10px;
    text-indent: 20px;
    border: 1px solid transparent;
    background-color: #02020714;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cs-contact form.wpcf7-form .main-cont input.wpcf7-form-control:focus,
.cs-contact form.wpcf7-form .main-cont textarea.wpcf7-form-control:focus {
    outline: none;
    border-color: var(--cs-ink);
    background-color: #ffffff;
}

.cs-contact .main-cont ::placeholder {
    color: var(--cs-ink);
}

/* Reveal ------------------------------------------------------------------ */
.csx-js .csx-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--cs-ease), transform 0.9s var(--cs-ease);
    transition-delay: var(--d, 0s);
}

.csx-js .csx-reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .csx-js .csx-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1199px) {
    .csx-split,
    .csx-contact-grid {
        gap: 48px;
    }
}

@media (max-width: 991px) {
    .csx-sec,
    .cs-contact.csx-sec {
        padding: 55px 0;
    }
    .w-cs-block.is-plain + .w-cs-block.is-plain > .csx-sec > .container {
        padding-top: 64px;
    }
    .csx-split,
    .csx-contact-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .csx-aside {
        position: static;
    }
    .csx-hero-inner {
        width: auto;
    }
    .csx-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .csx-meta > div:nth-child(odd) {
        border-left: 0;
    }
    .csx-meta > div:nth-child(n+3) {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .csx-hero-media {
        width: 100%;
        opacity: 0.32;
        -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
        mask-image: linear-gradient(180deg, #000, transparent 85%);
    }
    .csx-hero-deco::after {
        display: none;
    }
    .csx-sub {
        margin-top: 56px;
    }
    .csx-related-grid {
        grid-template-columns: 1fr;
    }
    .w-stats-row {
        margin-left: 0;
        max-width: none;
    }
}

@media (max-width: 767px) {
    .w-cs-wrapper section.csx-hero {
        padding: 28px 0 112px !important;
    }
    .w-cs-wrapper section.csx-sec {
        padding: 45px 0 !important;
    }
    .w-cs-wrapper .w-cs-block.is-plain + .w-cs-block.is-plain > section.csx-sec {
        padding-top: 0 !important;
    }
    .w-cs-block.is-plain + .w-cs-block.is-plain > .csx-sec > .container {
        padding-top: 56px;
    }
    .csx-hero-top {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 44px;
    }
    .csx-crumbs .is-current {
        max-width: 220px;
    }
    .csx-meta {
        grid-template-columns: 1fr;
    }
    .csx-meta > div + div {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .w-stats-row {
        grid-auto-flow: row;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: -72px;
    }
    .w-stat-box {
        padding: 22px 20px;
        border-top: 1px solid var(--cs-line);
    }
    .w-stat-box:nth-child(-n+2) {
        border-top: 0;
    }
    .w-stat-box + .w-stat-box {
        border-left: 0;
    }
    .w-stat-box:nth-child(even) {
        border-left: 1px solid var(--cs-line);
    }
    .w-stat-num {
        font-size: 34px;
    }
    .w-stats-row--text {
        grid-template-columns: 1fr;
    }
    .w-stats-row--text .w-stat-box {
        display: grid;
        grid-template-columns: 38px 1fr;
        column-gap: 16px;
        border-left: 0 !important;
        border-top: 1px solid var(--cs-line);
    }
    .w-stats-row--text .w-stat-box:first-child {
        border-top: 0;
    }
    .w-stats-row--text .w-stat-box::after {
        grid-row: span 2;
        margin-bottom: 0;
    }
    .w-stat-info {
        grid-column: 1 / -1;
        min-width: 0;
        border-left: 0;
        border-top: 1px solid var(--cs-line);
    }
    .csx-nav-label {
        display: none;
    }
    .csx-nav .container {
        padding-right: 0;
    }
    .csx-cards {
        grid-template-columns: 1fr;
    }
    .csx-card {
        padding: 28px 24px;
    }
    .csx-points li {
        grid-template-columns: 40px 1fr;
    }
    .csx-figure,
    .csx-figure + .csx-figure {
        padding: 28px 0 4px;
        border-left: 0;
    }
    .csx-figure + .csx-figure {
        border-top: 1px solid var(--line);
    }
    .csx-rich blockquote {
        padding: 56px 24px 24px;
    }
    .csx-rich blockquote::before {
        left: 22px;
        top: 10px;
    }
    .csx-rich table,
    .csx-rich thead,
    .csx-rich tbody,
    .csx-rich tr,
    .csx-rich th,
    .csx-rich td {
        display: block;
        width: 100% !important;
    }
    .csx-rich thead {
        display: none;
    }
    .csx-rich tr {
        border-top: 1px solid var(--cs-line);
    }
    .csx-rich tbody tr:first-child {
        border-top: 0;
    }
    .csx-rich td {
        border-top: 0;
        padding: 12px 18px;
    }
    .csx-rich td:first-child {
        padding-bottom: 0;
    }
    .csx-rich table.w-table-compare td {
        padding: 14px 18px;
    }
    .csx-rich table.w-table-compare td + td {
        border-left: 0;
    }
    .csx-rich table.w-table-compare td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--cs-ink);
    }
    .cs-contact form.wpcf7-form .main-cont .sub-cont > p {
        flex-direction: column;
    }
    .csx-related-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media screen and (max-width: 782px) {
    body.admin-bar .csx-nav {
        top: 0;
    }
}
