/* ==================================================================
   Featured case studies carousel — shared block.
   Centred heading, one white card (image left, eyebrow + title +
   "Read Case Study" right) and pagination dots to switch cases.
   Used on the About page and the homepage; extracted from about.css
   so both pages render the identical section from one source.
   ================================================================== */
.ab-cs2 {
  width: 100%; box-sizing: border-box;
  background: var(--surface-page, #f6f3ec);
  padding: 100px 80px;
}
.ab-cs2 * { box-sizing: border-box; }
.ab-cs2-head { max-width: 900px; margin: 0 auto 48px; text-align: center; }
.ab-cs2-h2 {
  font-family: var(--font-sans, "Montserrat", sans-serif);
  font-size: clamp(32px, 4.6vw, 50px);
  font-weight: 900; letter-spacing: -0.025em; line-height: 1.05;
  color: var(--text-primary, #2c302c); margin: 0 0 14px;
}
.ab-cs2-sub {
  font-size: clamp(17px, 1.7vw, 21px); font-weight: 500; line-height: 1.5;
  color: var(--text-secondary, #4c5252); margin: 0;
}
/* Card + overlapping image sized to match the live /about sample:
   ~1056px card, 441x267 image overlapping 15px past the card's left edge. */
.ab-cs2-inner { max-width: 1056px; margin: 0 auto; }
.ab-cs2-card {
  position: relative;
  background: var(--surface-card, #ffffff);
  border-radius: 16px;
  box-shadow: var(--shadow-lg, 0 18px 40px rgba(13, 15, 15, 0.14));
  display: grid; grid-template-columns: 441px 1fr; gap: 48px;
  align-items: center;
  padding: 44px 50px 40px 0;
}
/* Image sits in a white container with a soft shadow, overlapping a little
   beyond the card's left edge (matching the live sample). */
.ab-cs2-media {
  position: relative; z-index: 2;
  margin-left: -35px;
  background: var(--surface-card, #ffffff);
  padding: 10px;
  border-radius: 16px;
  box-shadow: 0 26px 54px rgba(13, 15, 15, 0.18);
}
.ab-cs2-media img {
  width: 100%; height: 100%; display: block;
  aspect-ratio: 441 / 267; object-fit: cover;
  border-radius: 10px;
}
.ab-cs2-body { padding: 12px 24px 12px 8px; }
.ab-cs2-eyebrow {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--text-muted, #8a908f); margin: 0 0 18px;
}
.ab-cs2-title {
  font-family: var(--font-sans, "Montserrat", sans-serif);
  font-size: clamp(24px, 2.6vw, 36px); font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em; color: var(--text-primary, #2c302c);
  margin: 0 0 28px; text-wrap: balance;
}
.ab-cs2-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans, "Montserrat", sans-serif);
  font-size: 15px; font-weight: 700; letter-spacing: -0.005em;
  color: var(--text-primary, #2c302c); text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid; border-image: var(--gradient-signature, linear-gradient(90deg, #ff43a4, #ffa63e)) 1;
  transition: gap 160ms var(--ease-out, ease);
}
.ab-cs2-link:hover { gap: 12px; }
.ab-cs2-dots { display: flex; justify-content: center; gap: 10px; margin-top: 36px; }
.ab-cs2-dot {
  width: 10px; height: 10px; border-radius: 999px; border: none; padding: 0; cursor: pointer;
  background: var(--border-strong, #d4cebd);
  transition: width 200ms var(--ease-out, ease), background 200ms var(--ease-out, ease);
}
.ab-cs2-dot.is-active {
  width: 30px;
  background: var(--gradient-signature, linear-gradient(90deg, #ff43a4, #ffa63e));
}

/* Responsive — side gutters track the site: 80px desktop, 40px ≤1080, 20px ≤760 */
@media (max-width: 1080px) {
  .ab-cs2 { padding-left: 40px; padding-right: 40px; }
}
@media (max-width: 860px) {
  .ab-cs2-card { grid-template-columns: 1fr; gap: 26px; padding: 26px; margin-left: 0; }
  .ab-cs2-media { margin-left: 0; }
  .ab-cs2-body { padding: 0; }
}
@media (max-width: 760px) {
  .ab-cs2 { padding: 64px 20px 68px; }
}

/* Homepage only: here the block sits directly under the featured case-study
   cards (.hm-cases), which already carry 76px of bottom padding — the stacked
   gap read as two separate movements. Trimming the top closes the seam.
   On About the block follows the full-bleed "How we do it" carousel, so it
   keeps the full 100px and is unaffected by this rule. */
.hm-cases + .ab-cs2 { padding-top: 40px; }
@media (max-width: 760px) {
  .hm-cases + .ab-cs2 { padding-top: 28px; }
}
