/* =============================================
   Case study pages (just-after-midnight, st-ida)
   Loaded after /css/site.css and before each page's own <style>.
   ============================================= */
/* =============================================
   CASE STUDY HERO
   ============================================= */
.cs-hero { background: var(--paper); padding: 5rem 2.5rem 4rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cs-hero__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.8rem, 5.5vw, 5.5rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--black); margin-bottom: 2rem; }
.cs-hero__title em { font-style: italic; position: relative; display: inline; z-index: 1; }
.cs-hero__title em::after { content: ''; position: absolute; bottom: 0.08em; left: 0; width: 110%; height: 0.3em; background: var(--pink); z-index: -1; }
.cs-hero__illustration { width: 220px; height: 200px; margin: 1rem 0 2rem; }
.cs-hero__illustration img { width: 100%; height: 100%; object-fit: contain; }
.cs-hero__subtitle { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brick); line-height: 1.8; max-width: 560px; }

/* =============================================
   CONTENT SECTIONS
   ============================================= */
.cs-section { padding: 4rem 2.5rem; max-width: 900px; margin: 0 auto; }
.cs-section--bordered { border-top: 1px solid var(--rule); }
.cs-section__heading { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.12; letter-spacing: -0.02em; color: var(--black); margin-bottom: 0.5rem; }
.cs-section__heading strong { color: var(--brick); font-weight: 900; }
.cs-section__lead { font-family: var(--font-serif); font-style: italic; font-size: 0.88rem; line-height: 1.7; opacity: 0.55; margin-bottom: 1.5rem; border-bottom: 1px solid var(--rule); padding-bottom: 1.5rem; }
.cs-section p { font-size: clamp(0.95rem, 0.86rem + 0.25vw, 1.1rem); line-height: 1.9; margin-bottom: 1.25rem; }

/* Metadata */
.cs-meta { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.cs-meta__label { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brick); }
.cs-meta__value { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.cs-meta__list { list-style: none; padding-left: 0; }
.cs-meta__list li { font-size: 0.88rem; line-height: 1.8; padding: 0.3rem 0 0.3rem 1.2rem; position: relative; }
.cs-meta__list li::before { content: '\2022'; position: absolute; left: 0; color: var(--brick); }

/* Tabs */
.cs-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--rule); margin: 1.5rem 0 2rem; }
.cs-tab { font-family: var(--font-serif); font-size: 0.88rem; padding: 0.75rem 1.75rem; cursor: pointer; background: none; border: none; border-bottom: 2px solid transparent; color: var(--black); opacity: 0.5; transition: opacity 0.2s, background 0.2s; }
.cs-tab:hover { opacity: 0.8; }
.cs-tab.is-active { opacity: 1; background: var(--pink); border-bottom-color: var(--pink); }
.cs-tab-panel { display: none; }
.cs-tab-panel.is-active { display: block; }

/* Quote */
.cs-quote { padding: 3rem 2.5rem; text-align: right; max-width: 900px; margin: 0 auto; }
.cs-quote blockquote { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.5; color: var(--brick); margin-bottom: 0.75rem; }
.cs-quote cite { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; font-style: normal; opacity: 0.45; }

/* RESPONSIVE */
@media (max-width: 768px) {

  .cs-hero { padding: 3rem 1.5rem 2.5rem; }
  .cs-hero__title { font-size: clamp(2rem, 8vw, 3rem); }
  .cs-hero__illustration { width: 160px; height: 140px; }
  .cs-section { padding: 3rem 1.5rem; }
  .cs-tabs { flex-wrap: wrap; }
  .cs-tab { font-size: 0.78rem; padding: 0.6rem 1.25rem; }

}
