:root {
  --background: #ffffff;
  --foreground: #212121;
  --muted: #8a8a92;
  --border: rgba(0, 0, 0, 0.08);
  --accent: #2f6fed;
  --font-display: "Bitter", Georgia, serif;
  --font-sans: "Poppins", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 300;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Hero */
.cs-main {
  max-width: 79.5rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.cs-hero {
  padding: 64px 0;
}

.cs-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .cs-hero-grid {
    grid-template-columns: minmax(0, 880px) 200px;
    column-gap: clamp(2rem, 8vw, 8rem);
    row-gap: 0;
  }

  .cs-hero-heading {
    grid-column: 1 / -1;
  }
}

.cs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.cs-badge img {
  width: 40px;
  height: 40px;
  display: block;
}

.cs-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 880px;
}

.cs-lede {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 140%;
  font-weight: 500;
  margin: 0 0 32px;
  max-width: 880px;
}

.cs-body {
  font-size: 16px;
  line-height: 150%;
  color: var(--foreground);
  margin: 0 0 1.25rem;
}

.cs-caption {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  margin: 10px 0;
}

.cs-body strong,
.cs-body b,
.cs-list strong,
.cs-list b {
  font-weight: 500;
}

.cs-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .cs-meta {
    display: block;
  }
}

.cs-meta h3 {
  font-size: 1rem;
  color: var(--foreground);
  margin: 0;
  font-weight: 600;
}

.cs-meta p {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--foreground);
}

.cs-meta > div:last-child p {
  margin-bottom: 0;
}

/* Screenshot bands */
.cs-shot-band {
  width: 100%;
  background: linear-gradient(160deg, #eaf1ff, #d6e6ff 60%, #eef4ff);
  padding: 3rem 0;
  margin: 0;
}

.cs-shot-band .cs-shot {
  max-width: 79.5rem;
  margin: 0 auto;
  border-radius: 0.75rem;
  box-shadow: 0 30px 60px -30px rgba(20, 30, 60, 0.35);
  width: calc(100% - 4rem);
}

.cs-shot-band--hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  aspect-ratio: 2.308 / 1;
  background-image: url("assets/ai-summaries/hero-mesh-gradient.png");
  background-size: cover;
  background-position: center;
  padding: 0;
  overflow: hidden;
}

/* The 2x re-export is a wider crop (1.601) than the shot it replaced
   (1.237), so filling the band height would render it larger than before.
   Pinned to 53.6% — the 594px width the previous shot occupied. */
.cs-shot-band--hero .cs-shot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: none;
  width: 53.6%;
  height: auto;
  margin: 0;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

.cs-shot-band--harvi-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  aspect-ratio: 2.308 / 1;
  background: none;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}

/* matches the Harvi card on the home page — the hero art's own lavender,
   held clear of the Creative Library band's blue */
.cs-shot-band--harvi-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(
    139.548deg,
    rgb(246, 243, 254) 1.4615%,
    rgb(236, 231, 252) 20%,
    rgb(219, 211, 248) 55%,
    rgb(203, 196, 245) 92%
  );
}

.cs-shot-band--harvi-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("assets/creative-library/hero-noise.png");
  background-size: 1440px 763px;
  background-position: top left;
  background-repeat: repeat;
  opacity: 0.5;
}

.cs-shot-band--cl-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  /* same band proportions as the other case-study heroes */
  aspect-ratio: 2.308 / 1;
  padding: 0;
  background: none;
  overflow: hidden;
  isolation: isolate;
}

.cs-shot-band--cl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(
    139.548deg,
    rgb(240, 244, 254) 1.4615%,
    rgb(228, 237, 254) 20%,
    rgb(205, 223, 255) 55%,
    rgb(186, 211, 255) 92%
  );
}

.cs-shot-band--cl-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("assets/creative-library/hero-noise.png");
  background-size: 1440px 763px;
  background-position: top left;
  background-repeat: repeat;
  opacity: 0.5;
}

/* same 594px width as the AI hero */
.cs-shot-band--cl-hero .cs-shot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: block;
  width: 53.6%;
  height: auto;
  max-width: none;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.cs-shot-band--cl-solution {
  position: relative;
  max-width: 880px;
  aspect-ratio: 880 / 600;
  margin: 2rem auto 3rem;
  padding: 2.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-shot-band--cl-solution::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(
    139.548deg,
    rgb(240, 244, 254) 1.4615%,
    rgb(228, 237, 254) 20%,
    rgb(205, 223, 255) 55%,
    rgb(186, 211, 255) 92%
  );
}

.cs-shot-band--cl-solution::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("assets/creative-library/hero-noise.png");
  background-size: 1440px 763px;
  background-position: top left;
  background-repeat: repeat;
  opacity: 0.5;
}

.cs-shot-band--cl-solution .cs-shot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100% - 5rem);
  max-height: calc(100% - 5rem);
  margin: 0;
  border-radius: 0.5rem;
  box-shadow: none;
  object-fit: contain;
}

.cs-shot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 880 / 500;
  border: 1px dashed var(--border);
  border-radius: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  background: color-mix(in srgb, var(--foreground) 3%, transparent);
}

.cs-shot-band--harvi-hero .cs-shot {
  position: absolute;
  inset: 0;
  z-index: 2;
  max-width: none;
  width: 100%;
  height: 100%;
  margin: 0;
  display: block;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

.cs-shot-band--epe-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  /* same band proportions as the other case-study heroes */
  aspect-ratio: 2.308 / 1;
  background: none;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}

/* matches the Elite Partner Event card on the home page */
.cs-shot-band--epe-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(
    139.548deg,
    rgb(253, 247, 233) 1.4615%,
    rgb(252, 233, 210) 20%,
    rgb(251, 212, 181) 55%,
    rgb(249, 190, 160) 92%
  );
}

.cs-shot-band--epe-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("assets/creative-library/hero-noise.png");
  background-size: 1440px 763px;
  background-position: top left;
  background-repeat: repeat;
  opacity: 0.5;
}

/* 63.6% = the 704px width the Harvi hero's mockup occupies */
.cs-shot-band--epe-hero .cs-shot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: none;
  width: 63.6%;
  height: auto;
  margin: 0;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 640px) {
  .cs-shot-band--epe-hero {
    aspect-ratio: auto;
    padding: 1.5rem 0;
  }

  .cs-shot-band--epe-hero .cs-shot {
    position: relative;
    inset: auto;
    transform: none;
    width: calc(100% - 2rem);
    height: auto;
    margin: 0 auto;
  }
}

