/* ENERGOBUILD · ECO GRID V2 | composition, functional glass and data surfaces */
@font-face {
  font-family:"Eco Grid Sans";src:url("/assets/eco-grid-sans-bold.woff") format("woff");
  font-weight:700;font-style:normal;font-display:swap;
}
@font-face {
  font-family:"Eco Grid Sans";src:url("/assets/eco-grid-sans-regular.woff") format("woff");
  font-weight:400;font-style:normal;font-display:swap;
}
:root {
  --e2-void:#090e12; --e2-deep:#0d171b; --e2-panel:#142428; --e2-raised:#1a3033;
  --e2-fg:#f1f8f4; --e2-copy:#cbdad4; --e2-muted:#a9c1b8;
  --e2-lime:#c5ff68; --e2-cyan:#82f2ed; --e2-gold:#ffcb88; --e2-dark:#122012;
  --e2-line:#52796f; --e2-soft:#2d4947;
  --e2-display:"Eco Grid Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --e2-gutter:clamp(1rem,4vw,4.25rem);
  --e2-space:clamp(2.1rem,5.4vw,5.6rem);
  --e2-radius:clamp(1.05rem,2vw,1.7rem);
  --e2-card:linear-gradient(155deg,#1a3033 0%,#111e22 86%);
}
@media screen {
  html {background:var(--e2-void)}
  html body {--eg-ground:var(--e2-void);--eg-panel:var(--e2-panel);--eg-raised:var(--e2-raised);
    --eg-ink:var(--e2-fg);--eg-copy:var(--e2-copy);--eg-muted:var(--e2-muted);
    --eg-edge:var(--e2-line);--eg-gutter:var(--e2-gutter);--eg-beat:var(--e2-space);
    --eg-radius:var(--e2-radius);--eg-glass:var(--e2-card)}
  html body main {color:var(--e2-copy)}
  html body main :is(h1,h2,h3,h4) {font-family:var(--e2-display)!important;text-rendering:optimizeLegibility;font-weight:700!important}
  html body main h1 {line-height:1.05;letter-spacing:-.047em}
  html[lang="bg"] body main h1 {letter-spacing:-.038em}
  html body main :is(h2,h3) {line-height:1.18;letter-spacing:-.031em}
  html body main :is(.e2-dashboard,.eb31-faq-wrap,.eb32-academy,.eb51-wrap,.eb52-wrap) :is(p,dd,td,th) {line-height:1.61}
  html body main :is(.eb-polished-hero,.gateway-wrap) {
    background:
      radial-gradient(ellipse at 83% 28%,#30674680,transparent 51%),
      radial-gradient(ellipse at 73% 100%,#2a636e66,transparent 60%),
      linear-gradient(148deg,#162528,#0c151a 64%,#15282b)!important;
    border-color:var(--e2-soft)!important;
  }
  html body main .eb-polished-hero .eg-decor {
    opacity:.72;max-inline-size:75vw;
  }
  html body main .eb-polished-hero .eg-decor::before {
    background:radial-gradient(ellipse at 50% 51%,#bfff6f38,transparent 52%),
      radial-gradient(ellipse at 54% 51%,#67e9ed35,transparent 69%);
  }
  html body main .eb-polished-hero .eg-decor::after {
    background-image:url("/assets/eb-eco-grid-orbit.svg");
    filter:drop-shadow(0 0 .85rem #93ff7d37);
  }
  html body .eb-opt-header,html body.gateway-page .topbar {
    background:#112025!important;border-color:var(--e2-soft)!important;
    box-shadow:0 1px 0 #c7fff316 inset,0 10px 30px #05090d50;
    -webkit-backdrop-filter:none;backdrop-filter:none;
  }
  html body .eb-opt-header__shell {width:min(calc(100% - 2 * var(--e2-gutter)),90rem);min-height:4.25rem}
  html body .eb-opt-brand__mark {
    color:var(--e2-lime);background:linear-gradient(145deg,#345549,#17292d);border-color:#7baf83;
    text-shadow:0 0 .8rem #a0ff5f58;
  }
  html body .eb-opt-primary a[aria-current="page"] {background:#263d34;color:var(--e2-lime)!important}
  html body .eb-opt-header .eb-opt-locales a[aria-current="page"] {background:var(--e2-lime);color:var(--e2-dark)!important}
  html body .eb-opt-menu>summary,html body .eb-opt-locales {
    border-radius:100rem;border-color:var(--e2-line);background:#1a2e31;
    box-shadow:inset 0 1px #f3ffff24;
  }
  html body .eb-opt-locales a {border-radius:100rem}
  html body .eb-opt-menu__panel,html body #eb16-consent .eb16-panel {
    border:1px solid var(--e2-line);border-radius:var(--e2-radius);background:#142529;
    box-shadow:inset 0 1px #f3ffff25,0 1.4rem 4rem #03070bb5;
    max-block-size:min(72vh,36rem);
  }
  html body .eb-opt-menu__panel {box-sizing:border-box}
  @supports (height:100dvh) {
    html body .eb-opt-menu__panel,html body #eb16-consent .eb16-panel {max-block-size:min(72dvh,36rem)}
  }
  @supports ((backdrop-filter:blur(12px)) or (-webkit-backdrop-filter:blur(12px))) {
    html body .eb-opt-header,html body.gateway-page .topbar {
      background:linear-gradient(110deg,#314a3e4a,#0f1b1f00),#101e22e8!important;
      -webkit-backdrop-filter:blur(15px) saturate(1.25);backdrop-filter:blur(15px) saturate(1.25);
    }
    html body .eb-opt-menu__panel,html body #eb16-consent .eb16-panel {
      background:linear-gradient(155deg,#3f5f4b30,#0c181d00),#122428f5;
      -webkit-backdrop-filter:blur(18px) saturate(1.2);backdrop-filter:blur(18px) saturate(1.2);
    }
  }
  html body main :is(.ebp02-waypoints,.ebp03-waypoints,.eb35-jumps,.eb33-jump) {
    border-color:var(--e2-soft);scrollbar-color:var(--e2-line) var(--e2-deep);
  }
  html body main :is(.business-surface,.eb35-light,.eb36-govern,.eb37-light,.eb51-surface,.eb52-surface) {
    background:linear-gradient(165deg,#142328,#0d171b 79%)!important;color:var(--e2-copy);
    border-block-color:var(--e2-soft)!important;
  }
  html body main :is(.knowledge-cards article,.eb-brief-grid>li,.eb26-card,.eb32-card,.eb27-path-item,.eb23-card,.eb51-card,.eb52-card,.pme-quick-grid>a,.eb-flow-node) {
    border-color:var(--e2-soft)!important;border-radius:var(--e2-radius);
    box-shadow:inset 0 1px #bffff518,0 .7rem 2.25rem #05090c3c;
  }
  html body main :is(.knowledge-cards article,.eb-brief-grid>li,.eb26-card,.eb32-card,.eb27-path-item,.eb23-card,.eb51-card,.eb52-card,.eb-flow-node) {
    background:var(--e2-card)!important;color:var(--e2-copy);
  }
  html body main :is(.knowledge-cards article,.eb-brief-grid>li,.eb26-card,.eb32-card,.eb27-path-item,.eb23-card,.eb51-card,.eb52-card,.eb-flow-node) :is(h2,h3,h4) {color:var(--e2-fg)!important}
  html body main :is(.knowledge-cards article,.eb-brief-grid>li,.eb26-card,.eb32-card,.eb27-path-item,.eb23-card,.eb51-card,.eb52-card,.eb-flow-node) :is(p,small) {color:var(--e2-copy)!important}
  html body main :is(.eb-chart-card,.eb-terminal,.energy-showcase,.eb-motion-lab) {border-radius:var(--e2-radius)}
  html body main :is(.eb30-orb-caption,.eb30-orb-caption--b) {background:#15262ee8;border-color:#678a7a;box-shadow:inset 0 1px #fff3,0 .6rem 1.5rem #060b10a0}
  html body main .eb30-orb-caption strong {color:var(--e2-lime)}
  html body main .hero-actions .action {
    display:inline-flex;align-items:center;justify-content:center;min-block-size:44px;
    background:var(--e2-lime)!important;color:var(--e2-dark)!important;border-color:var(--e2-lime)!important;
    box-shadow:0 0 1.4rem #b8fc6629;font-weight:760;
  }
  html body main .hero-actions .eb-journey-secondary {min-block-size:44px;color:var(--e2-fg)!important;border-color:var(--e2-line)!important;background:#192c31e8!important}
  html body main :is(.eb-chart-card,.eb-motion-lab) button:not(:disabled) {cursor:pointer}
  html body main .eb31-faq-wrap summary:focus-visible {outline-offset:-5px!important}
  html body main [id^="e2-"] {scroll-margin-block-start:1.75rem}
}
@media screen and (max-width:70rem) {
  html body .eb-opt-header__shell {min-inline-size:0}
  html body .eb-opt-primary {display:none}
}
@media screen and (max-width:45rem) {
  html body .eb-opt-header__shell {width:calc(100% - 1.5rem);gap:.55rem;min-height:3.7rem}
  html body .eb-opt-brand {gap:.42rem;font-size:clamp(.72rem,3.35vw,.97rem);letter-spacing:.055em}
  html body .eb-opt-brand__mark {width:29px;height:29px}
  html body .eb-opt-header__actions {gap:.35rem}
  html body .eb-opt-locales {padding:2px}
  html body .eb-opt-locales a {min-width:38px;min-height:44px}
  html body .eb-opt-menu>summary {min-inline-size:44px;padding-inline:.55rem}
  html body .eb-opt-menu__panel {width:min(24rem,calc(100vw - 1.5rem))}
  html body main .eb-polished-hero .eg-decor {opacity:.44}
  html body main :is(h1,h2,h3) {overflow-wrap:anywhere}
  html body main .hero-actions {gap:.65rem}
  html body main .hero-actions>a {max-inline-size:100%;white-space:normal}
}
@media screen and (max-width:24rem) {
  html body .eb-opt-menu .eb-opt-menu__label {display:none}
}
@media screen and (prefers-reduced-transparency:reduce) {
  html body .eb-opt-header,html body.gateway-page .topbar,html body .eb-opt-menu__panel,
  html body #eb16-consent .eb16-panel {background:#142529!important;-webkit-backdrop-filter:none;backdrop-filter:none}
}
@media screen and (prefers-reduced-motion:no-preference) {
  .eb-opt-menu[open] .eb-opt-menu__panel {animation:e2-menu-in .18s ease-out both}
  @media(hover:hover) and (pointer:fine) {
    html:not([data-eb-home-motion="paused"]) body:not(.ebf-motion-paused) main .eb-polished-hero:hover .eg-decor::after {
      animation:e2-field-in 1.05s cubic-bezier(.2,.8,.3,1) both;
    }
    .e2-dashboard .e2-plot:hover .e2-bar-line {filter:brightness(1.12)}
    html body main .hero-actions a:hover {translate:0 -2px}
    html body main .hero-actions a {transition:translate .18s ease}
  }
}
@keyframes e2-menu-in {from{opacity:.4;transform:translateY(-.35rem) scale(.985)}to{opacity:1;transform:none}}
@keyframes e2-field-in {from{transform:perspective(42rem) rotateX(9deg) rotateY(-8deg)}to{transform:perspective(42rem) rotateX(17deg) rotateY(8deg) translate3d(-1rem,.5rem,1.5rem)}}
@media(prefers-reduced-motion:reduce) {
  .eb-opt-menu__panel,.e2-dashboard * {animation:none!important;transition:none!important}
}
.e2-dashboard {
  margin-block:1.35rem 1.6rem;padding:clamp(1rem,3.3vw,2.5rem);color:var(--e2-fg);
  background:radial-gradient(ellipse at 94% 4%,#21483c 0,transparent 50%),var(--e2-card);
  border:1px solid var(--e2-line);border-radius:var(--e2-radius);
  box-shadow:inset 0 1px #baf7de25,0 1.2rem 3rem #080e1270;
}
.e2-dashboard .e2-kicker {font:700 .74rem/1.4 var(--eg-mono);color:var(--e2-lime);letter-spacing:.13em;text-transform:uppercase;margin:0 0 .55rem}
.e2-dashboard h3 {font-size:clamp(1.42rem,2.8vw,2.2rem);color:var(--e2-fg);margin:0 0 .4rem}
.e2-dashboard .e2-note {font-family:var(--e2-display);color:var(--e2-copy);max-inline-size:66ch;margin:0 0 1.2rem}
.e2-dashboard .e2-plots {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:.85rem}
.e2-dashboard .e2-plot {min-inline-size:0;padding:1rem;background:var(--e2-deep);border:1px solid var(--e2-soft);border-radius:1rem}
.e2-dashboard .e2-plot h4 {font-size:1rem;margin:0 0 .8rem;color:var(--e2-fg)}
.e2-dashboard .e2-bar-row+.e2-bar-row {margin-block-start:.72rem}
.e2-dashboard .e2-bar-meta {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.4rem;align-items:baseline;margin-block-end:.35rem;color:var(--e2-copy);font-size:.86rem}
.e2-dashboard .e2-bar-meta strong {font:700 .87rem/1.3 var(--eg-mono);color:var(--e2-fg);white-space:nowrap}
.e2-dashboard .e2-bar-track {display:block;position:relative;block-size:.44rem;border-radius:1rem;background:#27413d;overflow:hidden}
.e2-dashboard .e2-bar-line {display:block;block-size:100%;border-radius:inherit;background:var(--e2-lime);transition:filter .2s ease}
.e2-dashboard .e2-table-link {display:inline-flex;align-items:center;min-block-size:44px;color:var(--e2-cyan)!important;font-weight:700;text-decoration:underline;text-underline-offset:.24em;margin-block-start:.45rem}
@media(forced-colors:active) {.e2-dashboard .e2-bar-line {background:Highlight;forced-color-adjust:none}}
@media print {.e2-dashboard,.e2-dashboard .e2-plot {background:#fff;color:#111;box-shadow:none}.e2-dashboard :is(h3,h4,p,strong,span,a) {color:#111!important}}

/* The home orbit is the signature surface. It remains visible with JS disabled. */
@media screen {
  html body[data-ebv-family="home"] main .hero.eb30-spectacle {
    padding-block:clamp(2.8rem,7vw,7rem)!important;
  }
  html body[data-ebv-family="home"] main .hero.eb30-spectacle .eb30-hero-copy {
    min-inline-size:0;position:relative;
    background:linear-gradient(120deg,#142429e8,#122126bd);
    border:1px solid #698c6e73;border-radius:var(--e2-radius);
    box-shadow:inset 0 1px #daffb924,0 1rem 3rem #03090d66;
  }
  html body[data-ebv-family="home"] main .hero.eb30-spectacle h1 {
    font-size:clamp(2.3rem,5.65vw,5.2rem);max-inline-size:15ch;
    margin-block:.38em .3em;
  }
  html body[data-ebv-family="home"] main .hero.eb30-spectacle .eb30-accent {
    color:var(--e2-lime);text-shadow:0 0 .36em #c5ff6832;
  }
  html body[data-ebv-family="home"] main .hero.eb30-spectacle .status {
    color:var(--e2-cyan);font:700 clamp(.68rem,1.6vw,.8rem)/1.5 var(--eg-mono);letter-spacing:.10em;
  }
  html body[data-ebv-family="home"] main .hero.eb30-spectacle .lead {font-size:clamp(1.02rem,1.4vw,1.16rem);max-inline-size:58ch}
  html body[data-ebv-family="home"] main .hero.eb30-spectacle .eb30-orb-ring--a {box-shadow:0 0 1.8rem #b8ff663e}
  html body main .eb-opt-orbit-stage,.eg-decor {pointer-events:none}
  html body main :is(.eb31-faq-wrap,.eb32-academy,.eb52-wrap,.eb51-wrap,.eb23-reading) {min-inline-size:0}
  html body main .e2-dashboard :is(.e2-plot,.e2-bar-meta) {min-inline-size:0}
  html body main .e2-dashboard .e2-bar-meta span {overflow-wrap:anywhere}
  html body main .e2-dashboard .e2-bar-row:nth-child(3) .e2-bar-line {background:var(--e2-cyan)}
  html body main .e2-dashboard .e2-bar-row:nth-child(4) .e2-bar-line {background:var(--e2-gold)}
}
@media screen and (max-width:45rem) {
  html body[data-ebv-family="home"] main .hero.eb30-spectacle {padding-block:1.45rem 2rem!important}
  html body[data-ebv-family="home"] main .hero.eb30-spectacle h1 {font-size:clamp(2.03rem,10vw,3.4rem);max-inline-size:19ch}
  html body[data-ebv-family="home"] main .hero.eb30-spectacle .eb30-hero-copy {padding:clamp(1rem,4.8vw,1.6rem);backdrop-filter:none}
  html body main :is(.eb31-faq-wrap,.eb32-academy,.eb52-section,.eb51-section) {padding-block:clamp(1.75rem,8vw,3.25rem)!important}
}
@media screen and (prefers-reduced-motion:no-preference) {
  html[data-eb-home-motion="running"] body:not(.ebf-motion-paused) main .hero.eb30-spectacle .eg-decor::after {
    animation:e2-orb-surge 4s cubic-bezier(.2,.72,.25,1) 1 both;
  }
  html[data-eb-home-motion="running"] body:not(.ebf-motion-paused) main .hero.eb30-spectacle .eg-decor::before {
    animation:e2-orb-light 3.4s ease-in-out 1 both;
  }
}
@keyframes e2-orb-surge {
  0%,100%{transform:perspective(44rem) rotateX(9deg) rotateY(-8deg)}
  54%{transform:perspective(44rem) rotateX(20deg) rotateY(11deg) translate3d(-.7rem,.35rem,2rem)}
}
@keyframes e2-orb-light {0%,100%{opacity:.7}55%{opacity:1;transform:scale(1.035)}}
@media (prefers-reduced-motion:reduce) {
  html body main .hero.eb30-spectacle .eg-decor::before,
  html body main .hero.eb30-spectacle .eg-decor::after {animation:none!important}
}
@media (prefers-reduced-transparency:reduce) {
  html body[data-ebv-family="home"] main .hero.eb30-spectacle .eb30-hero-copy {background:#142429;backdrop-filter:none}
}

/* Keep table wrappers dark as well as cells, including the scroll gutter. */
@media screen {
  html body main :is([class$="-matrix-scroll"],.eb35-matrix-scroll) {
    background:var(--e2-deep)!important;color:var(--e2-fg);
    box-shadow:inset 0 1px #bdffee19,0 .65rem 1.65rem #02070940;
  }
  html body main :is(.eb35-matrix-note,.eb35-light .eb35-section-desc) {color:var(--e2-copy)!important}
  html body main :is(.eb35-matrix-scroll,.eb51-matrix-scroll,.eb52-matrix-scroll):focus-visible {
    outline:3px solid var(--e2-lime);outline-offset:3px;
  }
}
@media (forced-colors:active) {
  html body main .eb31-faq-wrap details>summary:focus-visible {outline-color:Highlight!important}
}
