/* css/redesign-case-studies.css (2026-11-17)
   The two case-study pages in the new design: cream header, flat ink dark bands, plain labels,
   hairlines in place of glass cards, no glow, grain or particles. Layouts, curves, simulations and
   animations are untouched. Overrides only, loaded last on those pages. To revert: remove the
   <link> to this file and data-nav-mode / data-vw from <body>. */

/* Nav on the cream header, until it picks up its navy bar on scroll */
body[data-nav-mode="over-light"] #nav:not(.scrolled) .nav-link,
body[data-nav-mode="over-light"] #nav:not(.scrolled) .nav-dropdown-trigger { color: rgba(10, 22, 40, 0.66); }
body[data-nav-mode="over-light"] #nav:not(.scrolled) .nav-link:hover,
body[data-nav-mode="over-light"] #nav:not(.scrolled) .nav-link.is-current,
body[data-nav-mode="over-light"] #nav:not(.scrolled) .nav-dropdown-trigger:hover,
body[data-nav-mode="over-light"] #nav:not(.scrolled) .nav-dropdown[data-open="true"] .nav-dropdown-trigger { color: #0A1628; }
body[data-nav-mode="over-light"] #nav:not(.scrolled) .nav-logo__word { color: #0A1628; }
body[data-nav-mode="over-light"] #nav:not(.scrolled) .mm-toggle { border-color: rgba(10, 22, 40, 0.22); }
body[data-nav-mode="over-light"] #nav:not(.scrolled) .mm-toggle__bar { background: #0A1628; }

