/* ============================================================
   Grid Connected Storage — page-specific layout
   Reference geometry measured at a 1440px viewport.
   ============================================================ */

/* ---------- hero ---------- */

.grid-hero {
  height: 803px;
}

.grid-hero .inner-hero__inner {
  padding-top: 49px;
}

.grid-hero__title {
  margin-left: 2px;
  color: #000;
  font-size: 120px;
  line-height: 108px;
  letter-spacing: 0;
}

.grid-hero__subtitle {
  margin: 17px 0 0 20px;
  color: #000;
  font-size: 24px;
  line-height: 24px;
  letter-spacing: 0.1em;
}

.grid-hero__intro {
  width: 380px;
  margin: 45px 0 0 20px;
  font-size: 16px;
  line-height: 27.2px;
  letter-spacing: 0.48px;
}

.grid-hero__list {
  margin: 49px 0 0 8px;
  font-family: var(--font-bold);
  font-size: 16px;
  line-height: 19px;
  letter-spacing: 1.6px;
}

.grid-hero__list li + li {
  margin-top: 21px;
}

.grid-hero__list a {
  display: inline-block;
  color: #000;
  transition: color 0.2s ease;
}

.grid-hero__list a:hover {
  color: var(--navy-active);
}

/* the live page clips the second item with an ellipsis */
.grid-hero__list .is-truncated a {
  display: block;
  max-width: 208px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* hero photo sits right and bleeds past the viewport edge */
.grid-hero .hero-media .hero-media__badge {
  inset: auto;
  right: -14px;
  bottom: -31px;
  width: 186px;
  height: 105px;
  object-fit: contain;
}

/* ---------- section shell ---------- */

.grid-section {
  position: relative;
  background: var(--white);
}

.grid-section .container {
  height: 100%;
}

.grid-heading {
  color: #000;
  font-size: 24px;
  line-height: 24px;
  letter-spacing: 0.1em;
  margin: 0;
}

.grid-section .text-block p {
  margin: 0 0 27px;
  font-size: 16px;
  line-height: 27.2px;
  letter-spacing: 0.48px;
}

.grid-section .text-block p:last-child {
  margin-bottom: 0;
}

/* ---------- demand peak reduction ---------- */

.grid-section--peak {
  height: 1110px;
}

.grid-peak__chart {
  position: absolute;
  top: 72px;
  left: 8px;
  width: 370px;
  height: 508px;
}

.grid-peak__text {
  position: absolute;
  top: 125px;
  left: 499px;
  width: 476px;
}

.grid-peak__text .grid-heading {
  margin-bottom: 25px;
}

/* ---------- gray bands (frequency regulation / backup resiliency) ---------- */

.grid-band {
  position: relative;
  background: var(--gray);
}

.grid-band__inner {
  width: 960px;
  margin-left: 5px;
  text-align: center;
}

.grid-band .container {
  height: 100%;
}

.grid-band__title {
  position: relative;
  left: -4px;
  text-align: center;
}

.grid-band .text-block {
  text-align: left;
}

.grid-band .text-block p {
  margin: 0;
  font-size: 16px;
  line-height: 27.2px;
  letter-spacing: 0.48px;
}

.grid-band--frequency {
  height: 594px;
}

.grid-band--frequency .container {
  padding-top: 107px;
}

.grid-band--frequency .grid-heading {
  margin-bottom: 25px;
}

.grid-band--backup {
  height: 535px;
}

.grid-band--backup .container {
  padding-top: 110px;
}

.grid-band--backup .grid-heading {
  margin-bottom: 24px;
}

.grid-band--backup .text-block {
  width: 951px;
}

/* ---------- energy arbitrage ---------- */

.grid-section--arbitrage {
  height: 638px;
}

.grid-arb__text {
  position: absolute;
  top: 61px;
  left: 8px;
  width: 476px;
}

.grid-arb__text .grid-heading {
  margin-bottom: 25px;
}

.grid-arb__text .text-block p {
  margin: 0;
  line-height: 22.4px;
}

.grid-arb__chart {
  position: absolute;
  top: 103px;
  left: 549px;
  width: 501px;
  height: 355px;
  overflow: hidden;
}

.grid-arb__chart img {
  width: 100%;
  height: auto;
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .grid-hero {
    height: auto;
    padding: 32px 0 56px;
  }

  .grid-hero .inner-hero__inner {
    padding: 0 24px;
  }

  .grid-hero__title {
    font-size: clamp(42px, 12vw, 84px);
    line-height: 1.02;
  }

  .grid-hero__subtitle {
    margin: 16px 0 0;
    font-size: 18px;
    line-height: 1.3;
  }

  .grid-hero__intro {
    width: auto;
    max-width: 560px;
    margin: 26px 0 0;
    font-size: 15px;
    line-height: 1.7;
  }

  .grid-hero__list {
    margin: 30px 0 0;
    font-size: 15px;
    line-height: 1.3;
    letter-spacing: 1.2px;
  }

  .grid-hero__list li + li {
    margin-top: 15px;
  }

  .grid-hero__list .is-truncated a {
    max-width: none;
    white-space: normal;
  }

  .grid-hero .hero-media {
    position: static;
    width: auto;
    height: auto;
    margin-top: 30px;
  }

  .grid-hero .hero-media img {
    position: static;
    width: 100%;
    height: auto;
  }

  .grid-hero .hero-media img.is-hover,
  .grid-hero .hero-media .hero-media__badge {
    display: none;
  }

  .grid-section {
    height: auto !important;
    padding: 48px 0 56px;
  }

  .grid-section .container,
  .grid-band .container {
    width: auto;
    max-width: 640px;
    height: auto;
    padding: 0 24px;
  }

  .grid-peak__chart,
  .grid-peak__text,
  .grid-arb__text,
  .grid-arb__chart {
    position: static;
    width: auto;
    height: auto;
  }

  .grid-section--peak .container {
    display: flex;
    flex-direction: column;
  }

  .grid-peak__chart {
    order: 2;
    width: 100%;
    max-width: 370px;
    height: auto;
    margin: 32px 0 0;
  }

  .grid-peak__text {
    order: 1;
    margin: 0;
  }

  .grid-section .text-block p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 18px;
  }

  .grid-arb__text {
    margin: 0 0 32px;
  }

  .grid-arb__chart {
    max-width: 501px;
    height: 355px;
  }

  .grid-band {
    height: auto !important;
    padding: 48px 0 56px;
  }

  .grid-band .container {
    padding: 0 24px;
  }

  .grid-band__inner {
    width: auto;
    margin: 0;
  }

  .grid-band--frequency .grid-heading,
  .grid-band--backup .grid-heading {
    margin-bottom: 18px;
  }

  .grid-band .text-block p {
    font-size: 15px;
    line-height: 1.7;
  }

  .grid-band--backup .text-block {
    width: auto;
  }
}

@media (max-width: 640px) {
  .grid-arb__chart {
    height: 260px;
  }
}
