#our-community-section {
    background-image: url('../assets/our-community/bg-image.webp');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    /* The artwork stretches to the section height, and its top wave dips to
       roughly 13% of that height at the centre — exactly where the Gallery
       eyebrow sits. Push the header down past the crest so it reads on the
       pale field instead of on the purple curve. */
    padding-top: 96px;
}

@media (min-width: 1024px) {
    #our-community-section {
        padding-top: 112px;
    }
}

/* The artwork is landscape and keeps all of its drawn waves in the bottom
   third. Stacked on a phone the section is far taller than it is wide, so
   cover crops to a narrow middle column and only that bottom band ever lands
   on screen — everything above the last card reads as flat lavender. The
   mobile file is the same artwork turned 90deg anticlockwise, which stands the
   wave band up the right edge so it runs the full height of the section. */
#animation-studio-section {
    background-image: url('../assets/animation-studio/bg-image-mobile.webp');
    background-size: cover;
    /* Not `right`: the deepest purple sits on the outermost edge, and pulling
       all of it on screen washes out the accent word in the heading. Backing
       off to 68% keeps the band down the right without that darkest stripe. */
    background-position: 68% center;
    background-repeat: no-repeat;
}

@media (min-width: 768px) {
    #animation-studio-section {
        background-image: url('../assets/animation-studio/bg-image.webp');
        background-position: center bottom;
    }
}

#virtual-guide-section {
    background-image: url('../assets/virtual-guide/virtual-bg.webp');
    background-size: cover;
    background-position: center TOP;
    background-repeat: no-repeat;
}

/* Same story as the Animation Studio section above: the artwork is landscape,
   its colour lives in the sand band along the bottom, and a stacked phone
   crops it to a narrow middle column where none of that band survives. The
   mobile file is the artwork turned 90deg anticlockwise, standing that band
   up the right edge for the full height of the section. */
#our-services-section {
    background-image: url('../assets/our-services/our-services-bg-mobile.webp');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}

@media (min-width: 768px) {
    #our-services-section {
        background-image: url('../assets/our-services/our-services-bg-old.webp');
        background-position: center 15%;
    }
}

#our-products-section {
    background-image: url('../assets/our-products/bg-image.webp');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

#workshops-section {
    background-image: url('../assets/workshops/bg-image.webp');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

/* Side by side the section is close to the artwork's own 3:2, so stretching it
   keeps the drawn props parked in the corners. Taller stacked layouts crop
   instead — stretching there would smear them. */
@media (min-width: 1024px) {
    #workshops-section {
        background-size: 100% 100%;
        background-position: center;
    }
}

/* ── Wave seams ─────────────────────────────────────────────────────────────
   Each of these backdrops stops on its own bottom edge, so every boundary was a
   dead straight line across the full width where one artwork's colour became
   the next one's.

   Rather than paint a matching colour under each join — which cannot be done
   reliably, since these backdrops are `cover` and centre-crop to a different
   slice at every viewport size — the lower section is pulled up over the one
   above it and a wave is cut out of its own top edge. What shows through the
   cut-out is the section above, its real artwork at its real crop, so the two
   sides match by construction at any width.

   Mechanics: a transparent top border reserves the band (`background-origin`
   puts the backdrop under it, so content is untouched), a negative margin of
   the same size lifts it over the section above, and the mask is two layers —
   the wave over the band, solid over everything below, unioned by
   `mask-composite`'s default `add`. The 1px closes a rounding gap between them.

   Kept shallow on purpose: each curve is one long swell of low amplitude, so it
   reads as the edge softening rather than as a decorative band. Each path is a
   single `C` followed by `S`, which mirrors the previous control point, so the
   curve cannot kink. Phase alternates down the page so no two repeat. */
#our-services-section,
#workshops-section,
#our-community-section,
#animation-studio-section,
#locations-section {
    --seam-h: 28px;
    border-top: var(--seam-h) solid transparent;
    margin-top: calc(var(--seam-h) * -1);
    background-origin: border-box;
    -webkit-mask-image: var(--seam-shape), linear-gradient(#000, #000);
    -webkit-mask-size: 100% var(--seam-h), 100% calc(100% - var(--seam-h) + 1px);
    -webkit-mask-position: center top, center bottom;
    -webkit-mask-repeat: no-repeat, no-repeat;
    mask-image: var(--seam-shape), linear-gradient(#000, #000);
    mask-size: 100% var(--seam-h), 100% calc(100% - var(--seam-h) + 1px);
    mask-position: center top, center bottom;
    mask-repeat: no-repeat, no-repeat;
}

@media (min-width: 768px) {
    #our-services-section,
    #workshops-section,
    #our-community-section,
    #animation-studio-section,
    #locations-section {
        --seam-h: 52px;
    }
}

#our-services-section {
    --seam-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 100' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 50 C 320 72 640 72 960 50 S 1600 28 1920 50 L1920 100 L0 100Z'/%3E%3C/svg%3E");
}

#workshops-section {
    --seam-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 100' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 52 C 320 28 640 28 960 52 S 1600 76 1920 52 L1920 100 L0 100Z'/%3E%3C/svg%3E");
}

#our-community-section {
    --seam-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 100' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 48 C 320 71 640 71 960 48 S 1600 25 1920 48 L1920 100 L0 100Z'/%3E%3C/svg%3E");
}

#animation-studio-section {
    --seam-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 100' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 52 C 320 30 640 30 960 52 S 1600 74 1920 52 L1920 100 L0 100Z'/%3E%3C/svg%3E");
}

#locations-section {
    --seam-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 100' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 50 C 320 74 640 74 960 50 S 1600 26 1920 50 L1920 100 L0 100Z'/%3E%3C/svg%3E");
}

/* Room at the foot of each section above for the band to sit in. Our Products
   ends 10px under its card and Virtual Guide flush against its own, so without
   this the wave would be cut straight across the card rather than across empty
   backdrop. Animation Studio already carries enough of its own. */
#our-products-section,
#workshops-section,
#virtual-guide-section {
    padding-bottom: 40px;
}

@media (min-width: 768px) {
    #our-products-section,
    #workshops-section,
    #virtual-guide-section {
        padding-bottom: 68px;
    }
}

/* ── A second swell in the hills, above the Gallery seam ────────────────────
   The cut alone left the hills ending on one lonely curve. This adds a second
   one just above it, so the green steps down into the lilac the way the
   artwork's own overlapping hills are drawn.

   It is a wash of white over the artwork rather than a block of colour, which
   is the whole point: a painted green can only ever match one crop, and this
   backdrop is `cover` below lg — every viewport size shows a different slice,
   and even at lg the hills shade across the last 50-odd pixels, so a colour
   sampled from the bottom row drifts from the green it sits under. Taking the
   real pixels and lifting them keeps the hue exactly right at any width,
   because it *is* the same green, only catching more light.

   It lives on Workshops, not Gallery: Gallery's own seam mask clips everything
   above the cut, so a band there could never reach up into the hills. Negative
   z-index puts it over the backdrop but under the stats. */
#workshops-section::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.26);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 100' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 42 C 320 22 640 22 960 42 S 1600 62 1920 42 L1920 100 L0 100Z'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 100' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 42 C 320 22 640 22 960 42 S 1600 62 1920 42 L1920 100 L0 100Z'/%3E%3C/svg%3E");
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    pointer-events: none;
    z-index: -1;
}

@media (min-width: 768px) {
    #workshops-section::after {
        height: 118px;
    }
}
