/* ============================================================
   BLOG-TEMPO.CSS — Jo-Ha-Kyū tempo classes + void + reveal
   The Coral and the Polyp — Blog Post Architecture

   Jo:  slow, formal entry — generous whitespace, deliberate pacing
   Ha:  breaking, development — tighter, accelerating rhythm
   Kyū: rapid conclusion — compressed, fast delivery
   ============================================================ */

/* ── Tempo Variables ── */
.tempo-jo {
  --paragraph-spacing: 1.5rem;
  --section-padding-top: 5rem;
  --section-padding-bottom: 5rem;
  --section-padding-side: 2rem;
}

.tempo-ha {
  --paragraph-spacing: 1.2rem;
  --section-padding-top: 4rem;
  --section-padding-bottom: 4rem;
  --section-padding-side: 2rem;
}

.tempo-kyu {
  --paragraph-spacing: 1rem;
  --section-padding-top: 3rem;
  --section-padding-bottom: 3rem;
  --section-padding-side: 2rem;
}

/* ── Apply tempo to sections ── */
.tempo-jo,
.tempo-ha,
.tempo-kyu {
  padding: var(--section-padding-top) var(--section-padding-side)
    var(--section-padding-bottom);
}

.tempo-jo p {
  margin-bottom: var(--paragraph-spacing);
}
.tempo-ha p {
  margin-bottom: var(--paragraph-spacing);
}
.tempo-kyu p {
  margin-bottom: var(--paragraph-spacing);
}

/* ── Section Intensity ──
   Background subtly shifts across the post arc.
   Jo sections: pure dark. Ha: barely perceptible warmth. Kyū: fading.
*/
.tempo-jo {
  background: var(--bg);
}

.tempo-ha {
  background: linear-gradient(
    180deg,
    var(--bg),
    rgba(14, 16, 23, 1),
    var(--bg)
  );
}

.tempo-kyu {
  background: var(--bg);
}

/* ── Void Section (Persian Carpet Break) ──
   The pattern fracture. Visually distinct from everything else.
   Violet tint signals "we crossed a threshold."
   Mandatory: exactly one per post.
*/
.void-section {
  background: linear-gradient(
    180deg,
    var(--bg),
    rgba(107, 79, 143, 0.06),
    var(--bg)
  );
  padding: 5rem 2rem;
}

/* ── Scroll Reveal ──
   Applied to sections, callouts, cards, case studies.
   Elements fade up on scroll intersection.
*/
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Staggered Reveal for Grid Children ── */
.principle-grid .reveal:nth-child(1) {
  transition-delay: 0s;
}
.principle-grid .reveal:nth-child(2) {
  transition-delay: 0.1s;
}
.principle-grid .reveal:nth-child(3) {
  transition-delay: 0.2s;
}
.principle-grid .reveal:nth-child(4) {
  transition-delay: 0.3s;
}
.principle-grid .reveal:nth-child(5) {
  transition-delay: 0.4s;
}
.principle-grid .reveal:nth-child(6) {
  transition-delay: 0.5s;
}
.principle-grid .reveal:nth-child(7) {
  transition-delay: 0.6s;
}

/* ── Responsive Tempo ── */
@media (max-width: 600px) {
  .tempo-jo {
    --section-padding-top: 3rem;
    --section-padding-bottom: 3rem;
    --section-padding-side: 1.2rem;
  }
  .tempo-ha {
    --section-padding-top: 2.5rem;
    --section-padding-bottom: 2.5rem;
    --section-padding-side: 1.2rem;
  }
  .tempo-kyu {
    --section-padding-top: 2rem;
    --section-padding-bottom: 2rem;
    --section-padding-side: 1.2rem;
  }
  .void-section {
    padding: 3rem 1.2rem;
  }
}