/* ── Header ─────────────────────────────────────────────── */
body[data-vw="case"] .cs-hero { background: #F4F1EA; color: #0A1628; }
body[data-vw="case"] .cs-hero.grain::after,
body[data-vw="case"] .cs-hero-glow-1, body[data-vw="case"] .cs-hero-glow-2, body[data-vw="case"] .cs-hero-grid,
body[data-vw="case"] .cs-hero-line, body[data-vw="case"] #hero-particles { display: none !important; }
body[data-vw="case"] .cs-eyebrow, body[data-vw="case"] .cs-kicker {
  font-family: Inter, sans-serif; font-size: 0.9375rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: #5A6A82;
}
body[data-vw="case"] .cs-eyebrow::before { display: none; }
body[data-vw="case"] .cs-client { color: #0A1628; }
body[data-vw="case"] .cs-client .sep { background: rgba(10, 22, 40, 0.3); }
body[data-vw="case"] .cs-client .loc { color: #5A6A82; }
body[data-vw="case"] .cs-h1 { color: #0A1628; letter-spacing: -0.022em; }
body[data-vw="case"] .cs-h1 em, body[data-vw="case"] .cs-h1 .hl-biz em { color: #2D7DD2; }
body[data-vw="case"] .hl-biz::before { display: none; }
body[data-vw="case"] .hl-biz-underline path { filter: none; }
body[data-vw="case"] .cs-hero-stats { border-top-color: rgba(10, 22, 40, 0.16); }
body[data-vw="case"] .cs-hero-stat + .cs-hero-stat { border-left-color: rgba(10, 22, 40, 0.12); }
body[data-vw="case"] .cs-hero-stat .num { color: #0A1628; }
body[data-vw="case"] .cs-hero-stat .num .accent, body[data-vw="case"] .cs-hero-stat .num .unit { color: #2D7DD2; }
body[data-vw="case"] .cs-hero-stat .label { color: #5A6A82; }
body[data-vw="case"] .cs-hero-stat .eyebrow { font-family: Inter, sans-serif; font-size: 0.8125rem; letter-spacing: 0; text-transform: none; color: #5A6A82; }
body[data-vw="case"] .cs-hero-stat .eyebrow::before { display: none; }
/* the video window: a plain shadow on cream, no halo */
body[data-vw="case"] .cs-hero-video-wrap::before, body[data-vw="case"] .cs-hero-video-wrap::after { display: none; }
body[data-vw="case"] .cs-hero-video-frame, body[data-vw="case"] .hero-video-frame {
  border-color: rgba(10, 22, 40, 0.1) !important;
  box-shadow: 0 2px 4px rgba(10, 22, 40, 0.12), 0 40px 70px -36px rgba(10, 22, 40, 0.5) !important;
}
body[data-vw="case"] .hero-video-col > div[style*="blur"] { display: none; }
body[data-vw="case"] .hero-video-play-cue__label { font-size: 0.8125rem; letter-spacing: 0; text-transform: none; }

/* ── Light chapters ─────────────────────────────────────── */
body[data-vw="case"] .cs-chapter .cs-kicker { color: #5A6A82; }
body[data-vw="case"] .cs-h2 { letter-spacing: -0.02em; }
body[data-vw="case"] .cs-list .mk, body[data-vw="case"] .cs-list--audit .mk { background: #2D7DD2; color: #fff; box-shadow: none; }
body[data-vw="case"] .cs-inbuild { background: none; border: 0; padding: 0; font-family: Inter, sans-serif; font-size: 0.9375rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: #2D7DD2; }
body[data-vw="case"] .cs-ongoing-updated { font-family: Inter, sans-serif; font-size: 0.8125rem; letter-spacing: 0; text-transform: none; color: #5A6A82; }
body[data-vw="case"] .cs-ongoing-card { border-left-color: #2D7DD2; }
body[data-vw="case"] .cs-sim-caption, body[data-vw="case"] .cs-shot-caption { color: #5A6A82; }

/* ── Dark bands: one flat ink, no glow ──────────────────── */
body[data-vw="case"] .cs-chapter--dark::before { background: #0A1628 !important; }
body[data-vw="case"] .cs-band-grid, body[data-vw="case"] .cs-band-particles { display: none !important; }
body[data-vw="case"] .cs-chapter--dark .cs-kicker { color: rgba(255, 255, 255, 0.62); }
body[data-vw="case"] .cs-chapter--dark .cs-h2 em { color: #3B9DF0; }
/* a curve between two ink bands has nothing to divide */
body[data-vw="case"] .cs-chapter--dark + .cs-chapter--dark > .cs-curve { display: none; }
/* a curve leaving the ink for a light chapter carries the ink */
body[data-vw="case"] .cs-chapter--dark + .cs-chapter:not(.cs-chapter--dark) > .cs-curve path { fill: #0A1628; }

/* the batch-run panel and other dark panels */
body[data-vw="case"] .cs-run, body[data-vw="case"] .cs-flow, body[data-vw="case"] .cs-sim {
  background: #0F1D33; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: none;
}
body[data-vw="case"] .cs-run::before, body[data-vw="case"] .cs-sim::before { display: none; }
body[data-vw="case"] .cs-chapter:not(.cs-chapter--dark) .cs-sim { box-shadow: 0 24px 56px -28px rgba(10, 22, 40, 0.45); }

/* metric tiles: figures on hairlines, like the homepage numbers */
body[data-vw="case"] .cs-metric {
  border: 0; border-top: 1px solid rgba(255, 255, 255, 0.22); border-radius: 0; background: none; box-shadow: none;
  padding-left: 0; padding-right: 24px;
}
body[data-vw="case"] .cs-metric::before, body[data-vw="case"] .cs-metric::after { display: none; }
body[data-vw="case"] .cs-metric .eyebrow { font-family: Inter, sans-serif; font-size: 0.8125rem; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, 0.6); }
body[data-vw="case"] .cs-metric .eyebrow::before { display: none; }
body[data-vw="case"] .cs-metric .num .unit { color: #3B9DF0; }
body[data-vw="case"] .cs-metric .sub { color: rgba(255, 255, 255, 0.66); }
body[data-vw="case"] .cs-metric .num.is-struck, body[data-vw="case"] .cs-metric .num.is-struck .unit { color: rgba(255, 255, 255, 0.4); }
body[data-vw="case"] .cs-metric .num.is-struck::after { box-shadow: none; }
body[data-vw="case"] .cs-graph .g-pt { fill: #3B9DF0; }
body[data-vw="case"] .cs-graph .g-head, body[data-vw="case"] .cs-graph .g-arrow { fill: #3B9DF0; stroke: #3B9DF0; }
body[data-vw="case"] .cs-graph .g-arrow { fill: none; }
body[data-vw="case"] .cs-graph .g-glow { display: none; }
body[data-vw="case"] .cs-graph .g-label { font-family: Inter, sans-serif; letter-spacing: 0.02em; fill: rgba(255, 255, 255, 0.45); }

/* the quote: words on the ink, a rule above, no box */
body[data-vw="case"] .cs-chapter--dark .cs-stage {
  background: none; box-shadow: none; border-radius: 0; border-top: 1px solid rgba(255, 255, 255, 0.22); padding-left: 0; padding-right: 0;
}
body[data-vw="case"] .cs-chapter--dark .cs-stage::before { display: none; }
body[data-vw="case"] .cs-quote .mark { color: #3B9DF0; }
body[data-vw="case"] .cs-quote-attr { color: rgba(255, 255, 255, 0.66); }
body[data-vw="case"] .cs-quote-attr::before { background: rgba(255, 255, 255, 0.4); }

/* ── Closing band: light, like the homepage close ───────── */
body[data-vw="case"] .cs-chapter--cta::before { background: #F4F1EA !important; }
body[data-vw="case"] .cs-chapter--cta::after { display: none; }
body[data-vw="case"] .cs-chapter--cta .cs-kicker { color: #5A6A82; }
body[data-vw="case"] .cs-chapter--cta .cs-h2 { color: #0A1628; }
body[data-vw="case"] .cs-chapter--cta .cs-h2 em, body[data-vw="case"] .cs-chapter--cta .cs-h2 .hl-biz em { color: #2D7DD2; }
body[data-vw="case"] .cs-chapter--cta .cs-lede { color: #33435C; }
body[data-vw="case"] .cs-chapter--cta .cs-lede strong { color: #0A1628; }
body[data-vw="case"] .cs-prompt { background: #fff; border-color: rgba(10, 22, 40, 0.16); box-shadow: 0 18px 40px -22px rgba(10, 22, 40, 0.35); }
body[data-vw="case"] .cs-prompt:hover, body[data-vw="case"] .cs-prompt:focus-visible { border-color: #2D7DD2; }
body[data-vw="case"] .cs-prompt .pv { background: #2D7DD2; box-shadow: none; }
body[data-vw="case"] .cs-prompt .txt { color: #0A1628; }
body[data-vw="case"] .cs-prompt .caret { background: #2D7DD2; }
body[data-vw="case"] .cs-prompt:hover .go { background: #1A3A6B; }
body[data-vw="case"] .cs-chapter--cta .btn-ghost { color: #0A1628; background: none; border-color: rgba(10, 22, 40, 0.28); }
body[data-vw="case"] .cs-chapter--cta .btn-ghost:hover { border-color: #0A1628; background: none; }
body[data-vw="case"] .cs-chapter--cta .btn-ghost:active { opacity: 0.7; }
body[data-vw="case"] .cs-chapter--cta .btn-ghost:focus-visible { outline: 2px solid #2D7DD2; outline-offset: 3px; }

/* ── Header figures on the practice case study (the ledger) ── */
body[data-vw="case"] .cs-ledger-rule { background: rgba(10, 22, 40, 0.16); }
body[data-vw="case"] .cs-ledger-item + .cs-ledger-item::after { background: rgba(10, 22, 40, 0.12); }
body[data-vw="case"] .cs-ledger-item::before, body[data-vw="case"] .cs-ledger-item .fig::after { display: none; }
body[data-vw="case"] .cs-ledger-item .tag, body[data-vw="case"] .cs-ledger-item:hover .tag { font-family: Inter, sans-serif; font-size: 0.8125rem; letter-spacing: 0; text-transform: none; color: #5A6A82; }
body[data-vw="case"] .cs-ledger-item .tag::before { display: none; }
body[data-vw="case"] .cs-ledger-item .fig { color: #0A1628; }
body[data-vw="case"] .cs-ledger-item .fig .unit, body[data-vw="case"] .cs-ledger-item:hover .fig .unit { color: #2D7DD2; }
body[data-vw="case"] .cs-ledger-item .cap, body[data-vw="case"] .cs-ledger-item:hover .cap { color: #5A6A82; }

/* the video window bar keeps its dark glass on a cream page */
body[data-vw="case"] .hero-video-frame { background: #0A1628; }
body[data-vw="case"] .hl-biz em { text-shadow: none; }

/* Below 1024px the header video runs full width right under the menu bar, so the bar keeps its
   solid navy there and the cream-header menu colours are put back to white. */
@media (max-width: 1023px) {
  body[data-vw="case"] #nav:not(.scrolled) { background: #0A1628; }
  /* the strip between the bar and the video is navy too, so no cream shows through */
  body[data-vw="case"] .cs-hero { background: linear-gradient(to bottom, #0A1628 0, #0A1628 132px, #F4F1EA 132px); }
  body[data-vw="case"] #nav:not(.scrolled) .nav-logo__word { color: #fff; }
  body[data-vw="case"] #nav:not(.scrolled) .mm-toggle { border-color: rgba(255, 255, 255, 0.24); }
  body[data-vw="case"] #nav:not(.scrolled) .mm-toggle__bar { background: #fff; }
}
