/* ============================================================
   CASE STUDY — shared styles for all case study pages
   ============================================================ */


/* ── Section progress indicator — left side ─────────────── */

.cs-progress {
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  pointer-events: none;
}

.cs-progress__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cs-progress__link {
  display: block;
  pointer-events: all;
  text-decoration: none;
  outline: none;
}

.cs-progress__pill {
  display: flex;
  align-items: center;
  height: 8px;
  width: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  transition:
    width    0.45s cubic-bezier(0.16, 1, 0.3, 1),
    height   0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s ease;
}

.cs-progress__label {
  font-family: 'Syne', sans-serif;
  font-size: 0.575rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--cta-text);
  padding: 0 10px 0 12px;
  opacity: 0;
  transition: opacity 0.15s 0.22s;
}

.cs-progress__link.is-active .cs-progress__pill {
  width: 100px;
  height: 26px;
  background: var(--accent);
}

.cs-progress__link.is-active .cs-progress__label {
  opacity: 1;
}

.cs-progress__link:hover:not(.is-active) .cs-progress__pill {
  width: 14px;
  height: 14px;
  background: var(--body-muted);
}

@media (max-width: 1100px) {
  .cs-progress { display: none; }
}


/* ── Hero — intentionally dark, always ───────────────────── */

.cs-hero {
  position: relative;
  background: #182014;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

@media (min-width: 1200px) {
  .cs-hero { min-height: 100vh; }
}

.cs-hero .container {
  position: relative;
  z-index: 2;
  padding-bottom: 0;
}

/* Network SVG — covers full hero */
.cs-hero__network {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cs-hero__network svg {
  width: 100%;
  height: 100%;
}

/* Subtle pulse on hub node */
@keyframes hub-pulse {
  0%, 100% { r: 7; opacity: 0.85; }
  50%       { r: 9; opacity: 0.6;  }
}
.network-hub {
  animation: hub-pulse 4s ease-in-out infinite;
  transform-origin: 720px 220px;
}

.cs-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Text content */
.cs-hero__content {
  padding-top: 160px;
  padding-bottom: 72px;
  max-width: 760px;
}

.cs-hero__eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4D8B31;
  margin-bottom: 24px;
  display: block;
}

.cs-hero__title {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  color: #F2EEE6;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.cs-hero__subtitle {
  font-family: 'Sora', sans-serif;
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  color: rgba(242, 238, 230, 0.6);
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 48px;
}

/* Outcome teaser — accent-coloured callout */
.cs-hero__outcome-teaser {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: rgba(77, 139, 49, 0.12);
  border: 0.5px solid rgba(77, 139, 49, 0.35);
  border-radius: 16px;
  padding: 20px 28px;
}

.cs-hero__outcome-num {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #4D8B31;
  line-height: 1;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.cs-hero__outcome-label {
  font-family: 'Sora', sans-serif;
  font-size: 0.875rem;
  color: rgba(242, 238, 230, 0.65);
  line-height: 1.55;
}

/* Meta strip — bottom of hero */
.cs-hero__meta {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 0.5px solid rgba(242, 238, 230, 0.1);
  padding: 24px 0;
}

.cs-meta-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 32px;
  flex: 1;
}

.cs-meta-item:first-child { padding-left: 0; }
.cs-meta-item:last-child  { padding-right: 0; }

.cs-meta-item__label {
  font-family: 'Syne', sans-serif;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(242, 238, 230, 0.3);
}

.cs-meta-item__value {
  font-family: 'Sora', sans-serif;
  font-size: 0.875rem;
  color: rgba(242, 238, 230, 0.75);
  line-height: 1.4;
}

.cs-meta-divider {
  width: 0.5px;
  height: 36px;
  background: rgba(242, 238, 230, 0.12);
  flex-shrink: 0;
}


/* ── Chapter structure ───────────────────────────────────── */

.cs-chapter {
  padding: 96px 0;
}

.cs-chapter--surface {
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}

.cs-chapter__header {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 56px;
}

.cs-chapter__num {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 4rem;
  color: var(--heading);
  line-height: 1;
  letter-spacing: -0.04em;
  opacity: 0.1;
  user-select: none;
  padding-top: 6px;
}

.cs-chapter__title {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--heading);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 8px;
  margin-bottom: 0;
}

