Main

The development of multicellular organisms proceeds through a series of morphogenetic events that sculpt tissue morphology. Morphogenesis in animals starts during gastrulation, when simple cell clusters or sheets are transformed into complex tissues with several layers and curved shapes. In the early embryo, several morphogenetic events typically occur simultaneously in a mechanical continuum that lacks clear compartmentalization, raising the question of how forces emanating from one process may influence another. Although forces exerted externally have been shown to be co-opted to facilitate local deformation4,5,6,7,8,9, in cases where inter-tissue conflicts lead to the accumulation of mechanical stresses, it is unclear whether specific mechanisms evolved to mitigate potentially detrimental effects. Earlier studies are rare given the need for a well-resolved phylogeny, broad sampling and documentation from representative clades, and functional assessment through genetic and mechanical perturbation.

Gastrulation in the fruit fly Drosophila melanogaster (Drosophilidae) begins with concurrent morphogenetic movement of its three germ layers10,11. At gastrulation onset, mesoderm internalizes through ventral furrow formation, endoderm internalization begins with posterior midgut (PMG) invagination and at the boundary between the head and the trunk, ectoderm forms a deep epithelial fold called the cephalic furrow (CF)12,13,14. These morphogenetic movements are followed by germband extension (GBE) in which the trunk ectoderm undergoes convergent-extension to elongate its anterior–posterior axis15. Coincident with GBE, mitosis occurs in a spatially stereotypical and temporally ordered manner in locally semi-synchronous domains called the mitotic domains (MD), with four of five located in the head ectoderm16. The first 30 min of D. melanogaster gastrulation is thus characterized by temporally overlapping morphogenetic events. Among these, the CF stands out as a transient epithelial fold that forms and retracts back to the embryonic surface, giving rise to no internal cell type or tissue structure13. CF positioning is both precise and robust12,17, and yet its function remains unknown. One proposal is that the CF functions as an anterior barrier to guide the long-range, posterior-directed flow of GBE, given that the CF is formed at the head–trunk boundary18. This would predict that the CF is unique to insects that undergo GBE. A contrasting hypothesis posits deep conservation between the CF and the vertebrate head–trunk boundary on the basis of homologous gene expression19. Neither suggestion has been put to rigorous tests, however.

CF is a morphogenetic innovation

To study CF evolution, we combined sampling and imaging of phylogenetically informative species with a survey of published literature covering the entire dipteran phylogeny20 (Fig. 1a–h and Extended Data Figs. 1 and 2). We found that CF is present only in cyclorrhaphan and not in non-cyclorrhaphan flies. This is in contrast to GBE, which is conserved across all dipteran species thus far examined. Therefore, the CF seems to be an evolutionary novelty and a synapomorphic trait of Cyclorrhapha.

Fig. 1: The CF is an evolutionary innovation at the head–trunk interface of flies.
figure 1

a, Dipteran phylogeny showing main fly families20, marking CF presence or absence (filled or empty boxes), indicating CF emergence in the stem group of Cyclorrhapha (arrow). Families with evaluated (light shading) and studied (dark shading) species. Letters in parentheses correspond to the panels on the right (see also Extended Data Fig. 1). b, Left, schematics summarizing the spatio-temporal characteristics of CF formation relative to other morphogenetic events (dotted line, head–trunk boundary; grey patch in the head, mitotic activity; curved arrow, GBE; black arrow, PMG); inset, cellular or supracellular morphogenetic changes; or right, genetic patterning (btd and eve expression overlap). ch, Representative embryos from selected species, fixed at comparable stages using nuclear staining (DRAQ5): D. melanogaster (n = 13) (c), M. abdita (n = 30) (d), Hermetia illucens (Stratiomyidae) (n = 57) (e), Coboldia fuscipes (Scatopsidae) (n = 24) (f), C. riparius (n = 24) (g) and C. albipunctata (n = 13) (h). Arrows, PMG; asterisks, CF. il, Maximum projections of Btd (magenta) and Eve (green) expression patterns by means of immunofluorescence in D. melanogaster (n = 3) (i), fluorescent in situ hybridization in M. abdita (n = 3) (j) and HCR-based in situ hybridization in C. riparius in embryos before (n = 10) (k) or after (n = 10) (l) onset of gastrulation (Supplementary Note 1), with nucleus (grey) labelled using DAPI (i,j) or DRAQ5 (k,l). Partial overlap of expression patterns or lack thereof is shown by solid or dashed yellow lines, respectively. Numbers denote eve stripes. m,n, Mesoscopic view of head–trunk boundary region in D. melanogaster (n = 6) (m) and C. riparius (n = 5) (n) embryos before (t = −3 min, left) and at gastrulation onset (right). Arrow, apical cell area reduction; LUT bar, cell area the colour-code. Scale bars, 25 µm (c,d,fl), 50 µm (e) and 10 µm (m,n).

CF formation in D. melanogaster requires overlapping expression of the transcription factors Buttonhead (Btd) and Even-skipped (Eve) (Fig. 1i), which combinatorially specify the CF initiating cells12,13. Similarly, Megaselia abdita (Phoridae) forms the CF (Fig. 1d) and expresses btd and eve in an overlapping pattern (Fig. 1j), suggesting the cyclorrhaphan stem group as the most recent possible origin of CF formation (Fig. 1a). By contrast, the non-cyclorrhaphan midge Chironomus riparius (Chironomidae), expresses its btd and eve orthologues (Cri-btd and Cri-eve) (Extended Data Fig. 3a) in non-overlapping regions (Fig. 1k,l and Supplementary Note 1), with a gap of one or two nuclei. The absence of an overlap between btd and eve expression has also been reported in the companion study21 in two other non-cyclorrhaphan flies, Clogmia albipunctata (Psychodidae) and Anopheles stephensi (Culicidae). Together, these data suggest that non-cyclorrhaphan flies lack the positional code necessary for CF initiation.

A direct comparison of gastrulation shows unequivocally that C. riparius lacks CF formation. In D. melanogaster, the CF appears at ~33% embryo length, concurrent with PMG invagination12, and persists for about 90 min before full retraction. Live imaging of C. riparius embryos shows no infoldings at the head–trunk boundary, from the blastoderm stage to the end of GBE (Extended Data Fig. 3b,c). At the cellular scale, CF onset is characterized by a decrease in apical cell surface area in one or two columns of initiating cells in D. melanogaster12,17 (Fig. 1m; colour-coded in the region between ~28% and 39% embryo length in Extended Data Fig. 3d). In C. riparius, no such apical surface area decrease was observed between ~28% and 52% embryo length (Fig. 1n and Extended Data Fig. 3e), and there was no cell internalization, in contrast to D. melanogaster in which about five columns of cells from the flanking head and trunk ectoderm become incorporated into the CF (Extended Data Fig. 3b,c and Supplementary Video 1). In summary, the CF is a morphogenetic innovation originating in the cyclorrhaphan stem group, concomitant with a gain of overlapping expression between btd and the first stripe of eve (eve1). By contrast, genetic and cellular processes underlying the CF are absent in C. riparius and presumably in all other non-cyclorrhaphan flies.

