/* Selected A programme-logo pairs; two funded-project scenes share the site's
   graphite/steel/red palette and open, transparent manufacturing stages. */
.eup-hero{background:var(--paper);color:var(--fg);overflow:hidden}
.eup-hero__inner{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:clamp(28px,4vw,56px);align-items:center;padding-block:30px 34px}
.eup-hero__copy{min-width:0;max-width:540px}
.eup-hero__title{font-size:clamp(38px,3.8vw,54px);line-height:1.06;letter-spacing:-.025em;margin:12px 0 0;text-wrap:balance}
.eup-hero__lead{font-size:16px;line-height:1.55;color:var(--fg-2);margin-top:18px;max-width:55ch}
.eup-current{padding-block:24px 20px;background:#fff;color:var(--fg);border-block:1px solid var(--rule)}
:root[data-theme=dark] .eup-current{--bg:#131318;--bg-raised:#19191f;--bg-sunk:#0d0d12;--fg:#f1f1f5;--fg-2:#c7c7d0;--fg-3:#adaeb9;--fg-4:#9696a2;--rule:#37323a;--rule-strong:#5b535d;--accent-text:#ff927b;color-scheme:dark;background:radial-gradient(70% 120% at 57% -30%,#fa26001c,transparent 68%),linear-gradient(180deg,#19171d,#131318)}
.eup-current__title{font-size:clamp(27px,2.5vw,32px);margin:0 0 16px}
.eup-current__projects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(40px,5vw,72px)}
.eup-project{min-width:0;position:relative}
.eup-project+.eup-project:before{content:'';position:absolute;top:0;bottom:0;left:calc(clamp(40px,5vw,72px) / -2);width:1px;background:var(--rule)}
.eup-project__heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px}
.eup-project__heading h3{font:600 clamp(22px,2vw,27px)/1.15 var(--font-display);margin:0}
.eup-project__status{font-size:12px;color:var(--accent-text);display:inline-flex;align-items:center;gap:7px;flex:none}
.eup-project__status:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}
.eup-stage{aspect-ratio:1.85;width:min(100%,310px);height:auto;margin:4px auto 8px;overflow:hidden;pointer-events:none}
.eup-stage>canvas{position:absolute;inset:0;display:block;width:100%;height:100%}
.eup-project__content{min-width:0}
.eup-project__title{font:500 15px/1.45 var(--font-sans);color:var(--fg);min-height:3em;max-width:52ch;margin:0 0 12px}
.eup-project__meta{display:grid;gap:4px;margin:0 0 12px}
.eup-project__meta>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.eup-project__meta dt{font-size:12px;color:var(--fg-3)}
.eup-project__meta dd{font:400 12px/1.5 var(--font-mono);color:var(--fg-2);margin:0;overflow-wrap:anywhere}
.eup-project__actions{display:flex;flex-wrap:wrap;gap:10px}
.eup-project__actions .btn{min-height:42px;white-space:normal;font-size:14px}
:root[data-theme=dark] .eup-project .btn--ghost{color:var(--fg);border-color:var(--rule-strong);background:transparent}
.eup-current__documents{margin-top:12px;padding-top:10px;border-top:1px solid var(--rule);font-size:13px}
.eup-current__documents>p{color:var(--fg-3);margin-bottom:5px}
.eup-current__documents ul{list-style:none;padding:0;margin:0}
.eup-current__documents a{display:flex;align-items:center;gap:10px;color:var(--fg-2);min-height:44px;line-height:1.4}
.eup-current__documents a>.icon{flex:none;width:17px;height:17px;color:var(--accent-text)}
.eup-current__documents a>.icon:last-child{margin-left:auto}
.eup-current__documents a:hover{color:var(--accent-text)}
.eup-current__documents a:focus-visible{outline:2px solid var(--accent-text);outline-offset:4px}
.eup-current__funding{display:grid;grid-template-columns:180px minmax(0,1fr);gap:18px;align-items:center;margin-top:18px;padding-top:14px;border-top:1px solid var(--rule)}
.eup-current__funding img{display:block;width:180px;max-width:100%;height:auto;background:#fff;padding:6px;border-radius:3px;filter:none}
.eup-current__funding p{font-size:12px;line-height:1.5;color:var(--fg-3);max-width:95ch;margin:0}
@media(max-width:1050px){.eup-hero__inner{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:28px}.eup-hero__title{font-size:45px}.eup-hero__lead{font-size:16px}.eup-current__projects{gap:40px}.eup-project+.eup-project:before{left:-20px}.eup-project__heading{align-items:flex-start}.eup-project__status{padding-top:6px}}
@media(max-width:760px){.eup-hero__inner{grid-template-columns:minmax(0,1fr);padding-block:22px 26px;gap:18px}.eup-hero__title{font-size:clamp(36px,7vw,46px);max-width:17ch}.eup-hero__lead{margin-top:18px}.eup-current{padding-block:22px 18px}.eup-current__projects{grid-template-columns:minmax(0,1fr);gap:22px}.eup-project+.eup-project:before{top:-12px;left:0;right:0;bottom:auto;width:auto;height:1px}.eup-project__heading h3{font-size:25px}.eup-stage{width:min(100%,250px);margin-block:3px 8px}.eup-project__title{font-size:15px;min-height:0;margin-bottom:10px}.eup-project__actions{gap:8px}.eup-current__funding{grid-template-columns:minmax(0,1fr);gap:10px;margin-top:18px}.eup-current__funding img{width:180px}.eup-current__title{margin-bottom:16px}}
@media(max-width:380px){.eup-project__heading h3{font-size:25px}.eup-project__status{font-size:11px}.eup-project__actions .btn{font-size:13px;padding-inline:14px}}

/* Selected A keeps the complete paired identities beside each programme. */
.eup-hero .eupm{width:100%;max-width:600px;justify-self:end}

/* Compact project summaries: scenes sit beside the information, instead of
   occupying a dedicated large row above it. Keep every public document link. */
.eup-current{padding-block:20px 16px}
.eup-current__title{font-size:28px;margin-bottom:18px}
.eup-current__projects{gap:36px}
.eup-project{display:grid;grid-template-columns:200px minmax(0,1fr);grid-template-rows:auto 1fr;grid-template-areas:"heading content" "scene content";gap:6px 18px;align-items:start}
.eup-project+.eup-project:before{left:-18px}
.eup-project__heading{grid-area:heading;display:block}
.eup-project__heading h3{font-size:23px;line-height:1.16}
.eup-project__status{margin-top:6px;padding-top:0}
.eup-stage{grid-area:scene;width:200px;max-width:100%;margin:0;align-self:start}
.eup-project__content{grid-area:content}
.eup-project__title{min-height:0;margin-bottom:10px}
.eup-project__meta{gap:3px;margin-bottom:10px}
.eup-project__actions{gap:6px}
.eup-project__actions .btn{font-size:13px;padding-inline:14px}
.eup-current__documents{margin-top:9px;padding-top:8px}
.eup-current__funding{margin-top:16px;padding-top:12px}
@media(max-width:1150px){
 .eup-current__projects{gap:32px}
 .eup-project{grid-template-columns:minmax(0,1fr) 138px;grid-template-rows:auto auto;grid-template-areas:"heading scene" "content content";gap:8px 12px;align-items:center}
 .eup-project+.eup-project:before{left:-16px}
 .eup-stage{width:138px;align-self:center}
 .eup-project__heading h3{font-size:23px}
}
@media(max-width:760px){
 .eup-current__projects{gap:22px}
 .eup-project+.eup-project:before{left:0;top:-12px}
 .eup-current__title{font-size:26px;margin-bottom:12px}
 .eup-project{grid-template-columns:minmax(0,1fr) 140px;gap:8px 14px}
 .eup-stage{width:140px}
 .eup-project__heading h3{font-size:23px}
 .eup-project__actions .btn{font-size:13px;min-height:42px}
}

/* Status is a small green presence marker beside the title, without a badge. */
.eup-project__heading h3 { display:flex; align-items:baseline; gap:8px; overflow-wrap:anywhere; }
.eup-project__status { display:inline-block; position:relative; width:6px; height:6px; flex:0 0 6px; margin:0; padding:0; align-self:baseline; transform:translateY(-3px); color:#168951; }
:root[data-theme=dark] .eup-project__status { color:#55c787; }
.eup-project__status:before { display:block; width:6px; height:6px; background:currentColor; }
.eup-project__status:after { content:""; position:absolute; inset:0; border:1px solid currentColor; border-radius:50%; animation:eup-status-pulse 2.8s ease-out infinite; }
@keyframes eup-status-pulse { 0%,20% { transform:scale(1); opacity:.55; } 80%,100% { transform:scale(2.4); opacity:0; } }
.page-hidden .eup-project__status:after { animation-play-state:paused; }
@media(prefers-reduced-motion:reduce) { .eup-project__status:after { animation:none; display:none; } }
