/* ============================================================
   CASE-STUDY EXTENSIONS — same hand as the portfolio system.
   Chrome stays monochrome; product screenshots are the only colour.
   ============================================================ */

/* lead paragraph under a section head */
.cs-lead {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 760px;
}
.cs-lead .accent { color: var(--muted); }
.cs-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 640px;
  margin-top: 22px;
}
.cs-body + .cs-body { margin-top: 16px; }

/* generic small label */
.cs-kicker {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* two-column problem / goal */
.cs-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 56px;
}
.cs-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px 34px 38px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.cs-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.cs-card h3 {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.cs-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.cs-card p strong { color: var(--ink); font-weight: 500; }

/* scope pillars — reuse ai-item spirit */
.cs-pillars {
  list-style: none;
  margin-top: 64px;
}
.cs-pillar {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
  transition: padding 0.25s ease;
}
.cs-pillar:last-child { border-bottom: 1px solid var(--line); }
.cs-pillar:hover { padding-left: 8px; }
.cs-pillar .idx { font-size: 13px; color: var(--muted); }
.cs-pillar .pl-name {
  font-size: 19px;
  letter-spacing: -0.015em;
}
.cs-pillar .pl-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 6px;
  line-height: 1.55;
  max-width: 560px;
}

/* sub-heading inside a block */
.cs-subhead {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 84px 0 32px;
}
.cs-subhead:first-of-type { margin-top: 0; }
.cs-subhead .s-num { font-size: 13px; color: var(--muted); }
.cs-subhead h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.cs-subhead .s-note {
  font-size: 13px;
  color: var(--muted);
  margin-left: auto;
  text-align: right;
}

/* data strip — reuse stats pattern, monochrome bars */
.cs-data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 36px;
}
.cs-data-block .d-cap {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.cs-bar-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.cs-bar-row:first-of-type { border-top: none; }
.cs-bar-label { font-size: 13px; color: var(--ink-soft); }
.cs-bar-val {
  font-size: 13px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cs-bar-track {
  grid-column: 1 / -1;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  margin-top: 2px;
  overflow: hidden;
}
.cs-bar-fill {
  display: block;
  height: 100%;
  background: var(--ink);
  border-radius: 2px;
}

/* persona cards */
.cs-personas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.cs-persona {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.cs-persona:hover { border-color: var(--ink); transform: translateY(-3px); }
.cs-persona-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.cs-persona-head .pn { font-size: 24px; letter-spacing: -0.02em; }
.cs-persona-head .pm { font-size: 13px; color: var(--muted); margin-top: 4px; }
.cs-persona-head .pp {
  font-size: 12px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  white-space: nowrap;
}
.cs-persona .tagline {
  font-size: 15px;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 24px;
}
.cs-quad { margin-top: 18px; }
.cs-quad .q-cap {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cs-quad ul { list-style: none; }
.cs-quad li {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  padding-left: 16px;
  position: relative;
  margin-bottom: 5px;
}
.cs-quad li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--muted);
}

/* segment / behaviour quadrant grid */
.cs-quad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.cs-quad-cell {
  background: var(--bg);
  padding: 28px 30px;
}
.cs-quad-cell .qc-cap {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 12px;
}
.cs-quad-cell ul { list-style: none; }
.cs-quad-cell li {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}
.cs-quad-cell li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--muted);
}

/* segments as inline definition rows */
.cs-defs { margin-top: 8px; }
.cs-def {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.cs-def:last-child { border-bottom: 1px solid var(--line); }
.cs-def .d-term { font-size: 18px; letter-spacing: -0.015em; }
.cs-def .d-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.6; max-width: 620px; }

/* journey stages */
.cs-journey {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.cs-stage {
  background: var(--bg);
  padding: 30px 28px 34px;
  transition: background 0.2s ease;
}
.cs-stage:hover { background: var(--hover); }
.cs-stage .st-num { font-size: 13px; color: var(--muted); }
.cs-stage .st-name {
  font-size: 19px;
  letter-spacing: -0.015em;
  margin: 14px 0 12px;
}
.cs-stage .st-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

/* task-flow chips — reuse pill */
.cs-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 6px;
  margin-top: 8px;
}
.cs-flow .pill { font-size: 13px; }
.cs-flow .arrow { color: var(--muted); font-size: 13px; padding: 0 2px; }
.cs-flow .pill.drop { color: var(--muted); border-style: dashed; }

/* screen showcase */
.cs-shot {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--hover);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cs-shot:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.28);
}
.cs-shot img { display: block; width: 100%; height: auto; }
.cs-shot-cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.cs-shot-cap .sc-name { font-size: 14px; color: var(--ink); }
.cs-shot-cap .sc-tag { font-size: 12px; color: var(--muted); }

/* the big web mock gets room; mobile sits beside on wide screens */
.cs-mock-row {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 28px;
  align-items: start;
}
.cs-mock-row.community { grid-template-columns: 1.7fr 1fr; }

/* rationale callouts beside community widgets */
.cs-rationale { list-style: none; margin-top: 6px; }
.cs-rationale li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.cs-rationale li:last-child { border-bottom: 1px solid var(--line); }
.cs-rationale .r-term {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 5px;
}
.cs-rationale .r-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

/* scroll reveal — visible by default; animation is pure enhancement,
   so the page renders fully even if JS never runs / never scrolls */
@keyframes csReveal {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.reveal.in {
  animation: csReveal 0.6s cubic-bezier(0.16,1,0.3,1) both;
}
@media (prefers-reduced-motion: reduce) {
  .reveal.in { animation: none; }
}

@media (max-width: 900px) {
  .cs-split { grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
  .cs-data-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .cs-personas { grid-template-columns: 1fr; }
  .cs-quad-grid { grid-template-columns: 1fr; }
  .cs-journey { grid-template-columns: 1fr; }
  .cs-mock-row, .cs-mock-row.community { grid-template-columns: 1fr; }
  .cs-def { grid-template-columns: 1fr; gap: 6px; }
  .cs-subhead { flex-wrap: wrap; margin: 60px 0 28px; }
  .cs-subhead .s-note { margin-left: 0; text-align: left; width: 100%; }
}
@media (max-width: 600px) {
  .cs-data-grid { grid-template-columns: 1fr; }
  .cs-pillar { grid-template-columns: 36px 1fr; gap: 16px; }
  .cs-persona, .cs-card { padding: 26px 22px; }
}
/* ===== UNIFORM SITE TYPOGRAPHY ===== */
body { font-family: var(--font); }
h1, h2, h3,
.hero h1,
.cs-hero h1,
.block h2,
.cs-block h2,
.contact h2,
.cs-contact h2,
.stat-num,
.result-num,
.res-num {
  font-family: var(--serif);
  font-weight: 400;
}
.logo,
.nav-links,
.eyebrow,
.eyebrow-row,
.pill,
.tag,
.meta,
.stat-label,
.stats-label,
.result-label,
.contact-eyebrow,
.cs-contact-eyebrow,
.footer-links,
.cs-footer-links {
  font-family: var(--mono);
}
.site-identity {
  padding: 34px 0 0;
}
.site-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.015em;
  line-height: 1;
}
.site-availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 15px;
  margin-top: 20px;
}
.site-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #000;
}
