/* ============================================================
   CASESTUDY.CSS — Siddharth-style editorial layout
   Clean, single-column, text-forward
   ============================================================ */

/* ─── NAV ─── */
.cs-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.cs-nav__name {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}

.cs-nav__links {
  display: flex;
  gap: 28px;
}

.cs-nav__links a {
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.cs-nav__links a:hover {
  color: #fff;
}

/* ─── HERO ─── */
.cs-hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 120px var(--side-padding) 48px;
}

.cs-hero--viewport {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 40px;
}

.cs-hero__top {
  display: flex;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.cs-hero__info {
  flex: 0 0 45%;
}

.cs-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 12px;
}

.cs-hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 32px;
}

.cs-hero--viewport .cs-hero__image {
  flex: 1;
  margin-top: 0;
  text-align: center;
}

.cs-hero--viewport .cs-hero__image img {
  max-width: 100%;
  width: 100%;
}

/* ─── META ─── */
.cs-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.cs-meta--stacked {
  grid-template-columns: 1fr;
  gap: 16px;
  padding-top: 0;
  border-top: none;
}

.cs-meta--stacked .cs-meta__item {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.cs-meta--stacked .cs-meta__label {
  flex: 0 0 80px;
  margin-bottom: 0;
}

.cs-meta__label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.cs-meta__value {
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
}

@media (max-width: 899px) {
  .cs-hero--viewport {
    min-height: auto;
    padding-top: 80px;
  }
  .cs-hero__top {
    flex-direction: column;
    gap: 32px;
  }
  .cs-hero__info {
    flex: none;
    width: 100%;
  }
}

/* ─── CONTENT BLOCKS ─── */
.cs-block {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px var(--side-padding);
}

.cs-block--surface {
  max-width: 100%;
  background: var(--color-surface);
}

.cs-block--surface > .cs-block__label,
.cs-block--surface > .cs-block__heading,
.cs-block--surface > .cs-block__body,
.cs-block--surface > * {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

/* Override for grids inside surface blocks */
.cs-block--surface .cs-participants,
.cs-block--surface .cs-archetypes,
.cs-block--surface .cs-hypotheses,
.cs-block--surface .cs-journey,
.cs-block--surface .cs-strategies,
.cs-block--surface .cs-mechanics,
.cs-block--surface .cs-feedback-list,
.cs-block--surface .cs-numbers,
.cs-block--surface .cs-learnings,
.cs-block--surface .cs-insight,
.cs-block--surface .cs-paper,
.cs-block--surface .cs-quote {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.cs-block--surface {
  padding-left: var(--side-padding);
  padding-right: var(--side-padding);
}

.cs-block--dark {
  max-width: 100%;
  background: #080808;
  padding-left: var(--side-padding);
  padding-right: var(--side-padding);
}

.cs-block--dark > * {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.cs-block--border {
  border-top: 1px solid var(--color-border);
}

.cs-block__label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #3D8B6E;
  margin-bottom: 16px;
}

.cs-block__heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 20px;
}

.cs-block__body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

/* ─── NUMBERS ─── */
.cs-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 8px;
}

.cs-number {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-number__value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: #3D8B6E;
}

.cs-number__desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

/* ─── CONSTRAINTS ─── */
.cs-constraints {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.cs-constraint {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.cs-constraint h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3D8B6E;
  margin-bottom: 6px;
}

.cs-constraint__sub {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.cs-constraint p:last-child {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ─── PAPERS ─── */
.cs-paper {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin-top: 16px;
}

.cs-paper__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3D8B6E;
  display: block;
  margin-bottom: 8px;
}

.cs-paper h4 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.cs-paper__cite {
  font-size: 13px;
  color: var(--color-text-secondary);
  font-style: italic;
  margin-bottom: 12px;
}

.cs-paper p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.cs-paper__take strong {
  color: #3D8B6E;
}

/* ─── PAPER CAROUSEL ─── */
.cs-paper-carousel {
  position: relative;
  margin-top: 32px;
  padding: 0 48px;
}

.cs-paper-carousel__track {
  position: relative;
  overflow: hidden;
  min-height: 260px;
}

.cs-paper-carousel__slide {
  display: none;
  padding: 32px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  animation: fadeSlide 0.4s ease;
}

.cs-paper-carousel__slide--active {
  display: block;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.cs-paper-carousel__slide h4 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.cs-paper-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-80%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  z-index: 5;
}

.cs-paper-carousel__arrow:hover {
  background: #3D8B6E;
  border-color: #3D8B6E;
}

.cs-paper-carousel__arrow--left { left: 0; }
.cs-paper-carousel__arrow--right { right: 0; }

.cs-paper-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.cs-paper-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: background 0.2s;
}

.cs-paper-carousel__dot--active {
  background: #3D8B6E;
}

@media (max-width: 768px) {
  .cs-paper-carousel { padding: 0 36px; }
  .cs-paper-carousel__slide { padding: 24px; }
  .cs-paper-carousel__arrow { width: 32px; height: 32px; font-size: 14px; }
}

/* ─── JOURNEY MAP CAROUSEL ─── */
.cs-jm-carousel {
  position: relative;
  padding: 0 48px;
  text-align: center;
}

.cs-jm-carousel__track {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
}

.cs-jm-carousel__slide {
  display: none;
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 12px;
  margin: 0 auto;
}

.cs-jm-carousel__slide--active {
  display: block;
  animation: fadeSlide 0.4s ease;
}

.cs-jm-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  z-index: 5;
}

.cs-jm-carousel__arrow:hover {
  background: #3D8B6E;
  border-color: #3D8B6E;
}

.cs-jm-carousel__arrow--left { left: 0; }
.cs-jm-carousel__arrow--right { right: 0; }

.cs-jm-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.cs-jm-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: background 0.2s;
}

