.gmlpi-site {
  --home-ink: #10192a;
  --home-muted: #4c5a70;
  --home-night: #080f1d;
  --home-blue: #0759c7;
  --home-max: 1440px;
  --home-edge: clamp(20px, 5.3vw, 88px);
  color: var(--home-ink);
  background: #fff;
  display: flex;
  flex-direction: column;
}

#site-main { flex: 1 0 auto; }

.home-shell {
  width: min(calc(100% - var(--home-edge) - var(--home-edge)), var(--home-max));
  margin-inline: auto;
}

.gmlpi-site :is(a, button):focus-visible {
  outline: 3px solid #287ce8;
  outline-offset: 4px;
}

.home-skip {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 2;
  padding: 12px 18px;
  border-radius: 8px;
  background: #fff;
  transform: translateY(-150%);
}

.home-skip:focus { transform: none; }

.gmlpi-site .topbar {
  position: relative;
  padding: 0 max(var(--home-edge), calc((100% - var(--home-max)) / 2));
  min-height: 68px;
  border-color: #263248;
  background: var(--home-night);
  color: #fff;
}

.gmlpi-site .brand { gap: 10px; }
.gmlpi-site .brand-logo { display: block; flex: none; }
.gmlpi-site .b1 { font-size: 22px; letter-spacing: .045em; }
.gmlpi-site .b2 { display: none; }
.gmlpi-site .nav ul { gap: clamp(24px, 3vw, 48px); }
.nav-controls { display: flex; align-items: center; gap: 8px; }
.language-switch {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #4b5b74;
  border-radius: 999px;
  color: #dbe7f8;
  font-size: 13px;
}
.language-switch:hover { border-color: #9cc7fb; color: #fff; }

.gmlpi-site .nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  color: #b8c6da;
  font-size: 14px;
}

