/* ============================================================
   APPLE-STYLE DECONSTRUCTION SECTION
   NOSTECH-inspired scroll-synced component analysis
   ============================================================ */

.ap-decon {
  position: relative;
  background: #000;
  color: #fff;
  padding: clamp(80px, 12vw, 160px) 0;
  overflow: hidden;
}

/* subtle cyan ambient glow */
.ap-decon::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(34, 211, 238, 0.08), transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(34, 211, 238, 0.05), transparent 60%);
  pointer-events: none;
}

.ap-decon__intro {
  text-align: center;
  max-width: 880px;
  margin: 0 auto clamp(60px, 10vw, 120px);
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.ap-decon__eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #22d3ee;
  margin-bottom: 24px;
  font-weight: 500;
}

.ap-decon__title {
  font-family: 'Clash Grotesk', 'Inter', sans-serif;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: #fff;
}

.ap-decon__title em {
  font-style: normal;
  color: #6b7280;
  display: block;
  font-weight: 400;
}

.ap-decon__sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: #9ca3af;
  max-width: 640px;
  margin: 0 auto;
}

/* main stage: sticky image + scrolling callouts */
.ap-decon__stage {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  z-index: 2;
}

.ap-decon__grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 480px) 1fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: start;
}

.ap-decon__image-wrap {
  position: sticky;
  top: 80px;
  grid-column: 2;
  height: 90vh;
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ap-decon__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 60px rgba(34, 211, 238, 0.15));
}

/* callout columns (left + right) */
.ap-decon__col {
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 14vh, 180px);
  padding-top: 12vh;
  padding-bottom: 12vh;
}

.ap-decon__col--left {
  grid-column: 1;
  align-items: flex-end;
  text-align: right;
}

.ap-decon__col--right {
  grid-column: 3;
  align-items: flex-start;
  text-align: left;
}

.ap-decon__callout {
  max-width: 320px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ap-decon__callout.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ap-decon__num {
  font-family: 'Clash Grotesk', sans-serif;
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
  color: #22d3ee;
  margin-bottom: 12px;
  opacity: 0.35;
  letter-spacing: -0.02em;
}

.ap-decon__heading {
  font-family: 'Clash Grotesk', 'Inter', sans-serif;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 12px;
  color: #fff;
  letter-spacing: -0.01em;
}

.ap-decon__text {
  font-size: 15px;
  line-height: 1.65;
  color: #9ca3af;
  margin: 0 0 16px;
}

.ap-decon__spec {
  display: inline-block;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #22d3ee;
  padding: 6px 12px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 100px;
  background: rgba(34, 211, 238, 0.05);
}

/* closing stats row */
.ap-decon__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 60px);
  max-width: 1100px;
  margin: clamp(60px, 10vw, 120px) auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.ap-decon__stat-num {
  font-family: 'Clash Grotesk', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  line-height: 1;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.ap-decon__stat-num em {
  font-style: normal;
  color: #22d3ee;
}

.ap-decon__stat-label {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b7280;
}

/* mobile */
@media (max-width: 900px) {
  .ap-decon__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ap-decon__image-wrap {
    position: relative;
    top: auto;
    grid-column: 1;
    height: 60vh;
    margin-bottom: 40px;
    order: 0;
  }

  .ap-decon__col--left,
  .ap-decon__col--right {
    grid-column: 1;
    padding: 0;
    gap: 60px;
    align-items: flex-start;
    text-align: left;
  }

  .ap-decon__col--left { order: 1; }
  .ap-decon__col--right { order: 2; }

  .ap-decon__callout {
    max-width: 100%;
  }

  .ap-decon__num {
    font-size: 48px;
  }

  .ap-decon__stats {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
