/*
 * Case study page (single case study).
 * Everything is scoped under .cs2 so it never touches the rest of the site.
 * Fonts: Bricolage Grotesque (headings), Instrument Sans (body), JetBrains Mono (labels), self-hosted.
 */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap; src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap; src: url('../fonts/instrument-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@keyframes cs-up { from { transform: translateY(110%); } to { transform: none; } }
@keyframes cs-fade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cs-draw { from { stroke-dashoffset: 1600; } to { stroke-dashoffset: 0; } }
@keyframes cs-area { from { opacity: 0; } to { opacity: 1; } }
@keyframes cs-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.4); opacity: 0; } }
@keyframes cs-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes cs-growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cs-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.cs2 { --acc: #f52549; background: #f4f7fd; color: #021a4d; font-family: 'Instrument Sans', system-ui, sans-serif; font-size: 17px; line-height: 1.55; overflow-x: hidden; }
.cs2 *, .cs2 *::before, .cs2 *::after { box-sizing: border-box; }
.cs2 h1, .cs2 h2, .cs2 h3, .cs2 p { margin: 0; padding: 0; }
.cs2 a { color: #0a3589; }
.cs2 a:hover { color: #021a4d; }
.cs2 svg { max-width: none; }
.cs2-wrap { max-width: 1200px; margin: 0 auto; }
.cs2 .mono { font-family: 'JetBrains Mono', monospace; }
.cs2 .disp { font-family: 'Bricolage Grotesque', sans-serif; }

/* animation helpers */
.cs2 .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.cs2 .up { display: block; animation: cs-up .9s cubic-bezier(.2, .8, .2, 1) both; }
.cs2 .fade { animation: cs-fade .8s cubic-bezier(.2, .7, .2, 1) both; }
.cs2 .drawk { stroke-dasharray: 1600; animation: cs-draw 2.4s cubic-bezier(.4, 0, .2, 1) .5s both; }
.cs2 .areak { animation: cs-area 1.2s ease 1.6s both; }
.cs2 .pulse { transform-box: fill-box; transform-origin: center; animation: cs-pulse 1.8s ease-out infinite; }
.cs2 .cs2-floaty { animation: cs-float 5s ease-in-out infinite; }
.cs2 .marq { animation: cs-marq 28s linear infinite; }
.cs2 .growx { transform-origin: left; animation: cs-growx 1s cubic-bezier(.2, .8, .2, 1) both; }
.cs2 .lift { transition: translate .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.cs2 .lift:hover { translate: 0 -6px; box-shadow: 0 18px 40px rgba(2, 26, 77, .12); }
.cs2 .cta { transition: translate .25s, box-shadow .25s; }
.cs2 .cta:hover { translate: 0 -3px; box-shadow: 0 10px 0 rgba(2, 26, 77, .9); }
.cs2.cs-anim [data-r] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.cs2.cs-anim [data-r].in { opacity: 1; transform: none; }
.cs2.cs-anim [data-r] .bar { transform: scaleY(0); transform-origin: bottom; transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.cs2.cs-anim [data-r].in .bar { transform: scaleY(1); }
.cs2.cs-anim [data-r] .barx { transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.cs2.cs-anim [data-r].in .barx { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .cs2 .up, .cs2 .fade, .cs2 .drawk, .cs2 .areak, .cs2 .pulse, .cs2 .cs2-floaty, .cs2 .marq, .cs2 .growx { animation: none; } }

/* ---------- hero ---------- */
.cs2-hero { background: #021a4d; color: #f4f7fd; padding: 0 clamp(20px, 5vw, 48px); }
.cs2-top { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.cs2-top-l { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.cs2-pill { display: inline-flex; align-self: flex-start; gap: 10px; align-items: center; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #9fb2d8; }
.cs2-pill i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.cs2 .cs2-h1 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(40px, 6.2vw, 84px); line-height: .98; letter-spacing: -.03em; color: #f4f7fd; }
.cs2 .cs2-lead { max-width: 520px; font-size: 19px; color: #9fb2d8; animation-delay: .6s; }
.cs2-meta { display: flex; flex-wrap: wrap; gap: 12px 36px; animation-delay: .75s; }
.cs2-meta > div { display: flex; flex-direction: column; gap: 2px; }
.cs2-meta .k { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #9fb2d8; text-transform: uppercase; letter-spacing: .08em; }
.cs2-meta .v { font-weight: 600; }
.cs2-top-r { flex: 1 1 420px; min-width: 0; position: relative; animation-delay: .4s; }
.cs2-chartcard { background: #0b2766; border: 1px solid rgba(255, 255, 255, .12); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.cs2-chartcard .hd { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #9fb2d8; }
.cs2-chartcard svg { width: 100%; height: auto; display: block; overflow: visible; }
.cs2-chartcard .axis { display: flex; justify-content: space-between; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #9fb2d8; }
.cs2-floatbadge { position: absolute; left: -12px; bottom: 64px; background: #f4f7fd; color: #021a4d; border-radius: 16px; padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }
.cs2-floatbadge .k { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #4a5578; }
.cs2-floatbadge .v { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 28px; line-height: 1; }
.cs2-kpis { display: flex; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .12); }
.cs2-kpi { flex: 1 1 220px; padding: 32px 24px 40px 0; display: flex; flex-direction: column; gap: 6px; }
.cs2-kpi:last-child { padding-right: 0; }
.cs2-kpi .v { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(36px, 4vw, 54px); line-height: 1; }
.cs2-kpi:first-child .v { color: var(--acc); }
.cs2-kpi .cs2-l { color: #9fb2d8; font-size: 15px; }

/* ---------- ticker ---------- */
.cs2-ticker { background: var(--acc); color: var(--acc-ink, #fff); overflow: hidden; padding: 16px 0; }
.cs2-ticker .marq { display: flex; width: max-content; gap: 40px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 20px; white-space: nowrap; align-items: center; }
.cs2-ticker i { display: block; width: 9px; height: 9px; background: var(--acc-ink, #fff); transform: rotate(45deg); }

/* ---------- sections ---------- */
.cs2-sec { padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 48px); }
.cs2-sec--b { padding: 0 clamp(20px, 5vw, 48px) clamp(64px, 9vw, 120px); }
.cs2-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: #0a3589; }
.cs2 .cs2-h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -.02em; color: #021a4d; }
.cs2 .cs2-p { color: #4a5578; }
.cs2-head { display: flex; flex-direction: column; gap: 16px; max-width: 700px; }
.cs2-headrow { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; }

/* 01 challenge */
.cs2-chal { display: flex; flex-wrap: wrap; gap: 48px; }
.cs2-chal-l { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cs2-chal-l .cs2-p { max-width: 480px; }
.cs2-chal-r { flex: 1.3 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cs2-card { background: #fff; border-radius: 20px; padding: 26px 28px; display: flex; gap: 20px; align-items: flex-start; }
.cs2-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; background: #021a4d; display: flex; align-items: center; justify-content: center; }
.cs2-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--acc); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cs2-card .t { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 21px; }
.cs2-card .d { color: #4a5578; font-size: 16px; }
.cs2-card > div:last-child { display: flex; flex-direction: column; gap: 4px; }

/* 02 growth */
.cs2-panel { max-width: 1200px; margin: 0 auto; background: #fff; border-radius: 32px; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; gap: 40px; }
.cs2-panel .cs2-head { max-width: 620px; }
.cs2-panel .cs2-p--r { max-width: 380px; }
.cs2-gr { display: flex; flex-wrap: wrap; gap: 40px; }
.cs2-stats { flex: 1 1 280px; display: flex; flex-direction: column; }
.cs2-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid #d8e0f3; }
.cs2-stat:last-child { border-bottom: 1px solid #d8e0f3; }
.cs2-stat .cs2-l { color: #4a5578; }
.cs2-stat .v { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 40px; line-height: 1; }
.cs2-bars { flex: 1.5 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.cs2-bars .ttl { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #4a5578; }
.cs2-hb { display: flex; flex-direction: column; gap: 8px; }
.cs2-hb .cs2-hrow { display: flex; justify-content: space-between; font-weight: 600; }
.cs2-hb .track { height: 14px; background: #e8eefc; border-radius: 999px; overflow: hidden; }
.cs2-hb .fill { height: 100%; background: #021a4d; border-radius: 999px; }

/* 03 solution */
.cs2-solution { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
.cs2-rule { height: 3px; background: #d8e0f3; border-radius: 3px; overflow: hidden; }
.cs2-rule .barx { height: 100%; width: 100%; background: #021a4d; transition-duration: 2s; }
.cs2-steps { display: flex; flex-wrap: wrap; gap: 24px; }
.cs2-step { flex: 1 1 230px; display: flex; flex-direction: column; gap: 12px; }
.cs2-step .cs2-n { width: 52px; height: 52px; border-radius: 50%; background: #021a4d; color: var(--acc); display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-weight: 500; }
.cs2-step:last-child .cs2-n { background: var(--acc); color: var(--acc-ink, #fff); }
.cs2-step .t { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 24px; }
.cs2-step .d { color: #4a5578; font-size: 16px; }
.cs2-step .cs2-w { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #4a5578; }

/* 04 results */
.cs2-dark { background: #021a4d; color: #f4f7fd; padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 48px); }
.cs2-dark .cs2-wrap { display: flex; flex-direction: column; gap: 48px; }
.cs2-dark .cs2-eyebrow { color: var(--acc); }
.cs2 .cs2-dark .cs2-h2 { color: #f4f7fd; }
.cs2-dark .cs2-p { color: #9fb2d8; max-width: 360px; }
.cs2-colchart { display: flex; gap: clamp(8px, 2vw, 24px); align-items: flex-end; height: 380px; }
.cs2-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; text-align: center; }
.cs2-col .v { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(14px, 1.8vw, 22px); }
.cs2-col:last-child .v { font-weight: 800; font-size: clamp(16px, 2.2vw, 28px); color: var(--acc); }
.cs2-col .bar { border-radius: 12px 12px 0 0; }
.cs2-col .m { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #9fb2d8; }
.cs2-phases { display: flex; flex-wrap: wrap; gap: 16px; }
.cs2-phase { flex: 1 1 260px; background: #0b2766; border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.cs2-phase .k { font-family: 'JetBrains Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #9fb2d8; }
.cs2-phase:last-child .k { color: var(--acc); }
.cs2-phase .t { font-weight: 600; font-size: 18px; }
.cs2-phase .d { color: #9fb2d8; font-size: 15px; }

/* 05 proof */
.cs2-proof { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.cs2-tabs { display: flex; gap: 6px; padding: 6px; background: #fff; border-radius: 999px; }
.cs2 .cs2-tabs button { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; background: transparent; color: #021a4d; text-transform: none; letter-spacing: 0; box-shadow: none; }
.cs2 .cs2-tabs button[aria-pressed="true"] { background: #021a4d; color: #f4f7fd; }
.cs2-pane[hidden] { display: none; }
.cs2-traffic { display: flex; flex-wrap: wrap; gap: 20px; }
.cs2-ba { flex: 1 1 260px; display: flex; flex-direction: column; gap: 20px; }
.cs2-ba > div { flex: 1 1 auto; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.cs2-ba .after { background: #021a4d; color: #f4f7fd; }
.cs2-ba .k { font-family: 'JetBrains Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #4a5578; }
.cs2-ba .after .k { color: var(--acc); }
.cs2-ba .v { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 48px; line-height: 1; color: #4a5578; }
.cs2-ba .after .v { color: var(--acc); }
.cs2-ba .s { color: #4a5578; font-size: 15px; }
.cs2-ba .after .s { color: #9fb2d8; }
.cs2-gsc { flex: 2.4 1 480px; min-width: 0; background: #fff; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.cs2-gsc .hd { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #4a5578; }
.cs2-gsc svg { width: 100%; height: auto; display: block; overflow: visible; }
.cs2-gsc .leg { display: flex; gap: 10px; align-items: center; font-size: 14px; color: #4a5578; }
.cs2-gsc .leg i { display: block; width: 18px; height: 0; border-top: 2px dashed #021a4d; }
.cs2-gsc img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid #e3e9f7; }
.cs2-rank { background: #fff; border-radius: 24px; padding: 12px 28px 20px; overflow-x: auto; }
.cs2-rank-in { min-width: 620px; display: flex; flex-direction: column; }
.cs2-rrow { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid #e3e9f7; }
.cs2-rrow:last-child { border-bottom: 0; }
.cs2-rrow--h { padding: 16px 0; font-family: 'JetBrains Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #4a5578; border-bottom: 1px solid #021a4d; }
.cs2-rrow .kw { flex: 2.2 1 0; font-weight: 600; }
.cs2-rrow .b { flex: 1 1 0; color: #4a5578; }
.cs2-rrow .a { flex: 1 1 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 22px; }
.cs2-rrow .cs2-mv { flex: 2 1 0; }
.cs2-rrow--h > div:nth-child(1) { flex: 2.2 1 0; } .cs2-rrow--h > div:nth-child(2), .cs2-rrow--h > div:nth-child(3) { flex: 1 1 0; } .cs2-rrow--h > div:nth-child(4) { flex: 2 1 0; }
.cs2-rrow .growx { height: 12px; border-radius: 999px; background: #021a4d; }

/* 06 why */
.cs2-why { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.cs2-reasons { display: flex; flex-wrap: wrap; gap: 20px; }
.cs2-reason { flex: 1 1 250px; background: #fff; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.cs2-reason .cs2-n { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 64px; line-height: .9; color: #d8e0f3; }
.cs2-reason .t { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 22px; line-height: 1.15; }
.cs2-reason .d { color: #4a5578; font-size: 16px; }
.cs2-reason:last-child { background: #021a4d; color: #f4f7fd; }
.cs2-reason:last-child .cs2-n { color: var(--acc); }
.cs2-reason:last-child .d { color: #9fb2d8; }
.cs2-quote { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; padding: clamp(28px, 4vw, 48px); border: 1px solid #cfd8ee; border-radius: 28px; }
.cs2-quote .cs2-ph { flex: none; width: 72px; height: 72px; border-radius: 50%; background: #d8e0f3; display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #4a5578; overflow: hidden; }
.cs2-quote .cs2-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs2-quote .tx { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cs2-quote .q { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -.01em; }
.cs2-quote .by { color: #4a5578; font-size: 15px; }

/* CTA */
.cs2-cta { background: var(--acc); color: var(--acc-ink, #fff); padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 48px); }
.cs2-cta .cs2-wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cs2 .cs2-cta .cs2-h2 { color: var(--acc-ink, #fff); flex: 1 1 520px; font-size: clamp(36px, 5.4vw, 72px); line-height: .98; letter-spacing: -.03em; }
.cs2 .cs2-btn-lg { display: inline-flex; gap: 12px; align-items: center; min-height: 64px; padding: 0 32px; background: #0a3589; color: #fff; font-weight: 600; font-size: 18px; text-decoration: none; border-radius: 999px; }
.cs2 .cs2-btn-lg:hover { color: #fff; background: #021a4d; }
.cs2-btn-lg svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 600px) {
	.cs2-colchart { height: 300px; }
	.cs2-floatbadge { left: 8px; }
}
/* Before / After cards: extra figures, and a green result number */
.cs2-ba > div { justify-content: flex-start; }
.cs2-ba .after .v { color: #3ddc84; }
.cs2-bs { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid rgba(2, 26, 77, .14); }
.cs2-ba .after .cs2-bs { border-top-color: rgba(255, 255, 255, .18); }
.cs2-bs li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(2, 26, 77, .1); font-size: 15px; color: #4a5578; }
.cs2-ba .after .cs2-bs li { border-bottom-color: rgba(255, 255, 255, .12); color: #9fb2d8; }
.cs2-bs li b { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 22px; line-height: 1; color: #021a4d; }
.cs2-ba .after .cs2-bs li b { color: #f4f7fd; }
.cs2-bs li b { white-space: nowrap; flex: none; }
/* Quote avatar: neutral silhouette until a client photo is added */
.cs2-quote .cs2-ph { background: #0a3589; }
.cs2-quote .cs2-ph svg { width: 100%; height: 100%; display: block; fill: #9fb2d8; }