.cs-chapter__body {
  max-width: 720px;
  margin-bottom: 56px;
}

.cs-body-lead {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  color: var(--heading);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 20px;
  max-width: 720px;
}

.cs-body {
  font-family: 'Sora', sans-serif;
  font-size: 0.9375rem;
  color: var(--body-text);
  line-height: 1.9;
  margin-bottom: 0;
  max-width: 660px;
}


/* ── Problem chain ───────────────────────────────────────── */

.problem-chain {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 28px;
  padding: 36px 32px;
  margin-bottom: 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.chain-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.chain-step__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 18px;
  padding: 18px 16px 14px;
  width: 108px;
  text-align: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.chain-step__card--end {
  border-color: rgba(77, 139, 49, 0.35);
  background: var(--accent-dim);
}

.chain-step__icon {
  width: 28px;
  height: 28px;
  color: var(--body-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chain-step__card--end .chain-step__icon {
  color: var(--accent);
}

.chain-step__icon svg {
  width: 100%;
  height: 100%;
}

.chain-step__label {
  font-family: 'Syne', sans-serif;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--body-muted);
  line-height: 1.4;
}

.chain-step__card--end .chain-step__label {
  color: var(--accent);
}

.chain-step__day {
  font-family: 'Sora', sans-serif;
  font-size: 0.6875rem;
  color: var(--body-muted);
  opacity: 0.7;
}

.chain-step__day--end {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--accent);
  font-weight: 400;
  opacity: 1;
}

.chain-arrow {
  display: flex;
  align-items: center;
  color: var(--border);
  padding: 0 8px;
  flex-shrink: 0;
  margin-bottom: 28px;
}

.chain-arrow svg {
  width: 40px;
  height: 14px;
}

/* Pain points */
.pain-points {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 0.5px solid var(--border-subtle);
}

.pain-point {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 0.5px solid var(--border-subtle);
}

.pain-point__dash {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
  flex-shrink: 0;
  margin-top: 11px;
}

.pain-point__text {
  font-family: 'Sora', sans-serif;
  font-size: 0.9375rem;
  color: var(--body-text);
  line-height: 1.65;
  margin: 0;
}


/* ── Role card ───────────────────────────────────────────── */

.role-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 28px;
  padding: 48px;
  align-items: start;
}

.role-card__context {
  font-family: 'Sora', sans-serif;
  font-size: 0.9375rem;
  color: var(--body-text);
  line-height: 1.85;
  margin-bottom: 18px;
}

.role-card__context:last-child { margin-bottom: 0; }

.role-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-tag {
  font-family: 'Syne', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--body-muted);
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
}


/* ── Collaboration strip ─────────────────────────────────── */

.collab-strip {
  margin-top: 32px;
}

.collab-strip__label {
  font-family: 'Syne', sans-serif;
  font-size: 0.5875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--body-muted);
  margin-bottom: 16px;
}

.collab-teams {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.collab-team {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 20px 18px;
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.collab-team:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
}

.collab-team__icon {
  width: 36px;
  height: 36px;
  background: var(--accent-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.collab-team__icon svg {
  width: 17px;
  height: 17px;
}

.collab-team__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.collab-team__name {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--heading);
  line-height: 1.3;
}

.collab-team__detail {
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  color: var(--body-muted);
  line-height: 1.55;
}

/* ── Process phases — 2×2 grid ───────────────────────────── */

.process-phases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.phase-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 28px;
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.phase-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.07);
}

.phase-card__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.phase-card__num {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 2.25rem;
  color: var(--heading);
  line-height: 1;
  letter-spacing: -0.03em;
  opacity: 0.15;
  flex-shrink: 0;
  user-select: none;
  transition: opacity 0.25s ease;
}

.phase-card:hover .phase-card__num {
  opacity: 0.45;
}