.cs-jm-carousel__dot--active {
  background: #3D8B6E;
}

@media (max-width: 899px) {
  .cs-jm-carousel { padding: 0 36px; }
  .cs-jm-carousel__arrow { width: 36px; height: 36px; font-size: 14px; }
}

/* ─── APP PROTOTYPE CAROUSEL ─── */
.cs-app-carousel {
  position: relative;
  padding: 0 48px;
  text-align: center;
}

.cs-app-carousel__track {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  display: flex;
  justify-content: center;
}

.cs-app-carousel__slide {
  display: none;
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  margin: 0 auto;
}

.cs-app-carousel__slide--active {
  display: block;
  animation: fadeSlide 0.4s ease;
}

.cs-app-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  z-index: 5;
}

.cs-app-carousel__arrow:hover {
  background: #3D8B6E;
  border-color: #3D8B6E;
}

.cs-app-carousel__arrow--left { left: 0; }
.cs-app-carousel__arrow--right { right: 0; }

.cs-app-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.cs-app-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: background 0.2s;
}

.cs-app-carousel__dot--active {
  background: #3D8B6E;
}

@media (max-width: 899px) {
  .cs-app-carousel { padding: 0 36px; }
  .cs-app-carousel__arrow { width: 36px; height: 36px; font-size: 14px; }
  .cs-app-carousel__slide { max-width: 100%; }
}

/* ─── ENVIRONMENT 3D LAYOUT CAROUSEL ─── */
.cs-env-carousel {
  position: relative;
  padding: 0 48px;
  text-align: center;
}

.cs-env-carousel__track {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  background: #e0ddd8;
}

.cs-env-carousel__slide {
  display: none;
  width: 100%;
  max-width: 650px;
  height: auto;
  border-radius: 12px;
  margin: 0 auto;
}

.cs-env-carousel__slide--active {
  display: block;
  animation: fadeSlide 0.4s ease;
}

.cs-env-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  z-index: 5;
}

