/*!
 * TIQRI — Case study template (.cs-*)
 * Used by: case-sustainability-performance-platform.html
 *
 * Sections are in cascade order: later sections intentionally refine earlier
 * ones, so add new rules to the section that owns the component rather than
 * appending a new block at the end of the file.
 *
 * Loads after css/tiqri.css and reuses its tokens (:root custom properties).
 *
 * Contents
 *  01. Case study
 */

/* ==========================================================================
   01. Case study
   Template for every case study page.
   ========================================================================== */

/* CASE STUDY PAGE (shares About tokens/classes; scoped .cs-) */
.nav-links a[aria-current="page"] {
  opacity: 1;
}
.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.cs-tags span {
  padding: 7px 13px;
  border-radius: 100px;
  border: 1px solid #d3e4ff33;
  background: #ffffff0d;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d7e3f7;
}
.cs-hero h1 {
  margin-top: 20px;
  font-size: clamp(40px, 4.4vw, 64px);
}
.cs-hero-visual {
  position: relative;
  align-self: center;
  padding-bottom: clamp(40px, 5vw, 72px);
}
.cs-hero-visual .case-visual {
  position: relative;
  min-height: 440px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #d3e4ff26;
}
/* Facts ledger */
.cs-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: clamp(52px, 6vw, 80px) 0 0;
  border-top: 1px solid #d6e2f2;
}
.cs-facts > div {
  position: relative;
  padding: 24px 24px 4px 0;
}
.cs-facts > div + div {
  padding-left: 24px;
  border-left: 1px solid #d6e2f2;
}
.cs-facts > div::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 2px;
  background: #74ad40;
}
.cs-facts > div + div::before {
  left: -1px;
}
.cs-facts dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6a83a7;
}
.cs-facts dd {
  margin: 10px 0 0;
  font-family: var(--heading);
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #132b50;
  line-height: 1.25;
}
/* Challenges: 4 pillars, prominent green icons */
.cs-challenges {
  margin-top: clamp(52px, 6vw, 80px);
}
.cs-challenges .ab-pillar::before {
  left: clamp(18px, 2vw, 30px);
  margin-left: 0;
}
.ab-why .ab-pillar svg {
  width: 44px;
  height: 44px;
  color: #a6e15f;
}
/* Decisions */
.cs-decisions {
  list-style: none;
  margin: clamp(52px, 6vw, 80px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(32px, 5vw, 80px);
}
.cs-decisions li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 32px 0;
  border-top: 1px solid #d6e2f2;
  position: relative;
}
.cs-decisions li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 2px;
  background: #74ad40;
}
.cs-num {
  font-family: var(--heading);
  font-size: clamp(34px, 3vw, 46px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #74ad40;
  font-variant-numeric: tabular-nums;
}
.cs-decisions h3 {
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: #132b50;
}
.cs-decisions p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.75;
  color: #576e90;
}
/* Impact */
.cs-impact-copy p {
  font-size: 17px;
  line-height: 1.8;
  color: #bdceed;
  max-width: 52ch;
}
.cs-impact-copy p + p {
  margin-top: 16px;
}
.cs-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: clamp(56px, 6vw, 88px) 0 0;
  padding: 0;
  border-top: 1px solid #ffffff1f;
}
.cs-results li {
  position: relative;
  padding: 32px 28px 4px 0;
}
.cs-results li + li {
  padding-left: 28px;
  border-left: 1px solid #ffffff1a;
}
.cs-results li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 2px;
  background: #bded80;
}
.cs-results li + li::before {
  left: -1px;
}
.cs-results strong {
  display: block;
  font-family: var(--heading);
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #bded80;
  white-space: nowrap;
}
.cs-results span {
  display: block;
  margin-top: 14px;
  font-size: 16px;
  color: #bdceed;
}
/* Tech */
.ab-cta-grid {
  grid-template-columns: 1.9fr 1fr;
}
.ab-cta h2 {
  text-wrap: balance;
}
@media (max-width: 1100px) {
  .cs-facts {
    grid-template-columns: repeat(2, 1fr);
  }
  .cs-facts > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .cs-facts > div:nth-child(n + 3) {
    border-top: 1px solid #d6e2f2;
    margin-top: 18px;
  }
  .cs-facts > div:nth-child(3)::before {
    left: 0;
  }
  .cs-challenges {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .cs-decisions,
  .cs-results {
    grid-template-columns: 1fr;
  }
  .cs-results li + li {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid #ffffff1a;
    margin-top: 18px;
  }
  .cs-results li + li::before {
    left: 0;
  }
  .cs-hero-visual .case-visual {
    min-height: 360px;
  }
  .ab-cta-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .cs-facts {
    grid-template-columns: 1fr;
  }
  .cs-facts > div + div {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid #d6e2f2;
    margin-top: 12px;
  }
  .cs-facts > div + div::before {
    left: 0;
  }
}
/* Built for enterprise: tech stack + capabilities */
.cs-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
  list-style: none;
  margin: clamp(52px, 6vw, 80px) 0 0;
  padding: 0;
}
.cs-stack li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px 26px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #d6e2f2;
  box-shadow: 0 10px 30px #0b2a6a0a;
  overflow: hidden;
  transition:
    transform 0.4s var(--ease),
    border-color 0.3s;
}
.cs-stack li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #173767, #2f5fb3);
}
.cs-stack li:hover {
  transform: translateY(-4px);
  border-color: #74ad40;
}
.cs-stack-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: #173767;
  padding: 5px 10px;
  border-radius: 6px;
}
.cs-stack li svg {
  width: 44px;
  height: 44px;
}
.cs-stack b {
  font-family: var(--heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #132b50;
}
.cs-caps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
}
.cs-caps > div {
  padding: 30px 32px 30px 0;
  border-bottom: 1px solid #d6e2f2;
}
.cs-caps > div:nth-child(even) {
  padding-left: 32px;
  border-left: 1px solid #d6e2f2;
}
.cs-caps > div:nth-child(n + 3) {
  border-bottom: 0;
}
.cs-caps dt {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #132b50;
}
.cs-caps dt::before {
  content: "";
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: #74ad40;
}
.cs-caps dd {
  margin: 12px 0 0 15px;
  font-size: 17px;
  line-height: 1.7;
  color: #576e90;
  max-width: 40ch;
}
@media (max-width: 1000px) {
  .cs-stack {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .cs-stack {
    grid-template-columns: 1fr 1fr;
  }
  .cs-stack li {
    padding: 18px;
  }
  .cs-caps {
    grid-template-columns: 1fr;
  }
  .cs-caps > div,
  .cs-caps > div:nth-child(even) {
    padding-left: 0;
    border-left: 0;
    border-bottom: 1px solid #d6e2f2;
  }
  .cs-caps > div:last-child {
    border-bottom: 0;
  }
}
/* Capabilities: "Why us" pillar aesthetic on white */
.cs-caps2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: clamp(48px, 5vw, 72px) 0 0;
  padding: 0;
}
.cs-caps2 li {
  position: relative;
  padding: 30px clamp(18px, 2vw, 30px) 8px;
  border-top: 1px solid #d6e2f2;
}
.cs-caps2 li + li {
  border-left: 1px solid #e3ebf7;
}
.cs-caps2 li::before {
  content: "";
  position: absolute;
  top: -5px;
  left: clamp(18px, 2vw, 30px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #74ad40;
}
.cs-caps2 svg {
  width: 44px;
  height: 44px;
  color: #5f9a35;
  margin-bottom: 22px;
}
.cs-caps2 h3 {
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: #132b50;
}
.cs-caps2 p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.75;
  color: #576e90;
}
@media (max-width: 1000px) {
  .cs-caps2 {
    grid-template-columns: 1fr 1fr;
  }
  .cs-caps2 li:nth-child(3) {
    border-left: 0;
  }
  .cs-caps2 li:nth-child(n + 3) {
    margin-top: 24px;
  }
}
@media (max-width: 600px) {
  .cs-caps2 {
    grid-template-columns: 1fr;
  }
  .cs-caps2 li {
    border-left: 0 !important;
  }
  .cs-caps2 li + li {
    margin-top: 20px;
  }
}
/* Approach: sticky image + decision list */
.cs-approach-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  margin-top: clamp(52px, 6vw, 80px);
}
.cs-approach-media {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 4/4.6;
  box-shadow: 0 30px 60px #0b2a6a1f;
}
.cs-approach-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
}
.cs-approach-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, #0a1b5066);
  pointer-events: none;
}
.cs-approach-media figcaption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(125deg, rgba(25, 57, 112, 0.55), rgba(8, 28, 69, 0.45));
  border: 1px solid #d3e4ff30;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cs-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bded80;
}
.cs-approach-body .cs-decisions {
  grid-template-columns: 1fr;
  margin: 0;
}
.cs-approach-body .cs-decisions li {
  padding: 34px 0 34px;
  gap: 28px;
  border-top: 0;
}
.cs-approach-body .cs-decisions li:first-child {
  padding-top: 0;
  border-top: 0;
}
.cs-approach-body .cs-decisions li:first-child::before {
  display: none;
}
.cs-approach-body .cs-decisions li:last-child {
  padding-bottom: 0;
}
.cs-approach-body .cs-num {
  min-width: 64px;
}
.cs-approach-body .cs-decisions h3 {
  font-size: clamp(21px, 1.9vw, 27px);
}
.cs-approach-body .cs-decisions p {
  font-size: 17px;
  max-width: 54ch;
}
@media (max-width: 900px) {
  .cs-approach-body {
    grid-template-columns: 1fr;
  }
  .cs-approach-media {
    position: relative;
    top: 0;
    aspect-ratio: 16/11;
  }
}
/* Impact results: icon-led */
.cs-results svg {
  width: 48px;
  height: 48px;
  color: #a6e15f;
  margin-bottom: 22px;
  display: block;
}
.cs-results strong {
  font-size: clamp(28px, 2.6vw, 38px);
  letter-spacing: -0.04em;
  color: #fff;
}
.cs-results span {
  margin-top: 10px;
}
/* Results: icon-led, compact */
.cs-results li svg {
  display: block;
  width: 44px;
  height: 44px;
  color: #a6e15f;
  margin-bottom: 22px;
}
.cs-results strong {
  font-size: clamp(28px, 2.5vw, 36px);
  letter-spacing: -0.04em;
}
.cs-results span {
  margin-top: 10px;
}
/* Challenges: 2 x 2 */
.ab-pillars.cs-challenges {
  grid-template-columns: repeat(2, 1fr);
}
.cs-challenges .ab-pillar:nth-child(3) {
  border-left: 0;
}
.cs-challenges .ab-pillar:nth-child(n + 3) {
  margin-top: 36px;
}
.cs-challenges .ab-pillar {
  padding-right: clamp(24px, 4vw, 64px);
}
.cs-challenges .ab-pillar p {
  max-width: 52ch;
}
@media (max-width: 700px) {
  .ab-pillars.cs-challenges {
    grid-template-columns: 1fr;
  }
  .cs-challenges .ab-pillar {
    border-left: 0 !important;
  }
  .cs-challenges .ab-pillar + .ab-pillar {
    margin-top: 28px;
  }
}
.cs-approach-body .cs-decisions li::before {
  display: none;
}
/* Split section: image + copy (product intro) */
/* Results as a standalone component */
.cs-impact {
  padding-bottom: clamp(88px, 8vw, 120px);
  border-top: 1px solid #ffffff14;
}
.cs-outcomes {
  position: relative;
  isolation: isolate;
  padding: clamp(72px, 7vw, 110px) 0;
  background:
    radial-gradient(ellipse at 85% 100%, rgba(120, 188, 67, 0.12), transparent 50%),
    linear-gradient(120deg, #030b26 0%, #071640 55%, #0a1d55 100%);
  border-top: 1px solid #ffffff14;
}
.cs-outcomes .cs-results {
  margin: 0;
  border-top: 1px solid #ffffff1f;
}
.cs-outcomes .cs-results li {
  padding: 32px 28px 4px 0;
}
.cs-outcomes .cs-results li + li {
  padding-left: clamp(24px, 3vw, 40px);
}
.cs-outcomes .cs-results li::before {
  display: block;
}
@media (max-width: 900px) {
  .cs-outcomes .cs-results li + li {
    padding-left: 0;
    padding-top: 24px;
  }
}
/* Product: About-style split (copy left, rounded media right) */
.cs-product {
  border-top: 1px solid #e3ebf7;
}
.cs-approach {
  border-top: 1px solid #e3ebf7;
}
/* Results: About ledger style, no panel */
.cs-outcomes .cs-results li + li {
  padding-left: 28px;
}
@media (max-width: 900px) {
  .cs-outcomes .cs-results li + li {
    padding-left: 0;
    padding-top: 32px;
  }
}
/* Product: cinematic wide image */
/* LocusBase: homepage case-card language */
.cs-locus {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  margin-top: clamp(52px, 6vw, 80px);
  border-radius: 26px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at 90% 100%, rgba(120, 188, 67, 0.16), transparent 50%),
    linear-gradient(130deg, #071640 0%, #0e2a6e 60%, #163f8f 100%);
  border: 1px solid #d3e4ff26;
  box-shadow: 0 34px 70px #0b2a6a2e;
}
.cs-locus-media {
  position: relative;
  margin: 0;
  min-height: 520px;
}
.cs-locus-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-locus-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, #0a1d5599);
}
.cs-locus-chip {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(125deg, rgba(25, 57, 112, 0.75), rgba(8, 28, 69, 0.65));
  border: 1px solid #d3e4ff30;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cs-locus-body {
  padding: clamp(36px, 4vw, 60px);
  align-self: center;
}
.cs-locus-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c5d7f2;
}
.cs-locus-label::before {
  content: "";
  width: 22px;
  height: 2px;
  background: #bded80;
}
.cs-locus-body h3 {
  margin-top: 18px;
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.12;
  color: #fff;
  max-width: 18ch;
}
@media (max-width: 900px) {
  .cs-locus {
    grid-template-columns: 1fr;
  }
  .cs-locus-media {
    min-height: 0;
    aspect-ratio: 4/3;
  }
}
.cs-product .ab-intro-grid {
  grid-template-columns: 1fr;
}
.cs-locus-desc p {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.85;
  color: #bdceed;
  max-width: 52ch;
}
.cs-locus-desc p strong {
  color: #fff;
  font-weight: 600;
}
/* Approach image: wider, same height, sticky */
.cs-approach-body {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
}
.cs-approach-media {
  aspect-ratio: 1/1.1;
}
/* Stats: 4 points with title */
.cs-stats-head {
  text-align: center;
  margin-bottom: clamp(48px, 5vw, 72px);
}
.cs-stats-head .ab-h2 {
  margin-top: 0;
}
.cs-outcomes .cs-stats4 {
  grid-template-columns: repeat(4, 1fr);
}
.cs-stats4 li {
  text-align: center;
}
.cs-outcomes .cs-stats4 li,
.cs-outcomes .cs-stats4 li + li {
  padding: 36px 20px 6px;
}
.cs-outcomes .cs-stats4 li::before {
  left: 50% !important;
  margin-left: -22px;
}
.cs-stats4 strong {
  font-size: clamp(24px, 5vw, 48px);
  color: #bded80;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cs-stats4 strong sup {
  font-size: 0.5em;
  vertical-align: 0.7em;
  margin-left: 2px;
}
.cs-stats4 li > span {
  max-width: 22ch;
  margin-inline: auto;
}
.cs-stats4 strong .counter {
  display: inline;
  font: inherit;
  color: inherit;
  margin: 0;
  max-width: none;
}
@media (max-width: 900px) {
  .cs-outcomes .cs-stats4 {
    grid-template-columns: 1fr 1fr;
  }
  .cs-outcomes .cs-stats4 li:nth-child(3) {
    border-left: 0;
  }
  .cs-outcomes .cs-stats4 li:nth-child(n + 3) {
    border-top: 1px solid #ffffff1a;
    margin-top: 0;
  }
}
@media (max-width: 500px) {
  .cs-outcomes .cs-stats4 {
    grid-template-columns: 1fr;
  }
  .cs-outcomes .cs-stats4 li {
    border-left: 0 !important;
  }
}
