/* ------------------------------------------------------------------
   Homepage solar and battery sections.

   Every selector is scoped to .ae-block or .ae-block, so
   nothing here can restyle the Framer page around them. Layout mirrors
   the homepage case-study block: bordered grid, mono labels, serif
   headings, warm hover fill.
------------------------------------------------------------------- */

.ae-block {
  position: relative;
  z-index: 3;
  isolation: isolate;
  padding: 88px 0;
  background: #ffffff;
}

.ae-block *,
.ae-block *::before {
  box-sizing: border-box;
}

.ae-block .ae-sol-wrap {
  width: 100%;
  max-width: 1044px;
  margin: 0 auto;
  padding: 0 24px;
}

.ae-block .ae-sol-head {
  max-width: 60ch;
  margin-bottom: 32px;
}

.ae-block .ae-sol-eyebrow {
  margin: 0 0 14px;
  color: #6E7178;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.ae-block .ae-sol-title {
  margin: 0;
  max-width: 24ch;
  color: #1C1E21;
  font-family: "Hedvig Letters Serif", "Times New Roman", serif;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.ae-block .ae-sol-lede {
  margin: 18px 0 0;
  max-width: 58ch;
  color: #4A4D52;
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

/* ---------- bordered card grid ---------- */

.ae-block .ae-sol-grid {
  display: grid;
  border: 1px solid #F1EAE2;
  background: #ffffff;
}

@media (min-width: 810px) {
.ae-block .ae-sol-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ae-block .ae-sol-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px 30px;
  color: inherit;
  text-decoration: none;
  transition: background-color 500ms ease-out;
}

@media (min-width: 810px) {
.ae-block .ae-sol-card {
    padding: 34px 32px 36px;
  }

.ae-block .ae-sol-card:nth-child(even) {
    border-left: 1px solid #F1EAE2;
  }

.ae-block .ae-sol-card:nth-child(n + 3) {
    border-top: 1px solid #F1EAE2;
  }
}

@media (max-width: 809.98px) {
.ae-block .ae-sol-card + .ae-sol-card {
    border-top: 1px solid #F1EAE2;
  }
}

.ae-block .ae-sol-card:hover,
.ae-block .ae-sol-card:focus-visible {
  background: #F7F4F0;
}

.ae-block .ae-sol-card:focus-visible {
  outline: 2px solid #1C1E21;
  outline-offset: -3px;
}

.ae-block .ae-sol-num {
  color: #6E7178;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.ae-block .ae-sol-card h3 {
  margin: 0;
  color: #1C1E21;
  font-family: "Hedvig Letters Serif", "Times New Roman", serif;
  font-size: clamp(21px, 1.8vw, 25px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.ae-block .ae-sol-card p {
  margin: 0;
  max-width: 42ch;
  color: #4A4D52;
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.ae-block .ae-sol-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  min-height: 44px;
  color: #1C1E21;
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
}

.ae-block .ae-sol-link svg {
  flex: none;
  transition: transform 500ms ease-out;
}

.ae-block .ae-sol-card:hover .ae-sol-link svg {
  transform: translateX(4px);
}

/* ---------- small screens ---------- */

@media (max-width: 809.98px) {
.ae-block {
    padding: 56px 0;
  }

.ae-block .ae-sol-wrap {
    padding: 0 20px;
  }

.ae-block .ae-sol-title {
    font-size: 27px;
    max-width: none;
  }

.ae-block .ae-sol-lede {
    font-size: 15px;
  }

.ae-block .ae-sol-card {
    padding: 24px 18px 26px;
  }
}

@media (hover: none) {
.ae-block .ae-sol-card:hover {
    background: #ffffff;
  }

.ae-block .ae-sol-link svg {
    transform: none !important;
  }
}

/* Shared with the other injected blocks: hides nodes that carry
   template content we do not publish (e.g. the borrowed testimonial). */
[data-ae-hidden="true"] {
  display: none !important;
}

/* Keep the three injected sections in their own layout and paint scope so
   they cannot invalidate the rest of the Framer page while scrolling. */
.ae-block,
#projects-applications {
  contain: layout paint;
}

@media (prefers-reduced-motion: reduce) {
.ae-block *,
#projects-applications * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* This page keeps a sticky side rail at z-index 1. The injected sections sit
   beside Framer's own section, so they need their own stacking context and a
   background to paint above that rail. */
.ae-block,
#projects-applications {
  position: relative;
  z-index: 3;
  isolation: isolate;
  background: #ffffff;
}

/* The delivery-model card headings were set with white-space: pre, so the
   longer titles ran past their column instead of wrapping and overlapped the
   next card. They are allowed to wrap here; the cards keep their own width
   and the type preset is untouched. */
#platform h3 {
  white-space: normal !important;
  overflow-wrap: break-word;
  text-wrap: balance;
}

/* The five capability cards shipped in the template's order, which put fuel
   infrastructure first. They are re-ordered for reading priority — solar,
   then engineering, then the petroleum-side services — with flex `order` on
   the existing grid, so no Framer-managed node is moved. */
.framer-gx10gc > .framer-1tybie5 {
  order: 1;
}

.framer-gx10gc > .framer-gtnaiy {
  order: 2;
}

.framer-gx10gc > .framer-i46lpp {
  order: 3;
}

.framer-gx10gc > .framer-s10bni {
  order: 4;
}

.framer-gx10gc > .framer-11oc3f5 {
  order: 5;
}

/* Section imagery, framed the same way as the case-study block: hairline
   border, warm mat, full-colour photography at its natural ratio. */
.ae-block .ae-sol-figure {
  margin: 0 0 32px;
  overflow: hidden;
  border: 1px solid #F1EAE2;
  background: #F7F4F0;
}

.ae-block .ae-sol-figure img {
  display: block;
  width: 100%;
  height: auto;
}
