.cs { --section-y: clamp(40px, 6vw, 72px); }
.cs-hero { padding: 64px 0 32px; text-align: center; }
.cs-hero + .section,
.cs-statband + .section,
.cs-customers + .section { padding-top: var(--space-8); }
.cs-hero-inner { max-width: 760px; margin-inline: auto; }
.cs-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  color: var(--fg);
  margin: 14px 0 20px;
  text-wrap: balance;
}
.cs-hero .lede {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
  color: var(--fg-body);
  margin: 0 auto 28px;
  max-width: 640px;
}
.cs-hero .hero-ctas { justify-content: center; }

.cs-statband { padding: 0; margin-top: clamp(24px, 3.4vw, 44px); }
.cs-bigstats {
  display: grid;
  grid-template-columns: repeat(var(--cs-stat-cols, 3), minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cs-bigstat {
  text-align: center;
  padding: clamp(28px, 3.4vw, 40px) 20px;
  border-right: 1px solid var(--border);
}
.cs-bigstat:last-child { border-right: none; }
.cs-bigstat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--color-emerald-700), var(--color-emerald-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cs-bigstat span {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: var(--fg-muted);
  margin-top: 10px;
}
.cs-customers { padding: 0; margin-top: clamp(24px, 3vw, 40px); }
.cs-customer-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(14px, 1.9vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.cs-customer-strip li {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(13px, 1.45vw, 19px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-slate-400);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .cs-bigstats { grid-template-columns: 1fr; }
  .cs-bigstat { border-right: none; border-bottom: 1px solid var(--border); }
  .cs-bigstat:last-child { border-bottom: none; }
  .cs-customer-strip { flex-wrap: wrap; gap: 12px 20px; }
  .cs-customer-strip li { font-size: 14px; white-space: normal; text-align: center; }
}

.cs-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.cs-tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-violet-50);
  border: 1px solid var(--border-brand);
  color: var(--color-violet-700);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.cs-tag.ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--fg-muted);
}
.cs-excerpt {
  display: block;
  color: var(--fg-body);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
}
.cs-art-fallback {
  display: block;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(120% 120% at 0% 100%, rgba(20, 184, 166, 0.18), transparent 60%),
    var(--color-ivory);
}

.cs-featured-sec { padding-bottom: var(--space-8); }
.cs-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.cs-featured:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.cs-featured:focus-visible { outline: none; box-shadow: var(--focus-ring), var(--shadow-lg); }
.cs-featured-art {
  display: block;
  width: 100%; height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.cs-featured-body {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-10);
}
.cs-featured-customer {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-muted);
}
.cs-featured-title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--fg);
}
.cs-read {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-4);
  font-weight: 600;
  color: var(--brand);
}
.cs-read i, .cs-read svg { width: 16px; height: 16px; }
.cs-featured:hover .cs-read i, .cs-featured:hover .cs-read svg { transform: translateX(3px); }
.cs-read i, .cs-read svg { transition: transform var(--dur-base) var(--ease-out); }

.cs-search { margin-bottom: var(--space-5); max-width: 520px; }
.cs-search label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--fg);
}
.cs-search-field {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 0 var(--space-4);
  min-height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
}
.cs-search-field:focus-within { border-color: var(--color-violet-300); box-shadow: var(--focus-ring); }
.cs-search-field i, .cs-search-field svg { width: 18px; height: 18px; flex: none; color: var(--fg-muted); }
.cs-search-field input {
  flex: 1;
  border: 0; background: none; padding: 0;
  font: inherit; font-size: var(--fs-body);
  color: var(--fg);
  min-width: 0;
}
.cs-search-field input:focus { outline: none; }
.cs-search-field input::placeholder { color: var(--fg-faint); }

.cs-sort { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.cs-sort label { font-size: var(--fs-body-sm); color: var(--fg-muted); white-space: nowrap; }
.cs-sort select {
  appearance: none;
  padding: 8px 32px 8px 14px;
  min-height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background-color: var(--bg-card);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  font: inherit; font-size: var(--fs-body-sm);
  color: var(--fg-body);
  cursor: pointer;
}
.cs-sort select:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.cs-filters {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-4) var(--space-6);
  margin-bottom: var(--space-4);
}
.cs-facet { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.cs-chip {
  appearance: none;
  padding: 8px 14px;
  min-height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--fg-body);
  font: inherit;
  font-size: var(--fs-body-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.cs-chip:hover { border-color: var(--color-violet-300); color: var(--fg); }
.cs-chip:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.cs-chip.is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.cs-reset, .cs-linkbtn {
  appearance: none; border: 0; background: none; padding: 0;
  font: inherit; font-size: var(--fs-body-sm); font-weight: 600;
  color: var(--brand); cursor: pointer; text-decoration: underline;
}
.cs-reset:focus-visible, .cs-linkbtn:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-xs); }
.cs-count {
  margin: 0 0 var(--space-6);
  font-size: var(--fs-body-sm);
  color: var(--fg-muted);
}

