/* The footer: a painted field under a drifting balloon, birds and petals. Colours follow the sky the maker last showed. */
.site-foot { --tint: #F7DAD3; --leaf: #F2A98F; --field: url(/images/hero/near-1280.webp); --field-2x: url(/images/hero/near-2560.webp);
    position: relative; z-index: 1; margin-top: clamp(48px, 8vw, 96px); overflow: hidden; color: #2D0358; font: 400 .92rem/1.6 Poppins, system-ui, sans-serif; }
html[data-foot-sky="sakura"] .site-foot { --tint: #F9E3E8; --leaf: #F4B6C6; --field: url(/images/hero/themes/sakura-fore-1280.webp); --field-2x: url(/images/hero/themes/sakura-fore-2560.webp); }
html[data-foot-sky="lavender"] .site-foot { --tint: #E9E1F2; --leaf: #C2AAE3; --field: url(/images/hero/themes/lavender-fore-1280.webp); --field-2x: url(/images/hero/themes/lavender-fore-2560.webp); }
html[data-foot-sky="matcha"] .site-foot { --tint: #E3EBDC; --leaf: #A5C98A; --field: url(/images/hero/themes/matcha-fore-1280.webp); --field-2x: url(/images/hero/themes/matcha-fore-2560.webp); }
html[data-foot-sky="sunflower"] .site-foot { --tint: #F7EBCB; --leaf: #F2C14E; --field: url(/images/hero/themes/sunflower-fore-1280.webp); --field-2x: url(/images/hero/themes/sunflower-fore-2560.webp); }
html[data-foot-sky="seaside"] .site-foot { --tint: #DCEBF2; --leaf: #FFFFFF; --field: url(/images/hero/themes/seaside-fore-1280.webp); --field-2x: url(/images/hero/themes/seaside-fore-2560.webp); }

.foot-card { position: relative; z-index: 3; max-width: 760px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); text-align: center; }
.foot-line { margin: 0 0 12px; font: 600 1.05rem/1.4 Poppins, system-ui, sans-serif; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 0 0 12px; }
.foot-links a { color: inherit; text-decoration: none; font-weight: 600; }
.foot-links a:hover, .foot-links a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.foot-fine { margin: 6px auto; max-width: 62ch; font-size: .8rem; opacity: .85; }
.foot-fine a { color: inherit; }
.foot-motion { margin-top: 8px; font: 600 .78rem/1 Poppins, system-ui, sans-serif; color: inherit; background: rgba(255, 255, 255, .6); border: 1px solid currentColor; border-radius: 999px; padding: 7px 14px; cursor: pointer; }

/* the sky between the links and the field */
.foot-sky { position: relative; height: clamp(150px, 20vw, 220px); margin-top: -8px; background: linear-gradient(to bottom, transparent, var(--tint) 85%); overflow: hidden; }
.foot-drift { position: absolute; left: 0; bottom: 38%; animation: foot-drift 90s linear infinite; will-change: transform; }
.foot-balloon { display: block; width: clamp(40px, 5vw, 60px); height: auto; animation: foot-bob 6s ease-in-out infinite; filter: drop-shadow(0 10px 10px rgba(80, 40, 50, .18)); }
.foot-birds { position: absolute; right: 0; top: 18%; width: clamp(80px, 11vw, 130px); fill: none; animation: foot-fly 55s linear infinite; will-change: transform; }
.foot-birds .bird { stroke: #5E4A5E; stroke-width: 3; stroke-linecap: round; transform-box: fill-box; transform-origin: center; animation: foot-flap 1.1s ease-in-out infinite; }
.foot-birds .b2 { animation-delay: -.4s; } .foot-birds .b3 { animation-delay: -.8s; }
.petal { position: absolute; top: -12px; left: var(--x, 10%); width: var(--s, 10px); height: var(--s, 10px); background: var(--leaf); border-radius: 70% 0 70% 0; opacity: .85; animation: foot-fall var(--t, 12s) linear infinite; animation-delay: var(--d, 0s); }
.petal:nth-child(3)  { --x: 6%;  --s: 9px;  --t: 13s; --d: -2s; }   .petal:nth-child(4)  { --x: 16%; --s: 12px; --t: 16s; --d: -9s; }
.petal:nth-child(5)  { --x: 27%; --s: 8px;  --t: 11s; --d: -5s; }   .petal:nth-child(6)  { --x: 38%; --s: 11px; --t: 15s; --d: -12s; }
.petal:nth-child(7)  { --x: 49%; --s: 9px;  --t: 14s; --d: -7s; }   .petal:nth-child(8)  { --x: 61%; --s: 13px; --t: 17s; --d: -1s; }
.petal:nth-child(9)  { --x: 72%; --s: 8px;  --t: 12s; --d: -10s; }  .petal:nth-child(10) { --x: 83%; --s: 11px; --t: 15s; --d: -4s; }
.petal:nth-child(11) { --x: 91%; --s: 9px;  --t: 13s; --d: -8s; }   .petal:nth-child(12) { --x: 55%; --s: 7px;  --t: 18s; --d: -14s; }

.foot-field { position: relative; z-index: 2; margin-top: -1px; aspect-ratio: 1280 / 186;
    background-image: var(--field), linear-gradient(var(--tint), var(--tint)); background-size: 100% 100%; background-position: bottom center; background-repeat: no-repeat; }   /* the sky colour continues behind the painting, so no white shows through */
@media (min-width: 1000px) { .foot-field { background-image: var(--field-2x), linear-gradient(var(--tint), var(--tint)); } }
.foot-copy { position: relative; z-index: 3; margin: 0; padding: 16px clamp(16px, 4vw, 48px) 22px; background: #2D0358; color: #F3EAFB; text-align: center; font-size: .82rem; }

@keyframes foot-drift { from { transform: translateX(-12vw); } to { transform: translateX(105vw); } }
@keyframes foot-bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-9px) rotate(1.5deg); } }
@keyframes foot-fly { from { transform: translateX(10vw); } to { transform: translateX(-110vw); } }
@keyframes foot-flap { 50% { transform: scaleY(.45) translateY(2px); } }
@keyframes foot-fall { 0% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(14px, 40px) rotate(90deg); } 50% { transform: translate(-6px, 85px) rotate(200deg); } 75% { transform: translate(12px, 130px) rotate(290deg); } 100% { transform: translate(0, 190px) rotate(360deg); } }
@keyframes foot-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Loud: no painted field — a lime marquee that shouts */
.foot-marquee { display: none; overflow: hidden; background: #D7FF3A; color: #0B0710; margin-bottom: 28px; }
.foot-track { display: inline-flex; gap: 1.6rem; padding: 12px 0; white-space: nowrap; font: 400 clamp(1.4rem, 3vw, 2.2rem)/1 "Anton", Impact, sans-serif; text-transform: uppercase; letter-spacing: .04em; animation: foot-marquee 30s linear infinite; }
[data-vibe="loud"] .site-foot { color: #C8BCDB; margin-top: 56px; }
[data-vibe="loud"] .foot-marquee { display: block; }
[data-vibe="loud"] .foot-sky, [data-vibe="loud"] .foot-field { display: none; }
[data-vibe="loud"] .foot-line { color: #fff; }
[data-vibe="loud"] .foot-links a:hover { color: #D7FF3A; }
[data-vibe="loud"] .foot-motion { background: transparent; color: #D7FF3A; }
[data-vibe="loud"] .foot-copy { background: #0B0710; color: #C8BCDB; border-top: 1px solid #3A2950; margin-top: 28px; }

/* motion: only while the footer is on screen; paused on request; still for people who prefer reduced motion */
.site-foot:not(.is-live) *, html[data-motion="reduce"] .site-foot * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
    .site-foot * { animation: none !important; }
    .petal { display: none; }
    .foot-drift { left: 70%; } .foot-birds { right: 12%; } .foot-motion { display: none; }
}

.foot-made { position: relative; z-index: 3; margin: 0; padding: 12px clamp(16px, 4vw, 48px) 0; background: #2D0358; text-align: center; font-size: .8rem; }
.foot-made a { color: #D9C9F5; text-underline-offset: 3px; }
.foot-made + .foot-copy { padding-top: 6px; }
[data-vibe="loud"] .foot-made { background: #0B0710; border-top: 1px solid #3A2950; margin-top: 28px; }
[data-vibe="loud"] .foot-made + .foot-copy { border-top: 0; margin-top: 0; }
