/* One installation stays pinned; the seven articles are actual document flow. */
#proces{--process-screen:calc(100svh - var(--header-height));height:auto;position:relative;isolation:isolate;overflow:visible;background:var(--bg)}
#proces .stage{position:sticky;top:var(--header-height);height:var(--process-screen);min-height:0;display:block;overflow:hidden;background:var(--bg);z-index:1}
#proces .scene{position:absolute;inset:12px 0 86px 33%;width:auto;height:auto;min-height:0;grid-area:auto;overflow:hidden}
#proces .scene canvas{width:100%;height:100%;display:block}
#proces .process-texts{position:relative;z-index:2;margin-top:calc(-1 * var(--process-screen));pointer-events:none}
#proces .process-step{min-height:var(--process-screen);display:flex;align-items:center;padding:30px 69% 94px var(--gutter);scroll-margin-top:var(--header-height)}
#proces .process-step-copy{width:100%;pointer-events:auto}
#proces .process-step-number{display:block;font-size:.875rem;color:var(--muted);margin-bottom:18px;font-variant-numeric:tabular-nums}
#proces .process-step :is(h1,h2){font-size:clamp(2rem,3.05vw,3.6rem);line-height:1.06;letter-spacing:-.055em;margin:0 0 22px;max-width:15ch}
#proces .process-step p{font-size:1.0625rem;line-height:1.6;margin:0;max-width:39ch}
#proces .process-step .process-concept{font-size:.8125rem;line-height:1.5;margin-top:16px;color:var(--muted)}
#proces .stage-bottom{position:absolute;inset:auto var(--gutter) 14px;z-index:8;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0;pointer-events:auto}
#proces .stage-nav{display:flex;gap:8px;max-width:440px;width:auto}
#proces .stage-nav button{width:44px;min-height:44px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;padding:0;font:inherit;font-size:.875rem;color:var(--muted);background:var(--bg)}
#proces .stage-nav button:before,#proces .stage-nav button:after{display:none}
#proces .stage-nav button[aria-current=step]{background:var(--accent);border-color:var(--accent);color:var(--button-ink)}
#proces .play-button{display:flex;align-items:center;gap:9px;min-height:44px;margin:0;font-size:.875rem}
#proces .process-legend{position:absolute;right:var(--gutter);bottom:72px;display:flex;gap:16px;max-width:62%;z-index:5;font-size:.8125rem;pointer-events:none}
#proces .process-legend>span{display:none;align-items:center;gap:8px;padding:3px 0;background:var(--bg)}
#proces .process-legend>span[data-active=true]{display:flex}
#proces .process-legend i{width:22px;height:3px;display:block;background:var(--flow-color)}
#proces [data-flow-legend=feedstock]{--flow-color:#247349}#proces [data-flow-legend=gas]{--flow-color:#956217}#proces [data-flow-legend=electricity]{--flow-color:#166c96}#proces [data-flow-legend=heat]{--flow-color:#aa4729}#proces [data-flow-legend=digestate]{--flow-color:#67713b}
:root[data-theme=dark] #proces [data-flow-legend=feedstock]{--flow-color:#8dcc91}:root[data-theme=dark] #proces [data-flow-legend=gas]{--flow-color:#f2cf79}:root[data-theme=dark] #proces [data-flow-legend=electricity]{--flow-color:#8dd6f0}:root[data-theme=dark] #proces [data-flow-legend=heat]{--flow-color:#ffa780}:root[data-theme=dark] #proces [data-flow-legend=digestate]{--flow-color:#becb88}
#proces .poster{inset:10%!important}#proces .poster img{width:100%!important;height:100%!important;object-fit:contain}
#proces .labels{position:absolute;inset:0;z-index:5;pointer-events:none}
#proces .model-label{position:absolute;inset:auto;padding:5px 8px;max-width:180px;background:var(--bg);color:var(--ink);font-size:.8125rem;line-height:1.3;opacity:0;white-space:normal;border-radius:3px;box-shadow:none;transition:none}
#proces .label-leaders{position:absolute;inset:0;width:100%;height:100%;overflow:visible;z-index:-1}
#proces .leader-line{fill:none;stroke:var(--ink);stroke-width:1.25;opacity:.9}#proces .leader-underlay{fill:none;stroke:var(--bg);stroke-width:4}
#proces .leader-dot{fill:var(--ink);stroke:var(--bg);stroke-width:1.5}
.process-comparison .page-intro{padding-inline:0}.process-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:44px;padding-block:50px}.process-options article{border-top:1px solid var(--line);padding-top:24px}.process-option-letter{display:block;font-size:4.5rem;color:var(--muted);margin-bottom:22px}.process-options h2{font-size:2rem;margin-bottom:20px}.process-options p{margin-bottom:32px;max-width:35ch}
@media(max-width:1000px){
 #proces .scene{inset:12px 0 352px}
 #proces .process-step{align-items:flex-end;padding:0 var(--gutter) 104px}
 #proces .process-step-copy{background:var(--bg);padding-top:12px;max-width:640px;margin-inline:auto}
 #proces .process-step-number{font-size:.75rem;margin-bottom:10px}
 #proces .process-step :is(h1,h2){font-size:clamp(1.5rem,7vw,2rem);line-height:1.1;margin-bottom:12px;max-width:25ch;letter-spacing:-.045em}
 #proces .process-step p{font-size:.9375rem;line-height:1.5;max-width:60ch}
 #proces .process-step .process-concept{font-size:.75rem;margin-top:8px}
 #proces .stage-bottom{display:grid;grid-template-columns:1fr;gap:4px;bottom:8px}
 #proces .play-button{font-size:.8125rem;justify-self:start}
 #proces .stage-nav{width:100%;max-width:none;justify-content:space-between;gap:0;grid-row:2}
 #proces .stage-nav button{width:40px;min-width:40px;min-height:44px;border-radius:0;border:0;border-bottom:2px solid var(--line);background:none}
 #proces .stage-nav button[aria-current=step]{background:none;color:var(--ink);border-bottom:2px solid var(--accent)}
 #proces .process-legend{bottom:calc(328px - 18px);max-width:calc(100% - 48px);left:var(--gutter);right:var(--gutter);font-size:.75rem;line-height:1.2}
 #proces .model-label{font-size:.75rem;max-width:138px;padding:4px 6px}
 .process-options{grid-template-columns:1fr;gap:30px}.process-options article{display:grid;grid-template-columns:50px 1fr;column-gap:20px}.process-option-letter{grid-row:1/4;font-size:3rem}.process-options h2{font-size:1.6rem}.process-options p{margin-bottom:20px}.process-options .button{grid-column:2;justify-self:start}
}
@media(max-width:350px){#proces .scene{inset:12px 0 350px}#proces .process-step{padding-inline:20px}#proces .process-step p{font-size:.875rem}#proces .model-label{font-size:.6875rem;max-width:120px}}
/* Static fallback keeps the seven real articles; explicit Play keeps its M1 meaning. */
:root[data-reduced=yes] #proces,:root[data-text-expanded=yes] #proces,#proces[data-load=fallback],#proces.static-story{height:auto}
:root[data-reduced=yes] #proces .stage,:root[data-text-expanded=yes] #proces .stage,#proces[data-load=fallback] .stage,#proces.static-story .stage{position:relative;top:0;height:580px;min-height:0}
:root[data-reduced=yes] #proces .scene,:root[data-text-expanded=yes] #proces .scene,#proces[data-load=fallback] .scene,#proces.static-story .scene{inset:12px 0 120px}
:root[data-reduced=yes] #proces .process-texts,:root[data-text-expanded=yes] #proces .process-texts,#proces[data-load=fallback] .process-texts,#proces.static-story .process-texts{margin-top:0}
:root[data-reduced=yes] #proces .process-step,:root[data-text-expanded=yes] #proces .process-step,#proces[data-load=fallback] .process-step,#proces.static-story .process-step{min-height:0;padding:30px var(--gutter);display:block;max-width:850px}
:root[data-reduced=yes] #proces .process-step-copy,:root[data-text-expanded=yes] #proces .process-step-copy{max-width:none}
#proces[data-load=fallback] .process-legend,#proces.static-story .process-legend,:root[data-reduced=yes] #proces .process-legend{bottom:112px}

#proces[data-load=fallback] .stage-bottom{display:none}

/* Only the rendered image blends at the text boundary. Labels and leaders stay crisp. */
@media(min-width:1001px){
 :root:not([data-reduced=yes]):not([data-text-expanded=yes]) #proces[data-presentation=A]:not(.static-story) .scene canvas{
  -webkit-mask-image:linear-gradient(to right,transparent,#000 clamp(24px,3vw,48px));
  mask-image:linear-gradient(to right,transparent,#000 clamp(24px,3vw,48px));
 }
}

/* Product and a direct next step share the existing first process frame. */
#proces .process-opening h1{margin-bottom:18px}
#proces .process-start-cta{margin:20px 0 26px;padding:10px 16px;min-height:44px;font-size:.9375rem;gap:12px}
#proces .process-opening .process-step-number{margin-bottom:6px;font-size:.75rem}
#proces .process-opening h2{font-size:1rem;line-height:1.3;letter-spacing:-.02em;margin-bottom:8px;max-width:none}
#proces .process-opening h2+p{font-size:.875rem;line-height:1.5;color:var(--muted)}
@media(max-width:1000px){
 :root:not([data-reduced=yes]):not([data-text-expanded=yes]) #proces:not(.static-story):not([data-load=fallback]) .process-legend{top:calc(var(--process-frame-height, 240px) + 12px);bottom:auto}
 #proces .process-opening{align-items:flex-start;padding-top:calc(clamp(150px,26svh,240px) + 42px)}
 #proces .process-opening h1{margin-bottom:12px}
 #proces .process-opening .process-start-cta{margin:14px 0 20px;font-size:.875rem}
}
:root[data-reduced=yes] #proces .process-opening,:root[data-text-expanded=yes] #proces .process-opening,#proces[data-load=fallback] .process-opening{padding-top:30px}
:root[data-reduced=yes] #proces .scene,:root[data-text-expanded=yes] #proces .scene,#proces[data-load=fallback] .scene{height:auto}

/* Technology is a manual stepper in normal mode, with all text retained below
   the illustration for no-JS, model errors and expanded/reduced reading modes. */
#proces[data-manual-process][data-manual=yes] .stage{position:relative;top:0;height:auto;min-height:0;overflow:visible;display:grid;grid-template-columns:minmax(0,45fr) minmax(0,55fr);grid-template-rows:auto auto auto;align-items:start}
#proces[data-manual-process][data-manual=yes] .scene{position:relative;inset:auto;grid-column:2;grid-row:1;height:clamp(400px,38vw,580px);min-height:0;width:100%}
#proces[data-manual-process][data-manual=yes] .process-legend{position:relative;inset:auto;grid-column:2;grid-row:2;max-width:none;margin:0 var(--gutter) 16px;min-height:24px;flex-wrap:wrap}
#proces[data-manual-process][data-manual=yes] .stage-bottom{position:relative;inset:auto;grid-column:2;grid-row:3;display:block;margin:0 var(--gutter) 30px;padding:0}
#proces[data-manual-process][data-manual=yes] .stage-nav{display:flex;width:100%;max-width:none;justify-content:space-between;gap:4px;flex-wrap:wrap}
#proces[data-manual-process] .process-manual-copy{grid-column:1;grid-row:1/4;position:relative;min-width:0;padding:36px var(--gutter);align-self:start}
#proces[data-manual-process] .process-manual-copy h2{font-size:clamp(2rem,3.05vw,3.6rem);line-height:1.1;margin-bottom:22px;max-width:18ch}
#proces[data-manual-process] .process-manual-copy p{font-size:1.0625rem;line-height:1.6;max-width:39ch}
#proces[data-manual-process] .process-manual-copy .process-concept{font-size:.8125rem;line-height:1.5;margin-top:16px;color:var(--muted)}
#proces[data-manual-process] .process-texts[hidden],#proces[data-manual-process] .process-manual-copy[hidden],#proces[data-manual-process] .stage-bottom[hidden]{display:none!important}
@media(max-width:1000px){
 #proces[data-manual-process][data-manual=yes] .stage{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto}
 #proces[data-manual-process][data-manual=yes] .scene{grid-column:1;grid-row:1;height:clamp(270px,43svh,420px)}
 #proces[data-manual-process][data-manual=yes] .process-legend{grid-column:1;grid-row:2;margin-bottom:8px;min-height:22px}
 #proces[data-manual-process][data-manual=yes] .stage-bottom{grid-column:1;grid-row:3;margin-bottom:0}
 #proces[data-manual-process] .process-manual-copy{grid-column:1;grid-row:4;padding:24px var(--gutter) 32px}
 #proces[data-manual-process] .process-manual-copy h2{font-size:clamp(1.5rem,7vw,2rem);margin-bottom:14px;max-width:25ch}
 #proces[data-manual-process] .process-manual-copy p{font-size:.9375rem;line-height:1.5}
 #proces[data-manual-process] .process-manual-copy .process-concept{font-size:.75rem;line-height:1.5}
}

/* Expanded homepage text gets separate physical rows, never overlays the model. */
:root[data-text-expanded=yes] #proces:not(.static-story) .stage{position:relative;top:0;height:auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;overflow:visible;padding:12px 0 0}
:root[data-text-expanded=yes] #proces:not(.static-story) .scene{position:relative;inset:auto;grid-column:1;grid-row:1;width:100%;height:448px;min-height:448px}
:root[data-text-expanded=yes] #proces:not(.static-story) .process-legend{position:relative;inset:auto;grid-column:1;grid-row:2;max-width:none;margin:0 var(--gutter);padding:12px 0;flex-wrap:wrap}
:root[data-text-expanded=yes] #proces:not(.static-story):not([data-load=fallback]) .stage-bottom{position:relative;inset:auto;grid-column:1;grid-row:3;display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:12px var(--gutter) 24px}
:root[data-text-expanded=yes] #proces:not(.static-story) .stage-nav{flex-wrap:wrap;justify-content:flex-start;gap:8px;max-width:100%}

/* Narrow manual controls form two balanced rows while preserving DOM order. */
@media(max-width:375px){
 #proces.static-story[data-manual-process][data-manual=yes] .stage-nav{justify-content:center;gap:4px 8px}
 #proces.static-story[data-manual-process][data-manual=yes] .stage-nav button{flex:0 0 calc((100% - 24px)/4);width:calc((100% - 24px)/4)}
}

/* F10: geometric articles remain in flow; a single chapter stays readable. */
#proces .process-current-copy[hidden]{display:none!important}
#proces[data-continuous=yes] .process-step-copy{visibility:hidden}
#proces[data-continuous=yes][data-opening-copy=yes] .process-opening .process-step-copy{visibility:visible}
#proces .process-current-copy{position:absolute;left:var(--gutter);top:50%;transform:translateY(-50%);width:calc(31% - var(--gutter));z-index:6}
#proces .process-current-copy h2{font-size:clamp(2rem,3.05vw,3.6rem);line-height:1.06;letter-spacing:-.055em;margin:0 0 22px;max-width:15ch}
#proces .process-current-copy p{font-size:1.0625rem;line-height:1.6;margin:0;max-width:39ch}
#proces .process-current-copy .process-concept{font-size:.8125rem;line-height:1.5;margin-top:16px;color:var(--muted)}
@media(max-width:1000px){
 #proces .process-current-copy{left:var(--gutter);right:var(--gutter);top:auto;bottom:104px;transform:none;width:auto;max-width:640px;margin-inline:auto}
 #proces .process-current-copy h2{font-size:clamp(1.5rem,7vw,2rem);line-height:1.1;margin-bottom:12px;max-width:25ch;letter-spacing:-.045em}
 #proces .process-current-copy p{font-size:.9375rem;line-height:1.5;max-width:60ch}
 #proces .process-current-copy .process-concept{font-size:.75rem;margin-top:8px}
 #proces[data-continuous=yes] .scene{bottom:calc(104px + var(--process-copy-height,248px) + 32px)}
}
@media(max-width:350px){#proces .process-current-copy{left:20px;right:20px}#proces .process-current-copy p{font-size:.875rem}}
