/* DC Innovision case study pages.
   Report-style layout: hero with product frame, facts strip, sticky contents bar,
   sections with a label column on the left and content on the right.
   Palette from the logo: blue #1680c0, sky #48b0e0, navy #0b2f77.
   Type: Outfit (headlines) + Plus Jakarta Sans (text and labels), the same pair as the rest of the site. */

:root {
  --ink: #0a1f4d;
  --text: #3d4b66;
  --muted: #68778f;
  --rule: #dbe4f1;
  --tint: #eaf4fb;
  --tint-soft: #f5f9fe;
  --blue: #1680c0;
  --blue-deep: #11699f;
  --sky: #48b0e0;
  --navy: #0b2f77;
  --navy-deep: #07204f;
  --good: #17a463;
  --serif: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --header: 72px;
}

/* App_Bar sets overflow-x:hidden, which breaks position:sticky; clip does not. */
html, body { overflow-x: clip !important; }
html { scroll-behavior: smooth; scroll-padding-top: 132px; }
body.cs-page { margin: 0; background: #fff; color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.cs-page *, .cs-page *::before, .cs-page *::after { box-sizing: border-box; }
:where(.cs-page) :is(h1, h2, h3, h4, p, dl, dd, figure, ul, ol, blockquote) { margin: 0; padding: 0; }
:where(.cs-page) :is(ul, ol) { list-style: none; }
:where(.cs-page) a { color: inherit; }
.cs-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.cs-page :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- HERO ---------- */
.cs-hero { padding: calc(var(--header) + 40px) 0 0; background: linear-gradient(180deg, var(--tint) 0%, var(--tint-soft) 70%, #fff 100%); }
.cs-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; font-weight: 500; color: var(--muted); }
.cs-crumbs a { text-decoration: none; }
.cs-crumbs a:hover { color: var(--blue); }
.cs-crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.cs-crumbs .sep { opacity: .5; }

.cs-hero-grid { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.cs-hero-grid.no-shot { grid-template-columns: minmax(0, 52rem); }
.cs-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.cs-status { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.cs-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgba(72,176,224,.22); }
.cs-status--live::before { background: var(--good); box-shadow: 0 0 0 4px rgba(23,164,99,.2); }
.cs-status--completed::before { background: #8d99ad; box-shadow: 0 0 0 4px rgba(141,153,173,.22); }
.cs-hero h1 { margin-top: 22px; font-family: var(--serif); font-weight: 500; font-size: clamp(2.35rem, 4.4vw, 3.9rem); line-height: 1.08; letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.cs-lead { margin-top: 24px; max-width: 58ch; font-size: 1.1rem; line-height: 1.75; color: var(--text); }
.cs-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.cs-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--blue); background: var(--blue); color: #fff; font: 700 14.5px/1 var(--sans); text-decoration: none; box-shadow: 0 14px 28px rgba(22,128,192,.26); transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.cs-btn:hover { transform: translateY(-2px); background: var(--blue-deep); border-color: var(--blue-deep); }
.cs-btn--ghost { background: #fff; border-color: var(--rule); color: var(--navy); box-shadow: none; }
.cs-btn--ghost:hover { background: #fff; border-color: var(--blue); color: var(--blue); }

.cs-frame { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--rule); box-shadow: 0 30px 70px rgba(10,33,83,.14); }
.cs-frame-bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; background: #f1f5fa; border-bottom: 1px solid var(--rule); }
.cs-frame-dots { display: flex; gap: 6px; }
.cs-frame-dots i { width: 9px; height: 9px; border-radius: 50%; background: #cfd9e8; }
.cs-frame-url { flex: 1; min-width: 0; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--rule); font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }

/* facts strip */
.cs-facts { margin-top: 64px; display: flex; flex-wrap: wrap; border-top: 1px solid var(--rule); }
.cs-fact { flex: 1 1 auto; min-width: 150px; padding: 22px 24px 26px 0; }
.cs-fact + .cs-fact { padding-left: 24px; border-left: 1px solid var(--rule); }
.cs-fact dt { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.cs-fact dd { margin-top: 8px; font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--ink); overflow-wrap: break-word; }

/* ---------- CONTENTS BAR ---------- */
.cs-toc { position: sticky; top: var(--header); z-index: 20; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.cs-toc .cs-wrap { display: flex; align-items: center; gap: 30px; overflow-x: auto; scrollbar-width: none; }
.cs-toc .cs-wrap::-webkit-scrollbar { display: none; }
.cs-toc a { flex: none; padding: 16px 0 14px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.cs-toc a:hover { color: var(--ink); }
.cs-toc a.is-current { color: var(--blue); border-bottom-color: var(--blue); }
.cs-toc .cs-toc-back { margin-left: auto; color: var(--navy); }

/* ---------- BLOCKS ---------- */
.cs-block { padding: 88px 0 0; }
.cs-block:last-of-type { padding-bottom: 8px; }
.cs-block-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; }
.cs-label { padding-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.cs-label::before { content: ''; display: block; width: 28px; height: 2px; margin-bottom: 14px; background: currentColor; }
.cs-block h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.14; letter-spacing: -.028em; color: var(--ink); max-width: 24ch; text-wrap: balance; }
.cs-intro { margin-top: 16px; max-width: 62ch; color: var(--text); }
.cs-block h2 + * { margin-top: 36px; }
.cs-block h2 + .cs-intro { margin-top: 16px; }
.cs-block .cs-intro + * { margin-top: 36px; }

/* brief: challenge vs solution */
.cs-brief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.cs-brief-col { padding: 8px 0 0; }
.cs-brief-col--solution { padding: 28px 30px 12px; border-radius: 16px; background: var(--tint-soft); border: 1px solid var(--rule); }
.cs-tag { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cs-brief-col--solution .cs-tag { color: var(--blue); }
.cs-brief-col h3 { margin-top: 8px; font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.2; color: var(--ink); letter-spacing: -.02em; }
.cs-points { margin-top: 18px; }
.cs-points li { padding: 16px 0; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.7; }
.cs-points li:first-child { border-top: 0; padding-top: 4px; }
.cs-points strong { display: block; margin-bottom: 3px; font-size: 15.5px; font-weight: 700; color: var(--ink); }

/* build phases (a real sequence, so numbered) */
.cs-phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: phase; border-top: 2px solid var(--ink); }
.cs-phase { padding: 22px 24px 8px 0; }
.cs-phase + .cs-phase { padding-left: 24px; border-left: 1px solid var(--rule); }
.cs-phase-n { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.cs-phase h4 { margin-top: 8px; font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.cs-phase p { margin-top: 8px; font-size: 14.5px; line-height: 1.7; }

/* modules */
.cs-modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.cs-module { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 24px 28px 24px 0; border-bottom: 1px solid var(--rule); }
.cs-module:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--rule); }
.cs-module:nth-last-child(-n+2):nth-child(odd), .cs-module:last-child { border-bottom: 0; }
.cs-module > i { margin-top: 3px; font-size: 17px; color: var(--blue); }
.cs-module h4 { font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.cs-module p { margin-top: 6px; font-size: 14.5px; line-height: 1.7; }

/* experience */
.cs-quote { font-family: var(--serif); font-weight: 500; font-size: clamp(1.35rem, 2.3vw, 1.9rem); line-height: 1.4; letter-spacing: -.02em; color: var(--navy); max-width: 30em; text-wrap: pretty; }
.cs-quote::before { content: ''; display: block; width: 44px; height: 3px; margin-bottom: 22px; background: var(--sky); }
.cs-quote + .cs-points-3 { margin-top: 44px; }
.cs-points-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.cs-point3 { padding: 22px 24px 4px 0; }
.cs-point3 + .cs-point3 { padding-left: 24px; border-left: 1px solid var(--rule); }
.cs-point3 h4 { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.cs-point3 p { margin-top: 8px; font-size: 14.5px; line-height: 1.7; }

/* results */
.cs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-top: 2px solid var(--ink); }
.cs-stat { padding: 24px 24px 24px 0; }
.cs-stat + .cs-stat { padding-left: 24px; border-left: 1px solid var(--rule); }
.cs-stat-v { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.1; letter-spacing: -.03em; color: var(--navy); }
.cs-stat-l { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.cs-note { margin-top: 24px; max-width: 64ch; }

/* faq (native details) */
.cs-faq { border-top: 2px solid var(--ink); }
.cs-faq details { border-bottom: 1px solid var(--rule); }
.cs-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 16.5px; font-weight: 700; color: var(--ink); }
.cs-faq summary::-webkit-details-marker { display: none; }
.cs-faq summary::after { content: '+'; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--tint); color: var(--blue); font-size: 18px; font-weight: 500; line-height: 1; transition: transform .25s ease, background .25s ease, color .25s ease; }
.cs-faq summary:hover { color: var(--blue); }
.cs-faq details[open] summary::after { transform: rotate(45deg); background: var(--blue); color: #fff; }
.cs-faq .cs-faq-a { padding: 0 48px 24px 0; max-width: 68ch; font-size: 15.5px; line-height: 1.75; }

/* services used */
.cs-services { margin-top: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cs-services a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--rule); background: #fff; font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.cs-services a:hover { border-color: var(--blue); color: var(--blue); background: var(--tint-soft); }

/* closing */
.cs-closing { margin-top: 96px; padding: 96px 0 92px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; position: relative; overflow: hidden; }
.cs-closing::after { content: ''; position: absolute; right: -140px; top: -140px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(72,176,224,.28), rgba(72,176,224,0) 68%); pointer-events: none; }
.cs-closing .cs-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.cs-closing h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1.1; letter-spacing: -.03em; color: #fff; max-width: 17ch; text-wrap: balance; }
.cs-closing p { color: rgba(255,255,255,.84); font-size: 1.04rem; line-height: 1.8; max-width: 52ch; }
.cs-closing .cs-actions { margin-top: 28px; }
.cs-closing .cs-btn { background: #fff; border-color: #fff; color: var(--navy); box-shadow: none; }
.cs-closing .cs-btn:hover { background: var(--tint); border-color: var(--tint); }
.cs-closing .cs-btn--ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.cs-closing .cs-btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

/* ---------- MOTION (visible at rest; animates only when JS is running) ---------- */
.js .cs-reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .cs-reveal.is-in { opacity: 1; transform: none; }
.js .cs-reveal .cs-stagger { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 80ms); }
.js .cs-reveal.is-in .cs-stagger { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .cs-reveal, .js .cs-reveal .cs-stagger { opacity: 1; transform: none; transition: none; }
  .cs-btn { transition: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1040px) {
  .cs-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .cs-block-grid { grid-template-columns: 1fr; gap: 20px; }
  .cs-label { padding-top: 0; }
  .cs-label::before { display: inline-block; vertical-align: middle; margin: 0 12px 0 0; width: 24px; }
  .cs-phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-phase:nth-child(3) { padding-left: 0; border-left: 0; }
  .cs-phase:nth-child(n+3) { margin-top: 16px; border-top: 1px solid var(--rule); }
  .cs-closing .cs-wrap { grid-template-columns: 1fr; gap: 28px; align-items: start; }
}
@media (max-width: 760px) {
  .cs-wrap { padding: 0 20px; }
  .cs-hero { padding-top: calc(var(--header) + 28px); }
  .cs-block { padding-top: 64px; }
  .cs-brief, .cs-modules, .cs-points-3 { grid-template-columns: 1fr; }
  .cs-brief-col--solution { padding: 24px 22px 8px; }
  .cs-module, .cs-module:nth-child(even) { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .cs-module:last-child { border-bottom: 0; }
  .cs-point3, .cs-point3 + .cs-point3 { padding: 20px 0; border-left: 0; }
  .cs-point3 + .cs-point3 { border-top: 1px solid var(--rule); }
  .cs-phases { grid-template-columns: 1fr; }
  .cs-phase, .cs-phase + .cs-phase, .cs-phase:nth-child(3) { padding: 20px 0; border-left: 0; margin-top: 0; }
  .cs-phase + .cs-phase { border-top: 1px solid var(--rule); }
  .cs-fact, .cs-fact + .cs-fact { flex: 1 1 45%; padding: 18px 16px 18px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .cs-stat, .cs-stat + .cs-stat { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .cs-faq .cs-faq-a { padding-right: 0; }
  .cs-closing { padding: 72px 0 68px; }
}
