html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.float-slow { animation: float 8s ease-in-out infinite; }
.float-fast { animation: float 6s ease-in-out infinite; }

.prose-content h2 {
  font-weight: 700;
  font-size: 1.5rem;
  color: #0f3d3e;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
.prose-content h3 {
  font-weight: 600;
  font-size: 1.25rem;
  color: #0f3d3e;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.prose-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: #475569;
}
.prose-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #475569;
}
.prose-content li { margin-bottom: 0.4rem; }
.prose-content strong { color: #0f3d3e; }
.prose-content a { color: #14746f; text-decoration: underline; }

/* Before/After slider */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1rem;
  cursor: ew-resize;
  user-select: none;
}
.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}
.ba-slider .ba-after {
  clip-path: inset(0 0 0 var(--pos, 50%));
}
.ba-slider .ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 4px;
  background: white;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
}
.ba-slider .ba-handle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 40px; height: 40px;
  background: white;
  border-radius: 9999px;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Admin drag handle cursor */
.admin-drag-row { cursor: move; }
.admin-drag-row.dragging { opacity: 0.4; }
