/* Case study article pages */
:root {
  --navy: #002d54;
  --blue: #0091bd;
  --ink: #0c1830;
  --text: #28344c;
  --text-dim: #5a6b86;
  --text-muted: #8493ac;
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --border: rgba(20, 45, 100, 0.10);
  --border-strong: rgba(20, 45, 100, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Helvetica Neue", Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* Top bar */
.cs-top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.cs-top .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.cs-top img { height: 38px; }
.cs-back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--navy); }
.cs-back svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.cs-back:hover svg { transform: translateX(-4px); }

/* Hero */
.cs-hero { position: relative; min-height: 520px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--navy); }
.cs-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.cs-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 45, 84, .15) 0%, rgba(0, 45, 84, .55) 45%, rgba(0, 29, 54, .95) 100%); }
.cs-hero .container { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 56px; width: 100%; }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.crumb span { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 5px 12px; }
.cs-hero h1 { font-weight: 400; font-size: clamp(36px, 5.2vw, 64px); letter-spacing: -.03em; line-height: 1.08; margin: 0 0 18px; max-width: 820px; }
.cs-hero .lede { font-size: clamp(17px, 1.6vw, 20px); max-width: 680px; margin: 0; opacity: .9; }

/* Metric strip */
.cs-metrics { position: relative; z-index: 2; margin-top: -40px; }
.cs-metrics .grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 30px 60px -36px rgba(0, 45, 84, .45); overflow: hidden; }
.metric { padding: 26px 28px; border-left: 1px solid var(--border); }
.metric:first-child { border-left: 0; }
.metric b { display: block; font-size: clamp(34px, 3.6vw, 46px); line-height: 1; letter-spacing: -.03em; color: var(--navy); margin-bottom: 8px; }
.metric:first-child b { color: var(--blue); }
.metric span { font-size: 15px; color: var(--text-dim); line-height: 1.4; display: block; }

/* Body */
.cs-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; padding: 72px 0 80px; }
.cs-article h2 { font-weight: 400; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.03em; line-height: 1.2; color: var(--navy); margin: 56px 0 16px; }
.cs-article h2:first-child { margin-top: 0; }
.cs-article .num { display: block; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--blue); margin-bottom: 6px; }
.cs-article p { margin: 0 0 18px; }
.pain { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pain li { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px 16px 48px; position: relative; font-size: 16px; line-height: 1.5; }
.pain li::before { content: ""; position: absolute; left: 18px; top: 19px; width: 18px; height: 18px; border-radius: 50%; background: #fdecee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d0202e' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center/12px no-repeat; }

.steps { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 26px 64px; counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; display: grid; place-items: center; }
.steps li::after { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 2px; background: var(--border-strong); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 2px; padding-top: 8px; }
.steps span { font-size: 16px; color: var(--text-dim); }

.result-box { margin-top: 24px; background: linear-gradient(135deg, var(--navy), #014a7d); color: #fff; border-radius: 20px; padding: 32px; }
.result-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.result-box li { position: relative; padding-left: 34px; font-size: 17px; }
.result-box li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/13px no-repeat; }
.result-box li b { color: #7fd6f0; }

/* Sidebar */
.cs-side { position: relative; }
.side-card { position: sticky; top: 92px; display: grid; gap: 16px; }
.facts { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.facts h3 { margin: 0 0 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.facts dl { margin: 0; display: grid; gap: 14px; }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.facts dd { margin: 2px 0 0; font-size: 16px; color: var(--ink); font-weight: 600; line-height: 1.4; }
.cta { background: var(--navy); color: #fff; border-radius: 18px; padding: 24px; }
.cta h3 { margin: 0 0 8px; font-weight: 400; font-size: 22px; letter-spacing: -.02em; line-height: 1.25; }
.cta p { margin: 0 0 18px; font-size: 15px; opacity: .85; line-height: 1.55; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--navy); text-decoration: none; font-weight: 700; font-size: 15px; border-radius: 999px; padding: 11px 20px; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; }

/* More cases */
.cs-more-wrap { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 64px 0 72px; }
.cs-more-wrap h2 { font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.03em; color: var(--navy); margin: 0 0 24px; }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.more-card { display: grid; grid-template-columns: 180px 1fr; background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.more-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(0, 45, 84, .45); }
.more-card img { width: 100%; height: 100%; object-fit: cover; min-height: 150px; }
.more-card div { padding: 20px 22px; display: flex; flex-direction: column; justify-content: center; }
.more-card small { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.more-card strong { font-weight: 400; font-size: 21px; letter-spacing: -.02em; line-height: 1.25; color: var(--navy); margin: 4px 0 6px; }
.more-card span { font-size: 15px; color: var(--text-dim); line-height: 1.45; }

.cs-foot { background: #001d36; color: rgba(255, 255, 255, .7); font-size: 14px; padding: 24px 0; }
.cs-foot .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cs-foot a { color: #fff; text-decoration: none; }

/* Reveal on scroll */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .cs-main { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; }
  .side-card { position: static; }
  .more-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cs-hero { min-height: 460px; }
  .cs-metrics .grid { grid-template-columns: 1fr; }
  .metric { border-left: 0; border-top: 1px solid var(--border); padding: 20px 22px; }
  .metric:first-child { border-top: 0; }
  .pain { grid-template-columns: 1fr; }
  .more-card { grid-template-columns: 110px 1fr; }
  .result-box { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-hero > img { animation: none; transform: none; }
  .rv { opacity: 1; transform: none; transition: none; }
}