.cs-shot-band--inset {
  padding: 0 0 3rem;
  background: none;
}

.cs-shot-frame {
  position: relative;
  max-width: 880px;
  width: 100%;
  aspect-ratio: 880 / 600;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  box-sizing: border-box;
  background-image: url("assets/ai-summaries/solution-mesh-gradient.png");
  background-size: cover;
  background-position: center;
}

/* same lavender as the Harvi hero band and its home-page card */
.cs-video-band {
  position: relative;
  max-width: 880px;
  margin: 2rem auto 2rem;
  padding: 2.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  isolation: isolate;
  background-image: linear-gradient(
    139.548deg,
    rgb(246, 243, 254) 1.4615%,
    rgb(236, 231, 252) 20%,
    rgb(219, 211, 248) 55%,
    rgb(203, 196, 245) 92%
  );
}

/* the hero carries a grain layer over the same gradient; without it these
   bands read as a flatter, cleaner purple than the hero they echo */
.cs-video-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/creative-library/hero-noise.png");
  background-size: 1440px 763px;
  background-position: top left;
  background-repeat: repeat;
  opacity: 0.5;
  pointer-events: none;
}

.cs-video-band > .cs-video-frame {
  z-index: 1;
}

/* was its own background art; unified with the rest of the Harvi palette */

/* Rule: whatever element sits directly above a divider gets a clean 3rem
   bottom margin, with its own bottom padding zeroed so the margin is the
   only source of spacing (applies whether the divider's previous sibling
   IS the content, or a section wrapping it as its last child). */
.cs-block:has(+ .cs-divider),
.cs-shot-band:has(+ .cs-divider) {
  margin-bottom: 3rem;
  padding-bottom: 0;
}

.cs-video-band:has(+ .cs-divider) {
  margin-bottom: 3rem;
}

/* a bare framed shot can also close a section — it keeps its own padding,
   so only the margin is added */
.cs-shot-frame:has(+ .cs-divider) {
  margin-bottom: 3rem;
}

.cs-block:has(> .cs-quote-band:last-child),
.cs-block:has(> .cs-feature-cards:last-child),
.cs-block:has(> .cs-video-band--feature:last-child) {
  padding-bottom: 0;
}

/* was a 1.3MB PNG of one flat color; now on the shared Harvi gradient */

.cs-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 880 / 600;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(20, 30, 60, 0.35);
}

.cs-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cs-video-frame-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
}

.cs-shot-band--inset .cs-shot,
.cs-shot-frame > .cs-shot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: calc(100% - 5rem);
  max-height: calc(100% - 5rem);
  margin: 0;
  border-radius: 0.5rem;
  box-shadow: none;
  object-fit: contain;
  display: block;
}

.cs-shot-band--framed {
  background: none;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.cs-shot-band--framed .cs-shot {
  width: 100%;
  max-width: none;
  margin: 0;
  box-shadow: 0 30px 60px -30px rgba(20, 30, 60, 0.35);
  border: none;
  border-radius: 0.5rem;
}

.cs-shot-band--plain {
  background: none;
  padding: 0 0 2rem;
}

.cs-shot-band--plain .cs-shot {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: none;
  border-radius: 0;
  width: 100%;
  /* width/height attributes reserve the right box before load, but without
     this the height attribute becomes the used height and the image stretches */
  height: auto;
  max-width: none;
}

.cs-shot--no-shadow {
  box-shadow: none !important;
}

.cs-shot--narrow {
  max-width: 680px !important;
}

/* Layout: content + sticky side nav */
.cs-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
}

@media (min-width: 1100px) {
  .cs-layout {
    grid-template-columns: minmax(0, 880px) 200px;
    column-gap: clamp(2rem, 8vw, 8rem);
  }
}

.cs-content {
  min-width: 0;
}

.cs-block {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.cs-detail-row + .cs-block {
  border-top: none;
  margin-top: 4rem;
}

.cs-block:has(+ .cs-detail-row) {
  padding-bottom: 0;
}

.cs-block:has(> #cs-exploration-table) {
  padding-bottom: 0;
}

#exploration {
  padding-bottom: 0;
}

/* A top-level section is one that carries an eyebrow. This was a hand-kept
   list of ids, which silently missed every section added since — new sections
   fell back to the base padding with no error. */
.cs-content > .cs-block[id]:has(> .cs-eyebrow) {
  padding-top: 3rem;
}

#problems,
#problem {
  padding-top: 4rem;
}

/* same structural rule — clears the 4.5rem sticky nav on anchor jumps */
#overview,
.cs-content > .cs-block[id]:has(> .cs-eyebrow) {
  scroll-margin-top: 4.5rem;
}

.cs-block:has(+ .cs-shot-band),
.cs-block:has(+ .cs-video-band) {
  padding-bottom: 8px;
}

.cs-block:first-child {
  border-top: none;
}

.cs-block--seamless {
  border-top: none;
}

.cs-eyebrow {
  color: #767676;
  font-size: 0.85rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.75rem;
}

.cs-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 140%;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

.cs-body--h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 140%;
  letter-spacing: -0.01em;
}

.cs-body .cs-lede-strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 140%;
  letter-spacing: -0.01em;
}

.cs-body .cs-lede-strong--h2 {
  font-size: 28px;
}

.cs-h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 3rem 0 1rem;
}

.cs-before-after {
  position: relative;
  width: 100%;
  aspect-ratio: 880 / 541.259;
  margin-top: 1rem;
}

.cs-before-after-shot {
  position: absolute;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px -20px rgba(20, 30, 60, 0.25);
}

.cs-before-after-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-before-after-shot--before {
  left: 16.93%;
  top: 4.19%;
  width: 55.82%;
  height: 56.72%;
  z-index: 1;
}

.cs-before-after-shot--after {
  left: 21.78%;
  top: 30.19%;
  width: 55.82%;
  height: 56.72%;
  z-index: 2;
}

.cs-before-after-callout {
  position: absolute;
  width: 16.5%;
}

.cs-before-after-callout--before {
  left: 0;
  top: 4.19%;
}

.cs-before-after-callout--after {
  right: 1.65%;
  top: 52.51%;
  text-align: left;
}

.cs-before-after-label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: #bdbdbd;
  margin: 0 0 0.4rem;
}

.cs-before-after-copy {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--foreground);
  margin: 0;
}

.cs-before-after-callout::before {
  content: "";
  position: absolute;
  top: 1.2rem;
  width: 2rem;
  border-top: 1.5px dashed rgba(0, 0, 0, 0.35);
}

