/* The illustration lives in its own gutter. Both ink and text remain still after each reveal. */
.mwr-on { --mwr-gutter: clamp(48px, 8vw, 140px); }
.mwr-on .mwr-copy[data-mwr-space="inset"] { padding-inline-start: var(--mwr-gutter); }
.mwr-on .mwb-finale-copy.mwr-copy { padding-inline-end: var(--mwr-gutter); }
.mwr-on .mwb-margin .mwb-line, .mwr-on .mwb-margin .mwb-star, .mwr-on .mwb-margin .mwb-orbit { opacity: .32; }
.mwr-stage {
    position: fixed; inset: 0 auto auto 0; z-index: 3; aspect-ratio: 5 / 4;
    pointer-events: none; user-select: none; isolation: isolate;
}
.mwr-stage[hidden] { display: none !important; }
.mwr-stage::before {
    content: ''; position: absolute; inset: -10%; z-index: -1; border-radius: 50%;
    background: radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--ink) 14%, transparent), transparent 67%);
}
.mwr-stage svg { display: block; overflow: visible; width: 100%; height: 100%; }
.mwr-stage path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.mwr-contour { stroke: var(--ink); stroke-width: 1.65; fill: color-mix(in srgb,var(--ink) 5%,transparent) !important; }
.mwr-gold { stroke: var(--leaf); stroke-width: 1.35; }
.mwr-contour, .mwr-gold {
    stroke-dasharray: 1; stroke-dashoffset: 0;
    animation: mwr-etch 1.1s cubic-bezier(.2,.6,.3,1) both;
}
.mwr-gold { animation-delay: .16s; }
.mwr-stage circle.mwr-dust { fill: var(--leaf); }
.mwr-stage path.mwr-dust { stroke: var(--ink); stroke-width: 1.25; }
.mwr-stage .mwr-dust {
    --from-x: -2px; --from-y: 8px; --to-x: 4px; --to-y: -13px;
    animation: mwr-flight 2.3s ease-out var(--delay) both;
}
.mwr-stage[data-motion="snow"] .mwr-dust { --from-x: -5px; --from-y: -13px; --to-x: 5px; --to-y: 20px; }
.mwr-stage[data-motion="water"] .mwr-dust,
.mwr-stage[data-motion="wave"] .mwr-dust { --from-x: -16px; --from-y: 3px; --to-x: 24px; --to-y: -2px; }
.mwr-stage[data-motion="petals"] .mwr-dust { --from-x: -12px; --from-y: -3px; --to-x: 16px; --to-y: 9px; }
.mwr-stage[data-motion="rays"] .mwr-dust { --from-y: 12px; --to-y: -22px; }
.mwr-stage[data-motion="pulse"] .mwr-dust { --from-x: 0px; --from-y: 0px; --to-x: 1px; --to-y: -1px; }
.mwr-stage[data-motion="trail"] .mwr-dust { --from-x: -8px; --from-y: 12px; --to-x: 9px; --to-y: -9px; }
.mwr-stage[data-motion="seeds"] .mwr-dust { --from-x: 4px; --from-y: -12px; --to-x: -5px; --to-y: 8px; }
.mwr-current { position: relative; }
.mwr-current::after {
    content: ''; pointer-events: none; position: absolute; width: 2px; inset: 0 auto 0 -10px;
    border-radius: 100%; background: linear-gradient(transparent,#edc586 35%,#fff1c5 52%,#edc586 68%,transparent);
    box-shadow: -2px 0 10px #f9cb7545; animation: mwr-ribbon .75s ease-out both;
}
[data-mwr-theme="transmutation"] .mwr-current::after { background: linear-gradient(transparent,#92d7bd,#ffd28e,transparent); }
[data-mwr-theme="aube"] .mwr-current::after { background: linear-gradient(transparent,#97c6f1,#b2ead9,transparent); }
.mwr-current:is(li)::after { inset-inline-start: -1.55em; }
@keyframes mwr-etch { from { stroke-dashoffset: 1; opacity: .25; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes mwr-flight {
    0% { opacity: 0; transform: translate(var(--from-x),var(--from-y)); }
    30% { opacity: .85; }
    100% { opacity: 0; transform: translate(var(--to-x),var(--to-y)); }
}
@keyframes mwr-ribbon { from { opacity: .1; transform: scaleY(.25); } to { opacity: .9; transform: scaleY(1); } }
@media (max-width: 800px) {
    .mwr-on { --mwr-gutter: clamp(40px,11vw,64px); }
    .mwr-on .mwr-copy[data-mwr-space] { padding-inline-start: var(--mwr-gutter); }
    .mwr-on .mwb-finale-copy.mwr-copy { padding-inline-end: 0; }
    .mwr-stage .mwr-contour { stroke-width: 2.6; }
    .mwr-stage .mwr-gold { stroke-width: 2.2; }
}
@media (prefers-reduced-motion: reduce), print {
    .mwr-stage, .mwr-current::after { display: none !important; }
    .mwr-on .mwr-copy[data-mwr-space] { padding-inline-start: 0; }
    .mwr-on .mwb-finale-copy.mwr-copy { padding-inline-end: 0; }
}

.mwr-stage .mwr-ripple {
    fill: none; stroke: var(--ink); stroke-width: 1.6; transform-box: fill-box;
    transform-origin: center; animation: mwr-water 2.2s ease-out .1s both;
}
.mwr-stage :is(.mwr-window,.mwr-pupil,.mwr-sun,.mwr-fire,.mwr-cut) {
    fill: var(--leaf); transform-box: fill-box; transform-origin: center;
    animation: mwr-kindle 1.9s ease-out both;
}
.mwr-stage .mwr-sun, .mwr-stage .mwr-fire { transform-origin: bottom; animation-name: mwr-rise; }
.mwr-stage .mwr-cut { animation-name: mwr-facet; }
.mwr-current::before {
    content: ''; position: absolute; pointer-events: none; inset: -4px -5px -4px -9px;
    border-radius: 12px; background: linear-gradient(95deg,#e8b76616,transparent 80%);
    animation: mwr-air 2.2s ease-out both;
}
[data-mwr-scene="winter"].mwr-current::before {
    background: radial-gradient(ellipse at 2% 10%,#98c8ef26,transparent 60%),linear-gradient(115deg,transparent 40%,#d7b37b13,transparent 87%);
}
:is([data-mwr-scene="iris"],[data-mwr-scene="voices"],[data-mwr-scene="wave"]).mwr-current::before {
    background: radial-gradient(ellipse at 12% 80%,#79cad526,transparent 65%);
}
:is([data-mwr-scene="roots"],[data-mwr-scene="facet"]).mwr-current::before {
    background: linear-gradient(168deg,transparent 12%,#95c9a21d,transparent 70%);
}
@keyframes mwr-water { from { transform: scale(.24); opacity: 0; } 30% { opacity: .95; } to { transform: scale(1.8); opacity: 0; } }
@keyframes mwr-kindle { from { opacity: 0; transform: scale(.4); } 65% { opacity: .8; } to { opacity: .33; transform: scale(1); } }
@keyframes mwr-rise { from { opacity: .02; transform: scaleY(.12); } 70% { opacity: .55; } to { opacity: .28; transform: scaleY(1); } }
@keyframes mwr-facet { from { opacity: 0; } 45% { opacity: .65; } to { opacity: .14; } }
@keyframes mwr-air { from { opacity: 0; } 45% { opacity: .9; } to { opacity: .48; } }
@media (prefers-reduced-motion: reduce), print { .mwr-current::before { display:none !important; } }
/* Dans la neige, les flocons traversent aussi la marge du texte avant de fondre. */
[data-mwr-scene="winter"].mwr-current::before {
    background:
        radial-gradient(circle at 6% 12%, #e0f4ffb0 1px, transparent 2px),
        radial-gradient(circle at 21% 65%, #d7efff80 1px, transparent 1.8px),
        radial-gradient(circle at 43% 19%, #c3e9f982 1px, transparent 1.8px),
        radial-gradient(circle at 62% 57%, #d8f3ff66 1px, transparent 2px),
        radial-gradient(circle at 81% 9%, #c1e1f577 1.2px, transparent 2px),
        radial-gradient(ellipse at 0 60%,#a2d0f029,transparent 80%);
    animation: mwr-snowfall 2.8s ease-out both;
}
@keyframes mwr-snowfall {
    from { opacity: 0; transform: translateY(-9px); }
    28% { opacity: .95; }
    to { opacity: .28; transform: translateY(6px); }
}
