/* Brandworks — extended case studies (/proiect/<slug>/ pages built from manage/cases/<slug>.json).
   Same tokens as site.css; the client colour (--cs-accent) is used only for marks, never for text. */
.cs { --cs-accent: var(--blue); }
.project-body.cs > * + * { margin-top: 24px; }
.project-body.cs .cs-chapter { margin-top: clamp(88px, 11vw, 168px); scroll-margin-top: 80px; }
.project-body.cs .cs-chapter:first-child { margin-top: 0; }
.cs-chapter .title { margin-top: 10px; }
.cs-chapter .lede { margin-top: 20px; max-width: 40em; }
.cs-chapter .lede + .lede { margin-top: 12px; }
.cs-kicker { display: flex; align-items: center; gap: 12px; margin: 0; font: 600 14px/1.3 var(--text); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.cs-num { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 9px; border-radius: 980px; background: var(--cs-accent); color: var(--cs-on-accent, var(--ink)); font: 600 14px/1 var(--text); letter-spacing: 0; }
.project-body.cs .cs-chapter + .ph-wrap, .project-body.cs .cs-chapter + .wrap { margin-top: clamp(36px, 4.5vw, 56px); }
.project-body.cs .ph-wrap + .wrap:not(.ph-wrap), .project-body.cs .wrap:not(.ph-wrap) + .ph-wrap { margin-top: clamp(40px, 5vw, 72px); }
.project-body.cs .cs-sub { margin-top: clamp(56px, 7vw, 96px); }
.project-body.cs .cs-sub + .prose { margin-top: 14px; }

/* Cards */
.cs-cards { display: grid; gap: 20px; }
.cs-cards.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-cards.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1068px) { .cs-cards.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cs-cards.c3 { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .cs-cards.c2, .cs-cards.c4 { grid-template-columns: 1fr; } .cs-cards { gap: 12px; } }
.cs-card .label { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .06em; }
.cs-card h3 { margin-bottom: 12px; }
.cs-card p { font-size: 17px; line-height: 1.47; }
.cs-rows { margin: 20px 0 0; padding: 0; }
.cs-rows dt { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hair); font: 600 12px/1.33 var(--text); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.cs-rows dt:first-child { margin-top: 0; }
.cs-rows dd { margin: 6px 0 0; font-size: 15px; line-height: 1.47; color: var(--ink); }

/* Facts */
.cs-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 1068px) { .cs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .cs-facts { grid-template-columns: 1fr; } }
.cs-facts li { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.6vw, 32px); border-radius: var(--radius-sm); background: var(--bg-alt); }
.cs-facts strong { font: 600 clamp(32px, 3.6vw, 48px)/1 var(--display); letter-spacing: -.015em; color: var(--ink); }
.cs-facts strong::after { content: ""; display: block; width: 28px; height: 4px; margin-top: 14px; border-radius: 2px; background: var(--cs-accent); }
.cs-facts span { font-size: 15px; line-height: 1.47; color: var(--ink-2); }
.cs-note { margin: 0; }

/* Timeline */
.cs-timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.cs-timeline::before { content: ""; position: absolute; left: 39px; top: 8px; bottom: 8px; width: 2px; background: var(--hair); }
.cs-timeline li { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 0 28px; padding: 14px 0; }
.cs-year { position: relative; z-index: 1; justify-self: center; align-self: start; padding: 6px 10px; border-radius: 980px; background: var(--cs-accent); font: 600 14px/1.2 var(--text); color: var(--cs-on-accent, var(--ink)); white-space: nowrap; }
.cs-timeline h3 { margin: 4px 0 4px; font: 600 clamp(19px, 1.8vw, 24px)/1.2 var(--display); letter-spacing: .007em; }
.cs-timeline p { margin: 0; font-size: 17px; line-height: 1.47; color: var(--ink-2); }
@media (max-width: 520px) { .cs-timeline::before { left: 31px; } .cs-timeline li { grid-template-columns: 64px minmax(0, 1fr); gap: 0 16px; } .cs-year { font-size: 13px; padding: 5px 8px; } }

/* Quotes */
.cs-quote { margin-top: clamp(40px, 5vw, 64px) !important; margin-bottom: 0; }
.cs-quote blockquote, .cs-quotes blockquote { margin: 0; font: 600 clamp(24px, 3vw, 40px)/1.15 var(--display); letter-spacing: -.003em; color: var(--ink); }
.cs-quote blockquote::before, .cs-quotes blockquote::before { content: "„"; }
.cs-quote blockquote::after, .cs-quotes blockquote::after { content: "”"; }
.cs-quote figcaption, .cs-quotes figcaption { margin-top: 16px; font-size: 15px; color: var(--ink-3); }
.cs-quote figcaption::before, .cs-quotes figcaption::before { content: ""; display: inline-block; width: 22px; height: 3px; margin-right: 10px; vertical-align: middle; border-radius: 2px; background: var(--cs-accent); }
.cs-quotes figure { margin: 0; }
.cs-quotes blockquote { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; }