.cs-before-after-callout::after {
  content: "";
  position: absolute;
  top: 1.2rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  transform: translateY(-50%);
}

.cs-before-after-callout--before::before,
.cs-before-after-callout--before::after {
  left: 100%;
}

.cs-before-after-callout--before::after {
  transform: translate(calc(2rem - 2.5px), -50%);
}

.cs-before-after-callout--after::before,
.cs-before-after-callout--after::after {
  right: 100%;
}

.cs-before-after-callout--after::after {
  transform: translate(calc(-2rem + 2.5px), -50%);
}

@media (max-width: 720px) {
  .cs-before-after {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .cs-before-after-shot,
  .cs-before-after-callout {
    position: static;
    width: 100%;
  }

  .cs-before-after-callout::before,
  .cs-before-after-callout::after {
    display: none;
  }
}

.cs-flow-label {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  color: var(--foreground);
  margin: 1.25rem 0 0.75rem;
}

.cs-flow-label:first-of-type {
  margin-top: 1rem;
}

.cs-flow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.5rem;
}

.cs-flow-row + .cs-body {
  margin-top: 1rem;
}

.cs-flow-node {
  display: inline-flex;
  align-items: center;
  border: 1px solid #bdbdbd;
  background: #f0f0f1;
  color: var(--foreground);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  white-space: nowrap;
}

.cs-flow-arrow {
  color: #868686;
  font-size: 1rem;
  flex-shrink: 0;
}

.cs-context-row {
  display: flex;
  gap: 2rem;
  align-items: flex-end;
  margin-top: 1.25rem;
  margin-bottom: 1.75rem;
}

.cs-context-row .cs-shot {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

.cs-context-notes {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cs-context-note-title {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--foreground);
  line-height: 1.4;
  margin: 0 0 2px;
}

.cs-context-note-body {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--foreground);
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 720px) {
  .cs-context-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cs-context-notes {
    flex: 1 1 auto;
  }
}

.cs-h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  color: var(--foreground);
  margin: 1.5rem 0 0.5rem;
}

.cs-h4:first-of-type {
  margin-top: 1rem;
}

.cs-list {
  padding-left: 1.25rem;
  color: var(--foreground);
}

.cs-list li {
  margin-bottom: 0.4rem;
}

.cs-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

.cs-option-grid + .cs-block {
  border-top: none;
}

.cs-divider + .cs-block {
  border-top: none;
}

/* Table */
.cs-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

@media (max-width: 700px) {
  #cs-exploration-table,
  #cs-reevaluate-table {
    overflow-x: visible;
    border: none;
    border-radius: 0;
  }

  #cs-exploration-table table,
  #cs-reevaluate-table table {
    min-width: 0;
  }

  #cs-exploration-table thead,
  #cs-reevaluate-table thead {
    display: none;
  }

  #cs-exploration-table table,
  #cs-exploration-table tbody,
  #cs-exploration-table tr,
  #cs-exploration-table td,
  #cs-reevaluate-table table,
  #cs-reevaluate-table tbody,
  #cs-reevaluate-table tr,
  #cs-reevaluate-table td {
    display: block;
    width: auto !important;
  }

  #cs-exploration-table tr,
  #cs-reevaluate-table tr {
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
  }

  #cs-exploration-table tbody tr:last-child,
  #cs-reevaluate-table tbody tr:last-child {
    margin-bottom: 0;
  }

  #cs-exploration-table tbody tr:nth-child(even) td,
  #cs-reevaluate-table tbody tr:nth-child(even) td {
    background: none;
  }

  #cs-exploration-table td,
  #cs-reevaluate-table td {
    border-bottom: none;
    padding: 0.4rem 0;
    text-align: left !important;
  }

  #cs-exploration-table td:not([data-label="Rationale"]),
  #cs-reevaluate-table td:not([data-label="Rationale"]) {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  #cs-exploration-table td::before,
  #cs-reevaluate-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    width: 6.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
  }

  #cs-exploration-table td[data-label="Rationale"]::before,
  #cs-reevaluate-table td[data-label="Rationale"]::before {
    display: block;
    width: auto;
    margin-bottom: 0.25rem;
  }
}

.cs-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  min-width: 640px;
  font-size: 0.9rem;
}

.cs-table th:nth-child(1),
.cs-table td:nth-child(1) {
  width: 6%;
}

#cs-mvp-table .cs-table td {
  font-size: 14px;
}

#cs-mvp-table .cs-table th:nth-child(1),
#cs-mvp-table .cs-table td:nth-child(1) {
  width: 30%;
}

#cs-mvp-table .cs-table th:nth-child(2),
#cs-mvp-table .cs-table td:nth-child(2) {
  width: 36%;
}

#cs-mvp-table .cs-table th:nth-child(3),
#cs-mvp-table .cs-table td:nth-child(3) {
  width: 34%;
}

.cs-table th:nth-child(2),
.cs-table td:nth-child(2) {
  width: 13%;
}

.cs-table th:nth-child(3),
.cs-table td:nth-child(3) {
  width: 15%;
}

.cs-table th:nth-child(4),
.cs-table td:nth-child(4),
.cs-table th:nth-child(5),
.cs-table td:nth-child(5) {
  width: 14%;
}

.cs-table th:nth-child(6),
.cs-table td:nth-child(6) {
  width: 38%;
}

.cs-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
  color: var(--muted);
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.cs-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--foreground);
  line-height: 1.5;
  overflow-wrap: break-word;
}

/* No zebra striping: these tables already use a grey to mean "not in scope"
   (.cs-row--muted), and a second grey competing with it reads as a status. */
.cs-table tbody tr:nth-child(even) td {
  background: none;
}

.cs-table tr:last-child td {
  border-bottom: none;
}

.cs-row--muted {
  opacity: 0.45;
}

.cs-row--muted td {
  color: var(--muted);
}

.cs-tag {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #eef2ff;
  color: var(--accent);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  width: fit-content;
}

.cs-tag-plain {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.cs-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--foreground);
  color: var(--background);
  font-size: 0.85rem;
  font-weight: 600;
}

.cs-row--muted .cs-rank {
  background: var(--border);
  color: var(--muted);
}

.cs-level {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.cs-level--low {
  background: #eaf1ff;
  color: #1d4ed8;
}

.cs-level--medium {
  background: #bfd7ff;
  color: #1d4ed8;
}

.cs-level--high {
  background: #2f6fed;
  color: #ffffff;
}

#cs-exploration-table th:nth-child(1),
#cs-exploration-table td:nth-child(1) {
  width: 6%;
}

