/* Case Studies — premium trust page */

.cs-hero {
  position: relative;
  padding: 64px 0 56px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 100% -10%, rgba(14, 124, 123, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(18, 33, 60, 0.06), transparent 50%),
    linear-gradient(165deg, #ffffff 0%, #f3f6f5 48%, #eef3f2 100%);
  border-bottom: 1px solid var(--border);
}

.cs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 33, 60, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 33, 60, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 90%);
  pointer-events: none;
}

@media (min-width: 640px) {
  .cs-hero {
    padding: 96px 0 80px;
  }
}

.cs-hero .wrap {
  position: relative;
}

.cs-hero h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.08;
  max-width: 14ch;
  margin: 0;
  letter-spacing: -0.02em;
}

.cs-hero h1 .line2 {
  display: block;
  color: var(--teal-deep);
}

.cs-hero .lead {
  font-size: 17.5px;
  max-width: 54ch;
  margin: 20px 0 0;
  line-height: 1.65;
}

.cs-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cs-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(18, 33, 60, 0.1);
}

.cs-hero-stats div strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
}

.cs-hero-stats div span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-faint);
}

.cs-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .cs-section {
    padding: 80px 0;
  }
}

.cs-section.surface {
  background: var(--surface);
}

.cs-section.ink {
  background: var(--ink);
  border-bottom: none;
  color: #fff;
}

.cs-section .section-intro {
  max-width: 640px;
  margin-bottom: 40px;
}

.cs-section .section-intro h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin: 0 0 12px;
  line-height: 1.18;
  max-width: 22ch;
}

.cs-section .section-intro p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  max-width: 54ch;
}

.cs-section.ink .section-intro h2 {
  color: #fff;
}

.cs-section.ink .section-intro p {
  color: #b7c1d1;
}

.cs-section.ink .eyebrow {
  color: #9fe1cb;
}

.cs-section.ink .eyebrow::before {
  background: #9fe1cb;
}

/* Featured case study cards */
.cs-featured {
  display: grid;
  gap: 28px;
}

.cs-card {
  scroll-margin-top: 96px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(18, 33, 60, 0.04);
}

.cs-section.surface .cs-card {
  background: var(--bg);
}