CF loss causes head–trunk buckling

To explain how the CF evolved, we analysed its role during development. Because both btd and eve are expressed in many non-CF cells and their mutants cause substantial developmental defects outside the head–trunk boundary (see FlyBase links in Methods for phenotypic data associated with btdAX (ref. 22) and eveR13 (ref. 23)), we engineered flies that specifically lack eve1 expression to block CF formation with minimal perturbation of genetic patterning elsewhere. We introduced a full-length eve genomic construct that lacks enhancer elements conferring eve1 expression24,25 into an eve null genetic background to yield the eve1KO line and confirmed its lack of eve1 expression (Extended Data Fig. 4a,b and Methods). At gastrulation onset, these embryos lack planar polarized non-muscle Myosin-II (MyoII) accumulation in cells predicted to initiate the CF12,26 and do not form the CF (Fig. 2a,b and Supplementary Video 2; but see Extended Data Fig. 4c,d). Although lacking the CF, the epithelium undergoes out-of-plane deformation at the head–trunk boundary at a later time point (Fig. 2c,d and Supplementary Video 2). We referred to such deformation as ‘head–trunk buckling’ because it differs from the CF in several ways that suggest it results from passive mechanical instabilities, not from genetically patterned active deformation. First, as mentioned above, the deformation is not associated with spatially confined, planar polarized Myosin enrichment. Second, unlike the CF initiating cells that shorten gradually, cells that initiate buckling move inwards abruptly, creating a broad indentation rather than a narrow cleft as seen in the CF (Fig. 2a,b and Supplementary Video 2). Third, head–trunk buckling occurs ~9.4 min after the onset of PMG invagination, in contrast to CF initiation that is concurrent with PMG invagination (Fig. 2g and Supplementary Video 2). Lastly, the initiating position of buckling varies along the dorso-ventral axis (Extended Data Fig. 4e), differing from the CF, which typically starts laterally and spreads dorsally and ventrally12,26. Of note, similar buckling also occurs in classic eve and btd mutants (Fig. 2e–g and Supplementary Video 3), as shown in previous and current reports12,13,21, permitting the use of eve or btd mutants, or global RNA interference (RNAi) knockdown to induce head–trunk buckling. In addition to the head–trunk buckling, we observed buckling-like deformations elsewhere in the head region (Extended Data Fig. 5d), consistent with data reported in ref. 21. These deformations are more variable and occur at lower frequencies, contrasting with the fully penetrant head–trunk buckling. Although all observed bucklings are probably manifestations of mechanical instabilities related to the accumulation of compressive stress, we focused primarily on head–trunk buckling in the following analysis to show the functional role and evolutionary origin of the CF.

Fig. 2: Genetic or optogenetic blockage of CF results in tissue buckling.
figure 2

a,b, Time-lapse of control (eve1KO/+, n = 3) (a) or eve1KO (n = 4) (b) embryos expressing MyoII-mKate2. Lateral surface projections (top) of the anterior region and corresponding z-reslices (bottom). Dashed rectangle, planar polarized MyoII accumulation; asterisks, surface indentation of head–trunk buckling. cf, Time-lapse of control (Gap43-mCherry/+, n = 6) (c), eve1KO (n = 3) (d), btdAX (n = 5) (e) or eveR13 (n = 6) (f) embryos, showing lateral surface projections (c1–f1 and c3–f3), enlarged CF region views (c2–f2, boxed areas in c1–f1) and z-reslices (c4–f4). g, Timing of CF onset or head–trunk buckling relative to gastrulation onset. n = 6 (control), n = 8 (eve1KO), n = 5 (btdAX), n = 5 (eveR13), n = 4 (Sham-DNRho1) and n = 6 (Opto-DNRho1). One-way analysis of variance (ANOVA) Tukey’s post hoc test. ****P < 0.0001 (eve1KO, P = 0.00000017; btdAX, P = 0.00000009; eveR13, P = 0.000000002 compared with control). Mann–Whitney U-test (two-sided), *P = 0.011. Each dot represents an embryo, horizontal lines are the median, boxes show the interquartile range and whiskers mark the 95% confidence interval. h,i, Time-lapse of sham (Sham-DNRho1, n = 4) (h) and photo-activated (Opto-DNRho1, n = 7) (i) embryos expressing the Opto-DNRho1 system, showing lateral surface projections (top) of the anterior region and corresponding z-reslices (bottom). Blue dashed rectangles, illumination ROIs. j, Tissue flow fields using particle image velocimetry in control (3xmScarlet-CaaX/+, n = 3) and eve1KO (n = 3) at gastrulation onset and MD1 telophase. Yellow shading indicates the head region and blue shading the trunk region; x-origin, head–trunk boundary; y-origin, lateral midline. The units are pixels. Membranes were visualized using Gap43-mCherry (cf) or 3xmScarlet-CaaX (h,i). Dashed lines mark z-reslice positions, cropped to highlight the CF. White arrows, PMG; yellow arrows and dashed outlines, CF; magenta arrows and dashed outlines, head–trunk buckling. Time is shown relative to gastrulation onset. Scale bars, 30 µm.

To fully rule out that the observed head–trunk buckling is related to genetic perturbation, we mechanically blocked CF formation using the optogenetic Opto-DNRho1 system that locally inhibits actomyosin contractility12,27. We precisely illuminated only the CF region (Methods) to avoid perturbing contractility elsewhere. This completely eliminated CF formation on one side of the embryo, and produced head–trunk buckling similar to that in the eve1KO embryo (Fig. 2g–i and Supplementary Video 4). These data confirm that, in the absence of CF, head–trunk buckling occurs as a result of neither increased actomyosin contractility nor local genetic perturbation. Thus, both genetic and mechanical blockage of the CF results in passive buckling that arises from mechanical instabilities, suggesting that, without the CF, compressive stress accumulates at the head–trunk boundary.

How compressive stress might arise is suggested by the following two observations. First, buckling typically starts when the second MD cells (MD2) undergo mitotic rounding, suggestive of a link to mitosis (Extended Data Fig. 5a and Supplementary Video 4; note that in wild-type embryos MD2 cells round up well after CF initiation). Second, as buckling deepens, the anterior trunk ectoderm moves inwards (Supplementary Video 4), suggesting the involvement of GBE. We thus proposed that head–trunk buckling is related to compressive stress generated during head expansion through mitosis and trunk expansion through convergent-extension during GBE.

Head and trunk tissue flows collide