.cs-env-carousel__arrow:hover {
  background: #3D8B6E;
  border-color: #3D8B6E;
}

.cs-env-carousel__arrow--left { left: 0; }
.cs-env-carousel__arrow--right { right: 0; }

.cs-env-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.cs-env-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: background 0.2s;
}

.cs-env-carousel__dot--active {
  background: #3D8B6E;
}

@media (max-width: 899px) {
  .cs-env-carousel { padding: 0 36px; }
  .cs-env-carousel__arrow { width: 36px; height: 36px; font-size: 14px; }
  .cs-env-carousel__slide { max-width: 100%; }
}

/* ─── INSIGHT CALLOUT ─── */
.cs-insight {
  padding: 20px 24px;
  border-left: 3px solid #3D8B6E;
  background: rgba(61, 139, 110, 0.04);
  border-radius: 0 8px 8px 0;
  margin-top: 32px;
}

.cs-insight p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-secondary);
  max-width: none;
}

.cs-insight p strong {
  color: #fff;
}

/* ─── PARTICIPANT CAROUSEL ─── */
.cs-part-carousel {
  position: relative;
  padding: 0 48px;
  margin-top: 32px;
}

.cs-part-carousel__track {
  position: relative;
  overflow: hidden;
}

.cs-part-carousel__slide {
  display: none;
}

.cs-part-carousel__slide--active {
  display: block;
  animation: fadeSlide 0.4s ease;
}

.cs-part-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  z-index: 5;
}

.cs-part-carousel__arrow:hover {
  background: #3D8B6E;
  border-color: #3D8B6E;
}

.cs-part-carousel__arrow--left { left: 0; }
.cs-part-carousel__arrow--right { right: 0; }

.cs-part-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.cs-part-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: background 0.2s;
}

.cs-part-carousel__dot--active {
  background: #3D8B6E;
}

@media (max-width: 899px) {
  .cs-part-carousel { padding: 0 36px; }
  .cs-part-carousel__arrow { width: 32px; height: 32px; font-size: 14px; }
}