#cs-exploration-table .cs-rank {
  background: none;
  color: var(--muted);
  border: 1px solid var(--border);
  font-weight: 500;
}

#cs-exploration-table th:nth-child(2),
#cs-exploration-table td:nth-child(2) {
  width: 18%;
}

#cs-exploration-table td:nth-child(2) {
  font-weight: 500;
}

/* the approach name is the row's identifier — it must never truncate.
   Balanced wrapping keeps the cells looking even without hiding text. */
.cs-clamp-2 {
  display: block;
  text-wrap: balance;
}

#cs-exploration-table th:nth-child(3),
#cs-exploration-table td:nth-child(3) {
  width: 15%;
}

#cs-exploration-table th:nth-child(4) {
  width: 17%;
}

#cs-exploration-table th:nth-child(5) {
  width: 15%;
}

#cs-exploration-table th:nth-child(6),
#cs-exploration-table td:nth-child(6) {
  width: 29%;
}

#cs-exploration-table td:nth-child(1),
#cs-exploration-table th:nth-child(1),
#cs-exploration-table td:nth-child(3),
#cs-exploration-table th:nth-child(3),
#cs-exploration-table td:nth-child(4),
#cs-exploration-table th:nth-child(4),
#cs-exploration-table td:nth-child(5),
#cs-exploration-table th:nth-child(5) {
  text-align: center;
}

/* labels are longer than the old one-word headers — let them wrap rather
   than run into the next column */
#cs-exploration-table th {
  white-space: normal;
}

#cs-exploration-table {
  font-size: 13px;
}

#cs-exploration-table th,
#cs-exploration-table td {
  font-size: 13px;
}

#cs-exploration-table .cs-level {
  font-size: 12px;
}

/* Discoverability and Report Access columns: #3B75D1 blue series */
#cs-exploration-table td:nth-child(3) .cs-level--low,
#cs-exploration-table td:nth-child(4) .cs-level--low {
  background: #e8f0fb;
  color: #2c5aa0;
}

#cs-exploration-table td:nth-child(3) .cs-level--medium,
#cs-exploration-table td:nth-child(4) .cs-level--medium {
  background: #aecbef;
  color: #2c5aa0;
}

#cs-exploration-table td:nth-child(3) .cs-level--high,
#cs-exploration-table td:nth-child(4) .cs-level--high {
  background: #3b75d1;
  color: #ffffff;
}

/* Reevaluate table: same design/style as the exploration table (Effort is column 4 here) */
#cs-reevaluate-table th:nth-child(1),
#cs-reevaluate-table td:nth-child(1) {
  width: 9%;
  white-space: nowrap;
}

#cs-reevaluate-table .cs-rank {
  background: none;
  color: var(--muted);
  border: 1px solid var(--border);
  font-weight: 500;
}

#cs-reevaluate-table th:nth-child(2),
#cs-reevaluate-table td:nth-child(2) {
  width: 18%;
}

#cs-reevaluate-table td:nth-child(2) {
  font-weight: 500;
}

#cs-reevaluate-table th:nth-child(3),
#cs-reevaluate-table td:nth-child(3) {
  width: 16%;
}

#cs-reevaluate-table th:nth-child(4) {
  width: 17%;
}

#cs-reevaluate-table th:nth-child(5) {
  width: 15%;
}

#cs-reevaluate-table th:nth-child(6),
#cs-reevaluate-table td:nth-child(6) {
  width: 26%;
}

#cs-reevaluate-table td:nth-child(1),
#cs-reevaluate-table th:nth-child(1),
#cs-reevaluate-table td:nth-child(3),
#cs-reevaluate-table th:nth-child(3),
#cs-reevaluate-table td:nth-child(4),
#cs-reevaluate-table th:nth-child(4),
#cs-reevaluate-table td:nth-child(5),
#cs-reevaluate-table th:nth-child(5) {
  text-align: center;
}

#cs-reevaluate-table th {
  white-space: normal;
}

#cs-reevaluate-table {
  font-size: 13px;
}

#cs-reevaluate-table th,
#cs-reevaluate-table td {
  font-size: 13px;
}

#cs-reevaluate-table .cs-level {
  font-size: 12px;
}

/* Discoverability and Report Access columns: #3B75D1 blue series */
#cs-reevaluate-table td:nth-child(3) .cs-level--low,
#cs-reevaluate-table td:nth-child(4) .cs-level--low {
  background: #e8f0fb;
  color: #2c5aa0;
}

#cs-reevaluate-table td:nth-child(3) .cs-level--medium,
#cs-reevaluate-table td:nth-child(4) .cs-level--medium {
  background: #aecbef;
  color: #2c5aa0;
}

#cs-reevaluate-table td:nth-child(3) .cs-level--high,
#cs-reevaluate-table td:nth-child(4) .cs-level--high {
  background: #3b75d1;
  color: #ffffff;
}

/* Side nav */
.cs-sidenav {
  position: relative;
  padding-top: 4rem;
}

@media (max-width: 1099px) {
  .cs-sidenav {
    display: none;
  }
}

.cs-sidenav-list {
  position: sticky;
  top: 6.5rem;
  display: flex;
  align-items: stretch;
  gap: 1rem;
}

.cs-sidenav-track {
  position: relative;
  width: 2px;
  flex-shrink: 0;
  background: var(--border);
  border-radius: 1px;
}

.cs-sidenav-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--foreground);
  border-radius: 1px;
  transition: height 0.08s linear;
}

.cs-sidenav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9rem;
}

.cs-side-link {
  text-decoration: none;
  color: #767676;
  transition: color 0.2s ease;
}

.cs-side-link.active,
.cs-side-link:hover {
  color: var(--foreground);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.btn-outline {
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--foreground);
}

/* Previous / next case study pager */
.cs-pager {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 3rem 0 1rem;
  margin-top: 3rem;
}

/* the sequence has ends: the first study has no Previous, the last no Next.
   Keep the lone link on its own side rather than letting flex recentre it. */
.cs-pager:not(:has(.cs-pager-link--prev)) {
  justify-content: flex-end;
}

.cs-pager:not(:has(.cs-pager-link--next)) {
  justify-content: flex-start;
}

.cs-pager-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  /* sized to the longest project title so every card matches */
  flex: 0 0 auto;
  min-width: 21rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--foreground);
  background: var(--background);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.cs-pager-link--next {
  flex-direction: row-reverse;
  text-align: right;
}

.cs-pager-link:hover {
  border-color: color-mix(in srgb, var(--foreground) 22%, transparent);
  box-shadow: 0 12px 28px -18px rgba(20, 30, 60, 0.45);
  transform: translateY(-2px);
}

