.carbon-zero-project-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 45%, rgba(143, 194, 76, 0.18), transparent 22rem),
    linear-gradient(125deg, #173d3c 0%, #112c47 76%);
}

.carbon-zero-project-hero .project-hero__content {
  position: relative;
  z-index: 1;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding-top: clamp(7.25rem, 9vw, 8.5rem);
  padding-bottom: clamp(2.75rem, 5vw, 4rem);
}

.carbon-zero-project-hero .project-hero__layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.carbon-zero-project-hero .project-hero__copy {
  gap: 0;
}

.carbon-zero-project-hero .project-hero__copy[data-style-scope="qhm54sdl"] h1[data-style-scope="qhm54sdl"] {
  max-width: 14ch;
  font-size: clamp(2.8rem, 5.8vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.carbon-zero-project-hero .project-hero__copy[data-style-scope="qhm54sdl"] h1[data-style-scope="qhm54sdl"]::after {
  display: block;
  width: clamp(3rem, 7vw, 5rem);
  height: 4px;
  margin-top: 1.25rem;
  border-radius: 999px;
  background: var(--color-brand);
  content: "";
}

.carbon-zero-content {
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
  background: linear-gradient(180deg, #f3f6ef 0%, #eaf0e8 100%);
}

.carbon-zero-copy {
  display: grid;
  max-width: 54rem;
  gap: 0;
  margin-inline: auto;
  padding: clamp(1.15rem, 3.8vw, 3rem);
  border: 1px solid rgba(17, 44, 71, 0.1);
  border-radius: clamp(1.1rem, 2.4vw, 1.8rem);
  background: var(--color-white);
  box-shadow: 0 1.5rem 4.5rem rgba(17, 44, 71, 0.09);
}

.carbon-zero-copy p {
  max-width: 70ch;
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.12vw, 1.12rem);
  line-height: 1.8;
}

.carbon-zero-copy p + p {
  margin-top: clamp(1rem, 2vw, 1.4rem);
  padding-top: clamp(1rem, 2vw, 1.4rem);
  border-top: 1px solid rgba(17, 44, 71, 0.09);
}

.carbon-zero-copy .carbon-zero-copy__lead {
  max-width: 70ch;
  padding: clamp(0.9rem, 2vw, 1.2rem);
  border-left: 4px solid var(--color-brand);
  border-radius: 0 1rem 1rem 0;
  color: var(--color-ink);
  background: #f3f6ef;
  font-size: clamp(1.13rem, 1.55vw, 1.35rem);
  font-weight: 700;
  line-height: 1.65;
}

.carbon-zero-story {
  max-width: 76rem;
  gap: 0;
}

.carbon-zero-story__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.25rem);
}

.carbon-zero-story__opening {
  display: grid;
  align-content: center;
}

.carbon-zero-story__opening > p {
  max-width: none;
}

.carbon-zero-story__opening > p + p {
  margin-top: clamp(1rem, 2vw, 1.4rem);
}

.carbon-zero-story__gallery {
  min-width: 0;
  padding: 0;
  background: transparent;
}

.carbon-zero-gallery__carousel {
  width: 100%;
}

.carbon-zero-gallery__stage {
  position: relative;
  display: grid;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  place-items: center;
  isolation: isolate;
  touch-action: pan-y;
}

.carbon-zero-gallery__slide {
  position: absolute;
  inset: 0;
  display: grid;
  margin: 0;
  padding: 0;
  place-items: center;
  animation: carbon-zero-gallery-appear 420ms ease both;
}

.carbon-zero-gallery__slide[hidden] {
  display: none;
}

.carbon-zero-gallery__slide img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
}

.carbon-zero-gallery__controls {
  display: grid;
  grid-template-columns: auto minmax(4rem, 1fr);
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  padding: 0.9rem 0.15rem 0;
}

.carbon-zero-gallery__navigation {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.carbon-zero-gallery__button {
  display: inline-grid;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(17, 44, 71, 0.14);
  border-radius: 50%;
  color: #173d3c;
  background: #fff;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.carbon-zero-gallery__button:hover {
  transform: translateY(-1px);
  border-color: #8fc24c;
  color: #112c47;
  background: #eaf3dc;
}

.carbon-zero-gallery__button:focus-visible {
  outline: 3px solid #006be0;
  outline-offset: 3px;
}

.carbon-zero-gallery__button svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.carbon-zero-gallery__count {
  min-width: 3.5rem;
  color: #173d3c;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: center;
}

.carbon-zero-gallery__count span:last-child {
  color: #718277;
  font-weight: 500;
}

.carbon-zero-gallery__progress {
  height: 0.28rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 44, 71, 0.12);
}

.carbon-zero-gallery__progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8fc24c, #59b9dd);
  transform: scaleX(0.045);
  transform-origin: left center;
  transition: transform 280ms ease;
}

.carbon-zero-gallery__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.carbon-zero-story__continuation {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: clamp(1.5rem, 3.5vw, 2.5rem);
  padding-top: clamp(1.5rem, 3.5vw, 2.5rem);
  border-top: 1px solid rgba(17, 44, 71, 0.1);
}

.carbon-zero-story__continuation > p {
  max-width: none;
  margin: 0;
}

.carbon-zero-story__continuation > p + p {
  margin-top: 1.2rem;
  padding-top: 0;
  border-top: 0;
}

@keyframes carbon-zero-gallery-appear {
  from { opacity: 0.65; }
  to { opacity: 1; }
}

@media (max-width: 58rem) {
  .carbon-zero-story__intro {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2rem);
  }

  .carbon-zero-story__opening {
    align-content: start;
  }

  .carbon-zero-story__gallery {
    width: 100%;
    margin-inline: 0;
  }

  .carbon-zero-gallery__stage {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 42rem) {
  .carbon-zero-gallery__controls {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 0.8rem;
    padding-top: 0.8rem;
  }

  .carbon-zero-gallery__navigation {
    justify-content: center;
  }

  .carbon-zero-gallery__progress {
    grid-row: 1;
  }
}

@media (max-width: 52rem) {
  .carbon-zero-story__continuation > p + p {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(17, 44, 71, 0.09);
  }
}

@media (prefers-reduced-motion: reduce) {
  .carbon-zero-gallery__slide {
    animation: none;
  }

  .carbon-zero-gallery__button,
  .carbon-zero-gallery__progress span {
    transition: none;
  }
}

@media (min-width: 52rem) {
  .carbon-zero-copy {
    padding: clamp(2rem, 4vw, 3rem);
  }
}
