/* ===== Case study detail pages ("split story") =====
   Used by every case study (the v3_cover / v3_chapter / v3_close partials and the Rasel
   Ahmed page); everything is scoped to .cs3.
   Ideas: a cover with the title beside a tall crop of the photo; each chapter is a row whose text
   stays pinned on the left (position: sticky) while its visuals scroll on the right;
   numbers in bold accent cards; a coloured closing band. */

.cs3 { --cs3-tint: #fff3ee; }

/* ---------- Cover ---------- */
.cs3-cover { padding: 24px 0 0; }
.cs3-cover__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 4.2vw, 80px); align-items: end;
  margin-top: clamp(40px, 4.2vw, 80px);
}
.cs3-cover__frame { margin: 0; }
.cs3-cover__frame .cs-figure__zoom { position: relative; height: clamp(440px, 42vw, 720px); border-radius: var(--radius-lg, 32px); overflow: hidden; background: #e9e9e4; }
.cs3-cover__frame .cs-figure__zoom .cs3-cover__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 100% 30%; }
.cs3-cover__text { padding-bottom: 8px; }
.cs3-cover__text .cs3-intro__text { margin-top: calc(8px + clamp(40px, 3.6vw, 64px)); }
.cs3-cover__back { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.cs3-cover__back:hover { color: var(--ink); }
.cs3-cover__back .post-back__icon { width: 16px; height: 16px; }
.cs3-cover__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.cs3-cover__pills span { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); font-size: 14px; line-height: 1; }
.cs3-cover__pills span:first-child { background: var(--accent); border-color: var(--accent); color: #fff; }
.cs3-cover__title {
  margin-top: 24px;
  font-weight: 400; font-size: clamp(42px, 5vw, 96px); line-height: 0.98; letter-spacing: -0.05em; color: var(--ink-2);
  text-wrap: balance;
}
.cs3-cover__title .soft { color: rgba(22, 23, 22, 0.3); }

.cs3-intro {
  display: flex; justify-content: flex-end;
  margin-top: clamp(40px, 3.6vw, 64px); padding-bottom: clamp(40px, 3.6vw, 64px); border-bottom: 1px solid var(--line);
}
.cs3-intro__text { max-width: 760px; font-size: clamp(20px, 1.46vw, 28px); line-height: 1.4; letter-spacing: -0.015em; color: var(--ink-2); }
.cs3-intro__text p + p { margin-top: 0.7em; color: var(--muted); }
.cs3-intro__facts { display: flex; gap: clamp(24px, 2.9vw, 56px); margin: 0; }
.cs3-intro__facts dt { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.cs3-intro__facts dd { margin: 8px 0 0; font-size: 18px; white-space: nowrap; }

/* ---------- Chapter rows: pinned text left, visuals right ---------- */
.cs3-row { padding: clamp(72px, 6.25vw, 120px) 0 0; }
.cs3-row--tint { margin-top: clamp(72px, 6.25vw, 120px); padding-bottom: clamp(72px, 6.25vw, 120px); background: var(--cs3-tint); }
.cs3-row__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4.2vw, 80px); align-items: start; }
.cs3-pin { position: sticky; top: clamp(24px, 3.3vw, 56px); }
.cs3-pin__label { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.cs3-pin__num {
  font-size: 15px; font-family: var(--font-ui); color: #fff; background: var(--accent);
  padding: 6px 10px; border-radius: 99px; line-height: 1;
}
.cs3-pin__title {
  margin-top: 20px; font-weight: 400;
  font-size: clamp(32px, 2.9vw, 56px); line-height: 1.05; letter-spacing: -0.04em; color: var(--ink-2);
  text-wrap: balance;
}
.cs3-pin__title .soft { color: rgba(22, 23, 22, 0.3); }
.cs3-pin__text { margin-top: 24px; max-width: 560px; font-size: clamp(17px, 1.1vw, 20px); line-height: 1.6; color: #3d3d3d; }
.cs3-pin__text:empty { display: none; }
.cs3-pin__text p + p { margin-top: 1em; }
.cs3-quote {
  margin: 0 0 24px; padding: 20px 24px; border-radius: 20px; background: var(--ink); color: #fff;
  font-size: clamp(20px, 1.6vw, 30px); line-height: 1.25; letter-spacing: -0.02em;
}
.cs3-strong { color: var(--ink); font-size: 1.1em; }
.cs3-tag { display: inline-block; margin-top: 8px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.cs3-bignum { margin-bottom: 20px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.cs3-bignum span { display: block; margin-bottom: 6px; font-size: clamp(64px, 6.9vw, 132px); line-height: 0.9; letter-spacing: -0.06em; text-transform: none; color: var(--accent); }

.cs3-flow { display: grid; gap: 20px; min-width: 0; }
.cs3-flow--tight { gap: 12px; }
.cs3-flow > * { min-width: 0; }
.cs3-flow .cs-figure__zoom { border-radius: 24px; }
.cs3-flow--tight .cs-figure__zoom { border-radius: 16px; }
.cs3-duo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cs3-duo .cs-figure__zoom { border-radius: 16px; }

/* text-only chapters: the paragraphs take the right column */
.cs3-prose { max-width: 760px; font-size: clamp(19px, 1.35vw, 26px); line-height: 1.5; letter-spacing: -0.012em; color: #3d3d3d; }
.cs3-prose p + p { margin-top: 0.8em; }
.cs3-prose .cs3-strong { font-size: 1em; }
.cs3-pin__text .cs3-strong, .cs3-prose .cs3-strong { color: var(--ink); }

.cs3-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cs3-pair .cs-figure__zoom { border-radius: 16px; }

/* numbered cards (values, principles) */
.cs3-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.cs3-points li { padding: 24px; border-radius: 24px; background: var(--card); }
.cs3-points__num { display: inline-block; padding: 6px 10px; border-radius: 99px; background: var(--accent); color: #fff; font-family: var(--font-ui); font-size: 14px; line-height: 1; }
.cs3-points h3 { margin-top: 24px; font-weight: 400; font-size: clamp(22px, 1.46vw, 28px); line-height: 1.2; letter-spacing: -0.03em; color: var(--ink); }
.cs3-points p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--muted); }

.cs3-palette { margin-top: 0; }

/* numbers: bold accent cards */
.cs3-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.cs3-numbers > div { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 170px; padding: 24px; border-radius: 24px; background: var(--card); }
.cs3-numbers > div:first-child { background: var(--accent); color: #fff; }
.cs3-numbers > div:first-child dt { color: rgba(255, 255, 255, 0.8); }
.cs3-numbers dd { margin: 0; font-size: clamp(36px, 3.3vw, 64px); line-height: 1; letter-spacing: -0.05em; }
.cs3-numbers dt { font-size: 14px; line-height: 1.4; color: var(--muted); }
.cs3-numbers--results > div { min-height: 140px; }
.cs3-numbers--results > div:first-child { background: var(--card); color: inherit; }
.cs3-numbers--results > div:first-child dt { color: var(--muted); }
.cs3-numbers--results > div:nth-child(3) { background: var(--accent); color: #fff; }
.cs3-numbers--results > div:nth-child(3) dt { color: rgba(255, 255, 255, 0.8); }

/* career: a vertical line with dots */
.cs3-timeline { position: relative; margin: 0; padding: 0 0 0 32px; list-style: none; }
.cs3-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.cs3-timeline li { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cs3-timeline li::before { content: ""; position: absolute; left: -31px; top: 24px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }
.cs3-timeline li:last-child::before { background: var(--accent); }
.cs3-timeline__year { grid-row: span 2; font-family: var(--font-ui); font-size: 15px; color: var(--accent); padding-top: 4px; }
.cs3-timeline__company { font-size: clamp(20px, 1.46vw, 26px); line-height: 1.2; letter-spacing: -0.025em; }
.cs3-timeline__role { margin-top: 4px; font-size: 15px; color: var(--muted); }

/* before / after */
.cs3-ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cs3-ba__col { padding: 28px; border-radius: 24px; background: var(--card); }
.cs3-ba__col--after { background: var(--ink); color: #fff; }
.cs3-ba__head { margin-bottom: 16px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.cs3-ba__col--after .cs3-ba__head { color: var(--accent); }
.cs3-ba ul { margin: 0; padding: 0; list-style: none; }
.cs3-ba li { padding: 12px 0; border-top: 1px solid rgba(0, 0, 0, 0.08); font-size: 17px; line-height: 1.4; }
.cs3-ba__col--after li { border-top-color: rgba(255, 255, 255, 0.12); }

/* ---------- Closing band ---------- */
.cs3-close { margin-top: clamp(80px, 7.3vw, 140px); padding: clamp(64px, 6.25vw, 120px) 0; background: var(--accent); color: #fff; }
.cs3-close__label { display: flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255, 255, 255, 0.8); }
.cs3-close__title { margin-top: 16px; font-weight: 400; font-size: clamp(36px, 3.75vw, 72px); line-height: 1; letter-spacing: -0.045em; }
.cs3-close__title .soft { color: rgba(255, 255, 255, 0.6); }
.cs3-close__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: clamp(40px, 3.6vw, 64px) 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.35); }
.cs3-close__list li { padding: 28px 24px 0 0; }
.cs3-close__list li + li { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.35); }
.cs3-close__num { font-size: clamp(48px, 4.2vw, 80px); line-height: 1; letter-spacing: -0.05em; color: rgba(255, 255, 255, 0.45); }
.cs3-close__list h3 { margin-top: 20px; font-weight: 400; font-size: clamp(22px, 1.67vw, 32px); letter-spacing: -0.03em; }
.cs3-close__text { max-width: 900px; margin-top: clamp(32px, 3.3vw, 56px); font-size: clamp(19px, 1.35vw, 26px); line-height: 1.5; color: rgba(255, 255, 255, 0.88); }
.cs3-close__text p + p { margin-top: 0.8em; }
.cs3-close__strong { color: #fff; font-size: 1.15em; letter-spacing: -0.02em; }
.cs3-close__list p { margin-top: 10px; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, 0.85); }

/* ---------- Smaller screens: one column, nothing pinned ---------- */
@media (max-width: 1024px) {
  .cs3-row__grid { grid-template-columns: minmax(0, 1fr); }
  .cs3-pin { position: static; }
  .cs3-cover__grid { grid-template-columns: 1fr; }
  .cs3-intro { justify-content: flex-start; }
  .cs3-close__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs3-close__list li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 768px) {
  .cs3-cover__frame .cs-figure__zoom { height: 420px; }
  .cs3-intro__facts { flex-wrap: wrap; }
  .cs3-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs3-numbers > div { min-height: 130px; }
  .cs3-duo, .cs3-ba, .cs3-pair, .cs3-points { grid-template-columns: 1fr; }
  .cs3-close__list { grid-template-columns: 1fr; }
  .cs3-close__list li, .cs3-close__list li + li { padding: 24px 0 0; border-left: 0; }
  .cs3-close__list li + li { margin-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.35); }
}
