.case-studies {
  --cs-deep: #0a152d;
  --cs-steel: #132a4e;
  --cs-accent: #a9dfff;
  --cs-paper: #f3f6fc;
  --cs-border: #d7e1ef;
}
.case-studies :is(h2,h3) { letter-spacing: -.035em; }
.case-studies h2 { font-size: clamp(1.8rem, 3.1vw, 2.8rem); }
.case-studies [id] { scroll-margin-top: 1rem; }
.cs-hero {
  color: white;
  background: linear-gradient(90deg,#0a152d 7%,#0a152de8 42%,#0a152d33 83%),
    #0a152d url("/case-studies-hero.webp") center right / cover no-repeat;
}
.cs-hero :focus-visible { outline-color: var(--cs-accent); }
.cs-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  padding-block: 1.55rem;
  font-size: .875rem;
  color: #c3d4ee;
}
.cs-trail a { color: #dceaff; }
.cs-trail [aria-hidden] { color: #9db0d1; }
.cs-hero-copy { max-width: 790px; padding: clamp(3.25rem, 6vw, 5.8rem) 0 clamp(4.4rem, 7vw, 7rem); }
.cs-kicker {
  margin-bottom: 1rem;
  color: var(--cs-accent);
  font-size: .875rem;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: .125em;
}
.cs-hero h1 {
  font-size: clamp(2.75rem, 5.4vw, 5.25rem);
  font-weight: 595;
  max-width: 11.8em;
  text-wrap: balance;
}
.cs-intro {
  margin-top: 1.4rem;
  max-width: 61ch;
  color: #dbe8f8;
  font-size: clamp(1.03rem, 1.5vw, 1.19rem);
}
.cs-hero-actions { margin-top: 1.8rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.cs-section { padding-block: clamp(3.2rem, 6.25vw, 5.5rem); }
.cs-section-heading, .cs-library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.4rem;
  margin-bottom: 1.7rem;
}
.cs-section-heading p { margin-top: .6rem; }
.cs-section-heading > a, .cs-results a, .cs-pagination a { color: #1b409a; font-weight: 650; }
.cs-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.1rem; }
.cs-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--cs-border);
  border-radius: 11px;
  background: white;
  transition: border-color .18s, box-shadow .18s;
}
.cs-card:hover { border-color: #8eaddf; box-shadow: 0 8px 30px #122b6a12; }
.cs-card:focus-within { outline: 3px solid #285cfa; outline-offset: 3px; }
.cs-card-top {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.15rem .2rem;
  color: #234988;
  font-size: .875rem;
  font-weight: 690;
}
.cs-card-featured .cs-card-top {
  min-height: 5rem;
  padding-block: .95rem;
  color: #e8f3ff;
  background:
    linear-gradient(106deg,#102344 38%,#183d63b0),
    repeating-linear-gradient(90deg,#101f3b 0 32px,#4e75a3 33px 34px,#101f3b 35px 42px);
}
.cs-card-featured[data-workload="exchange"] .cs-card-top { background-color: #223559; filter: hue-rotate(13deg); }
.cs-card-featured[data-workload="collaboration"] .cs-card-top { filter: hue-rotate(-15deg); }
.cs-card-featured[data-workload="security"] .cs-card-top { filter: hue-rotate(25deg); }
.cs-card-mark {
  display: grid;
  place-items: center;
  flex: 0 0 2.55rem;
  height: 2.55rem;
  border: 1px solid #8abbe16e;
  border-radius: 8px;
  background: #c6e9ff12;
  color: #b6e4ff;
}
.cs-card-body { padding: .8rem 1.15rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.cs-card-featured .cs-card-body { padding: 1.15rem 1.2rem 1.35rem; }
.cs-card-industry { font-size: .875rem; color: #50617b; }
.cs-card h3 { margin-top: .45rem; font-size: clamp(1.22rem, 1.8vw, 1.55rem); }
.cs-card h3 a { color: #101d3a; text-decoration: none; }
.cs-card h3 a::after { content: ""; position: absolute; inset: 0; }
.cs-card h3 a:hover { color: #1a46ac; text-decoration: underline; }
.cs-card-summary { margin-top: .75rem; font-size: 1rem; line-height: 1.52; }
.cs-tags { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: .95rem 0 0; margin: auto 0 0; }
.cs-tags li { border-radius: 5px; padding: .17rem .5rem; background: #eaf1fa; color: #2d4671; font-size: .8125rem; font-weight: 580; }
.cs-library { background: var(--cs-paper); border-block: 1px solid #e3eaf5; }
.cs-search { min-width: min(100%, 20rem); }
.cs-search label { color: #32486a; font-size: .875rem; font-weight: 660; }
.cs-search > div { display: flex; gap: .55rem; margin-top: .28rem; }
.cs-search input {
  min-width: 0;
  flex: 1;
  border: 1px solid #869ab9;
  border-radius: 7px;
  padding: .58rem .75rem;
  color: #142341;
  background: white;
}
.cs-search .button { min-height: 44px; }
.cs-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.cs-filters a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid #b6c6dd;
  border-radius: 6px;
  padding: .35rem .7rem;
  color: #1c3b70;
  text-decoration: none;
  background: white;
  font-size: .875rem;
  font-weight: 630;
}
.cs-filters a:hover { border-color: #3965b3; }
.cs-filters a[aria-current] { color: white; background: #153364; border-color: #153364; }
.cs-results { margin: 1.15rem 0 .8rem; display: flex; flex-wrap: wrap; gap: .45rem 1rem; align-items: center; justify-content: space-between; }
.cs-results p, .cs-results a { font-size: .875rem; }
.cs-pagination { margin-top: 1.4rem; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .45rem .8rem; }
.cs-pagination > * { font-size: .875rem; padding: .55rem .7rem; }
.cs-pagination [aria-disabled] { color: #536580; }
.cs-empty { padding: 1.6rem; border: 1px solid var(--cs-border); background: white; border-radius: 8px; }
.cs-empty p { margin-top: .35rem; }
.cs-consultation { background: #e5eeff; padding-block: clamp(2.6rem, 4vw, 4rem); }
.cs-consultation-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.4rem; }
.cs-consultation h2 { font-size: clamp(1.65rem, 2.8vw, 2.5rem); }
.cs-consultation p { margin-top: .6rem; }
.cs-consultation .button { flex-shrink: 0; }
.cs-story-hero { background: radial-gradient(ellipse at 100% 10%,#183c68 0,transparent 62%), var(--cs-deep); }
.cs-story-hero .cs-hero-copy { max-width: 920px; padding: 2.5rem 0 3.8rem; }
.cs-story-hero h1 { font-size: clamp(2.35rem, 5vw, 4.7rem); max-width: 16em; text-wrap: pretty; }
.cs-story-meta { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: 1.7rem 0 0; }
.cs-story-meta dt { color: #a9c7eb; font-size: .875rem; }
.cs-story-meta dd { color: #f7faff; font-weight: 650; margin: .12rem 0 0; }
.cs-reading {
  display: grid;
  grid-template-columns: minmax(155px,215px) minmax(0,48rem);
  justify-content: center;
  gap: clamp(1.4rem, 5vw, 5.3rem);
  padding-block: clamp(2rem, 5vw, 5rem);
}
.cs-sidebar nav { position: sticky; top: 1.35rem; }
.cs-sidebar h2 { font-size: 1rem; letter-spacing: normal; }
.cs-sidebar ul { list-style: none; padding: 0 0 0 .8rem; margin-block: 1rem 0; border-left: 1px solid #b6c6df; }
.cs-sidebar li + li { margin-top: .6rem; }
.cs-sidebar a { color: #284775; font-size: .875rem; }
.cs-prose { min-width: 0; color: #182640; }
.cs-prose > section { margin-top: 2.1rem; }
.cs-prose > section h2 { font-size: clamp(1.45rem,2.9vw,2.15rem); }
.cs-prose > section p { margin-top: .6rem; font-size: 1.0625rem; line-height: 1.7; }
.cs-key-section { border-left: 2px solid #7297d9; padding-left: 1.1rem; }
.cs-diagram {
  margin-top: 1.25rem;
  border: 1px solid #cfdaec;
  border-radius: 9px;
  padding: 1rem 1.15rem;
  background: #f4f8ff;
}
.cs-diagram figcaption { color: #294574; font-size: .875rem; font-weight: 720; }
.cs-diagram ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: .6rem;
  margin: .65rem 0 .1rem;
  padding: 0;
  list-style: none;
}
.cs-diagram li { display: grid; gap: .17rem; background: #e6effe; border-top: 2px solid #739cdb; padding: .65rem .7rem; border-radius: 4px; }
.cs-diagram li span { color: #395479; font-size: .875rem; }
.cs-sources ul { margin: .7rem 0 0; padding-left: 1.2rem; }
.cs-sources li { margin-bottom: .35rem; }
.cs-sources a { color: #204786; overflow-wrap: anywhere; }
.cs-related-service {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid #cfdcef;
  border-radius: 8px;
  background: #f5f8fe;
  color: #1d458e;
}
.cs-related-service p { font-size: .875rem; }
.cs-related-service a { font-weight: 680; }
.cs-related-service svg { flex: none; }
@media (max-width: 900px) {
  .cs-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cs-hero { background-position: 60% center; }
}
@media (max-width: 660px) {
  .cs-card-grid, .cs-reading, .cs-diagram ol { grid-template-columns: minmax(0,1fr); }
  .cs-section-heading, .cs-library-heading, .cs-consultation-inner { align-items: start; flex-direction: column; }
  .cs-search { width: 100%; }
  .cs-sidebar nav { position: static; }
  .cs-sidebar ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .45rem .65rem; }
  .cs-sidebar li + li { margin-top: 0; }
  .cs-hero { background-image: linear-gradient(90deg,#0a152df0,#0a152db3),url("/case-studies-hero.webp"); }
  .cs-story-hero { background: radial-gradient(ellipse at 100% 15%,#1a3d65,transparent 75%),var(--cs-deep); }
  .cs-trail { padding-block: 1rem; }
  .cs-hero-copy { padding-top: 2.35rem; }
  .cs-hero h1 { font-size: clamp(2.25rem, 10.5vw, 3.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  .cs-card { transition: none; }
}