.cs-pager-arrow {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--foreground) 6%, transparent);
  color: var(--foreground);
  font-size: 0.875rem;
  line-height: 1;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.cs-pager-link:hover .cs-pager-arrow {
  background: color-mix(in srgb, var(--foreground) 12%, transparent);
}

.cs-pager-link--prev:hover .cs-pager-arrow {
  transform: translateX(-3px);
}

.cs-pager-link--next:hover .cs-pager-arrow {
  transform: translateX(3px);
}

.cs-pager-thumb {
  flex-shrink: 0;
  width: 4.5rem;
  height: 3.25rem;
  object-fit: cover;
  object-position: top left;
  border-radius: 6px;
  background: #eef2fa;
}

.cs-pager-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.cs-pager-label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.cs-pager-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .cs-pager {
    flex-direction: column;
    align-items: stretch;
  }

  .cs-pager-link {
    min-width: 0;
  }

  .cs-pager-thumb {
    display: none;
  }
}

/* Footer */
.cs-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.cs-footer-inner {
  max-width: 79.5rem;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .cs-footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.cs-footer-inner a {
  text-decoration: none;
}

.cs-footer-inner a:hover {
  color: var(--foreground);
}

/* Testimonial quotes */
.cs-quote-band {
  background: #f2f8ff;
  padding: 32px 40px;
  border-radius: 8px;
  margin: 1.5rem 0 2rem;
}

.cs-quote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 700px) {
  .cs-quote-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cs-quote {
  margin: 0;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e6f2ff;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 13px;
  line-height: 1.5;
  color: var(--foreground);
}

.cs-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Single inline callout quote */
.cs-callout {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border-left: 3px solid var(--accent);
  border-radius: 0 0.5rem 0.5rem 0;
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--foreground);
}

.cs-callout cite {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted);
}

.cs-shot-annotated {
  position: relative;
}

.cs-callout--float {
  margin: 1rem 0 0;
  font-family: var(--font-sans);
  font-size: 13px;
}

@media (min-width: 860px) {
  .cs-callout--float {
    position: absolute;
    right: -76px;
    bottom: 58px;
    max-width: 260px;
    margin: 0;
    background: var(--background);
    box-shadow: 0 20px 40px -16px rgba(20, 30, 60, 0.3);
    z-index: 2;
  }
}

/* Feature summary cards */
.cs-feature-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

@media (min-width: 700px) {
  .cs-feature-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cs-feature-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.cs-feature-card .cs-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  margin-bottom: 1rem;
}

.cs-feature-card .cs-feature-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.cs-feature-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.cs-feature-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--foreground) 80%, transparent);
  margin: 0;
}

/* Requirement cards */
.cs-req-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  margin: 0.5rem 0;
}

@media (min-width: 700px) {
  .cs-req-cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
}

.cs-req-card {
  padding: 1rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--background);
}

.cs-req-card p {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.3;
  color: var(--foreground);
}

.cs-req-card p:first-child {
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  margin-bottom: 0.25rem;
}

.cs-req-cards--cl {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.cs-req-card--cl {
  padding: 1.5rem 1rem;
  border: none;
  border-radius: 8px;
  background: #f6f6f6;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cs-req-card--cl p {
  font-size: 1rem;
  font-weight: 300;
  white-space: normal;
  margin: 0;
}

.cs-req-card--cl p:first-child {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.334;
  white-space: nowrap;
  margin-bottom: 0;
}

/* Grid + subgrid so the labels share one row and the descriptions another:
   a title that wraps can't shunt its own description out of line with the
   neighbours', which a flex row of independent cards allowed. */
.cs-req-cards--fb {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  /* the shared .cs-req-cards margin left only 8px before the next paragraph */
  margin-bottom: 1.75rem;
}

.cs-req-card--fb {
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 0.15rem;
  min-width: 0;
  padding: 1rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  display: grid;
  align-content: center;
  justify-items: start;
}

/* nowrap was fine while the cards sized to their text; now that they share
   the row equally the longest label has to wrap instead of spilling out */
.cs-req-card--fb p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  white-space: normal;
  margin: 0;
}

.cs-req-card--fb p:first-child {
  font-size: 1rem;
  font-weight: 500;
  white-space: normal;
  margin-bottom: 0.15rem;
}

/* Workflow diagram + pain points */
.cs-block:has(> .cs-workflow-row:last-child) {
  padding-bottom: 0;
}

.cs-block:has(> .cs-workflow-row:last-child) + .cs-block {
  border-top: none;
  padding-top: 0;
}

.cs-workflow-row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.cs-workflow-diagram {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-height: 450px;
  border-radius: 8px;
  cursor: zoom-in;
}

.cs-pain-points {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 0 0 220px;
  justify-content: center;
}

.cs-pain-point {
  background: #f6f6f6;
  border-radius: 6px;
  padding: 0.5rem 1rem;
}

.cs-pain-point-label {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 700;
  color: #757575;
  line-height: 1.3;
  margin: 0 0 2px;
}

.cs-pain-point-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--foreground);
  line-height: 1.3;
  margin: 0 0 2px;
}

.cs-pain-point-body {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--foreground);
  line-height: 1.3;
  margin: 0;
}

@media (max-width: 720px) {
  .cs-workflow-row {
    flex-direction: column;
  }

  .cs-pain-points {
    flex: 1 1 auto;
    width: 100%;
  }
}

.cs-req-cards--ia {
  display: flex;
  flex-wrap: wrap;
  grid-template-columns: none;
  gap: 1.5rem;
}

.cs-req-card--ia {
  flex: 1 1 0;
  min-width: 200px;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  background: #f6f6f6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.cs-req-card--ia p {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.3;
  white-space: normal;
  margin: 0;
}

.cs-req-card--ia p:first-child {
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.cs-compare-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem 3rem;
}

.cs-compare-item {
  grid-column: span 2;
}

.cs-compare-item--wide {
  grid-column: span 3;
}

.cs-compare-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cs-compare-label {
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
  margin: 0;
}

.cs-compare-item .cs-shot {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cs-compare-copy {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--foreground);
  margin: 0;
}

.cs-compare-copy-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-compare-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.3rem;
}

.cs-compare-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cs-compare-tag--benefit {
  color: #1c8a4f;
}

.cs-compare-tag--benefit::before {
  background: #22a05a;
}

.cs-compare-tag--tradeoff {
  color: #b45f04;
}

.cs-compare-tag--tradeoff::before {
  background: #d97706;
}

