/* Case studies — listing + detail (onXtrue svd / premium system) */
.ocs-page {
  background: #F7F9F6;
  --ocs-g: #22E55A;
  --ocs-dark: #050908
}

.ocs-page .atmosphere {
  background:
    radial-gradient(ellipse 40% 32% at 88% 6%, rgba(34, 229, 90, .12), transparent 55%),
    radial-gradient(ellipse 24% 22% at 6% 78%, rgba(34, 229, 90, .05), transparent 50%);
}

.ocs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.ocs-kicker i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--ocs-g);
  box-shadow: 0 0 0 3px rgba(34, 229, 90, .15)
}

.ocs-kicker.light {
  color: rgba(244, 247, 245, .55)
}

.ocs-crumb {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600
}

.ocs-crumb a {
  color: inherit
}

.ocs-crumb a:hover {
  color: var(--ocs-g)
}

.ocs-crumb span {
  margin: 0 6px;
  opacity: .5
}

.ocs-title em {
  font-style: normal;
  color: var(--ocs-g)
}

/* Listing hero */
.ocs-list-hero {
  padding: clamp(108px, 13vw, 140px) 0 clamp(40px, 5vw, 64px)
}

.ocs-list-hero h1 {
  margin: 0;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 800;
  max-width: 14ch;
}

.ocs-list-hero .lede {
  margin: 18px 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: 1.65
}

/* Asymmetric index grid (not uniform cards) */
.ocs-index {
  padding: 0 0 clamp(72px, 10vw, 120px)
}

.ocs-index-grid {
  display: grid;
  grid-template-columns: 1.35fr .95fr;
  gap: 18px;
  align-items: start;
}

.ocs-feature {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(5, 9, 8, .06);
  box-shadow: 0 24px 48px -28px rgba(5, 9, 8, .22);
  text-decoration: none;
  color: inherit;
  transition: transform .35s ease, box-shadow .35s ease;
}

.ocs-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 56px -28px rgba(5, 9, 8, .28)
}

.ocs-feature-media {
  position: relative;
  min-height: 240px;
  background: linear-gradient(145deg, #eefaf1, #F7F9F6 55%, #e8efe9)
}

.ocs-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 240px
}

.ocs-feature-body {
  padding: 28px 28px 32px;
  display: grid;
  gap: 10px;
  align-content: start
}

.ocs-feature-body em {
  font-style: normal;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ocs-g);
}

.ocs-feature-body h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -.04em;
  font-weight: 800;
  line-height: 1.08
}

.ocs-feature-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 46ch
}

.ocs-feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px
}

.ocs-chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(5, 9, 8, .04);
  border: 1px solid rgba(5, 9, 8, .06);
  color: rgba(5, 9, 8, .55);
}

.ocs-stack {
  display: grid;
  gap: 16px;
}

.ocs-tile {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0;
  min-height: 148px;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(5, 9, 8, .06);
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease, border-color .3s ease;
}

.ocs-tile:hover {
  transform: translateX(4px);
  border-color: rgba(34, 229, 90, .35)
}

.ocs-tile-media {
  background: linear-gradient(160deg, #050908, #1a2420);
  position: relative
}

.ocs-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .9
}

.ocs-tile-body {
  padding: 18px 20px;
  display: grid;
  gap: 6px;
  align-content: center
}

.ocs-tile-body em {
  font-style: normal;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ocs-g)
}

.ocs-tile-body h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.03em
}

.ocs-tile-body p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45
}

.ocs-empty {
  padding: 48px;
  border-radius: 24px;
  border: 1px dashed rgba(5, 9, 8, .12);
  color: var(--muted)
}

/* Detail */
.ocs-hero {
  padding: clamp(108px, 12vw, 132px) 0 clamp(36px, 5vw, 56px);
  position: relative;
  overflow: hidden
}

.ocs-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: end
}

.ocs-hero-title {
  margin: 0;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.02;
  letter-spacing: -.05em;
  font-weight: 800
}

.ocs-hero-lede {
  margin: 16px 0 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: 1.65
}

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