.gmlpi-site .nav a.cta { color: #a9ceff; }
.gmlpi-site .nav a:hover,
.gmlpi-site .nav a.active { color: #fff; border-color: #9cc7fb; }

.gmlpi-site .menu {
  min-height: 44px;
  background: transparent;
  border-color: #4b5b74;
  cursor: pointer;
}

.gmlpi-site .menu span {
  width: 14px;
  box-shadow: 0 -4px currentColor, 0 4px currentColor;
}

.gmlpi-site .navm {
  margin: 0;
  padding: 8px var(--home-edge);
  border: 0;
  border-bottom: 1px solid #263248;
  border-radius: 0;
  background: var(--home-night);
}

.gmlpi-site .navm a {
  min-height: 44px;
  padding: 12px 0;
  color: #dbe7f8;
}

.home-hero {
  overflow: hidden;
  background: radial-gradient(ellipse at 82% 60%, #111e3b 0%, #080f1d 67%);
  color: #f8fbff;
}

.home-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 2vw, 32px);
  min-height: clamp(490px, 43vw, 660px);
  padding-block: clamp(48px, 5.5vw, 84px);
}

.home-hero-copy {
  position: relative;
  z-index: 1;
}

.home-kicker {
  margin: 0;
  color: var(--home-blue);
  font-size: 12px;
  font-weight: 730;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.home-hero .home-kicker { color: #accef9; }

.home-hero h1 {
  margin: 18px 0 0;
  font-size: clamp(39px, 4.9vw, 76px);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.11;
}

.home-hero h1 span { color: #bfdbff; }

.home-hero-lede {
  max-width: 29em;
  margin: 24px 0 0;
  color: #c0cde0;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.75;
  text-wrap: pretty;
}

.home-hero-art {
  position: relative;
  display: block;
  width: 106%;
  max-width: none;
  height: auto;
  margin-inline-start: -3%;
}

.home-hero-art img { display: block; width: 100%; height: auto; }
.home-hero-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-hero-art.is-rendering img { visibility: hidden; }

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 11px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  transition: background-color .18s ease, border-color .18s ease;
}

.home-button-primary { background: #1671df; color: #fff; }
.home-button-primary:hover { background: #095cc4; }
.home-button-outline { border-color: #56677f; color: #fff; }
.home-button-outline:hover { border-color: #b9cce6; background: #1d2b42; }

.gmlpi-site button.home-button { cursor: pointer; }

.home-project-index {
  padding-block: clamp(38px, 5vw, 72px);
  border-block-end: 1px solid #e0e8f4;
  scroll-margin-top: 18px;
}

.home-project-index h2 {
  margin: 8px 0 20px;
  font-size: clamp(26px, 3.25vw, 44px);
  letter-spacing: -.035em;
}

.home-project-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-project-index-grid a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  padding: clamp(14px, 1.8vw, 24px);
  border: 1px solid #dbe6f5;
  border-radius: 14px;
  background: #f4f8fe;
}

.home-project-index-grid a:hover { border-color: #8db6ea; background: #ecf4ff; }
.home-project-index-grid strong { font-size: clamp(18px, 2vw, 25px); }
.home-project-index-label { grid-column: 1 / -1; color: #41618b; font-size: 12px; font-weight: 650; }
.home-project-index-arrow { color: var(--home-blue); font-size: 21px; }

.home-project-detail-link { margin-top: 16px; }
:is(.home-project, .home-energy) h2 a:hover { color: var(--home-blue); }

.home-project {
  padding-block: clamp(52px, 7vw, 104px);
  background: #f1f5fc;
  scroll-margin-top: 18px;
}

.home-project-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
}

.home-project-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.home-project-status {
  padding: 4px 10px;
  border: 1px solid #cbd9ee;
  border-radius: 999px;
  color: #33527a;
  font-size: 12px;
  font-weight: 650;
}

.home-project-lede {
  max-width: 24em;
  margin: 16px 0 0;
  color: var(--home-muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
}

.home-project-features {
  margin: 22px 0 0;
}

.home-project-features > div {
  display: grid;
  grid-template-columns: 5em minmax(0, 1fr);
  gap: 10px;
  padding-block: 11px;
  border-top: 1px solid #d7e2f1;
  font-size: 15px;
  line-height: 1.55;
}

.home-project-features dt { font-weight: 700; }
.home-project-features dd { margin: 0; color: var(--home-muted); }
.home-project-media { min-width: 0; margin: 0; }

.home-project-player {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: var(--home-night);
  box-shadow: 0 16px 38px rgba(20, 40, 73, .15);
}

.home-project-poster,
.home-project-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}

.home-project-poster { position: relative; overflow: hidden; }

.home-project-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-project-play {
  position: absolute;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #9db6d8;
  border-radius: 999px;
  background: #101c31;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}

.home-project-poster:hover .home-project-play { background: #164d93; }

.home-project-media figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 12px;
  margin-top: 7px;
  color: var(--home-muted);
  font-size: 13px;
}

.home-energy {
  padding-block: clamp(58px, 7vw, 104px);
  border-block-end: 1px solid #e4ebf5;
  background: linear-gradient(155deg, #fff 25%, #f0f5fd 100%);
  scroll-margin-top: 18px;
}

.home-energy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 76px);
}

.home-energy-dashboard {
  --energy-solar: #73e8c4;
  --energy-load: #9cbfff;
  --energy-charge: #d0b8ff;
  --energy-muted: #b1c3dd;
  min-width: 0;
  margin: 0;
  padding: clamp(15px, 2.5vw, 32px);
  border: 1px solid #233858;
  border-radius: 22px;
  background: radial-gradient(ellipse at 90% 0%, #1c3962, #101e36 54%, #0a1526);
  box-shadow: 0 18px 40px rgba(27, 51, 85, .16);
  color: #f1f6ff;
  font-variant-numeric: tabular-nums;
}

.home-energy-dashboard-head,
.home-energy-chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.home-energy-dashboard h3 {
  margin: 0;
  font-size: clamp(19px, 2vw, 27px);
  line-height: 1.25;
}

.home-energy-demo {
  padding: 4px 9px;
  border: 1px solid #4b6489;
  border-radius: 999px;
  color: #d9e7fa;
  font-size: 12px;
  font-weight: 650;
}

.home-energy-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 1vw, 12px);
  margin: 19px 0 22px;
}

.home-energy-metrics > div {
  padding: 12px clamp(6px, 1.2vw, 16px);
  border: 1px solid #456084;
  border-radius: 12px;
  background: rgba(183, 213, 255, .065);
}

.home-energy-metrics dt { color: var(--energy-muted); font-size: clamp(11px, 3.4vw, 12px); }
.home-energy-metrics dd {
  margin: 6px 0 0;
  font-size: clamp(17px, 2.3vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.home-energy-metrics small { font-size: .53em; font-weight: 600; }
.home-energy-solar { color: var(--energy-solar); }
.home-energy-load { color: var(--energy-load); }
.home-energy-charge { color: var(--energy-charge); }

.home-energy-chart-head p {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.home-energy-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; }
.home-energy-legend span { display: flex; align-items: center; gap: 5px; }
.home-energy-legend span::before { width: 12px; border-block-start: 2px solid; content: ""; }
.home-energy-legend .home-energy-load::before { border-block-start-style: dashed; }
.home-energy-range { color: var(--energy-muted); }
.home-energy-legend .home-energy-range::before {
  height: 7px;
  border: 0;
  border-radius: 2px;
  background: rgba(156, 191, 255, .34);
}

.home-energy-chart-grid {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 6px;
  margin-top: 15px;
  color: var(--energy-muted);
  font-size: 11px;
}

.home-energy-y-axis { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)) 0; text-align: right; line-height: 1; }
.home-energy-y-axis span { align-self: start; transform: translateY(-50%); }
.home-energy-time-axis { display: grid; grid-column: 2; grid-template-columns: repeat(4, minmax(0, 1fr)) 0; }
.home-energy-time-axis span { width: max-content; transform: translateX(-50%); }
.home-energy-time-axis span:first-child { transform: none; }
.home-energy-time-axis span:last-child { transform: translateX(-100%); }
.home-energy-plot { display: block; width: 100%; height: clamp(140px, 16vw, 220px); }
.home-energy-valley { fill: #a5b9ff; fill-opacity: .14; }
.home-energy-gridlines { fill: none; stroke: #809cc2; stroke-opacity: .28; }
.home-energy-range-band { fill: var(--energy-load); fill-opacity: .2; }
.home-energy-trace { stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.home-energy-trace.home-energy-load { stroke-dasharray: 5 4; }
.home-energy-dispatch-window { stroke: currentColor; stroke-width: 4; stroke-linecap: round; }

.home-energy-schedule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: 16px;
  padding: 9px 12px;
  border: 1px solid #544978;
  border-radius: 9px;
  background: rgba(178, 145, 255, .1);
  color: #e0d3fa;
  font-size: 12px;
}

.home-energy-schedule p { margin: 0; }
.home-energy-schedule strong { margin-inline-start: 4px; font-size: 15px; white-space: nowrap; }

.home-energy-dashboard figcaption {
  margin-top: 10px;
  color: var(--energy-muted);
  font-size: 12px;
  line-height: 1.55;
}

.home-energy-features { margin: 0; }
.home-energy-features > div { padding: 17px 0; border-block-end: 1px solid #d9e4f2; }
.home-energy-features > div:first-child { padding-top: 0; }
.home-energy-features dt { display: flex; align-items: baseline; gap: 12px; font-size: clamp(18px, 1.7vw, 23px); font-weight: 750; }
.home-energy-features dt span { min-width: 19px; color: var(--home-blue); font-size: 12px; font-variant-numeric: tabular-nums; }
.home-energy-features dd { margin: 6px 0 0 31px; color: var(--home-muted); font-size: 15px; line-height: 1.68; }

.home-robot {
  border-block-end: 1px solid #e4ebf5;
  background: #f0f5fc;
}

.home-robot-figure {
  --robot-line: #6392c1;
  --robot-muted: #b8cce4;
  min-width: 0;
  margin: 0;
  padding: clamp(15px, 2.5vw, 32px);
  border: 1px solid #29466b;
  border-radius: 22px;
  background: radial-gradient(ellipse at 82% 0%, #1c416e, #122744 57%, #0b182c);
  box-shadow: 0 18px 40px rgba(27, 51, 85, .16);
  color: #f1f6ff;
}

.home-robot-diagram-head,
.home-robot-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
}

.home-robot-diagram-head h3 { margin: 0; font-size: clamp(17px, 2vw, 24px); }
.home-robot-diagram-head span { color: var(--robot-muted); font-size: 12px; }

.home-robot-input,
.home-robot-core,
.home-robot-outputs li {
  border: 1px solid #466a94;
  border-radius: 10px;
  background: #172f50;
  text-align: center;
}

.home-robot-input {
  width: fit-content;
  margin: 22px auto 0;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 650;
}

.home-robot-core {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 18px auto 0;
  padding: 12px clamp(12px, 3.6vw, 42px);
  border-color: #7da9db;
  background: #214779;
}

.home-robot-core strong { display: block; font-size: clamp(17px, 2.1vw, 24px); }
.home-robot-core span,
.home-robot-outputs span { display: block; margin-top: 3px; color: var(--robot-muted); font-size: 12px; }

.home-robot-outputs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 28px 0 0;
  list-style: none;
}

.home-robot-outputs li {
  position: relative;
  margin-inline: clamp(3px, .7vw, 9px);
  padding: 9px 4px;
  font-size: clamp(13px, 1.4vw, 17px);
}

.home-robot-core::before,
.home-robot-outputs::after,
.home-robot-outputs li::before {
  position: absolute;
  inset-inline-start: 50%;
  width: 1px;
  background: var(--robot-line);
  content: "";
}

.home-robot-core::before { inset-block-start: -19px; height: 18px; }
.home-robot-outputs::after { inset-block-start: 0; height: 14px; }
.home-robot-outputs li::before { inset-block-start: -15px; height: 14px; }
.home-robot-outputs::before {
  position: absolute;
  inset: 14px 16.6667% auto;
  height: 1px;
  background: var(--robot-line);
  content: "";
}

.home-robot-figure figcaption {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #52749a;
  color: var(--robot-muted);
  font-size: 12px;
}

.home-robot-figure figcaption strong { color: #c7e4ff; font-size: 14px; }

.home-catalog {
  padding-block: clamp(60px, 7vw, 106px);
  scroll-margin-top: 18px;
}

.home-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.home-section-head h2,
.home-project h2,
.home-contact h2 {
  margin: 10px 0 0;
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.15;
}

.home-section-head p:last-child,
.home-contact p:last-child {
  margin: 12px 0 0;
  color: var(--home-muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
}

.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--home-blue);
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
}

.home-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.home-catalog-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}

.home-category {
  --tile-bg: #f1f4f9;
  --tile-stroke: #37639c;
  position: relative;
  isolation: isolate;
  display: flex;
  grid-column: span 2;
  min-width: 0;
  min-height: 265px;
  padding: clamp(22px, 2.5vw, 36px) clamp(22px, 2.5vw, 36px) 108px;
  overflow: hidden;
  border: 1px solid #e4e9f1;
  border-radius: 20px;
  background: var(--tile-bg);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.home-category:nth-child(-n+2) {
  grid-column: span 3;
  min-height: 310px;
}

.home-category:nth-child(2) { --tile-bg: #ebf1fc; --tile-stroke: #3466ae; }
.home-category:nth-child(3) { --tile-bg: #edf4f6; --tile-stroke: #39758c; }
.home-category:nth-child(4) { --tile-bg: #f0eff8; --tile-stroke: #63568e; }
.home-category:nth-child(5) { --tile-bg: #edf3fc; --tile-stroke: #3964a0; }

.home-category:hover,
.home-category:focus-visible {
  border-color: #9db7d9;
  box-shadow: 0 10px 28px rgba(27, 57, 105, .09);
}

.home-category-label {
  display: block;
  color: #38537a;
  font-size: 11px;
  font-weight: 740;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.home-category h3 {
  margin: 10px 0 7px;
  font-size: clamp(21px, 2vw, 31px);
  font-weight: 750;
  line-height: 1.24;
}

.home-category p {
  max-width: 19em;
  margin: 0;
  color: var(--home-muted);
  font-size: 15px;
  line-height: 1.65;
}

.home-category-art {
  position: absolute;
  z-index: -1;
  right: -4%;
  bottom: -12%;
  width: 72%;
  max-width: 320px;
  height: auto;
  color: var(--tile-stroke);
  opacity: .83;
  pointer-events: none;
}

.home-category:nth-child(-n+2) .home-category-art {
  width: 59%;
  max-width: 410px;
}

.home-category-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #d0dceb;
  border-radius: 50%;
  background: #fff;
  color: var(--home-blue);
  font-size: 17px;
}

.home-contact {
  padding-block: clamp(46px, 6vw, 84px);
  background: #edf3fc;
}

.home-contact-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.gmlpi-site .foot {
  width: min(calc(100% - var(--home-edge) - var(--home-edge)), var(--home-max));
  margin: 0 auto;
  flex-wrap: wrap;
  padding: 24px 0 28px;
  border-block-start: 1px solid #e0e8f4;
  color: var(--home-muted);
  font-size: 13px;
}

.foot-filing { text-decoration: underline; text-underline-offset: 3px; }
.foot-filing:hover { color: var(--home-blue); }
.foot-company { display: grid; gap: 4px; }

@media (max-width: 960px) {
  .home-hero-layout { min-height: 440px; }
  .home-hero h1 { font-size: clamp(38px, 5.25vw, 58px); }
  .home-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-category,
  .home-category:nth-child(-n+2) { grid-column: span 1; min-height: 260px; }
  .home-category:nth-child(-n+2) .home-category-art { width: 72%; max-width: 320px; }
}

@media (max-width: 820px) {
  .home-project-layout,
  .home-energy-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .gmlpi-site .topbar { min-height: 60px; gap: 8px; }
  .home-hero-layout {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding-block: 47px 12px;
  }
  .home-hero h1 { font-size: clamp(35px, 8.25vw, 54px); }
  .home-hero-lede { margin-top: 18px; }
  .home-actions { margin-top: 24px; }
  .home-button { padding-inline: 17px; }
  .home-hero-art { width: min(100%, 420px); margin: -8px auto 0; }
  .home-section-head,
  .home-contact-layout { flex-direction: column; align-items: flex-start; gap: 12px; }
  .home-section-head { margin-bottom: 22px; }
  .home-catalog-grid,
  .home-project-index-grid { grid-template-columns: minmax(0, 1fr); }
  .home-category,
  .home-category:nth-child(-n+2) { min-height: 232px; }
  .home-category-art,
  .home-category:nth-child(-n+2) .home-category-art { width: 64%; max-width: 300px; }
  .gmlpi-site .foot { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-button,
  .home-category { transition: none; }
}