.cs-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}
.cs-cell { display: flex; }
.cs-card {
  display: flex; flex-direction: column;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.cs-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--border-brand); }
.cs-card:focus-visible { outline: none; box-shadow: var(--focus-ring), var(--shadow-lg); }
.cs-card-art {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.cs-card-body {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-6);
  flex: 1;
}
.cs-card-customer {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-muted);
}
.cs-card-title {
  font-family: var(--font-display);
  font-size: var(--fs-h5);
  line-height: var(--lh-snug);
  color: var(--fg);
}
.cs-card-foot {
  display: flex; align-items: center; gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-4);
  font-size: var(--fs-caption);
  color: var(--fg-muted);
}
.cs-empty {
  margin: var(--space-8) 0 0;
  padding: var(--space-8);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-xl);
  text-align: center;
  color: var(--fg-body);
}

.cs-anatomy {
  list-style: none; margin: 0 0 var(--space-12); padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
}
.cs-anatomy li {
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow-xs);
}
.cs-anatomy i, .cs-anatomy svg { width: 22px; height: 22px; color: var(--brand); }
.cs-anatomy h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h5);
  margin: var(--space-4) 0 var(--space-2);
  color: var(--fg);
}
.cs-anatomy p { margin: 0; color: var(--fg-body); font-size: var(--fs-body-sm); line-height: var(--lh-relaxed); }

.cs-zero-cta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}
.cs-zero-card {
  padding: var(--space-8);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-2xl);
  background: var(--gradient-ai-soft);
}
.cs-zero-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  margin: 0 0 var(--space-3);
  color: var(--fg);
}
.cs-zero-card p { margin: 0 0 var(--space-6); color: var(--fg-body); line-height: var(--lh-relaxed); }

.cs-reslist {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
.cs-reslist a {
  display: flex; flex-direction: column; gap: var(--space-2);
  height: 100%;
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.cs-reslist a:hover { border-color: var(--color-violet-300); box-shadow: var(--shadow-md); }
.cs-reslist a:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.cs-reslist i, .cs-reslist svg { width: 20px; height: 20px; color: var(--brand); }
.cs-res-title { font-family: var(--font-display); font-size: var(--fs-h5); color: var(--fg); }
.cs-res-desc { font-size: var(--fs-body-sm); color: var(--fg-muted); line-height: var(--lh-relaxed); }

.csd-wrap {
  width: min(100% - 48px, 760px);
  margin-inline: auto;
}
.csd-head { padding: var(--space-12) 0 var(--space-8); }
.csd-crumb { margin-bottom: var(--space-6); }
.csd-crumb ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
  font-size: var(--fs-body-sm);
  color: var(--fg-muted);
}
.csd-crumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--fg-faint); }
.csd-crumb a { color: var(--fg-muted); text-decoration: none; }
.csd-crumb a:hover { color: var(--brand); text-decoration: underline; }
.csd-head h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--fg);
  margin: var(--space-4) 0 var(--space-4);
  text-wrap: balance;
}
.csd-head .lede {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
  color: var(--fg-body);
  margin: 0 0 var(--space-6);
}
.csd-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
  margin: 0;
  font-size: var(--fs-body-sm);
  color: var(--fg-muted);
}
.csd-customer { font-weight: 600; color: var(--fg-body); }

.csd-hero-art {
  margin: 0 0 var(--space-12);
  width: min(100% - 48px, 1080px);
  margin-inline: auto;
}
.csd-hero-art img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.csd-body { padding-bottom: var(--space-16); }
.csd-section { margin-bottom: var(--space-12); }
.csd-section h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  letter-spacing: var(--tracking-tight);
  color: var(--fg);
  margin: 0 0 var(--space-4);
}
.csd-section h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h5);
  color: var(--fg);
  margin: var(--space-8) 0 var(--space-3);
}
.csd-section p {
  font-size: 17px;
  line-height: var(--lh-relaxed);
  color: var(--fg-body);
  margin: 0 0 var(--space-4);
}
.csd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.csd-list li {
  display: flex; align-items: flex-start; gap: var(--space-3);
  color: var(--fg-body);
  line-height: var(--lh-relaxed);
}
.csd-list i, .csd-list svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 3px; }

.csd-approach { display: grid; gap: var(--space-4); }
.csd-step {
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}
.csd-step h3 { margin: 0 0 var(--space-2); }
.csd-step p { margin: 0 0 var(--space-3); }
.csd-caplink {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-body-sm); font-weight: 600;
  color: var(--brand); text-decoration: none;
}
.csd-caplink:hover { text-decoration: underline; }
.csd-caplink:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-xs); }
.csd-caplink i, .csd-caplink svg { width: 14px; height: 14px; }

