/* ============================================
   CASE STUDY PAGES — Shared Styles
   ============================================ */

/* --- Back Link --- */
.cs-back {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-dim);
  display: inline-block;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.cs-back:hover { color: var(--accent); }

/* --- Hero --- */
.cs-hero {
  padding: 120px 24px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.cs-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.cs-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.cs-meta-label {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-ghost);
  text-transform: uppercase;
}

.cs-title {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 42px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.cs-subtitle {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 20px;
  font-weight: 500;
}

.cs-lead {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 28px;
}

.cs-actions {
  display: flex;
  gap: 10px;
}

.cs-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* iPhone in case study hero — slightly larger */
.iphone-frame--cs {
  width: 160px;
  height: 330px;
  border-radius: 26px;
  padding: 6px;
}

.iphone-frame--cs .iphone-notch {
  top: 6px;
  width: 56px;
  height: 16px;
  border-radius: 0 0 10px 10px;
}

.iphone-frame--cs .iphone-notch::before {
  top: 6px;
  width: 4px;
  height: 4px;
}

.iphone-frame--cs .iphone-screen {
  border-radius: 20px;
}

.iphone-frame--cs .iphone-bar {
  bottom: 10px;
  width: 56px;
}

/* SPUF mockup in case study — slightly larger */
.spuf-mockup--cs {
  width: 100%;
  max-width: 320px;
}

/* Archived badge */
.cs-archived-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--text-ghost);
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* --- Sections --- */
.cs-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

.cs-section-inner {
  max-width: 800px;
}

.cs-heading {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 22px;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(220, 38, 38, 0.2);
  margin-bottom: 24px;
}

.cs-prose p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 16px;
}

.cs-prose p:last-child { margin-bottom: 0; }

/* --- Grid --- */
.cs-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.cs-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  transition: all 0.3s var(--ease-out);
}

.cs-card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 0 16px rgba(255, 51, 51, 0.06);
}

.cs-card-num {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}

.cs-card-title {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.cs-card p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* --- Stats --- */
.cs-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.cs-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
}

.cs-stat-value {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 20px;
  font-weight: 900;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}

.cs-stat-label {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-ghost);
}

/* --- Tags in case study --- */
.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

/* --- CTA --- */
.cs-cta .cs-heading {
  font-size: 28px;
}

.cs-cta .cs-lead {
  margin-bottom: 24px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .cs-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cs-hero-visual {
    order: -1;
  }

  .cs-title { font-size: 32px; }

  .cs-grid-2 { grid-template-columns: 1fr; }

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

  .cs-actions { flex-direction: column; }
}