To understand the build-up of compressive stress at the head–trunk boundary, we characterized tissue flows using particle image velocimetry (Extended Data Fig. 5b and Methods). In wild-type embryos, local, convergent flows occur at the head–trunk boundary where the CF is formed, suggesting that it behaves as a tissue sink with head and trunk tissues flowing into it (Fig. 2j, control at gastrulation onset), and indeed, flanking head and trunk cells become incorporated into the CF (Extended Data Fig. 3b and Supplementary Video 1, top panel). As gastrulation progresses, two persistent, regionally coherent flows can be observed flanking the CF: a posterior-wards flow in the head and a ventral-wards flow in the trunk that diverges along the anterior–posterior axis (Fig. 2j, control at MD1 telophase onset). This suggests that without a sink, the head and trunk tissues would have collided at the head–trunk interface. By contrast, the eve1KO embryo has a single, uninterrupted flow field at the onset of gastrulation, showing the absence of a sink and confirming a previous in silico prediction18 (Fig. 2j, eve1KO at gastrulation onset). However, local convergent flows emerge later at the head–trunk boundary during buckling, similar to CF onset in the wild type, suggesting that head–trunk buckling also behaves as a sink (Fig. 2j, eve1KO at MD1 telophase onset) and breaks the continuity of the flow field. Of note, similar flow fields were also observed in embryos that lack Btd expression (Extended Data Fig. 5c). In sum, we propose that without the CF as a genetically patterned mechanical sink, converging flows of the expanding head and trunk ‘tissue plates’ generate compressive stress and cause head–trunk buckling through ‘tissue tectonic collision’. We note that ‘tissue tectonics’ was previously introduced to describe in-plane epithelial deformation by means of cell-shape changes and re-arrangements28 and developmental timing regulation following the displacement of signalling and responding tissues29. We expand this term to describe epithelial out-of-plane deformation resulting from tissue collision, drawing on the analogy to Earth’s tectonic plates, which collide at their convergent boundaries to form mountain ranges and deep-sea trenches.

Head and trunk collision causes buckling

To further test the hypothesis of tissue collision, we asked whether reducing head and trunk expansion dampens buckling. To abrogate head expansion, we blocked mitosis by removing the zygotic activity of string (stg), which encodes the Drosophila homolog of Cdc25 and drives mitosis in each MD30,31. In stg mutants, CF initiation occurs normally, indicating that mitosis is not required for CF formation (Extended Data Fig. 6a and Supplementary Video 5). We then knocked down btd in stg mutants and observed either late-onset buckling with reduced depth and persistence (class I, stg(I)), or a complete lack of buckling (class II, stg(II)) (Fig. 3a,b,d,e, Extended Data Fig. 6b,e and Supplementary Videos 5 and 6), which confirms the findings in the companion study21 (Supplementary Note 2). Thus, cell division fuels head expansion, driving its posterior-wards flow to collide with the trunk and cause buckling.

Fig. 3: The CF functions as a mechanical sink to prevent tissue collision.
figure 3

ac, Time-lapse of btd RNAi embryos in control (a), stg (b) or khft (c) genetic background, visualized with 3xmScarlet-CaaX showing lateral surface projections (a1–c1 and a2–c2) and z-reslices (a3–c3). Sample size: control, n = 8; stg(I), n = 7; stg(II), n = 5; khft, n = 10. d,e, Maximum depths (d) and durations (e) of head–trunk buckling in btd RNAi embryos with extra genetic manipulations. Each dot represents an embryo, bold lines indicate the median and whiskers mark the 95% confidence interval. Two stg phenotypic classes (I and II) are shown. One-way ANOVA Tukey’s post hoc test. ****P < 0.0001 (stg(I), P = 0.00001; stg(II), P = 0.00000; khft, P = 0.00004) (d); *P < 0.05 (P = 0.04); ****P < 0.0001 (P = 0.00003); NS, not significant, P > 0.05 (P = 0.52) (e). Sample size: control, n = 8; stg(I), n = 7; stg(II), n = 5; khft, n = 10. #, late buckling in btd RNAi-injected khft embryos (Extended Data Fig. 6); dashed lines, z-reslice positions cropped to highlight the CF; white arrows, PMG; yellow arrows and dashed outlines, CF; magenta arrows and dashed outlines, head–trunk buckling. Time relative to gastrulation onset. Scale bars, 30 µm.

In the trunk, tissue flow stems from the active forces generated during ventral furrow formation and GBE18. Ventral furrow formation drives ventral-wards flow18, whereas GBE generates anterior–posterior divergent flow5 (Fig. 2j). To examine whether reduced anterior–posterior divergent flow dampens buckling, we used the quadruple mutants knirps hunchback forkhead and tailless (khft)32,33 to eliminate both local junctional exchanges and external drag by PMG invagination5 to fully abrogate GBE (Extended Data Fig. 6a and Supplementary Video 5; note that CF initiation is normal, demonstrating that it does not require GBE). When CF initiation is inhibited using btd RNAi in khft mutants, no head–trunk buckling is observed (Fig. 3a,c–e (but note the existence of late buckling associated with mitoses), Extended Data Fig. 6b and Supplementary Videos 5 and 6). These data suggest that anterior–posterior divergent flow during trunk elongation collides with the head ectoderm to cause buckling.

Together, these data support our proposal that genetically programmed head and trunk expansion causes tissue collision and buckling when the CF is absent. In fact, despite the CF being initiated by local actomyosin contractility12,26, its full invagination requires neighbouring tissue expansion, because both stg and khft mutants form shallower and less-persistent CF (Extended Data Fig. 6a,c,d). Thus, the CF can ‘absorb’ the expanding neighbouring tissues, acting as a bona fide, genetically patterned mechanical sink guiding tissue flows, thereby pre-empting tissue collision and buckling. In silico simulations in the companion study21 further corroborate this interpretation.

Abrogation of CF has deleterious effects

We next asked whether CF loss and head–trunk buckling have deleterious effects on embryonic development. We used Opto-DNRho1 to eliminate the CF such that the associated phenotypes could only be attributed to CF loss, and not altered genetic patterning. We precisely and bilaterally blocked CF initiation, and confirmed that gastrulation is otherwise normal, as evidenced by ventral furrow formation, which closes to form a straight ventral midline (Fig. 4a,b and Supplementary Video 7). Strikingly, following ventral furrow closure we observed an increased frequency of ventral midline distortion or rotation compared with the sham control, ~1.5 h after the onset of gastrulation (Fig. 4a–c and Supplementary Video 7). Ventral midline distortion is variable and often associated with asymmetric head–trunk buckling, suggesting that buckling releases compressive stress stochastically, whereas the programmed CF can reduce such stochasticity. Note also that we observed similar distortions in btd mutants and RNAi embryos (Extended Data Fig. 7a–e and Supplementary Video 7).

Fig. 4: CF loss causes midline distortion during gastrulation and late embryonic abnormalities.
figure 4

