/* ════════════════════════════════════════════
   CASE STUDY EDITORIAL SPECIFICATION (assets/case-study.css)
   Clean, premium, asymmetrical grid layouts matching Microsite Studio brand language.
   ════════════════════════════════════════════ */

:root {
  --red: #C8281E;
  --red2: #A8201A;
  --black: #0A0A0A;
  --bg: #080808;
  --bg-card: #111111;
  --off-white: #F0EDE6;
  --border: rgba(255, 255, 255, 0.06);
  --border-dark: rgba(255,255,255,0.07);
  --color-text-secondary: rgba(240, 237, 230, 0.5);
  --wrap: 1100px;
  --px: 48px;
}

body {
  background: var(--bg);
  color: var(--off-white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── CASE STUDY HERO ── */
.cs-hero {
  padding: 140px var(--px) 60px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-dark);
}

.cs-hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cs-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: block;
}

.cs-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--off-white);
  margin-bottom: 16px;
}

.cs-subtitle {
  font-size: 18px;
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: 24px;
}

.cs-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 32px;
}

.cs-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-meta-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.cs-meta-value {
  font-size: 14px;
  font-weight: 400;
  color: var(--off-white);
}

/* ── EDITORIAL GRID ── */
.cs-main {
  padding: 80px var(--px);
  position: relative;
}

.cs-main-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 64px;
}

@media (max-width: 900px) {
  .cs-main-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ── STORY COLUMN ── */
.cs-story {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.cs-section-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cs-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 0.05em;
  color: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.cs-section-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.cs-section-body p {
  margin-bottom: 16px;
}

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

/* Systems Built / Checklist List */
.cs-systems-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.cs-system-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--off-white);
}

.cs-system-item::before {
  content: '●';
  color: var(--red);
  font-size: 8px;
  margin-top: 5px;
  flex-shrink: 0;
}

/* ── SIDEBAR COLUMN ── */
.cs-sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: sticky;
  top: 100px;
  height: fit-content;
}

/* Results panel */
.cs-results-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
}

.cs-results-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  line-height: 0.9;
  color: var(--off-white);
  margin-bottom: 8px;
}

.cs-results-headline em {
  font-style: normal;
  color: var(--red);
}

.cs-results-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 24px;
  display: block;
}

.cs-metrics-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cs-sidebar-metric {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 16px 20px;
  border-radius: 6px;
}

.cs-sidebar-metric-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--off-white);
  line-height: 1;
}

.cs-sidebar-metric-val em {
  font-style: normal;
  color: var(--red);
}

.cs-sidebar-metric-lbl {
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 4px;
}

/* Testimonial card */
.cs-testimonial-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--red);
  border-radius: 8px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.cs-testimonial-card:hover {
  background: linear-gradient(135deg, rgba(200, 40, 30, 0.02) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(200, 40, 30, 0.2);
  border-left-color: var(--red);
}

.cs-testimonial-text {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.55;
  color: rgba(240, 237, 230, 0.9);
  margin-bottom: 16px;
  font-weight: 300;
  text-align: left;
  text-justify: auto;
}

.cs-testimonial-author {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  display: block;
}

/* ── RELATED ITEMS & LINKS ── */
.cs-related-section {
  background: #0C0C0C;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 80px var(--px);
}

.cs-related-inner {
  max-width: var(--wrap);
  margin: 0 auto;
}

.cs-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 32px;
}

@media (max-width: 768px) {
  .cs-related-grid {
    grid-template-columns: 1fr;
  }
}

.cs-related-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
}

.cs-related-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: block;
}

.cs-services-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cs-service-pill {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--off-white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 99px;
  transition: all 0.2s ease;
}

.cs-service-pill:hover {
  border-color: var(--red);
  background: rgba(200, 40, 30, 0.05);
  color: var(--red);
}

.cs-articles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-article-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--color-text-secondary);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: color 0.2s ease;
}

.cs-article-link:hover {
  color: var(--off-white);
}

.cs-article-link span:last-child {
  color: var(--red);
  transition: transform 0.2s ease;
}

.cs-article-link:hover span:last-child {
  transform: translateX(4px);
}
