.page-wrap {
  max-width: 1120px;
  padding-bottom: 0;
}

.case-study a:focus-visible {
  outline: 2px solid var(--active);
  outline-offset: 4px;
}

.case-study-breadcrumbs {
  color: var(--text-muted);
  font-size: 0.82rem;
  padding-top: 18px;
}

.case-study-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.case-study-breadcrumbs li {
  align-items: center;
  display: flex;
  gap: 8px;
}

.case-study-breadcrumbs li + li::before {
  color: var(--border);
  content: "/";
}

.case-study-breadcrumbs a,
.case-study-footer a {
  color: var(--text-sec);
  text-decoration: none;
}

.case-study-breadcrumbs a:hover,
.case-study-footer a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.case-study-hero {
  max-width: 940px;
  padding: clamp(48px, 8vw, 92px) 0 clamp(48px, 7vw, 76px);
}

.case-study-eyebrow {
  align-items: center;
  background: var(--mint);
  border-radius: var(--radius-pill);
  color: #15803d;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 600;
  gap: 8px;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  padding: 6px 14px;
  text-transform: uppercase;
}

.case-study-eyebrow::before {
  background: var(--active);
  border-radius: 50%;
  content: "";
  height: 6px;
  width: 6px;
}

.case-study-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  max-width: 940px;
}

.case-study-deck {
  color: var(--text-sec);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
  margin-top: 28px;
  max-width: 760px;
}

.case-study-facts {
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1.15fr 1.35fr 0.65fr 1.35fr;
}

.case-study-facts--five {
  grid-template-columns: 0.9fr 0.75fr 0.9fr 1.15fr 1.8fr;
}

.case-study-facts div {
  border-right: 1px solid var(--border);
  padding: 24px 22px 24px 0;
}

.case-study-facts div + div {
  padding-left: 22px;
}

.case-study-facts div:last-child {
  border-right: 0;
}

.case-study-facts dt,
.case-study-rail-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  margin-bottom: 9px;
  text-transform: uppercase;
}

.case-study-facts dd {
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.55;
}

.case-study-layout {
  display: grid;
  gap: clamp(48px, 8vw, 110px);
  grid-template-columns: minmax(170px, 0.3fr) minmax(0, 760px);
  padding: clamp(64px, 9vw, 110px) 0;
}

.case-study-rail {
  align-self: start;
  border-top: 2px solid var(--active);
  position: sticky;
  top: 120px;
  padding-top: 18px;
}

.case-study-rail p:last-child {
  color: var(--text-sec);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.45;
}

.case-study-body section + section {
  border-top: 1px solid var(--border);
  margin-top: clamp(52px, 8vw, 80px);
  padding-top: clamp(52px, 8vw, 80px);
}

.case-study-body h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin-bottom: 26px;
}

.case-study-body p,
.case-study-output-list {
  color: var(--text-sec);
  font-size: 1rem;
  line-height: 1.8;
}

.case-study-body p + p {
  margin-top: 18px;
}

.case-study-body a {
  color: var(--text);
  text-decoration-color: var(--active);
  text-underline-offset: 3px;
}

.case-study-body a:hover {
  text-decoration-thickness: 2px;
}

.case-study-output-list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 26px 0;
}

.case-study-output-list li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 22px 20px 48px;
  position: relative;
}

.case-study-output-list li::before {
  background: var(--active);
  border-radius: 50%;
  content: "";
  height: 7px;
  left: 24px;
  position: absolute;
  top: 29px;
  width: 7px;
}

.case-study-output-list strong {
  color: var(--text);
}

.case-study-quote {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(34px, 6vw, 68px);
}

.case-study-quote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 1.16;
  margin: 24px 0 36px;
  max-width: 900px;
}

.case-study-quote--compact blockquote {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
}

.case-study-quote-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.case-study-quote-role {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
  margin-top: 5px;
}

.case-study-quote-link {
  font-size: 0.85rem;
  margin-top: 16px;
}

.case-study-quote-link a {
  color: var(--text);
  text-decoration-color: var(--active);
  text-underline-offset: 3px;
}

.case-study-quote-link a:hover {
  text-decoration-thickness: 2px;
}

.case-study-audio {
  margin-top: 22px;
  max-width: 520px;
}

.case-study-audio strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.case-study-audio audio {
  display: block;
  height: 36px;
  max-width: 100%;
  width: 100%;
}

.case-study-cta {
  background: var(--void);
  border-radius: var(--radius);
  color: #fff;
  margin-top: clamp(56px, 9vw, 96px);
  padding: clamp(48px, 8vw, 84px) clamp(24px, 6vw, 64px);
  text-align: center;
}

.case-study-cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.case-study-cta h2 em {
  color: rgba(255, 255, 255, 0.58);
  font-style: italic;
}

.case-study-cta p {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
  margin: 20px auto 30px;
  max-width: 560px;
}

.case-study-cta .btn-primary {
  background: #fff;
  color: var(--text);
}

.case-study-footer {
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 32px 0 44px;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 850px) {
  .case-study-facts {
    grid-template-columns: 1fr 1fr;
  }

  .case-study-facts div,
  .case-study-facts div + div {
    border-bottom: 1px solid var(--border);
    padding: 22px 18px;
  }

  .case-study-facts div:nth-child(2) {
    border-right: 0;
  }

  .case-study-facts--five div:nth-child(4) {
    border-right: 0;
  }

  .case-study-facts div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .case-study-facts--five div:nth-child(4) {
    border-bottom: 1px solid var(--border);
  }

  .case-study-layout {
    gap: 48px;
    grid-template-columns: 1fr;
  }

  .case-study-rail {
    max-width: 430px;
    position: static;
  }
}

@media (max-width: 560px) {
  .case-study-hero h1 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .case-study-facts {
    grid-template-columns: 1fr;
  }

  .case-study-facts div,
  .case-study-facts div + div,
  .case-study-facts div:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--border);
    border-right: 0;
    padding: 20px 0;
  }

  .case-study-facts div:last-child {
    border-bottom: 0;
  }

  .case-study-output-list li {
    padding: 18px 18px 18px 42px;
  }

  .case-study-output-list li::before {
    left: 20px;
    top: 27px;
  }
}