.ocs-hero-stage {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 320px;
  background: linear-gradient(145deg, #0b1210, #1c2a22);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 28px 60px -24px rgba(5, 9, 8, .45);
}

.ocs-hero-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 320px
}

.ocs-hero-glow {
  position: absolute;
  inset: auto -10% -20% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(34, 229, 90, .28);
  filter: blur(40px);
  pointer-events: none
}

.ocs-band {
  padding: clamp(48px, 7vw, 88px) 0;
  border-top: 1px solid rgba(5, 9, 8, .05)
}

.ocs-band h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: -.04em;
  font-weight: 800;
  line-height: 1.1
}

.ocs-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 62ch;
  font-size: var(--fs-md)
}

.ocs-split {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px
}

.ocs-panel {
  padding: 28px 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(5, 9, 8, .06);
  display: grid;
  gap: 10px;
  align-content: start;
}

.ocs-panel:nth-child(2) {
  background: linear-gradient(160deg, #eefaf1, #fff 60%)
}

.ocs-panel:nth-child(3) {
  background: var(--ocs-dark);
  color: #F4F7F5;
  border-color: transparent
}

.ocs-panel:nth-child(3) p {
  color: rgba(244, 247, 245, .7)
}

.ocs-panel strong {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ocs-g)
}

.ocs-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.ocs-metric {
  padding: 22px 18px;
  border-radius: 18px;
  background: rgba(5, 9, 8, .03);
  border: 1px solid rgba(5, 9, 8, .06);
}

.ocs-metric b {
  display: block;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ocs-dark)
}

.ocs-metric span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted)
}

.ocs-metric small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: rgba(5, 9, 8, .4)
}

.ocs-rel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px
}

.ocs-rel a,
.ocs-rel span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(5, 9, 8, .08);
  font-size: 13px;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

.ocs-rel a:hover {
  border-color: rgba(34, 229, 90, .4);
  color: var(--ocs-g)
}

.ocs-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.ocs-gallery figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #e8efe9;
  border: 1px solid rgba(5, 9, 8, .06);
}

.ocs-gallery figure:first-child {
  grid-row: span 2;
  min-height: 360px
}

.ocs-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 170px
}

.ocs-gallery figure:first-child img {
  min-height: 360px
}

.ocs-quotes {
  display: grid;
  gap: 16px;
  margin-top: 20px
}

.ocs-quote {
  padding: 24px 26px;
  border-radius: 20px;
  background: #fff;
  border-inline-start: 3px solid var(--ocs-g);
  border: 1px solid rgba(5, 9, 8, .06);
  border-inline-start-width: 3px;
  border-inline-start-color: var(--ocs-g);
}

.ocs-quote p {
  margin: 0;
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--ink)
}

.ocs-quote footer {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted)
}

.ocs-cta-band {
  margin: clamp(40px, 6vw, 72px) 0 clamp(72px, 10vw, 110px);
  padding: clamp(36px, 5vw, 56px);
  border-radius: 28px;
  background: var(--ocs-dark);
  color: #F4F7F5;
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 24px;
  align-items: center;
}

.ocs-cta-band h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -.04em;
  font-weight: 800
}

.ocs-cta-band p {
  margin: 10px 0 0;
  color: rgba(244, 247, 245, .65);
  max-width: 42ch
}

.ocs-cta-band .btn-primary {
  background: var(--ocs-g);
  color: #050908
}

@media (max-width:980px) {

  .ocs-index-grid,
  .ocs-hero-grid,
  .ocs-split,
  .ocs-gallery,
  .ocs-cta-band {
    grid-template-columns: 1fr
  }

  .ocs-metrics {
    grid-template-columns: 1fr 1fr
  }

  .ocs-tile {
    grid-template-columns: 96px 1fr
  }

  .ocs-feature {
    min-height: 0
  }

  .ocs-gallery figure:first-child {
    grid-row: auto;
    min-height: 240px
  }

  .ocs-gallery figure:first-child img {
    min-height: 240px
  }
}

@media (max-width:560px) {
  .ocs-metrics {
    grid-template-columns: 1fr
  }
}