.csd-outcomes { margin: 0; display: grid; gap: var(--space-4); }
.csd-outcome {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: baseline;
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.csd-outcome dt {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  letter-spacing: var(--tracking-tight);
  color: var(--brand);
}
.csd-outcome dd { margin: 0; display: grid; gap: 6px; }
.csd-outcome-label { color: var(--fg); font-weight: 600; }
.csd-outcome-source { font-size: var(--fs-caption); color: var(--fg-muted); line-height: var(--lh-normal); }

.csd-quote {
  margin: var(--space-12) 0;
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  background: var(--gradient-ai-soft);
  border: 1px solid var(--border-brand);
}
.csd-quote blockquote { margin: 0; }
.csd-quote p {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  line-height: 1.45;
  color: var(--fg);
  margin: 0 0 var(--space-4);
}
.csd-quote figcaption { display: grid; gap: 2px; font-size: var(--fs-body-sm); }
.csd-quote-person { font-weight: 600; color: var(--fg); }
.csd-quote-role { color: var(--fg-muted); }

.csd-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-6);
  margin: var(--space-12) 0 var(--space-8);
  padding: var(--space-8);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--color-ivory);
}
.csd-cta h2 { font-family: var(--font-display); font-size: var(--fs-h4); margin: 0 0 var(--space-2); color: var(--fg); }
.csd-cta p { margin: 0; color: var(--fg-body); }

.csd-back a {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-weight: 600; color: var(--brand); text-decoration: none;
}
.csd-back a:hover { text-decoration: underline; }
.csd-back i, .csd-back svg { width: 16px; height: 16px; }

.csd-related { background: var(--color-mist); }

@media (max-width: 1100px) {
  .cs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-anatomy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-reslist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .cs-featured { grid-template-columns: minmax(0, 1fr); }
  .cs-featured-art { min-height: 0; aspect-ratio: 16 / 10; }
  .cs-featured-body { padding: var(--space-6); }
  .cs-zero-cta { grid-template-columns: minmax(0, 1fr); }
  .csd-outcome { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .csd-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .cs-grid { grid-template-columns: minmax(0, 1fr); }
  .cs-search { max-width: none; }
  .cs-sort { margin-left: 0; width: 100%; }
  .cs-sort select { flex: 1; }
  .cs-anatomy { grid-template-columns: minmax(0, 1fr); }
  .cs-reslist { grid-template-columns: minmax(0, 1fr); }
  .csd-wrap { width: min(100% - 32px, 760px); }
  .csd-hero-art { width: min(100% - 32px, 1080px); }
  .cs-facet {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: var(--space-2);
    scrollbar-width: none;
  }
  .cs-facet::-webkit-scrollbar { display: none; }
  .cs-chip { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-card, .cs-featured, .cs-read i, .cs-read svg { transition: none; }
  .cs-card:hover, .cs-featured:hover { transform: none; }
}

.cs-showcase { padding: 0; margin-top: clamp(28px, 4vw, 56px); }
.cs-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 clamp(20px, 2.6vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.cs-story:last-child { margin-bottom: 0; }
.cs-story.flip .cs-story-visual { order: 2; }
.cs-story-visual {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-violet-600), var(--color-violet-800));
}
.cs-story-visual[data-key="beacon"] { background: linear-gradient(135deg, var(--color-teal-600), var(--color-teal-700)); }
.cs-story-visual[data-key="northarc"] { background: linear-gradient(135deg, var(--color-blue-600), var(--color-blue-700)); }
.cs-story-visual .big { position: relative; z-index: 1; text-align: center; color: #fff; }
.cs-story-visual .big b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 5.4vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.cs-story-visual .big span { font-size: 14px; opacity: 0.85; letter-spacing: 0.04em; }
.cs-story-body { padding: clamp(30px, 3.4vw, 46px); display: flex; flex-direction: column; }
.cs-story-body .who { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.cs-story-body .who .badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-emerald-700);
  background: var(--color-emerald-50);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}
.cs-story-body .res { display: flex; gap: clamp(20px, 2.4vw, 32px); flex-wrap: wrap; margin: 0; }
.cs-story-body .res b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-emerald-700);
}
.cs-story-body .res span { font-size: 12px; color: var(--fg-muted); }

@media (max-width: 860px) {
  .cs-story { grid-template-columns: minmax(0, 1fr); }
  .cs-story.flip .cs-story-visual { order: 0; }
  .cs-story-visual { min-height: 220px; }
  .cs-story-visual .big b { font-size: 52px; }
}
