/* ═══════════════════════════════════════════════════════════
   KALI — Issue 01
   Case Study Pages
═══════════════════════════════════════════════════════════ */

/* ── Base ─────────────────────────────────────────────────── */
.cs-body-el {
  background: var(--white);
  cursor: auto;
  hyphens: none;
  -webkit-hyphens: none;
}
.cs-body-el .cursor-dot,
.cs-body-el .cursor-ring { display: none; }
.cs-body-el a,
.cs-body-el button { cursor: pointer; }

.cs-main {
  padding-top: 56px;
}

/* ── Hero — dark editorial banner ────────────────────────── */
.cs-hero {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  padding: 80px 0 64px;
}

.cs-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px;
  position: relative;
  z-index: 1;
}

.cs-hero-bg-num {
  position: absolute;
  font-family: var(--display);
  font-size: clamp(180px, 28vw, 360px);
  font-weight: 900;
  line-height: 1;
  color: rgba(244,238,224,.04);
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  letter-spacing: -.04em;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.cs-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.cs-num {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--gold);
  user-select: none;
}

.cs-cat {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(244,238,224,.45);
}

.cs-title {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 22px;
  color: var(--cream);
}
.cs-title em { font-style: italic; font-weight: 400; }

.cs-subtitle {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.78;
  max-width: 680px;
  color: rgba(244,238,224,.6);
  margin-bottom: 44px;
}

.cs-hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border-top: 1px solid rgba(244,238,224,.1);
  padding-top: 28px;
}
.cs-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 36px;
  margin-right: 36px;
  border-right: 1px solid rgba(244,238,224,.1);
}
.cs-hero-stat:last-child { border-right: none; padding-right: 0; margin-right: 0; }

.cs-hero-stat-num {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--cream);
}
.cs-hero-stat-label {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .06em;
  color: rgba(244,238,224,.4);
}

/* ── Content wrapper ──────────────────────────────────────── */
.cs-content {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 60px 80px;
}

/* ── Section ──────────────────────────────────────────────── */
.cs-section {
  padding-top: 60px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--rule);
}
.cs-section:last-child { border-bottom: none; }

.cs-section-label {
  font-size: 9px;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.cs-section h2 {
  font-family: var(--display);
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 22px;
}

.cs-section p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.82;
  color: rgba(10,9,8,.7);
  margin-bottom: 16px;
}
.cs-section p:last-child { margin-bottom: 0; }

.cs-section p strong { font-weight: 500; color: var(--ink); }

/* Blush left accent on first paragraph of each section */
.cs-section > p:not(.cs-section-label):first-of-type {
  padding-left: 14px;
  border-left: 2px solid var(--blush);
}

/* ── Pull Quote ──────────────────────────────────────────── */
.cs-pull-quote {
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 25px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.48;
  padding: 28px 0;
  margin: 36px 0;
  border-top: 1.5px solid var(--blush);
  border-bottom: 1.5px solid var(--blush);
  text-align: center;
  background: none;
  box-shadow: none;
  color: var(--ink);
}
.cs-pull-quote--blush,
.cs-pull-quote--lavender { background: none; box-shadow: none; }

/* ── Image Grid ──────────────────────────────────────────── */
.cs-img-grid {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}
.cs-img-grid--2    { grid-template-columns: 1fr 1fr; }
.cs-img-grid--3    { grid-template-columns: 1fr 1fr 1fr; }
.cs-img-grid--full { grid-template-columns: 1fr; }

.cs-img-wrap {
  background: rgba(10,9,8,.04);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s var(--ease-soft), box-shadow .25s ease;
}
.cs-img-wrap:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(10,9,8,.1); }
.cs-img-wrap img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.cs-img-wrap figcaption {
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--gray);
  padding: 10px 14px;
}

/* ── Video Grid ──────────────────────────────────────────── */
.cs-video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 30px;
}
.cs-video-wrap {
  background: var(--ink);
  border-radius: 6px;
  overflow: hidden;
}
.cs-video-wrap video {
  width: 100%;
  height: auto;
  display: block;
}
.cs-video-label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244,238,224,.35);
  padding: 10px 14px;
}

/* ── Outcomes stat bar ───────────────────────────────────── */
.cs-outcomes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: none;
  border-radius: 0;
  margin-top: 36px;
}
.cs-outcome {
  background: none;
  padding: 28px 20px 28px 0;
  border-right: 1px solid var(--rule);
  transition: background .2s;
}
.cs-outcome:first-child { padding-left: 0; }
.cs-outcome:last-child { border-right: none; padding-right: 0; }
.cs-outcome:hover { background: rgba(223,169,176,.04); }
.cs-outcome-num {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}
.cs-outcome-label {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .04em;
  color: var(--gray);
  line-height: 1.55;
}

/* ── Next/Prev Project Navigation ────────────────────────── */
.cs-nav-footer {
  border-top: 1px solid var(--rule);
  background: var(--white);
}

.cs-nav-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.cs-nav-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 28px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.cs-nav-card:hover {
  border-color: var(--blush);
  background: rgba(223,169,176,.06);
  transform: translateY(-2px);
}