.phase-card__title {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 1.1875rem;
  color: var(--heading);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  padding-top: 4px;
}

.phase-card__body {
  font-family: 'Sora', sans-serif;
  font-size: 0.875rem;
  color: var(--body-text);
  line-height: 1.8;
  margin: 0;
}

.phase-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.phase-card__tags span {
  font-family: 'Syne', sans-serif;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 999px;
  padding: 3px 10px;
}


/* ── Wireframe placeholders ──────────────────────────────── */

.wireframe-placeholder {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 20px;
}

.wireframe-placeholder--feature {
  grid-column: 1 / -1;
}

.wireframe-placeholder__inner {
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 18px 18px;
  padding: 16px;
}

.wireframe-placeholder__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 6px 10px;
  background: var(--surface);
  border-radius: 10px 10px 0 0;
  border: 0.5px solid var(--border);
}

.wireframe-placeholder__dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

.wireframe-placeholder__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}

.wireframe-placeholder__caption {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-muted);
  opacity: 0.6;
  padding: 10px 16px 12px;
  border-top: 0.5px solid var(--border-subtle);
}

/* Wireframe block primitives */
.wf-block {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 6px;
  min-height: 12px;
}

.wf-block--h {
  height: 22px;
  margin-bottom: 8px;
}

.wf-block--sidebar {
  width: 28%;
  min-height: 80px;
  border-radius: 8px;
  flex-shrink: 0;
}

.wf-block--card {
  height: 28px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.wf-block--sm {
  height: 18px;
  opacity: 0.6;
}

.wf-block--tall {
  flex: 1;
  min-height: 72px;
  border-radius: 8px;
}

.wf-row {
  display: flex;
  gap: 6px;
  align-items: stretch;
}

.wf-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}


/* ── Solution features ───────────────────────────────────── */

.solution-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 0.5px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 40px;
}

.solution-feature {
  padding: 32px 36px;
  border-right: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  transition: background 0.25s ease;
}

.solution-feature:nth-child(2n) { border-right: none; }
.solution-feature:nth-child(3),
.solution-feature:nth-child(4)  { border-bottom: none; }

.solution-feature:hover {
  background: var(--surface);
}

.solution-feature__title {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 10px;
}

.solution-feature__body {
  font-family: 'Sora', sans-serif;
  font-size: 0.875rem;
  color: var(--body-text);
  line-height: 1.75;
  margin: 0;
}

/* Solution wireframe grid */
.solution-wireframes {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
  align-items: start;
}


/* ── Outcomes ────────────────────────────────────────────── */

.cs-outcomes {
  background: var(--heading);
}

.cs-outcomes .section__eyebrow {
  color: rgba(242, 238, 230, 0.4);
}

.cs-outcomes .cs-chapter__title {
  color: #F2EEE6;
}

.cs-outcomes .cs-chapter__num {
  color: #F2EEE6;
  opacity: 0.08;
}

/* 90% hero stat */
.outcome-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
  background: rgba(77, 139, 49, 0.12);
  border: 0.5px solid rgba(77, 139, 49, 0.3);
  border-radius: 28px;
  padding: 52px 56px;
  margin-bottom: 24px;
}

.outcome-hero__stat {
  display: flex;
  align-items: flex-start;
  line-height: 1;
}

.outcome-hero__num {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(5rem, 10vw, 9rem);
  color: #4D8B31;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.outcome-hero__pct {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #4D8B31;
  line-height: 1;
  padding-top: 16px;
  letter-spacing: -0.02em;
}

.outcome-hero__title {
  font-family: 'Syne', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 238, 230, 0.45);
  margin-bottom: 14px;
}

