/*
 * CHAPTER 2: BUSINESS PROBLEMS
 * Pinned storytelling, assembling cards, velocity physics
 */

.chapter-2 {
  position: relative;
  width: 100vw;
  height: 200vh; /* Extra height for pinning scroll duration */
  z-index: var(--z-content);
}

.c2-pin-container {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.c2-header {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
  z-index: 10;
}

.c2-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.c2-subtitle {
  font-size: var(--text-manifesto);
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
}

/* Cards assembling from off-screen */
.c2-cards-grid {
  display: flex;
  gap: 4rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1400px;
  position: relative;
  z-index: 5;
}

.c2-card {
  width: 450px;
  background: var(--bg-glass);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  /* Use transform-style to support 3D transforms */
  transform-style: preserve-3d;
  opacity: 0;
  transition: border-color 0.4s var(--ease-cinematic);
}

.c2-card:hover {
  border-color: rgba(255,255,255,0.2);
}

.c2-card-image {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  position: relative;
  /* Start clipped for reveal animation */
  clip-path: inset(100% 0 0 0);
}

.c2-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.6s, transform 0.6s var(--ease-cinematic);
}

.c2-card:hover .c2-card-image img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.c2-card-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-pure);
}

.c2-card-content p {
  color: var(--text-muted);
  line-height: 1.6;
}
