/* Case study page layout. Shared type, navigation, buttons, and video come from home.css. */

.cs-hero {
  padding-bottom: clamp(58px, 7vw, 92px);
}
.cs-hero .hero-title {
  max-width: 22ch;
  font-size: clamp(42px, 5.6vw, 78px);
}
.cs-hero-row {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  margin-top: clamp(36px, 5vw, 64px);
}
.cs-hero .hero-sub { max-width: 37ch; }
.cs-hero .hero-actions { gap: 10px; }
.cs-hero .hero-actions .btn { font-size: 14px; }
.cs-hero-media { min-width: 0; }
.cs-hero-media .vsl { box-shadow: 0 34px 75px -40px rgba(6, 34, 88, .42); }
.cs-hero-media figcaption { text-align: right; }

/* The three gaps read as one broken handoff, not independent feature cards. */
.cs-gap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(32px, 4vw, 52px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.cs-gap-item {
  position: relative;
  min-height: 220px;
  padding: clamp(24px, 2.5vw, 34px);
}
.cs-gap-item + .cs-gap-item { border-left: 1px solid var(--line); }
.cs-gap-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  border-radius: 12px;
  background: var(--accent-tint-2);
  color: var(--accent-2);
}
.cs-gap-ico .i { font-size: 20px; }
.cs-gap-item h3 { font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; letter-spacing: -.025em; }
.cs-gap-item p { max-width: 30ch; margin-top: 9px; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }

/* The follow-through is one connected operating sequence. */
.cs-diff {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 66px);
  border-top: 2px solid var(--accent-line);
}
.cs-diff-item {
  position: relative;
  padding: 28px clamp(16px, 2.2vw, 28px) 6px 0;
}
.cs-diff-item::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  width: 13px;
  height: 13px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
}
.cs-diff-item h3 {
  display: grid;
  gap: 14px;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.cs-diff-n { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--accent-2); }
.cs-diff-item p { margin-top: 11px; max-width: 28ch; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }

@media (max-width: 1020px) {
  .cs-hero-row { grid-template-columns: 1fr; }
  .cs-hero .hero-title { max-width: 19ch; }
  .cs-hero .hero-sub { max-width: 54ch; }
  .cs-hero-media { max-width: 760px; }
  .cs-diff { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .cs-diff-item:nth-child(3), .cs-diff-item:nth-child(4) { border-top: 2px solid var(--accent-line); }
}
@media (max-width: 680px) {
  .cs-hero .hero-title { font-size: clamp(39px, 10vw, 56px); }
  .cs-hero-media figcaption { text-align: left; }
  .cs-gap { grid-template-columns: 1fr; }
  .cs-gap-item { min-height: 0; padding: 23px; }
  .cs-gap-item + .cs-gap-item { border-left: 0; border-top: 1px solid var(--line); }
  .cs-gap-ico { margin-bottom: 14px; }
  .cs-diff { grid-template-columns: 1fr; row-gap: 0; }
  .cs-diff-item { border-top: 2px solid var(--accent-line); padding: 24px 0 32px; }
  .cs-diff-item:first-child { border-top: 0; }
  .cs-diff-item::before { top: -8px; }
  .cs-diff-item:first-child::before { top: -8px; }
  .cs-diff-item h3 { display: flex; gap: 16px; align-items: baseline; }
  .cs-diff-item p { max-width: 48ch; }
}