a,b, Time-lapse series of a representative sham control (Sham-DNRho1, n = 4) (a) or photo-activated (Opto-DNRho1, n = 5) (b) embryo expressing the Opto-DNRho1 system, visualized with 3xmScarlet-CaaX showing a ventral surface projection (top) and a single coronal section (bottom). Blue dashed rectangles, illumination ROIs for the sham activation or photo-activation; white dashed lines, ventral midlines; yellow arrows and yellow dashed outlines, CF; yellow asterisks, bilaterally symmetric CFs; magenta dashed outlines, head–trunk bucklings; magenta asterisks, laterally asymmetric buckling. c, Box plot showing mean deviation of the manually marked ventral midline from the expected linear ventral midline position measured at the onset of gastrulation (onset) and a mid-gastrulation (mid) stage when deviation reaches a maximum. Mann–Whitney U-test (two-sided), *P < 0.05 (P = 0.0159). Sample size: Sham n = 4, Opto n= 5. Bold lines indicate the median, boxes show the interquartile range and whiskers indicate the minimum–maximum range. d,e, Time-lapse series of a representative sham control (Sham-DNRho1, n = 35) (d) or photo-activated (Opto-DNRho1, n = 25) (e) embryo, visualized with 3xmScarlet-CaaX, showing a ventral view with maximum intensity projection. Orange arrows, head involution (HI); orange dashed rectangles, VNC condensation. f, Pie charts showing the percentage of embryos defective for HI, VNC or ventral midline (VM). Time is relative to the onset of gastrulation. Fisher’s exact test with Bonferroni correction (α = 0.0167). Head involution, ****P < 0.0001 (P = 0.00002); VNC, ***P < 0.001 (P = 0.0002); ventral midline, ***P < 0.001 (P = 0.0003). Scale bars, 30 µm.

Although ventral midline distortion is a clear deviation from normal embryonic development in D. melanogaster, it is insufficient to indicate deleterious effects on embryonic development. To examine whether CF loss causes further, possibly more severe, developmental abnormalities detrimental to the function or viability of the organism, we monitored embryonic development for at least 18 h after a 1 h optogenetic inhibition of CF at gastrulation onset. We observed an increased frequency of head involution and ventral nerve cord (VNC) defects at later stages, with a substantial co-occurrence of head involution and VNC defects that are independent of ventral midline distortions, suggesting that they represent a separate phenotypic repertoire (Fig. 4d–f, Extended Data Fig. 7f,g and Supplementary Video 8). These late defects suggest that focusing on early gastrulation substantially underestimates the abnormalities associated with CF abrogation, which extend far beyond the gastrulation stage. Because head involution ensures proper internalization of embryonic head segments, including vital organs such as the mouth34,35, and VNC condensation promotes proper assembly and wiring of the central nervous system36, these data suggest that CF loss is deleterious to embryonic development (see Discussion and Supplementary Note 3).

Head mitosis differs among fly species

Whereas cyclorrhaphan flies, like D. melanogaster, prevent tissue collision through a genetically programmed mechanical sink (the CF), non-cyclorrhaphan flies may use alternative mechanisms to dissipate compressive stress. Given that GBE is conserved (Extended Data Figs. 1 and 2), and the absence of CF does not correlate with low cell density (Extended Data Fig. 8a–g), it remains unclear how non-cyclorrhaphan flies compensate for their lack of a CF. Therefore, we asked whether early head morphogenesis differs between these groups. Using nuclei as a proxy for cells, we found that the non-cyclorrhaphan species Hermetia illucens, Coboldia fuscipes, C. riparius and C. albipunctata have a double layer of nuclei in the head epithelium during early gastrulation, in contrast to D. melanogaster and M. abdita that have a monolayer epithelium (Fig. 5a). Live imaging in a C. riparius embryo showed that this double-layering is due to out-of-plane division, as evidenced by the orientation of the cytokinetic rings (Fig. 5b–d and Supplementary Videos 9 and 10), rather than pseudo-stratification or cell extrusion (Extended Data Fig. 8h).

Fig. 5: MD cells in non-cyclorrhaphan flies divide out-of-plane to reduce head expansion.
figure 5

a, Presence of the CF (yellow arrows) or out-of-plane division (magenta arrows) as shown with nuclear staining (DRAQ5) in the anterior half of D. melanogaster (n = 13), M. abdita (n = 30), H. illucens (n = 57), C. fuscipes (n = 24), C. riparius (n = 24) and C. albipunctata (n = 13). b, Schematic representation of MD1 and MD2 in the C. riparius embryo head domain. c,d, Sum projection of MD2 showing MD2o and MD2i at tissue scale (c, purple box in b) and cellular views during telophase (d). Asterisks indicate the first dividing cells. Cell outlines, LifeAct-mCherry; cytokinetic rings, Sqh–eGFP; arrows, cytokinesis with cytokinetic rings perpendicular (in-plane) or parallel (out-of-plane) to the apical surface. n = 6 embryos. e,f, Apical cell surface area (e, n = 18 and 24 cells from 3 embryos) or subdomain surface area (f, paired two-sided t-test on maxima; *P = 0.0145; n = 5) comparing MD2o and MD2i as a function of time, normalized to surface area at the blastoderm stage. Bold lines indicate means and the shaded region indicates standard errors. Note in e, the summed areas of two daughter cells were plotted for in-plane divisions after completion of division, whereas only the apical daughter cell was plotted for out-of-plane divisions. Scale bars, 25 µm (C. fuscipes, C. riparius and C. albipunctata) and 50 µm (D. melanogaster, M. abdita and H. illucens) (a,b); 10 µm (c); and 5 µm (d).

Head mitosis in the C. riparius embryo occurs soon after gastrulation onset and temporally overlaps with trunk expansion, comparable with D. melanogaster (Extended Data Fig. 9a). We categorized the MDs chronologically, similarly to the naming convention established in D. melanogaster16 (Fig. 5b and Supplementary Note 4) and focused on division orientation in MD2, a large domain immediately anterior to the head–trunk boundary. Of the cells whose division orientation can be determined unambiguously, about 50% divide out-of-plane (Extended Data Fig. 9b), which we termed MD2o (for ‘out-of-plane’). These cells are located in a distinct anterior subdomain that has an ellipsoid shape (Fig. 5c). By contrast, MD2i (for ‘in-plane’) is posterior and ventral to MD2o and has a crescent shape. Divisions begin in the centre of MD2o and spread out as a concentric wave travelling across the remainder of MD2o and subsequently across MD2i (Fig. 5c, Extended Data Fig. 9c and Supplementary Video 9). Thus, head mitosis in C. riparius differs substantially from D. melanogaster, where MD1, MD2 and MD5—the three MDs spatio-temporally equivalent to C. riparius MD2—divide in-plane, whereas out-of-plane division occurs only in the late MD9 (ref. 16).

Out-of-plane division reduces expansion

We proposed that out-of-plane division in C. riparius attenuates head expansion and tested it by quantifying apical surface expansion during mitotic rounding in MD2. The in-plane dividing cells increase their apical area on average to ~1.9-fold before telophase onset, and the two daughter cells have a combined area of ~2-fold after cytokinesis, before shrinking back to occupy a surface area identical to that of the mother cell. The total duration of expansion is ~24 min (Fig. 5e and Extended Data Fig. 9e). By contrast, the out-of-plane dividing cells expand only to ~1.6-fold for ~9 min, following which the occupied surface area decreases rapidly because only one daughter cell remains on the surface and ultimately shows a net decrease (~0.8-fold of the mother cell) (Fig. 5e and Extended Data Fig. 9f). Thus, out-of-plane divisions require less surface area and do so for a shorter time, suggesting that they exert less expansile stress on the neighbouring cells.

