
/* ==========================================================
   CASE STUDIES
   ========================================================== */
.case-page {
  background:
    radial-gradient(circle at 86% 8%, rgba(22,184,173,.10), transparent 28%),
    linear-gradient(180deg, #fbfdfd 0%, #fff 28%, #f6f9fa 100%);
}

.case-index-hero,
.case-hero {
  padding: 138px 0 72px;
}

.case-index-hero h1,
.case-hero h1 {
  margin: 17px 0 22px;
  max-width: 940px;
  font-size: clamp(3.2rem, 6vw, 6.2rem);
  line-height: .94;
  letter-spacing: -.07em;
}

.case-index-hero p,
.case-hero .lede {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.case-kicker,
.case-label {
  color: var(--brand-dark);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.case-index-section {
  padding: 20px 0 96px;
}

.case-index-intro {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
  margin-bottom: 30px;
  padding: 29px 0 37px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-index-intro strong {
  max-width: 420px;
  font-size: 1.2rem;
  line-height: 1.38;
}

.case-index-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.case-study-grid,
.case-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.case-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 45px rgba(14,35,50,.06);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22,184,173,.45);
  box-shadow: 0 26px 58px rgba(14,35,50,.10);
}

.case-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.case-card-meta {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}

.case-card h3 {
  margin: 27px 0 14px;
  font-size: 1.68rem;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.case-card p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.62;
}

.case-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 900;
}

.case-confidential-note {
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #f1f7f7;
  color: #4c6262;
  font-size: .82rem;
  line-height: 1.58;
}

.case-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 64px;
  align-items: end;
}

.case-meta-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 22px 60px rgba(17,41,56,.08);
}

.case-meta-list { margin: 0; }

.case-meta-row {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.case-meta-row:first-child { padding-top: 0; border-top: 0; }
.case-meta-row:last-child { padding-bottom: 0; }

.case-meta-row dt {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-meta-row dd {
  margin: 0;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.45;
}

.case-body {
  padding: 76px 0 94px;
  border-top: 1px solid var(--line);
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(220px, .34fr) minmax(0, 1fr);
  gap: 78px;
  align-items: start;
}

.case-aside {
  position: sticky;
  top: 104px;
}

.case-aside-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.case-aside-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: .92rem;
}

.case-aside-card p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.58;
}

.case-content { max-width: 820px; }

.case-section {
  padding: 0 0 58px;
}

.case-section + .case-section {
  padding-top: 58px;
  border-top: 1px solid var(--line);
}

.case-section h2 {
  max-width: 750px;
  margin: 12px 0 20px;
  font-size: clamp(2rem, 3.5vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.case-section h3 {
  margin: 30px 0 10px;
  font-size: 1.13rem;
  line-height: 1.25;
}

.case-section p {
  max-width: 760px;
  margin: 0 0 18px;
  color: #526071;
  font-size: 1rem;
  line-height: 1.76;
}

.case-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.case-tool {
  padding: 8px 10px;
  border: 1px solid #cfe3e1;
  border-radius: 999px;
  background: #fff;
  color: #2d5854;
  font-size: .76rem;
  font-weight: 800;
}

.case-outcome {
  margin-top: 26px;
  padding: 28px;
  border-radius: 20px;
  background: var(--ink);
}

.case-outcome .case-label { color: #74ddd6; }

.case-outcome p {
  margin: 12px 0 0;
  color: rgba(255,255,255,.78);
}

.case-takeaway {
  margin-top: 30px;
  padding: 24px 26px;
  border-left: 3px solid var(--brand);
  border-radius: 0 14px 14px 0;
  background: var(--brand-soft);
  color: #19433f;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.58;
}

.case-related {
  padding: 78px 0;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.case-related h2 {
  margin: 10px 0 30px;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.home-case-studies {
  padding: 92px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.home-case-studies-head {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 44px;
  align-items: end;
  margin-bottom: 30px;
}

.home-case-studies-head h2 {
  max-width: 720px;
  margin: 10px 0 0;
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  line-height: .96;
  letter-spacing: -.065em;
}

.home-case-studies-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

@media (max-width: 1040px) {
  .case-index-intro,
  .case-hero-grid,
  .case-layout,
  .home-case-studies-head {
    grid-template-columns: 1fr;
  }

  .case-hero-grid { gap: 34px; }
  .case-layout { gap: 40px; }
  .case-aside { position: static; }

  .case-study-grid,
  .case-related-grid {
    grid-template-columns: 1fr;
  }

  .case-card { min-height: 0; }
}

@media (max-width: 680px) {
  .case-index-hero,
  .case-hero { padding: 112px 0 56px; }

  .case-index-section,
  .case-body,
  .case-related,
  .home-case-studies {
    padding-top: 58px;
    padding-bottom: 66px;
  }

  .case-meta-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .case-section { padding-bottom: 42px; }
  .case-section + .case-section { padding-top: 42px; }

  .case-card,
  .case-meta-panel,
  .case-outcome { border-radius: 16px; }
}
