/* ═══════════════════════════════════════════════════════════
   CASE STUDY — Design aligned with ContentJet homepage
   Typography: Sohne (display + body), Nord (labels),
               Tomato Grotesk (select accents), Sohne (buttons)
   ═══════════════════════════════════════════════════════════ */

/* ═══ Page-level brand accent ═══ */
.cs-page {
  --cs-brand: var(--accent);
  --cs-brand-rgb: 216, 252, 20;
  --cs-story-grid-columns: minmax(0, 0.72fr) repeat(2, minmax(0, 1fr));
  --cs-story-grid-gap: 2.5rem;
  /* Linear-style subtle section backgrounds */
  --cs-bg-base: #08090a;
  --cs-bg-raised: #0c0d0f;
  --cs-bg-elevated: #101114;
}
.cs-page--playjoy {
  --cs-brand: #d8fc14;
  --cs-brand-rgb: 216, 252, 20;
}
.cs-page--deezer {
  --cs-brand: #b89bff;
  --cs-brand-rgb: 184, 155, 255;
}

/* ═══ Shared layout shell ═══ */
.cs-shell {
  max-width: var(--size-container);
  margin: 0 auto;
  padding: 0 2.25rem;
}

/* ═══ BACK LINK ═══ */
.cs-back {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Nord', sans-serif;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.065rem;
  line-height: 1.02;
  color: rgba(255, 255, 255, 0.6);
  transition: color 220ms ease;
}
.cs-back::before {
  content: '\2190';
  font-size: 1.125rem;
  transition: transform 220ms ease;
}
.cs-back:hover,
.cs-back:focus-visible {
  color: var(--fg);
}
.cs-back:hover::before {
  transform: translateX(-0.25rem);
}

/* ═══ Gradient text utility ═══ */
.cs-gradient-text {
  background: linear-gradient(270deg, #02d1ad 7.4%, #00e950 33.85%, #1292fe 69.74%, #e08af4 101.85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ═══════════════════════════════════════════════════════════
   HERO — split layout: copy left, video right
   ═══════════════════════════════════════════════════════════ */
.cs-hero {
  position: relative;
  padding: 10rem 0 4rem;
  overflow: clip;
  background:
    radial-gradient(circle at 50% 18%, rgba(var(--cs-brand-rgb), 0.04), transparent 36%),
    linear-gradient(180deg, #090a0c 0%, var(--cs-bg-base) 72%);
}

/* Decorative brand glow */
.cs-hero::before {
  content: '';
  position: absolute;
  top: 6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 64%;
  height: 36rem;
  background: radial-gradient(ellipse at center, rgba(var(--cs-brand-rgb), 0.05), transparent 70%);
  pointer-events: none;
}

.cs-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.cs-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
  filter: saturate(1.02) blur(1.5px);
  transform: scale(1.02);
}

.cs-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(8, 9, 10, 0.06), rgba(8, 9, 10, 0.5) 58%, rgba(8, 9, 10, 0.82) 100%),
    linear-gradient(180deg,
      rgba(8, 9, 10, 0.54) 0%,
      rgba(8, 9, 10, 0.62) 28%,
      rgba(8, 9, 10, 0.78) 65%,
      var(--cs-bg-base) 100%
    );
  pointer-events: none;
}

.cs-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(19rem, 0.74fr) minmax(14rem, 0.68fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

.cs-hero__content {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.cs-hero__kicker {
  font-family: 'Nord', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  line-height: 1.02;
  color: var(--cs-brand);
  margin-top: 2rem;
}

/* Brand pill */
.cs-hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 1.25rem;
  padding: 0.5rem 1.25rem 0.5rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.cs-hero__brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0.625rem;
  border-radius: 50%;
  background: #f7f8f8;
  box-shadow: inset 0 0 0 1px rgba(8, 9, 10, 0.04);
}
.cs-hero__brand-logo img {
  width: auto;
  height: 1.25rem;
}
.cs-hero__brand-name {
  font-family: 'Nord', sans-serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  line-height: 1.02;
  color: #fff;
}

/* Title — large, confident, with gradient accent */
.cs-hero__title {
  margin-top: 2rem;
  font-family: 'Sohne', sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  line-height: 0.97;
  letter-spacing: -0.11rem;
  color: var(--fg);
  text-wrap: balance;
}

.cs-hero__subtitle {
  max-width: 36rem;
  margin-top: 1.25rem;
  font-family: 'Sohne', sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--gray);
  text-wrap: pretty;
}

