/* Customer-story composition.
   Tokens, navigation, and universal primitives come from launch-system.css. */

body.brand-case-study .content-layout.cs-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 0;
  width: min(100%, var(--launch-frame));
  max-width: var(--launch-frame);
  margin-inline: auto;
  padding: 0 var(--launch-gutter);
  row-gap: 0;
}

body.brand-case-study .content-layout.cs-page > .content-sidebar {
  position: relative;
  display: flex;
  min-height: 56px;
  padding: 0;
  align-items: center;
}

body.brand-case-study .content-layout.cs-page > .content-sidebar::after {
  position: absolute;
  right: 50%;
  bottom: 0;
  left: 50%;
  width: 100vw;
  height: 1px;
  background: var(--guide-line);
  content: "";
  transform: translateX(-50%);
}

body.brand-case-study .content-layout.cs-page > .content-sidebar .content-nav {
  position: relative;
  top: auto;
  display: flex;
  width: 100%;
  height: 56px;
  max-height: none;
  padding: 0;
  align-items: center;
  flex-direction: row;
  justify-content: flex-start;
  overflow: visible;
}

body.brand-case-study .content-layout.cs-page > .content-sidebar .content-nav::before,
body.brand-case-study .content-layout.cs-page > .content-sidebar .content-nav::after {
  position: absolute;
  bottom: -4px;
  z-index: 1;
  width: 9px;
  height: 9px;
  background:
    linear-gradient(var(--guide-tick), var(--guide-tick)) center / 1px 9px no-repeat,
    linear-gradient(var(--guide-tick), var(--guide-tick)) center / 9px 1px no-repeat;
  content: "";
}

body.brand-case-study .content-layout.cs-page > .content-sidebar .content-nav::before { left: -4px; }
body.brand-case-study .content-layout.cs-page > .content-sidebar .content-nav::after { right: -4px; }

body.brand-case-study .content-layout.cs-page .content-back,
body.brand-case-study .content-layout.cs-page .cs-page-mobile-back {
  display: inline-flex;
  width: max-content;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  align-items: center;
  gap: 8px;
  color: var(--launch-copy);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: color 160ms ease;
}

body.brand-case-study .content-layout.cs-page :where(.content-back, .cs-page-mobile-back):hover,
body.brand-case-study .content-layout.cs-page :where(.content-back, .cs-page-mobile-back):focus-visible {
  color: var(--launch-ink);
}

@media (min-width: 1021px) {
  /* Match the desktop utility label to the same outer rail as the logo. */
  body.brand-case-study .content-layout.cs-page .content-back svg { margin-left: -24px; }
}

body.brand-case-study .content-layout.cs-page .content-main,
body.brand-case-study .content-layout.cs-page .cs-inner {
  width: 100%;
  max-width: none;
  min-width: 0;
}

body.brand-case-study .content-layout.cs-page .cs-page-mobile-back { display: none; }

body.brand-case-study .cs-hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  gap: clamp(48px, 6vw, 80px);
  position: relative;
  margin: 0 0 clamp(64px, 7vw, 96px);
  padding: clamp(56px, 6vw, 80px) 0 clamp(72px, 7vw, 96px);
  border-bottom: 1px solid var(--guide-line);
  border-radius: 0 !important;
  align-items: center;
}

body.brand-case-study .cs-hero-text {
  min-width: 0;
  order: -1;
}

body.brand-case-study .cs-hero-tag {
  position: relative;
  display: inline-flex;
  margin: 0 0 18px;
  padding-left: 16px;
  align-items: center;
  color: var(--launch-copy);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

body.brand-case-study .cs-hero-tag::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--launch-orange);
  content: "";
  transform: translateY(-50%);
}

