/* Case Study / Project Detail template */

body.theme-dark {
  background: var(--c-night);
  color: var(--c-white);
}

/* HERO — 16:9 cover with copy stacked above */

.case-hero {
  background: var(--c-night);
  padding: clamp(140px, 18vh, 220px) var(--side) clamp(40px, 5vh, 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 5vw, 64px);
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.case-hero__phone {
  width: 100%;
  display: flex;
  justify-content: center;
  order: 2;
}

.case-hero__phone-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 1200px;
  background: #15131f;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 80px rgba(0, 0, 0, 0.6);
}

.case-hero__phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-hero__copy {
  color: var(--c-white);
  max-width: 760px;
  order: 1;
}

.case-hero__cat {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-purple-light);
  margin-bottom: 12px;
}

.case-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 80px);
  line-height: 1;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.case-hero__brief {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 60ch;
  margin: 0 auto;
}

/* Tag pills under brief — Saskia's "show our capabilities" ask */
.case-hero__tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.case-hero__tags:empty { display: none; }

.case-tag {
  display: inline-block;
  padding: 7px 14px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

/* BODY — pull quote + extended paragraphs */

.case-body {
  background: var(--c-night);
  padding: clamp(40px, 6vh, 80px) var(--side);
  max-width: 820px;
  margin: 0 auto;
  color: var(--c-white);
}

.case-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.25;
  color: var(--c-cream);
  text-align: center;
  border-left: 0;
  margin: 0 auto clamp(36px, 5vw, 56px);
  max-width: 680px;
  padding: 0;
  position: relative;
}

.case-quote::before,
.case-quote::after {
  content: '"';
  color: var(--c-purple-light);
  font-family: var(--font-serif);
}

.case-quote:empty { display: none; }

.case-body__copy {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.case-body__copy p {
  margin: 0 0 1.3em;
}

.case-body__copy:empty { display: none; }

/* RESULTS — stat block grid */

.case-results {
  background: var(--c-night);
  padding: clamp(60px, 8vw, 120px) var(--side);
  text-align: center;
}

.case-results__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 96px);
  text-transform: uppercase;
  margin: 0 0 56px;
  color: var(--c-white);
}

.case-results__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.case-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.case-stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-cream);
}

.case-stat__label {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.35;
}

.case-stat--simple {
  font-size: 15px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

/* DELIVERABLES + CHANNELS */

.case-meta {
  background: var(--c-night);
  padding: 0 var(--side) clamp(60px, 8vw, 100px);
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(40px, 6vw, 80px);
}

.case-meta__col:empty { display: none; }

.case-meta__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-purple-light);
  margin: 0 0 20px;
}

.case-meta__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-meta__list li {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  padding-left: 18px;
  position: relative;
}

.case-meta__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-purple-light);
}

/* GALLERY */

.case-gallery {
  background: var(--c-night);
  padding: clamp(40px, 6vh, 80px) var(--side);
}

.case-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.case-gallery__grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
}

@media (max-width: 900px) {
  .case-results__list { grid-template-columns: repeat(2, 1fr); }
  .case-meta { grid-template-columns: 1fr; }
  .case-gallery__grid { grid-template-columns: 1fr; }
  .case-hero__title { font-size: clamp(32px, 8vw, 56px); }
}

@media (max-width: 600px) {
  .case-results__list { grid-template-columns: 1fr; gap: 16px; }
  .case-stat { padding: 24px 12px; }
}