.cs-card-visual {
  position: relative;
  min-height: 140px;
  padding: 28px 28px 24px;
  background:
    linear-gradient(135deg, rgba(14, 124, 123, 0.12), rgba(18, 33, 60, 0.08) 55%, transparent),
    linear-gradient(180deg, #12213c 0%, #1a3358 100%);
  color: #fff;
}

.cs-card:nth-child(2) .cs-card-visual {
  background:
    linear-gradient(135deg, rgba(14, 124, 123, 0.18), transparent 60%),
    linear-gradient(180deg, #0a5f5e 0%, #12213c 100%);
}

.cs-card:nth-child(3) .cs-card-visual {
  background:
    linear-gradient(120deg, rgba(181, 101, 44, 0.2), transparent 50%),
    linear-gradient(180deg, #12213c 0%, #1e3a5f 100%);
}

.cs-card:nth-child(4) .cs-card-visual {
  background:
    linear-gradient(160deg, rgba(14, 124, 123, 0.25), transparent 55%),
    linear-gradient(180deg, #0e3d3c 0%, #12213c 100%);
}

.cs-card:nth-child(5) .cs-card-visual {
  background:
    linear-gradient(200deg, rgba(14, 124, 123, 0.15), transparent),
    linear-gradient(180deg, #162744 0%, #0f1c33 100%);
}

.cs-card:nth-child(6) .cs-card-visual {
  background:
    linear-gradient(135deg, rgba(159, 225, 203, 0.15), transparent 50%),
    linear-gradient(180deg, #0a5f5e 0%, #12213c 100%);
}

.cs-card:nth-child(7) .cs-card-visual {
  background:
    linear-gradient(45deg, rgba(14, 124, 123, 0.2), transparent 60%),
    linear-gradient(180deg, #1a2a4a 0%, #12213c 100%);
}

.cs-card:nth-child(8) .cs-card-visual {
  background:
    linear-gradient(225deg, rgba(181, 101, 44, 0.18), transparent 55%),
    linear-gradient(180deg, #12213c 0%, #0e3d3c 100%);
}

.cs-card-visual .cs-index {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9fe1cb;
  margin-bottom: 12px;
}

.cs-card-visual h3 {
  font-size: clamp(22px, 2.8vw, 30px);
  color: #fff;
  margin: 0 0 10px;
  max-width: 22ch;
  line-height: 1.2;
}

.cs-card-visual .cs-industry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.06);
}

.cs-card-body {
  padding: 28px 24px 30px;
}

@media (min-width: 720px) {
  .cs-card-body {
    padding: 32px 32px 36px;
  }
}

.cs-blocks {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .cs-blocks {
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
  }
}

.cs-block h4 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 8px;
}

.cs-block p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.cs-block.full {
  grid-column: 1 / -1;
}

.cs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-pills li {
  font-size: 12.5px;
  color: var(--ink);
  background: var(--teal-tint);
  border: 1px solid rgba(14, 124, 123, 0.15);
  border-radius: 999px;
  padding: 6px 12px;
  line-height: 1.3;
}

.cs-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-tech-row span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 8px;
  padding: 7px 11px;
}

.cs-section.surface .cs-tech-row span {
  background: var(--surface);
}

.cs-benefits {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-benefits li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

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

.cs-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

/* AI capabilities grid */
.cap-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

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

@media (min-width: 960px) {
  .cap-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cap-tile {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 18px 14px;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}

.cap-tile:hover {
  background: rgba(159, 225, 203, 0.08);
  border-color: rgba(159, 225, 203, 0.25);
}

.cap-tile .cap-mark {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: 10px;
  background: rgba(159, 225, 203, 0.12);
  color: #9fe1cb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
}

.cap-tile strong {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: #fff;
  line-height: 1.35;
}

/* Methodology timeline */
.method-track {
  display: grid;
  gap: 0;
  position: relative;
}

@media (min-width: 900px) {
  .method-track {
    grid-template-columns: repeat(4, 1fr);
  }
}

.method-step {
  position: relative;
  padding: 20px 0 20px 20px;
  border-left: 2px solid var(--border);
}

@media (min-width: 900px) {
  .method-step {
    padding: 0 20px 0 0;
    border-left: none;
    border-top: 2px solid var(--border);
    padding-top: 28px;
  }

  .method-step::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--teal);
    border: 2px solid var(--surface);
    box-shadow: 0 0 0 1px var(--border);
  }
}

.method-step .num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--teal-deep);
  margin-bottom: 8px;
}

.method-step h3 {
  font-size: 17px;
  margin: 0 0 6px;
}

.method-step p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 28ch;
}

/* Tech categories */
.tech-cats {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .tech-cats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .tech-cats {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.tech-cat {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  padding: 22px 18px 18px;
}

.cs-section.surface .tech-cat {
  background: var(--surface);
}

.tech-cat h3 {
  font-size: 15px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.tech-cat-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.tech-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
  padding: 6px 4px;
}

.tech-chip .logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.cs-section.surface .tech-chip .logo {
  background: var(--bg);
}

.tech-chip .logo img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.tech-chip .logo .mono {
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  font-weight: 500;
  color: var(--teal-deep);
  letter-spacing: 0.02em;
}

/* Engagement models */
.engage-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .engage-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.engage-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 24px 20px 22px;
  transition: border-color 0.15s, transform 0.15s;
}

.engage-card:hover {
  border-color: var(--ink-faint);
  transform: translateY(-1px);
}

.engage-card .eng-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--teal-deep);
  margin-bottom: 10px;
}

.engage-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  line-height: 1.3;
}

.engage-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* TOC strip */
.cs-toc {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 20;
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  background: rgba(255, 255, 255, 0.9);
}

.cs-toc .toc-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.cs-toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-toc-list a {
  font-size: 12.5px;
  color: var(--ink-soft);
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 999px;
  padding: 6px 11px;
}

.cs-toc-list a:hover {
  color: var(--ink);
  border-color: var(--ink-faint);
}

/* CTA */
.cs-cta {
  background: var(--ink);
  color: #fff;
  padding: 72px 0;
}

.cs-cta h2 {
  color: #fff;
  font-size: clamp(26px, 3.4vw, 40px);
  margin: 0 0 14px;
  max-width: 16ch;
  line-height: 1.15;
}

.cs-cta p {
  color: #b7c1d1;
  max-width: 50ch;
  margin: 0 0 28px;
  font-size: 16.5px;
  line-height: 1.65;
}

.cs-cta .eyebrow {
  color: #9fe1cb;
}

.cs-cta .eyebrow::before {
  background: #9fe1cb;
}

.cs-cta .btn-primary {
  background: #fff;
  color: var(--ink);
}

.cs-cta .btn-primary:hover {
  background: #9fe1cb;
}

.cs-cta .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