.cs-compare-grid + .cs-block {
  padding-top: 0;
}

.cs-block--tight-top {
  padding-top: 0;
}

.cs-block:has(+ .cs-compare-grid--two) {
  padding-bottom: 0;
}

.cs-detail-row {
  position: relative;
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

/* Leader lines are drawn (case-study.js) rather than made of CSS stubs, so a
   callout can sit anywhere in the column and still point at its own row in
   the screenshot. */
.cs-detail-leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.cs-detail-image {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: none;
  margin: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Pinning each callout to a percentage of the image height collided as soon
   as the copy grew — the anchors are fixed but the boxes are text-sized.
   Distributing them down the column can't overlap at any width. */
.cs-detail-callouts {
  position: relative;
  flex: 0 0 260px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}

.cs-detail-callout {
  position: relative;
  background: #f6f6f6;
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
}



.cs-detail-callout-title {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--foreground);
  line-height: 1.3;
  margin: 0 0 2px;
}

.cs-detail-callout-body {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--foreground);
  line-height: 1.3;
  margin: 0;
}

@media (max-width: 720px) {
  .cs-detail-row {
    flex-direction: column;
  }

  .cs-detail-callouts {
    flex: 1 1 auto;
    width: 100%;
  }
}

.cs-decision-callout {
  background: rgba(0, 0, 0, 0.04);
  border: none;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 16px;
  line-height: 150%;
  color: var(--foreground);
  margin: 0 0 1.25rem;
}

.cs-decision-callout-icon {
  margin-right: 0.4rem;
}

@media (max-width: 720px) {
  .cs-compare-grid {
    grid-template-columns: 1fr;
  }
}

.cs-exp-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.cs-exp-tag--problem {
  background: rgba(232, 38, 74, 0.1);
  color: #e8264a;
}

.cs-exp-tag--approach {
  background: rgba(47, 111, 237, 0.1);
  color: #2f6fed;
}

.cs-ia-diagram-frame {
  margin-top: 2rem;
}

.cs-ia-diagram-frame .cs-shot {
  box-shadow: none;
  border-radius: 0;
  margin: 0;
}

/* Numbered question box */
.cs-numbered-box {
  background: #f6f6f6;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  margin: 0.5rem 0;
}

.cs-numbered-box ol {
  margin: 0;
  padding-left: 1.5rem;
  font-weight: 400;
  color: var(--foreground);
}

.cs-numbered-box li {
  margin-bottom: 0.4rem;
}

.cs-numbered-box li:last-child {
  margin-bottom: 0;
}

/* Key takeaways list */
.cs-takeaways {
  margin: 0 0 104px;
  padding: 1.25rem 1.5rem;
  background: color-mix(in srgb, var(--foreground) 3%, transparent);
  border-radius: 0.75rem;
}

.cs-takeaways p {
  font-weight: 600;
  margin: 0 0 0.5rem;
}

/* Live-site link */
.cs-live-link {
  display: inline-block;
  margin-top: 0.5rem;
  /* darker than the decorative pink so it clears 4.5:1 at this size */
  color: #d81f45;
  font-size: 0.875rem;
  text-decoration: underline;
}

.cs-live-link-arrow {
  display: inline-block;
  text-decoration: none;
}

.cs-live-link:hover .cs-live-link-arrow {
  animation: cs-about-link-bounce 0.6s ease infinite;
}

@keyframes cs-about-link-bounce {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}

/* Carousel */
.cs-carousel {
  position: relative;
  max-width: 79.5rem;
  margin: 0 auto;
  width: calc(100% - 4rem);
}

.cs-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 0.75rem;
  box-shadow: 0 30px 60px -30px rgba(20, 30, 60, 0.35);
}

.cs-carousel-track::-webkit-scrollbar {
  display: none;
}

.cs-carousel-track img {
  flex: 0 0 100%;
  scroll-snap-align: start;
  border-radius: 0.75rem;
}

.cs-shot-band--epe-carousel {
  background-image: url("assets/epe/carousel-bg.jpg");
  background-size: cover;
  background-position: center;
  padding: 8% 11%;
  margin-bottom: 2rem;
}

.cs-shot-band--epe-carousel .cs-carousel {
  max-width: none;
  width: 100%;
  margin: 0;
}

.cs-shot-band--epe-carousel .cs-carousel-track {
  box-shadow: none;
}

.cs-shot-band--epe-carousel .cs-carousel-track img {
  border-radius: 0;
}

.cs-shot-band--epe-carousel .cs-carousel-arrow--prev {
  left: -3.5rem;
}

.cs-shot-band--epe-carousel .cs-carousel-arrow--next {
  right: -3.5rem;
}

.cs-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: var(--background);
  color: var(--foreground);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(20, 30, 60, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-carousel-arrow--prev {
  left: 0.75rem;
}

.cs-carousel-arrow--next {
  right: 0.75rem;
}

.cs-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cs-carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
}

.cs-carousel-dots button.active {
  background: var(--accent);
}

/* Lightbox */
.cs-lightbox {
  cursor: zoom-in;
}

.cs-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: #0a0c12;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cs-lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cs-lightbox-overlay [hidden] {
  display: none !important;
}

.cs-lightbox-overlay img,
.cs-lightbox-overlay video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  cursor: default;
}

.cs-lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, opacity 0.2s ease;
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
}

.cs-lightbox-close.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cs-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Exploration options grid */
.cs-option-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
  margin: 0 0 2rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid #f1f1f1;
  background-color: #ffffff;
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.12) 1px, transparent 1px);
  background-size: 14px 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.cs-option-card {
  border-radius: 0.75rem;
  background: none;
  box-shadow: none;
  overflow: hidden;
}

/* no panel behind the label any more, so drop the inset that kept the text
   off the panel edge — it would otherwise sit indented from the schematic */
.cs-option-card-header {
  padding: 0;
  margin-bottom: 0.75rem;
  background: none;
}

/* The options are a genuinely enumerated set — they get re-ranked by number
   in the tables below — so the index is information, not decoration. It stays
   quiet: a small tabular numeral and a hairline, nothing filled or boxed. */
.cs-option-card h4 {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 0.35rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.cs-option-num {
  flex: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--foreground) 40%, transparent);
}

.cs-option-name {
  min-width: 0;
}


.cs-option-card p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--foreground);
}

.cs-option-media {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cs-option-card img {
  display: block;
  width: 100%;
  margin: 0;
  border-radius: 0;
}

/* Hand-drawn correction annotation */
.cs-annotate-note {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--foreground);
}

