/* Transition A — Hero -> Baskets. Authorized 2026-11-01.
   Short fade on the photo only; mobile photo ends before the proof panel. */
#home .hero-background::after {
  --transition-a-color: 255 249 235;
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: clamp(72px, 5.4vw, 104px);
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgb(var(--transition-a-color) / 0%) 0%,
    rgb(var(--transition-a-color) / 12%) 20%,
    rgb(var(--transition-a-color) / 42%) 45%,
    rgb(var(--transition-a-color) / 78%) 72%,
    rgb(var(--transition-a-color) / 100%) 100%
  );
}
@media (max-width: 1024px) {
  #home .hero-background::after {
    --transition-a-color: 251 246 231;
    height: 64px;
  }
  /* Only the last 22px of the existing proof-panel background change tone. */
  #home .hero-proofs {
    background-image: linear-gradient(
      to bottom,
      rgb(255 249 235 / 0%) calc(100% - 22px),
      #fff9eb 100%
    );
  }
}
@media (max-width: 640px) {
  #home .hero-background::after { height: 42px; }
}

/* Transition B — Baskets -> About. Authorized 2026-11-01.
   Fade the scenery at the actual section edge, keeping its repeat-y tiles. */
#baskets .s2-scenery::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: clamp(96px, 9vw, 144px);
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgb(255 249 235 / 0%) 0%,
    rgb(255 249 235 / 12%) 20%,
    rgb(255 249 235 / 40%) 42%,
    rgb(255 249 235 / 74%) 65%,
    rgb(255 249 235 / 94%) 85%,
    #fff9eb 100%
  );
}
@media (max-width: 1024px) {
  #baskets .s2-scenery::after { height: 128px; }
}
@media (max-width: 640px) {
  #baskets .s2-scenery::after { height: 104px; }
}

/* Transition C — About -> How It Works.
   Keep the existing About bottom fade and How top mask; review in context. */

/* Transition D — How It Works -> Order Form.
   Visually accepted by the owner in the 2026-11-01 integration brief.
   The existing background image, lower mask and content geometry stay intact. */
#order .s5-background::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: clamp(136px, 11.1vw, 184px);
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    #f8f5e9 0%,
    rgb(248 245 233 / 97%) 10%,
    rgb(248 245 233 / 84%) 25%,
    rgb(248 245 233 / 57%) 45%,
    rgb(248 245 233 / 28%) 65%,
    rgb(248 245 233 / 7%) 85%,
    rgb(248 245 233 / 0%) 100%
  );
}

@media (max-width: 1024px) {
  #order .s5-background::before { height: 128px; }
}

@media (max-width: 640px) {
  #order .s5-background::before { height: 96px; }
}

/* On wide screens the natural-height How background reaches its clipped edge.
   These 36px fit inside its existing 38px bottom padding, below the van box. */
@media (min-width: 1600px) {
  #how::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: 36px;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgb(248 245 233 / 0%),
      rgb(248 245 233 / 50%) 50%,
      #f8f5e9
    );
  }
}