.cs-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Video player on the right */
.cs-hero__video {
  position: relative;
  justify-self: center;
  width: min(100%, 22rem);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b0c0e;
  aspect-ratio: 9 / 16;
  max-height: 38rem;
  box-shadow:
    0 2rem 5rem rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.cs-hero__video video,
.cs-hero__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.cs-hero__video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.cs-hero__brief {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(100%, 15rem);
}

/* ═══════════════════════════════════════════════════════════
   METRICS STRIP — elevated bg
   ═══════════════════════════════════════════════════════════ */
.cs-metrics {
  padding: 5rem 0;
  background: var(--cs-bg-raised);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.cs-metrics__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Metric with accent left bar */
.cs-metric {
  position: relative;
  padding-left: 2rem;
}
.cs-metric::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--cs-brand);
  border-radius: 2px;
  opacity: 0.6;
}
.cs-metric__value {
  font-family: 'Tomato Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: -0.08rem;
  color: #fff;
}
.cs-metric__label {
  margin-top: 0.75rem;
  font-family: 'Sohne', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--gray);
}

/* ═══════════════════════════════════════════════════════════
   CAMPAIGN BRIEF — horizontal metadata
   ═══════════════════════════════════════════════════════════ */
.cs-brief {
  padding: 2.5rem 0;
  background: var(--cs-bg-base);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.cs-brief__row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 4rem;
}
.cs-brief__item {
  min-width: 0;
}
.cs-brief__label {
  font-family: 'Nord', sans-serif;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06rem;
  line-height: 1.02;
  color: rgba(247, 248, 248, 0.4);
}
.cs-brief__value {
  margin-top: 0.375rem;
  font-family: 'Sohne', sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--fg);
}
.cs-brief--hero {
  padding: 0;
  background: none;
  border: 0;
}
.cs-brief--hero .cs-brief__row {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.cs-brief--hero .cs-brief__item {
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.cs-brief--hero .cs-brief__item:first-child {
  padding-top: 0;
  border-top: 0;
}
.cs-brief--hero .cs-brief__value {
  max-width: 18ch;
  line-height: 1.35;
  color: rgba(247, 248, 248, 0.9);
}

/* ═══════════════════════════════════════════════════════════
   NARRATIVE — Challenge + Solution (two-column editorial)
   Elevated bg for contrast
   ═══════════════════════════════════════════════════════════ */
.cs-narrative {
  padding: 5rem 0;
  background: var(--cs-bg-raised);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.cs-narrative__section-title {
  font-family: 'Sohne', sans-serif;
  font-weight: 400;
  font-size: clamp(2.25rem, 3vw, 3.125rem);
  letter-spacing: -0.065rem;
  line-height: 0.97;
  color: var(--fg);
  margin-bottom: 2rem;
  text-wrap: balance;
}
.cs-narrative__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.cs-narrative__grid--three-column {
  grid-template-columns: var(--cs-story-grid-columns);
  gap: var(--cs-story-grid-gap);
  align-items: start;
}
.cs-narrative__intro {
  max-width: 20rem;
}
.cs-narrative--three-column .cs-narrative__section-title {
  margin-bottom: 0;
}
.cs-narrative__block {
  padding-top: 2rem;
}
.cs-narrative__number {
  font-family: 'Nord', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06rem;
  line-height: 1.02;
  color: var(--cs-brand);
  opacity: 0.7;
}
.cs-narrative__eyebrow {
  margin-top: 0.5rem;
  font-family: 'Nord', sans-serif;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.065rem;
  line-height: 1.02;
  color: var(--gray);
}
.cs-narrative__title {
  margin-top: 1.25rem;
  font-family: 'Sohne', sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 0.97;
  letter-spacing: -0.065rem;
  color: var(--fg);
  text-wrap: balance;
}
.cs-narrative__copy {
  margin-top: 1.25rem;
  font-family: 'Sohne', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--gray-light);
  text-wrap: pretty;
}
.cs-narrative__copy + .cs-narrative__copy {
  margin-top: 0.75rem;
}

/* Creative approach tags */
.cs-narrative__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.75rem;
}
.cs-narrative__tag {
  padding: 0.5rem 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-family: 'Sohne', sans-serif;
  font-size: 0.875rem;
  line-height: 1.2;
  color: var(--gray-light);
  transition: border-color 220ms ease, color 220ms ease;
}
.cs-narrative__tag:hover {
  border-color: rgba(var(--cs-brand-rgb), 0.3);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   HIGHLIGHT — centered pull quote
   ═══════════════════════════════════════════════════════════ */
.cs-highlight {
  position: relative;
  padding: 6rem 0;
  text-align: center;
  overflow: clip;
  background: var(--cs-bg-base);
}

/* Subtle gradient backdrop */
.cs-highlight::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: 20rem;
  background: radial-gradient(ellipse at center, rgba(var(--cs-brand-rgb), 0.05), transparent 70%);
  pointer-events: none;
}

.cs-highlight__inner {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 2.25rem;
}
.cs-highlight__eyebrow {
  font-family: 'Nord', sans-serif;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.065rem;
  line-height: 1.02;
  color: var(--cs-brand);
  opacity: 0.8;
}
.cs-highlight__quote {
  margin-top: 1.5rem;
  font-family: 'Sohne', sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 0.97;
  letter-spacing: -0.065rem;
  color: var(--fg);
  text-wrap: balance;
}

/* ═══════════════════════════════════════════════════════════
   OUTCOMES — elevated bg
   ═══════════════════════════════════════════════════════════ */
.cs-outcomes {
  padding: 5rem 0;
  background: var(--cs-bg-elevated);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.cs-outcomes__heading {
  font-family: 'Nord', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  line-height: 1.02;
  color: var(--gray);
}
.cs-outcomes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.cs-outcome {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.cs-outcome__title {
  font-family: 'Sohne', sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.05;
  letter-spacing: -0.03rem;
  color: var(--fg);
}
.cs-outcome__copy {
  margin-top: 0.75rem;
  font-family: 'Sohne', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-light);
  text-wrap: pretty;
}

/* ═══════════════════════════════════════════════════════════
   TESTIMONIAL WRAP — uses the same .site-footer__testimonial
   component from the homepage, just wrapped for spacing
   ═══════════════════════════════════════════════════════════ */
.cs-testimonial-wrap {
  padding: 5rem 0;
  background: var(--cs-bg-base);
}

/* ═══════════════════════════════════════════════════════════
   CTA — final call to action — elevated bg
   ═══════════════════════════════════════════════════════════ */
.cs-cta {
  padding: 0 0 6rem;
  background: var(--cs-bg-raised);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.cs-cta__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 4rem;
}
.cs-cta__eyebrow {
  font-family: 'Nord', sans-serif;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.065rem;
  line-height: 1.02;
  color: var(--gray);
}
.cs-cta__title {
  max-width: 36rem;
  margin-top: 0.75rem;
  font-family: 'Sohne', sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.97;
  letter-spacing: -0.065rem;
  color: var(--fg);
  text-wrap: balance;
}
.cs-cta__actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (min-width: 992px) {
  /* Keep desktop metric bars aligned with the narrative columns below. */
  .cs-metrics__grid {
    grid-template-columns: var(--cs-story-grid-columns);
    gap: var(--cs-story-grid-gap);
  }

  .cs-narrative--three-column .cs-narrative__intro {
    padding-top: 3.35rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (max 991px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .cs-hero {
    padding-top: 8rem;
    padding-bottom: 3rem;
  }
  .cs-hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .cs-hero__video {
    max-height: none;
  }
  .cs-hero__brief {
    justify-self: stretch;
    width: 100%;
  }
  .cs-brief--hero .cs-brief__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
  }
  .cs-brief--hero .cs-brief__item {
    padding-top: 1rem;
  }
  .cs-brief--hero .cs-brief__item:nth-child(-n + 2) {
    padding-top: 0;
    border-top: 0;
  }
  .cs-brief--hero .cs-brief__value {
    max-width: none;
  }
  .cs-narrative__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .cs-narrative__intro {
    max-width: none;
  }
  .cs-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (max 767px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .cs-hero {
    padding-top: 7rem;
    padding-bottom: 2.5rem;
  }
  .cs-hero__title {
    font-size: clamp(2.25rem, 9vw, 3rem);
    letter-spacing: -0.09rem;
  }
  .cs-hero__video {
    width: min(100%, 18.5rem);
    max-height: none;
  }
  .cs-hero__subtitle {
    font-size: 1.0625rem;
    line-height: 1.6;
  }
  .cs-hero__ctas .btn--primary,
  .cs-hero__ctas .btn--outline,
  .cs-cta__actions .btn--primary,
  .cs-cta__actions .btn--outline {
    width: 100%;
  }

  .cs-shell {
    padding: 0 1.25rem;
  }
  .cs-highlight__inner,
  .cs-testimonial__inner {
    padding: 0 1.25rem;
  }

  .cs-metrics {
    padding: 3.5rem 0;
  }
  .cs-metrics__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .cs-brief__row,
  .cs-brief--hero .cs-brief__row {
    flex-direction: column;
    gap: 1.5rem;
  }
  .cs-brief--hero .cs-brief__row {
    display: flex;
  }
  .cs-brief--hero .cs-brief__item,
  .cs-brief--hero .cs-brief__item:nth-child(-n + 2) {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .cs-brief--hero .cs-brief__item:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .cs-narrative,
  .cs-outcomes,
  .cs-highlight {
    padding: 3.5rem 0;
  }

  .cs-outcomes__grid {
    grid-template-columns: 1fr;
  }

  .cs-testimonial-wrap {
    padding: 3.5rem 0;
  }

  .cs-cta {
    padding-bottom: 4rem;
  }
}