/* The two tested concepts are full report screens — side by side they render
   at ~380px and the UI detail that's being compared disappears. Stacked, each
   gets the full column width. */
.cs-shot-pair {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* flex-basis:0 + grow was sized along the row axis; once this became a column
   it applied to height and stretched the images off their aspect ratio */
.cs-shot-pair .cs-shot {
  flex: none;
  width: 100%;
  height: auto;
  min-width: 0;
}

.cs-shot-pair-item {
  flex: none;
  min-width: 0;
}

.cs-shot-pair-item .cs-shot {
  width: 100%;
}

/* these two label the concepts being compared, so they carry the same weight
   as the option names in the exploration grid rather than caption grey */
.cs-shot-pair-item .cs-caption {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 0.75rem;
}

.cs-shot-band--no-bottom {
  padding-bottom: 0;
}

/* The hero heading block spans both grid tracks so the title can run wide, but
   the deck should stop at the content column. Matches .cs-hero-copy's width:
   the grid minus the 200px meta track and the column gap. Declared here, after
   the base .cs-lede rule, because a media query adds no specificity. */
@media (min-width: 900px) {
  .cs-lede {
    max-width: min(880px, calc(100% - 200px - clamp(2rem, 8vw, 8rem)));
  }
}

/* ── Exploration schematics ──────────────────────────────────────────────
   The five concepts differ only in where the trigger sits and where the
   summary appears; five screenshots of the same application hid that. These
   redraw each option as a flat schematic so the one varying element carries
   the only colour on the page. */
/* sits under the grid as a key to the schematics above it */
.cs-wire-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: -0.5rem 0 2rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: color-mix(in srgb, var(--foreground) 62%, transparent);
}

.cs-wire-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.cs-wire-legend i {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 2px;
}

.cs-wire-legend .cs-wire-key-trig {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #2f6fed;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.28);
}

.cs-wire-legend .cs-wire-key-surface {
  background: #c0d1f3;
  border: 1px solid rgba(47, 111, 237, 0.45);
}

.cs-wire-legend .cs-wire-key-chrome {
  background: #e8eaef;
  border: 1px solid #dde0e6;
}

.cs-wire {
  position: relative;
  width: 100%;
  aspect-ratio: 340 / 220;
  background: #f7f8fa;
  border: 1px solid #dde0e6;
  border-radius: 3px;
  overflow: hidden;
}

.cs-wire i {
  position: absolute;
  display: block;
  border-radius: 1.5px;
}

.cs-wire-rail {
  left: 0;
  top: 0;
  width: 5.5%;
  height: 100%;
  background: #b9bdc6;
  border-radius: 0;
}

.cs-wire-filters {
  left: 5.5%;
  top: 0;
  width: 17%;
  height: 100%;
  background: #e8eaef;
  border-right: 1px solid #dde0e6;
  border-radius: 0;
}

.cs-wire-filt {
  left: 8%;
  width: 12%;
  height: 4.5%;
  background: #dde0e6;
}

.cs-wire-header {
  left: 22.5%;
  top: 0;
  right: 0;
  height: 12%;
  background: #e8eaef;
  border-bottom: 1px solid #dde0e6;
  border-radius: 0;
}

.cs-wire-metric {
  top: 19%;
  width: 16%;
  height: 15%;
  background: #e8eaef;
  border: 1px solid #dde0e6;
}

.cs-wire-chart {
  left: 24.5%;
  top: 40%;
  right: 3%;
  height: 32%;
  background: #e8eaef;
  border: 1px solid #dde0e6;
}

.cs-wire-row {
  left: 24.5%;
  top: 78%;
  right: 3%;
  height: 12%;
  background: #e8eaef;
  border: 1px solid #dde0e6;
}

.cs-wire-surface {
  background: rgba(216, 31, 69, 0.13);
  border: 1px solid rgba(216, 31, 69, 0.5);
  border-radius: 2px;
}

.cs-wire-surface.is-float {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}

.cs-wire-trig {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d81f45;
  box-shadow: 0 0 0 3.5px rgba(216, 31, 69, 0.16);
  z-index: 3;
}

/* ── Option 1 only: geometry from the Figma source (node 3108-27925) ─────
   Proportions come from that render; the accent uses the site's blue; the
   greys stay on the shared schematic palette so it sits with options 2–5. */
.cs-wire--figma {
  aspect-ratio: 1442 / 902;
}

.cs-wire--figma .cs-wire-rail {
  width: 4.5%;
}

.cs-wire--figma .cs-wire-filters {
  left: 4.5%;
  width: 17.6%;
}

.cs-wire--figma .cs-wire-filt {
  left: 5.7%;
  width: 15.4%;
  height: 3.8%;
}

.cs-wire--figma .cs-wire-header {
  left: 22.1%;
  height: 10.3%;
}

.cs-wire--figma .cs-wire-block {
  background: #e8eaef;
  border: 1px solid #dde0e6;
  border-radius: 1.5px;
}

.cs-wire--figma .cs-wire-surface {
  background: #c0d1f3;
  border: 1px solid rgba(47, 111, 237, 0.45);
  border-radius: 2px;
}

/* a floating window sits over the report rather than beside it, so the fill
   is translucent — the block beneath tints through, as in the source */
.cs-wire--figma .cs-wire-surface.is-float {
  background: rgba(47, 111, 237, 0.27);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/* same translucent fill, but seated inside the nav column rather than
   floating over the report — so no lift shadow */
.cs-wire--figma .cs-wire-surface.is-inset {
  background: rgba(47, 111, 237, 0.27);
}

.cs-wire--figma .cs-wire-trig {
  width: 2.6%;
  height: auto;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: #2f6fed;
  box-shadow: 0 0 0 2px rgba(47, 111, 237, 0.28);
}

/* the FAB is a real control in the layout, not a callout dot — it is drawn
   at its actual size rather than at the annotation marker's */
.cs-wire--figma .cs-wire-trig--fab {
  width: 5.7%;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.28);
}

/* .cs-option-card p is more specific than a lone class, so scope this or the
   caption inherits the description's size and the hierarchy collapses */
.cs-option-card .cs-wire-axes {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.6;
  color: color-mix(in srgb, var(--foreground) 62%, transparent);
}

.cs-wire-axes b {
  font-weight: 500;
  color: color-mix(in srgb, var(--foreground) 82%, transparent);
}