Given that cell divisions in each domain are not fully synchronous (Extended Data Fig. 9c), we also measured tissue-level surface expansion, comparing MD2o with MD2i (~20 cells each). MD2o expands for ~12 min to ~1.4-fold, whereas MD2i expands for ~25 min to ~1.6-fold (Fig. 5f), indicating that the attenuating effect of out-of-plane division can also be seen at the tissue level. Thus, division orientation modulates accrued compressive stress, suggesting that non-cyclorrhaphan flies use out-of-plane divisions as an alternative mechanism to mitigate tissue collision during ectodermal expansion.

Re-orienting mitosis mitigates buckling

Out-of-plane division in D. melanogaster in MD9 requires expression of the mitotic spindle anchoring protein Inscuteable (Insc)37,38. We found that C. riparius insc is expressed throughout the entire head region (Extended Data Fig. 9d), suggesting that the C. riparius head is genetically conducive to out-of-plane division. However, we were not able to directly assay its functional role in division orientation (Supplementary Note 5).

Leveraging the fact that Insc is necessary and sufficient to instruct out-of-plane division in D. melanogaster38, we overexpressed Insc (InscOE) throughout the D. melanogaster head (Methods) to re-orient in-plane division to out-of-plane. We confirmed the re-oriented division plane with the cytokinetic ring morphology (Fig. 6a,b and Supplementary Video 11) and observed reduced MD surface area expansion (from 2-fold to 1.7-fold in MD1 and from 2.8-fold to 2-fold in MD5) (Fig. 6c,d), which mirrors the difference between C. riparius MD2o and MD2i. This suggests that InscOE effectively converts the D. melanogaster head into a C. riparius-like state, allowing us to ask whether widespread out-of-plane divisions can function as an alternative mechanical sink to release compressive stress.

Fig. 6: Out-of-plane division acts as an alternative mechanical sink to mitigate tissue collision.
figure 6

a,b, Lateral surface projection of the D. melanogaster head region showing MD1 and MD5 (a, yellow dashed outlines), and cellular view of telophase cells in MD5 (b) in control or InscOE embryo, visualized with membrane (3xmScarlet-CaaX, green) and MyoII (Sqh–eGFP, magenta) markers (n = 5). Yellow arrows, CF; white arrows, cytokinetic rings. c,d, Apical surface area of MD1 (c) and MD5 (d) in control or InscOE embryos injected with btd RNAi (n = 5 and 6, respectively) as a function of time, normalized to surface area at gastrulation onset. Bold lines indicate means and the shaded region indicates standard errors. Two-sided t-test on maxima. *P = 0.0166, ****P < 0.0001. e, Lateral surface projection (top) and z-axis reslice (bottom) of embryos with btd RNAi (n = 8) and btd RNAi with InscOE (xlass I, n = 7; class II, n = 6). Membranes visualized with 3xmScarlet-CaaX. Magenta arrows and dashed outlines indicate head–trunk buckling and the blue dashed outline indicates buckling between MD1 and MD5. f,g, Maximum depths (f) or durations (g) of head–trunk buckling in btd RNAi embryos with and without InscOE. Each dot represents an embryo, bold lines indicate the median and whiskers mark the 95% confidence interval. One-way ANOVA Tukey post hoc test. ****P < 0.0001 (P = 0.000000001), **P < 0.01 (P = 0.0013) (f) and ****P < 0.0001 (P = 0.00003); NS, not significant, P > 0.05 (P = 0.782) (g). h, Schematic representation of our model illustrating the divergent strategies preventing head–trunk tissue collision in cyclorrhaphan and non-cyclorrhaphan flies, based on our findings in D. melanogaster (top) and C. riparius (bottom). See Supplementary Note 6 for more details. Scale bars, 50 µm (a), 5 µm (b) and 30 µm (e).

To address this, we examined the effect of InscOE on head–trunk buckling in btd RNAi embryos. We found that 54% (class I: 7 of 13) of embryos showed a complete loss of head–trunk buckling, suggesting that out-of-plane division can function as a mechanical sink in place of the CF. The remaining 46% (class II: 6 of 13) of embryos undergo shallower head–trunk buckling than in btd RNAi alone, often with smaller bucklings between MD1 and MD5, or form a deeper anterior dorsal fold, or both (Fig. 6e–g and Supplementary Video 12). In material science, moderate compression of a thin elastic film on a soft compliant substrate produces short-wavelength wrinkles, whereas compression beyond a critical point leads to a ‘wrinkle-to-fold transition’, in which all wrinkles vanish and converge to a single deep fold39,40. The deep head–trunk buckling could potentially result from a wrinkle-to-fold transition, whereas small buckling seen with InscOE is reminiscent of short-wavelength wrinkles, suggesting that InscOE reduces compressive stress to below the critical point of such a transition. Indeed, InscOE also decreases CF depth in wild-type embryos (Extended Data Fig. 10), supporting our proposal that out-of-plane divisions help dissipate compressive stress. Overall, our comparative and functional studies show that two programmed morphogenetic strategies are used to prevent tissue collision and buckling in fly gastrulation: out-of-plane deformation (the CF) in cyclorrhaphan flies, and out-of-plane division in non-cyclorrhaphan flies.

Discussion

Our phylogenetic survey suggests that the CF is an evolutionary novelty and a derived character in the monophyletic Cyclorrhapha. Together with the companion study21, we show that this innovation performs a mechanical function in a physically confined embryo to pre-empt tissue collision and mechanical instabilities. Accordingly, the CF is unlikely to be homologous to the vertebrate midbrain–hindbrain boundary19, or acting as an immobile fence that breaks the symmetry of GBE tissue flow18. Instead, our results indicate that the CF behaves as a mechanical tissue sink that absorbs head and trunk tissue flows to release compressive stress.

Phylogenetic mapping suggests that both traits—the accumulation of compressive stress by widespread in-plane division in the head and its release through CF formation by active out-of-plane tissue deformation—emerged concurrently in the stem group of Cyclorrhapha (Fig. 6h and Supplementary Note 6), raising the question of which originated first.

If in-plane division emerged first, organisms that acquired this trait would have been prone to buckling and midline distortion given the increased mechanical instabilities, and might have survived only under conditions favourable to stress dissipation, such as slow development at low temperatures. The emergence of a genetically programmed out-of-plane deformation, like the CF, could then have increased developmental robustness so that the flies could adapt to a wider range of environmental conditions. Accordingly, increased compressive stress resulting from in-plane division might have imposed a mechanical constraint that facilitated positive selection for CF formation. One unresolved question related to this model, however, is how and why in-plane divisions emerged in the first place.

