/* ══════════════════════════════════════════
CASE STUDY PAGE STYLES
Inherits all tokens from style.css
══════════════════════════════════════════ */

/* ── Layout Utilities ─────────────────── */
.cs-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.cs-two-col {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}
@media(max-width: 768px) {
  .cs-two-col { grid-template-columns: 1fr; gap: 32px; }
}

.cs-sticky-left {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

/* ── Section shared ───────────────────── */
.cs-section {
  padding: 96px 0;
}
.cs-section-alt {
  background: var(--bg1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cs-section-header {
  margin-bottom: 52px;
}
.cs-section-title {
  font-family: "Dela Gothic One", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-top: 10px;
}

/* ── Hero ─────────────────────────────── */
.cs-hero {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 0;
  background: var(--bg);
}
.cs-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 56px;
}
.cs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Dela Gothic One", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 24px;
}
.cs-breadcrumb a {
  color: var(--accent);
  transition: opacity .2s;
}
.cs-breadcrumb a:hover { opacity: .7; }
.cs-breadcrumb-sep { color: var(--muted); }

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.cs-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(168,85,247,.1);
  border: 1px solid rgba(168,85,247,.2);
  border-radius: 100px;
  padding: 4px 14px;
}

.cs-hero-title {
  font-family: "Dela Gothic One", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 40px;
  max-width: 760px;
}

.cs-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  width: fit-content;
}
.cs-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 28px;
}
.cs-meta-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.cs-meta-value {
  font-family: "Dela Gothic One", sans-serif;
  font-size:16px;
  font-weight: 700;
  color: #fff;
}
.cs-meta-divider {
  width: 1px;
  height: 44px;
  background: var(--border);
  flex-shrink: 0;
}
@media(max-width: 600px) {
  .cs-meta-row { width: 100%; }
  .cs-meta-item { flex: 1 1 40%; }
  .cs-meta-divider { display: none; }
}

/* ── Hero image ───────────────────────── */
.cs-hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  border-radius: 0;
  overflow: hidden;
}
.cs-hero-img {
  width: 100%;
  border-radius: 16px 16px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  display: block;
}
.cs-hero-placeholder-label { display: none; }

/* ── Placeholder fallback ─────────────── */
.img-placeholder {
  min-height: 340px;
  background: var(--bg2);
  border: 2px dashed rgba(168,85,247,.3);
  border-radius: 12px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.img-placeholder .cs-img-placeholder-label,
.img-placeholder .cs-hero-placeholder-label {
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-family: "Dela Gothic One", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .08em;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── Full-width image ─────────────────── */
.cs-full-img-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px;
  position: relative;
}
.cs-full-img-wrap img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  display: block;
}
.cs-img-placeholder-label { display: none; }
.cs-img-caption {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
  font-style: italic;
}

/* ── Image pair ───────────────────────── */
.cs-img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 72px;
  padding-bottom: 72px;
}
@media(max-width: 700px) {
  .cs-img-pair { grid-template-columns: 1fr; }
}
.cs-img-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.cs-img-item img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
}
.cs-img-wide { grid-column: 1 / -1; }

/* ── Prose ────────────────────────────── */
.cs-prose p {
  font-size: 17px;
  color: #9898b0;
  line-height: 1.8;
  margin-bottom: 20px;
}
.cs-prose p:last-child { margin-bottom: 0; }

.cs-highlight-box {
  display: flex;
  gap: 16px;
  background: rgba(168,85,247,.07);
  border: 1px solid rgba(168,85,247,.2);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 22px 24px;
  margin-top: 28px;
}
.cs-highlight-icon { font-size: 22px; flex-shrink: 0; line-height: 1.6; }
.cs-highlight-box p {
  font-family: "Dela Gothic One", sans-serif;
  font-size: 16px !important;
  font-weight: 600;
  color: #d4d4e8 !important;
  line-height: 1.6;
  margin: 0 !important;
}

.cs-sub-heading {
  font-family: "Dela Gothic One", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 32px 0 14px;
}

.cs-findings-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cs-findings-list li {
  display: flex;
  gap: 12px;
  font-size: 16px;
  color: #8888a8;
  line-height: 1.65;
}
.cs-findings-list li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Stat row ─────────────────────────── */
.cs-stat-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin: 28px 0;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cs-inline-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cs-inline-num {
  font-family: "Dela Gothic One", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.cs-inline-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* ── Problem grid ─────────────────────── */
.cs-problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media(max-width: 640px) { .cs-problem-grid { grid-template-columns: 1fr; } }
.cs-problem-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 28px 26px;
  transition: border-color .3s, transform .3s;
}
.cs-problem-card:hover {
  border-color: rgba(168,85,247,.28);
  transform: translateY(-4px);
}
.cs-problem-num {
  font-family: "Dela Gothic One", sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: .12em;
  margin-bottom: 12px;
}
.cs-problem-card h3 {
  font-family: "Dela Gothic One", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.cs-problem-card p { font-size:16px; color: #7777a0; line-height: 1.7; }

/* ── Design system grid ───────────────── */
.cs-system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media(max-width: 900px) { .cs-system-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width: 560px) { .cs-system-grid { grid-template-columns: 1fr; } }
.cs-system-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 26px 22px;
  transition: border-color .3s, transform .3s;
}
.cs-system-card:hover {
  border-color: rgba(168,85,247,.28);
  transform: translateY(-4px);
}
.cs-system-icon { font-size: 26px; margin-bottom: 14px; display: block; }
.cs-system-card h3 {
  font-family: "Dela Gothic One", sans-serif;
  font-size:16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.cs-system-card p { font-size: 16px; color: #7777a0; line-height: 1.7; }

/* ── Process steps ────────────────────── */
.cs-process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cs-step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left .25s;
  cursor: default;
}
.cs-step:first-child { padding-top: 0; }
.cs-step:last-child { border-bottom: none; }
.cs-step:hover { padding-left: 8px; }
.cs-step-num {
  font-family: "Dela Gothic One", sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: .1em;
  padding-top: 4px;
  flex-shrink: 0;
  width: 28px;
}
.cs-step-content h3 {
  font-family: "Dela Gothic One", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.cs-step-content p { font-size:16px; color: #8080a0; line-height: 1.7; }

/* ── Outcomes grid ────────────────────── */
.cs-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media(max-width: 900px) { .cs-outcomes-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width: 500px) { .cs-outcomes-grid { grid-template-columns: 1fr; } }
.cs-outcome-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 28px 22px;
  transition: border-color .3s, transform .3s;
}
.cs-outcome-card:hover {
  border-color: rgba(168,85,247,.3);
  transform: translateY(-4px);
}
.cs-outcome-num {
  font-family: "Dela Gothic One", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 8px;
}
.cs-outcome-label {
  font-family: "Dela Gothic One", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  display: block;
}
.cs-outcome-card p { font-size: 16px; color: #7777a0; line-height: 1.65; }

/* ── Next project ─────────────────────── */
.cs-next {
  padding: 96px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.cs-next::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(124,58,237,.12) 0%, transparent 70%);
  pointer-events: none;
}
.cs-next-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}
.cs-next-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: block;
}
.cs-next-title {
  font-family: "Dela Gothic One", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 14px;
  transition: color .25s;
  display: flex;
  align-items: center;
  gap: 16px;
}
.cs-next-title:hover { color: var(--accent); }
.cs-next-arr {
  display: inline-block;
  transition: transform .3s;
  font-size: .85em;
}
.cs-next-title:hover .cs-next-arr { transform: translate(6px, -4px); }
.cs-next-sub {
  font-size: 16px;
  color: var(--muted);
}