.cs-nav-card--home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 32px;
  border-color: rgba(10,9,8,.08);
}

.cs-nav-card-dir {
  font-size: 9px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.cs-nav-card--next .cs-nav-card-dir { text-align: right; }

.cs-nav-card-num {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  color: rgba(10,9,8,.07);
  letter-spacing: -.02em;
}

.cs-nav-card-title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}
.cs-nav-card--next .cs-nav-card-title { text-align: right; }

.cs-nav-card-sub {
  font-family: var(--display);
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  color: var(--gray);
}
.cs-nav-card--next .cs-nav-card-sub { text-align: right; }

.cs-nav-home-icon {
  font-size: 22px;
  color: rgba(10,9,8,.15);
}
.cs-nav-home-label {
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ── Marquee strip on case study pages ───────────────────── */
.cs-marquee-strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 11px 0;
  background: var(--white);
  overflow: hidden;
}

/* ── Contact Strip ───────────────────────────────────────── */
.cs-contact-strip {
  background: var(--ink);
  border-top: none;
}
.cs-contact-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cs-contact-label {
  font-size: 9px;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: var(--gold);
}
.cs-contact-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.cs-contact-links a {
  font-size: 14px;
  font-weight: 300;
  color: rgba(244,238,224,.6);
  text-decoration: none;
  letter-spacing: .05em;
  border-bottom: 1px solid rgba(244,238,224,.18);
  padding-bottom: 3px;
  transition: color .2s ease, border-color .2s ease;
}
.cs-contact-links a:hover {
  color: var(--cream);
  border-color: var(--blush);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cs-hero-inner { padding: 0 48px; }
  .cs-content { padding: 0 48px 72px; }
  .cs-nav-footer-inner { padding: 40px 48px; }
}

@media (max-width: 900px) {
  .cs-hero { padding: 64px 0 52px; }
  .cs-hero-inner { padding: 0 40px; }
  .cs-content { padding: 0 40px 60px; }
  .cs-img-grid--3 { grid-template-columns: 1fr 1fr; }
  .cs-video-grid { grid-template-columns: 1fr; }
  .cs-nav-footer-inner { padding: 36px 40px; }
  .cs-contact-strip-inner { padding: 24px 40px; }
}

@media (max-width: 768px) {
  .cs-hero { padding: 52px 0 44px; }
  .cs-hero-inner { padding: 0 24px; }
  .cs-hero-bg-num { display: none; }
  .cs-content { padding: 0 24px 56px; }
  .cs-hero-stats { gap: 16px 0; flex-wrap: wrap; }
  .cs-hero-stat { padding-right: 24px; margin-right: 24px; }
  .cs-hero-stat-num { font-size: 22px; }
  .cs-img-grid--2,
  .cs-img-grid--3 { grid-template-columns: 1fr; }
  .cs-video-grid  { grid-template-columns: 1fr; }
  .cs-section { padding-top: 44px; padding-bottom: 38px; }
  .cs-section h2 { font-size: clamp(20px, 5vw, 32px); }
  .cs-pull-quote { font-size: clamp(16px, 4vw, 22px); padding: 20px 0; margin: 24px 0; }
  .cs-outcomes { grid-template-columns: repeat(2, 1fr); }
  .cs-outcome { padding: 20px 16px 20px 0; border-right: 1px solid var(--rule); }
  .cs-outcome:nth-child(2) { padding-right: 0; border-right: none; }
  .cs-outcome:nth-child(3) { padding-left: 0; border-top: 1px solid var(--rule); }
  .cs-outcome:nth-child(4) { border-right: none; padding-right: 0; border-top: 1px solid var(--rule); }
  .cs-nav-footer-inner { grid-template-columns: 1fr; padding: 28px 24px; gap: 12px; }
  .cs-nav-card--next .cs-nav-card-dir,
  .cs-nav-card--next .cs-nav-card-title,
  .cs-nav-card--next .cs-nav-card-sub { text-align: left; }
  .cs-contact-strip-inner { padding: 20px 24px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .cs-contact-links { gap: 20px; }
}

@media (max-width: 480px) {
  .cs-hero { padding: 44px 0 36px; }
  .cs-hero-inner { padding: 0 16px; }
  .cs-content { padding: 0 16px 40px; }
  .cs-title { font-size: clamp(28px, 8vw, 48px); }
  .cs-subtitle { font-size: 13px; line-height: 1.7; margin-bottom: 32px; }
  .cs-hero-stat-num { font-size: 20px; }
  .cs-hero-stat-label { font-size: 10px; }
  .cs-section p { font-size: 14px; }
  .cs-outcome-num { font-size: clamp(22px, 6vw, 36px); }
  .cs-nav-footer-inner { padding: 24px 16px; }
  .cs-nav-card { padding: 18px 20px; }
  .cs-nav-card-num { font-size: 32px; }
  .cs-nav-card-title { font-size: 15px; }
  .cs-contact-strip-inner { padding: 18px 16px; }
}
