/* ══════════════════════════════════════════════
   CASE STUDY — INDIVIDUAL PAGE
   Shared styles used across all four case study pages.
   Each page adds one <style> block for its hero colour.
══════════════════════════════════════════════ */


/* ── HERO ─────────────────────────────────────── */
.csi-hero {
  padding-top: 68px;
  position: relative;
  overflow: hidden;
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.csi-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Page-specific gradient set in each page's <style> block */
}

.csi-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 52px 52px;
}

/* Ready for real images or video */
.csi-hero-bg img,
.csi-hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.csi-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11,11,11,0.97) 0%,
    rgba(11,11,11,0.6)  40%,
    rgba(11,11,11,0.18) 100%
  );
  z-index: 1;
}

.csi-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem var(--pad-x) 4rem;
  width: 100%;
}

@media (min-width: 768px) { .csi-hero-content { padding-bottom: 5rem; } }

.csi-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(240,239,233,0.4);
  margin-bottom: 3rem;
  transition: color 0.15s;
}

.csi-back-link:hover { color: rgba(240,239,233,0.75); }

.csi-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.csi-hero-cat {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240,239,233,0.45);
}

.csi-hero-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(240,239,233,0.25);
  flex-shrink: 0;
}

.csi-hero-h1 {
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.01;
  letter-spacing: -0.03em;
  color: var(--cream);
  max-width: 800px;
}

.csi-hero-tagline {
  font-size: 1rem;
  color: rgba(240,239,233,0.5);
  line-height: 1.7;
  max-width: 560px;
  margin-top: 1.25rem;
}


/* ── INTRO / SUMMARY BLOCK ──────────────────── */
.csi-intro {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.csi-intro-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem var(--pad-x);
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .csi-intro-inner {
    grid-template-columns: 1fr 220px;
    align-items: start;
    gap: 4rem;
    padding: 3.5rem var(--pad-x);
  }
}

.csi-intro-body {
  font-size: 1.0625rem;
  color: rgba(240,239,233,0.72);
  line-height: 1.8;
  max-width: 640px;
}

.csi-intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

@media (min-width: 768px) {
  .csi-intro-meta {
    flex-direction: column;
    align-items: flex-end;
  }
}

.csi-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(240,239,233,0.45);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.3rem 0.625rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}


/* ── CONTENT AREA ──────────────────────────── */
.csi-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* Two-column section: label left, body right */
.csi-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .csi-section {
    grid-template-columns: 200px 1fr;
    gap: 4.5rem;
    padding: 4.5rem 0;
  }
}

.csi-section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.2rem;
}

.csi-section-heading {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--cream);
  margin-bottom: 1.125rem;
}

.csi-prose {
  font-size: 0.9375rem;
  color: rgba(240,239,233,0.62);
  line-height: 1.8;
}

.csi-prose + .csi-prose { margin-top: 1rem; }


/* ── SERVICE LIST ──────────────────────────── */
.csi-service-list {
  display: flex;
  flex-direction: column;
}

.csi-service-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(240,239,233,0.055);
}

.csi-service-item:first-child { padding-top: 0; }
.csi-service-item:last-child { border-bottom: none; padding-bottom: 0; }

.csi-service-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad-start);
  flex-shrink: 0;
  margin-top: 0.48em;
}

.csi-service-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.2rem;
}

.csi-service-desc {
  display: block;
  font-size: 0.8125rem;
  color: rgba(240,239,233,0.48);
  line-height: 1.55;
}


/* ── PULL QUOTE ────────────────────────────── */
.csi-quote {
  background: var(--surface-2);
  border: 1px solid rgba(124,58,237,0.2);
  border-left: 4px solid var(--grad-start);
  border-radius: 8px;
  padding: 1.75rem 2rem;
  margin-top: 0.5rem;
}

.csi-quote-text {
  font-size: 1.0625rem;
  color: rgba(240,239,233,0.8);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.csi-quote-attr {
  font-size: 0.8125rem;
  color: rgba(240,239,233,0.45);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.02em;
}


/* ── RESULTS ───────────────────────────────── */
.csi-results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.25rem;
}

@media (min-width: 560px) { .csi-results-grid { grid-template-columns: 1fr 1fr; } }

.csi-result {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem 1.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.csi-result-value {
  font-size: 1.4375rem;
  font-weight: 800;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.csi-result-label {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}


/* ── CTA ───────────────────────────────────── */
.csi-cta {
  padding: 5rem 0 4.5rem;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .csi-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 5.5rem 0;
  }
}

.csi-cta-text .label { display: block; margin-bottom: 0.75rem; }
.csi-cta-text .heading-lg { margin-bottom: 0.875rem; }
.csi-cta-text .body-text { max-width: 480px; }

.csi-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .csi-cta-actions { align-items: flex-end; }
}

.csi-back-all {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(240,239,233,0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(240,239,233,0.12);
}

.csi-back-all:hover {
  color: rgba(240,239,233,0.75);
  text-decoration-color: rgba(240,239,233,0.3);
}


/* ── FOOTER LIFT ───────────────────────────── */
#site-footer {
  background: var(--surface);
  padding-top: 4rem;
}
