/* PresentTool™ Storytelling — Shell, loading state, dot-nav, dividers (v3.7.0) */

.story-body {
  background: var(--pt-bg-page);
  color: var(--pt-text);
  font-family: var(--pt-sans);
  margin: 0;
  overflow-x: hidden;
}

/* ───── Loading state ───── */
.story-loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pt-bg-page);
  z-index: 50;
}
.story-loading .story-spinner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--pt-text-muted);
  font-size: 13px;
  font-family: var(--pt-mono);
  letter-spacing: 0.04em;
}

/* ───── Generic section primitive ───── */
.story-section {
  padding: 96px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.story-section--light  { background: var(--pt-surface-1); color: var(--pt-text); }
.story-section--dark   { background: #14120E; color: white; }
.story-section--cream  { background: var(--pt-bg-page); color: var(--pt-text); }
.story-section-kicker {
  font-family: var(--pt-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pt-text-muted);
  margin: 0 0 18px;
}
.story-section-title {
  font-family: var(--pt-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.story-section-body {
  font-family: var(--pt-serif);
  font-size: 19px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--pt-text-muted);
  max-width: 640px;
}

/* ───── Dot-nav ───── */
.story-dotnav {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 30;
}
.story-dotnav-dot {
  position: relative;
  width: 10px; height: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.story-dotnav-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pt-text-subtle);
  transition: transform 0.2s ease, background 0.2s ease;
}
.story-dotnav-dot.is-active::before {
  transform: scale(1.6);
  background: var(--pt-primary);
}
.story-dotnav-dot:hover::before { background: var(--pt-primary); }
.story-dotnav-label {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--pt-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pt-text-muted);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.story-dotnav-dot:hover .story-dotnav-label,
.story-dotnav-dot.is-active .story-dotnav-label { opacity: 1; }
@media (max-width: 768px) {
  .story-dotnav { display: none !important; }
}

/* ───── Dividers ───── */
.story-divider-band--light,
.story-divider-band--dark {
  display: flex;
  justify-content: center;
  padding: 32px 0;
}
.story-divider-band--dark { background: #14120E; }
.story-divider {
  display: block;
  width: 1px; height: 60px;
  background: var(--pt-border-strong);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.9s cubic-bezier(.22,.61,.36,1);
}
.story-divider--on-dark { background: rgba(255,255,255,0.18); }
.story-divider.is-visible { transform: scaleY(1); }

/* ───── PWA install banner ───── */
.story-install-banner {
  position: fixed;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  background: #1f1c1a; color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex; gap: 10px; align-items: center;
  z-index: 1000;
  font-size: 13px; font-family: 'Inter', system-ui, sans-serif;
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
}
.story-install-yes {
  background: var(--pt-secondary); border: 0;
  color: #fff; border-radius: 6px;
  padding: 6px 12px; cursor: pointer; font-weight: 600;
}
.story-install-no {
  background: transparent; border: 0;
  color: rgba(255,255,255,0.6); cursor: pointer; padding: 4px 8px;
}