/* Example callout */
.cs-example { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-sm); background: var(--bg-alt); box-shadow: inset 6px 0 0 var(--cs-accent); }
.cs-example-label { margin: 0 0 8px; font: 600 12px/1.33 var(--text); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.cs-example h3 { margin: 0 0 10px; font: 600 clamp(21px, 2vw, 28px)/1.14 var(--display); letter-spacing: .007em; }
.cs-example p { margin: 0; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.53; color: var(--ink-2); }

/* From → to */
.cs-shift { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-sm); background: var(--dark-tile); color: #f5f5f7; }
.cs-shift > .label { margin: 0 0 20px; color: #a1a1a6; text-transform: uppercase; letter-spacing: .06em; }
.cs-shift-head, .cs-shift li { display: grid; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1.25fr); gap: 16px; align-items: baseline; }
.cs-shift-head { font: 600 12px/1.33 var(--text); color: #86868b; text-transform: uppercase; letter-spacing: .06em; }
.cs-shift ul { margin: 0; padding: 0; list-style: none; }
.cs-shift li { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.cs-shift-head + ul li:first-child { margin-top: 10px; }
.cs-from { color: #86868b; font-size: 17px; line-height: 1.4; }
.cs-arrow { color: var(--cs-accent); font-size: 20px; text-align: center; }
.cs-to { font: 600 clamp(17px, 1.6vw, 21px)/1.3 var(--display); }
@media (max-width: 600px) {
  .cs-shift-head { display: none; }
  .cs-shift li { grid-template-columns: 1fr; gap: 6px; }
  .cs-arrow { text-align: left; }
}

/* Steps overview */
.cs-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
@media (max-width: 900px) { .cs-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cs-steps { grid-template-columns: 1fr; gap: 12px; } }
.cs-steps a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: clamp(22px, 2.6vw, 32px); border-radius: var(--radius-sm); background: var(--bg-alt); color: inherit; transition: transform .3s ease, box-shadow .3s ease; }
.cs-steps a:hover { text-decoration: none; transform: scale(1.012); box-shadow: 0 4px 24px rgba(0, 0, 0, .08); }
.cs-steps .cs-num { align-self: flex-start; margin-bottom: 8px; }
.cs-steps strong { font: 600 clamp(19px, 1.8vw, 24px)/1.2 var(--display); letter-spacing: .007em; }
.cs-steps span:last-child { color: var(--ink-2); font-size: 17px; line-height: 1.4; }

/* Brand architecture */
.cs-arch { display: grid; gap: 20px; }
.cs-master { text-align: center; }
.cs-master .label { margin: 0 0 10px; color: #a1a1a6; text-transform: uppercase; letter-spacing: .06em; }
.cs-master h3 { font-size: clamp(28px, 3.2vw, 44px); }
.cs-master h3::after { content: ""; display: block; width: 40px; height: 4px; margin: 16px auto 0; border-radius: 2px; background: var(--cs-accent); }
.cs-master p { max-width: 36em; margin: 14px auto 0; }
.cs-arch .cs-card h3 { font-size: clamp(19px, 1.8vw, 24px); }

/* Lessons */
.cs-lessons { margin: 0; padding: 0; list-style: none; counter-reset: lesson; }
.cs-lessons li { position: relative; padding: 28px 0 28px 72px; border-top: 1px solid var(--hair); counter-increment: lesson; }
.cs-lessons li:last-child { border-bottom: 1px solid var(--hair); }
.cs-lessons li::before { content: counter(lesson); position: absolute; left: 0; top: 26px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--cs-accent); font: 600 19px/1 var(--display); color: var(--cs-on-accent, var(--ink)); }
.cs-lessons h3 { margin: 0 0 8px; font: 600 clamp(21px, 2vw, 28px)/1.18 var(--display); letter-spacing: .007em; }
.cs-lessons p { margin: 0; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; color: var(--ink-2); }
@media (max-width: 520px) { .cs-lessons li { padding-left: 58px; } .cs-lessons li::before { width: 38px; height: 38px; font-size: 17px; } }

/* Closing call to action */
.project-body.cs .cs-cta { margin-top: clamp(88px, 11vw, 160px); }
.cs-cta .lede { margin-top: 16px; }
