/* ============== 
   Buttons
   ============== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease;
}

.btn-pill {
  box-shadow: 0 18px 40px rgba(46, 92, 255, 0.35);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
  color: #ffffff;
}

.btn-primary:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 20px 46px rgba(46, 92, 255, 0.48);
}

.btn-ghost {
  border-color: var(--color-border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
}

.btn-ghost:hover {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(30, 35, 77, 0.12);
  text-decoration: none;
}

.btn-link {
  font-size: 0.9rem;
  color: var(--color-accent);
  text-decoration: none;
}

.btn-link.inverted {
  color: #ffffff;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Focus styles for accessibility */
.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.btn-primary:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(46, 92, 255, 0.4);
}

.btn-ghost:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.btn-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Generic focus styles */
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ==============
   Generic cards
   ============== */

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(213, 220, 244, 0.9);
}

.card-top {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.card-top h3 {
  font-size: 1rem;
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font-size: 0.8rem;
  font-weight: 600;
}

.card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

/* ==============
   BTBT section (Been there, built that)
   ============== */

.btbt-item {
  position: relative;
  display: flex;
  gap: 2.5rem;
  padding: 3rem 2rem;
  border-bottom: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.btbt-item:first-child {
  padding-top: 2rem;
}
.btbt-item:last-child {
  border-bottom: none;
}

/* Expandable/Collapsible behavior */
.btbt-expandable {
  cursor: pointer;
  transition: background 0.2s ease, padding 0.3s ease;
  align-items: center;
}

.btbt-expandable:hover {
  background: rgba(95, 134, 255, 0.03);
}

.btbt-expandable .btbt-item-header {
  position: relative;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  min-height: 100%;
}

/* Vertically center content with illustration when collapsed */
.btbt-expandable .btbt-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.btbt-expandable .btbt-heading::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.btbt-expandable.btbt-expanded .btbt-heading::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Collapsed state - hide flow and shrink illustration */
.btbt-expandable .btbt-flow {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
  margin-top: 0;
}

.btbt-expandable .btbt-illustration {
  width: 120px;
  transition: width 0.3s ease;
}

/* Expanded state */
.btbt-expandable.btbt-expanded .btbt-flow {
  max-height: none;
  overflow: visible;
  opacity: 1;
  margin-top: 2rem;
}

.btbt-expandable.btbt-expanded {
  align-items: flex-start;
}

.btbt-expandable.btbt-expanded .btbt-illustration {
  width: 280px;
}

.btbt-expandable.btbt-expanded .btbt-item-header {
  margin-bottom: 0;
}

.btbt-expandable.btbt-expanded .btbt-content {
  justify-content: flex-start;
}

/* Sidebar illustration */
.btbt-illustration {
  flex-shrink: 0;
  width: 280px;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btbt-illustration img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  background: transparent;
  mix-blend-mode: multiply;
  filter: contrast(1.05);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.btbt-item:hover .btbt-illustration img {
  transform: scale(1.04);
  filter: contrast(1.1);
}


/* Main content area (header + cards) */
.btbt-content {
  flex: 1;
  min-width: 0;
}

/* Header styling */
.btbt-item-header {
  margin-bottom: 2rem;
}

.btbt-heading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.btbt-heading .badge {
  flex-shrink: 0;
  font-weight: 700;
}

.btbt-heading h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

/* Flow container for cascading cards */
.btbt-flow {
  position: relative;
  z-index: 1;
}

.btbt-row {
  display: block;
}

.btbt-row-indented {
  display: block;
}

/* Hide old connectors - we'll use new positioning */
.btbt-row-connector {
  display: none;
}

.btbt-col-connector {
  display: none;
}

/* Cascading card blocks */
.btbt-block {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  background: #ffffff;
  padding: 1.4rem 1.6rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(30, 35, 77, 0.08);
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.btbt-block:hover {
  transform: translateY(-4px) translateX(2px);
  box-shadow: 0 12px 32px rgba(30, 35, 77, 0.14);
}

/* McKinsey-style bold card typography */
.btbt-block .card-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.btbt-block .step-body p:not(.card-label) {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text);
}

/* All cards same width, cascade via left margin only */
.btbt-block-challenge,
.btbt-block-help,
.btbt-block-why {
  width: 88%;
}

/* Card 1: Challenge - base layer, no indent */
.btbt-block-challenge {
  z-index: 1;
  margin-left: 0;
}

/* Card 2: Help - indented, overlaps challenge */
.btbt-block-help {
  z-index: 2;
  margin-left: 6%;
  margin-top: -1.5rem;
}

/* Card 3: Why - most indented, overlaps help */
.btbt-block-why {
  z-index: 3;
  margin-left: 12%;
  margin-top: -1.5rem;
}

.step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.step-icon-challenge {
  background: rgba(248, 132, 104, 0.14);
  color: #d05b31;
}

.step-icon-help {
  background: rgba(95, 134, 255, 0.14);
  color: #2951f0;
}

.step-icon-why {
  background: rgba(60, 189, 140, 0.14);
  color: #27946d;
}


/* ... other styles ... */

@media (max-width: 800px) {
  .btbt-item {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1.5rem;
  }

  .btbt-illustration {
    width: 180px;
    order: -1;
  }

  /* Reduce cascading on mobile - all same width */
  .btbt-block-challenge,
  .btbt-block-help,
  .btbt-block-why {
    width: 90%;
  }

  .btbt-block-challenge {
    margin-left: 0;
  }

  .btbt-block-help {
    margin-top: -1rem;
    margin-left: 5%;
  }

  .btbt-block-why {
    margin-top: -1rem;
    margin-left: 10%;
  }

  /* Mobile expandable fixes */
  .btbt-expandable {
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 1rem;
  }

  .btbt-expandable .btbt-illustration {
    width: 100px;
    align-self: center;
    order: -1;
    margin-bottom: 1rem;
  }

  .btbt-expandable.btbt-expanded .btbt-illustration {
    width: 160px;
  }

  .btbt-expandable .btbt-content {
    width: 100%;
  }

  .btbt-expandable .btbt-item-header {
    display: flex;
    align-items: center;
    position: relative;
    padding-right: 2.5rem;
    min-height: auto;
  }

  .btbt-expandable .btbt-heading {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    flex-wrap: nowrap;
  }

  .btbt-expandable .btbt-heading .badge {
    flex-shrink: 0;
    margin-top: 0.15rem;
  }

  .btbt-expandable .btbt-heading h3 {
    font-size: 1.1rem;
    flex: 1;
    min-width: 0;
    line-height: 1.3;
  }

  .btbt-expandable .btbt-heading::after {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .btbt-expandable.btbt-expanded .btbt-heading::after {
    transform: translateY(-50%) rotate(180deg);
  }

  .btbt-expandable.btbt-expanded .btbt-flow {
    margin-top: 1.5rem;
  }

  /* Stack cards vertically on mobile, no cascade */
  .btbt-expandable .btbt-block-challenge,
  .btbt-expandable .btbt-block-help,
  .btbt-expandable .btbt-block-why {
    width: 100%;
    margin-left: 0;
    margin-top: 0.75rem;
  }

  .btbt-expandable .btbt-block-challenge {
    margin-top: 0;
  }
}

/* ==============
   Services Showcase (What We Do)
   ============== */

.services-showcase {
  padding: 3rem 0;
}

.services-showcase .section-header.centered {
  text-align: center;
  margin-bottom: 3rem;
}

.services-showcase .section-header.centered .section-intro {
  max-width: 500px;
  margin: 0 auto;
}

/* Option A grid (preserved for reference) */
.showcase-grid {
  display: grid;
  grid-template-columns: 120px 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Option B: Card-First with Banner CTA */
.showcase-grid-b {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  overflow: hidden;
}

.showcase-services-b {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 700px;
  width: 100%;
  box-sizing: border-box;
}

.showcase-grid-b .btn-link {
  margin-top: 0.5rem;
}

/* Case Study Banner */
.case-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 700px;
  padding: 1.25rem 1.75rem;
  background: linear-gradient(145deg, #1f2352, #151933);
  border-radius: 14px;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(21, 25, 51, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 1rem;
}

.case-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(21, 25, 51, 0.45);
  text-decoration: none;
}

.case-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.case-banner-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.case-banner-play svg {
  margin-left: 2px; /* optical centering for play icon */
}

.case-banner:hover .case-banner-play {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.case-banner-text {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.4;
}

.case-banner-text strong {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  margin-right: 0.25rem;
}

.case-banner-arrow {
  font-size: 1.1rem;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.case-banner:hover .case-banner-arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* Option C: Asymmetric Split (60/40) */
.showcase-grid-c {
  display: grid;
  grid-template-columns: 1fr auto 340px;
  gap: 2rem;
  align-items: center;
}

.showcase-left-c {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border: 1px solid rgba(207, 214, 244, 0.8);
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-row:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(30, 35, 77, 0.08);
}

.service-row-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.service-row-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.service-row-items {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

.showcase-left-c .btn-link {
  margin-top: 0.5rem;
  align-self: flex-start;
}

/* Arrow accent */
.showcase-arrow-c {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

/* Case Study Card (Option C) */
.showcase-case-c {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: linear-gradient(145deg, #1f2352, #151933);
  border-radius: 16px;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(21, 25, 51, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.showcase-case-c:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(21, 25, 51, 0.45);
  text-decoration: none;
}

.case-label-c {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
}

.showcase-case-c h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.showcase-case-c p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin: 0 0 1.25rem 0;
}

.case-explore-c {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.showcase-case-c:hover .case-explore-c {
  color: #ffffff;
}

/* Option C Responsive */
@media (max-width: 900px) {
  .showcase-grid-c {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .showcase-arrow-c {
    display: none;
  }

  .showcase-case-c {
    max-width: 400px;
    margin: 0 auto;
  }

  .showcase-left-c .btn-link {
    align-self: center;
  }
}

/* Option D: Icon Grid + Proof Bar */
.showcase-grid-d {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.service-icon-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 700px;
}

.service-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border: 1px solid rgba(207, 214, 244, 0.8);
  border-radius: 12px;
  min-width: 100px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(30, 35, 77, 0.1);
  border-color: var(--color-accent);
}

.service-tile-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.service-tile-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.showcase-grid-d .btn-link {
  margin-top: 0.5rem;
}

/* Proof Bar */
.proof-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 700px;
  padding: 1rem 1.5rem;
  background: linear-gradient(145deg, #1f2352, #151933);
  border-radius: 12px;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(21, 25, 51, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 1rem;
}

.proof-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(21, 25, 51, 0.4);
  text-decoration: none;
}

.proof-bar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.proof-bar-text {
  flex: 1;
  font-size: 0.9rem;
}

.proof-bar-text strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.proof-bar-cta {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.proof-bar:hover .proof-bar-cta {
  color: #ffffff;
}

/* Option D Responsive */
@media (max-width: 600px) {
  .service-icon-grid {
    gap: 0.75rem;
  }

  .service-tile {
    padding: 1rem;
    min-width: 85px;
  }

  .service-tile-icon {
    width: 40px;
    height: 40px;
  }

  .service-tile-label {
    font-size: 0.8rem;
  }

  .proof-bar {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .proof-bar-cta {
    margin-top: 0.25rem;
  }
}

/* Left: Summary Stats */
.showcase-summary {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 0.5rem;
  border-right: 1px solid var(--color-border);
  padding-right: 1.5rem;
}

.showcase-summary-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.summary-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.15rem;
}

/* Middle: Service Cards */
.showcase-services {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px;
  grid-template-rows: 1fr auto;
  gap: 1.5rem;
  align-items: stretch;
}

/* Card stack wrapper - on desktop, display as grid */
.service-card-stack {
  display: contents;
}

.showcase-services .service-card {
  grid-row: 1;
  min-width: 0;
}

.showcase-services .case-arrow-triangle {
  grid-row: 1;
  grid-column: 3;
  align-self: stretch;
  margin-left: 0.5rem;
}

.showcase-services .btn-link {
  grid-column: 1 / 3;
  grid-row: 2;
  justify-self: center;
  margin-top: 0.5rem;
}

.service-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(207, 214, 244, 0.8);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30, 35, 77, 0.1);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.4rem;
}

.service-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* Case Study Intro - hidden on desktop, shown on mobile */
.showcase-case-intro {
  display: none;
}

/* Case Study Section */
.showcase-case {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

/* Large triangular arrow pointing at case study */
.case-arrow-triangle {
  position: relative;
  width: 28px;
  min-height: 100%;
  background: linear-gradient(180deg, #1f2352, #151933);
  clip-path: polygon(0 0, 0 100%, 100% 50%);
}

/* Shadow layer for the arrow (behind it) */
.case-arrow-triangle::before {
  content: '';
  position: absolute;
  top: 8px;
  left: -6px;
  width: 100%;
  height: 100%;
  background: rgba(21, 25, 51, 0.35);
  clip-path: polygon(0 0, 0 100%, 100% 50%);
  filter: blur(8px);
  z-index: -1;
}

/* Case card styling */
.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: linear-gradient(145deg, #1f2352, #151933);
  border-radius: 20px;
  padding: 2rem;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 20px 50px rgba(21, 25, 51, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(21, 25, 51, 0.5);
  text-decoration: none;
}

.case-card-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  margin: 0 auto 1.25rem auto;
  transition: background 0.2s ease, transform 0.2s ease;
}

.case-card-play svg {
  margin-left: 3px; /* optical centering for play icon */
}

.case-card:hover .case-card-play {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

.case-card-cta {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-top: auto;
  transition: color 0.2s ease;
}

.case-card:hover .case-card-cta {
  color: #ffffff;
}

.case-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  display: block;
  margin-bottom: 0.75rem;
}

.case-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.case-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.case-link-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.case-link-text a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

.case-link-text a:hover {
  color: #ffffff;
}

.case-cta {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
}

/* Responsive */
@media (max-width: 900px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .showcase-summary {
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
    padding-top: 0;
    order: -1;
    border-right: none;
    padding-right: 0;
  }

  .showcase-summary-label {
    display: none;
  }

  .summary-stats {
    align-items: center;
  }

  .showcase-services {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    max-width: 100%;
    margin: 0 auto;
    gap: 1rem;
  }

  .showcase-services .case-arrow-triangle {
    display: none;
  }

  .showcase-services .btn-link {
    grid-column: 1 / -1;
  }

  .showcase-case {
    max-width: 100%;
    margin: 0 auto;
    flex-direction: column;
  }

  .case-card {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 720px) {
  /* Reduce BTBT item padding on mobile */
  .btbt-item {
    padding: 1.5rem 1rem;
  }

  .btbt-item:first-child {
    padding-top: 1rem;
  }

  /* Force showcase-grid to be block layout on mobile */
  .showcase-grid {
    display: block !important;
  }

  .showcase-services {
    display: block !important;
    width: 100% !important;
  }

  /* Card Stack on Mobile - stacked like a deck */
  .service-card-stack {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    min-height: 240px;
    margin: 0 0 50px 0 !important;
  }

  .service-card-stack .service-card {
    position: absolute !important;
    width: calc(100% - 30px) !important;
    max-width: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 1.25rem !important;
    cursor: pointer;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                z-index 0s linear 0.2s;
    border-radius: 16px;
  }

  /* Default state: founders in front, smb in back */
  .service-card-stack .service-card[data-card="smb"] {
    top: 20px;
    left: 0;
    z-index: 1;
    box-shadow: 0 8px 24px rgba(30, 35, 77, 0.12);
  }

  .service-card-stack .service-card[data-card="founders"] {
    top: 0;
    left: 30px;
    z-index: 2;
    box-shadow: 0 16px 40px rgba(30, 35, 77, 0.2);
  }

  /* Swapped state: smb in front, founders in back */
  .service-card-stack.swapped .service-card[data-card="smb"] {
    top: 0;
    left: 30px;
    z-index: 2;
    box-shadow: 0 16px 40px rgba(30, 35, 77, 0.2);
  }

  .service-card-stack.swapped .service-card[data-card="founders"] {
    top: 20px;
    left: 0;
    z-index: 1;
    box-shadow: 0 8px 24px rgba(30, 35, 77, 0.12);
  }

  /* Tap icon on the back card - bottom left in visible area */
  .service-card-stack .service-card::before {
    content: '';
    position: absolute;
    bottom: 50px;
    left: 2px;
    width: 26px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1229 1024'%3E%3Cpath fill='%235f86ff' d='M834.37568 469.76c-4.16768 0-14.7456 1.4336-25.62048 4.8128-2.77504-36.99712-33.78176-66.2528-71.4752-66.2528-16.96768 0-32.58368 5.92896-44.87168 15.8208-9.08288-27.72992-33.09568-46.5408-62.83264-46.5408-19.69152 0-37.21216 8.09984-49.70496 21.32992l-3.15392-88.2176c34.95936-25.10848 57.79456-66.07872 57.79456-112.31232 0-76.22656-62.01344-138.24-138.24-138.24s-138.24 62.01344-138.24 138.24c0 53.00224 30.08512 98.93888 73.99424 122.10176l4.62848 216.40192c-8.27392 4.49536-20.82816 12.71808-36.89472 27.31008-55.59296 50.52416-73.78944 172.72832-11.008 267.3152 69.888 105.28768 151.77728 150.23104 273.83808 150.23104 129.32096 0 172.58496-64.90112 205.824-131.3792 31.96928-63.93856 32.33792-308.79744 32.33792-319.1808C900.7616 498.46272 869.74464 469.76 834.37568 469.76zM388.7616 198.4c0-59.2896 48.2304-107.52 107.52-107.52s107.52 48.2304 107.52 107.52c0 27.97568-10.89536 53.31968-28.49792 72.448l-2.22208-62.208c0-43.78624-30.83264-76.8-71.72096-76.8s-71.72096 33.01376-71.72096 77.12768l1.59744 74.65984C405.52448 263.97696 388.7616 233.18528 388.7616 198.4zM840.93952 836.63872c-31.29344 62.58688-66.304 114.40128-178.33984 114.40128-111.98464 0-183.90016-39.54688-248.23808-136.4992-37.48864-56.48384-53.76-173.21984 6.07232-227.60448 6.46144-5.86752 12.16512-10.46528 16.9984-14.03904l2.29376 107.10016c0.18432 8.47872 6.94272 15.43168 15.68768 15.03232 8.47872-0.18432 15.2064-7.19872 15.03232-15.68768l-10.07616-470.70208c0-27.12576 16.85504-46.08 41.00096-46.08s41.00096 18.95424 41.0112 46.63296l10.24 286.72c0.27648 7.87456 6.48192 14.26432 14.336 14.77632 7.69024 0.48128 14.83776-4.99712 16.15872-12.76928l7.77216-46.08c0.14336-0.84992 0.21504-1.69984 0.21504-2.56 0-23.3472 16.54784-40.96 38.49216-40.96 24.75008 0 36.02432 21.22752 36.02432 40.96l0 30.72c0 8.48896 6.88128 15.36 15.36 15.36s15.36-6.87104 15.36-15.36c0-22.58944 18.37056-40.96 40.96-40.96s40.96 18.37056 40.96 40.96l0 66.56c0 8.47872 6.88128 15.36 15.36 15.36s15.36-6.88128 15.36-15.36l0-39.1168c6.144-2.99008 18.18624-6.97344 25.41568-6.97344 18.3296 0 35.65568 14.92992 35.65568 30.72C870.0416 599.97184 864.79872 788.92032 840.93952 836.63872z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
  }

  /* Show tap icon only on the back card with pulse animation */
  .service-card-stack .service-card[data-card="smb"]::before {
    opacity: 1;
    animation: tapPulse 1.5s ease-in-out infinite;
  }

  .service-card-stack.swapped .service-card[data-card="smb"]::before {
    opacity: 0;
    animation: none;
  }

  .service-card-stack.swapped .service-card[data-card="founders"]::before {
    opacity: 1;
    animation: tapPulse 1.5s ease-in-out infinite;
  }

  @keyframes tapPulse {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.15);
    }
  }

  /* Gap between summary stats and card stack */
  .showcase-summary {
    margin-bottom: 1.5rem;
  }

  .showcase-services .case-arrow-triangle {
    display: none !important;
  }

  .showcase-services .btn-link {
    display: block;
    text-align: center;
    margin-top: 0;
  }

  /* Case study intro on mobile - match section-title styling */
  .showcase-case-intro {
    display: block;
    text-align: left;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
  }

  .showcase-case-intro h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.4rem 0;
  }

  .showcase-case-intro p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
  }

  .service-card {
    max-width: none !important;
    margin: 0 !important;
  }

  .showcase-summary {
    gap: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Option B responsive */
  .showcase-services-b {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .case-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .case-banner-arrow {
    display: none;
  }
}

