/* Act 05 · Flatworms, roundworms and segmented worms. Footage stage, loops and photo styles are shared from act 04. */
@import url("bio1104-act04.css");

/* the roundworm sketch */
.b4-rw { width: 100%; max-width: 520px; }
.b4-rw svg { width: 100%; height: auto; display: block; }
.b4-worm { fill: none; stroke: var(--xp-ecto); stroke-width: 14; stroke-linecap: round; stroke-opacity: .35; }
.b4-gutline { fill: none; stroke: var(--xp-endo); stroke-width: 2; stroke-linecap: round; }
.b4-phar { fill: color-mix(in srgb, var(--xp-meso) 60%, transparent); stroke: var(--xp-meso); }
.b4-pore { fill: var(--bone); }

/* a squeezing segment */
.b4-squeeze { width: 100%; max-width: 520px; }
.b4-squeeze svg { width: 100%; height: auto; display: block; overflow: hidden; }
.b4-segbody { fill: color-mix(in srgb, var(--xp-meso) 22%, transparent); stroke: var(--xp-meso); stroke-width: 1.5; }
.b4-segring { stroke: var(--xp-ecto); stroke-opacity: .6; stroke-width: 1.5; }
.b4-seg { transform-box: fill-box; transform-origin: center; }
@keyframes b4-squeeze { 0%, 100% { transform: scale(.82, 1.12); } 50% { transform: scale(1, .7); } }
html.xp-js:not(.xp-reduced) .b4-seg { animation: b4-squeeze 2.6s cubic-bezier(.62,.05,.01,.99) infinite; }
@media (prefers-reduced-motion: reduce) { .b4-seg { animation: none !important; } }

/* a portrait photo in a stack keeps to the screen */
.b4-levels .b4-lv.b4-tall { width: min(100%, calc(44svh * var(--r))); justify-self: center; }
.xs-split .xs-vis .b4-wide { width: 100%; }