If the CF emerged before the shift to in-plane divisions, the CF may have arisen without the initial increase in compressive stress. Instead, active CF deformation would be expected to exert pulling forces on the neighbouring tissue, making in-plane division more energetically favourable. This could pave the way for an eventual transition to obligatory in-plane division, presumably through the loss of broad insc expression and the gain of extra mechanisms known to promote in-plane division, for example, high cortical tension in the mitotic cells and dedicated spindle anchorage cues41,42,43,44. This scenario posits that the CF is secondarily co-opted to function as a mechanical sink and would require that the CF evolved neutrally or for a different function in the first place. One such alternative function of the CF, which has been proposed previously, is that of a tissue reservoir that temporarily stores cells for subsequent head development45. Supporting this idea, lineage tracing experiments have previously shown that the MD2 cells in the CF contribute to the pharynx and its associated larval head cells46. This model could also account for the severe head involution defects we observed following CF ablation. Alternatively, the wide-ranging phenotypic consequences associated with CF ablation, including head involution and VNC defects, may result from improper stress release or tissue deformation related to mechanical instabilities, and could thus support the in-plane-division-first hypothesis. Irrespective of which originated first, both hypotheses highlight the plausibility that mechanical instabilities influence morphogenetic evolution.

Buckling transitions following CF ablation add to a growing list of epithelial morphogenesis events resulting from mechanical instabilities47. The variability in the number and positions of buckling observed across studies21 may reflect intrinsic stochasticity and the sensitivity of such instabilities to small perturbations. However, spatially patterned mechanical cues can bias where passive buckling occurs48,49. Here, the fully penetrant buckling at the head–trunk boundary points to a possible contribution of spatially patterned ‘tissue tectonic collision’ between expanding tissues, rather than random stochastic effects. These findings are consistent with the hypothesis that the CF emerged under selection to mitigate the rise of mechanical instabilities at the head–trunk boundary during gastrulation (Fig. 6h). However, direct evidence for adaptation is lacking without explicit fitness measurements following CF ablation (Supplementary Note 3).

CF formation in D. melanogaster depends on genetic patterning and mechanical self-organization12. Our finding that the CF is an evolutionary novelty that co-emerged with in-plane mitotic divisions in the neighbouring tissue, raises the possibility that inter-tissue mechanical conflict, or mechanical constraint in general, constitutes a mechanism of positive feedback50 that might drive swift evolutionary transitions and the emergence of new morphogenetic traits. The mechanical function of the CF implies that similar principles could apply to other transient epithelial folds, like the dorsal folds in Drosophila51, raising the possibility that mechanical stress management represents a general functional feature of transient epithelial folding across organisms and developmental contexts.

Methods

Experimental animals and embryo collection

D. melanogaster embryos were collected on apple juice agar plates with yeast paste at 22 °C or at the temperatures indicated below. Laboratory cultures of M. abdita (Sander strain) were maintained as described52. M. abdita embryos were collected on apple juice agar plates with fish food paste at 25 °C. The laboratory cultures of C. riparius (Bergstrom strain) were maintained as described52. C. riparius embryos were collected as freshly deposited egg packages at ambient room temperature (23–26 °C). The laboratory cultures of C. albipunctata were maintained as described53,54. Embryos were obtained after dissecting-out adult female ovarioles, followed by experimental egg activation through a hypo-osmotic shock. The laboratory cultures of H. illucens were established from existing cultures in the Schmidt-Ott lab (University of Chicago). To collect H. illucens embryos, females were decapitated to trigger egg laying at the desired time.

A transient laboratory culture of C. fuscipes was established from wild-caught adults found near the municipal compost plant of the city of Heidelberg. C. fuscipes adults prefer to lay eggs in small cavities. To collect embryos, old culture plates of C. albipunctata were used as they conveniently have such cavities. Before using these for C. fuscipes egg collection, the plates were decontaminated by freezing them at −20 °C for at least 1 week, followed by thawing overnight at room temperature.

We could not establish a laboratory culture for any of the species from the family Empididae, because we could not optimise the culture conditions. During our excursion in Pula (Croatia) we managed to catch a few adults of an Empis species (most probably Empis pennipes, referred to as Empis sp. throughout the text). As a result, we resorted to repeatedly catching adults during that time from the wild, and then decapitated the females to trigger egg laying.

Drosophila genetics and transgenic lines