.outcome-hero__range {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.outcome-hero__before {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: rgba(242, 238, 230, 0.4);
  text-decoration: line-through;
  text-decoration-color: rgba(242, 238, 230, 0.2);
  letter-spacing: -0.01em;
}

.outcome-hero__range svg {
  width: 28px;
  height: 10px;
  color: rgba(77, 139, 49, 0.6);
  flex-shrink: 0;
}

.outcome-hero__after {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: #4D8B31;
  letter-spacing: -0.01em;
}

.outcome-hero__note {
  font-family: 'Sora', sans-serif;
  font-size: 0.875rem;
  color: rgba(242, 238, 230, 0.45);
  line-height: 1.75;
  margin: 0;
  max-width: 480px;
}

/* Supporting stats */
.outcome-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.outcome-stat {
  background: rgba(242, 238, 230, 0.04);
  border: 0.5px solid rgba(242, 238, 230, 0.1);
  border-radius: 24px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.25s ease;
}

.outcome-stat:hover {
  background: rgba(242, 238, 230, 0.07);
}

.outcome-stat__num {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  color: #F2EEE6;
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
}

.outcome-stat__label {
  font-family: 'Sora', sans-serif;
  font-size: 0.8125rem;
  color: rgba(242, 238, 230, 0.4);
  line-height: 1.65;
  margin: 0;
}


/* ── Reflection ──────────────────────────────────────────── */

.reflection-card {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 28px 28px 0;
  padding: 44px 48px;
  max-width: 820px;
}

.reflection-quote {
  margin: 0;
  padding: 0;
  border: none;
}

.reflection-quote p {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--heading);
  line-height: 1.65;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.reflection-quote p:last-child { margin-bottom: 0; }


/* ── Side progress nav — responsive ─────────────────────── */
@media (max-width: 767px) {
  .cs-progress { display: none; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .cs-progress { left: 10px; }
  .cs-progress__pill { pointer-events: none; }
  .cs-progress__label { display: none; }
}


/* ── Next case study CTA ─────────────────────────────────── */

.cs-next {
  background: var(--bg);
  border-top: 0.5px solid var(--border);
}

.cs-next__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
}

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

.cs-next__counter {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 2rem;
  color: var(--heading);
  opacity: 0.15;
  line-height: 1;
  letter-spacing: -0.03em;
}

.cs-next__title {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--heading);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cs-next__sub {
  font-family: 'Sora', sans-serif;
  font-size: 0.875rem;
  color: var(--body-text);
  line-height: 1.75;
  margin: 0;
  max-width: 480px;
}

.cs-next__btn {
  flex-shrink: 0;
}


/* ── Friction grid (HYPD Cart) ───────────────────────────── */

.friction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 0.5px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  margin-top: 40px;
  margin-bottom: 16px;
}

.friction-point {
  padding: 32px 28px;
  border-right: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.25s ease;
}

.friction-point:hover { background: var(--surface); }
.friction-point:nth-child(3n) { border-right: none; }
.friction-point:nth-child(4),
.friction-point:nth-child(5),
.friction-point:nth-child(6) { border-bottom: none; }

.friction-point__num {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--heading);
  opacity: 0.15;
  line-height: 1;
  letter-spacing: -0.03em;
  user-select: none;
}

.friction-point__title {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--heading);
  margin: 0;
  line-height: 1.3;
}

.friction-point__body {
  font-family: 'Sora', sans-serif;
  font-size: 0.8125rem;
  color: var(--body-text);
  line-height: 1.7;
  margin: 0;
}

/* ── Story block (AmEx Real Time) ───────────────────────── */

.story-block {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 72px;
  align-items: start;
  margin-bottom: 40px;
  margin-top: 8px;
}

.story-block__quote {
  border-left: 2px solid var(--accent);
  padding-left: 32px;
}

.story-block__quote p {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(1.0625rem, 1.8vw, 1.3125rem);
  color: var(--heading);
  line-height: 1.6;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.story-block__quote p:last-child { margin-bottom: 0; }

.story-block__quote em {
  font-style: italic;
  color: var(--accent);
}

.story-block__aside {
  padding-top: 8px;
}

.story-block__stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.story-block__num {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3.5rem, 6vw, 5rem);
  color: var(--heading);
  line-height: 1;
  letter-spacing: -0.03em;
}

.story-block__label {
  font-family: 'Sora', sans-serif;
  font-size: 0.8125rem;
  color: var(--body-muted);
  line-height: 1.65;
}

