/* Background only: preserve the original closing/footer content, flow and spacing.
   Poppy Field (Giverny), Claude Monet, 1890–91. Public domain / CC0.
   Local decorative artwork: 843 × 547. Credits: assets/art/credits.json. */
.closing-scene{
  --scene-readability:color-mix(in srgb,var(--color-ground) 62%,transparent);
  background-color:var(--color-ground);
  background-image:
    linear-gradient(to bottom,var(--color-ground) 0,var(--scene-readability) 96px,var(--scene-readability) 100%),
    url('assets/art/poppy-field-giverny.jpg');
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center,center 56%;
}
/* No text panels, scenic extension, or extra footer height. The original
   .closing and .site-footer rules continue to own placement and padding. */
.closing-scene .site-footer{
  background:transparent;
}
.closing-scene .closing .eyebrow,
.closing-scene .release-note,
.closing-scene .footer-inner small{
  color:var(--color-ink);
}
/* Phone: the closing invitation keeps its original plain background.
   The painting sits only behind the existing footer row and links. */
@media(max-width:767px){
  .closing-scene{
    background-image:none;
  }
  .closing-scene .site-footer{
    background-color:var(--color-ground);
    background-image:
      linear-gradient(to bottom,color-mix(in srgb,var(--color-ground) 72%,transparent),var(--scene-readability)),
      url('assets/art/poppy-field-giverny.jpg');
    background-repeat:no-repeat;
    background-size:cover;
    background-position:center,center 66%;
  }
  .closing-scene .closing .eyebrow,
  .closing-scene .release-note{
    color:var(--color-ink-dim);
  }
}
/* Phone-only painted edge: an irregular alpha silhouette fades the image into
   the plain closing section. The mask never clips text or changes footer flow. */
@media(max-width:767px){
  .closing-scene .site-footer.footer-brush{
    position:relative;
    isolation:isolate;
    background:var(--color-ground);
    border-top-color:transparent;
  }
  .closing-scene .site-footer.footer-brush::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    pointer-events:none;
    z-index:-1;
    background-image:
      linear-gradient(to bottom,color-mix(in srgb,var(--color-ground) 72%,transparent),var(--scene-readability)),
      url('assets/art/poppy-field-giverny.jpg');
    background-size:cover;
    background-position:center,center 66%;
    background-repeat:no-repeat;
    -webkit-mask-image:url('assets/brush-edge.svg');
    mask-image:url('assets/brush-edge.svg');
    -webkit-mask-size:100% 100%;
    mask-size:100% 100%;
    -webkit-mask-repeat:no-repeat;
    mask-repeat:no-repeat;
  }
}
