/* ===== POLYGRAPH PAGE - Reveal Animations ===== */

.poly-sections {
  padding: 2rem 0 6rem;
  background: var(--color-bg);
}

.poly-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-border);
  max-width: 820px;
  margin: 0 auto;
}
.poly-section:last-child {
  border-bottom: none;
}

/* Heading with scanline */
.poly-heading {
  margin-bottom: 2rem;
  position: relative;
}

.poly-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  color: var(--color-heading);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    text-shadow 0.6s ease;
}

/* Glow effect when active */
.poly-section.is-revealed .poly-title {
  opacity: 1;
  transform: translateY(0);
  text-shadow: 0 0 30px rgba(198, 40, 40, 0.08);
}

/* Scanning bar under heading */
.poly-scanline {
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    rgba(198, 40, 40, 0.1)
  );
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.poly-section.is-revealed .poly-scanline {
  width: 100%;
}

/* Body text - each line reveals separately */
.poly-body {
}

.poly-text {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.poly-text:last-child {
  margin-bottom: 0;
}
.poly-text.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tags section */
.poly-tags-section {
  padding: 0 0 6rem;
  background: var(--color-bg);
}
.poly-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 820px;
  margin: 0 auto;
}
.poly-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid rgba(198, 40, 40, 0.2);
  padding: 0.4rem 0.85rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.poly-tag:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
