/* One contour and one scroll amplitude for banners and section boundaries. */
:root { --section-curve-depth: clamp(30px, 3vw, 60px); }
.hero { --hero-edge-height: var(--section-curve-depth); }
body svg.section-curve {
  /* Override the older per-page heights; keep their next-section fill colors. */
  height: var(--section-curve-depth) !important;
  display: block;
  bottom: 0;
  overflow: visible;
  transform: scaleY(var(--curve-progress, 1));
  transform-origin: center bottom;
  pointer-events: none;
}
/* A zero-height sibling paints across both surfaces, outside their clipping
   layers. Its overlap stays constant while the SVG curve becomes flatter. */
.section-curve-joint {
  display: block;
  position: relative;
  height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 0;
  z-index: 5;
  overflow: visible;
  pointer-events: none;
}
.section-curve-joint::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 3px;
  pointer-events: none;
  background: var(--curve-joint-color);
}
/* Preserve the existing hero/content adjacency despite the paint-only joint. */
.hero + .section-curve-joint + .products { margin-top: 0; border-radius: 0; }
.section-curve .curve-wide { display: block; }
.section-curve .curve-narrow { display: none; }
@media (max-width: 767px), (max-width: 950px) and (max-height: 500px) and (pointer: coarse) {
  :root { --section-curve-depth: 24px; }
  .section-curve .curve-wide { display: none; }
  .section-curve .curve-narrow { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  body svg.section-curve { transform: none; }
}
