/* Case Study: the first black band. Dragon Motorsport's story on the left with the button that opens the
   full study, the campaign cover on the right. The study itself opens in a modal built like the lightbox:
   the scrim, a white frame (radius 24, padding 10) that scrolls inside, a round white close button. */
.cs-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.cs-copy .split-title { margin-top: 22px; }
.cs-copy .cs-text { max-width: 520px; margin-top: 18px; font-size: var(--t-lead); line-height: 1.55; color: var(--on-sky-soft); text-wrap: pretty; }
.cs-copy .split-title + .cs-text { margin-top: 24px; }
.cs-cta { margin-top: 34px; }
.cs-cover { overflow: hidden; border-radius: var(--radius-md); }
.cs-cover img { width: 100%; height: auto; }

@media (max-width: 960px) {
  .cs-grid { grid-template-columns: 1fr; }
}

/* the modal */
.cs-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; overflow: hidden; background: var(--scrim); }
.cs-modal.is-open { display: flex; }
.csm-stage { position: relative; width: min(780px, 100%); padding-top: 54px; }
.csm-frame { height: min(80vh, 880px); padding: 10px; border-radius: var(--radius-lg); background: var(--white); }
.csm-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border-radius: var(--radius-md); }
.has-motion .cs-modal.is-open .csm-frame { animation: csm-in 300ms var(--ease-out) both; }
@keyframes csm-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.csm-close { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--pill); background: var(--white); color: var(--fg); transition: background-color var(--hover) ease, color var(--hover) ease; }
.csm-close svg { width: 14px; height: 14px; }
.csm-close:hover { background: var(--press); color: var(--on-press); }

.csm-body { padding: clamp(20px, 4.4vw, 48px); color: var(--fg-soft); }
.csm-title {
  margin-top: 20px;
  font-family: var(--f-head);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--fg);
  text-wrap: balance;
}
.csm-body h3 { margin-top: 44px; font-family: var(--f-head); font-weight: 500; font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; color: var(--fg); }
.csm-body p { margin-top: 16px; line-height: 1.7; }
.csm-body .badge { margin-top: 0; line-height: 1.2; }
.csm-body .csm-lead { margin-top: 0; font-size: var(--t-lead); line-height: 1.6; color: var(--fg); }
.csm-figure { margin: 24px 0; }
.csm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.csm-stat { padding: 22px 20px; border-radius: var(--radius-md); background: var(--surface); }
.csm-stat .csm-stat-v { margin-top: 0; font-size: clamp(28px, 3vw, 34px); font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; color: var(--accent-words); }
.csm-stat .csm-stat-l { margin-top: 10px; font-size: var(--t-label); line-height: 1.5; color: var(--fg-soft); }

@media (max-width: 640px) {
  .cs-cta .btn { width: 100%; }
  .cs-modal { padding: 8px; }
  .csm-frame { height: calc(100svh - 80px); }
  .csm-stats { grid-template-columns: 1fr; }
}