/* ── Dual-sided problem split (HYPD) ─────────────────────── */

.dual-problem {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  margin-bottom: 40px;
  margin-top: 40px;
}

.dual-problem__side {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 28px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dual-problem__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 0.5875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.dual-problem__label svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.dual-problem__title {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 1.0625rem;
  color: var(--heading);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}

.dual-problem__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dual-problem__list li {
  font-family: 'Sora', sans-serif;
  font-size: 0.875rem;
  color: var(--body-text);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.dual-problem__list li::before {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.dual-problem__divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
}

.dual-problem__divider-line {
  display: block;
  width: 0.5px;
  flex: 1;
  background: var(--border);
}

.dual-problem__divider-label {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 0.875rem;
  color: var(--body-muted);
  opacity: 0.5;
  flex-shrink: 0;
}

/* ── Solution sides (HYPD) ───────────────────────────────── */

.solution-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.solution-side {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 28px;
  padding: 36px 32px;
}

.solution-side__badge {
  display: inline-flex;
  font-family: 'Syne', sans-serif;
  font-size: 0.5875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 0.5px solid rgba(77, 139, 49, 0.25);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.solution-side__title {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--heading);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.solution-side__body {
  font-family: 'Sora', sans-serif;
  font-size: 0.875rem;
  color: var(--body-text);
  line-height: 1.8;
  margin: 0;
}

/* ── 4-column collab teams variant ──────────────────────── */

.collab-teams--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ── 4-column outcome stats variant ─────────────────────── */

.outcome-stats--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ── Responsive — tablet ─────────────────────────────────── */

@media (max-width: 1023px) {
  .cs-hero__content {
    padding-top: 130px;
    padding-bottom: 56px;
  }

  .cs-hero__meta {
    flex-wrap: wrap;
    gap: 20px;
  }

  .cs-meta-item {
    padding: 0;
    flex: unset;
    min-width: 130px;
  }

  .cs-meta-divider { display: none; }

  .cs-chapter__header {
    grid-template-columns: 52px 1fr;
    gap: 16px;
  }

  .cs-chapter__num { font-size: 2.75rem; }

  .problem-chain { padding: 24px 20px; }

  .role-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 36px;
  }

  .collab-teams {
    grid-template-columns: repeat(3, 1fr);
  }

  .collab-teams--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .friction-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .friction-point:nth-child(3n) { border-right: 0.5px solid var(--border); }
  .friction-point:nth-child(2n) { border-right: none; }
  .friction-point:nth-child(4),
  .friction-point:nth-child(5),
  .friction-point:nth-child(6) { border-bottom: 0.5px solid var(--border); }
  .friction-point:nth-child(5),
  .friction-point:nth-child(6) { border-bottom: none; }

  .story-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .dual-problem {
    grid-template-columns: 1fr;
  }

  .dual-problem__divider {
    flex-direction: row;
    padding: 12px 0;
  }

  .dual-problem__divider-line {
    width: auto;
    height: 0.5px;
    flex: 1;
  }

  .solution-sides {
    grid-template-columns: 1fr;
  }

  .outcome-stats--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-phases {
    grid-template-columns: 1fr;
  }

  .solution-features {
    grid-template-columns: 1fr;
  }

  .solution-feature:nth-child(2n) { border-right: 0.5px solid var(--border); }
  .solution-feature:last-child     { border-bottom: none; }
  .solution-feature:nth-child(3)   { border-bottom: 0.5px solid var(--border); }

  .solution-wireframes {
    grid-template-columns: 1fr 1fr;
  }

  .wireframe-placeholder--feature {
    grid-column: 1 / -1;
  }

  .outcome-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 36px;
  }

  .outcome-stats {
    grid-template-columns: 1fr;
  }

  .cs-next__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 60px 0;
  }
}


/* ── Figma screen showcases ──────────────────────────────── */

.screens-strip {
  margin-top: 28px;
  border-radius: 20px;
  overflow: hidden;
  background: #0f0f0f;
  padding: 24px 20px 16px;
}