/* the schematic supplies its own frame — drop the screenshot treatment */
.cs-option-media--wire {
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

/* Schematics carry their own frame, so the grid drops the card treatment the
   screenshot grids need and runs the full width of the content column. */
.cs-option-grid:has(.cs-option-media--wire) {
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

/* Compact enough to sit two-up, which is the point — the five options are
   meant to be compared, not scrolled through one at a time. */
@media (min-width: 760px) {
  .cs-option-grid:has(.cs-option-media--wire) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
}

/* Component states: same card rhythm as the exploration options, but the
   panels are screenshots rather than schematics, so they sit on the page
   ground with no frame of their own. */
.cs-option-grid--states {
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
}

/* Descriptions run to different line counts, which would start each card's
   image at a different height. Subgrid puts every header in a shared row so
   the panels line up along one top edge. */
.cs-option-grid--states .cs-option-card {
  grid-row: span 2;
  display: grid;
  grid-template-rows: subgrid;
  align-content: start;
  /* a subgrid inherits the parent's 2.5rem row gap unless it sets its own */
  row-gap: 1rem;
}

.cs-option-grid--states .cs-option-card-header {
  margin-bottom: 0;
}

@supports not (grid-template-rows: subgrid) {
  .cs-option-grid--states .cs-option-card {
    display: block;
  }

  .cs-option-grid--states .cs-option-card-header {
    min-height: 4.5rem;
  }
}

.cs-option-media--state {
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  background: none;
}

.cs-option-media--state img {
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 900px) {
  .cs-option-grid--states {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .cs-option-grid--states {
    grid-template-columns: 1fr;
  }
}

/* ── Phone layout fixes ──────────────────────────────────────────────────
   Several desktop layouts were built with flex rows that never wrap and
   images with max-width:none, so they panned the page sideways on a phone. */
@media (max-width: 720px) {
  /* image + callouts sat side by side; the image kept its 2882px natural
     width and pushed the document to 1629px */
  .cs-detail-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .cs-detail-image {
    flex: none;
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  /* nowrap row of fixed-width cards ran off the right edge */
  .cs-req-cards--fb {
    grid-template-columns: 1fr;
  }

  /* the frame kept its 40px inset at every width, leaving the video at 32%
     of an already narrow column */
  .cs-shot-frame,
  .cs-shot-band--cl-solution {
    padding: 1rem;
  }

  .cs-shot-band--inset .cs-shot,
  .cs-shot-frame > .cs-shot,
  .cs-shot-band--cl-solution .cs-shot {
    max-width: calc(100% - 2rem);
    max-height: calc(100% - 2rem);
  }
}

/* ── Phone type scale ────────────────────────────────────────────────────
   None of the display sizes stepped down for small screens: the case-study
   h1 pinned to its 40px clamp floor and the lede, h2 and h3 had no mobile
   rule at all, so a one-sentence lede ran to five lines of ~20 characters. */
@media (max-width: 640px) {
  .cs-title {
    font-size: 1.875rem;
  }

  .cs-lede {
    font-size: 1.25rem;
  }

  .cs-h2 {
    font-size: 1.375rem;
  }

  .cs-h3 {
    font-size: 1.125rem;
  }
}

/* Final Design summary cards reuse the IA card look but carry three or four
   times the copy, so they need a tighter inset than the 2rem the short IA
   labels use — and subgrid so their titles and bodies line up despite one
   title wrapping. */
.cs-req-cards--ia,
.cs-req-cards--feature {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cs-req-card--ia,
.cs-req-card--feature {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 0.3rem;
  align-content: start;
  justify-items: start;
  min-width: 0;
  padding: 1rem 1.125rem;
}

.cs-req-card--feature p {
  line-height: 1.45;
}

/* .cs-req-card p:first-child pins titles to one line, which these are too
   long for — the third ran 57px past its card */
.cs-req-card--feature p:first-child {
  white-space: normal;
}

/* the IA row keeps its roomier inset; the feature cards hold far more copy,
   so they reclaim the horizontal space. Order matters: the feature cards
   carry both classes, so this pair has to come after the --ia rule. */
.cs-req-card--ia {
  padding: 0.75rem 2rem;
}

.cs-req-card--feature {
  padding: 1rem 1.125rem;
}

@media (max-width: 720px) {
  .cs-req-cards--ia,
  .cs-req-cards--feature {
    grid-template-columns: 1fr;
  }
}

/* the lede's own bottom margin stacks on the hero grid's row gap, which is
   a lot of empty screen on a phone */
@media (max-width: 640px) {
  .cs-hero-grid {
    row-gap: 1.25rem;
  }

  .cs-lede {
    margin-bottom: 1rem;
  }
}

/* three columns squeeze to ~90px each on a phone and wrap every value */
@media (max-width: 640px) {
  .cs-meta {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* The seamless run at the top of a case study (problem, goals, solution,
   outcome) reads as one passage, so 64/32 padding between them is a lot of
   empty screen on a phone. Selector has to out-specify the #problem and
   `[id]:has(> .cs-eyebrow)` rules above. */
@media (max-width: 640px) {
  .cs-content > .cs-block--seamless,
  .cs-content > #problem.cs-block--seamless {
    padding-top: 2rem;
    padding-bottom: 1rem;
  }
}

/* On a phone the fixed 2.308 band leaves the shot pinned edge to edge, so
   let the band size to an inset shot instead — same as the other heroes. */
@media (max-width: 640px) {
  .cs-shot-band--cl-hero {
    aspect-ratio: auto;
    padding: 1.5rem 0;
  }

  .cs-shot-band--cl-hero .cs-shot {
    position: relative;
    inset: auto;
    transform: none;
    width: calc(100% - 2rem);
    height: auto;
    margin: 0 auto;
  }
}

/* Same treatment as the Creative Library hero: on a phone the fixed 2.308
   band leaves the shot pinned edge to edge, so let the band size to an
   inset shot instead. */
@media (max-width: 640px) {
  .cs-shot-band--hero {
    aspect-ratio: auto;
    padding: 1.5rem 0;
  }

  .cs-shot-band--hero .cs-shot {
    position: relative;
    inset: auto;
    transform: none;
    width: calc(100% - 2rem);
    height: auto;
    margin: 0 auto;
  }
}

/* same phone treatment as the other heroes */
@media (max-width: 640px) {
  .cs-shot-band--harvi-hero {
    aspect-ratio: auto;
    padding: 1.5rem 0;
  }

  .cs-shot-band--harvi-hero .cs-shot {
    position: relative;
    inset: auto;
    width: calc(100% - 2rem);
    height: auto;
    margin: 0 auto;
  }
}

/* it was out-sizing the real .cs-h2 headings, which step down on phones */
@media (max-width: 640px) {
  .cs-body--h2 {
    font-size: 1.375rem;
  }
}