body.brand-case-study .cs-hero-text h1 {
  max-width: none;
  margin: 0 0 38px;
  color: var(--launch-ink);
  font-family: var(--font-heading);
  font-size: clamp(42px, 4.5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.99;
  text-wrap: balance;
}

body.brand-case-study .cs-hero-convo {
  margin: 0 0 8px;
  color: var(--launch-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

body.brand-case-study .cs-hero-person {
  color: var(--launch-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

body.brand-case-study .cs-hero-person span {
  display: block;
  margin-top: 3px;
  color: var(--launch-copy);
  font-size: 14px;
  font-weight: 400;
}

body.brand-case-study .cs-hero-image {
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  border: 1px solid var(--guide-line);
  border-radius: var(--launch-radius) !important;
  overflow: hidden;
  background: var(--launch-panel);
}

body.brand-case-study .cs-hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

body.brand-case-study .content-layout.cs-page .cs-body {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(80px, 9vw, 120px);
  align-items: start;
}

body.brand-case-study .content-layout.cs-page .cs-sidebar {
  position: sticky;
  top: 84px;
  width: 100%;
  min-width: 0;
  padding: 0;
  align-self: start;
}

body.brand-case-study .cs-company-logo {
  display: flex;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border: 1px solid var(--guide-line);
  border-radius: var(--launch-radius);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--launch-panel);
}

body.brand-case-study .cs-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.brand-case-study .cs-company-logo-wordmark {
  color: var(--launch-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 0.9;
  text-align: center;
}

body.brand-case-study .cs-company-logo-wordmark small {
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

body.brand-case-study .cs-company-name {
  margin-bottom: 6px;
  color: var(--launch-ink);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
}

body.brand-case-study .cs-company-desc {
  margin: 0 0 24px;
  color: var(--launch-copy);
  font-size: 13px;
  line-height: 1.55;
}

body.brand-case-study .cs-meta-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.brand-case-study .cs-meta-item {
  padding-top: 14px;
  border-top: 1px solid var(--guide-line);
}

body.brand-case-study .cs-meta-key,
body.brand-case-study .cs-stat-label {
  margin-bottom: 6px;
  color: var(--launch-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

body.brand-case-study .cs-meta-val {
  color: var(--launch-copy);
  font-size: 13px;
  line-height: 1.45;
}

body.brand-case-study .cs-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

body.brand-case-study .cs-meta-tag {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--guide-line);
  border-radius: 999px;
  color: var(--launch-copy);
  background: transparent;
  font-size: 11px;
  font-weight: 500;
}

body.brand-case-study .cs-sidebar-link {
  display: inline-flex;
  min-height: 44px;
  margin-top: 18px;
  align-items: center;
  gap: 5px;
  color: var(--launch-copy);
  font-size: 13px;
  font-weight: 500;
  transition: color 160ms ease;
}

body.brand-case-study .cs-sidebar-link:hover { color: var(--launch-ink); }
body.brand-case-study .cs-sidebar-link svg { width: 14px; height: 14px; }

body.brand-case-study .content-layout.cs-page .cs-main {
  width: 100%;
  max-width: 720px;
  min-width: 0;
}

body.brand-case-study .cs-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 40px;
  padding: 0 0 40px;
  border-bottom: 1px solid var(--guide-line);
}

body.brand-case-study .cs-stat {
  min-width: 0;
  padding: 0 22px;
  border-left: 1px solid var(--guide-line);
}

body.brand-case-study .cs-stat:first-child {
  padding-left: 0;
  border-left: 0;
}

body.brand-case-study .cs-stat-num {
  margin-bottom: 5px;
  color: var(--launch-ink);
  font-family: var(--font-heading);
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

body.brand-case-study .cs-stat p {
  margin: 0;
  color: var(--launch-copy);
  font-size: 13px;
  line-height: 1.45;
}

body.brand-case-study :where(.cs-pullquote, .cs-content blockquote) {
  margin: 0 0 48px;
  padding: 28px 0;
  border-top: 1px solid var(--launch-ink);
  border-bottom: 1px solid var(--guide-line);
  border-left: 0;
}

body.brand-case-study :where(.cs-pullquote p, .cs-content blockquote p) {
  max-width: 580px;
  margin: 0;
  color: var(--launch-ink);
  font-family: var(--font-heading);
  font-size: clamp(20px, 2vw, 23px);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

body.brand-case-study .cs-pullquote cite {
  display: block;
  margin-top: 12px;
  color: var(--launch-muted);
  font-size: 13px;
  font-style: normal;
}

body.brand-case-study .cs-content h2 {
  margin: 72px 0 20px;
  padding-top: 72px;
  border-top: 1px solid var(--guide-line);
  color: var(--launch-ink);
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

body.brand-case-study .cs-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

body.brand-case-study .cs-content h3 {
  margin: 40px 0 12px;
  color: var(--launch-ink);
  font-size: 17px;
  font-weight: 500;
}

body.brand-case-study .cs-content p {
  margin: 0 0 24px;
  color: var(--launch-copy);
  font-size: 17px;
  line-height: 1.68;
}

body.brand-case-study .cs-content strong {
  color: var(--launch-ink);
  font-weight: 500;
}

body.brand-case-study .cs-figure {
  margin: 44px 0;
}

body.brand-case-study .cs-figure img {
  display: block;
  width: 100%;
  border: 1px solid var(--guide-line);
  border-radius: var(--launch-radius);
}

body.brand-case-study .cs-figure figcaption {
  margin-top: 10px;
  color: var(--launch-muted);
  font-size: 12px;
  line-height: 1.5;
}

body.brand-case-study .cs-figure a {
  color: var(--launch-copy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.brand-case-study .cs-cta {
  margin-top: 80px;
  padding: clamp(36px, 5vw, 52px);
  border: 0;
  border-radius: var(--launch-radius);
  background: var(--launch-dark);
  text-align: left;
}

body.brand-case-study .cs-cta h3 {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

body.brand-case-study .cs-cta > p {
  max-width: 500px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1.55;
}

@media (max-width: 1020px) {
  body.brand-case-study .content-layout.cs-page > .content-sidebar { display: none; }

  body.brand-case-study .content-layout.cs-page .cs-page-mobile-back {
    position: relative;
    display: flex;
    width: 100%;
    height: 52px;
    min-height: 52px;
    border-bottom: 1px solid var(--guide-line);
  }

  body.brand-case-study .content-layout.cs-page .cs-page-mobile-back::after {
    position: absolute;
    right: 50%;
    bottom: -1px;
    left: 50%;
    width: 100vw;
    height: 1px;
    background: var(--guide-line);
    content: "";
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  body.brand-case-study .cs-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 0 64px;
  }

  body.brand-case-study .cs-hero-text h1 {
    max-width: none;
    margin-bottom: 28px;
  }

  body.brand-case-study .cs-hero-image {
    max-width: 560px;
    margin: 0;
  }

  body.brand-case-study .content-layout.cs-page .cs-body {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  body.brand-case-study .content-layout.cs-page .cs-sidebar {
    position: static;
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
    gap: 32px;
  }

  body.brand-case-study .content-layout.cs-page .cs-main { max-width: none; }
}

@media (max-width: 640px) {
  body.brand-case-study .content-layout.cs-page {
    padding-inline: var(--launch-gutter);
  }

  body.brand-case-study .cs-hero {
    gap: 30px;
    margin-bottom: 56px;
    padding: 40px 0 56px;
  }

  body.brand-case-study .cs-hero-text h1 {
    max-width: none;
    font-size: clamp(36px, 10.5vw, 42px);
    line-height: 1.01;
  }

  body.brand-case-study .content-layout.cs-page .cs-sidebar {
    display: block;
  }

  body.brand-case-study .cs-sidebar-brand { margin-bottom: 28px; }

  body.brand-case-study .cs-stats {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 28px;
  }

  body.brand-case-study .cs-stat,
  body.brand-case-study .cs-stat:first-child {
    padding: 18px 0 0;
    border-top: 1px solid var(--guide-line);
    border-left: 0;
  }

  body.brand-case-study .cs-stat:first-child {
    padding-top: 0;
    border-top: 0;
  }

  body.brand-case-study .cs-content h2 {
    margin-top: 56px;
    padding-top: 56px;
    font-size: 30px;
  }

  body.brand-case-study .cs-content p { font-size: 16px; }
  body.brand-case-study .cs-cta { margin-top: 64px; padding: 32px 24px; }
  body.brand-case-study .cs-cta .btn-lg { width: 100%; }
}
