:root {
  --cs-ink: #11140f;
  --cs-paper: #fbfaf4;
  --cs-soft: #f1eee6;
  --cs-lime: #d6e02c;
  --cs-muted: rgba(17, 20, 15, 0.66);
  --cs-line: rgba(17, 20, 15, 0.1);
}

body.case-page {
  margin: 0;
  overflow-x: hidden;
  background: var(--cs-paper);
  color: var(--cs-ink);
  font-family: "Inter", system-ui, sans-serif;
}

.cs-wrap {
  width: min(calc(100% - 40px), 1240px);
  margin: 0 auto;
}

.cs-intro {
  padding: 148px 0 64px;
  background:
    linear-gradient(90deg, rgba(214, 224, 44, 0.2) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #fbfaf4, #f1eee6);
  background-size: 52px 52px, auto;
}

.cs-crumb {
  display: flex;
  gap: 8px;
  margin: 0 0 42px;
  padding: 0;
  list-style: none;
  color: rgba(17, 20, 15, 0.48);
  font-size: 0.82rem;
  font-weight: 800;
}

.cs-crumb a {
  color: rgba(17, 20, 15, 0.66);
  text-decoration: none;
}

.cs-crumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgba(17, 20, 15, 0.24);
}

.cs-kicker {
  margin: 0 0 14px;
  color: #9aa311;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cs-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.55fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: end;
}

.cs-intro h1,
.cs-detail h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: 0;
  font-weight: 900;
}

.cs-intro p,
.cs-detail__lead {
  margin: 0;
  color: var(--cs-muted);
  font-size: clamp(1.03rem, 1.5vw, 1.2rem);
  line-height: 1.75;
}

.cs-list {
  padding: 72px 0 112px;
  background: var(--cs-paper);
}

.cs-story {
  position: relative;
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: clamp(24px, 5vw, 58px);
  align-items: stretch;
  min-height: 420px;
  padding: 20px 0;
  border-top: 1px solid var(--cs-line);
  color: inherit;
  text-decoration: none;
}

.cs-story:last-child {
  border-bottom: 1px solid var(--cs-line);
}

.cs-story:nth-child(even) {
  grid-template-columns: 1fr 0.78fr;
}

.cs-story:nth-child(even) .cs-story__media {
  order: 2;
}

.cs-story__media {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #11140f;
}

.cs-story__media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.55s ease, filter 0.55s ease;
}

.cs-story:hover .cs-story__media img {
  transform: scale(1.08);
  filter: saturate(1.05) contrast(1.04);
}

.cs-story__body {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 4vw, 42px);
}

.cs-story__num {
  color: #9aa311;
  font-weight: 900;
  margin-bottom: 16px;
}

.cs-story h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0;
  font-weight: 900;
}

.cs-story p {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(17, 20, 15, 0.64);
  line-height: 1.72;
}

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.cs-tags span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(214, 224, 44, 0.22);
  color: #7d8610;
  font-size: 0.74rem;
  font-weight: 900;
}

.cs-story__cta {
  margin-top: 28px;
  font-weight: 900;
}

.cs-detail {
  padding: 148px 0 104px;
  background: var(--cs-soft);
}

.cs-detail__top {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.52fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: start;
}

.cs-detail__lead {
  margin-top: 24px;
  max-width: 840px;
}

.cs-panel {
  position: sticky;
  top: 112px;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--cs-line);
  box-shadow: 0 22px 60px rgba(15, 17, 16, 0.08);
}

.cs-panel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.cs-panel dl {
  display: grid;
  gap: 14px;
  margin: 18px 4px 4px;
}

.cs-panel dt {
  color: rgba(17, 20, 15, 0.46);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cs-panel dd {
  margin: 4px 0 0;
  font-weight: 850;
  line-height: 1.45;
}

.cs-blocks {
  display: grid;
  gap: 16px;
  margin-top: 52px;
}

.cs-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(22px, 5vw, 70px);
  padding: clamp(24px, 4vw, 40px);
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--cs-line);
}

.cs-block h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 900;
}

.cs-block p {
  margin: 0;
  color: rgba(17, 20, 15, 0.66);
  line-height: 1.76;
}

.cs-outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.cs-outcomes span {
  min-height: 120px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  border-radius: 8px;
  background: #11140f;
  color: #fff;
  font-weight: 900;
  line-height: 1.28;
}

.cs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.cs-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--cs-ink);
  color: #fff !important;
  text-decoration: none;
  font-weight: 900;
}

.cs-btn--lime {
  background: var(--cs-lime);
  color: var(--cs-ink) !important;
}

.cs-reveal {
  opacity: 0;
  transform: translateY(28px);
}

.cs-reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

@media (max-width: 960px) {
  .cs-intro__grid,
  .cs-story,
  .cs-story:nth-child(even),
  .cs-detail__top,
  .cs-block,
  .cs-outcomes {
    grid-template-columns: 1fr;
  }

  .cs-story:nth-child(even) .cs-story__media {
    order: 0;
  }

  .cs-panel {
    position: relative;
    top: auto;
  }
}

@media (max-width: 640px) {
  .cs-wrap {
    width: min(calc(100% - 28px), 1240px);
  }

  .cs-intro,
  .cs-detail {
    padding-top: 122px;
  }
}
