
html,body{margin:0;height:100%}
body{--bg:#F4F2EE;--ink:#16181D;--curve:#F25C05;--the:#D24E00;--boxfill:#16181D;--boxline:transparent;--cap:#5A616B;--trace:#FF7A1A;background:var(--bg);font-family:"Segoe UI",Arial,sans-serif;color:var(--ink)}
body.dark{--bg:#16181D;--ink:#F4F2EE;--curve:#FF8A3D;--the:#FF8A3D;--boxfill:transparent;--boxline:#FF8A3D;--cap:#C9CDD3;--trace:#FFE3C7}
.stage{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px}
svg{width:min(1100px,88vw);height:auto;overflow:visible}
.piece{transform-box:fill-box;transform-origin:left center;animation:retract 0.95s cubic-bezier(.6,-0.25,.3,1) forwards}
@keyframes retract{0%{transform:scaleX(1)}22%{transform:scaleX(1.035)}100%{transform:scaleX(0);opacity:.0}}
.p3{transform-origin:center center;animation-name:lift}
@keyframes lift{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.12)}}
.p0{animation-delay:0.90s}
.c0{animation-delay:0.15s}
.p1{animation-delay:2.05s}
.c1{animation-delay:1.30s}
.p2{animation-delay:3.20s}
.c2{animation-delay:2.45s}
.p3{animation-delay:4.35s}
.c3{animation-delay:3.60s}

.box{animation:glowon .9s ease-out 4.55s both}
@keyframes glowon{from{filter:drop-shadow(0 0 0 rgba(255,138,61,0))}to{filter:drop-shadow(0 0 70px rgba(255,138,61,.85))}}
.sidew{animation:sideglow .9s ease-out 4.55s both}
@keyframes sideglow{from{filter:none}to{filter:drop-shadow(0 0 28px rgba(255,205,160,.95))}}
.trace{fill:none;stroke:var(--trace);stroke-linecap:round;stroke-linejoin:round;opacity:0;
  filter:drop-shadow(0 0 22px #FF8A3D) drop-shadow(0 0 6px #FFD9B8);
  animation:run var(--dur,3s) linear 5.65s infinite, show .5s ease-out 5.65s forwards}
.trace.on-dark{stroke:#FFE3C7}
@keyframes run{from{stroke-dashoffset:var(--per,100)}to{stroke-dashoffset:0}}
@keyframes show{to{opacity:1}}
.caps{position:relative;height:28px;width:100%;text-align:center;font-size:15px;letter-spacing:.22em;text-transform:uppercase;color:var(--cap)}
.cap{position:absolute;left:0;right:0;opacity:0;animation:cap 1.5s ease-in-out both}
@keyframes cap{0%{opacity:0}25%{opacity:1}75%{opacity:1}100%{opacity:0}}
@media (prefers-reduced-motion: reduce){.piece{animation-duration:.01s}.trace{animation:show .01s forwards}}

/* Captions: one at a time, each with its fabric piece. The delays must come AFTER the .cap rule above, whose
   'animation' shorthand would otherwise reset every delay to zero and show the four captions on top of each other. */
.cap{animation-duration:1.1s}
.cap.c0{animation-delay:0.15s}
.cap.c1{animation-delay:1.30s}
.cap.c2{animation-delay:2.45s}
.cap.c3{animation-delay:3.60s}
