.swallow-fold .fold-mesh, .swallow-fold .fold-crown { position:absolute; inset:0; pointer-events:none; }
.swallow-fold .fold-mesh { display:none; }
/* Both wings meet the body along the actual cut in the printed sheet. */
.swallow-fold .fold-body {
  clip-path:polygon(53.1% 0,100% 0,100% 37%,80% 37%,74.5% 45.4%,65.8% 51.8%,64.1% 54.7%,62.8% 56.3%,61.8% 57.5%,60.2% 59.1%,57.4% 60.9%,54.1% 62.6%,50.8% 64.5%,46.6% 66.3%,42.6% 67.8%,39.5% 69%,100% 69%,100% 100%,0 100%,0 62.56%,33.33% 62.56%,46.73% 48.72%,53.1% 44.88%);
}
.swallow-fold .fold-far {
  clip-path:polygon(100% 37%,80% 37%,74.3% 45.4%,65.5% 51.8%,63.8% 54.7%,62.5% 56.3%,61.5% 57.5%,59.9% 59.1%,57.1% 60.9%,53.8% 62.6%,50.5% 64.5%,46.3% 66.3%,42.3% 67.8%,39.5% 69%,100% 69%);
  transform-origin:53.5% 62%;
}
.swallow-fold .fold-crown, .screen .swallow-fold .fold-sheet { transform-origin:46.8% 48.88%; }

@media (prefers-reduced-motion:no-preference) {
  html.motion[data-page="contreforme"] .story:has(.swallow-fold) { --travel:clamp(340px,68svh,740px); }
  .motion .story .swallow-fold {
    filter:drop-shadow(calc(.48cqw - var(--rise,0)*1.28cqw)
      calc(.7cqh + var(--rise,0)*3.1cqh + var(--glide,0)*2cqh)
      calc(.08cqw + var(--rise,0)*.92cqw)
      rgb(60 31 51 / calc(.22 - var(--rise,0)*.08 - var(--glide,0)*.11)));
  }
  .motion .story .screen[data-illustration="hirondelle"] .hand-art {
    --launch-x: 12cqw; --launch-y: 22cqh; --sky-x: 50cqw; --sky-y: 36cqh;
    --start-x: -6cqw; --start-y: 9cqh;
    transform:
      translate3d(calc(var(--start-x) + var(--rise,0) * var(--launch-x) + var(--glide,0) * var(--sky-x)),
                  calc(var(--start-y) + var(--crouch,0) * 1.6cqh - var(--rise,0) * var(--launch-y) - var(--glide,0) * var(--sky-y) - var(--bank,0) * 7cqh + var(--stroke,0) * 1.7cqh),0)
      rotate(calc(8deg + var(--crouch,0) * 6deg - var(--rise,0) * 16deg - var(--bank,0) * 13deg + var(--glide,0) * 9deg))
      scale(calc(.84 - var(--rise,0) * .13 - var(--glide,0) * .35));
  }
  @supports (clip-path:polygon(0 0,100% 0,0 100%)) {
    .motion .swallow-fold .fold-rest { opacity: calc(1 - var(--hinge,0)); }
    .motion .swallow-fold .fold-mesh { display:block; opacity:var(--hinge,0); }
    .motion .swallow-fold .fold-crown {
      transform: matrix(calc(1 - .48 * var(--stroke,0)),calc(-.51 * var(--stroke,0)),
                        calc(-.47 * var(--stroke,0)),calc(1 - .49 * var(--stroke,0)),0,0);
      filter: drop-shadow(0 calc(var(--stroke,0) * .7cqh) calc(var(--stroke,0) * .45cqw) rgb(39 19 43 / .20));
    }
    .motion .screen .swallow-fold .fold-sheet {
      transform:matrix(calc(1 + var(--fold-xx)*var(--stroke,0)),calc(var(--fold-yx)*var(--stroke,0)),
                       calc(var(--fold-xy)*var(--stroke,0)),calc(1 + var(--fold-yy)*var(--stroke,0)),0,0);
      filter:brightness(calc(1 + (var(--fold-tone) - .07)*var(--stroke,0)));
    }
    .motion .screen .swallow-fold .fold-far {
      transform:matrix(calc(1 - .21 * var(--stroke,0)),calc(.39 * var(--stroke,0)),
                       calc(-.11 * var(--stroke,0)),calc(1 - .13 * var(--stroke,0)),0,0);
      filter:brightness(calc(1 - .12 * var(--stroke,0)));
    }
  }
  @container scene (max-aspect-ratio: 1/1) {
    .motion .story .screen[data-illustration="hirondelle"] .hand-art {
      --start-x:-9cqw; --start-y:6cqh; --launch-x:16cqw; --launch-y:19cqh; --sky-x:63cqw; --sky-y:44cqh;
    }
  }
  @media (max-width:760px) {
    html.motion[data-page="contreforme"] .story:has(.swallow-fold) { --travel:clamp(220px,49svh,420px); }
  }
}

.fold-s1 {
  --fold-xx: -0.041481; --fold-yx: 0.037333;
  --fold-xy: -0.032130; --fold-yy: 0.028917; --fold-tone: -0.028;
  clip-path: polygon(47.189% 48.645%, 46.8% 48.88%, 33.4% 62.72%, 0 62.72%, 0 56.301%);
}
.fold-s2 {
  --fold-xx: -0.044284; --fold-yx: 0.034152;
  --fold-xy: -0.045953; --fold-yy: 0.013232; --fold-tone: 0.032;
  clip-path: polygon(46.994% 48.763%, 46.8% 48.88%, 46.603% 49.083%, 0 56.644%, 0 33.048%);
}
.fold-s3 {
  --fold-xx: -0.020290; --fold-yx: 0.039396;
  --fold-xy: -0.103358; --fold-yy: 0.000686; --fold-tone: -0.014;
  clip-path: polygon(46.968% 48.779%, 46.8% 48.88%, 46.667% 49.018%, 0 33.413%, 0 2.131%);
}
.fold-s4 {
  --fold-xx: 0.014576; --fold-yx: 0.086326;
  --fold-xy: -0.131442; --fold-yy: -0.037115; --fold-tone: 0.04;
  clip-path: polygon(0 0, 31.311% 0, 46.982% 48.77%, 46.8% 48.88%, 46.668% 49.017%, 0 2.667%);
}
.fold-s5 {
  --fold-xx: -0.080637; --fold-yx: -0.009425;
  --fold-xy: -0.106967; --fold-yy: -0.012503; --fold-tone: 0.02;
  clip-path: polygon(30.878% 0, 53.3% 0, 53.3% 44.96%, 46.8% 48.88%, 46.637% 49.048%);
}