/* ─── PARTICIPANTS ─── */
.cs-participants {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cs-participant {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.cs-participant h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.cs-participant__role {
  font-size: 12px;
  color: #3D8B6E;
  margin-bottom: 10px;
}

.cs-participant p:last-child {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

/* ─── QUOTE ─── */
.cs-quote {
  margin-top: 36px;
  padding: 28px;
  border-radius: 12px;
  background: rgba(61, 139, 110, 0.05);
  border: 1px solid rgba(61, 139, 110, 0.12);
}

.cs-quote blockquote {
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  line-height: 1.5;
  color: #ddd;
  margin-bottom: 12px;
}

.cs-quote cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 14px;
  color: #3D8B6E;
}

/* ─── ARCHETYPES ─── */
.cs-archetypes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.cs-archetype {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.cs-archetype__num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: #3D8B6E;
  display: block;
  margin-bottom: 6px;
}

.cs-archetype h4 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.cs-archetype__tag {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.cs-archetype p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.cs-archetype__need strong {
  color: #3D8B6E;
}

/* ─── HYPOTHESES ─── */
.cs-hypotheses {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.cs-hypothesis {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.cs-hypothesis__badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 10px;
}

.cs-hypothesis__badge--partial { background: rgba(230,185,79,0.12); color: #E6B94F; }
.cs-hypothesis__badge--conditional { background: rgba(61,139,110,0.12); color: #6EC9A5; }
.cs-hypothesis__badge--confirmed { background: rgba(61,139,110,0.2); color: #3D8B6E; }

.cs-hypothesis h4 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.cs-hypothesis p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ─── SHIFT ─── */
.cs-shift {
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin-top: 36px;
}

.cs-shift__from, .cs-shift__to {
  flex: 1;
  padding: 24px;
  border-radius: 10px;
}

.cs-shift__from {
  background: rgba(192,86,81,0.06);
  border: 1px solid rgba(192,86,81,0.15);
}

.cs-shift__to {
  background: rgba(61,139,110,0.06);
  border: 1px solid rgba(61,139,110,0.15);
}

.cs-shift h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.cs-shift p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.cs-shift__arrow {
  display: flex;
  align-items: center;
  font-size: 22px;
  color: #3D8B6E;
  flex-shrink: 0;
}

/* ─── JOURNEY ─── */
.cs-journey {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.cs-journey__stage {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.cs-journey__stage--highlight {
  border-color: #3D8B6E;
  background: rgba(61,139,110,0.05);
}

.cs-journey__stage span {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #3D8B6E;
  display: block;
  margin-bottom: 4px;
}

.cs-journey__stage h4 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.cs-journey__stage p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.cs-journey__lever {
  color: #3D8B6E !important;
  font-weight: 500;
  font-size: 12px !important;
}

/* ─── STRATEGIES ─── */
.cs-strategies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.cs-strategy {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.cs-strategy--rejected { opacity: 0.55; }
.cs-strategy--selected { border-color: #3D8B6E; background: rgba(61,139,110,0.05); }

.cs-strategy__badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
  display: block;
}

.cs-strategy--selected .cs-strategy__badge { color: #3D8B6E; }

.cs-strategy h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.cs-strategy p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

/* ─── SOLUTION LAYER ─── */
.cs-layer {
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin-top: 24px;
  background: rgba(255,255,255,0.02);
}

.cs-layer__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6EC9A5;
  display: block;
  margin-bottom: 8px;
}

.cs-layer h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.cs-layer p {
  font-size: 14px;
  line-height: 1.65;
  color: #aaa;
  margin-bottom: 16px;
}

.cs-layer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-layer ul li {
  font-size: 14px;
  color: #aaa;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

/* Split layout — text left, carousel right */
.cs-layer--split {
  display: flex;
  gap: 32px;
  align-items: center;
}

.cs-layer__text {
  flex: 0 0 42%;
}

.cs-layer__carousel {
  flex: 1;
  min-width: 0;
}

.cs-layer--split .cs-app-carousel,
.cs-layer--split .cs-env-carousel {
  padding: 0 32px;
  margin-top: 0;
}

.cs-layer--split .cs-app-carousel__slide,
.cs-layer--split .cs-env-carousel__slide {
  max-width: 100%;
}

@media (max-width: 899px) {
  .cs-layer--split {
    flex-direction: column;
  }
  .cs-layer__text {
    flex: none;
    width: 100%;
  }
  .cs-layer__carousel {
    width: 100%;
  }
}

.cs-layer ul li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: #3D8B6E;
}

/* ─── FEATURE ROWS ─── */
.cs-feature-row {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 48px;
}

.cs-feature-row--reverse {
  flex-direction: row-reverse;
}

.cs-feature-row__text {
  flex: 1;
}

.cs-feature-row__text h4 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.cs-feature-row__text p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.cs-feature-row__lever {
  color: #3D8B6E !important;
  font-size: 13px !important;
}

.cs-feature-row__img {
  flex: 0 0 200px;
}

.cs-phone {
  width: 200px;
  height: 400px;
  border-radius: 28px;
  border: 3px solid #333;
  overflow: hidden;
  font-size: 14px;
}

/* ─── MECHANICS ─── */
.cs-mechanics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.cs-mechanic {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.cs-mechanic h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.cs-mechanic p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.cs-mechanic__lever {
  color: #3D8B6E !important;
  font-size: 12px !important;
  font-weight: 500;
}

/* ─── FEEDBACK ─── */
.cs-feedback-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.cs-feedback {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.cs-feedback__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3D8B6E;
  display: block;
  margin-bottom: 10px;
}

.cs-feedback p {
  font-size: 14px;
  line-height: 1.6;
  color: #ddd;
  margin-bottom: 10px;
}

.cs-feedback__response {
  color: var(--color-text-secondary) !important;
  font-size: 13px !important;
}

.cs-feedback__response strong {
  color: #3D8B6E;
}

/* ─── LEARNINGS ─── */
.cs-learnings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.cs-learning {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.cs-learning span {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: #3D8B6E;
  display: block;
  margin-bottom: 6px;
}

.cs-learning h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.cs-learning p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ─── TAGS ─── */
.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}

.cs-tags span {
  font-size: 12px;
  font-weight: 500;
  color: #3D8B6E;
  background: rgba(61,139,110,0.08);
  border: 1px solid rgba(61,139,110,0.15);
  border-radius: 20px;
  padding: 5px 14px;
}

/* ─── NEXT LINK ─── */
.cs-next-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 15px;
  color: #3D8B6E;
  font-weight: 500;
  transition: color 0.2s;
}

.cs-next-link:hover {
  color: #6EC9A5;
}

/* ─── FOOTER ─── */
.cs-footer {
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
}

.cs-footer__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--side-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cs-footer__links {
  display: flex;
  gap: 24px;
}

.cs-footer__links a {
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.cs-footer__links a:hover {
  color: #fff;
}

.cs-footer__inner span {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 899px) {
  .cs-nav { padding: 14px 20px; }
  .cs-hero { padding: 90px 20px 36px; }
  .cs-block { padding: 48px 20px; }
  .cs-meta { grid-template-columns: 1fr 1fr; gap: 16px; }
  .cs-numbers { grid-template-columns: 1fr; gap: 24px; }
  .cs-constraints { grid-template-columns: 1fr; }
  .cs-participants { grid-template-columns: 1fr 1fr; }
  .cs-archetypes { grid-template-columns: 1fr; }
  .cs-shift { flex-direction: column; }
  .cs-shift__arrow { transform: rotate(90deg); justify-content: center; }
  .cs-journey { grid-template-columns: 1fr 1fr; }
  .cs-strategies { grid-template-columns: 1fr; }
  .cs-mechanics { grid-template-columns: 1fr; }
  .cs-feature-row, .cs-feature-row--reverse { flex-direction: column; gap: 24px; }
  .cs-feature-row__img { flex: none; }
  .cs-feedback-list { grid-template-columns: 1fr; }
  .cs-learnings { grid-template-columns: 1fr; }
}

@media (max-width: 599px) {
  .cs-meta { grid-template-columns: 1fr; }
  .cs-participants { grid-template-columns: 1fr; }
  .cs-journey { grid-template-columns: 1fr; }
  .cs-phone { width: 160px; height: 320px; }
  .cs-screens-grid { grid-template-columns: 1fr; }
}

/* ─── HERO IMAGE ─── */
.cs-hero__image {
  margin-top: 48px;
  text-align: center;
}

.cs-hero__image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 16px;
}

/* ─── APP SCREENS GRID ─── */
.cs-screens-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.cs-screens-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: var(--color-surface);
}

/* ─── PHONE IMAGES (replacing placeholder divs) ─── */
.cs-phone-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 12px;
}

/* ─── CONTEXTUAL IMAGE BLOCKS ─── */
.cs-img {
  margin: 40px 0;
  text-align: center;
}

.cs-img img {
  height: auto;
  border-radius: 12px;
  display: inline-block;
}

/* Full width — spans container */
.cs-img--full img {
  width: 100%;
  max-width: 1080px;
  border-radius: 16px;
}

/* Large — centered, ~700px */
.cs-img--large img {
  width: 100%;
  max-width: 700px;
  border-radius: 14px;
}

/* Medium — centered, ~500px */
.cs-img--medium img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
}

/* Side — used inside feature rows */
.cs-img--side img {
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
}

@media (max-width: 899px) {
  .cs-img--full img,
  .cs-img--large img {
    max-width: 100%;
  }
  .cs-img--medium img {
    max-width: 100%;
  }
}
