/* EVE home: the build sequence (world.js). Desktop first. */
.masthead{position:absolute;top:0;left:0;right:0;margin:0 4.4%;border-bottom:0;z-index:6}
.world{position:relative;height:460vh;background:var(--green)}
.world-pin{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;background:radial-gradient(ellipse at 50% 52%,#1f3930,var(--green) 62%)}
.world-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
/* VIDEO (eve-v4 VIDEO.md): the film is a <video>. On desktop it is the 16:9 frame box itself (the same box as the finale's
   life overlay: covering the window, centred), so world.js can carry the finale's pull-back and lift on it as a compositor
   transform in frame px; the snapshot a jump leaves (.world-snap) sits exactly on it. The phone's portrait cut covers the
   window. No filter, no blend, nothing over the picture. */
#world,.world-snap{position:absolute;left:50%;top:50%;width:max(100%,calc(100vh * 16 / 9));width:max(100%,calc(100svh * 16 / 9));aspect-ratio:16/9;height:auto;translate:-50% -50%;transform-origin:0 0;display:block;object-fit:fill;pointer-events:none}
#world{opacity:0;transition:opacity var(--m-fade) var(--m-ease-out);background:transparent}
.world-ready #world{opacity:1}
.world-snap{opacity:0;visibility:hidden;transition:opacity 260ms var(--m-ease-out),visibility 0s 260ms}
.world-snap.is-on{opacity:1;visibility:visible;transition:none}
/* DAWN: the loop seam's still pictures (world.js): the finale's last frame (.world-dusk, or the canvas copy .world-snap.is-seam
   if its clip failed) and the first day frame (.world-dawn); opacity and visibility written per frame, no transition. */
.world-snap.is-seam{visibility:visible;transition:none}
.world-snap:is(.world-dawn,.world-dusk){transition:none}
@media (max-width:800px){#world,.world-snap{left:0;top:0;width:100%;height:100%;aspect-ratio:auto;translate:none;object-fit:cover;transform:none}}
.world-still .world-snap{display:none}
.world-poster{display:none}
.world-still .world-poster{display:block}
.world-still #world{display:none}
.world-still .world{height:auto}
/* a soft scrim under the copy and the steps, so the light model never fights the type */
.world-pin::before,.world-pin::after{content:"";position:absolute;left:0;right:0;z-index:1;pointer-events:none}
.world-pin::before{top:0;height:34%;background:linear-gradient(#102922e6,#10292200)}
.world-pin::after{bottom:0;height:26%;background:linear-gradient(#10292200,#102922f0)}
.world-copy{position:absolute;z-index:2;left:4.4%;top:clamp(118px,15vh,150px);max-width:620px}
.world-copy h1{margin:0;font-family:"Instrument Serif","Instrument Serif fallback",serif;font-weight:400;font-size:clamp(48px,4.6vw,84px);line-height:.98;letter-spacing:-.01em;color:var(--paper)}
.world-copy h1 em{font-style:normal;color:var(--gold)}
.world-copy p{margin:18px 0 0;max-width:430px;font-size:15px;line-height:1.55;color:var(--muted)}
.world-steps{position:absolute;z-index:2;left:4.4%;right:4.4%;bottom:clamp(26px,5vh,48px);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;outline:0}
.world-steps a{display:grid;grid-template-columns:auto 1fr auto;align-items:baseline;gap:6px 16px;padding:18px 20px;border-top:1px solid #dec38c55;background:#0d221cb3;backdrop-filter:blur(6px);opacity:0;transform:translateY(14px);transition:opacity var(--m-title) var(--m-ease-out),transform var(--m-title) var(--m-ease-out),border-color var(--m-feedback) var(--m-ease-out),background var(--m-feedback) var(--m-ease-out);pointer-events:none}
.world-steps a.is-on{opacity:1;transform:none;pointer-events:auto}
.world-steps a[aria-current]{border-top-color:var(--gold);background:#12302699}
.world-steps a:hover,.world-steps a:focus-visible{border-top-color:var(--gold);background:#183a2fcc}
.world-steps .step-number{font-size:11px;letter-spacing:.12em;color:var(--gold)}
.world-steps b{font-family:"Instrument Serif","Instrument Serif fallback",serif;font-weight:400;font-size:28px;line-height:1}
.world-steps small{grid-column:2;font-size:13px;color:var(--muted)}
.world-steps .step-arrow{grid-row:1;grid-column:3;color:var(--gold)}
.world-progress{position:absolute;z-index:2;left:4.4%;right:4.4%;bottom:calc(clamp(26px,5vh,48px) - 12px);height:1px;background:#dec38c22}
.world-progress i{display:block;height:100%;width:100%;transform:scaleX(var(--world-p,0));transform-origin:left;background:var(--gold)} /* motion round 2: scaleX, not width (no layout per frame) */
.world-still .world-progress{display:none}
@media (prefers-reduced-motion: reduce){.world-steps a{transition:none}#world{transition:none}}
.world-steps a:focus-visible{opacity:1;transform:none;pointer-events:auto}
.world-copy h1,.world-copy p{text-shadow:0 1px 18px #102922,0 0 3px #102922cc}
/* round 5: a soft dark pool behind the headline and subline (no box): the copy reads over the pale bone frames */
.world-copy::before{content:"";position:absolute;z-index:-1;inset:-120px -220px -150px -12vw;pointer-events:none;background:radial-gradient(ellipse 58% 56% at 40% 50%,#102922e0 0%,#102922b8 38%,#1029225c 62%,#10292200 80%)}
/* The header stays with the reader through the whole build; a soft green fade behind it, no box. */
.masthead{position:fixed;margin:0;padding-left:4.4%;padding-right:4.4%}
.masthead::before{content:"";position:absolute;inset:0 0 -40px;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(13,35,28,.82),rgba(13,35,28,.45) 60%,rgba(13,35,28,0))}
/* round 9: the progress line appears with the first step, not on the bare first screen */
.world-progress{opacity:0;transition:opacity var(--m-fade) var(--m-ease-out)}
.world-started .world-progress{opacity:1}
/* Desktop story: opening and dusk copy, with all three chapter links available throughout. */
.world-closing{display:none}
@media (min-width:801px){
  html:not(.world-still) .world-copy{opacity:var(--world-copy-opacity,1);transform:translateY(var(--world-copy-rise,0px));pointer-events:none}
  html:not(.world-still) .world-closing{display:inline-flex;margin-top:24px;pointer-events:auto}
  /* The bottom fill is the only progress rule, including current, hover and focus states. */
  html:not(.world-still) .world-steps a{position:relative;opacity:1;transform:none;pointer-events:auto;border-top-color:transparent;transition:border-color var(--m-feedback) var(--m-ease-out),background var(--m-feedback) var(--m-ease-out)}
  html:not(.world-still) .world-steps a[aria-current],html:not(.world-still) .world-steps a:focus-visible{opacity:1}
  html:not(.world-still) .world-steps a::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--gold);transform:scaleX(var(--step-p,0));transform-origin:left;pointer-events:none}
  html:not(.world-still) .world-progress{display:none}
}

/* Desktop cards stay opaque even when inactive; the copy scrim follows its fade. */
@media(min-width:801px){
 .world-steps a{background:#0d221c;backdrop-filter:none}
 .world-steps a[aria-current]{background:#123026}
 .world-steps a:hover,.world-steps a:focus-visible{background:#183a2f}
 .world-steps b,.world-steps small{color:var(--paper)}
 .world-copy{isolation:isolate}
 .world-copy::before{inset:-65px -100px -75px -80px;background:radial-gradient(ellipse at 38% 48%,#102922ed 0%,#102922c4 44%,#10292200 74%)}
 /* The final night frame needs a wider feather over the lit reception tanks. */
 .world-copy:has(.world-closing:not([hidden]))::after{content:"";position:absolute;z-index:-1;inset:-80px -220px -100px -100px;pointer-events:none;background:radial-gradient(ellipse at 35% 50%,rgba(10,24,20,.55) 0%,rgba(10,24,20,.4) 40%,rgba(10,24,20,0) 72%)}
}

/* Two screens through Biogaz, then two half-steps to the final frame and closing copy.
   Keep the accessible footer from adding a one-pixel scroll after the pin. */
@media(min-width:801px){
 /* The inherited header width caps its contents, but its fade covers the viewport. */
 .masthead::before{right:auto;width:100vw}
 html:not(.world-still) .world{height:400vh}
 body>.sr-only{top:0}
}

/* X1: the night frame breathes at rest (world.js sets html.world-alive only on frame 239, fully drawn, nothing moving,
   tier A, desktop, no reduced motion). A small 2D overlay registered to the 1920x1080 frame exactly as the canvas is
   (object-fit: cover, centred): no parallax, no camera motion, no particles. Compositor-only animations (opacity, scale). */
.world-life{position:absolute;left:50%;top:50%;width:max(100%,calc(100vh * 16 / 9));width:max(100%,calc(100svh * 16 / 9));aspect-ratio:16/9;translate:-50% -50%;pointer-events:none;mix-blend-mode:screen;opacity:0;visibility:hidden;transition:opacity var(--m-press) linear,visibility 0s var(--m-press)}
html.world-alive .world-life{opacity:1;visibility:visible;transition:opacity var(--m-cut) var(--m-ease-out),visibility 0s}
.world-life i{position:absolute;left:calc(var(--x) / 19.2 * 1%);top:calc(var(--y) / 10.8 * 1%);translate:-50% -50%;display:block}
/* the flare: a warm halo that flickers, and a flame core that licks (bottom-anchored), on two unrelated periods */
.world-life .flare-halo{--x:1183;--y:418;width:calc(84 / 19.2 * 1%);aspect-ratio:7/10;background:radial-gradient(ellipse 50% 50% at 50% 50%,#ffb3664d 0%,#ff944026 42%,#ff8a3300 72%)}
.world-life .flare-core{--x:1183;--y:420;width:calc(15 / 19.2 * 1%);aspect-ratio:15/40;transform-origin:50% 100%;background:radial-gradient(ellipse 50% 50% at 50% 62%,#fff1d466 0%,#ffb0663d 48%,#ff9a4a00 78%)}
/* lamp heads: a faint, steady glow (ROUND 8 resumed: no breathing light over the picture, Stan's flicker) */
.world-life .lamp{width:calc(30 / 19.2 * 1%);aspect-ratio:1;background:radial-gradient(circle,#ffe6b84d 0%,#ffd99a1a 38%,#ffd99a00 70%);opacity:.76}
html.world-alive .world-life .flare-halo{animation:eve-flare-halo 2.9s linear infinite}
html.world-alive .world-life .flare-core{animation:eve-flare-core 1.7s linear infinite}
/* ROUND 8 resumed (Stan, flicker): the flame keeps its licking shape; its light varies only 90-100 % (was 60-100 %) */
@keyframes eve-flare-halo{0%{opacity:.95;scale:1}11%{opacity:.91;scale:.97}23%{opacity:.98;scale:1.02}37%{opacity:.92;scale:.99}52%{opacity:1;scale:1.03}64%{opacity:.91;scale:.98}79%{opacity:.97;scale:1.01}91%{opacity:.93;scale:.99}100%{opacity:.95;scale:1}}
@keyframes eve-flare-core{0%{opacity:.95;scale:1 1;rotate:0deg}17%{opacity:.9;scale:.97 .92;rotate:1.2deg}34%{opacity:1;scale:1.03 1.07;rotate:-.8deg}49%{opacity:.91;scale:.98 .95;rotate:.6deg}66%{opacity:.98;scale:1.02 1.05;rotate:-1.1deg}83%{opacity:.9;scale:.99 .94;rotate:.4deg}100%{opacity:.95;scale:1 1;rotate:0deg}}
html.world-still .world-life{display:none}
@media (prefers-reduced-motion:reduce){.world-life{display:none}}
@media (max-width:800px){.world-life{display:none}}

/* X1: a card lights while the build rests on its beat (--step-held 0..1, from world.js, follows the picture). */
@media(min-width:801px){
 html:not(.world-still) .world-steps a::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:var(--step-held,0);box-shadow:inset 0 1px 0 var(--gold);background:linear-gradient(180deg,#dec38c29,#dec38c00 75%)} /* no transition, no colour animation: --step-held changes every scroll frame */
}
@media(min-width:801px){html:not(.world-still) .world-steps a>*{position:relative}}

/* X1b: the -2px hover lift (interaction-feel.css) moved a card off a pointer resting on its bottom 1-2 px, so :hover and
   the build's lean toggled on every small mouse move. While hovered, the card's hit area reaches 3 px below it (an
   invisible extension: the light layer's gradient is transparent there; still mode gets a bare one). */
@media(min-width:801px) and (hover:hover){
 html:not(.world-still) .world-steps a:hover::before{bottom:-3px;pointer-events:auto}
 html.world-still .world-steps a.is-on{position:relative}
 html.world-still .world-steps a.is-on:hover::before{content:"";position:absolute;inset:0 0 -3px;pointer-events:auto}
}

/* PACE15: the existing closing state has a quieter scale and an inline inquiry link. */
@media(min-width:801px){
 html:not(.world-still) .world-copy:has(.world-closing:not([hidden])) h1{font-size:clamp(42px,3.6vw,66px);line-height:1.04}
 html:not(.world-still) .world-closing{min-height:44px;margin-top:14px;padding:10px 0;border:0;border-radius:0;background:none;gap:20px;font-size:14px;color:var(--paper);box-shadow:none}
 html:not(.world-still) .world-closing span{color:var(--gold)}
 html:not(.world-still) .world-closing:hover,html:not(.world-still) .world-closing:focus-visible{background:none;color:var(--gold);text-decoration:underline;text-underline-offset:5px}
}

/* PACE16: existing closing copy and legal details, selected by the existing motion state. */
.world-closing-title,.world-legal{display:none}
@media(min-width:801px){
 html:not(.world-still) .world-copy:has(.world-closing:not([hidden])) :is(.world-opening-title,.world-opening-description){display:none}
 html:not(.world-still) .world-copy:has(.world-closing:not([hidden])) .world-closing-title{display:block}
 /* Keep the card surface solid; only its contents wait for the system's first build frame. */
 html:not(.world-still) .world-steps a>*{opacity:clamp(.65,calc(.65 + var(--step-p,0) * 10000),1)}
 html:not(.world-still) .world-steps a:is(:hover,:focus-visible)>*{opacity:1}
}

/* PACE17: the closing headline shares the chapter scale; contact is one clear column. */
@media(min-width:801px){
 html:not(.world-still) .world-copy:has(.world-closing:not([hidden])){max-width:620px}
 html:not(.world-still) .world-copy:has(.world-closing:not([hidden])) h1{font-size:clamp(38px,4.5vw,68px);line-height:1.12}
 html:not(.world-still) .world-closing{
  width:100%;font-size:clamp(30px,2.25vw,40px);font-weight:400;letter-spacing:-.035em;line-height:1.3;
  align-items:center;justify-content:space-between;margin-top:24px;padding:8px 0 14px;border-bottom:1px solid #ced6c840;
 }
 html:not(.world-still) .world-closing span{font-size:1em}
 html:not(.world-still) .world-copy:has(.world-closing:not([hidden])) .world-legal{
  display:block;position:absolute;left:0;top:calc(100svh - clamp(118px,15vh,150px) - clamp(26px,5vh,48px) - 118px);transform:translateY(-100%);width:100%;
  max-width:440px;margin:0;font-size:11px;line-height:1.9;color:var(--muted);pointer-events:none;
 }
}

/* PACE18: completion follows the existing frame progress, including reverse scroll.
   The final line is a single footer; chapter links remain available in the header. */
@media(min-width:801px){
 html:not(.world-still) .world-steps a small,
 html:not(.world-still) .world-steps a:is(:hover,:focus-visible) small{opacity:clamp(0,calc((var(--step-p,0) - .9999) * 10000),1)}
 html:not(.world-still) .world-closing{width:max-content;max-width:100%;font-size:clamp(26px,2vw,34px);gap:18px}
 html:not(.world-still) .world-copy:has(.world-closing:not([hidden])) .world-legal{
  display:flex;gap:clamp(8px,1.6vw,24px);top:calc(100svh - clamp(118px,15vh,150px) - 28px);width:91.2vw;max-width:none;
  padding-top:16px;border-top:1px solid #ced6c830;font-size:clamp(8px,.76vw,11px);white-space:nowrap;
 }
 html:not(.world-still) .world-pin:has(.world-closing:not([hidden])) .world-steps{opacity:0;visibility:hidden;pointer-events:none}
}

/* PACE21: one header rail, stable card rows and a closing column using existing copy. */
.world-endcap{display:none}
@media(min-width:801px){
 .masthead{width:100%;max-width:none}
 html:not(.world-still) .world-steps a{grid-template-rows:28px 18px;align-items:baseline;border-bottom:1px solid rgba(255,255,255,.14)}
 html:not(.world-still) .world-steps a>:is(.step-number,b,.step-arrow){grid-row:1;translate:none}
 html:not(.world-still) .world-steps small{grid-row:2}
 html:not(.world-still) .world-copy:has(.world-closing:not([hidden])){width:min(620px,91.2vw)}
 html:not(.world-still) .world-closing{width:100%;justify-content:flex-start;gap:16px;margin-bottom:16px}
 html:not(.world-still) .world-copy:has(.world-closing:not([hidden])) .world-endcap{display:block;pointer-events:auto}
 .world-copy:has(.world-closing:not([hidden]))::after{inset:-160px -300px -450px -100px;background:linear-gradient(90deg,rgba(10,28,22,.96),rgba(10,28,22,.9) 55%,rgba(10,28,22,0) 100%)}
 .world-endcap .prepare{border-bottom:1px solid #ced6c840;padding-bottom:12px}
 .world-endcap summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;list-style:none;cursor:pointer;font-size:12px}
 .world-endcap summary::-webkit-details-marker{display:none}
 .world-endcap summary span{font-size:22px;color:var(--gold);transition:transform var(--m-feedback) var(--m-ease-out)}
 .world-endcap .prepare[open] summary span{transform:rotate(45deg)}
 .world-endcap summary:is(:hover,:focus-visible){color:var(--gold)}
 .world-endcap summary:focus-visible{outline:2px solid var(--gold);outline-offset:6px}
 .world-endcap h3{font-size:12px;font-weight:500;margin:18px 0 12px;color:var(--gold)}
 .world-endcap ul{margin:0 0 12px;padding-left:18px;color:var(--muted);font-size:12px;line-height:2.1}
 .world-endcap .other-chapters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:28px 0}
 .world-endcap .other-chapters a{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:14px 18px;border:1px solid rgba(244,246,244,.14);background:rgba(12,35,30,.88);font-size:12px}
 .world-endcap .other-chapters span{color:var(--gold)}
 .world-endcap .other-chapters a:is(:hover,:focus-visible){border-color:var(--gold)}
}

/* PACE22: retain both row baselines while trimming only the spare bottom padding.
   Existing aria-current and frame progress also work when scrolling backwards. */
@media(min-width:801px){
 html:not(.world-still) .world-steps a{padding-bottom:10px;border-bottom-color:rgba(232,208,150,.16)}
 html:not(.world-still) .world-steps a[aria-current]{border-top-color:rgba(232,208,150,.28)}
 html:not(.world-still) .world-steps a:not([aria-current])::after{opacity:.55}
 html:not(.world-still) .world-steps a:not([aria-current]) small,
 html:not(.world-still) .world-steps a:not([aria-current]):is(:hover,:focus-visible) small{opacity:clamp(0,calc((var(--step-p,0) - .9999) * 5500),.55)}
 html:not(.world-still) .world-steps a[aria-current] .step-arrow{opacity:1}
}

/* AUTO: the build plays itself on a clock (world.js); the page no longer scrolls through it: the build is one screen.
   COPY SECTIONS: the reading sections follow below it (copy-sections.css); the page scrolls natively there, never the film. */
html.world-auto .world{height:100vh;height:100svh}
html.world-auto,html.world-auto body{overscroll-behavior-y:none}
/* The pause/play control (timeline.js) sits above the right end of the dock. */
.world-pin .timeline-toggle{position:absolute;z-index:3;right:4.4%;bottom:calc(clamp(26px,5vh,48px) + 96px)}
@media(max-width:800px){.world-pin .timeline-toggle{bottom:auto;top:132px}}

/* ROUND 2 (ART-fable 2): the finale is a working plant, not a photograph. On the clock, inside the live hold: a lamp by
   the substation flickers on (1.2 s in), a faint gold pulse runs along the lines out of the substation (from 2.4 s,
   every 3.6 s), and headlights pass on the access road (from 3.4 s, every 5.4 s). Registered to the frame like the rest
   of .world-life (and pulled back with it: world.js scales the overlay about the finale's pivot). Pause stops them. */
.world-life{transform-origin:calc(900 / 19.2 * 1%) calc(600 / 10.8 * 1%)}
.world-life .lamp-on{width:calc(46 / 19.2 * 1%);aspect-ratio:1;background:radial-gradient(circle,#fff0cc80 0%,#ffdf9e33 34%,#ffd99a00 70%);opacity:0}
.world-life .life-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.world-life .life-lines path{fill:none;stroke-linecap:round;opacity:0}
.world-life .wire{stroke:#f2d48f;stroke-width:3;stroke-dasharray:70 2000;stroke-dashoffset:70;filter:drop-shadow(0 0 4px #e8c06fcc)}
.world-life .car{stroke:#ffe6b0;stroke-width:9;stroke-dasharray:14 2000;stroke-dashoffset:14;filter:blur(2.5px) drop-shadow(0 0 10px #ffd99a)}
html.world-alive .world-life .lamp-on{animation:eve-lamp-on 2.2s linear 1.2s 1 both}
html.world-alive .world-life .wire{animation:eve-wire 3.6s cubic-bezier(.4,0,.6,1) 2.4s infinite}
html.world-alive .world-life .wire.w2{animation-delay:2.9s}
html.world-alive .world-life .wire.w3{stroke-dasharray:24 2000;stroke-dashoffset:24;animation:eve-wire-up 3.6s cubic-bezier(.4,0,.6,1) 2.1s infinite}
html.world-alive .world-life .car{animation:eve-car 5.4s cubic-bezier(.45,0,.55,1) 3.4s infinite}
@keyframes eve-lamp-on{0%{opacity:0}34%{opacity:.95}100%{opacity:.95}}   /* ROUND 8 resumed: one clean rise, no stutter (Stan, flicker) */
@keyframes eve-wire{0%{stroke-dashoffset:70;opacity:0}8%{opacity:.85}55%{stroke-dashoffset:-560;opacity:.6}60%,100%{stroke-dashoffset:-600;opacity:0}}
@keyframes eve-wire-up{0%{stroke-dashoffset:24;opacity:0}6%{opacity:.8}14%,100%{stroke-dashoffset:-90;opacity:0}}
@keyframes eve-car{0%{stroke-dashoffset:14;opacity:0}6%{opacity:.75}64%{stroke-dashoffset:-660;opacity:.75}70%,100%{stroke-dashoffset:-700;opacity:0}}
html.world-paused .world-life *{animation-play-state:paused}

/* ROUND 2 (ART-fable 5): the lane captions become one line under the headline on the finale. */
.world-done{display:none}
@media (min-width:801px){
 html:not(.world-still) .world-copy .world-endcap{position:relative}
 /* out of the flow, under the block: the hero frame itself never moves (copy.check, Argon 8.5) */
 html.world-ended:not(.world-still) .world-copy .world-done{display:block;position:absolute;left:0;top:100%;margin:22px 0 0;white-space:nowrap;font-size:13px;line-height:1.5;letter-spacing:.02em;color:var(--gold);animation:eve-done-in var(--m-dissolve-slow,1.8s) var(--m-ease-out) .3s both}
}
@keyframes eve-done-in{from{filter:opacity(0);translate:0 6px}to{filter:opacity(1);translate:0 0}}
@media (min-width:801px){
 /* ART-argon 4: the finale's shade (closing.css, PACE22) was .97 dark to 44 % of the width and .16 over the rest, so the
    fermenters and the flare sank into the green. Now it protects the copy column only and is gone by half the width:
    with the plant pulled back to the right (world.js), Biogaz reads with the same weight as Sieć and Droga. */
 html:not(.world-still) body .world-pin:has(.world-closing:not([hidden]))::before{background:linear-gradient(90deg,rgba(10,26,21,.94) 0%,rgba(10,26,21,.86) 23%,rgba(10,26,21,.5) 33%,rgba(10,26,21,.14) 43%,rgba(10,26,21,0) 53%)}
}

/* ROUND 3 (eve-v4/SCHED.md): the first paint is the world, not an empty green. VIDEO: the first picture is the film's own
   first frame (assets/film/poster.webp, the phone's cut on a phone), an ordinary image under the video, so the first screen
   is the build site at once and the video, when its first frame is decoded, lands on the same picture. */
.world-first{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
.world-first img{width:100%;height:100%;object-fit:cover;display:block}
.world-ready .world-first{visibility:hidden;transition:visibility 0s var(--m-fade,.6s)}
.world-still .world-first{display:none}
/* ROUND 3: the finale's life, visible on a real screen. Round 2's pulses were 3 px dashes and a 9 px blur at 75 %, lost
   at 1920 on a plant that fills half the window. Same three events on the same clock, made legible: the substation lamp
   and the yard lamps breathe deeper, the line pulse is longer and brighter with a soft glow, the headlights are a
   brighter pair with a light pool, and the flare halo is larger. Still compositor-only (opacity, stroke offset, scale). */
.world-life .lamp{width:calc(40 / 19.2 * 1%);background:radial-gradient(circle,#ffe6b880 0%,#ffd99a2e 38%,#ffd99a00 70%)}
.world-life .flare-halo{width:calc(120 / 19.2 * 1%)}
.world-life .wire{stroke:#ffe2a0;stroke-width:4;stroke-dasharray:120 2000;stroke-dashoffset:120;filter:drop-shadow(0 0 6px #f0c46e) drop-shadow(0 0 14px #e8b45a99)}
@keyframes eve-wire{0%{stroke-dashoffset:120;opacity:0}6%{opacity:1}55%{stroke-dashoffset:-560;opacity:.85}60%,100%{stroke-dashoffset:-600;opacity:0}}
.world-life .car{stroke:#fff1cc;stroke-width:11;filter:blur(2px) drop-shadow(0 0 12px #ffd99a) drop-shadow(0 0 26px #ffd99a99)}
@keyframes eve-car{0%{stroke-dashoffset:14;opacity:0}6%{opacity:1}64%{stroke-dashoffset:-660;opacity:1}70%,100%{stroke-dashoffset:-700;opacity:0}}
/* a second car the other way, half a cycle later, so the road is never empty for long in the hold */
.world-life .car.c2{stroke:#ffd2a8}
html.world-alive .world-life .car.c2{animation-delay:6.1s}

/* (the lamps are the 3rd to 10th <i> in .world-life, after the flare's two) */
/* ROUND 3 (ART-fable2 4): the yard lamps switch on in sequence over the first 3 s of the hold (left to right, as the
   lane captions resolved), then breathe; with the headlights and the line pulse, every second of the hold differs. */
/* ROUND 8 resumed (Stan: "the light from each next frame changes... like an old camera"): each lamp switches on in one
   eased rise and then holds steady; the on-off stutter and the breathing were light pulsing over a still picture. */
html.world-alive .world-life .lamp{opacity:0;animation:eve-lamp-in .5s var(--m-ease-out,ease-out) var(--on,0s) 1 forwards}
@keyframes eve-lamp-in{from{opacity:0}to{opacity:.85}}
.world-life .lamp:nth-of-type(3){--on:.3s}.world-life .lamp:nth-of-type(4){--on:.65s}.world-life .lamp:nth-of-type(5){--on:1s}.world-life .lamp:nth-of-type(6){--on:1.35s}
.world-life .lamp:nth-of-type(7){--on:1.7s}.world-life .lamp:nth-of-type(8){--on:2.05s}.world-life .lamp:nth-of-type(9){--on:2.4s}.world-life .lamp:nth-of-type(10){--on:2.75s}

/* ROUND 4 (ART-fable2 4, eve-v4/SCHED.md): the finale moves where a two-second sample sees it. The round 3 life was
   registered on the plant but too faint to read at 1920 (two hold samples four seconds apart looked the same). Now a car
   drives the access road every 6 s each way, three seconds apart (one is almost always on the road), its headlights
   throwing a pool of light ahead on the asphalt; the yard lamps switch on one by one over the first 3 s of the hold with a
   wider pool each; the flare's halo and flame are larger and flicker deeper. The overlay follows world.js's view (one
   scale and shift from its top-left corner), so the pull-back, lift and push-in keep it on the geometry. */
.world-life{transform-origin:0 0}
html:not(.world-alive) .world-life{transition:opacity .5s var(--m-ease-out),visibility 0s .5s}
.world-life .car{stroke:#fff6dc;stroke-width:14;stroke-dasharray:16 2000;stroke-dashoffset:16;filter:blur(1.5px) drop-shadow(0 0 10px #ffe2a8) drop-shadow(0 0 28px #ffd99acc)}
.world-life .beam{fill:none;stroke:#ffe6b4;stroke-width:54;stroke-linecap:round;stroke-dasharray:90 2000;stroke-dashoffset:16;opacity:0;filter:blur(14px)}
html.world-alive .world-life .car{animation:eve-car 6s cubic-bezier(.4,0,.6,1) .6s infinite}
html.world-alive .world-life .car.c2{animation-delay:3.6s}
html.world-alive .world-life .beam{animation:eve-beam 6s cubic-bezier(.4,0,.6,1) .6s infinite}
html.world-alive .world-life .beam.c2{animation-delay:3.6s}
@keyframes eve-car{0%{stroke-dashoffset:16;opacity:0}5%{opacity:1}68%{stroke-dashoffset:-680;opacity:1}72%,100%{stroke-dashoffset:-700;opacity:0}}
@keyframes eve-beam{0%{stroke-dashoffset:16;opacity:0}5%{opacity:.42}68%{stroke-dashoffset:-680;opacity:.42}72%,100%{stroke-dashoffset:-700;opacity:0}}
.world-life .lamp{width:calc(70 / 19.2 * 1%);background:radial-gradient(circle,#fff0c8b3 0%,#ffdc9e4d 30%,#ffd99a14 55%,#ffd99a00 70%)}
.world-life .flare-halo{width:calc(170 / 19.2 * 1%);background:radial-gradient(ellipse 50% 50% at 50% 50%,#ffb36680 0%,#ff944038 42%,#ff8a3300 72%)}
.world-life .flare-core{width:calc(22 / 19.2 * 1%);background:radial-gradient(ellipse 50% 50% at 50% 62%,#fff1d4a6 0%,#ffb06661 48%,#ff9a4a00 78%)}
@media (prefers-reduced-motion:reduce){.world-life .car,.world-life .beam{animation:none}}

/* ROUND 5 (ART-fable4 1, eve-v4/SCHED.md): the promise is on screen from frame zero. "Jeden wykonawca, jeden harmonogram."
   and its subline stand top left at the finale's size from 0 s, dim (the headline in a quiet paper, its gold half muted),
   and light to white and gold over 1 s as the finale begins (world.js --world-promise 0 to 1), then go back to dim with
   the loop's words. Nothing new is written: the block is the finale's own, laid out from t = 0 (Copy sections 8); only
   the eyebrow, "Usługi" and the finale's shade still wait for the finale (--world-copy-opacity). The block never moves. */
@media (min-width:801px){
 html:not(.world-still) .world-copy{opacity:1;transform:none}
 html:not(.world-still) .world-copy :is(.world-closing-eyebrow,.world-endcap-foot){opacity:var(--world-copy-opacity,1)}
 html:not(.world-still) .world-copy h1{opacity:calc(.58 + .42 * var(--world-promise,1))}
 html:not(.world-still) .world-copy h1 em{color:color-mix(in oklab,var(--gold) calc(45% + 55% * var(--world-promise,1)),#9fa89a)}
 html:not(.world-still) .world-copy .world-thesis{opacity:calc(.62 + .38 * var(--world-promise,1))}
}

/* ROUND 6 (ART-fable5 4, eve-v4/SCHED.md): the headline lights in stages and becomes the schedule's fourth lane. Line one
   ("Jeden wykonawca,") stays dim through the build; in line two "jeden" lights gold as Droga completes, "harmonogram" as
   Sieć completes and the full stop as Biogaz completes (world.js --hl-1..3, 0.5 s each, on the clock); the finale then
   lights the whole promise (--world-promise). The words keep their places: colour and opacity only. */
@media (min-width:801px){
 html:not(.world-still) .world-copy h1{opacity:1}
 html:not(.world-still) .world-copy h1 .hl-0{opacity:calc(.58 + .42 * var(--world-promise,1))}
 html:not(.world-still) .world-copy h1 em{color:inherit}
 html:not(.world-still) .world-copy h1 .hl{--lit:max(var(--world-promise,1),var(--hl-n,1));opacity:calc(.58 + .42 * var(--lit));
   color:color-mix(in oklab,var(--gold) calc(40% + 60% * var(--lit)),#9fa89a);text-shadow:0 0 calc(18px * var(--lit)) color-mix(in oklab,var(--gold) calc(30% * var(--lit)),transparent)}
 html:not(.world-still) .world-copy h1 .hl-1{--hl-n:var(--hl-1,1)}
 html:not(.world-still) .world-copy h1 .hl-2{--hl-n:var(--hl-2,1)}
 html:not(.world-still) .world-copy h1 .hl-3{--hl-n:var(--hl-3,1)}
}

/* ROUND 6 (ART-fable5 5): the gate. "Przygotuj zapytanie" rises from the schedule's end cap into a 56 px gold-outlined
   button under the headline as the finale lights (world.js --gate, 0 to 1, and the rise as a transform), captioned by the
   three-part done line under it, held until the loop's words go. Out of the hero frame's way: hidden (not just
   transparent) until it rises, so the keyboard never lands on it mid-build. Desktop autoplay only. */
.world-gate{display:none}
@media (min-width:801px){
 html:not(.world-still) .world-copy .world-gate{display:inline-flex;align-items:center;gap:16px;height:56px;box-sizing:border-box;padding:0 26px;visibility:hidden;pointer-events:auto;
  border:1px solid color-mix(in oklab,var(--gold) calc(100% * var(--gate,0)),transparent);background:color-mix(in oklab,#0a1c17 calc(70% * var(--gate,0)),transparent);
  font-size:15px;letter-spacing:.02em;color:var(--gold);opacity:clamp(0,calc(var(--gate,0) * 2.5),1);text-decoration:none;
  transition:background var(--m-feedback) var(--m-ease-out),color var(--m-feedback) var(--m-ease-out)}
 html:not(.world-still) .world-copy .world-gate span{transition:transform var(--m-feedback) var(--m-ease-out)}
 html:not(.world-still) .world-copy .world-gate:is(:hover,:focus-visible){background:var(--gold);color:#0a1c17}
 html:not(.world-still) .world-copy .world-gate:is(:hover,:focus-visible) span{transform:translateY(2px)}
 html:not(.world-still) .world-copy .world-gate:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
}

/* BRIGHT (Stan 2026-11-09: "why is it all so dark and so blurry?... before we started playing with it, everything was very
   light, colorful and very crisp"). Nothing dims the picture any more: the lens (a vignette into the page green, a dark far
   corner and a green top band), the vignette image and the two full-width scrims of the pin (34 % from the top, 26 % from
   the bottom) are gone on the playing desktop build. What needs a ground for its type keeps its own, local one: the
   masthead's fade, the headline's pool, the schedule's ground (schedule.css) and the finale's copy column. */
@media (min-width:801px){
 html:not(.world-still) .world-pin::before,html:not(.world-still) .world-pin::after{background:none}
 /* the headline's pool hugs the headline (it reached 1110 x 691 px, a dark cloud over the top-left third of the picture) */
 html:not(.world-still) body .world-copy:not(:has(.world-closing:not([hidden])))::before{inset:-70px -130px -80px -84px;background:radial-gradient(ellipse 60% 50% at 40% 50%,#0c1d18d9 0%,#0c1d18b8 40%,#0c1d1852 68%,#0c1d1800 100%)}
}

/* CRISP 2 (ART-fable-bright2 2; Stan 2026-11-10: "light, colourful and very crisp"): the headline stands on a crisp plate,
   not in a blurred pool. The pool (a radial smudge of the page green over the top-left of a bright render, with soft dark
   shadows under every letter) dimmed the picture without making the dim words readable. Now: one opaque plate in the
   shell's green with hard edges, from the window's left edge to just past the headline, behind the headline and its
   thesis only (the block hugs its text: width max-content); the type sits on it with no shadow. At the finale the same
   plate grows by a second, larger one fading in behind it (opacity only, on the clock: --world-copy-opacity) to take the
   eyebrow and the gate, and the finale's full-window shade is gone (it laid 16-97 % of dark over the whole night picture). */
@media (min-width:801px){
 html:not(.world-still) body .world-pin .world-copy.world-copy.world-copy{width:max-content !important;max-width:91.2vw;isolation:isolate}
 html:not(.world-still) body .world-pin .world-copy.world-copy.world-copy::before,
 html:not(.world-still) body .world-pin .world-copy.world-copy.world-copy::after{content:"";display:block;position:absolute;pointer-events:none;background:#0e251e;border:1px solid #dec38c33;border-left:0}
 html:not(.world-still) body .world-pin .world-copy.world-copy.world-copy::before{z-index:-1;left:calc(-4.4vw - 1px);right:calc(-44px * var(--k));top:calc(41px * var(--k) - 34px * var(--k));bottom:calc(76px * var(--k) - 30px * var(--k));opacity:1}
 html:not(.world-still) body .world-pin .world-copy.world-copy.world-copy::after{z-index:-2;left:calc(-4.4vw - 1px);right:calc(-44px * var(--k));top:calc(-30px * var(--k));bottom:calc(-34px * var(--k));opacity:var(--world-copy-opacity,1)}
 html:not(.world-still) body .world-pin .world-copy.world-copy.world-copy :is(h1,p){text-shadow:none}
 html:not(.world-still) body .world-pin .world-copy.world-copy.world-copy h1 .hl-0{opacity:calc(.74 + .26 * var(--world-promise,1))}
 html:not(.world-still) body .world-pin .world-copy.world-copy.world-copy h1 .hl{opacity:calc(.74 + .26 * var(--lit));text-shadow:none}
 html:not(.world-still) body .world-pin .world-copy.world-copy.world-copy .world-thesis{opacity:calc(.8 + .2 * var(--world-promise,1))}
 html:not(.world-still) body .world-pin:has(.world-closing:not([hidden]))::before{display:none}
}

/* CRISP 5 (ART-fable-bright2 3, 5): the home masthead's fade reaches a third less far (it ran 40 px past the masthead, to
   145 px at 1920; now it ends 9 px inside it, at 96 px): dense behind the logo and the navigation, gone below them. */
@media (min-width:801px){
 html:not(.world-still) body .masthead::before{inset:0 0 9px;background:linear-gradient(180deg,rgba(13,35,28,.88) 0%,rgba(13,35,28,.82) 64%,rgba(13,35,28,0) 100%)}
}

/* LIVE1 (ART-fable-live1 5): the headline plate steps back to 70 % after chapter 01 (world.js --world-copy-scale, on the
   clock), scaled from the window's edge (the plate's own left edge, 4.4vw left of the block) so it stays docked; it is
   full again for the finale. Transform only. */
/* R10 3 (ART-fable-r10 3): no step back any more. The plate is one size (the full one) for the whole loop: no scale, no
   transform; only the gold word highlight moves. */

/* R10 2 (ART-fable-r10 2, 1): a solid nav band with a hard edge, as on the phone, and the film starts below it. The
   masthead's dark fade lay over the light footage (a darkening grade); now the masthead is the shell's opaque green with
   one gold hairline at its bottom edge (the dock's own top edge), and nothing of it reaches the picture. The film box
   (video, its jump snapshot, the finale's life overlay and the first picture) covers the window BELOW the band
   (--film-top: the masthead's bottom, measured by world.js on every resize; 105 px until then), centred in it, and is
   never drawn larger than its encoded 1920 x 1080: on a window wider than 1920 (or a 16:9 cover wider than 1920) it stands
   at its own pixels in the middle of the shell green instead of being upscaled. schedule.js and world.js map frame
   points through the same box. */
@media (min-width:801px){
 :root{--film-top:105px}
 html body .masthead{background:#0e251e;border-bottom:1px solid #dec38c59;box-sizing:border-box}
 html body .masthead::before{display:none}
 html:not(.world-still) #world,html:not(.world-still) .world-snap,html:not(.world-still) .world-life,html:not(.world-still) .world-first{
  top:calc(var(--film-top) + (100% - var(--film-top)) / 2);
  width:min(1920px,max(100%,calc((100vh - var(--film-top)) * 16 / 9)));width:min(1920px,max(100%,calc((100svh - var(--film-top)) * 16 / 9)))}
 html:not(.world-still) .world-first{inset:auto;left:50%;top:calc(var(--film-top) + (100% - var(--film-top)) / 2);height:auto;aspect-ratio:16/9;translate:-50% -50%}
 html:not(.world-still) .world-first img{object-fit:fill}
 html.world-still .world-poster{top:var(--film-top);height:calc(100% - var(--film-top))}
}

/* R11 1 (ART-fable-r11 1): free the desktop film. The headline plate and the card are one lintel under the nav band: the
   plate hugs its text (28 px a side, 24 px above and below, x --k) instead of running from the window's edge to 44 px
   past the words, hangs from the card's top edge (the band + 24 px x --kd) and has the card's height and dress (opaque
   card green, faint edge, gold top rule). schedule.js measures the text and writes the plate's box (--plate-l/-w/-t,
   --lintel-h); the values below are its first-paint stand-ins. The headline keeps its size; its leading tightens
   (1.12 -> 1.06) and the thesis sits 14 px under it (was 22), so the band is ~30 px shallower than the old plate. The
   finale's larger plate (::after: eyebrow and gate) shares the lintel's top edge and its left and right edges. */
@media (min-width:801px){
 html:not(.world-still) body .world-pin .world-copy.world-copy.world-copy{top:calc(var(--film-top) + 24px * var(--kd) + 24px * var(--k))}
 /* the finale's eyebrow (EVE AVIATION) leaves the flow and stands in the plate's top padding, so the headline starts the
    block and the finale's plate grows only downward from the lintel's top edge (it used to reach up under the band) */
 html:not(.world-still) body .world-pin .world-copy.world-copy.world-copy .world-closing-eyebrow{position:absolute;left:0;top:-17px;margin:0}
 html:not(.world-still) body .world-pin .world-copy.world-copy.world-copy h1{line-height:1.06}
 html:not(.world-still) body .world-pin .world-copy.world-copy.world-copy .world-thesis{margin-top:calc(14px * var(--k))}
 html:not(.world-still) body .world-pin .world-copy.world-copy.world-copy::before,
 html:not(.world-still) body .world-pin .world-copy.world-copy.world-copy::after{left:var(--plate-l,calc(-28px * var(--k)));width:var(--plate-w,calc(100% + 56px * var(--k)));right:auto;box-sizing:border-box;
  background:#0a1c17;border:1px solid #dec38c2e}
 html:not(.world-still) body .world-pin .world-copy.world-copy.world-copy::before{top:var(--plate-t,calc(-24px * var(--k)));height:var(--lintel-h,calc(246px * var(--k)));bottom:auto;border-top-color:var(--gold)}
 html:not(.world-still) body .world-pin .world-copy.world-copy.world-copy::after{top:var(--plate-t,calc(-24px * var(--k)));border-top-color:var(--gold)}
 html.sched-on:not(.sched-still) .sched-card{box-shadow:none}
}
/* R11 1: the film box (video, jump snapshot, finale life overlay, first picture) rides up by --film-dy (world.js, from
   schedule.js filmShift: 5 % of its height, never past the dock's top edge). A shift only: same size, same pixels. */
@media (min-width:801px){
 :root{--film-dy:0px}
 html:not(.world-still) #world,html:not(.world-still) .world-snap,html:not(.world-still) .world-life,html:not(.world-still) .world-first{
  top:calc(var(--film-top) + (100% - var(--film-top)) / 2 + var(--film-dy))}
}
@media (min-width:801px){
 html:not(.world-still) body .world-pin .world-copy.world-copy.world-copy{translate:0 var(--copy-dy,0px)}
}

/* R11 6 (ART-fable-r11 6): one progress signal. "jeden harmonogram." no longer lights word by word with the lanes (and the
   whole promise no longer brightens at the finale): its gold fill was a different state in almost every frame and read as a
   second progress bar beside the schedule. The headline is static, line one in paper, line two in full gold, the thesis
   at its full colour; only the schedule tells time. (world.js still writes --hl-n / --world-promise; nothing reads them
   here any more.) */
@media (min-width:801px){
 html:not(.world-still) body .world-pin .world-copy.world-copy.world-copy h1 .hl-0{opacity:1}
 html:not(.world-still) body .world-pin .world-copy.world-copy.world-copy h1 .hl{opacity:1;color:var(--gold);text-shadow:none}
 html:not(.world-still) body .world-pin .world-copy.world-copy.world-copy .world-thesis{opacity:1}
}

/* R11 (found while checking item 1's finale): the finale's larger plate (::after: eyebrow, gate, "Usługi") faded in on
   --world-copy-opacity, so for ~1 s it was a see-through dark slab over the lit plant (a darkening scrim, mid-fade at
   frame 214). Now it is opaque from its first pixel and grows down from the lintel's top edge on the same clock value
   (clip only: no scale, no fade); its words keep their own fade. */
@media (min-width:801px){
 html:not(.world-still) body .world-pin .world-copy.world-copy.world-copy::after{opacity:1;clip-path:inset(0 0 calc((1 - var(--world-copy-opacity,1)) * 100%) 0)}
 /* "Usługi" sits low in that plate: it comes in over the growth's last quarter, so it never stands on the bare picture */
 html:not(.world-still) body .world-pin .world-copy.world-copy.world-copy .world-more{opacity:calc(var(--world-copy-opacity,1) * 4 - 3)}
}

/* R12 1 (ART-fable-r12 1): free the desktop film. The headline plate shrinks to its words at a smaller size (46 px at 1440,
   x --k above it; the same lines, the same fonts), so the plate is ~400 x 200 at 1440 instead of 512 x 245. It no longer
   shares the card's height: each slab is its own content's height (schedule.js), both hang from the same top edge. */
@media (min-width:801px){
 html:not(.world-still) body .world-pin .world-copy.world-copy.world-copy h1{font-size:clamp(34px,3.2vw,calc(46px * var(--k)))}
}

/* R12 5 (ART-fable-r12 5): the finale plate has no eyebrow. "—— EVE AVIATION" stood in the plate's top padding and was
   caught clipped at its top edge (d-12); the logo is 80 px above it, so it is deleted rather than shown whole. */
@media (min-width:801px){
 html:not(.world-still) body .world-pin .world-copy.world-copy.world-copy .world-closing-eyebrow{display:none}
}