D. melanogaster lines used for live imaging were MyoII–eGFP (also known as Spaghetti-squash–eGFP, or Sqh–eGFP)55, Gap43-mCherry56, MyoII-mKate2 (ref. 57) and mat-tub-3xmScarlet-CaaX (this study). The membrane imaging line mat-tub-3xmScarlet-CaaX was made by cloning 3xmScarlet-CaaX into the pBabr vector containing the mat-tub promoter (gift from D. St. Johnston, Gurdon Institute, UK)58 and the sqh 3′ untranslated region (UTR), followed by ΨC31 site-directed integration into the attP2 or attP40 landing sites at WellGenetics. D. melanogaster mutant alleles used were eveR13 (FlyBase ID: FBal0003885), btdAX (FlyBase ID: FBal0030657), stg7M53 (FlyBase ID: FBal0016176) and the quadruple mutant33 knirpsIID48 (FlyBase ID: FBal0005780) hunchback7M48 (FlyBase ID: FBal0005395) forkheadE200 (FlyBase ID: FBal0004007) taillessL10 (FlyBase ID:FBal0016889). Descriptions of phenotypes associated with eveR13 (http://flybase.org/reports/FBal0003885.htm) and btdAX (http://flybase.org/reports/FBal0030657.htm) were obtained from FlyBase (release FB2025_03)59. In live imaging experiments, the mutant embryos were identified on the basis of the absence of a balancer-linked reporter construct, hb0.7-Venus-NLS, inserted on the FM7h, CyO or TM3 balancer12.

To generate the eve1KO line, an eve genomic rescue construct, eveCH322-103K22-mNeonGreen, was first created using P[acman]CH322-103K22 (BACPAC Resources Center), a BAC construct that encompasses the entire eve locus, from which the stop codon of eve was replaced with a standard protocol60,61 with mNeonGreen following a linker (N-ter-GSAGSAAGSGEV-C-ter). To completely eliminate eve expression in the Eve1 region, the stripe1 (+6.6 to +7.4 kb relative to the transcriptional start site of eve)25 and late element (−6.4 to −4.8 kb)24 enhancers were deleted from eveCH322-103K22-mNeonGreen through homologous recombination using the following homology arm sequences: stripe1 left, GCAAGTCCGAGACAAATCCACAAATATTGTCAACTCTTTGGCTCTAATCTG; right, CCAAGGCCGCAAAGTCAACAAGTCGGCAGCAAATTTCCCTTTGTCCGGCGA; and late element left, TTGCGTTTGAGCTACGTTACTTACATTTTTCCCACATGAGTCGGGCATACA; right, TCGATGGGTTGGTCACAATGTGGTGGCCTCTCAACATTGCAAGGCTCTTAC. The resultant BAC construct, eveCH322-103K22-mNeonGreenΔst1ΔLE (Extended Data Fig. 4a) was integrated into PBac{y[+]-attP-3B}VK00033 at Rainbow Transgenics, and crossed into the eveR13 mutant line to generate the eve1KO line. Identification of eve1KO embryos in live imaging experiments was performed as above, on the basis of the absence of a balancer-linked reporter construct, hb0.7-Venus-NLS, inserted on the CyO12.

For Insc overexpression, males of UAS-insc were crossed to females containing two copies of nos-GAL4-GCN4-bcd3’UTR, which directs targeted gene expression in the head region of resultant embryos62. These female flies also contained transgenes for the imaging markers Sqh–eGFP and 3xmScarlet-CaaX. The flies were incubated at 22 °C for embryo collection. For Opto-DNRho1 experiments, females of UASp-CIBN-CaaX; UASp-CRY2-Rho1[N19, Y189]27 (a gift from B. He, Dartmouth College, USA) were crossed to males of matαTub-Gal4VP1667C; matαTub-Gal4VP1615 double driver line that also contains the transgene for mat-tub-3xmScarlet-CaaX imaging marker. The resultant F1 flies were used to set up egg deposition cages that were kept at 18 °C for collection of embryos used in the experiments.

Protein tree

Predicted protein sequences of eve and btd were used as queries to identify closely related genes in D. melanogaster and putative orthologues in M. abdita and C. riparius using BLAST. Protein alignments were performed in Geneious by MUSCLE alignment with standard parameters. The protein tree was assembled using Jukes–Cantor as the genetic distance model and UPGMA (unweighted pair group method with arithmetic mean) for tree building, with a bootstrap of 1,000 replicates.

Cloning, and messenger RNA and double-stranded RNA synthesis

Cri-btd, Cri-eve, Cri-insc, Cri-sqh, Mab-btd and Mab-eve were identified from published transcriptome sequences and cloned after polymerase chain reaction amplification from complementary DNA. In vivo labelling of cell outlines and MyoII in C. riparius used Gap43-linker–eGFP and Cri-Sqh-linker–eGFP, which were expressed in the embryo by the injection of in vitro synthesized messenger RNAs. The Gap43-linker–eGFP fusion construct for mRNA synthesis was generated by in-frame Gibson assembly of the Gap43 encoding sequence, a short linker (GSAGSAAGSGEV), and a previously published pSP35T expression vector (pSP-Mab-bsg–eGFP) that contained a 3′-terminal eGFP63. Analogously, the Cri-Sqh-linker–eGFP fusion construct was generated using a full-length fragment of Cri-sqh amplified by polymerase chain reaction from cDNA. Nascent mRNAs were generated using SP6 polymerase, followed by capping and poly(A)-tailing with dedicated capping and poly(A) kits (CELLSCRIPT). Synthesized mRNA was dissolved in H2O.

For btd RNAi experiments in D. melanogaster, double-stranded RNA was synthesized on templates that contain the T7 promoter sequence (5′-TAATACGACTCACTATAGGGTACT-3′) at each end using a MEGAscript T7 kit (Ambion); templates were amplified from 0–4 h embryonic cDNA using specific primers (5′-AGCAGATGACGACGACAACA-3; 5′-TACTCGGACTTCATGTGGCA-3). For insc RNAi experiments in C. riparius, dsRNA was synthesized as previously described63. The dsRNAs comprised the following gene fragments (position 1 refers to first nucleotide in the open reading frame): btd, position 1,487 to 1,817; Cri-insc (GenBank PV919477), position 466 to 1,892.

Injections

For dsRNA injections in D. melanogaster, 0–1 h-old (up to stage 2) embryos were collected, dechorionated with bleach and mounted on an agar pad. The mounted embryos were then picked up using a coverslip painted with glue (prepared by immersing bits of Scotch tape in heptane), desiccated for 10–14 min using Drierite (W. A. Hammond Drierite Co.) and covered with a mixture of Halocarbon oil 700 and 27 (Sigma-Aldrich) at a ratio of 3:1. Needles for injection were prepared from micro-capillaries (Drummond Microcaps, outer diameter 0.97 mm, inner diameter 0.7 mm) pulled with a Sutter P-97/IVF and bevelled with a Narishige pipette beveller (EG-44). Injections were performed on a Zeiss Axio Observer D1 inverted microscope using a Narishige manipulator (MO-202U) and microinjector (IM300). A volume of ~144 pl of solution with a concentration of 1.1–1.6 μg μl−1 or 8–12 μg μl−1 dsRNA was injected into the embryo. Embryos were kept at 25 °C after injection in a moist chamber until early to mid-cellularization, followed by live imaging.

For injections in C. riparius, embryos were collected, prepared and injected essentially as described previously52. Embryos were injected before the start of cellularization (~4 h after egg deposition), and then kept in a moist chamber until the onset of gastrulation. Throughout all procedures, embryos were kept at 25 °C (±1 °C). Owing to their small size, C. riparius embryos (200 µm length) were always injected into the centre of the yolk (50% of anterior–posterior axis). Embryos were injected with dsRNA typically at concentrations of 300 to 700 ng ml−1; mRNA was injected typically at concentrations of 1.5–2.5 μg μl−1 (Cri-Gap43–eGFP and Cri-Sqh–eGFP). LifeAct-mCherry was injected as a recombinant protein as previously described at ~4.5 mg ml−1 (ref. 63).

Live imaging

Live imaging of D. melanogaster embryos was performed using two-photon scanning microscopy with a 25× water immersion objective (numerical aperture = 1.05) on an upright Olympus FVMPE-4GDRS system (InSight DeepSee pulsed IR Dual-Line laser, Spectra Physics) or an inverted Olympus FVRS-F2SJ system (Maitai and InSight DeepSee lasers), or a Plan-Apochromat 25× oil immersion objective (numerical aperture = 0.8) on a Zeiss LSM980 inverted microscope (Chameleon laser, Coherent Int). Excitation wavelengths were 920 nm for eGFP, 950 nm for Venus and 1,040 nm (upright) or 1,100 nm (inverted) for mKate2, mCherry or mScarlet. Three imaging settings were used with the following parameters (total z depth, xy dimension of the imaging region of interest (ROI), z-step size, time interval, imaging angle or view): (1) ~80 µm, 539.5 × 185.5 µm, 2 µm, 90 s, whole-embryo lateral or ventral views; (2) ~60 µm, 253.5 × 152 µm, 1.5 µm, 50 s, head domain; (3) ~40 µm, 208.3 × 152 µm, 1 µm, 45 s, cell division in head MDs. Embryos were collected, dechorionated and mounted on coverslips or glass-bottom dishes, and immersed in 1× phosphate-buffered saline for imaging.

Live imaging of C. riparius embryos was performed on a Leica SP8 confocal using a 63× glycerol immersion objective (numerical aperture = 1.30). z-stacks of ~25 µm depth were acquired at a z-step size of 1 µm and 90 s time interval. All recordings were performed at 25 °C.

Time-lapse imaging to visualize GBE was performed on Nikon Eclipse-Ti microscope in differential interference contrast mode, using a 20× objective (numerical aperture = 0.8) for D. melanogaster, M. abdita, C. riparius and C. albipunctata, with 1 frame every 1 min; on a Leica SP5 DMI6000CS inverted confocal microscope in transmission illumination mode, using a 40× objective (numerical aperture = 1.1) for C. fuscipes, with 1 frame every 2 min; and on Zeiss Colibri upright microscope in differential interference contrast mode, using a 10× objective (numerical aperture = 0.45) for H. illucens and a 20× objective (numerical aperture = 0.5) for Empis sp., with 1 frame every 3 min. All recordings were performed at 25 °C.

Optogenetics

The Opto-DNRho1 system27 was used as previously reported. To prevent unwanted photo-activation, Fly crosses and cages were kept in the dark and embryos were processed, staged and mounted in a dark room with a light source covered by a light red filter (no. 182, Lee Filters). Imaging was performed on an Olympus FVMPE-RS (InSight DeepSee pulsed IR Dual-Line laser system, Spectra Physics) with a 25× (numerical aperture = 1.05) water immersion objective and excitation wavelength of 1,040 nm for the membrane marker 3xmScarlet-CaaX. The efficacy of MyoII inhibition with the Opto-DNRho1 system was first benchmarked on ventral furrow formation to confirm that it resulted in a complete blockage of apical constriction27.

Two photo-activation protocols were used: protocol no. 1 used a 405 nm diode laser at 0.1% power (5.48 µW) and protocol no. 2 used a 458 nm diode laser at 0.5% power (27.14 µW), both scanned at 2 µs per pixel. Sham controls were performed at 0% laser power. The photo-activation ROI was illuminated for 3 s in all experiments.

Three experimental designs were used: (1) lateral imaging with unilateral photo-activation (Fig. 2h,i, Extended Data Fig. 5a and Supplementary Video 4) used protocol no. 1 on a 28.15 × 197.05 µm ROI (50 × 350 pixels) centred on ‘the pre-CF domain’64 covering the entire region of CF initiation along the dorso-ventral circumference, beginning 16–33 min before gastrulation and repeated every 90 s; (2) ventral imaging with bilateral photo-activation (Fig. 4a,b and Supplementary Video 7) used protocol no. 1 on two 33.78 × 33.78 µm ROIs (60 × 60 pixels) each covering one side of the CF, beginning 18–30 min before gastrulation and repeated every 180 s; and (3) ventral imaging with bilateral photo-activation and long-term imaging (Fig. 4d,e and Supplementary Video 8) used protocol no. 2 on two 28.8 × 28.8 µm ROIs (40 × 40 pixels) each covering one side of the CF, beginning 15–30 min before gastrulation and repeated every 180 s for 1 h, followed by time-lapse imaging at 10 or 20 min per frame for 18–23 h.

Immunofluorescence and fixed imaging

For antibody staining, embryos were fixed by a heat–methanol method65 and immunostained with mouse monoclonal anti-Neurotactin (1:20, BP106, Developmental Studies Hybridoma Bank, USA), rabbit polyclonal anti-Eve (1:500, gift from M. Biggin, Lawrence Berkeley National Laboratory, USA), and rat polyclonal anti-Btd (1: 500, gift from E. Wieschaus, Princeton University, USA), followed by DAPI staining to visualize nuclei. Imaging was performed on a Leica SP8 system using a 20× (numerical aperture = 0.75) multi-immersion objective with oil immersion (total z depth: 60–90 µm, z-step size: 1.04 µm).

For DNA staining, embryos were fixed by heat and devitellinized as described66, followed by staining with DRAQ5 (1:1,000 for 1 h, Thermo Fisher Scientific, catalogue number 62251). Imaging was performed on a Leica SP8 system with a 20× glycerol objective (numerical aperture = 0.75) for D. melanogaster, M. abdita, H. illucens and C. albipunctata, and a 63× glycerol objective (numerical aperture = 1.3) for C. fuscipes and C. riparius, with a z-step size of 1 µm in a z-range that covers at least half of the embryo.

For the hybridization chain reaction (HCR), embryos were fixed by heat and devitellinized as described54, probes for Cri-btd and Cri-eve were generated using previously published software67 (https://github.com/rwnull/insitu_probe_generator) and ordered through Sigma-Aldrich. HCR amplifiers (B1-Alexa488 for Cri-eve; B2-Alexa594 for Cri-btd) were obtained from Molecular Instruments. Devitellinized embryos were re-hydrated in a series of 1× phosphate-buffered saline with Tween (PBT) and post-fixed for 40 min with 4% paraformaldehyde in PBT on a shaker. Following PBT washes, we followed the In situ HCR v.3.0 protocol68 for whole-mount fruit fly embryos Revision 9 (13 February 2023) from Molecular Instruments. We then stained the embryos with DRAQ5 in 5× saline-sodium citrate with Tween (1:1,000 for 1 h) and mounted the embryos in 50% glycerol in 5× saline-sodium citrate with Tween. Imaging was performed as above for DNA staining in Chironomus riparius.

For in situ hybridization, embryos were fixed by a heat–formaldehyde method63. Transcripts were detected histochemically or fluorescently as described69, using RNA probes for Mab-btd (comprising 1,473 nucleotides from +1 to 1,473, with position +1 referring to first nucleotide in the open reading frame), Mab-eve (comprising 984 nucleotides, from position 365 to 996 of the putative coding sequence and 351 nucleotides of the 3′ UTR), and Cri-insc (comprising 1,427 nucleotides from 466 to 1,892) labelled with either digoxigenin or fluorescein. M. abdita embryos were also stained with DAPI to visualize nuclei.

Image processing and quantification

Images were processed, assembled into figures and converted into videos using FIJI, Affinity Designer, Adobe Illustrator and HandBrake. Quantitative data were analysed and processed using Excel, or custom-made ImageJ or FIJI macros and Python scripts using Numpy, Pandas and SciPy libraries. Plots were generated in GraphPad Prism or with Python scripts using Matplotlib and Seaborn graphic libraries. Detailed descriptions of image processing and analysis procedures are provided in Supplementary Methods.

Statistical analyses

All of the statistical details of experiments, including the number of experiments (n), which represents the number of embryos used unless otherwise noted, are given in the figure legends. Python scripts using SciPy library were implemented to perform one-way ANOVA followed by Tukey’s multiple comparison post hoc test for comparing means from more than two groups, and Mann–Whitney U-test was used as a non-parametric independent test for comparing two means. GraphPad Prism was used: (1) to perform statistical analyses to compare the blastoderm cell densities across species, including the calculation of medians and the 95% confidence intervals on the median, and one-way ANOVA with Kruskal–Wallis non-parametric test, without correcting for multiple comparisons (uncorrected Dunn’s test); and (2) to perform Fisher’s exact test with Bonferroni correction for pie chart distributions. For cell and domain area analysis, Microsoft Excel was used to perform paired and unpaired t-tests and to plot standard errors.

Reporting summary

Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.