.screens-strip__label {
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
  display: block;
}

.screens-strip__img {
  width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: contain;
}

.screens-strip__img--web {
  max-height: 340px;
  object-fit: cover;
  object-position: top center;
}

.screens-pair {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.screens-pair__panel {
  border-radius: 20px;
  overflow: hidden;
  background: #0f0f0f;
  padding: 20px 16px 12px;
}

.screens-pair__label {
  font-family: 'Syne', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 12px;
  display: block;
}

.screens-pair__img {
  width: 100%;
  display: block;
  border-radius: 10px;
  object-fit: contain;
}

.figma-showcase {
  margin-top: 28px;
  border-radius: 24px;
  overflow: hidden;
  background: #111;
  position: relative;
}

.figma-showcase__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.figma-showcase__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.figma-showcase__dot:nth-child(1) { background: #ff5f57; }
.figma-showcase__dot:nth-child(2) { background: #febc2e; }
.figma-showcase__dot:nth-child(3) { background: #28c840; }

.figma-showcase__img {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: cover;
  object-position: top center;
}

.figma-showcase__img--tall {
  max-height: 540px;
}

.figma-showcase__img--contain {
  object-fit: contain;
  background: #111;
}

.figma-showcase__caption {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: initial;
  color: #fff8e7;
  padding: 10px 16px 12px;
  background: #232323;
  border-top: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 767px) {
  .screens-pair { grid-template-columns: 1fr; }
}

/* ── Interactive prototype iframes ───────────────────────── */

.proto-wrap {
  margin-top: 28px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #1a1a1a;
  position: relative;
}

.proto-wrap__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #111;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.proto-wrap__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.proto-wrap__dot:nth-child(1) { background: #ff5f57; }
.proto-wrap__dot:nth-child(2) { background: #febc2e; }
.proto-wrap__dot:nth-child(3) { background: #28c840; }

.proto-wrap__label {
  font-family: 'Syne', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-left: 6px;
}

.proto-frame {
  width: 100%;
  border: none;
  display: block;
}

.proto-frame--phone { height: 900px; }
.proto-frame--modal { height: 660px; }
.proto-frame--dashboard { height: 640px; }

/* Light-bg image showcase (for IA / flow diagrams) */
.figma-showcase--light { background: #fafafa; }
.figma-showcase--light .figma-showcase__bar { background: #f0f0f0; border-bottom-color: #e0e0e0; }
.figma-showcase--light .figma-showcase__caption { background: #f0f0f0; border-top-color: #e0e0e0; color: rgba(0,0,0,0.4); }
.figma-showcase--light .figma-showcase__img--contain { background: #fafafa; }

/* ── Flow snippets ────────────────────────────────────────── */

.cs-flow-snippet {
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-top: 12px;
  padding: 0 2px;
  opacity: 0.75;
}

/* ── Responsive — mobile ─────────────────────────────────── */

@media (max-width: 767px) {
  .cs-hero__content {
    padding-top: 110px;
    padding-bottom: 48px;
  }

  .cs-hero__outcome-teaser {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 20px;
  }

  .problem-chain {
    gap: 0;
    padding: 20px 16px;
  }

  .chain-step__card { width: 90px; padding: 14px 10px 10px; }
  .chain-step__label { font-size: 0.5rem; }
  .chain-arrow svg { width: 28px; }

  .friction-grid {
    grid-template-columns: 1fr;
  }

  .friction-point:nth-child(n) {
    border-right: none;
    border-bottom: 0.5px solid var(--border);
  }

  .friction-point:last-child { border-bottom: none; }

  .collab-teams,
  .collab-teams--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .outcome-stats--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-phases { gap: 14px; }

  .phase-card { padding: 28px 24px 22px; border-radius: 24px; }

  .solution-wireframes { grid-template-columns: 1fr; }

  .outcome-hero { padding: 32px 28px; }

  .reflection-card { padding: 32px 28px 32px 32px; }

  .cs-chapter { padding: 64px 0; }
}
